diff --git a/_includes/header.html b/_includes/header.html
index ee1277c74..8a356c008 100644
--- a/_includes/header.html
+++ b/_includes/header.html
@@ -25,9 +25,13 @@
- Login
-
- User
+
+
+ User
+
+
diff --git a/_layouts/dataset.html b/_layouts/dataset.html
index 6559d3f07..450796c12 100644
--- a/_layouts/dataset.html
+++ b/_layouts/dataset.html
@@ -33,7 +33,7 @@ {{ page.notes }}
diff --git a/css/main.css b/css/main.css
index 4d8f6611e..7481a0b71 100644
--- a/css/main.css
+++ b/css/main.css
@@ -33,6 +33,14 @@ dataset {
margin-top: 15px;
}
+/* Hidden from guests */
+.add-dataset-btn,
+.edit-dataset-btn,
+.admin-link-list-item,
+.user-issue {
+ display: none;
+}
+
.resource-row {
padding: 19px;
margin-bottom: 20px;
@@ -50,4 +58,8 @@ dataset {
.show-resource-details {
font-size: 80%;
-}
\ No newline at end of file
+}
+
+.user-issue {
+ color: red;
+}
diff --git a/datasets.html b/datasets.html
index 2199ddbbc..350ac2787 100644
--- a/datasets.html
+++ b/datasets.html
@@ -16,7 +16,7 @@ Organizations
diff --git a/package.json b/package.json
index efa893719..db9028832 100644
--- a/package.json
+++ b/package.json
@@ -29,7 +29,7 @@
"dependencies": {
"ampersand-state": "^5.0.0",
"bootstrap": "^3.3.6",
- "github-api": "^0.11.2",
+ "github-api": "github:michael/github",
"jquery-deparam": "^0.5.2",
"jquery-serializejson": "^2.6.2",
"js-cookie": "^2.1.0",
diff --git a/scripts/dist/bundle.js b/scripts/dist/bundle.js
index 1ff819206..1c9ef7825 100644
--- a/scripts/dist/bundle.js
+++ b/scripts/dist/bundle.js
@@ -1,7 +1,7 @@
-!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/scripts/dist/",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(3),o=r(i);n(16);var u=n(22),a=n(62),s=r(a),c=n(61),l=r(c),f=n(69),p=r(f),h=n(68),d=r(h),g=n(67),v=r(g),m=n(65),y=r(m),D=n(66),A=r(D),C=n(70),w=r(C),b=n(6),E=o["default"].deparam(window.location.search.substr(1)),_={main:(0,b.queryByHook)("main"),nav:(0,b.queryByHook)("nav")},x=new s["default"]({clientId:E.clientId||settings.GITHUB_CLIENT_ID,proxyHost:E.proxyHost||settings.GATEKEEPER_HOST});E.code&&((0,b.setParams)((0,u.omit)(E,["code","clientId","proxyHost"])),x.finishLogin(E.code)),(0,p["default"])({el:_.nav,user:x});var F={routes:{"/datasets/(.+)/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,filePath:settings.FILE_PATH});(0,v["default"])({el:_.main,file:t})},"/datasets/":function(){(0,d["default"])({el:_.main})},"/add-dataset/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,defaultDir:settings.DATASETS_DIR});(0,y["default"])({el:_.main,file:t})},"/admin/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,filePath:"_config.yml"});(0,A["default"])({el:_.main,file:t})},"/setup/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,filePath:"_config.yml"});(0,w["default"])({el:_.main,file:t,user:x,clientId:E.clientId,proxyHost:E.proxyHost})}},route:function S(t){for(var S in this.routes)if(new RegExp(S).test(t)){this.routes[S]();break}}};F.route(settings.PAGE_URL)},function(t,e,n){"use strict";function r(t){var e={};return null!==t&&Object.keys(t).forEach(function(n){t[n].forEach(function(t){e[String(t)]=n})}),e}function i(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===u.indexOf(e))throw new o('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=r(e.styleAliases||null),-1===a.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var o=n(9),u=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];t.exports=i},function(t,e){function n(t){return!!t&&"object"==typeof t}function r(t,e){var n=null==t?void 0:t[e];return a(n)?n:void 0}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&m>=t}function o(t){return u(t)&&d.call(t)==c}function u(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){return null==t?!1:o(t)?g.test(p.call(t)):n(t)&&l.test(t)}var s="[object Array]",c="[object Function]",l=/^\[object .+?Constructor\]$/,f=Object.prototype,p=Function.prototype.toString,h=f.hasOwnProperty,d=f.toString,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=r(Array,"isArray"),m=9007199254740991,y=v||function(t){return n(t)&&i(t.length)&&d.call(t)==s};t.exports=y},function(t,e){t.exports=jQuery},function(t,e){"use strict";function n(t){return"[object Array]"===m.call(t)}function r(t){return"[object ArrayBuffer]"===m.call(t)}function i(t){return"[object FormData]"===m.call(t)}function o(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function a(t){return"number"==typeof t}function s(t){return"undefined"==typeof t}function c(t){return null!==t&&"object"==typeof t}function l(t){return"[object Date]"===m.call(t)}function f(t){return"[object File]"===m.call(t)}function p(t){return"[object Blob]"===m.call(t)}function h(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function d(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||n(t)||(t=[t]),n(t))for(var r=0,i=t.length;i>r;r++)e.call(null,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(null,t[o],o,t)}function v(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=v(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;r>n;n++)g(arguments[n],t);return e}var m=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:r,isFormData:i,isArrayBufferView:o,isString:u,isNumber:a,isObject:c,isUndefined:s,isDate:l,isFile:f,isBlob:p,isStandardBrowserEnv:d,forEach:g,merge:v,trim:h}},function(t,e,n){function r(t){return function(e){return null==e?void 0:e[t]}}function i(t){return null!=t&&u(y(t))}function o(t,e){return t="number"==typeof t||h.test(t)?+t:-1,e=null==e?m:e,t>-1&&t%1==0&&e>t}function u(t){return"number"==typeof t&&t>-1&&t%1==0&&m>=t}function a(t){for(var e=c(t),n=e.length,r=n&&t.length,i=!!r&&u(r)&&(p(t)||f(t)),a=-1,s=[];++a0;++rn;n+=1)i=o[n],t[i]=e[i];return t}function u(t,e){var n,r="";for(n=0;e>n;n+=1)r+=t;return r}function a(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}t.exports.isNothing=n,t.exports.isObject=r,t.exports.toArray=i,t.exports.repeat=u,t.exports.isNegativeZero=a,t.exports.extend=o},function(t,e,n){"use strict";function r(t,e,n){var i=[];return t.include.forEach(function(t){n=r(t,e,n)}),t[e].forEach(function(t){n.forEach(function(e,n){e.tag===t.tag&&i.push(n)}),n.push(t)}),n.filter(function(t,e){return-1===i.indexOf(e)})}function i(){function t(t){r[t.tag]=t}var e,n,r={};for(e=0,n=arguments.length;n>e;e+=1)arguments[e].forEach(t);return r}function o(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=r(this,"implicit",[]),this.compiledExplicit=r(this,"explicit",[]),this.compiledTypeMap=i(this.compiledImplicit,this.compiledExplicit)}var u=n(7),a=n(9),s=n(1);o.DEFAULT=null,o.create=function(){var t,e;switch(arguments.length){case 1:t=o.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new a("Wrong number of arguments for Schema.create function")}if(t=u.toArray(t),e=u.toArray(e),!t.every(function(t){return t instanceof o}))throw new a("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every(function(t){return t instanceof s}))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:t,explicit:e})},t.exports=o},function(t,e){"use strict";function n(t,e){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e},t.exports=n},function(t,e,n){"use strict";var r=n(8);t.exports=new r({include:[n(28)],implicit:[n(96),n(89)],explicit:[n(81),n(91),n(92),n(94)]})},function(t,e){function n(t,e,n){if("function"!=typeof t)return r;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)};case 5:return function(n,r,i,o,u){return t.call(e,n,r,i,o,u)}}return function(){return t.apply(e,arguments)}}function r(t){return t}t.exports=n},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}function r(t){return o(t)&&g.call(t,"callee")&&(!m.call(t,"callee")||v.call(t)==f)}function i(t){return null!=t&&a(y(t))&&!u(t)}function o(t){return c(t)&&i(t)}function u(t){var e=s(t)?v.call(t):"";return e==p||e==h}function a(t){return"number"==typeof t&&t>-1&&t%1==0&&l>=t}function s(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function c(t){return!!t&&"object"==typeof t}var l=9007199254740991,f="[object Arguments]",p="[object Function]",h="[object GeneratorFunction]",d=Object.prototype,g=d.hasOwnProperty,v=d.toString,m=d.propertyIsEnumerable,y=n("length");t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=n(8);t.exports=r.DEFAULT=new r({include:[n(10)],explicit:[n(87),n(86),n(85)]})},function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=i(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,o=i(n.length-e,0),u=Array(o);++r=s;s++)u=""===c[s]?a.length:c[s],a=a[u]=l>s?a[u]||(c[s+1]&&isNaN(c[s+1])?{}:[]):i;else"[object Array]"===Object.prototype.toString.call(n[u])?n[u].push(i):{}.hasOwnProperty.call(n,u)?n[u]=[n[u],i]:n[u]=i;else u&&(n[u]=e?void 0:"")}),n};return t&&(t.prototype.deparam=t.deparam=e),e})},function(t,e,n){"use strict";var r=n(8);t.exports=new r({explicit:[n(95),n(93),n(88)]})},function(t,e){function n(t,e,n){if(e!==e)return r(t,n);for(var i=n-1,o=t.length;++i-1}function g(t,e,n){for(var r=-1,i=t.length;++r-1;);return n}function T(t,e){for(var n=t.length;n--&&E(e,t[n],0)>-1;);return n}function P(t){return t&&t.Object===Object?t:null}function $(t,e){if(t!==e){var n=null===t,r=t===Q,i=t===t,o=null===e,u=e===Q,a=e===e;if(t>e&&!o||!i||n&&!u&&a||r&&a)return 1;if(e>t&&!n||!a||o&&!r&&i||u&&i)return-1}return 0}function R(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;++r=a)return s;var c=n[r];return s*("desc"==c?-1:1)}}return t.index-e.index}function L(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}function N(t){return En[t]}function U(t){return _n[t]}function q(t){return"\\"+Sn[t]}function M(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i-1&&t%1==0&&e>t}function W(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function Y(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function V(t,e){for(var n=-1,r=t.length,i=0,o=[];++ne,i=n?t.length:0,o=mi(0,i,this.__views__),u=o.start,a=o.end,s=a-u,c=r?a:u-1,l=this.__iteratees__,f=l.length,p=0,h=Dc(s,this.__takeCount__);if(!n||et>i||i==s&&h==s)return Fr(t,this.__actions__);var d=[];t:for(;s--&&h>p;){c+=e;for(var g=-1,v=t[c];++gn)return!1;var r=t.length-1;return n==r?t.pop():pc.call(t,n,1),!0}function en(t,e){var n=rn(t,e);return 0>n?Q:t[n][1]}function nn(t,e){return rn(t,e)>-1}function rn(t,e){for(var n=t.length;n--;)if(wu(t[n][0],e))return n;return-1}function on(t,e,n){var r=rn(t,e);0>r?t.push([e,n]):t[r][1]=n}function un(t,e,n,r){return t===Q||wu(t,Ys[n])&&!Gs.call(r,n)?e:t}function an(t,e,n){(n===Q||wu(t[e],n))&&("number"!=typeof e||n!==Q||e in t)||(t[e]=n)}function sn(t,e,n){var r=t[e];Gs.call(t,e)&&wu(r,n)&&(n!==Q||e in t)||(t[e]=n)}function cn(t,e,n,r){return $c(t,function(t,i,o){e(r,t,n(t),o)}),r}function ln(t,e){return t&&Ur(e,Fa(e),t)}function fn(t,e){for(var n=-1,r=null==t,i=e.length,o=Array(i);++n=t?t:n),e!==Q&&(t=t>=e?t:e)),t}function _n(t,e,n,r,i,o,u){var a;if(r&&(a=o?r(t,i,o,u):r(t)),a!==Q)return a;if(!Uu(t))return t;var s=xl(t);if(s){if(a=Di(t),!e)return Nr(t,a)}else{var c=vi(t),f=c==$t||c==Rt;if(Fl(t))return kr(t,e);if(c==Ut||c==Ot||f&&!o){if(H(t))return o?t:{};if(a=Ai(f?{}:t),!e)return a=ln(a,t),n?Mr(t,a):a}else{if(!bn[c])return o?t:{};a=Ci(t,c,e)}}u||(u=new Ge);var p=u.get(t);return p?p:(u.set(t,a),(s?l:Un)(t,function(i,o){sn(a,o,_n(i,e,n,r,o,t,u))}),n&&!s?Mr(t,a):a)}function xn(t){var e=Fa(t),n=e.length;return function(r){if(null==r)return!n;for(var i=n;i--;){var o=e[i],u=t[o],a=r[o];if(a===Q&&!(o in Object(r))||!u(a))return!1}return!0}}function Fn(t){return Uu(t)?cc(t):{}}function Sn(t,e,n){if("function"!=typeof t)throw new zs(nt);return fc(function(){t.apply(Q,n)},e)}function On(t,e,n,r){var i=-1,o=d,u=!0,a=t.length,s=[],c=e.length;if(!a)return s;n&&(e=v(e,O(n))),r?(o=g,u=!1):e.length>=et&&(o=Ye,u=!1,e=new We(e));t:for(;++in&&(n=-n>i?0:i+n),r=r===Q||r>i?i:ca(r),0>r&&(r+=i),r=n>r?0:la(r);r>n;)t[n++]=e;return t}function Pn(t,e){var n=[];return $c(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function $n(t,e,n,r){r||(r=[]);for(var i=-1,o=t.length;++i0&&Su(u)&&(n||xl(u)||_u(u))?e>1?$n(u,e-1,n,r):m(r,u):n||(r[r.length]=u)}return r}function Rn(t,e){return null==t?t:Lc(t,e,Sa)}function Un(t,e){return t&&Lc(t,e,Fa)}function qn(t,e){return t&&Nc(t,e,Fa)}function Mn(t,e){return h(e,function(e){return Ru(t[e])})}function Hn(t,e){e=Ei(e,t)?[e+""]:gn(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[e[n++]];return n&&n==r?t:Q}function zn(t,e){return Gs.call(t,e)||"object"==typeof t&&e in t&&null===uc(t)}function Wn(t,e){return e in Object(t)}function Yn(t,e,n){return t>=Dc(e,n)&&t=120&&l.length>=120)?new We(u&&l):Q}l=t[0];var f=-1,p=a[0];t:for(;++f-1;)a!==t&&pc.call(a,s,1),pc.call(t,s,1);return t}function hr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(r==n||i!=o){var o=i;if(z(i))pc.call(t,i,1);else if(Ei(i,t))delete t[i];else{var u=gn(i),a=Oi(t,u);null!=a&&delete a[Xi(u)]}}}return t}function dr(t,e){return t+dc(Cc()*(e-t+1))}function gr(t,e,n,r){for(var i=-1,o=yc(hc((e-t)/(n||1)),0),u=Array(o);o--;)u[r?o:++i]=t,t+=n;return u}function vr(t,e,n,r){e=Ei(e,t)?[e+""]:gn(e);for(var i=-1,o=e.length,u=o-1,a=t;null!=a&&++ie&&(e=-e>i?0:i+e),n=n>i?i:n,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=i){for(;i>r;){var o=r+i>>>1,u=t[o];(n?e>=u:e>u)&&null!==u?r=o+1:i=o}return i}return Ar(t,e,ys,n)}function Ar(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,u=e!==e,a=null===e,s=e===Q;o>i;){var c=dc((i+o)/2),l=n(t[c]),f=l!==Q,p=l===l;if(u)var h=p||r;else h=a?p&&f&&(r||null!=l):s?p&&(r||f):null==l?!1:r?e>=l:e>l;h?i=c+1:o=c}return Dc(o,Bt)}function Cr(t){return wr(t)}function wr(t,e){for(var n=0,r=t.length,i=t[0],o=e?e(i):i,u=o,a=1,s=[i];++n=et){var c=e?null:qc(t);if(c)return G(c);u=!1,i=Ye,s=new We}else s=e?[]:a;t:for(;++rr?e[r]:Q);return u}function kr(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function Or(t){var e=new t.constructor(t.byteLength);return new rc(e).set(new rc(t)),e}function Ir(t){return y(Y(t),o,new t.constructor)}function jr(t){var e=new t.constructor(t.source,be.exec(t));return e.lastIndex=t.lastIndex,e}function Tr(t){return y(G(t),u,new t.constructor)}function Pr(t){return Tc?Object(Tc.call(t)):{}}function $r(t,e){var n=e?Or(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Rr(t,e,n,r){for(var i=-1,o=t.length,u=n.length,a=-1,s=e.length,c=yc(o-u,0),l=Array(s+c),f=!r;++ai)&&(l[n[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function Lr(t,e,n,r){for(var i=-1,o=t.length,u=-1,a=n.length,s=-1,c=e.length,l=yc(o-a,0),f=Array(l+c),p=!r;++ii)&&(f[h+n[u]]=t[i++]);return f}function Nr(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[i-1]:Q,u=i>2?n[2]:Q;for(o="function"==typeof o?(i--,o):Q,u&&bi(n[0],n[1],u)&&(o=3>i?Q:o,i=1),e=Object(e);++ro&&u[0]!==c&&u[o-1]!==c?[]:V(u,c);if(o-=l.length,n>o)return oi(t,e,Qr,r.placeholder,Q,u,l,Q,Q,n-o);var f=this&&this!==Ln&&this instanceof r?i:t;return a(f,this,u)}var i=Jr(t);return r}function Xr(t){return pu(function(e){e=$n(e,1);var n=e.length,i=n,o=r.prototype.thru;for(t&&e.reverse();i--;){var u=e[i];if("function"!=typeof u)throw new zs(nt);if(o&&!a&&"wrapper"==fi(u))var a=new r([],!0)}for(i=a?i:n;++i=et)return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++im){var w=V(D,A);return oi(t,e,Qr,l.placeholder,n,D,w,a,s,c-m)}var b=p?n:this,E=h?b[t]:t;
-return m=D.length,a?D=Ii(D,a):g&&m>1&&D.reverse(),f&&m>s&&(D.length=s),this&&this!==Ln&&this instanceof l&&(E=v||Jr(E)),E.apply(b,D)}var f=e&pt,p=e&ot,h=e&ut,d=e&(st|ct),g=e&dt,v=h?Q:Jr(t);return l}function ti(t,e){return function(n,r){return Gn(n,t,e(r),{})}}function ei(t){return pu(function(e){return e=v($n(e,1),pi()),pu(function(n){var r=this;return t(e,function(t){return a(t,r,n)})})})}function ni(t,e,n){e=ca(e);var r=K(t);if(!e||r>=e)return"";var i=e-r;n=n===Q?" ":n+"";var o=ns(n,hc(i/K(n)));return vn.test(n)?J(o).slice(0,i).join(""):o.slice(0,i)}function ri(t,e,n,r){function i(){for(var e=-1,s=arguments.length,c=-1,l=r.length,f=Array(l+s),p=this&&this!==Ln&&this instanceof i?u:t;++ce?1:-1:fa(r)||0,gr(e,n,r,t)}}function oi(t,e,n,r,i,o,u,a,s,c){var l=e&st,f=a?Nr(a):Q,p=l?u:Q,h=l?Q:u,d=l?o:Q,g=l?Q:o;e|=l?lt:ft,e&=~(l?ft:lt),e&at||(e&=~(ot|ut));var v=[t,e,i,d,p,g,h,f,s,c],m=n.apply(Q,v);return xi(t)&&Wc(m,v),m.placeholder=r,m}function ui(t){var e=Ms[t];return function(t,n){if(t=fa(t),n=ca(n)){var r=(da(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(da(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function ai(t,e,n,r,i,o,u,a){var s=e&ut;if(!s&&"function"!=typeof t)throw new zs(nt);var c=r?r.length:0;if(c||(e&=~(lt|ft),r=i=Q),u=u===Q?u:yc(ca(u),0),a=a===Q?a:ca(a),c-=i?i.length:0,e&ft){var l=r,f=i;r=i=Q}var p=s?Q:Mc(t),h=[t,e,n,r,i,l,f,o,u,a];if(p&&Bi(h,p),t=h[0],e=h[1],n=h[2],r=h[3],i=h[4],a=h[9]=null==h[9]?s?0:t.length:yc(h[9]-c,0),!a&&e&(st|ct)&&(e&=~(st|ct)),e&&e!=ot)d=e==st||e==ct?Zr(t,e,a):e!=lt&&e!=(ot|lt)||i.length?Qr.apply(Q,h):ri(t,e,n,r);else var d=Vr(t,e,n);var g=p?Uc:Wc;return g(d,h)}function si(t,e,n,r,i,o){var u=-1,a=i&vt,s=i>,c=t.length,l=e.length;if(c!=l&&!(a&&l>c))return!1;var f=o.get(t);if(f)return f==e;var p=!0;for(o.set(t,e);++ui,u=r==pt&&n==st||r==pt&&n==ht&&t[7].length<=e[8]||r==(pt|ht)&&e[7].length<=e[8]&&n==st;if(!o&&!u)return t;r&ot&&(t[2]=e[2],i|=n&ot?0:at);var a=e[3];if(a){var s=t[3];t[3]=s?Rr(s,a,e[4]):Nr(a),t[4]=s?V(t[3],it):Nr(e[4])}return a=e[5],a&&(s=t[5],t[5]=s?Lr(s,a,e[6]):Nr(a),t[6]=s?V(t[5],it):Nr(e[6])),a=e[7],a&&(t[7]=Nr(a)),r&pt&&(t[8]=null==t[8]?e[8]:Dc(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function ki(t,e,n,r,i,o){return Uu(t)&&Uu(e)&&or(t,e,Q,ki,o.set(e,t)),t}function Oi(t,e){return 1==e.length?t:Ea(t,mr(e,0,-1))}function Ii(t,e){for(var n=t.length,r=Dc(e.length,n),i=Nr(t);r--;){var o=e[r];t[r]=z(o,n)?i[o]:Q}return t}function ji(t){var e=[];return da(t).replace(ge,function(t,n,r,i){e.push(r?i.replace(Ce,"$1"):n||t)}),e}function Ti(t){if(t instanceof i)return t.clone();var e=new r(t.__wrapped__,t.__chain__);return e.__actions__=Nr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function Pi(t,e){e=yc(ca(e),0);var n=t?t.length:0;if(!n||1>e)return[];for(var r=0,i=0,o=Array(hc(n/e));n>r;)o[i++]=mr(t,r,r+=e);return o}function $i(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++ee?0:e,r)):[]}function Li(t,e,n){var r=t?t.length:0;return r?(e=n||e===Q?1:ca(e),e=r-e,mr(t,0,0>e?0:e)):[]}function Ni(t,e){return t&&t.length?xr(t,pi(e,3),!0,!0):[]}function Ui(t,e){return t&&t.length?xr(t,pi(e,3),!0):[]}function qi(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&bi(t,e,n)&&(n=0,r=i),Tn(t,e,n,r)):[]}function Mi(t,e){return t&&t.length?b(t,pi(e,3)):-1}function Hi(t,e){return t&&t.length?b(t,pi(e,3),!0):-1}function zi(t){var e=t?t.length:0;return e?$n(t,1):[]}function Wi(t){var e=t?t.length:0;return e?$n(t,Et):[]}function Yi(t,e){var n=t?t.length:0;return n?(e=e===Q?1:ca(e),$n(t,e)):[]}function Vi(t){for(var e=-1,n=t?t.length:0,r={};++en&&(n=yc(r+n,0)),E(t,e,n)):-1}function Ji(t){return Li(t,1)}function Zi(t,e){return t?vc.call(t,e):""}function Xi(t){var e=t?t.length:0;return e?t[e-1]:Q}function Qi(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if(n!==Q&&(i=ca(n),i=(0>i?yc(r+i,0):Dc(i,r-1))+1),e!==e)return M(t,i,!0);for(;i--;)if(t[i]===e)return i;return-1}function to(t,e){return t&&t.length&&e&&e.length?pr(t,e):t}function eo(t,e,n){return t&&t.length&&e&&e.length?pr(t,e,pi(n)):t}function no(t,e,n){return t&&t.length&&e&&e.length?pr(t,e,Q,n):t}function ro(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=pi(e,3);++rr&&wu(t[r],e))return r}return-1}function co(t,e){return Dr(t,e,!0)}function lo(t,e,n){return Ar(t,e,pi(n),!0)}function fo(t,e){var n=t?t.length:0;if(n){var r=Dr(t,e,!0)-1;if(wu(t[r],e))return r}return-1}function po(t){return t&&t.length?Cr(t):[]}function ho(t,e){return t&&t.length?wr(t,pi(e)):[]}function go(t){return Ri(t,1)}function vo(t,e,n){return t&&t.length?(e=n||e===Q?1:ca(e),mr(t,0,0>e?0:e)):[]}function mo(t,e,n){var r=t?t.length:0;return r?(e=n||e===Q?1:ca(e),e=r-e,mr(t,0>e?0:e,r)):[]}function yo(t,e){return t&&t.length?xr(t,pi(e,3),!1,!0):[]}function Do(t,e){return t&&t.length?xr(t,pi(e,3)):[]}function Ao(t){return t&&t.length?br(t):[]}function Co(t,e){return t&&t.length?br(t,pi(e)):[]}function wo(t,e){return t&&t.length?br(t,Q,e):[]}function bo(t){if(!t||!t.length)return[];var e=0;return t=h(t,function(t){return Su(t)?(e=yc(t.length,e),!0):void 0}),B(e,function(e){return v(t,lr(e))})}function Eo(t,e){if(!t||!t.length)return[];var n=bo(t);return null==e?n:v(n,function(t){return a(e,Q,t)})}function _o(t,e){return Br(t||[],e||[],sn)}function xo(t,e){return Br(t||[],e||[],vr)}function Fo(t){var n=e(t);return n.__chain__=!0,n}function So(t,e){return e(t),t}function Bo(t,e){return e(t)}function ko(){return Fo(this)}function Oo(){return new r(this.value(),this.__chain__)}function Io(t){return this.map(t).flatten()}function jo(){this.__values__===Q&&(this.__values__=sa(this.value()));var t=this.__index__>=this.__values__.length,e=t?Q:this.__values__[this.__index__++];return{done:t,value:e}}function To(){return this}function Po(t){for(var e,r=this;r instanceof n;){var i=Ti(r);i.__index__=0,i.__values__=Q,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e}function $o(){var t=this.__wrapped__;if(t instanceof i){var e=t;return this.__actions__.length&&(e=new i(this)),e=e.reverse(),e.__actions__.push({func:Bo,args:[io],thisArg:Q}),new r(e,this.__chain__)}return this.thru(io)}function Ro(){return Fr(this.__wrapped__,this.__actions__)}function Lo(t,e,n){var r=xl(t)?p:In;return n&&bi(t,e,n)&&(e=Q),r(t,pi(e,3))}function No(t,e){var n=xl(t)?h:Pn;return n(t,pi(e,3))}function Uo(t,e){if(e=pi(e,3),xl(t)){var n=b(t,e);return n>-1?t[n]:Q}return w(t,e,$c)}function qo(t,e){if(e=pi(e,3),xl(t)){var n=b(t,e,!0);return n>-1?t[n]:Q}return w(t,e,Rc)}function Mo(t,e){return $n(Yo(t,e),1)}function Ho(t,e){return"function"==typeof e&&xl(t)?l(t,e):$c(t,hn(e))}function zo(t,e){return"function"==typeof e&&xl(t)?f(t,e):Rc(t,hn(e))}function Wo(t,e,n,r){t=Fu(t)?t:Ma(t),n=n&&!r?ca(n):0;var i=t.length;return 0>n&&(n=yc(i+n,0)),ta(t)?i>=n&&t.indexOf(e,n)>-1:!!i&&E(t,e,n)>-1}function Yo(t,e){var n=xl(t)?v:nr;return n(t,pi(e,3))}function Vo(t,e,n,r){return null==t?[]:(xl(e)||(e=null==e?[]:[e]),n=r?Q:n,xl(n)||(n=null==n?[]:[n]),ar(t,e,n))}function Go(t,e,n){var r=xl(t)?y:x,i=arguments.length<3;return r(t,pi(e,4),n,i,$c)}function Ko(t,e,n){var r=xl(t)?D:x,i=arguments.length<3;return r(t,pi(e,4),n,i,Rc)}function Jo(t,e){var n=xl(t)?h:Pn;return e=pi(e,3),n(t,function(t,n,r){return!e(t,n,r)})}function Zo(t){var e=Fu(t)?t:Ma(t),n=e.length;return n>0?e[dr(0,n-1)]:Q}function Xo(t,e){var n=-1,r=sa(t),i=r.length,o=i-1;for(e=En(ca(e),0,i);++n0&&(n=e.apply(this,arguments)),1>=t&&(e=Q),n}}function ou(t,e,n){e=n?Q:e;var r=ai(t,st,Q,Q,Q,Q,Q,e);return r.placeholder=ou.placeholder,r}function uu(t,e,n){e=n?Q:e;var r=ai(t,ct,Q,Q,Q,Q,Q,e);return r.placeholder=uu.placeholder,r}function au(t,e,n){function r(){d&&ic(d),l&&ic(l),v=0,c=l=h=d=g=Q}function i(e,n){n&&ic(n),l=d=g=Q,e&&(v=ml(),f=t.apply(h,c),d||l||(c=h=Q))}function o(){var t=e-(ml()-p);0>=t||t>e?i(g,l):d=fc(o,t)}function u(){return(d&&g||l&&D)&&(f=t.apply(h,c)),r(),f}function a(){i(D,d)}function s(){if(c=arguments,p=ml(),h=this,g=D&&(d||!m),y===!1)var n=m&&!d;else{v||l||m||(v=p);var r=y-(p-v),i=(0>=r||r>y)&&(m||l);i?(l&&(l=ic(l)),v=p,f=t.apply(h,c)):l||(l=fc(a,r))}return i&&d?d=ic(d):d||e===y||(d=fc(o,e)),n&&(i=!0,f=t.apply(h,c)),!i||d||l||(c=h=Q),f}var c,l,f,p,h,d,g,v=0,m=!1,y=!1,D=!0;if("function"!=typeof t)throw new zs(nt);return e=fa(e)||0,Uu(n)&&(m=!!n.leading,y="maxWait"in n&&yc(fa(n.maxWait)||0,e),D="trailing"in n?!!n.trailing:D),s.cancel=r,s.flush=u,s}function su(t){return ai(t,dt)}function cu(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new zs(nt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u),u};return n.cache=new cu.Cache,n}function lu(t){if("function"!=typeof t)throw new zs(nt);return function(){return!t.apply(this,arguments)}}function fu(t){return iu(2,t)}function pu(t,e){if("function"!=typeof t)throw new zs(nt);return e=yc(e===Q?t.length-1:ca(e),0),function(){for(var n=arguments,r=-1,i=yc(n.length-e,0),o=Array(i);++re}function Eu(t,e){return t>=e}function _u(t){return Su(t)&&Gs.call(t,"callee")&&(!lc.call(t,"callee")||Zs.call(t)==Ot)}function xu(t){return qu(t)&&Zs.call(t)==Vt}function Fu(t){return null!=t&&Nu(Hc(t))&&!Ru(t)}function Su(t){return qu(t)&&Fu(t)}function Bu(t){return t===!0||t===!1||qu(t)&&Zs.call(t)==jt}function ku(t){return qu(t)&&Zs.call(t)==Tt}function Ou(t){return!!t&&1===t.nodeType&&qu(t)&&!Ju(t)}function Iu(t){if(Fu(t)&&(xl(t)||ta(t)||Ru(t.splice)||_u(t)))return!t.length;for(var e in t)if(Gs.call(t,e))return!1;return!0}function ju(t,e){return Jn(t,e)}function Tu(t,e,n){n="function"==typeof n?n:Q;var r=n?n(t,e):Q;return r===Q?Jn(t,e,n):!!r}function Pu(t){return qu(t)?Zs.call(t)==Pt||"string"==typeof t.message&&"string"==typeof t.name:!1}function $u(t){return"number"==typeof t&&gc(t)}function Ru(t){var e=Uu(t)?Zs.call(t):"";return e==$t||e==Rt}function Lu(t){return"number"==typeof t&&t==ca(t)}function Nu(t){return"number"==typeof t&&t>-1&&t%1==0&&_t>=t}function Uu(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function qu(t){return!!t&&"object"==typeof t}function Mu(t){return qu(t)&&vi(t)==Lt}function Hu(t,e){return t===e||Xn(t,e,hi(e))}function zu(t,e,n){return n="function"==typeof n?n:Q,Xn(t,e,hi(e),n)}function Wu(t){return Ku(t)&&t!=+t}function Yu(t){return null==t?!1:Ru(t)?Qs.test(Vs.call(t)):qu(t)&&(H(t)?Qs:Fe).test(t)}function Vu(t){return null===t}function Gu(t){return null==t}function Ku(t){return"number"==typeof t||qu(t)&&Zs.call(t)==Nt}function Ju(t){if(!qu(t)||Zs.call(t)!=Ut||H(t))return!1;var e=uc(t);if(null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&Vs.call(n)==Js}function Zu(t){return Uu(t)&&Zs.call(t)==qt}function Xu(t){return Lu(t)&&t>=-_t&&_t>=t}function Qu(t){return qu(t)&&vi(t)==Mt}function ta(t){return"string"==typeof t||!xl(t)&&qu(t)&&Zs.call(t)==Ht}function ea(t){return"symbol"==typeof t||qu(t)&&Zs.call(t)==zt}function na(t){return qu(t)&&Nu(t.length)&&!!wn[Zs.call(t)]}function ra(t){return t===Q}function ia(t){return qu(t)&&vi(t)==Wt}function oa(t){return qu(t)&&Zs.call(t)==Yt}function ua(t,e){return e>t}function aa(t,e){return e>=t}function sa(t){if(!t)return[];if(Fu(t))return ta(t)?J(t):Nr(t);if(sc&&t[sc])return W(t[sc]());var e=vi(t),n=e==Lt?Y:e==Mt?G:Ma;return n(t)}function ca(t){if(!t)return 0===t?t:0;if(t=fa(t),t===Et||t===-Et){var e=0>t?-1:1;return e*xt}var n=t%1;return t===t?n?t-n:t:0}function la(t){return t?En(ca(t),0,St):0}function fa(t){if(Uu(t)){var e=Ru(t.valueOf)?t.valueOf():t;t=Uu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ye,"");var n=xe.test(t);return n||Se.test(t)?kn(t.slice(2),n?2:8):_e.test(t)?Ft:+t}function pa(t){return Ur(t,Sa(t))}function ha(t){return En(ca(t),-_t,_t)}function da(t){if("string"==typeof t)return t;if(null==t)return"";if(ea(t))return Pc?Pc.call(t):"";var e=t+"";return"0"==e&&1/t==-Et?"-0":e}function ga(t,e){var n=Fn(t);return e?ln(n,e):n}function va(t,e){return w(t,pi(e,3),Un,!0)}function ma(t,e){return w(t,pi(e,3),qn,!0)}function ya(t,e){return null==t?t:Lc(t,hn(e),Sa)}function Da(t,e){return null==t?t:Nc(t,hn(e),Sa)}function Aa(t,e){return t&&Un(t,hn(e))}function Ca(t,e){return t&&qn(t,hn(e))}function wa(t){return null==t?[]:Mn(t,Fa(t))}function ba(t){return null==t?[]:Mn(t,Sa(t))}function Ea(t,e,n){var r=null==t?Q:Hn(t,e);return r===Q?n:r}function _a(t,e){return yi(t,e,zn)}function xa(t,e){return yi(t,e,Wn)}function Fa(t){var e=Fi(t);if(!e&&!Fu(t))return tr(t);var n=wi(t),r=!!n,i=n||[],o=i.length;for(var u in t)!zn(t,u)||r&&("length"==u||z(u,o))||e&&"constructor"==u||i.push(u);return i}function Sa(t){for(var e=-1,n=Fi(t),r=er(t),i=r.length,o=wi(t),u=!!o,a=o||[],s=a.length;++ee){var r=t;t=e,e=r}if(n||t%1||e%1){var i=Cc();return Dc(t+i*(e-t+Bn("1e-"+((i+"").length-1))),e)}return dr(t,e)}function Va(t){return Yl(da(t).toLowerCase())}function Ga(t){return t=da(t),t&&t.replace(ke,N).replace(dn,"")}function Ka(t,e,n){t=da(t),e="string"==typeof e?e:e+"";var r=t.length;return n=n===Q?r:En(ca(n),0,r),n-=e.length,n>=0&&t.indexOf(e,n)==n}function Ja(t){return t=da(t),t&&ce.test(t)?t.replace(ae,U):t}function Za(t){return t=da(t),t&&me.test(t)?t.replace(ve,"\\$&"):t}function Xa(t,e,n){t=da(t),e=ca(e);var r=K(t);if(!e||r>=e)return t;var i=(e-r)/2,o=dc(i),u=hc(i);return ni("",o,n)+t+ni("",u,n)}function Qa(t,e,n){return t=da(t),t+ni(t,e,n)}function ts(t,e,n){return t=da(t),ni(t,e,n)+t}function es(t,e,n){return n||null==e?e=0:e&&(e=+e),t=da(t).replace(ye,""),Ac(t,e||(Ee.test(t)?16:10))}function ns(t,e){t=da(t),e=ca(e);var n="";if(!t||1>e||e>_t)return n;do e%2&&(n+=t),e=dc(e/2),t+=t;while(e);return n}function rs(){var t=arguments,e=da(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function is(t,e,n){return da(t).split(e,n)}function os(t,e,n){return t=da(t),n=En(ca(n),0,t.length),t.lastIndexOf(e,n)==n}function us(t,n,r){var i=e.templateSettings;r&&bi(t,n,r)&&(n=Q),t=da(t),n=kl({},n,i,un);var o,u,a=kl({},n.imports,i.imports,un),s=Fa(a),c=I(a,s),l=0,f=n.interpolate||Oe,p="__p += '",h=Hs((n.escape||Oe).source+"|"+f.source+"|"+(f===pe?we:Oe).source+"|"+(n.evaluate||Oe).source+"|$","g"),d="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++Cn+"]")+"\n";t.replace(h,function(e,n,r,i,a,s){return r||(r=i),p+=t.slice(l,s).replace(Ie,q),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),a&&(u=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+e.length,e}),p+="';\n";var g=n.variable;g||(p="with (obj) {\n"+p+"\n}\n"),p=(u?p.replace(re,""):p).replace(ie,"$1").replace(oe,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Jl(function(){return Function(s,d+"return "+p).apply(Q,c)});if(v.source=p,Pu(v))throw v;return v}function as(t){return da(t).toLowerCase()}function ss(t){return da(t).toUpperCase()}function cs(t,e,n){if(t=da(t),!t)return t;if(n||e===Q)return t.replace(ye,"");if(e+="",!e)return t;var r=J(t),i=J(e);return r.slice(j(r,i),T(r,i)+1).join("")}function ls(t,e,n){if(t=da(t),!t)return t;if(n||e===Q)return t.replace(Ae,"");if(e+="",!e)return t;var r=J(t);return r.slice(0,T(r,J(e))+1).join("")}function fs(t,e,n){if(t=da(t),!t)return t;if(n||e===Q)return t.replace(De,"");if(e+="",!e)return t;var r=J(t);return r.slice(j(r,J(e))).join("")}function ps(t,e){var n=mt,r=yt;if(Uu(e)){var i="separator"in e?e.separator:i;n="length"in e?ca(e.length):n,r="omission"in e?da(e.omission):r}t=da(t);var o=t.length;if(vn.test(t)){var u=J(t);o=u.length}if(n>=o)return t;var a=n-K(r);if(1>a)return r;var s=u?u.slice(0,a).join(""):t.slice(0,a);if(i===Q)return s+r;if(u&&(a+=s.length-a),Zu(i)){if(t.slice(a).search(i)){var c,l=s;for(i.global||(i=Hs(i.source,da(be.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;s=s.slice(0,f===Q?a:f)}}else if(t.indexOf(i,a)!=a){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function hs(t){return t=da(t),t&&se.test(t)?t.replace(ue,Z):t}function ds(t,e,n){return t=da(t),e=n?Q:e,e===Q&&(e=Dn.test(t)?yn:mn),t.match(e)||[]}function gs(t){var e=t?t.length:0,n=pi();return t=e?v(t,function(t){if("function"!=typeof t[1])throw new zs(nt);return[n(t[0]),t[1]]}):[],pu(function(n){for(var r=-1;++rt||t>_t)return[];var n=St,r=Dc(t,St);e=hn(e),t-=St;for(var i=B(r,e);++n0){if(++t>=Dt)return n}else t=0;return Uc(n,r)}}(),Yc=pu(function(t,e){return xl(t)||(t=null==t?[]:[Object(t)]),e=$n(e,1),c(t,e)}),Vc=pu(function(t,e){return Su(t)?On(t,$n(e,1,!0)):[]}),Gc=pu(function(t,e){var n=Xi(e);return Su(n)&&(n=Q),Su(t)?On(t,$n(e,1,!0),pi(n)):[]}),Kc=pu(function(t,e){var n=Xi(e);return Su(n)&&(n=Q),Su(t)?On(t,$n(e,1,!0),Q,n):[]}),Jc=pu(function(t){var e=v(t,pn);return e.length&&e[0]===t[0]?Vn(e):[]}),Zc=pu(function(t){var e=Xi(t),n=v(t,pn);return e===Xi(n)?e=Q:n.pop(),n.length&&n[0]===t[0]?Vn(n,pi(e)):[]}),Xc=pu(function(t){var e=Xi(t),n=v(t,pn);return e===Xi(n)?e=Q:n.pop(),n.length&&n[0]===t[0]?Vn(n,Q,e):[]}),Qc=pu(to),tl=pu(function(t,e){e=v($n(e,1),String);var n=fn(t,e);return hr(t,e.sort($)),n}),el=pu(function(t){return br($n(t,1,!0))}),nl=pu(function(t){var e=Xi(t);return Su(e)&&(e=Q),br($n(t,1,!0),pi(e))}),rl=pu(function(t){var e=Xi(t);return Su(e)&&(e=Q),br($n(t,1,!0),Q,e)}),il=pu(function(t,e){return Su(t)?On(t,e):[]}),ol=pu(function(t){return Sr(h(t,Su))}),ul=pu(function(t){var e=Xi(t);return Su(e)&&(e=Q),Sr(h(t,Su),pi(e))}),al=pu(function(t){var e=Xi(t);return Su(e)&&(e=Q),Sr(h(t,Su),Q,e)}),sl=pu(bo),cl=pu(function(t){var e=t.length,n=e>1?t[e-1]:Q;return n="function"==typeof n?(t.pop(),n):Q,Eo(t,n)}),ll=pu(function(t){t=$n(t,1);var e=t.length,n=e?t[0]:0,o=this.__wrapped__,u=function(e){return fn(e,t)};return!(e>1||this.__actions__.length)&&o instanceof i&&z(n)?(o=o.slice(n,+n+(e?1:0)),o.__actions__.push({func:Bo,args:[u],thisArg:Q}),new r(o,this.__chain__).thru(function(t){return e&&!t.length&&t.push(Q),t})):this.thru(u)}),fl=Hr(function(t,e,n){Gs.call(t,n)?++t[n]:t[n]=1}),pl=Hr(function(t,e,n){Gs.call(t,n)?t[n].push(e):t[n]=[e]}),hl=pu(function(t,e,n){var r=-1,i="function"==typeof e,o=Ei(e),u=Fu(t)?Array(t.length):[];return $c(t,function(t){var s=i?e:o&&null!=t?t[e]:Q;u[++r]=s?a(s,t,n):Kn(t,e,n)}),u}),dl=Hr(function(t,e,n){t[n]=e}),gl=Hr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),vl=pu(function(t,e){if(null==t)return[];var n=e.length;return n>1&&bi(t,e[0],e[1])?e=[]:n>2&&bi(e[0],e[1],e[2])&&(e.length=1),ar(t,$n(e,1),[])}),ml=Us.now,yl=pu(function(t,e,n){var r=ot;if(n.length){var i=V(n,gi(yl));r|=lt}return ai(t,r,e,n,i)}),Dl=pu(function(t,e,n){var r=ot|ut;if(n.length){var i=V(n,gi(Dl));r|=lt}return ai(e,r,t,n,i)}),Al=pu(function(t,e){return Sn(t,1,e)}),Cl=pu(function(t,e,n){return Sn(t,fa(e)||0,n)}),wl=pu(function(t,e){e=v($n(e,1),pi());var n=e.length;return pu(function(r){for(var i=-1,o=Dc(r.length,n);++i0||0>e)?new i(n):(0>t?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==Q&&(e=ca(e),n=0>e?n.dropRight(-e):n.take(e-t)),n)},i.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},i.prototype.toArray=function(){return this.take(St)},Un(i.prototype,function(t,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),u=/^(?:head|last)$/.test(n),a=e[u?"take"+("last"==n?"Right":""):n],s=u||/^find/.test(n);a&&(e.prototype[n]=function(){var n=this.__wrapped__,c=u?[1]:arguments,l=n instanceof i,f=c[0],p=l||xl(n),h=function(t){var n=a.apply(e,m([t],c));return u&&d?n[0]:n};p&&o&&"function"==typeof f&&1!=f.length&&(l=p=!1);var d=this.__chain__,g=!!this.__actions__.length,v=s&&!d,y=l&&!g;if(!s&&p){n=y?n:new i(this);var D=t.apply(n,c);return D.__actions__.push({func:Bo,args:[h],thisArg:Q}),new r(D,d)}return v&&y?t.apply(this,c):(D=this.thru(h),v?u?D.value()[0]:D.value():D)})}),l(["pop","push","shift","sort","splice","unshift"],function(t){var n=Ws[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;return i&&!this.__chain__?n.apply(this.value(),t):this[r](function(e){return n.apply(e,t)})}}),Un(i.prototype,function(t,n){var r=e[n];if(r){var i=r.name+"",o=Bc[i]||(Bc[i]=[]);o.push({name:n,func:r})}}),Bc[Qr(Q,ut).name]=[{name:"wrapper",func:Q}],i.prototype.clone=P,i.prototype.reverse=Be,i.prototype.value=je,e.prototype.at=ll,e.prototype.chain=ko,e.prototype.commit=Oo,e.prototype.flatMap=Io,e.prototype.next=jo,e.prototype.plant=Po,e.prototype.reverse=$o,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=Ro,sc&&(e.prototype[sc]=To),e}var Q,tt="4.6.1",et=200,nt="Expected a function",rt="__lodash_hash_undefined__",it="__lodash_placeholder__",ot=1,ut=2,at=4,st=8,ct=16,lt=32,ft=64,pt=128,ht=256,dt=512,gt=1,vt=2,mt=30,yt="...",Dt=150,At=16,Ct=1,wt=2,bt=3,Et=1/0,_t=9007199254740991,xt=1.7976931348623157e308,Ft=NaN,St=4294967295,Bt=St-1,kt=St>>>1,Ot="[object Arguments]",It="[object Array]",jt="[object Boolean]",Tt="[object Date]",Pt="[object Error]",$t="[object Function]",Rt="[object GeneratorFunction]",Lt="[object Map]",Nt="[object Number]",Ut="[object Object]",qt="[object RegExp]",Mt="[object Set]",Ht="[object String]",zt="[object Symbol]",Wt="[object WeakMap]",Yt="[object WeakSet]",Vt="[object ArrayBuffer]",Gt="[object Float32Array]",Kt="[object Float64Array]",Jt="[object Int8Array]",Zt="[object Int16Array]",Xt="[object Int32Array]",Qt="[object Uint8Array]",te="[object Uint8ClampedArray]",ee="[object Uint16Array]",ne="[object Uint32Array]",re=/\b__p \+= '';/g,ie=/\b(__p \+=) '' \+/g,oe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ue=/&(?:amp|lt|gt|quot|#39|#96);/g,ae=/[&<>"'`]/g,se=RegExp(ue.source),ce=RegExp(ae.source),le=/<%-([\s\S]+?)%>/g,fe=/<%([\s\S]+?)%>/g,pe=/<%=([\s\S]+?)%>/g,he=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,de=/^\w*$/,ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,ve=/[\\^$.*+?()[\]{}|]/g,me=RegExp(ve.source),ye=/^\s+|\s+$/g,De=/^\s+/,Ae=/\s+$/,Ce=/\\(\\)?/g,we=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,be=/\w*$/,Ee=/^0x/i,_e=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,Fe=/^\[object .+?Constructor\]$/,Se=/^0o[0-7]+$/i,Be=/^(?:0|[1-9]\d*)$/,ke=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Oe=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,je="\\ud800-\\udfff",Te="\\u0300-\\u036f\\ufe20-\\ufe23",Pe="\\u20d0-\\u20f0",$e="\\u2700-\\u27bf",Re="a-z\\xdf-\\xf6\\xf8-\\xff",Le="\\xac\\xb1\\xd7\\xf7",Ne="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ue="\\u2018\\u2019\\u201c\\u201d",qe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",He="\\ufe0e\\ufe0f",ze=Le+Ne+Ue+qe,We="["+je+"]",Ye="["+ze+"]",Ve="["+Te+Pe+"]",Ge="\\d+",Ke="["+$e+"]",Je="["+Re+"]",Ze="[^"+je+ze+Ge+$e+Re+Me+"]",Xe="\\ud83c[\\udffb-\\udfff]",Qe="(?:"+Ve+"|"+Xe+")",tn="[^"+je+"]",en="(?:\\ud83c[\\udde6-\\uddff]){2}",nn="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+Me+"]",on="\\u200d",un="(?:"+Je+"|"+Ze+")",an="(?:"+rn+"|"+Ze+")",sn=Qe+"?",cn="["+He+"]?",ln="(?:"+on+"(?:"+[tn,en,nn].join("|")+")"+cn+sn+")*",fn=cn+sn+ln,pn="(?:"+[Ke,en,nn].join("|")+")"+fn,hn="(?:"+[tn+Ve+"?",Ve,en,nn,We].join("|")+")",dn=RegExp(Ve,"g"),gn=RegExp(Xe+"(?="+Xe+")|"+hn+fn,"g"),vn=RegExp("["+on+je+Te+Pe+He+"]"),mn=/[a-zA-Z0-9]+/g,yn=RegExp([rn+"?"+Je+"+(?="+[Ye,rn,"$"].join("|")+")",an+"+(?="+[Ye,rn+un,"$"].join("|")+")",rn+"?"+un+"+",rn+"+",Ge,pn].join("|"),"g"),Dn=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,An=["Array","Buffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Cn=-1,wn={};wn[Gt]=wn[Kt]=wn[Jt]=wn[Zt]=wn[Xt]=wn[Qt]=wn[te]=wn[ee]=wn[ne]=!0,wn[Ot]=wn[It]=wn[Vt]=wn[jt]=wn[Tt]=wn[Pt]=wn[$t]=wn[Lt]=wn[Nt]=wn[Ut]=wn[qt]=wn[Mt]=wn[Ht]=wn[Wt]=!1;var bn={};bn[Ot]=bn[It]=bn[Vt]=bn[jt]=bn[Tt]=bn[Gt]=bn[Kt]=bn[Jt]=bn[Zt]=bn[Xt]=bn[Lt]=bn[Nt]=bn[Ut]=bn[qt]=bn[Mt]=bn[Ht]=bn[zt]=bn[Qt]=bn[te]=bn[ee]=bn[ne]=!0,bn[Pt]=bn[$t]=bn[Wt]=!1;var En={"À":"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"},_n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},xn={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Fn={"function":!0,object:!0},Sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Bn=parseFloat,kn=parseInt,On=Fn[typeof e]&&e&&!e.nodeType?e:Q,In=Fn[typeof t]&&t&&!t.nodeType?t:Q,jn=In&&In.exports===On?On:Q,Tn=P(On&&In&&"object"==typeof i&&i),Pn=P(Fn[typeof self]&&self),$n=P(Fn[typeof window]&&window),Rn=P(Fn[typeof this]&&this),Ln=Tn||$n!==(Rn&&Rn.window)&&$n||Pn||Rn||Function("return this")(),Nn=X();($n||Pn||{})._=Nn,r=function(){return Nn}.call(e,n,e,t),!(r!==Q&&(t.exports=r))}).call(this)}).call(e,n(13)(t),function(){return this}())},function(t,e,n){"use strict";function r(t,e){e||(e={}),this.cid||(this.cid=a("state")),this._events={},this._values={},this._definition=Object.create(this._definition),e.parse&&(t=this.parse(t,e)),this.parent=e.parent,this.collection=e.collection,this._keyTree=new E,this._initCollections(),this._initChildren(),this._cache={},this._previousAttributes={},t&&this.set(t,s({silent:!0,initial:!0},e)),this._changed={},this._derived&&this._initDerived(),e.init!==!1&&this.initialize.apply(this,arguments)}function i(t,e,n,r){var i,o,u=t._definition[e]={};if(d(n))i=t._ensureValidType(n),i&&(u.type=i);else{if(Array.isArray(n)&&(o=n,n={type:o[0],required:o[1],"default":o[2]}),i=t._ensureValidType(n.type),i&&(u.type=i),n.required&&(u.required=!0),n["default"]&&"object"==typeof n["default"])throw new TypeError("The default value for "+e+" cannot be an object/array, must be a value or a function which returns a value/object/array");u["default"]=n["default"],u.allowNull=n.allowNull?n.allowNull:!1,n.setOnce&&(u.setOnce=!0),u.required&&void 0===u["default"]&&!u.setOnce&&(u["default"]=t._getDefaultForType(i)),u.test=n.test,u.values=n.values}return r&&(u.session=!0),i||(i=d(n)?n:n.type,console.warn("Invalid data type of `"+i+"` for `"+e+"` property. Use one of the default types or define your own")),Object.defineProperty(t,e,{set:function(t){this.set(e,t)},get:function(){if(!this._values)throw Error('You may be trying to `extend` a state object with "'+e+'" which has been defined in `props` on the object being extended');var t=this._values[e],n=this._dataTypes[u.type];if("undefined"!=typeof t)return n&&n.get&&(t=n.get(t)),t;var r=A(u,"default");if(this._values[e]=r,"undefined"!=typeof r){var i=this._getOnChangeForType(u.type);i(r,t,e)}return r}}),u}function o(t,e,n){var r=t._derived[e]={fn:m(n)?n:n.fn,cache:n.cache!==!1,depList:n.deps||[]};r.depList.forEach(function(n){t._deps[n]=w(t._deps[n]||[],[e])}),Object.defineProperty(t,e,{get:function(){return this._getDerivedProperty(e)},set:function(){throw new TypeError("`"+e+"` is a derived property, it can't be set directly.")}})}function u(t){var e,n=this;e=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)},s(e,n);var r=function(){this.constructor=e};if(r.prototype=n.prototype,e.prototype=new r,e.prototype._derived=s({},n.prototype._derived),e.prototype._deps=s({},n.prototype._deps),e.prototype._definition=s({},n.prototype._definition),e.prototype._collections=s({},n.prototype._collections),e.prototype._children=s({},n.prototype._children),e.prototype._dataTypes=s({},n.prototype._dataTypes||S),t)for(var u=["dataTypes","props","session","derived","collections","children"],a=0;a_;_++){if(l=x[_],u=f[l],o=typeof u,m=this._values[l],a=this._definition[l],!a){if(this._children[l]||this._collections[l]){g(u)||(u={}),this[l].set(u,n);continue}if("ignore"===E)continue;if("reject"===E)throw new TypeError('No "'+l+'" property defined on '+(this.type||"this")+' model and extraProperties not set to "ignore" or "allow"');if("allow"===E)a=this._createPropertyDefinition(l,"any");else if(E)throw new TypeError('Invalid value for extraProperties: "'+E+'"')}if(C=this._getCompareForType(a.type),w=this._getOnChangeForType(a.type),p=this._dataTypes[a.type],p&&p.set&&(s=p.set(u),u=s.val,o=s.type),a.test&&(c=a.test.call(this,u,o)))throw new TypeError("Property '"+l+"' failed validation with error: "+c);if(void 0===u&&a.required)throw new TypeError("Required property '"+l+"' must be of type "+a.type+". Tried to set "+u);if(null===u&&a.required&&!a.allowNull)throw new TypeError("Property '"+l+"' must be of type "+a.type+" (cannot be null). Tried to set "+u);if(a.type&&"any"!==a.type&&a.type!==o&&null!==u&&void 0!==u)throw new TypeError("Property '"+l+"' must be of type "+a.type+". Tried to set "+u);if(a.values&&!h(a.values,u)){var S=A(a,"default");if(v&&void 0!==S)u=S;else if(!v||v&&void 0!==u)throw new TypeError("Property '"+l+"' must be one of values: "+a.values.join(", ")+". Tried to set "+u)}if(D=y||!C(m,u,l),a.setOnce&&void 0!==m&&D)throw new TypeError("Property '"+l+"' can only be set once.");D?(w(u,m,l),y||(this._changed[l]=u,this._previousAttributes[l]=m,v&&delete this._values[l],d||i.push({prev:m,val:u,key:l})),v||(this._values[l]=u)):delete this._changed[l]}if(i.length&&(this._pending=!0),i.forEach(function(t){b.trigger("change:"+t.key,b,t.val,n)}),r)return this;for(;this._pending;)this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},get:function(t){return this[t]},toggle:function(t){var e=this._definition[t];if("boolean"===e.type)this[t]=!this[t];else{if(!e||!e.values)throw new TypeError("Can only toggle properties that are type `boolean` or have `values` array.");this[t]=_(e.values,this[t])}return this},previousAttributes:function(){return c(this._previousAttributes)},hasChanged:function(t){return null==t?!!Object.keys(this._changed).length:D(this._derived,t)?this._derived[t].depList.some(function(t){return this.hasChanged(t)},this):D(this._changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?c(this._changed):!1;var e,n,r,i=!1,o=this._changing?this._previousAttributes:this.attributes;for(var u in t)n=this._definition[u],n&&(r=this._getCompareForType(n.type),r(o[u],e=t[u])||((i||(i={}))[u]=e));return i},toJSON:function(){return this.serialize()},unset:function(t,e){var n=this;t=Array.isArray(t)?t:[t],t.forEach(function(t){var r=n._definition[t];if(r){var i;return r.required?(i=A(r,"default"),n.set(t,i,e)):n.set(t,i,s({},e,{unset:!0}))}})},clear:function(t){var e=this;return Object.keys(this.attributes).forEach(function(n){e.unset(n,t)}),this},previous:function(t){return null!=t&&Object.keys(this._previousAttributes).length?this._previousAttributes[t]:null},_getDefaultForType:function(t){var e=this._dataTypes[t];return e&&e["default"]},_getCompareForType:function(t){var e=this._dataTypes[t];return e&&e.compare?C(e.compare,this):y},_getOnChangeForType:function(t){var e=this._dataTypes[t];return e&&e.onChange?C(e.onChange,this):F},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=s({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return n?(this.trigger("invalid",this,n,s(e||{},{validationError:n})),!1):!0},_createPropertyDefinition:function(t,e,n){return i(this,t,e,n)},_ensureValidType:function(t){return h(["string","number","boolean","array","object","date","state","any"].concat(Object.keys(this._dataTypes)),t)?t:void 0},getAttributes:function(t,e){t=s({session:!1,props:!1,derived:!1},t||{});var n,r,i={};for(var o in this._definition)r=this._definition[o],(t.session&&r.session||t.props&&!r.session)&&(n=e?this._values[o]:this[o],e&&n&&m(n.serialize)&&(n=n.serialize()),"undefined"==typeof n&&(n=A(r,"default")),"undefined"!=typeof n&&(i[o]=n));if(t.derived)for(var u in this._derived)i[u]=this[u];return i},_initDerived:function(){var t=this;p(this._derived,function(e,n){var r=t._derived[n];r.deps=r.depList;var i=function(e){e=e||{};var i=r.fn.call(t);t._cache[n]===i&&r.cache||(r.cache&&(t._previousAttributes[n]=t._cache[n]),t._cache[n]=i,t.trigger("change:"+n,t,t._cache[n]))};r.deps.forEach(function(e){t._keyTree.add(e,i)})}),this.on("all",function(e){x.test(e)&&t._keyTree.get(e.split(":")[1]).forEach(function(t){t()})},this)},_getDerivedProperty:function(t,e){return this._derived[t].cache?(!e&&this._cache.hasOwnProperty(t)||(this._cache[t]=this._derived[t].fn.apply(this)),this._cache[t]):this._derived[t].fn.apply(this)},_initCollections:function(){var t;if(this._collections)for(t in this._collections)this._safeSet(t,new this._collections[t](null,{parent:this}))},_initChildren:function(){var t;if(this._children)for(t in this._children)this._safeSet(t,new this._children[t]({},{parent:this})),this.listenTo(this[t],"all",this._getEventBubblingHandler(t))},_getEventBubblingHandler:function(t){return C(function(e,n,r){x.test(e)?this.trigger("change:"+t+"."+e.split(":")[1],n,r):"change"===e&&this.trigger("change",this)},this)},_verifyRequired:function(){var t=this.attributes;for(var e in this._definition)if(this._definition[e].required&&"undefined"==typeof t[e])return!1;return!0},_safeSet:function(t,e){if(t in this)throw new Error("Encountered namespace collision while setting instance property `"+t+"`");return this[t]=e,this}}),Object.defineProperties(r.prototype,{attributes:{get:function(){return this.getAttributes({props:!0,session:!0})}},all:{get:function(){return this.getAttributes({session:!0,props:!0,derived:!0})}},isState:{get:function(){return!0},set:function(){}}});var S={string:{"default":function(){return""}},date:{set:function(t){var e;if(null==t)e="object";else if(v(t))e="date",t=t.valueOf();else{var n=null,r=new Date(t).valueOf();isNaN(r)&&(r=new Date(parseInt(t,10)).valueOf(),isNaN(r)&&(n=!0)),t=r,e="date",n&&(e=typeof t)}return{val:t,type:e}},get:function(t){return null==t?t:new Date(t)},"default":function(){return new Date}},array:{set:function(t){return{val:t,type:Array.isArray(t)?"array":typeof t}},"default":function(){return[]}},object:{set:function(t){var e=typeof t;return"object"!==e&&void 0===t&&(t=null,e="object"),{val:t,type:e}},"default":function(){return{}}},state:{set:function(t){var e=t instanceof r||t&&t.isState;return e?{val:t,type:"state"}:{val:t,type:typeof t}},compare:function(t,e){return t===e},onChange:function(t,e,n){e&&this.stopListening(e),null!=t&&this.listenTo(t,"all",this._getEventBubblingHandler(n))}}};r.extend=u,t.exports=r},function(t,e,n){"use strict";var r=n(4),i=n(54),o=n(59),u=n(25),a=n(58),s=window.btoa||n(53);t.exports=function(t,e,c){var l=c.data,f=c.headers;r.isFormData(l)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(!window.XDomainRequest||"withCredentials"in p||a(c.url)||(p=new window.XDomainRequest),c.auth){var h=c.auth.username||"",d=c.auth.password||"";f.Authorization="Basic "+s(h+":"+d)}if(p.open(c.method.toUpperCase(),i(c.url,c.params,c.paramsSerializer),!0),p.timeout=c.timeout,p.onload=function(){if(p){var n="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,r=-1!==["text",""].indexOf(c.responseType||"")?p.responseText:p.response,i={data:u(r,n,c.transformResponse),status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:c,request:p};(i.status>=200&&i.status<300||!("status"in p)&&i.responseText?t:e)(i),p=null}},p.onerror=function(){e(new Error("Network Error")),p=null},r.isStandardBrowserEnv()){var g=n(56),v=c.withCredentials||a(c.url)?g.read(c.xsrfCookieName):void 0;v&&(f[c.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(f,function(t,e){"undefined"==typeof l&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)}),c.withCredentials&&(p.withCredentials=!0),c.responseType)try{p.responseType=c.responseType}catch(m){if("json"!==p.responseType)throw m}r.isArrayBuffer(l)&&(l=new DataView(l)),p.send(l)}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){var r,i;!function(o,u){r=[n(73),n(71),n(127),n(47)],i=function(t,e,n,r){return o.Github=u(t,e,n,r)}.apply(e,r),!(void 0!==i&&(t.exports=i))}(this,function(t,e,n,r){function i(t){return e.encode(n.encode(t))}t.polyfill&&t.polyfill();var o=function(t){t=t||{};var e=t.apiUrl||"https://api.github.com",n=o._request=function(n,o,u,a,s){function c(){var t=o.indexOf("//")>=0?o:e+o;if(t+=/\?/.test(t)?"&":"?",u&&"object"==typeof u&&["GET","HEAD","DELETE"].indexOf(n)>-1)for(var r in u)u.hasOwnProperty(r)&&(t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(u[r]));return t.replace(/(×tamp=\d+)/,"")+("undefined"!=typeof window?"×tamp="+(new Date).getTime():"")}var l={headers:{Accept:s?"application/vnd.github.v3.raw+json":"application/vnd.github.v3+json","Content-Type":"application/json;charset=UTF-8"},method:n,data:u?u:{},url:c()};return(t.token||t.username&&t.password)&&(l.headers.Authorization=t.token?"token "+t.token:"Basic "+i(t.username+":"+t.password)),r(l).then(function(t){a(null,t.data||!0,t.request)},function(t){304===t.status?a(null,t.data||!0,t.request):a({path:o,request:t.request,error:t.status})})},u=o._requestAllPages=function(t,e){var r=[];!function i(){n("GET",t,null,function(n,o,u){if(n)return e(n);o instanceof Array||(o=[o]),r.push.apply(r,o);var a=(u.getResponseHeader("link")||"").split(",").filter(function(t){return/rel="next"/.test(t)}).map(function(t){return(/<(.*)>/.exec(t)||[])[1]}).pop();a?(t=a,i()):e(n,r,u)})}()};return o.User=function(){this.repos=function(t,e){"function"==typeof t&&(e=t,t={}),t=t||{};var n="/user/repos",r=[];r.push("type="+encodeURIComponent(t.type||"all")),r.push("sort="+encodeURIComponent(t.sort||"updated")),r.push("per_page="+encodeURIComponent(t.per_page||"100")),t.page&&r.push("page="+encodeURIComponent(t.page)),n+="?"+r.join("&"),u(n,e)},this.orgs=function(t){n("GET","/user/orgs",null,t)},this.gists=function(t){n("GET","/gists",null,t)},this.notifications=function(t,e){"function"==typeof t&&(e=t,t={}),t=t||{};var r="/notifications",i=[];if(t.all&&i.push("all=true"),t.participating&&i.push("participating=true"),t.since){var o=t.since;o.constructor===Date&&(o=o.toISOString()),i.push("since="+encodeURIComponent(o))}if(t.before){var u=t.before;u.constructor===Date&&(u=u.toISOString()),i.push("before="+encodeURIComponent(u))}t.page&&i.push("page="+encodeURIComponent(t.page)),i.length>0&&(r+="?"+i.join("&")),n("GET",r,null,e)},this.show=function(t,e){var r=t?"/users/"+t:"/user";n("GET",r,null,e)},this.userRepos=function(t,e,n){"function"==typeof e&&(n=e,e={});var r="/users/"+t+"/repos",i=[];i.push("type="+encodeURIComponent(e.type||"all")),i.push("sort="+encodeURIComponent(e.sort||"updated")),i.push("per_page="+encodeURIComponent(e.per_page||"100")),e.page&&i.push("page="+encodeURIComponent(e.page)),r+="?"+i.join("&"),u(r,n)},this.userStarred=function(t,e){u("/users/"+t+"/starred?type=all&per_page=100",e)},this.userGists=function(t,e){n("GET","/users/"+t+"/gists",null,e)},this.orgRepos=function(t,e){u("/orgs/"+t+"/repos?type=all&&page_num=1000&sort=updated&direction=desc",e)},this.follow=function(t,e){n("PUT","/user/following/"+t,null,e)},this.unfollow=function(t,e){n("DELETE","/user/following/"+t,null,e)},this.createRepo=function(t,e){n("POST","/user/repos",t,e)}},o.Organization=function(){this.createRepo=function(t,e){n("POST","/orgs/"+t.orgname+"/repos",t,e)}},o.Repository=function(t){function e(t,e){return t===l.branch&&l.sha?e(null,l.sha):void c.getRef("heads/"+t,function(n,r){l.branch=t,l.sha=r,e(n,r)})}var r,u=t.name,a=t.user,s=t.fullname,c=this;r=s?"/repos/"+s:"/repos/"+a+"/"+u;var l={branch:null,sha:null};this.getRef=function(t,e){n("GET",r+"/git/refs/"+t,null,function(t,n,r){return t?e(t):void e(null,n.object.sha,r)})},this.createRef=function(t,e){n("POST",r+"/git/refs",t,e)},this.deleteRef=function(e,i){n("DELETE",r+"/git/refs/"+e,t,i)},this.deleteRepo=function(e){n("DELETE",r,t,e)},this.listTags=function(t){n("GET",r+"/tags",null,t)},this.listPulls=function(t,e){t=t||{};var i=r+"/pulls",o=[];"string"==typeof t?o.push("state="+t):(t.state&&o.push("state="+encodeURIComponent(t.state)),t.head&&o.push("head="+encodeURIComponent(t.head)),t.base&&o.push("base="+encodeURIComponent(t.base)),t.sort&&o.push("sort="+encodeURIComponent(t.sort)),t.direction&&o.push("direction="+encodeURIComponent(t.direction)),t.page&&o.push("page="+t.page),t.per_page&&o.push("per_page="+t.per_page)),o.length>0&&(i+="?"+o.join("&")),n("GET",i,null,e)},this.getPull=function(t,e){n("GET",r+"/pulls/"+t,null,e)},this.compare=function(t,e,i){n("GET",r+"/compare/"+t+"..."+e,null,i)},this.listBranches=function(t){n("GET",r+"/git/refs/heads",null,function(e,n,r){return e?t(e):(n=n.map(function(t){return t.ref.replace(/^refs\/heads\//,"")}),void t(null,n,r))})},this.getBlob=function(t,e){n("GET",r+"/git/blobs/"+t,null,e,"raw")},this.getCommit=function(t,e,i){n("GET",r+"/git/commits/"+e,null,i)},this.getSha=function(t,e,i){return e&&""!==e?void n("GET",r+"/contents/"+e+(t?"?ref="+t:""),null,function(t,e,n){return t?i(t):void i(null,e.sha,n)}):c.getRef("heads/"+t,i)},this.getStatuses=function(t,e){n("GET",r+"/statuses/"+t,null,e)},this.getTree=function(t,e){n("GET",r+"/git/trees/"+t,null,function(t,n,r){return t?e(t):void e(null,n.tree,r)})},this.postBlob=function(t,e){t="string"==typeof t?{content:t,encoding:"utf-8"}:{content:i(t),encoding:"base64"},n("POST",r+"/git/blobs",t,function(t,n,r){return t?e(t):void e(null,n.sha,r)})},this.updateTree=function(t,e,i,o){var u={base_tree:t,tree:[{path:e,mode:"100644",type:"blob",sha:i}]};n("POST",r+"/git/trees",u,function(t,e,n){return t?o(t):void o(null,e.sha,n)})},this.postTree=function(t,e){n("POST",r+"/git/trees",{tree:t},function(t,n,r){return t?e(t):void e(null,n.sha,r)})},this.commit=function(e,i,u,a){var s=new o.User;s.show(null,function(o,s){if(o)return a(o);var c={message:u,author:{name:t.user,email:s.email},parents:[e],tree:i};n("POST",r+"/git/commits",c,function(t,e,n){return t?a(t):(l.sha=e.sha,void a(null,e.sha,n))})})},this.updateHead=function(t,e,i){n("PATCH",r+"/git/refs/heads/"+t,{sha:e},i)},this.show=function(t){n("GET",r,null,t)},this.contributors=function(t,e){e=e||1e3;var i=this;n("GET",r+"/stats/contributors",null,function(n,r,o){return n?t(n):void(202===o.status?setTimeout(function(){i.contributors(t,e)},e):t(n,r,o))})},this.collaborators=function(t){n("GET",r+"/collaborators",null,t)},this.isCollaborator=function(t,e){n("GET",r+"/collaborators/"+t,null,e)},this.contents=function(t,e,i){e=encodeURI(e),n("GET",r+"/contents"+(e?"/"+e:""),{ref:t},i)},this.fork=function(t){n("POST",r+"/forks",null,t)},this.listForks=function(t){n("GET",r+"/forks",null,t)},this.branch=function(t,e,n){2===arguments.length&&"function"==typeof arguments[1]&&(n=e,e=t,t="master"),this.getRef("heads/"+t,function(t,r){return t&&n?n(t):void c.createRef({ref:"refs/heads/"+e,sha:r},n)})},this.createPullRequest=function(t,e){n("POST",r+"/pulls",t,e)},this.listHooks=function(t){n("GET",r+"/hooks",null,t)},this.getHook=function(t,e){n("GET",r+"/hooks/"+t,null,e)},this.createHook=function(t,e){n("POST",r+"/hooks",t,e)},this.editHook=function(t,e,i){n("PATCH",r+"/hooks/"+t,e,i)},this.deleteHook=function(t,e){n("DELETE",r+"/hooks/"+t,null,e)},this.read=function(t,e,i){n("GET",r+"/contents/"+encodeURI(e)+(t?"?ref="+t:""),null,i,!0)},this.remove=function(t,e,i){c.getSha(t,e,function(o,u){return o?i(o):void n("DELETE",r+"/contents/"+e,{message:e+" is removed",sha:u,branch:t},i)})},this["delete"]=this.remove,this.move=function(t,n,r,i){e(t,function(e,o){c.getTree(o+"?recursive=true",function(e,u){u.forEach(function(t){t.path===n&&(t.path=r),"tree"===t.type&&delete t.sha}),c.postTree(u,function(e,r){c.commit(o,r,"Deleted "+n,function(e,n){
-c.updateHead(t,n,i)})})})})},this.write=function(t,e,o,u,a,s){"function"==typeof a&&(s=a,a={}),c.getSha(t,encodeURI(e),function(c,l){var f={message:u,content:"undefined"==typeof a.encode||a.encode?i(o):o,branch:t,committer:a&&a.committer?a.committer:void 0,author:a&&a.author?a.author:void 0};c&&404!==c.error||(f.sha=l),n("PUT",r+"/contents/"+encodeURI(e),f,s)})},this.getCommits=function(t,e){t=t||{};var i=r+"/commits",o=[];if(t.sha&&o.push("sha="+encodeURIComponent(t.sha)),t.path&&o.push("path="+encodeURIComponent(t.path)),t.author&&o.push("author="+encodeURIComponent(t.author)),t.since){var u=t.since;u.constructor===Date&&(u=u.toISOString()),o.push("since="+encodeURIComponent(u))}if(t.until){var a=t.until;a.constructor===Date&&(a=a.toISOString()),o.push("until="+encodeURIComponent(a))}t.page&&o.push("page="+t.page),t.perpage&&o.push("per_page="+t.perpage),o.length>0&&(i+="?"+o.join("&")),n("GET",i,null,e)},this.isStarred=function(t,e,r){n("GET","/user/starred/"+t+"/"+e,null,r)},this.star=function(t,e,r){n("PUT","/user/starred/"+t+"/"+e,null,r)},this.unstar=function(t,e,r){n("DELETE","/user/starred/"+t+"/"+e,null,r)},this.createRelease=function(t,e){n("POST",r+"/releases",t,e)},this.editRelease=function(t,e,i){n("PATCH",r+"/releases/"+t,e,i)},this.getRelease=function(t,e){n("GET",r+"/releases/"+t,null,e)},this.deleteRelease=function(t,e){n("DELETE",r+"/releases/"+t,null,e)}},o.Gist=function(t){var e=t.id,r="/gists/"+e;this.read=function(t){n("GET",r,null,t)},this.create=function(t,e){n("POST","/gists",t,e)},this["delete"]=function(t){n("DELETE",r,null,t)},this.fork=function(t){n("POST",r+"/fork",null,t)},this.update=function(t,e){n("PATCH",r,t,e)},this.star=function(t){n("PUT",r+"/star",null,t)},this.unstar=function(t){n("DELETE",r+"/star",null,t)},this.isStarred=function(t){n("GET",r+"/star",null,t)}},o.Issue=function(t){var e="/repos/"+t.user+"/"+t.repo+"/issues";this.create=function(t,r){n("POST",e,t,r)},this.list=function(t,n){var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));u(e+"?"+r.join("&"),n)},this.comment=function(t,e,r){n("POST",t.comments_url,{body:e},r)},this.edit=function(t,r,i){n("PATCH",e+"/"+t,r,i)},this.get=function(t,r){n("GET",e+"/"+t,null,r)}},o.Search=function(t){var e="/search/",r="?q="+t.query;this.repositories=function(t,i){n("GET",e+"repositories"+r,t,i)},this.code=function(t,i){n("GET",e+"code"+r,t,i)},this.issues=function(t,i){n("GET",e+"issues"+r,t,i)},this.users=function(t,i){n("GET",e+"users"+r,t,i)}},o.RateLimit=function(){this.getRateLimit=function(t){n("GET","/rate_limit",null,t)}},o};return o.getIssues=function(t,e){return new o.Issue({user:t,repo:e})},o.getRepo=function(t,e){return e?new o.Repository({user:t,name:e}):new o.Repository({fullname:t})},o.getUser=function(){return new o.User},o.getOrg=function(){return new o.Organization},o.getGist=function(t){return new o.Gist({id:t})},o.getSearch=function(t){return new o.Search({query:t})},o.getRateLimit=function(){return new o.RateLimit},o})},function(t,e,n){var r,i,o;/*!
+!function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="/scripts/dist/",e(0)}([function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var i=n(3),o=r(i);n(16);var u=n(22),a=n(62),s=r(a),c=n(61),l=r(c),f=n(69),p=r(f),h=n(68),d=r(h),g=n(67),v=r(g),m=n(65),y=r(m),D=n(66),A=r(D),w=n(70),C=r(w),b=n(6),E=o["default"].deparam(window.location.search.substr(1)),_={main:(0,b.queryByHook)("main"),nav:(0,b.queryByHook)("nav")},x=new s["default"]({clientId:E.clientId||settings.GITHUB_CLIENT_ID,proxyHost:E.proxyHost||settings.GATEKEEPER_HOST,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME});E.code&&((0,b.setParams)((0,u.omit)(E,["code","clientId","proxyHost"])),x.finishLogin(E.code)),(0,p["default"])({el:_.nav,user:x});var F={routes:{"/datasets/(.+)/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,filePath:settings.FILE_PATH});(0,v["default"])({el:_.main,user:x,file:t})},"/datasets/":function(){(0,d["default"])({el:_.main,user:x})},"/add-dataset/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,defaultDir:settings.DATASETS_DIR});(0,y["default"])({el:_.main,file:t})},"/admin/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,filePath:"_config.yml"});(0,A["default"])({el:_.main,file:t})},"/setup/":function(){var t=new l["default"]({user:x,repoOwner:settings.REPO_OWNER,repoName:settings.REPO_NAME,repoBranch:settings.BRANCH,filePath:"_config.yml"});(0,C["default"])({el:_.main,file:t,user:x,clientId:E.clientId,proxyHost:E.proxyHost})}},route:function S(t){for(var S in this.routes)if(new RegExp(S).test(t)){this.routes[S]();break}}};F.route(settings.PAGE_URL)},function(t,e,n){"use strict";function r(t){var e={};return null!==t&&Object.keys(t).forEach(function(n){t[n].forEach(function(t){e[String(t)]=n})}),e}function i(t,e){if(e=e||{},Object.keys(e).forEach(function(e){if(-1===u.indexOf(e))throw new o('Unknown option "'+e+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(t){return t},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.defaultStyle=e.defaultStyle||null,this.styleAliases=r(e.styleAliases||null),-1===a.indexOf(this.kind))throw new o('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var o=n(9),u=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],a=["scalar","sequence","mapping"];t.exports=i},function(t,e){function n(t){return!!t&&"object"==typeof t}function r(t,e){var n=null==t?void 0:t[e];return a(n)?n:void 0}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&m>=t}function o(t){return u(t)&&d.call(t)==c}function u(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t){return null==t?!1:o(t)?g.test(p.call(t)):n(t)&&l.test(t)}var s="[object Array]",c="[object Function]",l=/^\[object .+?Constructor\]$/,f=Object.prototype,p=Function.prototype.toString,h=f.hasOwnProperty,d=f.toString,g=RegExp("^"+p.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),v=r(Array,"isArray"),m=9007199254740991,y=v||function(t){return n(t)&&i(t.length)&&d.call(t)==s};t.exports=y},function(t,e){t.exports=jQuery},function(t,e){"use strict";function n(t){return"[object Array]"===m.call(t)}function r(t){return"[object ArrayBuffer]"===m.call(t)}function i(t){return"[object FormData]"===m.call(t)}function o(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function u(t){return"string"==typeof t}function a(t){return"number"==typeof t}function s(t){return"undefined"==typeof t}function c(t){return null!==t&&"object"==typeof t}function l(t){return"[object Date]"===m.call(t)}function f(t){return"[object File]"===m.call(t)}function p(t){return"[object Blob]"===m.call(t)}function h(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function d(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function g(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||n(t)||(t=[t]),n(t))for(var r=0,i=t.length;i>r;r++)e.call(null,t[r],r,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(null,t[o],o,t)}function v(){function t(t,n){"object"==typeof e[n]&&"object"==typeof t?e[n]=v(e[n],t):e[n]=t}for(var e={},n=0,r=arguments.length;r>n;n++)g(arguments[n],t);return e}var m=Object.prototype.toString;t.exports={isArray:n,isArrayBuffer:r,isFormData:i,isArrayBufferView:o,isString:u,isNumber:a,isObject:c,isUndefined:s,isDate:l,isFile:f,isBlob:p,isStandardBrowserEnv:d,forEach:g,merge:v,trim:h}},function(t,e,n){function r(t){return function(e){return null==e?void 0:e[t]}}function i(t){return null!=t&&u(y(t))}function o(t,e){return t="number"==typeof t||h.test(t)?+t:-1,e=null==e?m:e,t>-1&&t%1==0&&e>t}function u(t){return"number"==typeof t&&t>-1&&t%1==0&&m>=t}function a(t){for(var e=c(t),n=e.length,r=n&&t.length,i=!!r&&u(r)&&(p(t)||f(t)),a=-1,s=[];++a0;++rn;n+=1)i=o[n],t[i]=e[i];return t}function u(t,e){var n,r="";for(n=0;e>n;n+=1)r+=t;return r}function a(t){return 0===t&&Number.NEGATIVE_INFINITY===1/t}t.exports.isNothing=n,t.exports.isObject=r,t.exports.toArray=i,t.exports.repeat=u,t.exports.isNegativeZero=a,t.exports.extend=o},function(t,e,n){"use strict";function r(t,e,n){var i=[];return t.include.forEach(function(t){n=r(t,e,n)}),t[e].forEach(function(t){n.forEach(function(e,n){e.tag===t.tag&&i.push(n)}),n.push(t)}),n.filter(function(t,e){return-1===i.indexOf(e)})}function i(){function t(t){r[t.tag]=t}var e,n,r={};for(e=0,n=arguments.length;n>e;e+=1)arguments[e].forEach(t);return r}function o(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(t){if(t.loadKind&&"scalar"!==t.loadKind)throw new a("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=r(this,"implicit",[]),this.compiledExplicit=r(this,"explicit",[]),this.compiledTypeMap=i(this.compiledImplicit,this.compiledExplicit)}var u=n(7),a=n(9),s=n(1);o.DEFAULT=null,o.create=function(){var t,e;switch(arguments.length){case 1:t=o.DEFAULT,e=arguments[0];break;case 2:t=arguments[0],e=arguments[1];break;default:throw new a("Wrong number of arguments for Schema.create function")}if(t=u.toArray(t),e=u.toArray(e),!t.every(function(t){return t instanceof o}))throw new a("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!e.every(function(t){return t instanceof s}))throw new a("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new o({include:t,explicit:e})},t.exports=o},function(t,e){"use strict";function n(t,e){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||"",this.name="YAMLException",this.reason=t,this.mark=e,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():"")}n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n.prototype.toString=function(t){var e=this.name+": ";return e+=this.reason||"(unknown reason)",!t&&this.mark&&(e+=" "+this.mark.toString()),e},t.exports=n},function(t,e,n){"use strict";var r=n(8);t.exports=new r({include:[n(28)],implicit:[n(98),n(91)],explicit:[n(83),n(93),n(94),n(96)]})},function(t,e){function n(t,e,n){if("function"!=typeof t)return r;if(void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)};case 5:return function(n,r,i,o,u){return t.call(e,n,r,i,o,u)}}return function(){return t.apply(e,arguments)}}function r(t){return t}t.exports=n},function(t,e){function n(t){return function(e){return null==e?void 0:e[t]}}function r(t){return o(t)&&g.call(t,"callee")&&(!m.call(t,"callee")||v.call(t)==f)}function i(t){return null!=t&&a(y(t))&&!u(t)}function o(t){return c(t)&&i(t)}function u(t){var e=s(t)?v.call(t):"";return e==p||e==h}function a(t){return"number"==typeof t&&t>-1&&t%1==0&&l>=t}function s(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function c(t){return!!t&&"object"==typeof t}var l=9007199254740991,f="[object Arguments]",p="[object Function]",h="[object GeneratorFunction]",d=Object.prototype,g=d.hasOwnProperty,v=d.toString,m=d.propertyIsEnumerable,y=n("length");t.exports=r},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){"use strict";var r=n(8);t.exports=r.DEFAULT=new r({include:[n(10)],explicit:[n(89),n(88),n(87)]})},function(t,e){function n(t,e){if("function"!=typeof t)throw new TypeError(r);return e=i(void 0===e?t.length-1:+e||0,0),function(){for(var n=arguments,r=-1,o=i(n.length-e,0),u=Array(o);++r=s;s++)u=""===c[s]?a.length:c[s],a=a[u]=l>s?a[u]||(c[s+1]&&isNaN(c[s+1])?{}:[]):i;else"[object Array]"===Object.prototype.toString.call(n[u])?n[u].push(i):{}.hasOwnProperty.call(n,u)?n[u]=[n[u],i]:n[u]=i;else u&&(n[u]=e?void 0:"")}),n};return t&&(t.prototype.deparam=t.deparam=e),e})},function(t,e,n){"use strict";var r=n(8);t.exports=new r({explicit:[n(97),n(95),n(90)]})},function(t,e){function n(t,e,n){if(e!==e)return r(t,n);for(var i=n-1,o=t.length;++i-1}function g(t,e,n){for(var r=-1,i=t.length;++r-1;);return n}function j(t,e){for(var n=t.length;n--&&E(e,t[n],0)>-1;);return n}function $(t){return t&&t.Object===Object?t:null}function P(t,e){if(t!==e){var n=null===t,r=t===X,i=t===t,o=null===e,u=e===X,a=e===e;if(t>e&&!o||!i||n&&!u&&a||r&&a)return 1;if(e>t&&!n||!a||o&&!r&&i||u&&i)return-1}return 0}function R(t,e,n){for(var r=-1,i=t.criteria,o=e.criteria,u=i.length,a=n.length;++r=a)return s;var c=n[r];return s*("desc"==c?-1:1)}}return t.index-e.index}function L(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&r++;return r}function N(t){return En[t]}function U(t){return _n[t]}function q(t){return"\\"+Sn[t]}function M(t,e,n){for(var r=t.length,i=e+(n?0:-1);n?i--:++i-1&&t%1==0&&e>t}function W(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function Y(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}function V(t,e){for(var n=-1,r=t.length,i=0,o=[];++ne,i=n?t.length:0,o=mi(0,i,this.__views__),u=o.start,a=o.end,s=a-u,c=r?a:u-1,l=this.__iteratees__,f=l.length,p=0,h=Dc(s,this.__takeCount__);if(!n||et>i||i==s&&h==s)return Fr(t,this.__actions__);var d=[];t:for(;s--&&h>p;){c+=e;for(var g=-1,v=t[c];++gn)return!1;var r=t.length-1;return n==r?t.pop():pc.call(t,n,1),!0}function en(t,e){var n=rn(t,e);return 0>n?X:t[n][1]}function nn(t,e){return rn(t,e)>-1}function rn(t,e){for(var n=t.length;n--;)if(Cu(t[n][0],e))return n;return-1}function on(t,e,n){var r=rn(t,e);0>r?t.push([e,n]):t[r][1]=n}function un(t,e,n,r){return t===X||Cu(t,Ys[n])&&!Gs.call(r,n)?e:t}function an(t,e,n){(n===X||Cu(t[e],n))&&("number"!=typeof e||n!==X||e in t)||(t[e]=n)}function sn(t,e,n){var r=t[e];Gs.call(t,e)&&Cu(r,n)&&(n!==X||e in t)||(t[e]=n)}function cn(t,e,n,r){return Pc(t,function(t,i,o){e(r,t,n(t),o)}),r}function ln(t,e){return t&&Ur(e,Fa(e),t)}function fn(t,e){for(var n=-1,r=null==t,i=e.length,o=Array(i);++n=t?t:n),e!==X&&(t=t>=e?t:e)),t}function _n(t,e,n,r,i,o,u){var a;if(r&&(a=o?r(t,i,o,u):r(t)),a!==X)return a;if(!Uu(t))return t;var s=xl(t);if(s){if(a=Di(t),!e)return Nr(t,a)}else{var c=vi(t),f=c==Pt||c==Rt;if(Fl(t))return Br(t,e);if(c==Ut||c==Ot||f&&!o){if(H(t))return o?t:{};if(a=Ai(f?{}:t),!e)return a=ln(a,t),n?Mr(t,a):a}else{if(!bn[c])return o?t:{};a=wi(t,c,e)}}u||(u=new Ge);var p=u.get(t);return p?p:(u.set(t,a),(s?l:Un)(t,function(i,o){sn(a,o,_n(i,e,n,r,o,t,u))}),n&&!s?Mr(t,a):a)}function xn(t){var e=Fa(t),n=e.length;return function(r){if(null==r)return!n;for(var i=n;i--;){var o=e[i],u=t[o],a=r[o];if(a===X&&!(o in Object(r))||!u(a))return!1}return!0}}function Fn(t){return Uu(t)?cc(t):{}}function Sn(t,e,n){if("function"!=typeof t)throw new zs(nt);return fc(function(){t.apply(X,n)},e)}function On(t,e,n,r){var i=-1,o=d,u=!0,a=t.length,s=[],c=e.length;if(!a)return s;n&&(e=v(e,O(n))),r?(o=g,u=!1):e.length>=et&&(o=Ye,u=!1,e=new We(e));t:for(;++in&&(n=-n>i?0:i+n),r=r===X||r>i?i:ca(r),0>r&&(r+=i),r=n>r?0:la(r);r>n;)t[n++]=e;return t}function $n(t,e){var n=[];return Pc(t,function(t,r,i){e(t,r,i)&&n.push(t)}),n}function Pn(t,e,n,r){r||(r=[]);for(var i=-1,o=t.length;++i0&&Su(u)&&(n||xl(u)||_u(u))?e>1?Pn(u,e-1,n,r):m(r,u):n||(r[r.length]=u)}return r}function Rn(t,e){return null==t?t:Lc(t,e,Sa)}function Un(t,e){return t&&Lc(t,e,Fa)}function qn(t,e){return t&&Nc(t,e,Fa)}function Mn(t,e){return h(e,function(e){return Ru(t[e])})}function Hn(t,e){e=Ei(e,t)?[e+""]:gn(e);for(var n=0,r=e.length;null!=t&&r>n;)t=t[e[n++]];return n&&n==r?t:X}function zn(t,e){return Gs.call(t,e)||"object"==typeof t&&e in t&&null===uc(t)}function Wn(t,e){return e in Object(t)}function Yn(t,e,n){return t>=Dc(e,n)&&t=120&&l.length>=120)?new We(u&&l):X}l=t[0];var f=-1,p=a[0];t:for(;++f-1;)a!==t&&pc.call(a,s,1),pc.call(t,s,1);return t}function hr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var i=e[n];if(r==n||i!=o){var o=i;if(z(i))pc.call(t,i,1);else if(Ei(i,t))delete t[i];else{var u=gn(i),a=Oi(t,u);null!=a&&delete a[Qi(u)]}}}return t}function dr(t,e){return t+dc(wc()*(e-t+1))}function gr(t,e,n,r){for(var i=-1,o=yc(hc((e-t)/(n||1)),0),u=Array(o);o--;)u[r?o:++i]=t,t+=n;return u}function vr(t,e,n,r){e=Ei(e,t)?[e+""]:gn(e);for(var i=-1,o=e.length,u=o-1,a=t;null!=a&&++ie&&(e=-e>i?0:i+e),n=n>i?i:n,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r=i){for(;i>r;){var o=r+i>>>1,u=t[o];(n?e>=u:e>u)&&null!==u?r=o+1:i=o}return i}return Ar(t,e,ys,n)}function Ar(t,e,n,r){e=n(e);for(var i=0,o=t?t.length:0,u=e!==e,a=null===e,s=e===X;o>i;){var c=dc((i+o)/2),l=n(t[c]),f=l!==X,p=l===l;if(u)var h=p||r;else h=a?p&&f&&(r||null!=l):s?p&&(r||f):null==l?!1:r?e>=l:e>l;h?i=c+1:o=c}return Dc(o,kt)}function wr(t){return Cr(t)}function Cr(t,e){for(var n=0,r=t.length,i=t[0],o=e?e(i):i,u=o,a=1,s=[i];++n=et){var c=e?null:qc(t);if(c)return G(c);u=!1,i=Ye,s=new We}else s=e?[]:a;t:for(;++rr?e[r]:X);return u}function Br(t,e){if(e)return t.slice();var n=new t.constructor(t.length);return t.copy(n),n}function Or(t){var e=new t.constructor(t.byteLength);return new rc(e).set(new rc(t)),e}function Ir(t){return y(Y(t),o,new t.constructor)}function Tr(t){var e=new t.constructor(t.source,be.exec(t));return e.lastIndex=t.lastIndex,e}function jr(t){return y(G(t),u,new t.constructor)}function $r(t){return jc?Object(jc.call(t)):{}}function Pr(t,e){var n=e?Or(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function Rr(t,e,n,r){for(var i=-1,o=t.length,u=n.length,a=-1,s=e.length,c=yc(o-u,0),l=Array(s+c),f=!r;++ai)&&(l[n[i]]=t[i]);for(;c--;)l[a++]=t[i++];return l}function Lr(t,e,n,r){for(var i=-1,o=t.length,u=-1,a=n.length,s=-1,c=e.length,l=yc(o-a,0),f=Array(l+c),p=!r;++ii)&&(f[h+n[u]]=t[i++]);return f}function Nr(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n1?n[i-1]:X,u=i>2?n[2]:X;for(o="function"==typeof o?(i--,o):X,u&&bi(n[0],n[1],u)&&(o=3>i?X:o,i=1),e=Object(e);++ro&&u[0]!==c&&u[o-1]!==c?[]:V(u,c);if(o-=l.length,n>o)return oi(t,e,Xr,r.placeholder,X,u,l,X,X,n-o);var f=this&&this!==Ln&&this instanceof r?i:t;return a(f,this,u)}var i=Jr(t);return r}function Qr(t){return pu(function(e){e=Pn(e,1);var n=e.length,i=n,o=r.prototype.thru;for(t&&e.reverse();i--;){var u=e[i];if("function"!=typeof u)throw new zs(nt);if(o&&!a&&"wrapper"==fi(u))var a=new r([],!0)}for(i=a?i:n;++i=et)return a.plant(r).value();for(var i=0,o=n?e[i].apply(this,t):r;++im){var C=V(D,A);
+return oi(t,e,Xr,l.placeholder,n,D,C,a,s,c-m)}var b=p?n:this,E=h?b[t]:t;return m=D.length,a?D=Ii(D,a):g&&m>1&&D.reverse(),f&&m>s&&(D.length=s),this&&this!==Ln&&this instanceof l&&(E=v||Jr(E)),E.apply(b,D)}var f=e&pt,p=e&ot,h=e&ut,d=e&(st|ct),g=e&dt,v=h?X:Jr(t);return l}function ti(t,e){return function(n,r){return Gn(n,t,e(r),{})}}function ei(t){return pu(function(e){return e=v(Pn(e,1),pi()),pu(function(n){var r=this;return t(e,function(t){return a(t,r,n)})})})}function ni(t,e,n){e=ca(e);var r=K(t);if(!e||r>=e)return"";var i=e-r;n=n===X?" ":n+"";var o=ns(n,hc(i/K(n)));return vn.test(n)?J(o).slice(0,i).join(""):o.slice(0,i)}function ri(t,e,n,r){function i(){for(var e=-1,s=arguments.length,c=-1,l=r.length,f=Array(l+s),p=this&&this!==Ln&&this instanceof i?u:t;++ce?1:-1:fa(r)||0,gr(e,n,r,t)}}function oi(t,e,n,r,i,o,u,a,s,c){var l=e&st,f=a?Nr(a):X,p=l?u:X,h=l?X:u,d=l?o:X,g=l?X:o;e|=l?lt:ft,e&=~(l?ft:lt),e&at||(e&=~(ot|ut));var v=[t,e,i,d,p,g,h,f,s,c],m=n.apply(X,v);return xi(t)&&Wc(m,v),m.placeholder=r,m}function ui(t){var e=Ms[t];return function(t,n){if(t=fa(t),n=ca(n)){var r=(da(t)+"e").split("e"),i=e(r[0]+"e"+(+r[1]+n));return r=(da(i)+"e").split("e"),+(r[0]+"e"+(+r[1]-n))}return e(t)}}function ai(t,e,n,r,i,o,u,a){var s=e&ut;if(!s&&"function"!=typeof t)throw new zs(nt);var c=r?r.length:0;if(c||(e&=~(lt|ft),r=i=X),u=u===X?u:yc(ca(u),0),a=a===X?a:ca(a),c-=i?i.length:0,e&ft){var l=r,f=i;r=i=X}var p=s?X:Mc(t),h=[t,e,n,r,i,l,f,o,u,a];if(p&&ki(h,p),t=h[0],e=h[1],n=h[2],r=h[3],i=h[4],a=h[9]=null==h[9]?s?0:t.length:yc(h[9]-c,0),!a&&e&(st|ct)&&(e&=~(st|ct)),e&&e!=ot)d=e==st||e==ct?Zr(t,e,a):e!=lt&&e!=(ot|lt)||i.length?Xr.apply(X,h):ri(t,e,n,r);else var d=Vr(t,e,n);var g=p?Uc:Wc;return g(d,h)}function si(t,e,n,r,i,o){var u=-1,a=i&vt,s=i>,c=t.length,l=e.length;if(c!=l&&!(a&&l>c))return!1;var f=o.get(t);if(f)return f==e;var p=!0;for(o.set(t,e);++ui,u=r==pt&&n==st||r==pt&&n==ht&&t[7].length<=e[8]||r==(pt|ht)&&e[7].length<=e[8]&&n==st;if(!o&&!u)return t;r&ot&&(t[2]=e[2],i|=n&ot?0:at);var a=e[3];if(a){var s=t[3];t[3]=s?Rr(s,a,e[4]):Nr(a),t[4]=s?V(t[3],it):Nr(e[4])}return a=e[5],a&&(s=t[5],t[5]=s?Lr(s,a,e[6]):Nr(a),t[6]=s?V(t[5],it):Nr(e[6])),a=e[7],a&&(t[7]=Nr(a)),r&pt&&(t[8]=null==t[8]?e[8]:Dc(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=i,t}function Bi(t,e,n,r,i,o){return Uu(t)&&Uu(e)&&or(t,e,X,Bi,o.set(e,t)),t}function Oi(t,e){return 1==e.length?t:Ea(t,mr(e,0,-1))}function Ii(t,e){for(var n=t.length,r=Dc(e.length,n),i=Nr(t);r--;){var o=e[r];t[r]=z(o,n)?i[o]:X}return t}function Ti(t){var e=[];return da(t).replace(ge,function(t,n,r,i){e.push(r?i.replace(we,"$1"):n||t)}),e}function ji(t){if(t instanceof i)return t.clone();var e=new r(t.__wrapped__,t.__chain__);return e.__actions__=Nr(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}function $i(t,e){e=yc(ca(e),0);var n=t?t.length:0;if(!n||1>e)return[];for(var r=0,i=0,o=Array(hc(n/e));n>r;)o[i++]=mr(t,r,r+=e);return o}function Pi(t){for(var e=-1,n=t?t.length:0,r=0,i=[];++ee?0:e,r)):[]}function Li(t,e,n){var r=t?t.length:0;return r?(e=n||e===X?1:ca(e),e=r-e,mr(t,0,0>e?0:e)):[]}function Ni(t,e){return t&&t.length?xr(t,pi(e,3),!0,!0):[]}function Ui(t,e){return t&&t.length?xr(t,pi(e,3),!0):[]}function qi(t,e,n,r){var i=t?t.length:0;return i?(n&&"number"!=typeof n&&bi(t,e,n)&&(n=0,r=i),jn(t,e,n,r)):[]}function Mi(t,e){return t&&t.length?b(t,pi(e,3)):-1}function Hi(t,e){return t&&t.length?b(t,pi(e,3),!0):-1}function zi(t){var e=t?t.length:0;return e?Pn(t,1):[]}function Wi(t){var e=t?t.length:0;return e?Pn(t,Et):[]}function Yi(t,e){var n=t?t.length:0;return n?(e=e===X?1:ca(e),Pn(t,e)):[]}function Vi(t){for(var e=-1,n=t?t.length:0,r={};++en&&(n=yc(r+n,0)),E(t,e,n)):-1}function Ji(t){return Li(t,1)}function Zi(t,e){return t?vc.call(t,e):""}function Qi(t){var e=t?t.length:0;return e?t[e-1]:X}function Xi(t,e,n){var r=t?t.length:0;if(!r)return-1;var i=r;if(n!==X&&(i=ca(n),i=(0>i?yc(r+i,0):Dc(i,r-1))+1),e!==e)return M(t,i,!0);for(;i--;)if(t[i]===e)return i;return-1}function to(t,e){return t&&t.length&&e&&e.length?pr(t,e):t}function eo(t,e,n){return t&&t.length&&e&&e.length?pr(t,e,pi(n)):t}function no(t,e,n){return t&&t.length&&e&&e.length?pr(t,e,X,n):t}function ro(t,e){var n=[];if(!t||!t.length)return n;var r=-1,i=[],o=t.length;for(e=pi(e,3);++rr&&Cu(t[r],e))return r}return-1}function co(t,e){return Dr(t,e,!0)}function lo(t,e,n){return Ar(t,e,pi(n),!0)}function fo(t,e){var n=t?t.length:0;if(n){var r=Dr(t,e,!0)-1;if(Cu(t[r],e))return r}return-1}function po(t){return t&&t.length?wr(t):[]}function ho(t,e){return t&&t.length?Cr(t,pi(e)):[]}function go(t){return Ri(t,1)}function vo(t,e,n){return t&&t.length?(e=n||e===X?1:ca(e),mr(t,0,0>e?0:e)):[]}function mo(t,e,n){var r=t?t.length:0;return r?(e=n||e===X?1:ca(e),e=r-e,mr(t,0>e?0:e,r)):[]}function yo(t,e){return t&&t.length?xr(t,pi(e,3),!1,!0):[]}function Do(t,e){return t&&t.length?xr(t,pi(e,3)):[]}function Ao(t){return t&&t.length?br(t):[]}function wo(t,e){return t&&t.length?br(t,pi(e)):[]}function Co(t,e){return t&&t.length?br(t,X,e):[]}function bo(t){if(!t||!t.length)return[];var e=0;return t=h(t,function(t){return Su(t)?(e=yc(t.length,e),!0):void 0}),k(e,function(e){return v(t,lr(e))})}function Eo(t,e){if(!t||!t.length)return[];var n=bo(t);return null==e?n:v(n,function(t){return a(e,X,t)})}function _o(t,e){return kr(t||[],e||[],sn)}function xo(t,e){return kr(t||[],e||[],vr)}function Fo(t){var n=e(t);return n.__chain__=!0,n}function So(t,e){return e(t),t}function ko(t,e){return e(t)}function Bo(){return Fo(this)}function Oo(){return new r(this.value(),this.__chain__)}function Io(t){return this.map(t).flatten()}function To(){this.__values__===X&&(this.__values__=sa(this.value()));var t=this.__index__>=this.__values__.length,e=t?X:this.__values__[this.__index__++];return{done:t,value:e}}function jo(){return this}function $o(t){for(var e,r=this;r instanceof n;){var i=ji(r);i.__index__=0,i.__values__=X,e?o.__wrapped__=i:e=i;var o=i;r=r.__wrapped__}return o.__wrapped__=t,e}function Po(){var t=this.__wrapped__;if(t instanceof i){var e=t;return this.__actions__.length&&(e=new i(this)),e=e.reverse(),e.__actions__.push({func:ko,args:[io],thisArg:X}),new r(e,this.__chain__)}return this.thru(io)}function Ro(){return Fr(this.__wrapped__,this.__actions__)}function Lo(t,e,n){var r=xl(t)?p:In;return n&&bi(t,e,n)&&(e=X),r(t,pi(e,3))}function No(t,e){var n=xl(t)?h:$n;return n(t,pi(e,3))}function Uo(t,e){if(e=pi(e,3),xl(t)){var n=b(t,e);return n>-1?t[n]:X}return C(t,e,Pc)}function qo(t,e){if(e=pi(e,3),xl(t)){var n=b(t,e,!0);return n>-1?t[n]:X}return C(t,e,Rc)}function Mo(t,e){return Pn(Yo(t,e),1)}function Ho(t,e){return"function"==typeof e&&xl(t)?l(t,e):Pc(t,hn(e))}function zo(t,e){return"function"==typeof e&&xl(t)?f(t,e):Rc(t,hn(e))}function Wo(t,e,n,r){t=Fu(t)?t:Ma(t),n=n&&!r?ca(n):0;var i=t.length;return 0>n&&(n=yc(i+n,0)),ta(t)?i>=n&&t.indexOf(e,n)>-1:!!i&&E(t,e,n)>-1}function Yo(t,e){var n=xl(t)?v:nr;return n(t,pi(e,3))}function Vo(t,e,n,r){return null==t?[]:(xl(e)||(e=null==e?[]:[e]),n=r?X:n,xl(n)||(n=null==n?[]:[n]),ar(t,e,n))}function Go(t,e,n){var r=xl(t)?y:x,i=arguments.length<3;return r(t,pi(e,4),n,i,Pc)}function Ko(t,e,n){var r=xl(t)?D:x,i=arguments.length<3;return r(t,pi(e,4),n,i,Rc)}function Jo(t,e){var n=xl(t)?h:$n;return e=pi(e,3),n(t,function(t,n,r){return!e(t,n,r)})}function Zo(t){var e=Fu(t)?t:Ma(t),n=e.length;return n>0?e[dr(0,n-1)]:X}function Qo(t,e){var n=-1,r=sa(t),i=r.length,o=i-1;for(e=En(ca(e),0,i);++n0&&(n=e.apply(this,arguments)),1>=t&&(e=X),n}}function ou(t,e,n){e=n?X:e;var r=ai(t,st,X,X,X,X,X,e);return r.placeholder=ou.placeholder,r}function uu(t,e,n){e=n?X:e;var r=ai(t,ct,X,X,X,X,X,e);return r.placeholder=uu.placeholder,r}function au(t,e,n){function r(){d&&ic(d),l&&ic(l),v=0,c=l=h=d=g=X}function i(e,n){n&&ic(n),l=d=g=X,e&&(v=ml(),f=t.apply(h,c),d||l||(c=h=X))}function o(){var t=e-(ml()-p);0>=t||t>e?i(g,l):d=fc(o,t)}function u(){return(d&&g||l&&D)&&(f=t.apply(h,c)),r(),f}function a(){i(D,d)}function s(){if(c=arguments,p=ml(),h=this,g=D&&(d||!m),y===!1)var n=m&&!d;else{v||l||m||(v=p);var r=y-(p-v),i=(0>=r||r>y)&&(m||l);i?(l&&(l=ic(l)),v=p,f=t.apply(h,c)):l||(l=fc(a,r))}return i&&d?d=ic(d):d||e===y||(d=fc(o,e)),n&&(i=!0,f=t.apply(h,c)),!i||d||l||(c=h=X),f}var c,l,f,p,h,d,g,v=0,m=!1,y=!1,D=!0;if("function"!=typeof t)throw new zs(nt);return e=fa(e)||0,Uu(n)&&(m=!!n.leading,y="maxWait"in n&&yc(fa(n.maxWait)||0,e),D="trailing"in n?!!n.trailing:D),s.cancel=r,s.flush=u,s}function su(t){return ai(t,dt)}function cu(t,e){if("function"!=typeof t||e&&"function"!=typeof e)throw new zs(nt);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var u=t.apply(this,r);return n.cache=o.set(i,u),u};return n.cache=new cu.Cache,n}function lu(t){if("function"!=typeof t)throw new zs(nt);return function(){return!t.apply(this,arguments)}}function fu(t){return iu(2,t)}function pu(t,e){if("function"!=typeof t)throw new zs(nt);return e=yc(e===X?t.length-1:ca(e),0),function(){for(var n=arguments,r=-1,i=yc(n.length-e,0),o=Array(i);++re}function Eu(t,e){return t>=e}function _u(t){return Su(t)&&Gs.call(t,"callee")&&(!lc.call(t,"callee")||Zs.call(t)==Ot)}function xu(t){return qu(t)&&Zs.call(t)==Vt}function Fu(t){return null!=t&&Nu(Hc(t))&&!Ru(t)}function Su(t){return qu(t)&&Fu(t)}function ku(t){return t===!0||t===!1||qu(t)&&Zs.call(t)==Tt}function Bu(t){return qu(t)&&Zs.call(t)==jt}function Ou(t){return!!t&&1===t.nodeType&&qu(t)&&!Ju(t)}function Iu(t){if(Fu(t)&&(xl(t)||ta(t)||Ru(t.splice)||_u(t)))return!t.length;for(var e in t)if(Gs.call(t,e))return!1;return!0}function Tu(t,e){return Jn(t,e)}function ju(t,e,n){n="function"==typeof n?n:X;var r=n?n(t,e):X;return r===X?Jn(t,e,n):!!r}function $u(t){return qu(t)?Zs.call(t)==$t||"string"==typeof t.message&&"string"==typeof t.name:!1}function Pu(t){return"number"==typeof t&&gc(t)}function Ru(t){var e=Uu(t)?Zs.call(t):"";return e==Pt||e==Rt}function Lu(t){return"number"==typeof t&&t==ca(t)}function Nu(t){return"number"==typeof t&&t>-1&&t%1==0&&_t>=t}function Uu(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function qu(t){return!!t&&"object"==typeof t}function Mu(t){return qu(t)&&vi(t)==Lt}function Hu(t,e){return t===e||Qn(t,e,hi(e))}function zu(t,e,n){return n="function"==typeof n?n:X,Qn(t,e,hi(e),n)}function Wu(t){return Ku(t)&&t!=+t}function Yu(t){return null==t?!1:Ru(t)?Xs.test(Vs.call(t)):qu(t)&&(H(t)?Xs:Fe).test(t)}function Vu(t){return null===t}function Gu(t){return null==t}function Ku(t){return"number"==typeof t||qu(t)&&Zs.call(t)==Nt}function Ju(t){if(!qu(t)||Zs.call(t)!=Ut||H(t))return!1;var e=uc(t);if(null===e)return!0;var n=e.constructor;return"function"==typeof n&&n instanceof n&&Vs.call(n)==Js}function Zu(t){return Uu(t)&&Zs.call(t)==qt}function Qu(t){return Lu(t)&&t>=-_t&&_t>=t}function Xu(t){return qu(t)&&vi(t)==Mt}function ta(t){return"string"==typeof t||!xl(t)&&qu(t)&&Zs.call(t)==Ht}function ea(t){return"symbol"==typeof t||qu(t)&&Zs.call(t)==zt}function na(t){return qu(t)&&Nu(t.length)&&!!Cn[Zs.call(t)]}function ra(t){return t===X}function ia(t){return qu(t)&&vi(t)==Wt}function oa(t){return qu(t)&&Zs.call(t)==Yt}function ua(t,e){return e>t}function aa(t,e){return e>=t}function sa(t){if(!t)return[];if(Fu(t))return ta(t)?J(t):Nr(t);if(sc&&t[sc])return W(t[sc]());var e=vi(t),n=e==Lt?Y:e==Mt?G:Ma;return n(t)}function ca(t){if(!t)return 0===t?t:0;if(t=fa(t),t===Et||t===-Et){var e=0>t?-1:1;return e*xt}var n=t%1;return t===t?n?t-n:t:0}function la(t){return t?En(ca(t),0,St):0}function fa(t){if(Uu(t)){var e=Ru(t.valueOf)?t.valueOf():t;t=Uu(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(ye,"");var n=xe.test(t);return n||Se.test(t)?Bn(t.slice(2),n?2:8):_e.test(t)?Ft:+t}function pa(t){return Ur(t,Sa(t))}function ha(t){return En(ca(t),-_t,_t)}function da(t){if("string"==typeof t)return t;if(null==t)return"";if(ea(t))return $c?$c.call(t):"";var e=t+"";return"0"==e&&1/t==-Et?"-0":e}function ga(t,e){var n=Fn(t);return e?ln(n,e):n}function va(t,e){return C(t,pi(e,3),Un,!0)}function ma(t,e){return C(t,pi(e,3),qn,!0)}function ya(t,e){return null==t?t:Lc(t,hn(e),Sa)}function Da(t,e){return null==t?t:Nc(t,hn(e),Sa)}function Aa(t,e){return t&&Un(t,hn(e))}function wa(t,e){return t&&qn(t,hn(e))}function Ca(t){return null==t?[]:Mn(t,Fa(t))}function ba(t){return null==t?[]:Mn(t,Sa(t))}function Ea(t,e,n){var r=null==t?X:Hn(t,e);return r===X?n:r}function _a(t,e){return yi(t,e,zn)}function xa(t,e){return yi(t,e,Wn)}function Fa(t){var e=Fi(t);if(!e&&!Fu(t))return tr(t);var n=Ci(t),r=!!n,i=n||[],o=i.length;for(var u in t)!zn(t,u)||r&&("length"==u||z(u,o))||e&&"constructor"==u||i.push(u);return i}function Sa(t){for(var e=-1,n=Fi(t),r=er(t),i=r.length,o=Ci(t),u=!!o,a=o||[],s=a.length;++ee){var r=t;t=e,e=r}if(n||t%1||e%1){var i=wc();return Dc(t+i*(e-t+kn("1e-"+((i+"").length-1))),e)}return dr(t,e)}function Va(t){return Yl(da(t).toLowerCase())}function Ga(t){return t=da(t),t&&t.replace(Be,N).replace(dn,"")}function Ka(t,e,n){t=da(t),e="string"==typeof e?e:e+"";var r=t.length;return n=n===X?r:En(ca(n),0,r),n-=e.length,n>=0&&t.indexOf(e,n)==n}function Ja(t){return t=da(t),t&&ce.test(t)?t.replace(ae,U):t}function Za(t){return t=da(t),t&&me.test(t)?t.replace(ve,"\\$&"):t}function Qa(t,e,n){t=da(t),e=ca(e);var r=K(t);if(!e||r>=e)return t;var i=(e-r)/2,o=dc(i),u=hc(i);return ni("",o,n)+t+ni("",u,n)}function Xa(t,e,n){return t=da(t),t+ni(t,e,n)}function ts(t,e,n){return t=da(t),ni(t,e,n)+t}function es(t,e,n){return n||null==e?e=0:e&&(e=+e),t=da(t).replace(ye,""),Ac(t,e||(Ee.test(t)?16:10))}function ns(t,e){t=da(t),e=ca(e);var n="";if(!t||1>e||e>_t)return n;do e%2&&(n+=t),e=dc(e/2),t+=t;while(e);return n}function rs(){var t=arguments,e=da(t[0]);return t.length<3?e:e.replace(t[1],t[2])}function is(t,e,n){return da(t).split(e,n)}function os(t,e,n){return t=da(t),n=En(ca(n),0,t.length),t.lastIndexOf(e,n)==n}function us(t,n,r){var i=e.templateSettings;r&&bi(t,n,r)&&(n=X),t=da(t),n=Bl({},n,i,un);var o,u,a=Bl({},n.imports,i.imports,un),s=Fa(a),c=I(a,s),l=0,f=n.interpolate||Oe,p="__p += '",h=Hs((n.escape||Oe).source+"|"+f.source+"|"+(f===pe?Ce:Oe).source+"|"+(n.evaluate||Oe).source+"|$","g"),d="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++wn+"]")+"\n";t.replace(h,function(e,n,r,i,a,s){return r||(r=i),p+=t.slice(l,s).replace(Ie,q),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),a&&(u=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+e.length,e}),p+="';\n";var g=n.variable;g||(p="with (obj) {\n"+p+"\n}\n"),p=(u?p.replace(re,""):p).replace(ie,"$1").replace(oe,"$1;"),p="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var v=Jl(function(){return Function(s,d+"return "+p).apply(X,c)});if(v.source=p,$u(v))throw v;return v}function as(t){return da(t).toLowerCase()}function ss(t){return da(t).toUpperCase()}function cs(t,e,n){if(t=da(t),!t)return t;if(n||e===X)return t.replace(ye,"");if(e+="",!e)return t;var r=J(t),i=J(e);return r.slice(T(r,i),j(r,i)+1).join("")}function ls(t,e,n){if(t=da(t),!t)return t;if(n||e===X)return t.replace(Ae,"");if(e+="",!e)return t;var r=J(t);return r.slice(0,j(r,J(e))+1).join("")}function fs(t,e,n){if(t=da(t),!t)return t;if(n||e===X)return t.replace(De,"");if(e+="",!e)return t;var r=J(t);return r.slice(T(r,J(e))).join("")}function ps(t,e){var n=mt,r=yt;if(Uu(e)){var i="separator"in e?e.separator:i;n="length"in e?ca(e.length):n,r="omission"in e?da(e.omission):r}t=da(t);var o=t.length;if(vn.test(t)){var u=J(t);o=u.length}if(n>=o)return t;var a=n-K(r);if(1>a)return r;var s=u?u.slice(0,a).join(""):t.slice(0,a);if(i===X)return s+r;if(u&&(a+=s.length-a),Zu(i)){if(t.slice(a).search(i)){var c,l=s;for(i.global||(i=Hs(i.source,da(be.exec(i))+"g")),i.lastIndex=0;c=i.exec(l);)var f=c.index;s=s.slice(0,f===X?a:f)}}else if(t.indexOf(i,a)!=a){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+r}function hs(t){return t=da(t),t&&se.test(t)?t.replace(ue,Z):t}function ds(t,e,n){return t=da(t),e=n?X:e,e===X&&(e=Dn.test(t)?yn:mn),t.match(e)||[]}function gs(t){var e=t?t.length:0,n=pi();return t=e?v(t,function(t){if("function"!=typeof t[1])throw new zs(nt);return[n(t[0]),t[1]]}):[],pu(function(n){for(var r=-1;++rt||t>_t)return[];var n=St,r=Dc(t,St);e=hn(e),t-=St;for(var i=k(r,e);++n0){if(++t>=Dt)return n}else t=0;return Uc(n,r)}}(),Yc=pu(function(t,e){return xl(t)||(t=null==t?[]:[Object(t)]),e=Pn(e,1),c(t,e)}),Vc=pu(function(t,e){return Su(t)?On(t,Pn(e,1,!0)):[]}),Gc=pu(function(t,e){var n=Qi(e);return Su(n)&&(n=X),Su(t)?On(t,Pn(e,1,!0),pi(n)):[]}),Kc=pu(function(t,e){var n=Qi(e);return Su(n)&&(n=X),Su(t)?On(t,Pn(e,1,!0),X,n):[]}),Jc=pu(function(t){var e=v(t,pn);return e.length&&e[0]===t[0]?Vn(e):[]}),Zc=pu(function(t){var e=Qi(t),n=v(t,pn);return e===Qi(n)?e=X:n.pop(),n.length&&n[0]===t[0]?Vn(n,pi(e)):[]}),Qc=pu(function(t){var e=Qi(t),n=v(t,pn);return e===Qi(n)?e=X:n.pop(),n.length&&n[0]===t[0]?Vn(n,X,e):[]}),Xc=pu(to),tl=pu(function(t,e){e=v(Pn(e,1),String);var n=fn(t,e);return hr(t,e.sort(P)),n}),el=pu(function(t){return br(Pn(t,1,!0))}),nl=pu(function(t){var e=Qi(t);return Su(e)&&(e=X),br(Pn(t,1,!0),pi(e))}),rl=pu(function(t){var e=Qi(t);return Su(e)&&(e=X),br(Pn(t,1,!0),X,e)}),il=pu(function(t,e){return Su(t)?On(t,e):[]}),ol=pu(function(t){return Sr(h(t,Su))}),ul=pu(function(t){var e=Qi(t);return Su(e)&&(e=X),Sr(h(t,Su),pi(e))}),al=pu(function(t){var e=Qi(t);return Su(e)&&(e=X),Sr(h(t,Su),X,e)}),sl=pu(bo),cl=pu(function(t){var e=t.length,n=e>1?t[e-1]:X;return n="function"==typeof n?(t.pop(),n):X,Eo(t,n)}),ll=pu(function(t){t=Pn(t,1);var e=t.length,n=e?t[0]:0,o=this.__wrapped__,u=function(e){return fn(e,t)};return!(e>1||this.__actions__.length)&&o instanceof i&&z(n)?(o=o.slice(n,+n+(e?1:0)),o.__actions__.push({func:ko,args:[u],thisArg:X}),new r(o,this.__chain__).thru(function(t){return e&&!t.length&&t.push(X),t})):this.thru(u)}),fl=Hr(function(t,e,n){Gs.call(t,n)?++t[n]:t[n]=1}),pl=Hr(function(t,e,n){Gs.call(t,n)?t[n].push(e):t[n]=[e]}),hl=pu(function(t,e,n){var r=-1,i="function"==typeof e,o=Ei(e),u=Fu(t)?Array(t.length):[];return Pc(t,function(t){var s=i?e:o&&null!=t?t[e]:X;u[++r]=s?a(s,t,n):Kn(t,e,n)}),u}),dl=Hr(function(t,e,n){t[n]=e}),gl=Hr(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]}),vl=pu(function(t,e){if(null==t)return[];var n=e.length;return n>1&&bi(t,e[0],e[1])?e=[]:n>2&&bi(e[0],e[1],e[2])&&(e.length=1),ar(t,Pn(e,1),[])}),ml=Us.now,yl=pu(function(t,e,n){var r=ot;if(n.length){var i=V(n,gi(yl));r|=lt}return ai(t,r,e,n,i)}),Dl=pu(function(t,e,n){var r=ot|ut;if(n.length){var i=V(n,gi(Dl));r|=lt}return ai(e,r,t,n,i)}),Al=pu(function(t,e){return Sn(t,1,e)}),wl=pu(function(t,e,n){return Sn(t,fa(e)||0,n)}),Cl=pu(function(t,e){e=v(Pn(e,1),pi());var n=e.length;return pu(function(r){for(var i=-1,o=Dc(r.length,n);++i0||0>e)?new i(n):(0>t?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==X&&(e=ca(e),n=0>e?n.dropRight(-e):n.take(e-t)),n)},i.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},i.prototype.toArray=function(){return this.take(St)},Un(i.prototype,function(t,n){var o=/^(?:filter|find|map|reject)|While$/.test(n),u=/^(?:head|last)$/.test(n),a=e[u?"take"+("last"==n?"Right":""):n],s=u||/^find/.test(n);a&&(e.prototype[n]=function(){var n=this.__wrapped__,c=u?[1]:arguments,l=n instanceof i,f=c[0],p=l||xl(n),h=function(t){var n=a.apply(e,m([t],c));return u&&d?n[0]:n};p&&o&&"function"==typeof f&&1!=f.length&&(l=p=!1);var d=this.__chain__,g=!!this.__actions__.length,v=s&&!d,y=l&&!g;if(!s&&p){n=y?n:new i(this);var D=t.apply(n,c);return D.__actions__.push({func:ko,args:[h],thisArg:X}),new r(D,d)}return v&&y?t.apply(this,c):(D=this.thru(h),v?u?D.value()[0]:D.value():D)})}),l(["pop","push","shift","sort","splice","unshift"],function(t){var n=Ws[t],r=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);e.prototype[t]=function(){var t=arguments;return i&&!this.__chain__?n.apply(this.value(),t):this[r](function(e){return n.apply(e,t)})}}),Un(i.prototype,function(t,n){var r=e[n];if(r){var i=r.name+"",o=kc[i]||(kc[i]=[]);o.push({name:n,func:r})}}),kc[Xr(X,ut).name]=[{name:"wrapper",func:X}],i.prototype.clone=$,i.prototype.reverse=ke,i.prototype.value=Te,e.prototype.at=ll,e.prototype.chain=Bo,e.prototype.commit=Oo,e.prototype.flatMap=Io,e.prototype.next=To,e.prototype.plant=$o,e.prototype.reverse=Po,e.prototype.toJSON=e.prototype.valueOf=e.prototype.value=Ro,sc&&(e.prototype[sc]=jo),e}var X,tt="4.6.1",et=200,nt="Expected a function",rt="__lodash_hash_undefined__",it="__lodash_placeholder__",ot=1,ut=2,at=4,st=8,ct=16,lt=32,ft=64,pt=128,ht=256,dt=512,gt=1,vt=2,mt=30,yt="...",Dt=150,At=16,wt=1,Ct=2,bt=3,Et=1/0,_t=9007199254740991,xt=1.7976931348623157e308,Ft=NaN,St=4294967295,kt=St-1,Bt=St>>>1,Ot="[object Arguments]",It="[object Array]",Tt="[object Boolean]",jt="[object Date]",$t="[object Error]",Pt="[object Function]",Rt="[object GeneratorFunction]",Lt="[object Map]",Nt="[object Number]",Ut="[object Object]",qt="[object RegExp]",Mt="[object Set]",Ht="[object String]",zt="[object Symbol]",Wt="[object WeakMap]",Yt="[object WeakSet]",Vt="[object ArrayBuffer]",Gt="[object Float32Array]",Kt="[object Float64Array]",Jt="[object Int8Array]",Zt="[object Int16Array]",Qt="[object Int32Array]",Xt="[object Uint8Array]",te="[object Uint8ClampedArray]",ee="[object Uint16Array]",ne="[object Uint32Array]",re=/\b__p \+= '';/g,ie=/\b(__p \+=) '' \+/g,oe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ue=/&(?:amp|lt|gt|quot|#39|#96);/g,ae=/[&<>"'`]/g,se=RegExp(ue.source),ce=RegExp(ae.source),le=/<%-([\s\S]+?)%>/g,fe=/<%([\s\S]+?)%>/g,pe=/<%=([\s\S]+?)%>/g,he=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,de=/^\w*$/,ge=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,ve=/[\\^$.*+?()[\]{}|]/g,me=RegExp(ve.source),ye=/^\s+|\s+$/g,De=/^\s+/,Ae=/\s+$/,we=/\\(\\)?/g,Ce=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,be=/\w*$/,Ee=/^0x/i,_e=/^[-+]0x[0-9a-f]+$/i,xe=/^0b[01]+$/i,Fe=/^\[object .+?Constructor\]$/,Se=/^0o[0-7]+$/i,ke=/^(?:0|[1-9]\d*)$/,Be=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,Oe=/($^)/,Ie=/['\n\r\u2028\u2029\\]/g,Te="\\ud800-\\udfff",je="\\u0300-\\u036f\\ufe20-\\ufe23",$e="\\u20d0-\\u20f0",Pe="\\u2700-\\u27bf",Re="a-z\\xdf-\\xf6\\xf8-\\xff",Le="\\xac\\xb1\\xd7\\xf7",Ne="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ue="\\u2018\\u2019\\u201c\\u201d",qe=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Me="A-Z\\xc0-\\xd6\\xd8-\\xde",He="\\ufe0e\\ufe0f",ze=Le+Ne+Ue+qe,We="["+Te+"]",Ye="["+ze+"]",Ve="["+je+$e+"]",Ge="\\d+",Ke="["+Pe+"]",Je="["+Re+"]",Ze="[^"+Te+ze+Ge+Pe+Re+Me+"]",Qe="\\ud83c[\\udffb-\\udfff]",Xe="(?:"+Ve+"|"+Qe+")",tn="[^"+Te+"]",en="(?:\\ud83c[\\udde6-\\uddff]){2}",nn="[\\ud800-\\udbff][\\udc00-\\udfff]",rn="["+Me+"]",on="\\u200d",un="(?:"+Je+"|"+Ze+")",an="(?:"+rn+"|"+Ze+")",sn=Xe+"?",cn="["+He+"]?",ln="(?:"+on+"(?:"+[tn,en,nn].join("|")+")"+cn+sn+")*",fn=cn+sn+ln,pn="(?:"+[Ke,en,nn].join("|")+")"+fn,hn="(?:"+[tn+Ve+"?",Ve,en,nn,We].join("|")+")",dn=RegExp(Ve,"g"),gn=RegExp(Qe+"(?="+Qe+")|"+hn+fn,"g"),vn=RegExp("["+on+Te+je+$e+He+"]"),mn=/[a-zA-Z0-9]+/g,yn=RegExp([rn+"?"+Je+"+(?="+[Ye,rn,"$"].join("|")+")",an+"+(?="+[Ye,rn+un,"$"].join("|")+")",rn+"?"+un+"+",rn+"+",Ge,pn].join("|"),"g"),Dn=/[a-z][A-Z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,An=["Array","Buffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Reflect","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],wn=-1,Cn={};Cn[Gt]=Cn[Kt]=Cn[Jt]=Cn[Zt]=Cn[Qt]=Cn[Xt]=Cn[te]=Cn[ee]=Cn[ne]=!0,Cn[Ot]=Cn[It]=Cn[Vt]=Cn[Tt]=Cn[jt]=Cn[$t]=Cn[Pt]=Cn[Lt]=Cn[Nt]=Cn[Ut]=Cn[qt]=Cn[Mt]=Cn[Ht]=Cn[Wt]=!1;var bn={};bn[Ot]=bn[It]=bn[Vt]=bn[Tt]=bn[jt]=bn[Gt]=bn[Kt]=bn[Jt]=bn[Zt]=bn[Qt]=bn[Lt]=bn[Nt]=bn[Ut]=bn[qt]=bn[Mt]=bn[Ht]=bn[zt]=bn[Xt]=bn[te]=bn[ee]=bn[ne]=!0,bn[$t]=bn[Pt]=bn[Wt]=!1;var En={"À":"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"},_n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},xn={"&":"&","<":"<",">":">",""":'"',"'":"'","`":"`"},Fn={"function":!0,object:!0},Sn={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},kn=parseFloat,Bn=parseInt,On=Fn[typeof e]&&e&&!e.nodeType?e:X,In=Fn[typeof t]&&t&&!t.nodeType?t:X,Tn=In&&In.exports===On?On:X,jn=$(On&&In&&"object"==typeof i&&i),$n=$(Fn[typeof self]&&self),Pn=$(Fn[typeof window]&&window),Rn=$(Fn[typeof this]&&this),Ln=jn||Pn!==(Rn&&Rn.window)&&Pn||$n||Rn||Function("return this")(),Nn=Q();(Pn||$n||{})._=Nn,r=function(){return Nn}.call(e,n,e,t),!(r!==X&&(t.exports=r))}).call(this)}).call(e,n(13)(t),function(){return this}())},function(t,e,n){"use strict";function r(t,e){e||(e={}),this.cid||(this.cid=a("state")),this._events={},this._values={},this._definition=Object.create(this._definition),e.parse&&(t=this.parse(t,e)),this.parent=e.parent,this.collection=e.collection,this._keyTree=new E,this._initCollections(),this._initChildren(),this._cache={},this._previousAttributes={},t&&this.set(t,s({silent:!0,initial:!0},e)),this._changed={},this._derived&&this._initDerived(),e.init!==!1&&this.initialize.apply(this,arguments)}function i(t,e,n,r){var i,o,u=t._definition[e]={};if(d(n))i=t._ensureValidType(n),i&&(u.type=i);else{if(Array.isArray(n)&&(o=n,n={type:o[0],required:o[1],"default":o[2]}),i=t._ensureValidType(n.type),i&&(u.type=i),n.required&&(u.required=!0),n["default"]&&"object"==typeof n["default"])throw new TypeError("The default value for "+e+" cannot be an object/array, must be a value or a function which returns a value/object/array");u["default"]=n["default"],u.allowNull=n.allowNull?n.allowNull:!1,n.setOnce&&(u.setOnce=!0),u.required&&void 0===u["default"]&&!u.setOnce&&(u["default"]=t._getDefaultForType(i)),u.test=n.test,u.values=n.values}return r&&(u.session=!0),i||(i=d(n)?n:n.type,console.warn("Invalid data type of `"+i+"` for `"+e+"` property. Use one of the default types or define your own")),Object.defineProperty(t,e,{set:function(t){this.set(e,t)},get:function(){if(!this._values)throw Error('You may be trying to `extend` a state object with "'+e+'" which has been defined in `props` on the object being extended');var t=this._values[e],n=this._dataTypes[u.type];if("undefined"!=typeof t)return n&&n.get&&(t=n.get(t)),t;var r=A(u,"default");if(this._values[e]=r,"undefined"!=typeof r){var i=this._getOnChangeForType(u.type);i(r,t,e)}return r}}),u}function o(t,e,n){var r=t._derived[e]={fn:m(n)?n:n.fn,cache:n.cache!==!1,depList:n.deps||[]};r.depList.forEach(function(n){t._deps[n]=C(t._deps[n]||[],[e])}),Object.defineProperty(t,e,{get:function(){return this._getDerivedProperty(e)},set:function(){throw new TypeError("`"+e+"` is a derived property, it can't be set directly.")}})}function u(t){var e,n=this;e=t&&t.hasOwnProperty("constructor")?t.constructor:function(){return n.apply(this,arguments)},s(e,n);var r=function(){this.constructor=e};if(r.prototype=n.prototype,e.prototype=new r,e.prototype._derived=s({},n.prototype._derived),e.prototype._deps=s({},n.prototype._deps),e.prototype._definition=s({},n.prototype._definition),e.prototype._collections=s({},n.prototype._collections),e.prototype._children=s({},n.prototype._children),e.prototype._dataTypes=s({},n.prototype._dataTypes||S),t)for(var u=["dataTypes","props","session","derived","collections","children"],a=0;a_;_++){if(l=x[_],u=f[l],o=typeof u,m=this._values[l],a=this._definition[l],!a){if(this._children[l]||this._collections[l]){g(u)||(u={}),this[l].set(u,n);continue}if("ignore"===E)continue;if("reject"===E)throw new TypeError('No "'+l+'" property defined on '+(this.type||"this")+' model and extraProperties not set to "ignore" or "allow"');if("allow"===E)a=this._createPropertyDefinition(l,"any");else if(E)throw new TypeError('Invalid value for extraProperties: "'+E+'"')}if(w=this._getCompareForType(a.type),C=this._getOnChangeForType(a.type),p=this._dataTypes[a.type],p&&p.set&&(s=p.set(u),u=s.val,o=s.type),a.test&&(c=a.test.call(this,u,o)))throw new TypeError("Property '"+l+"' failed validation with error: "+c);if(void 0===u&&a.required)throw new TypeError("Required property '"+l+"' must be of type "+a.type+". Tried to set "+u);if(null===u&&a.required&&!a.allowNull)throw new TypeError("Property '"+l+"' must be of type "+a.type+" (cannot be null). Tried to set "+u);if(a.type&&"any"!==a.type&&a.type!==o&&null!==u&&void 0!==u)throw new TypeError("Property '"+l+"' must be of type "+a.type+". Tried to set "+u);if(a.values&&!h(a.values,u)){var S=A(a,"default");if(v&&void 0!==S)u=S;else if(!v||v&&void 0!==u)throw new TypeError("Property '"+l+"' must be one of values: "+a.values.join(", ")+". Tried to set "+u)}if(D=y||!w(m,u,l),a.setOnce&&void 0!==m&&D)throw new TypeError("Property '"+l+"' can only be set once.");D?(C(u,m,l),y||(this._changed[l]=u,this._previousAttributes[l]=m,v&&delete this._values[l],d||i.push({prev:m,val:u,key:l})),v||(this._values[l]=u)):delete this._changed[l]}if(i.length&&(this._pending=!0),i.forEach(function(t){b.trigger("change:"+t.key,b,t.val,n)}),r)return this;for(;this._pending;)this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},get:function(t){return this[t]},toggle:function(t){var e=this._definition[t];if("boolean"===e.type)this[t]=!this[t];else{if(!e||!e.values)throw new TypeError("Can only toggle properties that are type `boolean` or have `values` array.");this[t]=_(e.values,this[t])}return this},previousAttributes:function(){return c(this._previousAttributes)},hasChanged:function(t){return null==t?!!Object.keys(this._changed).length:D(this._derived,t)?this._derived[t].depList.some(function(t){return this.hasChanged(t)},this):D(this._changed,t)},changedAttributes:function(t){if(!t)return this.hasChanged()?c(this._changed):!1;var e,n,r,i=!1,o=this._changing?this._previousAttributes:this.attributes;for(var u in t)n=this._definition[u],n&&(r=this._getCompareForType(n.type),r(o[u],e=t[u])||((i||(i={}))[u]=e));return i},toJSON:function(){return this.serialize()},unset:function(t,e){var n=this;t=Array.isArray(t)?t:[t],t.forEach(function(t){var r=n._definition[t];if(r){var i;return r.required?(i=A(r,"default"),n.set(t,i,e)):n.set(t,i,s({},e,{unset:!0}))}})},clear:function(t){var e=this;return Object.keys(this.attributes).forEach(function(n){e.unset(n,t)}),this},previous:function(t){return null!=t&&Object.keys(this._previousAttributes).length?this._previousAttributes[t]:null},_getDefaultForType:function(t){var e=this._dataTypes[t];return e&&e["default"]},_getCompareForType:function(t){var e=this._dataTypes[t];return e&&e.compare?w(e.compare,this):y},_getOnChangeForType:function(t){var e=this._dataTypes[t];return e&&e.onChange?w(e.onChange,this):F},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=s({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return n?(this.trigger("invalid",this,n,s(e||{},{validationError:n})),!1):!0},_createPropertyDefinition:function(t,e,n){return i(this,t,e,n)},_ensureValidType:function(t){return h(["string","number","boolean","array","object","date","state","any"].concat(Object.keys(this._dataTypes)),t)?t:void 0},getAttributes:function(t,e){t=s({session:!1,props:!1,derived:!1},t||{});var n,r,i={};for(var o in this._definition)r=this._definition[o],(t.session&&r.session||t.props&&!r.session)&&(n=e?this._values[o]:this[o],e&&n&&m(n.serialize)&&(n=n.serialize()),"undefined"==typeof n&&(n=A(r,"default")),"undefined"!=typeof n&&(i[o]=n));if(t.derived)for(var u in this._derived)i[u]=this[u];return i},_initDerived:function(){var t=this;p(this._derived,function(e,n){var r=t._derived[n];r.deps=r.depList;var i=function(e){e=e||{};var i=r.fn.call(t);t._cache[n]===i&&r.cache||(r.cache&&(t._previousAttributes[n]=t._cache[n]),t._cache[n]=i,t.trigger("change:"+n,t,t._cache[n]))};r.deps.forEach(function(e){t._keyTree.add(e,i)})}),this.on("all",function(e){x.test(e)&&t._keyTree.get(e.split(":")[1]).forEach(function(t){t()})},this)},_getDerivedProperty:function(t,e){return this._derived[t].cache?(!e&&this._cache.hasOwnProperty(t)||(this._cache[t]=this._derived[t].fn.apply(this)),this._cache[t]):this._derived[t].fn.apply(this)},_initCollections:function(){var t;if(this._collections)for(t in this._collections)this._safeSet(t,new this._collections[t](null,{parent:this}))},_initChildren:function(){var t;if(this._children)for(t in this._children)this._safeSet(t,new this._children[t]({},{parent:this})),this.listenTo(this[t],"all",this._getEventBubblingHandler(t))},_getEventBubblingHandler:function(t){return w(function(e,n,r){x.test(e)?this.trigger("change:"+t+"."+e.split(":")[1],n,r):"change"===e&&this.trigger("change",this)},this)},_verifyRequired:function(){var t=this.attributes;for(var e in this._definition)if(this._definition[e].required&&"undefined"==typeof t[e])return!1;return!0},_safeSet:function(t,e){if(t in this)throw new Error("Encountered namespace collision while setting instance property `"+t+"`");return this[t]=e,this}}),Object.defineProperties(r.prototype,{attributes:{get:function(){return this.getAttributes({props:!0,session:!0})}},all:{get:function(){return this.getAttributes({session:!0,props:!0,derived:!0})}},isState:{get:function(){return!0},set:function(){}}});var S={string:{"default":function(){return""}},date:{set:function(t){var e;if(null==t)e="object";else if(v(t))e="date",t=t.valueOf();else{var n=null,r=new Date(t).valueOf();isNaN(r)&&(r=new Date(parseInt(t,10)).valueOf(),isNaN(r)&&(n=!0)),t=r,e="date",n&&(e=typeof t)}return{val:t,type:e}},get:function(t){return null==t?t:new Date(t)},"default":function(){return new Date}},array:{set:function(t){return{val:t,type:Array.isArray(t)?"array":typeof t}},"default":function(){return[]}},object:{set:function(t){var e=typeof t;return"object"!==e&&void 0===t&&(t=null,e="object"),{val:t,type:e}},"default":function(){return{}}},state:{set:function(t){var e=t instanceof r||t&&t.isState;return e?{val:t,type:"state"}:{val:t,type:typeof t}},compare:function(t,e){return t===e},onChange:function(t,e,n){e&&this.stopListening(e),null!=t&&this.listenTo(t,"all",this._getEventBubblingHandler(n))}}};r.extend=u,t.exports=r},function(t,e,n){"use strict";var r=n(4),i=n(54),o=n(59),u=n(25),a=n(58),s=window.btoa||n(53);t.exports=function(t,e,c){var l=c.data,f=c.headers;r.isFormData(l)&&delete f["Content-Type"];var p=new XMLHttpRequest;if(!window.XDomainRequest||"withCredentials"in p||a(c.url)||(p=new window.XDomainRequest),c.auth){var h=c.auth.username||"",d=c.auth.password||"";f.Authorization="Basic "+s(h+":"+d)}if(p.open(c.method.toUpperCase(),i(c.url,c.params,c.paramsSerializer),!0),p.timeout=c.timeout,p.onload=function(){if(p){var n="getAllResponseHeaders"in p?o(p.getAllResponseHeaders()):null,r=-1!==["text",""].indexOf(c.responseType||"")?p.responseText:p.response,i={data:u(r,n,c.transformResponse),status:1223===p.status?204:p.status,statusText:1223===p.status?"No Content":p.statusText,headers:n,config:c,request:p};(i.status>=200&&i.status<300||!("status"in p)&&i.responseText?t:e)(i),p=null}},p.onerror=function(){e(new Error("Network Error")),p=null},r.isStandardBrowserEnv()){var g=n(56),v=c.withCredentials||a(c.url)?g.read(c.xsrfCookieName):void 0;v&&(f[c.xsrfHeaderName]=v)}if("setRequestHeader"in p&&r.forEach(f,function(t,e){"undefined"==typeof l&&"content-type"===e.toLowerCase()?delete f[e]:p.setRequestHeader(e,t)}),c.withCredentials&&(p.withCredentials=!0),c.responseType)try{p.responseType=c.responseType}catch(m){if("json"!==p.responseType)throw m}r.isArrayBuffer(l)&&(l=new DataView(l)),p.send(l)}},function(t,e,n){"use strict";var r=n(4);t.exports=function(t,e,n){return r.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){var r,i;!function(o,u){r=[n(75),n(71),n(129),n(47)],i=function(t,e,n,r){return o.Github=u(t,e,n,r)}.apply(e,r),!(void 0!==i&&(t.exports=i))}(this,function(t,e,n,r){function i(t){return e.encode(n.encode(t))}t.polyfill&&t.polyfill();var o=function(t){t=t||{};var e=t.apiUrl||"https://api.github.com",n=o._request=function(n,o,u,a,s){function c(){var t=o.indexOf("//")>=0?o:e+o;if(t+=/\?/.test(t)?"&":"?",u&&"object"==typeof u&&["GET","HEAD","DELETE"].indexOf(n)>-1)for(var r in u)u.hasOwnProperty(r)&&(t+="&"+encodeURIComponent(r)+"="+encodeURIComponent(u[r]));return t.replace(/(×tamp=\d+)/,"")+("undefined"!=typeof window?"×tamp="+(new Date).getTime():"")}var l={headers:{Accept:s?"application/vnd.github.v3.raw+json":"application/vnd.github.v3+json","Content-Type":"application/json;charset=UTF-8"},method:n,data:u?u:{},url:c()};return(t.token||t.username&&t.password)&&(l.headers.Authorization=t.token?"token "+t.token:"Basic "+i(t.username+":"+t.password)),r(l).then(function(t){a(null,t.data||!0,t.request)},function(t){304===t.status?a(null,t.data||!0,t.request):a({path:o,request:t.request,error:t.status})})},u=o._requestAllPages=function(t,e){var r=[];!function i(){n("GET",t,null,function(n,o,u){if(n)return e(n);o instanceof Array||(o=[o]),r.push.apply(r,o);var a=(u.getResponseHeader("link")||"").split(",").filter(function(t){return/rel="next"/.test(t)}).map(function(t){return(/<(.*)>/.exec(t)||[])[1]}).pop();a?(t=a,i()):e(n,r,u)})}()};return o.User=function(){this.repos=function(t,e){"function"==typeof t&&(e=t,t={}),t=t||{};var n="/user/repos",r=[];r.push("type="+encodeURIComponent(t.type||"all")),r.push("sort="+encodeURIComponent(t.sort||"updated")),r.push("per_page="+encodeURIComponent(t.per_page||"100")),t.page&&r.push("page="+encodeURIComponent(t.page)),n+="?"+r.join("&"),u(n,e)},this.orgs=function(t){n("GET","/user/orgs",null,t)},this.gists=function(t){n("GET","/gists",null,t)},this.notifications=function(t,e){"function"==typeof t&&(e=t,t={}),t=t||{};var r="/notifications",i=[];if(t.all&&i.push("all=true"),t.participating&&i.push("participating=true"),t.since){var o=t.since;o.constructor===Date&&(o=o.toISOString()),i.push("since="+encodeURIComponent(o))}if(t.before){var u=t.before;u.constructor===Date&&(u=u.toISOString()),i.push("before="+encodeURIComponent(u))}t.page&&i.push("page="+encodeURIComponent(t.page)),i.length>0&&(r+="?"+i.join("&")),n("GET",r,null,e)},this.show=function(t,e){var r=t?"/users/"+t:"/user";n("GET",r,null,e)},this.userRepos=function(t,e,n){"function"==typeof e&&(n=e,e={});var r="/users/"+t+"/repos",i=[];i.push("type="+encodeURIComponent(e.type||"all")),i.push("sort="+encodeURIComponent(e.sort||"updated")),i.push("per_page="+encodeURIComponent(e.per_page||"100")),e.page&&i.push("page="+encodeURIComponent(e.page)),r+="?"+i.join("&"),u(r,n)},this.userStarred=function(t,e){u("/users/"+t+"/starred?type=all&per_page=100",e)},this.userGists=function(t,e){n("GET","/users/"+t+"/gists",null,e)},this.orgRepos=function(t,e){u("/orgs/"+t+"/repos?type=all&&page_num=1000&sort=updated&direction=desc",e)},this.follow=function(t,e){n("PUT","/user/following/"+t,null,e)},this.unfollow=function(t,e){n("DELETE","/user/following/"+t,null,e)},this.createRepo=function(t,e){n("POST","/user/repos",t,e)}},o.Organization=function(){this.createRepo=function(t,e){n("POST","/orgs/"+t.orgname+"/repos",t,e)}},o.Repository=function(t){function e(t,e){return t===l.branch&&l.sha?e(null,l.sha):void c.getRef("heads/"+t,function(n,r){l.branch=t,l.sha=r,e(n,r)})}var r,u=t.name,a=t.user,s=t.fullname,c=this;r=s?"/repos/"+s:"/repos/"+a+"/"+u;var l={branch:null,sha:null};this.getRef=function(t,e){n("GET",r+"/git/refs/"+t,null,function(t,n,r){return t?e(t):void e(null,n.object.sha,r)})},this.createRef=function(t,e){n("POST",r+"/git/refs",t,e)},this.deleteRef=function(e,i){n("DELETE",r+"/git/refs/"+e,t,i)},this.deleteRepo=function(e){n("DELETE",r,t,e)},this.listTags=function(t){n("GET",r+"/tags",null,t)},this.listPulls=function(t,e){t=t||{};var i=r+"/pulls",o=[];"string"==typeof t?o.push("state="+t):(t.state&&o.push("state="+encodeURIComponent(t.state)),t.head&&o.push("head="+encodeURIComponent(t.head)),t.base&&o.push("base="+encodeURIComponent(t.base)),t.sort&&o.push("sort="+encodeURIComponent(t.sort)),t.direction&&o.push("direction="+encodeURIComponent(t.direction)),t.page&&o.push("page="+t.page),t.per_page&&o.push("per_page="+t.per_page)),o.length>0&&(i+="?"+o.join("&")),n("GET",i,null,e)},this.getPull=function(t,e){n("GET",r+"/pulls/"+t,null,e)},this.compare=function(t,e,i){n("GET",r+"/compare/"+t+"..."+e,null,i)},this.listBranches=function(t){n("GET",r+"/git/refs/heads",null,function(e,n,r){return e?t(e):(n=n.map(function(t){return t.ref.replace(/^refs\/heads\//,"")}),void t(null,n,r))})},this.getBlob=function(t,e){n("GET",r+"/git/blobs/"+t,null,e,"raw")},this.getCommit=function(t,e,i){n("GET",r+"/git/commits/"+e,null,i)},this.getSha=function(t,e,i){return e&&""!==e?void n("GET",r+"/contents/"+e+(t?"?ref="+t:""),null,function(t,e,n){return t?i(t):void i(null,e.sha,n)}):c.getRef("heads/"+t,i)},this.getStatuses=function(t,e){n("GET",r+"/statuses/"+t,null,e)},this.getTree=function(t,e){n("GET",r+"/git/trees/"+t,null,function(t,n,r){return t?e(t):void e(null,n.tree,r)})},this.postBlob=function(t,e){t="string"==typeof t?{content:t,encoding:"utf-8"}:{content:i(t),encoding:"base64"},n("POST",r+"/git/blobs",t,function(t,n,r){return t?e(t):void e(null,n.sha,r)})},this.updateTree=function(t,e,i,o){var u={base_tree:t,tree:[{path:e,mode:"100644",type:"blob",sha:i}]};n("POST",r+"/git/trees",u,function(t,e,n){return t?o(t):void o(null,e.sha,n)})},this.postTree=function(t,e){n("POST",r+"/git/trees",{tree:t},function(t,n,r){return t?e(t):void e(null,n.sha,r)})},this.commit=function(e,i,u,a){var s=new o.User;s.show(null,function(o,s){if(o)return a(o);var c={message:u,author:{name:t.user,email:s.email},parents:[e],tree:i};n("POST",r+"/git/commits",c,function(t,e,n){return t?a(t):(l.sha=e.sha,void a(null,e.sha,n))})})},this.updateHead=function(t,e,i){n("PATCH",r+"/git/refs/heads/"+t,{sha:e},i)},this.show=function(t){n("GET",r,null,t)},this.contributors=function(t,e){e=e||1e3;var i=this;n("GET",r+"/stats/contributors",null,function(n,r,o){return n?t(n):void(202===o.status?setTimeout(function(){i.contributors(t,e)},e):t(n,r,o))})},this.collaborators=function(t){n("GET",r+"/collaborators",null,t)},this.isCollaborator=function(t,e){n("GET",r+"/collaborators/"+t,null,e)},this.contents=function(t,e,i){e=encodeURI(e),n("GET",r+"/contents"+(e?"/"+e:""),{ref:t},i)},this.fork=function(t){n("POST",r+"/forks",null,t)},this.listForks=function(t){n("GET",r+"/forks",null,t)},this.branch=function(t,e,n){2===arguments.length&&"function"==typeof arguments[1]&&(n=e,e=t,t="master"),this.getRef("heads/"+t,function(t,r){return t&&n?n(t):void c.createRef({ref:"refs/heads/"+e,sha:r},n)})},this.createPullRequest=function(t,e){n("POST",r+"/pulls",t,e)},this.listHooks=function(t){n("GET",r+"/hooks",null,t)},this.getHook=function(t,e){n("GET",r+"/hooks/"+t,null,e)},this.createHook=function(t,e){n("POST",r+"/hooks",t,e)},this.editHook=function(t,e,i){n("PATCH",r+"/hooks/"+t,e,i)},this.deleteHook=function(t,e){n("DELETE",r+"/hooks/"+t,null,e)},this.read=function(t,e,i){n("GET",r+"/contents/"+encodeURI(e)+(t?"?ref="+t:""),null,i,!0)},this.remove=function(t,e,i){c.getSha(t,e,function(o,u){return o?i(o):void n("DELETE",r+"/contents/"+e,{message:e+" is removed",sha:u,branch:t},i)})},this["delete"]=this.remove,this.move=function(t,n,r,i){e(t,function(e,o){c.getTree(o+"?recursive=true",function(e,u){u.forEach(function(t){t.path===n&&(t.path=r),"tree"===t.type&&delete t.sha;
+}),c.postTree(u,function(e,r){c.commit(o,r,"Deleted "+n,function(e,n){c.updateHead(t,n,i)})})})})},this.write=function(t,e,o,u,a,s){"function"==typeof a&&(s=a,a={}),c.getSha(t,encodeURI(e),function(c,l){var f={message:u,content:"undefined"==typeof a.encode||a.encode?i(o):o,branch:t,committer:a&&a.committer?a.committer:void 0,author:a&&a.author?a.author:void 0};c&&404!==c.error||(f.sha=l),n("PUT",r+"/contents/"+encodeURI(e),f,s)})},this.getCommits=function(t,e){t=t||{};var i=r+"/commits",o=[];if(t.sha&&o.push("sha="+encodeURIComponent(t.sha)),t.path&&o.push("path="+encodeURIComponent(t.path)),t.author&&o.push("author="+encodeURIComponent(t.author)),t.since){var u=t.since;u.constructor===Date&&(u=u.toISOString()),o.push("since="+encodeURIComponent(u))}if(t.until){var a=t.until;a.constructor===Date&&(a=a.toISOString()),o.push("until="+encodeURIComponent(a))}t.page&&o.push("page="+t.page),t.perpage&&o.push("per_page="+t.perpage),o.length>0&&(i+="?"+o.join("&")),n("GET",i,null,e)},this.isStarred=function(t,e,r){n("GET","/user/starred/"+t+"/"+e,null,r)},this.star=function(t,e,r){n("PUT","/user/starred/"+t+"/"+e,null,r)},this.unstar=function(t,e,r){n("DELETE","/user/starred/"+t+"/"+e,null,r)},this.createRelease=function(t,e){n("POST",r+"/releases",t,e)},this.editRelease=function(t,e,i){n("PATCH",r+"/releases/"+t,e,i)},this.getRelease=function(t,e){n("GET",r+"/releases/"+t,null,e)},this.deleteRelease=function(t,e){n("DELETE",r+"/releases/"+t,null,e)}},o.Gist=function(t){var e=t.id,r="/gists/"+e;this.read=function(t){n("GET",r,null,t)},this.create=function(t,e){n("POST","/gists",t,e)},this["delete"]=function(t){n("DELETE",r,null,t)},this.fork=function(t){n("POST",r+"/fork",null,t)},this.update=function(t,e){n("PATCH",r,t,e)},this.star=function(t){n("PUT",r+"/star",null,t)},this.unstar=function(t){n("DELETE",r+"/star",null,t)},this.isStarred=function(t){n("GET",r+"/star",null,t)}},o.Issue=function(t){var e="/repos/"+t.user+"/"+t.repo+"/issues";this.create=function(t,r){n("POST",e,t,r)},this.list=function(t,n){var r=[];for(var i in t)t.hasOwnProperty(i)&&r.push(encodeURIComponent(i)+"="+encodeURIComponent(t[i]));u(e+"?"+r.join("&"),n)},this.comment=function(t,e,r){n("POST",t.comments_url,{body:e},r)},this.edit=function(t,r,i){n("PATCH",e+"/"+t,r,i)},this.get=function(t,r){n("GET",e+"/"+t,null,r)}},o.Search=function(t){var e="/search/",r="?q="+t.query;this.repositories=function(t,i){n("GET",e+"repositories"+r,t,i)},this.code=function(t,i){n("GET",e+"code"+r,t,i)},this.issues=function(t,i){n("GET",e+"issues"+r,t,i)},this.users=function(t,i){n("GET",e+"users"+r,t,i)}},o.RateLimit=function(){this.getRateLimit=function(t){n("GET","/rate_limit",null,t)}},o};return o.getIssues=function(t,e){return new o.Issue({user:t,repo:e})},o.getRepo=function(t,e){return e?new o.Repository({user:t,name:e}):new o.Repository({fullname:t})},o.getUser=function(){return new o.User},o.getOrg=function(){return new o.Organization},o.getGist=function(t){return new o.Gist({id:t})},o.getSearch=function(t){return new o.Search({query:t})},o.getRateLimit=function(){return new o.RateLimit},o})},function(t,e,n){var r,i,o;/*!
SerializeJSON jQuery plugin.
https://github.com/marioizquierdo/jquery.serializeJSON
version 2.6.2 (May, 2015)
@@ -10,7 +10,7 @@ c.updateHead(t,n,i)})})})})},this.write=function(t,e,o,u,a,s){"function"==typeof
Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*/
-!function(u){i=[n(3)],r=u,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(function(t){"use strict";t.fn.serializeJSON=function(e){var n,r,i,o,u,a,s;return a=t.serializeJSON,s=a.setupOpts(e),r=this.serializeArray(),a.readCheckboxUncheckedValues(r,this,s),n={},t.each(r,function(t,e){i=a.splitInputNameIntoKeysArray(e.name,s),o=i.pop(),"skip"!==o&&(u=a.parseValue(e.value,o,s),s.parseWithFunction&&"_"===o&&(u=s.parseWithFunction(u,e.name)),a.deepSet(n,i,u,s))}),n},t.serializeJSON={defaultOptions:{checkboxUncheckedValue:void 0,parseNumbers:!1,parseBooleans:!1,parseNulls:!1,parseAll:!1,parseWithFunction:null,customTypes:{},defaultTypes:{string:function(t){return String(t)},number:function(t){return Number(t)},"boolean":function(t){var e=["false","null","undefined","","0"];return-1===e.indexOf(t)},"null":function(t){var e=["false","null","undefined","","0"];return-1===e.indexOf(t)?t:null},array:function(t){return JSON.parse(t)},object:function(t){return JSON.parse(t)},auto:function(e){return t.serializeJSON.parseValue(e,null,{parseNumbers:!0,parseBooleans:!0,parseNulls:!0})}},useIntKeysAsArrayIndex:!1},setupOpts:function(e){var n,r,i,o,u,a;a=t.serializeJSON,null==e&&(e={}),i=a.defaultOptions||{},r=["checkboxUncheckedValue","parseNumbers","parseBooleans","parseNulls","parseAll","parseWithFunction","customTypes","defaultTypes","useIntKeysAsArrayIndex"];for(n in e)if(-1===r.indexOf(n))throw new Error("serializeJSON ERROR: invalid option '"+n+"'. Please use one of "+r.join(", "));return o=function(t){return e[t]!==!1&&""!==e[t]&&(e[t]||i[t])},u=o("parseAll"),{checkboxUncheckedValue:o("checkboxUncheckedValue"),parseNumbers:u||o("parseNumbers"),parseBooleans:u||o("parseBooleans"),parseNulls:u||o("parseNulls"),parseWithFunction:o("parseWithFunction"),typeFunctions:t.extend({},o("defaultTypes"),o("customTypes")),useIntKeysAsArrayIndex:o("useIntKeysAsArrayIndex")}},parseValue:function(e,n,r){var i,o;return o=t.serializeJSON,i=r.typeFunctions&&r.typeFunctions[n],i?i(e):r.parseNumbers&&o.isNumeric(e)?Number(e):!r.parseBooleans||"true"!==e&&"false"!==e?r.parseNulls&&"null"==e?null:e:"true"===e},isObject:function(t){return t===Object(t)},isUndefined:function(t){return void 0===t},isValidArrayIndex:function(t){return/^[0-9]+$/.test(String(t))},isNumeric:function(t){return t-parseFloat(t)>=0},optionKeys:function(t){if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)n.push(e);return n},splitInputNameIntoKeysArray:function(e,n){var r,i,o,u,a;return a=t.serializeJSON,u=a.extractTypeFromInputName(e,n),i=u[0],o=u[1],r=i.split("["),r=t.map(r,function(t){return t.replace(/\]/g,"")}),""===r[0]&&r.shift(),r.push(o),r},extractTypeFromInputName:function(e,n){var r,i,o;if(r=e.match(/(.*):([^:]+)$/)){if(o=t.serializeJSON,i=o.optionKeys(n?n.typeFunctions:o.defaultOptions.defaultTypes),i.push("skip"),-1!==i.indexOf(r[2]))return[r[1],r[2]];throw new Error("serializeJSON ERROR: Invalid type "+r[2]+" found in input name '"+e+"', please use one of "+i.join(", "))}return[e,"_"]},deepSet:function(e,n,r,i){var o,u,a,s,c,l;if(null==i&&(i={}),l=t.serializeJSON,l.isUndefined(e))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");o=n[0],1===n.length?""===o?e.push(r):e[o]=r:(u=n[1],""===o&&(s=e.length-1,c=e[s],o=l.isObject(c)&&(l.isUndefined(c[u])||n.length>2)?s:s+1),""===u?!l.isUndefined(e[o])&&t.isArray(e[o])||(e[o]=[]):i.useIntKeysAsArrayIndex&&l.isValidArrayIndex(u)?!l.isUndefined(e[o])&&t.isArray(e[o])||(e[o]=[]):!l.isUndefined(e[o])&&l.isObject(e[o])||(e[o]={}),a=n.slice(1),l.deepSet(e[o],a,r,i))},readCheckboxUncheckedValues:function(e,n,r){var i,o,u,a,s;null==r&&(r={}),s=t.serializeJSON,i="input[type=checkbox][name]:not(:checked):not([disabled])",o=n.find(i).add(n.filter(i)),o.each(function(n,i){u=t(i),a=u.attr("data-unchecked-value"),a?e.push({name:i.name,value:a}):s.isUndefined(r.checkboxUncheckedValue)||e.push({name:i.name,value:r.checkboxUncheckedValue})})}}})},function(t,e,n){"use strict";var r=n(8);t.exports=new r({include:[n(29)]})},function(t,e,n){"use strict";var r=n(8);t.exports=new r({include:[n(17)],implicit:[n(90),n(82),n(84),n(83)]})},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function i(t,e){for(var n=-1,r=e.length,i=t.length;++n-1&&t%1==0&&f>=t}var c=n(12),l=n(2),f=9007199254740991,p=u("length");t.exports=o},function(t,e){function n(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),a=u.length;a--;){var s=u[t?a:++i];if(n(o[s],s,o)===!1)break}return e}}var r=n();t.exports=r},function(t,e){function n(t,e,n){if(null!=t){void 0!==n&&n in r(t)&&(e=[n]);for(var i=0,o=e.length;null!=t&&o>i;)t=t[e[i++]];return i&&i==o?t:void 0}}function r(t){return i(t)?t:Object(t)}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e){function n(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),n=void 0===n||n>i?i:+n||0,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1&&t%1==0&&e>t}function o(t,e,n){if(!a(n))return!1;var o=typeof e;if("number"==o?r(n)&&i(e,n.length):"string"==o&&e in n){var u=n[e];return t===t?t===u:u!==u}return!1}function u(t){return"number"==typeof t&&t>-1&&t%1==0&&c>=t}function a(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var s=/^\d+$/,c=9007199254740991,l=n("length");t.exports=o},function(t,e,n){function r(t){return null==t?"":t+""}function i(t){if(o(t))return t;var e=[];return r(t).replace(u,function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)}),e}var o=n(2),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,a=/\\(\\)?/g;t.exports=i},function(t,e,n){function r(t,e,n){for(var r=-1,i=u(e),o=i.length;++r-1&&t%1==0&&e>t}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&p>=t}function o(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function u(t){if(null==t)return[];o(t)||(t=Object(t));var e=t.length;e=e&&i(e)&&(s(t)||a(t))&&e||0;for(var n=t.constructor,u=-1,c="function"==typeof n&&n.prototype===t,l=Array(e),p=e>0;++u1)for(var n=1;n=0},optionKeys:function(t){if(Object.keys)return Object.keys(t);var e,n=[];for(e in t)n.push(e);return n},splitInputNameIntoKeysArray:function(e,n){var r,i,o,u,a;return a=t.serializeJSON,u=a.extractTypeFromInputName(e,n),i=u[0],o=u[1],r=i.split("["),r=t.map(r,function(t){return t.replace(/\]/g,"")}),""===r[0]&&r.shift(),r.push(o),r},extractTypeFromInputName:function(e,n){var r,i,o;if(r=e.match(/(.*):([^:]+)$/)){if(o=t.serializeJSON,i=o.optionKeys(n?n.typeFunctions:o.defaultOptions.defaultTypes),i.push("skip"),-1!==i.indexOf(r[2]))return[r[1],r[2]];throw new Error("serializeJSON ERROR: Invalid type "+r[2]+" found in input name '"+e+"', please use one of "+i.join(", "))}return[e,"_"]},deepSet:function(e,n,r,i){var o,u,a,s,c,l;if(null==i&&(i={}),l=t.serializeJSON,l.isUndefined(e))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");o=n[0],1===n.length?""===o?e.push(r):e[o]=r:(u=n[1],""===o&&(s=e.length-1,c=e[s],o=l.isObject(c)&&(l.isUndefined(c[u])||n.length>2)?s:s+1),""===u?!l.isUndefined(e[o])&&t.isArray(e[o])||(e[o]=[]):i.useIntKeysAsArrayIndex&&l.isValidArrayIndex(u)?!l.isUndefined(e[o])&&t.isArray(e[o])||(e[o]=[]):!l.isUndefined(e[o])&&l.isObject(e[o])||(e[o]={}),a=n.slice(1),l.deepSet(e[o],a,r,i))},readCheckboxUncheckedValues:function(e,n,r){var i,o,u,a,s;null==r&&(r={}),s=t.serializeJSON,i="input[type=checkbox][name]:not(:checked):not([disabled])",o=n.find(i).add(n.filter(i)),o.each(function(n,i){u=t(i),a=u.attr("data-unchecked-value"),a?e.push({name:i.name,value:a}):s.isUndefined(r.checkboxUncheckedValue)||e.push({name:i.name,value:r.checkboxUncheckedValue})})}}})},function(t,e,n){"use strict";var r=n(8);t.exports=new r({include:[n(29)]})},function(t,e,n){"use strict";var r=n(8);t.exports=new r({include:[n(17)],implicit:[n(92),n(84),n(86),n(85)]})},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function i(t,e){for(var n=-1,r=e.length,i=t.length;++n-1&&t%1==0&&f>=t}var c=n(12),l=n(2),f=9007199254740991,p=u("length");t.exports=o},function(t,e){function n(t){return function(e,n,r){for(var i=-1,o=Object(e),u=r(e),a=u.length;a--;){var s=u[t?a:++i];if(n(o[s],s,o)===!1)break}return e}}var r=n();t.exports=r},function(t,e){function n(t,e,n){if(null!=t){void 0!==n&&n in r(t)&&(e=[n]);for(var i=0,o=e.length;null!=t&&o>i;)t=t[e[i++]];return i&&i==o?t:void 0}}function r(t){return i(t)?t:Object(t)}function i(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e){function n(t,e,n){var r=-1,i=t.length;e=null==e?0:+e||0,0>e&&(e=-e>i?0:i+e),n=void 0===n||n>i?i:+n||0,0>n&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var o=Array(i);++r-1&&t%1==0&&e>t}function o(t,e,n){if(!a(n))return!1;var o=typeof e;if("number"==o?r(n)&&i(e,n.length):"string"==o&&e in n){var u=n[e];return t===t?t===u:u!==u}return!1}function u(t){return"number"==typeof t&&t>-1&&t%1==0&&c>=t}function a(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var s=/^\d+$/,c=9007199254740991,l=n("length");t.exports=o},function(t,e,n){function r(t){return null==t?"":t+""}function i(t){if(o(t))return t;var e=[];return r(t).replace(u,function(t,n,r,i){e.push(r?i.replace(a,"$1"):n||t)}),e}var o=n(2),u=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,a=/\\(\\)?/g;t.exports=i},function(t,e,n){function r(t,e,n){for(var r=-1,i=u(e),o=i.length;++r-1&&t%1==0&&e>t}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&p>=t}function o(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function u(t){if(null==t)return[];o(t)||(t=Object(t));var e=t.length;e=e&&i(e)&&(s(t)||a(t))&&e||0;for(var n=t.constructor,u=-1,c="function"==typeof n&&n.prototype===t,l=Array(e),p=e>0;++u1)for(var n=1;n0&&(t.splice(l-1,2),l-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((h||g)&&d){for(n=t.split("/"),l=n.length;l>0;l-=1){if(r=n.slice(0,l).join("/"),h)for(f=h.length;f>0;f-=1)if(i=d[h.slice(0,f).join("/")],i&&(i=i[r])){o=i,a=l;break}if(o)break;!s&&g&&g[r]&&(s=g[r],c=l)}!o&&s&&(o=s,a=c),o&&(n.splice(0,a,o),t=n.join("/"))}return t}function u(t,n){return function(){var r=C.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),h.apply(e,r.concat([t,n]))}}function a(t){return function(e){return o(e,t)}}function s(t){return function(e){v[t]=e}}function c(t){if(i(m,t)){var n=m[t];delete m[t],D[t]=!0,p.apply(e,n)}if(!i(v,t)&&!i(D,t))throw new Error("No "+t);return v[t]}function l(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function f(t){return function(){return y&&y.config&&y.config[t]||{}}}var p,h,d,g,v={},m={},y={},D={},A=Object.prototype.hasOwnProperty,C=[].slice,w=/\.js$/;d=function(t,e){var n,r=l(t),i=r[0];return t=r[1],i&&(i=o(i,e),n=c(i)),i?t=n&&n.normalize?n.normalize(t,a(e)):o(t,e):(t=o(t,e),r=l(t),i=r[0],t=r[1],i&&(n=c(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},g={require:function(t){return u(t)},exports:function(t){var e=v[t];return"undefined"!=typeof e?e:v[t]={}},module:function(t){return{id:t,uri:"",exports:v[t],config:f(t)}}},p=function(t,n,r,o){var a,l,f,p,h,y,A=[],C=typeof r;if(o=o||t,"undefined"===C||"function"===C){for(n=!n.length&&r.length?["require","exports","module"]:n,h=0;h0&&(e.call(arguments,t.prototype.constructor),i=n.prototype.constructor),i.apply(this,arguments)}function i(){this.constructor=r}var o=e(n),u=e(t);n.displayName=t.displayName,r.prototype=new i;for(var a=0;an;n++)t[n].apply(this,e)},n.Observable=r,n.generateChars=function(t){for(var e="",n=0;t>n;n++){var r=Math.floor(36*Math.random());e+=r.toString(36)}return e},n.bind=function(t,e){return function(){t.apply(e,arguments)}},n._convertData=function(t){for(var e in t){var n=e.split("-"),r=t;if(1!==n.length){for(var i=0;i":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},n.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var r=t();t.map(n,function(t){r=r.add(t)}),n=r}e.append(n)},n}),e.define("select2/results",["jquery","./utils"],function(t,e){function n(t,e,r){this.$element=t,this.data=r,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=t(''),i=this.options.get("translations").get(e.message);r.append(n(i(e.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null==t.results||0===t.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));t.results=this.sort(t.results);for(var n=0;n-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")});var o=i.filter("[aria-selected=true]");o.length>0?o.first().trigger("mouseenter"):i.first().trigger("mouseenter")})},n.prototype.showLoading=function(t){this.hideLoading();var e=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:e(t)},r=this.option(n);r.className+=" loading-results",this.$results.prepend(r)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(e){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};e.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==e.id&&delete r["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(r.role="group",r["aria-label"]=e.text,delete r["aria-selected"]);for(var i in r){var o=r[i];n.setAttribute(i,o)}if(e.children){var u=t(n),a=document.createElement("strong");a.className="select2-results__group";t(a);this.template(e,a);for(var s=[],c=0;c
",{"class":"select2-results__options select2-results__options--nested"});p.append(s),u.append(a),u.append(p)}else this.template(e,n);return t.data(n,"data",e),n},n.prototype.bind=function(e,n){var r=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",function(t){r.clear(),r.append(t.data),e.isOpen()&&r.setClasses()}),e.on("results:append",function(t){r.append(t.data),e.isOpen()&&r.setClasses()}),e.on("query",function(t){r.hideMessages(),r.showLoading(t)}),e.on("select",function(){e.isOpen()&&r.setClasses()}),e.on("unselect",function(){e.isOpen()&&r.setClasses()}),e.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),e.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=r.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var u=r.$results.offset().top,a=o.offset().top,s=r.$results.scrollTop()+(a-u);0===i?r.$results.scrollTop(0):0>a-u&&r.$results.scrollTop(s)}}),e.on("results:next",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t),i=n+1;if(!(i>=e.length)){var o=e.eq(i);o.trigger("mouseenter");var u=r.$results.offset().top+r.$results.outerHeight(!1),a=o.offset().top+o.outerHeight(!1),s=r.$results.scrollTop()+a-u;0===i?r.$results.scrollTop(0):a>u&&r.$results.scrollTop(s)}}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){r.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var n=t(this),i=n.data("data");return"true"===n.attr("aria-selected")?void(r.options.get("multiple")?r.trigger("unselect",{originalEvent:e,data:i}):r.trigger("close",{})):void r.trigger("select",{originalEvent:e,data:i})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var n=t(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:t(this)})})},n.prototype.getHighlightedResults=function(){var t=this.$results.find(".select2-results__option--highlighted");return t},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]"),n=e.index(t),r=this.$results.offset().top,i=t.offset().top,o=this.$results.scrollTop()+(i-r),u=i-r;o-=2*t.outerHeight(!1),2>=n?this.$results.scrollTop(0):(u>this.$results.outerHeight()||0>u)&&this.$results.scrollTop(o)}},n.prototype.template=function(e,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=r(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=i(o):t(n).append(o)},n}),e.define("select2/keys",[],function(){var t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return t}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},r.prototype.bind=function(t,e){var r=this,i=(t.id+"-container",t.id+"-results");this.container=t,this.$selection.on("focus",function(t){r.trigger("focus",t)}),this.$selection.on("blur",function(t){r._handleBlur(t)}),this.$selection.on("keydown",function(t){r.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){r.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){r.update(t.data)}),t.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(t)}),t.on("close",function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(t)}),t.on("enable",function(){r.$selection.attr("tabindex",r._tabindex)}),t.on("disable",function(){r.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(e){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)},1)},r.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,function(e){var n=t(e.target),r=n.closest(".select2"),i=t(".select2.select2-container--open");i.each(function(){var e=t(this);if(this!=r[0]){var n=e.data("element");n.select2("close")}})})},r.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(t,e){var n=e.find(".selection");n.append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html(''),t},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("selection:update",function(t){n.update(t.data)})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},i.prototype.selectionContainer=function(){return t("")},i.prototype.update=function(t){if(0===t.length)return void this.clear();var e=t[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(e,n);n.empty().append(r),n.prop("title",e.title||e.text)},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,n){function r(t,e){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html(''),t},r.prototype.bind=function(e,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){i.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.options.get("disabled")){var n=t(this),r=n.parent(),o=r.data("data");i.trigger("unselect",{originalEvent:e,data:o})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},r.prototype.selectionContainer=function(){var e=t('×');return e},r.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],r=0;r1;if(r||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys"],function(t,e){function n(){}return n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){r._handleClear(t)}),e.on("keypress",function(t){r._handleKeyboardClear(t,e)})},n.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();for(var r=n.data("data"),i=0;i0||0===n.length)){var r=t('×');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,n){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(e){var n=t('');this.$searchContainer=n,this.$search=n.find("input");var r=e.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(t){i.$search.trigger("focus")}),e.on("results:focus",function(t){i.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){i.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){i._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented();var e=t.which;if(e===n.BACKSPACE&&""===i.$search.val()){var r=i.$searchContainer.prev(".select2-selection__choice");if(r.length>0){var o=r.data("data");i.searchRemoveChoice(o),t.preventDefault()}}});var o=document.documentMode,u=o&&11>=o;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){return u?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(u&&"input"===t.type)return void i.$selection.off("input.search input.searchcheck");var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&i.handleSearch(t)})},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(""!==this.$search.attr("placeholder"))t=this.$selection.find(".select2-selection__rendered").innerWidth();else{var e=this.$search.val().length+1;t=.75*e+"em"}this.$search.css("width",t)},r}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,n,r){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],u=["opening","closing","selecting","unselecting"];e.call(this,n,r),n.on("*",function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var r=t.Event("select2:"+e,{params:n});i.$element.trigger(r),-1!==t.inArray(e,u)&&(n.prevented=r.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var r=e(t);n._cache[t]=r}return new n(n._cache[t])},n}),e.define("select2/diacritics",[],function(){var t={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return t}),e.define("select2/data/base",["../utils"],function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var r=e.id+"-result-";return r+=t.generateChars(4),r+=null!=n.id?"-"+n.id.toString():"-"+t.generateChars(4)},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,t),r.prototype.current=function(t){var e=[],r=this;this.$element.find(":selected").each(function(){var t=n(this),i=r.item(t);e.push(i)}),t(e)},r.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(r){var i=[];t=[t],t.push.apply(t,r);for(var o=0;o=0){var l=o.filter(r(c)),f=this.item(l),p=n.extend(!0,{},c,f),h=this.option(p);l.replaceWith(h)}else{var d=this.option(c);if(c.children){var g=this.convertToOptions(c.children);e.appendMany(d,g)}a.push(d)}}return a},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,n){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return e.Extend(r,t),r.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,r){var i=n.ajax(t);return i.then(e),i.fail(r),i}};return n.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){function r(){var r=o.transport(o,function(r){var o=i.processResults(r,t);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)},function(){i.trigger("results:message",{message:"errorLoading"})});i._request=r}var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&""!==t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},r}),e.define("select2/data/tags",["jquery"],function(t){function e(e,n,r){var i=r.get("tags"),o=r.get("createTag");void 0!==o&&(this.createTag=o);var u=r.get("insertTag");if(void 0!==u&&(this.insertTag=u),e.call(this,n,r),t.isArray(i))for(var a=0;a0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,n)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){var r=this;this.current(function(i){var o=null!=i?i.length:0;return r.maximumSelectionLength>0&&o>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void t.call(r,e,n)})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),r=t('');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),this.$search.on("keydown",function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){i.handleSearch(t)}),n.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),n.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),n.on("results:all",function(t){if(null==t.query.term||""===t.query.term){var e=i.showSearch(t);e?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,r)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),r=e.length-1;r>=0;r--){var i=e[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,n,r){this.lastParams={},t.call(this,e,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),n.on("query",function(t){i.lastParams=t,i.loading=!0}),n.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",function(){var e=t.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var n=i.$results.offset().top+i.$results.outerHeight(!1),r=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1);n+50>=r&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t(''),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function n(e,n,r){this.$dropdownParent=r.get("dropdownParent")||t(document.body),e.call(this,n,r)}return n.prototype.bind=function(t,e,n){var r=this,i=!1;t.call(this,e,n),e.on("open",function(){r._showDropdown(),r._attachPositioningHandler(e),i||(i=!0,e.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),e.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),e.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t(""),r=e.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,o="scroll.select2."+r.id,u="resize.select2."+r.id,a="orientationchange.select2."+r.id,s=this.$container.parents().filter(e.hasScroll);s.each(function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),s.on(o,function(e){var n=t(this).data("select2-scroll-position");t(this).scrollTop(n.y)}),t(window).on(o+" "+u+" "+a,function(t){i._positionDropdown(),i._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,o="resize.select2."+r.id,u="orientationchange.select2."+r.id,a=this.$container.parents().filter(e.hasScroll);a.off(i),t(window).off(i+" "+o+" "+u)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var u={height:this.$container.outerHeight(!1)};u.top=o.top,u.bottom=o.top+u.height;var a={height:this.$dropdown.outerHeight(!1)},s={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},c=s.topo.bottom+a.height,f={left:o.left,top:u.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();f.top-=h.top,f.left-=h.left,n||r||(i="below"),l||!c||n?!c&&l&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(f.top=u.top-a.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(f)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(e){for(var n=0,r=0;r0&&(f.dataAdapter=c.Decorate(f.dataAdapter,m)),f.maximumInputLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,y)),f.maximumSelectionLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,D)),f.tags&&(f.dataAdapter=c.Decorate(f.dataAdapter,g)),null==f.tokenSeparators&&null==f.tokenizer||(f.dataAdapter=c.Decorate(f.dataAdapter,v)),null!=f.query){var S=e(f.amdBase+"compat/query");f.dataAdapter=c.Decorate(f.dataAdapter,S)}if(null!=f.initSelection){var B=e(f.amdBase+"compat/initSelection");f.dataAdapter=c.Decorate(f.dataAdapter,B)}}if(null==f.resultsAdapter&&(f.resultsAdapter=n,null!=f.ajax&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,b)),null!=f.placeholder&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,w)),f.selectOnClose&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,x))),null==f.dropdownAdapter){if(f.multiple)f.dropdownAdapter=A;else{var k=c.Decorate(A,C);f.dropdownAdapter=k}if(0!==f.minimumResultsForSearch&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,_)),f.closeOnSelect&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,F)),null!=f.dropdownCssClass||null!=f.dropdownCss||null!=f.adaptDropdownCssClass){var O=e(f.amdBase+"compat/dropdownCss");f.dropdownAdapter=c.Decorate(f.dropdownAdapter,O)}f.dropdownAdapter=c.Decorate(f.dropdownAdapter,E)}if(null==f.selectionAdapter){if(f.multiple?f.selectionAdapter=i:f.selectionAdapter=r,null!=f.placeholder&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,o)),f.allowClear&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,u)),f.multiple&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,a)),null!=f.containerCssClass||null!=f.containerCss||null!=f.adaptContainerCssClass){var I=e(f.amdBase+"compat/containerCss");f.selectionAdapter=c.Decorate(f.selectionAdapter,I)}f.selectionAdapter=c.Decorate(f.selectionAdapter,s)}if("string"==typeof f.language)if(f.language.indexOf("-")>0){var j=f.language.split("-"),T=j[0];f.language=[f.language,T]}else f.language=[f.language];if(t.isArray(f.language)){var P=new l;f.language.push("en");for(var $=f.language,R=0;R<$.length;R++){var L=$[R],N={};try{N=l.loadPath(L)}catch(U){try{L=this.defaults.amdLanguageBase+L,N=l.loadPath(L)}catch(q){f.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+L+'" could not be automatically loaded. A fallback will be used instead.');continue}}P.extend(N)}f.translations=P}else{var M=l.loadPath(this.defaults.amdLanguageBase+"en"),H=new l(f.language);H.extend(M),f.translations=H}return f},B.prototype.reset=function(){function e(t){function e(t){return f[t]||t}return t.replace(/[^\u0000-\u007E]/g,e)}function n(r,i){if(""===t.trim(r.term))return i;if(i.children&&i.children.length>0){for(var o=t.extend(!0,{},i),u=i.children.length-1;u>=0;u--){var a=i.children[u],s=n(r,a);null==s&&o.children.splice(u,1)}return o.children.length>0?o:n(r,o)}var c=e(i.text).toUpperCase(),l=e(r.term).toUpperCase();return c.indexOf(l)>-1?i:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:S,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},B.prototype.set=function(e,n){var r=t.camelCase(e),i={};i[r]=n;var o=c._convertData(i);t.extend(this.defaults,o)};var k=new B;return k}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,n,r){function i(e,i){if(this.options=e,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,o)}}return i.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var i={};i=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var o=e.extend(!0,{},i);o=r._convertData(o);for(var u in o)e.inArray(u,n)>-1||(e.isPlainObject(this.options[u])?e.extend(this.options[u],o[u]):this.options[u]=o[u]);return this},i.prototype.get=function(t){return this.options[t]},i.prototype.set=function(t,e){this.options[t]=e},i}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,n,r){var i=function(t,n){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),i.__super__.constructor.call(this);var r=t.attr("tabindex")||0;t.data("old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var u=this.render();this._placeContainer(u);var a=this.options.get("selectionAdapter");this.selection=new a(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,u);var s=this.options.get("dropdownAdapter");this.dropdown=new s(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,u);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){l.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(t){var e="";return e=null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4),e=e.replace(/(:|\.|\[|\]|,)/g,""),e="select2-"+e},i.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},i.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var r=this._resolveWidth(t,"style");return null!=r?r:this._resolveWidth(t,"element")}if("element"==e){var i=t.outerWidth(!1);return 0>=i?"auto":i+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var u=o.split(";"),a=0,s=u.length;s>a;a+=1){var c=u[a].replace(/\s/g,""),l=c.match(n);if(null!==l&&l.length>=1)return l[1]}return null}return e},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this._sync=n.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(n){t.each(n,e._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",e._sync,!1)},i.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(r,i){-1===t.inArray(r,n)&&e.trigger(r,i)})},i.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(n){t.trigger("results:all",{data:n,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(n){t.trigger("results:append",{data:n,query:e})})}),this.on("keypress",function(e){var n=e.which;t.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&e.altKey?(t.close(),e.preventDefault()):n===r.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===r.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===r.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===r.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype.trigger=function(t,e){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in r){var o=r[t],u={prevented:!1,name:t,args:e};if(n.call(this,o,u),u.prevented)return void(e.prevented=!0)}n.call(this,t,e)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},i.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,function(t){return t.toString()})),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},i}),e.define("jquery-mousewheel",["jquery"],function(t){return t}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(t,e,n,r){if(null==t.fn.select2){var i=["open","close","destroy"];t.fn.select2=function(e){if(e=e||{},"object"==typeof e)return this.each(function(){var r=t.extend(!0,{},e);new n(t(this),r)}),this;if("string"==typeof e){var r;return this.each(function(){var n=t(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2.");var i=Array.prototype.slice.call(arguments,1);r=n[e].apply(n,i)}),t.inArray(e,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=r),n}),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})},function(t,e,n){var r=n(124),i=n(42),o=n(5),u=n(119),a=n(114),s=(n(40),n(39)),c=Array.prototype.slice,l=/\s+/,f={on:function(t,e,n){if(!p(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,n){if(!p(this,"once",t,[e,n])||!e)return this;var i=this,o=r(function(){i.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var r,i,u,a,s,c,l,f;if(!this._events||!p(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(a=t?[t]:o(this._events),s=0,c=a.length;c>s;s++)if(t=a[s],u=this._events[t]){if(this._events[t]=r=[],e||n)for(l=0,
-f=u.length;f>l;l++)i=u[l],(e&&e!==i.callback&&e!==i.callback._callback||n&&n!==i.context)&&r.push(i);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=c.call(arguments,1);if(!p(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&h(n,e),r&&h(r,arguments),this},stopListening:function(t,e,n){var r=this._listeningTo;if(!r)return this;var i=!e&&!n;n||"object"!=typeof e||(n=this),t&&((r={})[t._listenId]=t);for(var o in r)t=r[o],t.off(e,n,this),(i||u(t._events))&&delete this._listeningTo[o];return this},createEmitter:function(t){return s(t||{},f)}};f.bind=f.on,f.unbind=f.off;var p=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(r));return!1}if(l.test(n)){for(var o=n.split(l),u=0,a=o.length;a>u;u++)t[e].apply(t,[o[u]].concat(r));return!1}return!0},h=function(t,e){var n,r=-1,i=t.length,o=e[0],u=e[1],a=e[2];switch(e.length){case 0:for(;++rn-1&&(r=0),t[r]}},function(t,e,n){t.exports=n(48)},function(t,e,n){"use strict";function r(t){this.defaults=o.merge({},t),this.interceptors={request:new a,response:new a}}var i=n(51),o=n(4),u=n(50),a=n(49),s=n(57),c=n(55),l=n(52),f=n(25);r.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(i,this.defaults,{method:"get"},t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.withCredentials=t.withCredentials||this.defaults.withCredentials,t.data=f(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n};var p=new r(i),h=t.exports=l(r.prototype.request,p);h.create=function(t){return new r(t)},h.defaults=p.defaults,h.all=function(t){return Promise.all(t)},h.spread=n(60),h.interceptors=p.interceptors,o.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))},h[t]=l(r.prototype[t],p)}),o.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))},h[t]=l(r.prototype[t],p)})},function(t,e,n){"use strict";function r(){this.handlers=[]}var i=n(4);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){(function(e){"use strict";t.exports=function(t){return new Promise(function(r,i){try{var o;"function"==typeof t.adapter?o=t.adapter:"undefined"!=typeof XMLHttpRequest?o=n(24):"undefined"!=typeof e&&(o=n(24)),"function"==typeof o&&o(r,i,t)}catch(u){i(u)}})}}).call(e,n(43))},function(t,e,n){"use strict";var r=n(4),i=/^\)\]\}',?\n/,o={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(t,e){return r.isFormData(t)?t:r.isArrayBuffer(t)?t:r.isArrayBufferView(t)?t.buffer:!r.isObject(t)||r.isFile(t)||r.isBlob(t)?t:(r.isUndefined(e)||(r.forEach(e,function(t,n){"content-type"===n.toLowerCase()&&(e["Content-Type"]=t)}),r.isUndefined(e["Content-Type"])&&(e["Content-Type"]="application/json;charset=utf-8")),JSON.stringify(t))}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(i,"");try{t=JSON.parse(t)}catch(e){}}return t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(o),post:r.merge(o),put:r.merge(o)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r>8-a%1*8)){if(r=o.charCodeAt(a+=.75),r>255)throw new n("INVALID_CHARACTER_ERR: DOM Exception 5");e=e<<8|r}return u}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(4);t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else{var u=[];i.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),u.push(r(e)+"="+r(t))}))}),o=u.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,u){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(4);t.exports=function(t){var e,n,i,o={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(o[e]=o[e]?o[e]+", "+n:n)}),o):o}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(23),o=r(i),u=n(26),a=r(u),s=n(76),c=r(s);e["default"]=o["default"].extend({props:{repoOwner:"string",repoName:"string",repoBranch:"string",filePath:"string",defaultDir:"string"},session:{user:"state"},derived:{fileName:{deps:["filePath"],fn:function(){return this.filePath.split("/").pop()}},repo:{deps:["user.oauthToken","repoOwner","repoName"],fn:function(){var t=new a["default"]({token:this.user.oauthToken,auth:"oauth"});return t.getRepo(this.repoOwner,this.repoName)}}},read:function(){var t=this;return new Promise(function(e,n){t.repo.read(t.repoBranch,t.filePath,function(t,r){t?n(t):e(r)})})},create:function(t,e){return this.filePath=(this.defaultDir?this.defaultDir+"/":"")+t,this.save(e,"Created "+t)},save:function(t,e){var n=this;return new Promise(function(r,i){e||(e="Updated "+n.fileName),n.repo.write(n.repoBranch,n.filePath,t,e,{},function(t,e){t?i(t):r(e)})})},remove:function(){var t=this;return new Promise(function(e,n){t.repo.remove(t.repoBranch,t.filePath,function(t,r){t?n(t):e(r)})})},formatYaml:function(t){return c["default"].safeDump(t)},formatFrontMatter:function(t){return"---\n"+this.formatYaml(t).trim()+"\n---"},updateYamlString:function(t,e){for(var n in e){var r=new RegExp("^( *"+n+": +?).*","m"),i=t.match(r);i?t=t.replace(r,i[1]+e[n]):t+="\n"+n+": "+e[n]}return t}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(23),o=r(i),u=n(75),a=r(u),s=n(26),c=r(s),l=n(3),f=r(l);n(16);var p="https://github.com/login/oauth/authorize";e["default"]=o["default"].extend({props:{oauthToken:"string",username:"string"},session:{clientId:"string",proxyHost:"string"},initialize:function(){this.oauthToken=a["default"].get("oauth-token");var t=a["default"].getJSON("user-data");t&&(this.username=t.login)},initiateLogin:function(){var t={clientId:this.clientId,proxyHost:this.proxyHost},e={client_id:this.clientId,redirect_uri:window.location.href.split("?")[0]+"?"+f["default"].param(t),scope:"public_repo"};window.location.href=p+"?"+f["default"].param(e)},finishLogin:function(t){var e=this;this._verify(t).then(function(t){e.set("oauthToken",t),a["default"].set("oauth-token",t),e._getUser(t).then(function(t){e.set("username",t.login),a["default"].set("user-data",t)})["catch"](function(){return console.error("Error fetching user info")})})["catch"](function(){return console.error("Error verifying auth code")})},_verify:function(t){var e=this;return new Promise(function(n,r){var i=e.proxyHost+"/authenticate/"+t;f["default"].getJSON(i,function(t){t&&t.token?n(t.token):r("Authentication failed")})})},logout:function(){a["default"].remove("oauth-token"),a["default"].remove("user-data")},_getUser:function(){var t=this;return new Promise(function(e,n){var r=new c["default"]({token:t.oauthToken,auth:"oauth"}),i=r.getUser();i.show(null,function(t,r){t?n(t):e(r)})})}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return'\n \n "+(t.notes||"")+"\n"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return'\n '+t.title+'\n '+t.count+"\n "+(t.selected?'':"")+"\n"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=e.commitUrl,i=e.fileSlug;if(n.alert.hide(),(0,o["default"])("[data-hook~=alert-"+t+"]").show(),"success"===t&&r){n.commitUrl.attr("href",r);var u=settings.BASE_URL+"/datasets/"+i+"/";n.datasetUrl.attr("href",u).text(u)}}t||(t={});var n={form:(0,u.queryByHook)("dataset-form",t.el),resourceRows:(0,u.queryByHook)("resource-rows",t.el),addResourceButton:(0,u.queryByHook)("add-resource",t.el),alert:(0,u.queryByHook)("alert",t.el),commitUrl:(0,u.queryByHook)("commit-url",t.el),datasetUrl:(0,u.queryByHook)("dataset-url",t.el),select2:(0,o["default"])(".select2",t.el)},r=(0,u.queryByHook)("tmpl-resource-row").html();n.select2.select2(),n.resourceRows.on("click","[data-hook~=remove-resource]",function(t){window.confirm("Delete this resource?")&&(0,o["default"])(t.currentTarget).closest("[data-hook~=resource-row]").remove(),t.preventDefault()}),n.addResourceButton.on("click",function(t){n.resourceRows.append(r)}),n.form.on("submit",function(r){r.preventDefault();var i=n.form.serializeJSON({useIntKeysAsArrayIndex:!0});if(!i.title)return void e("error");var o=t.file.formatFrontMatter(i),a=(0,u.slugify)(i.title);t.file.create(a+".md",o).then(function(t){e("success",{commitUrl:t.commit.html_url,fileSlug:a})})["catch"](function(t){e("error"),console.error(t)})})};var i=n(3),o=r(i);n(44),n(27);var u=n(6)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t,e){n.alert.hide(),(0,o["default"])("[data-hook~=alert-"+t+"]").show(),"success"===t&&e&&n.commitUrl.attr("href",e)}t||(t={});var n={adminForm:(0,u.queryByHook)("admin-form",t.el),alert:(0,u.queryByHook)("alert",t.el),commitUrl:(0,u.queryByHook)("commit-url",t.el)};n.adminForm.on("submit",function(r){var i=n.adminForm.serializeJSON();t.file.read().then(function(n){var r=t.file.updateYamlString(n,i);t.file.save(r).then(function(t){e("success",t.commit.html_url)})["catch"](function(t){e("error"),console.error(t)})})["catch"](function(t){return console.error(t)}),r.preventDefault()})};var i=n(3),o=r(i),u=n(6)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(){r.readView.add(r.editView).toggle()}function n(t,e){r.alert.hide(),(0,o["default"])("[data-hook~=alert-"+t+"]").show(),"success"===t&&e&&r.commitUrl.attr("href",e)}t||(t={});var r={resourceItem:(0,u.queryByHook)("resource-item",t.el),form:(0,u.queryByHook)("dataset-form",t.el),editButton:(0,u.queryByHook)("edit-button",t.el),cancelButton:(0,u.queryByHook)("cancel-button",t.el),deleteButton:(0,u.queryByHook)("delete-button",t.el),resourceRows:(0,u.queryByHook)("resource-rows",t.el),addResourceButton:(0,u.queryByHook)("add-resource",t.el),alert:(0,u.queryByHook)("alert",t.el),commitUrl:(0,u.queryByHook)("commit-url",t.el),readView:(0,u.queryByHook)("read-view",t.el),editView:(0,u.queryByHook)("edit-view",t.el),select2:(0,o["default"])(".select2",t.el)},i=(0,u.queryByHook)("tmpl-resource-row").html();r.select2.select2(),r.resourceItem.each(function(t,e){(0,o["default"])("table tr",e).length&&(0,u.queryByHook)("show-resource-details",e).show()}),r.resourceItem.on("click","[data-hook~=show-resource-details]",function(t){(0,o["default"])(t.currentTarget).closest("[data-hook~=resource-item]").children("[data-hook~=resource-details]").toggle(),t.preventDefault()}),r.editButton.add(r.cancelButton).on("click",function(t){e(),t.preventDefault()}),r.resourceRows.on("click","[data-hook~=remove-resource]",function(t){window.confirm("Delete this resource?")&&(0,o["default"])(t.currentTarget).closest("[data-hook~=resource-row]").remove(),t.preventDefault()}),r.addResourceButton.on("click",function(t){r.resourceRows.append(i)}),r.form.on("submit",function(i){var o=r.form.serializeJSON({useIntKeysAsArrayIndex:!0}),u=t.file.formatFrontMatter(o);t.file.save(u).then(function(t){e(),n("success",t.commit.html_url)})["catch"](function(t){n("error"),console.error(t)}),i.preventDefault()}),r.deleteButton.on("click",function(e){window.confirm("Delete this dataset?")&&t.file.remove().then(function(t){n("success",t.commit.html_url)})["catch"](function(t){n("error"),console.error(t)}),e.preventDefault()})};var i=n(3),o=r(i);n(44),n(27);var u=n(6)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return(0,f.chain)(t).groupBy("organization").map(function(t,e){var n=a((0,f.pick)(y,["category"])),r=(0,f.filter)(t,n),i=(0,p.slugify)(e),o=y.organization&&y.organization===i,u=o?(0,f.omit)(y,"organization"):(0,f.defaults)({organization:i},y);return{title:e,url:"?"+l["default"].param(u),count:r.length,unfilteredCount:t.length,selected:o}}).orderBy("unfilteredCount","desc").value()}function o(t){return(0,f.chain)(t).filter("category").flatMap(function(t,e,n){if("string"==typeof t.category)return t;var r=[];return t.category.forEach(function(e){r.push((0,f.defaults)({category:e},t))}),r}).groupBy("category").map(function(t,e){var n=a((0,f.pick)(y,["organization"])),r=(0,f.filter)(t,n),i=(0,p.slugify)(e),o=y.category&&y.category===i,u=o?(0,f.omit)(y,"category"):(0,f.defaults)({category:i},y);return{title:e,url:"?"+l["default"].param(u),count:r.length,unfilteredCount:t.length,selected:o}}).orderBy("unfilteredCount","desc").value()}function u(t,e){e||(e=t.data("show")||5);var n=(0,l["default"])(".list-group-item:gt("+(e-1)+"):not(.active)",t);if(n){n.hide();var r=(0,l["default"])('Show '+n.length+" more...");r.on("click",function(t){n.show(),(0,l["default"])(this).off("click"),(0,l["default"])(this).remove(),t.preventDefault()}),t.append(r)}}function a(t){return function(e){var n=[];return t.organization&&n.push(e.organization&&(0,p.slugify)(e.organization)===t.organization),t.category&&n.push(e.category&&-1!==(0,p.slugify)(e.category).indexOf(t.category)),n.every(function(t){return!!t})}}function s(t){var e=["title","notes"];return function(n){var r=n.toLowerCase();return(0,f.filter)(t,function(t){return e.reduce(function(e,n){return e||t[n]&&-1!==t[n].toLowerCase().indexOf(r)},!1)})}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){var e={categoriesItems:(0,p.queryByHook)("categories-items",t.el),organizationsItems:(0,p.queryByHook)("organizations-items",t.el),datasetsItems:(0,p.queryByHook)("datasets-items",t.el),datasetsCount:(0,p.queryByHook)("datasets-count",t.el),searchQuery:(0,p.queryByHook)("search-query",t.el)};l["default"].getJSON(m).done(function(t){var n=i(t),r=n.map(d["default"]);(0,p.setContent)(e.organizationsItems,r),u(e.organizationsItems);var c=o(t),l=c.map(d["default"]);(0,p.setContent)(e.categoriesItems,l),u(e.categoriesItems);var h=a((0,f.pick)(y,["organization","category"])),g=(0,f.filter)(t,h),m=g.map(v["default"]);(0,p.setContent)(e.datasetsItems,m);var D=g.length+" datasets";(0,p.setContent)(e.datasetsCount,D);var A=s(g);e.searchQuery.on("keyup",function(t){var n=t.currentTarget.value,r=A(n),i=r.map(v["default"]);(0,p.setContent)(e.datasetsItems,i);var o=r.length+" datasets";(0,p.setContent)(e.datasetsCount,o)})}).fail(function(){console.error("Error fetching",m)})};var c=n(3),l=r(c),f=n(22);n(16);var p=n(6),h=n(64),d=r(h),g=n(63),v=r(g),m=settings.BASE_URL+"/datasets.json",y=l["default"].deparam(window.location.search.substr(1))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t){n.loginLink.hide(),n.userName.text(t.username),n.userDropdown.removeClass("hidden")}t||(t={});var n={loginLink:(0,r.queryByHook)("login-link",t.el),logoutLink:(0,r.queryByHook)("logout-link",t.el),userName:(0,r.queryByHook)("user-name",t.el),userDropdown:(0,r.queryByHook)("user-dropdown",t.el)};n.loginLink.on("click",function(e){t.user.initiateLogin(),e.preventDefault()}),n.logoutLink.on("click",function(e){t.user.logout(),window.location.reload(!0),e.preventDefault()}),t.user.username&&e(t.user),t.user.on("change:username",e)},n(72);var r=n(6)},function(t,e,n){"use strict";function r(t){var e=t.match(/^https?:\/\/([\dA-Za-z-]+)/);return e?e[1]:""}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t){a.loginBtn.addClass("disabled").text("Signed in as "+t)}function n(t,e){a.alert.hide(),$("[data-hook~=alert-"+t+"]").show(),"success"===t&&e&&a.commitUrl.attr("href",e)}t||(t={});var a={clientId:(0,i.queryByHook)("github-client-id",t.el),appName:(0,i.queryByHook)("app-name",t.el),loginBtn:(0,i.queryByHook)("login-link",t.el),saveBtn:(0,i.queryByHook)("save",t.el),alert:(0,i.queryByHook)("alert",t.el),commitUrl:(0,i.queryByHook)("commit-url",t.el)};a.clientIdParent=a.clientId.parent(),a.clientIdHelpBlock=a.clientId.next(".help-block"),t.clientId&&t.proxyHost&&(a.clientId.val(t.user.clientId).attr("disabled",!0),a.appName.val(r(t.user.proxyHost)).attr("disabled",!0),a.saveBtn.removeClass("disabled")),t.user.username&&e(t.user.username),t.user.on("change:username",function(t){return e(t.username)}),a.clientId.keyup(function(t){a.clientId.length>o?(a.clientIdParent.addClass("has-error"),a.clientIdHelpBlock.text(u)):(a.clientIdParent.removeClass("has-error"),a.clientIdHelpBlock.empty())}),a.loginBtn.on("click",function(e){var n=a.clientId.val(),r=a.appName.val();n&&r&&(t.user.clientId=n,t.user.proxyHost="https://"+r+".herokuapp.com",t.user.initiateLogin()),e.preventDefault()}),a.saveBtn.on("click",function(e){var r={github_client_id:a.clientId.val(),gatekeeper_host:"https://"+a.appName.val()+".herokuapp.com"};t.file.read().then(function(e){var i=t.file.updateYamlString(e,r);t.file.save(i).then(function(t){n("success",t.commit.html_url)})["catch"](function(t){n("error"),console.error(t)})})["catch"](function(t){return console.error(t)}),e.preventDefault()})};var i=n(6),o=24,u="That looks too long to be the Client ID.\n Make sure you don't put the Client Secret here"},function(t,e,n){var r;(function(t,i){!function(o){var u="object"==typeof e&&e,a=("object"==typeof t&&t&&t.exports==u&&t,"object"==typeof i&&i);a.global!==a&&a.window!==a||(o=a);var s=function(t){this.message=t};s.prototype=new Error,s.prototype.name="InvalidCharacterError";var c=function(t){throw new s(t)},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=/[\t\n\f\r ]/g,p=function(t){t=String(t).replace(f,"");var e=t.length;e%4==0&&(t=t.replace(/==?$/,""),e=t.length),(e%4==1||/[^+a-zA-Z0-9\/]/.test(t))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,i=0,o="",u=-1;++u>(-2*i&6)));return o},h=function(t){t=String(t),/[^\0-\xFF]/.test(t)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var e,n,r,i,o=t.length%3,u="",a=-1,s=t.length-o;++a>18&63)+l.charAt(i>>12&63)+l.charAt(i>>6&63)+l.charAt(63&i);return 2==o?(e=t.charCodeAt(a)<<8,n=t.charCodeAt(++a),i=e+n,u+=l.charAt(i>>10)+l.charAt(i>>4&63)+l.charAt(i<<2&63)+"="):1==o&&(i=t.charCodeAt(a),u+=l.charAt(i>>2)+l.charAt(i<<4&63)+"=="),u},d={encode:h,decode:p,version:"0.1.0"};r=function(){return d}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(13)(t),function(){return this}())},function(t,e){+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&t(n);return r&&r.length?r:e.parent()}function n(n){n&&3===n.which||(t(i).remove(),t(o).each(function(){var r=t(this),i=e(r),o={relatedTarget:this};i.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(i[0],n.target)||(i.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function r(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new u(this)),"string"==typeof e&&r[e].call(n)})}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',u=function(e){t(e).on("click.bs.dropdown",this.toggle)};u.VERSION="3.3.6",u.prototype.toggle=function(r){var i=t(this);if(!i.is(".disabled, :disabled")){var o=e(i),u=o.hasClass("open");if(n(),!u){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(o.trigger(r=t.Event("show.bs.dropdown",a)),r.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},u.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var r=t(this);if(n.preventDefault(),n.stopPropagation(),!r.is(".disabled, :disabled")){var i=e(r),u=i.hasClass("open");if(!u&&27!=n.which||u&&27==n.which)return 27==n.which&&i.find(o).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",s=i.find(".dropdown-menu"+a);if(s.length){var c=s.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c0&&(t.splice(l-1,2),l-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((h||g)&&d){for(n=t.split("/"),l=n.length;l>0;l-=1){if(r=n.slice(0,l).join("/"),h)for(f=h.length;f>0;f-=1)if(i=d[h.slice(0,f).join("/")],i&&(i=i[r])){o=i,a=l;break}if(o)break;!s&&g&&g[r]&&(s=g[r],c=l)}!o&&s&&(o=s,a=c),o&&(n.splice(0,a,o),t=n.join("/"))}return t}function u(t,n){return function(){var r=w.call(arguments,0);return"string"!=typeof r[0]&&1===r.length&&r.push(null),h.apply(e,r.concat([t,n]))}}function a(t){return function(e){return o(e,t)}}function s(t){return function(e){v[t]=e}}function c(t){if(i(m,t)){var n=m[t];delete m[t],D[t]=!0,p.apply(e,n)}if(!i(v,t)&&!i(D,t))throw new Error("No "+t);return v[t]}function l(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function f(t){return function(){return y&&y.config&&y.config[t]||{}}}var p,h,d,g,v={},m={},y={},D={},A=Object.prototype.hasOwnProperty,w=[].slice,C=/\.js$/;d=function(t,e){var n,r=l(t),i=r[0];return t=r[1],i&&(i=o(i,e),n=c(i)),i?t=n&&n.normalize?n.normalize(t,a(e)):o(t,e):(t=o(t,e),r=l(t),i=r[0],t=r[1],i&&(n=c(i))),{f:i?i+"!"+t:t,n:t,pr:i,p:n}},g={require:function(t){return u(t)},exports:function(t){var e=v[t];return"undefined"!=typeof e?e:v[t]={}},module:function(t){return{id:t,uri:"",exports:v[t],config:f(t)}}},p=function(t,n,r,o){var a,l,f,p,h,y,A=[],w=typeof r;if(o=o||t,"undefined"===w||"function"===w){for(n=!n.length&&r.length?["require","exports","module"]:n,h=0;h0&&(e.call(arguments,t.prototype.constructor),i=n.prototype.constructor),i.apply(this,arguments)}function i(){this.constructor=r}var o=e(n),u=e(t);n.displayName=t.displayName,r.prototype=new i;for(var a=0;an;n++)t[n].apply(this,e)},n.Observable=r,n.generateChars=function(t){for(var e="",n=0;t>n;n++){var r=Math.floor(36*Math.random());e+=r.toString(36)}return e},n.bind=function(t,e){return function(){t.apply(e,arguments)}},n._convertData=function(t){for(var e in t){var n=e.split("-"),r=t;if(1!==n.length){for(var i=0;i":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},n.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var r=t();t.map(n,function(t){r=r.add(t)}),n=r}e.append(n)},n}),e.define("select2/results",["jquery","./utils"],function(t,e){function n(t,e,r){this.$element=t,this.data=r,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var r=t(''),i=this.options.get("translations").get(e.message);r.append(n(i(e.args))),r[0].className+=" select2-results__message",this.$results.append(r)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null==t.results||0===t.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));t.results=this.sort(t.results);for(var n=0;n-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")});var o=i.filter("[aria-selected=true]");o.length>0?o.first().trigger("mouseenter"):i.first().trigger("mouseenter")})},n.prototype.showLoading=function(t){this.hideLoading();var e=this.options.get("translations").get("searching"),n={disabled:!0,loading:!0,text:e(t)},r=this.option(n);r.className+=" loading-results",this.$results.prepend(r)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(e){var n=document.createElement("li");n.className="select2-results__option";var r={role:"treeitem","aria-selected":"false"};e.disabled&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==e.id&&delete r["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(r.role="group",r["aria-label"]=e.text,delete r["aria-selected"]);for(var i in r){var o=r[i];n.setAttribute(i,o)}if(e.children){var u=t(n),a=document.createElement("strong");a.className="select2-results__group";t(a);this.template(e,a);for(var s=[],c=0;c",{"class":"select2-results__options select2-results__options--nested"});p.append(s),u.append(a),u.append(p)}else this.template(e,n);return t.data(n,"data",e),n},n.prototype.bind=function(e,n){var r=this,i=e.id+"-results";this.$results.attr("id",i),e.on("results:all",function(t){r.clear(),r.append(t.data),e.isOpen()&&r.setClasses()}),e.on("results:append",function(t){r.append(t.data),e.isOpen()&&r.setClasses()}),e.on("query",function(t){r.hideMessages(),r.showLoading(t)}),e.on("select",function(){e.isOpen()&&r.setClasses()}),e.on("unselect",function(){e.isOpen()&&r.setClasses()}),e.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),e.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),e.on("results:toggle",function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),e.on("results:select",function(){var t=r.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:e})}}),e.on("results:previous",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(0!==n){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var u=r.$results.offset().top,a=o.offset().top,s=r.$results.scrollTop()+(a-u);0===i?r.$results.scrollTop(0):0>a-u&&r.$results.scrollTop(s)}}),e.on("results:next",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t),i=n+1;if(!(i>=e.length)){var o=e.eq(i);o.trigger("mouseenter");var u=r.$results.offset().top+r.$results.outerHeight(!1),a=o.offset().top+o.outerHeight(!1),s=r.$results.scrollTop()+a-u;0===i?r.$results.scrollTop(0):a>u&&r.$results.scrollTop(s)}}),e.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),e.on("results:message",function(t){r.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var n=t(this),i=n.data("data");return"true"===n.attr("aria-selected")?void(r.options.get("multiple")?r.trigger("unselect",{originalEvent:e,data:i}):r.trigger("close",{})):void r.trigger("select",{originalEvent:e,data:i})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var n=t(this).data("data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:n,element:t(this)})})},n.prototype.getHighlightedResults=function(){var t=this.$results.find(".select2-results__option--highlighted");return t},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]"),n=e.index(t),r=this.$results.offset().top,i=t.offset().top,o=this.$results.scrollTop()+(i-r),u=i-r;o-=2*t.outerHeight(!1),2>=n?this.$results.scrollTop(0):(u>this.$results.outerHeight()||0>u)&&this.$results.scrollTop(o)}},n.prototype.template=function(e,n){var r=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),o=r(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=i(o):t(n).append(o)},n}),e.define("select2/keys",[],function(){var t={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return t}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,e.Observable),r.prototype.render=function(){var e=t('');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e,e},r.prototype.bind=function(t,e){var r=this,i=(t.id+"-container",t.id+"-results");this.container=t,this.$selection.on("focus",function(t){r.trigger("focus",t)}),this.$selection.on("blur",function(t){r._handleBlur(t)}),this.$selection.on("keydown",function(t){r.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){r.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){r.update(t.data)}),t.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(t)}),t.on("close",function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),r.$selection.focus(),r._detachCloseHandler(t)}),t.on("enable",function(){r.$selection.attr("tabindex",r._tabindex)}),t.on("disable",function(){r.$selection.attr("tabindex","-1")})},r.prototype._handleBlur=function(e){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)},1)},r.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,function(e){var n=t(e.target),r=n.closest(".select2"),i=t(".select2.select2-container--open");i.each(function(){var e=t(this);if(this!=r[0]){var n=e.data("element");n.select2("close")}})})},r.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},r.prototype.position=function(t,e){var n=e.find(".selection");n.append(t)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},r}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,r){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html(''),t},i.prototype.bind=function(t,e){var n=this;i.__super__.bind.apply(this,arguments);var r=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",r),this.$selection.attr("aria-labelledby",r),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("selection:update",function(t){n.update(t.data)})},i.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},i.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},i.prototype.selectionContainer=function(){return t("")},i.prototype.update=function(t){if(0===t.length)return void this.clear();var e=t[0],n=this.$selection.find(".select2-selection__rendered"),r=this.display(e,n);n.empty().append(r),n.prop("title",e.title||e.text)},i}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,n){function r(t,e){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html(''),t},r.prototype.bind=function(e,n){var i=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){i.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!i.options.get("disabled")){var n=t(this),r=n.parent(),o=r.data("data");i.trigger("unselect",{originalEvent:e,data:o})}})},r.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},r.prototype.display=function(t,e){var n=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(n(t,e))},r.prototype.selectionContainer=function(){var e=t('×');return e},r.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],r=0;r1;if(r||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys"],function(t,e){function n(){}return n.prototype.bind=function(t,e,n){var r=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){r._handleClear(t)}),e.on("keypress",function(t){r._handleKeyboardClear(t,e)})},n.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();for(var r=n.data("data"),i=0;i0||0===n.length)){var r=t('×');r.data("data",n),this.$selection.find(".select2-selection__rendered").prepend(r)}},n}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,n){function r(t,e,n){t.call(this,e,n)}return r.prototype.render=function(e){var n=t('');this.$searchContainer=n,this.$search=n.find("input");var r=e.call(this);return this._transferTabIndex(),r},r.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(t){i.$search.trigger("focus")}),e.on("results:focus",function(t){i.$search.attr("aria-activedescendant",t.id)}),this.$selection.on("focusin",".select2-search--inline",function(t){i.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){i._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){t.stopPropagation(),i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented();var e=t.which;if(e===n.BACKSPACE&&""===i.$search.val()){var r=i.$searchContainer.prev(".select2-selection__choice");if(r.length>0){var o=r.data("data");i.searchRemoveChoice(o),t.preventDefault()}}});var o=document.documentMode,u=o&&11>=o;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){return u?void i.$selection.off("input.search input.searchcheck"):void i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(u&&"input"===t.type)return void i.$selection.off("input.search input.searchcheck");var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&i.handleSearch(t)})},r.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},r.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},r.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";if(""!==this.$search.attr("placeholder"))t=this.$selection.find(".select2-selection__rendered").innerWidth();else{var e=this.$search.val().length+1;t=.75*e+"em"}this.$search.css("width",t)},r}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,n,r){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],u=["opening","closing","selecting","unselecting"];e.call(this,n,r),n.on("*",function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var r=t.Event("select2:"+e,{params:n});i.$element.trigger(r),-1!==t.inArray(e,u)&&(n.prevented=r.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var r=e(t);n._cache[t]=r}return new n(n._cache[t])},n}),e.define("select2/diacritics",[],function(){var t={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"};return t}),e.define("select2/data/base",["../utils"],function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var r=e.id+"-result-";return r+=t.generateChars(4),r+=null!=n.id?"-"+n.id.toString():"-"+t.generateChars(4)},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,n){function r(t,e){this.$element=t,this.options=e,r.__super__.constructor.call(this)}return e.Extend(r,t),r.prototype.current=function(t){var e=[],r=this;this.$element.find(":selected").each(function(){var t=n(this),i=r.item(t);e.push(i)}),t(e)},r.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current(function(r){var i=[];t=[t],t.push.apply(t,r);for(var o=0;o=0){var l=o.filter(r(c)),f=this.item(l),p=n.extend(!0,{},c,f),h=this.option(p);l.replaceWith(h)}else{var d=this.option(c);if(c.children){var g=this.convertToOptions(c.children);e.appendMany(d,g)}a.push(d)}}return a},r}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,n){function r(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),r.__super__.constructor.call(this,t,e)}return e.Extend(r,t),r.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,r){var i=n.ajax(t);return i.then(e),i.fail(r),i}};return n.extend({},e,t,!0)},r.prototype.processResults=function(t){return t},r.prototype.query=function(t,e){function r(){var r=o.transport(o,function(r){var o=i.processResults(r,t);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)},function(){i.trigger("results:message",{message:"errorLoading"})});i._request=r}var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=n.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&""!==t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(r,this.ajaxOptions.delay)):r()},r}),e.define("select2/data/tags",["jquery"],function(t){function e(e,n,r){var i=r.get("tags"),o=r.get("createTag");void 0!==o&&(this.createTag=o);var u=r.get("insertTag");if(void 0!==u&&(this.insertTag=u),e.call(this,n,r),t.isArray(i))for(var a=0;a0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,n)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){var r=this;this.current(function(i){var o=null!=i?i.length:0;return r.maximumSelectionLength>0&&o>=r.maximumSelectionLength?void r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):void t.call(r,e,n)})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),r=t('');return this.$searchContainer=r,this.$search=r.find("input"),n.prepend(r),n},n.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),this.$search.on("keydown",function(t){i.trigger("keypress",t),i._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){i.handleSearch(t)}),n.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),n.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),n.on("results:all",function(t){if(null==t.query.term||""===t.query.term){var e=i.showSearch(t);e?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide")}})},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,r){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,r)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),r=e.length-1;r>=0;r--){var i=e[r];this.placeholder.id===i.id&&n.splice(r,1)}return n},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,n,r){this.lastParams={},t.call(this,e,n,r),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,n,r){var i=this;e.call(this,n,r),n.on("query",function(t){i.lastParams=t,i.loading=!0}),n.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",function(){var e=t.contains(document.documentElement,i.$loadingMore[0]);if(!i.loading&&e){var n=i.$results.offset().top+i.$results.outerHeight(!1),r=i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1);n+50>=r&&i.loadMore()}})},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t(''),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function n(e,n,r){this.$dropdownParent=r.get("dropdownParent")||t(document.body),e.call(this,n,r)}return n.prototype.bind=function(t,e,n){var r=this,i=!1;t.call(this,e,n),e.on("open",function(){r._showDropdown(),r._attachPositioningHandler(e),i||(i=!0,e.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),e.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),e.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t(""),r=e.call(this);return n.append(r),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._attachPositioningHandler=function(n,r){var i=this,o="scroll.select2."+r.id,u="resize.select2."+r.id,a="orientationchange.select2."+r.id,s=this.$container.parents().filter(e.hasScroll);s.each(function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),s.on(o,function(e){var n=t(this).data("select2-scroll-position");t(this).scrollTop(n.y)}),t(window).on(o+" "+u+" "+a,function(t){i._positionDropdown(),i._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,r){var i="scroll.select2."+r.id,o="resize.select2."+r.id,u="orientationchange.select2."+r.id,a=this.$container.parents().filter(e.hasScroll);a.off(i),t(window).off(i+" "+o+" "+u)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),r=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var u={height:this.$container.outerHeight(!1)};u.top=o.top,u.bottom=o.top+u.height;var a={height:this.$dropdown.outerHeight(!1)},s={top:e.scrollTop(),bottom:e.scrollTop()+e.height()},c=s.topo.bottom+a.height,f={left:o.left,top:u.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var h=p.offset();f.top-=h.top,f.left-=h.left,n||r||(i="below"),l||!c||n?!c&&l&&n&&(i="below"):i="above",("above"==i||n&&"below"!==i)&&(f.top=u.top-a.height),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(f)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(e){for(var n=0,r=0;r0&&(f.dataAdapter=c.Decorate(f.dataAdapter,m)),f.maximumInputLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,y)),f.maximumSelectionLength>0&&(f.dataAdapter=c.Decorate(f.dataAdapter,D)),f.tags&&(f.dataAdapter=c.Decorate(f.dataAdapter,g)),null==f.tokenSeparators&&null==f.tokenizer||(f.dataAdapter=c.Decorate(f.dataAdapter,v)),null!=f.query){var S=e(f.amdBase+"compat/query");f.dataAdapter=c.Decorate(f.dataAdapter,S)}if(null!=f.initSelection){var k=e(f.amdBase+"compat/initSelection");f.dataAdapter=c.Decorate(f.dataAdapter,k)}}if(null==f.resultsAdapter&&(f.resultsAdapter=n,null!=f.ajax&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,b)),null!=f.placeholder&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,C)),f.selectOnClose&&(f.resultsAdapter=c.Decorate(f.resultsAdapter,x))),null==f.dropdownAdapter){if(f.multiple)f.dropdownAdapter=A;else{var B=c.Decorate(A,w);f.dropdownAdapter=B}if(0!==f.minimumResultsForSearch&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,_)),f.closeOnSelect&&(f.dropdownAdapter=c.Decorate(f.dropdownAdapter,F)),null!=f.dropdownCssClass||null!=f.dropdownCss||null!=f.adaptDropdownCssClass){var O=e(f.amdBase+"compat/dropdownCss");f.dropdownAdapter=c.Decorate(f.dropdownAdapter,O)}f.dropdownAdapter=c.Decorate(f.dropdownAdapter,E)}if(null==f.selectionAdapter){if(f.multiple?f.selectionAdapter=i:f.selectionAdapter=r,null!=f.placeholder&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,o)),f.allowClear&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,u)),f.multiple&&(f.selectionAdapter=c.Decorate(f.selectionAdapter,a)),null!=f.containerCssClass||null!=f.containerCss||null!=f.adaptContainerCssClass){var I=e(f.amdBase+"compat/containerCss");f.selectionAdapter=c.Decorate(f.selectionAdapter,I)}f.selectionAdapter=c.Decorate(f.selectionAdapter,s)}if("string"==typeof f.language)if(f.language.indexOf("-")>0){var T=f.language.split("-"),j=T[0];f.language=[f.language,j]}else f.language=[f.language];if(t.isArray(f.language)){var $=new l;f.language.push("en");for(var P=f.language,R=0;R0){for(var o=t.extend(!0,{},i),u=i.children.length-1;u>=0;u--){var a=i.children[u],s=n(r,a);null==s&&o.children.splice(u,1)}return o.children.length>0?o:n(r,o)}var c=e(i.text).toUpperCase(),l=e(r.term).toUpperCase();return c.indexOf(l)>-1?i:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:S,matcher:n,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},k.prototype.set=function(e,n){var r=t.camelCase(e),i={};i[r]=n;var o=c._convertData(i);t.extend(this.defaults,o)};var B=new k;return B}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,n,r){function i(e,i){if(this.options=e,null!=i&&this.fromElement(i),this.options=n.apply(this.options),i&&i.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,o)}}return i.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var i={};i=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var o=e.extend(!0,{},i);o=r._convertData(o);for(var u in o)e.inArray(u,n)>-1||(e.isPlainObject(this.options[u])?e.extend(this.options[u],o[u]):this.options[u]=o[u]);return this},i.prototype.get=function(t){return this.options[t]},i.prototype.set=function(t,e){this.options[t]=e},i}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,n,r){var i=function(t,n){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),i.__super__.constructor.call(this);var r=t.attr("tabindex")||0;t.data("old-tabindex",r),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var u=this.render();this._placeContainer(u);var a=this.options.get("selectionAdapter");this.selection=new a(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,u);var s=this.options.get("dropdownAdapter");this.dropdown=new s(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,u);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var l=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){l.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return n.Extend(i,n.Observable),i.prototype._generateId=function(t){var e="";return e=null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4),e=e.replace(/(:|\.|\[|\]|,)/g,""),e="select2-"+e},i.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},i.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var r=this._resolveWidth(t,"style");return null!=r?r:this._resolveWidth(t,"element")}if("element"==e){var i=t.outerWidth(!1);return 0>=i?"auto":i+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var u=o.split(";"),a=0,s=u.length;s>a;a+=1){var c=u[a].replace(/\s/g,""),l=c.match(n);if(null!==l&&l.length>=1)return l[1]}return null}return e},i.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},i.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",function(){e.dataAdapter.current(function(t){e.trigger("selection:update",{data:t})})}),this._sync=n.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var r=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=r?(this._observer=new r(function(n){t.each(n,e._sync)}),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",e._sync,!1)},i.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(r,i){-1===t.inArray(r,n)&&e.trigger(r,i)})},i.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,n){t.trigger(e,n)})},i.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(n){t.trigger("results:all",{data:n,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(n){t.trigger("results:append",{data:n,query:e})})}),this.on("keypress",function(e){var n=e.which;t.isOpen()?n===r.ESC||n===r.TAB||n===r.UP&&e.altKey?(t.close(),e.preventDefault()):n===r.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===r.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===r.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===r.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===r.ENTER||n===r.SPACE||n===r.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},i.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},i.prototype.trigger=function(t,e){var n=i.__super__.trigger,r={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in r){var o=r[t],u={prevented:!1,name:t,args:e};if(n.call(this,o,u),u.prevented)return void(e.prevented=!0)}n.call(this,t,e)},i.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},i.prototype.open=function(){this.isOpen()||this.trigger("query",{})},i.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},i.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},i.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},i.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},i.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},i.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},i.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,function(t){return t.toString()})),this.$element.val(n).trigger("change")},i.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},i.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},i}),e.define("jquery-mousewheel",["jquery"],function(t){return t}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(t,e,n,r){if(null==t.fn.select2){var i=["open","close","destroy"];t.fn.select2=function(e){if(e=e||{},"object"==typeof e)return this.each(function(){var r=t.extend(!0,{},e);new n(t(this),r)}),this;if("string"==typeof e){var r;return this.each(function(){var n=t(this).data("select2");null==n&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2.");var i=Array.prototype.slice.call(arguments,1);r=n[e].apply(n,i)}),t.inArray(e,i)>-1?this:r}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=r),n}),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n})},function(t,e,n){var r=n(126),i=n(42),o=n(5),u=n(121),a=n(116),s=(n(40),n(39)),c=Array.prototype.slice,l=/\s+/,f={on:function(t,e,n){if(!p(this,"on",t,[e,n])||!e)return this;this._events||(this._events={});var r=this._events[t]||(this._events[t]=[]);return r.push({callback:e,context:n,ctx:n||this}),this},once:function(t,e,n){if(!p(this,"once",t,[e,n])||!e)return this;var i=this,o=r(function(){i.off(t,o),e.apply(this,arguments)});return o._callback=e,this.on(t,o,n)},off:function(t,e,n){var r,i,u,a,s,c,l,f;if(!this._events||!p(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events=void 0,this;for(a=t?[t]:o(this._events),s=0,c=a.length;c>s;s++)if(t=a[s],u=this._events[t]){if(this._events[t]=r=[],e||n)for(l=0,
+f=u.length;f>l;l++)i=u[l],(e&&e!==i.callback&&e!==i.callback._callback||n&&n!==i.context)&&r.push(i);r.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=c.call(arguments,1);if(!p(this,"trigger",t,e))return this;var n=this._events[t],r=this._events.all;return n&&h(n,e),r&&h(r,arguments),this},stopListening:function(t,e,n){var r=this._listeningTo;if(!r)return this;var i=!e&&!n;n||"object"!=typeof e||(n=this),t&&((r={})[t._listenId]=t);for(var o in r)t=r[o],t.off(e,n,this),(i||u(t._events))&&delete this._listeningTo[o];return this},createEmitter:function(t){return s(t||{},f)}};f.bind=f.on,f.unbind=f.off;var p=function(t,e,n,r){if(!n)return!0;if("object"==typeof n){for(var i in n)t[e].apply(t,[i,n[i]].concat(r));return!1}if(l.test(n)){for(var o=n.split(l),u=0,a=o.length;a>u;u++)t[e].apply(t,[o[u]].concat(r));return!1}return!0},h=function(t,e){var n,r=-1,i=t.length,o=e[0],u=e[1],a=e[2];switch(e.length){case 0:for(;++rn-1&&(r=0),t[r]}},function(t,e,n){t.exports=n(48)},function(t,e,n){"use strict";function r(t){this.defaults=o.merge({},t),this.interceptors={request:new a,response:new a}}var i=n(51),o=n(4),u=n(50),a=n(49),s=n(57),c=n(55),l=n(52),f=n(25);r.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),t=o.merge(i,this.defaults,{method:"get"},t),t.baseURL&&!s(t.url)&&(t.url=c(t.baseURL,t.url)),t.withCredentials=t.withCredentials||this.defaults.withCredentials,t.data=f(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]});var e=[u,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n};var p=new r(i),h=t.exports=l(r.prototype.request,p);h.create=function(t){return new r(t)},h.defaults=p.defaults,h.all=function(t){return Promise.all(t)},h.spread=n(60),h.interceptors=p.interceptors,o.forEach(["delete","get","head"],function(t){r.prototype[t]=function(e,n){return this.request(o.merge(n||{},{method:t,url:e}))},h[t]=l(r.prototype[t],p)}),o.forEach(["post","put","patch"],function(t){r.prototype[t]=function(e,n,r){return this.request(o.merge(r||{},{method:t,url:e,data:n}))},h[t]=l(r.prototype[t],p)})},function(t,e,n){"use strict";function r(){this.handlers=[]}var i=n(4);r.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},r.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},r.prototype.forEach=function(t){i.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=r},function(t,e,n){(function(e){"use strict";t.exports=function(t){return new Promise(function(r,i){try{var o;"function"==typeof t.adapter?o=t.adapter:"undefined"!=typeof XMLHttpRequest?o=n(24):"undefined"!=typeof e&&(o=n(24)),"function"==typeof o&&o(r,i,t)}catch(u){i(u)}})}}).call(e,n(43))},function(t,e,n){"use strict";var r=n(4),i=/^\)\]\}',?\n/,o={"Content-Type":"application/x-www-form-urlencoded"};t.exports={transformRequest:[function(t,e){return r.isFormData(t)?t:r.isArrayBuffer(t)?t:r.isArrayBufferView(t)?t.buffer:!r.isObject(t)||r.isFile(t)||r.isBlob(t)?t:(r.isUndefined(e)||(r.forEach(e,function(t,n){"content-type"===n.toLowerCase()&&(e["Content-Type"]=t)}),r.isUndefined(e["Content-Type"])&&(e["Content-Type"]="application/json;charset=utf-8")),JSON.stringify(t))}],transformResponse:[function(t){if("string"==typeof t){t=t.replace(i,"");try{t=JSON.parse(t)}catch(e){}}return t}],headers:{common:{Accept:"application/json, text/plain, */*"},patch:r.merge(o),post:r.merge(o),put:r.merge(o)},timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"}},function(t,e){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r>8-a%1*8)){if(r=o.charCodeAt(a+=.75),r>255)throw new n("INVALID_CHARACTER_ERR: DOM Exception 5");e=e<<8|r}return u}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";n.prototype=new Error,n.prototype.code=5,n.prototype.name="InvalidCharacterError",t.exports=r},function(t,e,n){"use strict";function r(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var i=n(4);t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else{var u=[];i.forEach(e,function(t,e){null!==t&&"undefined"!=typeof t&&(i.isArray(t)&&(e+="[]"),i.isArray(t)||(t=[t]),i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),u.push(r(e)+"="+r(t))}))}),o=u.join("&")}return o&&(t+=(-1===t.indexOf("?")?"?":"&")+o),t}},function(t,e){"use strict";t.exports=function(t,e){return t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,"")}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,u){var a=[];a.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),r.isString(i)&&a.push("path="+i),r.isString(o)&&a.push("domain="+o),u===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";var r=n(4);t.exports=r.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(i.setAttribute("href",e),e=i.href),i.setAttribute("href",e),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");return e=t(window.location.href),function(n){var i=r.isString(n)?t(n):n;return i.protocol===e.protocol&&i.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";var r=n(4);t.exports=function(t){var e,n,i,o={};return t?(r.forEach(t.split("\n"),function(t){i=t.indexOf(":"),e=r.trim(t.substr(0,i)).toLowerCase(),n=r.trim(t.substr(i+1)),e&&(o[e]=o[e]?o[e]+", "+n:n)}),o):o}},function(t,e){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(23),o=r(i),u=n(26),a=r(u),s=n(78),c=r(s);e["default"]=o["default"].extend({props:{repoOwner:"string",repoName:"string",repoBranch:"string",filePath:"string",defaultDir:"string"},session:{user:"state"},derived:{fileName:{deps:["filePath"],fn:function(){return this.filePath.split("/").pop()}},repo:{deps:["user.oauthToken","repoOwner","repoName"],fn:function(){var t=new a["default"]({token:this.user.oauthToken,auth:"oauth"});return t.getRepo(this.repoOwner,this.repoName)}}},read:function(){var t=this;return new Promise(function(e,n){t.repo.read(t.repoBranch,t.filePath,function(t,r){t?n(t):e(r)})})},create:function(t,e){return this.filePath=(this.defaultDir?this.defaultDir+"/":"")+t,this.save(e,"Created "+t)},save:function(t,e){var n=this;return new Promise(function(r,i){e||(e="Updated "+n.fileName),n.repo.write(n.repoBranch,n.filePath,t,e,{},function(t,e){t?i(t):r(e)})})},remove:function(){var t=this;return new Promise(function(e,n){t.repo.remove(t.repoBranch,t.filePath,function(t,r){t?n(t):e(r)})})},formatYaml:function(t){return c["default"].safeDump(t)},formatFrontMatter:function(t){return"---\n"+this.formatYaml(t).trim()+"\n---"},updateYamlString:function(t,e){for(var n in e){var r=new RegExp("^( *"+n+": +?).*","m"),i=t.match(r);i?t=t.replace(r,i[1]+e[n]):t+="\n"+n+": "+e[n]}return t}})},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0});var i=n(23),o=r(i),u=n(77),a=r(u),s=n(26),c=r(s),l=n(3),f=r(l);n(16);var p="https://github.com/login/oauth/authorize";e["default"]=o["default"].extend({props:{oauthToken:"string",username:"string",isCollaborator:"boolean"},session:{repoOwner:"string",repoName:"string",clientId:"string",proxyHost:"string"},initialize:function(){this.set(a["default"].getJSON("jkan"))},initiateLogin:function(){var t={clientId:this.clientId,proxyHost:this.proxyHost},e={client_id:this.clientId,redirect_uri:window.location.href.split("?")[0]+"?"+f["default"].param(t),scope:"public_repo"};window.location.href=p+"?"+f["default"].param(e)},finishLogin:function(t){var e=this;return this._verify(t).then(function(t){e.set("oauthToken",t),a["default"].set("jkan",e.serialize()),e._getUser(t).then(function(t){e.set("username",t.login),a["default"].set("jkan",e.serialize()),e._isCollaborator(t.login).then(function(){e.set("isCollaborator",!0),a["default"].set("jkan",e.serialize())})["catch"](function(){return e.set("isCollaborator",!1)})})["catch"](function(){return console.error("Error fetching user info")})})["catch"](function(){return console.error("Error verifying auth code")})},_verify:function(t){var e=this;return new Promise(function(n,r){var i=e.proxyHost+"/authenticate/"+t;f["default"].getJSON(i,function(t){t&&t.token?n(t.token):r("Authentication failed")})})},logout:function(){a["default"].remove("jkan")},_getUser:function(){var t=this;return new Promise(function(e,n){var r=new c["default"]({token:t.oauthToken,auth:"oauth"}),i=r.getUser();i.show(null,function(t,r){t?n(t):e(r)})})},_isCollaborator:function(t){var e=this;return new Promise(function(n,r){var i=new c["default"]({token:e.oauthToken,auth:"oauth"}),o=i.getRepo(e.repoOwner,e.repoName);o.isCollaborator(t,function(t){t?r(t):n()})})}})},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return'\n \n "+(t.notes||"")+"\n"}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){return'\n '+t.title+'\n '+t.count+"\n "+(t.selected?'':"")+"\n"}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t){var e=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],r=e.commitUrl,i=e.fileSlug;if(n.alert.hide(),(0,o["default"])("[data-hook~=alert-"+t+"]").show(),"success"===t&&r){n.commitUrl.attr("href",r);var u=settings.BASE_URL+"/datasets/"+i+"/";n.datasetUrl.attr("href",u).text(u)}}t||(t={});var n={form:(0,u.queryByHook)("dataset-form",t.el),resourceRows:(0,u.queryByHook)("resource-rows",t.el),addResourceButton:(0,u.queryByHook)("add-resource",t.el),alert:(0,u.queryByHook)("alert",t.el),commitUrl:(0,u.queryByHook)("commit-url",t.el),datasetUrl:(0,u.queryByHook)("dataset-url",t.el),select2:(0,o["default"])(".select2",t.el)},r=(0,u.queryByHook)("tmpl-resource-row").html();n.select2.select2(),n.resourceRows.on("click","[data-hook~=remove-resource]",function(t){window.confirm("Delete this resource?")&&(0,o["default"])(t.currentTarget).closest("[data-hook~=resource-row]").remove(),t.preventDefault()}),n.addResourceButton.on("click",function(t){n.resourceRows.append(r)}),n.form.on("submit",function(r){r.preventDefault();var i=n.form.serializeJSON({useIntKeysAsArrayIndex:!0});if(!i.title)return void e("error");var o=t.file.formatFrontMatter(i),a=(0,u.slugify)(i.title);t.file.create(a+".md",o).then(function(t){e("success",{commitUrl:t.commit.html_url,fileSlug:a})})["catch"](function(t){e("error"),console.error(t)})})};var i=n(3),o=r(i);n(44),n(27);var u=n(6)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t,e){n.alert.hide(),(0,o["default"])("[data-hook~=alert-"+t+"]").show(),"success"===t&&e&&n.commitUrl.attr("href",e)}t||(t={});var n={adminForm:(0,u.queryByHook)("admin-form",t.el),alert:(0,u.queryByHook)("alert",t.el),commitUrl:(0,u.queryByHook)("commit-url",t.el)};n.adminForm.on("submit",function(r){var i=n.adminForm.serializeJSON();t.file.read().then(function(n){var r=t.file.updateYamlString(n,i);t.file.save(r).then(function(t){e("success",t.commit.html_url)})["catch"](function(t){e("error"),console.error(t)})})["catch"](function(t){return console.error(t)}),r.preventDefault()})};var i=n(3),o=r(i),u=n(6)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(){r.readView.add(r.editView).toggle()}function n(t,e){r.alert.hide(),(0,o["default"])("[data-hook~=alert-"+t+"]").show(),"success"===t&&e&&r.commitUrl.attr("href",e)}t||(t={});var r={resourceItem:(0,u.queryByHook)("resource-item",t.el),form:(0,u.queryByHook)("dataset-form",t.el),editButton:(0,u.queryByHook)("edit-button",t.el),cancelButton:(0,u.queryByHook)("cancel-button",t.el),deleteButton:(0,u.queryByHook)("delete-button",t.el),resourceRows:(0,u.queryByHook)("resource-rows",t.el),addResourceButton:(0,u.queryByHook)("add-resource",t.el),alert:(0,u.queryByHook)("alert",t.el),commitUrl:(0,u.queryByHook)("commit-url",t.el),readView:(0,u.queryByHook)("read-view",t.el),editView:(0,u.queryByHook)("edit-view",t.el),select2:(0,o["default"])(".select2",t.el)},i=(0,u.queryByHook)("tmpl-resource-row").html();r.select2.select2(),r.resourceItem.each(function(t,e){(0,o["default"])("table tr",e).length&&(0,u.queryByHook)("show-resource-details",e).show()}),r.resourceItem.on("click","[data-hook~=show-resource-details]",function(t){(0,o["default"])(t.currentTarget).closest("[data-hook~=resource-item]").children("[data-hook~=resource-details]").toggle(),t.preventDefault()}),t.user.username&&t.user.isCollaborator&&r.editButton.show(),t.user.on("change",function(t){t.username&&t.isCollaborator&&r.editButton.show()}),r.editButton.add(r.cancelButton).on("click",function(t){e(),t.preventDefault()}),r.resourceRows.on("click","[data-hook~=remove-resource]",function(t){window.confirm("Delete this resource?")&&(0,o["default"])(t.currentTarget).closest("[data-hook~=resource-row]").remove(),t.preventDefault()}),r.addResourceButton.on("click",function(t){r.resourceRows.append(i)}),r.form.on("submit",function(i){var o=r.form.serializeJSON({useIntKeysAsArrayIndex:!0}),u=t.file.formatFrontMatter(o);t.file.save(u).then(function(t){e(),n("success",t.commit.html_url)})["catch"](function(t){n("error"),console.error(t)}),i.preventDefault()}),r.deleteButton.on("click",function(e){window.confirm("Delete this dataset?")&&t.file.remove().then(function(t){n("success",t.commit.html_url)})["catch"](function(t){n("error"),console.error(t)}),e.preventDefault()})};var i=n(3),o=r(i);n(44),n(27);var u=n(6)},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function i(t){return(0,f.chain)(t).groupBy("organization").map(function(t,e){var n=a((0,f.pick)(y,["category"])),r=(0,f.filter)(t,n),i=(0,p.slugify)(e),o=y.organization&&y.organization===i,u=o?(0,f.omit)(y,"organization"):(0,f.defaults)({organization:i},y);return{title:e,url:"?"+l["default"].param(u),count:r.length,unfilteredCount:t.length,selected:o}}).orderBy("unfilteredCount","desc").value()}function o(t){return(0,f.chain)(t).filter("category").flatMap(function(t,e,n){if("string"==typeof t.category)return t;var r=[];return t.category.forEach(function(e){r.push((0,f.defaults)({category:e},t))}),r}).groupBy("category").map(function(t,e){var n=a((0,f.pick)(y,["organization"])),r=(0,f.filter)(t,n),i=(0,p.slugify)(e),o=y.category&&y.category===i,u=o?(0,f.omit)(y,"category"):(0,f.defaults)({category:i},y);return{title:e,url:"?"+l["default"].param(u),count:r.length,unfilteredCount:t.length,selected:o}}).orderBy("unfilteredCount","desc").value()}function u(t,e){e||(e=t.data("show")||5);var n=(0,l["default"])(".list-group-item:gt("+(e-1)+"):not(.active)",t);if(n){n.hide();var r=(0,l["default"])('Show '+n.length+" more...");r.on("click",function(t){n.show(),(0,l["default"])(this).off("click"),(0,l["default"])(this).remove(),t.preventDefault()}),t.append(r)}}function a(t){return function(e){var n=[];return t.organization&&n.push(e.organization&&(0,p.slugify)(e.organization)===t.organization),t.category&&n.push(e.category&&-1!==(0,p.slugify)(e.category).indexOf(t.category)),n.every(function(t){return!!t})}}function s(t){var e=["title","notes"];return function(n){var r=n.toLowerCase();return(0,f.filter)(t,function(t){return e.reduce(function(e,n){return e||t[n]&&-1!==t[n].toLowerCase().indexOf(r)},!1)})}}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){var e={categoriesItems:(0,p.queryByHook)("categories-items",t.el),organizationsItems:(0,p.queryByHook)("organizations-items",t.el),datasetsItems:(0,p.queryByHook)("datasets-items",t.el),datasetsCount:(0,p.queryByHook)("datasets-count",t.el),searchQuery:(0,p.queryByHook)("search-query",t.el),addDatasetBtn:(0,p.queryByHook)("add-dataset-btn",t.el)};l["default"].getJSON(m).done(function(t){var n=i(t),r=n.map(d["default"]);(0,p.setContent)(e.organizationsItems,r),u(e.organizationsItems);var c=o(t),l=c.map(d["default"]);(0,p.setContent)(e.categoriesItems,l),u(e.categoriesItems);var h=a((0,f.pick)(y,["organization","category"])),g=(0,f.filter)(t,h),m=g.map(v["default"]);(0,p.setContent)(e.datasetsItems,m);var D=g.length+" datasets";(0,p.setContent)(e.datasetsCount,D);var A=s(g);e.searchQuery.on("keyup",function(t){var n=t.currentTarget.value,r=A(n),i=r.map(v["default"]);(0,p.setContent)(e.datasetsItems,i);var o=r.length+" datasets";(0,p.setContent)(e.datasetsCount,o)})}).fail(function(){console.error("Error fetching",m)}),t.user.username&&t.user.isCollaborator&&e.addDatasetBtn.show(),t.user.on("change",function(t){t.username&&t.isCollaborator&&e.addDatasetBtn.show()})};var c=n(3),l=r(c),f=n(22);n(16);var p=n(6),h=n(64),d=r(h),g=n(63),v=r(g),m=settings.BASE_URL+"/datasets.json",y=l["default"].deparam(window.location.search.substr(1))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t){n.loginLink.hide(),n.userName.text(t.username),n.userDropdown.removeClass("hidden"),t.isCollaborator?n.adminLinkListItem.show():t.isCollaborator===!1&&(n.userIssue.show(),n.userDropdownLink.popover({content:"You do not have collaborator access to this repository, so you will not be able to make any changes.",placement:"bottom",trigger:"hover",container:"body"}))}t||(t={});var n={loginLink:(0,r.queryByHook)("login-link",t.el),logoutLink:(0,r.queryByHook)("logout-link",t.el),adminLinkListItem:(0,r.queryByHook)("admin-link-list-item",t.el),userName:(0,r.queryByHook)("user-name",t.el),userDropdown:(0,r.queryByHook)("user-dropdown",t.el),userDropdownLink:(0,r.queryByHook)("user-dropdown-link",t.el),userIssue:(0,r.queryByHook)("user-issue",t.el)};n.loginLink.on("click",function(e){t.user.initiateLogin(),e.preventDefault()}),n.logoutLink.on("click",function(e){t.user.logout(),window.location.reload(!0),e.preventDefault()}),t.user.username&&e(t.user),t.user.on("change",function(t){t.username&&e(t)})},n(72),n(74),n(73);var r=n(6)},function(t,e,n){"use strict";function r(t){var e=t.match(/^https?:\/\/([\dA-Za-z-]+)/);return e?e[1]:""}Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=function(t){function e(t){a.loginBtn.addClass("disabled").text("Signed in as "+t)}function n(t,e){a.alert.hide(),$("[data-hook~=alert-"+t+"]").show(),"success"===t&&e&&a.commitUrl.attr("href",e)}t||(t={});var a={clientId:(0,i.queryByHook)("github-client-id",t.el),appName:(0,i.queryByHook)("app-name",t.el),loginBtn:(0,i.queryByHook)("login-link",t.el),saveBtn:(0,i.queryByHook)("save",t.el),alert:(0,i.queryByHook)("alert",t.el),commitUrl:(0,i.queryByHook)("commit-url",t.el)};a.clientIdParent=a.clientId.parent(),a.clientIdHelpBlock=a.clientId.next(".help-block"),t.clientId&&t.proxyHost&&(a.clientId.val(t.user.clientId).attr("disabled",!0),a.appName.val(r(t.user.proxyHost)).attr("disabled",!0),a.saveBtn.removeClass("disabled")),t.user.username&&e(t.user.username),t.user.on("change:username",function(t){return e(t.username)}),a.clientId.keyup(function(t){a.clientId.length>o?(a.clientIdParent.addClass("has-error"),a.clientIdHelpBlock.text(u)):(a.clientIdParent.removeClass("has-error"),a.clientIdHelpBlock.empty())}),a.loginBtn.on("click",function(e){var n=a.clientId.val(),r=a.appName.val();n&&r&&(t.user.clientId=n,t.user.proxyHost="https://"+r+".herokuapp.com",t.user.initiateLogin()),e.preventDefault()}),a.saveBtn.on("click",function(e){var r={github_client_id:a.clientId.val(),gatekeeper_host:"https://"+a.appName.val()+".herokuapp.com"};t.file.read().then(function(e){var i=t.file.updateYamlString(e,r);t.file.save(i).then(function(t){n("success",t.commit.html_url)})["catch"](function(t){n("error"),console.error(t)})})["catch"](function(t){return console.error(t)}),e.preventDefault()})};var i=n(6),o=24,u="That looks too long to be the Client ID.\n Make sure you don't put the Client Secret here"},function(t,e,n){var r;(function(t,i){!function(o){var u="object"==typeof e&&e,a=("object"==typeof t&&t&&t.exports==u&&t,"object"==typeof i&&i);a.global!==a&&a.window!==a||(o=a);var s=function(t){this.message=t};s.prototype=new Error,s.prototype.name="InvalidCharacterError";var c=function(t){throw new s(t)},l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",f=/[\t\n\f\r ]/g,p=function(t){t=String(t).replace(f,"");var e=t.length;e%4==0&&(t=t.replace(/==?$/,""),e=t.length),(e%4==1||/[^+a-zA-Z0-9\/]/.test(t))&&c("Invalid character: the string to be decoded is not correctly encoded.");for(var n,r,i=0,o="",u=-1;++u>(-2*i&6)));return o},h=function(t){t=String(t),/[^\0-\xFF]/.test(t)&&c("The string to be encoded contains characters outside of the Latin1 range.");for(var e,n,r,i,o=t.length%3,u="",a=-1,s=t.length-o;++a>18&63)+l.charAt(i>>12&63)+l.charAt(i>>6&63)+l.charAt(63&i);return 2==o?(e=t.charCodeAt(a)<<8,n=t.charCodeAt(++a),i=e+n,u+=l.charAt(i>>10)+l.charAt(i>>4&63)+l.charAt(i<<2&63)+"="):1==o&&(i=t.charCodeAt(a),u+=l.charAt(i>>2)+l.charAt(i<<4&63)+"=="),u},d={encode:h,decode:p,version:"0.1.0"};r=function(){return d}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(13)(t),function(){return this}())},function(t,e){+function(t){"use strict";function e(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var r=n&&t(n);return r&&r.length?r:e.parent()}function n(n){n&&3===n.which||(t(i).remove(),t(o).each(function(){var r=t(this),i=e(r),o={relatedTarget:this};i.hasClass("open")&&(n&&"click"==n.type&&/input|textarea/i.test(n.target.tagName)&&t.contains(i[0],n.target)||(i.trigger(n=t.Event("hide.bs.dropdown",o)),n.isDefaultPrevented()||(r.attr("aria-expanded","false"),i.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}function r(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new u(this)),"string"==typeof e&&r[e].call(n)})}var i=".dropdown-backdrop",o='[data-toggle="dropdown"]',u=function(e){t(e).on("click.bs.dropdown",this.toggle)};u.VERSION="3.3.6",u.prototype.toggle=function(r){var i=t(this);if(!i.is(".disabled, :disabled")){var o=e(i),u=o.hasClass("open");if(n(),!u){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",n);var a={relatedTarget:this};if(o.trigger(r=t.Event("show.bs.dropdown",a)),r.isDefaultPrevented())return;i.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger(t.Event("shown.bs.dropdown",a))}return!1}},u.prototype.keydown=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)){var r=t(this);if(n.preventDefault(),n.stopPropagation(),!r.is(".disabled, :disabled")){var i=e(r),u=i.hasClass("open");if(!u&&27!=n.which||u&&27==n.which)return 27==n.which&&i.find(o).trigger("focus"),r.trigger("click");var a=" li:not(.disabled):visible a",s=i.find(".dropdown-menu"+a);if(s.length){var c=s.index(n.target);38==n.which&&c>0&&c--,40==n.which&&c'}),n.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),n.prototype.constructor=n,n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},n.prototype.hasContent=function(){return this.getTitle()||this.getContent()},n.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var r=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=n,t.fn.popover.noConflict=function(){return t.fn.popover=r,this}}(jQuery)},function(t,e){+function(t){"use strict";function e(e){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||r.data("bs.tooltip",i=new n(this,o)),"string"==typeof e&&i[e]())})}var n=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};n.VERSION="3.3.6",n.TRANSITION_DURATION=150,n.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},n.prototype.init=function(e,n,r){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&t(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var u=i[o];if("click"==u)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=u){var a="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},n.prototype.getDefaults=function(){return n.DEFAULTS},n.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},n.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,r){n[t]!=r&&(e[t]=r)}),e},n.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},n.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},n.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),n.isInStateTrue()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},n.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var r=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!r)return;var i=this,o=this.tip(),u=this.getUID(this.type);this.setContent(),o.attr("id",u),this.$element.attr("aria-describedby",u),this.options.animation&&o.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,c=s.test(a);c&&(a=a.replace(s,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),
+this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var l=this.getPosition(),f=o[0].offsetWidth,p=o[0].offsetHeight;if(c){var h=a,d=this.getPosition(this.$viewport);a="bottom"==a&&l.bottom+p>d.bottom?"top":"top"==a&&l.top-pd.width?"left":"left"==a&&l.left-fu.top+u.height&&(i.top=u.top+u.height-s)}else{var c=e.left-o,l=e.left+o+n;cu.right&&(i.left=u.left+u.width-l)}return i},n.prototype.getTitle=function(){var t,e=this.$element,n=this.options;return t=e.attr("data-original-title")||("function"==typeof n.title?n.title.call(e[0]):n.title)},n.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},n.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},n.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},n.prototype.enable=function(){this.enabled=!0},n.prototype.disable=function(){this.enabled=!1},n.prototype.toggleEnabled=function(){this.enabled=!this.enabled},n.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},n.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var r=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=n,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=r,this}}(jQuery)},function(t,e,n){var r;(function(t,i,o){/*!
* @overview es6-promise - a tiny implementation of Promises/A+.
* @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald)
* @license Licensed under MIT license
* See https://raw.githubusercontent.com/jakearchibald/es6-promise/master/LICENSE
* @version 3.1.2
*/
-(function(){"use strict";function u(t){return"function"==typeof t||"object"==typeof t&&null!==t}function a(t){return"function"==typeof t}function s(t){V=t}function c(t){Z=t}function l(){return function(){t.nextTick(g)}}function f(){return function(){Y(g)}}function p(){var t=0,e=new tt(g),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function h(){var t=new MessageChannel;return t.port1.onmessage=g,function(){t.port2.postMessage(0)}}function d(){return function(){setTimeout(g,1)}}function g(){for(var t=0;J>t;t+=2){var e=rt[t],n=rt[t+1];e(n),rt[t]=void 0,rt[t+1]=void 0}J=0}function v(){try{var t=n(129);return Y=t.runOnLoop||t.runOnContext,f()}catch(e){return d()}}function m(t,e){var n=this,r=n._state;if(r===at&&!t||r===st&&!e)return this;var i=new this.constructor(D),o=n._result;if(r){var u=arguments[r-1];Z(function(){P(r,i,u,o)})}else O(n,i,t,e);return i}function y(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(D);return F(n,t),n}function D(){}function A(){return new TypeError("You cannot resolve a promise with itself")}function C(){return new TypeError("A promises callback cannot return that same promise.")}function w(t){try{return t.then}catch(e){return ct.error=e,ct}}function b(t,e,n,r){try{t.call(e,n,r)}catch(i){return i}}function E(t,e,n){Z(function(t){var r=!1,i=b(n,e,function(n){r||(r=!0,e!==n?F(t,n):B(t,n))},function(e){r||(r=!0,k(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,k(t,i))},t)}function _(t,e){e._state===at?B(t,e._result):e._state===st?k(t,e._result):O(e,void 0,function(e){F(t,e)},function(e){k(t,e)})}function x(t,e,n){e.constructor===t.constructor&&n===it&&constructor.resolve===ot?_(t,e):n===ct?k(t,ct.error):void 0===n?B(t,e):a(n)?E(t,e,n):B(t,e)}function F(t,e){t===e?k(t,A()):u(e)?x(t,e,w(e)):B(t,e)}function S(t){t._onerror&&t._onerror(t._result),I(t)}function B(t,e){t._state===ut&&(t._result=e,t._state=at,0!==t._subscribers.length&&Z(I,t))}function k(t,e){t._state===ut&&(t._state=st,t._result=e,Z(S,t))}function O(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+at]=n,i[o+st]=r,0===o&&t._state&&Z(I,t)}function I(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,i,o=t._result,u=0;uu;u++)O(r.resolve(t[u]),void 0,e,n);return i}function N(t){var e=this,n=new e(D);return k(n,t),n}function U(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function M(t){this._id=dt++,this._state=void 0,this._result=void 0,this._subscribers=[],D!==t&&("function"!=typeof t&&U(),this instanceof M?$(this,t):q())}function H(t,e){this._instanceConstructor=t,this.promise=new t(D),Array.isArray(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?B(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&B(this.promise,this._result))):k(this.promise,this._validationError())}function z(){var t;if("undefined"!=typeof i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=gt)}var W;W=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var Y,V,G,K=W,J=0,Z=function(t,e){rt[J]=t,rt[J+1]=e,J+=2,2===J&&(V?V(g):G())},X="undefined"!=typeof window?window:void 0,Q=X||{},tt=Q.MutationObserver||Q.WebKitMutationObserver,et="undefined"!=typeof t&&"[object process]"==={}.toString.call(t),nt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,rt=new Array(1e3);G=et?l():tt?p():nt?h():void 0===X?v():d();var it=m,ot=y,ut=void 0,at=1,st=2,ct=new j,lt=new j,ft=R,pt=L,ht=N,dt=0,gt=M;M.all=ft,M.race=pt,M.resolve=ot,M.reject=ht,M._setScheduler=s,M._setAsap=c,M._asap=Z,M.prototype={constructor:M,then:it,"catch":function(t){return this.then(null,t)}};var vt=H;H.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},H.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ut&&t>n;n++)this._eachEntry(e[n],n)},H.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===ot){var i=w(t);if(i===it&&t._state!==ut)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===gt){var o=new n(D);x(o,t,i),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(r(t),e)},H.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ut&&(this._remaining--,t===st?k(r,n):this._result[e]=n),0===this._remaining&&B(r,this._result)},H.prototype._willSettleAt=function(t,e){var n=this;O(t,void 0,function(t){n._settledAt(at,e,t)},function(t){n._settledAt(st,e,t)})};var mt=z,yt={Promise:gt,polyfill:mt};n(128).amd?(r=function(){return yt}.call(e,n,e,o),!(void 0!==r&&(o.exports=r))):"undefined"!=typeof o&&o.exports?o.exports=yt:"undefined"!=typeof this&&(this.ES6Promise=yt),mt()}).call(this)}).call(e,n(43),function(){return this}(),n(13)(t))},function(t,e,n){var r,i,o;!function(n,u){"use strict";i=[e],r=u,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(this,function(t){"use strict";function e(t,e){if(!t)throw new Error("ASSERT: "+e)}function n(t){return t>=48&&57>=t}function r(t){return"0123456789abcdefABCDEF".indexOf(t)>=0}function i(t){return"01234567".indexOf(t)>=0}function o(t){var e="0"!==t,n="01234567".indexOf(t);return Dn>sn&&i(un[sn])&&(e=!0,n=8*n+"01234567".indexOf(un[sn++]),"0123".indexOf(t)>=0&&Dn>sn&&i(un[sn])&&(n=8*n+"01234567".indexOf(un[sn++]))),{code:n,octal:e}}function u(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0}function a(t){return 10===t||13===t||8232===t||8233===t}function s(t){return 65536>t?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))}function c(t){return 36===t||95===t||t>=65&&90>=t||t>=97&&122>=t||92===t||t>=128&&on.NonAsciiIdentifierStart.test(s(t))}function l(t){return 36===t||95===t||t>=65&&90>=t||t>=97&&122>=t||t>=48&&57>=t||92===t||t>=128&&on.NonAsciiIdentifierPart.test(s(t))}function f(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}}function p(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function h(t){return"eval"===t||"arguments"===t}function d(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}}function g(t,n,r,i,o){var u;e("number"==typeof r,"Comment must have valid position"),Cn.lastCommentStart=r,u={type:t,value:n},wn.range&&(u.range=[r,i]),wn.loc&&(u.loc=o),wn.comments.push(u),wn.attachComment&&(wn.leadingComments.push(u),wn.trailingComments.push(u)),wn.tokenize&&(u.type=u.type+"Comment",wn.delegate&&(u=wn.delegate(u)),wn.tokens.push(u))}function v(t){var e,n,r,i;for(e=sn-t,n={start:{line:cn,column:sn-ln-t}};Dn>sn;)if(r=un.charCodeAt(sn),++sn,a(r))return fn=!0,wn.comments&&(i=un.slice(e+t,sn-1),n.end={line:cn,column:sn-ln-1},g("Line",i,e,sn-1,n)),13===r&&10===un.charCodeAt(sn)&&++sn,++cn,void(ln=sn);wn.comments&&(i=un.slice(e+t,sn),n.end={line:cn,column:sn-ln},g("Line",i,e,sn,n))}function m(){var t,e,n,r;for(wn.comments&&(t=sn-2,e={start:{line:cn,column:sn-ln-2}});Dn>sn;)if(n=un.charCodeAt(sn),a(n))13===n&&10===un.charCodeAt(sn+1)&&++sn,fn=!0,++cn,++sn,ln=sn;else if(42===n){if(47===un.charCodeAt(sn+1))return++sn,++sn,void(wn.comments&&(r=un.slice(t+2,sn-2),e.end={line:cn,column:sn-ln},g("Block",r,t,sn,e)));++sn}else++sn;wn.comments&&(e.end={line:cn,column:sn-ln},r=un.slice(t+2,sn),g("Block",r,t,sn,e)),nt()}function y(){var t,e;for(fn=!1,e=0===sn;Dn>sn;)if(t=un.charCodeAt(sn),u(t))++sn;else if(a(t))fn=!0,++sn,13===t&&10===un.charCodeAt(sn)&&++sn,++cn,ln=sn,e=!0;else if(47===t)if(t=un.charCodeAt(sn+1),47===t)++sn,++sn,v(2),e=!0;else{if(42!==t)break;++sn,++sn,m()}else if(e&&45===t){if(45!==un.charCodeAt(sn+1)||62!==un.charCodeAt(sn+2))break;sn+=3,v(3)}else{if(60!==t)break;if("!--"!==un.slice(sn+1,sn+4))break;++sn,++sn,++sn,++sn,v(4)}}function D(t){var e,n,i,o=0;for(n="u"===t?4:2,e=0;n>e;++e){if(!(Dn>sn&&r(un[sn])))return"";i=un[sn++],o=16*o+"0123456789abcdef".indexOf(i.toLowerCase())}return String.fromCharCode(o)}function A(){var t,e;for(t=un[sn],e=0,"}"===t&&et();Dn>sn&&(t=un[sn++],r(t));)e=16*e+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||"}"!==t)&&et(),s(e)}function C(t){var e,n,r;return e=un.charCodeAt(t),e>=55296&&56319>=e&&(r=un.charCodeAt(t+1),r>=56320&&57343>=r&&(n=e,e=1024*(n-55296)+r-56320+65536)),e}function w(){var t,e,n;for(t=C(sn),n=s(t),sn+=n.length,92===t&&(117!==un.charCodeAt(sn)&&et(),++sn,"{"===un[sn]?(++sn,e=A()):(e=D("u"),t=e.charCodeAt(0),e&&"\\"!==e&&c(t)||et()),n=e);Dn>sn&&(t=C(sn),l(t));)e=s(t),n+=e,sn+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==un.charCodeAt(sn)&&et(),++sn,"{"===un[sn]?(++sn,e=A()):(e=D("u"),t=e.charCodeAt(0),e&&"\\"!==e&&l(t)||et()),n+=e);return n}function b(){var t,e;for(t=sn++;Dn>sn;){if(e=un.charCodeAt(sn),92===e)return sn=t,w();if(e>=55296&&57343>e)return sn=t,w();if(!l(e))break;++sn}return un.slice(t,sn)}function E(){var t,e,n;return t=sn,e=92===un.charCodeAt(sn)?w():b(),n=1===e.length?Xe.Identifier:d(e)?Xe.Keyword:"null"===e?Xe.NullLiteral:"true"===e||"false"===e?Xe.BooleanLiteral:Xe.Identifier,{type:n,value:e,lineNumber:cn,lineStart:ln,start:t,end:sn}}function _(){var t,e;switch(t={type:Xe.Punctuator,value:"",lineNumber:cn,lineStart:ln,start:sn,end:sn},e=un[sn]){case"(":wn.tokenize&&(wn.openParenToken=wn.tokenValues.length),++sn;break;case"{":wn.tokenize&&(wn.openCurlyToken=wn.tokenValues.length),Cn.curlyStack.push("{"),++sn;break;case".":++sn,"."===un[sn]&&"."===un[sn+1]&&(sn+=2,e="...");break;case"}":++sn,Cn.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++sn;break;default:e=un.substr(sn,4),">>>="===e?sn+=4:(e=e.substr(0,3),"==="===e||"!=="===e||">>>"===e||"<<="===e||">>="===e?sn+=3:(e=e.substr(0,2),"&&"===e||"||"===e||"=="===e||"!="===e||"+="===e||"-="===e||"*="===e||"/="===e||"++"===e||"--"===e||"<<"===e||">>"===e||"&="===e||"|="===e||"^="===e||"%="===e||"<="===e||">="===e||"=>"===e?sn+=2:(e=un[sn],"<>=!+-*%&|^/".indexOf(e)>=0&&++sn)))}return sn===t.start&&et(),t.end=sn,t.value=e,t}function x(t){for(var e="";Dn>sn&&r(un[sn]);)e+=un[sn++];return 0===e.length&&et(),c(un.charCodeAt(sn))&&et(),{type:Xe.NumericLiteral,value:parseInt("0x"+e,16),lineNumber:cn,lineStart:ln,start:t,end:sn}}function F(t){var e,r;for(r="";Dn>sn&&(e=un[sn],"0"===e||"1"===e);)r+=un[sn++];return 0===r.length&&et(),Dn>sn&&(e=un.charCodeAt(sn),(c(e)||n(e))&&et()),{type:Xe.NumericLiteral,value:parseInt(r,2),lineNumber:cn,lineStart:ln,start:t,end:sn}}function S(t,e){var r,o;for(i(t)?(o=!0,r="0"+un[sn++]):(o=!1,++sn,r="");Dn>sn&&i(un[sn]);)r+=un[sn++];return o||0!==r.length||et(),(c(un.charCodeAt(sn))||n(un.charCodeAt(sn)))&&et(),{type:Xe.NumericLiteral,value:parseInt(r,8),octal:o,lineNumber:cn,lineStart:ln,start:e,end:sn}}function B(){var t,e;for(t=sn+1;Dn>t;++t){if(e=un[t],"8"===e||"9"===e)return!1;if(!i(e))return!0}return!0}function k(){var t,r,o;if(o=un[sn],e(n(o.charCodeAt(0))||"."===o,"Numeric literal must start with a decimal digit or a decimal point"),r=sn,t="","."!==o){if(t=un[sn++],o=un[sn],"0"===t){if("x"===o||"X"===o)return++sn,x(r);if("b"===o||"B"===o)return++sn,F(r);if("o"===o||"O"===o)return S(o,r);if(i(o)&&B())return S(o,r)}for(;n(un.charCodeAt(sn));)t+=un[sn++];o=un[sn]}if("."===o){for(t+=un[sn++];n(un.charCodeAt(sn));)t+=un[sn++];o=un[sn]}if("e"===o||"E"===o)if(t+=un[sn++],o=un[sn],"+"!==o&&"-"!==o||(t+=un[sn++]),n(un.charCodeAt(sn)))for(;n(un.charCodeAt(sn));)t+=un[sn++];else et();return c(un.charCodeAt(sn))&&et(),{type:Xe.NumericLiteral,value:parseFloat(t),lineNumber:cn,lineStart:ln,start:r,end:sn}}function O(){var t,n,r,u,s,c="",l=!1;for(t=un[sn],e("'"===t||'"'===t,"String literal must starts with a quote"),n=sn,++sn;Dn>sn;){if(r=un[sn++],r===t){t="";break}if("\\"===r)if(r=un[sn++],r&&a(r.charCodeAt(0)))++cn,"\r"===r&&"\n"===un[sn]&&++sn,ln=sn;else switch(r){case"u":case"x":if("{"===un[sn])++sn,c+=A();else{if(u=D(r),!u)throw et();c+=u}break;case"n":c+="\n";break;case"r":c+="\r";break;case"t":c+=" ";break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="\x0B";break;case"8":case"9":c+=r,nt();break;default:i(r)?(s=o(r),l=s.octal||l,c+=String.fromCharCode(s.code)):c+=r}else{if(a(r.charCodeAt(0)))break;c+=r}}return""!==t&&(sn=n,et()),{type:Xe.StringLiteral,value:c,octal:l,lineNumber:vn,lineStart:mn,start:n,end:sn}}function I(){var t,e,r,o,u,s,c,l,f="";for(o=!1,s=!1,e=sn,u="`"===un[sn],r=2,++sn;Dn>sn;){if(t=un[sn++],"`"===t){r=1,s=!0,o=!0;break}if("$"===t){if("{"===un[sn]){Cn.curlyStack.push("${"),++sn,o=!0;break}f+=t}else if("\\"===t)if(t=un[sn++],a(t.charCodeAt(0)))++cn,"\r"===t&&"\n"===un[sn]&&++sn,ln=sn;else switch(t){case"n":f+="\n";break;case"r":f+="\r";break;case"t":f+=" ";break;case"u":case"x":"{"===un[sn]?(++sn,f+=A()):(c=sn,l=D(t),l?f+=l:(sn=c,f+=t));break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="\x0B";break;default:"0"===t?(n(un.charCodeAt(sn))&&X(rn.TemplateOctalLiteral),f+="\x00"):i(t)?X(rn.TemplateOctalLiteral):f+=t}else a(t.charCodeAt(0))?(++cn,"\r"===t&&"\n"===un[sn]&&++sn,ln=sn,f+="\n"):f+=t}return o||et(),u||Cn.curlyStack.pop(),{type:Xe.Template,value:{cooked:f,raw:un.slice(e+1,sn-r)},head:u,tail:s,lineNumber:cn,lineStart:ln,start:e,end:sn}}function j(t,e){var n="",r=t;e.indexOf("u")>=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(t,e,r){var i=parseInt(e||r,16);return i>1114111&&et(null,rn.InvalidRegExp),65535>=i?String.fromCharCode(i):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(r)}catch(i){et(null,rn.InvalidRegExp)}try{return new RegExp(t,e)}catch(o){return null}}function T(){var t,n,r,i,o;for(t=un[sn],e("/"===t,"Regular expression literal must start with a slash"),n=un[sn++],r=!1,i=!1;Dn>sn;)if(t=un[sn++],n+=t,"\\"===t)t=un[sn++],a(t.charCodeAt(0))&&et(null,rn.UnterminatedRegExp),n+=t;else if(a(t.charCodeAt(0)))et(null,rn.UnterminatedRegExp);else if(r)"]"===t&&(r=!1);else{if("/"===t){i=!0;break}"["===t&&(r=!0)}return i||et(null,rn.UnterminatedRegExp),o=n.substr(1,n.length-2),{value:o,literal:n}}function P(){var t,e,n,r;for(e="",n="";Dn>sn&&(t=un[sn],l(t.charCodeAt(0)));)if(++sn,"\\"===t&&Dn>sn)if(t=un[sn],"u"===t){if(++sn,r=sn,t=D("u"))for(n+=t,e+="\\u";sn>r;++r)e+=un[r];else sn=r,n+="u",e+="\\u";nt()}else e+="\\",nt();else n+=t,e+=t;return{value:n,literal:e}}function $(){var t,e,n,r;return yn=!0,An=null,y(),t=sn,e=T(),n=P(),r=j(e.value,n.value),yn=!1,wn.tokenize?{type:Xe.RegularExpression,value:r,regex:{pattern:e.value,flags:n.value},lineNumber:cn,lineStart:ln,start:t,end:sn}:{literal:e.literal+n.literal,value:r,regex:{pattern:e.value,flags:n.value},start:t,end:sn}}function R(){var t,e,n,r;return y(),t=sn,e={start:{line:cn,column:sn-ln}},n=$(),e.end={line:cn,column:sn-ln},wn.tokenize||(wn.tokens.length>0&&(r=wn.tokens[wn.tokens.length-1],r.range[0]===t&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||wn.tokens.pop())),wn.tokens.push({type:"RegularExpression",value:n.literal,regex:n.regex,range:[t,sn],loc:e})),n}function L(t){return t.type===Xe.Identifier||t.type===Xe.Keyword||t.type===Xe.BooleanLiteral||t.type===Xe.NullLiteral}function N(){function t(t){return t&&t.length>1&&t[0]>="a"&&t[0]<="z"}var e,n,r;switch(n=wn.tokenValues[wn.tokens.length-1],e=null!==n,n){case"this":case"]":e=!1;break;case")":r=wn.tokenValues[wn.openParenToken-1],e="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":e=!1,t(wn.tokenValues[wn.openCurlyToken-3])?(r=wn.tokenValues[wn.openCurlyToken-4],e=r?tn.indexOf(r)<0:!1):t(wn.tokenValues[wn.openCurlyToken-4])&&(r=wn.tokenValues[wn.openCurlyToken-5],e=r?tn.indexOf(r)<0:!0)}return e?R():_()}function U(){var t,e;return sn>=Dn?{type:Xe.EOF,lineNumber:cn,lineStart:ln,start:sn,end:sn}:(t=un.charCodeAt(sn),c(t)?(e=E(),an&&p(e.value)&&(e.type=Xe.Keyword),e):40===t||41===t||59===t?_():39===t||34===t?O():46===t?n(un.charCodeAt(sn+1))?k():_():n(t)?k():wn.tokenize&&47===t?N():96===t||125===t&&"${"===Cn.curlyStack[Cn.curlyStack.length-1]?I():t>=55296&&57343>t&&(t=C(sn),c(t))?E():_())}function q(){var t,e,n,r;return t={start:{line:cn,column:sn-ln}},e=U(),t.end={line:cn,column:sn-ln},e.type!==Xe.EOF&&(n=un.slice(e.start,e.end),r={type:Qe[e.type],value:n,range:[e.start,e.end],loc:t},e.regex&&(r.regex={pattern:e.regex.pattern,flags:e.regex.flags}),wn.tokenValues&&wn.tokenValues.push("Punctuator"===r.type||"Keyword"===r.type?r.value:null),wn.tokenize&&(wn.range||delete r.range,wn.loc||delete r.loc,wn.delegate&&(r=wn.delegate(r))),wn.tokens.push(r)),e}function M(){var t;return yn=!0,pn=sn,hn=cn,dn=ln,y(),t=An,gn=sn,vn=cn,mn=ln,An="undefined"!=typeof wn.tokens?q():U(),yn=!1,t}function H(){yn=!0,y(),pn=sn,hn=cn,dn=ln,gn=sn,vn=cn,mn=ln,An="undefined"!=typeof wn.tokens?q():U(),yn=!1}function z(){this.line=vn,this.column=gn-mn}function W(){this.start=new z,this.end=null}function Y(t){this.start={line:t.lineNumber,column:t.start-t.lineStart},this.end=null}function V(){wn.range&&(this.range=[gn,0]),wn.loc&&(this.loc=new W)}function G(t){wn.range&&(this.range=[t.start,0]),wn.loc&&(this.loc=new Y(t))}function K(t){var e,n;for(e=0;e>="===t||">>>="===t||"&="===t||"^="===t||"|="===t)}function lt(){return 59===un.charCodeAt(gn)||ut(";")?void M():void(fn||(pn=gn,hn=vn,dn=mn,An.type===Xe.EOF||ut("}")||et(An)))}function ft(t){var e,n=bn,r=En,i=_n;return bn=!0,En=!0,_n=null,e=t(),null!==_n&&et(_n),bn=n,En=r,_n=i,e}function pt(t){var e,n=bn,r=En,i=_n;return bn=!0,En=!0,_n=null,e=t(),bn=bn&&n,En=En&&r,_n=i||_n,e}function ht(t,e){var n,r,i=new V,o=[];for(rt("[");!ut("]");)if(ut(","))M(),o.push(null);else{if(ut("...")){r=new V,M(),t.push(An),n=Qt(e),o.push(r.finishRestElement(n));break}o.push(mt(t,e)),ut("]")||rt(",")}return rt("]"),i.finishArrayPattern(o)}function dt(t,e){var n,r,i,o=new V,u=ut("[");if(An.type===Xe.Identifier){if(r=An,n=Qt(),ut("="))return t.push(r),M(),i=Gt(),o.finishProperty("init",n,!1,new G(r).finishAssignmentPattern(n,i),!1,!0);if(!ut(":"))return t.push(r),o.finishProperty("init",n,!1,n,!1,!0)}else n=Ct();return rt(":"),i=mt(t,e),o.finishProperty("init",n,u,i,!1,!1)}function gt(t,e){var n=new V,r=[];for(rt("{");!ut("}");)r.push(dt(t,e)),ut("}")||rt(",");return M(),n.finishObjectPattern(r)}function vt(t,e){return ut("[")?ht(t,e):ut("{")?gt(t,e):(at("let")&&("const"!==e&&"let"!==e||nt(An,rn.UnexpectedToken)),t.push(An),Qt(e))}function mt(t,e){var n,r,i,o=An;return n=vt(t,e),ut("=")&&(M(),r=Cn.allowYield,Cn.allowYield=!0,i=ft(Gt),Cn.allowYield=r,n=new G(o).finishAssignmentPattern(n,i)),n}function yt(){var t,e=[],n=new V;for(rt("[");!ut("]");)ut(",")?(M(),e.push(null)):ut("...")?(t=new V,M(),t.finishSpreadElement(pt(Gt)),ut("]")||(En=bn=!1,rt(",")),e.push(t)):(e.push(pt(Gt)),ut("]")||rt(","));return M(),n.finishArrayExpression(e)}function Dt(t,e,n){var r,i;return En=bn=!1,r=an,i=ft(Fe),an&&e.firstRestricted&&nt(e.firstRestricted,e.message),an&&e.stricted&&nt(e.stricted,e.message),an=r,t.finishFunctionExpression(null,e.params,e.defaults,i,n)}function At(){var t,e,n=new V,r=Cn.allowYield;return Cn.allowYield=!1,t=ke(),Cn.allowYield=r,Cn.allowYield=!1,e=Dt(n,t,!1),Cn.allowYield=r,e}function Ct(){var t,e,n=new V;switch(t=M(),t.type){case Xe.StringLiteral:case Xe.NumericLiteral:return an&&t.octal&&nt(t,rn.StrictOctalLiteral),n.finishLiteral(t);case Xe.Identifier:case Xe.BooleanLiteral:case Xe.NullLiteral:case Xe.Keyword:return n.finishIdentifier(t.value);case Xe.Punctuator:if("["===t.value)return e=ft(Gt),rt("]"),e}et(t)}function wt(){switch(An.type){case Xe.Identifier:case Xe.StringLiteral:case Xe.BooleanLiteral:case Xe.NullLiteral:case Xe.NumericLiteral:case Xe.Keyword:return!0;case Xe.Punctuator:return"["===An.value}return!1}function bt(t,e,n,r){var i,o,u,a,s=Cn.allowYield;if(t.type===Xe.Identifier){if("get"===t.value&&wt())return n=ut("["),e=Ct(),u=new V,rt("("),rt(")"),Cn.allowYield=!1,i=Dt(u,{params:[],defaults:[],stricted:null,firstRestricted:null,message:null},!1),Cn.allowYield=s,r.finishProperty("get",e,n,i,!1,!1);if("set"===t.value&&wt())return n=ut("["),e=Ct(),u=new V,rt("("),o={params:[],defaultCount:0,defaults:[],firstRestricted:null,paramSet:{}},ut(")")?nt(An):(Cn.allowYield=!1,Be(o),Cn.allowYield=s,0===o.defaultCount&&(o.defaults=[])),rt(")"),Cn.allowYield=!1,i=Dt(u,o,!1),Cn.allowYield=s,r.finishProperty("set",e,n,i,!1,!1)}else if(t.type===Xe.Punctuator&&"*"===t.value&&wt())return n=ut("["),e=Ct(),u=new V,Cn.allowYield=!0,a=ke(),Cn.allowYield=s,Cn.allowYield=!1,i=Dt(u,a,!0),Cn.allowYield=s,r.finishProperty("init",e,n,i,!0,!1);return e&&ut("(")?(i=At(),r.finishProperty("init",e,n,i,!0,!1)):null}function Et(t){var e,n,r,i,o,u=An,a=new V;return e=ut("["),ut("*")?M():n=Ct(),(r=bt(u,n,e,a))?r:(n||et(An),e||(i=n.type===en.Identifier&&"__proto__"===n.name||n.type===en.Literal&&"__proto__"===n.value,t.value&&i&&Q(rn.DuplicateProtoProperty),t.value|=i),ut(":")?(M(),o=pt(Gt),a.finishProperty("init",n,e,o,!1,!1)):u.type===Xe.Identifier?ut("=")?(_n=An,M(),o=ft(Gt),a.finishProperty("init",n,e,new G(u).finishAssignmentPattern(n,o),!1,!0)):a.finishProperty("init",n,e,n,!1,!0):void et(An))}function _t(){var t=[],e={value:!1},n=new V;for(rt("{");!ut("}");)t.push(Et(e)),ut("}")||it();return rt("}"),n.finishObjectExpression(t)}function xt(t){var e;switch(t.type){case en.Identifier:case en.MemberExpression:case en.RestElement:case en.AssignmentPattern:break;case en.SpreadElement:t.type=en.RestElement,xt(t.argument);break;case en.ArrayExpression:for(t.type=en.ArrayPattern,e=0;e")||rt("=>"),{type:nn.ArrowParameterPlaceHolder,params:[],rawParams:[]};if(n=An,ut("..."))return t=ce(i),rt(")"),ut("=>")||rt("=>"),{type:nn.ArrowParameterPlaceHolder,params:[t]};if(bn=!0,t=pt(Gt),ut(",")){for(En=!1,e=[t];Dn>gn&&ut(",");){if(M(),ut("...")){for(bn||et(An),e.push(ce(i)),rt(")"),ut("=>")||rt("=>"),bn=!1,r=0;r")){if(t.type===en.Identifier&&"yield"===t.name)return{type:nn.ArrowParameterPlaceHolder,params:[t]};if(bn||et(An),t.type===en.SequenceExpression)for(r=0;rgn&&(ut("...")?(t=new V,M(),t.finishSpreadElement(ft(Gt))):t=ft(Gt),e.push(t),!ut(")"));)it();return rt(")"),e}function It(){var t,e=new V;return t=M(),L(t)||et(t),e.finishIdentifier(t.value)}function jt(){return rt("."),It()}function Tt(){var t;return rt("["),t=ft(Kt),rt("]"),t}function Pt(){var t,e,n=new V;if(ot("new"),ut(".")){if(M(),An.type===Xe.Identifier&&"target"===An.value&&Cn.inFunctionBody)return M(),n.finishMetaProperty("new","target");et(An)}return t=ft(Rt),e=ut("(")?Ot():[],En=bn=!1,n.finishNewExpression(t,e)}function $t(){var t,e,n,r,i,o=Cn.allowIn;for(i=An,Cn.allowIn=!0,at("super")&&Cn.inFunctionBody?(e=new V,M(),e=e.finishSuper(),ut("(")||ut(".")||ut("[")||et(An)):e=pt(at("new")?Pt:kt);;)if(ut("."))bn=!1,En=!0,r=jt(),e=new G(i).finishMemberExpression(".",e,r);else if(ut("("))bn=!1,En=!1,n=Ot(),e=new G(i).finishCallExpression(e,n);else if(ut("["))bn=!1,En=!0,r=Tt(),e=new G(i).finishMemberExpression("[",e,r);else{if(An.type!==Xe.Template||!An.head)break;t=St(),e=new G(i).finishTaggedTemplateExpression(e,t)}return Cn.allowIn=o,e}function Rt(){var t,n,r,i;for(e(Cn.allowIn,"callee of new expression always allow in keyword."),i=An,at("super")&&Cn.inFunctionBody?(n=new V,M(),n=n.finishSuper(),ut("[")||ut(".")||et(An)):n=pt(at("new")?Pt:kt);;)if(ut("["))bn=!1,En=!0,r=Tt(),n=new G(i).finishMemberExpression("[",n,r);else if(ut("."))bn=!1,En=!0,r=jt(),n=new G(i).finishMemberExpression(".",n,r);else{if(An.type!==Xe.Template||!An.head)break;t=St(),n=new G(i).finishTaggedTemplateExpression(n,t)}return n}function Lt(){var t,e,n=An;return t=pt($t),fn||An.type!==Xe.Punctuator||(ut("++")||ut("--"))&&(an&&t.type===en.Identifier&&h(t.name)&&Q(rn.StrictLHSPostfix),En||Q(rn.InvalidLHSInAssignment),En=bn=!1,e=M(),t=new G(n).finishPostfixExpression(e.value,t)),t}function Nt(){var t,e,n;return An.type!==Xe.Punctuator&&An.type!==Xe.Keyword?e=Lt():ut("++")||ut("--")?(n=An,t=M(),e=pt(Nt),an&&e.type===en.Identifier&&h(e.name)&&Q(rn.StrictLHSPrefix),En||Q(rn.InvalidLHSInAssignment),e=new G(n).finishUnaryExpression(t.value,e),En=bn=!1):ut("+")||ut("-")||ut("~")||ut("!")?(n=An,t=M(),e=pt(Nt),e=new G(n).finishUnaryExpression(t.value,e),En=bn=!1):at("delete")||at("void")||at("typeof")?(n=An,t=M(),e=pt(Nt),e=new G(n).finishUnaryExpression(t.value,e),an&&"delete"===e.operator&&e.argument.type===en.Identifier&&Q(rn.StrictDelete),En=bn=!1):e=Lt(),e}function Ut(t,e){var n=0;if(t.type!==Xe.Punctuator&&t.type!==Xe.Keyword)return 0;switch(t.value){case"||":n=1;break;case"&&":n=2;break;case"|":n=3;break;case"^":n=4;break;case"&":n=5;break;case"==":case"!=":case"===":case"!==":n=6;break;case"<":case">":case"<=":case">=":case"instanceof":n=7;break;case"in":n=e?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function qt(){var t,e,n,r,i,o,u,a,s,c;if(t=An,s=pt(Nt),r=An,i=Ut(r,Cn.allowIn),0===i)return s;for(En=bn=!1,r.prec=i,M(),e=[t,An],u=ft(Nt),o=[s,r,u];(i=Ut(An,Cn.allowIn))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)u=o.pop(),a=o.pop().value,s=o.pop(),e.pop(),n=new G(e[e.length-1]).finishBinaryExpression(a,s,u),o.push(n);r=M(),r.prec=i,o.push(r),e.push(An),n=ft(Nt),o.push(n)}for(c=o.length-1,n=o[c],e.pop();c>1;)n=new G(e.pop()).finishBinaryExpression(o[c-1].value,o[c-2],n),c-=2;return n}function Mt(){var t,e,n,r,i;return i=An,t=pt(qt),ut("?")&&(M(),e=Cn.allowIn,Cn.allowIn=!0,n=ft(Gt),Cn.allowIn=e,rt(":"),r=ft(Gt),t=new G(i).finishConditionalExpression(t,n,r),En=bn=!1),t}function Ht(){return ut("{")?Fe():ft(Gt)}function zt(t,n){var r;switch(n.type){case en.Identifier:Se(t,n,n.name);break;case en.RestElement:zt(t,n.argument);break;case en.AssignmentPattern:zt(t,n.left);break;case en.ArrayPattern:for(r=0;re;e+=1)switch(r=i[e],r.type){case en.AssignmentPattern:i[e]=r.left,r.right.type===en.YieldExpression&&(r.right.argument&&et(An),r.right.type=en.Identifier,
-r.right.name="yield",delete r.right.argument,delete r.right.delegate),o.push(r.right),++u,zt(a,r.left);break;default:zt(a,r),i[e]=r,o.push(null)}if(an||!Cn.allowYield)for(e=0,n=i.length;n>e;e+=1)r=i[e],r.type===en.YieldExpression&&et(An);return a.message===rn.StrictParamDupe&&(s=an?a.stricted:a.firstRestricted,et(s,a.message)),0===u&&(o=[]),{params:i,defaults:o,stricted:a.stricted,firstRestricted:a.firstRestricted,message:a.message}}function Yt(t,e){var n,r,i;return fn&&nt(An),rt("=>"),n=an,r=Cn.allowYield,Cn.allowYield=!0,i=Ht(),an&&t.firstRestricted&&et(t.firstRestricted,t.message),an&&t.stricted&&nt(t.stricted,t.message),an=n,Cn.allowYield=r,e.finishArrowFunctionExpression(t.params,t.defaults,i,i.type!==en.BlockStatement)}function Vt(){var t,e,n,r;return t=null,e=new V,n=!1,ot("yield"),fn||(r=Cn.allowYield,Cn.allowYield=!1,n=ut("*"),n?(M(),t=Gt()):ut(";")||ut("}")||ut(")")||An.type===Xe.EOF||(t=Gt()),Cn.allowYield=r),e.finishYieldExpression(t,n)}function Gt(){var t,e,n,r,i;return i=An,t=An,!Cn.allowYield&&at("yield")?Vt():(e=Mt(),e.type===nn.ArrowParameterPlaceHolder||ut("=>")?(En=bn=!1,r=Wt(e),r?(_n=null,Yt(r,new G(i))):e):(ct()&&(En||Q(rn.InvalidLHSInAssignment),an&&e.type===en.Identifier&&(h(e.name)&&nt(t,rn.StrictLHSAssignment),p(e.name)&&nt(t,rn.StrictReservedWord)),ut("=")?xt(e):En=bn=!1,t=M(),n=ft(Gt),e=new G(i).finishAssignmentExpression(t.value,e,n),_n=null),e))}function Kt(){var t,e,n=An;if(t=ft(Gt),ut(",")){for(e=[t];Dn>gn&&ut(",");)M(),e.push(ft(Gt));t=new G(n).finishSequenceExpression(e)}return t}function Jt(){if(An.type===Xe.Keyword)switch(An.value){case"export":return"module"!==Cn.sourceType&&nt(An,rn.IllegalExportDeclaration),qe();case"import":return"module"!==Cn.sourceType&&nt(An,rn.IllegalImportDeclaration),Ye();case"const":return se({inFor:!1});case"function":return Oe(new V);case"class":return Te()}return at("let")&&ae()?se({inFor:!1}):xe()}function Zt(){for(var t=[];Dn>gn&&!ut("}");)t.push(Jt());return t}function Xt(){var t,e=new V;return rt("{"),t=Zt(),rt("}"),e.finishBlockStatement(t)}function Qt(t){var e,n=new V;return e=M(),e.type===Xe.Keyword&&"yield"===e.value?(an&&nt(e,rn.StrictReservedWord),Cn.allowYield||et(e)):e.type!==Xe.Identifier?an&&e.type===Xe.Keyword&&p(e.value)?nt(e,rn.StrictReservedWord):(an||"let"!==e.value||"var"!==t)&&et(e):"module"===Cn.sourceType&&e.type===Xe.Identifier&&"await"===e.value&&nt(e),n.finishIdentifier(e.value)}function te(t){var e,n=null,r=new V,i=[];return e=vt(i,"var"),an&&h(e.name)&&Q(rn.StrictVarName),ut("=")?(M(),n=ft(Gt)):e.type===en.Identifier||t.inFor||rt("="),r.finishVariableDeclarator(e,n)}function ee(t){var e,n;for(e={inFor:t.inFor},n=[te(e)];ut(",");)M(),n.push(te(e));return n}function ne(t){var e;return ot("var"),e=ee({inFor:!1}),lt(),t.finishVariableDeclaration(e)}function re(t,e){var n,r=null,i=new V,o=[];return n=vt(o,t),an&&n.type===en.Identifier&&h(n.name)&&Q(rn.StrictVarName),"const"===t?at("in")||st("of")||(rt("="),r=ft(Gt)):(!e.inFor&&n.type!==en.Identifier||ut("="))&&(rt("="),r=ft(Gt)),i.finishVariableDeclarator(n,r)}function ie(t,e){for(var n=[re(t,e)];ut(",");)M(),n.push(re(t,e));return n}function oe(){return{index:sn,lineNumber:cn,lineStart:ln,hasLineTerminator:fn,lastIndex:pn,lastLineNumber:hn,lastLineStart:dn,startIndex:gn,startLineNumber:vn,startLineStart:mn,lookahead:An,tokenCount:wn.tokens?wn.tokens.length:0}}function ue(t){sn=t.index,cn=t.lineNumber,ln=t.lineStart,fn=t.hasLineTerminator,pn=t.lastIndex,hn=t.lastLineNumber,dn=t.lastLineStart,gn=t.startIndex,vn=t.startLineNumber,mn=t.startLineStart,An=t.lookahead,wn.tokens&&wn.tokens.splice(t.tokenCount,wn.tokens.length)}function ae(){var t,e;return e=oe(),M(),t=An.type===Xe.Identifier||ut("[")||ut("{")||at("let")||at("yield"),ue(e),t}function se(t){var n,r,i=new V;return n=M().value,e("let"===n||"const"===n,"Lexical declaration must be either let or const"),r=ie(n,t),lt(),i.finishLexicalDeclaration(r,n)}function ce(t){var e,n=new V;return M(),ut("{")&&X(rn.ObjectPatternAsRestParameter),t.push(An),e=Qt(),ut("=")&&X(rn.DefaultRestParameter),ut(")")||X(rn.ParameterAfterRestParameter),n.finishRestElement(e)}function le(t){return rt(";"),t.finishEmptyStatement()}function fe(t){var e=Kt();return lt(),t.finishExpressionStatement(e)}function pe(t){var e,n,r;return ot("if"),rt("("),e=Kt(),rt(")"),n=xe(),at("else")?(M(),r=xe()):r=null,t.finishIfStatement(e,n,r)}function he(t){var e,n,r;return ot("do"),r=Cn.inIteration,Cn.inIteration=!0,e=xe(),Cn.inIteration=r,ot("while"),rt("("),n=Kt(),rt(")"),ut(";")&&M(),t.finishDoWhileStatement(e,n)}function de(t){var e,n,r;return ot("while"),rt("("),e=Kt(),rt(")"),r=Cn.inIteration,Cn.inIteration=!0,n=xe(),Cn.inIteration=r,t.finishWhileStatement(e,n)}function ge(t){var e,n,r,i,o,u,a,s,c,l,f,p,h=Cn.allowIn;if(e=o=u=null,n=!0,ot("for"),rt("("),ut(";"))M();else if(at("var"))e=new V,M(),Cn.allowIn=!1,l=ee({inFor:!0}),Cn.allowIn=h,1===l.length&&at("in")?(e=e.finishVariableDeclaration(l),M(),a=e,s=Kt(),e=null):1===l.length&&null===l[0].init&&st("of")?(e=e.finishVariableDeclaration(l),M(),a=e,s=Gt(),e=null,n=!1):(e=e.finishVariableDeclaration(l),rt(";"));else if(at("const")||at("let"))e=new V,c=M().value,an||"in"!==An.value?(Cn.allowIn=!1,l=ie(c,{inFor:!0}),Cn.allowIn=h,1===l.length&&null===l[0].init&&at("in")?(e=e.finishLexicalDeclaration(l,c),M(),a=e,s=Kt(),e=null):1===l.length&&null===l[0].init&&st("of")?(e=e.finishLexicalDeclaration(l,c),M(),a=e,s=Gt(),e=null,n=!1):(lt(),e=e.finishLexicalDeclaration(l,c))):(e=e.finishIdentifier(c),M(),a=e,s=Kt(),e=null);else if(i=An,Cn.allowIn=!1,e=pt(Gt),Cn.allowIn=h,at("in"))En||Q(rn.InvalidLHSInForIn),M(),xt(e),a=e,s=Kt(),e=null;else if(st("of"))En||Q(rn.InvalidLHSInForLoop),M(),xt(e),a=e,s=Gt(),e=null,n=!1;else{if(ut(",")){for(r=[e];ut(",");)M(),r.push(ft(Gt));e=new G(i).finishSequenceExpression(r)}rt(";")}return"undefined"==typeof a&&(ut(";")||(o=Kt()),rt(";"),ut(")")||(u=Kt())),rt(")"),p=Cn.inIteration,Cn.inIteration=!0,f=ft(xe),Cn.inIteration=p,"undefined"==typeof a?t.finishForStatement(e,o,u,f):n?t.finishForInStatement(a,s,f):t.finishForOfStatement(a,s,f)}function ve(t){var e,n=null;return ot("continue"),59===un.charCodeAt(gn)?(M(),Cn.inIteration||X(rn.IllegalContinue),t.finishContinueStatement(null)):fn?(Cn.inIteration||X(rn.IllegalContinue),t.finishContinueStatement(null)):(An.type===Xe.Identifier&&(n=Qt(),e="$"+n.name,Object.prototype.hasOwnProperty.call(Cn.labelSet,e)||X(rn.UnknownLabel,n.name)),lt(),null!==n||Cn.inIteration||X(rn.IllegalContinue),t.finishContinueStatement(n))}function me(t){var e,n=null;return ot("break"),59===un.charCodeAt(pn)?(M(),Cn.inIteration||Cn.inSwitch||X(rn.IllegalBreak),t.finishBreakStatement(null)):(fn?Cn.inIteration||Cn.inSwitch||X(rn.IllegalBreak):An.type===Xe.Identifier&&(n=Qt(),e="$"+n.name,Object.prototype.hasOwnProperty.call(Cn.labelSet,e)||X(rn.UnknownLabel,n.name)),lt(),null!==n||Cn.inIteration||Cn.inSwitch||X(rn.IllegalBreak),t.finishBreakStatement(n))}function ye(t){var e=null;return ot("return"),Cn.inFunctionBody||Q(rn.IllegalReturn),32===un.charCodeAt(pn)&&c(un.charCodeAt(pn+1))?(e=Kt(),lt(),t.finishReturnStatement(e)):fn?t.finishReturnStatement(null):(ut(";")||ut("}")||An.type===Xe.EOF||(e=Kt()),lt(),t.finishReturnStatement(e))}function De(t){var e,n;return an&&Q(rn.StrictModeWith),ot("with"),rt("("),e=Kt(),rt(")"),n=xe(),t.finishWithStatement(e,n)}function Ae(){var t,e,n=[],r=new V;for(at("default")?(M(),t=null):(ot("case"),t=Kt()),rt(":");Dn>gn&&!(ut("}")||at("default")||at("case"));)e=Jt(),n.push(e);return r.finishSwitchCase(t,n)}function Ce(t){var e,n,r,i,o;if(ot("switch"),rt("("),e=Kt(),rt(")"),rt("{"),n=[],ut("}"))return M(),t.finishSwitchStatement(e,n);for(i=Cn.inSwitch,Cn.inSwitch=!0,o=!1;Dn>gn&&!ut("}");)r=Ae(),null===r.test&&(o&&X(rn.MultipleDefaultsInSwitch),o=!0),n.push(r);return Cn.inSwitch=i,rt("}"),t.finishSwitchStatement(e,n)}function we(t){var e;return ot("throw"),fn&&X(rn.NewlineAfterThrow),e=Kt(),lt(),t.finishThrowStatement(e)}function be(){var t,e,n,r,i=[],o={},u=new V;for(ot("catch"),rt("("),ut(")")&&et(An),t=vt(i),n=0;ngn&&An.type===Xe.StringLiteral&&(e=An,t=Jt(),s.push(t),t.expression.type===en.Literal);)n=un.slice(e.start+1,e.end-1),"use strict"===n?(an=!0,r&&nt(r,rn.StrictOctalLiteral)):!r&&e.octal&&(r=e);for(i=Cn.labelSet,o=Cn.inIteration,u=Cn.inSwitch,a=Cn.inFunctionBody,Cn.labelSet={},Cn.inIteration=!1,Cn.inSwitch=!1,Cn.inFunctionBody=!0;Dn>gn&&!ut("}");)s.push(Jt());return rt("}"),Cn.labelSet=i,Cn.inIteration=o,Cn.inSwitch=u,Cn.inFunctionBody=a,c.finishBlockStatement(s)}function Se(t,e,n){var r="$"+n;an?(h(n)&&(t.stricted=e,t.message=rn.StrictParamName),Object.prototype.hasOwnProperty.call(t.paramSet,r)&&(t.stricted=e,t.message=rn.StrictParamDupe)):t.firstRestricted||(h(n)?(t.firstRestricted=e,t.message=rn.StrictParamName):p(n)?(t.firstRestricted=e,t.message=rn.StrictReservedWord):Object.prototype.hasOwnProperty.call(t.paramSet,r)&&(t.stricted=e,t.message=rn.StrictParamDupe)),t.paramSet[r]=!0}function Be(t){var e,n,r,i,o=[];if(e=An,"..."===e.value)return n=ce(o),Se(t,n.argument,n.argument.name),t.params.push(n),t.defaults.push(null),!1;for(n=mt(o),r=0;rgn&&Be(e);)rt(",");return rt(")"),0===e.defaultCount&&(e.defaults=[]),{params:e.params,defaults:e.defaults,stricted:e.stricted,firstRestricted:e.firstRestricted,message:e.message}}function Oe(t,e){var n,r,i,o,u,a,s,c,l,f=null,d=[],g=[];return l=Cn.allowYield,ot("function"),c=ut("*"),c&&M(),e&&ut("(")||(r=An,f=Qt(),an?h(r.value)&&nt(r,rn.StrictFunctionName):h(r.value)?(u=r,a=rn.StrictFunctionName):p(r.value)&&(u=r,a=rn.StrictReservedWord)),Cn.allowYield=!c,o=ke(u),d=o.params,g=o.defaults,i=o.stricted,u=o.firstRestricted,o.message&&(a=o.message),s=an,n=Fe(),an&&u&&et(u,a),an&&i&&nt(i,a),an=s,Cn.allowYield=l,t.finishFunctionDeclaration(f,d,g,n,c)}function Ie(){var t,e,n,r,i,o,u,a,s,c=null,l=[],f=[],d=new V;return s=Cn.allowYield,ot("function"),a=ut("*"),a&&M(),Cn.allowYield=!a,ut("(")||(t=An,c=an||a||!at("yield")?Qt():It(),an?h(t.value)&&nt(t,rn.StrictFunctionName):h(t.value)?(n=t,r=rn.StrictFunctionName):p(t.value)&&(n=t,r=rn.StrictReservedWord)),i=ke(n),l=i.params,f=i.defaults,e=i.stricted,n=i.firstRestricted,i.message&&(r=i.message),u=an,o=Fe(),an&&n&&et(n,r),an&&e&&nt(e,r),an=u,Cn.allowYield=s,d.finishFunctionExpression(c,l,f,o,a)}function je(){var t,e,n,r,i,o,u,a=!1;for(t=new V,rt("{"),r=[];!ut("}");)ut(";")?M():(i=new V,e=An,n=!1,o=ut("["),ut("*")?M():(u=Ct(),"static"===u.name&&(wt()||ut("*"))&&(e=An,n=!0,o=ut("["),ut("*")?M():u=Ct())),i=bt(e,u,o,i),i?(i["static"]=n,"init"===i.kind&&(i.kind="method"),n?i.computed||"prototype"!==(i.key.name||i.key.value.toString())||et(e,rn.StaticPrototype):i.computed||"constructor"!==(i.key.name||i.key.value.toString())||("method"===i.kind&&i.method&&!i.value.generator||et(e,rn.ConstructorSpecialMethod),a?et(e,rn.DuplicateConstructor):a=!0,i.kind="constructor"),i.type=en.MethodDefinition,delete i.method,delete i.shorthand,r.push(i)):et(An));return M(),t.finishClassBody(r)}function Te(t){var e,n=null,r=null,i=new V,o=an;return an=!0,ot("class"),t&&An.type!==Xe.Identifier||(n=Qt()),at("extends")&&(M(),r=ft($t)),e=je(),an=o,i.finishClassDeclaration(n,r,e)}function Pe(){var t,e=null,n=null,r=new V,i=an;return an=!0,ot("class"),An.type===Xe.Identifier&&(e=Qt()),at("extends")&&(M(),n=ft($t)),t=je(),an=i,r.finishClassExpression(e,n,t)}function $e(){var t=new V;return An.type!==Xe.StringLiteral&&X(rn.InvalidModuleSpecifier),t.finishLiteral(M())}function Re(){var t,e,n,r=new V;return at("default")?(n=new V,M(),e=n.finishIdentifier("default")):e=Qt(),st("as")&&(M(),t=It()),r.finishExportSpecifier(e,t)}function Le(t){var e,n=null,r=null,i=[];if(An.type===Xe.Keyword)switch(An.value){case"let":case"const":return n=se({inFor:!1}),t.finishExportNamedDeclaration(n,i,null);case"var":case"class":case"function":return n=Jt(),t.finishExportNamedDeclaration(n,i,null)}for(rt("{");!ut("}")&&(e=e||at("default"),i.push(Re()),ut("}")||(rt(","),!ut("}"))););return rt("}"),st("from")?(M(),r=$e(),lt()):e?X(An.value?rn.UnexpectedToken:rn.MissingFromClause,An.value):lt(),t.finishExportNamedDeclaration(n,i,r)}function Ne(t){var e=null,n=null;return ot("default"),at("function")?(e=Oe(new V,!0),t.finishExportDefaultDeclaration(e)):at("class")?(e=Te(!0),t.finishExportDefaultDeclaration(e)):(st("from")&&X(rn.UnexpectedToken,An.value),n=ut("{")?_t():ut("[")?yt():Gt(),lt(),t.finishExportDefaultDeclaration(n))}function Ue(t){var e;return rt("*"),st("from")||X(An.value?rn.UnexpectedToken:rn.MissingFromClause,An.value),M(),e=$e(),lt(),t.finishExportAllDeclaration(e)}function qe(){var t=new V;return Cn.inFunctionBody&&X(rn.IllegalExportDeclaration),ot("export"),at("default")?Ne(t):ut("*")?Ue(t):Le(t)}function Me(){var t,e,n=new V;return e=It(),st("as")&&(M(),t=Qt()),n.finishImportSpecifier(t,e)}function He(){var t=[];for(rt("{");!ut("}")&&(t.push(Me()),ut("}")||(rt(","),!ut("}"))););return rt("}"),t}function ze(){var t,e=new V;return t=It(),e.finishImportDefaultSpecifier(t)}function We(){var t,e=new V;return rt("*"),st("as")||X(rn.NoAsAfterImportNamespace),M(),t=It(),e.finishImportNamespaceSpecifier(t)}function Ye(){var t,e=[],n=new V;return Cn.inFunctionBody&&X(rn.IllegalImportDeclaration),ot("import"),An.type===Xe.StringLiteral?t=$e():(ut("{")?e=e.concat(He()):ut("*")?e.push(We()):L(An)&&!at("default")?(e.push(ze()),ut(",")&&(M(),ut("*")?e.push(We()):ut("{")?e=e.concat(He()):et(An))):et(M()),st("from")||X(An.value?rn.UnexpectedToken:rn.MissingFromClause,An.value),M(),t=$e()),lt(),n.finishImportDeclaration(e,t)}function Ve(){for(var t,e,n,r,i=[];Dn>gn&&(e=An,e.type===Xe.StringLiteral)&&(t=Jt(),i.push(t),t.expression.type===en.Literal);)n=un.slice(e.start+1,e.end-1),"use strict"===n?(an=!0,r&&nt(r,rn.StrictOctalLiteral)):!r&&e.octal&&(r=e);for(;Dn>gn&&(t=Jt(),"undefined"!=typeof t);)i.push(t);return i}function Ge(){var t,e;return H(),e=new V,t=Ve(),e.finishProgram(t,Cn.sourceType)}function Ke(){var t,e,n,r=[];for(t=0;t0?1:0,ln=0,gn=sn,vn=cn,mn=ln,Dn=un.length,An=null,Cn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[]},wn={},e=e||{},e.tokens=!0,wn.tokens=[],wn.tokenValues=[],wn.tokenize=!0,wn.delegate=n,wn.openParenToken=-1,wn.openCurlyToken=-1,wn.range="boolean"==typeof e.range&&e.range,wn.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.comment&&e.comment&&(wn.comments=[]),"boolean"==typeof e.tolerant&&e.tolerant&&(wn.errors=[]);try{if(H(),An.type===Xe.EOF)return wn.tokens;for(M();An.type!==Xe.EOF;)try{M()}catch(o){if(wn.errors){K(o);break}throw o}i=wn.tokens,"undefined"!=typeof wn.errors&&(i.errors=wn.errors)}catch(u){throw u}finally{wn={}}return i}function Ze(t,e){var n,r;r=String,"string"==typeof t||t instanceof String||(t=r(t)),un=t,sn=0,cn=un.length>0?1:0,ln=0,gn=sn,vn=cn,mn=ln,Dn=un.length,An=null,Cn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[],sourceType:"script"},an=!1,wn={},"undefined"!=typeof e&&(wn.range="boolean"==typeof e.range&&e.range,wn.loc="boolean"==typeof e.loc&&e.loc,wn.attachComment="boolean"==typeof e.attachComment&&e.attachComment,wn.loc&&null!==e.source&&void 0!==e.source&&(wn.source=r(e.source)),"boolean"==typeof e.tokens&&e.tokens&&(wn.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(wn.comments=[]),"boolean"==typeof e.tolerant&&e.tolerant&&(wn.errors=[]),wn.attachComment&&(wn.range=!0,wn.comments=[],wn.bottomRightStack=[],wn.trailingComments=[],wn.leadingComments=[]),"module"===e.sourceType&&(Cn.sourceType=e.sourceType,an=!0));try{n=Ge(),"undefined"!=typeof wn.comments&&(n.comments=wn.comments),"undefined"!=typeof wn.tokens&&(Ke(),n.tokens=wn.tokens),"undefined"!=typeof wn.errors&&(n.errors=wn.errors)}catch(i){throw i}finally{wn={}}return n}var Xe,Qe,tn,en,nn,rn,on,un,an,sn,cn,ln,fn,pn,hn,dn,gn,vn,mn,yn,Dn,An,Cn,wn,bn,En,_n;Xe={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9,Template:10},Qe={},Qe[Xe.BooleanLiteral]="Boolean",Qe[Xe.EOF]="",Qe[Xe.Identifier]="Identifier",Qe[Xe.Keyword]="Keyword",Qe[Xe.NullLiteral]="Null",Qe[Xe.NumericLiteral]="Numeric",Qe[Xe.Punctuator]="Punctuator",Qe[Xe.StringLiteral]="String",Qe[Xe.RegularExpression]="RegularExpression",Qe[Xe.Template]="Template",tn=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],en={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},nn={ArrowParameterPlaceHolder:"ArrowParameterPlaceHolder"},rn={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",DefaultRestParameter:"Unexpected token =",ObjectPatternAsRestParameter:"Unexpected token {",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ConstructorSpecialMethod:"Class constructor may not be an accessor",DuplicateConstructor:"A class may only have one constructor",StaticPrototype:"Classes may not have static property named prototype",MissingFromClause:"Unexpected token",NoAsAfterImportNamespace:"Unexpected token",InvalidModuleSpecifier:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalExportDeclaration:"Unexpected token",DuplicateBinding:"Duplicate binding %0"},on={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
-},G.prototype=V.prototype={processComment:function(){var t,e,n,r,i,o,u=wn.bottomRightStack,a=u[u.length-1];if(!(this.type===en.Program&&this.body.length>0)){if(this.type===en.BlockStatement&&0===this.body.length){for(e=[],i=wn.leadingComments.length-1;i>=0;--i)o=wn.leadingComments[i],this.range[1]>=o.range[1]&&(e.unshift(o),wn.leadingComments.splice(i,1),wn.trailingComments.splice(i,1));if(e.length)return void(this.innerComments=e)}if(wn.trailingComments.length>0){for(r=[],i=wn.trailingComments.length-1;i>=0;--i)o=wn.trailingComments[i],o.range[0]>=this.range[1]&&(r.unshift(o),wn.trailingComments.splice(i,1));wn.trailingComments=[]}else a&&a.trailingComments&&a.trailingComments[0].range[0]>=this.range[1]&&(r=a.trailingComments,delete a.trailingComments);for(;a&&a.range[0]>=this.range[0];)t=u.pop(),a=u[u.length-1];if(t){if(t.leadingComments){for(n=[],i=t.leadingComments.length-1;i>=0;--i)o=t.leadingComments[i],o.range[1]<=this.range[0]&&(n.unshift(o),t.leadingComments.splice(i,1));t.leadingComments.length||(t.leadingComments=void 0)}}else if(wn.leadingComments.length>0)for(n=[],i=wn.leadingComments.length-1;i>=0;--i)o=wn.leadingComments[i],o.range[1]<=this.range[0]&&(n.unshift(o),wn.leadingComments.splice(i,1));n&&n.length>0&&(this.leadingComments=n),r&&r.length>0&&(this.trailingComments=r),u.push(this)}},finish:function(){wn.range&&(this.range[1]=pn),wn.loc&&(this.loc.end={line:hn,column:pn-dn},wn.source&&(this.loc.source=wn.source)),wn.attachComment&&this.processComment()},finishArrayExpression:function(t){return this.type=en.ArrayExpression,this.elements=t,this.finish(),this},finishArrayPattern:function(t){return this.type=en.ArrayPattern,this.elements=t,this.finish(),this},finishArrowFunctionExpression:function(t,e,n,r){return this.type=en.ArrowFunctionExpression,this.id=null,this.params=t,this.defaults=e,this.body=n,this.generator=!1,this.expression=r,this.finish(),this},finishAssignmentExpression:function(t,e,n){return this.type=en.AssignmentExpression,this.operator=t,this.left=e,this.right=n,this.finish(),this},finishAssignmentPattern:function(t,e){return this.type=en.AssignmentPattern,this.left=t,this.right=e,this.finish(),this},finishBinaryExpression:function(t,e,n){return this.type="||"===t||"&&"===t?en.LogicalExpression:en.BinaryExpression,this.operator=t,this.left=e,this.right=n,this.finish(),this},finishBlockStatement:function(t){return this.type=en.BlockStatement,this.body=t,this.finish(),this},finishBreakStatement:function(t){return this.type=en.BreakStatement,this.label=t,this.finish(),this},finishCallExpression:function(t,e){return this.type=en.CallExpression,this.callee=t,this.arguments=e,this.finish(),this},finishCatchClause:function(t,e){return this.type=en.CatchClause,this.param=t,this.body=e,this.finish(),this},finishClassBody:function(t){return this.type=en.ClassBody,this.body=t,this.finish(),this},finishClassDeclaration:function(t,e,n){return this.type=en.ClassDeclaration,this.id=t,this.superClass=e,this.body=n,this.finish(),this},finishClassExpression:function(t,e,n){return this.type=en.ClassExpression,this.id=t,this.superClass=e,this.body=n,this.finish(),this},finishConditionalExpression:function(t,e,n){return this.type=en.ConditionalExpression,this.test=t,this.consequent=e,this.alternate=n,this.finish(),this},finishContinueStatement:function(t){return this.type=en.ContinueStatement,this.label=t,this.finish(),this},finishDebuggerStatement:function(){return this.type=en.DebuggerStatement,this.finish(),this},finishDoWhileStatement:function(t,e){return this.type=en.DoWhileStatement,this.body=t,this.test=e,this.finish(),this},finishEmptyStatement:function(){return this.type=en.EmptyStatement,this.finish(),this},finishExpressionStatement:function(t){return this.type=en.ExpressionStatement,this.expression=t,this.finish(),this},finishForStatement:function(t,e,n,r){return this.type=en.ForStatement,this.init=t,this.test=e,this.update=n,this.body=r,this.finish(),this},finishForOfStatement:function(t,e,n){return this.type=en.ForOfStatement,this.left=t,this.right=e,this.body=n,this.finish(),this},finishForInStatement:function(t,e,n){return this.type=en.ForInStatement,this.left=t,this.right=e,this.body=n,this.each=!1,this.finish(),this},finishFunctionDeclaration:function(t,e,n,r,i){return this.type=en.FunctionDeclaration,this.id=t,this.params=e,this.defaults=n,this.body=r,this.generator=i,this.expression=!1,this.finish(),this},finishFunctionExpression:function(t,e,n,r,i){return this.type=en.FunctionExpression,this.id=t,this.params=e,this.defaults=n,this.body=r,this.generator=i,this.expression=!1,this.finish(),this},finishIdentifier:function(t){return this.type=en.Identifier,this.name=t,this.finish(),this},finishIfStatement:function(t,e,n){return this.type=en.IfStatement,this.test=t,this.consequent=e,this.alternate=n,this.finish(),this},finishLabeledStatement:function(t,e){return this.type=en.LabeledStatement,this.label=t,this.body=e,this.finish(),this},finishLiteral:function(t){return this.type=en.Literal,this.value=t.value,this.raw=un.slice(t.start,t.end),t.regex&&(this.regex=t.regex),this.finish(),this},finishMemberExpression:function(t,e,n){return this.type=en.MemberExpression,this.computed="["===t,this.object=e,this.property=n,this.finish(),this},finishMetaProperty:function(t,e){return this.type=en.MetaProperty,this.meta=t,this.property=e,this.finish(),this},finishNewExpression:function(t,e){return this.type=en.NewExpression,this.callee=t,this.arguments=e,this.finish(),this},finishObjectExpression:function(t){return this.type=en.ObjectExpression,this.properties=t,this.finish(),this},finishObjectPattern:function(t){return this.type=en.ObjectPattern,this.properties=t,this.finish(),this},finishPostfixExpression:function(t,e){return this.type=en.UpdateExpression,this.operator=t,this.argument=e,this.prefix=!1,this.finish(),this},finishProgram:function(t,e){return this.type=en.Program,this.body=t,this.sourceType=e,this.finish(),this},finishProperty:function(t,e,n,r,i,o){return this.type=en.Property,this.key=e,this.computed=n,this.value=r,this.kind=t,this.method=i,this.shorthand=o,this.finish(),this},finishRestElement:function(t){return this.type=en.RestElement,this.argument=t,this.finish(),this},finishReturnStatement:function(t){return this.type=en.ReturnStatement,this.argument=t,this.finish(),this},finishSequenceExpression:function(t){return this.type=en.SequenceExpression,this.expressions=t,this.finish(),this},finishSpreadElement:function(t){return this.type=en.SpreadElement,this.argument=t,this.finish(),this},finishSwitchCase:function(t,e){return this.type=en.SwitchCase,this.test=t,this.consequent=e,this.finish(),this},finishSuper:function(){return this.type=en.Super,this.finish(),this},finishSwitchStatement:function(t,e){return this.type=en.SwitchStatement,this.discriminant=t,this.cases=e,this.finish(),this},finishTaggedTemplateExpression:function(t,e){return this.type=en.TaggedTemplateExpression,this.tag=t,this.quasi=e,this.finish(),this},finishTemplateElement:function(t,e){return this.type=en.TemplateElement,this.value=t,this.tail=e,this.finish(),this},finishTemplateLiteral:function(t,e){return this.type=en.TemplateLiteral,this.quasis=t,this.expressions=e,this.finish(),this},finishThisExpression:function(){return this.type=en.ThisExpression,this.finish(),this},finishThrowStatement:function(t){return this.type=en.ThrowStatement,this.argument=t,this.finish(),this},finishTryStatement:function(t,e,n){return this.type=en.TryStatement,this.block=t,this.guardedHandlers=[],this.handlers=e?[e]:[],this.handler=e,this.finalizer=n,this.finish(),this},finishUnaryExpression:function(t,e){return this.type="++"===t||"--"===t?en.UpdateExpression:en.UnaryExpression,this.operator=t,this.argument=e,this.prefix=!0,this.finish(),this},finishVariableDeclaration:function(t){return this.type=en.VariableDeclaration,this.declarations=t,this.kind="var",this.finish(),this},finishLexicalDeclaration:function(t,e){return this.type=en.VariableDeclaration,this.declarations=t,this.kind=e,this.finish(),this},finishVariableDeclarator:function(t,e){return this.type=en.VariableDeclarator,this.id=t,this.init=e,this.finish(),this},finishWhileStatement:function(t,e){return this.type=en.WhileStatement,this.test=t,this.body=e,this.finish(),this},finishWithStatement:function(t,e){return this.type=en.WithStatement,this.object=t,this.body=e,this.finish(),this},finishExportSpecifier:function(t,e){return this.type=en.ExportSpecifier,this.exported=e||t,this.local=t,this.finish(),this},finishImportDefaultSpecifier:function(t){return this.type=en.ImportDefaultSpecifier,this.local=t,this.finish(),this},finishImportNamespaceSpecifier:function(t){return this.type=en.ImportNamespaceSpecifier,this.local=t,this.finish(),this},finishExportNamedDeclaration:function(t,e,n){return this.type=en.ExportNamedDeclaration,this.declaration=t,this.specifiers=e,this.source=n,this.finish(),this},finishExportDefaultDeclaration:function(t){return this.type=en.ExportDefaultDeclaration,this.declaration=t,this.finish(),this},finishExportAllDeclaration:function(t){return this.type=en.ExportAllDeclaration,this.source=t,this.finish(),this},finishImportSpecifier:function(t,e){return this.type=en.ImportSpecifier,this.local=t||e,this.imported=e,this.finish(),this},finishImportDeclaration:function(t,e){return this.type=en.ImportDeclaration,this.specifiers=t,this.source=e,this.finish(),this},finishYieldExpression:function(t,e){return this.type=en.YieldExpression,this.argument=t,this.delegate=e,this.finish(),this}},t.version="2.7.2",t.tokenize=Je,t.parse=Ze,t.Syntax=function(){var t,e={};"function"==typeof Object.create&&(e=Object.create(null));for(t in en)en.hasOwnProperty(t)&&(e[t]=en[t]);return"function"==typeof Object.freeze&&Object.freeze(e),e}()})},function(t,e,n){var r,i;/*!
+(function(){"use strict";function u(t){return"function"==typeof t||"object"==typeof t&&null!==t}function a(t){return"function"==typeof t}function s(t){V=t}function c(t){Z=t}function l(){return function(){t.nextTick(g)}}function f(){return function(){Y(g)}}function p(){var t=0,e=new tt(g),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function h(){var t=new MessageChannel;return t.port1.onmessage=g,function(){t.port2.postMessage(0)}}function d(){return function(){setTimeout(g,1)}}function g(){for(var t=0;J>t;t+=2){var e=rt[t],n=rt[t+1];e(n),rt[t]=void 0,rt[t+1]=void 0}J=0}function v(){try{var t=n(131);return Y=t.runOnLoop||t.runOnContext,f()}catch(e){return d()}}function m(t,e){var n=this,r=n._state;if(r===at&&!t||r===st&&!e)return this;var i=new this.constructor(D),o=n._result;if(r){var u=arguments[r-1];Z(function(){$(r,i,u,o)})}else O(n,i,t,e);return i}function y(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(D);return F(n,t),n}function D(){}function A(){return new TypeError("You cannot resolve a promise with itself")}function w(){return new TypeError("A promises callback cannot return that same promise.")}function C(t){try{return t.then}catch(e){return ct.error=e,ct}}function b(t,e,n,r){try{t.call(e,n,r)}catch(i){return i}}function E(t,e,n){Z(function(t){var r=!1,i=b(n,e,function(n){r||(r=!0,e!==n?F(t,n):k(t,n))},function(e){r||(r=!0,B(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,B(t,i))},t)}function _(t,e){e._state===at?k(t,e._result):e._state===st?B(t,e._result):O(e,void 0,function(e){F(t,e)},function(e){B(t,e)})}function x(t,e,n){e.constructor===t.constructor&&n===it&&constructor.resolve===ot?_(t,e):n===ct?B(t,ct.error):void 0===n?k(t,e):a(n)?E(t,e,n):k(t,e)}function F(t,e){t===e?B(t,A()):u(e)?x(t,e,C(e)):k(t,e)}function S(t){t._onerror&&t._onerror(t._result),I(t)}function k(t,e){t._state===ut&&(t._result=e,t._state=at,0!==t._subscribers.length&&Z(I,t))}function B(t,e){t._state===ut&&(t._state=st,t._result=e,Z(S,t))}function O(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+at]=n,i[o+st]=r,0===o&&t._state&&Z(I,t)}function I(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,i,o=t._result,u=0;uu;u++)O(r.resolve(t[u]),void 0,e,n);return i}function N(t){var e=this,n=new e(D);return B(n,t),n}function U(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function q(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function M(t){this._id=dt++,this._state=void 0,this._result=void 0,this._subscribers=[],D!==t&&("function"!=typeof t&&U(),this instanceof M?P(this,t):q())}function H(t,e){this._instanceConstructor=t,this.promise=new t(D),Array.isArray(e)?(this._input=e,this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?k(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&k(this.promise,this._result))):B(this.promise,this._validationError())}function z(){var t;if("undefined"!=typeof i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;n&&"[object Promise]"===Object.prototype.toString.call(n.resolve())&&!n.cast||(t.Promise=gt)}var W;W=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var Y,V,G,K=W,J=0,Z=function(t,e){rt[J]=t,rt[J+1]=e,J+=2,2===J&&(V?V(g):G())},Q="undefined"!=typeof window?window:void 0,X=Q||{},tt=X.MutationObserver||X.WebKitMutationObserver,et="undefined"!=typeof t&&"[object process]"==={}.toString.call(t),nt="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,rt=new Array(1e3);G=et?l():tt?p():nt?h():void 0===Q?v():d();var it=m,ot=y,ut=void 0,at=1,st=2,ct=new T,lt=new T,ft=R,pt=L,ht=N,dt=0,gt=M;M.all=ft,M.race=pt,M.resolve=ot,M.reject=ht,M._setScheduler=s,M._setAsap=c,M._asap=Z,M.prototype={constructor:M,then:it,"catch":function(t){return this.then(null,t)}};var vt=H;H.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},H.prototype._enumerate=function(){for(var t=this.length,e=this._input,n=0;this._state===ut&&t>n;n++)this._eachEntry(e[n],n)},H.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===ot){var i=C(t);if(i===it&&t._state!==ut)this._settledAt(t._state,e,t._result);else if("function"!=typeof i)this._remaining--,this._result[e]=t;else if(n===gt){var o=new n(D);x(o,t,i),this._willSettleAt(o,e)}else this._willSettleAt(new n(function(e){e(t)}),e)}else this._willSettleAt(r(t),e)},H.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===ut&&(this._remaining--,t===st?B(r,n):this._result[e]=n),0===this._remaining&&k(r,this._result)},H.prototype._willSettleAt=function(t,e){var n=this;O(t,void 0,function(t){n._settledAt(at,e,t)},function(t){n._settledAt(st,e,t)})};var mt=z,yt={Promise:gt,polyfill:mt};n(130).amd?(r=function(){return yt}.call(e,n,e,o),!(void 0!==r&&(o.exports=r))):"undefined"!=typeof o&&o.exports?o.exports=yt:"undefined"!=typeof this&&(this.ES6Promise=yt),mt()}).call(this)}).call(e,n(43),function(){return this}(),n(13)(t))},function(t,e,n){var r,i,o;!function(n,u){"use strict";i=[e],r=u,o="function"==typeof r?r.apply(e,i):r,!(void 0!==o&&(t.exports=o))}(this,function(t){"use strict";function e(t,e){if(!t)throw new Error("ASSERT: "+e)}function n(t){return t>=48&&57>=t}function r(t){return"0123456789abcdefABCDEF".indexOf(t)>=0}function i(t){return"01234567".indexOf(t)>=0}function o(t){var e="0"!==t,n="01234567".indexOf(t);return Dn>sn&&i(un[sn])&&(e=!0,n=8*n+"01234567".indexOf(un[sn++]),"0123".indexOf(t)>=0&&Dn>sn&&i(un[sn])&&(n=8*n+"01234567".indexOf(un[sn++]))),{code:n,octal:e}}function u(t){return 32===t||9===t||11===t||12===t||160===t||t>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(t)>=0}function a(t){return 10===t||13===t||8232===t||8233===t}function s(t){return 65536>t?String.fromCharCode(t):String.fromCharCode(55296+(t-65536>>10))+String.fromCharCode(56320+(t-65536&1023))}function c(t){return 36===t||95===t||t>=65&&90>=t||t>=97&&122>=t||92===t||t>=128&&on.NonAsciiIdentifierStart.test(s(t))}function l(t){return 36===t||95===t||t>=65&&90>=t||t>=97&&122>=t||t>=48&&57>=t||92===t||t>=128&&on.NonAsciiIdentifierPart.test(s(t))}function f(t){switch(t){case"enum":case"export":case"import":case"super":return!0;default:return!1}}function p(t){switch(t){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"yield":case"let":return!0;default:return!1}}function h(t){return"eval"===t||"arguments"===t}function d(t){switch(t.length){case 2:return"if"===t||"in"===t||"do"===t;case 3:return"var"===t||"for"===t||"new"===t||"try"===t||"let"===t;case 4:return"this"===t||"else"===t||"case"===t||"void"===t||"with"===t||"enum"===t;case 5:return"while"===t||"break"===t||"catch"===t||"throw"===t||"const"===t||"yield"===t||"class"===t||"super"===t;case 6:return"return"===t||"typeof"===t||"delete"===t||"switch"===t||"export"===t||"import"===t;case 7:return"default"===t||"finally"===t||"extends"===t;case 8:return"function"===t||"continue"===t||"debugger"===t;case 10:return"instanceof"===t;default:return!1}}function g(t,n,r,i,o){var u;e("number"==typeof r,"Comment must have valid position"),wn.lastCommentStart=r,u={type:t,value:n},Cn.range&&(u.range=[r,i]),Cn.loc&&(u.loc=o),Cn.comments.push(u),Cn.attachComment&&(Cn.leadingComments.push(u),Cn.trailingComments.push(u)),Cn.tokenize&&(u.type=u.type+"Comment",Cn.delegate&&(u=Cn.delegate(u)),Cn.tokens.push(u))}function v(t){var e,n,r,i;for(e=sn-t,n={start:{line:cn,column:sn-ln-t}};Dn>sn;)if(r=un.charCodeAt(sn),++sn,a(r))return fn=!0,Cn.comments&&(i=un.slice(e+t,sn-1),n.end={line:cn,column:sn-ln-1},g("Line",i,e,sn-1,n)),13===r&&10===un.charCodeAt(sn)&&++sn,++cn,void(ln=sn);Cn.comments&&(i=un.slice(e+t,sn),n.end={line:cn,column:sn-ln},g("Line",i,e,sn,n))}function m(){var t,e,n,r;for(Cn.comments&&(t=sn-2,e={start:{line:cn,column:sn-ln-2}});Dn>sn;)if(n=un.charCodeAt(sn),a(n))13===n&&10===un.charCodeAt(sn+1)&&++sn,fn=!0,++cn,++sn,ln=sn;else if(42===n){if(47===un.charCodeAt(sn+1))return++sn,++sn,void(Cn.comments&&(r=un.slice(t+2,sn-2),e.end={line:cn,column:sn-ln},g("Block",r,t,sn,e)));++sn}else++sn;Cn.comments&&(e.end={line:cn,column:sn-ln},r=un.slice(t+2,sn),g("Block",r,t,sn,e)),nt()}function y(){var t,e;for(fn=!1,e=0===sn;Dn>sn;)if(t=un.charCodeAt(sn),u(t))++sn;else if(a(t))fn=!0,++sn,13===t&&10===un.charCodeAt(sn)&&++sn,++cn,ln=sn,e=!0;else if(47===t)if(t=un.charCodeAt(sn+1),47===t)++sn,++sn,v(2),e=!0;else{if(42!==t)break;++sn,++sn,m()}else if(e&&45===t){if(45!==un.charCodeAt(sn+1)||62!==un.charCodeAt(sn+2))break;sn+=3,v(3)}else{if(60!==t)break;if("!--"!==un.slice(sn+1,sn+4))break;++sn,++sn,++sn,++sn,v(4)}}function D(t){var e,n,i,o=0;for(n="u"===t?4:2,e=0;n>e;++e){if(!(Dn>sn&&r(un[sn])))return"";i=un[sn++],o=16*o+"0123456789abcdef".indexOf(i.toLowerCase())}return String.fromCharCode(o)}function A(){var t,e;for(t=un[sn],e=0,"}"===t&&et();Dn>sn&&(t=un[sn++],r(t));)e=16*e+"0123456789abcdef".indexOf(t.toLowerCase());return(e>1114111||"}"!==t)&&et(),s(e)}function w(t){var e,n,r;return e=un.charCodeAt(t),e>=55296&&56319>=e&&(r=un.charCodeAt(t+1),r>=56320&&57343>=r&&(n=e,e=1024*(n-55296)+r-56320+65536)),e}function C(){var t,e,n;for(t=w(sn),n=s(t),sn+=n.length,92===t&&(117!==un.charCodeAt(sn)&&et(),++sn,"{"===un[sn]?(++sn,e=A()):(e=D("u"),t=e.charCodeAt(0),e&&"\\"!==e&&c(t)||et()),n=e);Dn>sn&&(t=w(sn),l(t));)e=s(t),n+=e,sn+=e.length,92===t&&(n=n.substr(0,n.length-1),117!==un.charCodeAt(sn)&&et(),++sn,"{"===un[sn]?(++sn,e=A()):(e=D("u"),t=e.charCodeAt(0),e&&"\\"!==e&&l(t)||et()),n+=e);return n}function b(){var t,e;for(t=sn++;Dn>sn;){if(e=un.charCodeAt(sn),92===e)return sn=t,C();if(e>=55296&&57343>e)return sn=t,C();if(!l(e))break;++sn}return un.slice(t,sn)}function E(){var t,e,n;return t=sn,e=92===un.charCodeAt(sn)?C():b(),n=1===e.length?Qe.Identifier:d(e)?Qe.Keyword:"null"===e?Qe.NullLiteral:"true"===e||"false"===e?Qe.BooleanLiteral:Qe.Identifier,{type:n,value:e,lineNumber:cn,lineStart:ln,start:t,end:sn}}function _(){var t,e;switch(t={type:Qe.Punctuator,value:"",lineNumber:cn,lineStart:ln,start:sn,end:sn},e=un[sn]){case"(":Cn.tokenize&&(Cn.openParenToken=Cn.tokenValues.length),++sn;break;case"{":Cn.tokenize&&(Cn.openCurlyToken=Cn.tokenValues.length),wn.curlyStack.push("{"),++sn;break;case".":++sn,"."===un[sn]&&"."===un[sn+1]&&(sn+=2,e="...");break;case"}":++sn,wn.curlyStack.pop();break;case")":case";":case",":case"[":case"]":case":":case"?":case"~":++sn;break;default:e=un.substr(sn,4),">>>="===e?sn+=4:(e=e.substr(0,3),"==="===e||"!=="===e||">>>"===e||"<<="===e||">>="===e?sn+=3:(e=e.substr(0,2),"&&"===e||"||"===e||"=="===e||"!="===e||"+="===e||"-="===e||"*="===e||"/="===e||"++"===e||"--"===e||"<<"===e||">>"===e||"&="===e||"|="===e||"^="===e||"%="===e||"<="===e||">="===e||"=>"===e?sn+=2:(e=un[sn],"<>=!+-*%&|^/".indexOf(e)>=0&&++sn)))}return sn===t.start&&et(),t.end=sn,t.value=e,t}function x(t){for(var e="";Dn>sn&&r(un[sn]);)e+=un[sn++];return 0===e.length&&et(),c(un.charCodeAt(sn))&&et(),{type:Qe.NumericLiteral,value:parseInt("0x"+e,16),lineNumber:cn,lineStart:ln,start:t,end:sn}}function F(t){var e,r;for(r="";Dn>sn&&(e=un[sn],"0"===e||"1"===e);)r+=un[sn++];return 0===r.length&&et(),Dn>sn&&(e=un.charCodeAt(sn),(c(e)||n(e))&&et()),{type:Qe.NumericLiteral,value:parseInt(r,2),lineNumber:cn,lineStart:ln,start:t,end:sn}}function S(t,e){var r,o;for(i(t)?(o=!0,r="0"+un[sn++]):(o=!1,++sn,r="");Dn>sn&&i(un[sn]);)r+=un[sn++];return o||0!==r.length||et(),(c(un.charCodeAt(sn))||n(un.charCodeAt(sn)))&&et(),{type:Qe.NumericLiteral,value:parseInt(r,8),octal:o,lineNumber:cn,lineStart:ln,start:e,end:sn}}function k(){var t,e;for(t=sn+1;Dn>t;++t){if(e=un[t],"8"===e||"9"===e)return!1;if(!i(e))return!0}return!0}function B(){var t,r,o;if(o=un[sn],e(n(o.charCodeAt(0))||"."===o,"Numeric literal must start with a decimal digit or a decimal point"),r=sn,t="","."!==o){if(t=un[sn++],o=un[sn],"0"===t){if("x"===o||"X"===o)return++sn,x(r);if("b"===o||"B"===o)return++sn,F(r);if("o"===o||"O"===o)return S(o,r);if(i(o)&&k())return S(o,r)}for(;n(un.charCodeAt(sn));)t+=un[sn++];o=un[sn]}if("."===o){for(t+=un[sn++];n(un.charCodeAt(sn));)t+=un[sn++];o=un[sn]}if("e"===o||"E"===o)if(t+=un[sn++],o=un[sn],"+"!==o&&"-"!==o||(t+=un[sn++]),n(un.charCodeAt(sn)))for(;n(un.charCodeAt(sn));)t+=un[sn++];else et();return c(un.charCodeAt(sn))&&et(),{type:Qe.NumericLiteral,value:parseFloat(t),lineNumber:cn,lineStart:ln,start:r,end:sn}}function O(){var t,n,r,u,s,c="",l=!1;for(t=un[sn],e("'"===t||'"'===t,"String literal must starts with a quote"),n=sn,++sn;Dn>sn;){if(r=un[sn++],r===t){t="";break}if("\\"===r)if(r=un[sn++],r&&a(r.charCodeAt(0)))++cn,"\r"===r&&"\n"===un[sn]&&++sn,ln=sn;else switch(r){case"u":case"x":if("{"===un[sn])++sn,c+=A();else{if(u=D(r),!u)throw et();c+=u}break;case"n":c+="\n";break;case"r":c+="\r";break;case"t":c+=" ";break;case"b":c+="\b";break;case"f":c+="\f";break;case"v":c+="\x0B";break;case"8":case"9":c+=r,nt();break;default:i(r)?(s=o(r),l=s.octal||l,c+=String.fromCharCode(s.code)):c+=r}else{if(a(r.charCodeAt(0)))break;c+=r}}return""!==t&&(sn=n,et()),{type:Qe.StringLiteral,value:c,octal:l,lineNumber:vn,lineStart:mn,start:n,end:sn}}function I(){var t,e,r,o,u,s,c,l,f="";for(o=!1,s=!1,e=sn,u="`"===un[sn],r=2,++sn;Dn>sn;){if(t=un[sn++],"`"===t){r=1,s=!0,o=!0;break}if("$"===t){if("{"===un[sn]){wn.curlyStack.push("${"),++sn,o=!0;break}f+=t}else if("\\"===t)if(t=un[sn++],a(t.charCodeAt(0)))++cn,"\r"===t&&"\n"===un[sn]&&++sn,ln=sn;else switch(t){case"n":f+="\n";break;case"r":f+="\r";break;case"t":f+=" ";break;case"u":case"x":"{"===un[sn]?(++sn,f+=A()):(c=sn,l=D(t),l?f+=l:(sn=c,f+=t));break;case"b":f+="\b";break;case"f":f+="\f";break;case"v":f+="\x0B";break;default:"0"===t?(n(un.charCodeAt(sn))&&Q(rn.TemplateOctalLiteral),f+="\x00"):i(t)?Q(rn.TemplateOctalLiteral):f+=t}else a(t.charCodeAt(0))?(++cn,"\r"===t&&"\n"===un[sn]&&++sn,ln=sn,f+="\n"):f+=t}return o||et(),u||wn.curlyStack.pop(),{type:Qe.Template,value:{cooked:f,raw:un.slice(e+1,sn-r)},head:u,tail:s,lineNumber:cn,lineStart:ln,start:e,end:sn}}function T(t,e){var n="",r=t;e.indexOf("u")>=0&&(r=r.replace(/\\u\{([0-9a-fA-F]+)\}|\\u([a-fA-F0-9]{4})/g,function(t,e,r){var i=parseInt(e||r,16);return i>1114111&&et(null,rn.InvalidRegExp),65535>=i?String.fromCharCode(i):n}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n));try{RegExp(r)}catch(i){et(null,rn.InvalidRegExp)}try{return new RegExp(t,e)}catch(o){return null}}function j(){var t,n,r,i,o;for(t=un[sn],e("/"===t,"Regular expression literal must start with a slash"),n=un[sn++],r=!1,i=!1;Dn>sn;)if(t=un[sn++],n+=t,"\\"===t)t=un[sn++],a(t.charCodeAt(0))&&et(null,rn.UnterminatedRegExp),n+=t;else if(a(t.charCodeAt(0)))et(null,rn.UnterminatedRegExp);else if(r)"]"===t&&(r=!1);else{if("/"===t){i=!0;break}"["===t&&(r=!0)}return i||et(null,rn.UnterminatedRegExp),o=n.substr(1,n.length-2),{value:o,literal:n}}function $(){var t,e,n,r;for(e="",n="";Dn>sn&&(t=un[sn],l(t.charCodeAt(0)));)if(++sn,"\\"===t&&Dn>sn)if(t=un[sn],"u"===t){if(++sn,r=sn,t=D("u"))for(n+=t,e+="\\u";sn>r;++r)e+=un[r];else sn=r,n+="u",e+="\\u";nt()}else e+="\\",nt();else n+=t,e+=t;return{value:n,literal:e}}function P(){var t,e,n,r;return yn=!0,An=null,y(),t=sn,e=j(),n=$(),r=T(e.value,n.value),yn=!1,Cn.tokenize?{type:Qe.RegularExpression,value:r,regex:{pattern:e.value,flags:n.value},lineNumber:cn,lineStart:ln,start:t,end:sn}:{literal:e.literal+n.literal,value:r,regex:{pattern:e.value,flags:n.value},start:t,end:sn}}function R(){var t,e,n,r;return y(),t=sn,e={start:{line:cn,column:sn-ln}},n=P(),e.end={line:cn,column:sn-ln},Cn.tokenize||(Cn.tokens.length>0&&(r=Cn.tokens[Cn.tokens.length-1],r.range[0]===t&&"Punctuator"===r.type&&("/"!==r.value&&"/="!==r.value||Cn.tokens.pop())),Cn.tokens.push({type:"RegularExpression",value:n.literal,regex:n.regex,range:[t,sn],loc:e})),n}function L(t){return t.type===Qe.Identifier||t.type===Qe.Keyword||t.type===Qe.BooleanLiteral||t.type===Qe.NullLiteral}function N(){function t(t){return t&&t.length>1&&t[0]>="a"&&t[0]<="z"}var e,n,r;switch(n=Cn.tokenValues[Cn.tokens.length-1],e=null!==n,n){case"this":case"]":e=!1;break;case")":r=Cn.tokenValues[Cn.openParenToken-1],e="if"===r||"while"===r||"for"===r||"with"===r;break;case"}":e=!1,t(Cn.tokenValues[Cn.openCurlyToken-3])?(r=Cn.tokenValues[Cn.openCurlyToken-4],e=r?tn.indexOf(r)<0:!1):t(Cn.tokenValues[Cn.openCurlyToken-4])&&(r=Cn.tokenValues[Cn.openCurlyToken-5],e=r?tn.indexOf(r)<0:!0)}return e?R():_()}function U(){var t,e;return sn>=Dn?{type:Qe.EOF,lineNumber:cn,lineStart:ln,start:sn,end:sn}:(t=un.charCodeAt(sn),c(t)?(e=E(),an&&p(e.value)&&(e.type=Qe.Keyword),e):40===t||41===t||59===t?_():39===t||34===t?O():46===t?n(un.charCodeAt(sn+1))?B():_():n(t)?B():Cn.tokenize&&47===t?N():96===t||125===t&&"${"===wn.curlyStack[wn.curlyStack.length-1]?I():t>=55296&&57343>t&&(t=w(sn),c(t))?E():_())}function q(){var t,e,n,r;return t={start:{line:cn,column:sn-ln}},e=U(),t.end={line:cn,column:sn-ln},e.type!==Qe.EOF&&(n=un.slice(e.start,e.end),r={type:Xe[e.type],value:n,range:[e.start,e.end],loc:t},e.regex&&(r.regex={pattern:e.regex.pattern,flags:e.regex.flags}),Cn.tokenValues&&Cn.tokenValues.push("Punctuator"===r.type||"Keyword"===r.type?r.value:null),Cn.tokenize&&(Cn.range||delete r.range,Cn.loc||delete r.loc,Cn.delegate&&(r=Cn.delegate(r))),Cn.tokens.push(r)),e}function M(){var t;return yn=!0,pn=sn,hn=cn,dn=ln,y(),t=An,gn=sn,vn=cn,mn=ln,An="undefined"!=typeof Cn.tokens?q():U(),yn=!1,t}function H(){yn=!0,y(),pn=sn,hn=cn,dn=ln,gn=sn,vn=cn,mn=ln,An="undefined"!=typeof Cn.tokens?q():U(),yn=!1}function z(){this.line=vn,this.column=gn-mn}function W(){this.start=new z,this.end=null}function Y(t){this.start={line:t.lineNumber,column:t.start-t.lineStart},this.end=null}function V(){Cn.range&&(this.range=[gn,0]),Cn.loc&&(this.loc=new W)}function G(t){Cn.range&&(this.range=[t.start,0]),Cn.loc&&(this.loc=new Y(t))}function K(t){var e,n;for(e=0;e>="===t||">>>="===t||"&="===t||"^="===t||"|="===t)}function lt(){return 59===un.charCodeAt(gn)||ut(";")?void M():void(fn||(pn=gn,hn=vn,dn=mn,An.type===Qe.EOF||ut("}")||et(An)))}function ft(t){var e,n=bn,r=En,i=_n;return bn=!0,En=!0,_n=null,e=t(),null!==_n&&et(_n),bn=n,En=r,_n=i,e}function pt(t){var e,n=bn,r=En,i=_n;return bn=!0,En=!0,_n=null,e=t(),bn=bn&&n,En=En&&r,_n=i||_n,e}function ht(t,e){var n,r,i=new V,o=[];for(rt("[");!ut("]");)if(ut(","))M(),o.push(null);else{if(ut("...")){r=new V,M(),t.push(An),n=Xt(e),o.push(r.finishRestElement(n));break}o.push(mt(t,e)),ut("]")||rt(",")}return rt("]"),i.finishArrayPattern(o)}function dt(t,e){var n,r,i,o=new V,u=ut("[");if(An.type===Qe.Identifier){if(r=An,n=Xt(),ut("="))return t.push(r),M(),i=Gt(),o.finishProperty("init",n,!1,new G(r).finishAssignmentPattern(n,i),!1,!0);if(!ut(":"))return t.push(r),o.finishProperty("init",n,!1,n,!1,!0)}else n=wt();return rt(":"),i=mt(t,e),o.finishProperty("init",n,u,i,!1,!1)}function gt(t,e){var n=new V,r=[];for(rt("{");!ut("}");)r.push(dt(t,e)),ut("}")||rt(",");return M(),n.finishObjectPattern(r)}function vt(t,e){return ut("[")?ht(t,e):ut("{")?gt(t,e):(at("let")&&("const"!==e&&"let"!==e||nt(An,rn.UnexpectedToken)),t.push(An),Xt(e))}function mt(t,e){var n,r,i,o=An;return n=vt(t,e),ut("=")&&(M(),r=wn.allowYield,wn.allowYield=!0,i=ft(Gt),wn.allowYield=r,n=new G(o).finishAssignmentPattern(n,i)),n}function yt(){var t,e=[],n=new V;for(rt("[");!ut("]");)ut(",")?(M(),e.push(null)):ut("...")?(t=new V,M(),t.finishSpreadElement(pt(Gt)),ut("]")||(En=bn=!1,rt(",")),e.push(t)):(e.push(pt(Gt)),ut("]")||rt(","));return M(),n.finishArrayExpression(e)}function Dt(t,e,n){var r,i;return En=bn=!1,r=an,i=ft(Fe),an&&e.firstRestricted&&nt(e.firstRestricted,e.message),an&&e.stricted&&nt(e.stricted,e.message),an=r,t.finishFunctionExpression(null,e.params,e.defaults,i,n)}function At(){var t,e,n=new V,r=wn.allowYield;return wn.allowYield=!1,t=Be(),wn.allowYield=r,wn.allowYield=!1,e=Dt(n,t,!1),wn.allowYield=r,e}function wt(){var t,e,n=new V;switch(t=M(),t.type){case Qe.StringLiteral:case Qe.NumericLiteral:return an&&t.octal&&nt(t,rn.StrictOctalLiteral),n.finishLiteral(t);case Qe.Identifier:case Qe.BooleanLiteral:case Qe.NullLiteral:case Qe.Keyword:return n.finishIdentifier(t.value);case Qe.Punctuator:if("["===t.value)return e=ft(Gt),rt("]"),e}et(t)}function Ct(){switch(An.type){case Qe.Identifier:case Qe.StringLiteral:case Qe.BooleanLiteral:case Qe.NullLiteral:case Qe.NumericLiteral:case Qe.Keyword:return!0;case Qe.Punctuator:return"["===An.value}return!1}function bt(t,e,n,r){var i,o,u,a,s=wn.allowYield;if(t.type===Qe.Identifier){if("get"===t.value&&Ct())return n=ut("["),e=wt(),u=new V,rt("("),rt(")"),wn.allowYield=!1,i=Dt(u,{params:[],defaults:[],stricted:null,firstRestricted:null,message:null},!1),wn.allowYield=s,r.finishProperty("get",e,n,i,!1,!1);if("set"===t.value&&Ct())return n=ut("["),e=wt(),u=new V,rt("("),o={params:[],defaultCount:0,defaults:[],firstRestricted:null,paramSet:{}},ut(")")?nt(An):(wn.allowYield=!1,ke(o),wn.allowYield=s,0===o.defaultCount&&(o.defaults=[])),rt(")"),wn.allowYield=!1,i=Dt(u,o,!1),wn.allowYield=s,r.finishProperty("set",e,n,i,!1,!1)}else if(t.type===Qe.Punctuator&&"*"===t.value&&Ct())return n=ut("["),e=wt(),u=new V,wn.allowYield=!0,a=Be(),wn.allowYield=s,wn.allowYield=!1,i=Dt(u,a,!0),wn.allowYield=s,r.finishProperty("init",e,n,i,!0,!1);return e&&ut("(")?(i=At(),r.finishProperty("init",e,n,i,!0,!1)):null}function Et(t){var e,n,r,i,o,u=An,a=new V;return e=ut("["),ut("*")?M():n=wt(),(r=bt(u,n,e,a))?r:(n||et(An),e||(i=n.type===en.Identifier&&"__proto__"===n.name||n.type===en.Literal&&"__proto__"===n.value,t.value&&i&&X(rn.DuplicateProtoProperty),t.value|=i),ut(":")?(M(),o=pt(Gt),a.finishProperty("init",n,e,o,!1,!1)):u.type===Qe.Identifier?ut("=")?(_n=An,M(),o=ft(Gt),a.finishProperty("init",n,e,new G(u).finishAssignmentPattern(n,o),!1,!0)):a.finishProperty("init",n,e,n,!1,!0):void et(An))}function _t(){var t=[],e={value:!1},n=new V;for(rt("{");!ut("}");)t.push(Et(e)),ut("}")||it();return rt("}"),n.finishObjectExpression(t)}function xt(t){var e;switch(t.type){case en.Identifier:case en.MemberExpression:case en.RestElement:case en.AssignmentPattern:break;case en.SpreadElement:t.type=en.RestElement,xt(t.argument);break;case en.ArrayExpression:for(t.type=en.ArrayPattern,e=0;e")||rt("=>"),{type:nn.ArrowParameterPlaceHolder,params:[],rawParams:[]};if(n=An,ut("..."))return t=ce(i),rt(")"),ut("=>")||rt("=>"),{type:nn.ArrowParameterPlaceHolder,params:[t]};if(bn=!0,t=pt(Gt),ut(",")){for(En=!1,e=[t];Dn>gn&&ut(",");){if(M(),ut("...")){for(bn||et(An),e.push(ce(i)),rt(")"),ut("=>")||rt("=>"),bn=!1,r=0;r")){if(t.type===en.Identifier&&"yield"===t.name)return{type:nn.ArrowParameterPlaceHolder,params:[t]};if(bn||et(An),t.type===en.SequenceExpression)for(r=0;rgn&&(ut("...")?(t=new V,M(),t.finishSpreadElement(ft(Gt))):t=ft(Gt),e.push(t),!ut(")"));)it();return rt(")"),e}function It(){var t,e=new V;return t=M(),L(t)||et(t),e.finishIdentifier(t.value)}function Tt(){return rt("."),It()}function jt(){var t;return rt("["),t=ft(Kt),rt("]"),t}function $t(){var t,e,n=new V;if(ot("new"),ut(".")){if(M(),An.type===Qe.Identifier&&"target"===An.value&&wn.inFunctionBody)return M(),n.finishMetaProperty("new","target");et(An)}return t=ft(Rt),e=ut("(")?Ot():[],En=bn=!1,n.finishNewExpression(t,e)}function Pt(){var t,e,n,r,i,o=wn.allowIn;for(i=An,wn.allowIn=!0,at("super")&&wn.inFunctionBody?(e=new V,M(),e=e.finishSuper(),ut("(")||ut(".")||ut("[")||et(An)):e=pt(at("new")?$t:Bt);;)if(ut("."))bn=!1,En=!0,r=Tt(),e=new G(i).finishMemberExpression(".",e,r);else if(ut("("))bn=!1,En=!1,n=Ot(),e=new G(i).finishCallExpression(e,n);else if(ut("["))bn=!1,En=!0,r=jt(),e=new G(i).finishMemberExpression("[",e,r);else{if(An.type!==Qe.Template||!An.head)break;t=St(),e=new G(i).finishTaggedTemplateExpression(e,t)}return wn.allowIn=o,e}function Rt(){var t,n,r,i;for(e(wn.allowIn,"callee of new expression always allow in keyword."),i=An,at("super")&&wn.inFunctionBody?(n=new V,M(),n=n.finishSuper(),ut("[")||ut(".")||et(An)):n=pt(at("new")?$t:Bt);;)if(ut("["))bn=!1,En=!0,r=jt(),n=new G(i).finishMemberExpression("[",n,r);else if(ut("."))bn=!1,En=!0,r=Tt(),n=new G(i).finishMemberExpression(".",n,r);else{if(An.type!==Qe.Template||!An.head)break;t=St(),n=new G(i).finishTaggedTemplateExpression(n,t)}return n}function Lt(){var t,e,n=An;return t=pt(Pt),fn||An.type!==Qe.Punctuator||(ut("++")||ut("--"))&&(an&&t.type===en.Identifier&&h(t.name)&&X(rn.StrictLHSPostfix),En||X(rn.InvalidLHSInAssignment),En=bn=!1,e=M(),t=new G(n).finishPostfixExpression(e.value,t)),t}function Nt(){var t,e,n;return An.type!==Qe.Punctuator&&An.type!==Qe.Keyword?e=Lt():ut("++")||ut("--")?(n=An,t=M(),e=pt(Nt),an&&e.type===en.Identifier&&h(e.name)&&X(rn.StrictLHSPrefix),En||X(rn.InvalidLHSInAssignment),e=new G(n).finishUnaryExpression(t.value,e),En=bn=!1):ut("+")||ut("-")||ut("~")||ut("!")?(n=An,t=M(),e=pt(Nt),e=new G(n).finishUnaryExpression(t.value,e),En=bn=!1):at("delete")||at("void")||at("typeof")?(n=An,t=M(),e=pt(Nt),e=new G(n).finishUnaryExpression(t.value,e),an&&"delete"===e.operator&&e.argument.type===en.Identifier&&X(rn.StrictDelete),En=bn=!1):e=Lt(),e}function Ut(t,e){var n=0;if(t.type!==Qe.Punctuator&&t.type!==Qe.Keyword)return 0;switch(t.value){case"||":n=1;break;case"&&":n=2;break;case"|":n=3;break;case"^":n=4;break;case"&":n=5;break;case"==":case"!=":case"===":case"!==":n=6;break;case"<":case">":case"<=":case">=":case"instanceof":n=7;break;case"in":n=e?7:0;break;case"<<":case">>":case">>>":n=8;break;case"+":case"-":n=9;break;case"*":case"/":case"%":n=11}return n}function qt(){var t,e,n,r,i,o,u,a,s,c;if(t=An,s=pt(Nt),r=An,i=Ut(r,wn.allowIn),0===i)return s;for(En=bn=!1,r.prec=i,M(),e=[t,An],u=ft(Nt),o=[s,r,u];(i=Ut(An,wn.allowIn))>0;){for(;o.length>2&&i<=o[o.length-2].prec;)u=o.pop(),a=o.pop().value,s=o.pop(),e.pop(),n=new G(e[e.length-1]).finishBinaryExpression(a,s,u),o.push(n);r=M(),r.prec=i,o.push(r),e.push(An),n=ft(Nt),o.push(n)}for(c=o.length-1,n=o[c],e.pop();c>1;)n=new G(e.pop()).finishBinaryExpression(o[c-1].value,o[c-2],n),c-=2;return n}function Mt(){var t,e,n,r,i;return i=An,t=pt(qt),ut("?")&&(M(),e=wn.allowIn,wn.allowIn=!0,n=ft(Gt),wn.allowIn=e,rt(":"),r=ft(Gt),t=new G(i).finishConditionalExpression(t,n,r),En=bn=!1),t}function Ht(){return ut("{")?Fe():ft(Gt)}function zt(t,n){var r;switch(n.type){case en.Identifier:Se(t,n,n.name);break;case en.RestElement:zt(t,n.argument);break;case en.AssignmentPattern:zt(t,n.left);break;case en.ArrayPattern:for(r=0;re;e+=1)switch(r=i[e],r.type){case en.AssignmentPattern:i[e]=r.left,r.right.type===en.YieldExpression&&(r.right.argument&&et(An),r.right.type=en.Identifier,
+r.right.name="yield",delete r.right.argument,delete r.right.delegate),o.push(r.right),++u,zt(a,r.left);break;default:zt(a,r),i[e]=r,o.push(null)}if(an||!wn.allowYield)for(e=0,n=i.length;n>e;e+=1)r=i[e],r.type===en.YieldExpression&&et(An);return a.message===rn.StrictParamDupe&&(s=an?a.stricted:a.firstRestricted,et(s,a.message)),0===u&&(o=[]),{params:i,defaults:o,stricted:a.stricted,firstRestricted:a.firstRestricted,message:a.message}}function Yt(t,e){var n,r,i;return fn&&nt(An),rt("=>"),n=an,r=wn.allowYield,wn.allowYield=!0,i=Ht(),an&&t.firstRestricted&&et(t.firstRestricted,t.message),an&&t.stricted&&nt(t.stricted,t.message),an=n,wn.allowYield=r,e.finishArrowFunctionExpression(t.params,t.defaults,i,i.type!==en.BlockStatement)}function Vt(){var t,e,n,r;return t=null,e=new V,n=!1,ot("yield"),fn||(r=wn.allowYield,wn.allowYield=!1,n=ut("*"),n?(M(),t=Gt()):ut(";")||ut("}")||ut(")")||An.type===Qe.EOF||(t=Gt()),wn.allowYield=r),e.finishYieldExpression(t,n)}function Gt(){var t,e,n,r,i;return i=An,t=An,!wn.allowYield&&at("yield")?Vt():(e=Mt(),e.type===nn.ArrowParameterPlaceHolder||ut("=>")?(En=bn=!1,r=Wt(e),r?(_n=null,Yt(r,new G(i))):e):(ct()&&(En||X(rn.InvalidLHSInAssignment),an&&e.type===en.Identifier&&(h(e.name)&&nt(t,rn.StrictLHSAssignment),p(e.name)&&nt(t,rn.StrictReservedWord)),ut("=")?xt(e):En=bn=!1,t=M(),n=ft(Gt),e=new G(i).finishAssignmentExpression(t.value,e,n),_n=null),e))}function Kt(){var t,e,n=An;if(t=ft(Gt),ut(",")){for(e=[t];Dn>gn&&ut(",");)M(),e.push(ft(Gt));t=new G(n).finishSequenceExpression(e)}return t}function Jt(){if(An.type===Qe.Keyword)switch(An.value){case"export":return"module"!==wn.sourceType&&nt(An,rn.IllegalExportDeclaration),qe();case"import":return"module"!==wn.sourceType&&nt(An,rn.IllegalImportDeclaration),Ye();case"const":return se({inFor:!1});case"function":return Oe(new V);case"class":return je()}return at("let")&&ae()?se({inFor:!1}):xe()}function Zt(){for(var t=[];Dn>gn&&!ut("}");)t.push(Jt());return t}function Qt(){var t,e=new V;return rt("{"),t=Zt(),rt("}"),e.finishBlockStatement(t)}function Xt(t){var e,n=new V;return e=M(),e.type===Qe.Keyword&&"yield"===e.value?(an&&nt(e,rn.StrictReservedWord),wn.allowYield||et(e)):e.type!==Qe.Identifier?an&&e.type===Qe.Keyword&&p(e.value)?nt(e,rn.StrictReservedWord):(an||"let"!==e.value||"var"!==t)&&et(e):"module"===wn.sourceType&&e.type===Qe.Identifier&&"await"===e.value&&nt(e),n.finishIdentifier(e.value)}function te(t){var e,n=null,r=new V,i=[];return e=vt(i,"var"),an&&h(e.name)&&X(rn.StrictVarName),ut("=")?(M(),n=ft(Gt)):e.type===en.Identifier||t.inFor||rt("="),r.finishVariableDeclarator(e,n)}function ee(t){var e,n;for(e={inFor:t.inFor},n=[te(e)];ut(",");)M(),n.push(te(e));return n}function ne(t){var e;return ot("var"),e=ee({inFor:!1}),lt(),t.finishVariableDeclaration(e)}function re(t,e){var n,r=null,i=new V,o=[];return n=vt(o,t),an&&n.type===en.Identifier&&h(n.name)&&X(rn.StrictVarName),"const"===t?at("in")||st("of")||(rt("="),r=ft(Gt)):(!e.inFor&&n.type!==en.Identifier||ut("="))&&(rt("="),r=ft(Gt)),i.finishVariableDeclarator(n,r)}function ie(t,e){for(var n=[re(t,e)];ut(",");)M(),n.push(re(t,e));return n}function oe(){return{index:sn,lineNumber:cn,lineStart:ln,hasLineTerminator:fn,lastIndex:pn,lastLineNumber:hn,lastLineStart:dn,startIndex:gn,startLineNumber:vn,startLineStart:mn,lookahead:An,tokenCount:Cn.tokens?Cn.tokens.length:0}}function ue(t){sn=t.index,cn=t.lineNumber,ln=t.lineStart,fn=t.hasLineTerminator,pn=t.lastIndex,hn=t.lastLineNumber,dn=t.lastLineStart,gn=t.startIndex,vn=t.startLineNumber,mn=t.startLineStart,An=t.lookahead,Cn.tokens&&Cn.tokens.splice(t.tokenCount,Cn.tokens.length)}function ae(){var t,e;return e=oe(),M(),t=An.type===Qe.Identifier||ut("[")||ut("{")||at("let")||at("yield"),ue(e),t}function se(t){var n,r,i=new V;return n=M().value,e("let"===n||"const"===n,"Lexical declaration must be either let or const"),r=ie(n,t),lt(),i.finishLexicalDeclaration(r,n)}function ce(t){var e,n=new V;return M(),ut("{")&&Q(rn.ObjectPatternAsRestParameter),t.push(An),e=Xt(),ut("=")&&Q(rn.DefaultRestParameter),ut(")")||Q(rn.ParameterAfterRestParameter),n.finishRestElement(e)}function le(t){return rt(";"),t.finishEmptyStatement()}function fe(t){var e=Kt();return lt(),t.finishExpressionStatement(e)}function pe(t){var e,n,r;return ot("if"),rt("("),e=Kt(),rt(")"),n=xe(),at("else")?(M(),r=xe()):r=null,t.finishIfStatement(e,n,r)}function he(t){var e,n,r;return ot("do"),r=wn.inIteration,wn.inIteration=!0,e=xe(),wn.inIteration=r,ot("while"),rt("("),n=Kt(),rt(")"),ut(";")&&M(),t.finishDoWhileStatement(e,n)}function de(t){var e,n,r;return ot("while"),rt("("),e=Kt(),rt(")"),r=wn.inIteration,wn.inIteration=!0,n=xe(),wn.inIteration=r,t.finishWhileStatement(e,n)}function ge(t){var e,n,r,i,o,u,a,s,c,l,f,p,h=wn.allowIn;if(e=o=u=null,n=!0,ot("for"),rt("("),ut(";"))M();else if(at("var"))e=new V,M(),wn.allowIn=!1,l=ee({inFor:!0}),wn.allowIn=h,1===l.length&&at("in")?(e=e.finishVariableDeclaration(l),M(),a=e,s=Kt(),e=null):1===l.length&&null===l[0].init&&st("of")?(e=e.finishVariableDeclaration(l),M(),a=e,s=Gt(),e=null,n=!1):(e=e.finishVariableDeclaration(l),rt(";"));else if(at("const")||at("let"))e=new V,c=M().value,an||"in"!==An.value?(wn.allowIn=!1,l=ie(c,{inFor:!0}),wn.allowIn=h,1===l.length&&null===l[0].init&&at("in")?(e=e.finishLexicalDeclaration(l,c),M(),a=e,s=Kt(),e=null):1===l.length&&null===l[0].init&&st("of")?(e=e.finishLexicalDeclaration(l,c),M(),a=e,s=Gt(),e=null,n=!1):(lt(),e=e.finishLexicalDeclaration(l,c))):(e=e.finishIdentifier(c),M(),a=e,s=Kt(),e=null);else if(i=An,wn.allowIn=!1,e=pt(Gt),wn.allowIn=h,at("in"))En||X(rn.InvalidLHSInForIn),M(),xt(e),a=e,s=Kt(),e=null;else if(st("of"))En||X(rn.InvalidLHSInForLoop),M(),xt(e),a=e,s=Gt(),e=null,n=!1;else{if(ut(",")){for(r=[e];ut(",");)M(),r.push(ft(Gt));e=new G(i).finishSequenceExpression(r)}rt(";")}return"undefined"==typeof a&&(ut(";")||(o=Kt()),rt(";"),ut(")")||(u=Kt())),rt(")"),p=wn.inIteration,wn.inIteration=!0,f=ft(xe),wn.inIteration=p,"undefined"==typeof a?t.finishForStatement(e,o,u,f):n?t.finishForInStatement(a,s,f):t.finishForOfStatement(a,s,f)}function ve(t){var e,n=null;return ot("continue"),59===un.charCodeAt(gn)?(M(),wn.inIteration||Q(rn.IllegalContinue),t.finishContinueStatement(null)):fn?(wn.inIteration||Q(rn.IllegalContinue),t.finishContinueStatement(null)):(An.type===Qe.Identifier&&(n=Xt(),e="$"+n.name,Object.prototype.hasOwnProperty.call(wn.labelSet,e)||Q(rn.UnknownLabel,n.name)),lt(),null!==n||wn.inIteration||Q(rn.IllegalContinue),t.finishContinueStatement(n))}function me(t){var e,n=null;return ot("break"),59===un.charCodeAt(pn)?(M(),wn.inIteration||wn.inSwitch||Q(rn.IllegalBreak),t.finishBreakStatement(null)):(fn?wn.inIteration||wn.inSwitch||Q(rn.IllegalBreak):An.type===Qe.Identifier&&(n=Xt(),e="$"+n.name,Object.prototype.hasOwnProperty.call(wn.labelSet,e)||Q(rn.UnknownLabel,n.name)),lt(),null!==n||wn.inIteration||wn.inSwitch||Q(rn.IllegalBreak),t.finishBreakStatement(n))}function ye(t){var e=null;return ot("return"),wn.inFunctionBody||X(rn.IllegalReturn),32===un.charCodeAt(pn)&&c(un.charCodeAt(pn+1))?(e=Kt(),lt(),t.finishReturnStatement(e)):fn?t.finishReturnStatement(null):(ut(";")||ut("}")||An.type===Qe.EOF||(e=Kt()),lt(),t.finishReturnStatement(e))}function De(t){var e,n;return an&&X(rn.StrictModeWith),ot("with"),rt("("),e=Kt(),rt(")"),n=xe(),t.finishWithStatement(e,n)}function Ae(){var t,e,n=[],r=new V;for(at("default")?(M(),t=null):(ot("case"),t=Kt()),rt(":");Dn>gn&&!(ut("}")||at("default")||at("case"));)e=Jt(),n.push(e);return r.finishSwitchCase(t,n)}function we(t){var e,n,r,i,o;if(ot("switch"),rt("("),e=Kt(),rt(")"),rt("{"),n=[],ut("}"))return M(),t.finishSwitchStatement(e,n);for(i=wn.inSwitch,wn.inSwitch=!0,o=!1;Dn>gn&&!ut("}");)r=Ae(),null===r.test&&(o&&Q(rn.MultipleDefaultsInSwitch),o=!0),n.push(r);return wn.inSwitch=i,rt("}"),t.finishSwitchStatement(e,n)}function Ce(t){var e;return ot("throw"),fn&&Q(rn.NewlineAfterThrow),e=Kt(),lt(),t.finishThrowStatement(e)}function be(){var t,e,n,r,i=[],o={},u=new V;for(ot("catch"),rt("("),ut(")")&&et(An),t=vt(i),n=0;ngn&&An.type===Qe.StringLiteral&&(e=An,t=Jt(),s.push(t),t.expression.type===en.Literal);)n=un.slice(e.start+1,e.end-1),"use strict"===n?(an=!0,r&&nt(r,rn.StrictOctalLiteral)):!r&&e.octal&&(r=e);for(i=wn.labelSet,o=wn.inIteration,u=wn.inSwitch,a=wn.inFunctionBody,wn.labelSet={},wn.inIteration=!1,wn.inSwitch=!1,wn.inFunctionBody=!0;Dn>gn&&!ut("}");)s.push(Jt());return rt("}"),wn.labelSet=i,wn.inIteration=o,wn.inSwitch=u,wn.inFunctionBody=a,c.finishBlockStatement(s)}function Se(t,e,n){var r="$"+n;an?(h(n)&&(t.stricted=e,t.message=rn.StrictParamName),Object.prototype.hasOwnProperty.call(t.paramSet,r)&&(t.stricted=e,t.message=rn.StrictParamDupe)):t.firstRestricted||(h(n)?(t.firstRestricted=e,t.message=rn.StrictParamName):p(n)?(t.firstRestricted=e,t.message=rn.StrictReservedWord):Object.prototype.hasOwnProperty.call(t.paramSet,r)&&(t.stricted=e,t.message=rn.StrictParamDupe)),t.paramSet[r]=!0}function ke(t){var e,n,r,i,o=[];if(e=An,"..."===e.value)return n=ce(o),Se(t,n.argument,n.argument.name),t.params.push(n),t.defaults.push(null),!1;for(n=mt(o),r=0;rgn&&ke(e);)rt(",");return rt(")"),0===e.defaultCount&&(e.defaults=[]),{params:e.params,defaults:e.defaults,stricted:e.stricted,firstRestricted:e.firstRestricted,message:e.message}}function Oe(t,e){var n,r,i,o,u,a,s,c,l,f=null,d=[],g=[];return l=wn.allowYield,ot("function"),c=ut("*"),c&&M(),e&&ut("(")||(r=An,f=Xt(),an?h(r.value)&&nt(r,rn.StrictFunctionName):h(r.value)?(u=r,a=rn.StrictFunctionName):p(r.value)&&(u=r,a=rn.StrictReservedWord)),wn.allowYield=!c,o=Be(u),d=o.params,g=o.defaults,i=o.stricted,u=o.firstRestricted,o.message&&(a=o.message),s=an,n=Fe(),an&&u&&et(u,a),an&&i&&nt(i,a),an=s,wn.allowYield=l,t.finishFunctionDeclaration(f,d,g,n,c)}function Ie(){var t,e,n,r,i,o,u,a,s,c=null,l=[],f=[],d=new V;return s=wn.allowYield,ot("function"),a=ut("*"),a&&M(),wn.allowYield=!a,ut("(")||(t=An,c=an||a||!at("yield")?Xt():It(),an?h(t.value)&&nt(t,rn.StrictFunctionName):h(t.value)?(n=t,r=rn.StrictFunctionName):p(t.value)&&(n=t,r=rn.StrictReservedWord)),i=Be(n),l=i.params,f=i.defaults,e=i.stricted,n=i.firstRestricted,i.message&&(r=i.message),u=an,o=Fe(),an&&n&&et(n,r),an&&e&&nt(e,r),an=u,wn.allowYield=s,d.finishFunctionExpression(c,l,f,o,a)}function Te(){var t,e,n,r,i,o,u,a=!1;for(t=new V,rt("{"),r=[];!ut("}");)ut(";")?M():(i=new V,e=An,n=!1,o=ut("["),ut("*")?M():(u=wt(),"static"===u.name&&(Ct()||ut("*"))&&(e=An,n=!0,o=ut("["),ut("*")?M():u=wt())),i=bt(e,u,o,i),i?(i["static"]=n,"init"===i.kind&&(i.kind="method"),n?i.computed||"prototype"!==(i.key.name||i.key.value.toString())||et(e,rn.StaticPrototype):i.computed||"constructor"!==(i.key.name||i.key.value.toString())||("method"===i.kind&&i.method&&!i.value.generator||et(e,rn.ConstructorSpecialMethod),a?et(e,rn.DuplicateConstructor):a=!0,i.kind="constructor"),i.type=en.MethodDefinition,delete i.method,delete i.shorthand,r.push(i)):et(An));return M(),t.finishClassBody(r)}function je(t){var e,n=null,r=null,i=new V,o=an;return an=!0,ot("class"),t&&An.type!==Qe.Identifier||(n=Xt()),at("extends")&&(M(),r=ft(Pt)),e=Te(),an=o,i.finishClassDeclaration(n,r,e)}function $e(){var t,e=null,n=null,r=new V,i=an;return an=!0,ot("class"),An.type===Qe.Identifier&&(e=Xt()),at("extends")&&(M(),n=ft(Pt)),t=Te(),an=i,r.finishClassExpression(e,n,t)}function Pe(){var t=new V;return An.type!==Qe.StringLiteral&&Q(rn.InvalidModuleSpecifier),t.finishLiteral(M())}function Re(){var t,e,n,r=new V;return at("default")?(n=new V,M(),e=n.finishIdentifier("default")):e=Xt(),st("as")&&(M(),t=It()),r.finishExportSpecifier(e,t)}function Le(t){var e,n=null,r=null,i=[];if(An.type===Qe.Keyword)switch(An.value){case"let":case"const":return n=se({inFor:!1}),t.finishExportNamedDeclaration(n,i,null);case"var":case"class":case"function":return n=Jt(),t.finishExportNamedDeclaration(n,i,null)}for(rt("{");!ut("}")&&(e=e||at("default"),i.push(Re()),ut("}")||(rt(","),!ut("}"))););return rt("}"),st("from")?(M(),r=Pe(),lt()):e?Q(An.value?rn.UnexpectedToken:rn.MissingFromClause,An.value):lt(),t.finishExportNamedDeclaration(n,i,r)}function Ne(t){var e=null,n=null;return ot("default"),at("function")?(e=Oe(new V,!0),t.finishExportDefaultDeclaration(e)):at("class")?(e=je(!0),t.finishExportDefaultDeclaration(e)):(st("from")&&Q(rn.UnexpectedToken,An.value),n=ut("{")?_t():ut("[")?yt():Gt(),lt(),t.finishExportDefaultDeclaration(n))}function Ue(t){var e;return rt("*"),st("from")||Q(An.value?rn.UnexpectedToken:rn.MissingFromClause,An.value),M(),e=Pe(),lt(),t.finishExportAllDeclaration(e)}function qe(){var t=new V;return wn.inFunctionBody&&Q(rn.IllegalExportDeclaration),ot("export"),at("default")?Ne(t):ut("*")?Ue(t):Le(t)}function Me(){var t,e,n=new V;return e=It(),st("as")&&(M(),t=Xt()),n.finishImportSpecifier(t,e)}function He(){var t=[];for(rt("{");!ut("}")&&(t.push(Me()),ut("}")||(rt(","),!ut("}"))););return rt("}"),t}function ze(){var t,e=new V;return t=It(),e.finishImportDefaultSpecifier(t)}function We(){var t,e=new V;return rt("*"),st("as")||Q(rn.NoAsAfterImportNamespace),M(),t=It(),e.finishImportNamespaceSpecifier(t)}function Ye(){var t,e=[],n=new V;return wn.inFunctionBody&&Q(rn.IllegalImportDeclaration),ot("import"),An.type===Qe.StringLiteral?t=Pe():(ut("{")?e=e.concat(He()):ut("*")?e.push(We()):L(An)&&!at("default")?(e.push(ze()),ut(",")&&(M(),ut("*")?e.push(We()):ut("{")?e=e.concat(He()):et(An))):et(M()),st("from")||Q(An.value?rn.UnexpectedToken:rn.MissingFromClause,An.value),M(),t=Pe()),lt(),n.finishImportDeclaration(e,t)}function Ve(){for(var t,e,n,r,i=[];Dn>gn&&(e=An,e.type===Qe.StringLiteral)&&(t=Jt(),i.push(t),t.expression.type===en.Literal);)n=un.slice(e.start+1,e.end-1),"use strict"===n?(an=!0,r&&nt(r,rn.StrictOctalLiteral)):!r&&e.octal&&(r=e);for(;Dn>gn&&(t=Jt(),"undefined"!=typeof t);)i.push(t);return i}function Ge(){var t,e;return H(),e=new V,t=Ve(),e.finishProgram(t,wn.sourceType)}function Ke(){var t,e,n,r=[];for(t=0;t0?1:0,ln=0,gn=sn,vn=cn,mn=ln,Dn=un.length,An=null,wn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[]},Cn={},e=e||{},e.tokens=!0,Cn.tokens=[],Cn.tokenValues=[],Cn.tokenize=!0,Cn.delegate=n,Cn.openParenToken=-1,Cn.openCurlyToken=-1,Cn.range="boolean"==typeof e.range&&e.range,Cn.loc="boolean"==typeof e.loc&&e.loc,"boolean"==typeof e.comment&&e.comment&&(Cn.comments=[]),"boolean"==typeof e.tolerant&&e.tolerant&&(Cn.errors=[]);try{if(H(),An.type===Qe.EOF)return Cn.tokens;for(M();An.type!==Qe.EOF;)try{M()}catch(o){if(Cn.errors){K(o);break}throw o}i=Cn.tokens,"undefined"!=typeof Cn.errors&&(i.errors=Cn.errors)}catch(u){throw u}finally{Cn={}}return i}function Ze(t,e){var n,r;r=String,"string"==typeof t||t instanceof String||(t=r(t)),un=t,sn=0,cn=un.length>0?1:0,ln=0,gn=sn,vn=cn,mn=ln,Dn=un.length,An=null,wn={allowIn:!0,allowYield:!0,labelSet:{},inFunctionBody:!1,inIteration:!1,inSwitch:!1,lastCommentStart:-1,curlyStack:[],sourceType:"script"},an=!1,Cn={},"undefined"!=typeof e&&(Cn.range="boolean"==typeof e.range&&e.range,Cn.loc="boolean"==typeof e.loc&&e.loc,Cn.attachComment="boolean"==typeof e.attachComment&&e.attachComment,Cn.loc&&null!==e.source&&void 0!==e.source&&(Cn.source=r(e.source)),"boolean"==typeof e.tokens&&e.tokens&&(Cn.tokens=[]),"boolean"==typeof e.comment&&e.comment&&(Cn.comments=[]),"boolean"==typeof e.tolerant&&e.tolerant&&(Cn.errors=[]),Cn.attachComment&&(Cn.range=!0,Cn.comments=[],Cn.bottomRightStack=[],Cn.trailingComments=[],Cn.leadingComments=[]),"module"===e.sourceType&&(wn.sourceType=e.sourceType,an=!0));try{n=Ge(),"undefined"!=typeof Cn.comments&&(n.comments=Cn.comments),"undefined"!=typeof Cn.tokens&&(Ke(),n.tokens=Cn.tokens),"undefined"!=typeof Cn.errors&&(n.errors=Cn.errors)}catch(i){throw i}finally{Cn={}}return n}var Qe,Xe,tn,en,nn,rn,on,un,an,sn,cn,ln,fn,pn,hn,dn,gn,vn,mn,yn,Dn,An,wn,Cn,bn,En,_n;Qe={BooleanLiteral:1,EOF:2,Identifier:3,Keyword:4,NullLiteral:5,NumericLiteral:6,Punctuator:7,StringLiteral:8,RegularExpression:9,Template:10},Xe={},Xe[Qe.BooleanLiteral]="Boolean",Xe[Qe.EOF]="",Xe[Qe.Identifier]="Identifier",Xe[Qe.Keyword]="Keyword",Xe[Qe.NullLiteral]="Null",Xe[Qe.NumericLiteral]="Numeric",Xe[Qe.Punctuator]="Punctuator",Xe[Qe.StringLiteral]="String",Xe[Qe.RegularExpression]="RegularExpression",Xe[Qe.Template]="Template",tn=["(","{","[","in","typeof","instanceof","new","return","case","delete","throw","void","=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","&=","|=","^=",",","+","-","*","/","%","++","--","<<",">>",">>>","&","|","^","!","~","&&","||","?",":","===","==",">=","<=","<",">","!=","!=="],en={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DoWhileStatement:"DoWhileStatement",DebuggerStatement:"DebuggerStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForOfStatement:"ForOfStatement",ForInStatement:"ForInStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",Program:"Program",Property:"Property",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchCase:"SwitchCase",SwitchStatement:"SwitchStatement",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},nn={ArrowParameterPlaceHolder:"ArrowParameterPlaceHolder"},rn={UnexpectedToken:"Unexpected token %0",UnexpectedNumber:"Unexpected number",UnexpectedString:"Unexpected string",UnexpectedIdentifier:"Unexpected identifier",UnexpectedReserved:"Unexpected reserved word",UnexpectedTemplate:"Unexpected quasi %0",UnexpectedEOS:"Unexpected end of input",NewlineAfterThrow:"Illegal newline after throw",InvalidRegExp:"Invalid regular expression",UnterminatedRegExp:"Invalid regular expression: missing /",InvalidLHSInAssignment:"Invalid left-hand side in assignment",InvalidLHSInForIn:"Invalid left-hand side in for-in",InvalidLHSInForLoop:"Invalid left-hand side in for-loop",MultipleDefaultsInSwitch:"More than one default clause in switch statement",NoCatchOrFinally:"Missing catch or finally after try",UnknownLabel:"Undefined label '%0'",Redeclaration:"%0 '%1' has already been declared",IllegalContinue:"Illegal continue statement",IllegalBreak:"Illegal break statement",IllegalReturn:"Illegal return statement",StrictModeWith:"Strict mode code may not include a with statement",StrictCatchVariable:"Catch variable may not be eval or arguments in strict mode",StrictVarName:"Variable name may not be eval or arguments in strict mode",StrictParamName:"Parameter name eval or arguments is not allowed in strict mode",StrictParamDupe:"Strict mode function may not have duplicate parameter names",StrictFunctionName:"Function name may not be eval or arguments in strict mode",StrictOctalLiteral:"Octal literals are not allowed in strict mode.",StrictDelete:"Delete of an unqualified identifier in strict mode.",StrictLHSAssignment:"Assignment to eval or arguments is not allowed in strict mode",StrictLHSPostfix:"Postfix increment/decrement may not have eval or arguments operand in strict mode",StrictLHSPrefix:"Prefix increment/decrement may not have eval or arguments operand in strict mode",StrictReservedWord:"Use of future reserved word in strict mode",TemplateOctalLiteral:"Octal literals are not allowed in template strings.",ParameterAfterRestParameter:"Rest parameter must be last formal parameter",DefaultRestParameter:"Unexpected token =",ObjectPatternAsRestParameter:"Unexpected token {",DuplicateProtoProperty:"Duplicate __proto__ fields are not allowed in object literals",ConstructorSpecialMethod:"Class constructor may not be an accessor",DuplicateConstructor:"A class may only have one constructor",StaticPrototype:"Classes may not have static property named prototype",MissingFromClause:"Unexpected token",NoAsAfterImportNamespace:"Unexpected token",InvalidModuleSpecifier:"Unexpected token",IllegalImportDeclaration:"Unexpected token",IllegalExportDeclaration:"Unexpected token",DuplicateBinding:"Duplicate binding %0"},on={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B2\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58\u0C59\u0C60\u0C61\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D60\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19C1-\u19C7\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDE00-\uDE11\uDE13-\uDE2B\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF5D-\uDF61]|\uD805[\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDE00-\uDE2F\uDE44\uDE80-\uDEAA]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B2\u08E4-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58\u0C59\u0C60-\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D57\u0D60-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1369-\u1371\u1380-\u138F\u13A0-\u13F4\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFC-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FCC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA69D\uA69F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA78E\uA790-\uA7AD\uA7B0\uA7B1\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C4\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB5F\uAB64\uAB65\uABC0-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2D\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF30-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDD0-\uDDDA\uDE00-\uDE11\uDE13-\uDE37\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF01-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD808[\uDC00-\uDF98]|\uD809[\uDC00-\uDC6E]|[\uD80C\uD840-\uD868\uD86A-\uD86C][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F]|\uD82C[\uDC00\uDC01]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/
+},G.prototype=V.prototype={processComment:function(){var t,e,n,r,i,o,u=Cn.bottomRightStack,a=u[u.length-1];if(!(this.type===en.Program&&this.body.length>0)){if(this.type===en.BlockStatement&&0===this.body.length){for(e=[],i=Cn.leadingComments.length-1;i>=0;--i)o=Cn.leadingComments[i],this.range[1]>=o.range[1]&&(e.unshift(o),Cn.leadingComments.splice(i,1),Cn.trailingComments.splice(i,1));if(e.length)return void(this.innerComments=e)}if(Cn.trailingComments.length>0){for(r=[],i=Cn.trailingComments.length-1;i>=0;--i)o=Cn.trailingComments[i],o.range[0]>=this.range[1]&&(r.unshift(o),Cn.trailingComments.splice(i,1));Cn.trailingComments=[]}else a&&a.trailingComments&&a.trailingComments[0].range[0]>=this.range[1]&&(r=a.trailingComments,delete a.trailingComments);for(;a&&a.range[0]>=this.range[0];)t=u.pop(),a=u[u.length-1];if(t){if(t.leadingComments){for(n=[],i=t.leadingComments.length-1;i>=0;--i)o=t.leadingComments[i],o.range[1]<=this.range[0]&&(n.unshift(o),t.leadingComments.splice(i,1));t.leadingComments.length||(t.leadingComments=void 0)}}else if(Cn.leadingComments.length>0)for(n=[],i=Cn.leadingComments.length-1;i>=0;--i)o=Cn.leadingComments[i],o.range[1]<=this.range[0]&&(n.unshift(o),Cn.leadingComments.splice(i,1));n&&n.length>0&&(this.leadingComments=n),r&&r.length>0&&(this.trailingComments=r),u.push(this)}},finish:function(){Cn.range&&(this.range[1]=pn),Cn.loc&&(this.loc.end={line:hn,column:pn-dn},Cn.source&&(this.loc.source=Cn.source)),Cn.attachComment&&this.processComment()},finishArrayExpression:function(t){return this.type=en.ArrayExpression,this.elements=t,this.finish(),this},finishArrayPattern:function(t){return this.type=en.ArrayPattern,this.elements=t,this.finish(),this},finishArrowFunctionExpression:function(t,e,n,r){return this.type=en.ArrowFunctionExpression,this.id=null,this.params=t,this.defaults=e,this.body=n,this.generator=!1,this.expression=r,this.finish(),this},finishAssignmentExpression:function(t,e,n){return this.type=en.AssignmentExpression,this.operator=t,this.left=e,this.right=n,this.finish(),this},finishAssignmentPattern:function(t,e){return this.type=en.AssignmentPattern,this.left=t,this.right=e,this.finish(),this},finishBinaryExpression:function(t,e,n){return this.type="||"===t||"&&"===t?en.LogicalExpression:en.BinaryExpression,this.operator=t,this.left=e,this.right=n,this.finish(),this},finishBlockStatement:function(t){return this.type=en.BlockStatement,this.body=t,this.finish(),this},finishBreakStatement:function(t){return this.type=en.BreakStatement,this.label=t,this.finish(),this},finishCallExpression:function(t,e){return this.type=en.CallExpression,this.callee=t,this.arguments=e,this.finish(),this},finishCatchClause:function(t,e){return this.type=en.CatchClause,this.param=t,this.body=e,this.finish(),this},finishClassBody:function(t){return this.type=en.ClassBody,this.body=t,this.finish(),this},finishClassDeclaration:function(t,e,n){return this.type=en.ClassDeclaration,this.id=t,this.superClass=e,this.body=n,this.finish(),this},finishClassExpression:function(t,e,n){return this.type=en.ClassExpression,this.id=t,this.superClass=e,this.body=n,this.finish(),this},finishConditionalExpression:function(t,e,n){return this.type=en.ConditionalExpression,this.test=t,this.consequent=e,this.alternate=n,this.finish(),this},finishContinueStatement:function(t){return this.type=en.ContinueStatement,this.label=t,this.finish(),this},finishDebuggerStatement:function(){return this.type=en.DebuggerStatement,this.finish(),this},finishDoWhileStatement:function(t,e){return this.type=en.DoWhileStatement,this.body=t,this.test=e,this.finish(),this},finishEmptyStatement:function(){return this.type=en.EmptyStatement,this.finish(),this},finishExpressionStatement:function(t){return this.type=en.ExpressionStatement,this.expression=t,this.finish(),this},finishForStatement:function(t,e,n,r){return this.type=en.ForStatement,this.init=t,this.test=e,this.update=n,this.body=r,this.finish(),this},finishForOfStatement:function(t,e,n){return this.type=en.ForOfStatement,this.left=t,this.right=e,this.body=n,this.finish(),this},finishForInStatement:function(t,e,n){return this.type=en.ForInStatement,this.left=t,this.right=e,this.body=n,this.each=!1,this.finish(),this},finishFunctionDeclaration:function(t,e,n,r,i){return this.type=en.FunctionDeclaration,this.id=t,this.params=e,this.defaults=n,this.body=r,this.generator=i,this.expression=!1,this.finish(),this},finishFunctionExpression:function(t,e,n,r,i){return this.type=en.FunctionExpression,this.id=t,this.params=e,this.defaults=n,this.body=r,this.generator=i,this.expression=!1,this.finish(),this},finishIdentifier:function(t){return this.type=en.Identifier,this.name=t,this.finish(),this},finishIfStatement:function(t,e,n){return this.type=en.IfStatement,this.test=t,this.consequent=e,this.alternate=n,this.finish(),this},finishLabeledStatement:function(t,e){return this.type=en.LabeledStatement,this.label=t,this.body=e,this.finish(),this},finishLiteral:function(t){return this.type=en.Literal,this.value=t.value,this.raw=un.slice(t.start,t.end),t.regex&&(this.regex=t.regex),this.finish(),this},finishMemberExpression:function(t,e,n){return this.type=en.MemberExpression,this.computed="["===t,this.object=e,this.property=n,this.finish(),this},finishMetaProperty:function(t,e){return this.type=en.MetaProperty,this.meta=t,this.property=e,this.finish(),this},finishNewExpression:function(t,e){return this.type=en.NewExpression,this.callee=t,this.arguments=e,this.finish(),this},finishObjectExpression:function(t){return this.type=en.ObjectExpression,this.properties=t,this.finish(),this},finishObjectPattern:function(t){return this.type=en.ObjectPattern,this.properties=t,this.finish(),this},finishPostfixExpression:function(t,e){return this.type=en.UpdateExpression,this.operator=t,this.argument=e,this.prefix=!1,this.finish(),this},finishProgram:function(t,e){return this.type=en.Program,this.body=t,this.sourceType=e,this.finish(),this},finishProperty:function(t,e,n,r,i,o){return this.type=en.Property,this.key=e,this.computed=n,this.value=r,this.kind=t,this.method=i,this.shorthand=o,this.finish(),this},finishRestElement:function(t){return this.type=en.RestElement,this.argument=t,this.finish(),this},finishReturnStatement:function(t){return this.type=en.ReturnStatement,this.argument=t,this.finish(),this},finishSequenceExpression:function(t){return this.type=en.SequenceExpression,this.expressions=t,this.finish(),this},finishSpreadElement:function(t){return this.type=en.SpreadElement,this.argument=t,this.finish(),this},finishSwitchCase:function(t,e){return this.type=en.SwitchCase,this.test=t,this.consequent=e,this.finish(),this},finishSuper:function(){return this.type=en.Super,this.finish(),this},finishSwitchStatement:function(t,e){return this.type=en.SwitchStatement,this.discriminant=t,this.cases=e,this.finish(),this},finishTaggedTemplateExpression:function(t,e){return this.type=en.TaggedTemplateExpression,this.tag=t,this.quasi=e,this.finish(),this},finishTemplateElement:function(t,e){return this.type=en.TemplateElement,this.value=t,this.tail=e,this.finish(),this},finishTemplateLiteral:function(t,e){return this.type=en.TemplateLiteral,this.quasis=t,this.expressions=e,this.finish(),this},finishThisExpression:function(){return this.type=en.ThisExpression,this.finish(),this},finishThrowStatement:function(t){return this.type=en.ThrowStatement,this.argument=t,this.finish(),this},finishTryStatement:function(t,e,n){return this.type=en.TryStatement,this.block=t,this.guardedHandlers=[],this.handlers=e?[e]:[],this.handler=e,this.finalizer=n,this.finish(),this},finishUnaryExpression:function(t,e){return this.type="++"===t||"--"===t?en.UpdateExpression:en.UnaryExpression,this.operator=t,this.argument=e,this.prefix=!0,this.finish(),this},finishVariableDeclaration:function(t){return this.type=en.VariableDeclaration,this.declarations=t,this.kind="var",this.finish(),this},finishLexicalDeclaration:function(t,e){return this.type=en.VariableDeclaration,this.declarations=t,this.kind=e,this.finish(),this},finishVariableDeclarator:function(t,e){return this.type=en.VariableDeclarator,this.id=t,this.init=e,this.finish(),this},finishWhileStatement:function(t,e){return this.type=en.WhileStatement,this.test=t,this.body=e,this.finish(),this},finishWithStatement:function(t,e){return this.type=en.WithStatement,this.object=t,this.body=e,this.finish(),this},finishExportSpecifier:function(t,e){return this.type=en.ExportSpecifier,this.exported=e||t,this.local=t,this.finish(),this},finishImportDefaultSpecifier:function(t){return this.type=en.ImportDefaultSpecifier,this.local=t,this.finish(),this},finishImportNamespaceSpecifier:function(t){return this.type=en.ImportNamespaceSpecifier,this.local=t,this.finish(),this},finishExportNamedDeclaration:function(t,e,n){return this.type=en.ExportNamedDeclaration,this.declaration=t,this.specifiers=e,this.source=n,this.finish(),this},finishExportDefaultDeclaration:function(t){return this.type=en.ExportDefaultDeclaration,this.declaration=t,this.finish(),this},finishExportAllDeclaration:function(t){return this.type=en.ExportAllDeclaration,this.source=t,this.finish(),this},finishImportSpecifier:function(t,e){return this.type=en.ImportSpecifier,this.local=t||e,this.imported=e,this.finish(),this},finishImportDeclaration:function(t,e){return this.type=en.ImportDeclaration,this.specifiers=t,this.source=e,this.finish(),this},finishYieldExpression:function(t,e){return this.type=en.YieldExpression,this.argument=t,this.delegate=e,this.finish(),this}},t.version="2.7.2",t.tokenize=Je,t.parse=Ze,t.Syntax=function(){var t,e={};"function"==typeof Object.create&&(e=Object.create(null));for(t in en)en.hasOwnProperty(t)&&(e[t]=en[t]);return"function"==typeof Object.freeze&&Object.freeze(e),e}()})},function(t,e,n){var r,i;/*!
* JavaScript Cookie v2.1.0
* https://github.com/js-cookie/js-cookie
*
* Copyright 2006, 2015 Klaus Hartl & Fagner Brack
* Released under the MIT license
*/
-!function(o){r=o,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i))}(function(){function t(){for(var t=0,e={};t1){if(o=t({path:"/"},r.defaults,o),"number"==typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}try{u=JSON.stringify(i),/^[\{\[]/.test(u)&&(i=u)}catch(s){}return i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",i,o.expires&&"; expires="+o.expires.toUTCString(),o.path&&"; path="+o.path,o.domain&&"; domain="+o.domain,o.secure?"; secure":""].join("")}e||(u={});for(var c=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,f=0;fi;i+=1)u=r[i],a=String(e[u]),"!!"===u.slice(0,2)&&(u="tag:yaml.org,2002:"+u.slice(2)),s=t.compiledTypeMap[u],s&&k.call(s.styleAliases,a)&&(a=s.styleAliases[a]),n[u]=a;return n}function i(t){var e,n,r;if(e=t.toString(16).toUpperCase(),255>=t)n="x",r=2;else if(65535>=t)n="u",r=4;else{if(!(4294967295>=t))throw new x("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+_.repeat("0",r-e.length)+e}function o(t){this.schema=t.schema||F,this.indent=Math.max(1,t.indent||2),this.skipInvalid=t.skipInvalid||!1,this.flowLevel=_.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=r(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u(t,e){for(var n,r=_.repeat(" ",e),i=0,o=-1,u="",a=t.length;a>i;)o=t.indexOf("\n",i),-1===o?(n=t.slice(i),i=a):(n=t.slice(i,o+1),i=o+1),n.length&&"\n"!==n&&(u+=r),u+=n;return u}function a(t,e){return"\n"+_.repeat(" ",t.indent*e)}function s(t,e){var n,r,i;for(n=0,r=t.implicitTypes.length;r>n;n+=1)if(i=t.implicitTypes[n],i.resolve(e))return!0;return!1}function c(t){this.source=t,this.result="",this.checkpoint=0}function l(t,e,n,r){var i,o,a,l,p,g,v,m,y,D,A,C,w,b,E,_,x,F,S,B,k;if(0===e.length)return void(t.dump="''");if(!t.noCompatMode&&-1!==et.indexOf(e))return void(t.dump="'"+e+"'");for(i=!0,o=e.length?e.charCodeAt(0):0,a=T===o||T===e.charCodeAt(e.length-1),H!==o&&Y!==o&&V!==o&&J!==o||(i=!1),a||t.flowLevel>-1&&t.flowLevel<=n?(a&&(i=!1),l=!1,p=!1):(l=!r,p=!r),g=!0,v=new c(e),m=!1,y=0,D=0,A=t.indent*n,C=t.lineWidth,-1===C&&(C=9007199254740991),40>A?C-=A:C=40,b=0;b0&&(x=e.charCodeAt(b-1),x===T&&(p=!1,l=!1)),l&&(F=b-y,y=b,F>D&&(D=F))),w!==$&&(g=!1),v.takeUpTo(b),v.escapeChar())}if(i&&s(t,e)&&(i=!1),S="",(l||p)&&(B=0,e.charCodeAt(e.length-1)===I&&(B+=1,e.charCodeAt(e.length-2)===I&&(B+=1)),0===B?S="-":2===B&&(S="+")),(p&&C>D||null!==t.tag)&&(l=!1),m||(p=!1),i)t.dump=e;else if(g)t.dump="'"+e+"'";else if(l)k=f(e,C),t.dump=">"+S+"\n"+u(k,A);else if(p)S||(e=e.replace(/\n$/,"")),t.dump="|"+S+"\n"+u(e,A);else{if(!v)throw new Error("Failed to dump scalar value");v.finish(),t.dump='"'+v.result+'"'}}function f(t,e){var n,r="",i=0,o=t.length,u=/\n+$/.exec(t);for(u&&(o=u.index+1);o>i;)n=t.indexOf("\n",i),n>o||-1===n?(r&&(r+="\n\n"),r+=p(t.slice(i,o),e),i=o):(r&&(r+="\n\n"),r+=p(t.slice(i,n),e),i=n+1);return u&&"\n"!==u[0]&&(r+=u[0]),r}function p(t,e){if(""===t)return t;for(var n,r,i,o=/[^\s] [^\s]/g,u="",a=0,s=0,c=o.exec(t);c;)n=c.index,n-s>e&&(r=a!==s?a:n,u&&(u+="\n"),i=t.slice(s,r),u+=i,s=r+1),a=n+1,c=o.exec(t);return u&&(u+="\n"),u+=s!==a&&t.length-s>e?t.slice(s,a)+"\n"+t.slice(a+1):t.slice(s)}function h(t){return O!==t&&I!==t&&j!==t&&M!==t&&G!==t&&K!==t&&Z!==t&&Q!==t&&R!==t&&N!==t&&q!==t&&P!==t&&X!==t&&W!==t&&U!==t&&$!==t&&L!==t&&z!==t&&!tt[t]&&!d(t)}function d(t){return!(t>=32&&126>=t||133===t||t>=160&&55295>=t||t>=57344&&65533>=t||t>=65536&&1114111>=t)}function g(t,e,n){var r,i,o="",u=t.tag;for(r=0,i=n.length;i>r;r+=1)A(t,e,n[r],!1,!1)&&(0!==r&&(o+=", "),o+=t.dump);t.tag=u,t.dump="["+o+"]"}function v(t,e,n,r){var i,o,u="",s=t.tag;for(i=0,o=n.length;o>i;i+=1)A(t,e+1,n[i],!0,!0)&&(r&&0===i||(u+=a(t,e)),u+="- "+t.dump);t.tag=s,t.dump=u||"[]"}function m(t,e,n){var r,i,o,u,a,s="",c=t.tag,l=Object.keys(n);for(r=0,i=l.length;i>r;r+=1)a="",0!==r&&(a+=", "),o=l[r],u=n[o],A(t,e,o,!1,!1)&&(t.dump.length>1024&&(a+="? "),a+=t.dump+": ",A(t,e,u,!1,!1)&&(a+=t.dump,s+=a));t.tag=c,t.dump="{"+s+"}"}function y(t,e,n,r){var i,o,u,s,c,l,f="",p=t.tag,h=Object.keys(n);if(t.sortKeys===!0)h.sort();else if("function"==typeof t.sortKeys)h.sort(t.sortKeys);else if(t.sortKeys)throw new x("sortKeys must be a boolean or a function");for(i=0,o=h.length;o>i;i+=1)l="",r&&0===i||(l+=a(t,e)),u=h[i],s=n[u],A(t,e+1,u,!0,!0,!0)&&(c=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024,c&&(l+=t.dump&&I===t.dump.charCodeAt(0)?"?":"? "),l+=t.dump,c&&(l+=a(t,e)),A(t,e+1,s,!0,c)&&(l+=t.dump&&I===t.dump.charCodeAt(0)?":":": ",l+=t.dump,f+=l));t.tag=p,t.dump=f||"{}"}function D(t,e,n){var r,i,o,u,a,s;for(i=n?t.explicitTypes:t.implicitTypes,o=0,u=i.length;u>o;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof e&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(t.tag=n?a.tag:"?",a.represent){if(s=t.styleMap[a.tag]||a.defaultStyle,"[object Function]"===B.call(a.represent))r=a.represent(e,s);else{if(!k.call(a.represent,s))throw new x("!<"+a.tag+'> tag resolver accepts not "'+s+'" style');r=a.represent[s](e,s)}t.dump=r}return!0}return!1}function A(t,e,n,r,i,o){t.tag=null,t.dump=n,D(t,n,!1)||D(t,n,!0);var u=B.call(t.dump);r&&(r=t.flowLevel<0||t.flowLevel>e);var a,s,c="[object Object]"===u||"[object Array]"===u;if(c&&(a=t.duplicates.indexOf(n),s=-1!==a),(null!==t.tag&&"?"!==t.tag||s||2!==t.indent&&e>0)&&(i=!1),s&&t.usedDuplicates[a])t.dump="*ref_"+a;else{if(c&&s&&!t.usedDuplicates[a]&&(t.usedDuplicates[a]=!0),"[object Object]"===u)r&&0!==Object.keys(t.dump).length?(y(t,e,t.dump,i),s&&(t.dump="&ref_"+a+t.dump)):(m(t,e,t.dump),s&&(t.dump="&ref_"+a+" "+t.dump));else if("[object Array]"===u)r&&0!==t.dump.length?(v(t,e,t.dump,i),s&&(t.dump="&ref_"+a+t.dump)):(g(t,e,t.dump),s&&(t.dump="&ref_"+a+" "+t.dump));else{if("[object String]"!==u){if(t.skipInvalid)return!1;throw new x("unacceptable kind of an object to dump "+u)}"?"!==t.tag&&l(t,t.dump,e,o)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function C(t,e){var n,r,i=[],o=[];for(w(t,i,o),n=0,r=o.length;r>n;n+=1)e.duplicates.push(i[o[n]]);e.usedDuplicates=new Array(r)}function w(t,e,n){var r,i,o;if(null!==t&&"object"==typeof t)if(i=e.indexOf(t),-1!==i)-1===n.indexOf(i)&&n.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;o>i;i+=1)w(t[i],e,n);else for(r=Object.keys(t),i=0,o=r.length;o>i;i+=1)w(t[r[i]],e,n)}function b(t,e){e=e||{};var n=new o(e);return n.noRefs||C(t,n),A(n,0,t,!0,!0)?n.dump+"\n":""}function E(t,e){return b(t,_.extend({schema:S},e))}var _=n(7),x=n(9),F=n(14),S=n(10),B=Object.prototype.toString,k=Object.prototype.hasOwnProperty,O=9,I=10,j=13,T=32,P=33,$=34,R=35,L=37,N=38,U=39,q=42,M=44,H=45,z=58,W=62,Y=63,V=64,G=91,K=93,J=96,Z=123,X=124,Q=125,tt={};tt[0]="\\0",tt[7]="\\a",tt[8]="\\b",tt[9]="\\t",tt[10]="\\n",tt[11]="\\v",tt[12]="\\f",tt[13]="\\r",tt[27]="\\e",tt[34]='\\"',tt[92]="\\\\",tt[133]="\\N",tt[160]="\\_",tt[8232]="\\L",tt[8233]="\\P";var et=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];c.prototype.takeUpTo=function(t){var e;if(t checkpoint"),e.position=t,e.checkpoint=this.checkpoint,e;return this.result+=this.source.slice(this.checkpoint,t),this.checkpoint=t,this},c.prototype.escapeChar=function(){var t,e;return t=this.source.charCodeAt(this.checkpoint),e=tt[t]||i(t),this.result+=e,this.checkpoint+=1,this},c.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)},t.exports.dump=b,t.exports.safeDump=E},function(t,e,n){"use strict";function r(t){return 10===t||13===t}function i(t){return 9===t||32===t}function o(t){return 9===t||32===t||10===t||13===t}function u(t){return 44===t||91===t||93===t||123===t||125===t}function a(t){var e;return t>=48&&57>=t?t-48:(e=32|t,e>=97&&102>=e?e-97+10:-1)}function s(t){return 120===t?2:117===t?4:85===t?8:0}function c(t){return t>=48&&57>=t?t-48:-1}function l(t){return 48===t?"\x00":97===t?"":98===t?"\b":116===t?" ":9===t?" ":110===t?"\n":118===t?"\x0B":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function f(t){return 65535>=t?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function p(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||z,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function h(t,e){return new q(e,new M(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function d(t,e){throw h(t,e)}function g(t,e){t.onWarning&&t.onWarning.call(null,h(t,e))}function v(t,e,n,r){var i,o,u,a;if(n>e){if(a=t.input.slice(e,n),r)for(i=0,o=a.length;o>i;i+=1)u=a.charCodeAt(i),9===u||u>=32&&1114111>=u||d(t,"expected valid JSON character");else Q.test(a)&&d(t,"the stream contains non-printable characters");t.result+=a}}function m(t,e,n,r){var i,o,u,a;for(U.isObject(n)||d(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),u=0,a=i.length;a>u;u+=1)o=i[u],W.call(e,o)||(e[o]=n[o],r[o]=!0)}function y(t,e,n,r,i,o){var u,a;if(i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(u=0,a=o.length;a>u;u+=1)m(t,e,o[u],n);else m(t,e,o,n);else t.json||W.call(n,i)||!W.call(e,i)||d(t,"duplicated mapping key"),e[i]=o,delete n[i];return e}function D(t){var e;e=t.input.charCodeAt(t.position),10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):d(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function A(t,e,n){for(var o=0,u=t.input.charCodeAt(t.position);0!==u;){for(;i(u);)u=t.input.charCodeAt(++t.position);if(e&&35===u)do u=t.input.charCodeAt(++t.position);while(10!==u&&13!==u&&0!==u);if(!r(u))break;for(D(t),u=t.input.charCodeAt(t.position),o++,t.lineIndent=0;32===u;)t.lineIndent++,u=t.input.charCodeAt(++t.position)}return-1!==n&&0!==o&&t.lineIndent1&&(t.result+=U.repeat("\n",e-1))}function b(t,e,n){var a,s,c,l,f,p,h,d,g,m=t.kind,y=t.result;if(g=t.input.charCodeAt(t.position),o(g)||u(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if((63===g||45===g)&&(s=t.input.charCodeAt(t.position+1),o(s)||n&&u(s)))return!1;for(t.kind="scalar",t.result="",c=l=t.position,f=!1;0!==g;){if(58===g){if(s=t.input.charCodeAt(t.position+1),o(s)||n&&u(s))break}else if(35===g){if(a=t.input.charCodeAt(t.position-1),o(a))break}else{if(t.position===t.lineStart&&C(t)||n&&u(g))break;if(r(g)){if(p=t.line,h=t.lineStart,d=t.lineIndent,A(t,!1,-1),t.lineIndent>=e){f=!0,g=t.input.charCodeAt(t.position);continue}t.position=l,t.line=p,t.lineStart=h,t.lineIndent=d;break}}f&&(v(t,c,l,!1),w(t,t.line-p),c=l=t.position,f=!1),i(g)||(l=t.position+1),g=t.input.charCodeAt(++t.position)}return v(t,c,l,!1),t.result?!0:(t.kind=m,t.result=y,!1)}function E(t,e){var n,i,o;if(n=t.input.charCodeAt(t.position),39!==n)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(v(t,i,t.position,!0),n=t.input.charCodeAt(++t.position),39!==n)return!0;i=o=t.position,t.position++}else r(n)?(v(t,i,o,!0),w(t,A(t,!1,e)),i=o=t.position):t.position===t.lineStart&&C(t)?d(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);d(t,"unexpected end of the stream within a single quoted scalar")}function _(t,e){var n,i,o,u,c,l;if(l=t.input.charCodeAt(t.position),34!==l)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(l=t.input.charCodeAt(t.position));){if(34===l)return v(t,n,t.position,!0),t.position++,!0;if(92===l){if(v(t,n,t.position,!0),l=t.input.charCodeAt(++t.position),r(l))A(t,!1,e);else if(256>l&&it[l])t.result+=ot[l],t.position++;else if((c=s(l))>0){for(o=c,u=0;o>0;o--)l=t.input.charCodeAt(++t.position),(c=a(l))>=0?u=(u<<4)+c:d(t,"expected hexadecimal character");t.result+=f(u),t.position++}else d(t,"unknown escape sequence");n=i=t.position}else r(l)?(v(t,n,i,!0),w(t,A(t,!1,e)),n=i=t.position):t.position===t.lineStart&&C(t)?d(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}d(t,"unexpected end of the stream within a double quoted scalar")}function x(t,e){var n,r,i,u,a,s,c,l,f,p,h,g=!0,v=t.tag,m=t.anchor,D={};if(h=t.input.charCodeAt(t.position),91===h)u=93,c=!1,r=[];else{if(123!==h)return!1;u=125,c=!0,r={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=r),h=t.input.charCodeAt(++t.position);0!==h;){if(A(t,!0,e),h=t.input.charCodeAt(t.position),h===u)return t.position++,t.tag=v,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=r,!0;g||d(t,"missed comma between flow collection entries"),f=l=p=null,a=s=!1,63===h&&(i=t.input.charCodeAt(t.position+1),o(i)&&(a=s=!0,t.position++,A(t,!0,e))),n=t.line,j(t,e,Y,!1,!0),f=t.tag,l=t.result,A(t,!0,e),h=t.input.charCodeAt(t.position),!s&&t.line!==n||58!==h||(a=!0,h=t.input.charCodeAt(++t.position),A(t,!0,e),j(t,e,Y,!1,!0),p=t.result),c?y(t,r,D,f,l,p):a?r.push(y(t,null,D,f,l,p)):r.push(l),A(t,!0,e),h=t.input.charCodeAt(t.position),44===h?(g=!0,h=t.input.charCodeAt(++t.position)):g=!1}d(t,"unexpected end of the stream within a flow collection")}function F(t,e){var n,o,u,a,s=J,l=!1,f=e,p=0,h=!1;if(a=t.input.charCodeAt(t.position),124===a)o=!1;else{if(62!==a)return!1;o=!0}for(t.kind="scalar",t.result="";0!==a;)if(a=t.input.charCodeAt(++t.position),43===a||45===a)J===s?s=43===a?X:Z:d(t,"repeat of a chomping mode identifier");else{if(!((u=c(a))>=0))break;0===u?d(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?d(t,"repeat of an indentation width identifier"):(f=e+u-1,l=!0)}if(i(a)){do a=t.input.charCodeAt(++t.position);while(i(a));if(35===a)do a=t.input.charCodeAt(++t.position);while(!r(a)&&0!==a)}for(;0!==a;){for(D(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndentf&&(f=t.lineIndent),r(a))p++;else{if(t.lineIndente)&&0!==i)d(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(j(t,e,K,!0,u)&&(m?g=t.result:v=t.result),m||(y(t,f,p,h,g,v),h=g=v=null),A(t,!0,-1),s=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==s)d(t,"bad indentation of a mapping entry");else if(t.lineIndente?h=1:t.lineIndent===e?h=0:t.lineIndente?h=1:t.lineIndent===e?h=0:t.lineIndents;s+=1)if(l=t.implicitTypes[s],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else W.call(t.typeMap,t.tag)?(l=t.typeMap[t.tag],null!==t.result&&l.kind!==t.kind&&d(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result)?(t.result=l.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):d(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):d(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||v}function T(t){var e,n,u,a,s=t.position,c=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(a=t.input.charCodeAt(t.position))&&(A(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==a));){for(c=!0,a=t.input.charCodeAt(++t.position),e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(e,t.position),u=[],n.length<1&&d(t,"directive name must not be less than one character in length");0!==a;){for(;i(a);)a=t.input.charCodeAt(++t.position);if(35===a){do a=t.input.charCodeAt(++t.position);while(0!==a&&!r(a));break}if(r(a))break;for(e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);u.push(t.input.slice(e,t.position))}0!==a&&D(t),W.call(at,n)?at[n](t,n,u):g(t,'unknown document directive "'+n+'"')}return A(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,A(t,!0,-1)):c&&d(t,"directives end mark is expected"),j(t,t.lineIndent-1,K,!1,!0),A(t,!0,-1),t.checkLineBreaks&&tt.test(t.input.slice(s,t.position))&&g(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&C(t)?void(46===t.input.charCodeAt(t.position)&&(t.position+=3,A(t,!0,-1))):void(t.positionr;r+=1)e(o[r])}function R(t,e){var n=P(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new q("expected a single document in the stream, but found more")}}function L(t,e,n){$(t,e,U.extend({schema:H},n))}function N(t,e){return R(t,U.extend({schema:H},e))}for(var U=n(7),q=n(9),M=n(80),H=n(10),z=n(14),W=Object.prototype.hasOwnProperty,Y=1,V=2,G=3,K=4,J=1,Z=2,X=3,Q=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tt=/[\x85\u2028\u2029]/,et=/[,\[\]\{\}]/,nt=/^(?:!|!!|![a-z\-]+!)$/i,rt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,it=new Array(256),ot=new Array(256),ut=0;256>ut;ut++)it[ut]=l(ut)?1:0,ot[ut]=l(ut);var at={YAML:function(t,e,n){var r,i,o;null!==t.version&&d(t,"duplication of %YAML directive"),1!==n.length&&d(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===r&&d(t,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&d(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=2>o,1!==o&&2!==o&&g(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var r,i;2!==n.length&&d(t,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],nt.test(r)||d(t,"ill-formed tag handle (first argument) of the TAG directive"),W.call(t.tagMap,r)&&d(t,'there is a previously declared suffix for "'+r+'" tag handle'),rt.test(i)||d(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[r]=i}};t.exports.loadAll=$,t.exports.load=R,t.exports.safeLoadAll=L,t.exports.safeLoad=N},function(t,e,n){"use strict";function r(t,e,n,r,i){this.name=t,this.buffer=e,this.position=n,this.line=r,this.column=i}var i=n(7);r.prototype.getSnippet=function(t,e){var n,r,o,u,a;if(!this.buffer)return null;for(t=t||4,e=e||75,n="",r=this.position;r>0&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>e/2-1){n=" ... ",r+=5;break}for(o="",u=this.position;ue/2-1){o=" ... ",u-=5;break}return a=this.buffer.slice(r,u),i.repeat(" ",t)+n+a+o+"\n"+i.repeat(" ",t+this.position-r+n.length)+"^"},r.prototype.toString=function(t){var e,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet(),e&&(n+=":\n"+e)),n},t.exports=r},function(t,e,n){"use strict";function r(t){if(null===t)return!1;var e,n,r=0,i=t.length,o=c;for(n=0;i>n;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(0>e)return!1;r+=6}return r%8===0}function i(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=c,u=0,s=[];for(e=0;i>e;e++)e%4===0&&e&&(s.push(u>>16&255),s.push(u>>8&255),s.push(255&u)),u=u<<6|o.indexOf(r.charAt(e));return n=i%4*6,0===n?(s.push(u>>16&255),s.push(u>>8&255),s.push(255&u)):18===n?(s.push(u>>10&255),s.push(u>>2&255)):12===n&&s.push(u>>4&255),a?new a(s):s}function o(t){var e,n,r="",i=0,o=t.length,u=c;for(e=0;o>e;e++)e%3===0&&e&&(r+=u[i>>18&63],r+=u[i>>12&63],r+=u[i>>6&63],r+=u[63&i]),i=(i<<8)+t[e];return n=o%3,0===n?(r+=u[i>>18&63],r+=u[i>>12&63],r+=u[i>>6&63],r+=u[63&i]):2===n?(r+=u[i>>10&63],r+=u[i>>4&63],r+=u[i<<2&63],r+=u[64]):1===n&&(r+=u[i>>2&63],r+=u[i<<4&63],r+=u[64],r+=u[64]),r}function u(t){return a&&a.isBuffer(t)}var a=n(130).Buffer,s=n(1),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new s("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";function r(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function i(t){return"true"===t||"True"===t||"TRUE"===t}function o(t){return"[object Boolean]"===Object.prototype.toString.call(t)}var u=n(1);t.exports=new u("tag:yaml.org,2002:bool",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){return null===t?!1:!!c.test(t)}function i(t){var e,n,r,i;return e=t.replace(/_/g,"").toLowerCase(),n="-"===e[0]?-1:1,i=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(t){i.unshift(parseFloat(t,10))}),e=0,r=1,i.forEach(function(t){e+=t*r,r*=60}),n*e):n*parseFloat(e,10)}function o(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(t))return"-0.0";return n=t.toString(10),l.test(n)?n.replace("e",".e"):n}function u(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!==0||a.isNegativeZero(t))}var a=n(7),s=n(1),c=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),l=/^[-+]?[0-9]+e/;t.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o,defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t}function i(t){return t>=48&&55>=t}function o(t){return t>=48&&57>=t}function u(t){if(null===t)return!1;var e,n=t.length,u=0,a=!1;if(!n)return!1;if(e=t[u],"-"!==e&&"+"!==e||(e=t[++u]),"0"===e){if(u+1===n)return!0;if(e=t[++u],"b"===e){for(u++;n>u;u++)if(e=t[u],"_"!==e){if("0"!==e&&"1"!==e)return!1;a=!0}return a}if("x"===e){for(u++;n>u;u++)if(e=t[u],"_"!==e){if(!r(t.charCodeAt(u)))return!1;a=!0}return a}for(;n>u;u++)if(e=t[u],"_"!==e){if(!i(t.charCodeAt(u)))return!1;a=!0}return a}for(;n>u;u++)if(e=t[u],"_"!==e){if(":"===e)break;if(!o(t.charCodeAt(u)))return!1;a=!0}return a?":"!==e?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(u)):!1}function a(t){var e,n,r=t,i=1,o=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),e=r[0],"-"!==e&&"+"!==e||("-"===e&&(i=-1),r=r.slice(1),e=r[0]),"0"===r?0:"0"===e?"b"===r[1]?i*parseInt(r.slice(2),2):"x"===r[1]?i*parseInt(r,16):i*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach(function(t){o.unshift(parseInt(t,10))}),r=0,n=1,o.forEach(function(t){r+=t*n,n*=60}),i*r):i*parseInt(r,10)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1===0&&!c.isNegativeZero(t)}var c=n(7),l=n(1);t.exports=new l("tag:yaml.org,2002:int",{kind:"scalar",resolve:u,construct:a,predicate:s,represent:{binary:function(t){return"0b"+t.toString(2)},octal:function(t){return"0"+t.toString(8)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return"0x"+t.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(t,e,n){function r(t){if(null===t)return!1;try{var e="("+t+")",n=a.parse(e,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&"FunctionExpression"===n.body[0].expression.type}catch(r){return!1}}function i(t){var e,n="("+t+")",r=a.parse(n,{range:!0}),i=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(t){i.push(t.name)}),e=r.body[0].expression.body.range,new Function(i,n.slice(e[0]+1,e[1]-1))}function o(t){return t.toString()}function u(t){return"[object Function]"===Object.prototype.toString.call(t)}var a;try{a=n(74)}catch(s){"undefined"!=typeof window&&(a=window.esprima)}var c=n(1);t.exports=new c("tag:yaml.org,2002:js/function",{
-kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";function r(t){if(null===t)return!1;if(0===t.length)return!1;var e=t,n=/\/([gim]*)$/.exec(t),r="";if("/"===e[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==e[e.length-r.length-1])return!1}return!0}function i(t){var e=t,n=/\/([gim]*)$/.exec(t),r="";return"/"===e[0]&&(n&&(r=n[1]),e=e.slice(1,e.length-r.length-1)),new RegExp(e,r)}function o(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}function u(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var a=n(1);t.exports=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";function r(){return!0}function i(){}function o(){return""}function u(t){return"undefined"==typeof t}var a=n(1);t.exports=new a("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";var r=n(1);t.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},function(t,e,n){"use strict";function r(t){return"<<"===t||null===t}var i=n(1);t.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:r})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function i(){return null}function o(t){return null===t}var u=n(1);t.exports=new u("tag:yaml.org,2002:null",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e,n,r,i,o,s=[],c=t;for(e=0,n=c.length;n>e;e+=1){if(r=c[e],o=!1,"[object Object]"!==a.call(r))return!1;for(i in r)if(u.call(r,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==s.indexOf(i))return!1;s.push(i)}return!0}function i(t){return null!==t?t:[]}var o=n(1),u=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:r,construct:i})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e,n,r,i,o,a=t;for(o=new Array(a.length),e=0,n=a.length;n>e;e+=1){if(r=a[e],"[object Object]"!==u.call(r))return!1;if(i=Object.keys(r),1!==i.length)return!1;o[e]=[i[0],r[i[0]]]}return!0}function i(t){if(null===t)return[];var e,n,r,i,o,u=t;for(o=new Array(u.length),e=0,n=u.length;n>e;e+=1)r=u[e],i=Object.keys(r),o[e]=[i[0],r[i[0]]];return o}var o=n(1),u=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i})},function(t,e,n){"use strict";var r=n(1);t.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e,n=t;for(e in n)if(u.call(n,e)&&null!==n[e])return!1;return!0}function i(t){return null!==t?t:{}}var o=n(1),u=Object.prototype.hasOwnProperty;t.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i})},function(t,e,n){"use strict";var r=n(1);t.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},function(t,e,n){"use strict";function r(t){return null===t?!1:null!==a.exec(t)?!0:null!==s.exec(t)}function i(t){var e,n,r,i,o,u,c,l,f,p,h=0,d=null;if(e=a.exec(t),null===e&&(e=s.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(o=+e[4],u=+e[5],c=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(l=+e[10],f=+(e[11]||0),d=6e4*(60*l+f),"-"===e[9]&&(d=-d)),p=new Date(Date.UTC(n,r,i,o,u,c,h)),d&&p.setTime(p.getTime()-d),p}function o(t){return t.toISOString()}var u=n(1),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new u("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:i,instanceOf:Date,represent:o})},function(t,e){function n(t){if(t=t||{},"object"!=typeof t)throw new TypeError("Options must be an object");var e=".";this.storage={},this.separator=t.separator||e}var r=Array.prototype.slice;n.prototype.add=function(t,e){var n=this.storage[t]||(this.storage[t]=[]);n.push(e)},n.prototype.remove=function(t){var e,n;for(e in this.storage)n=this.storage[e],n.some(function(e,r){return e===t?(n.splice(r,1),!0):void 0})},n.prototype.get=function(t){var e,n=[];for(e in this.storage)t&&t!==e&&0!==e.indexOf(t+this.separator)||(n=n.concat(this.storage[e]));return n},n.prototype.getGrouped=function(t){var e,n={};for(e in this.storage)t&&t!==e&&0!==e.indexOf(t+this.separator)||(n[e]=r.call(this.storage[e]));return n},n.prototype.getAll=function(t){var e,n={};for(e in this.storage)t!==e&&0!==e.indexOf(t+this.separator)||(n[e]=r.call(this.storage[e]));return n},n.prototype.run=function(t,e){var n=r.call(arguments,2);this.get(t).forEach(function(t){t.apply(e||this,n)})},t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=t.length;++n=a?u(e):null,p=e.length;f&&(c=o,l=!1,e=f);t:for(;++s-1&&t%1==0&&f>=t}function s(t){return c(t)?t:Object(t)}function c(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var l=n(5),f=9007199254740991,p=o(r),h=u(),d=i("length");t.exports=p},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function i(t,e){for(var n=-1,r=t.length;++nc))return!1;for(;++s=a,f=l?u():null,p=[];f?(r=o,c=!1):(l=!1,f=e?[]:p);t:for(;++n2?n[u-2]:void 0,s=u>2?n[2]:void 0,c=u>1?n[u-1]:void 0;for("function"==typeof a?(a=i(a,c,5),u-=2):(a="function"==typeof c?c:void 0,u-=a?1:0),s&&o(n[0],n[1],s)&&(a=3>u?void 0:a,u=1);++r-1&&t%1==0&&e>t}function o(t,e){for(var n=-1,r=t.length,i=-1,o=[];++na&&c[0]!==f&&c[a-1]!==f?[]:o(c,f);return a-=h.length,n>a?d(t,e,p,f,void 0,c,h,void 0,void 0,n-a):r(l,this,c)}var u=l(t);return i}function p(t,e,n,r,i,s,c,f,h,g){function m(){for(var w=arguments.length,b=w,_=Array(w);b--;)_[b]=arguments[b];if(r&&(_=u(_,r,i)),s&&(_=a(_,s,c)),E||F){var x=m.placeholder,B=o(_,x);if(w-=B.length,g>w)return d(t,e,p,x,n,_,B,f,h,g-w)}var k=D?n:this,I=A?k[t]:t;return f?_=v(_,f):S&&_.length>1&&_.reverse(),y&&h<_.length&&(_.length=h),this&&this!==C&&this instanceof m&&(I=O||l(I)),I.apply(k,_)}var y=e&B,D=e&w,A=e&b,E=e&_,F=e&x,S=e&k,O=A?void 0:l(t);return m}function h(t,e,n,i){function o(){for(var e=-1,s=arguments.length,c=-1,l=i.length,f=Array(l+s),p=this&&this!==C&&this instanceof o?a:t;++ct?-1:1;return e*T}var n=t%1;return t===t?n?t-n:t:0}function A(t){if(y(t)){var e=m(t.valueOf)?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(N,"");var n=q.test(t);return n||M.test(t)?z(t.slice(2),n?2:8):U.test(t)?P:+t}var C=n(19),w=1,b=2,E=4,_=8,x=16,F=32,S=64,B=128,k=512,O="Expected a function",I=1/0,j=9007199254740991,T=1.7976931348623157e308,P=NaN,$="__lodash_placeholder__",R="[object Function]",L="[object GeneratorFunction]",N=/^\s+|\s+$/g,U=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,M=/^0o[0-7]+$/i,H=/^(?:0|[1-9]\d*)$/,z=parseInt,W=Object.prototype,Y=W.toString,V=Math.max,G=Math.min,K=function(){function t(){}return function(e){if(y(e)){t.prototype=e;var n=new t;t.prototype=void 0}return n||{}}}();t.exports=g},function(t,e){function n(t,e){t=r(t);for(var n=-1,i=e.length,o={};++n0&&(n=e.apply(this,arguments)),1>=t&&(e=void 0),n}}var r="Expected a function";t.exports=n},function(t,e,n){function r(t){return h[t]}function i(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||i(t)&&g.call(t)==l}function u(t){if("string"==typeof t)return t;if(null==t)return"";if(o(t))return v?y.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}function a(t){return t=u(t),t&&p.test(t)?t.replace(f,r):t}var s=n(19),c=1/0,l="[object Symbol]",f=/[&<>"'`]/g,p=RegExp(f.source),h={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},d=Object.prototype,g=d.toString,v=s.Symbol,m=v?v.prototype:void 0,y=v?m.toString:void 0;t.exports=a},function(t,e,n){function r(t,e){return function(n,r,i){return"function"==typeof r&&void 0===i&&a(n)?t(n,r):e(n,u(r,i,3))}}var i=n(98),o=n(103),u=n(11),a=n(2),s=r(i,o);t.exports=s},function(t,e,n){function r(t,e){return o(t,e,a)}function i(t){return function(e,n,r){return"function"==typeof n&&void 0===r||(n=u(n,r,3)),t(e,n)}}var o=n(31),u=n(11),a=n(5),s=i(r);t.exports=s},function(t,e,n){function r(t,e){return t="number"==typeof t||m.test(t)?+t:-1,e=null==e?A:e,t>-1&&t%1==0&&e>t}function i(t,e){var n=typeof t;if("string"==n&&v.test(t)||"number"==n)return!0;if(d(t))return!1;var r=!g.test(t);return r||null!=e&&t in u(e)}function o(t){return"number"==typeof t&&t>-1&&t%1==0&&A>=t}function u(t){return s(t)?t:Object(t)}function a(t){var e=t?t.length:0;return e?t[e-1]:void 0}function s(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function c(t,e){if(null==t)return!1;var n=D.call(t,e);if(!n&&!i(e)){if(e=p(e),t=1==e.length?t:l(t,f(e,0,-1)),null==t)return!1;e=a(e),n=D.call(t,e)}return n||o(t.length)&&r(e,t.length)&&(d(t)||h(t))}var l=n(32),f=n(33),p=n(38),h=n(12),d=n(2),g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,v=/^\w*$/,m=/^\d+$/,y=Object.prototype,D=y.hasOwnProperty,A=9007199254740991;t.exports=c},function(t,e,n){function r(t){return function(e){return null==e?void 0:e[t]}}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&d>=t}function o(t,e,n,r){var o=t?g(t):0;return i(o)||(t=u(t),o=t.length),n="number"!=typeof n||r&&c(e,n,r)?0:0>n?h(o+n,0):n||0,"string"==typeof t||!l(t)&&f(t)?o>=n&&t.indexOf(e,n)>-1:!!o&&a(t,e,n)>-1}function u(t){return s(t,p(t))}var a=n(18),s=n(106),c=n(37),l=n(2),f=n(21),p=n(5),h=Math.max,d=9007199254740991,g=r("length");t.exports=o},function(t,e){function n(t){return r(t)&&u.call(t)==i}function r(t){return!!t&&"object"==typeof t}var i="[object Date]",o=Object.prototype,u=o.toString;t.exports=n},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function i(t){return function(e){return null==e?void 0:e[t]}}function o(t){return null!=t&&u(d(t))}function u(t){return"number"==typeof t&&t>-1&&t%1==0&&h>=t}function a(t){return null==t?!0:o(t)&&(c(t)||f(t)||s(t)||r(t)&&l(t.splice))?!t.length:!p(t).length}var s=n(12),c=n(2),l=n(20),f=n(21),p=n(5),h=9007199254740991,d=i("length");t.exports=a},function(t,e,n){function r(t,e,n,r){n="function"==typeof n?o(n,r,3):void 0;var u=n?n(t,e):void 0;return void 0===u?i(t,e,n):!!u}var i=n(104),o=n(11);t.exports=r},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&o>=t}function r(t){return!!t&&"object"==typeof t}function i(t){return r(t)&&n(t.length)&&!!B[O.call(t)]}var o=9007199254740991,u="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",p="[object Map]",h="[object Number]",d="[object Object]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",D="[object ArrayBuffer]",A="[object Float32Array]",C="[object Float64Array]",w="[object Int8Array]",b="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",x="[object Uint8ClampedArray]",F="[object Uint16Array]",S="[object Uint32Array]",B={};B[A]=B[C]=B[w]=B[b]=B[E]=B[_]=B[x]=B[F]=B[S]=!0,B[u]=B[a]=B[D]=B[s]=B[c]=B[l]=B[f]=B[p]=B[h]=B[d]=B[g]=B[v]=B[m]=B[y]=!1;var k=Object.prototype,O=k.toString;t.exports=i},function(t,e,n){var r=n(99),i=n(102),o=n(30),u=n(11),a=n(109),s=n(110),c=n(41),l=n(15),f=l(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=r(o(e),String);return a(t,i(c(t),e))}var n=u(e[0],e[1],3);return s(t,function(t,e,r){return!n(t,e,r)})});t.exports=f},function(t,e,n){function r(t){return i(2,t)}var i=n(112);t.exports=r},function(t,e,n){function r(t,e){var n=typeof t;if("string"==n&&d.test(t)||"number"==n)return!0;if(f(t))return!1;var r=!h.test(t);return r||null!=e&&t in i(e)}function i(t){return u(t)?t:Object(t)}function o(t){var e=t?t.length:0;return e?t[e-1]:void 0}function u(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(null==t||r(e,t)||(e=l(e),t=1==e.length?t:s(t,c(e,0,-1)),i=null==t?void 0:t[o(e)]),i=void 0===i?n:i),p(i)?i.call(t):i}var s=n(32),c=n(33),l=n(38),f=n(2),p=n(20),h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,d=/^\w*$/;t.exports=a},function(t,e,n){var r=n(30),i=n(105),o=n(15),u=o(function(t){return i(r(t,!1,!0))});t.exports=u},function(t,e,n){var r;(function(t,i){!function(o){function u(t){for(var e,n,r=[],i=0,o=t.length;o>i;)e=t.charCodeAt(i++),e>=55296&&56319>=e&&o>i?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function a(t){for(var e,n=t.length,r=-1,i="";++r65535&&(e-=65536,i+=A(e>>>10&1023|55296),e=56320|1023&e),i+=A(e);return i}function s(t){if(t>=55296&&57343>=t)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function c(t,e){return A(t>>e&63|128)}function l(t){if(0==(4294967168&t))return A(t);var e="";return 0==(4294965248&t)?e=A(t>>6&31|192):0==(4294901760&t)?(s(t),e=A(t>>12&15|224),e+=c(t,6)):0==(4292870144&t)&&(e=A(t>>18&7|240),e+=c(t,12),e+=c(t,6)),e+=A(63&t|128)}function f(t){for(var e,n=u(t),r=n.length,i=-1,o="";++i=y)throw Error("Invalid byte index");var t=255&m[D];if(D++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(){var t,e,n,r,i;if(D>y)throw Error("Invalid byte index");if(D==y)return!1;if(t=255&m[D],D++,0==(128&t))return t;if(192==(224&t)){var e=p();if(i=(31&t)<<6|e,i>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=p(),n=p(),i=(15&t)<<12|e<<6|n,i>=2048)return s(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=p(),n=p(),r=p(),i=(15&t)<<18|e<<12|n<<6|r,i>=65536&&1114111>=i))return i;throw Error("Invalid UTF-8 detected")}function d(t){m=u(t),y=m.length,D=0;for(var e,n=[];(e=h())!==!1;)n.push(e);return a(n)}var g="object"==typeof e&&e,v=("object"==typeof t&&t&&t.exports==g&&t,"object"==typeof i&&i);v.global!==v&&v.window!==v||(o=v);var m,y,D,A=String.fromCharCode,C={version:"2.0.0",encode:f,decode:d};r=function(){return C}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(13)(t),function(){return this}())},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){},function(t,e){}]);
\ No newline at end of file
+!function(o){r=o,i="function"==typeof r?r.call(e,n,e,t):r,!(void 0!==i&&(t.exports=i))}(function(){function t(){for(var t=0,e={};t1){if(o=t({path:"/"},r.defaults,o),"number"==typeof o.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*o.expires),o.expires=a}try{u=JSON.stringify(i),/^[\{\[]/.test(u)&&(i=u)}catch(s){}return i=n.write?n.write(i,e):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)),e=e.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),e=e.replace(/[\(\)]/g,escape),document.cookie=[e,"=",i,o.expires&&"; expires="+o.expires.toUTCString(),o.path&&"; path="+o.path,o.domain&&"; domain="+o.domain,o.secure?"; secure":""].join("")}e||(u={});for(var c=document.cookie?document.cookie.split("; "):[],l=/(%[0-9A-Z]{2})+/g,f=0;fi;i+=1)u=r[i],a=String(e[u]),"!!"===u.slice(0,2)&&(u="tag:yaml.org,2002:"+u.slice(2)),s=t.compiledTypeMap[u],s&&B.call(s.styleAliases,a)&&(a=s.styleAliases[a]),n[u]=a;return n}function i(t){var e,n,r;if(e=t.toString(16).toUpperCase(),255>=t)n="x",r=2;else if(65535>=t)n="u",r=4;else{if(!(4294967295>=t))throw new x("code point within a string may not be greater than 0xFFFFFFFF");n="U",r=8}return"\\"+n+_.repeat("0",r-e.length)+e}function o(t){this.schema=t.schema||F,this.indent=Math.max(1,t.indent||2),this.skipInvalid=t.skipInvalid||!1,this.flowLevel=_.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=r(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function u(t,e){for(var n,r=_.repeat(" ",e),i=0,o=-1,u="",a=t.length;a>i;)o=t.indexOf("\n",i),-1===o?(n=t.slice(i),i=a):(n=t.slice(i,o+1),i=o+1),n.length&&"\n"!==n&&(u+=r),u+=n;return u}function a(t,e){return"\n"+_.repeat(" ",t.indent*e)}function s(t,e){var n,r,i;for(n=0,r=t.implicitTypes.length;r>n;n+=1)if(i=t.implicitTypes[n],i.resolve(e))return!0;return!1}function c(t){this.source=t,this.result="",this.checkpoint=0}function l(t,e,n,r){var i,o,a,l,p,g,v,m,y,D,A,w,C,b,E,_,x,F,S,k,B;if(0===e.length)return void(t.dump="''");if(!t.noCompatMode&&-1!==et.indexOf(e))return void(t.dump="'"+e+"'");for(i=!0,o=e.length?e.charCodeAt(0):0,a=j===o||j===e.charCodeAt(e.length-1),H!==o&&Y!==o&&V!==o&&J!==o||(i=!1),a||t.flowLevel>-1&&t.flowLevel<=n?(a&&(i=!1),l=!1,p=!1):(l=!r,p=!r),g=!0,v=new c(e),m=!1,y=0,D=0,A=t.indent*n,w=t.lineWidth,-1===w&&(w=9007199254740991),40>A?w-=A:w=40,b=0;b0&&(x=e.charCodeAt(b-1),x===j&&(p=!1,l=!1)),l&&(F=b-y,y=b,F>D&&(D=F))),C!==P&&(g=!1),v.takeUpTo(b),v.escapeChar())}if(i&&s(t,e)&&(i=!1),S="",(l||p)&&(k=0,e.charCodeAt(e.length-1)===I&&(k+=1,e.charCodeAt(e.length-2)===I&&(k+=1)),0===k?S="-":2===k&&(S="+")),(p&&w>D||null!==t.tag)&&(l=!1),m||(p=!1),i)t.dump=e;else if(g)t.dump="'"+e+"'";else if(l)B=f(e,w),t.dump=">"+S+"\n"+u(B,A);else if(p)S||(e=e.replace(/\n$/,"")),t.dump="|"+S+"\n"+u(e,A);else{if(!v)throw new Error("Failed to dump scalar value");v.finish(),t.dump='"'+v.result+'"'}}function f(t,e){var n,r="",i=0,o=t.length,u=/\n+$/.exec(t);for(u&&(o=u.index+1);o>i;)n=t.indexOf("\n",i),n>o||-1===n?(r&&(r+="\n\n"),r+=p(t.slice(i,o),e),i=o):(r&&(r+="\n\n"),r+=p(t.slice(i,n),e),i=n+1);return u&&"\n"!==u[0]&&(r+=u[0]),r}function p(t,e){if(""===t)return t;for(var n,r,i,o=/[^\s] [^\s]/g,u="",a=0,s=0,c=o.exec(t);c;)n=c.index,n-s>e&&(r=a!==s?a:n,u&&(u+="\n"),i=t.slice(s,r),u+=i,s=r+1),a=n+1,c=o.exec(t);return u&&(u+="\n"),u+=s!==a&&t.length-s>e?t.slice(s,a)+"\n"+t.slice(a+1):t.slice(s)}function h(t){return O!==t&&I!==t&&T!==t&&M!==t&&G!==t&&K!==t&&Z!==t&&X!==t&&R!==t&&N!==t&&q!==t&&$!==t&&Q!==t&&W!==t&&U!==t&&P!==t&&L!==t&&z!==t&&!tt[t]&&!d(t)}function d(t){return!(t>=32&&126>=t||133===t||t>=160&&55295>=t||t>=57344&&65533>=t||t>=65536&&1114111>=t)}function g(t,e,n){var r,i,o="",u=t.tag;for(r=0,i=n.length;i>r;r+=1)A(t,e,n[r],!1,!1)&&(0!==r&&(o+=", "),o+=t.dump);t.tag=u,t.dump="["+o+"]"}function v(t,e,n,r){var i,o,u="",s=t.tag;for(i=0,o=n.length;o>i;i+=1)A(t,e+1,n[i],!0,!0)&&(r&&0===i||(u+=a(t,e)),u+="- "+t.dump);t.tag=s,t.dump=u||"[]"}function m(t,e,n){var r,i,o,u,a,s="",c=t.tag,l=Object.keys(n);for(r=0,i=l.length;i>r;r+=1)a="",0!==r&&(a+=", "),o=l[r],u=n[o],A(t,e,o,!1,!1)&&(t.dump.length>1024&&(a+="? "),a+=t.dump+": ",A(t,e,u,!1,!1)&&(a+=t.dump,s+=a));t.tag=c,t.dump="{"+s+"}"}function y(t,e,n,r){var i,o,u,s,c,l,f="",p=t.tag,h=Object.keys(n);if(t.sortKeys===!0)h.sort();else if("function"==typeof t.sortKeys)h.sort(t.sortKeys);else if(t.sortKeys)throw new x("sortKeys must be a boolean or a function");for(i=0,o=h.length;o>i;i+=1)l="",r&&0===i||(l+=a(t,e)),u=h[i],s=n[u],A(t,e+1,u,!0,!0,!0)&&(c=null!==t.tag&&"?"!==t.tag||t.dump&&t.dump.length>1024,c&&(l+=t.dump&&I===t.dump.charCodeAt(0)?"?":"? "),l+=t.dump,c&&(l+=a(t,e)),A(t,e+1,s,!0,c)&&(l+=t.dump&&I===t.dump.charCodeAt(0)?":":": ",l+=t.dump,f+=l));t.tag=p,t.dump=f||"{}"}function D(t,e,n){var r,i,o,u,a,s;for(i=n?t.explicitTypes:t.implicitTypes,o=0,u=i.length;u>o;o+=1)if(a=i[o],(a.instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof e&&e instanceof a.instanceOf)&&(!a.predicate||a.predicate(e))){if(t.tag=n?a.tag:"?",a.represent){if(s=t.styleMap[a.tag]||a.defaultStyle,"[object Function]"===k.call(a.represent))r=a.represent(e,s);else{if(!B.call(a.represent,s))throw new x("!<"+a.tag+'> tag resolver accepts not "'+s+'" style');r=a.represent[s](e,s)}t.dump=r}return!0}return!1}function A(t,e,n,r,i,o){t.tag=null,t.dump=n,D(t,n,!1)||D(t,n,!0);var u=k.call(t.dump);r&&(r=t.flowLevel<0||t.flowLevel>e);var a,s,c="[object Object]"===u||"[object Array]"===u;if(c&&(a=t.duplicates.indexOf(n),s=-1!==a),(null!==t.tag&&"?"!==t.tag||s||2!==t.indent&&e>0)&&(i=!1),s&&t.usedDuplicates[a])t.dump="*ref_"+a;else{if(c&&s&&!t.usedDuplicates[a]&&(t.usedDuplicates[a]=!0),"[object Object]"===u)r&&0!==Object.keys(t.dump).length?(y(t,e,t.dump,i),s&&(t.dump="&ref_"+a+t.dump)):(m(t,e,t.dump),s&&(t.dump="&ref_"+a+" "+t.dump));else if("[object Array]"===u)r&&0!==t.dump.length?(v(t,e,t.dump,i),s&&(t.dump="&ref_"+a+t.dump)):(g(t,e,t.dump),s&&(t.dump="&ref_"+a+" "+t.dump));else{if("[object String]"!==u){if(t.skipInvalid)return!1;throw new x("unacceptable kind of an object to dump "+u)}"?"!==t.tag&&l(t,t.dump,e,o)}null!==t.tag&&"?"!==t.tag&&(t.dump="!<"+t.tag+"> "+t.dump)}return!0}function w(t,e){var n,r,i=[],o=[];for(C(t,i,o),n=0,r=o.length;r>n;n+=1)e.duplicates.push(i[o[n]]);e.usedDuplicates=new Array(r)}function C(t,e,n){var r,i,o;if(null!==t&&"object"==typeof t)if(i=e.indexOf(t),-1!==i)-1===n.indexOf(i)&&n.push(i);else if(e.push(t),Array.isArray(t))for(i=0,o=t.length;o>i;i+=1)C(t[i],e,n);else for(r=Object.keys(t),i=0,o=r.length;o>i;i+=1)C(t[r[i]],e,n)}function b(t,e){e=e||{};var n=new o(e);return n.noRefs||w(t,n),A(n,0,t,!0,!0)?n.dump+"\n":""}function E(t,e){return b(t,_.extend({schema:S},e))}var _=n(7),x=n(9),F=n(14),S=n(10),k=Object.prototype.toString,B=Object.prototype.hasOwnProperty,O=9,I=10,T=13,j=32,$=33,P=34,R=35,L=37,N=38,U=39,q=42,M=44,H=45,z=58,W=62,Y=63,V=64,G=91,K=93,J=96,Z=123,Q=124,X=125,tt={};tt[0]="\\0",tt[7]="\\a",tt[8]="\\b",tt[9]="\\t",tt[10]="\\n",tt[11]="\\v",tt[12]="\\f",tt[13]="\\r",tt[27]="\\e",tt[34]='\\"',tt[92]="\\\\",tt[133]="\\N",tt[160]="\\_",tt[8232]="\\L",tt[8233]="\\P";var et=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];c.prototype.takeUpTo=function(t){var e;if(t checkpoint"),e.position=t,e.checkpoint=this.checkpoint,e;return this.result+=this.source.slice(this.checkpoint,t),this.checkpoint=t,this},c.prototype.escapeChar=function(){var t,e;return t=this.source.charCodeAt(this.checkpoint),e=tt[t]||i(t),this.result+=e,this.checkpoint+=1,this},c.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)},t.exports.dump=b,t.exports.safeDump=E},function(t,e,n){"use strict";function r(t){return 10===t||13===t}function i(t){return 9===t||32===t}function o(t){return 9===t||32===t||10===t||13===t}function u(t){return 44===t||91===t||93===t||123===t||125===t}function a(t){var e;return t>=48&&57>=t?t-48:(e=32|t,e>=97&&102>=e?e-97+10:-1)}function s(t){return 120===t?2:117===t?4:85===t?8:0}function c(t){return t>=48&&57>=t?t-48:-1}function l(t){return 48===t?"\x00":97===t?"":98===t?"\b":116===t?" ":9===t?" ":110===t?"\n":118===t?"\x0B":102===t?"\f":114===t?"\r":101===t?"":32===t?" ":34===t?'"':47===t?"/":92===t?"\\":78===t?"
":95===t?" ":76===t?"\u2028":80===t?"\u2029":""}function f(t){return 65535>=t?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}function p(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||z,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}function h(t,e){return new q(e,new M(t.filename,t.input,t.position,t.line,t.position-t.lineStart))}function d(t,e){throw h(t,e)}function g(t,e){t.onWarning&&t.onWarning.call(null,h(t,e))}function v(t,e,n,r){var i,o,u,a;if(n>e){if(a=t.input.slice(e,n),r)for(i=0,o=a.length;o>i;i+=1)u=a.charCodeAt(i),9===u||u>=32&&1114111>=u||d(t,"expected valid JSON character");else X.test(a)&&d(t,"the stream contains non-printable characters");t.result+=a}}function m(t,e,n,r){var i,o,u,a;for(U.isObject(n)||d(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),u=0,a=i.length;a>u;u+=1)o=i[u],W.call(e,o)||(e[o]=n[o],r[o]=!0)}function y(t,e,n,r,i,o){var u,a;if(i=String(i),null===e&&(e={}),"tag:yaml.org,2002:merge"===r)if(Array.isArray(o))for(u=0,a=o.length;a>u;u+=1)m(t,e,o[u],n);else m(t,e,o,n);else t.json||W.call(n,i)||!W.call(e,i)||d(t,"duplicated mapping key"),e[i]=o,delete n[i];return e}function D(t){var e;e=t.input.charCodeAt(t.position),10===e?t.position++:13===e?(t.position++,10===t.input.charCodeAt(t.position)&&t.position++):d(t,"a line break is expected"),t.line+=1,t.lineStart=t.position}function A(t,e,n){for(var o=0,u=t.input.charCodeAt(t.position);0!==u;){for(;i(u);)u=t.input.charCodeAt(++t.position);if(e&&35===u)do u=t.input.charCodeAt(++t.position);while(10!==u&&13!==u&&0!==u);if(!r(u))break;for(D(t),u=t.input.charCodeAt(t.position),o++,t.lineIndent=0;32===u;)t.lineIndent++,u=t.input.charCodeAt(++t.position)}return-1!==n&&0!==o&&t.lineIndent1&&(t.result+=U.repeat("\n",e-1))}function b(t,e,n){var a,s,c,l,f,p,h,d,g,m=t.kind,y=t.result;if(g=t.input.charCodeAt(t.position),o(g)||u(g)||35===g||38===g||42===g||33===g||124===g||62===g||39===g||34===g||37===g||64===g||96===g)return!1;if((63===g||45===g)&&(s=t.input.charCodeAt(t.position+1),o(s)||n&&u(s)))return!1;for(t.kind="scalar",t.result="",c=l=t.position,f=!1;0!==g;){if(58===g){if(s=t.input.charCodeAt(t.position+1),o(s)||n&&u(s))break}else if(35===g){if(a=t.input.charCodeAt(t.position-1),o(a))break}else{if(t.position===t.lineStart&&w(t)||n&&u(g))break;if(r(g)){if(p=t.line,h=t.lineStart,d=t.lineIndent,A(t,!1,-1),t.lineIndent>=e){f=!0,g=t.input.charCodeAt(t.position);continue}t.position=l,t.line=p,t.lineStart=h,t.lineIndent=d;break}}f&&(v(t,c,l,!1),C(t,t.line-p),c=l=t.position,f=!1),i(g)||(l=t.position+1),g=t.input.charCodeAt(++t.position)}return v(t,c,l,!1),t.result?!0:(t.kind=m,t.result=y,!1)}function E(t,e){var n,i,o;if(n=t.input.charCodeAt(t.position),39!==n)return!1;for(t.kind="scalar",t.result="",t.position++,i=o=t.position;0!==(n=t.input.charCodeAt(t.position));)if(39===n){if(v(t,i,t.position,!0),n=t.input.charCodeAt(++t.position),39!==n)return!0;i=o=t.position,t.position++}else r(n)?(v(t,i,o,!0),C(t,A(t,!1,e)),i=o=t.position):t.position===t.lineStart&&w(t)?d(t,"unexpected end of the document within a single quoted scalar"):(t.position++,o=t.position);d(t,"unexpected end of the stream within a single quoted scalar")}function _(t,e){var n,i,o,u,c,l;if(l=t.input.charCodeAt(t.position),34!==l)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;0!==(l=t.input.charCodeAt(t.position));){if(34===l)return v(t,n,t.position,!0),t.position++,!0;if(92===l){if(v(t,n,t.position,!0),l=t.input.charCodeAt(++t.position),r(l))A(t,!1,e);else if(256>l&&it[l])t.result+=ot[l],t.position++;else if((c=s(l))>0){for(o=c,u=0;o>0;o--)l=t.input.charCodeAt(++t.position),(c=a(l))>=0?u=(u<<4)+c:d(t,"expected hexadecimal character");t.result+=f(u),t.position++}else d(t,"unknown escape sequence");n=i=t.position}else r(l)?(v(t,n,i,!0),C(t,A(t,!1,e)),n=i=t.position):t.position===t.lineStart&&w(t)?d(t,"unexpected end of the document within a double quoted scalar"):(t.position++,i=t.position)}d(t,"unexpected end of the stream within a double quoted scalar")}function x(t,e){var n,r,i,u,a,s,c,l,f,p,h,g=!0,v=t.tag,m=t.anchor,D={};if(h=t.input.charCodeAt(t.position),91===h)u=93,c=!1,r=[];else{if(123!==h)return!1;u=125,c=!0,r={}}for(null!==t.anchor&&(t.anchorMap[t.anchor]=r),h=t.input.charCodeAt(++t.position);0!==h;){if(A(t,!0,e),h=t.input.charCodeAt(t.position),h===u)return t.position++,t.tag=v,t.anchor=m,t.kind=c?"mapping":"sequence",t.result=r,!0;g||d(t,"missed comma between flow collection entries"),f=l=p=null,a=s=!1,63===h&&(i=t.input.charCodeAt(t.position+1),o(i)&&(a=s=!0,t.position++,A(t,!0,e))),n=t.line,T(t,e,Y,!1,!0),f=t.tag,l=t.result,A(t,!0,e),h=t.input.charCodeAt(t.position),!s&&t.line!==n||58!==h||(a=!0,h=t.input.charCodeAt(++t.position),A(t,!0,e),T(t,e,Y,!1,!0),p=t.result),c?y(t,r,D,f,l,p):a?r.push(y(t,null,D,f,l,p)):r.push(l),A(t,!0,e),h=t.input.charCodeAt(t.position),44===h?(g=!0,h=t.input.charCodeAt(++t.position)):g=!1}d(t,"unexpected end of the stream within a flow collection")}function F(t,e){var n,o,u,a,s=J,l=!1,f=e,p=0,h=!1;if(a=t.input.charCodeAt(t.position),124===a)o=!1;else{if(62!==a)return!1;o=!0}for(t.kind="scalar",t.result="";0!==a;)if(a=t.input.charCodeAt(++t.position),43===a||45===a)J===s?s=43===a?Q:Z:d(t,"repeat of a chomping mode identifier");else{if(!((u=c(a))>=0))break;0===u?d(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?d(t,"repeat of an indentation width identifier"):(f=e+u-1,l=!0)}if(i(a)){do a=t.input.charCodeAt(++t.position);while(i(a));if(35===a)do a=t.input.charCodeAt(++t.position);while(!r(a)&&0!==a)}for(;0!==a;){for(D(t),t.lineIndent=0,a=t.input.charCodeAt(t.position);(!l||t.lineIndentf&&(f=t.lineIndent),r(a))p++;else{if(t.lineIndente)&&0!==i)d(t,"bad indentation of a sequence entry");else if(t.lineIndente)&&(T(t,e,K,!0,u)&&(m?g=t.result:v=t.result),m||(y(t,f,p,h,g,v),h=g=v=null),A(t,!0,-1),s=t.input.charCodeAt(t.position)),t.lineIndent>e&&0!==s)d(t,"bad indentation of a mapping entry");else if(t.lineIndente?h=1:t.lineIndent===e?h=0:t.lineIndente?h=1:t.lineIndent===e?h=0:t.lineIndents;s+=1)if(l=t.implicitTypes[s],l.resolve(t.result)){t.result=l.construct(t.result),t.tag=l.tag,null!==t.anchor&&(t.anchorMap[t.anchor]=t.result);break}}else W.call(t.typeMap,t.tag)?(l=t.typeMap[t.tag],null!==t.result&&l.kind!==t.kind&&d(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+l.kind+'", not "'+t.kind+'"'),l.resolve(t.result)?(t.result=l.construct(t.result),null!==t.anchor&&(t.anchorMap[t.anchor]=t.result)):d(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")):d(t,"unknown tag !<"+t.tag+">");return null!==t.listener&&t.listener("close",t),null!==t.tag||null!==t.anchor||v}function j(t){var e,n,u,a,s=t.position,c=!1;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap={},t.anchorMap={};0!==(a=t.input.charCodeAt(t.position))&&(A(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||37!==a));){for(c=!0,a=t.input.charCodeAt(++t.position),e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(e,t.position),u=[],n.length<1&&d(t,"directive name must not be less than one character in length");0!==a;){for(;i(a);)a=t.input.charCodeAt(++t.position);if(35===a){do a=t.input.charCodeAt(++t.position);while(0!==a&&!r(a));break}if(r(a))break;for(e=t.position;0!==a&&!o(a);)a=t.input.charCodeAt(++t.position);u.push(t.input.slice(e,t.position))}0!==a&&D(t),W.call(at,n)?at[n](t,n,u):g(t,'unknown document directive "'+n+'"')}return A(t,!0,-1),0===t.lineIndent&&45===t.input.charCodeAt(t.position)&&45===t.input.charCodeAt(t.position+1)&&45===t.input.charCodeAt(t.position+2)?(t.position+=3,A(t,!0,-1)):c&&d(t,"directives end mark is expected"),T(t,t.lineIndent-1,K,!1,!0),A(t,!0,-1),t.checkLineBreaks&&tt.test(t.input.slice(s,t.position))&&g(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&w(t)?void(46===t.input.charCodeAt(t.position)&&(t.position+=3,A(t,!0,-1))):void(t.positionr;r+=1)e(o[r])}function R(t,e){var n=$(t,e);if(0!==n.length){if(1===n.length)return n[0];throw new q("expected a single document in the stream, but found more")}}function L(t,e,n){P(t,e,U.extend({schema:H},n))}function N(t,e){return R(t,U.extend({schema:H},e))}for(var U=n(7),q=n(9),M=n(82),H=n(10),z=n(14),W=Object.prototype.hasOwnProperty,Y=1,V=2,G=3,K=4,J=1,Z=2,Q=3,X=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tt=/[\x85\u2028\u2029]/,et=/[,\[\]\{\}]/,nt=/^(?:!|!!|![a-z\-]+!)$/i,rt=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i,it=new Array(256),ot=new Array(256),ut=0;256>ut;ut++)it[ut]=l(ut)?1:0,ot[ut]=l(ut);var at={YAML:function(t,e,n){var r,i,o;null!==t.version&&d(t,"duplication of %YAML directive"),1!==n.length&&d(t,"YAML directive accepts exactly one argument"),r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),null===r&&d(t,"ill-formed argument of the YAML directive"),i=parseInt(r[1],10),o=parseInt(r[2],10),1!==i&&d(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=2>o,1!==o&&2!==o&&g(t,"unsupported YAML version of the document")},TAG:function(t,e,n){var r,i;2!==n.length&&d(t,"TAG directive accepts exactly two arguments"),r=n[0],i=n[1],nt.test(r)||d(t,"ill-formed tag handle (first argument) of the TAG directive"),W.call(t.tagMap,r)&&d(t,'there is a previously declared suffix for "'+r+'" tag handle'),rt.test(i)||d(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[r]=i}};t.exports.loadAll=P,t.exports.load=R,t.exports.safeLoadAll=L,t.exports.safeLoad=N},function(t,e,n){"use strict";function r(t,e,n,r,i){this.name=t,this.buffer=e,this.position=n,this.line=r,this.column=i}var i=n(7);r.prototype.getSnippet=function(t,e){var n,r,o,u,a;if(!this.buffer)return null;for(t=t||4,e=e||75,n="",r=this.position;r>0&&-1==="\x00\r\n
\u2028\u2029".indexOf(this.buffer.charAt(r-1));)if(r-=1,this.position-r>e/2-1){n=" ... ",r+=5;break}for(o="",u=this.position;ue/2-1){o=" ... ",u-=5;break}return a=this.buffer.slice(r,u),i.repeat(" ",t)+n+a+o+"\n"+i.repeat(" ",t+this.position-r+n.length)+"^"},r.prototype.toString=function(t){var e,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(e=this.getSnippet(),e&&(n+=":\n"+e)),n},t.exports=r},function(t,e,n){"use strict";function r(t){if(null===t)return!1;var e,n,r=0,i=t.length,o=c;for(n=0;i>n;n++)if(e=o.indexOf(t.charAt(n)),!(e>64)){if(0>e)return!1;r+=6}return r%8===0}function i(t){var e,n,r=t.replace(/[\r\n=]/g,""),i=r.length,o=c,u=0,s=[];for(e=0;i>e;e++)e%4===0&&e&&(s.push(u>>16&255),s.push(u>>8&255),s.push(255&u)),u=u<<6|o.indexOf(r.charAt(e));return n=i%4*6,0===n?(s.push(u>>16&255),s.push(u>>8&255),s.push(255&u)):18===n?(s.push(u>>10&255),s.push(u>>2&255)):12===n&&s.push(u>>4&255),a?new a(s):s}function o(t){var e,n,r="",i=0,o=t.length,u=c;for(e=0;o>e;e++)e%3===0&&e&&(r+=u[i>>18&63],r+=u[i>>12&63],r+=u[i>>6&63],r+=u[63&i]),i=(i<<8)+t[e];return n=o%3,0===n?(r+=u[i>>18&63],r+=u[i>>12&63],r+=u[i>>6&63],r+=u[63&i]):2===n?(r+=u[i>>10&63],r+=u[i>>4&63],r+=u[i<<2&63],r+=u[64]):1===n&&(r+=u[i>>2&63],r+=u[i<<4&63],r+=u[64],r+=u[64]),r}function u(t){return a&&a.isBuffer(t)}var a=n(132).Buffer,s=n(1),c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";t.exports=new s("tag:yaml.org,2002:binary",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";function r(t){if(null===t)return!1;var e=t.length;return 4===e&&("true"===t||"True"===t||"TRUE"===t)||5===e&&("false"===t||"False"===t||"FALSE"===t)}function i(t){return"true"===t||"True"===t||"TRUE"===t}function o(t){return"[object Boolean]"===Object.prototype.toString.call(t)}var u=n(1);t.exports=new u("tag:yaml.org,2002:bool",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){return null===t?!1:!!c.test(t)}function i(t){var e,n,r,i;return e=t.replace(/_/g,"").toLowerCase(),n="-"===e[0]?-1:1,i=[],"+-".indexOf(e[0])>=0&&(e=e.slice(1)),".inf"===e?1===n?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===e?NaN:e.indexOf(":")>=0?(e.split(":").forEach(function(t){i.unshift(parseFloat(t,10))}),e=0,r=1,i.forEach(function(t){e+=t*r,r*=60}),n*e):n*parseFloat(e,10)}function o(t,e){var n;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(a.isNegativeZero(t))return"-0.0";return n=t.toString(10),l.test(n)?n.replace("e",".e"):n}function u(t){return"[object Number]"===Object.prototype.toString.call(t)&&(t%1!==0||a.isNegativeZero(t))}var a=n(7),s=n(1),c=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),l=/^[-+]?[0-9]+e/;t.exports=new s("tag:yaml.org,2002:float",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o,defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){return t>=48&&57>=t||t>=65&&70>=t||t>=97&&102>=t}function i(t){return t>=48&&55>=t}function o(t){return t>=48&&57>=t}function u(t){if(null===t)return!1;var e,n=t.length,u=0,a=!1;if(!n)return!1;if(e=t[u],"-"!==e&&"+"!==e||(e=t[++u]),"0"===e){if(u+1===n)return!0;if(e=t[++u],"b"===e){for(u++;n>u;u++)if(e=t[u],"_"!==e){if("0"!==e&&"1"!==e)return!1;a=!0}return a}if("x"===e){for(u++;n>u;u++)if(e=t[u],"_"!==e){if(!r(t.charCodeAt(u)))return!1;a=!0}return a}for(;n>u;u++)if(e=t[u],"_"!==e){if(!i(t.charCodeAt(u)))return!1;a=!0}return a}for(;n>u;u++)if(e=t[u],"_"!==e){if(":"===e)break;if(!o(t.charCodeAt(u)))return!1;a=!0}return a?":"!==e?!0:/^(:[0-5]?[0-9])+$/.test(t.slice(u)):!1}function a(t){var e,n,r=t,i=1,o=[];return-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),e=r[0],"-"!==e&&"+"!==e||("-"===e&&(i=-1),r=r.slice(1),e=r[0]),"0"===r?0:"0"===e?"b"===r[1]?i*parseInt(r.slice(2),2):"x"===r[1]?i*parseInt(r,16):i*parseInt(r,8):-1!==r.indexOf(":")?(r.split(":").forEach(function(t){o.unshift(parseInt(t,10))}),r=0,n=1,o.forEach(function(t){r+=t*n,n*=60}),i*r):i*parseInt(r,10)}function s(t){return"[object Number]"===Object.prototype.toString.call(t)&&t%1===0&&!c.isNegativeZero(t)}var c=n(7),l=n(1);t.exports=new l("tag:yaml.org,2002:int",{kind:"scalar",resolve:u,construct:a,predicate:s,represent:{binary:function(t){return"0b"+t.toString(2)},octal:function(t){return"0"+t.toString(8)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return"0x"+t.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})},function(t,e,n){function r(t){if(null===t)return!1;try{var e="("+t+")",n=a.parse(e,{range:!0});return"Program"===n.type&&1===n.body.length&&"ExpressionStatement"===n.body[0].type&&"FunctionExpression"===n.body[0].expression.type}catch(r){return!1}}function i(t){var e,n="("+t+")",r=a.parse(n,{range:!0}),i=[];if("Program"!==r.type||1!==r.body.length||"ExpressionStatement"!==r.body[0].type||"FunctionExpression"!==r.body[0].expression.type)throw new Error("Failed to resolve function");return r.body[0].expression.params.forEach(function(t){i.push(t.name)}),e=r.body[0].expression.body.range,new Function(i,n.slice(e[0]+1,e[1]-1))}function o(t){return t.toString()}function u(t){return"[object Function]"===Object.prototype.toString.call(t)}var a;try{a=n(76)}catch(s){"undefined"!=typeof window&&(a=window.esprima)}var c=n(1);t.exports=new c("tag:yaml.org,2002:js/function",{
+kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";function r(t){if(null===t)return!1;if(0===t.length)return!1;var e=t,n=/\/([gim]*)$/.exec(t),r="";if("/"===e[0]){if(n&&(r=n[1]),r.length>3)return!1;if("/"!==e[e.length-r.length-1])return!1}return!0}function i(t){var e=t,n=/\/([gim]*)$/.exec(t),r="";return"/"===e[0]&&(n&&(r=n[1]),e=e.slice(1,e.length-r.length-1)),new RegExp(e,r)}function o(t){var e="/"+t.source+"/";return t.global&&(e+="g"),t.multiline&&(e+="m"),t.ignoreCase&&(e+="i"),e}function u(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var a=n(1);t.exports=new a("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";function r(){return!0}function i(){}function o(){return""}function u(t){return"undefined"==typeof t}var a=n(1);t.exports=new a("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:r,construct:i,predicate:u,represent:o})},function(t,e,n){"use strict";var r=n(1);t.exports=new r("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return null!==t?t:{}}})},function(t,e,n){"use strict";function r(t){return"<<"===t||null===t}var i=n(1);t.exports=new i("tag:yaml.org,2002:merge",{kind:"scalar",resolve:r})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e=t.length;return 1===e&&"~"===t||4===e&&("null"===t||"Null"===t||"NULL"===t)}function i(){return null}function o(t){return null===t}var u=n(1);t.exports=new u("tag:yaml.org,2002:null",{kind:"scalar",resolve:r,construct:i,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e,n,r,i,o,s=[],c=t;for(e=0,n=c.length;n>e;e+=1){if(r=c[e],o=!1,"[object Object]"!==a.call(r))return!1;for(i in r)if(u.call(r,i)){if(o)return!1;o=!0}if(!o)return!1;if(-1!==s.indexOf(i))return!1;s.push(i)}return!0}function i(t){return null!==t?t:[]}var o=n(1),u=Object.prototype.hasOwnProperty,a=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:omap",{kind:"sequence",resolve:r,construct:i})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e,n,r,i,o,a=t;for(o=new Array(a.length),e=0,n=a.length;n>e;e+=1){if(r=a[e],"[object Object]"!==u.call(r))return!1;if(i=Object.keys(r),1!==i.length)return!1;o[e]=[i[0],r[i[0]]]}return!0}function i(t){if(null===t)return[];var e,n,r,i,o,u=t;for(o=new Array(u.length),e=0,n=u.length;n>e;e+=1)r=u[e],i=Object.keys(r),o[e]=[i[0],r[i[0]]];return o}var o=n(1),u=Object.prototype.toString;t.exports=new o("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:r,construct:i})},function(t,e,n){"use strict";var r=n(1);t.exports=new r("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return null!==t?t:[]}})},function(t,e,n){"use strict";function r(t){if(null===t)return!0;var e,n=t;for(e in n)if(u.call(n,e)&&null!==n[e])return!1;return!0}function i(t){return null!==t?t:{}}var o=n(1),u=Object.prototype.hasOwnProperty;t.exports=new o("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:i})},function(t,e,n){"use strict";var r=n(1);t.exports=new r("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return null!==t?t:""}})},function(t,e,n){"use strict";function r(t){return null===t?!1:null!==a.exec(t)?!0:null!==s.exec(t)}function i(t){var e,n,r,i,o,u,c,l,f,p,h=0,d=null;if(e=a.exec(t),null===e&&(e=s.exec(t)),null===e)throw new Error("Date resolve error");if(n=+e[1],r=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(n,r,i));if(o=+e[4],u=+e[5],c=+e[6],e[7]){for(h=e[7].slice(0,3);h.length<3;)h+="0";h=+h}return e[9]&&(l=+e[10],f=+(e[11]||0),d=6e4*(60*l+f),"-"===e[9]&&(d=-d)),p=new Date(Date.UTC(n,r,i,o,u,c,h)),d&&p.setTime(p.getTime()-d),p}function o(t){return t.toISOString()}var u=n(1),a=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),s=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");t.exports=new u("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:i,instanceOf:Date,represent:o})},function(t,e){function n(t){if(t=t||{},"object"!=typeof t)throw new TypeError("Options must be an object");var e=".";this.storage={},this.separator=t.separator||e}var r=Array.prototype.slice;n.prototype.add=function(t,e){var n=this.storage[t]||(this.storage[t]=[]);n.push(e)},n.prototype.remove=function(t){var e,n;for(e in this.storage)n=this.storage[e],n.some(function(e,r){return e===t?(n.splice(r,1),!0):void 0})},n.prototype.get=function(t){var e,n=[];for(e in this.storage)t&&t!==e&&0!==e.indexOf(t+this.separator)||(n=n.concat(this.storage[e]));return n},n.prototype.getGrouped=function(t){var e,n={};for(e in this.storage)t&&t!==e&&0!==e.indexOf(t+this.separator)||(n[e]=r.call(this.storage[e]));return n},n.prototype.getAll=function(t){var e,n={};for(e in this.storage)t!==e&&0!==e.indexOf(t+this.separator)||(n[e]=r.call(this.storage[e]));return n},n.prototype.run=function(t,e){var n=r.call(arguments,2);this.get(t).forEach(function(t){t.apply(e||this,n)})},t.exports=n},function(t,e){function n(t,e){for(var n=-1,r=t.length;++n=a?u(e):null,p=e.length;f&&(c=o,l=!1,e=f);t:for(;++s-1&&t%1==0&&f>=t}function s(t){return c(t)?t:Object(t)}function c(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}var l=n(5),f=9007199254740991,p=o(r),h=u(),d=i("length");t.exports=p},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function i(t,e){for(var n=-1,r=t.length;++nc))return!1;for(;++s=a,f=l?u():null,p=[];f?(r=o,c=!1):(l=!1,f=e?[]:p);t:for(;++n2?n[u-2]:void 0,s=u>2?n[2]:void 0,c=u>1?n[u-1]:void 0;for("function"==typeof a?(a=i(a,c,5),u-=2):(a="function"==typeof c?c:void 0,u-=a?1:0),s&&o(n[0],n[1],s)&&(a=3>u?void 0:a,u=1);++r-1&&t%1==0&&e>t}function o(t,e){for(var n=-1,r=t.length,i=-1,o=[];++na&&c[0]!==f&&c[a-1]!==f?[]:o(c,f);return a-=h.length,n>a?d(t,e,p,f,void 0,c,h,void 0,void 0,n-a):r(l,this,c)}var u=l(t);return i}function p(t,e,n,r,i,s,c,f,h,g){function m(){for(var C=arguments.length,b=C,_=Array(C);b--;)_[b]=arguments[b];if(r&&(_=u(_,r,i)),s&&(_=a(_,s,c)),E||F){var x=m.placeholder,k=o(_,x);if(C-=k.length,g>C)return d(t,e,p,x,n,_,k,f,h,g-C)}var B=D?n:this,I=A?B[t]:t;return f?_=v(_,f):S&&_.length>1&&_.reverse(),y&&h<_.length&&(_.length=h),this&&this!==w&&this instanceof m&&(I=O||l(I)),I.apply(B,_)}var y=e&k,D=e&C,A=e&b,E=e&_,F=e&x,S=e&B,O=A?void 0:l(t);return m}function h(t,e,n,i){function o(){for(var e=-1,s=arguments.length,c=-1,l=i.length,f=Array(l+s),p=this&&this!==w&&this instanceof o?a:t;++ct?-1:1;return e*j}var n=t%1;return t===t?n?t-n:t:0}function A(t){if(y(t)){var e=m(t.valueOf)?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(N,"");var n=q.test(t);return n||M.test(t)?z(t.slice(2),n?2:8):U.test(t)?$:+t}var w=n(19),C=1,b=2,E=4,_=8,x=16,F=32,S=64,k=128,B=512,O="Expected a function",I=1/0,T=9007199254740991,j=1.7976931348623157e308,$=NaN,P="__lodash_placeholder__",R="[object Function]",L="[object GeneratorFunction]",N=/^\s+|\s+$/g,U=/^[-+]0x[0-9a-f]+$/i,q=/^0b[01]+$/i,M=/^0o[0-7]+$/i,H=/^(?:0|[1-9]\d*)$/,z=parseInt,W=Object.prototype,Y=W.toString,V=Math.max,G=Math.min,K=function(){function t(){}return function(e){if(y(e)){t.prototype=e;var n=new t;t.prototype=void 0}return n||{}}}();t.exports=g},function(t,e){function n(t,e){t=r(t);for(var n=-1,i=e.length,o={};++n0&&(n=e.apply(this,arguments)),1>=t&&(e=void 0),n}}var r="Expected a function";t.exports=n},function(t,e,n){function r(t){return h[t]}function i(t){return!!t&&"object"==typeof t}function o(t){return"symbol"==typeof t||i(t)&&g.call(t)==l}function u(t){if("string"==typeof t)return t;if(null==t)return"";if(o(t))return v?y.call(t):"";var e=t+"";return"0"==e&&1/t==-c?"-0":e}function a(t){return t=u(t),t&&p.test(t)?t.replace(f,r):t}var s=n(19),c=1/0,l="[object Symbol]",f=/[&<>"'`]/g,p=RegExp(f.source),h={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},d=Object.prototype,g=d.toString,v=s.Symbol,m=v?v.prototype:void 0,y=v?m.toString:void 0;t.exports=a},function(t,e,n){function r(t,e){return function(n,r,i){return"function"==typeof r&&void 0===i&&a(n)?t(n,r):e(n,u(r,i,3))}}var i=n(100),o=n(105),u=n(11),a=n(2),s=r(i,o);t.exports=s},function(t,e,n){function r(t,e){return o(t,e,a)}function i(t){return function(e,n,r){return"function"==typeof n&&void 0===r||(n=u(n,r,3)),t(e,n)}}var o=n(31),u=n(11),a=n(5),s=i(r);t.exports=s},function(t,e,n){function r(t,e){return t="number"==typeof t||m.test(t)?+t:-1,e=null==e?A:e,t>-1&&t%1==0&&e>t}function i(t,e){var n=typeof t;if("string"==n&&v.test(t)||"number"==n)return!0;if(d(t))return!1;var r=!g.test(t);return r||null!=e&&t in u(e)}function o(t){return"number"==typeof t&&t>-1&&t%1==0&&A>=t}function u(t){return s(t)?t:Object(t)}function a(t){var e=t?t.length:0;return e?t[e-1]:void 0}function s(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function c(t,e){if(null==t)return!1;var n=D.call(t,e);if(!n&&!i(e)){if(e=p(e),t=1==e.length?t:l(t,f(e,0,-1)),null==t)return!1;e=a(e),n=D.call(t,e)}return n||o(t.length)&&r(e,t.length)&&(d(t)||h(t))}var l=n(32),f=n(33),p=n(38),h=n(12),d=n(2),g=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,v=/^\w*$/,m=/^\d+$/,y=Object.prototype,D=y.hasOwnProperty,A=9007199254740991;t.exports=c},function(t,e,n){function r(t){return function(e){return null==e?void 0:e[t]}}function i(t){return"number"==typeof t&&t>-1&&t%1==0&&d>=t}function o(t,e,n,r){var o=t?g(t):0;return i(o)||(t=u(t),o=t.length),n="number"!=typeof n||r&&c(e,n,r)?0:0>n?h(o+n,0):n||0,"string"==typeof t||!l(t)&&f(t)?o>=n&&t.indexOf(e,n)>-1:!!o&&a(t,e,n)>-1}function u(t){return s(t,p(t))}var a=n(18),s=n(108),c=n(37),l=n(2),f=n(21),p=n(5),h=Math.max,d=9007199254740991,g=r("length");t.exports=o},function(t,e){function n(t){return r(t)&&u.call(t)==i}function r(t){return!!t&&"object"==typeof t}var i="[object Date]",o=Object.prototype,u=o.toString;t.exports=n},function(t,e,n){function r(t){return!!t&&"object"==typeof t}function i(t){return function(e){return null==e?void 0:e[t]}}function o(t){return null!=t&&u(d(t))}function u(t){return"number"==typeof t&&t>-1&&t%1==0&&h>=t}function a(t){return null==t?!0:o(t)&&(c(t)||f(t)||s(t)||r(t)&&l(t.splice))?!t.length:!p(t).length}var s=n(12),c=n(2),l=n(20),f=n(21),p=n(5),h=9007199254740991,d=i("length");t.exports=a},function(t,e,n){function r(t,e,n,r){n="function"==typeof n?o(n,r,3):void 0;var u=n?n(t,e):void 0;return void 0===u?i(t,e,n):!!u}var i=n(106),o=n(11);t.exports=r},function(t,e){function n(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}t.exports=n},function(t,e){function n(t){return"number"==typeof t&&t>-1&&t%1==0&&o>=t}function r(t){return!!t&&"object"==typeof t}function i(t){return r(t)&&n(t.length)&&!!k[O.call(t)]}var o=9007199254740991,u="[object Arguments]",a="[object Array]",s="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Function]",p="[object Map]",h="[object Number]",d="[object Object]",g="[object RegExp]",v="[object Set]",m="[object String]",y="[object WeakMap]",D="[object ArrayBuffer]",A="[object Float32Array]",w="[object Float64Array]",C="[object Int8Array]",b="[object Int16Array]",E="[object Int32Array]",_="[object Uint8Array]",x="[object Uint8ClampedArray]",F="[object Uint16Array]",S="[object Uint32Array]",k={};k[A]=k[w]=k[C]=k[b]=k[E]=k[_]=k[x]=k[F]=k[S]=!0,k[u]=k[a]=k[D]=k[s]=k[c]=k[l]=k[f]=k[p]=k[h]=k[d]=k[g]=k[v]=k[m]=k[y]=!1;var B=Object.prototype,O=B.toString;t.exports=i},function(t,e,n){var r=n(101),i=n(104),o=n(30),u=n(11),a=n(111),s=n(112),c=n(41),l=n(15),f=l(function(t,e){if(null==t)return{};if("function"!=typeof e[0]){var e=r(o(e),String);return a(t,i(c(t),e))}var n=u(e[0],e[1],3);return s(t,function(t,e,r){return!n(t,e,r)})});t.exports=f},function(t,e,n){function r(t){return i(2,t)}var i=n(114);t.exports=r},function(t,e,n){function r(t,e){var n=typeof t;if("string"==n&&d.test(t)||"number"==n)return!0;if(f(t))return!1;var r=!h.test(t);return r||null!=e&&t in i(e)}function i(t){return u(t)?t:Object(t)}function o(t){var e=t?t.length:0;return e?t[e-1]:void 0}function u(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function a(t,e,n){var i=null==t?void 0:t[e];return void 0===i&&(null==t||r(e,t)||(e=l(e),t=1==e.length?t:s(t,c(e,0,-1)),i=null==t?void 0:t[o(e)]),i=void 0===i?n:i),p(i)?i.call(t):i}var s=n(32),c=n(33),l=n(38),f=n(2),p=n(20),h=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,d=/^\w*$/;t.exports=a},function(t,e,n){var r=n(30),i=n(107),o=n(15),u=o(function(t){return i(r(t,!1,!0))});t.exports=u},function(t,e,n){var r;(function(t,i){!function(o){function u(t){for(var e,n,r=[],i=0,o=t.length;o>i;)e=t.charCodeAt(i++),e>=55296&&56319>=e&&o>i?(n=t.charCodeAt(i++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--)):r.push(e);return r}function a(t){for(var e,n=t.length,r=-1,i="";++r65535&&(e-=65536,i+=A(e>>>10&1023|55296),e=56320|1023&e),i+=A(e);return i}function s(t){if(t>=55296&&57343>=t)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function c(t,e){return A(t>>e&63|128)}function l(t){if(0==(4294967168&t))return A(t);var e="";return 0==(4294965248&t)?e=A(t>>6&31|192):0==(4294901760&t)?(s(t),e=A(t>>12&15|224),e+=c(t,6)):0==(4292870144&t)&&(e=A(t>>18&7|240),e+=c(t,12),e+=c(t,6)),e+=A(63&t|128)}function f(t){for(var e,n=u(t),r=n.length,i=-1,o="";++i=y)throw Error("Invalid byte index");var t=255&m[D];if(D++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}function h(){var t,e,n,r,i;if(D>y)throw Error("Invalid byte index");if(D==y)return!1;if(t=255&m[D],D++,0==(128&t))return t;if(192==(224&t)){var e=p();if(i=(31&t)<<6|e,i>=128)return i;throw Error("Invalid continuation byte")}if(224==(240&t)){if(e=p(),n=p(),i=(15&t)<<12|e<<6|n,i>=2048)return s(i),i;throw Error("Invalid continuation byte")}if(240==(248&t)&&(e=p(),n=p(),r=p(),i=(15&t)<<18|e<<12|n<<6|r,i>=65536&&1114111>=i))return i;throw Error("Invalid UTF-8 detected")}function d(t){m=u(t),y=m.length,D=0;for(var e,n=[];(e=h())!==!1;)n.push(e);return a(n)}var g="object"==typeof e&&e,v=("object"==typeof t&&t&&t.exports==g&&t,"object"==typeof i&&i);v.global!==v&&v.window!==v||(o=v);var m,y,D,A=String.fromCharCode,w={version:"2.0.0",encode:f,decode:d};r=function(){return w}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(13)(t),function(){return this}())},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){},function(t,e){}]);
\ No newline at end of file
diff --git a/scripts/src/index.js b/scripts/src/index.js
index a563dad22..2b58a5e86 100644
--- a/scripts/src/index.js
+++ b/scripts/src/index.js
@@ -22,7 +22,9 @@ const elements = {
const user = new UserModel({
clientId: params.clientId || settings.GITHUB_CLIENT_ID,
- proxyHost: params.proxyHost || settings.GATEKEEPER_HOST
+ proxyHost: params.proxyHost || settings.GATEKEEPER_HOST,
+ repoOwner: settings.REPO_OWNER,
+ repoName: settings.REPO_NAME
})
// If user is mid-login, finish the login process
@@ -44,10 +46,10 @@ const router = {
repoBranch: settings.BRANCH,
filePath: settings.FILE_PATH
})
- DatasetView({el: elements.main, file})
+ DatasetView({el: elements.main, user, file})
},
'/datasets/': function () {
- DatasetsView({el: elements.main})
+ DatasetsView({el: elements.main, user})
},
'/add-dataset/': function () {
const file = new FileModel({
diff --git a/scripts/src/models/user.js b/scripts/src/models/user.js
index 88bcc3ebf..469aacfee 100644
--- a/scripts/src/models/user.js
+++ b/scripts/src/models/user.js
@@ -9,17 +9,18 @@ const githubLoginUrl = 'https://github.com/login/oauth/authorize'
export default State.extend({
props: {
oauthToken: 'string',
- username: 'string'
+ username: 'string',
+ isCollaborator: 'boolean'
},
session: {
+ repoOwner: 'string',
+ repoName: 'string',
clientId: 'string',
proxyHost: 'string'
},
initialize: function () {
// If login cookies saved, set the user model to them
- this.oauthToken = Cookies.get('oauth-token')
- const userData = Cookies.getJSON('user-data')
- if (userData) this.username = userData.login
+ this.set(Cookies.getJSON('jkan'))
},
initiateLogin: function () {
const returnParams = {clientId: this.clientId, proxyHost: this.proxyHost}
@@ -31,15 +32,20 @@ export default State.extend({
window.location.href = githubLoginUrl + '?' + $.param(redirectParams)
},
finishLogin: function (authCode) {
- this._verify(authCode)
+ return this._verify(authCode)
.then((oauthToken) => {
this.set('oauthToken', oauthToken)
- Cookies.set('oauth-token', oauthToken)
+ Cookies.set('jkan', this.serialize())
this._getUser(oauthToken)
.then((userData) => {
this.set('username', userData.login)
- Cookies.set('user-data', userData)
+ Cookies.set('jkan', this.serialize())
+ this._isCollaborator(userData.login)
+ .then(() => {
+ this.set('isCollaborator', true)
+ Cookies.set('jkan', this.serialize())
+ }).catch(() => this.set('isCollaborator', false))
}).catch(() => console.error('Error fetching user info'))
}).catch(() => console.error('Error verifying auth code'))
},
@@ -58,8 +64,7 @@ export default State.extend({
})
},
logout: function () {
- Cookies.remove('oauth-token')
- Cookies.remove('user-data')
+ Cookies.remove('jkan')
},
_getUser: function () {
return new Promise((resolve, reject) => {
@@ -73,5 +78,18 @@ export default State.extend({
else resolve(userData)
})
})
+ },
+ _isCollaborator: function (username) {
+ return new Promise((resolve, reject) => {
+ const github = new Github({
+ token: this.oauthToken,
+ auth: 'oauth'
+ })
+ const repo = github.getRepo(this.repoOwner, this.repoName)
+ repo.isCollaborator(username, (err) => {
+ if (err) reject(err)
+ else resolve()
+ })
+ })
}
})
diff --git a/scripts/src/views/dataset.js b/scripts/src/views/dataset.js
index f06c34bc4..d35045385 100644
--- a/scripts/src/views/dataset.js
+++ b/scripts/src/views/dataset.js
@@ -37,6 +37,12 @@ export default function (opts) {
e.preventDefault()
})
+ // If user is logged in and a collaborator, show the Edit Dataset button
+ if (opts.user.username && opts.user.isCollaborator) elements.editButton.show()
+ opts.user.on('change', (user) => {
+ if (user.username && user.isCollaborator) elements.editButton.show()
+ })
+
// Edit/Cancel buttons toggle read/edit views
elements.editButton.add(elements.cancelButton).on('click', (e) => {
switchView()
diff --git a/scripts/src/views/datasets.js b/scripts/src/views/datasets.js
index 1209dd422..08e35b3c2 100644
--- a/scripts/src/views/datasets.js
+++ b/scripts/src/views/datasets.js
@@ -16,7 +16,8 @@ export default function (opts) {
organizationsItems: queryByHook('organizations-items', opts.el),
datasetsItems: queryByHook('datasets-items', opts.el),
datasetsCount: queryByHook('datasets-count', opts.el),
- searchQuery: queryByHook('search-query', opts.el)
+ searchQuery: queryByHook('search-query', opts.el),
+ addDatasetBtn: queryByHook('add-dataset-btn', opts.el)
}
$.getJSON(datasetsPath).done(function (datasets) {
@@ -59,6 +60,12 @@ export default function (opts) {
}).fail(function () {
console.error('Error fetching', datasetsPath)
})
+
+ // If user is logged in and a collaborator, show the Add Dataset button
+ if (opts.user.username && opts.user.isCollaborator) elements.addDatasetBtn.show()
+ opts.user.on('change', (user) => {
+ if (user.username && user.isCollaborator) elements.addDatasetBtn.show()
+ })
}
// Given an array of datasets, returns an array of their organizations with counts
diff --git a/scripts/src/views/nav.js b/scripts/src/views/nav.js
index cd451d62e..bc9e895d8 100644
--- a/scripts/src/views/nav.js
+++ b/scripts/src/views/nav.js
@@ -1,4 +1,6 @@
import 'bootstrap/js/dropdown'
+import 'bootstrap/js/tooltip'
+import 'bootstrap/js/popover'
import {queryByHook} from '../util'
@@ -7,8 +9,11 @@ export default function (opts) {
const elements = {
loginLink: queryByHook('login-link', opts.el),
logoutLink: queryByHook('logout-link', opts.el),
+ adminLinkListItem: queryByHook('admin-link-list-item', opts.el),
userName: queryByHook('user-name', opts.el),
- userDropdown: queryByHook('user-dropdown', opts.el)
+ userDropdown: queryByHook('user-dropdown', opts.el),
+ userDropdownLink: queryByHook('user-dropdown-link', opts.el),
+ userIssue: queryByHook('user-issue', opts.el)
}
elements.loginLink.on('click', function (e) {
@@ -23,11 +28,24 @@ export default function (opts) {
})
if (opts.user.username) setUserInfo(opts.user)
- opts.user.on('change:username', setUserInfo)
+ opts.user.on('change', (user) => {
+ if (user.username) setUserInfo(user)
+ })
function setUserInfo (user) {
elements.loginLink.hide()
elements.userName.text(user.username)
elements.userDropdown.removeClass('hidden')
+ if (user.isCollaborator) {
+ elements.adminLinkListItem.show()
+ } else if (user.isCollaborator === false) { // don't catch undefined
+ elements.userIssue.show()
+ elements.userDropdownLink.popover({
+ content: 'You do not have collaborator access to this repository, so you will not be able to make any changes.',
+ placement: 'bottom',
+ trigger: 'hover',
+ container: 'body'
+ })
+ }
}
}