diff --git a/pkg/arvo/app/landscape/js/bundle/index.d68f6086306286b082be.js b/pkg/arvo/app/landscape/js/bundle/index.d68f6086306286b082be.js new file mode 100644 index 000000000..e23cf01f7 --- /dev/null +++ b/pkg/arvo/app/landscape/js/bundle/index.d68f6086306286b082be.js @@ -0,0 +1,81 @@ +!function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=1550)}([function(t,e,n){"use strict";t.exports=n(493)},function(t,e,n){var i=n(288),r=n(512),a=n(194),o=n(290);t.exports=function(t,e){return i(t)||r(t,e)||a(t,e)||o()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){t.exports=n(610)},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return Et})),n.d(e,"b",(function(){return Nt}));var i=n(89),r=n(0),a=n.n(r),o=n(459),u=n.n(o),s=n(460),l=n(461),c=n(285),h=n(83),d=n.n(h);function p(){return(p=Object.assign||function(t){for(var e=1;e1?e-1:0),i=1;i0?" Args: "+n.join(", "):""))}var M=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=t.prototype;return e.indexOfGroup=function(t){for(var e=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,r=i;t>=r;)(r<<=1)<0&&L(16,""+t);this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var a=i;a=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],i=this.indexOfGroup(t),r=i+n,a=i;a=0;n--){var i=e[n];if(i&&1===i.nodeType&&i.hasAttribute(k))return i}}(n),a=void 0!==r?r.nextSibling:null;i.setAttribute(k,"active"),i.setAttribute("data-styled-version","5.2.3");var o=_();return o&&i.setAttribute("nonce",o),n.insertBefore(i,a),i},J=function(){function t(t){var e=this.element=H(t);e.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,i=e.length;n=0){var n=document.createTextNode(e),i=this.nodes[t];return this.element.insertBefore(n,i||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t0&&(l+=t+",")})),i+=""+u+s+'{content:"'+l+'"}/*!sc*/\n'}}}return i}(this)},t}(),K=/(a)(d)/gi,W=function(t){return String.fromCharCode(t+(t>25?39:97))};function I(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=W(e%52)+n;return(W(e%52)+n).replace(K,"$1-$2")}var z=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},Q=function(t){return z(5381,t)};function q(t){for(var e=0;e>>0);if(!e.hasNameForId(i,o)){var u=n(a,"."+o,void 0,i);e.insertRules(i,o,u)}r.push(o),this.staticRulesId=o}else{for(var s=this.rules.length,l=z(this.baseHash,n.hash),c="",h=0;h>>0);if(!e.hasNameForId(i,m)){var g=n(c,"."+m,void 0,i);e.insertRules(i,m,g)}r.push(m)}}return r.join(" ")},t}(),$=/^\s*\/\/.*$/gm,tt=[":","[",".","#"];function et(t){var e,n,i,r,a=void 0===t?y:t,o=a.options,u=void 0===o?y:o,l=a.plugins,c=void 0===l?g:l,h=new s.a(u),d=[],p=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(n,i,r,a,o,u,s,l,c,h){switch(n){case 1:if(0===c&&64===i.charCodeAt(0))return t(i+";"),"";break;case 2:if(0===l)return i+"/*|*/";break;case 3:switch(l){case 102:case 112:return t(r[0]+i),"";default:return i+(0===h?"/*|*/":"")}case-2:i.split("/*|*/}").forEach(e)}}}((function(t){d.push(t)})),f=function(t,i,a){return 0===i&&-1!==tt.indexOf(a[n.length])||a.match(r)?t:"."+e};function m(t,a,o,u){void 0===u&&(u="&");var s=t.replace($,""),l=a&&o?o+" "+a+" { "+s+" }":s;return e=u,n=a,i=new RegExp("\\"+n+"\\b","g"),r=new RegExp("(\\"+n+"\\b){2,}"),h(o||!a?"":a,l)}return h.use([].concat(c,[function(t,e,r){2===t&&r.length&&r[0].lastIndexOf(n)>0&&(r[0]=r[0].replace(i,f))},p,function(t){if(-2===t){var e=d;return d=[],e}}])),m.hash=c.length?c.reduce((function(t,e){return e.name||L(15),z(t,e.name)}),5381).toString():"",m}var nt=a.a.createContext(),it=(nt.Consumer,a.a.createContext()),rt=(it.Consumer,new X),at=et();function ot(){return Object(r.useContext)(nt)||rt}function ut(){return Object(r.useContext)(it)||at}function st(t){var e=Object(r.useState)(t.stylisPlugins),n=e[0],i=e[1],o=ot(),s=Object(r.useMemo)((function(){var e=o;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),l=Object(r.useMemo)((function(){return et({options:{prefix:!t.disableVendorPrefixes},plugins:n})}),[t.disableVendorPrefixes,n]);return Object(r.useEffect)((function(){u()(n,t.stylisPlugins)||i(t.stylisPlugins)}),[t.stylisPlugins]),a.a.createElement(nt.Provider,{value:s},a.a.createElement(it.Provider,{value:l},t.children))}var lt=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=at);var i=n.name+e.hash;t.hasNameForId(n.id,i)||t.insertRules(n.id,i,e(n.rules,i,"@keyframes"))},this.toString=function(){return L(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=at),this.name+t.hash},t}(),ct=/([A-Z])/,ht=/([A-Z])/g,dt=/^ms-/,pt=function(t){return"-"+t.toLowerCase()};function ft(t){return ct.test(t)?t.replace(ht,pt).replace(dt,"-ms-"):t}var mt=function(t){return null==t||!1===t||""===t};function gt(t,e,n,i){if(Array.isArray(t)){for(var r,a=[],o=0,u=t.length;o1?e-1:0),i=1;i?@[\\\]^`{|}~-]+/g,wt=/(^-|-$)/g;function kt(t){return t.replace(vt,"-").replace(wt,"")}var xt=function(t){return I(Q(t)>>>0)};function Ct(t){return"string"==typeof t&&!0}var St=function(t){return"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},Lt=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t};function Mt(t,e,n){var i=t[n];St(e)&&St(i)?Tt(i,e):t[n]=e}function Tt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0||(r[n]=t[n]);return r}(e,["componentId"]),a=i&&i+"-"+(Ct(t)?t:kt(v(t)));return Pt(t,p({},r,{attrs:x,componentId:a}),n)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Tt({},t.defaultProps,e):e}}),S.toString=function(){return"."+S.styledComponentId},o&&d()(S,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Dt=function(t){return function t(e,n,r){if(void 0===r&&(r=y),!Object(i.isValidElementType)(n))return L(1,String(n));var a=function(){return e(n,r,yt.apply(void 0,arguments))};return a.withConfig=function(i){return t(e,n,p({},r,{},i))},a.attrs=function(i){return t(e,n,p({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},a}(Pt,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(t){Dt[t]=Dt(t)}));var jt=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=q(t),X.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(t,e,n,i){var r=i(gt(this.rules,e,n,i).join(""),""),a=this.componentId+t;n.insertRules(a,a,r)},e.removeStyles=function(t,e){e.clearRules(this.componentId+t)},e.renderStyles=function(t,e,n,i){t>2&&X.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,i)},t}();function Nt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i"+e+""},this.getStyleTags=function(){return t.sealed?L(2):t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)return L(2);var n=((e={})[k]="",e["data-styled-version"]="5.2.3",e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),i=_();return i&&(n.nonce=i),[a.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new X({isServer:!0}),this.sealed=!1}var e=t.prototype;e.collectStyles=function(t){return this.sealed?L(2):a.a.createElement(st,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return L(3)}}();e.c=Dt}).call(this,n(50))},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;e=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var i=n(152);t.exports=function(t,e,n){var r=null==t?void 0:i(t,e);return void 0===r?n:r}},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(t,e){for(var n=0;n0?Math.floor(t):Math.ceil(t)}function g(t,n){var i,r,a=t.length,o=n.length,u=new Array(a),s=0,l=e;for(r=0;r=l?1:0,u[r]=i-s*l;for(;r0&&u.push(s),u}function y(t,e){return t.length>=e.length?g(t,e):g(e,t)}function b(t,n){var i,r,a=t.length,o=new Array(a),u=e;for(r=0;r0;)o[r++]=n%u,n=Math.floor(n/u);return o}function v(t,e){var n,i,r=t.length,a=e.length,o=new Array(r),u=0;for(n=0;n0;)o[r++]=s%u,s=Math.floor(s/u);return o}function C(t,e){for(var n=[];e-- >0;)n.push(0);return n.concat(t)}function S(t,n,i){return new u(t=0;--n)r=(a=1e7*r+t[n])-(i=m(a/e))*e,u[n]=0|i;return[u,0|r]}function T(t,n){var i,r=K(n);if(a)return[new l(t.value/r.value),new l(t.value%r.value)];var c,g=t.value,y=r.value;if(0===y)throw new Error("Cannot divide by zero");if(t.isSmall)return r.isSmall?[new s(m(g/y)),new s(g%y)]:[o[0],t];if(r.isSmall){if(1===y)return[t,o[0]];if(-1==y)return[t.negate(),o[0]];var b=Math.abs(y);if(b=0;r--){for(i=p-1,b[r+h]!==g&&(i=Math.floor((b[r+h]*p+b[r+h-1])/g)),a=0,o=0,s=v.length,u=0;us&&(r=1e7*(r+1)),n=Math.ceil(r/a);do{if(B(o=x(e,n),c)<=0)break;n--}while(n);l.push(n),c=v(c,o)}return l.reverse(),[d(l),d(c)]}(g,y))[0];var C=t.sign!==r.sign,S=i[1],L=t.sign;return"number"==typeof c?(C&&(c=-c),c=new s(c)):c=new u(c,C),"number"==typeof S?(L&&(S=-S),S=new s(S)):S=new u(S,L),[c,S]}function B(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var n=t.length-1;n>=0;n--)if(t[n]!==e[n])return t[n]>e[n]?1:-1;return 0}function E(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function G(t,e){for(var n,i,a,o=t.prev(),u=o,s=0;u.isEven();)u=u.divide(2),s++;t:for(i=0;i=0?i=v(t,e):(i=v(e,t),n=!n),"number"==typeof(i=d(i))?(n&&(i=-i),new s(i)):new u(i,n)}(n,i,this.sign)},u.prototype.minus=u.prototype.subtract,s.prototype.subtract=function(t){var e=K(t),n=this.value;if(n<0!==e.sign)return this.add(e.negate());var i=e.value;return e.isSmall?new s(n-i):w(i,Math.abs(n),n>=0)},s.prototype.minus=s.prototype.subtract,l.prototype.subtract=function(t){return new l(this.value-K(t).value)},l.prototype.minus=l.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},s.prototype.negate=function(){var t=this.sign,e=new s(-this.value);return e.sign=!t,e},l.prototype.negate=function(){return new l(-this.value)},u.prototype.abs=function(){return new u(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},l.prototype.abs=function(){return new l(this.value>=0?this.value:-this.value)},u.prototype.multiply=function(t){var n,i,r,a=K(t),s=this.value,l=a.value,c=this.sign!==a.sign;if(a.isSmall){if(0===l)return o[0];if(1===l)return this;if(-1===l)return this.negate();if((n=Math.abs(l))0?function t(e,n){var i=Math.max(e.length,n.length);if(i<=30)return k(e,n);i=Math.ceil(i/2);var r=e.slice(i),a=e.slice(0,i),o=n.slice(i),u=n.slice(0,i),s=t(a,u),l=t(r,o),c=t(y(a,r),y(u,o)),h=y(y(s,C(v(v(c,s),l),i)),C(l,2*i));return p(h),h}(s,l):k(s,l),c)},u.prototype.times=u.prototype.multiply,s.prototype._multiplyBySmall=function(t){return c(t.value*this.value)?new s(t.value*this.value):S(Math.abs(t.value),h(Math.abs(this.value)),this.sign!==t.sign)},u.prototype._multiplyBySmall=function(t){return 0===t.value?o[0]:1===t.value?this:-1===t.value?this.negate():S(Math.abs(t.value),this.value,this.sign!==t.sign)},s.prototype.multiply=function(t){return K(t)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,l.prototype.multiply=function(t){return new l(this.value*K(t).value)},l.prototype.times=l.prototype.multiply,u.prototype.square=function(){return new u(L(this.value),!1)},s.prototype.square=function(){var t=this.value*this.value;return c(t)?new s(t):new u(L(h(Math.abs(this.value))),!1)},l.prototype.square=function(t){return new l(this.value*this.value)},u.prototype.divmod=function(t){var e=T(this,t);return{quotient:e[0],remainder:e[1]}},l.prototype.divmod=s.prototype.divmod=u.prototype.divmod,u.prototype.divide=function(t){return T(this,t)[0]},l.prototype.over=l.prototype.divide=function(t){return new l(this.value/K(t).value)},s.prototype.over=s.prototype.divide=u.prototype.over=u.prototype.divide,u.prototype.mod=function(t){return T(this,t)[1]},l.prototype.mod=l.prototype.remainder=function(t){return new l(this.value%K(t).value)},s.prototype.remainder=s.prototype.mod=u.prototype.remainder=u.prototype.mod,u.prototype.pow=function(t){var e,n,i,r=K(t),a=this.value,u=r.value;if(0===u)return o[1];if(0===a)return o[0];if(1===a)return o[1];if(-1===a)return r.isEven()?o[1]:o[-1];if(r.sign)return o[0];if(!r.isSmall)throw new Error("The exponent "+r.toString()+" is too large.");if(this.isSmall&&c(e=Math.pow(a,u)))return new s(m(e));for(n=this,i=o[1];!0&u&&(i=i.times(n),--u),0!==u;)u/=2,n=n.square();return i},s.prototype.pow=u.prototype.pow,l.prototype.pow=function(t){var e=K(t),n=this.value,i=e.value,r=BigInt(0),a=BigInt(1),u=BigInt(2);if(i===r)return o[1];if(n===r)return o[0];if(n===a)return o[1];if(n===BigInt(-1))return e.isEven()?o[1]:o[-1];if(e.isNegative())return new l(r);for(var s=this,c=o[1];(i&a)===a&&(c=c.times(s),--i),i!==r;)i/=u,s=s.square();return c},u.prototype.modPow=function(t,e){if(t=K(t),(e=K(e)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=o[1],i=this.mod(e);for(t.isNegative()&&(t=t.multiply(o[-1]),i=i.modInv(e));t.isPositive();){if(i.isZero())return o[0];t.isOdd()&&(n=n.multiply(i).mod(e)),t=t.divide(2),i=i.square().mod(e)}return n},l.prototype.modPow=s.prototype.modPow=u.prototype.modPow,u.prototype.compareAbs=function(t){var e=K(t),n=this.value,i=e.value;return e.isSmall?1:B(n,i)},s.prototype.compareAbs=function(t){var e=K(t),n=Math.abs(this.value),i=e.value;return e.isSmall?n===(i=Math.abs(i))?0:n>i?1:-1:-1},l.prototype.compareAbs=function(t){var e=this.value,n=K(t).value;return(e=e>=0?e:-e)===(n=n>=0?n:-n)?0:e>n?1:-1},u.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=K(t),n=this.value,i=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:B(n,i)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,s.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=K(t),n=this.value,i=e.value;return e.isSmall?n==i?0:n>i?1:-1:n<0!==e.sign?n<0?-1:1:n<0?1:-1},s.prototype.compareTo=s.prototype.compare,l.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value,n=K(t).value;return e===n?0:e>n?1:-1},l.prototype.compareTo=l.prototype.compare,u.prototype.equals=function(t){return 0===this.compare(t)},l.prototype.eq=l.prototype.equals=s.prototype.eq=s.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(t){return 0!==this.compare(t)},l.prototype.neq=l.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(t){return this.compare(t)>0},l.prototype.gt=l.prototype.greater=s.prototype.gt=s.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(t){return this.compare(t)<0},l.prototype.lt=l.prototype.lesser=s.prototype.lt=s.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},l.prototype.geq=l.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},l.prototype.leq=l.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return 0==(1&this.value[0])},s.prototype.isEven=function(){return 0==(1&this.value)},l.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},u.prototype.isOdd=function(){return 1==(1&this.value[0])},s.prototype.isOdd=function(){return 1==(1&this.value)},l.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},u.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},l.prototype.isPositive=s.prototype.isPositive,u.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},l.prototype.isNegative=s.prototype.isNegative,u.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},l.prototype.isUnit=function(){return this.abs().value===BigInt(1)},u.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},l.prototype.isZero=function(){return this.value===BigInt(0)},u.prototype.isDivisibleBy=function(t){var e=K(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},l.prototype.isDivisibleBy=s.prototype.isDivisibleBy=u.prototype.isDivisibleBy,u.prototype.isPrime=function(t){var e=E(this);if(void 0!==e)return e;var n=this.abs(),i=n.bitLength();if(i<=64)return G(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var a=Math.log(2)*i.toJSNumber(),o=Math.ceil(!0===t?2*Math.pow(a,2):a),u=[],s=0;s-n?new s(t-1):new u(i,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var P=[1];2*P[P.length-1]<=e;)P.push(2*P[P.length-1]);var D=P.length,j=P[D-1];function N(t){return Math.abs(t)<=e}function A(t,e,n){e=K(e);for(var i=t.isNegative(),a=e.isNegative(),o=i?t.not():t,u=a?e.not():e,s=0,l=0,c=null,h=null,d=[];!o.isZero()||!u.isZero();)s=(c=T(o,j))[1].toJSNumber(),i&&(s=j-1-s),l=(h=T(u,j))[1].toJSNumber(),a&&(l=j-1-l),o=c[0],u=h[0],d.push(n(s,l));for(var p=0!==n(i?1:0,a?1:0)?r(-1):r(0),f=d.length-1;f>=0;f-=1)p=p.multiply(j).add(r(d[f]));return p}u.prototype.shiftLeft=function(t){var e=K(t).toJSNumber();if(!N(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var n=this;if(n.isZero())return n;for(;e>=D;)n=n.multiply(j),e-=D-1;return n.multiply(P[e])},l.prototype.shiftLeft=s.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(t){var e,n=K(t).toJSNumber();if(!N(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var i=this;n>=D;){if(i.isZero()||i.isNegative()&&i.isUnit())return i;i=(e=T(i,j))[1].isNegative()?e[0].prev():e[0],n-=D-1}return(e=T(i,P[n]))[1].isNegative()?e[0].prev():e[0]},l.prototype.shiftRight=s.prototype.shiftRight=u.prototype.shiftRight,u.prototype.not=function(){return this.negate().prev()},l.prototype.not=s.prototype.not=u.prototype.not,u.prototype.and=function(t){return A(this,t,(function(t,e){return t&e}))},l.prototype.and=s.prototype.and=u.prototype.and,u.prototype.or=function(t){return A(this,t,(function(t,e){return t|e}))},l.prototype.or=s.prototype.or=u.prototype.or,u.prototype.xor=function(t){return A(this,t,(function(t,e){return t^e}))},l.prototype.xor=s.prototype.xor=u.prototype.xor;function Y(t){var n=t.value,i="number"==typeof n?n|1<<30:"bigint"==typeof n?n|BigInt(1<<30):n[0]+n[1]*e|1073758208;return i&-i}function _(t,e){return t=K(t),e=K(e),t.greater(e)?t:e}function H(t,e){return t=K(t),e=K(e),t.lesser(e)?t:e}function J(t,e){if(t=K(t).abs(),e=K(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var n,i,r=o[1];t.isEven()&&e.isEven();)n=H(Y(t),Y(e)),t=t.divide(n),e=e.divide(n),r=r.multiply(n);for(;t.isEven();)t=t.divide(Y(t));do{for(;e.isEven();)e=e.divide(Y(e));t.greater(e)&&(i=e,e=t,t=i),e=e.subtract(t)}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}u.prototype.bitLength=function(){var t=this;return t.compareTo(r(0))<0&&(t=t.negate().subtract(r(1))),0===t.compareTo(r(0))?r(0):r(function t(e,n){if(n.compareTo(e)<=0){var i=t(e,n.square(n)),a=i.p,o=i.e,u=a.multiply(n);return u.compareTo(e)<=0?{p:u,e:2*o+1}:{p:a,e:2*o}}return{p:r(1),e:0}}(t,r(2)).e).add(r(1))},l.prototype.bitLength=s.prototype.bitLength=u.prototype.bitLength;var O=function(t,e,n,i){n=n||"0123456789abcdefghijklmnopqrstuvwxyz",t=String(t),i||(t=t.toLowerCase(),n=n.toLowerCase());var r,a=t.length,o=Math.abs(e),u={};for(r=0;r=o)){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=K(e);var s=[],l="-"===t[0];for(r=l?1:0;r"!==t[r]&&r=0;i--)r=r.add(t[i].times(a)),a=a.times(e);return n?r.negate():r}function F(t,e){if((e=r(e)).isZero()){if(t.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:!1};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var i=!1;if(t.isNegative()&&e.isPositive()&&(i=!0,t=t.abs()),e.isUnit())return t.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a,o=[],u=t;u.isNegative()||u.compareAbs(e)>=0;){a=u.divmod(e),u=a.quotient;var s=a.remainder;s.isNegative()&&(s=e.minus(s).abs(),u=u.next()),o.push(s.toJSNumber())}return o.push(u.toJSNumber()),{value:o.reverse(),isNegative:i}}function R(t,e,n){var i=F(t,e);return(i.isNegative?"-":"")+i.value.map((function(t){return function(t,e){return t<(e=e||"0123456789abcdefghijklmnopqrstuvwxyz").length?e[t]:"<"+t+">"}(t,n)})).join("")}function X(t){if(c(+t)){var e=+t;if(e===m(e))return a?new l(BigInt(e)):new s(e);throw new Error("Invalid integer: "+t)}var n="-"===t[0];n&&(t=t.slice(1));var i=t.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(2===i.length){var r=i[1];if("+"===r[0]&&(r=r.slice(1)),(r=+r)!==m(r)||!c(r))throw new Error("Invalid integer: "+r+" is not a valid exponent.");var o=i[0],h=o.indexOf(".");if(h>=0&&(r-=o.length-h-1,o=o.slice(0,h)+o.slice(h+1)),r<0)throw new Error("Cannot include negative exponent part for integers");t=o+=new Array(r+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);if(a)return new l(BigInt(n?"-"+t:t));for(var d=[],f=t.length,g=f-7;f>0;)d.push(+t.slice(g,f)),(g-=7)<0&&(g=0),f-=7;return p(d),new u(d,n)}function K(t){return"number"==typeof t?function(t){if(a)return new l(BigInt(t));if(c(t)){if(t!==m(t))throw new Error(t+" is not an integer.");return new s(t)}return X(t.toString())}(t):"string"==typeof t?X(t):"bigint"==typeof t?new l(t):t}u.prototype.toArray=function(t){return F(this,t)},s.prototype.toArray=function(t){return F(this,t)},l.prototype.toArray=function(t){return F(this,t)},u.prototype.toString=function(t,e){if(void 0===t&&(t=10),10!==t)return R(this,t,e);for(var n,i=this.value,r=i.length,a=String(i[--r]);--r>=0;)n=String(i[r]),a+="0000000".slice(n.length)+n;return(this.sign?"-":"")+a},s.prototype.toString=function(t,e){return void 0===t&&(t=10),10!=t?R(this,t,e):String(this.value)},l.prototype.toString=s.prototype.toString,l.prototype.toJSON=u.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},u.prototype.valueOf=function(){return parseInt(this.toString(),10)},u.prototype.toJSNumber=u.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,l.prototype.valueOf=l.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var W=0;W<1e3;W++)o[W]=K(W),W>0&&(o[-W]=K(-W));return o.one=o[1],o.zero=o[0],o.minusOne=o[-1],o.max=_,o.min=H,o.gcd=J,o.lcm=function(t,e){return t=K(t).abs(),e=K(e).abs(),t.divide(J(t,e)).multiply(e)},o.isInstance=function(t){return t instanceof u||t instanceof s||t instanceof l},o.randBetween=function(t,n,i){t=K(t),n=K(n);var r=i||Math.random,a=H(t,n),u=_(t,n).subtract(a).add(1);if(u.isSmall)return a.add(Math.floor(r()*u));for(var s=F(u,e).value,l=[],c=!0,h=0;h>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,L=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)u(t,e)&&n.push(e);return n};var D=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,j=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N={},A={};function Y(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(A[t]=r),e&&(A[e[0]]=function(){return P(r.apply(this,arguments),e[1],e[2])}),n&&(A[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function _(t,e){return t.isValid()?(e=H(e,t.localeData()),N[e]=N[e]||function(t){var e,n,i,r=t.match(D);for(e=0,n=r.length;e=0&&j.test(t);)t=t.replace(j,i),j.lastIndex=0,n-=1;return t}var J={};function O(t,e){var n=t.toLowerCase();J[n]=J[n+"s"]=J[e]=t}function Z(t){return"string"==typeof t?J[t]||J[t.toLowerCase()]:void 0}function F(t){var e,n,i={};for(n in t)u(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var R={};function X(t,e){R[t]=e}function K(t){return t%4==0&&t%100!=0||t%400==0}function W(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function I(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=W(e)),n}function z(t,e){return function(n){return null!=n?(q(this,t,n),r.updateOffset(this,e),this):Q(this,t)}}function Q(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function q(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&K(t.year())&&1===t.month()&&29===t.date()?(n=I(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),xt(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var U,V=/\d/,$=/\d\d/,tt=/\d{3}/,et=/\d{4}/,nt=/[+-]?\d{6}/,it=/\d\d?/,rt=/\d\d\d\d?/,at=/\d\d\d\d\d\d?/,ot=/\d{1,3}/,ut=/\d{1,4}/,st=/[+-]?\d{1,6}/,lt=/\d+/,ct=/[+-]?\d+/,ht=/Z|[+-]\d\d:?\d\d/gi,dt=/Z|[+-]\d\d(?::?\d\d)?/gi,pt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ft(t,e,n){U[t]=B(e)?e:function(t,i){return t&&n?n:e}}function mt(t,e){return u(U,t)?U[t](e._strict,e._locale):new RegExp(gt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function gt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}U={};var yt,bt={};function vt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),c(e)&&(i=function(t,n){n[e]=I(t)}),n=0;n68?1900:2e3)};var jt=z("FullYear",!0);function Nt(t,e,n,i,r,a,o){var u;return t<100&&t>=0?(u=new Date(t+400,e,n,i,r,a,o),isFinite(u.getFullYear())&&u.setFullYear(t)):u=new Date(t,e,n,i,r,a,o),u}function At(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Yt(t,e,n){var i=7+e-n;return-(7+At(t,0,i).getUTCDay()-e)%7+i-1}function _t(t,e,n,i,r){var a,o,u=1+7*(e-1)+(7+n-i)%7+Yt(t,i,r);return u<=0?o=Dt(a=t-1)+u:u>Dt(t)?(a=t+1,o=u-Dt(t)):(a=t,o=u),{year:a,dayOfYear:o}}function Ht(t,e,n){var i,r,a=Yt(t.year(),e,n),o=Math.floor((t.dayOfYear()-a-1)/7)+1;return o<1?i=o+Jt(r=t.year()-1,e,n):o>Jt(t.year(),e,n)?(i=o-Jt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=o),{week:i,year:r}}function Jt(t,e,n){var i=Yt(t,e,n),r=Yt(t+1,e,n);return(Dt(t)-i+r)/7}function Ot(t,e){return t.slice(e,7).concat(t.slice(0,e))}Y("w",["ww",2],"wo","week"),Y("W",["WW",2],"Wo","isoWeek"),O("week","w"),O("isoWeek","W"),X("week",5),X("isoWeek",5),ft("w",it),ft("ww",it,$),ft("W",it),ft("WW",it,$),wt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=I(t)})),Y("d",0,"do","day"),Y("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),Y("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),Y("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),Y("e",0,0,"weekday"),Y("E",0,0,"isoWeekday"),O("day","d"),O("weekday","e"),O("isoWeekday","E"),X("day",11),X("weekday",11),X("isoWeekday",11),ft("d",it),ft("e",it),ft("E",it),ft("dd",(function(t,e){return e.weekdaysMinRegex(t)})),ft("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),ft("dddd",(function(t,e){return e.weekdaysRegex(t)})),wt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:m(n).invalidWeekday=t})),wt(["d","e","E"],(function(t,e,n,i){e[i]=I(t)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ft="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Rt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Xt=pt,Kt=pt,Wt=pt;function It(t,e,n){var i,r,a,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)a=f([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(a,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,o))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,o))?r:null:"dddd"===e?-1!==(r=yt.call(this._weekdaysParse,o))||-1!==(r=yt.call(this._shortWeekdaysParse,o))||-1!==(r=yt.call(this._minWeekdaysParse,o))?r:null:"ddd"===e?-1!==(r=yt.call(this._shortWeekdaysParse,o))||-1!==(r=yt.call(this._weekdaysParse,o))||-1!==(r=yt.call(this._minWeekdaysParse,o))?r:null:-1!==(r=yt.call(this._minWeekdaysParse,o))||-1!==(r=yt.call(this._weekdaysParse,o))||-1!==(r=yt.call(this._shortWeekdaysParse,o))?r:null}function zt(){function t(t,e){return e.length-t.length}var e,n,i,r,a,o=[],u=[],s=[],l=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),i=gt(this.weekdaysMin(n,"")),r=gt(this.weekdaysShort(n,"")),a=gt(this.weekdays(n,"")),o.push(i),u.push(r),s.push(a),l.push(i),l.push(r),l.push(a);o.sort(t),u.sort(t),s.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function Qt(){return this.hours()%12||12}function qt(t,e){Y(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Ut(t,e){return e._meridiemParse}Y("H",["HH",2],0,"hour"),Y("h",["hh",2],0,Qt),Y("k",["kk",2],0,(function(){return this.hours()||24})),Y("hmm",0,0,(function(){return""+Qt.apply(this)+P(this.minutes(),2)})),Y("hmmss",0,0,(function(){return""+Qt.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),Y("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),Y("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),qt("a",!0),qt("A",!1),O("hour","h"),X("hour",13),ft("a",Ut),ft("A",Ut),ft("H",it),ft("h",it),ft("k",it),ft("HH",it,$),ft("hh",it,$),ft("kk",it,$),ft("hmm",rt),ft("hmmss",at),ft("Hmm",rt),ft("Hmmss",at),vt(["H","HH"],3),vt(["k","kk"],(function(t,e,n){var i=I(t);e[3]=24===i?0:i})),vt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),vt(["h","hh"],(function(t,e,n){e[3]=I(t),m(n).bigHour=!0})),vt("hmm",(function(t,e,n){var i=t.length-2;e[3]=I(t.substr(0,i)),e[4]=I(t.substr(i)),m(n).bigHour=!0})),vt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=I(t.substr(0,i)),e[4]=I(t.substr(i,2)),e[5]=I(t.substr(r)),m(n).bigHour=!0})),vt("Hmm",(function(t,e,n){var i=t.length-2;e[3]=I(t.substr(0,i)),e[4]=I(t.substr(i))})),vt("Hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=I(t.substr(0,i)),e[4]=I(t.substr(i,2)),e[5]=I(t.substr(r))}));var Vt,$t=z("Hours",!0),te={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ct,monthsShort:St,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:Rt,weekdaysShort:Ft,meridiemParse:/[ap]\.?m?\.?/i},ee={},ne={};function ie(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0;){if(i=ae(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&ie(r,n)>=e-1)break;e--}a++}return Vt}(t)}function le(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>xt(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),m(t)._overflowWeeks&&-1===e&&(e=7),m(t)._overflowWeekday&&-1===e&&(e=8),m(t).overflow=e),t}var ce=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,he=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,de=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],fe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],me=/^\/?Date\((-?\d+)/i,ge=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ye={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function be(t){var e,n,i,r,a,o,u=t._i,s=ce.exec(u)||he.exec(u);if(s){for(m(t).iso=!0,e=0,n=pe.length;e7)&&(s=!0)):(a=t._locale._week.dow,o=t._locale._week.doy,l=Ht(Me(),a,o),n=ke(e.gg,t._a[0],l.year),i=ke(e.w,l.week),null!=e.d?((r=e.d)<0||r>6)&&(s=!0):null!=e.e?(r=e.e+a,(e.e<0||e.e>6)&&(s=!0)):r=a),i<1||i>Jt(n,a,o)?m(t)._overflowWeeks=!0:null!=s?m(t)._overflowWeekday=!0:(u=_t(n,i,r,a,o),t._a[0]=u.year,t._dayOfYear=u.dayOfYear)}(t),null!=t._dayOfYear&&(o=ke(t._a[0],i[0]),(t._dayOfYear>Dt(o)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=At(o,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=u[e]=i[e];for(;e<7;e++)t._a[e]=u[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?At:Nt).apply(null,u),a=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==a&&(m(t).weekdayMismatch=!0)}}function Ce(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,a,o,u,s=""+t._i,l=s.length,c=0;for(i=H(t._f,t._locale).match(D)||[],e=0;e0&&m(t).unusedInput.push(o),s=s.slice(s.indexOf(n)+n.length),c+=n.length),A[a]?(n?m(t).empty=!1:m(t).unusedTokens.push(a),kt(a,n,t)):t._strict&&!n&&m(t).unusedTokens.push(a);m(t).charsLeftOver=l-c,s.length>0&&m(t).unusedInput.push(s),t._a[3]<=12&&!0===m(t).bigHour&&t._a[3]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),null!==(u=m(t).era)&&(t._a[0]=t._locale.erasConvertYear(u,t._a[0])),xe(t),le(t)}else we(t);else be(t)}function Se(t){var e=t._i,n=t._f;return t._locale=t._locale||se(t._l),null===e||void 0===n&&""===e?y({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),x(e)?new k(le(e)):(h(e)?t._d=e:a(n)?function(t){var e,n,i,r,a,o,u=!1;if(0===t._f.length)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;rthis?this:t:y()}));function Ee(t,e){var n,i;if(1===e.length&&a(e[0])&&(e=e[0]),!e.length)return Me();for(n=e[0],i=1;i=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function an(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function on(t,e){return e.erasAbbrRegex(t)}function un(){var t,e,n=[],i=[],r=[],a=[],o=this.eras();for(t=0,e=o.length;t(a=Jt(t,i,r))&&(e=a),cn.call(this,t,e,n,i,r))}function cn(t,e,n,i,r){var a=_t(t,e,n,i,r),o=At(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}Y("N",0,0,"eraAbbr"),Y("NN",0,0,"eraAbbr"),Y("NNN",0,0,"eraAbbr"),Y("NNNN",0,0,"eraName"),Y("NNNNN",0,0,"eraNarrow"),Y("y",["y",1],"yo","eraYear"),Y("y",["yy",2],0,"eraYear"),Y("y",["yyy",3],0,"eraYear"),Y("y",["yyyy",4],0,"eraYear"),ft("N",on),ft("NN",on),ft("NNN",on),ft("NNNN",(function(t,e){return e.erasNameRegex(t)})),ft("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),vt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?m(n).era=r:m(n).invalidEra=t})),ft("y",lt),ft("yy",lt),ft("yyy",lt),ft("yyyy",lt),ft("yo",(function(t,e){return e._eraYearOrdinalRegex||lt})),vt(["y","yy","yyy","yyyy"],0),vt(["yo"],(function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[0]=n._locale.eraYearOrdinalParse(t,r):e[0]=parseInt(t,10)})),Y(0,["gg",2],0,(function(){return this.weekYear()%100})),Y(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),sn("gggg","weekYear"),sn("ggggg","weekYear"),sn("GGGG","isoWeekYear"),sn("GGGGG","isoWeekYear"),O("weekYear","gg"),O("isoWeekYear","GG"),X("weekYear",1),X("isoWeekYear",1),ft("G",ct),ft("g",ct),ft("GG",it,$),ft("gg",it,$),ft("GGGG",ut,et),ft("gggg",ut,et),ft("GGGGG",st,nt),ft("ggggg",st,nt),wt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=I(t)})),wt(["gg","GG"],(function(t,e,n,i){e[i]=r.parseTwoDigitYear(t)})),Y("Q",0,"Qo","quarter"),O("quarter","Q"),X("quarter",7),ft("Q",V),vt("Q",(function(t,e){e[1]=3*(I(t)-1)})),Y("D",["DD",2],"Do","date"),O("date","D"),X("date",9),ft("D",it),ft("DD",it,$),ft("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),vt(["D","DD"],2),vt("Do",(function(t,e){e[2]=I(t.match(it)[0])}));var hn=z("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),O("dayOfYear","DDD"),X("dayOfYear",4),ft("DDD",ot),ft("DDDD",tt),vt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=I(t)})),Y("m",["mm",2],0,"minute"),O("minute","m"),X("minute",14),ft("m",it),ft("mm",it,$),vt(["m","mm"],4);var dn=z("Minutes",!1);Y("s",["ss",2],0,"second"),O("second","s"),X("second",15),ft("s",it),ft("ss",it,$),vt(["s","ss"],5);var pn,fn,mn=z("Seconds",!1);for(Y("S",0,0,(function(){return~~(this.millisecond()/100)})),Y(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),Y(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),Y(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),Y(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),Y(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),Y(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),O("millisecond","ms"),X("millisecond",16),ft("S",ot,V),ft("SS",ot,$),ft("SSS",ot,tt),pn="SSSS";pn.length<=9;pn+="S")ft(pn,lt);function gn(t,e){e[6]=I(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")vt(pn,gn);fn=z("Milliseconds",!1),Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var yn=k.prototype;function bn(t){return t}yn.add=Ie,yn.calendar=function(t,e){1===arguments.length&&(arguments[0]?qe(arguments[0])?(t=arguments[0],e=void 0):Ue(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Me(),i=_e(n,this).startOf("day"),a=r.calendarFormat(this,i)||"sameElse",o=e&&(B(e[a])?e[a].call(this,n):e[a]);return this.format(o||this.localeData().calendar(a,this,Me(n)))},yn.clone=function(){return new k(this)},yn.diff=function(t,e,n){var i,r,a;if(!this.isValid())return NaN;if(!(i=_e(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":a=Ve(this,i)/12;break;case"month":a=Ve(this,i);break;case"quarter":a=Ve(this,i)/3;break;case"second":a=(this-i)/1e3;break;case"minute":a=(this-i)/6e4;break;case"hour":a=(this-i)/36e5;break;case"day":a=(this-i-r)/864e5;break;case"week":a=(this-i-r)/6048e5;break;default:a=this-i}return n?a:W(a)},yn.endOf=function(t){var e,n;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?an:rn,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-nn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-nn(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-nn(e,1e3)-1}return this._d.setTime(e),r.updateOffset(this,!0),this},yn.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=_(this,t);return this.localeData().postformat(e)},yn.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Me(t).isValid())?Fe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},yn.fromNow=function(t){return this.from(Me(),t)},yn.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Me(t).isValid())?Fe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},yn.toNow=function(t){return this.to(Me(),t)},yn.get=function(t){return B(this[t=Z(t)])?this[t]():this},yn.invalidAt=function(){return m(this).overflow},yn.isAfter=function(t,e){var n=x(t)?t:Me(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?_(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):B(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",_(n,"Z")):_(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},yn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(yn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yn.toJSON=function(){return this.isValid()?this.toISOString():null},yn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},yn.unix=function(){return Math.floor(this.valueOf()/1e3)},yn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},yn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},yn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},yn.isLocal=function(){return!!this.isValid()&&!this._isUTC},yn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},yn.isUtc=Je,yn.isUTC=Je,yn.zoneAbbr=function(){return this._isUTC?"UTC":""},yn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},yn.dates=S("dates accessor is deprecated. Use date instead.",hn),yn.months=S("months accessor is deprecated. Use month instead",Gt),yn.years=S("years accessor is deprecated. Use year instead",jt),yn.zone=S("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),yn.isDSTShifted=S("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return w(e,this),(e=Se(e))._a?(t=e._isUTC?f(e._a):Me(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),a=Math.abs(t.length-e.length),o=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var vn=G.prototype;function wn(t,e,n,i){var r=se(),a=f().set(i,e);return r[n](a,t)}function kn(t,e,n){if(c(t)&&(e=t,t=void 0),t=t||"",null!=e)return wn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=wn(t,i,n,"month");return r}function xn(t,e,n,i){"boolean"==typeof t?(c(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,c(e)&&(n=e,e=void 0),e=e||"");var r,a=se(),o=t?a._week.dow:0,u=[];if(null!=n)return wn(e,(n+o)%7,i,"day");for(r=0;r<7;r++)u[r]=wn(e,(r+o)%7,i,"day");return u}vn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return B(i)?i.call(e,n):i},vn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(D).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},vn.invalidDate=function(){return this._invalidDate},vn.ordinal=function(t){return this._ordinal.replace("%d",t)},vn.preparse=bn,vn.postformat=bn,vn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return B(r)?r(t,e,n,i):r.replace(/%d/i,t)},vn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return B(n)?n(e):n.replace(/%s/i,e)},vn.set=function(t){var e,n;for(n in t)u(t,n)&&(B(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vn.eras=function(t,e){var n,i,a,o=this._eras||se("en")._eras;for(n=0,i=o.length;n=0)return s[i]},vn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?r(t.since).year():r(t.since).year()+(e-t.offset)*n},vn.erasAbbrRegex=function(t){return u(this,"_erasAbbrRegex")||un.call(this),t?this._erasAbbrRegex:this._erasRegex},vn.erasNameRegex=function(t){return u(this,"_erasNameRegex")||un.call(this),t?this._erasNameRegex:this._erasRegex},vn.erasNarrowRegex=function(t){return u(this,"_erasNarrowRegex")||un.call(this),t?this._erasNarrowRegex:this._erasRegex},vn.months=function(t,e){return t?a(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Lt).test(e)?"format":"standalone"][t.month()]:a(this._months)?this._months:this._months.standalone},vn.monthsShort=function(t,e){return t?a(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Lt.test(e)?"format":"standalone"][t.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vn.monthsParse=function(t,e,n){var i,r,a;if(this._monthsParseExact)return Bt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=f([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(a="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(a.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},vn.monthsRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=Tt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},vn.monthsShortRegex=function(t){return this._monthsParseExact?(u(this,"_monthsRegex")||Pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=Mt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},vn.week=function(t){return Ht(t,this._week.dow,this._week.doy).week},vn.firstDayOfYear=function(){return this._week.doy},vn.firstDayOfWeek=function(){return this._week.dow},vn.weekdays=function(t,e){var n=a(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ot(n,this._week.dow):t?n[t.day()]:n},vn.weekdaysMin=function(t){return!0===t?Ot(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},vn.weekdaysShort=function(t){return!0===t?Ot(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},vn.weekdaysParse=function(t,e,n){var i,r,a;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=f([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(a="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(a.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},vn.weekdaysRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=Xt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},vn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Kt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||zt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Wt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},vn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},oe("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===I(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=S("moment.lang is deprecated. Use moment.locale instead.",oe),r.langData=S("moment.langData is deprecated. Use moment.localeData instead.",se);var Cn=Math.abs;function Sn(t,e,n,i){var r=Fe(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Ln(t){return t<0?Math.floor(t):Math.ceil(t)}function Mn(t){return 4800*t/146097}function Tn(t){return 146097*t/4800}function Bn(t){return function(){return this.as(t)}}var En=Bn("ms"),Gn=Bn("s"),Pn=Bn("m"),Dn=Bn("h"),jn=Bn("d"),Nn=Bn("w"),An=Bn("M"),Yn=Bn("Q"),_n=Bn("y");function Hn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Jn=Hn("milliseconds"),On=Hn("seconds"),Zn=Hn("minutes"),Fn=Hn("hours"),Rn=Hn("days"),Xn=Hn("months"),Kn=Hn("years"),Wn=Math.round,In={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function zn(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var Qn=Math.abs;function qn(t){return(t>0)-(t<0)||+t}function Un(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,a,o,u,s=Qn(this._milliseconds)/1e3,l=Qn(this._days),c=Qn(this._months),h=this.asSeconds();return h?(t=W(s/60),e=W(t/60),s%=60,t%=60,n=W(c/12),c%=12,i=s?s.toFixed(3).replace(/\.?0+$/,""):"",r=h<0?"-":"",a=qn(this._months)!==qn(h)?"-":"",o=qn(this._days)!==qn(h)?"-":"",u=qn(this._milliseconds)!==qn(h)?"-":"",r+"P"+(n?a+n+"Y":"")+(c?a+c+"M":"")+(l?o+l+"D":"")+(e||t||s?"T":"")+(e?u+e+"H":"")+(t?u+t+"M":"")+(s?u+i+"S":"")):"P0D"}var Vn=Pe.prototype;return Vn.isValid=function(){return this._isValid},Vn.abs=function(){var t=this._data;return this._milliseconds=Cn(this._milliseconds),this._days=Cn(this._days),this._months=Cn(this._months),t.milliseconds=Cn(t.milliseconds),t.seconds=Cn(t.seconds),t.minutes=Cn(t.minutes),t.hours=Cn(t.hours),t.months=Cn(t.months),t.years=Cn(t.years),this},Vn.add=function(t,e){return Sn(this,t,e,1)},Vn.subtract=function(t,e){return Sn(this,t,e,-1)},Vn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Mn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Tn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Vn.asMilliseconds=En,Vn.asSeconds=Gn,Vn.asMinutes=Pn,Vn.asHours=Dn,Vn.asDays=jn,Vn.asWeeks=Nn,Vn.asMonths=An,Vn.asQuarters=Yn,Vn.asYears=_n,Vn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*I(this._months/12):NaN},Vn._bubble=function(){var t,e,n,i,r,a=this._milliseconds,o=this._days,u=this._months,s=this._data;return a>=0&&o>=0&&u>=0||a<=0&&o<=0&&u<=0||(a+=864e5*Ln(Tn(u)+o),o=0,u=0),s.milliseconds=a%1e3,t=W(a/1e3),s.seconds=t%60,e=W(t/60),s.minutes=e%60,n=W(e/60),s.hours=n%24,o+=W(n/24),r=W(Mn(o)),u+=r,o-=Ln(Tn(r)),i=W(u/12),u%=12,s.days=o,s.months=u,s.years=i,this},Vn.clone=function(){return Fe(this)},Vn.get=function(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN},Vn.milliseconds=Jn,Vn.seconds=On,Vn.minutes=Zn,Vn.hours=Fn,Vn.days=Rn,Vn.weeks=function(){return W(this.days()/7)},Vn.months=Xn,Vn.years=Kn,Vn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,a=In;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(a=Object.assign({},In,e),null!=e.s&&null==e.ss&&(a.ss=e.s-1)),n=this.localeData(),i=function(t,e,n,i){var r=Fe(t).abs(),a=Wn(r.as("s")),o=Wn(r.as("m")),u=Wn(r.as("h")),s=Wn(r.as("d")),l=Wn(r.as("M")),c=Wn(r.as("w")),h=Wn(r.as("y")),d=a<=n.ss&&["s",a]||a0,d[4]=i,zn.apply(null,d)}(this,!r,a,n),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},Vn.toISOString=Un,Vn.toString=Un,Vn.toJSON=Un,Vn.locale=$e,Vn.localeData=en,Vn.toIsoString=S("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Un),Vn.lang=tn,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),ft("x",ct),ft("X",/[+-]?\d+(\.\d{1,3})?/),vt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),vt("x",(function(t,e,n){n._d=new Date(I(t))})), +//! moment.js +r.version="2.29.1",e=Me,r.fn=yn,r.min=function(){var t=[].slice.call(arguments,0);return Ee("isBefore",t)},r.max=function(){var t=[].slice.call(arguments,0);return Ee("isAfter",t)},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(t){return Me(1e3*t)},r.months=function(t,e){return kn(t,e,"months")},r.isDate=h,r.locale=oe,r.invalid=y,r.duration=Fe,r.isMoment=x,r.weekdays=function(t,e,n){return xn(t,e,n,"weekdays")},r.parseZone=function(){return Me.apply(null,arguments).parseZone()},r.localeData=se,r.isDuration=De,r.monthsShort=function(t,e){return kn(t,e,"monthsShort")},r.weekdaysMin=function(t,e,n){return xn(t,e,n,"weekdaysMin")},r.defineLocale=ue,r.updateLocale=function(t,e){if(null!=e){var n,i,r=te;null!=ee[t]&&null!=ee[t].parentLocale?ee[t].set(E(ee[t]._config,e)):(null!=(i=ae(t))&&(r=i._config),e=E(r,e),null==i&&(e.abbr=t),(n=new G(e)).parentLocale=ee[t],ee[t]=n),oe(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?(ee[t]=ee[t].parentLocale,t===oe()&&oe(t)):null!=ee[t]&&delete ee[t]);return ee[t]},r.locales=function(){return L(ee)},r.weekdaysShort=function(t,e,n){return xn(t,e,n,"weekdaysShort")},r.normalizeUnits=Z,r.relativeTimeRounding=function(t){return void 0===t?Wn:"function"==typeof t&&(Wn=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==In[t]&&(void 0===e?In[t]:(In[t]=e,"s"===t&&(In.ss=e-1),!0))},r.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},r.prototype=yn,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}).call(this,n(51)(t))},function(t,e,n){t.exports=n(502)()},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){"use strict";var i=n(358);n.o(i,"createPost")&&n.d(e,"createPost",(function(){return i.createPost})),n.o(i,"deSig")&&n.d(e,"deSig",(function(){return i.deSig})),n.o(i,"joinProgress")&&n.d(e,"joinProgress",(function(){return i.joinProgress})),n.o(i,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return i.resourceAsPath})),n.o(i,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return i.resourceFromPath})),n.o(i,"uxToHex")&&n.d(e,"uxToHex",(function(){return i.uxToHex}));var r=n(402);n.o(r,"createPost")&&n.d(e,"createPost",(function(){return r.createPost})),n.o(r,"deSig")&&n.d(e,"deSig",(function(){return r.deSig})),n.o(r,"joinProgress")&&n.d(e,"joinProgress",(function(){return r.joinProgress})),n.o(r,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return r.resourceAsPath})),n.o(r,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return r.resourceFromPath})),n.o(r,"uxToHex")&&n.d(e,"uxToHex",(function(){return r.uxToHex}));var a=n(46);n.o(a,"createPost")&&n.d(e,"createPost",(function(){return a.createPost})),n.o(a,"deSig")&&n.d(e,"deSig",(function(){return a.deSig})),n.o(a,"joinProgress")&&n.d(e,"joinProgress",(function(){return a.joinProgress})),n.o(a,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return a.resourceAsPath})),n.o(a,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return a.resourceFromPath})),n.o(a,"uxToHex")&&n.d(e,"uxToHex",(function(){return a.uxToHex}));var o=n(405);n.o(o,"createPost")&&n.d(e,"createPost",(function(){return o.createPost})),n.o(o,"deSig")&&n.d(e,"deSig",(function(){return o.deSig})),n.o(o,"joinProgress")&&n.d(e,"joinProgress",(function(){return o.joinProgress})),n.o(o,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return o.resourceAsPath})),n.o(o,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return o.resourceFromPath})),n.o(o,"uxToHex")&&n.d(e,"uxToHex",(function(){return o.uxToHex}));var u=n(408);n.o(u,"createPost")&&n.d(e,"createPost",(function(){return u.createPost})),n.o(u,"deSig")&&n.d(e,"deSig",(function(){return u.deSig})),n.o(u,"joinProgress")&&n.d(e,"joinProgress",(function(){return u.joinProgress})),n.o(u,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return u.resourceAsPath})),n.o(u,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return u.resourceFromPath})),n.o(u,"uxToHex")&&n.d(e,"uxToHex",(function(){return u.uxToHex}));var s=n(411);n.o(s,"createPost")&&n.d(e,"createPost",(function(){return s.createPost})),n.o(s,"deSig")&&n.d(e,"deSig",(function(){return s.deSig})),n.o(s,"joinProgress")&&n.d(e,"joinProgress",(function(){return s.joinProgress})),n.o(s,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return s.resourceAsPath})),n.o(s,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return s.resourceFromPath})),n.o(s,"uxToHex")&&n.d(e,"uxToHex",(function(){return s.uxToHex}));var l=n(414);n.o(l,"createPost")&&n.d(e,"createPost",(function(){return l.createPost})),n.o(l,"deSig")&&n.d(e,"deSig",(function(){return l.deSig})),n.o(l,"joinProgress")&&n.d(e,"joinProgress",(function(){return l.joinProgress})),n.o(l,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return l.resourceAsPath})),n.o(l,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return l.resourceFromPath})),n.o(l,"uxToHex")&&n.d(e,"uxToHex",(function(){return l.uxToHex}));var c=n(54);n.o(c,"createPost")&&n.d(e,"createPost",(function(){return c.createPost})),n.o(c,"deSig")&&n.d(e,"deSig",(function(){return c.deSig})),n.o(c,"joinProgress")&&n.d(e,"joinProgress",(function(){return c.joinProgress})),n.o(c,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return c.resourceAsPath})),n.o(c,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return c.resourceFromPath})),n.o(c,"uxToHex")&&n.d(e,"uxToHex",(function(){return c.uxToHex}));n(34)},function(t,e,n){var i=n(72),r=n(56),a=n(636),o=n(21);t.exports=function(t,e){return(o(t)?i:a)(t,r(e,3))}},function(t,e,n){(function(e,i){var r,a={environment:"nodejs",engine:function(){if(a.isBrowser()&&"undefined"!=typeof navigator)return navigator.userAgent;var t=e.platform+"/"+e.version;return e.env.AWS_EXECUTION_ENV&&(t+=" exec-env/"+e.env.AWS_EXECUTION_ENV),t},userAgent:function(){var t=a.environment,e="aws-sdk-"+t+"/"+n(18).VERSION;return"nodejs"===t&&(e+=" "+a.engine()),e},uriEscape:function(t){var e=encodeURIComponent(t);return e=(e=e.replace(/[^A-Za-z0-9_.~\-%]+/g,escape)).replace(/[*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))},uriEscapePath:function(t){var e=[];return a.arrayEach(t.split("/"),(function(t){e.push(a.uriEscape(t))})),e.join("/")},urlParse:function(t){return a.url.parse(t)},urlFormat:function(t){return a.url.format(t)},queryStringParse:function(t){return a.querystring.parse(t)},queryParamsToString:function(t){var e=[],n=a.uriEscape,i=Object.keys(t).sort();return a.arrayEach(i,(function(i){var r=t[i],o=n(i),u=o+"=";if(Array.isArray(r)){var s=[];a.arrayEach(r,(function(t){s.push(n(t))})),u=o+"="+s.sort().join("&"+o+"=")}else null!=r&&(u=o+"="+n(r));e.push(u)})),e.join("&")},readFileSync:function(t){return a.isBrowser()?null:n(268).readFileSync(t,"utf-8")},base64:{encode:function(t){if("number"==typeof t)throw a.error(new Error("Cannot base64 encode number "+t));return null==t?t:a.buffer.toBuffer(t).toString("base64")},decode:function(t){if("number"==typeof t)throw a.error(new Error("Cannot base64 decode number "+t));return null==t?t:a.buffer.toBuffer(t,"base64")}},buffer:{toBuffer:function(t,e){return"function"==typeof a.Buffer.from&&a.Buffer.from!==Uint8Array.from?a.Buffer.from(t,e):new a.Buffer(t,e)},alloc:function(t,e,n){if("number"!=typeof t)throw new Error("size passed to alloc must be a number.");if("function"==typeof a.Buffer.alloc)return a.Buffer.alloc(t,e,n);var i=new a.Buffer(t);return void 0!==e&&"function"==typeof i.fill&&i.fill(e,void 0,void 0,n),i},toStream:function(t){a.Buffer.isBuffer(t)||(t=a.buffer.toBuffer(t));var e=new a.stream.Readable,n=0;return e._read=function(i){if(n>=t.length)return e.push(null);var r=n+i;r>t.length&&(r=t.length),e.push(t.slice(n,r)),n=r},e},concat:function(t){var e,n,i=0,r=0;for(n=0;n>>8^e[255&(n^t.readUInt8(i))]}return(-1^n)>>>0},hmac:function(t,e,n,i){return n||(n="binary"),"buffer"===n&&(n=void 0),i||(i="sha256"),"string"==typeof e&&(e=a.buffer.toBuffer(e)),a.crypto.lib.createHmac(i,t).update(e).digest(n)},md5:function(t,e,n){return a.crypto.hash("md5",t,e,n)},sha256:function(t,e,n){return a.crypto.hash("sha256",t,e,n)},hash:function(t,e,n,i){var r=a.crypto.createHash(t);n||(n="binary"),"buffer"===n&&(n=void 0),"string"==typeof e&&(e=a.buffer.toBuffer(e));var o=a.arraySliceFn(e),u=a.Buffer.isBuffer(e);if(a.isBrowser()&&"undefined"!=typeof ArrayBuffer&&e&&e.buffer instanceof ArrayBuffer&&(u=!0),i&&"object"==typeof e&&"function"==typeof e.on&&!u)e.on("data",(function(t){r.update(t)})),e.on("error",(function(t){i(t)})),e.on("end",(function(){i(null,r.digest(n))}));else{if(!i||!o||u||"undefined"==typeof FileReader){a.isBrowser()&&"object"==typeof e&&!u&&(e=new a.Buffer(new Uint8Array(e)));var s=r.update(e).digest(n);return i&&i(null,s),s}var l=0,c=new FileReader;c.onerror=function(){i(new Error("Failed to read data."))},c.onload=function(){var t=new a.Buffer(new Uint8Array(c.result));r.update(t),l+=t.length,c._continueReading()},c._continueReading=function(){if(l>=e.size)i(null,r.digest(n));else{var t=l+524288;t>e.size&&(t=e.size),c.readAsArrayBuffer(o.call(e,l,t))}},c._continueReading()}},toHex:function(t){for(var e=[],n=0;n=3e5,!1),r.config.isClockSkewed},applyClockOffset:function(t){t&&(r.config.systemClockOffset=t-(new Date).getTime())},extractRequestId:function(t){var e=t.httpResponse.headers["x-amz-request-id"]||t.httpResponse.headers["x-amzn-requestid"];!e&&t.data&&t.data.ResponseMetadata&&(e=t.data.ResponseMetadata.RequestId),e&&(t.requestId=e),t.error&&(t.error.requestId=e)},addPromises:function(t,e){var n=!1;void 0===e&&r&&r.config&&(e=r.config.getPromisesDependency()),void 0===e&&"undefined"!=typeof Promise&&(e=Promise),"function"!=typeof e&&(n=!0),Array.isArray(t)||(t=[t]);for(var i=0;i=0)return u++,void setTimeout(l,r+(t.retryAfter||0))}n(t)},l=function(){var e="";i.handleRequest(t,o,(function(t){t.on("data",(function(t){e+=t.toString()})),t.on("end",(function(){var i=t.statusCode;if(i<300)n(null,e);else{var r=1e3*parseInt(t.headers["retry-after"],10)||0,o=a.error(new Error,{statusCode:i,retryable:i>=500||429===i});r&&o.retryable&&(o.retryAfter=r),s(o)}}))}),s)};r.util.defer(l)},uuid:{v4:function(){return n(1488).v4()}},convertPayloadToString:function(t){var e=t.request,n=e.operation,i=e.service.api.operations[n].output||{};i.payload&&t.data[i.payload]&&(t.data[i.payload]=t.data[i.payload].toString())},defer:function(t){"object"==typeof e&&"function"==typeof e.nextTick?e.nextTick(t):"function"==typeof i?i(t):setTimeout(t,0)},getRequestPayloadShape:function(t){var e=t.service.api.operations;if(e){var n=(e||{})[t.operation];if(n&&n.input&&n.input.payload)return n.input.members[n.input.payload]}},getProfilesFromSharedConfig:function(t,n){var i={},r={};if(e.env[a.configOptInEnv])r=t.loadFrom({isConfig:!0,filename:e.env[a.sharedConfigFileEnv]});var o={};try{o=t.loadFrom({filename:n||e.env[a.configOptInEnv]&&e.env[a.sharedCredentialsFileEnv]})}catch(t){if(!e.env[a.configOptInEnv])throw t}for(var u=0,s=Object.keys(r);u=6},parse:function(t){var e=t.split(":");return{partition:e[1],service:e[2],region:e[3],accountId:e[4],resource:e.slice(5).join(":")}},build:function(t){if(void 0===t.service||void 0===t.region||void 0===t.accountId||void 0===t.resource)throw a.error(new Error("Input ARN object is invalid"));return"arn:"+(t.partition||"aws")+":"+t.service+":"+t.region+":"+t.accountId+":"+t.resource}},defaultProfile:"default",configOptInEnv:"AWS_SDK_LOAD_CONFIG",sharedCredentialsFileEnv:"AWS_SHARED_CREDENTIALS_FILE",sharedConfigFileEnv:"AWS_CONFIG_FILE",imdsDisabledEnv:"AWS_EC2_METADATA_DISABLED"};t.exports=a}).call(this,n(50),n(1458).setImmediate)},function(t,e,n){"use strict";var i=n(180),r="object"==typeof self&&self&&self.Object===Object&&self,a=i.a||r||Function("return this")();e.a=a},function(t,e,n){const i=n(1202),r=n(345);t.exports=Object.assign(i,r)},function(t,e,n){var i=n(1528),r=n(444);t.exports=function(t,e){var n=r(t,e,"get");return i(t,n)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return mt}));var i,r,a,o,u=n(20),s=n.n(u),l=n(457),c=n.n(l),h=n(458),d=n.n(h),p=n(0),f=n.n(p),m=n(35),g=n.n(m),y="bodyAttributes",b="htmlAttributes",v="titleAttributes",w={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title"},k=(Object.keys(w).map((function(t){return w[t]})),"charset"),x="cssText",C="href",S="http-equiv",L="innerHTML",M="itemprop",T="name",B="property",E="rel",G="src",P="target",D={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},j="defaultTitle",N="defer",A="encodeSpecialCharacters",Y="onChangeClientState",_="titleTemplate",H=Object.keys(D).reduce((function(t,e){return t[D[e]]=e,t}),{}),J=[w.NOSCRIPT,w.SCRIPT,w.STYLE],O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},F=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i]);return n},K=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e},W=function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===e?String(t):String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},I=function(t){var e=V(t,w.TITLE),n=V(t,_);if(n&&e)return n.replace(/%s/g,(function(){return Array.isArray(e)?e.join(""):e}));var i=V(t,j);return e||i||void 0},z=function(t){return V(t,Y)||function(){}},Q=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return R({},t,e)}),{})},q=function(t,e){return e.filter((function(t){return void 0!==t[w.BASE]})).map((function(t){return t[w.BASE]})).reverse().reduce((function(e,n){if(!e.length)for(var i=Object.keys(n),r=0;r=0;n--){var i=t[n];if(i.hasOwnProperty(e))return i[e]}return null},$=(i=Date.now(),function(t){var e=Date.now();e-i>16?(i=e,t(e)):setTimeout((function(){$(t)}),0)}),tt=function(t){return clearTimeout(t)},et="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||$:t.requestAnimationFrame||$,nt="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||tt:t.cancelAnimationFrame||tt,it=function(t){return console&&"function"==typeof console.warn&&console.warn(t)},rt=null,at=function(t,e){var n=t.baseTag,i=t.bodyAttributes,r=t.htmlAttributes,a=t.linkTags,o=t.metaTags,u=t.noscriptTags,s=t.onChangeClientState,l=t.scriptTags,c=t.styleTags,h=t.title,d=t.titleAttributes;st(w.BODY,i),st(w.HTML,r),ut(h,d);var p={baseTag:lt(w.BASE,n),linkTags:lt(w.LINK,a),metaTags:lt(w.META,o),noscriptTags:lt(w.NOSCRIPT,u),scriptTags:lt(w.SCRIPT,l),styleTags:lt(w.STYLE,c)},f={},m={};Object.keys(p).forEach((function(t){var e=p[t],n=e.newTags,i=e.oldTags;n.length&&(f[t]=n),i.length&&(m[t]=p[t].oldTags)})),e&&e(),s(t,f,m)},ot=function(t){return Array.isArray(t)?t.join(""):t},ut=function(t,e){void 0!==t&&document.title!==t&&(document.title=ot(t)),st(w.TITLE,e)},st=function(t,e){var n=document.getElementsByTagName(t)[0];if(n){for(var i=n.getAttribute("data-react-helmet"),r=i?i.split(","):[],a=[].concat(r),o=Object.keys(e),u=0;u=0;h--)n.removeAttribute(a[h]);r.length===a.length?n.removeAttribute("data-react-helmet"):n.getAttribute("data-react-helmet")!==o.join(",")&&n.setAttribute("data-react-helmet",o.join(","))}},lt=function(t,e){var n=document.head||document.querySelector(w.HEAD),i=n.querySelectorAll(t+"[data-react-helmet]"),r=Array.prototype.slice.call(i),a=[],o=void 0;return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var i in e)if(e.hasOwnProperty(i))if(i===L)n.innerHTML=e.innerHTML;else if(i===x)n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText));else{var u=void 0===e[i]?"":e[i];n.setAttribute(i,u)}n.setAttribute("data-react-helmet","true"),r.some((function(t,e){return o=e,n.isEqualNode(t)}))?r.splice(o,1):a.push(n)})),r.forEach((function(t){return t.parentNode.removeChild(t)})),a.forEach((function(t){return n.appendChild(t)})),{oldTags:r,newTags:a}},ct=function(t){return Object.keys(t).reduce((function(e,n){var i=void 0!==t[n]?n+'="'+t[n]+'"':""+n;return e?e+" "+i:i}),"")},ht=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[D[n]||n]=t[n],e}),e)},dt=function(t,e,n){switch(t){case w.TITLE:return{toComponent:function(){return t=e.title,n=e.titleAttributes,(i={key:t})["data-react-helmet"]=!0,r=ht(n,i),[f.a.createElement(w.TITLE,r,t)];var t,n,i,r},toString:function(){return function(t,e,n,i){var r=ct(n),a=ot(e);return r?"<"+t+' data-react-helmet="true" '+r+">"+W(a,i)+"":"<"+t+' data-react-helmet="true">'+W(a,i)+""}(t,e.title,e.titleAttributes,n)}};case y:case b:return{toComponent:function(){return ht(e)},toString:function(){return ct(e)}};default:return{toComponent:function(){return function(t,e){return e.map((function(e,n){var i,r=((i={key:n})["data-react-helmet"]=!0,i);return Object.keys(e).forEach((function(t){var n=D[t]||t;if(n===L||n===x){var i=e.innerHTML||e.cssText;r.dangerouslySetInnerHTML={__html:i}}else r[n]=e[t]})),f.a.createElement(t,r)}))}(t,e)},toString:function(){return function(t,e,n){return e.reduce((function(e,i){var r=Object.keys(i).filter((function(t){return!(t===L||t===x)})).reduce((function(t,e){var r=void 0===i[e]?e:e+'="'+W(i[e],n)+'"';return t?t+" "+r:r}),""),a=i.innerHTML||i.cssText||"",o=-1===J.indexOf(t);return e+"<"+t+' data-react-helmet="true" '+r+(o?"/>":">"+a+"")}),"")}(t,e,n)}}}},pt=function(t){var e=t.baseTag,n=t.bodyAttributes,i=t.encode,r=t.htmlAttributes,a=t.linkTags,o=t.metaTags,u=t.noscriptTags,s=t.scriptTags,l=t.styleTags,c=t.title,h=void 0===c?"":c,d=t.titleAttributes;return{base:dt(w.BASE,e,i),bodyAttributes:dt(y,n,i),htmlAttributes:dt(b,r,i),link:dt(w.LINK,a,i),meta:dt(w.META,o,i),noscript:dt(w.NOSCRIPT,u,i),script:dt(w.SCRIPT,s,i),style:dt(w.STYLE,l,i),title:dt(w.TITLE,{title:h,titleAttributes:d},i)}},ft=c()((function(t){return{baseTag:q([C,P],t),bodyAttributes:Q(y,t),defer:V(t,N),encode:V(t,A),htmlAttributes:Q(b,t),linkTags:U(w.LINK,[E,C],t),metaTags:U(w.META,[T,k,S,B,M],t),noscriptTags:U(w.NOSCRIPT,[L],t),onChangeClientState:z(t),scriptTags:U(w.SCRIPT,[G,L],t),styleTags:U(w.STYLE,[x],t),title:I(t),titleAttributes:Q(v,t)}}),(function(t){rt&&nt(rt),t.defer?rt=et((function(){at(t,(function(){rt=null}))})):(at(t),rt=null)}),pt)((function(){return null})),mt=(r=ft,o=a=function(t){function e(){return Z(this,e),K(this,t.apply(this,arguments))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e.prototype.shouldComponentUpdate=function(t){return!d()(this.props,t)},e.prototype.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:e};case w.STYLE:return{cssText:e}}throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},e.prototype.flattenArrayTypeChildren=function(t){var e,n=t.child,i=t.arrayTypeChildren,r=t.newChildProps,a=t.nestedChildren;return R({},i,((e={})[n.type]=[].concat(i[n.type]||[],[R({},r,this.mapNestedChildrenToProps(n,a))]),e))},e.prototype.mapObjectTypeChildren=function(t){var e,n,i=t.child,r=t.newProps,a=t.newChildProps,o=t.nestedChildren;switch(i.type){case w.TITLE:return R({},r,((e={})[i.type]=o,e.titleAttributes=R({},a),e));case w.BODY:return R({},r,{bodyAttributes:R({},a)});case w.HTML:return R({},r,{htmlAttributes:R({},a)})}return R({},r,((n={})[i.type]=R({},a),n))},e.prototype.mapArrayTypeChildrenToProps=function(t,e){var n=R({},e);return Object.keys(t).forEach((function(e){var i;n=R({},n,((i={})[e]=t[e],i))})),n},e.prototype.warnOnInvalidChildren=function(t,e){return!0},e.prototype.mapChildrenToProps=function(t,e){var n=this,i={};return f.a.Children.forEach(t,(function(t){if(t&&t.props){var r=t.props,a=r.children,o=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).reduce((function(e,n){return e[H[n]||n]=t[n],e}),e)}(X(r,["children"]));switch(n.warnOnInvalidChildren(t,a),t.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:i=n.flattenArrayTypeChildren({child:t,arrayTypeChildren:i,newChildProps:o,nestedChildren:a});break;default:e=n.mapObjectTypeChildren({child:t,newProps:e,newChildProps:o,nestedChildren:a})}}})),e=this.mapArrayTypeChildrenToProps(i,e)},e.prototype.render=function(){var t=this.props,e=t.children,n=X(t,["children"]),i=R({},n);return e&&(i=this.mapChildrenToProps(e,i)),f.a.createElement(r,i)},F(e,null,[{key:"canUseDOM",set:function(t){r.canUseDOM=t}}]),e}(f.a.Component),a.propTypes={base:s.a.object,bodyAttributes:s.a.object,children:s.a.oneOfType([s.a.arrayOf(s.a.node),s.a.node]),defaultTitle:s.a.string,defer:s.a.bool,encodeSpecialCharacters:s.a.bool,htmlAttributes:s.a.object,link:s.a.arrayOf(s.a.object),meta:s.a.arrayOf(s.a.object),noscript:s.a.arrayOf(s.a.object),onChangeClientState:s.a.func,script:s.a.arrayOf(s.a.object),style:s.a.arrayOf(s.a.object),title:s.a.string,titleAttributes:s.a.object,titleTemplate:s.a.string},a.defaultProps={defer:!0,encodeSpecialCharacters:!0},a.peek=r.peek,a.rewind=function(){var t=r.rewind();return t||(t=pt({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},o);mt.renderStatic=mt.rewind,e.b=mt}).call(this,n(49))},function(t,e){t.exports={}},function(t,e,n){var i=n(335);t.exports=function(t,e,n){return null==t?t:i(t,e,n)}},function(t,e,n){var i=n(514),r=n(516);t.exports=function(t,e,n){return i(r,t,e,n)}},function(t,e){var n=Array.isArray;t.exports=n},,function(t,e,n){"use strict";n.d(e,"a",(function(){return yt}));var i=n(184),r=n.n(i),a=n(67),o=n.n(a),u=n(469),s=n.n(u),l=n(470),c=n.n(l),h=n(66),d=n.n(h);function p(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i3?e.i-4:e.i:Array.isArray(t)?1:x(t)?2:C(t)?3:0}function b(t,e){return 2===y(t)?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function v(t,e){return 2===y(t)?t.get(e):t[e]}function w(t,e,n){var i=y(t);2===i?t.set(e,n):3===i?(t.delete(e),t.add(n)):t[e]=n}function k(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}function x(t){return V&&t instanceof Map}function C(t){return $&&t instanceof Set}function S(t){return t.o||t.t}function L(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=ot(t);delete e[it];for(var n=at(e),i=0;i1&&(t.set=t.add=t.clear=t.delete=T),Object.freeze(t),e&&g(t,(function(t,e){return M(e,!0)}),!0)),t}function T(){p(2)}function B(t){return null==t||"object"!=typeof t||Object.isFrozen(t)}function E(t){var e=ut[t];return e||p(18,t),e}function G(t,e){ut[t]||(ut[t]=e)}function P(){return q}function D(t,e){e&&(E("Patches"),t.u=[],t.s=[],t.v=e)}function j(t){N(t),t.p.forEach(Y),t.p=null}function N(t){t===q&&(q=t.l)}function A(t){return q={p:[],l:q,h:t,m:!0,_:0}}function Y(t){var e=t[it];0===e.i||1===e.i?e.j():e.g=!0}function _(t,e){e._=e.p.length;var n=e.p[0],i=void 0!==t&&t!==n;return e.h.O||E("ES5").S(e,t,i),i?(n[it].P&&(j(e),p(4)),m(t)&&(t=H(e,t),e.l||O(e,t)),e.u&&E("Patches").M(n[it],t,e.u,e.s)):t=H(e,n,[]),j(e),e.u&&e.v(e.u,e.s),t!==et?t:void 0}function H(t,e,n){if(B(e))return e;var i=e[it];if(!i)return g(e,(function(r,a){return J(t,i,e,r,a,n)}),!0),e;if(i.A!==t)return e;if(!i.P)return O(t,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var r=4===i.i||5===i.i?i.o=L(i.k):i.o;g(3===i.i?new Set(r):r,(function(e,a){return J(t,i,r,e,a,n)})),O(t,r,!1),n&&t.u&&E("Patches").R(i,n,t.u,t.s)}return i.o}function J(t,e,n,i,r,a){if(f(r)){var o=H(t,r,a&&e&&3!==e.i&&!b(e.D,i)?a.concat(i):void 0);if(w(n,i,o),!f(o))return;t.m=!1}if(m(r)&&!B(r)){if(!t.h.F&&t._<1)return;H(t,r),e&&e.A.l||O(t,r)}}function O(t,e,n){void 0===n&&(n=!1),t.h.F&&t.m&&M(e,n)}function Z(t,e){var n=t[it];return(n?S(n):t)[e]}function F(t,e){if(e in t)for(var n=Object.getPrototypeOf(t);n;){var i=Object.getOwnPropertyDescriptor(n,e);if(i)return i;n=Object.getPrototypeOf(n)}}function R(t){t.P||(t.P=!0,t.l&&R(t.l))}function X(t){t.o||(t.o=L(t.t))}function K(t,e,n){var i=x(e)?E("MapSet").N(e,n):C(e)?E("MapSet").T(e,n):t.O?function(t,e){var n=Array.isArray(t),i={i:n?1:0,A:e?e.A:P(),P:!1,I:!1,D:{},l:e,t:t,k:null,o:null,j:null,C:!1},r=i,a=st;n&&(r=[i],a=lt);var o=Proxy.revocable(r,a),u=o.revoke,s=o.proxy;return i.k=s,i.j=u,s}(e,n):E("ES5").J(e,n);return(n?n.A:P()).p.push(i),i}function W(t){return f(t)||p(22,t),function t(e){if(!m(e))return e;var n,i=e[it],r=y(e);if(i){if(!i.P&&(i.i<4||!E("ES5").K(i)))return i.t;i.I=!0,n=I(e,r),i.I=!1}else n=I(e,r);return g(n,(function(e,r){i&&v(i.t,e)===r||w(n,e,t(r))})),3===r?new Set(n):n}(t)}function I(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return L(t)}function z(){function t(e){if(!m(e))return e;if(Array.isArray(e))return e.map(t);if(x(e))return new Map(Array.from(e.entries()).map((function(e){return[e[0],t(e[1])]})));if(C(e))return new Set(Array.from(e).map(t));var n=Object.create(Object.getPrototypeOf(e));for(var i in e)n[i]=t(e[i]);return b(e,nt)&&(n[nt]=e[nt]),n}function e(e){return f(e)?t(e):e}var n="add";G("Patches",{$:function(e,i){return i.forEach((function(i){for(var r=i.path,a=i.op,o=e,u=0;u1?i-1:0),u=1;u1?i-1:0),a=1;a=0;n--){var i=e[n];if(0===i.path.length&&"replace"===i.op){t=i.value;break}}var r=E("Patches").$;return f(t)?r(t,e):this.produce(t,(function(t){return r(t,e.slice(n+1))}))},t}()),dt=ht.produce,pt=(ht.produceWithPatches.bind(ht),ht.setAutoFreeze.bind(ht)),ft=(ht.setUseProxies.bind(ht),ht.applyPatches.bind(ht),ht.createDraft.bind(ht),ht.finishDraft.bind(ht),dt),mt=n(47),gt=n.n(mt);pt(!1),z(),ct=Symbol.iterator;var yt=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s()(this,t),d()(this,"root",{}),d()(this,"cachedIter",[]),d()(this,nt,!0),n.forEach((function(t){var n=o()(t,2),i=n[0],r=n[1];e.set(i,r)}))}return c()(t,[{key:"size",get:function(){return Object.keys(this.root).length}},{key:"get",value:function(t){var e;return null!==(e=this.root[t.toString()])&&void 0!==e?e:null}},{key:"gas",value:function(t){return ft(this,(function(e){t.forEach((function(t){var n=o()(t,2),i=n[0],r=n[1];e.root[i.toString()]=r})),e.generateCachedIter()}),(function(t){}))}},{key:"set",value:function(t,e){return ft(this,(function(n){n.root[t.toString()]=e,n.generateCachedIter()}))}},{key:"clear",value:function(){return ft(this,(function(t){t.cachedIter=[],t.root={}}))}},{key:"has",value:function(t){return t.toString()in this.root}},{key:"delete",value:function(t){return ft(this,(function(e){delete e.root[t.toString()],e.cachedIter=e.cachedIter.filter((function(e){return o()(e,1)[0].eq(t)}))}))}},{key:ct,value:function(){var t,e=0,n=r()(this.cachedIter);return t={},d()(t,Symbol.iterator,this[Symbol.iterator]),d()(t,"next",(function(){return e0?Math.floor(t):Math.ceil(t)}function g(t,n){var i,r,a=t.length,o=n.length,u=new Array(a),s=0,l=e;for(r=0;r=l?1:0,u[r]=i-s*l;for(;r0&&u.push(s),u}function y(t,e){return t.length>=e.length?g(t,e):g(e,t)}function b(t,n){var i,r,a=t.length,o=new Array(a),u=e;for(r=0;r0;)o[r++]=n%u,n=Math.floor(n/u);return o}function v(t,e){var n,i,r=t.length,a=e.length,o=new Array(r),u=0;for(n=0;n0;)o[r++]=s%u,s=Math.floor(s/u);return o}function C(t,e){for(var n=[];e-- >0;)n.push(0);return n.concat(t)}function S(t,n,i){return new u(t=0;--n)r=(a=1e7*r+t[n])-(i=m(a/e))*e,u[n]=0|i;return[u,0|r]}function T(t,n){var i,r=K(n);if(a)return[new l(t.value/r.value),new l(t.value%r.value)];var c,g=t.value,y=r.value;if(0===y)throw new Error("Cannot divide by zero");if(t.isSmall)return r.isSmall?[new s(m(g/y)),new s(g%y)]:[o[0],t];if(r.isSmall){if(1===y)return[t,o[0]];if(-1==y)return[t.negate(),o[0]];var b=Math.abs(y);if(b=0;r--){for(i=p-1,b[r+h]!==g&&(i=Math.floor((b[r+h]*p+b[r+h-1])/g)),a=0,o=0,s=v.length,u=0;us&&(r=1e7*(r+1)),n=Math.ceil(r/a);do{if(B(o=x(e,n),c)<=0)break;n--}while(n);l.push(n),c=v(c,o)}return l.reverse(),[d(l),d(c)]}(g,y))[0];var C=t.sign!==r.sign,S=i[1],L=t.sign;return"number"==typeof c?(C&&(c=-c),c=new s(c)):c=new u(c,C),"number"==typeof S?(L&&(S=-S),S=new s(S)):S=new u(S,L),[c,S]}function B(t,e){if(t.length!==e.length)return t.length>e.length?1:-1;for(var n=t.length-1;n>=0;n--)if(t[n]!==e[n])return t[n]>e[n]?1:-1;return 0}function E(t){var e=t.abs();return!e.isUnit()&&(!!(e.equals(2)||e.equals(3)||e.equals(5))||!(e.isEven()||e.isDivisibleBy(3)||e.isDivisibleBy(5))&&(!!e.lesser(49)||void 0))}function G(t,e){for(var n,i,a,o=t.prev(),u=o,s=0;u.isEven();)u=u.divide(2),s++;t:for(i=0;i=0?i=v(t,e):(i=v(e,t),n=!n),"number"==typeof(i=d(i))?(n&&(i=-i),new s(i)):new u(i,n)}(n,i,this.sign)},u.prototype.minus=u.prototype.subtract,s.prototype.subtract=function(t){var e=K(t),n=this.value;if(n<0!==e.sign)return this.add(e.negate());var i=e.value;return e.isSmall?new s(n-i):w(i,Math.abs(n),n>=0)},s.prototype.minus=s.prototype.subtract,l.prototype.subtract=function(t){return new l(this.value-K(t).value)},l.prototype.minus=l.prototype.subtract,u.prototype.negate=function(){return new u(this.value,!this.sign)},s.prototype.negate=function(){var t=this.sign,e=new s(-this.value);return e.sign=!t,e},l.prototype.negate=function(){return new l(-this.value)},u.prototype.abs=function(){return new u(this.value,!1)},s.prototype.abs=function(){return new s(Math.abs(this.value))},l.prototype.abs=function(){return new l(this.value>=0?this.value:-this.value)},u.prototype.multiply=function(t){var n,i,r,a=K(t),s=this.value,l=a.value,c=this.sign!==a.sign;if(a.isSmall){if(0===l)return o[0];if(1===l)return this;if(-1===l)return this.negate();if((n=Math.abs(l))0?function t(e,n){var i=Math.max(e.length,n.length);if(i<=30)return k(e,n);i=Math.ceil(i/2);var r=e.slice(i),a=e.slice(0,i),o=n.slice(i),u=n.slice(0,i),s=t(a,u),l=t(r,o),c=t(y(a,r),y(u,o)),h=y(y(s,C(v(v(c,s),l),i)),C(l,2*i));return p(h),h}(s,l):k(s,l),c)},u.prototype.times=u.prototype.multiply,s.prototype._multiplyBySmall=function(t){return c(t.value*this.value)?new s(t.value*this.value):S(Math.abs(t.value),h(Math.abs(this.value)),this.sign!==t.sign)},u.prototype._multiplyBySmall=function(t){return 0===t.value?o[0]:1===t.value?this:-1===t.value?this.negate():S(Math.abs(t.value),this.value,this.sign!==t.sign)},s.prototype.multiply=function(t){return K(t)._multiplyBySmall(this)},s.prototype.times=s.prototype.multiply,l.prototype.multiply=function(t){return new l(this.value*K(t).value)},l.prototype.times=l.prototype.multiply,u.prototype.square=function(){return new u(L(this.value),!1)},s.prototype.square=function(){var t=this.value*this.value;return c(t)?new s(t):new u(L(h(Math.abs(this.value))),!1)},l.prototype.square=function(t){return new l(this.value*this.value)},u.prototype.divmod=function(t){var e=T(this,t);return{quotient:e[0],remainder:e[1]}},l.prototype.divmod=s.prototype.divmod=u.prototype.divmod,u.prototype.divide=function(t){return T(this,t)[0]},l.prototype.over=l.prototype.divide=function(t){return new l(this.value/K(t).value)},s.prototype.over=s.prototype.divide=u.prototype.over=u.prototype.divide,u.prototype.mod=function(t){return T(this,t)[1]},l.prototype.mod=l.prototype.remainder=function(t){return new l(this.value%K(t).value)},s.prototype.remainder=s.prototype.mod=u.prototype.remainder=u.prototype.mod,u.prototype.pow=function(t){var e,n,i,r=K(t),a=this.value,u=r.value;if(0===u)return o[1];if(0===a)return o[0];if(1===a)return o[1];if(-1===a)return r.isEven()?o[1]:o[-1];if(r.sign)return o[0];if(!r.isSmall)throw new Error("The exponent "+r.toString()+" is too large.");if(this.isSmall&&c(e=Math.pow(a,u)))return new s(m(e));for(n=this,i=o[1];!0&u&&(i=i.times(n),--u),0!==u;)u/=2,n=n.square();return i},s.prototype.pow=u.prototype.pow,l.prototype.pow=function(t){var e=K(t),n=this.value,i=e.value,r=BigInt(0),a=BigInt(1),u=BigInt(2);if(i===r)return o[1];if(n===r)return o[0];if(n===a)return o[1];if(n===BigInt(-1))return e.isEven()?o[1]:o[-1];if(e.isNegative())return new l(r);for(var s=this,c=o[1];(i&a)===a&&(c=c.times(s),--i),i!==r;)i/=u,s=s.square();return c},u.prototype.modPow=function(t,e){if(t=K(t),(e=K(e)).isZero())throw new Error("Cannot take modPow with modulus 0");var n=o[1],i=this.mod(e);for(t.isNegative()&&(t=t.multiply(o[-1]),i=i.modInv(e));t.isPositive();){if(i.isZero())return o[0];t.isOdd()&&(n=n.multiply(i).mod(e)),t=t.divide(2),i=i.square().mod(e)}return n},l.prototype.modPow=s.prototype.modPow=u.prototype.modPow,u.prototype.compareAbs=function(t){var e=K(t),n=this.value,i=e.value;return e.isSmall?1:B(n,i)},s.prototype.compareAbs=function(t){var e=K(t),n=Math.abs(this.value),i=e.value;return e.isSmall?n===(i=Math.abs(i))?0:n>i?1:-1:-1},l.prototype.compareAbs=function(t){var e=this.value,n=K(t).value;return(e=e>=0?e:-e)===(n=n>=0?n:-n)?0:e>n?1:-1},u.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=K(t),n=this.value,i=e.value;return this.sign!==e.sign?e.sign?1:-1:e.isSmall?this.sign?-1:1:B(n,i)*(this.sign?-1:1)},u.prototype.compareTo=u.prototype.compare,s.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=K(t),n=this.value,i=e.value;return e.isSmall?n==i?0:n>i?1:-1:n<0!==e.sign?n<0?-1:1:n<0?1:-1},s.prototype.compareTo=s.prototype.compare,l.prototype.compare=function(t){if(t===1/0)return-1;if(t===-1/0)return 1;var e=this.value,n=K(t).value;return e===n?0:e>n?1:-1},l.prototype.compareTo=l.prototype.compare,u.prototype.equals=function(t){return 0===this.compare(t)},l.prototype.eq=l.prototype.equals=s.prototype.eq=s.prototype.equals=u.prototype.eq=u.prototype.equals,u.prototype.notEquals=function(t){return 0!==this.compare(t)},l.prototype.neq=l.prototype.notEquals=s.prototype.neq=s.prototype.notEquals=u.prototype.neq=u.prototype.notEquals,u.prototype.greater=function(t){return this.compare(t)>0},l.prototype.gt=l.prototype.greater=s.prototype.gt=s.prototype.greater=u.prototype.gt=u.prototype.greater,u.prototype.lesser=function(t){return this.compare(t)<0},l.prototype.lt=l.prototype.lesser=s.prototype.lt=s.prototype.lesser=u.prototype.lt=u.prototype.lesser,u.prototype.greaterOrEquals=function(t){return this.compare(t)>=0},l.prototype.geq=l.prototype.greaterOrEquals=s.prototype.geq=s.prototype.greaterOrEquals=u.prototype.geq=u.prototype.greaterOrEquals,u.prototype.lesserOrEquals=function(t){return this.compare(t)<=0},l.prototype.leq=l.prototype.lesserOrEquals=s.prototype.leq=s.prototype.lesserOrEquals=u.prototype.leq=u.prototype.lesserOrEquals,u.prototype.isEven=function(){return 0==(1&this.value[0])},s.prototype.isEven=function(){return 0==(1&this.value)},l.prototype.isEven=function(){return(this.value&BigInt(1))===BigInt(0)},u.prototype.isOdd=function(){return 1==(1&this.value[0])},s.prototype.isOdd=function(){return 1==(1&this.value)},l.prototype.isOdd=function(){return(this.value&BigInt(1))===BigInt(1)},u.prototype.isPositive=function(){return!this.sign},s.prototype.isPositive=function(){return this.value>0},l.prototype.isPositive=s.prototype.isPositive,u.prototype.isNegative=function(){return this.sign},s.prototype.isNegative=function(){return this.value<0},l.prototype.isNegative=s.prototype.isNegative,u.prototype.isUnit=function(){return!1},s.prototype.isUnit=function(){return 1===Math.abs(this.value)},l.prototype.isUnit=function(){return this.abs().value===BigInt(1)},u.prototype.isZero=function(){return!1},s.prototype.isZero=function(){return 0===this.value},l.prototype.isZero=function(){return this.value===BigInt(0)},u.prototype.isDivisibleBy=function(t){var e=K(t);return!e.isZero()&&(!!e.isUnit()||(0===e.compareAbs(2)?this.isEven():this.mod(e).isZero()))},l.prototype.isDivisibleBy=s.prototype.isDivisibleBy=u.prototype.isDivisibleBy,u.prototype.isPrime=function(t){var e=E(this);if(void 0!==e)return e;var n=this.abs(),i=n.bitLength();if(i<=64)return G(n,[2,3,5,7,11,13,17,19,23,29,31,37]);for(var a=Math.log(2)*i.toJSNumber(),o=Math.ceil(!0===t?2*Math.pow(a,2):a),u=[],s=0;s-n?new s(t-1):new u(i,!0)},l.prototype.prev=function(){return new l(this.value-BigInt(1))};for(var P=[1];2*P[P.length-1]<=e;)P.push(2*P[P.length-1]);var D=P.length,j=P[D-1];function N(t){return Math.abs(t)<=e}function A(t,e,n){e=K(e);for(var i=t.isNegative(),a=e.isNegative(),o=i?t.not():t,u=a?e.not():e,s=0,l=0,c=null,h=null,d=[];!o.isZero()||!u.isZero();)s=(c=T(o,j))[1].toJSNumber(),i&&(s=j-1-s),l=(h=T(u,j))[1].toJSNumber(),a&&(l=j-1-l),o=c[0],u=h[0],d.push(n(s,l));for(var p=0!==n(i?1:0,a?1:0)?r(-1):r(0),f=d.length-1;f>=0;f-=1)p=p.multiply(j).add(r(d[f]));return p}u.prototype.shiftLeft=function(t){var e=K(t).toJSNumber();if(!N(e))throw new Error(String(e)+" is too large for shifting.");if(e<0)return this.shiftRight(-e);var n=this;if(n.isZero())return n;for(;e>=D;)n=n.multiply(j),e-=D-1;return n.multiply(P[e])},l.prototype.shiftLeft=s.prototype.shiftLeft=u.prototype.shiftLeft,u.prototype.shiftRight=function(t){var e,n=K(t).toJSNumber();if(!N(n))throw new Error(String(n)+" is too large for shifting.");if(n<0)return this.shiftLeft(-n);for(var i=this;n>=D;){if(i.isZero()||i.isNegative()&&i.isUnit())return i;i=(e=T(i,j))[1].isNegative()?e[0].prev():e[0],n-=D-1}return(e=T(i,P[n]))[1].isNegative()?e[0].prev():e[0]},l.prototype.shiftRight=s.prototype.shiftRight=u.prototype.shiftRight,u.prototype.not=function(){return this.negate().prev()},l.prototype.not=s.prototype.not=u.prototype.not,u.prototype.and=function(t){return A(this,t,(function(t,e){return t&e}))},l.prototype.and=s.prototype.and=u.prototype.and,u.prototype.or=function(t){return A(this,t,(function(t,e){return t|e}))},l.prototype.or=s.prototype.or=u.prototype.or,u.prototype.xor=function(t){return A(this,t,(function(t,e){return t^e}))},l.prototype.xor=s.prototype.xor=u.prototype.xor;function Y(t){var n=t.value,i="number"==typeof n?n|1<<30:"bigint"==typeof n?n|BigInt(1<<30):n[0]+n[1]*e|1073758208;return i&-i}function _(t,e){return t=K(t),e=K(e),t.greater(e)?t:e}function H(t,e){return t=K(t),e=K(e),t.lesser(e)?t:e}function J(t,e){if(t=K(t).abs(),e=K(e).abs(),t.equals(e))return t;if(t.isZero())return e;if(e.isZero())return t;for(var n,i,r=o[1];t.isEven()&&e.isEven();)n=H(Y(t),Y(e)),t=t.divide(n),e=e.divide(n),r=r.multiply(n);for(;t.isEven();)t=t.divide(Y(t));do{for(;e.isEven();)e=e.divide(Y(e));t.greater(e)&&(i=e,e=t,t=i),e=e.subtract(t)}while(!e.isZero());return r.isUnit()?t:t.multiply(r)}u.prototype.bitLength=function(){var t=this;return t.compareTo(r(0))<0&&(t=t.negate().subtract(r(1))),0===t.compareTo(r(0))?r(0):r(function t(e,n){if(n.compareTo(e)<=0){var i=t(e,n.square(n)),a=i.p,o=i.e,u=a.multiply(n);return u.compareTo(e)<=0?{p:u,e:2*o+1}:{p:a,e:2*o}}return{p:r(1),e:0}}(t,r(2)).e).add(r(1))},l.prototype.bitLength=s.prototype.bitLength=u.prototype.bitLength;var O=function(t,e,n,i){n=n||"0123456789abcdefghijklmnopqrstuvwxyz",t=String(t),i||(t=t.toLowerCase(),n=n.toLowerCase());var r,a=t.length,o=Math.abs(e),u={};for(r=0;r=o)){if("1"===c&&1===o)continue;throw new Error(c+" is not a valid digit in base "+e+".")}}e=K(e);var s=[],l="-"===t[0];for(r=l?1:0;r"!==t[r]&&r=0;i--)r=r.add(t[i].times(a)),a=a.times(e);return n?r.negate():r}function F(t,e){if((e=r(e)).isZero()){if(t.isZero())return{value:[0],isNegative:!1};throw new Error("Cannot convert nonzero numbers to base 0.")}if(e.equals(-1)){if(t.isZero())return{value:[0],isNegative:!1};if(t.isNegative())return{value:[].concat.apply([],Array.apply(null,Array(-t.toJSNumber())).map(Array.prototype.valueOf,[1,0])),isNegative:!1};var n=Array.apply(null,Array(t.toJSNumber()-1)).map(Array.prototype.valueOf,[0,1]);return n.unshift([1]),{value:[].concat.apply([],n),isNegative:!1}}var i=!1;if(t.isNegative()&&e.isPositive()&&(i=!0,t=t.abs()),e.isUnit())return t.isZero()?{value:[0],isNegative:!1}:{value:Array.apply(null,Array(t.toJSNumber())).map(Number.prototype.valueOf,1),isNegative:i};for(var a,o=[],u=t;u.isNegative()||u.compareAbs(e)>=0;){a=u.divmod(e),u=a.quotient;var s=a.remainder;s.isNegative()&&(s=e.minus(s).abs(),u=u.next()),o.push(s.toJSNumber())}return o.push(u.toJSNumber()),{value:o.reverse(),isNegative:i}}function R(t,e,n){var i=F(t,e);return(i.isNegative?"-":"")+i.value.map((function(t){return function(t,e){return t<(e=e||"0123456789abcdefghijklmnopqrstuvwxyz").length?e[t]:"<"+t+">"}(t,n)})).join("")}function X(t){if(c(+t)){var e=+t;if(e===m(e))return a?new l(BigInt(e)):new s(e);throw new Error("Invalid integer: "+t)}var n="-"===t[0];n&&(t=t.slice(1));var i=t.split(/e/i);if(i.length>2)throw new Error("Invalid integer: "+i.join("e"));if(2===i.length){var r=i[1];if("+"===r[0]&&(r=r.slice(1)),(r=+r)!==m(r)||!c(r))throw new Error("Invalid integer: "+r+" is not a valid exponent.");var o=i[0],h=o.indexOf(".");if(h>=0&&(r-=o.length-h-1,o=o.slice(0,h)+o.slice(h+1)),r<0)throw new Error("Cannot include negative exponent part for integers");t=o+=new Array(r+1).join("0")}if(!/^([0-9][0-9]*)$/.test(t))throw new Error("Invalid integer: "+t);if(a)return new l(BigInt(n?"-"+t:t));for(var d=[],f=t.length,g=f-7;f>0;)d.push(+t.slice(g,f)),(g-=7)<0&&(g=0),f-=7;return p(d),new u(d,n)}function K(t){return"number"==typeof t?function(t){if(a)return new l(BigInt(t));if(c(t)){if(t!==m(t))throw new Error(t+" is not an integer.");return new s(t)}return X(t.toString())}(t):"string"==typeof t?X(t):"bigint"==typeof t?new l(t):t}u.prototype.toArray=function(t){return F(this,t)},s.prototype.toArray=function(t){return F(this,t)},l.prototype.toArray=function(t){return F(this,t)},u.prototype.toString=function(t,e){if(void 0===t&&(t=10),10!==t)return R(this,t,e);for(var n,i=this.value,r=i.length,a=String(i[--r]);--r>=0;)n=String(i[r]),a+="0000000".slice(n.length)+n;return(this.sign?"-":"")+a},s.prototype.toString=function(t,e){return void 0===t&&(t=10),10!=t?R(this,t,e):String(this.value)},l.prototype.toString=s.prototype.toString,l.prototype.toJSON=u.prototype.toJSON=s.prototype.toJSON=function(){return this.toString()},u.prototype.valueOf=function(){return parseInt(this.toString(),10)},u.prototype.toJSNumber=u.prototype.valueOf,s.prototype.valueOf=function(){return this.value},s.prototype.toJSNumber=s.prototype.valueOf,l.prototype.valueOf=l.prototype.toJSNumber=function(){return parseInt(this.toString(),10)};for(var W=0;W<1e3;W++)o[W]=K(W),W>0&&(o[-W]=K(-W));return o.one=o[1],o.zero=o[0],o.minusOne=o[-1],o.max=_,o.min=H,o.gcd=J,o.lcm=function(t,e){return t=K(t).abs(),e=K(e).abs(),t.divide(J(t,e)).multiply(e)},o.isInstance=function(t){return t instanceof u||t instanceof s||t instanceof l},o.randBetween=function(t,n,i){t=K(t),n=K(n);var r=i||Math.random,a=H(t,n),u=_(t,n).subtract(a).add(1);if(u.isSmall)return a.add(Math.floor(r()*u));for(var s=F(u,e).value,l=[],c=!0,h=0;h1)for(var n=1;n + * @license MIT + */ +var i=n(1203),r=n(1204),a=n(1205);function o(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(t,e){if(o()=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function f(t,e){if(s.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return O(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(t).length;default:if(i)return O(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return E(this,e,n);case"utf8":case"utf-8":return M(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return B(this,e,n);case"base64":return L(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function g(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function y(t,e,n,i,r){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(r)return-1;n=t.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof e&&(e=s.from(e,i)),s.isBuffer(e))return 0===e.length?-1:b(t,e,n,i,r);if("number"==typeof e)return e&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):b(t,[e],n,i,r);throw new TypeError("val must be string, number or Buffer")}function b(t,e,n,i,r){var a,o=1,u=t.length,s=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;o=2,u/=2,s/=2,n/=2}function l(t,e){return 1===o?t[e]:t.readUInt16BE(e*o)}if(r){var c=-1;for(a=n;au&&(n=u-s),a=n;a>=0;a--){for(var h=!0,d=0;dr&&(i=r):i=r;var a=e.length;if(a%2!=0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var o=0;o>8,r=n%256,a.push(r),a.push(i);return a}(e,t.length-n),t,n,i)}function L(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function M(t,e,n){n=Math.min(t.length,n);for(var i=[],r=e;r239?4:l>223?3:l>191?2:1;if(r+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:128==(192&(a=t[r+1]))&&(s=(31&l)<<6|63&a)>127&&(c=s);break;case 3:a=t[r+1],o=t[r+2],128==(192&a)&&128==(192&o)&&(s=(15&l)<<12|(63&a)<<6|63&o)>2047&&(s<55296||s>57343)&&(c=s);break;case 4:a=t[r+1],o=t[r+2],u=t[r+3],128==(192&a)&&128==(192&o)&&128==(192&u)&&(s=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&u)>65535&&s<1114112&&(c=s)}null===c?(c=65533,h=1):c>65535&&(c-=65536,i.push(c>>>10&1023|55296),c=56320|1023&c),i.push(c),r+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},s.prototype.compare=function(t,e,n,i,r){if(!s.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),e<0||n>t.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&e>=n)return 0;if(i>=r)return-1;if(e>=n)return 1;if(this===t)return 0;for(var a=(r>>>=0)-(i>>>=0),o=(n>>>=0)-(e>>>=0),u=Math.min(a,o),l=this.slice(i,r),c=t.slice(e,n),h=0;hr)&&(n=r),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return w(this,t,e,n);case"ascii":return k(this,t,e,n);case"latin1":case"binary":return x(this,t,e,n);case"base64":return C(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function T(t,e,n){var i="";n=Math.min(t.length,n);for(var r=e;ri)&&(n=i);for(var r="",a=e;an)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,i,r,a){if(!s.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>r||et.length)throw new RangeError("Index out of range")}function j(t,e,n,i){e<0&&(e=65535+e+1);for(var r=0,a=Math.min(t.length-n,2);r>>8*(i?r:1-r)}function N(t,e,n,i){e<0&&(e=4294967295+e+1);for(var r=0,a=Math.min(t.length-n,4);r>>8*(i?r:3-r)&255}function A(t,e,n,i,r,a){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Y(t,e,n,i,a){return a||A(t,0,n,4),r.write(t,e,n,i,23,4),n+4}function _(t,e,n,i,a){return a||A(t,0,n,8),r.write(t,e,n,i,52,8),n+8}s.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(r*=256);)i+=this[t+--e]*r;return i},s.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},s.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},s.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},s.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},s.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},s.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=this[t],r=1,a=0;++a=(r*=128)&&(i-=Math.pow(2,8*e)),i},s.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var i=e,r=1,a=this[t+--i];i>0&&(r*=256);)a+=this[t+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*e)),a},s.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},s.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},s.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},s.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!0,23,4)},s.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),r.read(this,t,!1,23,4)},s.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!0,52,8)},s.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),r.read(this,t,!1,52,8)},s.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||D(this,t,e,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[e]=255&t;++a=0&&(a*=256);)this[e+r]=t/a&255;return e+n},s.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},s.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},s.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},s.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):N(this,t,e,!0),e+4},s.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},s.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var a=0,o=1,u=0;for(this[e]=255&t;++a>0)-u&255;return e+n},s.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var r=Math.pow(2,8*n-1);D(this,t,e,n,r-1,-r)}var a=n-1,o=1,u=0;for(this[e+a]=255&t;--a>=0&&(o*=256);)t<0&&0===u&&0!==this[e+a+1]&&(u=1),this[e+a]=(t/o>>0)-u&255;return e+n},s.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),s.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},s.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},s.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},s.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):N(this,t,e,!0),e+4},s.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),s.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):N(this,t,e,!1),e+4},s.prototype.writeFloatLE=function(t,e,n){return Y(this,t,e,!0,n)},s.prototype.writeFloatBE=function(t,e,n){return Y(this,t,e,!1,n)},s.prototype.writeDoubleLE=function(t,e,n){return _(this,t,e,!0,n)},s.prototype.writeDoubleBE=function(t,e,n){return _(this,t,e,!1,n)},s.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--r)t[r+e]=this[r+n];else if(a<1e3||!s.TYPED_ARRAY_SUPPORT)for(r=0;r>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(a=e;a55295&&n<57344){if(!r){if(n>56319){(e-=3)>-1&&a.push(239,191,189);continue}if(o+1===i){(e-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(e-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(e-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((e-=1)<0)break;a.push(n)}else if(n<2048){if((e-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function Z(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(H,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function F(t,e,n,i){for(var r=0;r=e.length||r>=t.length);++r)e[r+n]=t[r];return r}}).call(this,n(49))},function(t,e,n){var i=n(109),r=n(1213),a=n(1214),o=i?i.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?r(t):a(t)}},function(t,e,n){var i=n(1238),r=n(1240);t.exports=function(t,e,n){return i(r,t,e,n)}},function(t,e,n){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,n=/gecko\/\d/i.test(t),i=/MSIE \d/.test(t),r=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),a=/Edge\/(\d+)/.exec(t),o=i||r||a,u=o&&(i?document.documentMode||6:+(a||r)[1]),s=!a&&/WebKit\//.test(t),l=s&&/Qt\/\d+\.\d+/.test(t),c=!a&&/Chrome\//.test(t),h=/Opera\//.test(t),d=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),f=/PhantomJS/.test(t),m=d&&(/Mobile\/\w+/.test(t)||navigator.maxTouchPoints>2),g=/Android/.test(t),y=m||g||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),b=m||/Mac/.test(e),v=/\bCrOS\b/.test(t),w=/win/i.test(e),k=h&&t.match(/Version\/(\d*\.\d*)/);k&&(k=Number(k[1])),k&&k>=15&&(h=!1,s=!0);var x=b&&(l||h&&(null==k||k<12.11)),C=n||o&&u>=9;function S(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var L,M=function(t,e){var n=t.className,i=S(e).exec(n);if(i){var r=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(r?i[1]+r:"")}};function T(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function B(t,e){return T(t).appendChild(e)}function E(t,e,n,i){var r=document.createElement(t);if(n&&(r.className=n),i&&(r.style.cssText=i),"string"==typeof e)r.appendChild(document.createTextNode(e));else if(e)for(var a=0;a=e)return o+(e-a);o+=u-a,o+=n-o%n,a=u+1}}m?A=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:o&&(A=function(t){try{t.select()}catch(t){}});var J=function(){this.id=null,this.f=null,this.time=0,this.handler=Y(this.onTimeout,this)};function O(t,e){for(var n=0;n=e)return i+Math.min(o,e-r);if(r+=a-i,i=a+1,(r+=n-r%n)>=e)return i}}var W=[""];function I(t){for(;W.length<=t;)W.push(z(W)+" ");return W[t]}function z(t){return t[t.length-1]}function Q(t,e){for(var n=[],i=0;i"€"&&(t.toUpperCase()!=t.toLowerCase()||V.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&$(t))||e.test(t):$(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var nt=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function it(t){return t.charCodeAt(0)>=768&&nt.test(t)}function rt(t,e,n){for(;(n<0?e>0:en?-1:1;;){if(e==n)return e;var r=(e+n)/2,a=i<0?Math.ceil(r):Math.floor(r);if(a==e)return t(a)?e:n;t(a)?n=a:e=a+i}}var ot=null;function ut(t,e,n){var i;ot=null;for(var r=0;re)return r;a.to==e&&(a.from!=a.to&&"before"==n?i=r:ot=r),a.from==e&&(a.from!=a.to&&"before"!=n?i=r:ot=r)}return null!=i?i:ot}var st=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,n=/[LRr]/,i=/[Lb1n]/,r=/[1n]/;function a(t,e,n){this.level=t,this.from=e,this.to=n}return function(o,u){var s="ltr"==u?"L":"R";if(0==o.length||"ltr"==u&&!t.test(o))return!1;for(var l,c=o.length,h=[],d=0;d-1&&(i[e]=r.slice(0,a).concat(r.slice(a+1)))}}}function ft(t,e){var n=dt(t,e);if(n.length)for(var i=Array.prototype.slice.call(arguments,2),r=0;r0}function bt(t){t.prototype.on=function(t,e){ht(this,t,e)},t.prototype.off=function(t,e){pt(this,t,e)}}function vt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function wt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function kt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function xt(t){vt(t),wt(t)}function Ct(t){return t.target||t.srcElement}function St(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),b&&t.ctrlKey&&1==e&&(e=3),e}var Lt,Mt,Tt=function(){if(o&&u<9)return!1;var t=E("div");return"draggable"in t||"dragDrop"in t}();function Bt(t){if(null==Lt){var e=E("span","​");B(t,E("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(Lt=e.offsetWidth<=1&&e.offsetHeight>2&&!(o&&u<8))}var n=Lt?E("span","​"):E("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Et(t){if(null!=Mt)return Mt;var e=B(t,document.createTextNode("AخA")),n=L(e,0,1).getBoundingClientRect(),i=L(e,1,2).getBoundingClientRect();return T(t),!(!n||n.left==n.right)&&(Mt=i.right-n.right<3)}var Gt,Pt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,n=[],i=t.length;e<=i;){var r=t.indexOf("\n",e);-1==r&&(r=t.length);var a=t.slice(e,"\r"==t.charAt(r-1)?r-1:r),o=a.indexOf("\r");-1!=o?(n.push(a.slice(0,o)),e+=o+1):(n.push(a),e=r+1)}return n}:function(t){return t.split(/\r\n?|\n/)},Dt=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(t){return!1}}:function(t){var e;try{e=t.ownerDocument.selection.createRange()}catch(t){}return!(!e||e.parentElement()!=t)&&0!=e.compareEndPoints("StartToEnd",e)},jt="oncopy"in(Gt=E("div"))||(Gt.setAttribute("oncopy","return;"),"function"==typeof Gt.oncopy),Nt=null,At={},Yt={};function _t(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),At[t]=e}function Ht(t){if("string"==typeof t&&Yt.hasOwnProperty(t))t=Yt[t];else if(t&&"string"==typeof t.name&&Yt.hasOwnProperty(t.name)){var e=Yt[t.name];"string"==typeof e&&(e={name:e}),(t=U(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Ht("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Ht("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Jt(t,e){e=Ht(e);var n=At[e.name];if(!n)return Jt(t,"text/plain");var i=n(t,e);if(Ot.hasOwnProperty(e.name)){var r=Ot[e.name];for(var a in r)r.hasOwnProperty(a)&&(i.hasOwnProperty(a)&&(i["_"+a]=i[a]),i[a]=r[a])}if(i.name=e.name,e.helperType&&(i.helperType=e.helperType),e.modeProps)for(var o in e.modeProps)i[o]=e.modeProps[o];return i}var Ot={};function Zt(t,e){_(e,Ot.hasOwnProperty(t)?Ot[t]:Ot[t]={})}function Ft(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var n={};for(var i in e){var r=e[i];r instanceof Array&&(r=r.concat([])),n[i]=r}return n}function Rt(t,e){for(var n;t.innerMode&&(n=t.innerMode(e))&&n.mode!=t;)e=n.state,t=n.mode;return n||{mode:t,state:e}}function Xt(t,e,n){return!t.startState||t.startState(e,n)}var Kt=function(t,e,n){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Wt(t,e){if((e-=t.first)<0||e>=t.size)throw new Error("There is no line "+(e+t.first)+" in the document.");for(var n=t;!n.lines;)for(var i=0;;++i){var r=n.children[i],a=r.chunkSize();if(e=t.first&&en?te(n,Wt(t,n).text.length):function(t,e){var n=t.ch;return null==n||n>e?te(t.line,e):n<0?te(t.line,0):t}(e,Wt(t,e.line).text.length)}function se(t,e){for(var n=[],i=0;i=this.string.length},Kt.prototype.sol=function(){return this.pos==this.lineStart},Kt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Kt.prototype.next=function(){if(this.pose},Kt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Kt.prototype.skipToEnd=function(){this.pos=this.string.length},Kt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Kt.prototype.backUp=function(t){this.pos-=t},Kt.prototype.column=function(){return this.lastColumnPos0?null:(i&&!1!==e&&(this.pos+=i[0].length),i)}var r=function(t){return n?t.toLowerCase():t};if(r(this.string.substr(this.pos,t.length))==r(t))return!1!==e&&(this.pos+=t.length),!0},Kt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Kt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Kt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Kt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var le=function(t,e){this.state=t,this.lookAhead=e},ce=function(t,e,n,i){this.state=e,this.doc=t,this.line=n,this.maxLookAhead=i||0,this.baseTokens=null,this.baseTokenPos=1};function he(t,e,n,i){var r=[t.state.modeGen],a={};we(t,e.text,t.doc.mode,n,(function(t,e){return r.push(t,e)}),a,i);for(var o=n.state,u=function(i){n.baseTokens=r;var u=t.state.overlays[i],s=1,l=0;n.state=!0,we(t,e.text,u.mode,n,(function(t,e){for(var n=s;lt&&r.splice(s,1,t,r[s+1],i),s+=2,l=Math.min(t,i)}if(e)if(u.opaque)r.splice(n,s-n,t,"overlay "+e),s=n+2;else for(;nt.options.maxHighlightLength&&Ft(t.doc.mode,i.state),a=he(t,e,i);r&&(i.state=r),e.stateAfter=i.save(!r),e.styles=a.styles,a.classes?e.styleClasses=a.classes:e.styleClasses&&(e.styleClasses=null),n===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function pe(t,e,n){var i=t.doc,r=t.display;if(!i.mode.startState)return new ce(i,!0,e);var a=function(t,e,n){for(var i,r,a=t.doc,o=n?-1:e-(t.doc.mode.innerMode?1e3:100),u=e;u>o;--u){if(u<=a.first)return a.first;var s=Wt(a,u-1),l=s.stateAfter;if(l&&(!n||u+(l instanceof le?l.lookAhead:0)<=a.modeFrontier))return u;var c=H(s.text,null,t.options.tabSize);(null==r||i>c)&&(r=u-1,i=c)}return r}(t,e,n),o=a>i.first&&Wt(i,a-1).stateAfter,u=o?ce.fromSaved(i,o,a):new ce(i,Xt(i.mode),a);return i.iter(a,e,(function(n){fe(t,n.text,u);var i=u.line;n.stateAfter=i==e-1||i%5==0||i>=r.viewFrom&&ie.start)return a}throw new Error("Mode "+t.name+" failed to advance stream.")}ce.prototype.lookAhead=function(t){var e=this.doc.getLine(this.line+t);return null!=e&&t>this.maxLookAhead&&(this.maxLookAhead=t),e},ce.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var e=this.baseTokens[this.baseTokenPos+1];return{type:e&&e.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},ce.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ce.fromSaved=function(t,e,n){return e instanceof le?new ce(t,Ft(t.mode,e.state),n,e.lookAhead):new ce(t,Ft(t.mode,e),n)},ce.prototype.save=function(t){var e=!1!==t?Ft(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new le(e,this.maxLookAhead):e};var ye=function(t,e,n){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=n};function be(t,e,n,i){var r,a,o=t.doc,u=o.mode,s=Wt(o,(e=ue(o,e)).line),l=pe(t,e.line,n),c=new Kt(s.text,t.options.tabSize,l);for(i&&(a=[]);(i||c.post.options.maxHighlightLength?(u=!1,o&&fe(t,e,i,h.pos),h.pos=e.length,s=null):s=ve(ge(n,h,i.state,d),a),d){var p=d[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!u||c!=s){for(;l=e:a.to>e);(i||(i=[])).push(new Ce(o,a.from,u?null:a.to))}}return i}(n,r,o),s=function(t,e,n){var i;if(t)for(var r=0;r=e:a.to>e)||a.from==e&&"bookmark"==o.type&&(!n||a.marker.insertLeft)){var u=null==a.from||(o.inclusiveLeft?a.from<=e:a.from0&&u)for(var v=0;ve)&&(!n||De(n,a.marker)<0)&&(n=a.marker)}return n}function _e(t,e,n,i,r){var a=Wt(t,e),o=xe&&a.markedSpans;if(o)for(var u=0;u=0&&h<=0||c<=0&&h>=0)&&(c<=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ee(l.to,n)>=0:ee(l.to,n)>0)||c>=0&&(s.marker.inclusiveRight&&r.inclusiveLeft?ee(l.from,i)<=0:ee(l.from,i)<0)))return!0}}}function He(t){for(var e;e=Ne(t);)t=e.find(-1,!0).line;return t}function Je(t,e){var n=Wt(t,e),i=He(n);return n==i?e:qt(i)}function Oe(t,e){if(e>t.lastLine())return e;var n,i=Wt(t,e);if(!Ze(t,i))return e;for(;n=Ae(i);)i=n.find(1,!0).line;return qt(i)+1}function Ze(t,e){var n=xe&&e.markedSpans;if(n)for(var i=void 0,r=0;re.maxLineLength&&(e.maxLineLength=n,e.maxLine=t)}))}var We=function(t,e,n){this.text=t,Ee(this,e),this.height=n?n(this):1};function Ie(t){t.parent=null,Be(t)}We.prototype.lineNo=function(){return qt(this)},bt(We);var ze={},Qe={};function qe(t,e){if(!t||/^\s*$/.test(t))return null;var n=e.addModeClass?Qe:ze;return n[t]||(n[t]=t.replace(/\S+/g,"cm-$&"))}function Ue(t,e){var n=G("span",null,null,s?"padding-right: .1px":null),i={pre:G("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var r=0;r<=(e.rest?e.rest.length:0);r++){var a=r?e.rest[r-1]:e.line,o=void 0;i.pos=0,i.addToken=$e,Et(t.display.measure)&&(o=lt(a,t.doc.direction))&&(i.addToken=tn(i.addToken,o)),i.map=[],nn(a,i,de(t,a,e!=t.display.externalMeasured&&qt(a))),a.styleClasses&&(a.styleClasses.bgClass&&(i.bgClass=N(a.styleClasses.bgClass,i.bgClass||"")),a.styleClasses.textClass&&(i.textClass=N(a.styleClasses.textClass,i.textClass||""))),0==i.map.length&&i.map.push(0,0,i.content.appendChild(Bt(t.display.measure))),0==r?(e.measure.map=i.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(i.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(s){var u=i.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(i.content.className="cm-tab-wrap-hack")}return ft(t,"renderLine",t,e.line,i.pre),i.pre.className&&(i.textClass=N(i.pre.className,i.textClass||"")),i}function Ve(t){var e=E("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function $e(t,e,n,i,r,a,s){if(e){var l,c=t.splitSpaces?function(t,e){if(t.length>1&&!/ /.test(t))return t;for(var n=e,i="",r=0;rl&&h.from<=l);d++);if(h.to>=c)return t(n,i,r,a,o,u,s);t(n,i.slice(0,h.to-l),r,a,null,u,s),a=null,i=i.slice(h.to-l),l=h.to}}}function en(t,e,n,i){var r=!i&&n.widgetNode;r&&t.map.push(t.pos,t.pos+e,r),!i&&t.cm.display.input.needsContentAttribute&&(r||(r=t.content.appendChild(document.createElement("span"))),r.setAttribute("cm-marker",n.id)),r&&(t.cm.display.input.setUneditable(r),t.content.appendChild(r)),t.pos+=e,t.trailingSpace=!1}function nn(t,e,n){var i=t.markedSpans,r=t.text,a=0;if(i)for(var o,u,s,l,c,h,d,p=r.length,f=0,m=1,g="",y=0;;){if(y==f){s=l=c=u="",d=null,h=null,y=1/0;for(var b=[],v=void 0,w=0;wf||x.collapsed&&k.to==f&&k.from==f)){if(null!=k.to&&k.to!=f&&y>k.to&&(y=k.to,l=""),x.className&&(s+=" "+x.className),x.css&&(u=(u?u+";":"")+x.css),x.startStyle&&k.from==f&&(c+=" "+x.startStyle),x.endStyle&&k.to==y&&(v||(v=[])).push(x.endStyle,k.to),x.title&&((d||(d={})).title=x.title),x.attributes)for(var C in x.attributes)(d||(d={}))[C]=x.attributes[C];x.collapsed&&(!h||De(h.marker,x)<0)&&(h=k)}else k.from>f&&y>k.from&&(y=k.from)}if(v)for(var S=0;S=p)break;for(var M=Math.min(p,y);;){if(g){var T=f+g.length;if(!h){var B=T>M?g.slice(0,M-f):g;e.addToken(e,B,o?o+s:s,c,f+B.length==y?l:"",u,d)}if(T>=M){g=g.slice(M-f),f=M;break}f=T,c=""}g=r.slice(a,a=n[m++]),o=qe(n[m++],e.cm.options)}}else for(var E=1;En)return{map:t.measure.maps[r],cache:t.measure.caches[r],before:!0}}function Gn(t,e,n,i){return jn(t,Dn(t,e),n,i)}function Pn(t,e){if(e>=t.display.viewFrom&&e=n.lineN&&e2&&a.push((s.bottom+l.top)/2-n.top)}}a.push(n.bottom-n.top)}}(t,e.view,e.rect),e.hasHeights=!0),(a=function(t,e,n,i){var r,a=Yn(e.map,n,i),s=a.node,l=a.start,c=a.end,h=a.collapse;if(3==s.nodeType){for(var d=0;d<4;d++){for(;l&&it(e.line.text.charAt(a.coverStart+l));)--l;for(;a.coverStart+c1}(t))return e;var n=screen.logicalXDPI/screen.deviceXDPI,i=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*n,right:e.right*n,top:e.top*i,bottom:e.bottom*i}}(t.display.measure,r))}else{var p;l>0&&(h=i="right"),r=t.options.lineWrapping&&(p=s.getClientRects()).length>1?p["right"==i?p.length-1:0]:s.getBoundingClientRect()}if(o&&u<9&&!l&&(!r||!r.left&&!r.right)){var f=s.parentNode.getClientRects()[0];r=f?{left:f.left,right:f.left+ri(t.display),top:f.top,bottom:f.bottom}:An}for(var m=r.top-e.rect.top,g=r.bottom-e.rect.top,y=(m+g)/2,b=e.view.measure.heights,v=0;ve)&&(r=(a=s-u)-1,e>=s&&(o="right")),null!=r){if(i=t[l+2],u==s&&n==(i.insertLeft?"left":"right")&&(o=n),"left"==n&&0==r)for(;l&&t[l-2]==t[l-3]&&t[l-1].insertLeft;)i=t[2+(l-=3)],o="left";if("right"==n&&r==s-u)for(;l=0&&(n=t[r]).left==n.right;r--);return n}function Hn(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e=i.text.length?(s=i.text.length,l="before"):s<=0&&(s=0,l="after"),!u)return o("before"==l?s-1:s,"before"==l);function c(t,e,n){return o(n?t-1:t,1==u[e].level!=n)}var h=ut(u,s,l),d=ot,p=c(s,h,"before"==l);return null!=d&&(p.other=c(s,d,"before"!=l)),p}function zn(t,e){var n=0;e=ue(t.doc,e),t.options.lineWrapping||(n=ri(t.display)*e.ch);var i=Wt(t.doc,e.line),r=Re(i)+Cn(t.display);return{left:n,right:n,top:r,bottom:r+i.height}}function Qn(t,e,n,i,r){var a=te(t,e,n);return a.xRel=r,i&&(a.outside=i),a}function qn(t,e,n){var i=t.doc;if((n+=t.display.viewOffset)<0)return Qn(i.first,0,null,-1,-1);var r=Ut(i,n),a=i.first+i.size-1;if(r>a)return Qn(i.first+i.size-1,Wt(i,a).text.length,null,1,1);e<0&&(e=0);for(var o=Wt(i,r);;){var u=ti(t,o,r,e,n),s=Ye(o,u.ch+(u.xRel>0||u.outside>0?1:0));if(!s)return u;var l=s.find(1);if(l.line==r)return l;o=Wt(i,r=l.line)}}function Un(t,e,n,i){i-=Rn(e);var r=e.text.length,a=at((function(e){return jn(t,n,e-1).bottom<=i}),r,0);return{begin:a,end:r=at((function(e){return jn(t,n,e).top>i}),a,r)}}function Vn(t,e,n,i){return n||(n=Dn(t,e)),Un(t,e,n,Xn(t,e,jn(t,n,i),"line").top)}function $n(t,e,n,i){return!(t.bottom<=n)&&(t.top>n||(i?t.left:t.right)>e)}function ti(t,e,n,i,r){r-=Re(e);var a=Dn(t,e),o=Rn(e),u=0,s=e.text.length,l=!0,c=lt(e,t.doc.direction);if(c){var h=(t.options.lineWrapping?ni:ei)(t,e,n,a,c,i,r);u=(l=1!=h.level)?h.from:h.to-1,s=l?h.to:h.from-1}var d,p,f=null,m=null,g=at((function(e){var n=jn(t,a,e);return n.top+=o,n.bottom+=o,!!$n(n,i,r,!1)&&(n.top<=r&&n.left<=i&&(f=e,m=n),!0)}),u,s),y=!1;if(m){var b=i-m.left=w.bottom?1:0}return Qn(n,g=rt(e.text,g,1),p,y,i-d)}function ei(t,e,n,i,r,a,o){var u=at((function(u){var s=r[u],l=1!=s.level;return $n(In(t,te(n,l?s.to:s.from,l?"before":"after"),"line",e,i),a,o,!0)}),0,r.length-1),s=r[u];if(u>0){var l=1!=s.level,c=In(t,te(n,l?s.from:s.to,l?"after":"before"),"line",e,i);$n(c,a,o,!0)&&c.top>o&&(s=r[u-1])}return s}function ni(t,e,n,i,r,a,o){var u=Un(t,e,i,o),s=u.begin,l=u.end;/\s/.test(e.text.charAt(l-1))&&l--;for(var c=null,h=null,d=0;d=l||p.to<=s)){var f=jn(t,i,1!=p.level?Math.min(l,p.to)-1:Math.max(s,p.from)).right,m=fm)&&(c=p,h=m)}}return c||(c=r[r.length-1]),c.froml&&(c={from:c.from,to:l,level:c.level}),c}function ii(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Nn){Nn=E("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Nn.appendChild(document.createTextNode("x")),Nn.appendChild(E("br"));Nn.appendChild(document.createTextNode("x"))}B(t.measure,Nn);var n=Nn.offsetHeight/50;return n>3&&(t.cachedTextHeight=n),T(t.measure),n||1}function ri(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=E("span","xxxxxxxxxx"),n=E("pre",[e],"CodeMirror-line-like");B(t.measure,n);var i=e.getBoundingClientRect(),r=(i.right-i.left)/10;return r>2&&(t.cachedCharWidth=r),r||10}function ai(t){for(var e=t.display,n={},i={},r=e.gutters.clientLeft,a=e.gutters.firstChild,o=0;a;a=a.nextSibling,++o){var u=t.display.gutterSpecs[o].className;n[u]=a.offsetLeft+a.clientLeft+r,i[u]=a.clientWidth}return{fixedPos:oi(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:n,gutterWidth:i,wrapperWidth:e.wrapper.clientWidth}}function oi(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function ui(t){var e=ii(t.display),n=t.options.lineWrapping,i=n&&Math.max(5,t.display.scroller.clientWidth/ri(t.display)-3);return function(r){if(Ze(t.doc,r))return 0;var a=0;if(r.widgets)for(var o=0;o0&&(s=Wt(t.doc,l.line).text).length==l.ch){var c=H(s,s.length,t.options.tabSize)-s.length;l=te(l.line,Math.max(0,Math.round((a-Ln(t.display).left)/ri(t.display))-c))}return l}function ci(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var n=t.display.view,i=0;ie)&&(r.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=r.viewTo)xe&&Je(t.doc,e)r.viewFrom?pi(t):(r.viewFrom+=i,r.viewTo+=i);else if(e<=r.viewFrom&&n>=r.viewTo)pi(t);else if(e<=r.viewFrom){var a=fi(t,n,n+i,1);a?(r.view=r.view.slice(a.index),r.viewFrom=a.lineN,r.viewTo+=i):pi(t)}else if(n>=r.viewTo){var o=fi(t,e,e,-1);o?(r.view=r.view.slice(0,o.index),r.viewTo=o.lineN):pi(t)}else{var u=fi(t,e,e,-1),s=fi(t,n,n+i,1);u&&s?(r.view=r.view.slice(0,u.index).concat(an(t,u.lineN,s.lineN)).concat(r.view.slice(s.index)),r.viewTo+=i):pi(t)}var l=r.externalMeasured;l&&(n=r.lineN&&e=i.viewTo)){var a=i.view[ci(t,e)];if(null!=a.node){var o=a.changes||(a.changes=[]);-1==O(o,n)&&o.push(n)}}}function pi(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function fi(t,e,n,i){var r,a=ci(t,e),o=t.display.view;if(!xe||n==t.doc.first+t.doc.size)return{index:a,lineN:n};for(var u=t.display.viewFrom,s=0;s0){if(a==o.length-1)return null;r=u+o[a].size-e,a++}else r=u-e;e+=r,n+=r}for(;Je(t.doc,n)!=n;){if(a==(i<0?0:o.length-1))return null;n+=i*o[a-(i<0?1:0)].size,a+=i}return{index:a,lineN:n}}function mi(t){for(var e=t.display.view,n=0,i=0;i=t.display.viewTo||u.to().linee||e==n&&o.to==e)&&(i(Math.max(o.from,e),Math.min(o.to,n),1==o.level?"rtl":"ltr",a),r=!0)}r||i(e,n,"ltr")}(m,n||0,null==i?d:i,(function(t,e,r,h){var g="ltr"==r,y=p(t,g?"left":"right"),b=p(e-1,g?"right":"left"),v=null==n&&0==t,w=null==i&&e==d,k=0==h,x=!m||h==m.length-1;if(b.top-y.top<=3){var C=(l?w:v)&&x,S=(l?v:w)&&k?u:(g?y:b).left,L=C?s:(g?b:y).right;c(S,y.top,L-S,y.bottom)}else{var M,T,B,E;g?(M=l&&v&&k?u:y.left,T=l?s:f(t,r,"before"),B=l?u:f(e,r,"after"),E=l&&w&&x?s:b.right):(M=l?f(t,r,"before"):u,T=!l&&v&&k?s:y.right,B=!l&&w&&x?u:b.left,E=l?f(e,r,"after"):s),c(M,y.top,T-M,y.bottom),y.bottom0?e.blinker=setInterval((function(){t.hasFocus()||Li(t),e.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function xi(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||Si(t))}function Ci(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Li(t))}),100)}function Si(t,e){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(ft(t,"focus",t,e),t.state.focused=!0,j(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),s&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),ki(t))}function Li(t,e){t.state.delayingBlurEvent||(t.state.focused&&(ft(t,"blur",t,e),t.state.focused=!1,M(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Mi(t){for(var e=t.display,n=e.lineDiv.offsetTop,i=0;i.005||d<-.005)&&(Qt(r.line,s),Ti(r.line),r.rest))for(var p=0;pt.display.sizerWidth){var f=Math.ceil(l/ri(t.display));f>t.display.maxLineLength&&(t.display.maxLineLength=f,t.display.maxLine=r.line,t.display.maxLineChanged=!0)}}}}function Ti(t){if(t.widgets)for(var e=0;e=o&&(a=Ut(e,Re(Wt(e,s))-t.wrapper.clientHeight),o=s)}return{from:a,to:Math.max(o,a+1)}}function Ei(t,e){var n=t.display,i=ii(t.display);e.top<0&&(e.top=0);var r=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:n.scroller.scrollTop,a=Bn(t),o={};e.bottom-e.top>a&&(e.bottom=e.top+a);var u=t.doc.height+Sn(n),s=e.topu-i;if(e.topr+a){var c=Math.min(e.top,(l?u:e.bottom)-a);c!=r&&(o.scrollTop=c)}var h=t.options.fixedGutter?0:n.gutters.offsetWidth,d=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:n.scroller.scrollLeft-h,p=Tn(t)-n.gutters.offsetWidth,f=e.right-e.left>p;return f&&(e.right=e.left+p),e.left<10?o.scrollLeft=0:e.leftp+d-3&&(o.scrollLeft=e.right+(f?0:10)-p),o}function Gi(t,e){null!=e&&(ji(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Pi(t){ji(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Di(t,e,n){null==e&&null==n||ji(t),null!=e&&(t.curOp.scrollLeft=e),null!=n&&(t.curOp.scrollTop=n)}function ji(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,Ni(t,zn(t,e.from),zn(t,e.to),e.margin))}function Ni(t,e,n,i){var r=Ei(t,{left:Math.min(e.left,n.left),top:Math.min(e.top,n.top)-i,right:Math.max(e.right,n.right),bottom:Math.max(e.bottom,n.bottom)+i});Di(t,r.scrollLeft,r.scrollTop)}function Ai(t,e){Math.abs(t.doc.scrollTop-e)<2||(n||sr(t,{top:e}),Yi(t,e,!0),n&&sr(t),ir(t,100))}function Yi(t,e,n){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||n)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function _i(t,e,n,i){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(n?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!i||(t.doc.scrollLeft=e,hr(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Hi(t){var e=t.display,n=e.gutters.offsetWidth,i=Math.round(t.doc.height+Sn(t.display));return{clientHeight:e.scroller.clientHeight,viewHeight:e.wrapper.clientHeight,scrollWidth:e.scroller.scrollWidth,clientWidth:e.scroller.clientWidth,viewWidth:e.wrapper.clientWidth,barLeft:t.options.fixedGutter?n:0,docHeight:i,scrollHeight:i+Mn(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:n}}var Ji=function(t,e,n){this.cm=n;var i=this.vert=E("div",[E("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),r=this.horiz=E("div",[E("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");i.tabIndex=r.tabIndex=-1,t(i),t(r),ht(i,"scroll",(function(){i.clientHeight&&e(i.scrollTop,"vertical")})),ht(r,"scroll",(function(){r.clientWidth&&e(r.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&u<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ji.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,n=t.scrollHeight>t.clientHeight+1,i=t.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=e?i+"px":"0";var r=t.viewHeight-(e?i:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+r)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=n?i+"px":"0",this.horiz.style.left=t.barLeft+"px";var a=t.viewWidth-t.barLeft-(n?i:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+a)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==i&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?i:0,bottom:e?i:0}},Ji.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ji.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ji.prototype.zeroWidthHack=function(){var t=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new J,this.disableVert=new J},Ji.prototype.enableZeroWidthBar=function(t,e,n){t.style.pointerEvents="auto",e.set(1e3,(function i(){var r=t.getBoundingClientRect();("vert"==n?document.elementFromPoint(r.right-1,(r.top+r.bottom)/2):document.elementFromPoint((r.right+r.left)/2,r.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,i)}))},Ji.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Oi=function(){};function Zi(t,e){e||(e=Hi(t));var n=t.display.barWidth,i=t.display.barHeight;Fi(t,e);for(var r=0;r<4&&n!=t.display.barWidth||i!=t.display.barHeight;r++)n!=t.display.barWidth&&t.options.lineWrapping&&Mi(t),Fi(t,Hi(t)),n=t.display.barWidth,i=t.display.barHeight}function Fi(t,e){var n=t.display,i=n.scrollbars.update(e);n.sizer.style.paddingRight=(n.barWidth=i.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=i.bottom)+"px",n.heightForcer.style.borderBottom=i.bottom+"px solid transparent",i.right&&i.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=i.bottom+"px",n.scrollbarFiller.style.width=i.right+"px"):n.scrollbarFiller.style.display="",i.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=i.bottom+"px",n.gutterFiller.style.width=e.gutterWidth+"px"):n.gutterFiller.style.display=""}Oi.prototype.update=function(){return{bottom:0,right:0}},Oi.prototype.setScrollLeft=function(){},Oi.prototype.setScrollTop=function(){},Oi.prototype.clear=function(){};var Ri={native:Ji,null:Oi};function Xi(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&M(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Ri[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ht(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,n){"horizontal"==n?_i(t,e):Ai(t,e)}),t),t.display.scrollbars.addClass&&j(t.display.wrapper,t.display.scrollbars.addClass)}var Ki=0;function Wi(t){var e;t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ki},e=t.curOp,on?on.ops.push(e):e.ownsGroup=on={ops:[e],delayedCallbacks:[]}}function Ii(t){var e=t.curOp;e&&function(t,e){var n=t.ownsGroup;if(n)try{!function(t){var e=t.delayedCallbacks,n=0;do{for(;n=n.viewTo)||n.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new ar(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Qi(t){t.updatedDisplay=t.mustUpdate&&or(t.cm,t.update)}function qi(t){var e=t.cm,n=e.display;t.updatedDisplay&&Mi(e),t.barMeasure=Hi(e),n.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Gn(e,n.maxLine,n.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+t.adjustWidthTo+Mn(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+t.adjustWidthTo-Tn(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=n.input.prepareSelection())}function Ui(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft(window.innerHeight||document.documentElement.clientHeight)&&(r=!1),null!=r&&!f){var a=E("div","​",null,"position: absolute;\n top: "+(e.top-n.viewOffset-Cn(t.display))+"px;\n height: "+(e.bottom-e.top+Mn(t)+n.barHeight)+"px;\n left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(a),a.scrollIntoView(r),t.display.lineSpace.removeChild(a)}}}(e,function(t,e,n,i){var r;null==i&&(i=0),t.options.lineWrapping||e!=n||(n="before"==(e=e.ch?te(e.line,"before"==e.sticky?e.ch-1:e.ch,"after"):e).sticky?te(e.line,e.ch+1,"before"):e);for(var a=0;a<5;a++){var o=!1,u=In(t,e),s=n&&n!=e?In(t,n):u,l=Ei(t,r={left:Math.min(u.left,s.left),top:Math.min(u.top,s.top)-i,right:Math.max(u.left,s.left),bottom:Math.max(u.bottom,s.bottom)+i}),c=t.doc.scrollTop,h=t.doc.scrollLeft;if(null!=l.scrollTop&&(Ai(t,l.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(o=!0)),null!=l.scrollLeft&&(_i(t,l.scrollLeft),Math.abs(t.doc.scrollLeft-h)>1&&(o=!0)),!o)break}return r}(e,ue(i,t.scrollToPos.from),ue(i,t.scrollToPos.to),t.scrollToPos.margin));var r=t.maybeHiddenMarkers,a=t.maybeUnhiddenMarkers;if(r)for(var o=0;o=t.display.viewTo)){var n=+new Date+t.options.workTime,i=pe(t,e.highlightFrontier),r=[];e.iter(i.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(a){if(i.line>=t.display.viewFrom){var o=a.styles,u=a.text.length>t.options.maxHighlightLength?Ft(e.mode,i.state):null,s=he(t,a,i,!0);u&&(i.state=u),a.styles=s.styles;var l=a.styleClasses,c=s.classes;c?a.styleClasses=c:l&&(a.styleClasses=null);for(var h=!o||o.length!=a.styles.length||l!=c&&(!l||!c||l.bgClass!=c.bgClass||l.textClass!=c.textClass),d=0;!h&&dn)return ir(t,t.options.workDelay),!0})),e.highlightFrontier=i.line,e.modeFrontier=Math.max(e.modeFrontier,i.line),r.length&&$i(t,(function(){for(var e=0;e=n.viewFrom&&e.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mi(t))return!1;dr(t)&&(pi(t),e.dims=ai(t));var r=i.first+i.size,a=Math.max(e.visible.from-t.options.viewportMargin,i.first),o=Math.min(r,e.visible.to+t.options.viewportMargin);n.viewFromo&&n.viewTo-o<20&&(o=Math.min(r,n.viewTo)),xe&&(a=Je(t.doc,a),o=Oe(t.doc,o));var u=a!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=e.wrapperHeight||n.lastWrapWidth!=e.wrapperWidth;!function(t,e,n){var i=t.display;0==i.view.length||e>=i.viewTo||n<=i.viewFrom?(i.view=an(t,e,n),i.viewFrom=e):(i.viewFrom>e?i.view=an(t,e,i.viewFrom).concat(i.view):i.viewFromn&&(i.view=i.view.slice(0,ci(t,n)))),i.viewTo=n}(t,a,o),n.viewOffset=Re(Wt(t.doc,n.viewFrom)),t.display.mover.style.top=n.viewOffset+"px";var l=mi(t);if(!u&&0==l&&!e.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=function(t){if(t.hasFocus())return null;var e=D();if(!e||!P(t.display.lineDiv,e))return null;var n={activeElt:e};if(window.getSelection){var i=window.getSelection();i.anchorNode&&i.extend&&P(t.display.lineDiv,i.anchorNode)&&(n.anchorNode=i.anchorNode,n.anchorOffset=i.anchorOffset,n.focusNode=i.focusNode,n.focusOffset=i.focusOffset)}return n}(t);return l>4&&(n.lineDiv.style.display="none"),function(t,e,n){var i=t.display,r=t.options.lineNumbers,a=i.lineDiv,o=a.firstChild;function u(e){var n=e.nextSibling;return s&&b&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),n}for(var l=i.view,c=i.viewFrom,h=0;h-1&&(p=!1),cn(t,d,c,n)),p&&(T(d.lineNumber),d.lineNumber.appendChild(document.createTextNode($t(t.options,c)))),o=d.node.nextSibling}else{var f=yn(t,d,c,n);a.insertBefore(f,o)}c+=d.size}for(;o;)o=u(o)}(t,n.updateLineNumbers,e.dims),l>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(t){if(t&&t.activeElt&&t.activeElt!=D()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&P(document.body,t.anchorNode)&&P(document.body,t.focusNode))){var e=window.getSelection(),n=document.createRange();n.setEnd(t.anchorNode,t.anchorOffset),n.collapse(!1),e.removeAllRanges(),e.addRange(n),e.extend(t.focusNode,t.focusOffset)}}(c),T(n.cursorDiv),T(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,u&&(n.lastWrapHeight=e.wrapperHeight,n.lastWrapWidth=e.wrapperWidth,ir(t,400)),n.updateLineNumbers=null,!0}function ur(t,e){for(var n=e.viewport,i=!0;;i=!1){if(i&&t.options.lineWrapping&&e.oldDisplayWidth!=Tn(t))i&&(e.visible=Bi(t.display,t.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(t.doc.height+Sn(t.display)-Bn(t),n.top)}),e.visible=Bi(t.display,t.doc,n),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!or(t,e))break;Mi(t);var r=Hi(t);gi(t),Zi(t,r),cr(t,r),e.force=!1}e.signal(t,"update",t),t.display.viewFrom==t.display.reportedViewFrom&&t.display.viewTo==t.display.reportedViewTo||(e.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function sr(t,e){var n=new ar(t,e);if(or(t,n)){Mi(t),ur(t,n);var i=Hi(t);gi(t),Zi(t,i),cr(t,i),n.finish()}}function lr(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function cr(t,e){t.display.sizer.style.minHeight=e.docHeight+"px",t.display.heightForcer.style.top=e.docHeight+"px",t.display.gutters.style.height=e.docHeight+t.display.barHeight+Mn(t)+"px"}function hr(t){var e=t.display,n=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var i=oi(e)-e.scroller.scrollLeft+t.doc.scrollLeft,r=e.gutters.offsetWidth,a=i+"px",o=0;ou.clientWidth,c=u.scrollHeight>u.clientHeight;if(r&&l||a&&c){if(a&&b&&s)t:for(var d=e.target,p=o.view;d!=u;d=d.parentNode)for(var f=0;f=0&&ee(t,i.to())<=0)return n}return-1};var Cr=function(t,e){this.anchor=t,this.head=e};function Sr(t,e,n){var i=t&&t.options.selectionsMayTouch,r=e[n];e.sort((function(t,e){return ee(t.from(),e.from())})),n=O(e,r);for(var a=1;a0:s>=0){var l=ae(u.from(),o.from()),c=re(u.to(),o.to()),h=u.empty()?o.from()==o.head:u.from()==u.head;a<=n&&--n,e.splice(--a,2,new Cr(h?c:l,h?l:c))}}return new xr(e,n)}function Lr(t,e){return new xr([new Cr(t,e||t)],0)}function Mr(t){return t.text?te(t.from.line+t.text.length-1,z(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Tr(t,e){if(ee(t,e.from)<0)return t;if(ee(t,e.to)<=0)return Mr(e);var n=t.line+e.text.length-(e.to.line-e.from.line)-1,i=t.ch;return t.line==e.to.line&&(i+=Mr(e).ch-e.to.ch),te(n,i)}function Br(t,e){for(var n=[],i=0;i1&&t.remove(u.line+1,f-1),t.insert(u.line+1,y)}sn(t,"change",t,e)}function Nr(t,e,n){!function t(i,r,a){if(i.linked)for(var o=0;ou-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(a=function(t,e){return e?(Jr(t.done),z(t.done)):t.done.length&&!z(t.done).ranges?z(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),z(t.done)):void 0}(r,r.lastOp==i)))o=z(a.changes),0==ee(e.from,e.to)&&0==ee(e.from,o.to)?o.to=Mr(e):a.changes.push(Hr(t,e));else{var s=z(r.done);for(s&&s.ranges||Fr(t.sel,r.done),a={changes:[Hr(t,e)],generation:r.generation},r.done.push(a);r.done.length>r.undoDepth;)r.done.shift(),r.done[0].ranges||r.done.shift()}r.done.push(n),r.generation=++r.maxGeneration,r.lastModTime=r.lastSelTime=u,r.lastOp=r.lastSelOp=i,r.lastOrigin=r.lastSelOrigin=e.origin,o||ft(t,"historyAdded")}function Zr(t,e,n,i){var r=t.history,a=i&&i.origin;n==r.lastSelOp||a&&r.lastSelOrigin==a&&(r.lastModTime==r.lastSelTime&&r.lastOrigin==a||function(t,e,n,i){var r=e.charAt(0);return"*"==r||"+"==r&&n.ranges.length==i.ranges.length&&n.somethingSelected()==i.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,a,z(r.done),e))?r.done[r.done.length-1]=e:Fr(e,r.done),r.lastSelTime=+new Date,r.lastSelOrigin=a,r.lastSelOp=n,i&&!1!==i.clearRedo&&Jr(r.undone)}function Fr(t,e){var n=z(e);n&&n.ranges&&n.equals(t)||e.push(t)}function Rr(t,e,n,i){var r=e["spans_"+t.id],a=0;t.iter(Math.max(t.first,n),Math.min(t.first+t.size,i),(function(n){n.markedSpans&&((r||(r=e["spans_"+t.id]={}))[a]=n.markedSpans),++a}))}function Xr(t){if(!t)return null;for(var e,n=0;n-1&&(z(u)[h]=l[h],delete l[h])}}}return i}function Ir(t,e,n,i){if(i){var r=t.anchor;if(n){var a=ee(e,r)<0;a!=ee(n,r)<0?(r=e,e=n):a!=ee(e,n)<0&&(e=n)}return new Cr(r,e)}return new Cr(n||e,e)}function zr(t,e,n,i,r){null==r&&(r=t.cm&&(t.cm.display.shift||t.extend)),$r(t,new xr([Ir(t.sel.primary(),e,n,r)],0),i)}function Qr(t,e,n){for(var i=[],r=t.cm&&(t.cm.display.shift||t.extend),a=0;a=e.ch:u.to>e.ch))){if(r&&(ft(s,"beforeCursorEnter"),s.explicitlyCleared)){if(a.markedSpans){--o;continue}break}if(!s.atomic)continue;if(n){var h=s.find(i<0?1:-1),d=void 0;if((i<0?c:l)&&(h=oa(t,h,-i,h&&h.line==e.line?a:null)),h&&h.line==e.line&&(d=ee(h,n))&&(i<0?d<0:d>0))return ra(t,h,e,i,r)}var p=s.find(i<0?-1:1);return(i<0?l:c)&&(p=oa(t,p,i,p.line==e.line?a:null)),p?ra(t,p,e,i,r):null}}return e}function aa(t,e,n,i,r){var a=i||1,o=ra(t,e,n,a,r)||!r&&ra(t,e,n,a,!0)||ra(t,e,n,-a,r)||!r&&ra(t,e,n,-a,!0);return o||(t.cantEdit=!0,te(t.first,0))}function oa(t,e,n,i){return n<0&&0==e.ch?e.line>t.first?ue(t,te(e.line-1)):null:n>0&&e.ch==(i||Wt(t,e.line)).text.length?e.line0)){var c=[s,1],h=ee(l.from,u.from),d=ee(l.to,u.to);(h<0||!o.inclusiveLeft&&!h)&&c.push({from:l.from,to:u.from}),(d>0||!o.inclusiveRight&&!d)&&c.push({from:u.to,to:l.to}),r.splice.apply(r,c),s+=c.length-3}}return r}(t,e.from,e.to);if(i)for(var r=i.length-1;r>=0;--r)ca(t,{from:i[r].from,to:i[r].to,text:r?[""]:e.text,origin:e.origin});else ca(t,e)}}function ca(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ee(e.from,e.to)){var n=Br(t,e);Or(t,e,n,t.cm?t.cm.curOp.id:NaN),pa(t,e,n,Me(t,e));var i=[];Nr(t,(function(t,n){n||-1!=O(i,t.history)||(ya(t.history,e),i.push(t.history)),pa(t,e,null,Me(t,e))}))}}function ha(t,e,n){var i=t.cm&&t.cm.state.suppressEdits;if(!i||n){for(var r,a=t.history,o=t.sel,u="undo"==e?a.done:a.undone,s="undo"==e?a.undone:a.done,l=0;l=0;--p){var f=d(p);if(f)return f.v}}}}function da(t,e){if(0!=e&&(t.first+=e,t.sel=new xr(Q(t.sel.ranges,(function(t){return new Cr(te(t.anchor.line+e,t.anchor.ch),te(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){hi(t.cm,t.first,t.first-e,e);for(var n=t.cm.display,i=n.viewFrom;it.lastLine())){if(e.from.linea&&(e={from:e.from,to:te(a,Wt(t,a).text.length),text:[e.text[0]],origin:e.origin}),e.removed=It(t,e.from,e.to),n||(n=Br(t,e)),t.cm?function(t,e,n){var i=t.doc,r=t.display,a=e.from,o=e.to,u=!1,s=a.line;t.options.lineWrapping||(s=qt(He(Wt(i,a.line))),i.iter(s,o.line+1,(function(t){if(t==r.maxLine)return u=!0,!0}))),i.sel.contains(e.from,e.to)>-1&>(t),jr(i,e,n,ui(t)),t.options.lineWrapping||(i.iter(s,a.line+e.text.length,(function(t){var e=Xe(t);e>r.maxLineLength&&(r.maxLine=t,r.maxLineLength=e,r.maxLineChanged=!0,u=!1)})),u&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontiern;i--){var r=Wt(t,i).stateAfter;if(r&&(!(r instanceof le)||i+r.lookAhead1||!(this.children[0]instanceof va))){var u=[];this.collapse(u),this.children=[new va(u)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e50){for(var o=r.lines.length%25+25,u=o;u10);t.parent.maybeSpill()}},iterN:function(t,e,n){for(var i=0;i0||0==o&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=G("span",[a.replacedWith],"CodeMirror-widget"),i.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),i.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(_e(t,e.line,e,n,a)||e.line!=n.line&&_e(t,n.line,e,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");xe=!0}a.addToHistory&&Or(t,{from:e,to:n,origin:"markText"},t.sel,NaN);var u,s=e.line,l=t.cm;if(t.iter(s,n.line+1,(function(t){l&&a.collapsed&&!l.options.lineWrapping&&He(t)==l.display.maxLine&&(u=!0),a.collapsed&&s!=e.line&&Qt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new Ce(a,s==e.line?e.ch:null,s==n.line?n.ch:null)),++s})),a.collapsed&&t.iter(e.line,n.line+1,(function(e){Ze(t,e)&&Qt(e,0)})),a.clearOnEnter&&ht(a,"beforeCursorEnter",(function(){return a.clear()})),a.readOnly&&(ke=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),a.collapsed&&(a.id=++Ca,a.atomic=!0),l){if(u&&(l.curOp.updateMaxLine=!0),a.collapsed)hi(l,e.line,n.line+1);else if(a.className||a.startStyle||a.endStyle||a.css||a.attributes||a.title)for(var c=e.line;c<=n.line;c++)di(l,c,"text");a.atomic&&na(l.doc),sn(l,"markerAdded",l,a)}return a}Sa.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&Wi(t),yt(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var i=null,r=null,a=0;at.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&hi(t,i,r+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&na(t.doc)),t&&sn(t,"markerCleared",t,this,i,r),e&&Ii(t),this.parent&&this.parent.clear()}},Sa.prototype.find=function(t,e){var n,i;null==t&&"bookmark"==this.type&&(t=1);for(var r=0;r=0;s--)la(this,i[s]);u?Vr(this,u):this.cm&&Pi(this.cm)})),undo:nr((function(){ha(this,"undo")})),redo:nr((function(){ha(this,"redo")})),undoSelection:nr((function(){ha(this,"undo",!0)})),redoSelection:nr((function(){ha(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,n=0,i=0;i=t.ch)&&e.push(r.marker.parent||r.marker)}return e},findMarks:function(t,e,n){t=ue(this,t),e=ue(this,e);var i=[],r=t.line;return this.iter(t.line,e.line+1,(function(a){var o=a.markedSpans;if(o)for(var u=0;u=s.to||null==s.from&&r!=t.line||null!=s.from&&r==e.line&&s.from>=e.ch||n&&!n(s.marker)||i.push(s.marker.parent||s.marker)}++r})),i},getAllMarks:function(){var t=[];return this.iter((function(e){var n=e.markedSpans;if(n)for(var i=0;it)return e=t,!0;t-=a,++n})),ue(this,te(n,e))},indexFromPos:function(t){var e=(t=ue(this,t)).ch;if(t.linee&&(e=t.from),null!=t.to&&t.to-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var h=t.dataTransfer.getData("Text");if(h){var d;if(e.state.draggingText&&!e.state.draggingText.copy&&(d=e.listSelections()),ta(e.doc,Lr(n,n)),d)for(var p=0;p=0;e--)fa(t.doc,"",i[e].from,i[e].to,"+delete");Pi(t)}))}function Ua(t,e,n){var i=rt(t.text,e+n,n);return i<0||i>t.text.length?null:i}function Va(t,e,n){var i=Ua(t,e.ch,n);return null==i?null:new te(e.line,i,n<0?"after":"before")}function $a(t,e,n,i,r){if(t){"rtl"==e.doc.direction&&(r=-r);var a=lt(n,e.doc.direction);if(a){var o,u=r<0?z(a):a[0],s=r<0==(1==u.level)?"after":"before";if(u.level>0||"rtl"==e.doc.direction){var l=Dn(e,n);o=r<0?n.text.length-1:0;var c=jn(e,l,o).top;o=at((function(t){return jn(e,l,t).top==c}),r<0==(1==u.level)?u.from:u.to-1,o),"before"==s&&(o=Ua(n,o,1))}else o=r<0?u.to:u.from;return new te(i,o,s)}}return new te(i,r<0?n.text.length:0,r<0?"before":"after")}Fa.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Fa.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Fa.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Fa.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Fa.default=b?Fa.macDefault:Fa.pcDefault;var to={selectAll:ua,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),F)},killLine:function(t){return qa(t,(function(e){if(e.empty()){var n=Wt(t.doc,e.head.line).text.length;return e.head.ch==n&&e.head.line0)r=new te(r.line,r.ch+1),t.replaceRange(a.charAt(r.ch-1)+a.charAt(r.ch-2),te(r.line,r.ch-2),r,"+transpose");else if(r.line>t.doc.first){var o=Wt(t.doc,r.line-1).text;o&&(r=new te(r.line,1),t.replaceRange(a.charAt(0)+t.doc.lineSeparator()+o.charAt(o.length-1),te(r.line-1,o.length-1),r,"+transpose"))}n.push(new Cr(r,r))}t.setSelections(n)}))},newlineAndIndent:function(t){return $i(t,(function(){for(var e=t.listSelections(),n=e.length-1;n>=0;n--)t.replaceRange(t.doc.lineSeparator(),e[n].anchor,e[n].head,"+input");e=t.listSelections();for(var i=0;i-1&&(ee((r=l.ranges[r]).from(),e)<0||e.xRel>0)&&(ee(r.to(),e)>0||e.xRel<0)?function(t,e,n,i){var r=t.display,a=!1,l=tr(t,(function(e){s&&(r.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:Ci(t)),pt(r.wrapper.ownerDocument,"mouseup",l),pt(r.wrapper.ownerDocument,"mousemove",c),pt(r.scroller,"dragstart",h),pt(r.scroller,"drop",l),a||(vt(e),i.addNew||zr(t.doc,n,null,null,i.extend),s&&!d||o&&9==u?setTimeout((function(){r.wrapper.ownerDocument.body.focus({preventScroll:!0}),r.input.focus()}),20):r.input.focus())})),c=function(t){a=a||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},h=function(){return a=!0};s&&(r.scroller.draggable=!0),t.state.draggingText=l,l.copy=!i.moveOnDrag,ht(r.wrapper.ownerDocument,"mouseup",l),ht(r.wrapper.ownerDocument,"mousemove",c),ht(r.scroller,"dragstart",h),ht(r.scroller,"drop",l),t.state.delayingBlurEvent=!0,setTimeout((function(){return r.input.focus()}),20),r.scroller.dragDrop&&r.scroller.dragDrop()}(t,i,e,a):function(t,e,n,i){o&&Ci(t);var r=t.display,a=t.doc;vt(e);var u,s,l=a.sel,c=l.ranges;if(i.addNew&&!i.extend?(s=a.sel.contains(n),u=s>-1?c[s]:new Cr(n,n)):(u=a.sel.primary(),s=a.sel.primIndex),"rectangle"==i.unit)i.addNew||(u=new Cr(n,n)),n=li(t,e,!0,!0),s=-1;else{var h=yo(t,n,i.unit);u=i.extend?Ir(u,h.anchor,h.head,i.extend):h}i.addNew?-1==s?(s=c.length,$r(a,Sr(t,c.concat([u]),s),{scroll:!1,origin:"*mouse"})):c.length>1&&c[s].empty()&&"char"==i.unit&&!i.extend?($r(a,Sr(t,c.slice(0,s).concat(c.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=a.sel):qr(a,s,u,R):(s=0,$r(a,new xr([u],0),R),l=a.sel);var d=n;function p(e){if(0!=ee(d,e))if(d=e,"rectangle"==i.unit){for(var r=[],o=t.options.tabSize,c=H(Wt(a,n.line).text,n.ch,o),h=H(Wt(a,e.line).text,e.ch,o),p=Math.min(c,h),f=Math.max(c,h),m=Math.min(n.line,e.line),g=Math.min(t.lastLine(),Math.max(n.line,e.line));m<=g;m++){var y=Wt(a,m).text,b=K(y,p,o);p==f?r.push(new Cr(te(m,b),te(m,b))):y.length>b&&r.push(new Cr(te(m,b),te(m,K(y,f,o))))}r.length||r.push(new Cr(n,n)),$r(a,Sr(t,l.ranges.slice(0,s).concat(r),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var v,w=u,k=yo(t,e,i.unit),x=w.anchor;ee(k.anchor,x)>0?(v=k.head,x=ae(w.from(),k.anchor)):(v=k.anchor,x=re(w.to(),k.head));var C=l.ranges.slice(0);C[s]=function(t,e){var n=e.anchor,i=e.head,r=Wt(t.doc,n.line);if(0==ee(n,i)&&n.sticky==i.sticky)return e;var a=lt(r);if(!a)return e;var o=ut(a,n.ch,n.sticky),u=a[o];if(u.from!=n.ch&&u.to!=n.ch)return e;var s,l=o+(u.from==n.ch==(1!=u.level)?0:1);if(0==l||l==a.length)return e;if(i.line!=n.line)s=(i.line-n.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=ut(a,i.ch,i.sticky),h=c-o||(i.ch-n.ch)*(1==u.level?-1:1);s=c==l-1||c==l?h<0:h>0}var d=a[l+(s?-1:0)],p=s==(1==d.level),f=p?d.from:d.to,m=p?"after":"before";return n.ch==f&&n.sticky==m?e:new Cr(new te(n.line,f,m),i)}(t,new Cr(ue(a,x),v)),$r(a,Sr(t,C,s),R)}}var f=r.wrapper.getBoundingClientRect(),m=0;function g(e){t.state.selectingText=!1,m=1/0,e&&(vt(e),r.input.focus()),pt(r.wrapper.ownerDocument,"mousemove",y),pt(r.wrapper.ownerDocument,"mouseup",b),a.history.lastSelOrigin=null}var y=tr(t,(function(e){0!==e.buttons&&St(e)?function e(n){var o=++m,u=li(t,n,!0,"rectangle"==i.unit);if(u)if(0!=ee(u,d)){t.curOp.focus=D(),p(u);var s=Bi(r,a);(u.line>=s.to||u.linef.bottom?20:0;l&&setTimeout(tr(t,(function(){m==o&&(r.scroller.scrollTop+=l,e(n))})),50)}}(e):g(e)})),b=tr(t,g);t.state.selectingText=b,ht(r.wrapper.ownerDocument,"mousemove",y),ht(r.wrapper.ownerDocument,"mouseup",b)}(t,i,e,a)}(e,i,a,t):Ct(t)==n.scroller&&vt(t):2==r?(i&&zr(e.doc,i),setTimeout((function(){return n.input.focus()}),20)):3==r&&(C?e.display.input.onContextMenu(t):Ci(e)))}}function yo(t,e,n){if("char"==n)return new Cr(e,e);if("word"==n)return t.findWordAt(e);if("line"==n)return new Cr(te(e.line,0),ue(t.doc,te(e.line+1,0)));var i=n(t,e);return new Cr(i.from,i.to)}function bo(t,e,n,i){var r,a;if(e.touches)r=e.touches[0].clientX,a=e.touches[0].clientY;else try{r=e.clientX,a=e.clientY}catch(t){return!1}if(r>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;i&&vt(e);var o=t.display,u=o.lineDiv.getBoundingClientRect();if(a>u.bottom||!yt(t,n))return kt(e);a-=u.top-o.viewOffset;for(var s=0;s=r)return ft(t,n,t,Ut(t.doc,a),t.display.gutterSpecs[s].className,e),kt(e)}}function vo(t,e){return bo(t,e,"gutterClick",!0)}function wo(t,e){xn(t.display,e)||function(t,e){return!!yt(t,"gutterContextMenu")&&bo(t,e,"gutterContextMenu",!1)}(t,e)||mt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function ko(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),On(t)}mo.prototype.compare=function(t,e,n){return this.time+400>t&&0==ee(e,this.pos)&&n==this.button};var xo={toString:function(){return"CodeMirror.Init"}},Co={},So={};function Lo(t,e,n){if(!e!=!(n&&n!=xo)){var i=t.display.dragFunctions,r=e?ht:pt;r(t.display.scroller,"dragstart",i.start),r(t.display.scroller,"dragenter",i.enter),r(t.display.scroller,"dragover",i.over),r(t.display.scroller,"dragleave",i.leave),r(t.display.scroller,"drop",i.drop)}}function Mo(t){t.options.lineWrapping?(j(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(M(t.display.wrapper,"CodeMirror-wrap"),Ke(t)),si(t),hi(t),On(t),setTimeout((function(){return Zi(t)}),100)}function To(t,e){var n=this;if(!(this instanceof To))return new To(t,e);this.options=e=e?_(e):{},_(Co,e,!1);var i=e.value;"string"==typeof i?i=new Ga(i,e.mode,null,e.lineSeparator,e.direction):e.mode&&(i.modeOption=e.mode),this.doc=i;var r=new To.inputStyles[e.inputStyle](this),a=this.display=new gr(t,i,r,e);for(var l in a.wrapper.CodeMirror=this,ko(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Xi(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new J,keySeq:null,specialChars:null},e.autofocus&&!y&&a.input.focus(),o&&u<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(t){var e=t.display;ht(e.scroller,"mousedown",tr(t,go)),ht(e.scroller,"dblclick",o&&u<11?tr(t,(function(e){if(!mt(t,e)){var n=li(t,e);if(n&&!vo(t,e)&&!xn(t.display,e)){vt(e);var i=t.findWordAt(n);zr(t.doc,i.anchor,i.head)}}})):function(e){return mt(t,e)||vt(e)}),ht(e.scroller,"contextmenu",(function(e){return wo(t,e)})),ht(e.input.getField(),"contextmenu",(function(n){e.scroller.contains(n.target)||wo(t,n)}));var n,i={end:0};function r(){e.activeTouch&&(n=setTimeout((function(){return e.activeTouch=null}),1e3),(i=e.activeTouch).end=+new Date)}function a(t,e){if(null==e.left)return!0;var n=e.left-t.left,i=e.top-t.top;return n*n+i*i>400}ht(e.scroller,"touchstart",(function(r){if(!mt(t,r)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(r)&&!vo(t,r)){e.input.ensurePolled(),clearTimeout(n);var a=+new Date;e.activeTouch={start:a,moved:!1,prev:a-i.end<=300?i:null},1==r.touches.length&&(e.activeTouch.left=r.touches[0].pageX,e.activeTouch.top=r.touches[0].pageY)}})),ht(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ht(e.scroller,"touchend",(function(n){var i=e.activeTouch;if(i&&!xn(e,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var o,u=t.coordsChar(e.activeTouch,"page");o=!i.prev||a(i,i.prev)?new Cr(u,u):!i.prev.prev||a(i,i.prev.prev)?t.findWordAt(u):new Cr(te(u.line,0),ue(t.doc,te(u.line+1,0))),t.setSelection(o.anchor,o.head),t.focus(),vt(n)}r()})),ht(e.scroller,"touchcancel",r),ht(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Ai(t,e.scroller.scrollTop),_i(t,e.scroller.scrollLeft,!0),ft(t,"scroll",t))})),ht(e.scroller,"mousewheel",(function(e){return kr(t,e)})),ht(e.scroller,"DOMMouseScroll",(function(e){return kr(t,e)})),ht(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){mt(t,e)||xt(e)},over:function(e){mt(t,e)||(function(t,e){var n=li(t,e);if(n){var i=document.createDocumentFragment();bi(t,n,i),t.display.dragCursor||(t.display.dragCursor=E("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),B(t.display.dragCursor,i)}}(t,e),xt(e))},start:function(e){return function(t,e){if(o&&(!t.state.draggingText||+new Date-Pa<100))xt(e);else if(!mt(t,e)&&!xn(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!d)){var n=E("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",h&&(n.width=n.height=1,t.display.wrapper.appendChild(n),n._top=n.offsetTop),e.dataTransfer.setDragImage(n,0,0),h&&n.parentNode.removeChild(n)}}(t,e)},drop:tr(t,Da),leave:function(e){mt(t,e)||ja(t)}};var s=e.input.getField();ht(s,"keyup",(function(e){return co.call(t,e)})),ht(s,"keydown",tr(t,lo)),ht(s,"keypress",tr(t,ho)),ht(s,"focus",(function(e){return Si(t,e)})),ht(s,"blur",(function(e){return Li(t,e)}))}(this),Ya(),Wi(this),this.curOp.forceUpdate=!0,Ar(this,i),e.autofocus&&!y||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Si(n)}),20):Li(this),So)So.hasOwnProperty(l)&&So[l](this,e[l],xo);dr(this),e.finishInit&&e.finishInit(this);for(var c=0;c150)){if(!i)return;n="prev"}}else l=0,n="not";"prev"==n?l=e>a.first?H(Wt(a,e-1).text,null,o):0:"add"==n?l=s+t.options.indentUnit:"subtract"==n?l=s-t.options.indentUnit:"number"==typeof n&&(l=s+n),l=Math.max(0,l);var h="",d=0;if(t.options.indentWithTabs)for(var p=Math.floor(l/o);p;--p)d+=o,h+="\t";if(do,s=Pt(e),l=null;if(u&&i.ranges.length>1)if(Go&&Go.text.join("\n")==e){if(i.ranges.length%Go.text.length==0){l=[];for(var c=0;c=0;d--){var p=i.ranges[d],f=p.from(),m=p.to();p.empty()&&(n&&n>0?f=te(f.line,f.ch-n):t.state.overwrite&&!u?m=te(m.line,Math.min(Wt(a,m.line).text.length,m.ch+z(s).length)):u&&Go&&Go.lineWise&&Go.text.join("\n")==s.join("\n")&&(f=m=te(f.line,0)));var g={from:f,to:m,text:l?l[d%l.length]:s,origin:r||(u?"paste":t.state.cutIncoming>o?"cut":"+input")};la(t.doc,g),sn(t,"inputRead",t,g)}e&&!u&&No(t,e),Pi(t),t.curOp.updateInput<2&&(t.curOp.updateInput=h),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function jo(t,e){var n=t.clipboardData&&t.clipboardData.getData("Text");if(n)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||$i(e,(function(){return Do(e,n,0,null,"paste")})),!0}function No(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var n=t.doc.sel,i=n.ranges.length-1;i>=0;i--){var r=n.ranges[i];if(!(r.head.ch>100||i&&n.ranges[i-1].head.line==r.head.line)){var a=t.getModeAt(r.head),o=!1;if(a.electricChars){for(var u=0;u-1){o=Eo(t,r.head.line,"smart");break}}else a.electricInput&&a.electricInput.test(Wt(t.doc,r.head.line).text.slice(0,r.head.ch))&&(o=Eo(t,r.head.line,"smart"));o&&sn(t,"electricInput",t,r.head.line)}}}function Ao(t){for(var e=[],n=[],i=0;i0?0:-1));if(isNaN(c))o=null;else{var h=n>0?c>=55296&&c<56320:c>=56320&&c<57343;o=new te(e.line,Math.max(0,Math.min(u.text.length,e.ch+n*(h?2:1))),-n)}}else o=r?function(t,e,n,i){var r=lt(e,t.doc.direction);if(!r)return Va(e,n,i);n.ch>=e.text.length?(n.ch=e.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var a=ut(r,n.ch,n.sticky),o=r[a];if("ltr"==t.doc.direction&&o.level%2==0&&(i>0?o.to>n.ch:o.from=o.from&&d>=c.begin)){var p=h?"before":"after";return new te(n.line,d,p)}}var f=function(t,e,i){for(var a=function(t,e){return e?new te(n.line,s(t,1),"before"):new te(n.line,t,"after")};t>=0&&t0==(1!=o.level),l=u?i.begin:s(i.end,-1);if(o.from<=l&&l0?c.end:s(c.begin,-1);return null==g||i>0&&g==e.text.length||!(m=f(i>0?0:r.length-1,i,l(g)))?null:m}(t.cm,u,e,n):Va(u,e,n);if(null==o){if(a||(l=e.line+s)=t.first+t.size||(e=new te(l,e.ch,e.sticky),!(u=Wt(t,l))))return!1;e=$a(r,t.cm,u,e.line,s)}else e=o;return!0}if("char"==i||"codepoint"==i)l();else if("column"==i)l(!0);else if("word"==i||"group"==i)for(var c=null,h="group"==i,d=t.cm&&t.cm.getHelper(e,"wordChars"),p=!0;!(n<0)||l(!p);p=!1){var f=u.text.charAt(e.ch)||"\n",m=tt(f,d)?"w":h&&"\n"==f?"n":!h||/\s/.test(f)?null:"p";if(!h||p||m||(m="s"),c&&c!=m){n<0&&(n=1,l(),e.sticky="after");break}if(m&&(c=m),n>0&&!l(!p))break}var g=aa(t,e,a,o,!0);return ne(a,g)&&(g.hitSide=!0),g}function Jo(t,e,n,i){var r,a,o=t.doc,u=e.left;if("page"==i){var s=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),l=Math.max(s-.5*ii(t.display),3);r=(n>0?e.bottom:e.top)+n*l}else"line"==i&&(r=n>0?e.bottom+3:e.top-3);for(;(a=qn(t,u,r)).outside;){if(n<0?r<=0:r>=o.height){a.hitSide=!0;break}r+=5*n}return a}var Oo=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new J,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Zo(t,e){var n=Pn(t,e.line);if(!n||n.hidden)return null;var i=Wt(t.doc,e.line),r=En(n,i,e.line),a=lt(i,t.doc.direction),o="left";a&&(o=ut(a,e.ch)%2?"right":"left");var u=Yn(r.map,e.ch,o);return u.offset="right"==u.collapse?u.end:u.start,u}function Fo(t,e){return e&&(t.bad=!0),t}function Ro(t,e,n){var i;if(e==t.display.lineDiv){if(!(i=t.display.lineDiv.childNodes[n]))return Fo(t.clipPos(te(t.display.viewTo-1)),!0);e=null,n=0}else for(i=e;;i=i.parentNode){if(!i||i==t.display.lineDiv)return null;if(i.parentNode&&i.parentNode==t.display.lineDiv)break}for(var r=0;r=e.display.viewTo||a.line=e.display.viewFrom&&Zo(e,r)||{node:s[0].measure.map[2],offset:0},c=a.linei.firstLine()&&(o=te(o.line-1,Wt(i.doc,o.line-1).length)),u.ch==Wt(i.doc,u.line).text.length&&u.liner.viewTo-1)return!1;o.line==r.viewFrom||0==(t=ci(i,o.line))?(e=qt(r.view[0].line),n=r.view[0].node):(e=qt(r.view[t].line),n=r.view[t-1].node.nextSibling);var s,l,c=ci(i,u.line);if(c==r.view.length-1?(s=r.viewTo-1,l=r.lineDiv.lastChild):(s=qt(r.view[c+1].line)-1,l=r.view[c+1].node.previousSibling),!n)return!1;for(var h=i.doc.splitLines(function(t,e,n,i,r){var a="",o=!1,u=t.doc.lineSeparator(),s=!1;function l(){o&&(a+=u,s&&(a+=u),o=s=!1)}function c(t){t&&(l(),a+=t)}function h(e){if(1==e.nodeType){var n=e.getAttribute("cm-text");if(n)return void c(n);var a,d=e.getAttribute("cm-marker");if(d){var p=t.findMarks(te(i,0),te(r+1,0),(g=+d,function(t){return t.id==g}));return void(p.length&&(a=p[0].find(0))&&c(It(t.doc,a.from,a.to).join(u)))}if("false"==e.getAttribute("contenteditable"))return;var f=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;f&&l();for(var m=0;m1&&d.length>1;)if(z(h)==z(d))h.pop(),d.pop(),s--;else{if(h[0]!=d[0])break;h.shift(),d.shift(),e++}for(var p=0,f=0,m=h[0],g=d[0],y=Math.min(m.length,g.length);po.ch&&b.charCodeAt(b.length-f-1)==v.charCodeAt(v.length-f-1);)p--,f++;h[h.length-1]=b.slice(0,b.length-f).replace(/^\u200b+/,""),h[0]=h[0].slice(p).replace(/\u200b+$/,"");var k=te(e,p),x=te(s,d.length?z(d).length-f:0);return h.length>1||h[0]||ee(k,x)?(fa(i.doc,h,k,x,"+input"),!0):void 0},Oo.prototype.ensurePolled=function(){this.forceCompositionEnd()},Oo.prototype.reset=function(){this.forceCompositionEnd()},Oo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Oo.prototype.readFromDOMSoon=function(){var t=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(t.readDOMTimeout=null,t.composing){if(!t.composing.done)return;t.composing=null}t.updateFromDOM()}),80))},Oo.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||$i(this.cm,(function(){return hi(t.cm)}))},Oo.prototype.setUneditable=function(t){t.contentEditable="false"},Oo.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||tr(this.cm,Do)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},Oo.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},Oo.prototype.onContextMenu=function(){},Oo.prototype.resetPosition=function(){},Oo.prototype.needsContentAttribute=!0;var Ko=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new J,this.hasSelection=!1,this.composing=null};Ko.prototype.init=function(t){var e=this,n=this,i=this.cm;this.createField(t);var r=this.textarea;function a(t){if(!mt(i,t)){if(i.somethingSelected())Po({lineWise:!1,text:i.getSelections()});else{if(!i.options.lineWiseCopyCut)return;var e=Ao(i);Po({lineWise:!0,text:e.text}),"cut"==t.type?i.setSelections(e.ranges,null,F):(n.prevInput="",r.value=e.text.join("\n"),A(r))}"cut"==t.type&&(i.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),m&&(r.style.width="0px"),ht(r,"input",(function(){o&&u>=9&&e.hasSelection&&(e.hasSelection=null),n.poll()})),ht(r,"paste",(function(t){mt(i,t)||jo(t,i)||(i.state.pasteIncoming=+new Date,n.fastPoll())})),ht(r,"cut",a),ht(r,"copy",a),ht(t.scroller,"paste",(function(e){if(!xn(t,e)&&!mt(i,e)){if(!r.dispatchEvent)return i.state.pasteIncoming=+new Date,void n.focus();var a=new Event("paste");a.clipboardData=e.clipboardData,r.dispatchEvent(a)}})),ht(t.lineSpace,"selectstart",(function(e){xn(t,e)||vt(e)})),ht(r,"compositionstart",(function(){var t=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:t,range:i.markText(t,i.getCursor("to"),{className:"CodeMirror-composing"})}})),ht(r,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Ko.prototype.createField=function(t){this.wrapper=_o(),this.textarea=this.wrapper.firstChild},Ko.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Ko.prototype.prepareSelection=function(){var t=this.cm,e=t.display,n=t.doc,i=yi(t);if(t.options.moveInputWithCursor){var r=In(t,n.sel.primary().head,"div"),a=e.wrapper.getBoundingClientRect(),o=e.lineDiv.getBoundingClientRect();i.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,r.top+o.top-a.top)),i.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,r.left+o.left-a.left))}return i},Ko.prototype.showSelection=function(t){var e=this.cm.display;B(e.cursorDiv,t.cursors),B(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ko.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var n=e.getSelection();this.textarea.value=n,e.state.focused&&A(this.textarea),o&&u>=9&&(this.hasSelection=n)}else t||(this.prevInput=this.textarea.value="",o&&u>=9&&(this.hasSelection=null))}},Ko.prototype.getField=function(){return this.textarea},Ko.prototype.supportsTouch=function(){return!1},Ko.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!y||D()!=this.textarea))try{this.textarea.focus()}catch(t){}},Ko.prototype.blur=function(){this.textarea.blur()},Ko.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ko.prototype.receivedFocus=function(){this.slowPoll()},Ko.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Ko.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function n(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,n))}))},Ko.prototype.poll=function(){var t=this,e=this.cm,n=this.textarea,i=this.prevInput;if(this.contextMenuPending||!e.state.focused||Dt(n)&&!i&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var r=n.value;if(r==i&&!e.somethingSelected())return!1;if(o&&u>=9&&this.hasSelection===r||b&&/[\uf700-\uf7ff]/.test(r))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var a=r.charCodeAt(0);if(8203!=a||i||(i="​"),8666==a)return this.reset(),this.cm.execCommand("undo")}for(var s=0,l=Math.min(i.length,r.length);s1e3||r.indexOf("\n")>-1?n.value=t.prevInput="":t.prevInput=r,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ko.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ko.prototype.onKeyPress=function(){o&&u>=9&&(this.hasSelection=null),this.fastPoll()},Ko.prototype.onContextMenu=function(t){var e=this,n=e.cm,i=n.display,r=e.textarea;e.contextMenuPending&&e.contextMenuPending();var a=li(n,t),l=i.scroller.scrollTop;if(a&&!h){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(a)&&tr(n,$r)(n.doc,Lr(a),F);var c,d=r.style.cssText,p=e.wrapper.style.cssText,f=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",r.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(t.clientY-f.top-5)+"px; left: "+(t.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(c=window.scrollY),i.input.focus(),s&&window.scrollTo(null,c),i.input.reset(),n.somethingSelected()||(r.value=e.prevInput=" "),e.contextMenuPending=y,i.selForContextMenu=n.doc.sel,clearTimeout(i.detectingSelectAll),o&&u>=9&&g(),C){xt(t);var m=function(){pt(window,"mouseup",m),setTimeout(y,20)};ht(window,"mouseup",m)}else setTimeout(y,50)}function g(){if(null!=r.selectionStart){var t=n.somethingSelected(),a="​"+(t?r.value:"");r.value="⇚",r.value=a,e.prevInput=t?"":"​",r.selectionStart=1,r.selectionEnd=a.length,i.selForContextMenu=n.doc.sel}}function y(){if(e.contextMenuPending==y&&(e.contextMenuPending=!1,e.wrapper.style.cssText=p,r.style.cssText=d,o&&u<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=l),null!=r.selectionStart)){(!o||o&&u<9)&&g();var t=0,a=function(){i.selForContextMenu==n.doc.sel&&0==r.selectionStart&&r.selectionEnd>0&&"​"==e.prevInput?tr(n,ua)(n):t++<10?i.detectingSelectAll=setTimeout(a,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(a,200)}}},Ko.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t,this.textarea.readOnly=!!t},Ko.prototype.setUneditable=function(){},Ko.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function n(n,i,r,a){t.defaults[n]=i,r&&(e[n]=a?function(t,e,n){n!=xo&&r(t,e,n)}:r)}t.defineOption=n,t.Init=xo,n("value","",(function(t,e){return t.setValue(e)}),!0),n("mode",null,(function(t,e){t.doc.modeOption=e,Gr(t)}),!0),n("indentUnit",2,Gr,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(t){Pr(t),On(t),hi(t)}),!0),n("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var n=[],i=t.doc.first;t.doc.iter((function(t){for(var r=0;;){var a=t.text.indexOf(e,r);if(-1==a)break;r=a+e.length,n.push(te(i,a))}i++}));for(var r=n.length-1;r>=0;r--)fa(t.doc,e,n[r],te(n[r].line,n[r].ch+e.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,n){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),n!=xo&&t.refresh()})),n("specialCharPlaceholder",Ve,(function(t){return t.refresh()}),!0),n("electricChars",!0),n("inputStyle",y?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),n("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),n("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),n("rtlMoveVisually",!w),n("wholeLineUpdateBefore",!0),n("theme","default",(function(t){ko(t),mr(t)}),!0),n("keyMap","default",(function(t,e,n){var i=Qa(e),r=n!=xo&&Qa(n);r&&r.detach&&r.detach(t,i),i.attach&&i.attach(t,r||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,Mo,!0),n("gutters",[],(function(t,e){t.display.gutterSpecs=pr(e,t.options.lineNumbers),mr(t)}),!0),n("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?oi(t.display)+"px":"0",t.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(t){return Zi(t)}),!0),n("scrollbarStyle","native",(function(t){Xi(t),Zi(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=pr(t.options.gutters,e),mr(t)}),!0),n("firstLineNumber",1,mr,!0),n("lineNumberFormatter",(function(t){return t}),mr,!0),n("showCursorWhenSelecting",!1,gi,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(t,e){"nocursor"==e&&(Li(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),n("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),n("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),n("dragDrop",!0,Lo),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,gi,!0),n("singleCursorHeightPerLine",!0,gi,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Pr,!0),n("addModeClass",!1,Pr,!0),n("pollInterval",100),n("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),n("historyEventDelay",1250),n("viewportMargin",10,(function(t){return t.refresh()}),!0),n("maxHighlightLength",1e4,Pr,!0),n("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),n("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),n("autofocus",null),n("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),n("phrases",null)}(To),function(t){var e=t.optionHandlers,n=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,n){var i=this.options,r=i[t];i[t]==n&&"mode"!=t||(i[t]=n,e.hasOwnProperty(t)&&tr(this,e[t])(this,n,r),ft(this,"optionChange",this,t))},getOption:function(t){return this.options[t]},getDoc:function(){return this.doc},addKeyMap:function(t,e){this.state.keyMaps[e?"push":"unshift"](Qa(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,n=0;nn&&(Eo(this,r.head.line,t,!0),n=r.head.line,i==this.doc.sel.primIndex&&Pi(this));else{var a=r.from(),o=r.to(),u=Math.max(n,a.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var s=u;s0&&qr(this.doc,i,new Cr(a,l[i].to()),F)}}})),getTokenAt:function(t,e){return be(this,t,e)},getLineTokens:function(t,e){return be(this,te(t),e,!0)},getTokenTypeAt:function(t){t=ue(this.doc,t);var e,n=de(this,Wt(this.doc,t.line)),i=0,r=(n.length-1)/2,a=t.ch;if(0==a)e=n[2];else for(;;){var o=i+r>>1;if((o?n[2*o-1]:0)>=a)r=o;else{if(!(n[2*o+1]a&&(t=a,r=!0),i=Wt(this.doc,t)}else i=t;return Xn(this,i,{top:0,left:0},e||"page",n||r).top+(r?this.doc.height-Re(i):0)},defaultTextHeight:function(){return ii(this.display)},defaultCharWidth:function(){return ri(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,n,i,r){var a,o,u,s=this.display,l=(t=In(this,ue(this.doc,t))).bottom,c=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),s.sizer.appendChild(e),"over"==i)l=t.top;else if("above"==i||"near"==i){var h=Math.max(s.wrapper.clientHeight,this.doc.height),d=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==i||t.bottom+e.offsetHeight>h)&&t.top>e.offsetHeight?l=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=h&&(l=t.bottom),c+e.offsetWidth>d&&(c=d-e.offsetWidth)}e.style.top=l+"px",e.style.left=e.style.right="","right"==r?(c=s.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==r?c=0:"middle"==r&&(c=(s.sizer.clientWidth-e.offsetWidth)/2),e.style.left=c+"px"),n&&(a=this,o={left:c,top:l,right:c+e.offsetWidth,bottom:l+e.offsetHeight},null!=(u=Ei(a,o)).scrollTop&&Ai(a,u.scrollTop),null!=u.scrollLeft&&_i(a,u.scrollLeft))},triggerOnKeyDown:er(lo),triggerOnKeyPress:er(ho),triggerOnKeyUp:co,triggerOnMouseDown:er(go),execCommand:function(t){if(to.hasOwnProperty(t))return to[t].call(null,this)},triggerElectric:er((function(t){No(this,t)})),findPosH:function(t,e,n,i){var r=1;e<0&&(r=-1,e=-e);for(var a=ue(this.doc,t),o=0;o0&&o(e.charAt(n-1));)--n;for(;i.5||this.options.lineWrapping)&&si(this),ft(this,"refresh",this)})),swapDoc:er((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Ar(this,t),On(this),this.display.input.reset(),Di(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,e),e})),phrase:function(t){var e=this.options.phrases;return e&&Object.prototype.hasOwnProperty.call(e,t)?e[t]:t},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},bt(t),t.registerHelper=function(e,i,r){n.hasOwnProperty(e)||(n[e]=t[e]={_global:[]}),n[e][i]=r},t.registerGlobalHelper=function(e,i,r,a){t.registerHelper(e,i,a),n[e]._global.push({pred:r,val:a})}}(To);var Wo="iter insert remove copy getEditor constructor".split(" ");for(var Io in Ga.prototype)Ga.prototype.hasOwnProperty(Io)&&O(Wo,Io)<0&&(To.prototype[Io]=function(t){return function(){return t.apply(this.doc,arguments)}}(Ga.prototype[Io]));return bt(Ga),To.inputStyles={textarea:Ko,contenteditable:Oo},To.defineMode=function(t){To.defaults.mode||"null"==t||(To.defaults.mode=t),_t.apply(this,arguments)},To.defineMIME=function(t,e){Yt[t]=e},To.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),To.defineMIME("text/plain","null"),To.defineExtension=function(t,e){To.prototype[t]=e},To.defineDocExtension=function(t,e){Ga.prototype[t]=e},To.fromTextArea=function(t,e){if((e=e?_(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var n=D();e.autofocus=n==t||null!=t.getAttribute("autofocus")&&n==document.body}function i(){t.value=u.getValue()}var r;if(t.form&&(ht(t.form,"submit",i),!e.leaveSubmitMethodAlone)){var a=t.form;r=a.submit;try{var o=a.submit=function(){i(),a.submit=r,a.submit(),a.submit=o}}catch(t){}}e.finishInit=function(n){n.save=i,n.getTextArea=function(){return t},n.toTextArea=function(){n.toTextArea=isNaN,i(),t.parentNode.removeChild(n.getWrapperElement()),t.style.display="",t.form&&(pt(t.form,"submit",i),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=r))}},t.style.display="none";var u=To((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return u},function(t){t.off=pt,t.on=ht,t.wheelEventPixels=wr,t.Doc=Ga,t.splitLines=Pt,t.countColumn=H,t.findColumn=K,t.isWordChar=$,t.Pass=Z,t.signal=ft,t.Line=We,t.changeEnd=Mr,t.scrollbarModel=Ri,t.Pos=te,t.cmpPos=ee,t.modes=At,t.mimeModes=Yt,t.resolveMode=Ht,t.getMode=Jt,t.modeExtensions=Ot,t.extendMode=Zt,t.copyState=Ft,t.startState=Xt,t.innerMode=Rt,t.commands=to,t.keyMap=Fa,t.keyName=za,t.isModifierKey=Wa,t.lookupKey=Ka,t.normalizeKeyMap=Xa,t.StringStream=Kt,t.SharedTextMarker=Ma,t.TextMarker=Sa,t.LineWidget=ka,t.e_preventDefault=vt,t.e_stopPropagation=wt,t.e_stop=xt,t.addClass=j,t.contains=P,t.rmClass=M,t.keyNames=Ha}(To),To.version="5.60.0",To}()},function(t,e,n){"use strict";function i(t){this._maxSize=t,this.clear()}i.prototype.clear=function(){this._size=0,this._values=Object.create(null)},i.prototype.get=function(t){return this._values[t]},i.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),t in this._values||this._size++,this._values[t]=e};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,a=/^\d+$/,o=/^\d/,u=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,s=/^\s*(['"]?)(.*?)(\1)\s*$/,l=new i(512),c=new i(512),h=new i(512);function d(t){return l.get(t)||l.set(t,p(t).map((function(t){return t.replace(s,"$2")})))}function p(t){return t.match(r)}function f(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function m(t){return!f(t)&&(function(t){return t.match(o)&&!t.match(a)}(t)||function(t){return u.test(t)}(t))}t.exports={Cache:i,split:p,normalizePath:d,setter:function(t){var e=d(t);return c.get(t)||c.set(t,(function(t,n){for(var i=0,r=e.length,a=t;i0&&e.push(c.ofType(n,i));t.allowNode&&e.push(c.ifNotMatch(t.allowNode,i));var r=!t.escapeHtml&&!t.skipHtml,a=(t.astPlugins||[]).some((function(t){return(Array.isArray(t)?t[0]:t).identity===g.HtmlParser}));r&&!a&&e.push(l);return t.astPlugins?e.concat(t.astPlugins):e}(t),k=u.runSync(f),x=w.reduce((function(t,e){return e(t,b)}),k);return h(x,b)};function v(t,e){return Array.isArray(e)?t.use.apply(t,i(e)):t.use(e)}b.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:f,astPlugins:[],plugins:[],parserOptions:{}},b.propTypes={className:u.string,source:u.string,children:u.string,sourcePos:u.bool,rawSourcePos:u.bool,escapeHtml:u.bool,skipHtml:u.bool,allowNode:u.func,allowedTypes:u.arrayOf(u.oneOf(y)),disallowedTypes:u.arrayOf(u.oneOf(y)),transformLinkUri:u.oneOfType([u.func,u.bool]),linkTarget:u.oneOfType([u.func,u.string]),transformImageUri:u.func,astPlugins:u.arrayOf(u.func),unwrapDisallowed:u.bool,renderers:u.object,plugins:u.array,parserOptions:u.object},b.types=y,b.renderers=m,b.uriTransformer=f,t.exports=b},function(t,e,n){"use strict";var i=n(89),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};function s(t){return i.isMemo(t)?o:u[t.$$typeof]||r}u[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},u[i.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,f=Object.prototype;t.exports=function t(e,n,i){if("string"!=typeof n){if(f){var r=p(n);r&&r!==f&&t(e,r,i)}var o=c(n);h&&(o=o.concat(h(n)));for(var u=s(e),m=s(n),g=0;ge.bottom&&n.lefte.right;case"left":return n.left+re.bottom&&n.tope.right;case"bottom":return n.bottom-r>e.bottom&&n.lefte.right&&n.tope.right&&n.lefte.bottom}}},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return y}));var i=n(1),r=n.n(i),a=n(2),o=n.n(a),u=n(0),s=n.n(u),l=n(3),c=n.n(l);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n-1?function(){a||(a=setTimeout(o,r||0))}:function(){clearTimeout(a),a=setTimeout(o,i||0)},getLastTimeout:function(){return a}};t.addEventListener(e,u.fn),n.debounceCheck[e]=u})),g(f(n),"startWatching",(function(){n.debounceCheck||n.interval||(n.props.intervalCheck&&(n.interval=setInterval(n.check,n.props.intervalDelay)),n.props.scrollCheck&&n.addEventListener(n.getContainer(),"scroll",n.props.scrollDelay,n.props.scrollThrottle),n.props.resizeCheck&&n.addEventListener(window,"resize",n.props.resizeDelay,n.props.resizeThrottle),!n.props.delayedCall&&n.check())})),g(f(n),"stopWatching",(function(){if(n.debounceCheck)for(var t in n.debounceCheck)if(n.debounceCheck.hasOwnProperty(t)){var e=n.debounceCheck[t];clearTimeout(e.getLastTimeout()),e.target.removeEventListener(t,e.fn),n.debounceCheck[t]=null}n.debounceCheck=null,n.interval&&(n.interval=clearInterval(n.interval))})),g(f(n),"check",(function(){var t,e,i=n.node;if(!i)return n.state;if(t=function(t){return void 0===t.width&&(t.width=t.right-t.left),void 0===t.height&&(t.height=t.bottom-t.top),t}(n.roundRectDown(i.getBoundingClientRect())),n.props.containment){var r=n.props.containment.getBoundingClientRect();e={top:r.top,left:r.left,bottom:r.bottom,right:r.right}}else e={top:0,left:0,bottom:window.innerHeight||document.documentElement.clientHeight,right:window.innerWidth||document.documentElement.clientWidth};var a=n.props.offset||{};"object"===h(a)&&(e.top+=a.top||0,e.left+=a.left||0,e.bottom-=a.bottom||0,e.right-=a.right||0);var o={top:t.top>=e.top,left:t.left>=e.left,bottom:t.bottom<=e.bottom,right:t.right<=e.right},u=t.height>0&&t.width>0,s=u&&o.top&&o.left&&o.bottom&&o.right;if(u&&n.props.partialVisibility){var l=t.top<=e.bottom&&t.bottom>=e.top&&t.left<=e.right&&t.right>=e.left;"string"==typeof n.props.partialVisibility&&(l=o[n.props.partialVisibility]),s=n.props.minTopValue?l&&t.top<=e.bottom-n.props.minTopValue:l}"string"==typeof a.direction&&"number"==typeof a.value&&(console.warn("[notice] offset.direction and offset.value have been deprecated. They still work for now, but will be removed in next major version. Please upgrade to the new syntax: { %s: %d }",a.direction,a.value),s=c()(a,t,e));var d=n.state;return n.state.isVisible!==s&&(d={isVisible:s,visibilityRect:o},n.setState(d),n.props.onChange&&n.props.onChange(s)),d})),n.state={isVisible:null,visibilityRect:{}},n}var n,i,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(e,t),n=e,(i=[{key:"componentDidMount",value:function(){this.node=o.a.findDOMNode(this),this.props.active&&this.startWatching()}},{key:"componentWillUnmount",value:function(){this.stopWatching()}},{key:"componentDidUpdate",value:function(t){this.node=o.a.findDOMNode(this),this.props.active&&!t.active?(this.setState({isVisible:null,visibilityRect:{}}),this.startWatching()):this.props.active||this.stopWatching()}},{key:"roundRectDown",value:function(t){return{top:Math.floor(t.top),left:Math.floor(t.left),bottom:Math.floor(t.bottom),right:Math.floor(t.right)}}},{key:"render",value:function(){return this.props.children instanceof Function?this.props.children({isVisible:this.state.isVisible,visibilityRect:this.state.visibilityRect}):r.a.Children.only(this.props.children)}}])&&d(n.prototype,i),a&&d(n,a),e}(r.a.Component);g(y,"defaultProps",{active:!0,partialVisibility:!1,minTopValue:0,scrollCheck:!1,scrollDelay:250,scrollThrottle:-1,resizeCheck:!1,resizeDelay:250,resizeThrottle:-1,intervalCheck:!0,intervalDelay:100,delayedCall:!1,offset:{},containment:null,children:r.a.createElement("span",null)}),g(y,"propTypes",{onChange:s.a.func,active:s.a.bool,partialVisibility:s.a.oneOfType([s.a.bool,s.a.oneOf(["top","right","bottom","left"])]),delayedCall:s.a.bool,offset:s.a.oneOfType([s.a.shape({top:s.a.number,left:s.a.number,bottom:s.a.number,right:s.a.number}),s.a.shape({direction:s.a.oneOf(["top","right","bottom","left"]),value:s.a.number})]),scrollCheck:s.a.bool,scrollDelay:s.a.number,scrollThrottle:s.a.number,resizeCheck:s.a.bool,resizeDelay:s.a.number,resizeThrottle:s.a.number,intervalCheck:s.a.bool,intervalDelay:s.a.number,containment:"undefined"!=typeof window?s.a.instanceOf(window.Element):s.a.any,children:s.a.oneOfType([s.a.element,s.a.func]),minTopValue:s.a.number})},function(t,e,n){"use strict";var i=n(6);function r(){}function a(){}a.resetWarningCache=r,t.exports=function(){function t(t,e,n,r,a,o){if(o!==i){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:r};return n.PropTypes=n,n}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}])},t.exports=i(n(0),n(58))},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var i;!function(r,a,o){if(r){for(var u,s={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},l={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},c={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},h={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d=1;d<20;++d)s[111+d]="f"+d;for(d=0;d<=9;++d)s[d+96]=d.toString();b.prototype.bind=function(t,e,n){return t=t instanceof Array?t:[t],this._bindMultiple.call(this,t,e,n),this},b.prototype.unbind=function(t,e){return this.bind.call(this,t,(function(){}),e)},b.prototype.trigger=function(t,e){return this._directMap[t+":"+e]&&this._directMap[t+":"+e]({},t),this},b.prototype.reset=function(){return this._callbacks={},this._directMap={},this},b.prototype.stopCallback=function(t,e){if((" "+e.className+" ").indexOf(" mousetrap ")>-1)return!1;if(function t(e,n){return null!==e&&e!==a&&(e===n||t(e.parentNode,n))}(e,this.target))return!1;if("composedPath"in t&&"function"==typeof t.composedPath){var n=t.composedPath()[0];n!==t.target&&(e=n)}return"INPUT"==e.tagName||"SELECT"==e.tagName||"TEXTAREA"==e.tagName||e.isContentEditable},b.prototype.handleKey=function(){var t=this;return t._handleKey.apply(t,arguments)},b.addKeycodes=function(t){for(var e in t)t.hasOwnProperty(e)&&(s[e]=t[e]);u=null},b.init=function(){var t=b(a);for(var e in t)"_"!==e.charAt(0)&&(b[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e))},b.init(),r.Mousetrap=b,t.exports&&(t.exports=b),void 0===(i=function(){return b}.call(e,n,e,t))||(t.exports=i)}function p(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)}function f(t){if("keypress"==t.type){var e=String.fromCharCode(t.which);return t.shiftKey||(e=e.toLowerCase()),e}return s[t.which]?s[t.which]:l[t.which]?l[t.which]:String.fromCharCode(t.which).toLowerCase()}function m(t){return"shift"==t||"ctrl"==t||"alt"==t||"meta"==t}function g(t,e,n){return n||(n=function(){if(!u)for(var t in u={},s)t>95&&t<112||s.hasOwnProperty(t)&&(u[s[t]]=t);return u}()[t]?"keydown":"keypress"),"keypress"==n&&e.length&&(n="keydown"),n}function y(t,e){var n,i,r,a=[];for(n=function(t){return"+"===t?["+"]:(t=t.replace(/\+{2}/g,"+plus")).split("+")}(t),r=0;r1?d(t,u,n,i):(o=y(t,i),e._callbacks[o.key]=e._callbacks[o.key]||[],l(o.key,o.modifiers,{type:o.action},r,t,a),e._callbacks[o.key][r?"unshift":"push"]({callback:n,modifiers:o.modifiers,action:o.action,seq:r,level:a,combo:t}))}e._handleKey=function(t,e,n){var i,r=l(t,e,n),a={},h=0,d=!1;for(i=0;ir?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(r);++i-1&&t%1==0&&t=0;c--)"."===(o=s[c])?s.splice(c,1):".."===o?l++:l>0&&(""===o?(s.splice(c+1,l),l=0):(s.splice(c,2),l--));return""===(n=s.join("/"))&&(n=u?"/":"."),i?(i.path=n,a(i)):n}e.urlParse=r,e.urlGenerate=a,e.normalize=o,e.join=function(t,e){""===t&&(t="."),""===e&&(e=".");var n=r(e),u=r(t);if(u&&(t=u.path||"/"),n&&!n.scheme)return u&&(n.scheme=u.scheme),a(n);if(n||e.match(i))return e;if(u&&!u.host&&!u.path)return u.host=e,a(u);var s="/"===e.charAt(0)?e:o(t.replace(/\/+$/,"")+"/"+e);return u?(u.path=s,a(u)):s},e.isAbsolute=function(t){return"/"===t.charAt(0)||!!t.match(n)},e.relative=function(t,e){""===t&&(t="."),t=t.replace(/\/$/,"");for(var n=0;0!==e.indexOf(t+"/");){var i=t.lastIndexOf("/");if(i<0)return e;if((t=t.slice(0,i)).match(/^([^\/]+:\/)?\/*$/))return e;++n}return Array(n+1).join("../")+e.substr(t.length+1)};var u=!("__proto__"in Object.create(null));function s(t){return t}function l(t){if(!t)return!1;var e=t.length;if(e<9)return!1;if(95!==t.charCodeAt(e-1)||95!==t.charCodeAt(e-2)||111!==t.charCodeAt(e-3)||116!==t.charCodeAt(e-4)||111!==t.charCodeAt(e-5)||114!==t.charCodeAt(e-6)||112!==t.charCodeAt(e-7)||95!==t.charCodeAt(e-8)||95!==t.charCodeAt(e-9))return!1;for(var n=e-10;n>=0;n--)if(36!==t.charCodeAt(n))return!1;return!0}function c(t,e){return t===e?0:t>e?1:-1}e.toSetString=u?s:function(t){return l(t)?"$"+t:t},e.fromSetString=u?s:function(t){return l(t)?t.slice(1):t},e.compareByOriginalPositions=function(t,e,n){var i=t.source-e.source;return 0!==i||0!==(i=t.originalLine-e.originalLine)||0!==(i=t.originalColumn-e.originalColumn)||n||0!==(i=t.generatedColumn-e.generatedColumn)||0!==(i=t.generatedLine-e.generatedLine)?i:t.name-e.name},e.compareByGeneratedPositionsDeflated=function(t,e,n){var i=t.generatedLine-e.generatedLine;return 0!==i||0!==(i=t.generatedColumn-e.generatedColumn)||n||0!==(i=t.source-e.source)||0!==(i=t.originalLine-e.originalLine)||0!==(i=t.originalColumn-e.originalColumn)?i:t.name-e.name},e.compareByGeneratedPositionsInflated=function(t,e){var n=t.generatedLine-e.generatedLine;return 0!==n||0!==(n=t.generatedColumn-e.generatedColumn)||0!==(n=c(t.source,e.source))||0!==(n=t.originalLine-e.originalLine)||0!==(n=t.originalColumn-e.originalColumn)?n:c(t.name,e.name)}},function(t,e,n){var i=n(341),r=n(634)(i);t.exports=r},function(t,e,n){var i=n(108);t.exports=function(t){if("string"==typeof t||i(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var i=n(381),r=n(383),a=n(129);t.exports=function(t){return a(t)?i(t):r(t)}},function(t,e,n){var i=n(233),r=n(246);t.exports=function(t){return null!=t&&r(t.length)&&!i(t)}},function(t,e,n){var i=n(1284),r=n(234),a=n(1285),o=n(1286),u=n(364),s=n(78),l=n(357),c=l(i),h=l(r),d=l(a),p=l(o),f=l(u),m=s;(i&&"[object DataView]"!=m(new i(new ArrayBuffer(1)))||r&&"[object Map]"!=m(new r)||a&&"[object Promise]"!=m(a.resolve())||o&&"[object Set]"!=m(new o)||u&&"[object WeakMap]"!=m(new u))&&(m=function(t){var e=s(t),n="[object Object]"==e?t.constructor:void 0,i=n?l(n):"";if(i)switch(i){case c:return"[object DataView]";case h:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case f:return"[object WeakMap]"}return e}),t.exports=m},function(t,e,n){var i=n(427),r=n(24);function a(t,e,n){null!=n&&r.property.apply(this,arguments)}function o(t,e){t.constructor.prototype[e]||r.memoizedProperty.apply(this,arguments)}function u(t,e,n){e=e||{},a(this,"shape",t.shape),a(this,"api",e.api,!1),a(this,"type",t.type),a(this,"enum",t.enum),a(this,"min",t.min),a(this,"max",t.max),a(this,"pattern",t.pattern),a(this,"location",t.location||this.location||"body"),a(this,"name",this.name||t.xmlName||t.queryName||t.locationName||n),a(this,"isStreaming",t.streaming||this.isStreaming||!1),a(this,"requiresLength",t.requiresLength,!1),a(this,"isComposite",t.isComposite||!1),a(this,"isShape",!0,!1),a(this,"isQueryName",Boolean(t.queryName),!1),a(this,"isLocationName",Boolean(t.locationName),!1),a(this,"isIdempotent",!0===t.idempotencyToken),a(this,"isJsonValue",!0===t.jsonvalue),a(this,"isSensitive",!0===t.sensitive||t.prototype&&!0===t.prototype.sensitive),a(this,"isEventStream",Boolean(t.eventstream),!1),a(this,"isEvent",Boolean(t.event),!1),a(this,"isEventPayload",Boolean(t.eventpayload),!1),a(this,"isEventHeader",Boolean(t.eventheader),!1),a(this,"isTimestampFormatSet",Boolean(t.timestampFormat)||t.prototype&&!0===t.prototype.isTimestampFormatSet,!1),a(this,"endpointDiscoveryId",Boolean(t.endpointdiscoveryid),!1),a(this,"hostLabel",Boolean(t.hostLabel),!1),e.documentation&&(a(this,"documentation",t.documentation),a(this,"documentationUrl",t.documentationUrl)),t.xmlAttribute&&a(this,"isXmlAttribute",t.xmlAttribute||!1),a(this,"defaultValue",null),this.toWireFormat=function(t){return null==t?"":t},this.toType=function(t){return t}}function s(t){u.apply(this,arguments),a(this,"isComposite",!0),t.flattened&&a(this,"flattened",t.flattened||!1)}function l(t,e){var n=this,r=null,l=!this.isShape;s.apply(this,arguments),l&&(a(this,"defaultValue",(function(){return{}})),a(this,"members",{}),a(this,"memberNames",[]),a(this,"required",[]),a(this,"isRequired",(function(){return!1}))),t.members&&(a(this,"members",new i(t.members,e,(function(t,n){return u.create(n,e,t)}))),o(this,"memberNames",(function(){return t.xmlOrder||Object.keys(t.members)})),t.event&&(o(this,"eventPayloadMemberName",(function(){for(var t=n.members,e=n.memberNames,i=0,r=e.length;i-1?e||"":e,this.isJsonValue?JSON.parse(e):e&&"function"==typeof e.toString?e.toString():e},this.toWireFormat=function(t){return this.isJsonValue?JSON.stringify(t):t}}function p(){u.apply(this,arguments),this.toType=function(t){var e=r.base64.decode(t);if(this.isSensitive&&r.isNode()&&"function"==typeof r.Buffer.alloc){var n=r.Buffer.alloc(e.length,e);e.fill(0),e=n}return e},this.toWireFormat=r.base64.encode}function f(){p.apply(this,arguments)}function m(){u.apply(this,arguments),this.toType=function(t){return"boolean"==typeof t?t:null==t?null:"true"===t}}u.normalizedTypes={character:"string",double:"float",long:"integer",short:"integer",biginteger:"integer",bigdecimal:"float",blob:"binary"},u.types={structure:l,list:c,map:h,boolean:m,timestamp:function(t){var e=this;if(u.apply(this,arguments),t.timestampFormat)a(this,"timestampFormat",t.timestampFormat);else if(e.isTimestampFormatSet&&this.timestampFormat)a(this,"timestampFormat",this.timestampFormat);else if("header"===this.location)a(this,"timestampFormat","rfc822");else if("querystring"===this.location)a(this,"timestampFormat","iso8601");else if(this.api)switch(this.api.protocol){case"json":case"rest-json":a(this,"timestampFormat","unixTimestamp");break;case"rest-xml":case"query":case"ec2":a(this,"timestampFormat","iso8601")}this.toType=function(t){return null==t?null:"function"==typeof t.toUTCString?t:"string"==typeof t||"number"==typeof t?r.date.parseTimestamp(t):null},this.toWireFormat=function(t){return r.date.format(t,e.timestampFormat)}},float:function(){u.apply(this,arguments),this.toType=function(t){return null==t?null:parseFloat(t)},this.toWireFormat=this.toType},integer:function(){u.apply(this,arguments),this.toType=function(t){return null==t?null:parseInt(t,10)},this.toWireFormat=this.toType},string:d,base64:f,binary:p},u.resolve=function(t,e){if(t.shape){var n=e.api.shapes[t.shape];if(!n)throw new Error("Cannot find shape reference: "+t.shape);return n}return null},u.create=function(t,e,n){if(t.isShape)return t;var i=u.resolve(t,e);if(i){var r=Object.keys(t);e.documentation||(r=r.filter((function(t){return!t.match(/documentation/)})));var a=function(){i.constructor.call(this,t,e,n)};return a.prototype=i,new a}t.type||(t.members?t.type="structure":t.member?t.type="list":t.key?t.type="map":t.type="string");var o=t.type;if(u.normalizedTypes[t.type]&&(t.type=u.normalizedTypes[t.type]),u.types[t.type])return new u.types[t.type](t,e,n);throw new Error("Unrecognized shape type: "+o)},u.shapes={StructureShape:l,ListShape:c,MapShape:h,StringShape:d,BooleanShape:m,Base64Shape:f},t.exports=u},function(t,e,n){n(261);var i=n(18),r=i.Service,a=i.apiLoader;a.services.sts={},i.STS=r.defineService("sts",["2011-06-15"]),n(1509),Object.defineProperty(a.services.sts,"2011-06-15",{get:function(){var t=n(1510);return t.paginators=n(1511).pagination,t},enumerable:!0,configurable:!0}),t.exports=i.STS},function(t,e,n){var i=n(222);t.exports=function(t){return(null==t?0:t.length)?i(t,1):[]}},function(t,e,n){var i=n(40),r=n(1356),a=n(310),o=Math.max,u=Math.min;t.exports=function(t,e,n){var s,l,c,h,d,p,f=0,m=!1,g=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function b(e){var n=s,i=l;return s=l=void 0,f=e,h=t.apply(i,n)}function v(t){return f=t,d=setTimeout(k,e),m?b(t):h}function w(t){var n=t-p;return void 0===p||n>=e||n<0||g&&t-f>=c}function k(){var t=r();if(w(t))return x(t);d=setTimeout(k,function(t){var n=e-(t-p);return g?u(n,c-(t-f)):n}(t))}function x(t){return d=void 0,y&&s?b(t):(s=l=void 0,h)}function C(){var t=r(),n=w(t);if(s=arguments,l=this,p=t,n){if(void 0===d)return v(p);if(g)return clearTimeout(d),d=setTimeout(k,e),b(p)}return void 0===d&&(d=setTimeout(k,e)),h}return e=a(e)||0,i(n)&&(m=!!n.leading,c=(g="maxWait"in n)?o(a(n.maxWait)||0,e):c,y="trailing"in n?!!n.trailing:y),C.cancel=function(){void 0!==d&&clearTimeout(d),f=0,s=p=l=d=void 0},C.flush=function(){return void 0===d?h:x(r())},C}},function(t,e,n){const i=n(1363);i.version=n(1371).version,t.exports=i},function(t,e,n){var i=n(60),r=n(21),a=n(37);t.exports=function(t){return"string"==typeof t||!r(t)&&a(t)&&"[object String]"==i(t)}},function(t,e,n){var i=n(79)("split",n(1338));i.placeholder=n(74),t.exports=i},function(t,e,n){var i=n(79)("join",n(1329));i.placeholder=n(74),t.exports=i},function(t,e,n){var i=n(60),r=n(40);t.exports=function(t){if(!r(t))return!1;var e=i(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var i=n(141),r=n(40);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=i(t.prototype),a=t.apply(n,e);return r(a)?a:n}}},function(t,e,n){var i=n(40),r=Object.create,a=function(){function t(){}return function(e){if(!i(e))return{};if(r)return r(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();t.exports=a},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e){t.exports=function(t,e){for(var n=-1,i=null==t?0:t.length;++n-1&&t%1==0&&t=48&&e<=57}},function(t,e,n){"use strict";t.exports=u;var i=n(1406),r=i.CONTINUE,a=i.SKIP,o=i.EXIT;function u(t,e,n,r){"function"==typeof e&&"function"!=typeof n&&(r=n,n=e,e=null),i(t,e,(function(t,e){var i=e[e.length-1],r=i?i.children.indexOf(t):null;return n(t,r,i)}),r)}u.CONTINUE=r,u.SKIP=a,u.EXIT=o},function(t,e,n){var i=n(24),r=n(265).populateHostPrefix;function a(t,e,n,r){var a=[t,e].join("/");a=a.replace(/\/+/g,"/");var o={},u=!1;if(i.each(n.members,(function(t,e){var n=r[t];if(null!=n)if("uri"===e.location){var s=new RegExp("\\{"+e.name+"(\\+)?\\}");a=a.replace(s,(function(t,e){return(e?i.uriEscapePath:i.uriEscape)(String(n))}))}else"querystring"===e.location&&(u=!0,"list"===e.type?o[e.name]=n.map((function(t){return i.uriEscape(e.member.toWireFormat(t).toString())})):"map"===e.type?i.each(n,(function(t,e){Array.isArray(e)?o[t]=e.map((function(t){return i.uriEscape(String(t))})):o[t]=i.uriEscape(String(e))})):o[e.name]=i.uriEscape(e.toWireFormat(n).toString()))})),u){a+=a.indexOf("?")>=0?"&":"?";var s=[];i.arrayEach(Object.keys(o).sort(),(function(t){Array.isArray(o[t])||(o[t]=[o[t]]);for(var e=0;e-1});var r=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]","[object DataView]"];t.exports={isEmptyData:function(t){return"string"==typeof t?0===t.length:0===t.byteLength},convertToBuffer:function(t){return"string"==typeof t&&(t=new i(t,"utf8")),ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}}},,function(t,e,n){"use strict";e.decode=e.parse=n(1499),e.encode=e.stringify=n(1500)},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(49))},function(t,e,n){t.exports=n(627)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=n(4),a=n(2);function o(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var u=o(i),s=o(r),l=o(a);e.combine=function(t,e){return function(n,i,r){return Object.assign({},t,e(n,i,r))}},e.devtools=function(t,e){return function(n,i,r){var a;try{a=window.__REDUX_DEVTOOLS_EXTENSION__||window.top.__REDUX_DEVTOOLS_EXTENSION__}catch(t){}if(!a)return r.devtools=null,t(n,i,r);var o=t((function(t,e,a){n(t,e),r.dispatch||r.devtools.send(r.devtools.prefix+(a||"action"),i())}),i,r);if(!r.devtools){var u=r.setState;r.setState=function(t,e){u(t,e),r.devtools.send(r.devtools.prefix+"setState",r.getState())},r.devtools=a.connect({name:e}),r.devtools.prefix=e?e+" > ":"",r.devtools.subscribe((function(t){var e;if("DISPATCH"===t.type&&t.state){var n="JUMP_TO_ACTION"===t.payload.type||"JUMP_TO_STATE"===t.payload.type;r.dispatch||n?u(JSON.parse(t.state)):r.setState(JSON.parse(t.state))}else"DISPATCH"===t.type&&"COMMIT"===(null==(e=t.payload)?void 0:e.type)&&r.devtools.init(r.getState())})),r.devtools.init(o)}return o}},e.persist=function(t,e){return function(n,i,r){var a,o=e||{},c=o.name,h=o.getStorage,d=void 0===h?function(){return localStorage}:h,p=o.serialize,f=void 0===p?JSON.stringify:p,m=o.deserialize,g=void 0===m?JSON.parse:m,y=o.blacklist,b=o.whitelist,v=o.onRehydrateStorage,w=o.version,k=void 0===w?0:w,x=o.migrate;try{a=d()}catch(t){}if(!a)return t((function(){console.warn("Persist middleware: unable to update "+c+", the given storage is currently unavailable."),n.apply(void 0,arguments)}),i,r);var C,S=(C=u.default(l.default.mark((function t(){var e,n;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=s.default({},i()),b&&Object.keys(n).forEach((function(t){!b.includes(t)&&delete n[t]})),y&&y.forEach((function(t){return delete n[t]})),null!=(e=a)){t.next=7;break}t.t0=void 0,t.next=13;break;case 7:return t.t1=e,t.t2=c,t.next=11,f({state:n,version:k});case 11:t.t3=t.sent,t.t0=t.t1.setItem.call(t.t1,t.t2,t.t3);case 13:return t.abrupt("return",t.t0);case 14:case"end":return t.stop()}}),t)}))),function(){return C.apply(this,arguments)}),L=r.setState;return r.setState=function(t,e){L(t,e),S()},u.default(l.default.mark((function t(){var e,r,o,u;return l.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=(null==v?void 0:v(i()))||void 0,t.prev=1,t.next=4,a.getItem(c);case 4:if(!(r=t.sent)){t.next=20;break}return t.next=8,g(r);case 8:if((o=t.sent).version===k){t.next=19;break}return t.next=12,null==x?void 0:x(o.state,o.version);case 12:if(!(u=t.sent)){t.next=17;break}return n(u),t.next=17,S();case 17:t.next=20;break;case 19:n(o.state);case 20:t.next=26;break;case 22:return t.prev=22,t.t0=t.catch(1),null==e||e(void 0,t.t0),t.abrupt("return");case 26:null==e||e(i(),void 0);case 27:case"end":return t.stop()}}),t,null,[[1,22]])})))(),t((function(){n.apply(void 0,arguments),S()}),i,r)}},e.redux=function(t,e){return function(n,i,r){return r.dispatch=function(e){return n((function(n){return t(n,e)})),r.devtools&&r.devtools.send(r.devtools.prefix+e.type,i()),e},s.default({dispatch:r.dispatch},e)}}},function(t,e,n){var i=n(107),r=n(98);t.exports=function(t,e,n){var a=null==t?0:t.length;return a?(e=n||void 0===e?1:r(e),i(t,0,(e=a-e)<0?0:e)):[]}},function(t,e,n){var i=n(1196),r=n(1197),a=n(344),o=n(1198);t.exports=function(t){return i(t)||r(t)||a(t)||o()},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var i=n(224),r=n(346),a=n(103);t.exports=function(t,e){return null==t?t:i(t,r(e),a)}},function(t,e,n){var i=n(72),r=n(208),a=n(1353),o=n(105),u=n(100),s=n(1355),l=n(154),c=n(215),h=l((function(t,e){var n={};if(null==t)return n;var l=!1;e=i(e,(function(e){return e=o(e,t),l||(l=e.length>1),e})),u(t,c(t),n),l&&(n=r(n,7,s));for(var h=e.length;h--;)a(n,e[h]);return n}));t.exports=h},function(t,e,n){"use strict";var i=n(1453),r=function(){return!1},a=function(){return-1},o=function(t){return function(){throw new Error(t)}};t.exports=function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.block,u=void 0===n?[]:n,s=e.inline,l=void 0===s?[]:s;u.length&&u.filter((function(t){return Array.isArray(t)?u.map((function(t){return t[0]})).includes(t[0]):u.includes(t)})).forEach((function(e){Array.isArray(e)&&2===e.length?t.Parser.prototype.blockTokenizers[e[0]]=o(e[1]):t.Parser.prototype.blockTokenizers[e]=r})),l.length&&l.filter((function(t){return Array.isArray(t)?l.map((function(t){return t[0]})).includes(t[0]):l.includes(t)})).forEach((function(e){var n,u;Array.isArray(e)&&2===e.length?(n=e[0],u=o(e[1])):(n=e,u=i(r)),t.Parser.prototype.inlineTokenizers[n]&&Object.keys(t.Parser.prototype.inlineTokenizers[n]).forEach((function(e){u[e]=t.Parser.prototype.inlineTokenizers[n][e]})),t.Parser.prototype.inlineTokenizers[n]=u,t.Parser.prototype.inlineTokenizers[n].locator=a}))}},function(t,e,n){"use strict";(function(t){function i(){return(i=Object.assign||function(t){for(var e=1;e-1}},function(t,e){t.exports=function(t,e){for(var n=-1,i=t.length,r=0,a=[];++n-1&&t%1==0&&t<=9007199254740991}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(147),r=n(143),a=n(204),o=n(311),u=n(570),s=n(316),l=n(121),c=n(573),h=n(574),d=n(319),p=n(215),f=n(104),m=n(577),g=n(578),y=n(324),b=n(21),v=n(145),w=n(582),k=n(40),x=n(584),C=n(62),S=n(103),L={};L["[object Arguments]"]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L["[object Object]"]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L["[object Function]"]=L["[object WeakMap]"]=!1,t.exports=function t(e,n,M,T,B,E){var G,P=1&n,D=2&n,j=4&n;if(M&&(G=B?M(e,T,B,E):M(e)),void 0!==G)return G;if(!k(e))return e;var N=b(e);if(N){if(G=m(e),!P)return l(e,G)}else{var A=f(e),Y="[object Function]"==A||"[object GeneratorFunction]"==A;if(v(e))return s(e,P);if("[object Object]"==A||"[object Arguments]"==A||Y&&!B){if(G=D||Y?{}:y(e),!P)return D?h(e,u(G,e)):c(e,o(G,e))}else{if(!L[A])return B?e:{};G=g(e,A,P)}}E||(E=new i);var _=E.get(e);if(_)return _;E.set(e,G),x(e)?e.forEach((function(i){G.add(t(i,n,M,i,e,E))})):w(e)&&e.forEach((function(i,r){G.set(r,t(i,n,M,r,e,E))}));var H=N?void 0:(j?D?p:d:D?S:C)(e);return r(H||e,(function(i,r){H&&(i=e[r=i]),a(G,r,t(i,n,M,r,e,E))})),G}},function(t,e,n){var i=n(85)(n(36),"Map");t.exports=i},function(t,e,n){var i=n(558),r=n(565),a=n(567),o=n(568),u=n(569);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e0&&a(c)?n>1?t(c,n-1,a,o,u):i(u,c):o||(u[u.length]=c)}return u}},function(t,e,n){var i,r,a;!function(n,o){"use strict";r=[],void 0===(a="function"==typeof(i=function(){function t(t){return t.charAt(0).toUpperCase()+t.substring(1)}function e(t){return function(){return this[t]}}var n=["isConstructor","isEval","isNative","isToplevel"],i=["columnNumber","lineNumber"],r=["fileName","functionName","source"],a=n.concat(i,r,["args"],["evalOrigin"]);function o(e){if(e)for(var n=0;n=r?t:i(t,e,n)}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var i=n(643),r=n(227),a=n(644);t.exports=function(t){return r(t)?a(t):i(t)}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function a(t,e,n){if(a.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(1206).Buffer}catch(t){}function u(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function s(t,e,n){var i=u(t,n);return n-1>=e&&(i|=u(t,n-1)<<4),i}function l(t,e,n,i){for(var r=0,a=Math.min(t.length,n),o=e;o=49?u-49+10:u>=17?u-17+10:u}return r}a.isBN=function(t){return t instanceof a||null!==t&&"object"==typeof t&&t.constructor.wordSize===a.wordSize&&Array.isArray(t.words)},a.max=function(t,e){return t.cmp(e)>0?t:e},a.min=function(t,e){return t.cmp(e)<0?t:e},a.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var r=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(r++,this.negative=1),r=0;r-=3)o=t[r]|t[r-1]<<8|t[r-2]<<16,this.words[a]|=o<>>26-u&67108863,(u+=24)>=26&&(u-=26,a++);else if("le"===n)for(r=0,a=0;r>>26-u&67108863,(u+=24)>=26&&(u-=26,a++);return this.strip()},a.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=2)r=s(t,e,i)<=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(a-=18,o+=1,this.words[o]|=r>>>26):a+=8;this.strip()},a.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,r=1;r<=67108863;r*=e)i++;i--,r=r/e|0;for(var a=t.length-n,o=a%i,u=Math.min(a,a-o)+n,s=0,c=n;c1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var r=0|t.words[0],a=0|e.words[0],o=r*a,u=67108863&o,s=o/67108864|0;n.words[0]=u;for(var l=1;l>>26,h=67108863&s,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var f=l-p|0;c+=(o=(r=0|t.words[f])*(a=0|e.words[p])+h)/67108864|0,h=67108863&o}n.words[l]=0|h,s=0|c}return 0!==s?n.words[l]=0|s:n.length--,n.strip()}a.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var r=0,a=0,o=0;o>>24-r&16777215)||o!==this.length-1?c[6-s.length]+s+n:s+n,(r+=2)>=26&&(r-=26,o--)}for(0!==a&&(n=a.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=h[t],p=d[t];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modn(p).toString(t);n=(f=f.idivn(p)).isZero()?m+n:c[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(t,e){return i(void 0!==o),this.toArrayLike(o,t,e)},a.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},a.prototype.toArrayLike=function(t,e,n){var r=this.byteLength(),a=n||Math.max(1,r);i(r<=a,"byte array longer than desired length"),i(a>0,"Requested array length <= 0"),this.strip();var o,u,s="le"===e,l=new t(a),c=this.clone();if(s){for(u=0;!c.isZero();u++)o=c.andln(255),c.iushrn(8),l[u]=o;for(;u=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},a.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},a.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},a.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},a.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},a.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},a.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;it.length?this.clone().ixor(t):t.clone().ixor(this)},a.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},a.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var r=0;r0&&(this.words[r]=~this.words[r]&67108863>>26-n),this.strip()},a.prototype.notn=function(t){return this.clone().inotn(t)},a.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,r=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var r=0,a=0;a>>26;for(;0!==r&&a>>26;if(this.length=n.length,0!==r)this.words[this.length]=r,this.length++;else if(n!==this)for(;at.length?this.clone().iadd(t):t.clone().iadd(this)},a.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,r=this.cmp(t);if(0===r)return this.negative=0,this.length=1,this.words[0]=0,this;r>0?(n=this,i=t):(n=t,i=this);for(var a=0,o=0;o>26,this.words[o]=67108863&e;for(;0!==a&&o>26,this.words[o]=67108863&e;if(0===a&&o>>13,p=0|o[1],f=8191&p,m=p>>>13,g=0|o[2],y=8191&g,b=g>>>13,v=0|o[3],w=8191&v,k=v>>>13,x=0|o[4],C=8191&x,S=x>>>13,L=0|o[5],M=8191&L,T=L>>>13,B=0|o[6],E=8191&B,G=B>>>13,P=0|o[7],D=8191&P,j=P>>>13,N=0|o[8],A=8191&N,Y=N>>>13,_=0|o[9],H=8191&_,J=_>>>13,O=0|u[0],Z=8191&O,F=O>>>13,R=0|u[1],X=8191&R,K=R>>>13,W=0|u[2],I=8191&W,z=W>>>13,Q=0|u[3],q=8191&Q,U=Q>>>13,V=0|u[4],$=8191&V,tt=V>>>13,et=0|u[5],nt=8191&et,it=et>>>13,rt=0|u[6],at=8191&rt,ot=rt>>>13,ut=0|u[7],st=8191&ut,lt=ut>>>13,ct=0|u[8],ht=8191&ct,dt=ct>>>13,pt=0|u[9],ft=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var gt=(l+(i=Math.imul(h,Z))|0)+((8191&(r=(r=Math.imul(h,F))+Math.imul(d,Z)|0))<<13)|0;l=((a=Math.imul(d,F))+(r>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(f,Z),r=(r=Math.imul(f,F))+Math.imul(m,Z)|0,a=Math.imul(m,F);var yt=(l+(i=i+Math.imul(h,X)|0)|0)+((8191&(r=(r=r+Math.imul(h,K)|0)+Math.imul(d,X)|0))<<13)|0;l=((a=a+Math.imul(d,K)|0)+(r>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(y,Z),r=(r=Math.imul(y,F))+Math.imul(b,Z)|0,a=Math.imul(b,F),i=i+Math.imul(f,X)|0,r=(r=r+Math.imul(f,K)|0)+Math.imul(m,X)|0,a=a+Math.imul(m,K)|0;var bt=(l+(i=i+Math.imul(h,I)|0)|0)+((8191&(r=(r=r+Math.imul(h,z)|0)+Math.imul(d,I)|0))<<13)|0;l=((a=a+Math.imul(d,z)|0)+(r>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(w,Z),r=(r=Math.imul(w,F))+Math.imul(k,Z)|0,a=Math.imul(k,F),i=i+Math.imul(y,X)|0,r=(r=r+Math.imul(y,K)|0)+Math.imul(b,X)|0,a=a+Math.imul(b,K)|0,i=i+Math.imul(f,I)|0,r=(r=r+Math.imul(f,z)|0)+Math.imul(m,I)|0,a=a+Math.imul(m,z)|0;var vt=(l+(i=i+Math.imul(h,q)|0)|0)+((8191&(r=(r=r+Math.imul(h,U)|0)+Math.imul(d,q)|0))<<13)|0;l=((a=a+Math.imul(d,U)|0)+(r>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(C,Z),r=(r=Math.imul(C,F))+Math.imul(S,Z)|0,a=Math.imul(S,F),i=i+Math.imul(w,X)|0,r=(r=r+Math.imul(w,K)|0)+Math.imul(k,X)|0,a=a+Math.imul(k,K)|0,i=i+Math.imul(y,I)|0,r=(r=r+Math.imul(y,z)|0)+Math.imul(b,I)|0,a=a+Math.imul(b,z)|0,i=i+Math.imul(f,q)|0,r=(r=r+Math.imul(f,U)|0)+Math.imul(m,q)|0,a=a+Math.imul(m,U)|0;var wt=(l+(i=i+Math.imul(h,$)|0)|0)+((8191&(r=(r=r+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;l=((a=a+Math.imul(d,tt)|0)+(r>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(M,Z),r=(r=Math.imul(M,F))+Math.imul(T,Z)|0,a=Math.imul(T,F),i=i+Math.imul(C,X)|0,r=(r=r+Math.imul(C,K)|0)+Math.imul(S,X)|0,a=a+Math.imul(S,K)|0,i=i+Math.imul(w,I)|0,r=(r=r+Math.imul(w,z)|0)+Math.imul(k,I)|0,a=a+Math.imul(k,z)|0,i=i+Math.imul(y,q)|0,r=(r=r+Math.imul(y,U)|0)+Math.imul(b,q)|0,a=a+Math.imul(b,U)|0,i=i+Math.imul(f,$)|0,r=(r=r+Math.imul(f,tt)|0)+Math.imul(m,$)|0,a=a+Math.imul(m,tt)|0;var kt=(l+(i=i+Math.imul(h,nt)|0)|0)+((8191&(r=(r=r+Math.imul(h,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((a=a+Math.imul(d,it)|0)+(r>>>13)|0)+(kt>>>26)|0,kt&=67108863,i=Math.imul(E,Z),r=(r=Math.imul(E,F))+Math.imul(G,Z)|0,a=Math.imul(G,F),i=i+Math.imul(M,X)|0,r=(r=r+Math.imul(M,K)|0)+Math.imul(T,X)|0,a=a+Math.imul(T,K)|0,i=i+Math.imul(C,I)|0,r=(r=r+Math.imul(C,z)|0)+Math.imul(S,I)|0,a=a+Math.imul(S,z)|0,i=i+Math.imul(w,q)|0,r=(r=r+Math.imul(w,U)|0)+Math.imul(k,q)|0,a=a+Math.imul(k,U)|0,i=i+Math.imul(y,$)|0,r=(r=r+Math.imul(y,tt)|0)+Math.imul(b,$)|0,a=a+Math.imul(b,tt)|0,i=i+Math.imul(f,nt)|0,r=(r=r+Math.imul(f,it)|0)+Math.imul(m,nt)|0,a=a+Math.imul(m,it)|0;var xt=(l+(i=i+Math.imul(h,at)|0)|0)+((8191&(r=(r=r+Math.imul(h,ot)|0)+Math.imul(d,at)|0))<<13)|0;l=((a=a+Math.imul(d,ot)|0)+(r>>>13)|0)+(xt>>>26)|0,xt&=67108863,i=Math.imul(D,Z),r=(r=Math.imul(D,F))+Math.imul(j,Z)|0,a=Math.imul(j,F),i=i+Math.imul(E,X)|0,r=(r=r+Math.imul(E,K)|0)+Math.imul(G,X)|0,a=a+Math.imul(G,K)|0,i=i+Math.imul(M,I)|0,r=(r=r+Math.imul(M,z)|0)+Math.imul(T,I)|0,a=a+Math.imul(T,z)|0,i=i+Math.imul(C,q)|0,r=(r=r+Math.imul(C,U)|0)+Math.imul(S,q)|0,a=a+Math.imul(S,U)|0,i=i+Math.imul(w,$)|0,r=(r=r+Math.imul(w,tt)|0)+Math.imul(k,$)|0,a=a+Math.imul(k,tt)|0,i=i+Math.imul(y,nt)|0,r=(r=r+Math.imul(y,it)|0)+Math.imul(b,nt)|0,a=a+Math.imul(b,it)|0,i=i+Math.imul(f,at)|0,r=(r=r+Math.imul(f,ot)|0)+Math.imul(m,at)|0,a=a+Math.imul(m,ot)|0;var Ct=(l+(i=i+Math.imul(h,st)|0)|0)+((8191&(r=(r=r+Math.imul(h,lt)|0)+Math.imul(d,st)|0))<<13)|0;l=((a=a+Math.imul(d,lt)|0)+(r>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(A,Z),r=(r=Math.imul(A,F))+Math.imul(Y,Z)|0,a=Math.imul(Y,F),i=i+Math.imul(D,X)|0,r=(r=r+Math.imul(D,K)|0)+Math.imul(j,X)|0,a=a+Math.imul(j,K)|0,i=i+Math.imul(E,I)|0,r=(r=r+Math.imul(E,z)|0)+Math.imul(G,I)|0,a=a+Math.imul(G,z)|0,i=i+Math.imul(M,q)|0,r=(r=r+Math.imul(M,U)|0)+Math.imul(T,q)|0,a=a+Math.imul(T,U)|0,i=i+Math.imul(C,$)|0,r=(r=r+Math.imul(C,tt)|0)+Math.imul(S,$)|0,a=a+Math.imul(S,tt)|0,i=i+Math.imul(w,nt)|0,r=(r=r+Math.imul(w,it)|0)+Math.imul(k,nt)|0,a=a+Math.imul(k,it)|0,i=i+Math.imul(y,at)|0,r=(r=r+Math.imul(y,ot)|0)+Math.imul(b,at)|0,a=a+Math.imul(b,ot)|0,i=i+Math.imul(f,st)|0,r=(r=r+Math.imul(f,lt)|0)+Math.imul(m,st)|0,a=a+Math.imul(m,lt)|0;var St=(l+(i=i+Math.imul(h,ht)|0)|0)+((8191&(r=(r=r+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((a=a+Math.imul(d,dt)|0)+(r>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(H,Z),r=(r=Math.imul(H,F))+Math.imul(J,Z)|0,a=Math.imul(J,F),i=i+Math.imul(A,X)|0,r=(r=r+Math.imul(A,K)|0)+Math.imul(Y,X)|0,a=a+Math.imul(Y,K)|0,i=i+Math.imul(D,I)|0,r=(r=r+Math.imul(D,z)|0)+Math.imul(j,I)|0,a=a+Math.imul(j,z)|0,i=i+Math.imul(E,q)|0,r=(r=r+Math.imul(E,U)|0)+Math.imul(G,q)|0,a=a+Math.imul(G,U)|0,i=i+Math.imul(M,$)|0,r=(r=r+Math.imul(M,tt)|0)+Math.imul(T,$)|0,a=a+Math.imul(T,tt)|0,i=i+Math.imul(C,nt)|0,r=(r=r+Math.imul(C,it)|0)+Math.imul(S,nt)|0,a=a+Math.imul(S,it)|0,i=i+Math.imul(w,at)|0,r=(r=r+Math.imul(w,ot)|0)+Math.imul(k,at)|0,a=a+Math.imul(k,ot)|0,i=i+Math.imul(y,st)|0,r=(r=r+Math.imul(y,lt)|0)+Math.imul(b,st)|0,a=a+Math.imul(b,lt)|0,i=i+Math.imul(f,ht)|0,r=(r=r+Math.imul(f,dt)|0)+Math.imul(m,ht)|0,a=a+Math.imul(m,dt)|0;var Lt=(l+(i=i+Math.imul(h,ft)|0)|0)+((8191&(r=(r=r+Math.imul(h,mt)|0)+Math.imul(d,ft)|0))<<13)|0;l=((a=a+Math.imul(d,mt)|0)+(r>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(H,X),r=(r=Math.imul(H,K))+Math.imul(J,X)|0,a=Math.imul(J,K),i=i+Math.imul(A,I)|0,r=(r=r+Math.imul(A,z)|0)+Math.imul(Y,I)|0,a=a+Math.imul(Y,z)|0,i=i+Math.imul(D,q)|0,r=(r=r+Math.imul(D,U)|0)+Math.imul(j,q)|0,a=a+Math.imul(j,U)|0,i=i+Math.imul(E,$)|0,r=(r=r+Math.imul(E,tt)|0)+Math.imul(G,$)|0,a=a+Math.imul(G,tt)|0,i=i+Math.imul(M,nt)|0,r=(r=r+Math.imul(M,it)|0)+Math.imul(T,nt)|0,a=a+Math.imul(T,it)|0,i=i+Math.imul(C,at)|0,r=(r=r+Math.imul(C,ot)|0)+Math.imul(S,at)|0,a=a+Math.imul(S,ot)|0,i=i+Math.imul(w,st)|0,r=(r=r+Math.imul(w,lt)|0)+Math.imul(k,st)|0,a=a+Math.imul(k,lt)|0,i=i+Math.imul(y,ht)|0,r=(r=r+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,a=a+Math.imul(b,dt)|0;var Mt=(l+(i=i+Math.imul(f,ft)|0)|0)+((8191&(r=(r=r+Math.imul(f,mt)|0)+Math.imul(m,ft)|0))<<13)|0;l=((a=a+Math.imul(m,mt)|0)+(r>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,i=Math.imul(H,I),r=(r=Math.imul(H,z))+Math.imul(J,I)|0,a=Math.imul(J,z),i=i+Math.imul(A,q)|0,r=(r=r+Math.imul(A,U)|0)+Math.imul(Y,q)|0,a=a+Math.imul(Y,U)|0,i=i+Math.imul(D,$)|0,r=(r=r+Math.imul(D,tt)|0)+Math.imul(j,$)|0,a=a+Math.imul(j,tt)|0,i=i+Math.imul(E,nt)|0,r=(r=r+Math.imul(E,it)|0)+Math.imul(G,nt)|0,a=a+Math.imul(G,it)|0,i=i+Math.imul(M,at)|0,r=(r=r+Math.imul(M,ot)|0)+Math.imul(T,at)|0,a=a+Math.imul(T,ot)|0,i=i+Math.imul(C,st)|0,r=(r=r+Math.imul(C,lt)|0)+Math.imul(S,st)|0,a=a+Math.imul(S,lt)|0,i=i+Math.imul(w,ht)|0,r=(r=r+Math.imul(w,dt)|0)+Math.imul(k,ht)|0,a=a+Math.imul(k,dt)|0;var Tt=(l+(i=i+Math.imul(y,ft)|0)|0)+((8191&(r=(r=r+Math.imul(y,mt)|0)+Math.imul(b,ft)|0))<<13)|0;l=((a=a+Math.imul(b,mt)|0)+(r>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(H,q),r=(r=Math.imul(H,U))+Math.imul(J,q)|0,a=Math.imul(J,U),i=i+Math.imul(A,$)|0,r=(r=r+Math.imul(A,tt)|0)+Math.imul(Y,$)|0,a=a+Math.imul(Y,tt)|0,i=i+Math.imul(D,nt)|0,r=(r=r+Math.imul(D,it)|0)+Math.imul(j,nt)|0,a=a+Math.imul(j,it)|0,i=i+Math.imul(E,at)|0,r=(r=r+Math.imul(E,ot)|0)+Math.imul(G,at)|0,a=a+Math.imul(G,ot)|0,i=i+Math.imul(M,st)|0,r=(r=r+Math.imul(M,lt)|0)+Math.imul(T,st)|0,a=a+Math.imul(T,lt)|0,i=i+Math.imul(C,ht)|0,r=(r=r+Math.imul(C,dt)|0)+Math.imul(S,ht)|0,a=a+Math.imul(S,dt)|0;var Bt=(l+(i=i+Math.imul(w,ft)|0)|0)+((8191&(r=(r=r+Math.imul(w,mt)|0)+Math.imul(k,ft)|0))<<13)|0;l=((a=a+Math.imul(k,mt)|0)+(r>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,i=Math.imul(H,$),r=(r=Math.imul(H,tt))+Math.imul(J,$)|0,a=Math.imul(J,tt),i=i+Math.imul(A,nt)|0,r=(r=r+Math.imul(A,it)|0)+Math.imul(Y,nt)|0,a=a+Math.imul(Y,it)|0,i=i+Math.imul(D,at)|0,r=(r=r+Math.imul(D,ot)|0)+Math.imul(j,at)|0,a=a+Math.imul(j,ot)|0,i=i+Math.imul(E,st)|0,r=(r=r+Math.imul(E,lt)|0)+Math.imul(G,st)|0,a=a+Math.imul(G,lt)|0,i=i+Math.imul(M,ht)|0,r=(r=r+Math.imul(M,dt)|0)+Math.imul(T,ht)|0,a=a+Math.imul(T,dt)|0;var Et=(l+(i=i+Math.imul(C,ft)|0)|0)+((8191&(r=(r=r+Math.imul(C,mt)|0)+Math.imul(S,ft)|0))<<13)|0;l=((a=a+Math.imul(S,mt)|0)+(r>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(H,nt),r=(r=Math.imul(H,it))+Math.imul(J,nt)|0,a=Math.imul(J,it),i=i+Math.imul(A,at)|0,r=(r=r+Math.imul(A,ot)|0)+Math.imul(Y,at)|0,a=a+Math.imul(Y,ot)|0,i=i+Math.imul(D,st)|0,r=(r=r+Math.imul(D,lt)|0)+Math.imul(j,st)|0,a=a+Math.imul(j,lt)|0,i=i+Math.imul(E,ht)|0,r=(r=r+Math.imul(E,dt)|0)+Math.imul(G,ht)|0,a=a+Math.imul(G,dt)|0;var Gt=(l+(i=i+Math.imul(M,ft)|0)|0)+((8191&(r=(r=r+Math.imul(M,mt)|0)+Math.imul(T,ft)|0))<<13)|0;l=((a=a+Math.imul(T,mt)|0)+(r>>>13)|0)+(Gt>>>26)|0,Gt&=67108863,i=Math.imul(H,at),r=(r=Math.imul(H,ot))+Math.imul(J,at)|0,a=Math.imul(J,ot),i=i+Math.imul(A,st)|0,r=(r=r+Math.imul(A,lt)|0)+Math.imul(Y,st)|0,a=a+Math.imul(Y,lt)|0,i=i+Math.imul(D,ht)|0,r=(r=r+Math.imul(D,dt)|0)+Math.imul(j,ht)|0,a=a+Math.imul(j,dt)|0;var Pt=(l+(i=i+Math.imul(E,ft)|0)|0)+((8191&(r=(r=r+Math.imul(E,mt)|0)+Math.imul(G,ft)|0))<<13)|0;l=((a=a+Math.imul(G,mt)|0)+(r>>>13)|0)+(Pt>>>26)|0,Pt&=67108863,i=Math.imul(H,st),r=(r=Math.imul(H,lt))+Math.imul(J,st)|0,a=Math.imul(J,lt),i=i+Math.imul(A,ht)|0,r=(r=r+Math.imul(A,dt)|0)+Math.imul(Y,ht)|0,a=a+Math.imul(Y,dt)|0;var Dt=(l+(i=i+Math.imul(D,ft)|0)|0)+((8191&(r=(r=r+Math.imul(D,mt)|0)+Math.imul(j,ft)|0))<<13)|0;l=((a=a+Math.imul(j,mt)|0)+(r>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,i=Math.imul(H,ht),r=(r=Math.imul(H,dt))+Math.imul(J,ht)|0,a=Math.imul(J,dt);var jt=(l+(i=i+Math.imul(A,ft)|0)|0)+((8191&(r=(r=r+Math.imul(A,mt)|0)+Math.imul(Y,ft)|0))<<13)|0;l=((a=a+Math.imul(Y,mt)|0)+(r>>>13)|0)+(jt>>>26)|0,jt&=67108863;var Nt=(l+(i=Math.imul(H,ft))|0)+((8191&(r=(r=Math.imul(H,mt))+Math.imul(J,ft)|0))<<13)|0;return l=((a=Math.imul(J,mt))+(r>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,s[0]=gt,s[1]=yt,s[2]=bt,s[3]=vt,s[4]=wt,s[5]=kt,s[6]=xt,s[7]=Ct,s[8]=St,s[9]=Lt,s[10]=Mt,s[11]=Tt,s[12]=Bt,s[13]=Et,s[14]=Gt,s[15]=Pt,s[16]=Dt,s[17]=jt,s[18]=Nt,0!==l&&(s[19]=l,n.length++),n};function m(t,e,n){return(new g).mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(f=p),a.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,r=0,a=0;a>>26)|0)>>>26,o&=67108863}n.words[a]=u,i=o,o=r}return 0!==i?n.words[a]=i:n.length--,n.strip()}(this,t,e):m(this,t,e)},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=a.prototype._countBits(t)-1,i=0;i>=1;return i},g.prototype.permute=function(t,e,n,i,r,a){for(var o=0;o>>=1)r++;return 1<>>=13,n[2*o+1]=8191&a,a>>>=13;for(o=2*e;o>=26,e+=r/67108864|0,e+=a>>>26,this.words[n]=67108863&a}return 0!==e&&(this.words[n]=e,this.length++),this},a.prototype.muln=function(t){return this.clone().imuln(t)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>r}return e}(t);if(0===e.length)return new a(1);for(var n=this,i=0;i=0);var e,n=t%26,r=(t-n)/26,a=67108863>>>26-n<<26-n;if(0!==n){var o=0;for(e=0;e>>26-n}o&&(this.words[e]=o,this.length++)}if(0!==r){for(e=this.length-1;e>=0;e--)this.words[e+r]=this.words[e];for(e=0;e=0),r=e?(e-e%26)/26:0;var a=t%26,o=Math.min((t-a)/26,this.length),u=67108863^67108863>>>a<o)for(this.length-=o,l=0;l=0&&(0!==c||l>=r);l--){var h=0|this.words[l];this.words[l]=c<<26-a|h>>>a,c=h&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},a.prototype.shln=function(t){return this.clone().ishln(t)},a.prototype.ushln=function(t){return this.clone().iushln(t)},a.prototype.shrn=function(t){return this.clone().ishrn(t)},a.prototype.ushrn=function(t){return this.clone().iushrn(t)},a.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,r=1<=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var r=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},a.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(s/67108864|0),this.words[r+n]=67108863&a}for(;r>26,this.words[r+n]=67108863&a;if(0===u)return this.strip();for(i(-1===u),u=0,r=0;r>26,this.words[r]=67108863&a;return this.negative=1,this.strip()},a.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),r=t,o=0|r.words[r.length-1];0!==(n=26-this._countBits(o))&&(r=r.ushln(n),i.iushln(n),o=0|r.words[r.length-1]);var u,s=i.length-r.length;if("mod"!==e){(u=new a(null)).length=s+1,u.words=new Array(u.length);for(var l=0;l=0;h--){var d=67108864*(0|i.words[r.length+h])+(0|i.words[r.length+h-1]);for(d=Math.min(d/o|0,67108863),i._ishlnsubmul(r,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(r,1,h),i.isZero()||(i.negative^=1);u&&(u.words[h]=d)}return u&&u.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:u||null,mod:i}},a.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===t.negative?(u=this.neg().divmod(t,e),"mod"!==e&&(r=u.div.neg()),"div"!==e&&(o=u.mod.neg(),n&&0!==o.negative&&o.iadd(t)),{div:r,mod:o}):0===this.negative&&0!==t.negative?(u=this.divmod(t.neg(),e),"mod"!==e&&(r=u.div.neg()),{div:r,mod:u.mod}):0!=(this.negative&t.negative)?(u=this.neg().divmod(t.neg(),e),"div"!==e&&(o=u.mod.neg(),n&&0!==o.negative&&o.isub(t)),{div:u.div,mod:o}):t.length>this.length||this.cmp(t)<0?{div:new a(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new a(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new a(this.modn(t.words[0]))}:this._wordDiv(t,e);var r,o,u},a.prototype.div=function(t){return this.divmod(t,"div",!1).div},a.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},a.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},a.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),r=t.andln(1),a=n.cmp(i);return a<0||1===r&&0===a?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},a.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,r=this.length-1;r>=0;r--)n=(e*n+(0|this.words[r]))%t;return n},a.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var r=(0|this.words[n])+67108864*e;this.words[n]=r/t|0,e=r%t}return this.strip()},a.prototype.divn=function(t){return this.clone().idivn(t)},a.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r=new a(1),o=new a(0),u=new a(0),s=new a(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var c=n.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(r.isOdd()||o.isOdd())&&(r.iadd(c),o.isub(h)),r.iushrn(1),o.iushrn(1);for(var f=0,m=1;0==(n.words[0]&m)&&f<26;++f,m<<=1);if(f>0)for(n.iushrn(f);f-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(h)),u.iushrn(1),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),r.isub(u),o.isub(s)):(n.isub(e),u.isub(r),s.isub(o))}return{a:u,b:s,gcd:n.iushln(l)}},a.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var r,o=new a(1),u=new a(0),s=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,c=1;0==(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(e.iushrn(l);l-- >0;)o.isOdd()&&o.iadd(s),o.iushrn(1);for(var h=0,d=1;0==(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(u)):(n.isub(e),u.isub(o))}return(r=0===e.cmpn(1)?o:u).cmpn(0)<0&&r.iadd(t),r},a.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var r=e.cmp(n);if(r<0){var a=e;e=n,n=a}else if(0===r||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},a.prototype.invm=function(t){return this.egcd(t).a.umod(t)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(t){return this.words[0]&t},a.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,r=1<>>26,u&=67108863,this.words[o]=u}return 0!==a&&(this.words[o]=a,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var r=0|this.words[0];e=r===t?0:rt.length)return 1;if(this.length=0;n--){var i=0|this.words[n],r=0|t.words[n];if(i!==r){ir&&(e=1);break}}return e},a.prototype.gtn=function(t){return 1===this.cmpn(t)},a.prototype.gt=function(t){return 1===this.cmp(t)},a.prototype.gten=function(t){return this.cmpn(t)>=0},a.prototype.gte=function(t){return this.cmp(t)>=0},a.prototype.ltn=function(t){return-1===this.cmpn(t)},a.prototype.lt=function(t){return-1===this.cmp(t)},a.prototype.lten=function(t){return this.cmpn(t)<=0},a.prototype.lte=function(t){return this.cmp(t)<=0},a.prototype.eqn=function(t){return 0===this.cmpn(t)},a.prototype.eq=function(t){return 0===this.cmp(t)},a.red=function(t){return new C(t)},a.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},a.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(t){return this.red=t,this},a.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},a.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},a.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},a.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},a.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},a.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},a.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},a.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},a.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new a(e,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function v(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function w(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function k(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function C(t){if("string"==typeof t){var e=a._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function S(t){C.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new a(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},r(v,b),v.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i>>22,r=a}r>>>=22,t.words[i-10]=r,0===r&&t.length>10?t.length-=10:t.length-=9},v.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=r,e=i}return 0!==e&&(t.words[t.length++]=e),t},a._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new v;else if("p224"===t)e=new w;else if("p192"===t)e=new k;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new x}return y[t]=e,e},C.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},C.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},C.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},C.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},C.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},C.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},C.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},C.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},C.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},C.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},C.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},C.prototype.isqr=function(t){return this.imul(t,t.clone())},C.prototype.sqr=function(t){return this.mul(t,t)},C.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new a(1)).iushrn(2);return this.pow(t,n)}for(var r=this.m.subn(1),o=0;!r.isZero()&&0===r.andln(1);)o++,r.iushrn(1);i(!r.isZero());var u=new a(1).toRed(this),s=u.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new a(2*c*c).toRed(this);0!==this.pow(c,l).cmp(s);)c.redIAdd(s);for(var h=this.pow(c,r),d=this.pow(t,r.addn(1).iushrn(1)),p=this.pow(t,r),f=o;0!==p.cmp(u);){for(var m=p,g=0;0!==m.cmp(u);g++)m=m.redSqr();i(g=0;i--){for(var l=e.words[i],c=s-1;c>=0;c--){var h=l>>c&1;r!==n[0]&&(r=this.sqr(r)),0!==h||0!==o?(o<<=1,o|=h,(4===++u||0===i&&0===c)&&(r=this.mul(r,n[o]),u=0,o=0)):u=0}s=26}return r},C.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},C.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},a.mont=function(t){return new S(t)},r(S,C),S.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},S.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},S.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),a=r;return r.cmp(this.m)>=0?a=r.isub(this.m):r.cmpn(0)<0&&(a=r.iadd(this.m)),a._forceRed(this)},S.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new a(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),r=n.isub(i).iushrn(this.shift),o=r;return r.cmp(this.m)>=0?o=r.isub(this.m):r.cmpn(0)<0&&(o=r.iadd(this.m)),o._forceRed(this)},S.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(51)(t))},function(t,e,n){var i=n(32),r=n(108),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;t.exports=function(t,e){if(i(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!r(t))||(o.test(t)||!a.test(t)||null!=e&&t in Object(e))}},function(t,e,n){var i=n(1217),r=n(1233),a=n(1235),o=n(1236),u=n(1237);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t<=9007199254740991}},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var i=n(156),r=n(1271),a=n(1272),o=n(1273),u=n(1274),s=n(1275);function l(t){var e=this.__data__=new i(t);this.size=e.size}l.prototype.clear=r,l.prototype.delete=a,l.prototype.get=o,l.prototype.has=u,l.prototype.set=s,t.exports=l},function(t,e,n){var i=n(381),r=n(1277),a=n(129);t.exports=function(t){return a(t)?i(t,!0):r(t)}},function(t,e,n){var i=n(1281),r=n(386),a=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,u=o?function(t){return null==t?[]:(t=Object(t),i(o(t),(function(e){return a.call(t,e)})))}:r;t.exports=u},function(t,e){t.exports=function(t,e){for(var n=-1,i=e.length,r=t.length;++nr?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var a=Array(r);++i=55296&&U<=57343||U>1114111?(x(7,D),w=c(65533)):w in r?(x(6,D),w=r[w]):(S="",b(w)&&x(6,D),w>65535&&(S+=c((w-=65536)>>>10|55296),w=56320|1023&w),w=S+c(w))):B!==p&&x(4,D)),w?($(),G=V(),K=j-1,I+=j-T+1,q.push(w),(P=V()).offset++,_&&_.call(O,w,{start:G,end:P},t.slice(T-1,j)),G=P):(d=t.slice(T-1,j),Q+=d,I+=d.length,K=j-1)}else 10===v&&(z++,W++,I=0),v==v?(Q+=c(v),I++):$();var U;return q.join("");function V(){return{line:z,column:I,offset:K+(F.offset||0)}}function $(){Q&&(q.push(Q),Y&&Y.call(J,Q,{start:G,end:V()}),Q="")}}(t,o)};var l={}.hasOwnProperty,c=String.fromCharCode,h=Function.prototype,d={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",f="hexadecimal",m={hexadecimal:16,decimal:10},g={};g[p]=u,g.decimal=a,g[f]=o;var y={};function b(t){return t>=1&&t<=8||11===t||t>=13&&t<=31||t>=127&&t<=159||t>=64976&&t<=65007||65535==(65535&t)||65534==(65535&t)}y[1]="Named character references must be terminated by a semicolon",y[2]="Numeric character references must be terminated by a semicolon",y[3]="Named character references cannot be empty",y[4]="Numeric character references cannot be empty",y[5]="Named character references must be known",y[6]="Numeric character references cannot be disallowed",y[7]="Numeric character references cannot be outside the permissible Unicode range"},function(t,e,n){"use strict"; +/*! + * repeat-string + * + * Copyright (c) 2014-2015, Jon Schlinkert. + * Licensed under the MIT License. + */var i,r="";t.exports=function(t,e){if("string"!=typeof t)throw new TypeError("expected a string");if(1===e)return t;if(2===e)return t+t;var n=t.length*e;if(i!==t||void 0===i)i=t,r="";else if(r.length>=n)return r.substr(0,n);for(;n>r.length&&e>1;)1&e&&(r+=t),e>>=1,t+=t;return r=(r+=t).substr(0,n)}},function(t,e,n){"use strict";t.exports=function(t){return String(t).replace(/\n+$/,"")}},function(t,e,n){"use strict";t.exports=function(t,e,n,i){var r,a,o,u,s,l,c=["pedantic","commonmark"],h=c.length,d=t.length,p=-1;for(;++p0)try{var r=JSON.parse(n.body.toString()),a=r.__type||r.code||r.Code;a&&(e.code=a.split("#").pop()),"RequestEntityTooLarge"===e.code?e.message="Request body must be less than 1 MB":e.message=r.message||r.Message||null}catch(r){e.statusCode=n.statusCode,e.message=n.statusMessage}else e.statusCode=n.statusCode,e.message=n.statusCode.toString();t.error=i.error(new Error,e)},extractData:function(t){var e=t.httpResponse.body.toString()||"{}";if(!1===t.request.service.config.convertResponseTypes)t.data=JSON.parse(e);else{var n=t.request.service.api.operations[t.request.operation].output||{},i=new a;t.data=i.parse(e,n)}}}},function(t,e,n){var i=n(24);function r(){}function a(t,e){if(e&&null!=t)switch(e.type){case"structure":return function(t,e){var n={};return i.each(t,(function(t,i){var r=e.members[t];if(r){if("body"!==r.location)return;var o=r.isLocationName?r.name:t,u=a(i,r);void 0!==u&&(n[o]=u)}})),n}(t,e);case"map":return function(t,e){var n={};return i.each(t,(function(t,i){var r=a(i,e.value);void 0!==r&&(n[t]=r)})),n}(t,e);case"list":return function(t,e){var n=[];return i.arrayEach(t,(function(t){var i=a(t,e.member);void 0!==i&&n.push(i)})),n}(t,e);default:return function(t,e){return e.toWireFormat(t)}(t,e)}}r.prototype.build=function(t,e){return JSON.stringify(a(t,e))},t.exports=r},function(t,e,n){var i=n(24);function r(){}function a(t,e){if(e&&void 0!==t)switch(e.type){case"structure":return function(t,e){if(null==t)return;var n={},r=e.members;return i.each(r,(function(e,i){var r=i.isLocationName?i.name:e;if(Object.prototype.hasOwnProperty.call(t,r)){var o=a(t[r],i);void 0!==o&&(n[e]=o)}})),n}(t,e);case"map":return function(t,e){if(null==t)return;var n={};return i.each(t,(function(t,i){var r=a(i,e.value);n[t]=void 0===r?null:r})),n}(t,e);case"list":return function(t,e){if(null==t)return;var n=[];return i.arrayEach(t,(function(t){var i=a(t,e.member);void 0===i?n.push(null):n.push(i)})),n}(t,e);default:return function(t,e){return e.toType(t)}(t,e)}}r.prototype.parse=function(t,e){return a(JSON.parse(t),e)},t.exports=r},function(t,e,n){var i=n(24),r=n(18);t.exports={populateHostPrefix:function(t){if(!t.service.config.hostPrefixEnabled)return t;var e,n,a,o=t.service.api.operations[t.operation];if(function(t){var e=t.service.api,n=e.operations[t.operation],r=e.endpointOperation&&e.endpointOperation===i.string.lowerFirst(n.name);return"NULL"!==n.endpointDiscoveryRequired||!0===r}(t))return t;if(o.endpoint&&o.endpoint.hostPrefix){var u=function(t,e,n){return i.each(n.members,(function(n,r){if(!0===r.hostLabel){if("string"!=typeof e[n]||""===e[n])throw i.error(new Error,{message:"Parameter "+n+" should be a non-empty string.",code:"InvalidParameter"});var a=new RegExp("\\{"+n+"\\}","g");t=t.replace(a,e[n])}})),t}(o.endpoint.hostPrefix,t.params,o.input);!function(t,e){t.host&&(t.host=e+t.host);t.hostname&&(t.hostname=e+t.hostname)}(t.httpRequest.endpoint,u),e=t.httpRequest.endpoint.hostname,n=e.split("."),a=/^[a-zA-Z0-9]{1}$|^[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]$/,i.arrayEach(n,(function(t){if(!t.length||t.length<1||t.length>63)throw i.error(new Error,{code:"ValidationError",message:"Hostname label length should be between 1 to 63 characters, inclusive."});if(!a.test(t))throw r.util.error(new Error,{code:"ValidationError",message:t+" is not hostname compatible."})}))}return t}}},function(t,e,n){var i=n(24),r=n(1470);function a(t,e){i.each(e,(function(e,n){"globalEndpoint"!==e&&(void 0!==t.config[e]&&null!==t.config[e]||(t.config[e]=n))}))}t.exports={configureEndpoint:function(t){for(var e=function(t){var e=t.config.region,n=function(t){if(!t)return null;var e=t.split("-");return e.length<3?null:e.slice(0,e.length-2).join("-")+"-*"}(e),i=t.api.endpointPrefix;return[[e,i],[n,i],[e,"*"],[n,"*"],["*",i],["*","*"]].map((function(t){return t[0]&&t[1]?t.join("/"):null}))}(t),n=0;n":!0,"=":!0,"!":!0},c={" ":!0,"\t":!0,"\n":!0};function h(t){return t>="0"&&t<="9"||"-"===t}function d(){}d.prototype={tokenize:function(t){var e,n,i,r,a=[];for(this._current=0;this._current="a"&&r<="z"||r>="A"&&r<="Z"||"_"===r)e=this._current,n=this._consumeUnquotedIdentifier(t),a.push({type:"UnquotedIdentifier",value:n,start:e});else if(void 0!==s[t[this._current]])a.push({type:s[t[this._current]],value:t[this._current],start:this._current}),this._current++;else if(h(t[this._current]))i=this._consumeNumber(t),a.push(i);else if("["===t[this._current])i=this._consumeLBracket(t),a.push(i);else if('"'===t[this._current])e=this._current,n=this._consumeQuotedIdentifier(t),a.push({type:"QuotedIdentifier",value:n,start:e});else if("'"===t[this._current])e=this._current,n=this._consumeRawStringLiteral(t),a.push({type:"Literal",value:n,start:e});else if("`"===t[this._current]){e=this._current;var o=this._consumeLiteral(t);a.push({type:"Literal",value:o,start:e})}else if(void 0!==l[t[this._current]])a.push(this._consumeOperator(t));else if(void 0!==c[t[this._current]])this._current++;else if("&"===t[this._current])e=this._current,this._current++,"&"===t[this._current]?(this._current++,a.push({type:"And",value:"&&",start:e})):a.push({type:"Expref",value:"&",start:e});else{if("|"!==t[this._current]){var u=new Error("Unknown character:"+t[this._current]);throw u.name="LexerError",u}e=this._current,this._current++,"|"===t[this._current]?(this._current++,a.push({type:"Or",value:"||",start:e})):a.push({type:"Pipe",value:"|",start:e})}return a},_consumeUnquotedIdentifier:function(t){var e,n=this._current;for(this._current++;this._current="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||"_"===e);)this._current++;return t.slice(n,this._current)},_consumeQuotedIdentifier:function(t){var e=this._current;this._current++;for(var n=t.length;'"'!==t[this._current]&&this._current"===n?"="===t[this._current]?(this._current++,{type:"GTE",value:">=",start:e}):{type:"GT",value:">",start:e}:"="===n&&"="===t[this._current]?(this._current++,{type:"EQ",value:"==",start:e}):void 0},_consumeLiteral:function(t){this._current++;for(var e,n=this._current,i=t.length;"`"!==t[this._current]&&this._current=0)return!0;if(["true","false","null"].indexOf(t)>=0)return!0;if(!("-0123456789".indexOf(t[0])>=0))return!1;try{return JSON.parse(t),!0}catch(t){return!1}}};var p={};function f(){}function m(t){this.runtime=t}function g(t){this._interpreter=t,this.functionTable={abs:{_func:this._functionAbs,_signature:[{types:[o]}]},avg:{_func:this._functionAvg,_signature:[{types:[8]}]},ceil:{_func:this._functionCeil,_signature:[{types:[o]}]},contains:{_func:this._functionContains,_signature:[{types:[u,3]},{types:[1]}]},ends_with:{_func:this._functionEndsWith,_signature:[{types:[u]},{types:[u]}]},floor:{_func:this._functionFloor,_signature:[{types:[o]}]},length:{_func:this._functionLength,_signature:[{types:[u,3,4]}]},map:{_func:this._functionMap,_signature:[{types:[6]},{types:[3]}]},max:{_func:this._functionMax,_signature:[{types:[8,9]}]},merge:{_func:this._functionMerge,_signature:[{types:[4],variadic:!0}]},max_by:{_func:this._functionMaxBy,_signature:[{types:[3]},{types:[6]}]},sum:{_func:this._functionSum,_signature:[{types:[8]}]},starts_with:{_func:this._functionStartsWith,_signature:[{types:[u]},{types:[u]}]},min:{_func:this._functionMin,_signature:[{types:[8,9]}]},min_by:{_func:this._functionMinBy,_signature:[{types:[3]},{types:[6]}]},type:{_func:this._functionType,_signature:[{types:[1]}]},keys:{_func:this._functionKeys,_signature:[{types:[4]}]},values:{_func:this._functionValues,_signature:[{types:[4]}]},sort:{_func:this._functionSort,_signature:[{types:[9,8]}]},sort_by:{_func:this._functionSortBy,_signature:[{types:[3]},{types:[6]}]},join:{_func:this._functionJoin,_signature:[{types:[u]},{types:[9]}]},reverse:{_func:this._functionReverse,_signature:[{types:[u,3]}]},to_array:{_func:this._functionToArray,_signature:[{types:[1]}]},to_string:{_func:this._functionToString,_signature:[{types:[1]}]},to_number:{_func:this._functionToNumber,_signature:[{types:[1]}]},not_null:{_func:this._functionNotNull,_signature:[{types:[1],variadic:!0}]}}}p.EOF=0,p.UnquotedIdentifier=0,p.QuotedIdentifier=0,p.Rbracket=0,p.Rparen=0,p.Comma=0,p.Rbrace=0,p.Number=0,p.Current=0,p.Expref=0,p.Pipe=1,p.Or=2,p.And=3,p.EQ=5,p.GT=5,p.LT=5,p.GTE=5,p.LTE=5,p.NE=5,p.Flatten=9,p.Star=20,p.Filter=21,p.Dot=40,p.Not=45,p.Lbrace=50,p.Lbracket=55,p.Lparen=60,f.prototype={parse:function(t){this._loadTokens(t),this.index=0;var e=this.expression(0);if("EOF"!==this._lookahead(0)){var n=this._lookaheadToken(0),i=new Error("Unexpected token type: "+n.type+", value: "+n.value);throw i.name="ParserError",i}return e},_loadTokens:function(t){var e=(new d).tokenize(t);e.push({type:"EOF",value:"",start:t.length}),this.tokens=e},expression:function(t){var e=this._lookaheadToken(0);this._advance();for(var n=this.nud(e),i=this._lookahead(0);t=0?this.expression(t):"Lbracket"===e?(this._match("Lbracket"),this._parseMultiselectList()):"Lbrace"===e?(this._match("Lbrace"),this._parseMultiselectHash()):void 0},_parseProjectionRHS:function(t){var e;if(p[this._lookahead(0)]<10)e={type:"Identity"};else if("Lbracket"===this._lookahead(0))e=this.expression(t);else if("Filter"===this._lookahead(0))e=this.expression(t);else{if("Dot"!==this._lookahead(0)){var n=this._lookaheadToken(0),i=new Error("Sytanx error, unexpected token: "+n.value+"("+n.type+")");throw i.name="ParserError",i}this._match("Dot"),e=this._parseDotRHS(t)}return e},_parseMultiselectList:function(){for(var t=[];"Rbracket"!==this._lookahead(0);){var e=this.expression(0);if(t.push(e),"Comma"===this._lookahead(0)&&(this._match("Comma"),"Rbracket"===this._lookahead(0)))throw new Error("Unexpected token Rbracket")}return this._match("Rbracket"),{type:"MultiSelectList",children:t}},_parseMultiselectHash:function(){for(var t,e,n,i=[],r=["UnquotedIdentifier","QuotedIdentifier"];;){if(t=this._lookaheadToken(0),r.indexOf(t.type)<0)throw new Error("Expecting an identifier token, got: "+t.type);if(e=t.value,this._advance(),this._match("Colon"),n={type:"KeyValuePair",name:e,value:this.expression(0)},i.push(n),"Comma"===this._lookahead(0))this._match("Comma");else if("Rbrace"===this._lookahead(0)){this._match("Rbrace");break}}return{type:"MultiSelectHash",children:i}}},m.prototype={search:function(t,e){return this.visit(t,e)},visit:function(t,a){var o,u,s,l,c,h,d,p,f;switch(t.type){case"Field":return null===a?null:n(a)?void 0===(h=a[t.name])?null:h:null;case"Subexpression":for(s=this.visit(t.children[0],a),f=1;f0)for(f=b;fv;f+=w)s.push(a[f]);return s;case"Projection":var k=this.visit(t.children[0],a);if(!e(k))return null;for(p=[],f=0;fc;break;case"GTE":s=l>=c;break;case"LT":s=l=t&&(e=n<0?t-1:t),e}},g.prototype={callFunction:function(t,e){var n=this.functionTable[t];if(void 0===n)throw new Error("Unknown function: "+t+"()");return this._validateArgs(t,e,n._signature),n._func.call(this,e)},_validateArgs:function(t,e,n){var i,r,a,o;if(n[n.length-1].variadic){if(e.length=0;i--)n+=e[i];return n}var r=t[0].slice(0);return r.reverse(),r},_functionAbs:function(t){return Math.abs(t[0])},_functionCeil:function(t){return Math.ceil(t[0])},_functionAvg:function(t){for(var e=0,n=t[0],i=0;i=0},_functionFloor:function(t){return Math.floor(t[0])},_functionLength:function(t){return n(t[0])?Object.keys(t[0]).length:t[0].length},_functionMap:function(t){for(var e=[],n=this._interpreter,i=t[0],r=t[1],a=0;a0){if(this._getTypeName(t[0][0])===o)return Math.max.apply(Math,t[0]);for(var e=t[0],n=e[0],i=1;i0){if(this._getTypeName(t[0][0])===o)return Math.min.apply(Math,t[0]);for(var e=t[0],n=e[0],i=1;iu?1:os&&(s=n,e=r[l]);return e},_functionMinBy:function(t){for(var e,n,i=t[1],r=t[0],a=this.createKeyFunction(i,[o,u]),s=1/0,l=0;l=0&&(g=d-(b=Math.sqrt(f)/(2*Math.abs(c))),y=d+b,Math.abs(g)<=1&&m++,Math.abs(y)<=1&&m++,g<-1&&(g=y)),1===m?k<0?u=x+g:l=x+g:2===m&&(u=x+(p<0?y:g),l=x+(p<0?g:y)),!u||!l);x+=2)k=o;var C={};return u&&(C.rise=M(r,u)),l&&(C.set=M(r,l)),u||l||(C[p>0?"alwaysUp":"alwaysDown"]=!0),C},t.exports=w}()},function(t,e,n){var i=n(31)("reduce",n(42));i.placeholder=n(29),t.exports=i},function(t,e,n){var i=n(31)("pickBy",n(59));i.placeholder=n(29),t.exports=i},function(t,e,n){var i=n(172),r=n(1361),a=i((function(t){var e=t.length,n=e>1?t[e-1]:void 0;return n="function"==typeof n?(t.pop(),n):void 0,r(t,n)}));t.exports=a},function(t,e,n){var i=n(31)("filter",n(1533));i.placeholder=n(29),t.exports=i},function(t,e,n){var i=n(222),r=n(56),a=n(172),o=n(347),u=n(173),s=n(229),l=a((function(t){var e=s(t);return u(e)&&(e=void 0),o(i(t,1,u,!0),r(e,2))}));t.exports=l},function(t,e,n){var i=n(308),r=n(56),a=n(98),o=Math.max;t.exports=function(t,e,n){var u=null==t?0:t.length;if(!u)return-1;var s=null==n?0:a(n);return s<0&&(s=o(u+s,0)),i(t,r(e,3),s)}},function(t,e,n){"use strict";var i=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,r=function(t){var e={};return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}((function(t){return i.test(t)||111===t.charCodeAt(0)&&110===t.charCodeAt(1)&&t.charCodeAt(2)<91}));e.a=r},function(t,e,n){var i=n(70),r=n(509);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){var i=n(70),r=n(510);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e){t.exports=function(t){if(Array.isArray(t))return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n1&&B.reverse(),w&&b0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(530),r=n(531),a=n(201),o=n(534);t.exports=function(t,e,n){var u=e+"";return a(t,r(u,o(i(u),n)))}},function(t,e,n){var i=n(85),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(308),r=n(535),a=n(536);t.exports=function(t,e,n){return e==e?a(t,e,n):i(t,r,n)}},function(t,e){t.exports=function(t,e,n,i){for(var r=t.length,a=n+(i?1:-1);i?a--:++ac))return!1;var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var f=-1,m=!0,g=2&n?new i:void 0;for(s.set(t,e),s.set(e,t);++f0&&t.column>=0)||e||n||i)&&!(t&&"line"in t&&"column"in t&&e&&"line"in e&&"column"in e&&t.line>0&&t.column>=0&&e.line>0&&e.column>=0&&n))throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:e,name:i}))},u.prototype._serializeMappings=function(){for(var t,e,n,a,o=0,u=1,s=0,l=0,c=0,h=0,d="",p=this._mappings.toArray(),f=0,m=p.length;f0){if(!r.compareByGeneratedPositionsInflated(e,p[f-1]))continue;t+=","}t+=i.encode(e.generatedColumn-o),o=e.generatedColumn,null!=e.source&&(a=this._sources.indexOf(e.source),t+=i.encode(a-h),h=a,t+=i.encode(e.originalLine-1-l),l=e.originalLine-1,t+=i.encode(e.originalColumn-s),s=e.originalColumn,null!=e.name&&(n=this._names.indexOf(e.name),t+=i.encode(n-c),c=n)),d+=t}return d},u.prototype._generateSourcesContent=function(t,e){return t.map((function(t){if(!this._sourcesContents)return null;null!=e&&(t=r.relative(e,t));var n=r.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null}),this)},u.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(t.file=this._file),null!=this._sourceRoot&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t},u.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=u},function(t,e,n){var i=n(619);e.encode=function(t){var e,n="",r=function(t){return t<0?1+(-t<<1):0+(t<<1)}(t);do{e=31&r,(r>>>=5)>0&&(e|=32),n+=i.encode(e)}while(r>0);return n},e.decode=function(t,e,n){var r,a,o,u,s=t.length,l=0,c=0;do{if(e>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(-1===(a=i.decode(t.charCodeAt(e++))))throw new Error("Invalid base64 digit: "+t.charAt(e-1));r=!!(32&a),l+=(a&=31)<>1,1==(1&o)?-u:u),n.rest=e}},function(t,e,n){var i=n(125),r=Object.prototype.hasOwnProperty;function a(){this._array=[],this._set=Object.create(null)}a.fromArray=function(t,e){for(var n=new a,i=0,r=t.length;i=0&&tt.length)&&(e=t.length);for(var n=0,i=new Array(e);nr([3077398253,3995603712,2243735041,1261992695][t],2,e),p=t=>f(4,c,h,o,d,new i(t)),f=(t,e,n,i,r,a)=>{const o=m(t,e,n,r,a);return o.lt(i)?o:m(t,e,n,r,o)},m=(t,e,n,i,r)=>{const a=(r,o,u)=>{if(r>t)return t%2!=0||u.eq(e)?e.mul(u).add(o):e.mul(o).add(u);{const t=i(r-1,u),s=r%2!=0?o.add(t).mod(e):o.add(t).mod(n);return a(r+1,u,s)}},o=r.mod(e),u=r.div(e);return a(1,o,u)},g=t=>y(4,c,h,o,d,new i(t)),y=(t,e,n,i,r,a)=>{const o=b(t,e,n,r,a);return o.lt(i)?o:b(t,e,n,r,o)},b=(t,e,n,i,r)=>{const a=(t,r,o)=>{if(t<1)return e.mul(o).add(r);{const u=i(t-1,r),s=t%2!=0?o.add(e).sub(u.mod(e)).mod(e):o.add(n).sub(u.mod(n)).mod(n);return a(t-1,s,r)}},o=t%2!=0?r.div(e):r.mod(e),u=t%2!=0?r.mod(e):r.div(e),s=u.eq(e)?o:u,l=u.eq(e)?u:o;return a(t,s,l)};t.exports={F:d,fe:m,Fe:f,feis:p,fein:t=>{const e=t=>{const n=t.and(o),i=t.and(l);return t.gte(a)&&t.lte(o)?a.add(p(t.sub(a))):t.gte(u)&&t.lte(s)?i.or(e(n)):t};return e(new i(t))},fen:b,Fen:y,tail:g,fynd:t=>{const e=t=>{const n=t.and(o),i=t.and(l);return t.gte(a)&&t.lte(o)?a.add(g(t.sub(a))):t.gte(u)&&t.lte(s)?i.or(e(n)):t};return e(new i(t))}}},function(t,e,n){var i=n(88);t.exports=function(t){return"function"==typeof t?t:i}},function(t,e,n){var i=n(218),r=n(202),a=n(348),o=n(219),u=n(1210),s=n(220);t.exports=function(t,e,n){var l=-1,c=r,h=t.length,d=!0,p=[],f=p;if(n)d=!1,c=a;else if(h>=200){var m=e?null:u(t);if(m)return s(m);d=!1,c=o,f=new i}else f=e?[]:p;t:for(;++l2&&"0x"===t.substr(0,2)?t.substr(2).replace(".","").padStart(6,"0"):t.replace(".","").padStart(6,"0")}},function(t,e,n){var i=n(162),r=n(363),a=r?function(t,e){return r.set(t,e),t}:i;t.exports=a},function(t,e,n){var i=n(364),r=i&&new i;t.exports=r},function(t,e,n){var i=n(87)(n(41),"WeakMap");t.exports=i},function(t,e,n){var i=n(366),r=n(367),a=n(1244),o=n(163),u=n(368),s=n(377),l=n(1258),c=n(242),h=n(41);t.exports=function t(e,n,d,p,f,m,g,y,b,v){var w=128&n,k=1&n,x=2&n,C=24&n,S=512&n,L=x?void 0:o(e);return function M(){for(var T=arguments.length,B=Array(T),E=T;E--;)B[E]=arguments[E];if(C)var G=s(M),P=a(B,G);if(p&&(B=i(B,p,f,C)),m&&(B=r(B,m,g,C)),T-=P,C&&T1&&B.reverse(),w&&b0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e,n){var i=n(1249),r=n(1250),a=n(374),o=n(1253);t.exports=function(t,e,n){var u=e+"";return a(t,r(u,o(i(u),n)))}},function(t,e,n){var i=n(1251),r=n(372)(i);t.exports=r},function(t,e,n){var i=n(87),r=function(){try{var t=i(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=r},function(t,e,n){var i=n(1255),r=n(1256),a=n(1257);t.exports=function(t,e,n){return e==e?a(t,e,n):i(t,r,n)}},function(t,e){t.exports=function(t){return t.placeholder}},function(t,e,n){var i=n(168),r=n(128);t.exports=function(t,e){return t&&i(e,r(e),t)}},function(t,e,n){var i=n(380),r=n(158),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var o=t[e];a.call(t,e)&&r(o,n)&&(void 0!==n||e in t)||i(t,e,n)}},function(t,e,n){var i=n(375);t.exports=function(t,e,n){"__proto__"==e&&i?i(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e,n){var i=n(1265),r=n(244),a=n(32),o=n(245),u=n(167),s=n(382),l=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=a(t),c=!n&&r(t),h=!n&&!c&&o(t),d=!n&&!c&&!h&&s(t),p=n||c||h||d,f=p?i(t.length,String):[],m=f.length;for(var g in t)!e&&!l.call(t,g)||p&&("length"==g||h&&("offset"==g||"parent"==g)||d&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||u(g,m))||f.push(g);return f}},function(t,e,n){var i=n(1268),r=n(169),a=n(170),o=a&&a.isTypedArray,u=o?r(o):i;t.exports=u},function(t,e,n){var i=n(247),r=n(1269),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!i(t))return r(t);var e=[];for(var n in Object(t))a.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e){t.exports=function(t,e){return function(n){return t(e(n))}}},function(t,e,n){var i=n(248),r=n(166),a=n(379),o=n(378),u=n(1276),s=n(1279),l=n(165),c=n(1280),h=n(1282),d=n(388),p=n(1283),f=n(130),m=n(1287),g=n(1288),y=n(1293),b=n(32),v=n(245),w=n(1294),k=n(73),x=n(1296),C=n(128),S=n(249),L={};L["[object Arguments]"]=L["[object Array]"]=L["[object ArrayBuffer]"]=L["[object DataView]"]=L["[object Boolean]"]=L["[object Date]"]=L["[object Float32Array]"]=L["[object Float64Array]"]=L["[object Int8Array]"]=L["[object Int16Array]"]=L["[object Int32Array]"]=L["[object Map]"]=L["[object Number]"]=L["[object Object]"]=L["[object RegExp]"]=L["[object Set]"]=L["[object String]"]=L["[object Symbol]"]=L["[object Uint8Array]"]=L["[object Uint8ClampedArray]"]=L["[object Uint16Array]"]=L["[object Uint32Array]"]=!0,L["[object Error]"]=L["[object Function]"]=L["[object WeakMap]"]=!1,t.exports=function t(e,n,M,T,B,E){var G,P=1&n,D=2&n,j=4&n;if(M&&(G=B?M(e,T,B,E):M(e)),void 0!==G)return G;if(!k(e))return e;var N=b(e);if(N){if(G=m(e),!P)return l(e,G)}else{var A=f(e),Y="[object Function]"==A||"[object GeneratorFunction]"==A;if(v(e))return s(e,P);if("[object Object]"==A||"[object Arguments]"==A||Y&&!B){if(G=D||Y?{}:y(e),!P)return D?h(e,u(G,e)):c(e,o(G,e))}else{if(!L[A])return B?e:{};G=g(e,A,P)}}E||(E=new i);var _=E.get(e);if(_)return _;E.set(e,G),x(e)?e.forEach((function(i){G.add(t(i,n,M,i,e,E))})):w(e)&&e.forEach((function(i,r){G.set(r,t(i,n,M,r,e,E))}));var H=N?void 0:(j?D?p:d:D?S:C)(e);return r(H||e,(function(i,r){H&&(i=e[r=i]),a(G,r,t(i,n,M,r,e,E))})),G}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var i=n(251),r=n(252),a=n(250),o=n(386),u=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)i(e,a(t)),t=r(t);return e}:o;t.exports=u},function(t,e,n){var i=n(389),r=n(250),a=n(128);t.exports=function(t){return i(t,a,r)}},function(t,e,n){var i=n(251),r=n(32);t.exports=function(t,e,n){var a=e(t);return r(t)?a:i(a,n(t))}},function(t,e,n){var i=n(41).Uint8Array;t.exports=i},function(t,e,n){var i=n(1305),r=n(52);t.exports=function t(e,n,a,o,u){return e===n||(null==e||null==n||!r(e)&&!r(n)?e!=e&&n!=n:i(e,n,a,o,t,u))}},function(t,e,n){var i=n(1306),r=n(1309),a=n(1310);t.exports=function(t,e,n,o,u,s){var l=1&n,c=t.length,h=e.length;if(c!=h&&!(l&&h>c))return!1;var d=s.get(t),p=s.get(e);if(d&&p)return d==e&&p==t;var f=-1,m=!0,g=2&n?new i:void 0;for(s.set(t,e),s.set(e,t);++f=r?t:i(t,e,n)}},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var i=n(1341),r=n(399),a=n(1342);t.exports=function(t){return r(t)?a(t):i(t)}},function(t,e){},function(t,e,n){"use strict";var i=n(403);n.d(e,"createPost",(function(){return i.a}));var r=n(404);n.o(r,"deSig")&&n.d(e,"deSig",(function(){return r.deSig})),n.o(r,"joinProgress")&&n.d(e,"joinProgress",(function(){return r.joinProgress})),n.o(r,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return r.resourceAsPath})),n.o(r,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return r.resourceFromPath})),n.o(r,"uxToHex")&&n.d(e,"uxToHex",(function(){return r.uxToHex}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n(478),n(46);var i=n(54),r=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"DATE_PLACEHOLDER";return"DATE_PLACEHOLDER"===r&&(r=Object(i.unixToDa)(Date.now()).toString()),{author:"~".concat(t),index:n+"/"+r,"time-sent":Date.now(),contents:e,hash:null,signatures:[]}}},function(t,e){},function(t,e,n){"use strict";var i=n(406);n.o(i,"createPost")&&n.d(e,"createPost",(function(){return i.createPost})),n.o(i,"deSig")&&n.d(e,"deSig",(function(){return i.deSig})),n.o(i,"joinProgress")&&n.d(e,"joinProgress",(function(){return i.joinProgress})),n.o(i,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return i.resourceAsPath})),n.o(i,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return i.resourceFromPath})),n.o(i,"uxToHex")&&n.d(e,"uxToHex",(function(){return i.uxToHex}));n(407)},function(t,e){},function(t,e,n){"use strict";n(66),n(479),n(480),n(137),n(96),n(47),n(54)},function(t,e,n){"use strict";var i=n(409);n.o(i,"createPost")&&n.d(e,"createPost",(function(){return i.createPost})),n.o(i,"deSig")&&n.d(e,"deSig",(function(){return i.deSig})),n.o(i,"joinProgress")&&n.d(e,"joinProgress",(function(){return i.joinProgress})),n.o(i,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return i.resourceAsPath})),n.o(i,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return i.resourceFromPath})),n.o(i,"uxToHex")&&n.d(e,"uxToHex",(function(){return i.uxToHex}));n(410)},function(t,e){},function(t,e,n){"use strict"},function(t,e,n){"use strict";var i=n(412);n.o(i,"createPost")&&n.d(e,"createPost",(function(){return i.createPost})),n.o(i,"deSig")&&n.d(e,"deSig",(function(){return i.deSig})),n.o(i,"joinProgress")&&n.d(e,"joinProgress",(function(){return i.joinProgress})),n.o(i,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return i.resourceAsPath})),n.o(i,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return i.resourceFromPath})),n.o(i,"uxToHex")&&n.d(e,"uxToHex",(function(){return i.uxToHex}));n(413)},function(t,e){},function(t,e,n){"use strict";n(66),n(54)},function(t,e,n){"use strict";var i=n(171);n.o(i,"createPost")&&n.d(e,"createPost",(function(){return i.createPost})),n.o(i,"deSig")&&n.d(e,"deSig",(function(){return i.deSig})),n.o(i,"joinProgress")&&n.d(e,"joinProgress",(function(){return i.joinProgress})),n.o(i,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return i.resourceAsPath})),n.o(i,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return i.resourceFromPath})),n.o(i,"uxToHex")&&n.d(e,"uxToHex",(function(){return i.uxToHex}));var r=n(415);n.o(r,"createPost")&&n.d(e,"createPost",(function(){return r.createPost})),n.o(r,"deSig")&&n.d(e,"deSig",(function(){return r.deSig})),n.o(r,"joinProgress")&&n.d(e,"joinProgress",(function(){return r.joinProgress})),n.o(r,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return r.resourceAsPath})),n.o(r,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return r.resourceFromPath})),n.o(r,"uxToHex")&&n.d(e,"uxToHex",(function(){return r.uxToHex}))},function(t,e,n){"use strict";var i=n(171);n.o(i,"createPost")&&n.d(e,"createPost",(function(){return i.createPost})),n.o(i,"deSig")&&n.d(e,"deSig",(function(){return i.deSig})),n.o(i,"joinProgress")&&n.d(e,"joinProgress",(function(){return i.joinProgress})),n.o(i,"resourceAsPath")&&n.d(e,"resourceAsPath",(function(){return i.resourceAsPath})),n.o(i,"resourceFromPath")&&n.d(e,"resourceFromPath",(function(){return i.resourceFromPath})),n.o(i,"uxToHex")&&n.d(e,"uxToHex",(function(){return i.uxToHex}))},function(t,e,n){(function(t){function n(t,e){for(var n=0,i=t.length-1;i>=0;i--){var r=t[i];"."===r?t.splice(i,1):".."===r?(t.splice(i,1),n++):n&&(t.splice(i,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function i(t,e){if(t.filter)return t.filter(e);for(var n=[],i=0;i=-1&&!r;a--){var o=a>=0?arguments[a]:t.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(e=o+"/"+e,r="/"===o.charAt(0))}return(r?"/":"")+(e=n(i(e.split("/"),(function(t){return!!t})),!r).join("/"))||"."},e.normalize=function(t){var a=e.isAbsolute(t),o="/"===r(t,-1);return(t=n(i(t.split("/"),(function(t){return!!t})),!a).join("/"))||a||(t="."),t&&o&&(t+="/"),(a?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,n){function i(t){for(var e=0;e=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var r=i(t.split("/")),a=i(n.split("/")),o=Math.min(r.length,a.length),u=o,s=0;s=1;--a)if(47===(e=t.charCodeAt(a))){if(!r){i=a;break}}else r=!1;return-1===i?n?"/":".":n&&1===i?"/":t.slice(0,i)},e.basename=function(t,e){var n=function(t){"string"!=typeof t&&(t+="");var e,n=0,i=-1,r=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!r){n=e+1;break}}else-1===i&&(r=!1,i=e+1);return-1===i?"":t.slice(n,i)}(t);return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){"string"!=typeof t&&(t+="");for(var e=-1,n=0,i=-1,r=!0,a=0,o=t.length-1;o>=0;--o){var u=t.charCodeAt(o);if(47!==u)-1===i&&(r=!1,i=o+1),46===u?-1===e?e=o:1!==a&&(a=1):-1!==e&&(a=-1);else if(!r){n=o+1;break}}return-1===e||-1===i||0===a||1===a&&e===i-1&&e===n+1?"":t.slice(e,i)};var r="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(this,n(50))},function(t,e,n){"use strict";t.exports=function(t){var e="string"==typeof t?t.charCodeAt(0):t;return e>=97&&e<=122||e>=65&&e<=90}},function(t,e,n){"use strict";t.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(1403)}},function(t,e,n){"use strict";t.exports=function(t){var e,n=0,r=0,a=t.charAt(n),o={};for(;a in i;)r+=e=i[a],e>1&&(r=Math.floor(r/e)*e),o[r]=n,a=t.charAt(++n);return{indent:r,stops:o}};var i={" ":1,"\t":4}},function(t,e,n){"use strict";var i="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",r="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";e.openCloseTag=new RegExp("^(?:"+i+"|"+r+")"),e.tag=new RegExp("^(?:"+i+"|"+r+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|]*>|)")},function(t,e,n){"use strict";t.exports=function(t,e){return t.indexOf("<",e)}},function(t,e,n){"use strict";t.exports=function(t,e){var n=t.indexOf("[",e),i=t.indexOf("![",e);if(-1===i)return n;return n` "'(~:]+/,p=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,f=/^\s*\[[^\]]+?\]:.*$/,m=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/;function g(t,e,n){return e.f=e.inline=n,n(t,e)}function y(t,e,n){return e.f=e.block=n,n(t,e)}function b(e){if(e.linkTitle=!1,e.linkHref=!1,e.linkText=!1,e.em=!1,e.strong=!1,e.strikethrough=!1,e.quote=0,e.indentedCode=!1,e.f==w){var n=r;if(!n){var a=t.innerMode(i,e.htmlState);n="xml"==a.mode.name&&null===a.state.tagStart&&!a.state.context&&a.state.tokenize.isInText}n&&(e.f=S,e.block=v,e.htmlState=null)}return e.trailingSpace=0,e.trailingSpaceNewLine=!1,e.prevLine=e.thisLine,e.thisLine={stream:null},null}function v(i,r){var o,d=i.column()===r.indentation,m=!(o=r.prevLine.stream)||!/\S/.test(o.string),y=r.indentedCode,b=r.prevLine.hr,v=!1!==r.list,w=(r.listStack[r.listStack.length-1]||0)+3;r.indentedCode=!1;var C=r.indentation;if(null===r.indentationDiff&&(r.indentationDiff=r.indentation,v)){for(r.list=null;C=4&&(y||r.prevLine.fencedCodeEnd||r.prevLine.header||m))return i.skipToEnd(),r.indentedCode=!0,a.code;if(i.eatSpace())return null;if(d&&r.indentation<=w&&(M=i.match(c))&&M[1].length<=6)return r.quote=0,r.header=M[1].length,r.thisLine.header=!0,n.highlightFormatting&&(r.formatting="header"),r.f=r.inline,x(r);if(r.indentation<=w&&i.eat(">"))return r.quote=d?1:r.quote+1,n.highlightFormatting&&(r.formatting="quote"),i.eatSpace(),x(r);if(!L&&!r.setext&&d&&r.indentation<=w&&(M=i.match(s))){var T=M[1]?"ol":"ul";return r.indentation=C+i.current().length,r.list=!0,r.quote=0,r.listStack.push(r.indentation),r.em=!1,r.strong=!1,r.code=!1,r.strikethrough=!1,n.taskLists&&i.match(l,!1)&&(r.taskList=!0),r.f=r.inline,n.highlightFormatting&&(r.formatting=["list","list-"+T]),x(r)}return d&&r.indentation<=w&&(M=i.match(p,!0))?(r.quote=0,r.fencedEndRE=new RegExp(M[1]+"+ *$"),r.localMode=n.fencedCodeBlockHighlighting&&function(n){if(t.findModeByName){var i=t.findModeByName(n);i&&(n=i.mime||i.mimes[0])}var r=t.getMode(e,n);return"null"==r.name?null:r}(M[2]||n.fencedCodeBlockDefaultMode),r.localMode&&(r.localState=t.startState(r.localMode)),r.f=r.block=k,n.highlightFormatting&&(r.formatting="code-block"),r.code=-1,x(r)):r.setext||!(S&&v||r.quote||!1!==r.list||r.code||L||f.test(i.string))&&(M=i.lookAhead(1))&&(M=M.match(h))?(r.setext?(r.header=r.setext,r.setext=0,i.skipToEnd(),n.highlightFormatting&&(r.formatting="header")):(r.header="="==M[0].charAt(0)?1:2,r.setext=r.header),r.thisLine.header=!0,r.f=r.inline,x(r)):L?(i.skipToEnd(),r.hr=!0,r.thisLine.hr=!0,a.hr):"["===i.peek()?g(i,r,B):g(i,r,r.inline)}function w(e,n){var a=i.token(e,n.htmlState);if(!r){var o=t.innerMode(i,n.htmlState);("xml"==o.mode.name&&null===o.state.tagStart&&!o.state.context&&o.state.tokenize.isInText||n.md_inside&&e.current().indexOf(">")>-1)&&(n.f=S,n.block=v,n.htmlState=null)}return a}function k(t,e){var i,r=e.listStack[e.listStack.length-1]||0,o=e.indentation=t.quote?e.push(a.formatting+"-"+t.formatting[i]+"-"+t.quote):e.push("error"))}if(t.taskOpen)return e.push("meta"),e.length?e.join(" "):null;if(t.taskClosed)return e.push("property"),e.length?e.join(" "):null;if(t.linkHref?e.push(a.linkHref,"url"):(t.strong&&e.push(a.strong),t.em&&e.push(a.em),t.strikethrough&&e.push(a.strikethrough),t.emoji&&e.push(a.emoji),t.linkText&&e.push(a.linkText),t.code&&e.push(a.code),t.image&&e.push(a.image),t.imageAltText&&e.push(a.imageAltText,"link"),t.imageMarker&&e.push(a.imageMarker)),t.header&&e.push(a.header,a.header+"-"+t.header),t.quote&&(e.push(a.quote),!n.maxBlockquoteDepth||n.maxBlockquoteDepth>=t.quote?e.push(a.quote+"-"+t.quote):e.push(a.quote+"-"+n.maxBlockquoteDepth)),!1!==t.list){var r=(t.listStack.length-1)%3;r?1===r?e.push(a.list2):e.push(a.list3):e.push(a.list1)}return t.trailingSpaceNewLine?e.push("trailing-space-new-line"):t.trailingSpace&&e.push("trailing-space-"+(t.trailingSpace%2?"a":"b")),e.length?e.join(" "):null}function C(t,e){if(t.match(d,!0))return x(e)}function S(e,r){var o=r.text(e,r);if(void 0!==o)return o;if(r.list)return r.list=null,x(r);if(r.taskList)return" "===e.match(l,!0)[1]?r.taskOpen=!0:r.taskClosed=!0,n.highlightFormatting&&(r.formatting="task"),r.taskList=!1,x(r);if(r.taskOpen=!1,r.taskClosed=!1,r.header&&e.match(/^#+$/,!0))return n.highlightFormatting&&(r.formatting="header"),x(r);var u=e.next();if(r.linkTitle){r.linkTitle=!1;var s=u;"("===u&&(s=")");var c="^\\s*(?:[^"+(s=(s+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1"))+"\\\\]+|\\\\\\\\|\\\\.)"+s;if(e.match(new RegExp(c),!0))return a.linkHref}if("`"===u){var h=r.formatting;n.highlightFormatting&&(r.formatting="code"),e.eatWhile("`");var d=e.current().length;if(0!=r.code||r.quote&&1!=d){if(d==r.code){var p=x(r);return r.code=0,p}return r.formatting=h,x(r)}return r.code=d,x(r)}if(r.code)return x(r);if("\\"===u&&(e.next(),n.highlightFormatting)){var f=x(r),g=a.formatting+"-escape";return f?f+" "+g:g}if("!"===u&&e.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return r.imageMarker=!0,r.image=!0,n.highlightFormatting&&(r.formatting="image"),x(r);if("["===u&&r.imageMarker&&e.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return r.imageMarker=!1,r.imageAltText=!0,n.highlightFormatting&&(r.formatting="image"),x(r);if("]"===u&&r.imageAltText){n.highlightFormatting&&(r.formatting="image");var f=x(r);return r.imageAltText=!1,r.image=!1,r.inline=r.f=M,f}if("["===u&&!r.image)return r.linkText&&e.match(/^.*?\]/)||(r.linkText=!0,n.highlightFormatting&&(r.formatting="link")),x(r);if("]"===u&&r.linkText){n.highlightFormatting&&(r.formatting="link");var f=x(r);return r.linkText=!1,r.inline=r.f=e.match(/\(.*?\)| ?\[.*?\]/,!1)?M:S,f}if("<"===u&&e.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=L,n.highlightFormatting&&(r.formatting="link"),(f=x(r))?f+=" ":f="",f+a.linkInline;if("<"===u&&e.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1))return r.f=r.inline=L,n.highlightFormatting&&(r.formatting="link"),(f=x(r))?f+=" ":f="",f+a.linkEmail;if(n.xml&&"<"===u&&e.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var b=e.string.indexOf(">",e.pos);if(-1!=b){var v=e.string.substring(e.start,b);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(v)&&(r.md_inside=!0)}return e.backUp(1),r.htmlState=t.startState(i),y(e,r,w)}if(n.xml&&"<"===u&&e.match(/^\/\w*?>/))return r.md_inside=!1,"tag";if("*"===u||"_"===u){for(var k=1,C=1==e.pos?" ":e.string.charAt(e.pos-2);k<3&&e.eat(u);)k++;var T=e.peek()||" ",B=!/\s/.test(T)&&(!m.test(T)||/\s/.test(C)||m.test(C)),E=!/\s/.test(C)&&(!m.test(C)||/\s/.test(T)||m.test(T)),G=null,P=null;if(k%2&&(r.em||!B||"*"!==u&&E&&!m.test(C)?r.em!=u||!E||"*"!==u&&B&&!m.test(T)||(G=!1):G=!0),k>1&&(r.strong||!B||"*"!==u&&E&&!m.test(C)?r.strong!=u||!E||"*"!==u&&B&&!m.test(T)||(P=!1):P=!0),null!=P||null!=G)return n.highlightFormatting&&(r.formatting=null==G?"strong":null==P?"em":"strong em"),!0===G&&(r.em=u),!0===P&&(r.strong=u),p=x(r),!1===G&&(r.em=!1),!1===P&&(r.strong=!1),p}else if(" "===u&&(e.eat("*")||e.eat("_"))){if(" "===e.peek())return x(r);e.backUp(1)}if(n.strikethrough)if("~"===u&&e.eatWhile(u)){if(r.strikethrough)return n.highlightFormatting&&(r.formatting="strikethrough"),p=x(r),r.strikethrough=!1,p;if(e.match(/^[^\s]/,!1))return r.strikethrough=!0,n.highlightFormatting&&(r.formatting="strikethrough"),x(r)}else if(" "===u&&e.match("~~",!0)){if(" "===e.peek())return x(r);e.backUp(2)}if(n.emoji&&":"===u&&e.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){r.emoji=!0,n.highlightFormatting&&(r.formatting="emoji");var D=x(r);return r.emoji=!1,D}return" "===u&&(e.match(/^ +$/,!1)?r.trailingSpace++:r.trailingSpace&&(r.trailingSpaceNewLine=!0)),x(r)}function L(t,e){if(">"===t.next()){e.f=e.inline=S,n.highlightFormatting&&(e.formatting="link");var i=x(e);return i?i+=" ":i="",i+a.linkInline}return t.match(/^[^>]+/,!0),a.linkInline}function M(t,e){if(t.eatSpace())return null;var i,r=t.next();return"("===r||"["===r?(e.f=e.inline=(i="("===r?")":"]",function(t,e){if(t.next()===i){e.f=e.inline=S,n.highlightFormatting&&(e.formatting="link-string");var r=x(e);return e.linkHref=!1,r}return t.match(T[i]),e.linkHref=!0,x(e)}),n.highlightFormatting&&(e.formatting="link-string"),e.linkHref=!0,x(e)):"error"}var T={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function B(t,e){return t.match(/^([^\]\\]|\\.)*\]:/,!1)?(e.f=E,t.next(),n.highlightFormatting&&(e.formatting="link"),e.linkText=!0,x(e)):g(t,e,S)}function E(t,e){if(t.match("]:",!0)){e.f=e.inline=G,n.highlightFormatting&&(e.formatting="link");var i=x(e);return e.linkText=!1,i}return t.match(/^([^\]\\]|\\.)+/,!0),a.linkText}function G(t,e){return t.eatSpace()?null:(t.match(/^[^\s]+/,!0),void 0===t.peek()?e.linkTitle=!0:t.match(/^(?:\s+(?:"(?:[^"\\]|\\.)+"|'(?:[^'\\]|\\.)+'|\((?:[^)\\]|\\.)+\)))?/,!0),e.f=e.inline=S,a.linkHref+" url")}var P={startState:function(){return{f:v,prevLine:{stream:null},thisLine:{stream:null},block:v,htmlState:null,indentation:0,inline:S,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(e){return{f:e.f,prevLine:e.prevLine,thisLine:e.thisLine,block:e.block,htmlState:e.htmlState&&t.copyState(i,e.htmlState),indentation:e.indentation,localMode:e.localMode,localState:e.localMode?t.copyState(e.localMode,e.localState):null,inline:e.inline,text:e.text,formatting:!1,linkText:e.linkText,linkTitle:e.linkTitle,linkHref:e.linkHref,code:e.code,em:e.em,strong:e.strong,strikethrough:e.strikethrough,emoji:e.emoji,header:e.header,setext:e.setext,hr:e.hr,taskList:e.taskList,list:e.list,listStack:e.listStack.slice(0),quote:e.quote,indentedCode:e.indentedCode,trailingSpace:e.trailingSpace,trailingSpaceNewLine:e.trailingSpaceNewLine,md_inside:e.md_inside,fencedEndRE:e.fencedEndRE}},token:function(t,e){if(e.formatting=!1,t!=e.thisLine.stream){if(e.header=0,e.hr=!1,t.match(/^\s*$/,!0))return b(e),null;if(e.prevLine=e.thisLine,e.thisLine={stream:t},e.taskList=!1,e.trailingSpace=0,e.trailingSpaceNewLine=!1,!e.localState&&(e.f=e.block,e.f!=w)){var n=t.match(/^\s*/,!0)[0].replace(/\t/g," ").length;if(e.indentation=n,e.indentationDiff=null,n>0)return null}}return e.f(t,e)},innerMode:function(t){return t.block==w?{state:t.htmlState,mode:i}:t.localState?{state:t.localState,mode:t.localMode}:{state:t,mode:P}},indent:function(e,n,r){return e.block==w&&i.indent?i.indent(e.htmlState,n,r):e.localState&&e.localMode.indent?e.localMode.indent(e.localState,n,r):t.Pass},blankLine:b,getType:x,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return P}),"xml"),t.defineMIME("text/markdown","markdown"),t.defineMIME("text/x-markdown","markdown")}(n(80),n(1454),n(1455))},function(t,e,n){!function(t){function e(t){t.state.placeholder&&(t.state.placeholder.parentNode.removeChild(t.state.placeholder),t.state.placeholder=null)}function n(t){e(t);var n=t.state.placeholder=document.createElement("pre");n.style.cssText="height: 0; overflow: visible",n.style.direction=t.getOption("direction"),n.className="CodeMirror-placeholder CodeMirror-line-like";var i=t.getOption("placeholder");"string"==typeof i&&(i=document.createTextNode(i)),n.appendChild(i),t.display.lineSpace.insertBefore(n,t.display.lineSpace.firstChild)}function i(t){a(t)&&n(t)}function r(t){var i=t.getWrapperElement(),r=a(t);i.className=i.className.replace(" CodeMirror-empty","")+(r?" CodeMirror-empty":""),r?n(t):e(t)}function a(t){return 1===t.lineCount()&&""===t.getLine(0)}t.defineOption("placeholder","",(function(a,o,u){var s=u&&u!=t.Init;if(o&&!s)a.on("blur",i),a.on("change",r),a.on("swapDoc",r),t.on(a.getInputField(),"compositionupdate",a.state.placeholderCompose=function(){!function(t){setTimeout((function(){var i=!1;if(1==t.lineCount()){var r=t.getInputField();i="TEXTAREA"==r.nodeName?!t.getLine(0).length:!/[^\u200b]/.test(r.querySelector(".CodeMirror-line").textContent)}i?n(t):e(t)}),20)}(a)}),r(a);else if(!o&&s){a.off("blur",i),a.off("change",r),a.off("swapDoc",r),t.off(a.getInputField(),"compositionupdate",a.state.placeholderCompose),e(a);var l=a.getWrapperElement();l.className=l.className.replace(" CodeMirror-empty","")}o&&!a.hasFocus()&&i(a)}))}(n(80))},function(t,e,n){var i=n(70),r=n(1457);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e,n){var i=n(18),r=n(24),a=n(1460),o=n(131),u=n(265).populateHostPrefix;t.exports={buildRequest:function(t){var e=t.service.api.operations[t.operation],n=t.httpRequest;n.headers["Content-Type"]="application/x-www-form-urlencoded; charset=utf-8",n.params={Version:t.service.api.apiVersion,Action:e.name},(new a).serialize(t.params,e.input,(function(t,e){n.params[t]=e})),n.body=r.queryParamsToString(n.params),u(t)},extractError:function(t){var e,n=t.httpResponse.body.toString();if(n.match("0){var h=(e=new i.XML.Parser).parse(o.toString(),s);r.update(t.data,h)}}}},function(t,e,n){var i=n(427),r=n(431),a=n(131),o=n(432),u=n(433),s=n(434),l=n(24),c=l.property,h=l.memoizedProperty;t.exports=function(t,e){var n=this;t=t||{},(e=e||{}).api=this,t.metadata=t.metadata||{};var d=e.serviceIdentifier;delete e.serviceIdentifier,c(this,"isApi",!0,!1),c(this,"apiVersion",t.metadata.apiVersion),c(this,"endpointPrefix",t.metadata.endpointPrefix),c(this,"signingName",t.metadata.signingName),c(this,"globalEndpoint",t.metadata.globalEndpoint),c(this,"signatureVersion",t.metadata.signatureVersion),c(this,"jsonVersion",t.metadata.jsonVersion),c(this,"targetPrefix",t.metadata.targetPrefix),c(this,"protocol",t.metadata.protocol),c(this,"timestampFormat",t.metadata.timestampFormat),c(this,"xmlNamespaceUri",t.metadata.xmlNamespace),c(this,"abbreviation",t.metadata.serviceAbbreviation),c(this,"fullName",t.metadata.serviceFullName),c(this,"serviceId",t.metadata.serviceId),d&&s[d]&&c(this,"xmlNoDefaultLists",s[d].xmlNoDefaultLists,!1),h(this,"className",(function(){var e=t.metadata.serviceAbbreviation||t.metadata.serviceFullName;return e?("ElasticLoadBalancing"===(e=e.replace(/^Amazon|AWS\s*|\(.*|\s+|\W+/g,""))&&(e="ELB"),e):null})),c(this,"operations",new i(t.operations,e,(function(t,n){return new r(t,n,e)}),l.string.lowerFirst,(function(t,e){!0===e.endpointoperation&&c(n,"endpointOperation",l.string.lowerFirst(t)),e.endpointdiscovery&&!n.hasRequiredEndpointDiscovery&&c(n,"hasRequiredEndpointDiscovery",!0===e.endpointdiscovery.required)}))),c(this,"shapes",new i(t.shapes,e,(function(t,n){return a.create(n,e)}))),c(this,"paginators",new i(t.paginators,e,(function(t,n){return new o(t,n,e)}))),c(this,"waiters",new i(t.waiters,e,(function(t,n){return new u(t,n,e)}),l.string.lowerFirst)),e.documentation&&(c(this,"documentation",t.documentation),c(this,"documentationUrl",t.documentationUrl))}},function(t,e,n){var i=n(131),r=n(24),a=r.property,o=r.memoizedProperty;t.exports=function(t,e,n){var r=this;n=n||{},a(this,"name",e.name||t),a(this,"api",n.api,!1),e.http=e.http||{},a(this,"endpoint",e.endpoint),a(this,"httpMethod",e.http.method||"POST"),a(this,"httpPath",e.http.requestUri||"/"),a(this,"authtype",e.authtype||""),a(this,"endpointDiscoveryRequired",e.endpointdiscovery?e.endpointdiscovery.required?"REQUIRED":"OPTIONAL":"NULL"),o(this,"input",(function(){return e.input?i.create(e.input,n):new i.create({type:"structure"},n)})),o(this,"output",(function(){return e.output?i.create(e.output,n):new i.create({type:"structure"},n)})),o(this,"errors",(function(){var t=[];if(!e.errors)return null;for(var r=0;r-1&&n.splice(r,1)}return this},removeAllListeners:function(t){return t?delete this._events[t]:this._events={},this},emit:function(t,e,n){n||(n=function(){});var i=this.listeners(t),r=i.length;return this.callListeners(i,e,n),r>0},callListeners:function(t,e,n,r){var a=this,o=r||null;function u(r){if(r&&(o=i.util.error(o||new Error,r),a._haltHandlersOnError))return n.call(a,o);a.callListeners(t,e,n,o)}for(;t.length>0;){var s=t.shift();if(s._isAsync)return void s.apply(a,e.concat([u]));try{s.apply(a,e)}catch(t){o=i.util.error(o||new Error,t)}if(o&&a._haltHandlersOnError)return void n.call(a,o)}n.call(a,o)},addListeners:function(t){var e=this;return t._events&&(t=t._events),i.util.each(t,(function(t,n){"function"==typeof n&&(n=[n]),i.util.arrayEach(n,(function(n){e.on(t,n)}))})),e},addNamedListener:function(t,e,n,i){return this[t]=n,this.addListener(e,n,i),this},addNamedAsyncListener:function(t,e,n,i){return n._isAsync=!0,this.addNamedListener(t,e,n,i)},addNamedListeners:function(t){var e=this;return t((function(){e.addNamedListener.apply(e,arguments)}),(function(){e.addNamedAsyncListener.apply(e,arguments)})),this}}),i.SequentialExecutor.prototype.addListener=i.SequentialExecutor.prototype.on,t.exports=i.SequentialExecutor},function(t,e,n){var i=n(18);i.Credentials=i.util.inherit({constructor:function(){if(i.util.hideProperties(this,["secretAccessKey"]),this.expired=!1,this.expireTime=null,this.refreshCallbacks=[],1===arguments.length&&"object"==typeof arguments[0]){var t=arguments[0].credentials||arguments[0];this.accessKeyId=t.accessKeyId,this.secretAccessKey=t.secretAccessKey,this.sessionToken=t.sessionToken}else this.accessKeyId=arguments[0],this.secretAccessKey=arguments[1],this.sessionToken=arguments[2]},expiryWindow:15,needsRefresh:function(){var t=i.util.date.getDate().getTime(),e=new Date(t+1e3*this.expiryWindow);return!!(this.expireTime&&e>this.expireTime)||(this.expired||!this.accessKeyId||!this.secretAccessKey)},get:function(t){var e=this;this.needsRefresh()?this.refresh((function(n){n||(e.expired=!1),t&&t(n)})):t&&t()},refresh:function(t){this.expired=!1,t()},coalesceRefresh:function(t,e){var n=this;1===n.refreshCallbacks.push(t)&&n.load((function(t){i.util.arrayEach(n.refreshCallbacks,(function(n){e?n(t):i.util.defer((function(){n(t)}))})),n.refreshCallbacks.length=0}))},load:function(t){t()}}),i.Credentials.addPromisesToClass=function(t){this.prototype.getPromise=i.util.promisifyMethod("get",t),this.prototype.refreshPromise=i.util.promisifyMethod("refresh",t)},i.Credentials.deletePromisesFromClass=function(){delete this.prototype.getPromise,delete this.prototype.refreshPromise},i.util.addPromises(i.Credentials)},function(t,e,n){var i=n(18);i.CredentialProviderChain=i.util.inherit(i.Credentials,{constructor:function(t){this.providers=t||i.CredentialProviderChain.defaultProviders.slice(0),this.resolveCallbacks=[]},resolve:function(t){var e=this;if(0===e.providers.length)return t(new Error("No providers")),e;if(1===e.resolveCallbacks.push(t)){var n=0,r=e.providers.slice(0);!function t(a,o){if(!a&&o||n===r.length)return i.util.arrayEach(e.resolveCallbacks,(function(t){t(a,o)})),void(e.resolveCallbacks.length=0);var u=r[n++];(o="function"==typeof u?u.call():u).get?o.get((function(e){t(e,e?null:o)})):t(null,o)}()}return e}}),i.CredentialProviderChain.defaultProviders=[],i.CredentialProviderChain.addPromisesToClass=function(t){this.prototype.resolvePromise=i.util.promisifyMethod("resolve",t)},i.CredentialProviderChain.deletePromisesFromClass=function(){delete this.prototype.resolvePromise},i.util.addPromises(i.CredentialProviderChain)},function(t,e,n){var i=n(18),r=i.util.inherit;i.Endpoint=r({constructor:function(t,e){if(i.util.hideProperties(this,["slashes","auth","hash","search","query"]),null==t)throw new Error("Invalid endpoint: "+t);if("string"!=typeof t)return i.util.copy(t);t.match(/^http/)||(t=((e&&void 0!==e.sslEnabled?e.sslEnabled:i.config.sslEnabled)?"https":"http")+"://"+t);i.util.update(this,i.util.urlParse(t)),this.port?this.port=parseInt(this.port,10):this.port="https:"===this.protocol?443:80}}),i.HttpRequest=r({constructor:function(t,e){t=new i.Endpoint(t),this.method="POST",this.path=t.path||"/",this.headers={},this.body="",this.endpoint=t,this.region=e,this._userAgent="",this.setUserAgent()},setUserAgent:function(){this._userAgent=this.headers[this.getUserAgentHeaderName()]=i.util.userAgent()},getUserAgentHeaderName:function(){return(i.util.isBrowser()?"X-Amz-":"")+"User-Agent"},appendToUserAgent:function(t){"string"==typeof t&&t&&(this._userAgent+=" "+t),this.headers[this.getUserAgentHeaderName()]=this._userAgent},getUserAgent:function(){return this._userAgent},pathname:function(){return this.path.split("?",1)[0]},search:function(){var t=this.path.split("?",2)[1];return t?(t=i.util.queryStringParse(t),i.util.queryParamsToString(t)):""},updateEndpoint:function(t){var e=new i.Endpoint(t);this.endpoint=e,this.path=e.path||"/",this.headers.Host&&(this.headers.Host=e.host)}}),i.HttpResponse=r({constructor:function(){this.statusCode=void 0,this.headers={},this.body=void 0,this.streaming=!1,this.stream=null},createUnbufferedStream:function(){return this.streaming=!0,this.stream}}),i.HttpClient=r({}),i.HttpClient.getInstance=function(){return void 0===this.singleton&&(this.singleton=new this),this.singleton}},function(t,e,n){var i=n(18),r=i.util.inherit;i.Signers.V3=r(i.Signers.RequestSigner,{addAuthorization:function(t,e){var n=i.util.date.rfc822(e);this.request.headers["X-Amz-Date"]=n,t.sessionToken&&(this.request.headers["x-amz-security-token"]=t.sessionToken),this.request.headers["X-Amzn-Authorization"]=this.authorization(t,n)},authorization:function(t){return"AWS3 AWSAccessKeyId="+t.accessKeyId+",Algorithm=HmacSHA256,SignedHeaders="+this.signedHeaders()+",Signature="+this.signature(t)},signedHeaders:function(){var t=[];return i.util.arrayEach(this.headersToSign(),(function(e){t.push(e.toLowerCase())})),t.sort().join(";")},canonicalHeaders:function(){var t=this.request.headers,e=[];return i.util.arrayEach(this.headersToSign(),(function(n){e.push(n.toLowerCase().trim()+":"+String(t[n]).trim())})),e.sort().join("\n")+"\n"},headersToSign:function(){var t=[];return i.util.each(this.request.headers,(function(e){("Host"===e||"Content-Encoding"===e||e.match(/^X-Amz/i))&&t.push(e)})),t},signature:function(t){return i.util.crypto.hmac(t.secretAccessKey,this.stringToSign(),"base64")},stringToSign:function(){var t=[];return t.push(this.request.method),t.push("/"),t.push(""),t.push(this.canonicalHeaders()),t.push(this.request.body),i.util.crypto.sha256(t.join("\n"))}}),t.exports=i.Signers.V3},function(t,e,n){var i=n(18),r={},a=[],o="aws4_request";t.exports={createScope:function(t,e,n){return[t.substr(0,8),e,n,o].join("/")},getSigningKey:function(t,e,n,u,s){var l=[i.util.crypto.hmac(t.secretAccessKey,t.accessKeyId,"base64"),e,n,u].join("_");if((s=!1!==s)&&l in r)return r[l];var c=i.util.crypto.hmac("AWS4"+t.secretAccessKey,e,"buffer"),h=i.util.crypto.hmac(c,n,"buffer"),d=i.util.crypto.hmac(h,u,"buffer"),p=i.util.crypto.hmac(d,o,"buffer");return s&&(r[l]=p,a.push(l),a.length>50&&delete r[a.shift()]),p},emptyCache:function(){r={},a=[]}}},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);t.exports=function(){return n(i),i}}else{var r=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},function(t,e){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);t.exports=function(t,e){var i=e||0,r=n;return[r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],"-",r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]],r[t[i++]]].join("")}},function(t,e,n){(function(e){var i=n(18);function r(t,e){if("string"==typeof t){if(["legacy","regional"].indexOf(t.toLowerCase())>=0)return t.toLowerCase();throw i.util.error(new Error,e)}}t.exports=function(t,n){var a;if((t=t||{})[n.clientConfig]&&(a=r(t[n.clientConfig],{code:"InvalidConfiguration",message:'invalid "'+n.clientConfig+'" configuration. Expect "legacy" or "regional". Got "'+t[n.clientConfig]+'".'})))return a;if(!i.util.isNode())return a;if(Object.prototype.hasOwnProperty.call(e.env,n.env)&&(a=r(e.env[n.env],{code:"InvalidEnvironmentalVariable",message:"invalid "+n.env+' environmental variable. Expect "legacy" or "regional". Got "'+e.env[n.env]+'".'})))return a;var o={};try{o=i.util.getProfilesFromSharedConfig(i.util.iniLoader)[e.env.AWS_PROFILE||i.util.defaultProfile]}catch(t){}return o&&Object.prototype.hasOwnProperty.call(o,n.sharedConfig)&&(a=r(o[n.sharedConfig],{code:"InvalidConfiguration",message:"invalid "+n.sharedConfig+' profile config. Expect "legacy" or "regional". Got "'+o[n.sharedConfig]+'".'})),a}}).call(this,n(50))},function(t,e){t.exports=function(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var i=n(70),r=n(1531);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[t.i,r,""]]);var a={insert:"head",singleton:!1};i(r,a);t.exports=r.locals||{}},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e){},function(t,e,n){var i=n(101),r=n(123);t.exports=function(t,e,n){(void 0!==n&&!r(t[e],n)||void 0===n&&!(e in t))&&i(t,e,n)}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){"use strict";var i,r=n(0),a=(i=r)&&"object"==typeof i&&"default"in i?i.default:i;function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=!("undefined"==typeof window||!window.document||!window.document.createElement);t.exports=function(t,e,n){if("function"!=typeof t)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof e)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==n&&"function"!=typeof n)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(i){if("function"!=typeof i)throw new Error("Expected WrappedComponent to be a React component.");var s,l=[];function c(){s=t(l.map((function(t){return t.props}))),h.canUseDOM?e(s):n&&(s=n(s))}var h=function(t){var e,n;function r(){return t.apply(this,arguments)||this}n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n,r.peek=function(){return s},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var t=s;return s=void 0,l=[],t};var o=r.prototype;return o.UNSAFE_componentWillMount=function(){l.push(this),c()},o.componentDidUpdate=function(){c()},o.componentWillUnmount=function(){var t=l.indexOf(this);l.splice(t,1),c()},o.render=function(){return a.createElement(i,this.props)},r}(r.PureComponent);return o(h,"displayName","SideEffect("+function(t){return t.displayName||t.name||"Component"}(i)+")"),o(h,"canUseDOM",u),h}}},function(t,e){var n="undefined"!=typeof Element,i="function"==typeof Map,r="function"==typeof Set,a="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;t.exports=function(t,e){try{return function t(e,o){if(e===o)return!0;if(e&&o&&"object"==typeof e&&"object"==typeof o){if(e.constructor!==o.constructor)return!1;var u,s,l,c;if(Array.isArray(e)){if((u=e.length)!=o.length)return!1;for(s=u;0!=s--;)if(!t(e[s],o[s]))return!1;return!0}if(i&&e instanceof Map&&o instanceof Map){if(e.size!==o.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!o.has(s.value[0]))return!1;for(c=e.entries();!(s=c.next()).done;)if(!t(s.value[1],o.get(s.value[0])))return!1;return!0}if(r&&e instanceof Set&&o instanceof Set){if(e.size!==o.size)return!1;for(c=e.entries();!(s=c.next()).done;)if(!o.has(s.value[0]))return!1;return!0}if(a&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(o)){if((u=e.length)!=o.length)return!1;for(s=u;0!=s--;)if(e[s]!==o[s])return!1;return!0}if(e.constructor===RegExp)return e.source===o.source&&e.flags===o.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===o.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===o.toString();if((u=(l=Object.keys(e)).length)!==Object.keys(o).length)return!1;for(s=u;0!=s--;)if(!Object.prototype.hasOwnProperty.call(o,l[s]))return!1;if(n&&e instanceof Element)return!1;for(s=u;0!=s--;)if(("_owner"!==l[s]&&"__v"!==l[s]&&"__o"!==l[s]||!e.$$typeof)&&!t(e[l[s]],o[l[s]]))return!1;return!0}return e!=e&&o!=o}(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},function(t,e){t.exports=function(t,e,n,i){var r=n?n.call(i,t,e):void 0;if(void 0!==r)return!!r;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var a=Object.keys(t),o=Object.keys(e);if(a.length!==o.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(e),s=0;si&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(m,"$1"+t.trim());case 58:return t.trim()+e.replace(m,"$1"+t.trim());default:if(0<1*n&&0s.charCodeAt(8))break;case 115:o=o.replace(s,"-webkit-"+s)+";"+o;break;case 207:case 102:o=o.replace(s,"-webkit-"+(102u.charCodeAt(0)&&(u=u.trim()),u=[u],0p)&&(J=(F=F.replace(" ",":")).length),0=200&&o.status<400?r(o.responseText):a(new Error("POST to "+e+" failed with status: "+o.status)))},o.open("post",e),o.setRequestHeader("Content-Type","application/json"),i&&"object"==typeof i.headers){var u=i.headers;for(var s in u)Object.prototype.hasOwnProperty.call(u,s)&&o.setRequestHeader(s,u[s])}var l={stack:t};null!=n&&(l.message=n),o.send(JSON.stringify(l))}))}}})?i.apply(e,r):i)||(t.exports=a)}()},function(t,e,n){var i=n(56),r=n(645);t.exports=function(t,e){return t&&t.length?r(t,i(e,3),!0):[]}},function(t,e,n){var i=n(153),r=n(226),a=n(646),o=n(228),u=n(106),s=/^\s+/;t.exports=function(t,e,n){if((t=u(t))&&(n||void 0===e))return t.replace(s,"");if(!t||!(e=i(e)))return t;var l=o(t),c=a(l,o(e));return r(l,c).join("")}},function(t,e,n){"use strict";const i=n(649),r={};t.exports=function(t){let e="";for(const n of t){const t=n.codePointAt(0);if(t<=127){e+=n;continue}const a=t>>>8,o=255&t;let u=r[a];void 0===u&&(r[a]=u=i(a)),u.length>o&&(e+=u[o])}return e}},function(t,e,n){var i=n(31)("last",n(229),n(342));i.placeholder=n(29),t.exports=i},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(t,e){for(var n=0;n=n.hop?t:[].concat(r()(t),r()(e.text.slice(0,n.hop-t.length)))}),[])),this.setState({cursor:i.join("").length});break;case"lin":case"klr":this.state.lines[this.state.lines.length-1]=n,this.setState({lines:this.state.lines});break;case"mor":this.state.lines.push(""),this.setState({lines:this.state.lines});break;case"sag":n.sav=n.sag;case"sav":var o=n.sav.path.split("/").slice(-2).join("."),u=new t(n.sav.file,"base64"),s=new Blob([u],{type:"application/octet-stream"});Object(l.saveAs)(s,o);break;case"url":window.open(n.url);break;default:console.log("weird blit",n)}}},{key:"setStateHandler",value:function(t){this.setState=t}}]),e}()}).call(this,n(77).Buffer)},function(t,e,n){(function(n){var i,r,a;r=[],void 0===(a="function"==typeof(i=function(){"use strict";function e(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){u(i.response,e,n)},i.onerror=function(){console.error("could not download file")},i.send()}function i(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return 200<=e.status&&299>=e.status}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var a="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,o=a.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),u=a.saveAs||("object"!=typeof window||window!==a?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,n,o){var u=a.URL||a.webkitURL,s=document.createElement("a");n=n||t.name||"download",s.download=n,s.rel="noopener","string"==typeof t?(s.href=t,s.origin===location.origin?r(s):i(s.href)?e(t,n,o):r(s,s.target="_blank")):(s.href=u.createObjectURL(t),setTimeout((function(){u.revokeObjectURL(s.href)}),4e4),setTimeout((function(){r(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,n,a){if(n=n||t.name||"download","string"!=typeof t)navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob(["\ufeff",t],{type:t.type}):t}(t,a),n);else if(i(t))e(t,n,a);else{var o=document.createElement("a");o.href=t,o.target="_blank",setTimeout((function(){r(o)}))}}:function(t,n,i,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),"string"==typeof t)return e(t,n,i);var u="application/octet-stream"===t.type,s=/constructor/i.test(a.HTMLElement)||a.safari,l=/CriOS\/[\d]+/.test(navigator.userAgent);if((l||u&&s||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=l?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var h=a.URL||a.webkitURL,d=h.createObjectURL(t);r?r.location=d:location.href=d,r=null,setTimeout((function(){h.revokeObjectURL(d)}),4e4)}});a.saveAs=u.saveAs=u,t.exports=u})?i.apply(e,r):i)||(t.exports=a)}).call(this,n(49))},function(t,e,n){"use strict";e.a=new Audio("data:@file/ogg;base64,T2dnUwACAAAAAAAAAAAu9RJ+AAAAAO+u/l4BHgF2b3JiaXMAAAAAAUAfAAAAAAAAYG0AAAAAAACZAU9nZ1MAAAAAAAAAAAAALvUSfgEAAACXEgK4Czv///////////+1A3ZvcmJpcysAAABYaXBoLk9yZyBsaWJWb3JiaXMgSSAyMDEyMDIwMyAoT21uaXByZXNlbnQpAAAAAAEFdm9yYmlzEkJDVgEAAAEADFIUISUZU0pjCJVSUikFHWNQW0cdY9Q5RiFkEFOISRmle08qlVhKyBFSWClFHVNMU0mVUpYpRR1jFFNIIVPWMWWhcxRLhkkJJWxNrnQWS+iZY5YxRh1jzlpKnWPWMUUdY1JSSaFzGDpmJWQUOkbF6GJ8MDqVokIovsfeUukthYpbir3XGlPrLYQYS2nBCGFz7bXV3EpqxRhjjDHGxeJTKILQkFUAAAEAAEAEAUJDVgEACgAAwlAMRVGA0JBVAEAGAIAAFEVxFMdxHEeSJMsCQkNWAQBAAAACAAAojuEokiNJkmRZlmVZlqZ5lqi5qi/7ri7rru3qug6EhqwEAMgAABiGIYfeScyQU5BJJilVzDkIofUOOeUUZNJSxphijFHOkFMMMQUxhtAphRDUTjmlDCIIQ0idZM4gSz3o4GLnOBAasiIAiAIAAIxBjCHGkHMMSgYhco5JyCBEzjkpnZRMSiittJZJCS2V1iLnnJROSialtBZSy6SU1kIrBQAABDgAAARYCIWGrAgAogAAEIOQUkgpxJRiTjGHlFKOKceQUsw5xZhyjDHoIFTMMcgchEgpxRhzTjnmIGQMKuYchAwyAQAAAQ4AAAEWQqEhKwKAOAEAgyRpmqVpomhpmih6pqiqoiiqquV5pumZpqp6oqmqpqq6rqmqrmx5nml6pqiqnimqqqmqrmuqquuKqmrLpqvatumqtuzKsm67sqzbnqrKtqm6sm6qrm27smzrrizbuuR5quqZput6pum6quvasuq6su2ZpuuKqivbpuvKsuvKtq3Ksq5rpum6oqvarqm6su3Krm27sqz7puvqturKuq7Ksu7btq77sq0Lu+i6tq7Krq6rsqzrsi3rtmzbQsnzVNUzTdf1TNN1Vde1bdV1bVszTdc1XVeWRdV1ZdWVdV11ZVv3TNN1TVeVZdNVZVmVZd12ZVeXRde1bVWWfV11ZV+Xbd33ZVnXfdN1dVuVZdtXZVn3ZV33hVm3fd1TVVs3XVfXTdfVfVvXfWG2bd8XXVfXVdnWhVWWdd/WfWWYdZ0wuq6uq7bs66os676u68Yw67owrLpt/K6tC8Or68ax676u3L6Patu+8Oq2Mby6bhy7sBu/7fvGsamqbZuuq+umK+u6bOu+b+u6cYyuq+uqLPu66sq+b+u68Ou+Lwyj6+q6Ksu6sNqyr8u6Lgy7rhvDatvC7tq6cMyyLgy37yvHrwtD1baF4dV1o6vbxm8Lw9I3dr4AAIABBwCAABPKQKEhKwKAOAEABiEIFWMQKsYghBBSCiGkVDEGIWMOSsYclBBKSSGU0irGIGSOScgckxBKaKmU0EoopaVQSkuhlNZSai2m1FoMobQUSmmtlNJaaim21FJsFWMQMuekZI5JKKW0VkppKXNMSsagpA5CKqWk0kpJrWXOScmgo9I5SKmk0lJJqbVQSmuhlNZKSrGl0kptrcUaSmktpNJaSam11FJtrbVaI8YgZIxByZyTUkpJqZTSWuaclA46KpmDkkopqZWSUqyYk9JBKCWDjEpJpbWSSiuhlNZKSrGFUlprrdWYUks1lJJaSanFUEprrbUaUys1hVBSC6W0FkpprbVWa2ottlBCa6GkFksqMbUWY22txRhKaa2kElspqcUWW42ttVhTSzWWkmJsrdXYSi051lprSi3W0lKMrbWYW0y5xVhrDSW0FkpprZTSWkqtxdZaraGU1koqsZWSWmyt1dhajDWU0mIpKbWQSmyttVhbbDWmlmJssdVYUosxxlhzS7XVlFqLrbVYSys1xhhrbjXlUgAAwIADAECACWWg0JCVAEAUAABgDGOMQWgUcsw5KY1SzjknJXMOQggpZc5BCCGlzjkIpbTUOQehlJRCKSmlFFsoJaXWWiwAAKDAAQAgwAZNicUBCg1ZCQBEAQAgxijFGITGIKUYg9AYoxRjECqlGHMOQqUUY85ByBhzzkEpGWPOQSclhBBCKaWEEEIopZQCAAAKHAAAAmzQlFgcoNCQFQFAFAAAYAxiDDGGIHRSOikRhExKJ6WREloLKWWWSoolxsxaia3E2EgJrYXWMmslxtJiRq3EWGIqAADswAEA7MBCKDRkJQCQBwBAGKMUY845ZxBizDkIITQIMeYchBAqxpxzDkIIFWPOOQchhM455yCEEELnnHMQQgihgxBCCKWU0kEIIYRSSukghBBCKaV0EEIIoZRSCgAAKnAAAAiwUWRzgpGgQkNWAgB5AACAMUo5JyWlRinGIKQUW6MUYxBSaq1iDEJKrcVYMQYhpdZi7CCk1FqMtXYQUmotxlpDSq3FWGvOIaXWYqw119RajLXm3HtqLcZac865AADcBQcAsAMbRTYnGAkqNGQlAJAHAEAgpBRjjDmHlGKMMeecQ0oxxphzzinGGHPOOecUY4w555xzjDHnnHPOOcaYc84555xzzjnnoIOQOeecc9BB6JxzzjkIIXTOOecchBAKAAAqcAAACLBRZHOCkaBCQ1YCAOEAAIAxlFJKKaWUUkqoo5RSSimllFICIaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKZVSSimllFJKKaWUUkoppQAg3woHAP8HG2dYSTorHA0uNGQlABAOAAAYwxiEjDknJaWGMQildE5KSSU1jEEopXMSUkopg9BaaqWk0lJKGYSUYgshlZRaCqW0VmspqbWUUigpxRpLSqml1jLnJKSSWkuttpg5B6Wk1lpqrcUQQkqxtdZSa7F1UlJJrbXWWm0tpJRaay3G1mJsJaWWWmupxdZaTKm1FltLLcbWYkutxdhiizHGGgsA4G5wAIBIsHGGlaSzwtHgQkNWAgAhAQAEMko555yDEEIIIVKKMeeggxBCCCFESjHmnIMQQgghhIwx5yCEEEIIoZSQMeYchBBCCCGEUjrnIIRQSgmllFJK5xyEEEIIpZRSSgkhhBBCKKWUUkopIYQQSimllFJKKSWEEEIopZRSSimlhBBCKKWUUkoppZQQQiillFJKKaWUEkIIoZRSSimllFJCCKWUUkoppZRSSighhFJKKaWUUkoJJZRSSimllFJKKSGUUkoppZRSSimlAACAAwcAgAAj6CSjyiJsNOHCAxAAAAACAAJMAIEBgoJRCAKEEQgAAAAAAAgA+AAASAqAiIho5gwOEBIUFhgaHB4gIiQAAAAAAAAAAAAAAAAET2dnUwAE1RQAAAAAAAAu9RJ+AgAAAI+1UkUWbC8oJiQmKTc/RUVKWVRZVFZSUlJUV7qmd+oLx6QAgM0PiQSIMgmD9wDA8XvSzu5GNsva2WY+G85HV47eGBjur0ytj7Wzzewi2GBPz+5b5X5VkUKKy+P8uLzGfVyHdViHddimbdqm+vy4btM2bZ807djY2NjYmGmapmlWldmyNVsAAKbnXqjLAQBgrioAKJAAb4YBnDhIAAC27/UAAAAA45QIAAC7yTUBAADiQvsHAQAAot2slRd+/38AgHMlAEjBmx0AbNebLgAAgELltBYAAKCevTMAAMApA6ZROkjlAADw70oAkIIW6jMGALj7mNICAAC4yb6wAAAA5AL8fgcApk062Be+/wAA/AYAAgwQThMFAACArWpvCQAAdgKupkwAjRoAps1ukZcDAMAtAEAABjMCALC6GAAAgGj+odwAAEAB+7LvDnsP2ACWzMqoP/z7/wWADgBjwHY/xAAAAMy+IgAANBy/qbrb7Pbss8JZflyWAZJLw6WXAQAwDBDkAkwOAwBQfkkAAADcl8vVBAAAmA8+jGyL2BYT0nbND21ideV3xyy/U4qXlgCSSeNKfvjxNQHAMMAMKiBsbroBAABqor8AAAA6aM89+Rq6bvnk8LNKyvW8jyhPT0aIqTiefOpxfN3z2tGPswCGCW+WuQAAVJUF+uoAADx8dxcAAMBXAMBZqNm60vW9d44pypUD2Tl6luUkHdG5J5lxL0aFvMpY9y7OZ7Kj0NP2j2okAQCKCd8aEhwAAAOrCubTAADuuhZTAACwBktTUYYsypUTa++md34yaa8b31WXw4LZ/dB8ts9kOjOBgcl+OxzDxOtjXdfTAQB2C59ZJvj+zwcgKg5g8281AADAO8mGdLGzJy8kGD3ERJHSb8+KRreqsOe5iOA9+xk5RWYymr8t9fFcQ7UYPsf2CXO954oPXuRGAHoJPwokOACABBB9GJcCcDgMkr9TdStxcpHkOhDXOM40AADwtFHUzvluekfz0aP9mJ3KRw3ySu6e3k716lNJD845W/XCUnx96lspKQF7uni6YS5qaskPgwAAbkmqK5Xg958CMAAAlRyw848OAABGZmJHO2stuZprN5F4lw9/TAzNcykrrzAGQKT90Hzs9r7xON7h+h6Zh6owHipmsZi9HkcWrez9yFa25VxKjKcAcgnfCiQ4AIAK4PvQVQCcdOjsxOnO6qfsJ3fjALg3jw8MAAA4+pwLvc++cP6Da+BtgBK2Vchno/edw7oW9qfD6fCyfroxFvJA1J66eKe6X3caZA80fZoqIQBiCluUZIK/vwYgxgAIxWABAACzX87PD/e+ypZoZFzUgnT++Vfp0fDw+dEiJHzSHi4Jx9zOop6xOOLsMJv7o2RE6rgPC7QJCbg+iH2+j5OvYnTfZwBiieULScgAAGICCMAMAJTm0o7SZPPNrK4DMVjQnAAAoNazHL/ohsVDDnj1B1OiRQleU7ja3e2WOJqRCOfRlPtCOd1Xx4golDIpbZ458jXWa69PzEdWAl6L5caU4PODAKhVnoBdv4oBAAAxjs0+Ot/dzjg+fzV8Ll86PhGvL0dScur4fEpmFL7LtyA4Nl/lyJPLSxTD6GB2yR6n0xYDZ/Ki8AelZfcaMgBeiuWCJAzH3QEgRh/Ax9sXACBA5nuEprLWUgjNyZV1K0F59+b2ekLV6ygkgbeuJuF2mIlXES5VwEoYIydHWAcdfNrynQPbVs45Vnz0W5H4NsEAXorpzpTguRsArDEAQsVfDQAAai1bx861KN9Kd+gh5gcxYnuummTspfSig6uKfBD7ktk84S407NtlEEiIwPnIFpc0c1mn6l8NIwrqmFZHTOQGAGKK9H2ZQX8AgOgHABonCQAIoSiMDtY3DcIRbnuH6zxUxkQwrhJ2Fpywr6ZfxvDqKyW58VRo40fXz5/cpf7H3YRUgr9LRT8pNxJaVHecnCt+ZV2tAWJK8dUqwVUdACVGkCL93e/IyMrIukLnyg3MMbZ+9/OKc/Z7JuYqlQlMVOODRxW/vKQqdZPbQui0ML9ZSJo33YhFgCY5BjIkne70UjNULgVNfirfm7+RSw==")},function(t,e){t.exports=function(t){return void 0===t}},function(t,e,n){var i=n(254),r=n(1345);t.exports=function(t,e){return t&&t.length?r(t,i(e,3),!0):[]}},function(t,e,n){var i=n(161),r=n(398),a=n(1346),o=n(400),u=n(160),s=/^\s+/;t.exports=function(t,e,n){if((t=u(t))&&(n||void 0===e))return t.replace(s,"");if(!t||!(e=i(e)))return t;var l=o(t),c=a(l,o(e));return r(l,c).join("")}},function(t,e,n){var i=n(166),r=n(396),a=n(1347),o=n(32);t.exports=function(t,e){return(o(t)?i:r)(t,a(e))}},function(t,e,n){var i=n(79)("add",n(1348));i.placeholder=n(74),t.exports=i},function(t,e,n){var i=n(79)("last",n(1351),n(1352));i.placeholder=n(74),t.exports=i},function(t,e,n){t.exports=n(1357)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i,r=function(t){if(t&&t.__esModule)return t;if(null===t||"object"!==l(t)&&"function"!=typeof t)return{default:t};var e=s();if(e&&e.has(t))return e.get(t);var n={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var a=i?Object.getOwnPropertyDescriptor(t,r):null;a&&(a.get||a.set)?Object.defineProperty(n,r,a):n[r]=t[r]}n.default=t,e&&e.set(t,n);return n}(n(0)),a=(i=n(20))&&i.__esModule?i:{default:i},o=n(1372),u=n(1373);function s(){if("function"!=typeof WeakMap)return null;var t=new WeakMap;return s=function(){return t},t}function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;nG.length&&G.push(t)}function j(t,e,n){return null==t?0:function t(e,n,i,r){var u=typeof e;"undefined"!==u&&"boolean"!==u||(e=null);var s=!1;if(null===e)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case a:case o:s=!0}}if(s)return i(r,e,""===n?"."+N(e,0):n),1;if(s=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l