text: (window.webpackJsonp=window.webpackJsonp||[]).push([[2],[function(t,e,r){var n=r(2),i=r(13).f,o=r(17),a=r(14),s=r(85),l=r(116),u=r(56);t.exports=function(t,e){var r,c,f,h,d,p=t.target,g=t.global,v=t.stat;if(r=g?n:v?n[p]||s(p,{}):(n[p]||{}).prototype)for(c in e){if(h=e[c],f=t.noTargetGet?(d=i(r,c))&&d.value:r[c],!u(g?c:p+(v?".":"#")+c,t.forced)&&void 0!==f){if(typeof h==typeof f)continue;l(h,f)}(t.sham||f&&f.sham)&&o(h,"sham",!0),a(r,c,h,t)}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){(function(e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")()}).call(this,r(159))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,r){var n=r(3);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(1);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e,r){var n=r(2),i=r(87),o=r(11),a=r(52),s=r(91),l=r(118),u=i("wks"),c=n.Symbol,f=l?c:c&&c.withoutSetter||a;t.exports=function(t){return o(u,t)||(s&&o(c,t)?u[t]=c[t]:u[t]=f("Symbol."+t)),u[t]}},function(t,e,r){var n=r(27),i=Math.min;t.exports=function(t){return t>0?i(n(t),9007199254740991):0}},function(t,e,r){"use strict";var n,i=r(109),o=r(5),a=r(2),s=r(3),l=r(11),u=r(62),c=r(17),f=r(14),h=r(9).f,d=r(30),p=r(45),g=r(6),v=r(52),m=a.Int8Array,y=m&&m.prototype,b=a.Uint8ClampedArray,x=b&&b.prototype,w=m&&d(m),S=y&&d(y),C=Object.prototype,M=C.isPrototypeOf,k=g("toStringTag"),T=v("TYPED_ARRAY_TAG"),A=i&&!!p&&"Opera"!==u(a.opera),O=!1,L={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},E=function(t){return s(t)&&l(L,u(t))};for(n in L)a[n]||(A=!1);if((!A||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},A))for(n in L)a[n]&&p(a[n],w);if((!A||!S||S===C)&&(S=w.prototype,A))for(n in L)a[n]&&p(a[n].prototype,S);if(A&&d(x)!==S&&p(x,S),o&&!l(S,k))for(n in O=!0,h(S,k,{get:function(){return s(this)?this[T]:void 0}}),L)a[n]&&c(a[n],T,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:A,TYPED_ARRAY_TAG:O&&T,aTypedArray:function(t){if(E(t))return t;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(t){if(p){if(M.call(w,t))return t}else for(var e in L)if(l(L,n)){var r=a[e];if(r&&(t===r||M.call(r,t)))return t}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(t,e,r){if(o){if(r)for(var n in L){var i=a[n];i&&l(i.prototype,t)&&delete i.prototype[t]}S[t]&&!r||f(S,t,r?e:A&&y[t]||e)}},exportTypedArrayStaticMethod:function(t,e,r){var n,i;if(o){if(p){if(r)for(n in L)(i=a[n])&&l(i,t)&&delete i[t];if(w[t]&&!r)return;try{return f(w,t,r?e:A&&m[t]||e)}catch(t){}}for(n in L)!(i=a[n])||i[t]&&!r||f(i,t,e)}},isView:function(t){var e=u(t);return"DataView"===e||l(L,e)},isTypedArray:E,TypedArray:w,TypedArrayPrototype:S}},function(t,e,r){var n=r(5),i=r(113),o=r(4),a=r(28),s=Object.defineProperty;e.f=n?s:function(t,e,r){if(o(t),e=a(e,!0),o(r),i)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(16);t.exports=function(t){return Object(n(t))}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(38),i=r(51),o=r(10),a=r(7),s=r(58),l=[].push,u=function(t){var e=1==t,r=2==t,u=3==t,c=4==t,f=6==t,h=5==t||f;return function(d,p,g,v){for(var m,y,b=o(d),x=i(b),w=n(p,g,3),S=a(x.length),C=0,M=v||s,k=e?M(d,S):r?M(d,0):void 0;S>C;C++)if((h||C in x)&&(y=w(m=x[C],C,b),t))if(e)k[C]=y;else if(y)switch(t){case 3:return!0;case 5:return m;case 6:return C;case 2:l.call(k,m)}else if(c)return!1;return f?-1:u||c?c:k}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},function(t,e,r){var n=r(5),i=r(65),o=r(36),a=r(22),s=r(28),l=r(11),u=r(113),c=Object.getOwnPropertyDescriptor;e.f=n?c:function(t,e){if(t=a(t),e=s(e,!0),u)try{return c(t,e)}catch(t){}if(l(t,e))return o(!i.f.call(t,e),t[e])}},function(t,e,r){var n=r(2),i=r(17),o=r(11),a=r(85),s=r(86),l=r(18),u=l.get,c=l.enforce,f=String(String).split("String");(t.exports=function(t,e,r,s){var l=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,h=!!s&&!!s.noTargetGet;"function"==typeof r&&("string"!=typeof e||o(r,"name")||i(r,"name",e),c(r).source=f.join("string"==typeof e?e:"")),t!==n?(l?!h&&t[e]&&(u=!0):delete t[e],u?t[e]=r:i(t,e,r)):u?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},function(t,e,r){"use strict";r.d(e,"a",(function(){return S})),r.d(e,"b",(function(){return f})),r.d(e,"c",(function(){return o}));
  /*! *****************************************************************************
  Copyright (c) Microsoft Corporation. All rights reserved.
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use
  this file except in compliance with the License. You may obtain a copy of the
  License at http://www.apache.org/licenses/LICENSE-2.0
  
  THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
  WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
  MERCHANTABLITY OR NON-INFRINGEMENT.
  
  See the Apache Version 2.0 License for specific language governing permissions
  and limitations under the License.
  ***************************************************************************** */
  var n=function(t,e){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)};function i(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function o(t){var e="";Array.isArray(t)||(t=[t]);for(var r=0;r<t.length;r++){var n=t[r];if(n.type===S.CLOSE_PATH)e+="z";else if(n.type===S.HORIZ_LINE_TO)e+=(n.relative?"h":"H")+n.x;else if(n.type===S.VERT_LINE_TO)e+=(n.relative?"v":"V")+n.y;else if(n.type===S.MOVE_TO)e+=(n.relative?"m":"M")+n.x+" "+n.y;else if(n.type===S.LINE_TO)e+=(n.relative?"l":"L")+n.x+" "+n.y;else if(n.type===S.CURVE_TO)e+=(n.relative?"c":"C")+n.x1+" "+n.y1+" "+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_CURVE_TO)e+=(n.relative?"s":"S")+n.x2+" "+n.y2+" "+n.x+" "+n.y;else if(n.type===S.QUAD_TO)e+=(n.relative?"q":"Q")+n.x1+" "+n.y1+" "+n.x+" "+n.y;else if(n.type===S.SMOOTH_QUAD_TO)e+=(n.relative?"t":"T")+n.x+" "+n.y;else{if(n.type!==S.ARC)throw new Error('Unexpected command type "'+n.type+'" at index '+r+".");e+=(n.relative?"a":"A")+n.rX+" "+n.rY+" "+n.xRot+" "+ +n.lArcFlag+" "+ +n.sweepFlag+" "+n.x+" "+n.y}}return e}function a(t,e){var r=t[0],n=t[1];return[r*Math.cos(e)-n*Math.sin(e),r*Math.sin(e)+n*Math.cos(e)]}function s(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++)if("number"!=typeof t[r])throw new Error("assertNumbers arguments["+r+"] is not a number. "+typeof t[r]+" == typeof "+t[r]);return!0}var l=Math.PI;function u(t,e,r){t.lArcFlag=0===t.lArcFlag?0:1,t.sweepFlag=0===t.sweepFlag?0:1;var n=t.rX,i=t.rY,o=t.x,s=t.y;n=Math.abs(t.rX),i=Math.abs(t.rY);var u=a([(e-o)/2,(r-s)/2],-t.xRot/180*l),c=u[0],f=u[1],h=Math.pow(c,2)/Math.pow(n,2)+Math.pow(f,2)/Math.pow(i,2);1<h&&(n*=Math.sqrt(h),i*=Math.sqrt(h)),t.rX=n,t.rY=i;var d=Math.pow(n,2)*Math.pow(f,2)+Math.pow(i,2)*Math.pow(c,2),p=(t.lArcFlag!==t.sweepFlag?1:-1)*Math.sqrt(Math.max(0,(Math.pow(n,2)*Math.pow(i,2)-d)/d)),g=n*f/i*p,v=-i*c/n*p,m=a([g,v],t.xRot/180*l);t.cX=m[0]+(e+o)/2,t.cY=m[1]+(r+s)/2,t.phi1=Math.atan2((f-v)/i,(c-g)/n),t.phi2=Math.atan2((-f-v)/i,(-c-g)/n),0===t.sweepFlag&&t.phi2>t.phi1&&(t.phi2-=2*l),1===t.sweepFlag&&t.phi2<t.phi1&&(t.phi2+=2*l),t.phi1*=180/l,t.phi2*=180/l}function c(t,e,r){s(t,e,r);var n=t*t+e*e-r*r;if(0>n)return[];if(0===n)return[[t*r/(t*t+e*e),e*r/(t*t+e*e)]];var i=Math.sqrt(n);return[[(t*r+e*i)/(t*t+e*e),(e*r-t*i)/(t*t+e*e)],[(t*r-e*i)/(t*t+e*e),(e*r+t*i)/(t*t+e*e)]]}var f,h=Math.PI/180;function d(t,e,r){return(1-r)*t+r*e}function p(t,e,r,n){return t+Math.cos(n/180*l)*e+Math.sin(n/180*l)*r}function g(t,e,r,n){var i=e-t,o=r-e,a=3*i+3*(n-r)-6*o,s=6*(o-i),l=3*i;return Math.abs(a)<1e-6?[-l/s]:function(t,e,r){void 0===r&&(r=1e-6);var n=t*t/4-e;if(n<-r)return[];if(n<=r)return[-t/2];var i=Math.sqrt(n);return[-t/2-i,-t/2+i]}(s/a,l/a,1e-6)}function v(t,e,r,n,i){var o=1-i;return t*(o*o*o)+e*(3*o*o*i)+r*(3*o*i*i)+n*(i*i*i)}!function(t){function e(){return i((function(t,e,r){return t.relative&&(void 0!==t.x1&&(t.x1+=e),void 0!==t.y1&&(t.y1+=r),void 0!==t.x2&&(t.x2+=e),void 0!==t.y2&&(t.y2+=r),void 0!==t.x&&(t.x+=e),void 0!==t.y&&(t.y+=r),t.relative=!1),t}))}function r(){var t=NaN,e=NaN,r=NaN,n=NaN;return i((function(i,o,a){return i.type&S.SMOOTH_CURVE_TO&&(i.type=S.CURVE_TO,t=isNaN(t)?o:t,e=isNaN(e)?a:e,i.x1=i.relative?o-t:2*o-t,i.y1=i.relative?a-e:2*a-e),i.type&S.CURVE_TO?(t=i.relative?o+i.x2:i.x2,e=i.relative?a+i.y2:i.y2):(t=NaN,e=NaN),i.type&S.SMOOTH_QUAD_TO&&(i.type=S.QUAD_TO,r=isNaN(r)?o:r,n=isNaN(n)?a:n,i.x1=i.relative?o-r:2*o-r,i.y1=i.relative?a-n:2*a-n),i.type&S.QUAD_TO?(r=i.relative?o+i.x1:i.x1,n=i.relative?a+i.y1:i.y1):(r=NaN,n=NaN),i}))}function n(){var t=NaN,e=NaN;return i((function(r,n,i){if(r.type&S.SMOOTH_QUAD_TO&&(r.type=S.QUAD_TO,t=isNaN(t)?n:t,e=isNaN(e)?i:e,r.x1=r.relative?n-t:2*n-t,r.y1=r.relative?i-e:2*i-e),r.type&S.QUAD_TO){t=r.relative?n+r.x1:r.x1,e=r.relative?i+r.y1:r.y1;var o=r.x1,a=r.y1;r.type=S.CURVE_TO,r.x1=((r.relative?0:n)+2*o)/3,r.y1=((r.relative?0:i)+2*a)/3,r.x2=(r.x+2*o)/3,r.y2=(r.y+2*a)/3}else t=NaN,e=NaN;return r}))}function i(t){var e=0,r=0,n=NaN,i=NaN;return function(o){if(isNaN(n)&&!(o.type&S.MOVE_TO))throw new Error("path must start with moveto");var a=t(o,e,r,n,i);return o.type&S.CLOSE_PATH&&(e=n,r=i),void 0!==o.x&&(e=o.relative?e+o.x:o.x),void 0!==o.y&&(r=o.relative?r+o.y:o.y),o.type&S.MOVE_TO&&(n=e,i=r),a}}function o(t,e,r,n,o,a){return s(t,e,r,n,o,a),i((function(i,s,l,u){var c=i.x1,f=i.x2,h=i.relative&&!isNaN(u),d=void 0!==i.x?i.x:h?0:s,p=void 0!==i.y?i.y:h?0:l;function g(t){return t*t}i.type&S.HORIZ_LINE_TO&&0!==e&&(i.type=S.LINE_TO,i.y=i.relative?0:l),i.type&S.VERT_LINE_TO&&0!==r&&(i.type=S.LINE_TO,i.x=i.relative?0:s),void 0!==i.x&&(i.x=i.x*t+p*r+(h?0:o)),void 0!==i.y&&(i.y=d*e+i.y*n+(h?0:a)),void 0!==i.x1&&(i.x1=i.x1*t+i.y1*r+(h?0:o)),void 0!==i.y1&&(i.y1=c*e+i.y1*n+(h?0:a)),void 0!==i.x2&&(i.x2=i.x2*t+i.y2*r+(h?0:o)),void 0!==i.y2&&(i.y2=f*e+i.y2*n+(h?0:a));var v=t*n-e*r;if(void 0!==i.xRot&&(1!==t||0!==e||0!==r||1!==n))if(0===v)delete i.rX,delete i.rY,delete i.xRot,delete i.lArcFlag,delete i.sweepFlag,i.type=S.LINE_TO;else{var m=i.xRot*Math.PI/180,y=Math.sin(m),b=Math.cos(m),x=1/g(i.rX),w=1/g(i.rY),C=g(b)*x+g(y)*w,M=2*y*b*(x-w),k=g(y)*x+g(b)*w,T=C*n*n-M*e*n+k*e*e,A=M*(t*n+e*r)-2*(C*r*n+k*t*e),O=C*r*r-M*t*r+k*t*t,L=(Math.atan2(A,T-O)+Math.PI)%Math.PI/2,E=Math.sin(L),N=Math.cos(L);i.rX=Math.abs(v)/Math.sqrt(T*g(N)+A*E*N+O*g(E)),i.rY=Math.abs(v)/Math.sqrt(T*g(E)-A*E*N+O*g(N)),i.xRot=180*L/Math.PI}return void 0!==i.sweepFlag&&0>v&&(i.sweepFlag=+!i.sweepFlag),i}))}t.ROUND=function(t){function e(e){return Math.round(e*t)/t}return void 0===t&&(t=1e13),s(t),function(t){return void 0!==t.x1&&(t.x1=e(t.x1)),void 0!==t.y1&&(t.y1=e(t.y1)),void 0!==t.x2&&(t.x2=e(t.x2)),void 0!==t.y2&&(t.y2=e(t.y2)),void 0!==t.x&&(t.x=e(t.x)),void 0!==t.y&&(t.y=e(t.y)),void 0!==t.rX&&(t.rX=e(t.rX)),void 0!==t.rY&&(t.rY=e(t.rY)),t}},t.TO_ABS=e,t.TO_REL=function(){return i((function(t,e,r){return t.relative||(void 0!==t.x1&&(t.x1-=e),void 0!==t.y1&&(t.y1-=r),void 0!==t.x2&&(t.x2-=e),void 0!==t.y2&&(t.y2-=r),void 0!==t.x&&(t.x-=e),void 0!==t.y&&(t.y-=r),t.relative=!0),t}))},t.NORMALIZE_HVZ=function(t,e,r){return void 0===t&&(t=!0),void 0===e&&(e=!0),void 0===r&&(r=!0),i((function(n,i,o,a,s){if(isNaN(a)&&!(n.type&S.MOVE_TO))throw new Error("path must start with moveto");return e&&n.type&S.HORIZ_LINE_TO&&(n.type=S.LINE_TO,n.y=n.relative?0:o),r&&n.type&S.VERT_LINE_TO&&(n.type=S.LINE_TO,n.x=n.relative?0:i),t&&n.type&S.CLOSE_PATH&&(n.type=S.LINE_TO,n.x=n.relative?a-i:a,n.y=n.relative?s-o:s),n.type&S.ARC&&(0===n.rX||0===n.rY)&&(n.type=S.LINE_TO,delete n.rX,delete n.rY,delete n.xRot,delete n.lArcFlag,delete n.sweepFlag),n}))},t.NORMALIZE_ST=r,t.QT_TO_C=n,t.INFO=i,t.SANITIZE=function(t){void 0===t&&(t=0),s(t);var e=NaN,r=NaN,n=NaN,o=NaN;return i((function(i,a,s,l,u){var c=Math.abs,f=!1,h=0,d=0;if(i.type&S.SMOOTH_CURVE_TO&&(h=isNaN(e)?0:a-e,d=isNaN(r)?0:s-r),i.type&(S.CURVE_TO|S.SMOOTH_CURVE_TO)?(e=i.relative?a+i.x2:i.x2,r=i.relative?s+i.y2:i.y2):(e=NaN,r=NaN),i.type&S.SMOOTH_QUAD_TO?(n=isNaN(n)?a:2*a-n,o=isNaN(o)?s:2*s-o):i.type&S.QUAD_TO?(n=i.relative?a+i.x1:i.x1,o=i.relative?s+i.y1:i.y2):(n=NaN,o=NaN),i.type&S.LINE_COMMANDS||i.type&S.ARC&&(0===i.rX||0===i.rY||!i.lArcFlag)||i.type&S.CURVE_TO||i.type&S.SMOOTH_CURVE_TO||i.type&S.QUAD_TO||i.type&S.SMOOTH_QUAD_TO){var p=void 0===i.x?0:i.relative?i.x:i.x-a,g=void 0===i.y?0:i.relative?i.y:i.y-s;h=isNaN(n)?void 0===i.x1?h:i.relative?i.x:i.x1-a:n-a,d=isNaN(o)?void 0===i.y1?d:i.relative?i.y:i.y1-s:o-s;var v=void 0===i.x2?0:i.relative?i.x:i.x2-a,m=void 0===i.y2?0:i.relative?i.y:i.y2-s;c(p)<=t&&c(g)<=t&&c(h)<=t&&c(d)<=t&&c(v)<=t&&c(m)<=t&&(f=!0)}return i.type&S.CLOSE_PATH&&c(a-l)<=t&&c(s-u)<=t&&(f=!0),f?[]:i}))},t.MATRIX=o,t.ROTATE=function(t,e,r){void 0===e&&(e=0),void 0===r&&(r=0),s(t,e,r);var n=Math.sin(t),i=Math.cos(t);return o(i,n,-n,i,e-e*i+r*n,r-e*n-r*i)},t.TRANSLATE=function(t,e){return void 0===e&&(e=0),s(t,e),o(1,0,0,1,t,e)},t.SCALE=function(t,e){return void 0===e&&(e=t),s(t,e),o(t,0,0,e,0,0)},t.SKEW_X=function(t){return s(t),o(1,0,Math.atan(t),1,0,0)},t.SKEW_Y=function(t){return s(t),o(1,Math.atan(t),0,1,0,0)},t.X_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),s(t),o(-1,0,0,1,t,0)},t.Y_AXIS_SYMMETRY=function(t){return void 0===t&&(t=0),s(t),o(1,0,0,-1,0,t)},t.A_TO_C=function(){return i((function(t,e,r){return S.ARC===t.type?function(t,e,r){var n,i,o,s;t.cX||u(t,e,r);for(var l=Math.min(t.phi1,t.phi2),c=Math.max(t.phi1,t.phi2)-l,f=Math.ceil(c/90),p=new Array(f),g=e,v=r,m=0;m<f;m++){var y=d(t.phi1,t.phi2,m/f),b=d(t.phi1,t.phi2,(m+1)/f),x=b-y,w=4/3*Math.tan(x*h/4),C=[Math.cos(y*h)-w*Math.sin(y*h),Math.sin(y*h)+w*Math.cos(y*h)],M=C[0],k=C[1],T=[Math.cos(b*h),Math.sin(b*h)],A=T[0],O=T[1],L=[A+w*Math.sin(b*h),O-w*Math.cos(b*h)],E=L[0],N=L[1];p[m]={relative:t.relative,type:S.CURVE_TO};var R=function(e,r){var n=a([e*t.rX,r*t.rY],t.xRot),i=n[0],o=n[1];return[t.cX+i,t.cY+o]};n=R(M,k),p[m].x1=n[0],p[m].y1=n[1],i=R(E,N),p[m].x2=i[0],p[m].y2=i[1],o=R(A,O),p[m].x=o[0],p[m].y=o[1],t.relative&&(p[m].x1-=g,p[m].y1-=v,p[m].x2-=g,p[m].y2-=v,p[m].x-=g,p[m].y-=v),g=(s=[p[m].x,p[m].y])[0],v=s[1]}return p}(t,t.relative?0:e,t.relative?0:r):t}))},t.ANNOTATE_ARCS=function(){return i((function(t,e,r){return t.relative&&(e=0,r=0),S.ARC===t.type&&u(t,e,r),t}))},t.CLONE=function(){return function(t){var e={};for(var r in t)e[r]=t[r];return e}},t.CALCULATE_BOUNDS=function(){var t=e(),o=n(),a=r(),s=i((function(e,r,n){var i=a(o(t(function(t){var e={};for(var r in t)e[r]=t[r];return e}(e))));function l(t){t>s.maxX&&(s.maxX=t),t<s.minX&&(s.minX=t)}function f(t){t>s.maxY&&(s.maxY=t),t<s.minY&&(s.minY=t)}if(i.type&S.DRAWING_COMMANDS&&(l(r),f(n)),i.type&S.HORIZ_LINE_TO&&l(i.x),i.type&S.VERT_LINE_TO&&f(i.y),i.type&S.LINE_TO&&(l(i.x),f(i.y)),i.type&S.CURVE_TO){l(i.x),f(i.y);for(var h=0,d=g(r,i.x1,i.x2,i.x);h<d.length;h++)0<(I=d[h])&&1>I&&l(v(r,i.x1,i.x2,i.x,I));for(var m=0,y=g(n,i.y1,i.y2,i.y);m<y.length;m++)0<(I=y[m])&&1>I&&f(v(n,i.y1,i.y2,i.y,I))}if(i.type&S.ARC){l(i.x),f(i.y),u(i,r,n);for(var b=i.xRot/180*Math.PI,x=Math.cos(b)*i.rX,w=Math.sin(b)*i.rX,C=-Math.sin(b)*i.rY,M=Math.cos(b)*i.rY,k=i.phi1<i.phi2?[i.phi1,i.phi2]:-180>i.phi2?[i.phi2+360,i.phi1+360]:[i.phi2,i.phi1],T=k[0],A=k[1],O=function(t){var e=t[0],r=t[1],n=180*Math.atan2(r,e)/Math.PI;return n<T?n+360:n},L=0,E=c(C,-x,0).map(O);L<E.length;L++)(I=E[L])>T&&I<A&&l(p(i.cX,x,C,I));for(var N=0,R=c(M,-w,0).map(O);N<R.length;N++){var I;(I=R[N])>T&&I<A&&f(p(i.cY,w,M,I))}}return e}));return s.minX=1/0,s.maxX=-1/0,s.minY=1/0,s.maxY=-1/0,s}}(f||(f={}));var m,y=function(){function t(){}return t.prototype.round=function(t){return this.transform(f.ROUND(t))},t.prototype.toAbs=function(){return this.transform(f.TO_ABS())},t.prototype.toRel=function(){return this.transform(f.TO_REL())},t.prototype.normalizeHVZ=function(t,e,r){return this.transform(f.NORMALIZE_HVZ(t,e,r))},t.prototype.normalizeST=function(){return this.transform(f.NORMALIZE_ST())},t.prototype.qtToC=function(){return this.transform(f.QT_TO_C())},t.prototype.aToC=function(){return this.transform(f.A_TO_C())},t.prototype.sanitize=function(t){return this.transform(f.SANITIZE(t))},t.prototype.translate=function(t,e){return this.transform(f.TRANSLATE(t,e))},t.prototype.scale=function(t,e){return this.transform(f.SCALE(t,e))},t.prototype.rotate=function(t,e,r){return this.transform(f.ROTATE(t,e,r))},t.prototype.matrix=function(t,e,r,n,i,o){return this.transform(f.MATRIX(t,e,r,n,i,o))},t.prototype.skewX=function(t){return this.transform(f.SKEW_X(t))},t.prototype.skewY=function(t){return this.transform(f.SKEW_Y(t))},t.prototype.xSymmetry=function(t){return this.transform(f.X_AXIS_SYMMETRY(t))},t.prototype.ySymmetry=function(t){return this.transform(f.Y_AXIS_SYMMETRY(t))},t.prototype.annotateArcs=function(){return this.transform(f.ANNOTATE_ARCS())},t}(),b=function(t){return" "===t||"\t"===t||"\r"===t||"\n"===t},x=function(t){return"0".charCodeAt(0)<=t.charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)},w=function(t){function e(){var e=t.call(this)||this;return e.curNumber="",e.curCommandType=-1,e.curCommandRelative=!1,e.canParseCommandOrComma=!0,e.curNumberHasExp=!1,e.curNumberHasExpDigits=!1,e.curNumberHasDecimal=!1,e.curArgs=[],e}return i(e,t),e.prototype.finish=function(t){if(void 0===t&&(t=[]),this.parse(" ",t),0!==this.curArgs.length||!this.canParseCommandOrComma)throw new SyntaxError("Unterminated command at the path end.");return t},e.prototype.parse=function(t,e){var r=this;void 0===e&&(e=[]);for(var n=function(t){e.push(t),r.curArgs.length=0,r.canParseCommandOrComma=!0},i=0;i<t.length;i++){var o=t[i],a=!(this.curCommandType!==S.ARC||3!==this.curArgs.length&&4!==this.curArgs.length||1!==this.curNumber.length||"0"!==this.curNumber&&"1"!==this.curNumber),s=x(o)&&("0"===this.curNumber&&"0"===o||a);if(!x(o)||s)if("e"!==o&&"E"!==o)if("-"!==o&&"+"!==o||!this.curNumberHasExp||this.curNumberHasExpDigits)if("."!==o||this.curNumberHasExp||this.curNumberHasDecimal||a){if(this.curNumber&&-1!==this.curCommandType){var l=Number(this.curNumber);if(isNaN(l))throw new SyntaxError("Invalid number ending at "+i);if(this.curCommandType===S.ARC)if(0===this.curArgs.length||1===this.curArgs.length){if(0>l)throw new SyntaxError('Expected positive number, got "'+l+'" at index "'+i+'"')}else if((3===this.curArgs.length||4===this.curArgs.length)&&"0"!==this.curNumber&&"1"!==this.curNumber)throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+i+'"');this.curArgs.push(l),this.curArgs.length===C[this.curCommandType]&&(S.HORIZ_LINE_TO===this.curCommandType?n({type:S.HORIZ_LINE_TO,relative:this.curCommandRelative,x:l}):S.VERT_LINE_TO===this.curCommandType?n({type:S.VERT_LINE_TO,relative:this.curCommandRelative,y:l}):this.curCommandType===S.MOVE_TO||this.curCommandType===S.LINE_TO||this.curCommandType===S.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),S.MOVE_TO===this.curCommandType&&(this.curCommandType=S.LINE_TO)):this.curCommandType===S.CURVE_TO?n({type:S.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===S.SMOOTH_CURVE_TO?n({type:S.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.QUAD_TO?n({type:S.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===S.ARC&&n({type:S.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!b(o))if(","===o&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if("+"!==o&&"-"!==o&&"."!==o)if(s)this.curNumber=o,this.curNumberHasDecimal=!1;else{if(0!==this.curArgs.length)throw new SyntaxError("Unterminated command at index "+i+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,"z"!==o&&"Z"!==o)if("h"===o||"H"===o)this.curCommandType=S.HORIZ_LINE_TO,this.curCommandRelative="h"===o;else if("v"===o||"V"===o)this.curCommandType=S.VERT_LINE_TO,this.curCommandRelative="v"===o;else if("m"===o||"M"===o)this.curCommandType=S.MOVE_TO,this.curCommandRelative="m"===o;else if("l"===o||"L"===o)this.curCommandType=S.LINE_TO,this.curCommandRelative="l"===o;else if("c"===o||"C"===o)this.curCommandType=S.CURVE_TO,this.curCommandRelative="c"===o;else if("s"===o||"S"===o)this.curCommandType=S.SMOOTH_CURVE_TO,this.curCommandRelative="s"===o;else if("q"===o||"Q"===o)this.curCommandType=S.QUAD_TO,this.curCommandRelative="q"===o;else if("t"===o||"T"===o)this.curCommandType=S.SMOOTH_QUAD_TO,this.curCommandRelative="t"===o;else{if("a"!==o&&"A"!==o)throw new SyntaxError('Unexpected character "'+o+'" at index '+i+".");this.curCommandType=S.ARC,this.curCommandRelative="a"===o}else e.push({type:S.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=o,this.curNumberHasDecimal="."===o}else this.curNumber+=o,this.curNumberHasDecimal=!0;else this.curNumber+=o;else this.curNumber+=o,this.curNumberHasExp=!0;else this.curNumber+=o,this.curNumberHasExpDigits=this.curNumberHasExp}return e},e.prototype.transform=function(t){return Object.create(this,{parse:{value:function(e,r){void 0===r&&(r=[]);for(var n=0,i=Object.getPrototypeOf(this).parse.call(this,e);n<i.length;n++){var o=i[n],a=t(o);Array.isArray(a)?r.push.apply(r,a):r.push(a)}return r}}})},e}(y),S=function(t){function e(r){var n=t.call(this)||this;return n.commands="string"==typeof r?e.parse(r):r,n}return i(e,t),e.prototype.encode=function(){return e.encode(this.commands)},e.prototype.getBounds=function(){var t=f.CALCULATE_BOUNDS();return this.transform(t),t},e.prototype.transform=function(t){for(var e=[],r=0,n=this.commands;r<n.length;r++){var i=t(n[r]);Array.isArray(i)?e.push.apply(e,i):e.push(i)}return this.commands=e,this},e.encode=function(t){return o(t)},e.parse=function(t){var e=new w,r=[];return e.parse(t,r),e.finish(r),r},e.CLOSE_PATH=1,e.MOVE_TO=2,e.HORIZ_LINE_TO=4,e.VERT_LINE_TO=8,e.LINE_TO=16,e.CURVE_TO=32,e.SMOOTH_CURVE_TO=64,e.QUAD_TO=128,e.SMOOTH_QUAD_TO=256,e.ARC=512,e.LINE_COMMANDS=e.LINE_TO|e.HORIZ_LINE_TO|e.VERT_LINE_TO,e.DRAWING_COMMANDS=e.HORIZ_LINE_TO|e.VERT_LINE_TO|e.LINE_TO|e.CURVE_TO|e.SMOOTH_CURVE_TO|e.QUAD_TO|e.SMOOTH_QUAD_TO|e.ARC,e}(y),C=((m={})[S.MOVE_TO]=2,m[S.LINE_TO]=2,m[S.HORIZ_LINE_TO]=1,m[S.VERT_LINE_TO]=1,m[S.CLOSE_PATH]=0,m[S.QUAD_TO]=4,m[S.SMOOTH_QUAD_TO]=2,m[S.CURVE_TO]=6,m[S.SMOOTH_CURVE_TO]=4,m[S.ARC]=7,m)},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(5),i=r(9),o=r(36);t.exports=n?function(t,e,r){return i.f(t,e,o(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n,i,o,a=r(115),s=r(2),l=r(3),u=r(17),c=r(11),f=r(66),h=r(53),d=s.WeakMap;if(a){var p=new d,g=p.get,v=p.has,m=p.set;n=function(t,e){return m.call(p,t,e),e},i=function(t){return g.call(p,t)||{}},o=function(t){return v.call(p,t)}}else{var y=f("state");h[y]=!0,n=function(t,e){return u(t,y,e),e},i=function(t){return c(t,y)?t[y]:{}},o=function(t){return c(t,y)}}t.exports={set:n,get:i,has:o,enforce:function(t){return o(t)?i(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!l(e)||(r=i(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(54),i=r(11),o=r(121),a=r(9).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});i(e,t)||a(e,t,{value:o.f(t)})}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,e,r){var n=r(5),i=r(1),o=r(11),a=Object.defineProperty,s={},l=function(t){throw t};t.exports=function(t,e){if(o(s,t))return s[t];e||(e={});var r=[][t],u=!!o(e,"ACCESSORS")&&e.ACCESSORS,c=o(e,0)?e[0]:l,f=o(e,1)?e[1]:void 0;return s[t]=!!r&&!i((function(){if(u&&!n)return!0;var t={length:-1};u?a(t,1,{enumerable:!0,get:l}):t[1]=1,r.call(t,c,f)}))}},function(t,e,r){var n=r(51),i=r(16);t.exports=function(t){return n(i(t))}},function(t,e,r){var n=r(16),i=/"/g;t.exports=function(t,e,r,o){var a=String(n(t)),s="<"+e;return""!==r&&(s+=" "+r+'="'+String(o).replace(i,"&quot;")+'"'),s+">"+a+"</"+e+">"}},function(t,e,r){var n=r(1);t.exports=function(t){return n((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}))}},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e,r){var n=r(54),i=r(2),o=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(i[t]):n[t]&&n[t][e]||i[t]&&i[t][e]}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(3);t.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=!1},function(t,e,r){var n=r(11),i=r(10),o=r(66),a=r(95),s=o("IE_PROTO"),l=Object.prototype;t.exports=a?Object.getPrototypeOf:function(t){return t=i(t),n(t,s)?t[s]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?l:null}},function(t,e,r){var n=r(9).f,i=r(11),o=r(6)("toStringTag");t.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,r){var n,i=r(4),o=r(92),a=r(89),s=r(53),l=r(119),u=r(84),c=r(66),f=c("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"<\/script>"},p=function(){try{n=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;p=n?function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e}(n):((e=u("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F);for(var r=a.length;r--;)delete p.prototype[a[r]];return p()};s[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h.prototype=i(t),r=new h,h.prototype=null,r[f]=t):r=p(),void 0===e?r:o(r,e)}},function(t,e,r){"use strict";var n=r(1);t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},function(t,e,r){var n=r(4),i=r(20),o=r(6)("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||null==(r=n(a)[o])?e:i(r)}},function(t,e,r){"use strict";var n=r(0),i=r(2),o=r(5),a=r(110),s=r(8),l=r(83),u=r(40),c=r(36),f=r(17),h=r(7),d=r(148),p=r(149),g=r(28),v=r(11),m=r(62),y=r(3),b=r(32),x=r(45),w=r(41).f,S=r(150),C=r(12).forEach,M=r(47),k=r(9),T=r(13),A=r(18),O=r(80),L=A.get,E=A.set,N=k.f,R=T.f,I=Math.round,_=i.RangeError,P=l.ArrayBuffer,D=l.DataView,F=s.NATIVE_ARRAY_BUFFER_VIEWS,W=s.TYPED_ARRAY_TAG,H=s.TypedArray,z=s.TypedArrayPrototype,U=s.aTypedArrayConstructor,j=s.isTypedArray,B=function(t,e){for(var r=0,n=e.length,i=new(U(t))(n);n>r;)i[r]=e[r++];return i},V=function(t,e){N(t,e,{get:function(){return L(this)[e]}})},G=function(t){var e;return t instanceof P||"ArrayBuffer"==(e=m(t))||"SharedArrayBuffer"==e},q=function(t,e){return j(t)&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},Y=function(t,e){return q(t,e=g(e,!0))?c(2,t[e]):R(t,e)},X=function(t,e,r){return!(q(t,e=g(e,!0))&&y(r)&&v(r,"value"))||v(r,"get")||v(r,"set")||r.configurable||v(r,"writable")&&!r.writable||v(r,"enumerable")&&!r.enumerable?N(t,e,r):(t[e]=r.value,t)};o?(F||(T.f=Y,k.f=X,V(z,"buffer"),V(z,"byteOffset"),V(z,"byteLength"),V(z,"length")),n({target:"Object",stat:!0,forced:!F},{getOwnPropertyDescriptor:Y,defineProperty:X}),t.exports=function(t,e,r){var o=t.match(/\d+$/)[0]/8,s=t+(r?"Clamped":"")+"Array",l="get"+t,c="set"+t,g=i[s],v=g,m=v&&v.prototype,k={},T=function(t,e){N(t,e,{get:function(){return function(t,e){var r=L(t);return r.view[l](e*o+r.byteOffset,!0)}(this,e)},set:function(t){return function(t,e,n){var i=L(t);r&&(n=(n=I(n))<0?0:n>255?255:255&n),i.view[c](e*o+i.byteOffset,n,!0)}(this,e,t)},enumerable:!0})};F?a&&(v=e((function(t,e,r,n){return u(t,v,s),O(y(e)?G(e)?void 0!==n?new g(e,p(r,o),n):void 0!==r?new g(e,p(r,o)):new g(e):j(e)?B(v,e):S.call(v,e):new g(d(e)),t,v)})),x&&x(v,H),C(w(g),(function(t){t in v||f(v,t,g[t])})),v.prototype=m):(v=e((function(t,e,r,n){u(t,v,s);var i,a,l,c=0,f=0;if(y(e)){if(!G(e))return j(e)?B(v,e):S.call(v,e);i=e,f=p(r,o);var g=e.byteLength;if(void 0===n){if(g%o)throw _("Wrong length");if((a=g-f)<0)throw _("Wrong length")}else if((a=h(n)*o)+f>g)throw _("Wrong length");l=a/o}else l=d(e),i=new P(a=l*o);for(E(t,{buffer:i,byteOffset:f,byteLength:a,length:l,view:new D(i)});c<l;)T(t,c++)})),x&&x(v,H),m=v.prototype=b(z)),m.constructor!==v&&f(m,"constructor",v),W&&f(m,W,s),k[s]=v,n({global:!0,forced:v!=g,sham:!F},k),"BYTES_PER_ELEMENT"in v||f(v,"BYTES_PER_ELEMENT",o),"BYTES_PER_ELEMENT"in m||f(m,"BYTES_PER_ELEMENT",o),M(s)}):t.exports=function(){}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(27),i=Math.max,o=Math.min;t.exports=function(t,e){var r=n(t);return r<0?i(r+e,0):o(r,e)}},function(t,e,r){var n=r(20);t.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 0:return function(){return t.call(e)};case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},function(t,e,r){var n=r(6),i=r(32),o=r(9),a=n("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e){t.exports=function(t,e,r){if(!(t instanceof e))throw TypeError("Incorrect "+(r?r+" ":"")+"invocation");return t}},function(t,e,r){var n=r(117),i=r(89).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,i)}},function(t,e,r){var n=r(25);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(53),i=r(3),o=r(11),a=r(9).f,s=r(52),l=r(59),u=s("meta"),c=0,f=Object.isExtensible||function(){return!0},h=function(t){a(t,u,{value:{objectID:"O"+ ++c,weakData:{}}})},d=t.exports={REQUIRED:!1,fastKey:function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,u)){if(!f(t))return"F";if(!e)return"E";h(t)}return t[u].objectID},getWeakData:function(t,e){if(!o(t,u)){if(!f(t))return!0;if(!e)return!1;h(t)}return t[u].weakData},onFreeze:function(t){return l&&d.REQUIRED&&f(t)&&!o(t,u)&&h(t),t}};n[u]=!0},function(t,e,r){"use strict";var n=r(28),i=r(9),o=r(36);t.exports=function(t,e,r){var a=n(e);a in t?i.f(t,a,o(0,r)):t[a]=r}},function(t,e,r){var n=r(4),i=r(126);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(r,[]),e=r instanceof Array}catch(t){}return function(r,o){return n(r),i(o),e?t.call(r,o):r.__proto__=o,r}}():void 0)},function(t,e,r){var n=r(4),i=r(93),o=r(7),a=r(38),s=r(61),l=r(124),u=function(t,e){this.stopped=t,this.result=e};(t.exports=function(t,e,r,c,f){var h,d,p,g,v,m,y,b=a(e,r,c?2:1);if(f)h=t;else{if("function"!=typeof(d=s(t)))throw TypeError("Target is not iterable");if(i(d)){for(p=0,g=o(t.length);g>p;p++)if((v=c?b(n(y=t[p])[0],y[1]):b(t[p]))&&v instanceof u)return v;return new u(!1)}h=d.call(t)}for(m=h.next;!(y=m.call(h)).done;)if("object"==typeof(v=l(h,b,y.value,c))&&v&&v instanceof u)return v;return new u(!1)}).stop=function(t){return new u(!0,t)}},function(t,e,r){"use strict";var n=r(26),i=r(9),o=r(6),a=r(5),s=o("species");t.exports=function(t){var e=n(t),r=i.f;a&&e&&!e[s]&&r(e,s,{configurable:!0,get:function(){return this}})}},function(t,e,r){var n=r(16),i="["+r(79)+"]",o=RegExp("^"+i+i+"*"),a=RegExp(i+i+"*$"),s=function(t){return function(e){var r=String(n(e));return 1&t&&(r=r.replace(o,"")),2&t&&(r=r.replace(a,"")),r}};t.exports={start:s(1),end:s(2),trim:s(3)}},function(t,e,r){var n=r(14);t.exports=function(t,e,r){for(var i in e)n(t,i,e[i],r);return t}},function(t,e,r){var n;!function(i){var o=/^\s+/,a=/\s+$/,s=0,l=i.round,u=i.min,c=i.max,f=i.random;function h(t,e){if(e=e||{},(t=t||"")instanceof h)return t;if(!(this instanceof h))return new h(t,e);var r=function(t){var e={r:0,g:0,b:0},r=1,n=null,s=null,l=null,f=!1,h=!1;"string"==typeof t&&(t=function(t){t=t.replace(o,"").replace(a,"").toLowerCase();var e,r=!1;if(E[t])t=E[t],r=!0;else if("transparent"==t)return{r:0,g:0,b:0,a:0,format:"name"};if(e=B.rgb.exec(t))return{r:e[1],g:e[2],b:e[3]};if(e=B.rgba.exec(t))return{r:e[1],g:e[2],b:e[3],a:e[4]};if(e=B.hsl.exec(t))return{h:e[1],s:e[2],l:e[3]};if(e=B.hsla.exec(t))return{h:e[1],s:e[2],l:e[3],a:e[4]};if(e=B.hsv.exec(t))return{h:e[1],s:e[2],v:e[3]};if(e=B.hsva.exec(t))return{h:e[1],s:e[2],v:e[3],a:e[4]};if(e=B.hex8.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),a:H(e[4]),format:r?"name":"hex8"};if(e=B.hex6.exec(t))return{r:P(e[1]),g:P(e[2]),b:P(e[3]),format:r?"name":"hex"};if(e=B.hex4.exec(t))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),a:H(e[4]+""+e[4]),format:r?"name":"hex8"};if(e=B.hex3.exec(t))return{r:P(e[1]+""+e[1]),g:P(e[2]+""+e[2]),b:P(e[3]+""+e[3]),format:r?"name":"hex"};return!1}(t));"object"==typeof t&&(V(t.r)&&V(t.g)&&V(t.b)?(d=t.r,p=t.g,g=t.b,e={r:255*I(d,255),g:255*I(p,255),b:255*I(g,255)},f=!0,h="%"===String(t.r).substr(-1)?"prgb":"rgb"):V(t.h)&&V(t.s)&&V(t.v)?(n=F(t.s),s=F(t.v),e=function(t,e,r){t=6*I(t,360),e=I(e,100),r=I(r,100);var n=i.floor(t),o=t-n,a=r*(1-e),s=r*(1-o*e),l=r*(1-(1-o)*e),u=n%6;return{r:255*[r,s,a,a,l,r][u],g:255*[l,r,r,s,a,a][u],b:255*[a,a,l,r,r,s][u]}}(t.h,n,s),f=!0,h="hsv"):V(t.h)&&V(t.s)&&V(t.l)&&(n=F(t.s),l=F(t.l),e=function(t,e,r){var n,i,o;function a(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}if(t=I(t,360),e=I(e,100),r=I(r,100),0===e)n=i=o=r;else{var s=r<.5?r*(1+e):r+e-r*e,l=2*r-s;n=a(l,s,t+1/3),i=a(l,s,t),o=a(l,s,t-1/3)}return{r:255*n,g:255*i,b:255*o}}(t.h,n,l),f=!0,h="hsl"),t.hasOwnProperty("a")&&(r=t.a));var d,p,g;return r=R(r),{ok:f,format:t.format||h,r:u(255,c(e.r,0)),g:u(255,c(e.g,0)),b:u(255,c(e.b,0)),a:r}}(t);this._originalInput=t,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=e.format||r.format,this._gradientType=e.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=s++}function d(t,e,r){t=I(t,255),e=I(e,255),r=I(r,255);var n,i,o=c(t,e,r),a=u(t,e,r),s=(o+a)/2;if(o==a)n=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,l:s}}function p(t,e,r){t=I(t,255),e=I(e,255),r=I(r,255);var n,i,o=c(t,e,r),a=u(t,e,r),s=o,l=o-a;if(i=0===o?0:l/o,o==a)n=0;else{switch(o){case t:n=(e-r)/l+(e<r?6:0);break;case e:n=(r-t)/l+2;break;case r:n=(t-e)/l+4}n/=6}return{h:n,s:i,v:s}}function g(t,e,r,n){var i=[D(l(t).toString(16)),D(l(e).toString(16)),D(l(r).toString(16))];return n&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join("")}function v(t,e,r,n){return[D(W(n)),D(l(t).toString(16)),D(l(e).toString(16)),D(l(r).toString(16))].join("")}function m(t,e){e=0===e?0:e||10;var r=h(t).toHsl();return r.s-=e/100,r.s=_(r.s),h(r)}function y(t,e){e=0===e?0:e||10;var r=h(t).toHsl();return r.s+=e/100,r.s=_(r.s),h(r)}function b(t){return h(t).desaturate(100)}function x(t,e){e=0===e?0:e||10;var r=h(t).toHsl();return r.l+=e/100,r.l=_(r.l),h(r)}function w(t,e){e=0===e?0:e||10;var r=h(t).toRgb();return r.r=c(0,u(255,r.r-l(-e/100*255))),r.g=c(0,u(255,r.g-l(-e/100*255))),r.b=c(0,u(255,r.b-l(-e/100*255))),h(r)}function S(t,e){e=0===e?0:e||10;var r=h(t).toHsl();return r.l-=e/100,r.l=_(r.l),h(r)}function C(t,e){var r=h(t).toHsl(),n=(r.h+e)%360;return r.h=n<0?360+n:n,h(r)}function M(t){var e=h(t).toHsl();return e.h=(e.h+180)%360,h(e)}function k(t){var e=h(t).toHsl(),r=e.h;return[h(t),h({h:(r+120)%360,s:e.s,l:e.l}),h({h:(r+240)%360,s:e.s,l:e.l})]}function T(t){var e=h(t).toHsl(),r=e.h;return[h(t),h({h:(r+90)%360,s:e.s,l:e.l}),h({h:(r+180)%360,s:e.s,l:e.l}),h({h:(r+270)%360,s:e.s,l:e.l})]}function A(t){var e=h(t).toHsl(),r=e.h;return[h(t),h({h:(r+72)%360,s:e.s,l:e.l}),h({h:(r+216)%360,s:e.s,l:e.l})]}function O(t,e,r){e=e||6,r=r||30;var n=h(t).toHsl(),i=360/r,o=[h(t)];for(n.h=(n.h-(i*e>>1)+720)%360;--e;)n.h=(n.h+i)%360,o.push(h(n));return o}function L(t,e){e=e||6;for(var r=h(t).toHsv(),n=r.h,i=r.s,o=r.v,a=[],s=1/e;e--;)a.push(h({h:n,s:i,v:o})),o=(o+s)%1;return a}h.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var t=this.toRgb();return(299*t.r+587*t.g+114*t.b)/1e3},getLuminance:function(){var t,e,r,n=this.toRgb();return t=n.r/255,e=n.g/255,r=n.b/255,.2126*(t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4))+.7152*(e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:i.pow((r+.055)/1.055,2.4))},setAlpha:function(t){return this._a=R(t),this._roundA=l(100*this._a)/100,this},toHsv:function(){var t=p(this._r,this._g,this._b);return{h:360*t.h,s:t.s,v:t.v,a:this._a}},toHsvString:function(){var t=p(this._r,this._g,this._b),e=l(360*t.h),r=l(100*t.s),n=l(100*t.v);return 1==this._a?"hsv("+e+", "+r+"%, "+n+"%)":"hsva("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var t=d(this._r,this._g,this._b);return{h:360*t.h,s:t.s,l:t.l,a:this._a}},toHslString:function(){var t=d(this._r,this._g,this._b),e=l(360*t.h),r=l(100*t.s),n=l(100*t.l);return 1==this._a?"hsl("+e+", "+r+"%, "+n+"%)":"hsla("+e+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(t){return g(this._r,this._g,this._b,t)},toHexString:function(t){return"#"+this.toHex(t)},toHex8:function(t){return function(t,e,r,n,i){var o=[D(l(t).toString(16)),D(l(e).toString(16)),D(l(r).toString(16)),D(W(n))];if(i&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,t)},toHex8String:function(t){return"#"+this.toHex8(t)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*I(this._r,255))+"%",g:l(100*I(this._g,255))+"%",b:l(100*I(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*I(this._r,255))+"%, "+l(100*I(this._g,255))+"%, "+l(100*I(this._b,255))+"%)":"rgba("+l(100*I(this._r,255))+"%, "+l(100*I(this._g,255))+"%, "+l(100*I(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[g(this._r,this._g,this._b,!0)]||!1)},toFilter:function(t){var e="#"+v(this._r,this._g,this._b,this._a),r=e,n=this._gradientType?"GradientType = 1, ":"";if(t){var i=h(t);r="#"+v(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+e+",endColorstr="+r+")"},toString:function(t){var e=!!t;t=t||this._format;var r=!1,n=this._a<1&&this._a>=0;return e||!n||"hex"!==t&&"hex6"!==t&&"hex3"!==t&&"hex4"!==t&&"hex8"!==t&&"name"!==t?("rgb"===t&&(r=this.toRgbString()),"prgb"===t&&(r=this.toPercentageRgbString()),"hex"!==t&&"hex6"!==t||(r=this.toHexString()),"hex3"===t&&(r=this.toHexString(!0)),"hex4"===t&&(r=this.toHex8String(!0)),"hex8"===t&&(r=this.toHex8String()),"name"===t&&(r=this.toName()),"hsl"===t&&(r=this.toHslString()),"hsv"===t&&(r=this.toHsvString()),r||this.toHexString()):"name"===t&&0===this._a?this.toName():this.toRgbString()},clone:function(){return h(this.toString())},_applyModification:function(t,e){var r=t.apply(null,[this].concat([].slice.call(e)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(w,arguments)},darken:function(){return this._applyModification(S,arguments)},desaturate:function(){return this._applyModification(m,arguments)},saturate:function(){return this._applyModification(y,arguments)},greyscale:function(){return this._applyModification(b,arguments)},spin:function(){return this._applyModification(C,arguments)},_applyCombination:function(t,e){return t.apply(null,[this].concat([].slice.call(e)))},analogous:function(){return this._applyCombination(O,arguments)},complement:function(){return this._applyCombination(M,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(A,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(T,arguments)}},h.fromRatio=function(t,e){if("object"==typeof t){var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]="a"===n?t[n]:F(t[n]));t=r}return h(t,e)},h.equals=function(t,e){return!(!t||!e)&&h(t).toRgbString()==h(e).toRgbString()},h.random=function(){return h.fromRatio({r:f(),g:f(),b:f()})},h.mix=function(t,e,r){r=0===r?0:r||50;var n=h(t).toRgb(),i=h(e).toRgb(),o=r/100;return h({r:(i.r-n.r)*o+n.r,g:(i.g-n.g)*o+n.g,b:(i.b-n.b)*o+n.b,a:(i.a-n.a)*o+n.a})},h.readability=function(t,e){var r=h(t),n=h(e);return(i.max(r.getLuminance(),n.getLuminance())+.05)/(i.min(r.getLuminance(),n.getLuminance())+.05)},h.isReadable=function(t,e,r){var n,i,o=h.readability(t,e);switch(i=!1,(n=function(t){var e,r;e=((t=t||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(t.size||"small").toLowerCase(),"AA"!==e&&"AAA"!==e&&(e="AA");"small"!==r&&"large"!==r&&(r="small");return{level:e,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7}return i},h.mostReadable=function(t,e,r){var n,i,o,a,s=null,l=0;i=(r=r||{}).includeFallbackColors,o=r.level,a=r.size;for(var u=0;u<e.length;u++)(n=h.readability(t,e[u]))>l&&(l=n,s=h(e[u]));return h.isReadable(t,s,{level:o,size:a})||!i?s:(r.includeFallbackColors=!1,h.mostReadable(t,["#fff","#000"],r))};var E=h.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=h.hexNames=function(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[t[r]]=r);return e}(E);function R(t){return t=parseFloat(t),(isNaN(t)||t<0||t>1)&&(t=1),t}function I(t,e){(function(t){return"string"==typeof t&&-1!=t.indexOf(".")&&1===parseFloat(t)})(t)&&(t="100%");var r=function(t){return"string"==typeof t&&-1!=t.indexOf("%")}(t);return t=u(e,c(0,parseFloat(t))),r&&(t=parseInt(t*e,10)/100),i.abs(t-e)<1e-6?1:t%e/parseFloat(e)}function _(t){return u(1,c(0,t))}function P(t){return parseInt(t,16)}function D(t){return 1==t.length?"0"+t:""+t}function F(t){return t<=1&&(t=100*t+"%"),t}function W(t){return i.round(255*parseFloat(t)).toString(16)}function H(t){return P(t)/255}var z,U,j,B=(U="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",j="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+j),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+j),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+j),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function V(t){return!!B.CSS_UNIT.exec(t)}t.exports?t.exports=h:void 0===(n=function(){return h}.call(e,r,e,t))||(t.exports=n)}(Math)},function(t,e,r){var n=r(1),i=r(25),o="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?o.call(t,""):Object(t)}:Object},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports={}},function(t,e,r){var n=r(2);t.exports=n},function(t,e,r){var n=r(22),i=r(7),o=r(37),a=function(t){return function(e,r,a){var s,l=n(e),u=i(l.length),c=o(a,u);if(t&&r!=r){for(;u>c;)if((s=l[c++])!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===r)return t||c||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(1),i=/#|\.prototype\./,o=function(t,e){var r=s[a(t)];return r==u||r!=l&&("function"==typeof e?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},s=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";t.exports=o},function(t,e,r){var n=r(117),i=r(89);t.exports=Object.keys||function(t){return n(t,i)}},function(t,e,r){var n=r(3),i=r(42),o=r(6)("species");t.exports=function(t,e){var r;return i(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!i(r.prototype)?n(r)&&null===(r=r[o])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(1);t.exports=!n((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,e){t.exports={}},function(t,e,r){var n=r(62),i=r(60),o=r(6)("iterator");t.exports=function(t){if(null!=t)return t[o]||t["@@iterator"]||i[n(t)]}},function(t,e,r){var n=r(94),i=r(25),o=r(6)("toStringTag"),a="Arguments"==i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),o))?r:a?i(e):"Object"==(n=i(e))&&"function"==typeof e.callee?"Arguments":n}},function(t,e,r){var n=r(1),i=r(6),o=r(96),a=i("species");t.exports=function(t){return o>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){"use strict";var n=r(4);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,r){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);e.f=o?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},function(t,e,r){var n=r(87),i=r(52),o=n("keys");t.exports=function(t){return o[t]||(o[t]=i(t))}},function(t,e,r){"use strict";var n=r(29),i=r(2),o=r(1);t.exports=n||!o((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete i[t]}))},function(t,e,r){var n=r(6)("iterator"),i=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){i=!0}};a[n]=function(){return this},Array.from(a,(function(){throw 2}))}catch(t){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o={};o[n]=function(){return{next:function(){return{done:r=!0}}}},t(o)}catch(t){}return r}},function(t,e,r){var n=r(26);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n=r(20),i=r(10),o=r(51),a=r(7),s=function(t){return function(e,r,s,l){n(r);var u=i(e),c=o(u),f=a(u.length),h=t?f-1:0,d=t?-1:1;if(s<2)for(;;){if(h in c){l=c[h],h+=d;break}if(h+=d,t?h<0:f<=h)throw TypeError("Reduce of empty array with no initial value")}for(;t?h>=0:f>h;h+=d)h in c&&(l=r(l,c[h],h,u));return l}};t.exports={left:s(!1),right:s(!0)}},function(t,e,r){"use strict";var n=r(22),i=r(39),o=r(60),a=r(18),s=r(98),l=a.set,u=a.getterFor("Array Iterator");t.exports=s(Array,"Array",(function(t,e){l(this,{type:"Array Iterator",target:n(t),index:0,kind:e})}),(function(){var t=u(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==r?{value:n,done:!1}:"values"==r?{value:e[n],done:!1}:{value:[n,e[n]],done:!1}}),"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},function(t,e,r){var n=r(27),i=r(16),o=function(t){return function(e,r){var o,a,s=String(i(e)),l=n(r),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l))<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):a-56320+(o-55296<<10)+65536}};t.exports={codeAt:o(!1),charAt:o(!0)}},function(t,e,r){var n=r(3),i=r(25),o=r(6)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},function(t,e,r){"use strict";r(102);var n=r(14),i=r(1),o=r(6),a=r(75),s=r(17),l=o("species"),u=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),c="$0"==="a".replace(/./,"$0"),f=o("replace"),h=!!/./[f]&&""===/./[f]("a","$0"),d=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var r="ab".split(t);return 2!==r.length||"a"!==r[0]||"b"!==r[1]}));t.exports=function(t,e,r,f){var p=o(t),g=!i((function(){var e={};return e[p]=function(){return 7},7!=""[t](e)})),v=g&&!i((function(){var e=!1,r=/a/;return"split"===t&&((r={}).constructor={},r.constructor[l]=function(){return r},r.flags="",r[p]=/./[p]),r.exec=function(){return e=!0,null},r[p](""),!e}));if(!g||!v||"replace"===t&&(!u||!c||h)||"split"===t&&!d){var m=/./[p],y=r(p,""[t],(function(t,e,r,n,i){return e.exec===a?g&&!i?{done:!0,value:m.call(e,r,n)}:{done:!0,value:t.call(r,e,n)}:{done:!1}}),{REPLACE_KEEPS_$0:c,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:h}),b=y[0],x=y[1];n(String.prototype,t,b),n(RegExp.prototype,p,2==e?function(t,e){return x.call(t,this,e)}:function(t){return x.call(t,this)})}f&&s(RegExp.prototype[p],"sham",!0)}},function(t,e,r){"use strict";var n,i,o=r(64),a=r(76),s=RegExp.prototype.exec,l=String.prototype.replace,u=s,c=(n=/a/,i=/b*/g,s.call(n,"a"),s.call(i,"a"),0!==n.lastIndex||0!==i.lastIndex),f=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=void 0!==/()??/.exec("")[1];(c||h||f)&&(u=function(t){var e,r,n,i,a=this,u=f&&a.sticky,d=o.call(a),p=a.source,g=0,v=t;return u&&(-1===(d=d.replace("y","")).indexOf("g")&&(d+="g"),v=String(t).slice(a.lastIndex),a.lastIndex>0&&(!a.multiline||a.multiline&&"\n"!==t[a.lastIndex-1])&&(p="(?: "+p+")",v=" "+v,g++),r=new RegExp("^(?:"+p+")",d)),h&&(r=new RegExp("^"+p+"$(?!\\s)",d)),c&&(e=a.lastIndex),n=s.call(u?r:a,v),u?n?(n.input=n.input.slice(g),n[0]=n[0].slice(g),n.index=a.lastIndex,a.lastIndex+=n[0].length):a.lastIndex=0:c&&n&&(a.lastIndex=a.global?n.index+n[0].length:e),h&&n&&n.length>1&&l.call(n[0],r,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n}),t.exports=u},function(t,e,r){"use strict";var n=r(1);function i(t,e){return RegExp(t,e)}e.UNSUPPORTED_Y=n((function(){var t=i("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),e.BROKEN_CARET=n((function(){var t=i("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},function(t,e,r){"use strict";var n=r(72).charAt;t.exports=function(t,e,r){return e+(r?n(t,e).length:1)}},function(t,e,r){var n=r(25),i=r(75);t.exports=function(t,e){var r=t.exec;if("function"==typeof r){var o=r.call(t,e);if("object"!=typeof o)throw TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw TypeError("RegExp#exec called on incompatible receiver");return i.call(t,e)}},function(t,e){t.exports="\t\n\v\f\r                　\u2028\u2029\ufeff"},function(t,e,r){var n=r(3),i=r(45);t.exports=function(t,e,r){var o,a;return i&&"function"==typeof(o=e.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},function(t,e){var r=Math.expm1,n=Math.exp;t.exports=!r||r(10)>22025.465794806718||r(10)<22025.465794806718||-2e-17!=r(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:n(t)-1}:r},function(t,e,r){"use strict";var n=r(0),i=r(2),o=r(56),a=r(14),s=r(43),l=r(46),u=r(40),c=r(3),f=r(1),h=r(68),d=r(31),p=r(80);t.exports=function(t,e,r){var g=-1!==t.indexOf("Map"),v=-1!==t.indexOf("Weak"),m=g?"set":"add",y=i[t],b=y&&y.prototype,x=y,w={},S=function(t){var e=b[t];a(b,t,"add"==t?function(t){return e.call(this,0===t?0:t),this}:"delete"==t?function(t){return!(v&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return v&&!c(t)?void 0:e.call(this,0===t?0:t)}:"has"==t?function(t){return!(v&&!c(t))&&e.call(this,0===t?0:t)}:function(t,r){return e.call(this,0===t?0:t,r),this})};if(o(t,"function"!=typeof y||!(v||b.forEach&&!f((function(){(new y).entries().next()})))))x=r.getConstructor(e,t,g,m),s.REQUIRED=!0;else if(o(t,!0)){var C=new x,M=C[m](v?{}:-0,1)!=C,k=f((function(){C.has(1)})),T=h((function(t){new y(t)})),A=!v&&f((function(){for(var t=new y,e=5;e--;)t[m](e,e);return!t.has(-0)}));T||((x=e((function(e,r){u(e,x,t);var n=p(new y,e,x);return null!=r&&l(r,n[m],n,g),n}))).prototype=b,b.constructor=x),(k||A)&&(S("delete"),S("has"),g&&S("get")),(A||M)&&S(m),v&&b.clear&&delete b.clear}return w[t]=x,n({global:!0,forced:x!=y},w),d(x,t),v||r.setStrong(x,t,g),x}},function(t,e,r){"use strict";var n=r(2),i=r(5),o=r(109),a=r(17),s=r(49),l=r(1),u=r(40),c=r(27),f=r(7),h=r(148),d=r(319),p=r(30),g=r(45),v=r(41).f,m=r(9).f,y=r(97),b=r(31),x=r(18),w=x.get,S=x.set,C=n.ArrayBuffer,M=C,k=n.DataView,T=k&&k.prototype,A=Object.prototype,O=n.RangeError,L=d.pack,E=d.unpack,N=function(t){return[255&t]},R=function(t){return[255&t,t>>8&255]},I=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},_=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},P=function(t){return L(t,23,4)},D=function(t){return L(t,52,8)},F=function(t,e){m(t.prototype,e,{get:function(){return w(this)[e]}})},W=function(t,e,r,n){var i=h(r),o=w(t);if(i+e>o.byteLength)throw O("Wrong index");var a=w(o.buffer).bytes,s=i+o.byteOffset,l=a.slice(s,s+e);return n?l:l.reverse()},H=function(t,e,r,n,i,o){var a=h(r),s=w(t);if(a+e>s.byteLength)throw O("Wrong index");for(var l=w(s.buffer).bytes,u=a+s.byteOffset,c=n(+i),f=0;f<e;f++)l[u+f]=c[o?f:e-f-1]};if(o){if(!l((function(){C(1)}))||!l((function(){new C(-1)}))||l((function(){return new C,new C(1.5),new C(NaN),"ArrayBuffer"!=C.name}))){for(var z,U=(M=function(t){return u(this,M),new C(h(t))}).prototype=C.prototype,j=v(C),B=0;j.length>B;)(z=j[B++])in M||a(M,z,C[z]);U.constructor=M}g&&p(T)!==A&&g(T,A);var V=new k(new M(2)),G=T.setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||s(T,{setInt8:function(t,e){G.call(this,t,e<<24>>24)},setUint8:function(t,e){G.call(this,t,e<<24>>24)}},{unsafe:!0})}else M=function(t){u(this,M,"ArrayBuffer");var e=h(t);S(this,{bytes:y.call(new Array(e),0),byteLength:e}),i||(this.byteLength=e)},k=function(t,e,r){u(this,k,"DataView"),u(t,M,"DataView");var n=w(t).byteLength,o=c(e);if(o<0||o>n)throw O("Wrong offset");if(o+(r=void 0===r?n-o:f(r))>n)throw O("Wrong length");S(this,{buffer:t,byteLength:r,byteOffset:o}),i||(this.buffer=t,this.byteLength=r,this.byteOffset=o)},i&&(F(M,"byteLength"),F(k,"buffer"),F(k,"byteLength"),F(k,"byteOffset")),s(k.prototype,{getInt8:function(t){return W(this,1,t)[0]<<24>>24},getUint8:function(t){return W(this,1,t)[0]},getInt16:function(t){var e=W(this,2,t,arguments.length>1?arguments[1]:void 0);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=W(this,2,t,arguments.length>1?arguments[1]:void 0);return e[1]<<8|e[0]},getInt32:function(t){return _(W(this,4,t,arguments.length>1?arguments[1]:void 0))},getUint32:function(t){return _(W(this,4,t,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(t){return E(W(this,4,t,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(t){return E(W(this,8,t,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(t,e){H(this,1,t,N,e)},setUint8:function(t,e){H(this,1,t,N,e)},setInt16:function(t,e){H(this,2,t,R,e,arguments.length>2?arguments[2]:void 0)},setUint16:function(t,e){H(this,2,t,R,e,arguments.length>2?arguments[2]:void 0)},setInt32:function(t,e){H(this,4,t,I,e,arguments.length>2?arguments[2]:void 0)},setUint32:function(t,e){H(this,4,t,I,e,arguments.length>2?arguments[2]:void 0)},setFloat32:function(t,e){H(this,4,t,P,e,arguments.length>2?arguments[2]:void 0)},setFloat64:function(t,e){H(this,8,t,D,e,arguments.length>2?arguments[2]:void 0)}});b(M,"ArrayBuffer"),b(k,"DataView"),t.exports={ArrayBuffer:M,DataView:k}},function(t,e,r){var n=r(2),i=r(3),o=n.document,a=i(o)&&i(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},function(t,e,r){var n=r(2),i=r(17);t.exports=function(t,e){try{i(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(114),i=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return i.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(29),i=r(114);(t.exports=function(t,e){return i[t]||(i[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e,r){var n=r(26),i=r(41),o=r(90),a=r(4);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?e.concat(r(t)):e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(1);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){var n=r(5),i=r(9),o=r(4),a=r(57);t.exports=n?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=n.length,l=0;s>l;)i.f(t,r=n[l++],e[r]);return t}},function(t,e,r){var n=r(6),i=r(60),o=n("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||a[o]===t)}},function(t,e,r){var n={};n[r(6)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,r){var n=r(1);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,e,r){var n,i,o=r(2),a=r(69),s=o.process,l=s&&s.versions,u=l&&l.v8;u?i=(n=u.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(i=n[1]),t.exports=i&&+i},function(t,e,r){"use strict";var n=r(10),i=r(37),o=r(7);t.exports=function(t){for(var e=n(this),r=o(e.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,r),l=a>2?arguments[2]:void 0,u=void 0===l?r:i(l,r);u>s;)e[s++]=t;return e}},function(t,e,r){"use strict";var n=r(0),i=r(99),o=r(30),a=r(45),s=r(31),l=r(17),u=r(14),c=r(6),f=r(29),h=r(60),d=r(133),p=d.IteratorPrototype,g=d.BUGGY_SAFARI_ITERATORS,v=c("iterator"),m=function(){return this};t.exports=function(t,e,r,c,d,y,b){i(r,e,c);var x,w,S,C=function(t){if(t===d&&O)return O;if(!g&&t in T)return T[t];switch(t){case"keys":case"values":case"entries":return function(){return new r(this,t)}}return function(){return new r(this)}},M=e+" Iterator",k=!1,T=t.prototype,A=T[v]||T["@@iterator"]||d&&T[d],O=!g&&A||C(d),L="Array"==e&&T.entries||A;if(L&&(x=o(L.call(new t)),p!==Object.prototype&&x.next&&(f||o(x)===p||(a?a(x,p):"function"!=typeof x[v]&&l(x,v,m)),s(x,M,!0,!0),f&&(h[M]=m))),"values"==d&&A&&"values"!==A.name&&(k=!0,O=function(){return A.call(this)}),f&&!b||T[v]===O||l(T,v,O),h[e]=O,d)if(w={values:C("values"),keys:y?O:C("keys"),entries:C("entries")},b)for(S in w)(g||k||!(S in T))&&u(T,S,w[S]);else n({target:e,proto:!0,forced:g||k},w);return w}},function(t,e,r){"use strict";var n=r(133).IteratorPrototype,i=r(32),o=r(36),a=r(31),s=r(60),l=function(){return this};t.exports=function(t,e,r){var u=e+" Iterator";return t.prototype=i(n,{next:o(1,r)}),a(t,u,!1,!0),s[u]=l,t}},function(t,e,r){var n=r(73);t.exports=function(t){if(n(t))throw TypeError("The method doesn't accept regular expressions");return t}},function(t,e,r){var n=r(6)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,r){"use strict";var n=r(0),i=r(75);n({target:"RegExp",proto:!0,forced:/./.exec!==i},{exec:i})},function(t,e,r){var n=r(7),i=r(104),o=r(16),a=Math.ceil,s=function(t){return function(e,r,s){var l,u,c=String(o(e)),f=c.length,h=void 0===s?" ":String(s),d=n(r);return d<=f||""==h?c:(l=d-f,(u=i.call(h,a(l/h.length))).length>l&&(u=u.slice(0,l)),t?c+u:u+c)}};t.exports={start:s(!1),end:s(!0)}},function(t,e,r){"use strict";var n=r(27),i=r(16);t.exports="".repeat||function(t){var e=String(i(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Wrong number of repetitions");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},function(t,e,r){var n=r(1),i=r(79);t.exports=function(t){return n((function(){return!!i[t]()||"​᠎"!="​᠎"[t]()||i[t].name!==t}))}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,r){var n,i,o,a=r(2),s=r(1),l=r(25),u=r(38),c=r(119),f=r(84),h=r(142),d=a.location,p=a.setImmediate,g=a.clearImmediate,v=a.process,m=a.MessageChannel,y=a.Dispatch,b=0,x={},w=function(t){if(x.hasOwnProperty(t)){var e=x[t];delete x[t],e()}},S=function(t){return function(){w(t)}},C=function(t){w(t.data)},M=function(t){a.postMessage(t+"",d.protocol+"//"+d.host)};p&&g||(p=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return x[++b]=function(){("function"==typeof t?t:Function(t)).apply(void 0,e)},n(b),b},g=function(t){delete x[t]},"process"==l(v)?n=function(t){v.nextTick(S(t))}:y&&y.now?n=function(t){y.now(S(t))}:m&&!h?(o=(i=new m).port2,i.port1.onmessage=C,n=u(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(M)||"file:"===d.protocol?n="onreadystatechange"in f("script")?function(t){c.appendChild(f("script")).onreadystatechange=function(){c.removeChild(this),w(t)}}:function(t){setTimeout(S(t),0)}:(n=M,a.addEventListener("message",C,!1))),t.exports={set:p,clear:g}},function(t,e,r){"use strict";var n=r(20),i=function(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)};t.exports.f=function(t){return new i(t)}},function(t,e){t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},function(t,e,r){var n=r(2),i=r(1),o=r(68),a=r(8).NATIVE_ARRAY_BUFFER_VIEWS,s=n.ArrayBuffer,l=n.Int8Array;t.exports=!a||!i((function(){l(1)}))||!i((function(){new l(-1)}))||!o((function(t){new l,new l(null),new l(1.5),new l(t)}),!0)||i((function(){return 1!==new l(new s(2),1,void 0).length}))},function(t,e,r){t.exports=function(){"use strict";var t=navigator.userAgent,e=navigator.platform,r=/gecko\/\d/i.test(t),n=/MSIE \d/.test(t),i=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(t),o=/Edge\/(\d+)/.exec(t),a=n||i||o,s=a&&(n?document.documentMode||6:+(o||i)[1]),l=!o&&/WebKit\//.test(t),u=l&&/Qt\/\d+\.\d+/.test(t),c=!o&&/Chrome\//.test(t),f=/Opera\//.test(t),h=/Apple Computer/.test(navigator.vendor),d=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(t),p=/PhantomJS/.test(t),g=!o&&/AppleWebKit/.test(t)&&/Mobile\/\w+/.test(t),v=/Android/.test(t),m=g||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(t),y=g||/Mac/.test(e),b=/\bCrOS\b/.test(t),x=/win/i.test(e),w=f&&t.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(f=!1,l=!0);var S=y&&(u||f&&(null==w||w<12.11)),C=r||a&&s>=9;function M(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var k,T=function(t,e){var r=t.className,n=M(e).exec(r);if(n){var i=r.slice(n.index+n[0].length);t.className=r.slice(0,n.index)+(i?n[1]+i:"")}};function A(t){for(var e=t.childNodes.length;e>0;--e)t.removeChild(t.firstChild);return t}function O(t,e){return A(t).appendChild(e)}function L(t,e,r,n){var i=document.createElement(t);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof e)i.appendChild(document.createTextNode(e));else if(e)for(var o=0;o<e.length;++o)i.appendChild(e[o]);return i}function E(t,e,r,n){var i=L(t,e,r,n);return i.setAttribute("role","presentation"),i}function N(t,e){if(3==e.nodeType&&(e=e.parentNode),t.contains)return t.contains(e);do{if(11==e.nodeType&&(e=e.host),e==t)return!0}while(e=e.parentNode)}function R(){var t;try{t=document.activeElement}catch(e){t=document.body||null}for(;t&&t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function I(t,e){var r=t.className;M(e).test(r)||(t.className+=(r?" ":"")+e)}function _(t,e){for(var r=t.split(" "),n=0;n<r.length;n++)r[n]&&!M(r[n]).test(e)&&(e+=" "+r[n]);return e}k=document.createRange?function(t,e,r,n){var i=document.createRange();return i.setEnd(n||t,r),i.setStart(t,e),i}:function(t,e,r){var n=document.body.createTextRange();try{n.moveToElementText(t.parentNode)}catch(t){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",e),n};var P=function(t){t.select()};function D(t){var e=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,e)}}function F(t,e,r){for(var n in e||(e={}),t)!t.hasOwnProperty(n)||!1===r&&e.hasOwnProperty(n)||(e[n]=t[n]);return e}function W(t,e,r,n,i){null==e&&-1==(e=t.search(/[^\s\u00a0]/))&&(e=t.length);for(var o=n||0,a=i||0;;){var s=t.indexOf("\t",o);if(s<0||s>=e)return a+(e-o);a+=s-o,a+=r-a%r,o=s+1}}g?P=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:a&&(P=function(t){try{t.select()}catch(t){}});var H=function(){this.id=null,this.f=null,this.time=0,this.handler=D(this.onTimeout,this)};function z(t,e){for(var r=0;r<t.length;++r)if(t[r]==e)return r;return-1}H.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},H.prototype.set=function(t,e){this.f=e;var r=+new Date+t;(!this.id||r<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=r)};var U={toString:function(){return"CodeMirror.Pass"}},j={scroll:!1},B={origin:"*mouse"},V={origin:"+move"};function G(t,e,r){for(var n=0,i=0;;){var o=t.indexOf("\t",n);-1==o&&(o=t.length);var a=o-n;if(o==t.length||i+a>=e)return n+Math.min(a,e-i);if(i+=o-n,n=o+1,(i+=r-i%r)>=e)return n}}var q=[""];function Y(t){for(;q.length<=t;)q.push(X(q)+" ");return q[t]}function X(t){return t[t.length-1]}function Z(t,e){for(var r=[],n=0;n<t.length;n++)r[n]=e(t[n],n);return r}function K(){}function $(t,e){var r;return Object.create?r=Object.create(t):(K.prototype=t,r=new K),e&&F(e,r),r}var Q=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function J(t){return/\w/.test(t)||t>""&&(t.toUpperCase()!=t.toLowerCase()||Q.test(t))}function tt(t,e){return e?!!(e.source.indexOf("\\w")>-1&&J(t))||e.test(t):J(t)}function et(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e])return!1;return!0}var rt=/[\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 nt(t){return t.charCodeAt(0)>=768&&rt.test(t)}function it(t,e,r){for(;(r<0?e>0:e<t.length)&&nt(t.charAt(e));)e+=r;return e}function ot(t,e,r){for(var n=e>r?-1:1;;){if(e==r)return e;var i=(e+r)/2,o=n<0?Math.ceil(i):Math.floor(i);if(o==e)return t(o)?e:r;t(o)?r=o:e=o+n}}var at=null;function st(t,e,r){var n;at=null;for(var i=0;i<t.length;++i){var o=t[i];if(o.from<e&&o.to>e)return i;o.to==e&&(o.from!=o.to&&"before"==r?n=i:at=i),o.from==e&&(o.from!=o.to&&"before"!=r?n=i:at=i)}return null!=n?n:at}var lt=function(){var t=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,e=/[stwN]/,r=/[LRr]/,n=/[Lb1n]/,i=/[1n]/;function o(t,e,r){this.level=t,this.from=e,this.to=r}return function(a,s){var l="ltr"==s?"L":"R";if(0==a.length||"ltr"==s&&!t.test(a))return!1;for(var u,c=a.length,f=[],h=0;h<c;++h)f.push((u=a.charCodeAt(h))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":8204==u?"b":"L");for(var d=0,p=l;d<c;++d){var g=f[d];"m"==g?f[d]=p:p=g}for(var v=0,m=l;v<c;++v){var y=f[v];"1"==y&&"r"==m?f[v]="n":r.test(y)&&(m=y,"r"==y&&(f[v]="R"))}for(var b=1,x=f[0];b<c-1;++b){var w=f[b];"+"==w&&"1"==x&&"1"==f[b+1]?f[b]="1":","!=w||x!=f[b+1]||"1"!=x&&"n"!=x||(f[b]=x),x=w}for(var S=0;S<c;++S){var C=f[S];if(","==C)f[S]="N";else if("%"==C){var M=void 0;for(M=S+1;M<c&&"%"==f[M];++M);for(var k=S&&"!"==f[S-1]||M<c&&"1"==f[M]?"1":"N",T=S;T<M;++T)f[T]=k;S=M-1}}for(var A=0,O=l;A<c;++A){var L=f[A];"L"==O&&"1"==L?f[A]="L":r.test(L)&&(O=L)}for(var E=0;E<c;++E)if(e.test(f[E])){var N=void 0;for(N=E+1;N<c&&e.test(f[N]);++N);for(var R="L"==(E?f[E-1]:l),I=R==("L"==(N<c?f[N]:l))?R?"L":"R":l,_=E;_<N;++_)f[_]=I;E=N-1}for(var P,D=[],F=0;F<c;)if(n.test(f[F])){var W=F;for(++F;F<c&&n.test(f[F]);++F);D.push(new o(0,W,F))}else{var H=F,z=D.length,U="rtl"==s?1:0;for(++F;F<c&&"L"!=f[F];++F);for(var j=H;j<F;)if(i.test(f[j])){H<j&&(D.splice(z,0,new o(1,H,j)),z+=U);var B=j;for(++j;j<F&&i.test(f[j]);++j);D.splice(z,0,new o(2,B,j)),z+=U,H=j}else++j;H<F&&D.splice(z,0,new o(1,H,F))}return"ltr"==s&&(1==D[0].level&&(P=a.match(/^\s+/))&&(D[0].from=P[0].length,D.unshift(new o(0,0,P[0].length))),1==X(D).level&&(P=a.match(/\s+$/))&&(X(D).to-=P[0].length,D.push(new o(0,c-P[0].length,c)))),"rtl"==s?D.reverse():D}}();function ut(t,e){var r=t.order;return null==r&&(r=t.order=lt(t.text,e)),r}var ct=[],ft=function(t,e,r){if(t.addEventListener)t.addEventListener(e,r,!1);else if(t.attachEvent)t.attachEvent("on"+e,r);else{var n=t._handlers||(t._handlers={});n[e]=(n[e]||ct).concat(r)}};function ht(t,e){return t._handlers&&t._handlers[e]||ct}function dt(t,e,r){if(t.removeEventListener)t.removeEventListener(e,r,!1);else if(t.detachEvent)t.detachEvent("on"+e,r);else{var n=t._handlers,i=n&&n[e];if(i){var o=z(i,r);o>-1&&(n[e]=i.slice(0,o).concat(i.slice(o+1)))}}}function pt(t,e){var r=ht(t,e);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function gt(t,e,r){return"string"==typeof e&&(e={type:e,preventDefault:function(){this.defaultPrevented=!0}}),pt(t,r||e.type,t,e),wt(e)||e.codemirrorIgnore}function vt(t){var e=t._handlers&&t._handlers.cursorActivity;if(e)for(var r=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),n=0;n<e.length;++n)-1==z(r,e[n])&&r.push(e[n])}function mt(t,e){return ht(t,e).length>0}function yt(t){t.prototype.on=function(t,e){ft(this,t,e)},t.prototype.off=function(t,e){dt(this,t,e)}}function bt(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function xt(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function wt(t){return null!=t.defaultPrevented?t.defaultPrevented:0==t.returnValue}function St(t){bt(t),xt(t)}function Ct(t){return t.target||t.srcElement}function Mt(t){var e=t.which;return null==e&&(1&t.button?e=1:2&t.button?e=3:4&t.button&&(e=2)),y&&t.ctrlKey&&1==e&&(e=3),e}var kt,Tt,At=function(){if(a&&s<9)return!1;var t=L("div");return"draggable"in t||"dragDrop"in t}();function Ot(t){if(null==kt){var e=L("span","​");O(t,L("span",[e,document.createTextNode("x")])),0!=t.firstChild.offsetHeight&&(kt=e.offsetWidth<=1&&e.offsetHeight>2&&!(a&&s<8))}var r=kt?L("span","​"):L("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return r.setAttribute("cm-text",""),r}function Lt(t){if(null!=Tt)return Tt;var e=O(t,document.createTextNode("AخA")),r=k(e,0,1).getBoundingClientRect(),n=k(e,1,2).getBoundingClientRect();return A(t),!(!r||r.left==r.right)&&(Tt=n.right-r.right<3)}var Et,Nt=3!="\n\nb".split(/\n/).length?function(t){for(var e=0,r=[],n=t.length;e<=n;){var i=t.indexOf("\n",e);-1==i&&(i=t.length);var o=t.slice(e,"\r"==t.charAt(i-1)?i-1:i),a=o.indexOf("\r");-1!=a?(r.push(o.slice(0,a)),e+=a+1):(r.push(o),e=i+1)}return r}:function(t){return t.split(/\r\n?|\n/)},Rt=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)},It="oncopy"in(Et=L("div"))||(Et.setAttribute("oncopy","return;"),"function"==typeof Et.oncopy),_t=null,Pt={},Dt={};function Ft(t,e){arguments.length>2&&(e.dependencies=Array.prototype.slice.call(arguments,2)),Pt[t]=e}function Wt(t){if("string"==typeof t&&Dt.hasOwnProperty(t))t=Dt[t];else if(t&&"string"==typeof t.name&&Dt.hasOwnProperty(t.name)){var e=Dt[t.name];"string"==typeof e&&(e={name:e}),(t=$(e,t)).name=e.name}else{if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Wt("application/xml");if("string"==typeof t&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Wt("application/json")}return"string"==typeof t?{name:t}:t||{name:"null"}}function Ht(t,e){e=Wt(e);var r=Pt[e.name];if(!r)return Ht(t,"text/plain");var n=r(t,e);if(zt.hasOwnProperty(e.name)){var i=zt[e.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=e.name,e.helperType&&(n.helperType=e.helperType),e.modeProps)for(var a in e.modeProps)n[a]=e.modeProps[a];return n}var zt={};function Ut(t,e){F(e,zt.hasOwnProperty(t)?zt[t]:zt[t]={})}function jt(t,e){if(!0===e)return e;if(t.copyState)return t.copyState(e);var r={};for(var n in e){var i=e[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function Bt(t,e){for(var r;t.innerMode&&(r=t.innerMode(e))&&r.mode!=t;)e=r.state,t=r.mode;return r||{mode:t,state:e}}function Vt(t,e,r){return!t.startState||t.startState(e,r)}var Gt=function(t,e,r){this.pos=this.start=0,this.string=t,this.tabSize=e||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=r};function qt(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 r=t;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(e<o){r=i;break}e-=o}return r.lines[e]}function Yt(t,e,r){var n=[],i=e.line;return t.iter(e.line,r.line+1,(function(t){var o=t.text;i==r.line&&(o=o.slice(0,r.ch)),i==e.line&&(o=o.slice(e.ch)),n.push(o),++i})),n}function Xt(t,e,r){var n=[];return t.iter(e,r,(function(t){n.push(t.text)})),n}function Zt(t,e){var r=e-t.height;if(r)for(var n=t;n;n=n.parent)n.height+=r}function Kt(t){if(null==t.parent)return null;for(var e=t.parent,r=z(e.lines,t),n=e.parent;n;e=n,n=n.parent)for(var i=0;n.children[i]!=e;++i)r+=n.children[i].chunkSize();return r+e.first}function $t(t,e){var r=t.first;t:do{for(var n=0;n<t.children.length;++n){var i=t.children[n],o=i.height;if(e<o){t=i;continue t}e-=o,r+=i.chunkSize()}return r}while(!t.lines);for(var a=0;a<t.lines.length;++a){var s=t.lines[a].height;if(e<s)break;e-=s}return r+a}function Qt(t,e){return e>=t.first&&e<t.first+t.size}function Jt(t,e){return String(t.lineNumberFormatter(e+t.firstLineNumber))}function te(t,e,r){if(void 0===r&&(r=null),!(this instanceof te))return new te(t,e,r);this.line=t,this.ch=e,this.sticky=r}function ee(t,e){return t.line-e.line||t.ch-e.ch}function re(t,e){return t.sticky==e.sticky&&0==ee(t,e)}function ne(t){return te(t.line,t.ch)}function ie(t,e){return ee(t,e)<0?e:t}function oe(t,e){return ee(t,e)<0?t:e}function ae(t,e){return Math.max(t.first,Math.min(e,t.first+t.size-1))}function se(t,e){if(e.line<t.first)return te(t.first,0);var r=t.first+t.size-1;return e.line>r?te(r,qt(t,r).text.length):function(t,e){var r=t.ch;return null==r||r>e?te(t.line,e):r<0?te(t.line,0):t}(e,qt(t,e.line).text.length)}function le(t,e){for(var r=[],n=0;n<e.length;n++)r[n]=se(t,e[n]);return r}Gt.prototype.eol=function(){return this.pos>=this.string.length},Gt.prototype.sol=function(){return this.pos==this.lineStart},Gt.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Gt.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Gt.prototype.eat=function(t){var e=this.string.charAt(this.pos);if("string"==typeof t?e==t:e&&(t.test?t.test(e):t(e)))return++this.pos,e},Gt.prototype.eatWhile=function(t){for(var e=this.pos;this.eat(t););return this.pos>e},Gt.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},Gt.prototype.skipToEnd=function(){this.pos=this.string.length},Gt.prototype.skipTo=function(t){var e=this.string.indexOf(t,this.pos);if(e>-1)return this.pos=e,!0},Gt.prototype.backUp=function(t){this.pos-=t},Gt.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=W(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Gt.prototype.indentation=function(){return W(this.string,null,this.tabSize)-(this.lineStart?W(this.string,this.lineStart,this.tabSize):0)},Gt.prototype.match=function(t,e,r){if("string"!=typeof t){var n=this.string.slice(this.pos).match(t);return n&&n.index>0?null:(n&&!1!==e&&(this.pos+=n[0].length),n)}var i=function(t){return r?t.toLowerCase():t};if(i(this.string.substr(this.pos,t.length))==i(t))return!1!==e&&(this.pos+=t.length),!0},Gt.prototype.current=function(){return this.string.slice(this.start,this.pos)},Gt.prototype.hideFirstChars=function(t,e){this.lineStart+=t;try{return e()}finally{this.lineStart-=t}},Gt.prototype.lookAhead=function(t){var e=this.lineOracle;return e&&e.lookAhead(t)},Gt.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};var ue=function(t,e){this.state=t,this.lookAhead=e},ce=function(t,e,r,n){this.state=e,this.doc=t,this.line=r,this.maxLookAhead=n||0,this.baseTokens=null,this.baseTokenPos=1};function fe(t,e,r,n){var i=[t.state.modeGen],o={};xe(t,e.text,t.doc.mode,r,(function(t,e){return i.push(t,e)}),o,n);for(var a=r.state,s=function(n){r.baseTokens=i;var s=t.state.overlays[n],l=1,u=0;r.state=!0,xe(t,e.text,s.mode,r,(function(t,e){for(var r=l;u<t;){var n=i[l];n>t&&i.splice(l,1,t,i[l+1],n),l+=2,u=Math.min(t,n)}if(e)if(s.opaque)i.splice(r,l-r,t,"overlay "+e),l=r+2;else for(;r<l;r+=2){var o=i[r+1];i[r+1]=(o?o+" ":"")+"overlay "+e}}),o),r.state=a,r.baseTokens=null,r.baseTokenPos=1},l=0;l<t.state.overlays.length;++l)s(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function he(t,e,r){if(!e.styles||e.styles[0]!=t.state.modeGen){var n=de(t,Kt(e)),i=e.text.length>t.options.maxHighlightLength&&jt(t.doc.mode,n.state),o=fe(t,e,n);i&&(n.state=i),e.stateAfter=n.save(!i),e.styles=o.styles,o.classes?e.styleClasses=o.classes:e.styleClasses&&(e.styleClasses=null),r===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return e.styles}function de(t,e,r){var n=t.doc,i=t.display;if(!n.mode.startState)return new ce(n,!0,e);var o=function(t,e,r){for(var n,i,o=t.doc,a=r?-1:e-(t.doc.mode.innerMode?1e3:100),s=e;s>a;--s){if(s<=o.first)return o.first;var l=qt(o,s-1),u=l.stateAfter;if(u&&(!r||s+(u instanceof ue?u.lookAhead:0)<=o.modeFrontier))return s;var c=W(l.text,null,t.options.tabSize);(null==i||n>c)&&(i=s-1,n=c)}return i}(t,e,r),a=o>n.first&&qt(n,o-1).stateAfter,s=a?ce.fromSaved(n,a,o):new ce(n,Vt(n.mode),o);return n.iter(o,e,(function(r){pe(t,r.text,s);var n=s.line;r.stateAfter=n==e-1||n%5==0||n>=i.viewFrom&&n<i.viewTo?s.save():null,s.nextLine()})),r&&(n.modeFrontier=s.line),s}function pe(t,e,r,n){var i=t.doc.mode,o=new Gt(e,t.options.tabSize,r);for(o.start=o.pos=n||0,""==e&&ge(i,r.state);!o.eol();)ve(i,o,r.state),o.start=o.pos}function ge(t,e){if(t.blankLine)return t.blankLine(e);if(t.innerMode){var r=Bt(t,e);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function ve(t,e,r,n){for(var i=0;i<10;i++){n&&(n[0]=Bt(t,r).mode);var o=t.token(e,r);if(e.pos>e.start)return o}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,r){return e instanceof ue?new ce(t,jt(t.mode,e.state),r,e.lookAhead):new ce(t,jt(t.mode,e),r)},ce.prototype.save=function(t){var e=!1!==t?jt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ue(e,this.maxLookAhead):e};var me=function(t,e,r){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=e||null,this.state=r};function ye(t,e,r,n){var i,o,a=t.doc,s=a.mode,l=qt(a,(e=se(a,e)).line),u=de(t,e.line,r),c=new Gt(l.text,t.options.tabSize,u);for(n&&(o=[]);(n||c.pos<e.ch)&&!c.eol();)c.start=c.pos,i=ve(s,c,u.state),n&&o.push(new me(c,i,jt(a.mode,u.state)));return n?o:new me(c,i,u.state)}function be(t,e){if(t)for(;;){var r=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;t=t.slice(0,r.index)+t.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==e[n]?e[n]=r[2]:new RegExp("(?:^|\\s)"+r[2]+"(?:$|\\s)").test(e[n])||(e[n]+=" "+r[2])}return t}function xe(t,e,r,n,i,o,a){var s=r.flattenSpans;null==s&&(s=t.options.flattenSpans);var l,u=0,c=null,f=new Gt(e,t.options.tabSize,n),h=t.options.addModeClass&&[null];for(""==e&&be(ge(r,n.state),o);!f.eol();){if(f.pos>t.options.maxHighlightLength?(s=!1,a&&pe(t,e,n,f.pos),f.pos=e.length,l=null):l=be(ve(r,f,n.state,h),o),h){var d=h[0].name;d&&(l="m-"+(l?d+" "+l:d))}if(!s||c!=l){for(;u<f.start;)i(u=Math.min(f.start,u+5e3),c);c=l}f.start=f.pos}for(;u<f.pos;){var p=Math.min(f.pos,u+5e3);i(p,c),u=p}}var we=!1,Se=!1;function Ce(t,e,r){this.marker=t,this.from=e,this.to=r}function Me(t,e){if(t)for(var r=0;r<t.length;++r){var n=t[r];if(n.marker==e)return n}}function ke(t,e){for(var r,n=0;n<t.length;++n)t[n]!=e&&(r||(r=[])).push(t[n]);return r}function Te(t,e){if(e.full)return null;var r=Qt(t,e.from.line)&&qt(t,e.from.line).markedSpans,n=Qt(t,e.to.line)&&qt(t,e.to.line).markedSpans;if(!r&&!n)return null;var i=e.from.ch,o=e.to.ch,a=0==ee(e.from,e.to),s=function(t,e,r){var n;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker;if(null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e)||o.from==e&&"bookmark"==a.type&&(!r||!o.marker.insertLeft)){var s=null==o.to||(a.inclusiveRight?o.to>=e:o.to>e);(n||(n=[])).push(new Ce(a,o.from,s?null:o.to))}}return n}(r,i,a),l=function(t,e,r){var n;if(t)for(var i=0;i<t.length;++i){var o=t[i],a=o.marker;if(null==o.to||(a.inclusiveRight?o.to>=e:o.to>e)||o.from==e&&"bookmark"==a.type&&(!r||o.marker.insertLeft)){var s=null==o.from||(a.inclusiveLeft?o.from<=e:o.from<e);(n||(n=[])).push(new Ce(a,s?null:o.from-e,null==o.to?null:o.to-e))}}return n}(n,o,a),u=1==e.text.length,c=X(e.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f){var h=s[f];if(null==h.to){var d=Me(l,h.marker);d?u&&(h.to=null==d.to?null:d.to+c):h.to=i}}if(l)for(var p=0;p<l.length;++p){var g=l[p];null!=g.to&&(g.to+=c),null==g.from?Me(s,g.marker)||(g.from=c,u&&(s||(s=[])).push(g)):(g.from+=c,u&&(s||(s=[])).push(g))}s&&(s=Ae(s)),l&&l!=s&&(l=Ae(l));var v=[s];if(!u){var m,y=e.text.length-2;if(y>0&&s)for(var b=0;b<s.length;++b)null==s[b].to&&(m||(m=[])).push(new Ce(s[b].marker,null,null));for(var x=0;x<y;++x)v.push(m);v.push(l)}return v}function Ae(t){for(var e=0;e<t.length;++e){var r=t[e];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&t.splice(e--,1)}return t.length?t:null}function Oe(t){var e=t.markedSpans;if(e){for(var r=0;r<e.length;++r)e[r].marker.detachLine(t);t.markedSpans=null}}function Le(t,e){if(e){for(var r=0;r<e.length;++r)e[r].marker.attachLine(t);t.markedSpans=e}}function Ee(t){return t.inclusiveLeft?-1:0}function Ne(t){return t.inclusiveRight?1:0}function Re(t,e){var r=t.lines.length-e.lines.length;if(0!=r)return r;var n=t.find(),i=e.find(),o=ee(n.from,i.from)||Ee(t)-Ee(e);if(o)return-o;var a=ee(n.to,i.to)||Ne(t)-Ne(e);return a||e.id-t.id}function Ie(t,e){var r,n=Se&&t.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)(i=n[o]).marker.collapsed&&null==(e?i.from:i.to)&&(!r||Re(r,i.marker)<0)&&(r=i.marker);return r}function _e(t){return Ie(t,!0)}function Pe(t){return Ie(t,!1)}function De(t,e){var r,n=Se&&t.markedSpans;if(n)for(var i=0;i<n.length;++i){var o=n[i];o.marker.collapsed&&(null==o.from||o.from<e)&&(null==o.to||o.to>e)&&(!r||Re(r,o.marker)<0)&&(r=o.marker)}return r}function Fe(t,e,r,n,i){var o=qt(t,e),a=Se&&o.markedSpans;if(a)for(var s=0;s<a.length;++s){var l=a[s];if(l.marker.collapsed){var u=l.marker.find(0),c=ee(u.from,r)||Ee(l.marker)-Ee(i),f=ee(u.to,n)||Ne(l.marker)-Ne(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ee(u.to,r)>=0:ee(u.to,r)>0)||c>=0&&(l.marker.inclusiveRight&&i.inclusiveLeft?ee(u.from,n)<=0:ee(u.from,n)<0)))return!0}}}function We(t){for(var e;e=_e(t);)t=e.find(-1,!0).line;return t}function He(t,e){var r=qt(t,e),n=We(r);return r==n?e:Kt(n)}function ze(t,e){if(e>t.lastLine())return e;var r,n=qt(t,e);if(!Ue(t,n))return e;for(;r=Pe(n);)n=r.find(1,!0).line;return Kt(n)+1}function Ue(t,e){var r=Se&&e.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if((n=r[i]).marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&je(t,e,n))return!0}}function je(t,e,r){if(null==r.to){var n=r.marker.find(1,!0);return je(t,n.line,Me(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==e.text.length)return!0;for(var i=void 0,o=0;o<e.markedSpans.length;++o)if((i=e.markedSpans[o]).marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&je(t,e,i))return!0}function Be(t){for(var e=0,r=(t=We(t)).parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==t)break;e+=i.height}for(var o=r.parent;o;o=(r=o).parent)for(var a=0;a<o.children.length;++a){var s=o.children[a];if(s==r)break;e+=s.height}return e}function Ve(t){if(0==t.height)return 0;for(var e,r=t.text.length,n=t;e=_e(n);){var i=e.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=t;e=Pe(n);){var o=e.find(0,!0);r-=n.text.length-o.from.ch,r+=(n=o.to.line).text.length-o.to.ch}return r}function Ge(t){var e=t.display,r=t.doc;e.maxLine=qt(r,r.first),e.maxLineLength=Ve(e.maxLine),e.maxLineChanged=!0,r.iter((function(t){var r=Ve(t);r>e.maxLineLength&&(e.maxLineLength=r,e.maxLine=t)}))}var qe=function(t,e,r){this.text=t,Le(this,e),this.height=r?r(this):1};function Ye(t){t.parent=null,Oe(t)}qe.prototype.lineNo=function(){return Kt(this)},yt(qe);var Xe={},Ze={};function Ke(t,e){if(!t||/^\s*$/.test(t))return null;var r=e.addModeClass?Ze:Xe;return r[t]||(r[t]=t.replace(/\S+/g,"cm-$&"))}function $e(t,e){var r=E("span",null,null,l?"padding-right: .1px":null),n={pre:E("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};e.measure={};for(var i=0;i<=(e.rest?e.rest.length:0);i++){var o=i?e.rest[i-1]:e.line,a=void 0;n.pos=0,n.addToken=Je,Lt(t.display.measure)&&(a=ut(o,t.doc.direction))&&(n.addToken=tr(n.addToken,a)),n.map=[],rr(o,n,he(t,o,e!=t.display.externalMeasured&&Kt(o))),o.styleClasses&&(o.styleClasses.bgClass&&(n.bgClass=_(o.styleClasses.bgClass,n.bgClass||"")),o.styleClasses.textClass&&(n.textClass=_(o.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Ot(t.display.measure))),0==i?(e.measure.map=n.map,e.measure.cache={}):((e.measure.maps||(e.measure.maps=[])).push(n.map),(e.measure.caches||(e.measure.caches=[])).push({}))}if(l){var s=n.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return pt(t,"renderLine",t,e.line,n.pre),n.pre.className&&(n.textClass=_(n.pre.className,n.textClass||"")),n}function Qe(t){var e=L("span","•","cm-invalidchar");return e.title="\\u"+t.charCodeAt(0).toString(16),e.setAttribute("aria-label",e.title),e}function Je(t,e,r,n,i,o,l){if(e){var u,c=t.splitSpaces?function(t,e){if(t.length>1&&!/  /.test(t))return t;for(var r=e,n="",i=0;i<t.length;i++){var o=t.charAt(i);" "!=o||!r||i!=t.length-1&&32!=t.charCodeAt(i+1)||(o=" "),n+=o,r=" "==o}return n}(e,t.trailingSpace):e,f=t.cm.state.specialChars,h=!1;if(f.test(e)){u=document.createDocumentFragment();for(var d=0;;){f.lastIndex=d;var p=f.exec(e),g=p?p.index-d:e.length-d;if(g){var v=document.createTextNode(c.slice(d,d+g));a&&s<9?u.appendChild(L("span",[v])):u.appendChild(v),t.map.push(t.pos,t.pos+g,v),t.col+=g,t.pos+=g}if(!p)break;d+=g+1;var m=void 0;if("\t"==p[0]){var y=t.cm.options.tabSize,b=y-t.col%y;(m=u.appendChild(L("span",Y(b),"cm-tab"))).setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),t.col+=b}else"\r"==p[0]||"\n"==p[0]?((m=u.appendChild(L("span","\r"==p[0]?"␍":"␤","cm-invalidchar"))).setAttribute("cm-text",p[0]),t.col+=1):((m=t.cm.options.specialCharPlaceholder(p[0])).setAttribute("cm-text",p[0]),a&&s<9?u.appendChild(L("span",[m])):u.appendChild(m),t.col+=1);t.map.push(t.pos,t.pos+1,m),t.pos++}}else t.col+=e.length,u=document.createTextNode(c),t.map.push(t.pos,t.pos+e.length,u),a&&s<9&&(h=!0),t.pos+=e.length;if(t.trailingSpace=32==c.charCodeAt(e.length-1),r||n||i||h||o){var x=r||"";n&&(x+=n),i&&(x+=i);var w=L("span",[u],x,o);if(l)for(var S in l)l.hasOwnProperty(S)&&"style"!=S&&"class"!=S&&w.setAttribute(S,l[S]);return t.content.appendChild(w)}t.content.appendChild(u)}}function tr(t,e){return function(r,n,i,o,a,s,l){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+n.length;;){for(var f=void 0,h=0;h<e.length&&!((f=e[h]).to>u&&f.from<=u);h++);if(f.to>=c)return t(r,n,i,o,a,s,l);t(r,n.slice(0,f.to-u),i,o,null,s,l),o=null,n=n.slice(f.to-u),u=f.to}}}function er(t,e,r,n){var i=!n&&r.widgetNode;i&&t.map.push(t.pos,t.pos+e,i),!n&&t.cm.display.input.needsContentAttribute&&(i||(i=t.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(t.cm.display.input.setUneditable(i),t.content.appendChild(i)),t.pos+=e,t.trailingSpace=!1}function rr(t,e,r){var n=t.markedSpans,i=t.text,o=0;if(n)for(var a,s,l,u,c,f,h,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){l=u=c=s="",h=null,f=null,m=1/0;for(var y=[],b=void 0,x=0;x<n.length;++x){var w=n[x],S=w.marker;if("bookmark"==S.type&&w.from==p&&S.widgetNode)y.push(S);else if(w.from<=p&&(null==w.to||w.to>p||S.collapsed&&w.to==p&&w.from==p)){if(null!=w.to&&w.to!=p&&m>w.to&&(m=w.to,u=""),S.className&&(l+=" "+S.className),S.css&&(s=(s?s+";":"")+S.css),S.startStyle&&w.from==p&&(c+=" "+S.startStyle),S.endStyle&&w.to==m&&(b||(b=[])).push(S.endStyle,w.to),S.title&&((h||(h={})).title=S.title),S.attributes)for(var C in S.attributes)(h||(h={}))[C]=S.attributes[C];S.collapsed&&(!f||Re(f.marker,S)<0)&&(f=w)}else w.from>p&&m>w.from&&(m=w.from)}if(b)for(var M=0;M<b.length;M+=2)b[M+1]==m&&(u+=" "+b[M]);if(!f||f.from==p)for(var k=0;k<y.length;++k)er(e,0,y[k]);if(f&&(f.from||0)==p){if(er(e,(null==f.to?d+1:f.to)-p,f.marker,null==f.from),null==f.to)return;f.to==p&&(f=!1)}}if(p>=d)break;for(var T=Math.min(d,m);;){if(v){var A=p+v.length;if(!f){var O=A>T?v.slice(0,T-p):v;e.addToken(e,O,a?a+l:l,c,p+O.length==m?u:"",s,h)}if(A>=T){v=v.slice(T-p),p=T;break}p=A,c=""}v=i.slice(o,o=r[g++]),a=Ke(r[g++],e.cm.options)}}else for(var L=1;L<r.length;L+=2)e.addToken(e,i.slice(o,o=r[L]),Ke(r[L+1],e.cm.options))}function nr(t,e,r){this.line=e,this.rest=function(t){for(var e,r;e=Pe(t);)t=e.find(1,!0).line,(r||(r=[])).push(t);return r}(e),this.size=this.rest?Kt(X(this.rest))-r+1:1,this.node=this.text=null,this.hidden=Ue(t,e)}function ir(t,e,r){for(var n,i=[],o=e;o<r;o=n){var a=new nr(t.doc,qt(t.doc,o),o);n=o+a.size,i.push(a)}return i}var or=null,ar=null;function sr(t,e){var r=ht(t,e);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);or?n=or.delayedCallbacks:ar?n=ar:(n=ar=[],setTimeout(lr,0));for(var o=function(t){n.push((function(){return r[t].apply(null,i)}))},a=0;a<r.length;++a)o(a)}}function lr(){var t=ar;ar=null;for(var e=0;e<t.length;++e)t[e]()}function ur(t,e,r,n){for(var i=0;i<e.changes.length;i++){var o=e.changes[i];"text"==o?hr(t,e):"gutter"==o?pr(t,e,r,n):"class"==o?dr(t,e):"widget"==o&&gr(t,e,n)}e.changes=null}function cr(t){return t.node==t.text&&(t.node=L("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),a&&s<8&&(t.node.style.zIndex=2)),t.node}function fr(t,e){var r=t.display.externalMeasured;return r&&r.line==e.line?(t.display.externalMeasured=null,e.measure=r.measure,r.built):$e(t,e)}function hr(t,e){var r=e.text.className,n=fr(t,e);e.text==e.node&&(e.node=n.pre),e.text.parentNode.replaceChild(n.pre,e.text),e.text=n.pre,n.bgClass!=e.bgClass||n.textClass!=e.textClass?(e.bgClass=n.bgClass,e.textClass=n.textClass,dr(t,e)):r&&(e.text.className=r)}function dr(t,e){!function(t,e){var r=e.bgClass?e.bgClass+" "+(e.line.bgClass||""):e.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),e.background)r?e.background.className=r:(e.background.parentNode.removeChild(e.background),e.background=null);else if(r){var n=cr(e);e.background=n.insertBefore(L("div",null,r),n.firstChild),t.display.input.setUneditable(e.background)}}(t,e),e.line.wrapClass?cr(e).className=e.line.wrapClass:e.node!=e.text&&(e.node.className="");var r=e.textClass?e.textClass+" "+(e.line.textClass||""):e.line.textClass;e.text.className=r||""}function pr(t,e,r,n){if(e.gutter&&(e.node.removeChild(e.gutter),e.gutter=null),e.gutterBackground&&(e.node.removeChild(e.gutterBackground),e.gutterBackground=null),e.line.gutterClass){var i=cr(e);e.gutterBackground=L("div",null,"CodeMirror-gutter-background "+e.line.gutterClass,"left: "+(t.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px; width: "+n.gutterTotalWidth+"px"),t.display.input.setUneditable(e.gutterBackground),i.insertBefore(e.gutterBackground,e.text)}var o=e.line.gutterMarkers;if(t.options.lineNumbers||o){var a=cr(e),s=e.gutter=L("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?n.fixedPos:-n.gutterTotalWidth)+"px");if(t.display.input.setUneditable(s),a.insertBefore(s,e.text),e.line.gutterClass&&(s.className+=" "+e.line.gutterClass),!t.options.lineNumbers||o&&o["CodeMirror-linenumbers"]||(e.lineNumber=s.appendChild(L("div",Jt(t.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+n.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),o)for(var l=0;l<t.display.gutterSpecs.length;++l){var u=t.display.gutterSpecs[l].className,c=o.hasOwnProperty(u)&&o[u];c&&s.appendChild(L("div",[c],"CodeMirror-gutter-elt","left: "+n.gutterLeft[u]+"px; width: "+n.gutterWidth[u]+"px"))}}}function gr(t,e,r){e.alignable&&(e.alignable=null);for(var n=M("CodeMirror-linewidget"),i=e.node.firstChild,o=void 0;i;i=o)o=i.nextSibling,n.test(i.className)&&e.node.removeChild(i);mr(t,e,r)}function vr(t,e,r,n){var i=fr(t,e);return e.text=e.node=i.pre,i.bgClass&&(e.bgClass=i.bgClass),i.textClass&&(e.textClass=i.textClass),dr(t,e),pr(t,e,r,n),mr(t,e,n),e.node}function mr(t,e,r){if(yr(t,e.line,e,r,!0),e.rest)for(var n=0;n<e.rest.length;n++)yr(t,e.rest[n],e,r,!1)}function yr(t,e,r,n,i){if(e.widgets)for(var o=cr(r),a=0,s=e.widgets;a<s.length;++a){var l=s[a],u=L("div",[l.node],"CodeMirror-linewidget"+(l.className?" "+l.className:""));l.handleMouseEvents||u.setAttribute("cm-ignore-events","true"),br(l,u,r,n),t.display.input.setUneditable(u),i&&l.above?o.insertBefore(u,r.gutter||r.text):o.appendChild(u),sr(l,"redraw")}}function br(t,e,r,n){if(t.noHScroll){(r.alignable||(r.alignable=[])).push(e);var i=n.wrapperWidth;e.style.left=n.fixedPos+"px",t.coverGutter||(i-=n.gutterTotalWidth,e.style.paddingLeft=n.gutterTotalWidth+"px"),e.style.width=i+"px"}t.coverGutter&&(e.style.zIndex=5,e.style.position="relative",t.noHScroll||(e.style.marginLeft=-n.gutterTotalWidth+"px"))}function xr(t){if(null!=t.height)return t.height;var e=t.doc.cm;if(!e)return 0;if(!N(document.body,t.node)){var r="position: relative;";t.coverGutter&&(r+="margin-left: -"+e.display.gutters.offsetWidth+"px;"),t.noHScroll&&(r+="width: "+e.display.wrapper.clientWidth+"px;"),O(e.display.measure,L("div",[t.node],null,r))}return t.height=t.node.parentNode.offsetHeight}function wr(t,e){for(var r=Ct(e);r!=t.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==t.sizer&&r!=t.mover)return!0}function Sr(t){return t.lineSpace.offsetTop}function Cr(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function Mr(t){if(t.cachedPaddingH)return t.cachedPaddingH;var e=O(t.measure,L("pre","x","CodeMirror-line-like")),r=window.getComputedStyle?window.getComputedStyle(e):e.currentStyle,n={left:parseInt(r.paddingLeft),right:parseInt(r.paddingRight)};return isNaN(n.left)||isNaN(n.right)||(t.cachedPaddingH=n),n}function kr(t){return 50-t.display.nativeBarWidth}function Tr(t){return t.display.scroller.clientWidth-kr(t)-t.display.barWidth}function Ar(t){return t.display.scroller.clientHeight-kr(t)-t.display.barHeight}function Or(t,e,r){if(t.line==e)return{map:t.measure.map,cache:t.measure.cache};for(var n=0;n<t.rest.length;n++)if(t.rest[n]==e)return{map:t.measure.maps[n],cache:t.measure.caches[n]};for(var i=0;i<t.rest.length;i++)if(Kt(t.rest[i])>r)return{map:t.measure.maps[i],cache:t.measure.caches[i],before:!0}}function Lr(t,e,r,n){return Rr(t,Nr(t,e),r,n)}function Er(t,e){if(e>=t.display.viewFrom&&e<t.display.viewTo)return t.display.view[cn(t,e)];var r=t.display.externalMeasured;return r&&e>=r.lineN&&e<r.lineN+r.size?r:void 0}function Nr(t,e){var r=Kt(e),n=Er(t,r);n&&!n.text?n=null:n&&n.changes&&(ur(t,n,r,on(t)),t.curOp.forceUpdate=!0),n||(n=function(t,e){var r=Kt(e=We(e)),n=t.display.externalMeasured=new nr(t.doc,e,r);n.lineN=r;var i=n.built=$e(t,n);return n.text=i.pre,O(t.display.lineMeasure,i.pre),n}(t,e));var i=Or(n,e,r);return{line:e,view:n,rect:null,map:i.map,cache:i.cache,before:i.before,hasHeights:!1}}function Rr(t,e,r,n,i){e.before&&(r=-1);var o,l=r+(n||"");return e.cache.hasOwnProperty(l)?o=e.cache[l]:(e.rect||(e.rect=e.view.text.getBoundingClientRect()),e.hasHeights||(function(t,e,r){var n=t.options.lineWrapping,i=n&&Tr(t);if(!e.measure.heights||n&&e.measure.width!=i){var o=e.measure.heights=[];if(n){e.measure.width=i;for(var a=e.text.firstChild.getClientRects(),s=0;s<a.length-1;s++){var l=a[s],u=a[s+1];Math.abs(l.bottom-u.bottom)>2&&o.push((l.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}(t,e.view,e.rect),e.hasHeights=!0),(o=function(t,e,r,n){var i,o=Pr(e.map,r,n),l=o.node,u=o.start,c=o.end,f=o.collapse;if(3==l.nodeType){for(var h=0;h<4;h++){for(;u&&nt(e.line.text.charAt(o.coverStart+u));)--u;for(;o.coverStart+c<o.coverEnd&&nt(e.line.text.charAt(o.coverStart+c));)++c;if((i=a&&s<9&&0==u&&c==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Dr(k(l,u,c).getClientRects(),n)).left||i.right||0==u)break;c=u,u-=1,f="right"}a&&s<11&&(i=function(t,e){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(t){if(null!=_t)return _t;var e=O(t,L("span","x")),r=e.getBoundingClientRect(),n=k(e,0,1).getBoundingClientRect();return _t=Math.abs(r.left-n.left)>1}(t))return e;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:e.left*r,right:e.right*r,top:e.top*n,bottom:e.bottom*n}}(t.display.measure,i))}else{var d;u>0&&(f=n="right"),i=t.options.lineWrapping&&(d=l.getClientRects()).length>1?d["right"==n?d.length-1:0]:l.getBoundingClientRect()}if(a&&s<9&&!u&&(!i||!i.left&&!i.right)){var p=l.parentNode.getClientRects()[0];i=p?{left:p.left,right:p.left+nn(t.display),top:p.top,bottom:p.bottom}:_r}for(var g=i.top-e.rect.top,v=i.bottom-e.rect.top,m=(g+v)/2,y=e.view.measure.heights,b=0;b<y.length-1&&!(m<y[b]);b++);var x=b?y[b-1]:0,w=y[b],S={left:("right"==f?i.right:i.left)-e.rect.left,right:("left"==f?i.left:i.right)-e.rect.left,top:x,bottom:w};return i.left||i.right||(S.bogus=!0),t.options.singleCursorHeightPerLine||(S.rtop=g,S.rbottom=v),S}(t,e,r,n)).bogus||(e.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}var Ir,_r={left:0,right:0,top:0,bottom:0};function Pr(t,e,r){for(var n,i,o,a,s,l,u=0;u<t.length;u+=3)if(s=t[u],l=t[u+1],e<s?(i=0,o=1,a="left"):e<l?o=1+(i=e-s):(u==t.length-3||e==l&&t[u+3]>e)&&(i=(o=l-s)-1,e>=l&&(a="right")),null!=i){if(n=t[u+2],s==l&&r==(n.insertLeft?"left":"right")&&(a=r),"left"==r&&0==i)for(;u&&t[u-2]==t[u-3]&&t[u-1].insertLeft;)n=t[2+(u-=3)],a="left";if("right"==r&&i==l-s)for(;u<t.length-3&&t[u+3]==t[u+4]&&!t[u+5].insertLeft;)n=t[(u+=3)+2],a="right";break}return{node:n,start:i,end:o,collapse:a,coverStart:s,coverEnd:l}}function Dr(t,e){var r=_r;if("left"==e)for(var n=0;n<t.length&&(r=t[n]).left==r.right;n++);else for(var i=t.length-1;i>=0&&(r=t[i]).left==r.right;i--);return r}function Fr(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var e=0;e<t.rest.length;e++)t.measure.caches[e]={}}function Wr(t){t.display.externalMeasure=null,A(t.display.lineMeasure);for(var e=0;e<t.display.view.length;e++)Fr(t.display.view[e])}function Hr(t){Wr(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function zr(){return c&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Ur(){return c&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function jr(t){var e=0;if(t.widgets)for(var r=0;r<t.widgets.length;++r)t.widgets[r].above&&(e+=xr(t.widgets[r]));return e}function Br(t,e,r,n,i){if(!i){var o=jr(e);r.top+=o,r.bottom+=o}if("line"==n)return r;n||(n="local");var a=Be(e);if("local"==n?a+=Sr(t.display):a-=t.display.viewOffset,"page"==n||"window"==n){var s=t.display.lineSpace.getBoundingClientRect();a+=s.top+("window"==n?0:Ur());var l=s.left+("window"==n?0:zr());r.left+=l,r.right+=l}return r.top+=a,r.bottom+=a,r}function Vr(t,e,r){if("div"==r)return e;var n=e.left,i=e.top;if("page"==r)n-=zr(),i-=Ur();else if("local"==r||!r){var o=t.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var a=t.display.lineSpace.getBoundingClientRect();return{left:n-a.left,top:i-a.top}}function Gr(t,e,r,n,i){return n||(n=qt(t.doc,e.line)),Br(t,n,Lr(t,n,e.ch,i),r)}function qr(t,e,r,n,i,o){function a(e,a){var s=Rr(t,i,e,a?"right":"left",o);return a?s.left=s.right:s.right=s.left,Br(t,n,s,r)}n=n||qt(t.doc,e.line),i||(i=Nr(t,n));var s=ut(n,t.doc.direction),l=e.ch,u=e.sticky;if(l>=n.text.length?(l=n.text.length,u="before"):l<=0&&(l=0,u="after"),!s)return a("before"==u?l-1:l,"before"==u);function c(t,e,r){return a(r?t-1:t,1==s[e].level!=r)}var f=st(s,l,u),h=at,d=c(l,f,"before"==u);return null!=h&&(d.other=c(l,h,"before"!=u)),d}function Yr(t,e){var r=0;e=se(t.doc,e),t.options.lineWrapping||(r=nn(t.display)*e.ch);var n=qt(t.doc,e.line),i=Be(n)+Sr(t.display);return{left:r,right:r,top:i,bottom:i+n.height}}function Xr(t,e,r,n,i){var o=te(t,e,r);return o.xRel=i,n&&(o.outside=n),o}function Zr(t,e,r){var n=t.doc;if((r+=t.display.viewOffset)<0)return Xr(n.first,0,null,-1,-1);var i=$t(n,r),o=n.first+n.size-1;if(i>o)return Xr(n.first+n.size-1,qt(n,o).text.length,null,1,1);e<0&&(e=0);for(var a=qt(n,i);;){var s=Jr(t,a,i,e,r),l=De(a,s.ch+(s.xRel>0||s.outside>0?1:0));if(!l)return s;var u=l.find(1);if(u.line==i)return u;a=qt(n,i=u.line)}}function Kr(t,e,r,n){n-=jr(e);var i=e.text.length,o=ot((function(e){return Rr(t,r,e-1).bottom<=n}),i,0);return{begin:o,end:i=ot((function(e){return Rr(t,r,e).top>n}),o,i)}}function $r(t,e,r,n){return r||(r=Nr(t,e)),Kr(t,e,r,Br(t,e,Rr(t,r,n),"line").top)}function Qr(t,e,r,n){return!(t.bottom<=r)&&(t.top>r||(n?t.left:t.right)>e)}function Jr(t,e,r,n,i){i-=Be(e);var o=Nr(t,e),a=jr(e),s=0,l=e.text.length,u=!0,c=ut(e,t.doc.direction);if(c){var f=(t.options.lineWrapping?en:tn)(t,e,r,o,c,n,i);s=(u=1!=f.level)?f.from:f.to-1,l=u?f.to:f.from-1}var h,d,p=null,g=null,v=ot((function(e){var r=Rr(t,o,e);return r.top+=a,r.bottom+=a,!!Qr(r,n,i,!1)&&(r.top<=i&&r.left<=n&&(p=e,g=r),!0)}),s,l),m=!1;if(g){var y=n-g.left<g.right-n,b=y==u;v=p+(b?0:1),d=b?"after":"before",h=y?g.left:g.right}else{u||v!=l&&v!=s||v++,d=0==v?"after":v==e.text.length?"before":Rr(t,o,v-(u?1:0)).bottom+a<=i==u?"after":"before";var x=qr(t,te(r,v,d),"line",e,o);h=x.left,m=i<x.top?-1:i>=x.bottom?1:0}return Xr(r,v=it(e.text,v,1),d,m,n-h)}function tn(t,e,r,n,i,o,a){var s=ot((function(s){var l=i[s],u=1!=l.level;return Qr(qr(t,te(r,u?l.to:l.from,u?"before":"after"),"line",e,n),o,a,!0)}),0,i.length-1),l=i[s];if(s>0){var u=1!=l.level,c=qr(t,te(r,u?l.from:l.to,u?"after":"before"),"line",e,n);Qr(c,o,a,!0)&&c.top>a&&(l=i[s-1])}return l}function en(t,e,r,n,i,o,a){var s=Kr(t,e,n,a),l=s.begin,u=s.end;/\s/.test(e.text.charAt(u-1))&&u--;for(var c=null,f=null,h=0;h<i.length;h++){var d=i[h];if(!(d.from>=u||d.to<=l)){var p=Rr(t,n,1!=d.level?Math.min(u,d.to)-1:Math.max(l,d.from)).right,g=p<o?o-p+1e9:p-o;(!c||f>g)&&(c=d,f=g)}}return c||(c=i[i.length-1]),c.from<l&&(c={from:l,to:c.to,level:c.level}),c.to>u&&(c={from:c.from,to:u,level:c.level}),c}function rn(t){if(null!=t.cachedTextHeight)return t.cachedTextHeight;if(null==Ir){Ir=L("pre",null,"CodeMirror-line-like");for(var e=0;e<49;++e)Ir.appendChild(document.createTextNode("x")),Ir.appendChild(L("br"));Ir.appendChild(document.createTextNode("x"))}O(t.measure,Ir);var r=Ir.offsetHeight/50;return r>3&&(t.cachedTextHeight=r),A(t.measure),r||1}function nn(t){if(null!=t.cachedCharWidth)return t.cachedCharWidth;var e=L("span","xxxxxxxxxx"),r=L("pre",[e],"CodeMirror-line-like");O(t.measure,r);var n=e.getBoundingClientRect(),i=(n.right-n.left)/10;return i>2&&(t.cachedCharWidth=i),i||10}function on(t){for(var e=t.display,r={},n={},i=e.gutters.clientLeft,o=e.gutters.firstChild,a=0;o;o=o.nextSibling,++a){var s=t.display.gutterSpecs[a].className;r[s]=o.offsetLeft+o.clientLeft+i,n[s]=o.clientWidth}return{fixedPos:an(e),gutterTotalWidth:e.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:e.wrapper.clientWidth}}function an(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function sn(t){var e=rn(t.display),r=t.options.lineWrapping,n=r&&Math.max(5,t.display.scroller.clientWidth/nn(t.display)-3);return function(i){if(Ue(t.doc,i))return 0;var o=0;if(i.widgets)for(var a=0;a<i.widgets.length;a++)i.widgets[a].height&&(o+=i.widgets[a].height);return r?o+(Math.ceil(i.text.length/n)||1)*e:o+e}}function ln(t){var e=t.doc,r=sn(t);e.iter((function(t){var e=r(t);e!=t.height&&Zt(t,e)}))}function un(t,e,r,n){var i=t.display;if(!r&&"true"==Ct(e).getAttribute("cm-not-content"))return null;var o,a,s=i.lineSpace.getBoundingClientRect();try{o=e.clientX-s.left,a=e.clientY-s.top}catch(e){return null}var l,u=Zr(t,o,a);if(n&&u.xRel>0&&(l=qt(t.doc,u.line).text).length==u.ch){var c=W(l,l.length,t.options.tabSize)-l.length;u=te(u.line,Math.max(0,Math.round((o-Mr(t.display).left)/nn(t.display))-c))}return u}function cn(t,e){if(e>=t.display.viewTo)return null;if((e-=t.display.viewFrom)<0)return null;for(var r=t.display.view,n=0;n<r.length;n++)if((e-=r[n].size)<0)return n}function fn(t,e,r,n){null==e&&(e=t.doc.first),null==r&&(r=t.doc.first+t.doc.size),n||(n=0);var i=t.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>e)&&(i.updateLineNumbers=e),t.curOp.viewChanged=!0,e>=i.viewTo)Se&&He(t.doc,e)<i.viewTo&&dn(t);else if(r<=i.viewFrom)Se&&ze(t.doc,r+n)>i.viewFrom?dn(t):(i.viewFrom+=n,i.viewTo+=n);else if(e<=i.viewFrom&&r>=i.viewTo)dn(t);else if(e<=i.viewFrom){var o=pn(t,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):dn(t)}else if(r>=i.viewTo){var a=pn(t,e,e,-1);a?(i.view=i.view.slice(0,a.index),i.viewTo=a.lineN):dn(t)}else{var s=pn(t,e,e,-1),l=pn(t,r,r+n,1);s&&l?(i.view=i.view.slice(0,s.index).concat(ir(t,s.lineN,l.lineN)).concat(i.view.slice(l.index)),i.viewTo+=n):dn(t)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:e<u.lineN+u.size&&(i.externalMeasured=null))}function hn(t,e,r){t.curOp.viewChanged=!0;var n=t.display,i=t.display.externalMeasured;if(i&&e>=i.lineN&&e<i.lineN+i.size&&(n.externalMeasured=null),!(e<n.viewFrom||e>=n.viewTo)){var o=n.view[cn(t,e)];if(null!=o.node){var a=o.changes||(o.changes=[]);-1==z(a,r)&&a.push(r)}}}function dn(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function pn(t,e,r,n){var i,o=cn(t,e),a=t.display.view;if(!Se||r==t.doc.first+t.doc.size)return{index:o,lineN:r};for(var s=t.display.viewFrom,l=0;l<o;l++)s+=a[l].size;if(s!=e){if(n>0){if(o==a.length-1)return null;i=s+a[o].size-e,o++}else i=s-e;e+=i,r+=i}for(;He(t.doc,r)!=r;){if(o==(n<0?0:a.length-1))return null;r+=n*a[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function gn(t){for(var e=t.display.view,r=0,n=0;n<e.length;n++){var i=e[n];i.hidden||i.node&&!i.changes||++r}return r}function vn(t){t.display.input.showSelection(t.display.input.prepareSelection())}function mn(t,e){void 0===e&&(e=!0);for(var r=t.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),a=0;a<r.sel.ranges.length;a++)if(e||a!=r.sel.primIndex){var s=r.sel.ranges[a];if(!(s.from().line>=t.display.viewTo||s.to().line<t.display.viewFrom)){var l=s.empty();(l||t.options.showCursorWhenSelecting)&&yn(t,s.head,i),l||xn(t,s,o)}}return n}function yn(t,e,r){var n=qr(t,e,"div",null,null,!t.options.singleCursorHeightPerLine),i=r.appendChild(L("div"," ","CodeMirror-cursor"));if(i.style.left=n.left+"px",i.style.top=n.top+"px",i.style.height=Math.max(0,n.bottom-n.top)*t.options.cursorHeight+"px",n.other){var o=r.appendChild(L("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));o.style.display="",o.style.left=n.other.left+"px",o.style.top=n.other.top+"px",o.style.height=.85*(n.other.bottom-n.other.top)+"px"}}function bn(t,e){return t.top-e.top||t.left-e.left}function xn(t,e,r){var n=t.display,i=t.doc,o=document.createDocumentFragment(),a=Mr(t.display),s=a.left,l=Math.max(n.sizerWidth,Tr(t)-n.sizer.offsetLeft)-a.right,u="ltr"==i.direction;function c(t,e,r,n){e<0&&(e=0),e=Math.round(e),n=Math.round(n),o.appendChild(L("div",null,"CodeMirror-selected","position: absolute; left: "+t+"px;\n                             top: "+e+"px; width: "+(null==r?l-t:r)+"px;\n                             height: "+(n-e)+"px"))}function f(e,r,n){var o,a,f=qt(i,e),h=f.text.length;function d(r,n){return Gr(t,te(e,r),"div",f,n)}function p(e,r,n){var i=$r(t,f,null,e),o="ltr"==r==("after"==n)?"left":"right";return d("after"==n?i.begin:i.end-(/\s/.test(f.text.charAt(i.end-1))?2:1),o)[o]}var g=ut(f,i.direction);return function(t,e,r,n){if(!t)return n(e,r,"ltr",0);for(var i=!1,o=0;o<t.length;++o){var a=t[o];(a.from<r&&a.to>e||e==r&&a.to==e)&&(n(Math.max(a.from,e),Math.min(a.to,r),1==a.level?"rtl":"ltr",o),i=!0)}i||n(e,r,"ltr")}(g,r||0,null==n?h:n,(function(t,e,i,f){var v="ltr"==i,m=d(t,v?"left":"right"),y=d(e-1,v?"right":"left"),b=null==r&&0==t,x=null==n&&e==h,w=0==f,S=!g||f==g.length-1;if(y.top-m.top<=3){var C=(u?x:b)&&S,M=(u?b:x)&&w?s:(v?m:y).left,k=C?l:(v?y:m).right;c(M,m.top,k-M,m.bottom)}else{var T,A,O,L;v?(T=u&&b&&w?s:m.left,A=u?l:p(t,i,"before"),O=u?s:p(e,i,"after"),L=u&&x&&S?l:y.right):(T=u?p(t,i,"before"):s,A=!u&&b&&w?l:m.right,O=!u&&x&&S?s:y.left,L=u?p(e,i,"after"):l),c(T,m.top,A-T,m.bottom),m.bottom<y.top&&c(s,m.bottom,null,y.top),c(O,y.top,L-O,y.bottom)}(!o||bn(m,o)<0)&&(o=m),bn(y,o)<0&&(o=y),(!a||bn(m,a)<0)&&(a=m),bn(y,a)<0&&(a=y)})),{start:o,end:a}}var h=e.from(),d=e.to();if(h.line==d.line)f(h.line,h.ch,d.ch);else{var p=qt(i,h.line),g=qt(i,d.line),v=We(p)==We(g),m=f(h.line,h.ch,v?p.text.length+1:null).end,y=f(d.line,v?0:null,d.ch).start;v&&(m.top<y.top-2?(c(m.right,m.top,null,m.bottom),c(s,y.top,y.left,y.bottom)):c(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&c(s,m.bottom,null,y.top)}r.appendChild(o)}function wn(t){if(t.state.focused){var e=t.display;clearInterval(e.blinker);var r=!0;e.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?e.blinker=setInterval((function(){return e.cursorDiv.style.visibility=(r=!r)?"":"hidden"}),t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(e.cursorDiv.style.visibility="hidden")}}function Sn(t){t.state.focused||(t.display.input.focus(),Mn(t))}function Cn(t){t.state.delayingBlurEvent=!0,setTimeout((function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,kn(t))}),100)}function Mn(t,e){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1),"nocursor"!=t.options.readOnly&&(t.state.focused||(pt(t,"focus",t,e),t.state.focused=!0,I(t.display.wrapper,"CodeMirror-focused"),t.curOp||t.display.selForContextMenu==t.doc.sel||(t.display.input.reset(),l&&setTimeout((function(){return t.display.input.reset(!0)}),20)),t.display.input.receivedFocus()),wn(t))}function kn(t,e){t.state.delayingBlurEvent||(t.state.focused&&(pt(t,"blur",t,e),t.state.focused=!1,T(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout((function(){t.state.focused||(t.display.shift=!1)}),150))}function Tn(t){for(var e=t.display,r=e.lineDiv.offsetTop,n=0;n<e.view.length;n++){var i=e.view[n],o=t.options.lineWrapping,l=void 0,u=0;if(!i.hidden){if(a&&s<8){var c=i.node.offsetTop+i.node.offsetHeight;l=c-r,r=c}else{var f=i.node.getBoundingClientRect();l=f.bottom-f.top,!o&&i.text.firstChild&&(u=i.text.firstChild.getBoundingClientRect().right-f.left-1)}var h=i.line.height-l;if((h>.005||h<-.005)&&(Zt(i.line,l),An(i.line),i.rest))for(var d=0;d<i.rest.length;d++)An(i.rest[d]);if(u>t.display.sizerWidth){var p=Math.ceil(u/nn(t.display));p>t.display.maxLineLength&&(t.display.maxLineLength=p,t.display.maxLine=i.line,t.display.maxLineChanged=!0)}}}}function An(t){if(t.widgets)for(var e=0;e<t.widgets.length;++e){var r=t.widgets[e],n=r.node.parentNode;n&&(r.height=n.offsetHeight)}}function On(t,e,r){var n=r&&null!=r.top?Math.max(0,r.top):t.scroller.scrollTop;n=Math.floor(n-Sr(t));var i=r&&null!=r.bottom?r.bottom:n+t.wrapper.clientHeight,o=$t(e,n),a=$t(e,i);if(r&&r.ensure){var s=r.ensure.from.line,l=r.ensure.to.line;s<o?(o=s,a=$t(e,Be(qt(e,s))+t.wrapper.clientHeight)):Math.min(l,e.lastLine())>=a&&(o=$t(e,Be(qt(e,l))-t.wrapper.clientHeight),a=l)}return{from:o,to:Math.max(a,o+1)}}function Ln(t,e){var r=t.display,n=rn(t.display);e.top<0&&(e.top=0);var i=t.curOp&&null!=t.curOp.scrollTop?t.curOp.scrollTop:r.scroller.scrollTop,o=Ar(t),a={};e.bottom-e.top>o&&(e.bottom=e.top+o);var s=t.doc.height+Cr(r),l=e.top<n,u=e.bottom>s-n;if(e.top<i)a.scrollTop=l?0:e.top;else if(e.bottom>i+o){var c=Math.min(e.top,(u?s:e.bottom)-o);c!=i&&(a.scrollTop=c)}var f=t.curOp&&null!=t.curOp.scrollLeft?t.curOp.scrollLeft:r.scroller.scrollLeft,h=Tr(t)-(t.options.fixedGutter?r.gutters.offsetWidth:0),d=e.right-e.left>h;return d&&(e.right=e.left+h),e.left<10?a.scrollLeft=0:e.left<f?a.scrollLeft=Math.max(0,e.left-(d?0:10)):e.right>h+f-3&&(a.scrollLeft=e.right+(d?0:10)-h),a}function En(t,e){null!=e&&(In(t),t.curOp.scrollTop=(null==t.curOp.scrollTop?t.doc.scrollTop:t.curOp.scrollTop)+e)}function Nn(t){In(t);var e=t.getCursor();t.curOp.scrollToPos={from:e,to:e,margin:t.options.cursorScrollMargin}}function Rn(t,e,r){null==e&&null==r||In(t),null!=e&&(t.curOp.scrollLeft=e),null!=r&&(t.curOp.scrollTop=r)}function In(t){var e=t.curOp.scrollToPos;e&&(t.curOp.scrollToPos=null,_n(t,Yr(t,e.from),Yr(t,e.to),e.margin))}function _n(t,e,r,n){var i=Ln(t,{left:Math.min(e.left,r.left),top:Math.min(e.top,r.top)-n,right:Math.max(e.right,r.right),bottom:Math.max(e.bottom,r.bottom)+n});Rn(t,i.scrollLeft,i.scrollTop)}function Pn(t,e){Math.abs(t.doc.scrollTop-e)<2||(r||li(t,{top:e}),Dn(t,e,!0),r&&li(t),ni(t,100))}function Dn(t,e,r){e=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,e)),(t.display.scroller.scrollTop!=e||r)&&(t.doc.scrollTop=e,t.display.scrollbars.setScrollTop(e),t.display.scroller.scrollTop!=e&&(t.display.scroller.scrollTop=e))}function Fn(t,e,r,n){e=Math.max(0,Math.min(e,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),(r?e==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-e)<2)&&!n||(t.doc.scrollLeft=e,fi(t),t.display.scroller.scrollLeft!=e&&(t.display.scroller.scrollLeft=e),t.display.scrollbars.setScrollLeft(e))}function Wn(t){var e=t.display,r=e.gutters.offsetWidth,n=Math.round(t.doc.height+Cr(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?r:0,docHeight:n,scrollHeight:n+kr(t)+e.barHeight,nativeBarWidth:e.nativeBarWidth,gutterWidth:r}}var Hn=function(t,e,r){this.cm=r;var n=this.vert=L("div",[L("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=L("div",[L("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");n.tabIndex=i.tabIndex=-1,t(n),t(i),ft(n,"scroll",(function(){n.clientHeight&&e(n.scrollTop,"vertical")})),ft(i,"scroll",(function(){i.clientWidth&&e(i.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,a&&s<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hn.prototype.update=function(t){var e=t.scrollWidth>t.clientWidth+1,r=t.scrollHeight>t.clientHeight+1,n=t.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=e?n+"px":"0";var i=t.viewHeight-(e?n:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(e){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=t.barLeft+"px";var o=t.viewWidth-t.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:e?n:0}},Hn.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hn.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hn.prototype.zeroWidthHack=function(){var t=y&&!d?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new H,this.disableVert=new H},Hn.prototype.enableZeroWidthBar=function(t,e,r){t.style.pointerEvents="auto",e.set(1e3,(function n(){var i=t.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=t?t.style.pointerEvents="none":e.set(1e3,n)}))},Hn.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var zn=function(){};function Un(t,e){e||(e=Wn(t));var r=t.display.barWidth,n=t.display.barHeight;jn(t,e);for(var i=0;i<4&&r!=t.display.barWidth||n!=t.display.barHeight;i++)r!=t.display.barWidth&&t.options.lineWrapping&&Tn(t),jn(t,Wn(t)),r=t.display.barWidth,n=t.display.barHeight}function jn(t,e){var r=t.display,n=r.scrollbars.update(e);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=e.gutterWidth+"px"):r.gutterFiller.style.display=""}zn.prototype.update=function(){return{bottom:0,right:0}},zn.prototype.setScrollLeft=function(){},zn.prototype.setScrollTop=function(){},zn.prototype.clear=function(){};var Bn={native:Hn,null:zn};function Vn(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&T(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Bn[t.options.scrollbarStyle]((function(e){t.display.wrapper.insertBefore(e,t.display.scrollbarFiller),ft(e,"mousedown",(function(){t.state.focused&&setTimeout((function(){return t.display.input.focus()}),0)})),e.setAttribute("cm-not-content","true")}),(function(e,r){"horizontal"==r?Fn(t,e):Pn(t,e)}),t),t.display.scrollbars.addClass&&I(t.display.wrapper,t.display.scrollbars.addClass)}var Gn=0;function qn(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:++Gn},e=t.curOp,or?or.ops.push(e):e.ownsGroup=or={ops:[e],delayedCallbacks:[]}}function Yn(t){var e=t.curOp;e&&function(t,e){var r=t.ownsGroup;if(r)try{!function(t){var e=t.delayedCallbacks,r=0;do{for(;r<e.length;r++)e[r].call(null);for(var n=0;n<t.ops.length;n++){var i=t.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<e.length)}(r)}finally{or=null,e(r)}}(e,(function(t){for(var e=0;e<t.ops.length;e++)t.ops[e].cm.curOp=null;!function(t){for(var e=t.ops,r=0;r<e.length;r++)Xn(e[r]);for(var n=0;n<e.length;n++)Zn(e[n]);for(var i=0;i<e.length;i++)Kn(e[i]);for(var o=0;o<e.length;o++)$n(e[o]);for(var a=0;a<e.length;a++)Qn(e[a])}(t)}))}function Xn(t){var e=t.cm,r=e.display;!function(t){var e=t.display;!e.scrollbarsClipped&&e.scroller.offsetWidth&&(e.nativeBarWidth=e.scroller.offsetWidth-e.scroller.clientWidth,e.heightForcer.style.height=kr(t)+"px",e.sizer.style.marginBottom=-e.nativeBarWidth+"px",e.sizer.style.borderRightWidth=kr(t)+"px",e.scrollbarsClipped=!0)}(e),t.updateMaxLine&&Ge(e),t.mustUpdate=t.viewChanged||t.forceUpdate||null!=t.scrollTop||t.scrollToPos&&(t.scrollToPos.from.line<r.viewFrom||t.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&e.options.lineWrapping,t.update=t.mustUpdate&&new oi(e,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Zn(t){t.updatedDisplay=t.mustUpdate&&ai(t.cm,t.update)}function Kn(t){var e=t.cm,r=e.display;t.updatedDisplay&&Tn(e),t.barMeasure=Wn(e),r.maxLineChanged&&!e.options.lineWrapping&&(t.adjustWidthTo=Lr(e,r.maxLine,r.maxLine.text.length).left+3,e.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+t.adjustWidthTo+kr(e)+e.display.barWidth),t.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+t.adjustWidthTo-Tr(e))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=r.input.prepareSelection())}function $n(t){var e=t.cm;null!=t.adjustWidthTo&&(e.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<e.doc.scrollLeft&&Fn(e,Math.min(e.display.scroller.scrollLeft,t.maxScrollLeft),!0),e.display.maxLineChanged=!1);var r=t.focus&&t.focus==R();t.preparedSelection&&e.display.input.showSelection(t.preparedSelection,r),(t.updatedDisplay||t.startHeight!=e.doc.height)&&Un(e,t.barMeasure),t.updatedDisplay&&ci(e,t.barMeasure),t.selectionChanged&&wn(e),e.state.focused&&t.updateInput&&e.display.input.reset(t.typing),r&&Sn(t.cm)}function Qn(t){var e=t.cm,r=e.display,n=e.doc;t.updatedDisplay&&si(e,t.update),null==r.wheelStartX||null==t.scrollTop&&null==t.scrollLeft&&!t.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=t.scrollTop&&Dn(e,t.scrollTop,t.forceScroll),null!=t.scrollLeft&&Fn(e,t.scrollLeft,!0,!0),t.scrollToPos&&function(t,e){if(!gt(t,"scrollCursorIntoView")){var r=t.display,n=r.sizer.getBoundingClientRect(),i=null;if(e.top+n.top<0?i=!0:e.bottom+n.top>(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!p){var o=L("div","​",null,"position: absolute;\n                         top: "+(e.top-r.viewOffset-Sr(t.display))+"px;\n                         height: "+(e.bottom-e.top+kr(t)+r.barHeight)+"px;\n                         left: "+e.left+"px; width: "+Math.max(2,e.right-e.left)+"px;");t.display.lineSpace.appendChild(o),o.scrollIntoView(i),t.display.lineSpace.removeChild(o)}}}(e,function(t,e,r,n){var i;null==n&&(n=0),t.options.lineWrapping||e!=r||(r="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 o=0;o<5;o++){var a=!1,s=qr(t,e),l=r&&r!=e?qr(t,r):s,u=Ln(t,i={left:Math.min(s.left,l.left),top:Math.min(s.top,l.top)-n,right:Math.max(s.left,l.left),bottom:Math.max(s.bottom,l.bottom)+n}),c=t.doc.scrollTop,f=t.doc.scrollLeft;if(null!=u.scrollTop&&(Pn(t,u.scrollTop),Math.abs(t.doc.scrollTop-c)>1&&(a=!0)),null!=u.scrollLeft&&(Fn(t,u.scrollLeft),Math.abs(t.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return i}(e,se(n,t.scrollToPos.from),se(n,t.scrollToPos.to),t.scrollToPos.margin));var i=t.maybeHiddenMarkers,o=t.maybeUnhiddenMarkers;if(i)for(var a=0;a<i.length;++a)i[a].lines.length||pt(i[a],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&pt(o[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=e.display.scroller.scrollTop),t.changeObjs&&pt(e,"changes",e,t.changeObjs),t.update&&t.update.finish()}function Jn(t,e){if(t.curOp)return e();qn(t);try{return e()}finally{Yn(t)}}function ti(t,e){return function(){if(t.curOp)return e.apply(t,arguments);qn(t);try{return e.apply(t,arguments)}finally{Yn(t)}}}function ei(t){return function(){if(this.curOp)return t.apply(this,arguments);qn(this);try{return t.apply(this,arguments)}finally{Yn(this)}}}function ri(t){return function(){var e=this.cm;if(!e||e.curOp)return t.apply(this,arguments);qn(e);try{return t.apply(this,arguments)}finally{Yn(e)}}}function ni(t,e){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(e,D(ii,t))}function ii(t){var e=t.doc;if(!(e.highlightFrontier>=t.display.viewTo)){var r=+new Date+t.options.workTime,n=de(t,e.highlightFrontier),i=[];e.iter(n.line,Math.min(e.first+e.size,t.display.viewTo+500),(function(o){if(n.line>=t.display.viewFrom){var a=o.styles,s=o.text.length>t.options.maxHighlightLength?jt(e.mode,n.state):null,l=fe(t,o,n,!0);s&&(n.state=s),o.styles=l.styles;var u=o.styleClasses,c=l.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!a||a.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&h<a.length;++h)f=a[h]!=o.styles[h];f&&i.push(n.line),o.stateAfter=n.save(),n.nextLine()}else o.text.length<=t.options.maxHighlightLength&&pe(t,o.text,n),o.stateAfter=n.line%5==0?n.save():null,n.nextLine();if(+new Date>r)return ni(t,t.options.workDelay),!0})),e.highlightFrontier=n.line,e.modeFrontier=Math.max(e.modeFrontier,n.line),i.length&&Jn(t,(function(){for(var e=0;e<i.length;e++)hn(t,i[e],"text")}))}}var oi=function(t,e,r){var n=t.display;this.viewport=e,this.visible=On(n,t.doc,e),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Tr(t),this.force=r,this.dims=on(t),this.events=[]};function ai(t,e){var r=t.display,n=t.doc;if(e.editorIsHidden)return dn(t),!1;if(!e.force&&e.visible.from>=r.viewFrom&&e.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==gn(t))return!1;hi(t)&&(dn(t),e.dims=on(t));var i=n.first+n.size,o=Math.max(e.visible.from-t.options.viewportMargin,n.first),a=Math.min(i,e.visible.to+t.options.viewportMargin);r.viewFrom<o&&o-r.viewFrom<20&&(o=Math.max(n.first,r.viewFrom)),r.viewTo>a&&r.viewTo-a<20&&(a=Math.min(i,r.viewTo)),Se&&(o=He(t.doc,o),a=ze(t.doc,a));var s=o!=r.viewFrom||a!=r.viewTo||r.lastWrapHeight!=e.wrapperHeight||r.lastWrapWidth!=e.wrapperWidth;!function(t,e,r){var n=t.display;0==n.view.length||e>=n.viewTo||r<=n.viewFrom?(n.view=ir(t,e,r),n.viewFrom=e):(n.viewFrom>e?n.view=ir(t,e,n.viewFrom).concat(n.view):n.viewFrom<e&&(n.view=n.view.slice(cn(t,e))),n.viewFrom=e,n.viewTo<r?n.view=n.view.concat(ir(t,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,cn(t,r)))),n.viewTo=r}(t,o,a),r.viewOffset=Be(qt(t.doc,r.viewFrom)),t.display.mover.style.top=r.viewOffset+"px";var u=gn(t);if(!s&&0==u&&!e.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var c=function(t){if(t.hasFocus())return null;var e=R();if(!e||!N(t.display.lineDiv,e))return null;var r={activeElt:e};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&N(t.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}(t);return u>4&&(r.lineDiv.style.display="none"),function(t,e,r){var n=t.display,i=t.options.lineNumbers,o=n.lineDiv,a=o.firstChild;function s(e){var r=e.nextSibling;return l&&y&&t.display.currentWheelTarget==e?e.style.display="none":e.parentNode.removeChild(e),r}for(var u=n.view,c=n.viewFrom,f=0;f<u.length;f++){var h=u[f];if(h.hidden);else if(h.node&&h.node.parentNode==o){for(;a!=h.node;)a=s(a);var d=i&&null!=e&&e<=c&&h.lineNumber;h.changes&&(z(h.changes,"gutter")>-1&&(d=!1),ur(t,h,c,r)),d&&(A(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(Jt(t.options,c)))),a=h.node.nextSibling}else{var p=vr(t,h,c,r);o.insertBefore(p,a)}c+=h.size}for(;a;)a=s(a)}(t,r.updateLineNumbers,e.dims),u>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,function(t){if(t&&t.activeElt&&t.activeElt!=R()&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&N(document.body,t.anchorNode)&&N(document.body,t.focusNode))){var e=window.getSelection(),r=document.createRange();r.setEnd(t.anchorNode,t.anchorOffset),r.collapse(!1),e.removeAllRanges(),e.addRange(r),e.extend(t.focusNode,t.focusOffset)}}(c),A(r.cursorDiv),A(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,s&&(r.lastWrapHeight=e.wrapperHeight,r.lastWrapWidth=e.wrapperWidth,ni(t,400)),r.updateLineNumbers=null,!0}function si(t,e){for(var r=e.viewport,n=!0;;n=!1){if(n&&t.options.lineWrapping&&e.oldDisplayWidth!=Tr(t))n&&(e.visible=On(t.display,t.doc,r));else if(r&&null!=r.top&&(r={top:Math.min(t.doc.height+Cr(t.display)-Ar(t),r.top)}),e.visible=On(t.display,t.doc,r),e.visible.from>=t.display.viewFrom&&e.visible.to<=t.display.viewTo)break;if(!ai(t,e))break;Tn(t);var i=Wn(t);vn(t),Un(t,i),ci(t,i),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 li(t,e){var r=new oi(t,e);if(ai(t,r)){Tn(t),si(t,r);var n=Wn(t);vn(t),Un(t,n),ci(t,n),r.finish()}}function ui(t){var e=t.gutters.offsetWidth;t.sizer.style.marginLeft=e+"px"}function ci(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+kr(t)+"px"}function fi(t){var e=t.display,r=e.view;if(e.alignWidgets||e.gutters.firstChild&&t.options.fixedGutter){for(var n=an(e)-e.scroller.scrollLeft+t.doc.scrollLeft,i=e.gutters.offsetWidth,o=n+"px",a=0;a<r.length;a++)if(!r[a].hidden){t.options.fixedGutter&&(r[a].gutter&&(r[a].gutter.style.left=o),r[a].gutterBackground&&(r[a].gutterBackground.style.left=o));var s=r[a].alignable;if(s)for(var l=0;l<s.length;l++)s[l].style.left=o}t.options.fixedGutter&&(e.gutters.style.left=n+i+"px")}}function hi(t){if(!t.options.lineNumbers)return!1;var e=t.doc,r=Jt(t.options,e.first+e.size-1),n=t.display;if(r.length!=n.lineNumChars){var i=n.measure.appendChild(L("div",[L("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),o=i.firstChild.offsetWidth,a=i.offsetWidth-o;return n.lineGutter.style.width="",n.lineNumInnerWidth=Math.max(o,n.lineGutter.offsetWidth-a)+1,n.lineNumWidth=n.lineNumInnerWidth+a,n.lineNumChars=n.lineNumInnerWidth?r.length:-1,n.lineGutter.style.width=n.lineNumWidth+"px",ui(t.display),!0}return!1}function di(t,e){for(var r=[],n=!1,i=0;i<t.length;i++){var o=t[i],a=null;if("string"!=typeof o&&(a=o.style,o=o.className),"CodeMirror-linenumbers"==o){if(!e)continue;n=!0}r.push({className:o,style:a})}return e&&!n&&r.push({className:"CodeMirror-linenumbers",style:null}),r}function pi(t){var e=t.gutters,r=t.gutterSpecs;A(e),t.lineGutter=null;for(var n=0;n<r.length;++n){var i=r[n],o=i.className,a=i.style,s=e.appendChild(L("div",null,"CodeMirror-gutter "+o));a&&(s.style.cssText=a),"CodeMirror-linenumbers"==o&&(t.lineGutter=s,s.style.width=(t.lineNumWidth||1)+"px")}e.style.display=r.length?"":"none",ui(t)}function gi(t){pi(t.display),fn(t),fi(t)}function vi(t,e,n,i){var o=this;this.input=n,o.scrollbarFiller=L("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=L("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=E("div",null,"CodeMirror-code"),o.selectionDiv=L("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=L("div",null,"CodeMirror-cursors"),o.measure=L("div",null,"CodeMirror-measure"),o.lineMeasure=L("div",null,"CodeMirror-measure"),o.lineSpace=E("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var u=E("div",[o.lineSpace],"CodeMirror-lines");o.mover=L("div",[u],null,"position: relative"),o.sizer=L("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=L("div",null,null,"position: absolute; height: 50px; width: 1px;"),o.gutters=L("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=L("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=L("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),a&&s<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),l||r&&m||(o.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(o.wrapper):t(o.wrapper)),o.viewFrom=o.viewTo=e.first,o.reportedViewFrom=o.reportedViewTo=e.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,o.gutterSpecs=di(i.gutters,i.lineNumbers),pi(o),n.init(o)}oi.prototype.signal=function(t,e){mt(t,e)&&this.events.push(arguments)},oi.prototype.finish=function(){for(var t=0;t<this.events.length;t++)pt.apply(null,this.events[t])};var mi=0,yi=null;function bi(t){var e=t.wheelDeltaX,r=t.wheelDeltaY;return null==e&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(e=t.detail),null==r&&t.detail&&t.axis==t.VERTICAL_AXIS?r=t.detail:null==r&&(r=t.wheelDelta),{x:e,y:r}}function xi(t){var e=bi(t);return e.x*=yi,e.y*=yi,e}function wi(t,e){var n=bi(e),i=n.x,o=n.y,a=t.display,s=a.scroller,u=s.scrollWidth>s.clientWidth,c=s.scrollHeight>s.clientHeight;if(i&&u||o&&c){if(o&&y&&l)t:for(var h=e.target,d=a.view;h!=s;h=h.parentNode)for(var p=0;p<d.length;p++)if(d[p].node==h){t.display.currentWheelTarget=h;break t}if(i&&!r&&!f&&null!=yi)return o&&c&&Pn(t,Math.max(0,s.scrollTop+o*yi)),Fn(t,Math.max(0,s.scrollLeft+i*yi)),(!o||o&&c)&&bt(e),void(a.wheelStartX=null);if(o&&null!=yi){var g=o*yi,v=t.doc.scrollTop,m=v+a.wrapper.clientHeight;g<0?v=Math.max(0,v+g-50):m=Math.min(t.doc.height,m+g+50),li(t,{top:v,bottom:m})}mi<20&&(null==a.wheelStartX?(a.wheelStartX=s.scrollLeft,a.wheelStartY=s.scrollTop,a.wheelDX=i,a.wheelDY=o,setTimeout((function(){if(null!=a.wheelStartX){var t=s.scrollLeft-a.wheelStartX,e=s.scrollTop-a.wheelStartY,r=e&&a.wheelDY&&e/a.wheelDY||t&&a.wheelDX&&t/a.wheelDX;a.wheelStartX=a.wheelStartY=null,r&&(yi=(yi*mi+r)/(mi+1),++mi)}}),200)):(a.wheelDX+=i,a.wheelDY+=o))}}a?yi=-.53:r?yi=15:c?yi=-.7:h&&(yi=-1/3);var Si=function(t,e){this.ranges=t,this.primIndex=e};Si.prototype.primary=function(){return this.ranges[this.primIndex]},Si.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var e=0;e<this.ranges.length;e++){var r=this.ranges[e],n=t.ranges[e];if(!re(r.anchor,n.anchor)||!re(r.head,n.head))return!1}return!0},Si.prototype.deepCopy=function(){for(var t=[],e=0;e<this.ranges.length;e++)t[e]=new Ci(ne(this.ranges[e].anchor),ne(this.ranges[e].head));return new Si(t,this.primIndex)},Si.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},Si.prototype.contains=function(t,e){e||(e=t);for(var r=0;r<this.ranges.length;r++){var n=this.ranges[r];if(ee(e,n.from())>=0&&ee(t,n.to())<=0)return r}return-1};var Ci=function(t,e){this.anchor=t,this.head=e};function Mi(t,e,r){var n=t&&t.options.selectionsMayTouch,i=e[r];e.sort((function(t,e){return ee(t.from(),e.from())})),r=z(e,i);for(var o=1;o<e.length;o++){var a=e[o],s=e[o-1],l=ee(s.to(),a.from());if(n&&!a.empty()?l>0:l>=0){var u=oe(s.from(),a.from()),c=ie(s.to(),a.to()),f=s.empty()?a.from()==a.head:s.from()==s.head;o<=r&&--r,e.splice(--o,2,new Ci(f?c:u,f?u:c))}}return new Si(e,r)}function ki(t,e){return new Si([new Ci(t,e||t)],0)}function Ti(t){return t.text?te(t.from.line+t.text.length-1,X(t.text).length+(1==t.text.length?t.from.ch:0)):t.to}function Ai(t,e){if(ee(t,e.from)<0)return t;if(ee(t,e.to)<=0)return Ti(e);var r=t.line+e.text.length-(e.to.line-e.from.line)-1,n=t.ch;return t.line==e.to.line&&(n+=Ti(e).ch-e.to.ch),te(r,n)}function Oi(t,e){for(var r=[],n=0;n<t.sel.ranges.length;n++){var i=t.sel.ranges[n];r.push(new Ci(Ai(i.anchor,e),Ai(i.head,e)))}return Mi(t.cm,r,t.sel.primIndex)}function Li(t,e,r){return t.line==e.line?te(r.line,t.ch-e.ch+r.ch):te(r.line+(t.line-e.line),t.ch)}function Ei(t){t.doc.mode=Ht(t.options,t.doc.modeOption),Ni(t)}function Ni(t){t.doc.iter((function(t){t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null)})),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,ni(t,100),t.state.modeGen++,t.curOp&&fn(t)}function Ri(t,e){return 0==e.from.ch&&0==e.to.ch&&""==X(e.text)&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function Ii(t,e,r,n){function i(t){return r?r[t]:null}function o(t,r,i){!function(t,e,r,n){t.text=e,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),null!=t.order&&(t.order=null),Oe(t),Le(t,r);var i=n?n(t):1;i!=t.height&&Zt(t,i)}(t,r,i,n),sr(t,"change",t,e)}function a(t,e){for(var r=[],o=t;o<e;++o)r.push(new qe(u[o],i(o),n));return r}var s=e.from,l=e.to,u=e.text,c=qt(t,s.line),f=qt(t,l.line),h=X(u),d=i(u.length-1),p=l.line-s.line;if(e.full)t.insert(0,a(0,u.length)),t.remove(u.length,t.size-u.length);else if(Ri(t,e)){var g=a(0,u.length-1);o(f,f.text,d),p&&t.remove(s.line,p),g.length&&t.insert(s.line,g)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,s.ch)+h+c.text.slice(l.ch),d);else{var v=a(1,u.length-1);v.push(new qe(h+c.text.slice(l.ch),d,n)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),t.insert(s.line+1,v)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(l.ch),i(0)),t.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,h+f.text.slice(l.ch),d);var m=a(1,u.length-1);p>1&&t.remove(s.line+1,p-1),t.insert(s.line+1,m)}sr(t,"change",t,e)}function _i(t,e,r){!function t(n,i,o){if(n.linked)for(var a=0;a<n.linked.length;++a){var s=n.linked[a];if(s.doc!=i){var l=o&&s.sharedHist;r&&!l||(e(s.doc,l),t(s.doc,n,l))}}}(t,null,!0)}function Pi(t,e){if(e.cm)throw new Error("This document is already in use.");t.doc=e,e.cm=t,ln(t),Ei(t),Di(t),t.options.lineWrapping||Ge(t),t.options.mode=e.modeOption,fn(t)}function Di(t){("rtl"==t.doc.direction?I:T)(t.display.lineDiv,"CodeMirror-rtl")}function Fi(t){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t||1}function Wi(t,e){var r={from:ne(e.from),to:Ti(e),text:Yt(t,e.from,e.to)};return Bi(t,r,e.from.line,e.to.line+1),_i(t,(function(t){return Bi(t,r,e.from.line,e.to.line+1)}),!0),r}function Hi(t){for(;t.length&&X(t).ranges;)t.pop()}function zi(t,e,r,n){var i=t.history;i.undone.length=0;var o,a,s=+new Date;if((i.lastOp==n||i.lastOrigin==e.origin&&e.origin&&("+"==e.origin.charAt(0)&&i.lastModTime>s-(t.cm?t.cm.options.historyEventDelay:500)||"*"==e.origin.charAt(0)))&&(o=function(t,e){return e?(Hi(t.done),X(t.done)):t.done.length&&!X(t.done).ranges?X(t.done):t.done.length>1&&!t.done[t.done.length-2].ranges?(t.done.pop(),X(t.done)):void 0}(i,i.lastOp==n)))a=X(o.changes),0==ee(e.from,e.to)&&0==ee(e.from,a.to)?a.to=Ti(e):o.changes.push(Wi(t,e));else{var l=X(i.done);for(l&&l.ranges||ji(t.sel,i.done),o={changes:[Wi(t,e)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=e.origin,a||pt(t,"historyAdded")}function Ui(t,e,r,n){var i=t.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||function(t,e,r,n){var i=e.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}(t,o,X(i.done),e))?i.done[i.done.length-1]=e:ji(e,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&Hi(i.undone)}function ji(t,e){var r=X(e);r&&r.ranges&&r.equals(t)||e.push(t)}function Bi(t,e,r,n){var i=e["spans_"+t.id],o=0;t.iter(Math.max(t.first,r),Math.min(t.first+t.size,n),(function(r){r.markedSpans&&((i||(i=e["spans_"+t.id]={}))[o]=r.markedSpans),++o}))}function Vi(t){if(!t)return null;for(var e,r=0;r<t.length;++r)t[r].marker.explicitlyCleared?e||(e=t.slice(0,r)):e&&e.push(t[r]);return e?e.length?e:null:t}function Gi(t,e){var r=function(t,e){var r=e["spans_"+t.id];if(!r)return null;for(var n=[],i=0;i<e.text.length;++i)n.push(Vi(r[i]));return n}(t,e),n=Te(t,e);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],a=n[i];if(o&&a)t:for(var s=0;s<a.length;++s){for(var l=a[s],u=0;u<o.length;++u)if(o[u].marker==l.marker)continue t;o.push(l)}else a&&(r[i]=a)}return r}function qi(t,e,r){for(var n=[],i=0;i<t.length;++i){var o=t[i];if(o.ranges)n.push(r?Si.prototype.deepCopy.call(o):o);else{var a=o.changes,s=[];n.push({changes:s});for(var l=0;l<a.length;++l){var u=a[l],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),e)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&z(e,Number(c[1]))>-1&&(X(s)[f]=u[f],delete u[f])}}}return n}function Yi(t,e,r,n){if(n){var i=t.anchor;if(r){var o=ee(e,i)<0;o!=ee(r,i)<0?(i=e,e=r):o!=ee(e,r)<0&&(e=r)}return new Ci(i,e)}return new Ci(r||e,e)}function Xi(t,e,r,n,i){null==i&&(i=t.cm&&(t.cm.display.shift||t.extend)),Ji(t,new Si([Yi(t.sel.primary(),e,r,i)],0),n)}function Zi(t,e,r){for(var n=[],i=t.cm&&(t.cm.display.shift||t.extend),o=0;o<t.sel.ranges.length;o++)n[o]=Yi(t.sel.ranges[o],e[o],null,i);Ji(t,Mi(t.cm,n,t.sel.primIndex),r)}function Ki(t,e,r,n){var i=t.sel.ranges.slice(0);i[e]=r,Ji(t,Mi(t.cm,i,t.sel.primIndex),n)}function $i(t,e,r,n){Ji(t,ki(e,r),n)}function Qi(t,e,r){var n=t.history.done,i=X(n);i&&i.ranges?(n[n.length-1]=e,to(t,e,r)):Ji(t,e,r)}function Ji(t,e,r){to(t,e,r),Ui(t,t.sel,t.cm?t.cm.curOp.id:NaN,r)}function to(t,e,r){(mt(t,"beforeSelectionChange")||t.cm&&mt(t.cm,"beforeSelectionChange"))&&(e=function(t,e,r){var n={ranges:e.ranges,update:function(e){this.ranges=[];for(var r=0;r<e.length;r++)this.ranges[r]=new Ci(se(t,e[r].anchor),se(t,e[r].head))},origin:r&&r.origin};return pt(t,"beforeSelectionChange",t,n),t.cm&&pt(t.cm,"beforeSelectionChange",t.cm,n),n.ranges!=e.ranges?Mi(t.cm,n.ranges,n.ranges.length-1):e}(t,e,r));var n=r&&r.bias||(ee(e.primary().head,t.sel.primary().head)<0?-1:1);eo(t,no(t,e,n,!0)),r&&!1===r.scroll||!t.cm||Nn(t.cm)}function eo(t,e){e.equals(t.sel)||(t.sel=e,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,vt(t.cm)),sr(t,"cursorActivity",t))}function ro(t){eo(t,no(t,t.sel,null,!1))}function no(t,e,r,n){for(var i,o=0;o<e.ranges.length;o++){var a=e.ranges[o],s=e.ranges.length==t.sel.ranges.length&&t.sel.ranges[o],l=oo(t,a.anchor,s&&s.anchor,r,n),u=oo(t,a.head,s&&s.head,r,n);(i||l!=a.anchor||u!=a.head)&&(i||(i=e.ranges.slice(0,o)),i[o]=new Ci(l,u))}return i?Mi(t.cm,i,e.primIndex):e}function io(t,e,r,n,i){var o=qt(t,e.line);if(o.markedSpans)for(var a=0;a<o.markedSpans.length;++a){var s=o.markedSpans[a],l=s.marker,u="selectLeft"in l?!l.selectLeft:l.inclusiveLeft,c="selectRight"in l?!l.selectRight:l.inclusiveRight;if((null==s.from||(u?s.from<=e.ch:s.from<e.ch))&&(null==s.to||(c?s.to>=e.ch:s.to>e.ch))){if(i&&(pt(l,"beforeCursorEnter"),l.explicitlyCleared)){if(o.markedSpans){--a;continue}break}if(!l.atomic)continue;if(r){var f=l.find(n<0?1:-1),h=void 0;if((n<0?c:u)&&(f=ao(t,f,-n,f&&f.line==e.line?o:null)),f&&f.line==e.line&&(h=ee(f,r))&&(n<0?h<0:h>0))return io(t,f,e,n,i)}var d=l.find(n<0?-1:1);return(n<0?u:c)&&(d=ao(t,d,n,d.line==e.line?o:null)),d?io(t,d,e,n,i):null}}return e}function oo(t,e,r,n,i){var o=n||1,a=io(t,e,r,o,i)||!i&&io(t,e,r,o,!0)||io(t,e,r,-o,i)||!i&&io(t,e,r,-o,!0);return a||(t.cantEdit=!0,te(t.first,0))}function ao(t,e,r,n){return r<0&&0==e.ch?e.line>t.first?se(t,te(e.line-1)):null:r>0&&e.ch==(n||qt(t,e.line)).text.length?e.line<t.first+t.size-1?te(e.line+1,0):null:new te(e.line,e.ch+r)}function so(t){t.setSelection(te(t.firstLine(),0),te(t.lastLine()),j)}function lo(t,e,r){var n={canceled:!1,from:e.from,to:e.to,text:e.text,origin:e.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(e,r,i,o){e&&(n.from=se(t,e)),r&&(n.to=se(t,r)),i&&(n.text=i),void 0!==o&&(n.origin=o)}),pt(t,"beforeChange",t,n),t.cm&&pt(t.cm,"beforeChange",t.cm,n),n.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:n.from,to:n.to,text:n.text,origin:n.origin}}function uo(t,e,r){if(t.cm){if(!t.cm.curOp)return ti(t.cm,uo)(t,e,r);if(t.cm.state.suppressEdits)return}if(!(mt(t,"beforeChange")||t.cm&&mt(t.cm,"beforeChange"))||(e=lo(t,e,!0))){var n=we&&!r&&function(t,e,r){var n=null;if(t.iter(e.line,r.line+1,(function(t){if(t.markedSpans)for(var e=0;e<t.markedSpans.length;++e){var r=t.markedSpans[e].marker;!r.readOnly||n&&-1!=z(n,r)||(n||(n=[])).push(r)}})),!n)return null;for(var i=[{from:e,to:r}],o=0;o<n.length;++o)for(var a=n[o],s=a.find(0),l=0;l<i.length;++l){var u=i[l];if(!(ee(u.to,s.from)<0||ee(u.from,s.to)>0)){var c=[l,1],f=ee(u.from,s.from),h=ee(u.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(h>0||!a.inclusiveRight&&!h)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),l+=c.length-3}}return i}(t,e.from,e.to);if(n)for(var i=n.length-1;i>=0;--i)co(t,{from:n[i].from,to:n[i].to,text:i?[""]:e.text,origin:e.origin});else co(t,e)}}function co(t,e){if(1!=e.text.length||""!=e.text[0]||0!=ee(e.from,e.to)){var r=Oi(t,e);zi(t,e,r,t.cm?t.cm.curOp.id:NaN),po(t,e,r,Te(t,e));var n=[];_i(t,(function(t,r){r||-1!=z(n,t.history)||(yo(t.history,e),n.push(t.history)),po(t,e,null,Te(t,e))}))}}function fo(t,e,r){var n=t.cm&&t.cm.state.suppressEdits;if(!n||r){for(var i,o=t.history,a=t.sel,s="undo"==e?o.done:o.undone,l="undo"==e?o.undone:o.done,u=0;u<s.length&&(i=s[u],r?!i.ranges||i.equals(t.sel):i.ranges);u++);if(u!=s.length){for(o.lastOrigin=o.lastSelOrigin=null;;){if(!(i=s.pop()).ranges){if(n)return void s.push(i);break}if(ji(i,l),r&&!i.equals(t.sel))return void Ji(t,i,{clearRedo:!1});a=i}var c=[];ji(a,l),l.push({changes:c,generation:o.generation}),o.generation=i.generation||++o.maxGeneration;for(var f=mt(t,"beforeChange")||t.cm&&mt(t.cm,"beforeChange"),h=function(r){var n=i.changes[r];if(n.origin=e,f&&!lo(t,n,!1))return s.length=0,{};c.push(Wi(t,n));var o=r?Oi(t,n):X(s);po(t,n,o,Gi(t,n)),!r&&t.cm&&t.cm.scrollIntoView({from:n.from,to:Ti(n)});var a=[];_i(t,(function(t,e){e||-1!=z(a,t.history)||(yo(t.history,n),a.push(t.history)),po(t,n,null,Gi(t,n))}))},d=i.changes.length-1;d>=0;--d){var p=h(d);if(p)return p.v}}}}function ho(t,e){if(0!=e&&(t.first+=e,t.sel=new Si(Z(t.sel.ranges,(function(t){return new Ci(te(t.anchor.line+e,t.anchor.ch),te(t.head.line+e,t.head.ch))})),t.sel.primIndex),t.cm)){fn(t.cm,t.first,t.first-e,e);for(var r=t.cm.display,n=r.viewFrom;n<r.viewTo;n++)hn(t.cm,n,"gutter")}}function po(t,e,r,n){if(t.cm&&!t.cm.curOp)return ti(t.cm,po)(t,e,r,n);if(e.to.line<t.first)ho(t,e.text.length-1-(e.to.line-e.from.line));else if(!(e.from.line>t.lastLine())){if(e.from.line<t.first){var i=e.text.length-1-(t.first-e.from.line);ho(t,i),e={from:te(t.first,0),to:te(e.to.line+i,e.to.ch),text:[X(e.text)],origin:e.origin}}var o=t.lastLine();e.to.line>o&&(e={from:e.from,to:te(o,qt(t,o).text.length),text:[e.text[0]],origin:e.origin}),e.removed=Yt(t,e.from,e.to),r||(r=Oi(t,e)),t.cm?function(t,e,r){var n=t.doc,i=t.display,o=e.from,a=e.to,s=!1,l=o.line;t.options.lineWrapping||(l=Kt(We(qt(n,o.line))),n.iter(l,a.line+1,(function(t){if(t==i.maxLine)return s=!0,!0}))),n.sel.contains(e.from,e.to)>-1&&vt(t),Ii(n,e,r,sn(t)),t.options.lineWrapping||(n.iter(l,o.line+e.text.length,(function(t){var e=Ve(t);e>i.maxLineLength&&(i.maxLine=t,i.maxLineLength=e,i.maxLineChanged=!0,s=!1)})),s&&(t.curOp.updateMaxLine=!0)),function(t,e){if(t.modeFrontier=Math.min(t.modeFrontier,e),!(t.highlightFrontier<e-10)){for(var r=t.first,n=e-1;n>r;n--){var i=qt(t,n).stateAfter;if(i&&(!(i instanceof ue)||n+i.lookAhead<e)){r=n+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,r)}}(n,o.line),ni(t,400);var u=e.text.length-(a.line-o.line)-1;e.full?fn(t):o.line!=a.line||1!=e.text.length||Ri(t.doc,e)?fn(t,o.line,a.line+1,u):hn(t,o.line,"text");var c=mt(t,"changes"),f=mt(t,"change");if(f||c){var h={from:o,to:a,text:e.text,removed:e.removed,origin:e.origin};f&&sr(t,"change",t,h),c&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(h)}t.display.selForContextMenu=null}(t.cm,e,n):Ii(t,e,n),to(t,r,j),t.cantEdit&&oo(t,te(t.firstLine(),0))&&(t.cantEdit=!1)}}function go(t,e,r,n,i){var o;n||(n=r),ee(n,r)<0&&(r=(o=[n,r])[0],n=o[1]),"string"==typeof e&&(e=t.splitLines(e)),uo(t,{from:r,to:n,text:e,origin:i})}function vo(t,e,r,n){r<t.line?t.line+=n:e<t.line&&(t.line=e,t.ch=0)}function mo(t,e,r,n){for(var i=0;i<t.length;++i){var o=t[i],a=!0;if(o.ranges){o.copied||((o=t[i]=o.deepCopy()).copied=!0);for(var s=0;s<o.ranges.length;s++)vo(o.ranges[s].anchor,e,r,n),vo(o.ranges[s].head,e,r,n)}else{for(var l=0;l<o.changes.length;++l){var u=o.changes[l];if(r<u.from.line)u.from=te(u.from.line+n,u.from.ch),u.to=te(u.to.line+n,u.to.ch);else if(e<=u.to.line){a=!1;break}}a||(t.splice(0,i+1),i=0)}}}function yo(t,e){var r=e.from.line,n=e.to.line,i=e.text.length-(n-r)-1;mo(t.done,r,n,i),mo(t.undone,r,n,i)}function bo(t,e,r,n){var i=e,o=e;return"number"==typeof e?o=qt(t,ae(t,e)):i=Kt(e),null==i?null:(n(o,i)&&t.cm&&hn(t.cm,i,r),o)}function xo(t){this.lines=t,this.parent=null;for(var e=0,r=0;r<t.length;++r)t[r].parent=this,e+=t[r].height;this.height=e}function wo(t){this.children=t;for(var e=0,r=0,n=0;n<t.length;++n){var i=t[n];e+=i.chunkSize(),r+=i.height,i.parent=this}this.size=e,this.height=r,this.parent=null}Ci.prototype.from=function(){return oe(this.anchor,this.head)},Ci.prototype.to=function(){return ie(this.anchor,this.head)},Ci.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},xo.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,e){for(var r=t,n=t+e;r<n;++r){var i=this.lines[r];this.height-=i.height,Ye(i),sr(i,"delete")}this.lines.splice(t,e)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,e,r){this.height+=r,this.lines=this.lines.slice(0,t).concat(e).concat(this.lines.slice(t));for(var n=0;n<e.length;++n)e[n].parent=this},iterN:function(t,e,r){for(var n=t+e;t<n;++t)if(r(this.lines[t]))return!0}},wo.prototype={chunkSize:function(){return this.size},removeInner:function(t,e){this.size-=e;for(var r=0;r<this.children.length;++r){var n=this.children[r],i=n.chunkSize();if(t<i){var o=Math.min(e,i-t),a=n.height;if(n.removeInner(t,o),this.height-=a-n.height,i==o&&(this.children.splice(r--,1),n.parent=null),0==(e-=o))break;t=0}else t-=i}if(this.size-e<25&&(this.children.length>1||!(this.children[0]instanceof xo))){var s=[];this.collapse(s),this.children=[new xo(s)],this.children[0].parent=this}},collapse:function(t){for(var e=0;e<this.children.length;++e)this.children[e].collapse(t)},insertInner:function(t,e,r){this.size+=e.length,this.height+=r;for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(t<=o){if(i.insertInner(t,e,r),i.lines&&i.lines.length>50){for(var a=i.lines.length%25+25,s=a;s<i.lines.length;){var l=new xo(i.lines.slice(s,s+=25));i.height-=l.height,this.children.splice(++n,0,l),l.parent=this}i.lines=i.lines.slice(0,a),this.maybeSpill()}break}t-=o}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var e=new wo(t.children.splice(t.children.length-5,5));if(t.parent){t.size-=e.size,t.height-=e.height;var r=z(t.parent.children,t);t.parent.children.splice(r+1,0,e)}else{var n=new wo(t.children);n.parent=t,t.children=[n,e],t=n}e.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,e,r){for(var n=0;n<this.children.length;++n){var i=this.children[n],o=i.chunkSize();if(t<o){var a=Math.min(e,o-t);if(i.iterN(t,a,r))return!0;if(0==(e-=a))break;t=0}else t-=o}}};var So=function(t,e,r){if(r)for(var n in r)r.hasOwnProperty(n)&&(this[n]=r[n]);this.doc=t,this.node=e};function Co(t,e,r){Be(e)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&En(t,r)}So.prototype.clear=function(){var t=this.doc.cm,e=this.line.widgets,r=this.line,n=Kt(r);if(null!=n&&e){for(var i=0;i<e.length;++i)e[i]==this&&e.splice(i--,1);e.length||(r.widgets=null);var o=xr(this);Zt(r,Math.max(0,r.height-o)),t&&(Jn(t,(function(){Co(t,r,-o),hn(t,n,"widget")})),sr(t,"lineWidgetCleared",t,this,n))}},So.prototype.changed=function(){var t=this,e=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=xr(this)-e;i&&(Ue(this.doc,n)||Zt(n,n.height+i),r&&Jn(r,(function(){r.curOp.forceUpdate=!0,Co(r,n,i),sr(r,"lineWidgetChanged",r,t,Kt(n))})))},yt(So);var Mo=0,ko=function(t,e){this.lines=[],this.type=e,this.doc=t,this.id=++Mo};function To(t,e,r,n,i){if(n&&n.shared)return function(t,e,r,n,i){(n=F(n)).shared=!1;var o=[To(t,e,r,n,i)],a=o[0],s=n.widgetNode;return _i(t,(function(t){s&&(n.widgetNode=s.cloneNode(!0)),o.push(To(t,se(t,e),se(t,r),n,i));for(var l=0;l<t.linked.length;++l)if(t.linked[l].isParent)return;a=X(o)})),new Ao(o,a)}(t,e,r,n,i);if(t.cm&&!t.cm.curOp)return ti(t.cm,To)(t,e,r,n,i);var o=new ko(t,i),a=ee(e,r);if(n&&F(n,o,!1),a>0||0==a&&!1!==o.clearWhenEmpty)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=E("span",[o.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(Fe(t,e.line,e,r,o)||e.line!=r.line&&Fe(t,r.line,e,r,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");Se=!0}o.addToHistory&&zi(t,{from:e,to:r,origin:"markText"},t.sel,NaN);var s,l=e.line,u=t.cm;if(t.iter(l,r.line+1,(function(t){u&&o.collapsed&&!u.options.lineWrapping&&We(t)==u.display.maxLine&&(s=!0),o.collapsed&&l!=e.line&&Zt(t,0),function(t,e){t.markedSpans=t.markedSpans?t.markedSpans.concat([e]):[e],e.marker.attachLine(t)}(t,new Ce(o,l==e.line?e.ch:null,l==r.line?r.ch:null)),++l})),o.collapsed&&t.iter(e.line,r.line+1,(function(e){Ue(t,e)&&Zt(e,0)})),o.clearOnEnter&&ft(o,"beforeCursorEnter",(function(){return o.clear()})),o.readOnly&&(we=!0,(t.history.done.length||t.history.undone.length)&&t.clearHistory()),o.collapsed&&(o.id=++Mo,o.atomic=!0),u){if(s&&(u.curOp.updateMaxLine=!0),o.collapsed)fn(u,e.line,r.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var c=e.line;c<=r.line;c++)hn(u,c,"text");o.atomic&&ro(u.doc),sr(u,"markerAdded",u,o)}return o}ko.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,e=t&&!t.curOp;if(e&&qn(t),mt(this,"clear")){var r=this.find();r&&sr(this,"clear",r.from,r.to)}for(var n=null,i=null,o=0;o<this.lines.length;++o){var a=this.lines[o],s=Me(a.markedSpans,this);t&&!this.collapsed?hn(t,Kt(a),"text"):t&&(null!=s.to&&(i=Kt(a)),null!=s.from&&(n=Kt(a))),a.markedSpans=ke(a.markedSpans,s),null==s.from&&this.collapsed&&!Ue(this.doc,a)&&t&&Zt(a,rn(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var l=0;l<this.lines.length;++l){var u=We(this.lines[l]),c=Ve(u);c>t.display.maxLineLength&&(t.display.maxLine=u,t.display.maxLineLength=c,t.display.maxLineChanged=!0)}null!=n&&t&&this.collapsed&&fn(t,n,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ro(t.doc)),t&&sr(t,"markerCleared",t,this,n,i),e&&Yn(t),this.parent&&this.parent.clear()}},ko.prototype.find=function(t,e){var r,n;null==t&&"bookmark"==this.type&&(t=1);for(var i=0;i<this.lines.length;++i){var o=this.lines[i],a=Me(o.markedSpans,this);if(null!=a.from&&(r=te(e?o:Kt(o),a.from),-1==t))return r;if(null!=a.to&&(n=te(e?o:Kt(o),a.to),1==t))return n}return r&&{from:r,to:n}},ko.prototype.changed=function(){var t=this,e=this.find(-1,!0),r=this,n=this.doc.cm;e&&n&&Jn(n,(function(){var i=e.line,o=Kt(e.line),a=Er(n,o);if(a&&(Fr(a),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!Ue(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var l=xr(r)-s;l&&Zt(i,i.height+l)}sr(n,"markerChanged",n,t)}))},ko.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;e.maybeHiddenMarkers&&-1!=z(e.maybeHiddenMarkers,this)||(e.maybeUnhiddenMarkers||(e.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},ko.prototype.detachLine=function(t){if(this.lines.splice(z(this.lines,t),1),!this.lines.length&&this.doc.cm){var e=this.doc.cm.curOp;(e.maybeHiddenMarkers||(e.maybeHiddenMarkers=[])).push(this)}},yt(ko);var Ao=function(t,e){this.markers=t,this.primary=e;for(var r=0;r<t.length;++r)t[r].parent=this};function Oo(t){return t.findMarks(te(t.first,0),t.clipPos(te(t.lastLine())),(function(t){return t.parent}))}function Lo(t){for(var e=function(e){var r=t[e],n=[r.primary.doc];_i(r.primary.doc,(function(t){return n.push(t)}));for(var i=0;i<r.markers.length;i++){var o=r.markers[i];-1==z(n,o.doc)&&(o.parent=null,r.markers.splice(i--,1))}},r=0;r<t.length;r++)e(r)}Ao.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();sr(this,"clear")}},Ao.prototype.find=function(t,e){return this.primary.find(t,e)},yt(Ao);var Eo=0,No=function(t,e,r,n,i){if(!(this instanceof No))return new No(t,e,r,n,i);null==r&&(r=0),wo.call(this,[new xo([new qe("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=r;var o=te(r,0);this.sel=ki(o),this.history=new Fi(null),this.id=++Eo,this.modeOption=e,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof t&&(t=this.splitLines(t)),Ii(this,{from:o,to:o,text:t}),Ji(this,ki(o),j)};No.prototype=$(wo.prototype,{constructor:No,iter:function(t,e,r){r?this.iterN(t-this.first,e-t,r):this.iterN(this.first,this.first+this.size,t)},insert:function(t,e){for(var r=0,n=0;n<e.length;++n)r+=e[n].height;this.insertInner(t-this.first,e,r)},remove:function(t,e){this.removeInner(t-this.first,e)},getValue:function(t){var e=Xt(this,this.first,this.first+this.size);return!1===t?e:e.join(t||this.lineSeparator())},setValue:ri((function(t){var e=te(this.first,0),r=this.first+this.size-1;uo(this,{from:e,to:te(r,qt(this,r).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Rn(this.cm,0,0),Ji(this,ki(e),j)})),replaceRange:function(t,e,r,n){go(this,t,e=se(this,e),r=r?se(this,r):e,n)},getRange:function(t,e,r){var n=Yt(this,se(this,t),se(this,e));return!1===r?n:n.join(r||this.lineSeparator())},getLine:function(t){var e=this.getLineHandle(t);return e&&e.text},getLineHandle:function(t){if(Qt(this,t))return qt(this,t)},getLineNumber:function(t){return Kt(t)},getLineHandleVisualStart:function(t){return"number"==typeof t&&(t=qt(this,t)),We(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return se(this,t)},getCursor:function(t){var e=this.sel.primary();return null==t||"head"==t?e.head:"anchor"==t?e.anchor:"end"==t||"to"==t||!1===t?e.to():e.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ri((function(t,e,r){$i(this,se(this,"number"==typeof t?te(t,e||0):t),null,r)})),setSelection:ri((function(t,e,r){$i(this,se(this,t),se(this,e||t),r)})),extendSelection:ri((function(t,e,r){Xi(this,se(this,t),e&&se(this,e),r)})),extendSelections:ri((function(t,e){Zi(this,le(this,t),e)})),extendSelectionsBy:ri((function(t,e){Zi(this,le(this,Z(this.sel.ranges,t)),e)})),setSelections:ri((function(t,e,r){if(t.length){for(var n=[],i=0;i<t.length;i++)n[i]=new Ci(se(this,t[i].anchor),se(this,t[i].head));null==e&&(e=Math.min(t.length-1,this.sel.primIndex)),Ji(this,Mi(this.cm,n,e),r)}})),addSelection:ri((function(t,e,r){var n=this.sel.ranges.slice(0);n.push(new Ci(se(this,t),se(this,e||t))),Ji(this,Mi(this.cm,n,n.length-1),r)})),getSelection:function(t){for(var e,r=this.sel.ranges,n=0;n<r.length;n++){var i=Yt(this,r[n].from(),r[n].to());e=e?e.concat(i):i}return!1===t?e:e.join(t||this.lineSeparator())},getSelections:function(t){for(var e=[],r=this.sel.ranges,n=0;n<r.length;n++){var i=Yt(this,r[n].from(),r[n].to());!1!==t&&(i=i.join(t||this.lineSeparator())),e[n]=i}return e},replaceSelection:function(t,e,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=t;this.replaceSelections(n,e,r||"+input")},replaceSelections:ri((function(t,e,r){for(var n=[],i=this.sel,o=0;o<i.ranges.length;o++){var a=i.ranges[o];n[o]={from:a.from(),to:a.to(),text:this.splitLines(t[o]),origin:r}}for(var s=e&&"end"!=e&&function(t,e,r){for(var n=[],i=te(t.first,0),o=i,a=0;a<e.length;a++){var s=e[a],l=Li(s.from,i,o),u=Li(Ti(s),i,o);if(i=s.to,o=u,"around"==r){var c=t.sel.ranges[a],f=ee(c.head,c.anchor)<0;n[a]=new Ci(f?u:l,f?l:u)}else n[a]=new Ci(l,l)}return new Si(n,t.sel.primIndex)}(this,n,e),l=n.length-1;l>=0;l--)uo(this,n[l]);s?Qi(this,s):this.cm&&Nn(this.cm)})),undo:ri((function(){fo(this,"undo")})),redo:ri((function(){fo(this,"redo")})),undoSelection:ri((function(){fo(this,"undo",!0)})),redoSelection:ri((function(){fo(this,"redo",!0)})),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,e=0,r=0,n=0;n<t.done.length;n++)t.done[n].ranges||++e;for(var i=0;i<t.undone.length;i++)t.undone[i].ranges||++r;return{undo:e,redo:r}},clearHistory:function(){var t=this;this.history=new Fi(this.history.maxGeneration),_i(this,(function(e){return e.history=t.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:qi(this.history.done),undone:qi(this.history.undone)}},setHistory:function(t){var e=this.history=new Fi(this.history.maxGeneration);e.done=qi(t.done.slice(0),null,!0),e.undone=qi(t.undone.slice(0),null,!0)},setGutterMarker:ri((function(t,e,r){return bo(this,t,"gutter",(function(t){var n=t.gutterMarkers||(t.gutterMarkers={});return n[e]=r,!r&&et(n)&&(t.gutterMarkers=null),!0}))})),clearGutter:ri((function(t){var e=this;this.iter((function(r){r.gutterMarkers&&r.gutterMarkers[t]&&bo(e,r,"gutter",(function(){return r.gutterMarkers[t]=null,et(r.gutterMarkers)&&(r.gutterMarkers=null),!0}))}))})),lineInfo:function(t){var e;if("number"==typeof t){if(!Qt(this,t))return null;if(e=t,!(t=qt(this,t)))return null}else if(null==(e=Kt(t)))return null;return{line:e,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:ri((function(t,e,r){return bo(this,t,"gutter"==e?"gutter":"class",(function(t){var n="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass";if(t[n]){if(M(r).test(t[n]))return!1;t[n]+=" "+r}else t[n]=r;return!0}))})),removeLineClass:ri((function(t,e,r){return bo(this,t,"gutter"==e?"gutter":"class",(function(t){var n="text"==e?"textClass":"background"==e?"bgClass":"gutter"==e?"gutterClass":"wrapClass",i=t[n];if(!i)return!1;if(null==r)t[n]=null;else{var o=i.match(M(r));if(!o)return!1;var a=o.index+o[0].length;t[n]=i.slice(0,o.index)+(o.index&&a!=i.length?" ":"")+i.slice(a)||null}return!0}))})),addLineWidget:ri((function(t,e,r){return function(t,e,r,n){var i=new So(t,r,n),o=t.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),bo(t,e,"widget",(function(e){var r=e.widgets||(e.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length-1,Math.max(0,i.insertAt)),0,i),i.line=e,o&&!Ue(t,e)){var n=Be(e)<t.scrollTop;Zt(e,e.height+xr(i)),n&&En(o,i.height),o.curOp.forceUpdate=!0}return!0})),o&&sr(o,"lineWidgetAdded",o,i,"number"==typeof e?e:Kt(e)),i}(this,t,e,r)})),removeLineWidget:function(t){t.clear()},markText:function(t,e,r){return To(this,se(this,t),se(this,e),r,r&&r.type||"range")},setBookmark:function(t,e){var r={replacedWith:e&&(null==e.nodeType?e.widget:e),insertLeft:e&&e.insertLeft,clearWhenEmpty:!1,shared:e&&e.shared,handleMouseEvents:e&&e.handleMouseEvents};return To(this,t=se(this,t),t,r,"bookmark")},findMarksAt:function(t){var e=[],r=qt(this,(t=se(this,t)).line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=t.ch)&&(null==i.to||i.to>=t.ch)&&e.push(i.marker.parent||i.marker)}return e},findMarks:function(t,e,r){t=se(this,t),e=se(this,e);var n=[],i=t.line;return this.iter(t.line,e.line+1,(function(o){var a=o.markedSpans;if(a)for(var s=0;s<a.length;s++){var l=a[s];null!=l.to&&i==t.line&&t.ch>=l.to||null==l.from&&i!=t.line||null!=l.from&&i==e.line&&l.from>=e.ch||r&&!r(l.marker)||n.push(l.marker.parent||l.marker)}++i})),n},getAllMarks:function(){var t=[];return this.iter((function(e){var r=e.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&t.push(r[n].marker)})),t},posFromIndex:function(t){var e,r=this.first,n=this.lineSeparator().length;return this.iter((function(i){var o=i.text.length+n;if(o>t)return e=t,!0;t-=o,++r})),se(this,te(r,e))},indexFromPos:function(t){var e=(t=se(this,t)).ch;if(t.line<this.first||t.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,t.line,(function(t){e+=t.text.length+r})),e},copy:function(t){var e=new No(Xt(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return e.scrollTop=this.scrollTop,e.scrollLeft=this.scrollLeft,e.sel=this.sel,e.extend=!1,t&&(e.history.undoDepth=this.history.undoDepth,e.setHistory(this.getHistory())),e},linkedDoc:function(t){t||(t={});var e=this.first,r=this.first+this.size;null!=t.from&&t.from>e&&(e=t.from),null!=t.to&&t.to<r&&(r=t.to);var n=new No(Xt(this,e,r),t.mode||this.modeOption,e,this.lineSep,this.direction);return t.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:t.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],function(t,e){for(var r=0;r<e.length;r++){var n=e[r],i=n.find(),o=t.clipPos(i.from),a=t.clipPos(i.to);if(ee(o,a)){var s=To(t,o,a,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}(n,Oo(this)),n},unlinkDoc:function(t){if(t instanceof Aa&&(t=t.doc),this.linked)for(var e=0;e<this.linked.length;++e)if(this.linked[e].doc==t){this.linked.splice(e,1),t.unlinkDoc(this),Lo(Oo(this));break}if(t.history==this.history){var r=[t.id];_i(t,(function(t){return r.push(t.id)}),!0),t.history=new Fi(null),t.history.done=qi(this.history.done,r),t.history.undone=qi(this.history.undone,r)}},iterLinkedDocs:function(t){_i(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):Nt(t)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:ri((function(t){var e;"rtl"!=t&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter((function(t){return t.order=null})),this.cm&&Jn(e=this.cm,(function(){Di(e),fn(e)})))}))}),No.prototype.eachLine=No.prototype.iter;var Ro=0;function Io(t){var e=this;if(_o(e),!gt(e,t)&&!wr(e.display,t)){bt(t),a&&(Ro=+new Date);var r=un(e,t,!0),n=t.dataTransfer.files;if(r&&!e.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),s=0,l=function(){++s==i&&ti(e,(function(){var t={from:r=se(e.doc,r),to:r,text:e.doc.splitLines(o.filter((function(t){return null!=t})).join(e.doc.lineSeparator())),origin:"paste"};uo(e.doc,t),Qi(e.doc,ki(se(e.doc,r),se(e.doc,Ti(t))))}))()},u=function(t,r){if(e.options.allowDropFileTypes&&-1==z(e.options.allowDropFileTypes,t.type))l();else{var n=new FileReader;n.onerror=function(){return l()},n.onload=function(){var t=n.result;/[\x00-\x08\x0e-\x1f]{2}/.test(t)||(o[r]=t),l()},n.readAsText(t)}},c=0;c<n.length;c++)u(n[c],c);else{if(e.state.draggingText&&e.doc.sel.contains(r)>-1)return e.state.draggingText(t),void setTimeout((function(){return e.display.input.focus()}),20);try{var f=t.dataTransfer.getData("Text");if(f){var h;if(e.state.draggingText&&!e.state.draggingText.copy&&(h=e.listSelections()),to(e.doc,ki(r,r)),h)for(var d=0;d<h.length;++d)go(e.doc,"",h[d].anchor,h[d].head,"drag");e.replaceSelection(f,"around","paste"),e.display.input.focus()}}catch(t){}}}}function _o(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Po(t){if(document.getElementsByClassName){for(var e=document.getElementsByClassName("CodeMirror"),r=[],n=0;n<e.length;n++){var i=e[n].CodeMirror;i&&r.push(i)}r.length&&r[0].operation((function(){for(var e=0;e<r.length;e++)t(r[e])}))}}var Do=!1;function Fo(){var t;Do||(ft(window,"resize",(function(){null==t&&(t=setTimeout((function(){t=null,Po(Wo)}),100))})),ft(window,"blur",(function(){return Po(kn)})),Do=!0)}function Wo(t){var e=t.display;e.cachedCharWidth=e.cachedTextHeight=e.cachedPaddingH=null,e.scrollbarsClipped=!1,t.setSize()}for(var Ho={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},zo=0;zo<10;zo++)Ho[zo+48]=Ho[zo+96]=String(zo);for(var Uo=65;Uo<=90;Uo++)Ho[Uo]=String.fromCharCode(Uo);for(var jo=1;jo<=12;jo++)Ho[jo+111]=Ho[jo+63235]="F"+jo;var Bo={};function Vo(t){var e,r,n,i,o=t.split(/-(?!$)/);t=o[o.length-1];for(var a=0;a<o.length-1;a++){var s=o[a];if(/^(cmd|meta|m)$/i.test(s))i=!0;else if(/^a(lt)?$/i.test(s))e=!0;else if(/^(c|ctrl|control)$/i.test(s))r=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);n=!0}}return e&&(t="Alt-"+t),r&&(t="Ctrl-"+t),i&&(t="Cmd-"+t),n&&(t="Shift-"+t),t}function Go(t){var e={};for(var r in t)if(t.hasOwnProperty(r)){var n=t[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete t[r];continue}for(var i=Z(r.split(" "),Vo),o=0;o<i.length;o++){var a=void 0,s=void 0;o==i.length-1?(s=i.join(" "),a=n):(s=i.slice(0,o+1).join(" "),a="...");var l=e[s];if(l){if(l!=a)throw new Error("Inconsistent bindings for "+s)}else e[s]=a}delete t[r]}for(var u in e)t[u]=e[u];return t}function qo(t,e,r,n){var i=(e=Ko(e)).call?e.call(t,n):e[t];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(e.fallthrough){if("[object Array]"!=Object.prototype.toString.call(e.fallthrough))return qo(t,e.fallthrough,r,n);for(var o=0;o<e.fallthrough.length;o++){var a=qo(t,e.fallthrough[o],r,n);if(a)return a}}}function Yo(t){var e="string"==typeof t?t:Ho[t.keyCode];return"Ctrl"==e||"Alt"==e||"Shift"==e||"Mod"==e}function Xo(t,e,r){var n=t;return e.altKey&&"Alt"!=n&&(t="Alt-"+t),(S?e.metaKey:e.ctrlKey)&&"Ctrl"!=n&&(t="Ctrl-"+t),(S?e.ctrlKey:e.metaKey)&&"Cmd"!=n&&(t="Cmd-"+t),!r&&e.shiftKey&&"Shift"!=n&&(t="Shift-"+t),t}function Zo(t,e){if(f&&34==t.keyCode&&t.char)return!1;var r=Ho[t.keyCode];return null!=r&&!t.altGraphKey&&(3==t.keyCode&&t.code&&(r=t.code),Xo(r,t,e))}function Ko(t){return"string"==typeof t?Bo[t]:t}function $o(t,e){for(var r=t.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=e(r[i]);n.length&&ee(o.from,X(n).to)<=0;){var a=n.pop();if(ee(a.from,o.from)<0){o.from=a.from;break}}n.push(o)}Jn(t,(function(){for(var e=n.length-1;e>=0;e--)go(t.doc,"",n[e].from,n[e].to,"+delete");Nn(t)}))}function Qo(t,e,r){var n=it(t.text,e+r,r);return n<0||n>t.text.length?null:n}function Jo(t,e,r){var n=Qo(t,e.ch,r);return null==n?null:new te(e.line,n,r<0?"after":"before")}function ta(t,e,r,n,i){if(t){"rtl"==e.doc.direction&&(i=-i);var o=ut(r,e.doc.direction);if(o){var a,s=i<0?X(o):o[0],l=i<0==(1==s.level)?"after":"before";if(s.level>0||"rtl"==e.doc.direction){var u=Nr(e,r);a=i<0?r.text.length-1:0;var c=Rr(e,u,a).top;a=ot((function(t){return Rr(e,u,t).top==c}),i<0==(1==s.level)?s.from:s.to-1,a),"before"==l&&(a=Qo(r,a,1))}else a=i<0?s.to:s.from;return new te(n,a,l)}}return new te(n,i<0?r.text.length:0,i<0?"before":"after")}Bo.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"},Bo.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"},Bo.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"},Bo.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"]},Bo.default=y?Bo.macDefault:Bo.pcDefault;var ea={selectAll:so,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),j)},killLine:function(t){return $o(t,(function(e){if(e.empty()){var r=qt(t.doc,e.head.line).text.length;return e.head.ch==r&&e.head.line<t.lastLine()?{from:e.head,to:te(e.head.line+1,0)}:{from:e.head,to:te(e.head.line,r)}}return{from:e.from(),to:e.to()}}))},deleteLine:function(t){return $o(t,(function(e){return{from:te(e.from().line,0),to:se(t.doc,te(e.to().line+1,0))}}))},delLineLeft:function(t){return $o(t,(function(t){return{from:te(t.from().line,0),to:t.from()}}))},delWrappedLineLeft:function(t){return $o(t,(function(e){var r=t.charCoords(e.head,"div").top+5;return{from:t.coordsChar({left:0,top:r},"div"),to:e.from()}}))},delWrappedLineRight:function(t){return $o(t,(function(e){var r=t.charCoords(e.head,"div").top+5,n=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:r},"div");return{from:e.from(),to:n}}))},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(te(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(te(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy((function(e){return ra(t,e.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy((function(e){return na(t,e.head)}),{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy((function(e){return function(t,e){var r=qt(t.doc,e),n=function(t){for(var e;e=Pe(t);)t=e.find(1,!0).line;return t}(r);return n!=r&&(e=Kt(n)),ta(!0,t,r,e,-1)}(t,e.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy((function(e){var r=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:r},"div")}),V)},goLineLeft:function(t){return t.extendSelectionsBy((function(e){var r=t.cursorCoords(e.head,"div").top+5;return t.coordsChar({left:0,top:r},"div")}),V)},goLineLeftSmart:function(t){return t.extendSelectionsBy((function(e){var r=t.cursorCoords(e.head,"div").top+5,n=t.coordsChar({left:0,top:r},"div");return n.ch<t.getLine(n.line).search(/\S/)?na(t,e.head):n}),V)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"char")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection("\t")},insertSoftTab:function(t){for(var e=[],r=t.listSelections(),n=t.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),a=W(t.getLine(o.line),o.ch,n);e.push(Y(n-a%n))}t.replaceSelections(e)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return Jn(t,(function(){for(var e=t.listSelections(),r=[],n=0;n<e.length;n++)if(e[n].empty()){var i=e[n].head,o=qt(t.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new te(i.line,i.ch-1)),i.ch>0)i=new te(i.line,i.ch+1),t.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),te(i.line,i.ch-2),i,"+transpose");else if(i.line>t.doc.first){var a=qt(t.doc,i.line-1).text;a&&(i=new te(i.line,1),t.replaceRange(o.charAt(0)+t.doc.lineSeparator()+a.charAt(a.length-1),te(i.line-1,a.length-1),i,"+transpose"))}r.push(new Ci(i,i))}t.setSelections(r)}))},newlineAndIndent:function(t){return Jn(t,(function(){for(var e=t.listSelections(),r=e.length-1;r>=0;r--)t.replaceRange(t.doc.lineSeparator(),e[r].anchor,e[r].head,"+input");e=t.listSelections();for(var n=0;n<e.length;n++)t.indentLine(e[n].from().line,null,!0);Nn(t)}))},openLine:function(t){return t.replaceSelection("\n","start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function ra(t,e){var r=qt(t.doc,e),n=We(r);return n!=r&&(e=Kt(n)),ta(!0,t,n,e,1)}function na(t,e){var r=ra(t,e.line),n=qt(t.doc,r.line),i=ut(n,t.doc.direction);if(!i||0==i[0].level){var o=Math.max(r.ch,n.text.search(/\S/)),a=e.line==r.line&&e.ch<=o&&e.ch;return te(r.line,a?0:o,r.sticky)}return r}function ia(t,e,r){if("string"==typeof e&&!(e=ea[e]))return!1;t.display.input.ensurePolled();var n=t.display.shift,i=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),r&&(t.display.shift=!1),i=e(t)!=U}finally{t.display.shift=n,t.state.suppressEdits=!1}return i}var oa=new H;function aa(t,e,r,n){var i=t.state.keySeq;if(i){if(Yo(e))return"handled";if(/\'$/.test(e)?t.state.keySeq=null:oa.set(50,(function(){t.state.keySeq==i&&(t.state.keySeq=null,t.display.input.reset())})),sa(t,i+" "+e,r,n))return!0}return sa(t,e,r,n)}function sa(t,e,r,n){var i=function(t,e,r){for(var n=0;n<t.state.keyMaps.length;n++){var i=qo(e,t.state.keyMaps[n],r,t);if(i)return i}return t.options.extraKeys&&qo(e,t.options.extraKeys,r,t)||qo(e,t.options.keyMap,r,t)}(t,e,n);return"multi"==i&&(t.state.keySeq=e),"handled"==i&&sr(t,"keyHandled",t,e,r),"handled"!=i&&"multi"!=i||(bt(r),wn(t)),!!i}function la(t,e){var r=Zo(e,!0);return!!r&&(e.shiftKey&&!t.state.keySeq?aa(t,"Shift-"+r,e,(function(e){return ia(t,e,!0)}))||aa(t,r,e,(function(e){if("string"==typeof e?/^go[A-Z]/.test(e):e.motion)return ia(t,e)})):aa(t,r,e,(function(e){return ia(t,e)})))}var ua=null;function ca(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||(e.curOp.focus=R(),gt(e,t)))){a&&s<11&&27==t.keyCode&&(t.returnValue=!1);var n=t.keyCode;e.display.shift=16==n||t.shiftKey;var i=la(e,t);f&&(ua=i?n:null,i||88!=n||It||!(y?t.metaKey:t.ctrlKey)||e.replaceSelection("",null,"cut")),r&&!y&&!i&&46==n&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=n||/\bCodeMirror-crosshair\b/.test(e.display.lineDiv.className)||function(t){var e=t.display.lineDiv;function r(t){18!=t.keyCode&&t.altKey||(T(e,"CodeMirror-crosshair"),dt(document,"keyup",r),dt(document,"mouseover",r))}I(e,"CodeMirror-crosshair"),ft(document,"keyup",r),ft(document,"mouseover",r)}(e)}}function fa(t){16==t.keyCode&&(this.doc.sel.shift=!1),gt(this,t)}function ha(t){var e=this;if(!(t.target&&t.target!=e.display.input.getField()||wr(e.display,t)||gt(e,t)||t.ctrlKey&&!t.altKey||y&&t.metaKey)){var r=t.keyCode,n=t.charCode;if(f&&r==ua)return ua=null,void bt(t);if(!f||t.which&&!(t.which<10)||!la(e,t)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(function(t,e,r){return aa(t,"'"+r+"'",e,(function(e){return ia(t,e,!0)}))}(e,t,i)||e.display.input.onKeyPress(t))}}}var da,pa,ga=function(t,e,r){this.time=t,this.pos=e,this.button=r};function va(t){var e=this,r=e.display;if(!(gt(e,t)||r.activeTouch&&r.input.supportsTouch()))if(r.input.ensurePolled(),r.shift=t.shiftKey,wr(r,t))l||(r.scroller.draggable=!1,setTimeout((function(){return r.scroller.draggable=!0}),100));else if(!ba(e,t)){var n=un(e,t),i=Mt(t),o=n?function(t,e){var r=+new Date;return pa&&pa.compare(r,t,e)?(da=pa=null,"triple"):da&&da.compare(r,t,e)?(pa=new ga(r,t,e),da=null,"double"):(da=new ga(r,t,e),pa=null,"single")}(n,i):"single";window.focus(),1==i&&e.state.selectingText&&e.state.selectingText(t),n&&function(t,e,r,n,i){var o="Click";return"double"==n?o="Double"+o:"triple"==n&&(o="Triple"+o),aa(t,Xo(o=(1==e?"Left":2==e?"Middle":"Right")+o,i),i,(function(e){if("string"==typeof e&&(e=ea[e]),!e)return!1;var n=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),n=e(t,r)!=U}finally{t.state.suppressEdits=!1}return n}))}(e,i,n,o,t)||(1==i?n?function(t,e,r,n){a?setTimeout(D(Sn,t),0):t.curOp.focus=R();var i,o=function(t,e,r){var n=t.getOption("configureMouse"),i=n?n(t,e,r):{};if(null==i.unit){var o=b?r.shiftKey&&r.metaKey:r.altKey;i.unit=o?"rectangle":"single"==e?"char":"double"==e?"word":"line"}return(null==i.extend||t.doc.extend)&&(i.extend=t.doc.extend||r.shiftKey),null==i.addNew&&(i.addNew=y?r.metaKey:r.ctrlKey),null==i.moveOnDrag&&(i.moveOnDrag=!(y?r.altKey:r.ctrlKey)),i}(t,r,n),u=t.doc.sel;t.options.dragDrop&&At&&!t.isReadOnly()&&"single"==r&&(i=u.contains(e))>-1&&(ee((i=u.ranges[i]).from(),e)<0||e.xRel>0)&&(ee(i.to(),e)>0||e.xRel<0)?function(t,e,r,n){var i=t.display,o=!1,u=ti(t,(function(e){l&&(i.scroller.draggable=!1),t.state.draggingText=!1,dt(i.wrapper.ownerDocument,"mouseup",u),dt(i.wrapper.ownerDocument,"mousemove",c),dt(i.scroller,"dragstart",f),dt(i.scroller,"drop",u),o||(bt(e),n.addNew||Xi(t.doc,r,null,null,n.extend),l&&!h||a&&9==s?setTimeout((function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()}),20):i.input.focus())})),c=function(t){o=o||Math.abs(e.clientX-t.clientX)+Math.abs(e.clientY-t.clientY)>=10},f=function(){return o=!0};l&&(i.scroller.draggable=!0),t.state.draggingText=u,u.copy=!n.moveOnDrag,i.scroller.dragDrop&&i.scroller.dragDrop(),ft(i.wrapper.ownerDocument,"mouseup",u),ft(i.wrapper.ownerDocument,"mousemove",c),ft(i.scroller,"dragstart",f),ft(i.scroller,"drop",u),Cn(t),setTimeout((function(){return i.input.focus()}),20)}(t,n,e,o):function(t,e,r,n){var i=t.display,o=t.doc;bt(e);var a,s,l=o.sel,u=l.ranges;if(n.addNew&&!n.extend?(s=o.sel.contains(r),a=s>-1?u[s]:new Ci(r,r)):(a=o.sel.primary(),s=o.sel.primIndex),"rectangle"==n.unit)n.addNew||(a=new Ci(r,r)),r=un(t,e,!0,!0),s=-1;else{var c=ma(t,r,n.unit);a=n.extend?Yi(a,c.anchor,c.head,n.extend):c}n.addNew?-1==s?(s=u.length,Ji(o,Mi(t,u.concat([a]),s),{scroll:!1,origin:"*mouse"})):u.length>1&&u[s].empty()&&"char"==n.unit&&!n.extend?(Ji(o,Mi(t,u.slice(0,s).concat(u.slice(s+1)),0),{scroll:!1,origin:"*mouse"}),l=o.sel):Ki(o,s,a,B):(s=0,Ji(o,new Si([a],0),B),l=o.sel);var f=r;function h(e){if(0!=ee(f,e))if(f=e,"rectangle"==n.unit){for(var i=[],u=t.options.tabSize,c=W(qt(o,r.line).text,r.ch,u),h=W(qt(o,e.line).text,e.ch,u),d=Math.min(c,h),p=Math.max(c,h),g=Math.min(r.line,e.line),v=Math.min(t.lastLine(),Math.max(r.line,e.line));g<=v;g++){var m=qt(o,g).text,y=G(m,d,u);d==p?i.push(new Ci(te(g,y),te(g,y))):m.length>y&&i.push(new Ci(te(g,y),te(g,G(m,p,u))))}i.length||i.push(new Ci(r,r)),Ji(o,Mi(t,l.ranges.slice(0,s).concat(i),s),{origin:"*mouse",scroll:!1}),t.scrollIntoView(e)}else{var b,x=a,w=ma(t,e,n.unit),S=x.anchor;ee(w.anchor,S)>0?(b=w.head,S=oe(x.from(),w.anchor)):(b=w.anchor,S=ie(x.to(),w.head));var C=l.ranges.slice(0);C[s]=function(t,e){var r=e.anchor,n=e.head,i=qt(t.doc,r.line);if(0==ee(r,n)&&r.sticky==n.sticky)return e;var o=ut(i);if(!o)return e;var a=st(o,r.ch,r.sticky),s=o[a];if(s.from!=r.ch&&s.to!=r.ch)return e;var l,u=a+(s.from==r.ch==(1!=s.level)?0:1);if(0==u||u==o.length)return e;if(n.line!=r.line)l=(n.line-r.line)*("ltr"==t.doc.direction?1:-1)>0;else{var c=st(o,n.ch,n.sticky),f=c-a||(n.ch-r.ch)*(1==s.level?-1:1);l=c==u-1||c==u?f<0:f>0}var h=o[u+(l?-1:0)],d=l==(1==h.level),p=d?h.from:h.to,g=d?"after":"before";return r.ch==p&&r.sticky==g?e:new Ci(new te(r.line,p,g),n)}(t,new Ci(se(o,S),b)),Ji(o,Mi(t,C,s),B)}}var d=i.wrapper.getBoundingClientRect(),p=0;function g(e){t.state.selectingText=!1,p=1/0,e&&(bt(e),i.input.focus()),dt(i.wrapper.ownerDocument,"mousemove",v),dt(i.wrapper.ownerDocument,"mouseup",m),o.history.lastSelOrigin=null}var v=ti(t,(function(e){0!==e.buttons&&Mt(e)?function e(r){var a=++p,s=un(t,r,!0,"rectangle"==n.unit);if(s)if(0!=ee(s,f)){t.curOp.focus=R(),h(s);var l=On(i,o);(s.line>=l.to||s.line<l.from)&&setTimeout(ti(t,(function(){p==a&&e(r)})),150)}else{var u=r.clientY<d.top?-20:r.clientY>d.bottom?20:0;u&&setTimeout(ti(t,(function(){p==a&&(i.scroller.scrollTop+=u,e(r))})),50)}}(e):g(e)})),m=ti(t,g);t.state.selectingText=m,ft(i.wrapper.ownerDocument,"mousemove",v),ft(i.wrapper.ownerDocument,"mouseup",m)}(t,n,e,o)}(e,n,o,t):Ct(t)==r.scroller&&bt(t):2==i?(n&&Xi(e.doc,n),setTimeout((function(){return r.input.focus()}),20)):3==i&&(C?e.display.input.onContextMenu(t):Cn(e)))}}function ma(t,e,r){if("char"==r)return new Ci(e,e);if("word"==r)return t.findWordAt(e);if("line"==r)return new Ci(te(e.line,0),se(t.doc,te(e.line+1,0)));var n=r(t,e);return new Ci(n.from,n.to)}function ya(t,e,r,n){var i,o;if(e.touches)i=e.touches[0].clientX,o=e.touches[0].clientY;else try{i=e.clientX,o=e.clientY}catch(e){return!1}if(i>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;n&&bt(e);var a=t.display,s=a.lineDiv.getBoundingClientRect();if(o>s.bottom||!mt(t,r))return wt(e);o-=s.top-a.viewOffset;for(var l=0;l<t.display.gutterSpecs.length;++l){var u=a.gutters.childNodes[l];if(u&&u.getBoundingClientRect().right>=i)return pt(t,r,t,$t(t.doc,o),t.display.gutterSpecs[l].className,e),wt(e)}}function ba(t,e){return ya(t,e,"gutterClick",!0)}function xa(t,e){wr(t.display,e)||function(t,e){return!!mt(t,"gutterContextMenu")&&ya(t,e,"gutterContextMenu",!1)}(t,e)||gt(t,e,"contextmenu")||C||t.display.input.onContextMenu(e)}function wa(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Hr(t)}ga.prototype.compare=function(t,e,r){return this.time+400>t&&0==ee(e,this.pos)&&r==this.button};var Sa={toString:function(){return"CodeMirror.Init"}},Ca={},Ma={};function ka(t,e,r){if(!e!=!(r&&r!=Sa)){var n=t.display.dragFunctions,i=e?ft:dt;i(t.display.scroller,"dragstart",n.start),i(t.display.scroller,"dragenter",n.enter),i(t.display.scroller,"dragover",n.over),i(t.display.scroller,"dragleave",n.leave),i(t.display.scroller,"drop",n.drop)}}function Ta(t){t.options.lineWrapping?(I(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(T(t.display.wrapper,"CodeMirror-wrap"),Ge(t)),ln(t),fn(t),Hr(t),setTimeout((function(){return Un(t)}),100)}function Aa(t,e){var r=this;if(!(this instanceof Aa))return new Aa(t,e);this.options=e=e?F(e):{},F(Ca,e,!1);var n=e.value;"string"==typeof n?n=new No(n,e.mode,null,e.lineSeparator,e.direction):e.mode&&(n.modeOption=e.mode),this.doc=n;var i=new Aa.inputStyles[e.inputStyle](this),o=this.display=new vi(t,n,i,e);for(var u in o.wrapper.CodeMirror=this,wa(this),e.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Vn(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 H,keySeq:null,specialChars:null},e.autofocus&&!m&&o.input.focus(),a&&s<11&&setTimeout((function(){return r.display.input.reset(!0)}),20),function(t){var e=t.display;ft(e.scroller,"mousedown",ti(t,va)),ft(e.scroller,"dblclick",a&&s<11?ti(t,(function(e){if(!gt(t,e)){var r=un(t,e);if(r&&!ba(t,e)&&!wr(t.display,e)){bt(e);var n=t.findWordAt(r);Xi(t.doc,n.anchor,n.head)}}})):function(e){return gt(t,e)||bt(e)}),ft(e.scroller,"contextmenu",(function(e){return xa(t,e)})),ft(e.input.getField(),"contextmenu",(function(r){e.scroller.contains(r.target)||xa(t,r)}));var r,n={end:0};function i(){e.activeTouch&&(r=setTimeout((function(){return e.activeTouch=null}),1e3),(n=e.activeTouch).end=+new Date)}function o(t,e){if(null==e.left)return!0;var r=e.left-t.left,n=e.top-t.top;return r*r+n*n>400}ft(e.scroller,"touchstart",(function(i){if(!gt(t,i)&&!function(t){if(1!=t.touches.length)return!1;var e=t.touches[0];return e.radiusX<=1&&e.radiusY<=1}(i)&&!ba(t,i)){e.input.ensurePolled(),clearTimeout(r);var o=+new Date;e.activeTouch={start:o,moved:!1,prev:o-n.end<=300?n:null},1==i.touches.length&&(e.activeTouch.left=i.touches[0].pageX,e.activeTouch.top=i.touches[0].pageY)}})),ft(e.scroller,"touchmove",(function(){e.activeTouch&&(e.activeTouch.moved=!0)})),ft(e.scroller,"touchend",(function(r){var n=e.activeTouch;if(n&&!wr(e,r)&&null!=n.left&&!n.moved&&new Date-n.start<300){var a,s=t.coordsChar(e.activeTouch,"page");a=!n.prev||o(n,n.prev)?new Ci(s,s):!n.prev.prev||o(n,n.prev.prev)?t.findWordAt(s):new Ci(te(s.line,0),se(t.doc,te(s.line+1,0))),t.setSelection(a.anchor,a.head),t.focus(),bt(r)}i()})),ft(e.scroller,"touchcancel",i),ft(e.scroller,"scroll",(function(){e.scroller.clientHeight&&(Pn(t,e.scroller.scrollTop),Fn(t,e.scroller.scrollLeft,!0),pt(t,"scroll",t))})),ft(e.scroller,"mousewheel",(function(e){return wi(t,e)})),ft(e.scroller,"DOMMouseScroll",(function(e){return wi(t,e)})),ft(e.wrapper,"scroll",(function(){return e.wrapper.scrollTop=e.wrapper.scrollLeft=0})),e.dragFunctions={enter:function(e){gt(t,e)||St(e)},over:function(e){gt(t,e)||(function(t,e){var r=un(t,e);if(r){var n=document.createDocumentFragment();yn(t,r,n),t.display.dragCursor||(t.display.dragCursor=L("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),O(t.display.dragCursor,n)}}(t,e),St(e))},start:function(e){return function(t,e){if(a&&(!t.state.draggingText||+new Date-Ro<100))St(e);else if(!gt(t,e)&&!wr(t.display,e)&&(e.dataTransfer.setData("Text",t.getSelection()),e.dataTransfer.effectAllowed="copyMove",e.dataTransfer.setDragImage&&!h)){var r=L("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",f&&(r.width=r.height=1,t.display.wrapper.appendChild(r),r._top=r.offsetTop),e.dataTransfer.setDragImage(r,0,0),f&&r.parentNode.removeChild(r)}}(t,e)},drop:ti(t,Io),leave:function(e){gt(t,e)||_o(t)}};var l=e.input.getField();ft(l,"keyup",(function(e){return fa.call(t,e)})),ft(l,"keydown",ti(t,ca)),ft(l,"keypress",ti(t,ha)),ft(l,"focus",(function(e){return Mn(t,e)})),ft(l,"blur",(function(e){return kn(t,e)}))}(this),Fo(),qn(this),this.curOp.forceUpdate=!0,Pi(this,n),e.autofocus&&!m||this.hasFocus()?setTimeout(D(Mn,this),20):kn(this),Ma)Ma.hasOwnProperty(u)&&Ma[u](this,e[u],Sa);hi(this),e.finishInit&&e.finishInit(this);for(var c=0;c<Oa.length;++c)Oa[c](this);Yn(this),l&&e.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}Aa.defaults=Ca,Aa.optionHandlers=Ma;var Oa=[];function La(t,e,r,n){var i,o=t.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=de(t,e).state:r="prev");var a=t.options.tabSize,s=qt(o,e),l=W(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==U||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=e>o.first?W(qt(o,e-1).text,null,a):0:"add"==r?u=l+t.options.indentUnit:"subtract"==r?u=l-t.options.indentUnit:"number"==typeof r&&(u=l+r),u=Math.max(0,u);var f="",h=0;if(t.options.indentWithTabs)for(var d=Math.floor(u/a);d;--d)h+=a,f+="\t";if(h<u&&(f+=Y(u-h)),f!=c)return go(o,f,te(e,0),te(e,c.length),"+input"),s.stateAfter=null,!0;for(var p=0;p<o.sel.ranges.length;p++){var g=o.sel.ranges[p];if(g.head.line==e&&g.head.ch<c.length){var v=te(e,c.length);Ki(o,p,new Ci(v,v));break}}}Aa.defineInitHook=function(t){return Oa.push(t)};var Ea=null;function Na(t){Ea=t}function Ra(t,e,r,n,i){var o=t.doc;t.display.shift=!1,n||(n=o.sel);var a=+new Date-200,s="paste"==i||t.state.pasteIncoming>a,l=Nt(e),u=null;if(s&&n.ranges.length>1)if(Ea&&Ea.text.join("\n")==e){if(n.ranges.length%Ea.text.length==0){u=[];for(var c=0;c<Ea.text.length;c++)u.push(o.splitLines(Ea.text[c]))}}else l.length==n.ranges.length&&t.options.pasteLinesPerSelection&&(u=Z(l,(function(t){return[t]})));for(var f=t.curOp.updateInput,h=n.ranges.length-1;h>=0;h--){var d=n.ranges[h],p=d.from(),g=d.to();d.empty()&&(r&&r>0?p=te(p.line,p.ch-r):t.state.overwrite&&!s?g=te(g.line,Math.min(qt(o,g.line).text.length,g.ch+X(l).length)):s&&Ea&&Ea.lineWise&&Ea.text.join("\n")==e&&(p=g=te(p.line,0)));var v={from:p,to:g,text:u?u[h%u.length]:l,origin:i||(s?"paste":t.state.cutIncoming>a?"cut":"+input")};uo(t.doc,v),sr(t,"inputRead",t,v)}e&&!s&&_a(t,e),Nn(t),t.curOp.updateInput<2&&(t.curOp.updateInput=f),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function Ia(t,e){var r=t.clipboardData&&t.clipboardData.getData("Text");if(r)return t.preventDefault(),e.isReadOnly()||e.options.disableInput||Jn(e,(function(){return Ra(e,r,0,null,"paste")})),!0}function _a(t,e){if(t.options.electricChars&&t.options.smartIndent)for(var r=t.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=t.getModeAt(i.head),a=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(e.indexOf(o.electricChars.charAt(s))>-1){a=La(t,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(qt(t.doc,i.head.line).text.slice(0,i.head.ch))&&(a=La(t,i.head.line,"smart"));a&&sr(t,"electricInput",t,i.head.line)}}}function Pa(t){for(var e=[],r=[],n=0;n<t.doc.sel.ranges.length;n++){var i=t.doc.sel.ranges[n].head.line,o={anchor:te(i,0),head:te(i+1,0)};r.push(o),e.push(t.getRange(o.anchor,o.head))}return{text:e,ranges:r}}function Da(t,e,r,n){t.setAttribute("autocorrect",r?"":"off"),t.setAttribute("autocapitalize",n?"":"off"),t.setAttribute("spellcheck",!!e)}function Fa(){var t=L("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),e=L("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return l?t.style.width="1000px":t.setAttribute("wrap","off"),g&&(t.style.border="1px solid black"),Da(t),e}function Wa(t,e,r,n,i){var o=e,a=r,s=qt(t,e.line),l=i&&"rtl"==t.direction?-r:r;function u(n){var o,a;if(null==(o=i?function(t,e,r,n){var i=ut(e,t.doc.direction);if(!i)return Jo(e,r,n);r.ch>=e.text.length?(r.ch=e.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=st(i,r.ch,r.sticky),a=i[o];if("ltr"==t.doc.direction&&a.level%2==0&&(n>0?a.to>r.ch:a.from<r.ch))return Jo(e,r,n);var s,l=function(t,r){return Qo(e,t instanceof te?t.ch:t,r)},u=function(r){return t.options.lineWrapping?(s=s||Nr(t,e),$r(t,e,s,r)):{begin:0,end:e.text.length}},c=u("before"==r.sticky?l(r,-1):r.ch);if("rtl"==t.doc.direction||1==a.level){var f=1==a.level==n<0,h=l(r,f?1:-1);if(null!=h&&(f?h<=a.to&&h<=c.end:h>=a.from&&h>=c.begin)){var d=f?"before":"after";return new te(r.line,h,d)}}var p=function(t,e,n){for(var o=function(t,e){return e?new te(r.line,l(t,1),"before"):new te(r.line,t,"after")};t>=0&&t<i.length;t+=e){var a=i[t],s=e>0==(1!=a.level),u=s?n.begin:l(n.end,-1);if(a.from<=u&&u<a.to)return o(u,s);if(u=s?a.from:l(a.to,-1),n.begin<=u&&u<n.end)return o(u,s)}},g=p(o+n,n,c);if(g)return g;var v=n>0?c.end:l(c.begin,-1);return null==v||n>0&&v==e.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}(t.cm,s,e,r):Jo(s,e,r))){if(n||(a=e.line+l)<t.first||a>=t.first+t.size||(e=new te(a,e.ch,e.sticky),!(s=qt(t,a))))return!1;e=ta(i,t.cm,s,e.line,l)}else e=o;return!0}if("char"==n)u();else if("column"==n)u(!0);else if("word"==n||"group"==n)for(var c=null,f="group"==n,h=t.cm&&t.cm.getHelper(e,"wordChars"),d=!0;!(r<0)||u(!d);d=!1){var p=s.text.charAt(e.ch)||"\n",g=tt(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||g||(g="s"),c&&c!=g){r<0&&(r=1,u(),e.sticky="after");break}if(g&&(c=g),r>0&&!u(!d))break}var v=oo(t,e,o,a,!0);return re(o,v)&&(v.hitSide=!0),v}function Ha(t,e,r,n){var i,o,a=t.doc,s=e.left;if("page"==n){var l=Math.min(t.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(l-.5*rn(t.display),3);i=(r>0?e.bottom:e.top)+r*u}else"line"==n&&(i=r>0?e.bottom+3:e.top-3);for(;(o=Zr(t,s,i)).outside;){if(r<0?i<=0:i>=a.height){o.hitSide=!0;break}i+=5*r}return o}var za=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new H,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Ua(t,e){var r=Er(t,e.line);if(!r||r.hidden)return null;var n=qt(t.doc,e.line),i=Or(r,n,e.line),o=ut(n,t.doc.direction),a="left";o&&(a=st(o,e.ch)%2?"right":"left");var s=Pr(i.map,e.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function ja(t,e){return e&&(t.bad=!0),t}function Ba(t,e,r){var n;if(e==t.display.lineDiv){if(!(n=t.display.lineDiv.childNodes[r]))return ja(t.clipPos(te(t.display.viewTo-1)),!0);e=null,r=0}else for(n=e;;n=n.parentNode){if(!n||n==t.display.lineDiv)return null;if(n.parentNode&&n.parentNode==t.display.lineDiv)break}for(var i=0;i<t.display.view.length;i++){var o=t.display.view[i];if(o.node==n)return Va(o,e,r)}}function Va(t,e,r){var n=t.text.firstChild,i=!1;if(!e||!N(n,e))return ja(te(Kt(t.line),0),!0);if(e==n&&(i=!0,e=n.childNodes[r],r=0,!e)){var o=t.rest?X(t.rest):t.line;return ja(te(Kt(o),o.text.length),i)}var a=3==e.nodeType?e:null,s=e;for(a||1!=e.childNodes.length||3!=e.firstChild.nodeType||(a=e.firstChild,r&&(r=a.nodeValue.length));s.parentNode!=n;)s=s.parentNode;var l=t.measure,u=l.maps;function c(e,r,n){for(var i=-1;i<(u?u.length:0);i++)for(var o=i<0?l.map:u[i],a=0;a<o.length;a+=3){var s=o[a+2];if(s==e||s==r){var c=Kt(i<0?t.line:t.rest[i]),f=o[a]+n;return(n<0||s!=e)&&(f=o[a+(n?1:0)]),te(c,f)}}}var f=c(a,s,r);if(f)return ja(f,i);for(var h=s.nextSibling,d=a?a.nodeValue.length-r:0;h;h=h.nextSibling){if(f=c(h,h.firstChild,0))return ja(te(f.line,f.ch-d),i);d+=h.textContent.length}for(var p=s.previousSibling,g=r;p;p=p.previousSibling){if(f=c(p,p.firstChild,-1))return ja(te(f.line,f.ch+g),i);g+=p.textContent.length}}za.prototype.init=function(t){var e=this,r=this,n=r.cm,i=r.div=t.lineDiv;function o(t){for(var e=t.target;e;e=e.parentNode){if(e==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(e.className))break}return!1}function a(t){if(o(t)&&!gt(n,t)){if(n.somethingSelected())Na({lineWise:!1,text:n.getSelections()}),"cut"==t.type&&n.replaceSelection("",null,"cut");else{if(!n.options.lineWiseCopyCut)return;var e=Pa(n);Na({lineWise:!0,text:e.text}),"cut"==t.type&&n.operation((function(){n.setSelections(e.ranges,0,j),n.replaceSelection("",null,"cut")}))}if(t.clipboardData){t.clipboardData.clearData();var a=Ea.text.join("\n");if(t.clipboardData.setData("Text",a),t.clipboardData.getData("Text")==a)return void t.preventDefault()}var s=Fa(),l=s.firstChild;n.display.lineSpace.insertBefore(s,n.display.lineSpace.firstChild),l.value=Ea.text.join("\n");var u=document.activeElement;P(l),setTimeout((function(){n.display.lineSpace.removeChild(s),u.focus(),u==i&&r.showPrimarySelection()}),50)}}Da(i,n.options.spellcheck,n.options.autocorrect,n.options.autocapitalize),ft(i,"paste",(function(t){!o(t)||gt(n,t)||Ia(t,n)||s<=11&&setTimeout(ti(n,(function(){return e.updateFromDOM()})),20)})),ft(i,"compositionstart",(function(t){e.composing={data:t.data,done:!1}})),ft(i,"compositionupdate",(function(t){e.composing||(e.composing={data:t.data,done:!1})})),ft(i,"compositionend",(function(t){e.composing&&(t.data!=e.composing.data&&e.readFromDOMSoon(),e.composing.done=!0)})),ft(i,"touchstart",(function(){return r.forceCompositionEnd()})),ft(i,"input",(function(){e.composing||e.readFromDOMSoon()})),ft(i,"copy",a),ft(i,"cut",a)},za.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},za.prototype.prepareSelection=function(){var t=mn(this.cm,!1);return t.focus=document.activeElement==this.div,t},za.prototype.showSelection=function(t,e){t&&this.cm.display.view.length&&((t.focus||e)&&this.showPrimarySelection(),this.showMultipleSelections(t))},za.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},za.prototype.showPrimarySelection=function(){var t=this.getSelection(),e=this.cm,n=e.doc.sel.primary(),i=n.from(),o=n.to();if(e.display.viewTo==e.display.viewFrom||i.line>=e.display.viewTo||o.line<e.display.viewFrom)t.removeAllRanges();else{var a=Ba(e,t.anchorNode,t.anchorOffset),s=Ba(e,t.focusNode,t.focusOffset);if(!a||a.bad||!s||s.bad||0!=ee(oe(a,s),i)||0!=ee(ie(a,s),o)){var l=e.display.view,u=i.line>=e.display.viewFrom&&Ua(e,i)||{node:l[0].measure.map[2],offset:0},c=o.line<e.display.viewTo&&Ua(e,o);if(!c){var f=l[l.length-1].measure,h=f.maps?f.maps[f.maps.length-1]:f.map;c={node:h[h.length-1],offset:h[h.length-2]-h[h.length-3]}}if(u&&c){var d,p=t.rangeCount&&t.getRangeAt(0);try{d=k(u.node,u.offset,c.offset,c.node)}catch(t){}d&&(!r&&e.state.focused?(t.collapse(u.node,u.offset),d.collapsed||(t.removeAllRanges(),t.addRange(d))):(t.removeAllRanges(),t.addRange(d)),p&&null==t.anchorNode?t.addRange(p):r&&this.startGracePeriod()),this.rememberSelection()}else t.removeAllRanges()}}},za.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation((function(){return t.cm.curOp.selectionChanged=!0}))}),20)},za.prototype.showMultipleSelections=function(t){O(this.cm.display.cursorDiv,t.cursors),O(this.cm.display.selectionDiv,t.selection)},za.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},za.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var e=t.getRangeAt(0).commonAncestorContainer;return N(this.div,e)},za.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},za.prototype.blur=function(){this.div.blur()},za.prototype.getField=function(){return this.div},za.prototype.supportsTouch=function(){return!0},za.prototype.receivedFocus=function(){var t=this;this.selectionInEditor()?this.pollSelection():Jn(this.cm,(function(){return t.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}))},za.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},za.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var t=this.getSelection(),e=this.cm;if(v&&c&&this.cm.display.gutterSpecs.length&&function(t){for(var e=t;e;e=e.parentNode)if(/CodeMirror-gutter-wrapper/.test(e.className))return!0;return!1}(t.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=Ba(e,t.anchorNode,t.anchorOffset),n=Ba(e,t.focusNode,t.focusOffset);r&&n&&Jn(e,(function(){Ji(e.doc,ki(r,n),j),(r.bad||n.bad)&&(e.curOp.selectionChanged=!0)}))}}},za.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t,e,r,n=this.cm,i=n.display,o=n.doc.sel.primary(),a=o.from(),s=o.to();if(0==a.ch&&a.line>n.firstLine()&&(a=te(a.line-1,qt(n.doc,a.line-1).length)),s.ch==qt(n.doc,s.line).text.length&&s.line<n.lastLine()&&(s=te(s.line+1,0)),a.line<i.viewFrom||s.line>i.viewTo-1)return!1;a.line==i.viewFrom||0==(t=cn(n,a.line))?(e=Kt(i.view[0].line),r=i.view[0].node):(e=Kt(i.view[t].line),r=i.view[t-1].node.nextSibling);var l,u,c=cn(n,s.line);if(c==i.view.length-1?(l=i.viewTo-1,u=i.lineDiv.lastChild):(l=Kt(i.view[c+1].line)-1,u=i.view[c+1].node.previousSibling),!r)return!1;for(var f=n.doc.splitLines(function(t,e,r,n,i){var o="",a=!1,s=t.doc.lineSeparator(),l=!1;function u(){a&&(o+=s,l&&(o+=s),a=l=!1)}function c(t){t&&(u(),o+=t)}function f(e){if(1==e.nodeType){var r=e.getAttribute("cm-text");if(r)return void c(r);var o,h=e.getAttribute("cm-marker");if(h){var d=t.findMarks(te(n,0),te(i+1,0),(v=+h,function(t){return t.id==v}));return void(d.length&&(o=d[0].find(0))&&c(Yt(t.doc,o.from,o.to).join(s)))}if("false"==e.getAttribute("contenteditable"))return;var p=/^(pre|div|p|li|table|br)$/i.test(e.nodeName);if(!/^br$/i.test(e.nodeName)&&0==e.textContent.length)return;p&&u();for(var g=0;g<e.childNodes.length;g++)f(e.childNodes[g]);/^(pre|p)$/i.test(e.nodeName)&&(l=!0),p&&(a=!0)}else 3==e.nodeType&&c(e.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;f(e),e!=r;)e=e.nextSibling,l=!1;return o}(n,r,u,e,l)),h=Yt(n.doc,te(e,0),te(l,qt(n.doc,l).text.length));f.length>1&&h.length>1;)if(X(f)==X(h))f.pop(),h.pop(),l--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),e++}for(var d=0,p=0,g=f[0],v=h[0],m=Math.min(g.length,v.length);d<m&&g.charCodeAt(d)==v.charCodeAt(d);)++d;for(var y=X(f),b=X(h),x=Math.min(y.length-(1==f.length?d:0),b.length-(1==h.length?d:0));p<x&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)++p;if(1==f.length&&1==h.length&&e==a.line)for(;d&&d>a.ch&&y.charCodeAt(y.length-p-1)==b.charCodeAt(b.length-p-1);)d--,p++;f[f.length-1]=y.slice(0,y.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var w=te(e,d),S=te(l,h.length?X(h).length-p:0);return f.length>1||f[0]||ee(w,S)?(go(n.doc,f,w,S,"+input"),!0):void 0},za.prototype.ensurePolled=function(){this.forceCompositionEnd()},za.prototype.reset=function(){this.forceCompositionEnd()},za.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},za.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))},za.prototype.updateFromDOM=function(){var t=this;!this.cm.isReadOnly()&&this.pollContent()||Jn(this.cm,(function(){return fn(t.cm)}))},za.prototype.setUneditable=function(t){t.contentEditable="false"},za.prototype.onKeyPress=function(t){0==t.charCode||this.composing||(t.preventDefault(),this.cm.isReadOnly()||ti(this.cm,Ra)(this.cm,String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),0))},za.prototype.readOnlyChanged=function(t){this.div.contentEditable=String("nocursor"!=t)},za.prototype.onContextMenu=function(){},za.prototype.resetPosition=function(){},za.prototype.needsContentAttribute=!0;var Ga=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new H,this.hasSelection=!1,this.composing=null};Ga.prototype.init=function(t){var e=this,r=this,n=this.cm;this.createField(t);var i=this.textarea;function o(t){if(!gt(n,t)){if(n.somethingSelected())Na({lineWise:!1,text:n.getSelections()});else{if(!n.options.lineWiseCopyCut)return;var e=Pa(n);Na({lineWise:!0,text:e.text}),"cut"==t.type?n.setSelections(e.ranges,null,j):(r.prevInput="",i.value=e.text.join("\n"),P(i))}"cut"==t.type&&(n.state.cutIncoming=+new Date)}}t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),g&&(i.style.width="0px"),ft(i,"input",(function(){a&&s>=9&&e.hasSelection&&(e.hasSelection=null),r.poll()})),ft(i,"paste",(function(t){gt(n,t)||Ia(t,n)||(n.state.pasteIncoming=+new Date,r.fastPoll())})),ft(i,"cut",o),ft(i,"copy",o),ft(t.scroller,"paste",(function(e){if(!wr(t,e)&&!gt(n,e)){if(!i.dispatchEvent)return n.state.pasteIncoming=+new Date,void r.focus();var o=new Event("paste");o.clipboardData=e.clipboardData,i.dispatchEvent(o)}})),ft(t.lineSpace,"selectstart",(function(e){wr(t,e)||bt(e)})),ft(i,"compositionstart",(function(){var t=n.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:t,range:n.markText(t,n.getCursor("to"),{className:"CodeMirror-composing"})}})),ft(i,"compositionend",(function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)}))},Ga.prototype.createField=function(t){this.wrapper=Fa(),this.textarea=this.wrapper.firstChild},Ga.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Ga.prototype.prepareSelection=function(){var t=this.cm,e=t.display,r=t.doc,n=mn(t);if(t.options.moveInputWithCursor){var i=qr(t,r.sel.primary().head,"div"),o=e.wrapper.getBoundingClientRect(),a=e.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(e.wrapper.clientHeight-10,i.top+a.top-o.top)),n.teLeft=Math.max(0,Math.min(e.wrapper.clientWidth-10,i.left+a.left-o.left))}return n},Ga.prototype.showSelection=function(t){var e=this.cm.display;O(e.cursorDiv,t.cursors),O(e.selectionDiv,t.selection),null!=t.teTop&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Ga.prototype.reset=function(t){if(!this.contextMenuPending&&!this.composing){var e=this.cm;if(e.somethingSelected()){this.prevInput="";var r=e.getSelection();this.textarea.value=r,e.state.focused&&P(this.textarea),a&&s>=9&&(this.hasSelection=r)}else t||(this.prevInput=this.textarea.value="",a&&s>=9&&(this.hasSelection=null))}},Ga.prototype.getField=function(){return this.textarea},Ga.prototype.supportsTouch=function(){return!1},Ga.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!m||R()!=this.textarea))try{this.textarea.focus()}catch(t){}},Ga.prototype.blur=function(){this.textarea.blur()},Ga.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ga.prototype.receivedFocus=function(){this.slowPoll()},Ga.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){t.poll(),t.cm.state.focused&&t.slowPoll()}))},Ga.prototype.fastPoll=function(){var t=!1,e=this;e.pollingFast=!0,e.polling.set(20,(function r(){e.poll()||t?(e.pollingFast=!1,e.slowPoll()):(t=!0,e.polling.set(60,r))}))},Ga.prototype.poll=function(){var t=this,e=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!e.state.focused||Rt(r)&&!n&&!this.composing||e.isReadOnly()||e.options.disableInput||e.state.keySeq)return!1;var i=r.value;if(i==n&&!e.somethingSelected())return!1;if(a&&s>=9&&this.hasSelection===i||y&&/[\uf700-\uf7ff]/.test(i))return e.display.input.reset(),!1;if(e.doc.sel==e.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n="​"),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,u=Math.min(n.length,i.length);l<u&&n.charCodeAt(l)==i.charCodeAt(l);)++l;return Jn(e,(function(){Ra(e,i.slice(l),n.length-l,null,t.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=t.prevInput="":t.prevInput=i,t.composing&&(t.composing.range.clear(),t.composing.range=e.markText(t.composing.start,e.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Ga.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ga.prototype.onKeyPress=function(){a&&s>=9&&(this.hasSelection=null),this.fastPoll()},Ga.prototype.onContextMenu=function(t){var e=this,r=e.cm,n=r.display,i=e.textarea;e.contextMenuPending&&e.contextMenuPending();var o=un(r,t),u=n.scroller.scrollTop;if(o&&!f){r.options.resetSelectionOnContextMenu&&-1==r.doc.sel.contains(o)&&ti(r,Ji)(r.doc,ki(o),j);var c,h=i.style.cssText,d=e.wrapper.style.cssText,p=e.wrapper.offsetParent.getBoundingClientRect();if(e.wrapper.style.cssText="position: static",i.style.cssText="position: absolute; width: 30px; height: 30px;\n      top: "+(t.clientY-p.top-5)+"px; left: "+(t.clientX-p.left-5)+"px;\n      z-index: 1000; background: "+(a?"rgba(255, 255, 255, .05)":"transparent")+";\n      outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",l&&(c=window.scrollY),n.input.focus(),l&&window.scrollTo(null,c),n.input.reset(),r.somethingSelected()||(i.value=e.prevInput=" "),e.contextMenuPending=m,n.selForContextMenu=r.doc.sel,clearTimeout(n.detectingSelectAll),a&&s>=9&&v(),C){St(t);var g=function(){dt(window,"mouseup",g),setTimeout(m,20)};ft(window,"mouseup",g)}else setTimeout(m,50)}function v(){if(null!=i.selectionStart){var t=r.somethingSelected(),o="​"+(t?i.value:"");i.value="⇚",i.value=o,e.prevInput=t?"":"​",i.selectionStart=1,i.selectionEnd=o.length,n.selForContextMenu=r.doc.sel}}function m(){if(e.contextMenuPending==m&&(e.contextMenuPending=!1,e.wrapper.style.cssText=d,i.style.cssText=h,a&&s<9&&n.scrollbars.setScrollTop(n.scroller.scrollTop=u),null!=i.selectionStart)){(!a||a&&s<9)&&v();var t=0,o=function(){n.selForContextMenu==r.doc.sel&&0==i.selectionStart&&i.selectionEnd>0&&"​"==e.prevInput?ti(r,so)(r):t++<10?n.detectingSelectAll=setTimeout(o,500):(n.selForContextMenu=null,n.input.reset())};n.detectingSelectAll=setTimeout(o,200)}}},Ga.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled="nocursor"==t},Ga.prototype.setUneditable=function(){},Ga.prototype.needsContentAttribute=!1,function(t){var e=t.optionHandlers;function r(r,n,i,o){t.defaults[r]=n,i&&(e[r]=o?function(t,e,r){r!=Sa&&i(t,e,r)}:i)}t.defineOption=r,t.Init=Sa,r("value","",(function(t,e){return t.setValue(e)}),!0),r("mode",null,(function(t,e){t.doc.modeOption=e,Ei(t)}),!0),r("indentUnit",2,Ei,!0),r("indentWithTabs",!1),r("smartIndent",!0),r("tabSize",4,(function(t){Ni(t),Hr(t),fn(t)}),!0),r("lineSeparator",null,(function(t,e){if(t.doc.lineSep=e,e){var r=[],n=t.doc.first;t.doc.iter((function(t){for(var i=0;;){var o=t.text.indexOf(e,i);if(-1==o)break;i=o+e.length,r.push(te(n,o))}n++}));for(var i=r.length-1;i>=0;i--)go(t.doc,e,r[i],te(r[i].line,r[i].ch+e.length))}})),r("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(t,e,r){t.state.specialChars=new RegExp(e.source+(e.test("\t")?"":"|\t"),"g"),r!=Sa&&t.refresh()})),r("specialCharPlaceholder",Qe,(function(t){return t.refresh()}),!0),r("electricChars",!0),r("inputStyle",m?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),r("spellcheck",!1,(function(t,e){return t.getInputField().spellcheck=e}),!0),r("autocorrect",!1,(function(t,e){return t.getInputField().autocorrect=e}),!0),r("autocapitalize",!1,(function(t,e){return t.getInputField().autocapitalize=e}),!0),r("rtlMoveVisually",!x),r("wholeLineUpdateBefore",!0),r("theme","default",(function(t){wa(t),gi(t)}),!0),r("keyMap","default",(function(t,e,r){var n=Ko(e),i=r!=Sa&&Ko(r);i&&i.detach&&i.detach(t,n),n.attach&&n.attach(t,i||null)})),r("extraKeys",null),r("configureMouse",null),r("lineWrapping",!1,Ta,!0),r("gutters",[],(function(t,e){t.display.gutterSpecs=di(e,t.options.lineNumbers),gi(t)}),!0),r("fixedGutter",!0,(function(t,e){t.display.gutters.style.left=e?an(t.display)+"px":"0",t.refresh()}),!0),r("coverGutterNextToScrollbar",!1,(function(t){return Un(t)}),!0),r("scrollbarStyle","native",(function(t){Vn(t),Un(t),t.display.scrollbars.setScrollTop(t.doc.scrollTop),t.display.scrollbars.setScrollLeft(t.doc.scrollLeft)}),!0),r("lineNumbers",!1,(function(t,e){t.display.gutterSpecs=di(t.options.gutters,e),gi(t)}),!0),r("firstLineNumber",1,gi,!0),r("lineNumberFormatter",(function(t){return t}),gi,!0),r("showCursorWhenSelecting",!1,vn,!0),r("resetSelectionOnContextMenu",!0),r("lineWiseCopyCut",!0),r("pasteLinesPerSelection",!0),r("selectionsMayTouch",!1),r("readOnly",!1,(function(t,e){"nocursor"==e&&(kn(t),t.display.input.blur()),t.display.input.readOnlyChanged(e)})),r("screenReaderLabel",null,(function(t,e){e=""===e?null:e,t.display.input.screenReaderLabelChanged(e)})),r("disableInput",!1,(function(t,e){e||t.display.input.reset()}),!0),r("dragDrop",!0,ka),r("allowDropFileTypes",null),r("cursorBlinkRate",530),r("cursorScrollMargin",0),r("cursorHeight",1,vn,!0),r("singleCursorHeightPerLine",!0,vn,!0),r("workTime",100),r("workDelay",100),r("flattenSpans",!0,Ni,!0),r("addModeClass",!1,Ni,!0),r("pollInterval",100),r("undoDepth",200,(function(t,e){return t.doc.history.undoDepth=e})),r("historyEventDelay",1250),r("viewportMargin",10,(function(t){return t.refresh()}),!0),r("maxHighlightLength",1e4,Ni,!0),r("moveInputWithCursor",!0,(function(t,e){e||t.display.input.resetPosition()})),r("tabindex",null,(function(t,e){return t.display.input.getField().tabIndex=e||""})),r("autofocus",null),r("direction","ltr",(function(t,e){return t.doc.setDirection(e)}),!0),r("phrases",null)}(Aa),function(t){var e=t.optionHandlers,r=t.helpers={};t.prototype={constructor:t,focus:function(){window.focus(),this.display.input.focus()},setOption:function(t,r){var n=this.options,i=n[t];n[t]==r&&"mode"!=t||(n[t]=r,e.hasOwnProperty(t)&&ti(this,e[t])(this,r,i),pt(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"](Ko(t))},removeKeyMap:function(t){for(var e=this.state.keyMaps,r=0;r<e.length;++r)if(e[r]==t||e[r].name==t)return e.splice(r,1),!0},addOverlay:ei((function(e,r){var n=e.token?e:t.getMode(this.options,e);if(n.startState)throw new Error("Overlays may not be stateful.");!function(t,e,r){for(var n=0,i=r(e);n<t.length&&r(t[n])<=i;)n++;t.splice(n,0,e)}(this.state.overlays,{mode:n,modeSpec:e,opaque:r&&r.opaque,priority:r&&r.priority||0},(function(t){return t.priority})),this.state.modeGen++,fn(this)})),removeOverlay:ei((function(t){for(var e=this.state.overlays,r=0;r<e.length;++r){var n=e[r].modeSpec;if(n==t||"string"==typeof t&&n.name==t)return e.splice(r,1),this.state.modeGen++,void fn(this)}})),indentLine:ei((function(t,e,r){"string"!=typeof e&&"number"!=typeof e&&(e=null==e?this.options.smartIndent?"smart":"prev":e?"add":"subtract"),Qt(this.doc,t)&&La(this,t,e,r)})),indentSelection:ei((function(t){for(var e=this.doc.sel.ranges,r=-1,n=0;n<e.length;n++){var i=e[n];if(i.empty())i.head.line>r&&(La(this,i.head.line,t,!0),r=i.head.line,n==this.doc.sel.primIndex&&Nn(this));else{var o=i.from(),a=i.to(),s=Math.max(r,o.line);r=Math.min(this.lastLine(),a.line-(a.ch?0:1))+1;for(var l=s;l<r;++l)La(this,l,t);var u=this.doc.sel.ranges;0==o.ch&&e.length==u.length&&u[n].from().ch>0&&Ki(this.doc,n,new Ci(o,u[n].to()),j)}}})),getTokenAt:function(t,e){return ye(this,t,e)},getLineTokens:function(t,e){return ye(this,te(t),e,!0)},getTokenTypeAt:function(t){t=se(this.doc,t);var e,r=he(this,qt(this.doc,t.line)),n=0,i=(r.length-1)/2,o=t.ch;if(0==o)e=r[2];else for(;;){var a=n+i>>1;if((a?r[2*a-1]:0)>=o)i=a;else{if(!(r[2*a+1]<o)){e=r[2*a+2];break}n=a+1}}var s=e?e.indexOf("overlay "):-1;return s<0?e:0==s?null:e.slice(0,s-1)},getModeAt:function(e){var r=this.doc.mode;return r.innerMode?t.innerMode(r,this.getTokenAt(e).state).mode:r},getHelper:function(t,e){return this.getHelpers(t,e)[0]},getHelpers:function(t,e){var n=[];if(!r.hasOwnProperty(e))return n;var i=r[e],o=this.getModeAt(t);if("string"==typeof o[e])i[o[e]]&&n.push(i[o[e]]);else if(o[e])for(var a=0;a<o[e].length;a++){var s=i[o[e][a]];s&&n.push(s)}else o.helperType&&i[o.helperType]?n.push(i[o.helperType]):i[o.name]&&n.push(i[o.name]);for(var l=0;l<i._global.length;l++){var u=i._global[l];u.pred(o,this)&&-1==z(n,u.val)&&n.push(u.val)}return n},getStateAfter:function(t,e){var r=this.doc;return de(this,(t=ae(r,null==t?r.first+r.size-1:t))+1,e).state},cursorCoords:function(t,e){var r=this.doc.sel.primary();return qr(this,null==t?r.head:"object"==typeof t?se(this.doc,t):t?r.from():r.to(),e||"page")},charCoords:function(t,e){return Gr(this,se(this.doc,t),e||"page")},coordsChar:function(t,e){return Zr(this,(t=Vr(this,t,e||"page")).left,t.top)},lineAtHeight:function(t,e){return t=Vr(this,{top:t,left:0},e||"page").top,$t(this.doc,t+this.display.viewOffset)},heightAtLine:function(t,e,r){var n,i=!1;if("number"==typeof t){var o=this.doc.first+this.doc.size-1;t<this.doc.first?t=this.doc.first:t>o&&(t=o,i=!0),n=qt(this.doc,t)}else n=t;return Br(this,n,{top:0,left:0},e||"page",r||i).top+(i?this.doc.height-Be(n):0)},defaultTextHeight:function(){return rn(this.display)},defaultCharWidth:function(){return nn(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(t,e,r,n,i){var o,a,s,l=this.display,u=(t=qr(this,se(this.doc,t))).bottom,c=t.left;if(e.style.position="absolute",e.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(e),l.sizer.appendChild(e),"over"==n)u=t.top;else if("above"==n||"near"==n){var f=Math.max(l.wrapper.clientHeight,this.doc.height),h=Math.max(l.sizer.clientWidth,l.lineSpace.clientWidth);("above"==n||t.bottom+e.offsetHeight>f)&&t.top>e.offsetHeight?u=t.top-e.offsetHeight:t.bottom+e.offsetHeight<=f&&(u=t.bottom),c+e.offsetWidth>h&&(c=h-e.offsetWidth)}e.style.top=u+"px",e.style.left=e.style.right="","right"==i?(c=l.sizer.clientWidth-e.offsetWidth,e.style.right="0px"):("left"==i?c=0:"middle"==i&&(c=(l.sizer.clientWidth-e.offsetWidth)/2),e.style.left=c+"px"),r&&(o=this,a={left:c,top:u,right:c+e.offsetWidth,bottom:u+e.offsetHeight},null!=(s=Ln(o,a)).scrollTop&&Pn(o,s.scrollTop),null!=s.scrollLeft&&Fn(o,s.scrollLeft))},triggerOnKeyDown:ei(ca),triggerOnKeyPress:ei(ha),triggerOnKeyUp:fa,triggerOnMouseDown:ei(va),execCommand:function(t){if(ea.hasOwnProperty(t))return ea[t].call(null,this)},triggerElectric:ei((function(t){_a(this,t)})),findPosH:function(t,e,r,n){var i=1;e<0&&(i=-1,e=-e);for(var o=se(this.doc,t),a=0;a<e&&!(o=Wa(this.doc,o,i,r,n)).hitSide;++a);return o},moveH:ei((function(t,e){var r=this;this.extendSelectionsBy((function(n){return r.display.shift||r.doc.extend||n.empty()?Wa(r.doc,n.head,t,e,r.options.rtlMoveVisually):t<0?n.from():n.to()}),V)})),deleteH:ei((function(t,e){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):$o(this,(function(r){var i=Wa(n,r.head,t,e,!1);return t<0?{from:i,to:r.head}:{from:r.head,to:i}}))})),findPosV:function(t,e,r,n){var i=1,o=n;e<0&&(i=-1,e=-e);for(var a=se(this.doc,t),s=0;s<e;++s){var l=qr(this,a,"div");if(null==o?o=l.left:l.left=o,(a=Ha(this,l,i,r)).hitSide)break}return a},moveV:ei((function(t,e){var r=this,n=this.doc,i=[],o=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy((function(a){if(o)return t<0?a.from():a.to();var s=qr(r,a.head,"div");null!=a.goalColumn&&(s.left=a.goalColumn),i.push(s.left);var l=Ha(r,s,t,e);return"page"==e&&a==n.sel.primary()&&En(r,Gr(r,l,"div").top-s.top),l}),V),i.length)for(var a=0;a<n.sel.ranges.length;a++)n.sel.ranges[a].goalColumn=i[a]})),findWordAt:function(t){var e=qt(this.doc,t.line).text,r=t.ch,n=t.ch;if(e){var i=this.getHelper(t,"wordChars");"before"!=t.sticky&&n!=e.length||!r?++n:--r;for(var o=e.charAt(r),a=tt(o,i)?function(t){return tt(t,i)}:/\s/.test(o)?function(t){return/\s/.test(t)}:function(t){return!/\s/.test(t)&&!tt(t)};r>0&&a(e.charAt(r-1));)--r;for(;n<e.length&&a(e.charAt(n));)++n}return new Ci(te(t.line,r),te(t.line,n))},toggleOverwrite:function(t){null!=t&&t==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?I(this.display.cursorDiv,"CodeMirror-overwrite"):T(this.display.cursorDiv,"CodeMirror-overwrite"),pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==R()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ei((function(t,e){Rn(this,t,e)})),getScrollInfo:function(){var t=this.display.scroller;return{left:t.scrollLeft,top:t.scrollTop,height:t.scrollHeight-kr(this)-this.display.barHeight,width:t.scrollWidth-kr(this)-this.display.barWidth,clientHeight:Ar(this),clientWidth:Tr(this)}},scrollIntoView:ei((function(t,e){null==t?(t={from:this.doc.sel.primary().head,to:null},null==e&&(e=this.options.cursorScrollMargin)):"number"==typeof t?t={from:te(t,0),to:null}:null==t.from&&(t={from:t,to:null}),t.to||(t.to=t.from),t.margin=e||0,null!=t.from.line?function(t,e){In(t),t.curOp.scrollToPos=e}(this,t):_n(this,t.from,t.to,t.margin)})),setSize:ei((function(t,e){var r=this,n=function(t){return"number"==typeof t||/^\d+$/.test(String(t))?t+"px":t};null!=t&&(this.display.wrapper.style.width=n(t)),null!=e&&(this.display.wrapper.style.height=n(e)),this.options.lineWrapping&&Wr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,(function(t){if(t.widgets)for(var e=0;e<t.widgets.length;e++)if(t.widgets[e].noHScroll){hn(r,i,"widget");break}++i})),this.curOp.forceUpdate=!0,pt(this,"refresh",this)})),operation:function(t){return Jn(this,t)},startOperation:function(){return qn(this)},endOperation:function(){return Yn(this)},refresh:ei((function(){var t=this.display.cachedTextHeight;fn(this),this.curOp.forceUpdate=!0,Hr(this),Rn(this,this.doc.scrollLeft,this.doc.scrollTop),ui(this.display),(null==t||Math.abs(t-rn(this.display))>.5||this.options.lineWrapping)&&ln(this),pt(this,"refresh",this)})),swapDoc:ei((function(t){var e=this.doc;return e.cm=null,this.state.selectingText&&this.state.selectingText(),Pi(this,t),Hr(this),this.display.input.reset(),Rn(this,t.scrollLeft,t.scrollTop),this.curOp.forceScroll=!0,sr(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}},yt(t),t.registerHelper=function(e,n,i){r.hasOwnProperty(e)||(r[e]=t[e]={_global:[]}),r[e][n]=i},t.registerGlobalHelper=function(e,n,i,o){t.registerHelper(e,n,o),r[e]._global.push({pred:i,val:o})}}(Aa);var qa="iter insert remove copy getEditor constructor".split(" ");for(var Ya in No.prototype)No.prototype.hasOwnProperty(Ya)&&z(qa,Ya)<0&&(Aa.prototype[Ya]=function(t){return function(){return t.apply(this.doc,arguments)}}(No.prototype[Ya]));return yt(No),Aa.inputStyles={textarea:Ga,contenteditable:za},Aa.defineMode=function(t){Aa.defaults.mode||"null"==t||(Aa.defaults.mode=t),Ft.apply(this,arguments)},Aa.defineMIME=function(t,e){Dt[t]=e},Aa.defineMode("null",(function(){return{token:function(t){return t.skipToEnd()}}})),Aa.defineMIME("text/plain","null"),Aa.defineExtension=function(t,e){Aa.prototype[t]=e},Aa.defineDocExtension=function(t,e){No.prototype[t]=e},Aa.fromTextArea=function(t,e){if((e=e?F(e):{}).value=t.value,!e.tabindex&&t.tabIndex&&(e.tabindex=t.tabIndex),!e.placeholder&&t.placeholder&&(e.placeholder=t.placeholder),null==e.autofocus){var r=R();e.autofocus=r==t||null!=t.getAttribute("autofocus")&&r==document.body}function n(){t.value=s.getValue()}var i;if(t.form&&(ft(t.form,"submit",n),!e.leaveSubmitMethodAlone)){var o=t.form;i=o.submit;try{var a=o.submit=function(){n(),o.submit=i,o.submit(),o.submit=a}}catch(t){}}e.finishInit=function(r){r.save=n,r.getTextArea=function(){return t},r.toTextArea=function(){r.toTextArea=isNaN,n(),t.parentNode.removeChild(r.getWrapperElement()),t.style.display="",t.form&&(dt(t.form,"submit",n),e.leaveSubmitMethodAlone||"function"!=typeof t.form.submit||(t.form.submit=i))}},t.style.display="none";var s=Aa((function(e){return t.parentNode.insertBefore(e,t.nextSibling)}),e);return s},function(t){t.off=dt,t.on=ft,t.wheelEventPixels=xi,t.Doc=No,t.splitLines=Nt,t.countColumn=W,t.findColumn=G,t.isWordChar=J,t.Pass=U,t.signal=pt,t.Line=qe,t.changeEnd=Ti,t.scrollbarModel=Bn,t.Pos=te,t.cmpPos=ee,t.modes=Pt,t.mimeModes=Dt,t.resolveMode=Wt,t.getMode=Ht,t.modeExtensions=zt,t.extendMode=Ut,t.copyState=jt,t.startState=Vt,t.innerMode=Bt,t.commands=ea,t.keyMap=Bo,t.keyName=Zo,t.isModifierKey=Yo,t.lookupKey=qo,t.normalizeKeyMap=Go,t.StringStream=Gt,t.SharedTextMarker=Ao,t.TextMarker=ko,t.LineWidget=So,t.e_preventDefault=bt,t.e_stopPropagation=xt,t.e_stop=St,t.addClass=I,t.contains=N,t.rmClass=T,t.keyNames=Ho}(Aa),Aa.version="5.54.0",Aa}()},function(t,e,r){"use strict";function n(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&&i(t,e)}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,n=s(t);if(e){var i=s(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return a(this,r)}}function a(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function l(t,e){var r;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(r=g(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,i=function(){};return{s:i,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){r=t[Symbol.iterator]()},n:function(){var t=r.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==r.return||r.return()}finally{if(s)throw o}}}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function f(t,e,r){return e&&c(t.prototype,e),r&&c(t,r),t}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){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||g(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!e||r.length!==e);n=!0);}catch(t){i=!0,o=t}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return r}(t,e)||g(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){if(t){if("string"==typeof t)return v(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function m(t,e,r){if(t&&t.length){var n=p(e,2),i=n[0],o=n[1],a=Math.PI/180*r,s=Math.cos(a),l=Math.sin(a);t.forEach((function(t){var e=p(t,2),r=e[0],n=e[1];t[0]=(r-i)*s-(n-o)*l+i,t[1]=(r-i)*l+(n-o)*s+o}))}}function y(t){var e=t[0],r=t[1];return Math.sqrt(Math.pow(e[0]-r[0],2)+Math.pow(e[1]-r[1],2))}function b(t,e,r,n){var i=e[1]-t[1],o=t[0]-e[0],a=i*t[0]+o*t[1],s=n[1]-r[1],l=r[0]-n[0],u=s*r[0]+l*r[1],c=i*l-s*o;return c?[(l*a-o*u)/c,(i*u-s*a)/c]:null}function x(t,e,r){var n=t.length;if(n<3)return!1;for(var i=[Number.MAX_SAFE_INTEGER,r],o=[e,r],a=0,s=0;s<n;s++){var l=t[s],u=t[(s+1)%n];if(C(l,u,o,i)){if(0===S(l,o,u))return w(l,o,u);a++}}return a%2==1}function w(t,e,r){return e[0]<=Math.max(t[0],r[0])&&e[0]>=Math.min(t[0],r[0])&&e[1]<=Math.max(t[1],r[1])&&e[1]>=Math.min(t[1],r[1])}function S(t,e,r){var n=(e[1]-t[1])*(r[0]-e[0])-(e[0]-t[0])*(r[1]-e[1]);return 0===n?0:n>0?1:2}function C(t,e,r,n){var i=S(t,e,r),o=S(t,e,n),a=S(r,n,t),s=S(r,n,e);return i!==o&&a!==s||!(0!==i||!w(t,r,e))||!(0!==o||!w(t,n,e))||!(0!==a||!w(r,t,n))||!(0!==s||!w(r,e,n))}function M(t,e){var r=[0,0],n=Math.round(e.hachureAngle+90);n&&m(t,r,n);var i=function(t,e){var r=d(t);r[0].join(",")!==r[r.length-1].join(",")&&r.push([r[0][0],r[0][1]]);var n=[];if(r&&r.length>2){var i=function(){var t=e.hachureGap;t<0&&(t=4*e.strokeWidth),t=Math.max(t,.1);for(var i=[],o=0;o<r.length-1;o++){var a=r[o],s=r[o+1];if(a[1]!==s[1]){var l=Math.min(a[1],s[1]);i.push({ymin:l,ymax:Math.max(a[1],s[1]),x:l===a[1]?a[0]:s[0],islope:(s[0]-a[0])/(s[1]-a[1])})}}if(i.sort((function(t,e){return t.ymin<e.ymin?-1:t.ymin>e.ymin?1:t.x<e.x?-1:t.x>e.x?1:t.ymax===e.ymax?0:(t.ymax-e.ymax)/Math.abs(t.ymax-e.ymax)})),!i.length)return{v:n};for(var u=[],c=i[0].ymin;u.length||i.length;){if(i.length){for(var f=-1,h=0;h<i.length&&!(i[h].ymin>c);h++)f=h;i.splice(0,f+1).forEach((function(t){u.push({s:c,edge:t})}))}if((u=u.filter((function(t){return!(t.edge.ymax<=c)}))).sort((function(t,e){return t.edge.x===e.edge.x?0:(t.edge.x-e.edge.x)/Math.abs(t.edge.x-e.edge.x)})),u.length>1)for(var d=0;d<u.length;d+=2){var p=d+1;if(p>=u.length)break;var g=u[d].edge,v=u[p].edge;n.push([[Math.round(g.x),c],[Math.round(v.x),c]])}c+=t,u.forEach((function(e){e.edge.x=e.edge.x+t*e.edge.islope}))}}();if("object"===h(i))return i.v}return n}(t,e);return n&&(m(t,r,-n),function(t,e,r){var n=[];t.forEach((function(t){return n.push.apply(n,d(t))})),m(n,e,r)}(i,r,-n)),i}var k=function(){function t(e){u(this,t),this.helper=e}return f(t,[{key:"fillPolygon",value:function(t,e){return this._fillPolygon(t,e)}},{key:"_fillPolygon",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=M(t,e);if(r){var i=this.connectingLines(t,n);n=n.concat(i)}return{type:"fillSketch",ops:this.renderLines(n,e)}}},{key:"renderLines",value:function(t,e){var r,n=[],i=l(t);try{for(i.s();!(r=i.n()).done;){var o=r.value;n.push.apply(n,d(this.helper.doubleLineOps(o[0][0],o[0][1],o[1][0],o[1][1],e)))}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"connectingLines",value:function(t,e){var r=[];if(e.length>1)for(var n=1;n<e.length;n++){var i=e[n-1];if(!(y(i)<3)){var o=[e[n][0],i[1]];if(y(o)>3){var a=this.splitOnIntersections(t,o);r.push.apply(r,d(a))}}}return r}},{key:"midPointInPolygon",value:function(t,e){return x(t,(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2)}},{key:"splitOnIntersections",value:function(t,e){for(var r=Math.max(5,.1*y(e)),n=[],i=0;i<t.length;i++){var o=t[i],a=t[(i+1)%t.length];if(C.apply(void 0,[o,a].concat(d(e)))){var s=b(o,a,e[0],e[1]);if(s){var l=y([s,e[0]]),u=y([s,e[1]]);l>r&&u>r&&n.push({point:s,distance:l})}}}if(n.length>1){var c=n.sort((function(t,e){return t.distance-e.distance})).map((function(t){return t.point}));if(x.apply(void 0,[t].concat(d(e[0])))||c.shift(),x.apply(void 0,[t].concat(d(e[1])))||c.pop(),c.length<=1)return this.midPointInPolygon(t,e)?[e]:[];for(var f=[e[0]].concat(d(c),[e[1]]),h=[],p=0;p<f.length-1;p+=2){var g=[f[p],f[p+1]];this.midPointInPolygon(t,g)&&h.push(g)}return h}return this.midPointInPolygon(t,e)?[e]:[]}}]),t}(),T=function(t){n(r,t);var e=o(r);function r(){return u(this,r),e.apply(this,arguments)}return f(r,[{key:"fillPolygon",value:function(t,e){return this._fillPolygon(t,e,!0)}}]),r}(k),A=function(t){n(r,t);var e=o(r);function r(){return u(this,r),e.apply(this,arguments)}return f(r,[{key:"fillPolygon",value:function(t,e){var r=this._fillPolygon(t,e),n=Object.assign({},e,{hachureAngle:e.hachureAngle+90}),i=this._fillPolygon(t,n);return r.ops=r.ops.concat(i.ops),r}}]),r}(k),O=function(){function t(e){u(this,t),this.helper=e}return f(t,[{key:"fillPolygon",value:function(t,e){var r=M(t,e=Object.assign({},e,{curveStepCount:4,hachureAngle:0,roughness:1}));return this.dotsOnLines(r,e)}},{key:"dotsOnLines",value:function(t,e){var r=[],n=e.hachureGap;n<0&&(n=4*e.strokeWidth),n=Math.max(n,.1);var i=e.fillWeight;i<0&&(i=e.strokeWidth/2);var o,a=n/4,s=l(t);try{for(s.s();!(o=s.n()).done;)for(var u=o.value,c=y(u),f=c/n,h=Math.ceil(f)-1,p=c-h*n,g=(u[0][0]+u[1][0])/2-n/4,v=Math.min(u[0][1],u[1][1]),m=0;m<h;m++){var b=v+p+m*n,x=this.helper.randOffsetWithRange(g-a,g+a,e),w=this.helper.randOffsetWithRange(b-a,b+a,e),S=this.helper.ellipse(x,w,i,i,e);r.push.apply(r,d(S.ops))}}catch(t){s.e(t)}finally{s.f()}return{type:"fillSketch",ops:r}}}]),t}(),L=function(){function t(e){u(this,t),this.helper=e}return f(t,[{key:"fillPolygon",value:function(t,e){var r=M(t,e);return{type:"fillSketch",ops:this.dashedLine(r,e)}}},{key:"dashedLine",value:function(t,e){var r=this,n=e.dashOffset<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashOffset,i=e.dashGap<0?e.hachureGap<0?4*e.strokeWidth:e.hachureGap:e.dashGap,o=[];return t.forEach((function(t){var a=y(t),s=Math.floor(a/(n+i)),l=(a+i-s*(n+i))/2,u=t[0],c=t[1];u[0]>c[0]&&(u=t[1],c=t[0]);for(var f=Math.atan((c[1]-u[1])/(c[0]-u[0])),h=0;h<s;h++){var p=h*(n+i),g=p+n,v=[u[0]+p*Math.cos(f)+l*Math.cos(f),u[1]+p*Math.sin(f)+l*Math.sin(f)],m=[u[0]+g*Math.cos(f)+l*Math.cos(f),u[1]+g*Math.sin(f)+l*Math.sin(f)];o.push.apply(o,d(r.helper.doubleLineOps(v[0],v[1],m[0],m[1],e)))}})),o}}]),t}(),E=function(){function t(e){u(this,t),this.helper=e}return f(t,[{key:"fillPolygon",value:function(t,e){var r=e.hachureGap<0?4*e.strokeWidth:e.hachureGap,n=e.zigzagOffset<0?r:e.zigzagOffset,i=M(t,e=Object.assign({},e,{hachureGap:r+n}));return{type:"fillSketch",ops:this.zigzagLines(i,n,e)}}},{key:"zigzagLines",value:function(t,e,r){var n=this,i=[];return t.forEach((function(t){var o=y(t),a=Math.round(o/(2*e)),s=t[0],l=t[1];s[0]>l[0]&&(s=t[1],l=t[0]);for(var u=Math.atan((l[1]-s[1])/(l[0]-s[0])),c=0;c<a;c++){var f=2*c*e,h=2*(c+1)*e,p=Math.sqrt(2*Math.pow(e,2)),g=[s[0]+f*Math.cos(u),s[1]+f*Math.sin(u)],v=[s[0]+h*Math.cos(u),s[1]+h*Math.sin(u)],m=[g[0]+p*Math.cos(u+Math.PI/4),g[1]+p*Math.sin(u+Math.PI/4)];i.push.apply(i,d(n.helper.doubleLineOps(g[0],g[1],m[0],m[1],r)).concat(d(n.helper.doubleLineOps(m[0],m[1],v[0],v[1],r))))}})),i}}]),t}(),N={},R=function(){function t(e){u(this,t),this.seed=e}return f(t,[{key:"next",value:function(){return this.seed?(Math.pow(2,31)-1&(this.seed=Math.imul(48271,this.seed)))/Math.pow(2,31):Math.random()}}]),t}(),I={A:7,a:7,C:6,c:6,H:1,h:1,L:2,l:2,M:2,m:2,Q:4,q:4,S:4,s:4,T:2,t:2,V:1,v:1,Z:0,z:0};function _(t,e){return t.type===e}function P(t){for(var e=[],r=function(t){for(var e=new Array;""!==t;)if(t.match(/^([ \t\r\n,]+)/))t=t.substr(RegExp.$1.length);else if(t.match(/^([aAcChHlLmMqQsStTvVzZ])/))e[e.length]={type:0,text:RegExp.$1},t=t.substr(RegExp.$1.length);else{if(!t.match(/^(([-+]?[0-9]+(\.[0-9]*)?|[-+]?\.[0-9]+)([eE][-+]?[0-9]+)?)/))return[];e[e.length]={type:1,text:""+parseFloat(RegExp.$1)},t=t.substr(RegExp.$1.length)}return e[e.length]={type:2,text:""},e}(t),n="BOD",i=0,o=r[i];!_(o,2);){var a=0,s=[];if("BOD"===n){if("M"!==o.text&&"m"!==o.text)return P("M0,0"+t);i++,a=I[o.text],n=o.text}else _(o,1)?a=I[n]:(i++,a=I[o.text],n=o.text);if(!(i+a<r.length))throw new Error("Path data ended short");for(var l=i;l<i+a;l++){var u=r[l];if(!_(u,1))throw new Error("Param not a number: "+n+","+u.text);s[s.length]=+u.text}if("number"!=typeof I[n])throw new Error("Bad segment: "+n);var c={key:n,data:s};e.push(c),o=r[i+=a],"M"===n&&(n="L"),"m"===n&&(n="l")}return e}function D(t){var e,r,n,i,o=0,a=0,s=0,u=0,c=[],f=l(t);try{for(f.s();!(i=f.n()).done;){var h=i.value,g=h.key,v=h.data;switch(g){case"M":c.push({key:"M",data:d(v)}),e=p(v,2),o=e[0],a=e[1],s=(r=p(v,2))[0],u=r[1];break;case"m":o+=v[0],a+=v[1],c.push({key:"M",data:[o,a]}),s=o,u=a;break;case"L":c.push({key:"L",data:d(v)}),n=p(v,2),o=n[0],a=n[1];break;case"l":o+=v[0],a+=v[1],c.push({key:"L",data:[o,a]});break;case"C":c.push({key:"C",data:d(v)}),o=v[4],a=v[5];break;case"c":var m=v.map((function(t,e){return e%2?t+a:t+o}));c.push({key:"C",data:m}),o=m[4],a=m[5];break;case"Q":c.push({key:"Q",data:d(v)}),o=v[2],a=v[3];break;case"q":var y=v.map((function(t,e){return e%2?t+a:t+o}));c.push({key:"Q",data:y}),o=y[2],a=y[3];break;case"A":c.push({key:"A",data:d(v)}),o=v[5],a=v[6];break;case"a":o+=v[5],a+=v[6],c.push({key:"A",data:[v[0],v[1],v[2],v[3],v[4],o,a]});break;case"H":c.push({key:"H",data:d(v)}),o=v[0];break;case"h":o+=v[0],c.push({key:"H",data:[o]});break;case"V":c.push({key:"V",data:d(v)}),a=v[0];break;case"v":a+=v[0],c.push({key:"V",data:[a]});break;case"S":c.push({key:"S",data:d(v)}),o=v[2],a=v[3];break;case"s":var b=v.map((function(t,e){return e%2?t+a:t+o}));c.push({key:"S",data:b}),o=b[2],a=b[3];break;case"T":c.push({key:"T",data:d(v)}),o=v[0],a=v[1];break;case"t":o+=v[0],a+=v[1],c.push({key:"T",data:[o,a]});break;case"Z":case"z":c.push({key:"Z",data:[]}),o=s,a=u}}}catch(t){f.e(t)}finally{f.f()}return c}function F(t){var e,r,n,i,o=[],a="",s=0,u=0,c=0,f=0,h=0,g=0,v=l(t);try{for(v.s();!(i=v.n()).done;){var m=i.value,y=m.key,b=m.data;switch(y){case"M":o.push({key:"M",data:d(b)}),s=(e=p(b,2))[0],u=e[1],c=(r=p(b,2))[0],f=r[1];break;case"C":o.push({key:"C",data:d(b)}),s=b[4],u=b[5],h=b[2],g=b[3];break;case"L":o.push({key:"L",data:d(b)}),s=(n=p(b,2))[0],u=n[1];break;case"H":s=b[0],o.push({key:"L",data:[s,u]});break;case"V":u=b[0],o.push({key:"L",data:[s,u]});break;case"S":var x=0,w=0;"C"===a||"S"===a?(x=s+(s-h),w=u+(u-g)):(x=s,w=u),o.push({key:"C",data:[x,w].concat(d(b))}),h=b[0],g=b[1],s=b[2],u=b[3];break;case"T":var S=p(b,2),C=S[0],M=S[1],k=0,T=0;"Q"===a||"T"===a?(k=s+(s-h),T=u+(u-g)):(k=s,T=u);var A=s+2*(k-s)/3,O=u+2*(T-u)/3,L=C+2*(k-C)/3,E=M+2*(T-M)/3;o.push({key:"C",data:[A,O,L,E,C,M]}),h=k,g=T,s=C,u=M;break;case"Q":var N=p(b,4),R=N[0],I=N[1],_=N[2],P=N[3],D=s+2*(R-s)/3,F=u+2*(I-u)/3,W=_+2*(R-_)/3,z=P+2*(I-P)/3;o.push({key:"C",data:[D,F,W,z,_,P]}),h=R,g=I,s=_,u=P;break;case"A":var U=Math.abs(b[0]),j=Math.abs(b[1]),B=b[2],V=b[3],G=b[4],q=b[5],Y=b[6];0===U||0===j?(o.push({key:"C",data:[s,u,q,Y,q,Y]}),s=q,u=Y):s===q&&u===Y||(H(s,u,q,Y,U,j,B,V,G).forEach((function(t){o.push({key:"C",data:t})})),s=q,u=Y);break;case"Z":o.push({key:"Z",data:[]}),s=c,u=f}a=y}}catch(t){v.e(t)}finally{v.f()}return o}function W(t,e,r){return[t*Math.cos(r)-e*Math.sin(r),t*Math.sin(r)+e*Math.cos(r)]}function H(t,e,r,n,i,o,a,s,l,u){var c,f=(c=a,Math.PI*c/180),h=[],d=0,g=0,v=0,m=0;if(u){var y=p(u,4);d=y[0],g=y[1],v=y[2],m=y[3]}else{var b,x;t=(b=p(W(t,e,-f),2))[0],e=b[1];var w=(t-(r=(x=p(W(r,n,-f),2))[0]))/2,S=(e-(n=x[1]))/2,C=w*w/(i*i)+S*S/(o*o);C>1&&(i*=C=Math.sqrt(C),o*=C);var M=i*i,k=o*o,T=M*k-M*S*S-k*w*w,A=M*S*S+k*w*w,O=(s===l?-1:1)*Math.sqrt(Math.abs(T/A));v=O*i*S/o+(t+r)/2,m=O*-o*w/i+(e+n)/2,d=Math.asin(parseFloat(((e-m)/o).toFixed(9))),g=Math.asin(parseFloat(((n-m)/o).toFixed(9))),t<v&&(d=Math.PI-d),r<v&&(g=Math.PI-g),d<0&&(d=2*Math.PI+d),g<0&&(g=2*Math.PI+g),l&&d>g&&(d-=2*Math.PI),!l&&g>d&&(g-=2*Math.PI)}var L=g-d;if(Math.abs(L)>120*Math.PI/180){var E=g,N=r,R=n;g=l&&g>d?d+120*Math.PI/180*1:d+120*Math.PI/180*-1,h=H(r=v+i*Math.cos(g),n=m+o*Math.sin(g),N,R,i,o,a,0,l,[g,E,v,m])}L=g-d;var I=Math.cos(d),_=Math.sin(d),P=Math.cos(g),D=Math.sin(g),F=Math.tan(L/4),z=4/3*i*F,U=4/3*o*F,j=[t,e],B=[t+z*_,e-U*I],V=[r+z*D,n-U*P],G=[r,n];if(B[0]=2*j[0]-B[0],B[1]=2*j[1]-B[1],u)return[B,V,G].concat(h);h=[B,V,G].concat(h);for(var q=[],Y=0;Y<h.length;Y+=3){var X=W(h[Y][0],h[Y][1],f),Z=W(h[Y+1][0],h[Y+1][1],f),K=W(h[Y+2][0],h[Y+2][1],f);q.push([X[0],X[1],Z[0],Z[1],K[0],K[1]])}return q}var z={randOffset:function(t,e){return K(t,e)},randOffsetWithRange:function(t,e,r){return Z(t,e,r)},ellipse:function(t,e,r,n,i){return V(t,e,i,B(r,n,i)).opset},doubleLineOps:function(t,e,r,n,i){return $(t,e,r,n,i,!0)}};function U(t,e,r,n,i){return{type:"path",ops:$(t,e,r,n,i)}}function j(t,e,r){var n=(t||[]).length;if(n>2){for(var i=[],o=0;o<n-1;o++)i.push.apply(i,d($(t[o][0],t[o][1],t[o+1][0],t[o+1][1],r)));return e&&i.push.apply(i,d($(t[n-1][0],t[n-1][1],t[0][0],t[0][1],r))),{type:"path",ops:i}}return 2===n?U(t[0][0],t[0][1],t[1][0],t[1][1],r):{type:"path",ops:[]}}function B(t,e,r){var n=Math.sqrt(2*Math.PI*Math.sqrt((Math.pow(t/2,2)+Math.pow(e/2,2))/2)),i=Math.max(r.curveStepCount,r.curveStepCount/Math.sqrt(200)*n),o=2*Math.PI/i,a=Math.abs(t/2),s=Math.abs(e/2),l=1-r.curveFitting;return{increment:o,rx:a+=K(a*l,r),ry:s+=K(s*l,r)}}function V(t,e,r,n){var i=p(et(n.increment,t,e,n.rx,n.ry,1,n.increment*Z(.1,Z(.4,1,r),r),r),2),o=i[0],a=i[1],s=tt(o,null,r);if(!r.disableMultiStroke){var l=tt(p(et(n.increment,t,e,n.rx,n.ry,1.5,0,r),1)[0],null,r);s=s.concat(l)}return{estimatedPoints:a,opset:{type:"path",ops:s}}}function G(t,e,r,n,i,o,a,s,l){var u=t,c=e,f=Math.abs(r/2),h=Math.abs(n/2);f+=K(.01*f,l),h+=K(.01*h,l);for(var p=i,g=o;p<0;)p+=2*Math.PI,g+=2*Math.PI;g-p>2*Math.PI&&(p=0,g=2*Math.PI);var v=2*Math.PI/l.curveStepCount,m=Math.min(v/2,(g-p)/2),y=rt(m,u,c,f,h,p,g,1,l);if(!l.disableMultiStroke){var b=rt(m,u,c,f,h,p,g,1.5,l);y.push.apply(y,d(b))}return a&&(s?y.push.apply(y,d($(u,c,u+f*Math.cos(p),c+h*Math.sin(p),l)).concat(d($(u,c,u+f*Math.cos(g),c+h*Math.sin(g),l)))):y.push({op:"lineTo",data:[u,c]},{op:"lineTo",data:[u+f*Math.cos(p),c+h*Math.sin(p)]})),{type:"path",ops:y}}function q(t,e){var r=[];if(t.length){var n=e.maxRandomnessOffset||0,i=t.length;if(i>2){r.push({op:"move",data:[t[0][0]+K(n,e),t[0][1]+K(n,e)]});for(var o=1;o<i;o++)r.push({op:"lineTo",data:[t[o][0]+K(n,e),t[o][1]+K(n,e)]})}}return{type:"fillPath",ops:r}}function Y(t,e){return function(t,e){var r=t.fillStyle||"hachure";if(!N[r])switch(r){case"zigzag":N[r]||(N[r]=new T(e));break;case"cross-hatch":N[r]||(N[r]=new A(e));break;case"dots":N[r]||(N[r]=new O(e));break;case"dashed":N[r]||(N[r]=new L(e));break;case"zigzag-line":N[r]||(N[r]=new E(e));break;case"hachure":default:N[r="hachure"]||(N[r]=new k(e))}return N[r]}(e,z).fillPolygon(t,e)}function X(t){return t.randomizer||(t.randomizer=new R(t.seed||0)),t.randomizer.next()}function Z(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;return r.roughness*n*(X(r)*(e-t)+t)}function K(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Z(-t,t,e,r)}function $(t,e,r,n,i){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=o?i.disableMultiStrokeFill:i.disableMultiStroke,s=Q(t,e,r,n,i,!0,!1);if(a)return s;var l=Q(t,e,r,n,i,!0,!0);return s.concat(l)}function Q(t,e,r,n,i,o,a){var s,l=Math.pow(t-r,2)+Math.pow(e-n,2),u=Math.sqrt(l);s=u<200?1:u>500?.4:-.0016668*u+1.233334;var c=i.maxRandomnessOffset||0;c*c*100>l&&(c=u/10);var f=c/2,h=.2+.2*X(i),d=i.bowing*i.maxRandomnessOffset*(n-e)/200,p=i.bowing*i.maxRandomnessOffset*(t-r)/200;d=K(d,i,s),p=K(p,i,s);var g=[],v=function(){return K(f,i,s)},m=function(){return K(c,i,s)};return o&&(a?g.push({op:"move",data:[t+v(),e+v()]}):g.push({op:"move",data:[t+K(c,i,s),e+K(c,i,s)]})),a?g.push({op:"bcurveTo",data:[d+t+(r-t)*h+v(),p+e+(n-e)*h+v(),d+t+2*(r-t)*h+v(),p+e+2*(n-e)*h+v(),r+v(),n+v()]}):g.push({op:"bcurveTo",data:[d+t+(r-t)*h+m(),p+e+(n-e)*h+m(),d+t+2*(r-t)*h+m(),p+e+2*(n-e)*h+m(),r+m(),n+m()]}),g}function J(t,e,r){var n=[];n.push([t[0][0]+K(e,r),t[0][1]+K(e,r)]),n.push([t[0][0]+K(e,r),t[0][1]+K(e,r)]);for(var i=1;i<t.length;i++)n.push([t[i][0]+K(e,r),t[i][1]+K(e,r)]),i===t.length-1&&n.push([t[i][0]+K(e,r),t[i][1]+K(e,r)]);return tt(n,null,r)}function tt(t,e,r){var n=t.length,i=[];if(n>3){var o=[],a=1-r.curveTightness;i.push({op:"move",data:[t[1][0],t[1][1]]});for(var s=1;s+2<n;s++){var l=t[s];o[0]=[l[0],l[1]],o[1]=[l[0]+(a*t[s+1][0]-a*t[s-1][0])/6,l[1]+(a*t[s+1][1]-a*t[s-1][1])/6],o[2]=[t[s+1][0]+(a*t[s][0]-a*t[s+2][0])/6,t[s+1][1]+(a*t[s][1]-a*t[s+2][1])/6],o[3]=[t[s+1][0],t[s+1][1]],i.push({op:"bcurveTo",data:[o[1][0],o[1][1],o[2][0],o[2][1],o[3][0],o[3][1]]})}if(e&&2===e.length){var u=r.maxRandomnessOffset;i.push({op:"lineTo",data:[e[0]+K(u,r),e[1]+K(u,r)]})}}else 3===n?(i.push({op:"move",data:[t[1][0],t[1][1]]}),i.push({op:"bcurveTo",data:[t[1][0],t[1][1],t[2][0],t[2][1],t[2][0],t[2][1]]})):2===n&&i.push.apply(i,d($(t[0][0],t[0][1],t[1][0],t[1][1],r)));return i}function et(t,e,r,n,i,o,a,s){var l=[],u=[],c=K(.5,s)-Math.PI/2;u.push([K(o,s)+e+.9*n*Math.cos(c-t),K(o,s)+r+.9*i*Math.sin(c-t)]);for(var f=c;f<2*Math.PI+c-.01;f+=t){var h=[K(o,s)+e+n*Math.cos(f),K(o,s)+r+i*Math.sin(f)];l.push(h),u.push(h)}return u.push([K(o,s)+e+n*Math.cos(c+2*Math.PI+.5*a),K(o,s)+r+i*Math.sin(c+2*Math.PI+.5*a)]),u.push([K(o,s)+e+.98*n*Math.cos(c+a),K(o,s)+r+.98*i*Math.sin(c+a)]),u.push([K(o,s)+e+.9*n*Math.cos(c+.5*a),K(o,s)+r+.9*i*Math.sin(c+.5*a)]),[u,l]}function rt(t,e,r,n,i,o,a,s,l){var u=o+K(.1,l),c=[];c.push([K(s,l)+e+.9*n*Math.cos(u-t),K(s,l)+r+.9*i*Math.sin(u-t)]);for(var f=u;f<=a;f+=t)c.push([K(s,l)+e+n*Math.cos(f),K(s,l)+r+i*Math.sin(f)]);return c.push([e+n*Math.cos(a),r+i*Math.sin(a)]),c.push([e+n*Math.cos(a),r+i*Math.sin(a)]),tt(c,null,l)}function nt(t,e,r,n,i,o,a,s){for(var l=[],u=[s.maxRandomnessOffset||1,(s.maxRandomnessOffset||1)+.3],c=[0,0],f=s.disableMultiStroke?1:2,h=0;h<f;h++)0===h?l.push({op:"move",data:[a[0],a[1]]}):l.push({op:"move",data:[a[0]+K(u[0],s),a[1]+K(u[0],s)]}),c=[i+K(u[h],s),o+K(u[h],s)],l.push({op:"bcurveTo",data:[t+K(u[h],s),e+K(u[h],s),r+K(u[h],s),n+K(u[h],s),c[0],c[1]]});return l}function it(t){return d(t)}function ot(t,e){return Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)}function at(t,e,r){var n=ot(e,r);if(0===n)return ot(t,e);var i=((t[0]-e[0])*(r[0]-e[0])+(t[1]-e[1])*(r[1]-e[1]))/n;return ot(t,st(e,r,i=Math.max(0,Math.min(1,i))))}function st(t,e,r){return[t[0]+(e[0]-t[0])*r,t[1]+(e[1]-t[1])*r]}function lt(t,e,r,n){var i,o,a=n||[];if(function(t,e){var r=t[e+0],n=t[e+1],i=t[e+2],o=t[e+3],a=3*n[0]-2*r[0]-o[0];a*=a;var s=3*n[1]-2*r[1]-o[1];s*=s;var l=3*i[0]-2*o[0]-r[0];l*=l;var u=3*i[1]-2*o[1]-r[1];return a<l&&(a=l),s<(u*=u)&&(s=u),a+s}(t,e)<r){var s=t[e+0];a.length?(i=a[a.length-1],o=s,Math.sqrt(ot(i,o))>1&&a.push(s)):a.push(s),a.push(t[e+3])}else{var l=t[e+0],u=t[e+1],c=t[e+2],f=t[e+3],h=st(l,u,.5),d=st(u,c,.5),p=st(c,f,.5),g=st(h,d,.5),v=st(d,p,.5),m=st(g,v,.5);lt([l,h,g,m],0,r,a),lt([m,v,p,f],0,r,a)}return a}function ut(t,e){return ct(t,0,t.length,e)}function ct(t,e,r,n,i){for(var o=i||[],a=t[e],s=t[r-1],l=0,u=1,c=e+1;c<r-1;++c){var f=at(t[c],a,s);f>l&&(l=f,u=c)}return Math.sqrt(l)>n?(ct(t,e,u+1,n,o),ct(t,u,r,n,o)):(o.length||o.push(a),o.push(s)),o}function ft(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15,r=arguments.length>2?arguments[2]:void 0,n=[],i=(t.length-1)/3,o=0;o<i;o++)lt(t,3*o,e,n);return r&&r>0?ct(n,0,n.length,r):n}var ht="none",dt=function(){function t(e){u(this,t),this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,combineNestedSvgPaths:!1,disableMultiStroke:!1,disableMultiStrokeFill:!1},this.config=e||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}return f(t,[{key:"_o",value:function(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}},{key:"_d",value:function(t,e,r){return{shape:t,sets:e||[],options:r||this.defaultOptions}}},{key:"line",value:function(t,e,r,n,i){var o=this._o(i);return this._d("line",[U(t,e,r,n,o)],o)}},{key:"rectangle",value:function(t,e,r,n,i){var o=this._o(i),a=[],s=function(t,e,r,n,i){return function(t,e){return j(t,!0,e)}([[t,e],[t+r,e],[t+r,e+n],[t,e+n]],i)}(t,e,r,n,o);if(o.fill){var l=[[t,e],[t+r,e],[t+r,e+n],[t,e+n]];"solid"===o.fillStyle?a.push(q(l,o)):a.push(Y(l,o))}return o.stroke!==ht&&a.push(s),this._d("rectangle",a,o)}},{key:"ellipse",value:function(t,e,r,n,i){var o=this._o(i),a=[],s=B(r,n,o),l=V(t,e,o,s);if(o.fill)if("solid"===o.fillStyle){var u=V(t,e,o,s).opset;u.type="fillPath",a.push(u)}else a.push(Y(l.estimatedPoints,o));return o.stroke!==ht&&a.push(l.opset),this._d("ellipse",a,o)}},{key:"circle",value:function(t,e,r,n){var i=this.ellipse(t,e,r,r,n);return i.shape="circle",i}},{key:"linearPath",value:function(t,e){var r=this._o(e);return this._d("linearPath",[j(t,!1,r)],r)}},{key:"arc",value:function(t,e,r,n,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=this._o(s),u=[],c=G(t,e,r,n,i,o,a,!0,l);if(a&&l.fill)if("solid"===l.fillStyle){var f=G(t,e,r,n,i,o,!0,!1,l);f.type="fillPath",u.push(f)}else u.push(function(t,e,r,n,i,o,a){var s=t,l=e,u=Math.abs(r/2),c=Math.abs(n/2);u+=K(.01*u,a),c+=K(.01*c,a);for(var f=i,h=o;f<0;)f+=2*Math.PI,h+=2*Math.PI;h-f>2*Math.PI&&(f=0,h=2*Math.PI);for(var d=(h-f)/a.curveStepCount,p=[],g=f;g<=h;g+=d)p.push([s+u*Math.cos(g),l+c*Math.sin(g)]);return p.push([s+u*Math.cos(h),l+c*Math.sin(h)]),p.push([s,l]),Y(p,a)}(t,e,r,n,i,o,l));return l.stroke!==ht&&u.push(c),this._d("arc",u,l)}},{key:"curve",value:function(t,e){var r=this._o(e),n=[],i=function(t,e){var r=J(t,1*(1+.2*e.roughness),e);if(!e.disableMultiStroke){var n=J(t,1.5*(1+.22*e.roughness),function(t){var e=Object.assign({},t);return e.randomizer=void 0,t.seed&&(e.seed=t.seed+1),e}(e));r=r.concat(n)}return{type:"path",ops:r}}(t,r);if(r.fill&&r.fill!==ht&&t.length>=3){var o=ft(function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=t.length;if(r<3)throw new Error("A curve must have at least three points.");var n=[];if(3===r)n.push(it(t[0]),it(t[1]),it(t[2]),it(t[2]));else{var i=[];i.push(t[0],t[0]);for(var o=1;o<t.length;o++)i.push(t[o]),o===t.length-1&&i.push(t[o]);var a=[],s=1-e;n.push(it(i[0]));for(var l=1;l+2<i.length;l++){var u=i[l];a[0]=[u[0],u[1]],a[1]=[u[0]+(s*i[l+1][0]-s*i[l-1][0])/6,u[1]+(s*i[l+1][1]-s*i[l-1][1])/6],a[2]=[i[l+1][0]+(s*i[l][0]-s*i[l+2][0])/6,i[l+1][1]+(s*i[l][1]-s*i[l+2][1])/6],a[3]=[i[l+1][0],i[l+1][1]],n.push(a[1],a[2],a[3])}}return n}(t),10,(1+r.roughness)/2);"solid"===r.fillStyle?n.push(q(o,r)):n.push(Y(o,r))}return r.stroke!==ht&&n.push(i),this._d("curve",n,r)}},{key:"polygon",value:function(t,e){var r=this._o(e),n=[],i=j(t,!0,r);return r.fill&&("solid"===r.fillStyle?n.push(q(t,r)):n.push(Y(t,r))),r.stroke!==ht&&n.push(i),this._d("polygon",n,r)}},{key:"path",value:function(t,e){var r=this._o(e),n=[];if(!t)return this._d("path",n,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");var i=r.fill&&"transparent"!==r.fill&&r.fill!==ht,o=r.stroke!==ht,a=!!(r.simplification&&r.simplification<1),s=function(t,e,r){var n,i=F(D(P(t))),o=[],a=[],s=[0,0],u=[],c=function(){var t;u.length>=4&&(t=a).push.apply(t,d(ft(u,1))),u=[]},f=function(){c(),a.length&&(o.push(a),a=[])},h=l(i);try{for(h.s();!(n=h.n()).done;){var p=n.value,g=p.key,v=p.data;switch(g){case"M":f(),s=[v[0],v[1]],a.push(s);break;case"L":c(),a.push([v[0],v[1]]);break;case"C":if(!u.length){var m=a.length?a[a.length-1]:s;u.push([m[0],m[1]])}u.push([v[0],v[1]]),u.push([v[2],v[3]]),u.push([v[4],v[5]]);break;case"Z":c(),a.push([s[0],s[1]])}}}catch(t){h.e(t)}finally{h.f()}if(f(),!r)return o;for(var y=[],b=0,x=o;b<x.length;b++){var w=ut(x[b],r);w.length&&y.push(w)}return y}(t,0,a?4-4*r.simplification:(1+r.roughness)/2);if(i)if(r.combineNestedSvgPaths){var u=[];s.forEach((function(t){return u.push.apply(u,d(t))})),"solid"===r.fillStyle?n.push(q(u,r)):n.push(Y(u,r))}else s.forEach((function(t){"solid"===r.fillStyle?n.push(q(t,r)):n.push(Y(t,r))}));return o&&(a?s.forEach((function(t){n.push(j(t,!1,r))})):n.push(function(t,e){var r,n=F(D(P(t))),i=[],o=[0,0],a=[0,0],s=l(n);try{for(s.s();!(r=s.n()).done;){var u=r.value,c=u.key,f=u.data;switch(c){case"M":if("break"===function(){var t=1*(e.maxRandomnessOffset||0);return i.push({op:"move",data:f.map((function(r){return r+K(t,e)}))}),a=[f[0],f[1]],o=[f[0],f[1]],"break"}())break;case"L":i.push.apply(i,d($(a[0],a[1],f[0],f[1],e))),a=[f[0],f[1]];break;case"C":var h=p(f,6),g=h[0],v=h[1],m=h[2],y=h[3],b=h[4],x=h[5];i.push.apply(i,d(nt(g,v,m,y,b,x,a,e))),a=[b,x];break;case"Z":i.push.apply(i,d($(a[0],a[1],o[0],o[1],e))),a=[o[0],o[1]]}}}catch(t){s.e(t)}finally{s.f()}return{type:"path",ops:i}}(t,r))),this._d("path",n,r)}},{key:"opsToPath",value:function(t){var e,r="",n=l(t.ops);try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.data;switch(i.op){case"move":r+="M".concat(o[0]," ").concat(o[1]," ");break;case"bcurveTo":r+="C".concat(o[0]," ").concat(o[1],", ").concat(o[2]," ").concat(o[3],", ").concat(o[4]," ").concat(o[5]," ");break;case"lineTo":r+="L".concat(o[0]," ").concat(o[1]," ")}}}catch(t){n.e(t)}finally{n.f()}return r.trim()}},{key:"toPaths",value:function(t){var e,r=t.sets||[],n=t.options||this.defaultOptions,i=[],o=l(r);try{for(o.s();!(e=o.n()).done;){var a=e.value,s=null;switch(a.type){case"path":s={d:this.opsToPath(a),stroke:n.stroke,strokeWidth:n.strokeWidth,fill:ht};break;case"fillPath":s={d:this.opsToPath(a),stroke:ht,strokeWidth:0,fill:n.fill||ht};break;case"fillSketch":s=this.fillSketch(a,n)}s&&i.push(s)}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"fillSketch",value:function(t,e){var r=e.fillWeight;return r<0&&(r=e.strokeWidth/2),{d:this.opsToPath(t),stroke:e.fill||ht,strokeWidth:r,fill:ht}}}],[{key:"newSeed",value:function(){return Math.floor(Math.random()*Math.pow(2,31))}}]),t}(),pt=function(){function t(e,r){u(this,t),this.canvas=e,this.ctx=this.canvas.getContext("2d"),this.gen=new dt(r)}return f(t,[{key:"draw",value:function(t){var e,r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.ctx,o=l(r);try{for(o.s();!(e=o.n()).done;){var a=e.value;switch(a.type){case"path":i.save(),i.strokeStyle="none"===n.stroke?"transparent":n.stroke,i.lineWidth=n.strokeWidth,n.strokeLineDash&&i.setLineDash(n.strokeLineDash),n.strokeLineDashOffset&&(i.lineDashOffset=n.strokeLineDashOffset),this._drawToContext(i,a),i.restore();break;case"fillPath":i.save(),i.fillStyle=n.fill||"";var s="curve"===t.shape||"polygon"===t.shape?"evenodd":"nonzero";this._drawToContext(i,a,s),i.restore();break;case"fillSketch":this.fillSketch(i,a,n)}}}catch(t){o.e(t)}finally{o.f()}}},{key:"fillSketch",value:function(t,e,r){var n=r.fillWeight;n<0&&(n=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=n,this._drawToContext(t,e),t.restore()}},{key:"_drawToContext",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"nonzero";t.beginPath();var n,i=l(e.ops);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.data;switch(o.op){case"move":t.moveTo(a[0],a[1]);break;case"bcurveTo":t.bezierCurveTo(a[0],a[1],a[2],a[3],a[4],a[5]);break;case"lineTo":t.lineTo(a[0],a[1])}}}catch(t){i.e(t)}finally{i.f()}"fillPath"===e.type?t.fill(r):t.stroke()}},{key:"getDefaultOptions",value:function(){return this.gen.defaultOptions}},{key:"line",value:function(t,e,r,n,i){var o=this.gen.line(t,e,r,n,i);return this.draw(o),o}},{key:"rectangle",value:function(t,e,r,n,i){var o=this.gen.rectangle(t,e,r,n,i);return this.draw(o),o}},{key:"ellipse",value:function(t,e,r,n,i){var o=this.gen.ellipse(t,e,r,n,i);return this.draw(o),o}},{key:"circle",value:function(t,e,r,n){var i=this.gen.circle(t,e,r,n);return this.draw(i),i}},{key:"linearPath",value:function(t,e){var r=this.gen.linearPath(t,e);return this.draw(r),r}},{key:"polygon",value:function(t,e){var r=this.gen.polygon(t,e);return this.draw(r),r}},{key:"arc",value:function(t,e,r,n,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=this.gen.arc(t,e,r,n,i,o,a,s);return this.draw(l),l}},{key:"curve",value:function(t,e){var r=this.gen.curve(t,e);return this.draw(r),r}},{key:"path",value:function(t,e){var r=this.gen.path(t,e);return this.draw(r),r}},{key:"generator",get:function(){return this.gen}}]),t}(),gt="http://www.w3.org/2000/svg",vt=function(){function t(e,r){u(this,t),this.svg=e,this.gen=new dt(r)}return f(t,[{key:"draw",value:function(t){var e,r=t.sets||[],n=t.options||this.getDefaultOptions(),i=this.svg.ownerDocument||window.document,o=i.createElementNS(gt,"g"),a=l(r);try{for(a.s();!(e=a.n()).done;){var s=e.value,u=null;switch(s.type){case"path":(u=i.createElementNS(gt,"path")).setAttribute("d",this.opsToPath(s)),u.setAttribute("stroke",n.stroke),u.setAttribute("stroke-width",n.strokeWidth+""),u.setAttribute("fill","none"),n.strokeLineDash&&u.setAttribute("stroke-dasharray",n.strokeLineDash.join(" ").trim()),n.strokeLineDashOffset&&u.setAttribute("stroke-dashoffset",""+n.strokeLineDashOffset);break;case"fillPath":(u=i.createElementNS(gt,"path")).setAttribute("d",this.opsToPath(s)),u.setAttribute("stroke","none"),u.setAttribute("stroke-width","0"),u.setAttribute("fill",n.fill||""),"curve"!==t.shape&&"polygon"!==t.shape||u.setAttribute("fill-rule","evenodd");break;case"fillSketch":u=this.fillSketch(i,s,n)}u&&o.appendChild(u)}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"fillSketch",value:function(t,e,r){var n=r.fillWeight;n<0&&(n=r.strokeWidth/2);var i=t.createElementNS(gt,"path");return i.setAttribute("d",this.opsToPath(e)),i.setAttribute("stroke",r.fill||""),i.setAttribute("stroke-width",n+""),i.setAttribute("fill","none"),r.fillLineDash&&i.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&i.setAttribute("stroke-dashoffset",""+r.fillLineDashOffset),i}},{key:"getDefaultOptions",value:function(){return this.gen.defaultOptions}},{key:"opsToPath",value:function(t){return this.gen.opsToPath(t)}},{key:"line",value:function(t,e,r,n,i){var o=this.gen.line(t,e,r,n,i);return this.draw(o)}},{key:"rectangle",value:function(t,e,r,n,i){var o=this.gen.rectangle(t,e,r,n,i);return this.draw(o)}},{key:"ellipse",value:function(t,e,r,n,i){var o=this.gen.ellipse(t,e,r,n,i);return this.draw(o)}},{key:"circle",value:function(t,e,r,n){var i=this.gen.circle(t,e,r,n);return this.draw(i)}},{key:"linearPath",value:function(t,e){var r=this.gen.linearPath(t,e);return this.draw(r)}},{key:"polygon",value:function(t,e){var r=this.gen.polygon(t,e);return this.draw(r)}},{key:"arc",value:function(t,e,r,n,i,o){var a=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7?arguments[7]:void 0,l=this.gen.arc(t,e,r,n,i,o,a,s);return this.draw(l)}},{key:"curve",value:function(t,e){var r=this.gen.curve(t,e);return this.draw(r)}},{key:"path",value:function(t,e){var r=this.gen.path(t,e);return this.draw(r)}},{key:"generator",get:function(){return this.gen}}]),t}(),mt={canvas:function(t,e){return new pt(t,e)},svg:function(t,e){return new vt(t,e)},generator:function(t){return new dt(t)},newSeed:function(){return dt.newSeed()}};e.a=mt},function(t,e,r){var n=r(5),i=r(1),o=r(84);t.exports=!n&&!i((function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(2),i=r(85),o=n["__core-js_shared__"]||i("__core-js_shared__",{});t.exports=o},function(t,e,r){var n=r(2),i=r(86),o=n.WeakMap;t.exports="function"==typeof o&&/native code/.test(i(o))},function(t,e,r){var n=r(11),i=r(88),o=r(13),a=r(9);t.exports=function(t,e){for(var r=i(e),s=a.f,l=o.f,u=0;u<r.length;u++){var c=r[u];n(t,c)||s(t,c,l(e,c))}}},function(t,e,r){var n=r(11),i=r(22),o=r(55).indexOf,a=r(53);t.exports=function(t,e){var r,s=i(t),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&u.push(r);for(;e.length>l;)n(s,r=e[l++])&&(~o(u,r)||u.push(r));return u}},function(t,e,r){var n=r(91);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(26);t.exports=n("document","documentElement")},function(t,e,r){var n=r(22),i=r(41).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return a.slice()}}(t):i(n(t))}},function(t,e,r){var n=r(6);e.f=n},function(t,e,r){"use strict";var n=r(5),i=r(1),o=r(57),a=r(90),s=r(65),l=r(10),u=r(51),c=Object.assign,f=Object.defineProperty;t.exports=!c||i((function(){if(n&&1!==c({b:1},c(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol();return t[r]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){e[t]=t})),7!=c({},t)[r]||"abcdefghijklmnopqrst"!=o(c({},e)).join("")}))?function(t,e){for(var r=l(t),i=arguments.length,c=1,f=a.f,h=s.f;i>c;)for(var d,p=u(arguments[c++]),g=f?o(p).concat(f(p)):o(p),v=g.length,m=0;v>m;)d=g[m++],n&&!h.call(p,d)||(r[d]=p[d]);return r}:c},function(t,e,r){var n=r(5),i=r(57),o=r(22),a=r(65).f,s=function(t){return function(e){for(var r,s=o(e),l=i(s),u=l.length,c=0,f=[];u>c;)r=l[c++],n&&!a.call(s,r)||f.push(t?[r,s[r]]:s[r]);return f}};t.exports={entries:s(!0),values:s(!1)}},function(t,e,r){var n=r(4);t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,r){var n=r(3);t.exports=function(t){if(!n(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,e,r){"use strict";var n=r(20),i=r(3),o=[].slice,a={},s=function(t,e,r){if(!(e in a)){for(var n=[],i=0;i<e;i++)n[i]="a["+i+"]";a[e]=Function("C,a","return new C("+n.join(",")+")")}return a[e](t,r)};t.exports=Function.bind||function(t){var e=n(this),r=o.call(arguments,1),a=function(){var n=r.concat(o.call(arguments));return this instanceof a?s(e,n.length,n):e.apply(t,n)};return i(e.prototype)&&(a.prototype=e.prototype),a}},function(t,e,r){"use strict";var n=r(38),i=r(10),o=r(124),a=r(93),s=r(7),l=r(44),u=r(61);t.exports=function(t){var e,r,c,f,h,d,p=i(t),g="function"==typeof this?this:Array,v=arguments.length,m=v>1?arguments[1]:void 0,y=void 0!==m,b=u(p),x=0;if(y&&(m=n(m,v>2?arguments[2]:void 0,2)),null==b||g==Array&&a(b))for(r=new g(e=s(p.length));e>x;x++)d=y?m(p[x],x):p[x],l(r,x,d);else for(h=(f=b.call(p)).next,r=new g;!(c=h.call(f)).done;x++)d=y?o(f,m,[c.value,x],!0):c.value,l(r,x,d);return r.length=x,r}},function(t,e,r){"use strict";var n=r(10),i=r(37),o=r(7),a=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),s=o(r.length),l=i(t,s),u=i(e,s),c=arguments.length>2?arguments[2]:void 0,f=a((void 0===c?s:i(c,s))-u,s-l),h=1;for(u<l&&l<u+f&&(h=-1,u+=f-1,l+=f-1);f-- >0;)u in r?r[l]=r[u]:delete r[l],l+=h,u+=h;return r}},function(t,e,r){"use strict";var n=r(42),i=r(7),o=r(38),a=function(t,e,r,s,l,u,c,f){for(var h,d=l,p=0,g=!!c&&o(c,f,3);p<s;){if(p in r){if(h=g?g(r[p],p,e):r[p],u>0&&n(h))d=a(t,e,h,i(h.length),d,u-1)-1;else{if(d>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[d]=h}d++}p++}return d};t.exports=a},function(t,e,r){"use strict";var n=r(12).forEach,i=r(33),o=r(21),a=i("forEach"),s=o("forEach");t.exports=a&&s?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e,r){"use strict";var n=r(22),i=r(27),o=r(7),a=r(33),s=r(21),l=Math.min,u=[].lastIndexOf,c=!!u&&1/[1].lastIndexOf(1,-0)<0,f=a("lastIndexOf"),h=s("indexOf",{ACCESSORS:!0,1:0}),d=c||!f||!h;t.exports=d?function(t){if(c)return u.apply(this,arguments)||0;var e=n(this),r=o(e.length),a=r-1;for(arguments.length>1&&(a=l(a,i(arguments[1]))),a<0&&(a=r+a);a>=0;a--)if(a in e&&e[a]===t)return a||0;return-1}:u},function(t,e,r){"use strict";var n,i,o,a=r(30),s=r(17),l=r(11),u=r(6),c=r(29),f=u("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(i=a(a(o)))!==Object.prototype&&(n=i):h=!0),null==n&&(n={}),c||l(n,f)||s(n,f,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},function(t,e,r){var n=r(69);t.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(n)},function(t,e,r){"use strict";var n=r(72).charAt,i=r(18),o=r(98),a=i.set,s=i.getterFor("String Iterator");o(String,"String",(function(t){a(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=s(this),r=e.string,i=e.index;return i>=r.length?{value:void 0,done:!0}:(t=n(r,i),e.index+=t.length,{value:t,done:!1})}))},function(t,e,r){var n=r(2),i=r(48).trim,o=r(79),a=n.parseInt,s=/^[+-]?0[Xx]/,l=8!==a(o+"08")||22!==a(o+"0x16");t.exports=l?function(t,e){var r=i(String(t));return a(r,e>>>0||(s.test(r)?16:10))}:a},function(t,e,r){var n=r(2),i=r(48).trim,o=r(79),a=n.parseFloat,s=1/a(o+"-0")!=-1/0;t.exports=s?function(t){var e=i(String(t)),r=a(e);return 0===r&&"-"==e.charAt(0)?-0:r}:a},function(t,e,r){var n=r(3),i=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},function(t,e,r){var n=r(25);t.exports=function(t){if("number"!=typeof t&&"Number"!=n(t))throw TypeError("Incorrect invocation");return+t}},function(t,e){var r=Math.log;t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:r(1+t)}},function(t,e,r){var n=r(2);t.exports=n.Promise},function(t,e,r){var n=r(69);t.exports=/(iphone|ipod|ipad).*applewebkit/i.test(n)},function(t,e,r){var n,i,o,a,s,l,u,c,f=r(2),h=r(13).f,d=r(25),p=r(107).set,g=r(142),v=f.MutationObserver||f.WebKitMutationObserver,m=f.process,y=f.Promise,b="process"==d(m),x=h(f,"queueMicrotask"),w=x&&x.value;w||(n=function(){var t,e;for(b&&(t=m.domain)&&t.exit();i;){e=i.fn,i=i.next;try{e()}catch(t){throw i?a():o=void 0,t}}o=void 0,t&&t.enter()},b?a=function(){m.nextTick(n)}:v&&!g?(s=!0,l=document.createTextNode(""),new v(n).observe(l,{characterData:!0}),a=function(){l.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),c=u.then,a=function(){c.call(u,n)}):a=function(){p.call(f,n)}),t.exports=w||function(t){var e={fn:t,next:void 0};o&&(o.next=e),i||(i=e,a()),o=e}},function(t,e,r){var n=r(4),i=r(3),o=r(108);t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t);return(0,r.resolve)(e),r.promise}},function(t,e){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,r){"use strict";var n=r(9).f,i=r(32),o=r(49),a=r(38),s=r(40),l=r(46),u=r(98),c=r(47),f=r(5),h=r(43).fastKey,d=r(18),p=d.set,g=d.getterFor;t.exports={getConstructor:function(t,e,r,u){var c=t((function(t,n){s(t,c,e),p(t,{type:e,index:i(null),first:void 0,last:void 0,size:0}),f||(t.size=0),null!=n&&l(n,t[u],t,r)})),d=g(e),v=function(t,e,r){var n,i,o=d(t),a=m(t,e);return a?a.value=r:(o.last=a={index:i=h(e,!0),key:e,value:r,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=a),n&&(n.next=a),f?o.size++:t.size++,"F"!==i&&(o.index[i]=a)),t},m=function(t,e){var r,n=d(t),i=h(e);if("F"!==i)return n.index[i];for(r=n.first;r;r=r.next)if(r.key==e)return r};return o(c.prototype,{clear:function(){for(var t=d(this),e=t.index,r=t.first;r;)r.removed=!0,r.previous&&(r.previous=r.previous.next=void 0),delete e[r.index],r=r.next;t.first=t.last=void 0,f?t.size=0:this.size=0},delete:function(t){var e=d(this),r=m(this,t);if(r){var n=r.next,i=r.previous;delete e.index[r.index],r.removed=!0,i&&(i.next=n),n&&(n.previous=i),e.first==r&&(e.first=n),e.last==r&&(e.last=i),f?e.size--:this.size--}return!!r},forEach:function(t){for(var e,r=d(this),n=a(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.next:r.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!m(this,t)}}),o(c.prototype,r?{get:function(t){var e=m(this,t);return e&&e.value},set:function(t,e){return v(this,0===t?0:t,e)}}:{add:function(t){return v(this,t=0===t?0:t,t)}}),f&&n(c.prototype,"size",{get:function(){return d(this).size}}),c},setStrong:function(t,e,r){var n=e+" Iterator",i=g(e),o=g(n);u(t,e,(function(t,e){p(this,{type:n,target:t,state:i(t),kind:e,last:void 0})}),(function(){for(var t=o(this),e=t.kind,r=t.last;r&&r.removed;)r=r.previous;return t.target&&(t.last=r=r?r.next:t.state.first)?"keys"==e?{value:r.key,done:!1}:"values"==e?{value:r.value,done:!1}:{value:[r.key,r.value],done:!1}:(t.target=void 0,{value:void 0,done:!0})}),r?"entries":"values",!r,!0),c(e)}}},function(t,e,r){"use strict";var n=r(49),i=r(43).getWeakData,o=r(4),a=r(3),s=r(40),l=r(46),u=r(12),c=r(11),f=r(18),h=f.set,d=f.getterFor,p=u.find,g=u.findIndex,v=0,m=function(t){return t.frozen||(t.frozen=new y)},y=function(){this.entries=[]},b=function(t,e){return p(t.entries,(function(t){return t[0]===e}))};y.prototype={get:function(t){var e=b(this,t);if(e)return e[1]},has:function(t){return!!b(this,t)},set:function(t,e){var r=b(this,t);r?r[1]=e:this.entries.push([t,e])},delete:function(t){var e=g(this.entries,(function(e){return e[0]===t}));return~e&&this.entries.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,r,u){var f=t((function(t,n){s(t,f,e),h(t,{type:e,id:v++,frozen:void 0}),null!=n&&l(n,t[u],t,r)})),p=d(e),g=function(t,e,r){var n=p(t),a=i(o(e),!0);return!0===a?m(n).set(e,r):a[n.id]=r,t};return n(f.prototype,{delete:function(t){var e=p(this);if(!a(t))return!1;var r=i(t);return!0===r?m(e).delete(t):r&&c(r,e.id)&&delete r[e.id]},has:function(t){var e=p(this);if(!a(t))return!1;var r=i(t);return!0===r?m(e).has(t):r&&c(r,e.id)}}),n(f.prototype,r?{get:function(t){var e=p(this);if(a(t)){var r=i(t);return!0===r?m(e).get(t):r?r[e.id]:void 0}},set:function(t,e){return g(this,t,e)}}:{add:function(t){return g(this,t,!0)}}),f}}},function(t,e,r){var n=r(27),i=r(7);t.exports=function(t){if(void 0===t)return 0;var e=n(t),r=i(e);if(e!==r)throw RangeError("Wrong length or index");return r}},function(t,e,r){var n=r(324);t.exports=function(t,e){var r=n(t);if(r%e)throw RangeError("Wrong offset");return r}},function(t,e,r){var n=r(10),i=r(7),o=r(61),a=r(93),s=r(38),l=r(8).aTypedArrayConstructor;t.exports=function(t){var e,r,u,c,f,h,d=n(t),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=o(d);if(null!=m&&!a(m))for(h=(f=m.call(d)).next,d=[];!(c=h.call(f)).done;)d.push(c.value);for(v&&p>2&&(g=s(g,arguments[2],2)),r=i(d.length),u=new(l(this))(r),e=0;r>e;e++)u[e]=v?g(d[e],e):d[e];return u}},function(t,e){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,r){var n=r(1),i=r(6),o=r(29),a=i("iterator");t.exports=!n((function(){var t=new URL("b?a=1&b=2&c=3","http://a"),e=t.searchParams,r="";return t.pathname="c%20d",e.forEach((function(t,n){e.delete("b"),r+=n+t})),o&&!t.toJSON||!e.sort||"http://a/c%20d?a=1&c=3"!==t.href||"3"!==e.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!e[a]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("http://тест").host||"#%D0%B1"!==new URL("http://a#б").hash||"a1c3"!==r||"x"!==new URL("http://x",void 0).host}))},function(t,e,r){"use strict";r(71);var n=r(0),i=r(26),o=r(152),a=r(14),s=r(49),l=r(31),u=r(99),c=r(18),f=r(40),h=r(11),d=r(38),p=r(62),g=r(4),v=r(3),m=r(32),y=r(36),b=r(379),x=r(61),w=r(6),S=i("fetch"),C=i("Headers"),M=w("iterator"),k=c.set,T=c.getterFor("URLSearchParams"),A=c.getterFor("URLSearchParamsIterator"),O=/\+/g,L=Array(4),E=function(t){return L[t-1]||(L[t-1]=RegExp("((?:%[\\da-f]{2}){"+t+"})","gi"))},N=function(t){try{return decodeURIComponent(t)}catch(e){return t}},R=function(t){var e=t.replace(O," "),r=4;try{return decodeURIComponent(e)}catch(t){for(;r;)e=e.replace(E(r--),N);return e}},I=/[!'()~]|%20/g,_={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},P=function(t){return _[t]},D=function(t){return encodeURIComponent(t).replace(I,P)},F=function(t,e){if(e)for(var r,n,i=e.split("&"),o=0;o<i.length;)(r=i[o++]).length&&(n=r.split("="),t.push({key:R(n.shift()),value:R(n.join("="))}))},W=function(t){this.entries.length=0,F(this.entries,t)},H=function(t,e){if(t<e)throw TypeError("Not enough arguments")},z=u((function(t,e){k(this,{type:"URLSearchParamsIterator",iterator:b(T(t).entries),kind:e})}),"Iterator",(function(){var t=A(this),e=t.kind,r=t.iterator.next(),n=r.value;return r.done||(r.value="keys"===e?n.key:"values"===e?n.value:[n.key,n.value]),r})),U=function(){f(this,U,"URLSearchParams");var t,e,r,n,i,o,a,s,l,u=arguments.length>0?arguments[0]:void 0,c=this,d=[];if(k(c,{type:"URLSearchParams",entries:d,updateURL:function(){},updateSearchParams:W}),void 0!==u)if(v(u))if("function"==typeof(t=x(u)))for(r=(e=t.call(u)).next;!(n=r.call(e)).done;){if((a=(o=(i=b(g(n.value))).next).call(i)).done||(s=o.call(i)).done||!o.call(i).done)throw TypeError("Expected sequence with length 2");d.push({key:a.value+"",value:s.value+""})}else for(l in u)h(u,l)&&d.push({key:l,value:u[l]+""});else F(d,"string"==typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},j=U.prototype;s(j,{append:function(t,e){H(arguments.length,2);var r=T(this);r.entries.push({key:t+"",value:e+""}),r.updateURL()},delete:function(t){H(arguments.length,1);for(var e=T(this),r=e.entries,n=t+"",i=0;i<r.length;)r[i].key===n?r.splice(i,1):i++;e.updateURL()},get:function(t){H(arguments.length,1);for(var e=T(this).entries,r=t+"",n=0;n<e.length;n++)if(e[n].key===r)return e[n].value;return null},getAll:function(t){H(arguments.length,1);for(var e=T(this).entries,r=t+"",n=[],i=0;i<e.length;i++)e[i].key===r&&n.push(e[i].value);return n},has:function(t){H(arguments.length,1);for(var e=T(this).entries,r=t+"",n=0;n<e.length;)if(e[n++].key===r)return!0;return!1},set:function(t,e){H(arguments.length,1);for(var r,n=T(this),i=n.entries,o=!1,a=t+"",s=e+"",l=0;l<i.length;l++)(r=i[l]).key===a&&(o?i.splice(l--,1):(o=!0,r.value=s));o||i.push({key:a,value:s}),n.updateURL()},sort:function(){var t,e,r,n=T(this),i=n.entries,o=i.slice();for(i.length=0,r=0;r<o.length;r++){for(t=o[r],e=0;e<r;e++)if(i[e].key>t.key){i.splice(e,0,t);break}e===r&&i.push(t)}n.updateURL()},forEach:function(t){for(var e,r=T(this).entries,n=d(t,arguments.length>1?arguments[1]:void 0,3),i=0;i<r.length;)n((e=r[i++]).value,e.key,this)},keys:function(){return new z(this,"keys")},values:function(){return new z(this,"values")},entries:function(){return new z(this,"entries")}},{enumerable:!0}),a(j,M,j.entries),a(j,"toString",(function(){for(var t,e=T(this).entries,r=[],n=0;n<e.length;)t=e[n++],r.push(D(t.key)+"="+D(t.value));return r.join("&")}),{enumerable:!0}),l(U,"URLSearchParams"),n({global:!0,forced:!o},{URLSearchParams:U}),o||"function"!=typeof S||"function"!=typeof C||n({global:!0,enumerable:!0,forced:!0},{fetch:function(t){var e,r,n,i=[t];return arguments.length>1&&(v(e=arguments[1])&&(r=e.body,"URLSearchParams"===p(r)&&((n=e.headers?new C(e.headers):new C).has("content-type")||n.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),e=m(e,{body:y(0,String(r)),headers:y(0,n)}))),i.push(e)),S.apply(this,i)}}),t.exports={URLSearchParams:U,getState:T}},function(t,e,r){"use strict";var n={getElementFontSize:function(t){return"undefined"!=typeof getComputedStyle?parseFloat(getComputedStyle(t,"").fontSize):16},getCreatedElementDimensions:function(t,e,r){var n,i,o=document.createElement("div"),a=o.style;if(a.position="absolute",a.zIndex=-2147483648,a.left=0,a.top=0,a.visibility="hidden",e)for(i in e)e.hasOwnProperty(i)&&(a[i]=e[i]);return r&&(o.innerHTML=r),t.appendChild(o),n=[o.offsetWidth,o.offsetHeight],t.removeChild(o),n},getCreatedElementWidth:function(t,e,r){return n.getCreatedElementDimensions(t,e,r)[0]},getCreatedElementHeight:function(t,e,r){return n.getCreatedElementDimensions(t,e,r)[1]}},i=["perspective","translate","translate3d","translateX","translateY","translateZ","transformOrigin"],o=["height","top","translateY"],a=["absolute","fixed"];n.getRelativeElementDimension=function(t,e){var r,n,s,l=o.indexOf(e)>-1,u=i.indexOf(e)>-1,c=a.indexOf(getComputedStyle(t,"").position)>-1;return r=u?t:c?t.offsetParent:t.parentNode,n=l?r.offsetHeight:r.offsetWidth,!u&&c&&(s=getComputedStyle(r,""),n-=l?parseFloat(s.paddingTop)+parseFloat(s.paddingBottom):parseFloat(s.paddingRight)+parseFloat(s.paddingLeft)),n},n.DPI="undefined"==typeof window?96:n.getCreatedElementWidth(document.body,{width:"1in"}),n.ifZeroThenOne=function(t){return 0===t?1:t},t.exports=n},,function(t,e,r){r(157),r(371);var n=r(54);t.exports=n},function(t,e,r){r(158),r(160),r(161),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(171),r(172),r(173),r(174),r(175),r(176),r(177),r(178),r(179),r(180),r(181),r(182),r(183),r(184),r(185),r(186),r(187),r(188),r(189),r(190),r(191),r(192),r(193),r(194),r(196),r(197),r(198),r(199),r(200),r(201),r(202),r(203),r(204),r(205),r(206),r(207),r(208),r(209),r(210),r(211),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(220),r(221),r(222),r(223),r(224),r(225),r(226),r(227),r(228),r(229),r(230),r(231),r(71),r(232),r(233),r(234),r(235),r(236),r(237),r(238),r(239),r(240),r(241),r(242),r(243),r(244),r(245),r(246),r(247),r(248),r(135),r(249),r(250),r(251),r(252),r(253),r(254),r(255),r(256),r(257),r(258),r(259),r(260),r(261),r(262),r(102),r(263),r(264),r(265),r(266),r(267),r(268),r(269),r(270),r(271),r(273),r(274),r(275),r(276),r(277),r(278),r(279),r(280),r(281),r(282),r(283),r(284),r(285),r(286),r(287),r(288),r(289),r(291),r(292),r(293),r(294),r(295),r(296),r(297),r(298),r(299),r(300),r(301),r(302),r(303),r(305),r(306),r(308),r(309),r(310),r(312),r(313),r(314),r(315),r(316),r(317),r(318),r(320),r(321),r(322),r(323),r(325),r(326),r(327),r(328),r(329),r(330),r(331),r(332),r(333),r(334),r(335),r(336),r(337),r(338),r(339),r(340),r(341),r(342),r(343),r(344),r(345),r(346),r(347),r(348),r(349),r(350),r(351),r(352),r(353),r(354),r(355),r(356),r(357),r(358),r(359),r(360),r(361),r(362),r(363),r(364),r(365),r(366),r(367),r(368),r(369),r(370);var n=r(54);t.exports=n},function(t,e,r){"use strict";var n=r(0),i=r(2),o=r(26),a=r(29),s=r(5),l=r(91),u=r(118),c=r(1),f=r(11),h=r(42),d=r(3),p=r(4),g=r(10),v=r(22),m=r(28),y=r(36),b=r(32),x=r(57),w=r(41),S=r(120),C=r(90),M=r(13),k=r(9),T=r(65),A=r(17),O=r(14),L=r(87),E=r(66),N=r(53),R=r(52),I=r(6),_=r(121),P=r(19),D=r(31),F=r(18),W=r(12).forEach,H=E("hidden"),z=I("toPrimitive"),U=F.set,j=F.getterFor("Symbol"),B=Object.prototype,V=i.Symbol,G=o("JSON","stringify"),q=M.f,Y=k.f,X=S.f,Z=T.f,K=L("symbols"),$=L("op-symbols"),Q=L("string-to-symbol-registry"),J=L("symbol-to-string-registry"),tt=L("wks"),et=i.QObject,rt=!et||!et.prototype||!et.prototype.findChild,nt=s&&c((function(){return 7!=b(Y({},"a",{get:function(){return Y(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=q(B,e);n&&delete B[e],Y(t,e,r),n&&t!==B&&Y(B,e,n)}:Y,it=function(t,e){var r=K[t]=b(V.prototype);return U(r,{type:"Symbol",tag:t,description:e}),s||(r.description=e),r},ot=u?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof V},at=function(t,e,r){t===B&&at($,e,r),p(t);var n=m(e,!0);return p(r),f(K,n)?(r.enumerable?(f(t,H)&&t[H][n]&&(t[H][n]=!1),r=b(r,{enumerable:y(0,!1)})):(f(t,H)||Y(t,H,y(1,{})),t[H][n]=!0),nt(t,n,r)):Y(t,n,r)},st=function(t,e){p(t);var r=v(e),n=x(r).concat(ft(r));return W(n,(function(e){s&&!lt.call(r,e)||at(t,e,r[e])})),t},lt=function(t){var e=m(t,!0),r=Z.call(this,e);return!(this===B&&f(K,e)&&!f($,e))&&(!(r||!f(this,e)||!f(K,e)||f(this,H)&&this[H][e])||r)},ut=function(t,e){var r=v(t),n=m(e,!0);if(r!==B||!f(K,n)||f($,n)){var i=q(r,n);return!i||!f(K,n)||f(r,H)&&r[H][n]||(i.enumerable=!0),i}},ct=function(t){var e=X(v(t)),r=[];return W(e,(function(t){f(K,t)||f(N,t)||r.push(t)})),r},ft=function(t){var e=t===B,r=X(e?$:v(t)),n=[];return W(r,(function(t){!f(K,t)||e&&!f(B,t)||n.push(K[t])})),n};(l||(O((V=function(){if(this instanceof V)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=R(t),r=function(t){this===B&&r.call($,t),f(this,H)&&f(this[H],e)&&(this[H][e]=!1),nt(this,e,y(1,t))};return s&&rt&&nt(B,e,{configurable:!0,set:r}),it(e,t)}).prototype,"toString",(function(){return j(this).tag})),O(V,"withoutSetter",(function(t){return it(R(t),t)})),T.f=lt,k.f=at,M.f=ut,w.f=S.f=ct,C.f=ft,_.f=function(t){return it(I(t),t)},s&&(Y(V.prototype,"description",{configurable:!0,get:function(){return j(this).description}}),a||O(B,"propertyIsEnumerable",lt,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!l,sham:!l},{Symbol:V}),W(x(tt),(function(t){P(t)})),n({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=String(t);if(f(Q,e))return Q[e];var r=V(e);return Q[e]=r,J[r]=e,r},keyFor:function(t){if(!ot(t))throw TypeError(t+" is not a symbol");if(f(J,t))return J[t]},useSetter:function(){rt=!0},useSimple:function(){rt=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!s},{create:function(t,e){return void 0===e?b(t):st(b(t),e)},defineProperty:at,defineProperties:st,getOwnPropertyDescriptor:ut}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:ct,getOwnPropertySymbols:ft}),n({target:"Object",stat:!0,forced:c((function(){C.f(1)}))},{getOwnPropertySymbols:function(t){return C.f(g(t))}}),G)&&n({target:"JSON",stat:!0,forced:!l||c((function(){var t=V();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))}))},{stringify:function(t,e,r){for(var n,i=[t],o=1;arguments.length>o;)i.push(arguments[o++]);if(n=e,(d(e)||void 0!==t)&&!ot(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ot(e))return e}),i[1]=e,G.apply(null,i)}});V.prototype[z]||A(V.prototype,z,V.prototype.valueOf),D(V,"Symbol"),N[H]=!0},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){r(19)("asyncIterator")},function(t,e,r){"use strict";var n=r(0),i=r(5),o=r(2),a=r(11),s=r(3),l=r(9).f,u=r(116),c=o.Symbol;if(i&&"function"==typeof c&&(!("description"in c.prototype)||void 0!==c().description)){var f={},h=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof h?new c(t):void 0===t?c():c(t);return""===t&&(f[e]=!0),e};u(h,c);var d=h.prototype=c.prototype;d.constructor=h;var p=d.toString,g="Symbol(test)"==String(c("test")),v=/^Symbol\((.*)\)[^)]+$/;l(d,"description",{configurable:!0,get:function(){var t=s(this)?this.valueOf():this,e=p.call(t);if(a(f,t))return"";var r=g?e.slice(7,-1):e.replace(v,"$1");return""===r?void 0:r}}),n({global:!0,forced:!0},{Symbol:h})}},function(t,e,r){r(19)("hasInstance")},function(t,e,r){r(19)("isConcatSpreadable")},function(t,e,r){r(19)("iterator")},function(t,e,r){r(19)("match")},function(t,e,r){r(19)("matchAll")},function(t,e,r){r(19)("replace")},function(t,e,r){r(19)("search")},function(t,e,r){r(19)("species")},function(t,e,r){r(19)("split")},function(t,e,r){r(19)("toPrimitive")},function(t,e,r){r(19)("toStringTag")},function(t,e,r){r(19)("unscopables")},function(t,e,r){var n=r(0),i=r(122);n({target:"Object",stat:!0,forced:Object.assign!==i},{assign:i})},function(t,e,r){r(0)({target:"Object",stat:!0,sham:!r(5)},{create:r(32)})},function(t,e,r){var n=r(0),i=r(5);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:r(9).f})},function(t,e,r){var n=r(0),i=r(5);n({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperties:r(92)})},function(t,e,r){var n=r(0),i=r(123).entries;n({target:"Object",stat:!0},{entries:function(t){return i(t)}})},function(t,e,r){var n=r(0),i=r(59),o=r(1),a=r(3),s=r(43).onFreeze,l=Object.freeze;n({target:"Object",stat:!0,forced:o((function(){l(1)})),sham:!i},{freeze:function(t){return l&&a(t)?l(s(t)):t}})},function(t,e,r){var n=r(0),i=r(46),o=r(44);n({target:"Object",stat:!0},{fromEntries:function(t){var e={};return i(t,(function(t,r){o(e,t,r)}),void 0,!0),e}})},function(t,e,r){var n=r(0),i=r(1),o=r(22),a=r(13).f,s=r(5),l=i((function(){a(1)}));n({target:"Object",stat:!0,forced:!s||l,sham:!s},{getOwnPropertyDescriptor:function(t,e){return a(o(t),e)}})},function(t,e,r){var n=r(0),i=r(5),o=r(88),a=r(22),s=r(13),l=r(44);n({target:"Object",stat:!0,sham:!i},{getOwnPropertyDescriptors:function(t){for(var e,r,n=a(t),i=s.f,u=o(n),c={},f=0;u.length>f;)void 0!==(r=i(n,e=u[f++]))&&l(c,e,r);return c}})},function(t,e,r){var n=r(0),i=r(1),o=r(120).f;n({target:"Object",stat:!0,forced:i((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:o})},function(t,e,r){var n=r(0),i=r(1),o=r(10),a=r(30),s=r(95);n({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!s},{getPrototypeOf:function(t){return a(o(t))}})},function(t,e,r){r(0)({target:"Object",stat:!0},{is:r(125)})},function(t,e,r){var n=r(0),i=r(1),o=r(3),a=Object.isExtensible;n({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isExtensible:function(t){return!!o(t)&&(!a||a(t))}})},function(t,e,r){var n=r(0),i=r(1),o=r(3),a=Object.isFrozen;n({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isFrozen:function(t){return!o(t)||!!a&&a(t)}})},function(t,e,r){var n=r(0),i=r(1),o=r(3),a=Object.isSealed;n({target:"Object",stat:!0,forced:i((function(){a(1)}))},{isSealed:function(t){return!o(t)||!!a&&a(t)}})},function(t,e,r){var n=r(0),i=r(10),o=r(57);n({target:"Object",stat:!0,forced:r(1)((function(){o(1)}))},{keys:function(t){return o(i(t))}})},function(t,e,r){var n=r(0),i=r(3),o=r(43).onFreeze,a=r(59),s=r(1),l=Object.preventExtensions;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{preventExtensions:function(t){return l&&i(t)?l(o(t)):t}})},function(t,e,r){var n=r(0),i=r(3),o=r(43).onFreeze,a=r(59),s=r(1),l=Object.seal;n({target:"Object",stat:!0,forced:s((function(){l(1)})),sham:!a},{seal:function(t){return l&&i(t)?l(o(t)):t}})},function(t,e,r){r(0)({target:"Object",stat:!0},{setPrototypeOf:r(45)})},function(t,e,r){var n=r(0),i=r(123).values;n({target:"Object",stat:!0},{values:function(t){return i(t)}})},function(t,e,r){var n=r(94),i=r(14),o=r(195);n||i(Object.prototype,"toString",o,{unsafe:!0})},function(t,e,r){"use strict";var n=r(94),i=r(62);t.exports=n?{}.toString:function(){return"[object "+i(this)+"]"}},function(t,e,r){"use strict";var n=r(0),i=r(5),o=r(67),a=r(10),s=r(20),l=r(9);i&&n({target:"Object",proto:!0,forced:o},{__defineGetter__:function(t,e){l.f(a(this),t,{get:s(e),enumerable:!0,configurable:!0})}})},function(t,e,r){"use strict";var n=r(0),i=r(5),o=r(67),a=r(10),s=r(20),l=r(9);i&&n({target:"Object",proto:!0,forced:o},{__defineSetter__:function(t,e){l.f(a(this),t,{set:s(e),enumerable:!0,configurable:!0})}})},function(t,e,r){"use strict";var n=r(0),i=r(5),o=r(67),a=r(10),s=r(28),l=r(30),u=r(13).f;i&&n({target:"Object",proto:!0,forced:o},{__lookupGetter__:function(t){var e,r=a(this),n=s(t,!0);do{if(e=u(r,n))return e.get}while(r=l(r))}})},function(t,e,r){"use strict";var n=r(0),i=r(5),o=r(67),a=r(10),s=r(28),l=r(30),u=r(13).f;i&&n({target:"Object",proto:!0,forced:o},{__lookupSetter__:function(t){var e,r=a(this),n=s(t,!0);do{if(e=u(r,n))return e.set}while(r=l(r))}})},function(t,e,r){r(0)({target:"Function",proto:!0},{bind:r(127)})},function(t,e,r){var n=r(5),i=r(9).f,o=Function.prototype,a=o.toString,s=/^\s*function ([^ (]*)/;n&&!("name"in o)&&i(o,"name",{configurable:!0,get:function(){try{return a.call(this).match(s)[1]}catch(t){return""}}})},function(t,e,r){"use strict";var n=r(3),i=r(9),o=r(30),a=r(6)("hasInstance"),s=Function.prototype;a in s||i.f(s,a,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,r){r(0)({global:!0},{globalThis:r(2)})},function(t,e,r){var n=r(0),i=r(128);n({target:"Array",stat:!0,forced:!r(68)((function(t){Array.from(t)}))},{from:i})},function(t,e,r){r(0)({target:"Array",stat:!0},{isArray:r(42)})},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(44);n({target:"Array",stat:!0,forced:i((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,e=arguments.length,r=new("function"==typeof this?this:Array)(e);e>t;)o(r,t,arguments[t++]);return r.length=e,r}})},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(42),a=r(3),s=r(10),l=r(7),u=r(44),c=r(58),f=r(63),h=r(6),d=r(96),p=h("isConcatSpreadable"),g=d>=51||!i((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),v=f("concat"),m=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,forced:!g||!v},{concat:function(t){var e,r,n,i,o,a=s(this),f=c(a,0),h=0;for(e=-1,n=arguments.length;e<n;e++)if(m(o=-1===e?a:arguments[e])){if(h+(i=l(o.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r<i;r++,h++)r in o&&u(f,h,o[r])}else{if(h>=9007199254740991)throw TypeError("Maximum allowed index exceeded");u(f,h++,o)}return f.length=h,f}})},function(t,e,r){var n=r(0),i=r(129),o=r(39);n({target:"Array",proto:!0},{copyWithin:i}),o("copyWithin")},function(t,e,r){"use strict";var n=r(0),i=r(12).every,o=r(33),a=r(21),s=o("every"),l=a("every");n({target:"Array",proto:!0,forced:!s||!l},{every:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){var n=r(0),i=r(97),o=r(39);n({target:"Array",proto:!0},{fill:i}),o("fill")},function(t,e,r){"use strict";var n=r(0),i=r(12).filter,o=r(63),a=r(21),s=o("filter"),l=a("filter");n({target:"Array",proto:!0,forced:!s||!l},{filter:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(0),i=r(12).find,o=r(39),a=r(21),s=!0,l=a("find");"find"in[]&&Array(1).find((function(){s=!1})),n({target:"Array",proto:!0,forced:s||!l},{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,r){"use strict";var n=r(0),i=r(12).findIndex,o=r(39),a=r(21),s=!0,l=a("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){s=!1})),n({target:"Array",proto:!0,forced:s||!l},{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("findIndex")},function(t,e,r){"use strict";var n=r(0),i=r(130),o=r(10),a=r(7),s=r(27),l=r(58);n({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,e=o(this),r=a(e.length),n=l(e,0);return n.length=i(n,e,e,r,0,void 0===t?1:s(t)),n}})},function(t,e,r){"use strict";var n=r(0),i=r(130),o=r(10),a=r(7),s=r(20),l=r(58);n({target:"Array",proto:!0},{flatMap:function(t){var e,r=o(this),n=a(r.length);return s(t),(e=l(r,0)).length=i(e,r,r,n,0,1,t,arguments.length>1?arguments[1]:void 0),e}})},function(t,e,r){"use strict";var n=r(0),i=r(131);n({target:"Array",proto:!0,forced:[].forEach!=i},{forEach:i})},function(t,e,r){"use strict";var n=r(0),i=r(55).includes,o=r(39);n({target:"Array",proto:!0,forced:!r(21)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),o("includes")},function(t,e,r){"use strict";var n=r(0),i=r(55).indexOf,o=r(33),a=r(21),s=[].indexOf,l=!!s&&1/[1].indexOf(1,-0)<0,u=o("indexOf"),c=a("indexOf",{ACCESSORS:!0,1:0});n({target:"Array",proto:!0,forced:l||!u||!c},{indexOf:function(t){return l?s.apply(this,arguments)||0:i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(0),i=r(51),o=r(22),a=r(33),s=[].join,l=i!=Object,u=a("join",",");n({target:"Array",proto:!0,forced:l||!u},{join:function(t){return s.call(o(this),void 0===t?",":t)}})},function(t,e,r){var n=r(0),i=r(132);n({target:"Array",proto:!0,forced:i!==[].lastIndexOf},{lastIndexOf:i})},function(t,e,r){"use strict";var n=r(0),i=r(12).map,o=r(63),a=r(21),s=o("map"),l=a("map");n({target:"Array",proto:!0,forced:!s||!l},{map:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(0),i=r(70).left,o=r(33),a=r(21),s=o("reduce"),l=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!l},{reduce:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(0),i=r(70).right,o=r(33),a=r(21),s=o("reduceRight"),l=a("reduce",{1:0});n({target:"Array",proto:!0,forced:!s||!l},{reduceRight:function(t){return i(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(0),i=r(42),o=[].reverse,a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return i(this)&&(this.length=this.length),o.call(this)}})},function(t,e,r){"use strict";var n=r(0),i=r(3),o=r(42),a=r(37),s=r(7),l=r(22),u=r(44),c=r(6),f=r(63),h=r(21),d=f("slice"),p=h("slice",{ACCESSORS:!0,0:0,1:2}),g=c("species"),v=[].slice,m=Math.max;n({target:"Array",proto:!0,forced:!d||!p},{slice:function(t,e){var r,n,c,f=l(this),h=s(f.length),d=a(t,h),p=a(void 0===e?h:e,h);if(o(f)&&("function"!=typeof(r=f.constructor)||r!==Array&&!o(r.prototype)?i(r)&&null===(r=r[g])&&(r=void 0):r=void 0,r===Array||void 0===r))return v.call(f,d,p);for(n=new(void 0===r?Array:r)(m(p-d,0)),c=0;d<p;d++,c++)d in f&&u(n,c,f[d]);return n.length=c,n}})},function(t,e,r){"use strict";var n=r(0),i=r(12).some,o=r(33),a=r(21),s=o("some"),l=a("some");n({target:"Array",proto:!0,forced:!s||!l},{some:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(0),i=r(20),o=r(10),a=r(1),s=r(33),l=[],u=l.sort,c=a((function(){l.sort(void 0)})),f=a((function(){l.sort(null)})),h=s("sort");n({target:"Array",proto:!0,forced:c||!f||!h},{sort:function(t){return void 0===t?u.call(o(this)):u.call(o(this),i(t))}})},function(t,e,r){"use strict";var n=r(0),i=r(37),o=r(27),a=r(7),s=r(10),l=r(58),u=r(44),c=r(63),f=r(21),h=c("splice"),d=f("splice",{ACCESSORS:!0,0:0,1:2}),p=Math.max,g=Math.min;n({target:"Array",proto:!0,forced:!h||!d},{splice:function(t,e){var r,n,c,f,h,d,v=s(this),m=a(v.length),y=i(t,m),b=arguments.length;if(0===b?r=n=0:1===b?(r=0,n=m-y):(r=b-2,n=g(p(o(e),0),m-y)),m+r-n>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(c=l(v,n),f=0;f<n;f++)(h=y+f)in v&&u(c,f,v[h]);if(c.length=n,r<n){for(f=y;f<m-n;f++)d=f+r,(h=f+n)in v?v[d]=v[h]:delete v[d];for(f=m;f>m-n+r;f--)delete v[f-1]}else if(r>n)for(f=m-n;f>y;f--)d=f+r-1,(h=f+n-1)in v?v[d]=v[h]:delete v[d];for(f=0;f<r;f++)v[f+y]=arguments[f+2];return v.length=m-n+r,c}})},function(t,e,r){r(47)("Array")},function(t,e,r){r(39)("flat")},function(t,e,r){r(39)("flatMap")},function(t,e,r){var n=r(0),i=r(37),o=String.fromCharCode,a=String.fromCodePoint;n({target:"String",stat:!0,forced:!!a&&1!=a.length},{fromCodePoint:function(t){for(var e,r=[],n=arguments.length,a=0;n>a;){if(e=+arguments[a++],i(e,1114111)!==e)throw RangeError(e+" is not a valid code point");r.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return r.join("")}})},function(t,e,r){var n=r(0),i=r(22),o=r(7);n({target:"String",stat:!0},{raw:function(t){for(var e=i(t.raw),r=o(e.length),n=arguments.length,a=[],s=0;r>s;)a.push(String(e[s++])),s<n&&a.push(String(arguments[s]));return a.join("")}})},function(t,e,r){"use strict";var n=r(0),i=r(72).codeAt;n({target:"String",proto:!0},{codePointAt:function(t){return i(this,t)}})},function(t,e,r){"use strict";var n,i=r(0),o=r(13).f,a=r(7),s=r(100),l=r(16),u=r(101),c=r(29),f="".endsWith,h=Math.min,d=u("endsWith");i({target:"String",proto:!0,forced:!!(c||d||(n=o(String.prototype,"endsWith"),!n||n.writable))&&!d},{endsWith:function(t){var e=String(l(this));s(t);var r=arguments.length>1?arguments[1]:void 0,n=a(e.length),i=void 0===r?n:h(a(r),n),o=String(t);return f?f.call(e,o,i):e.slice(i-o.length,i)===o}})},function(t,e,r){"use strict";var n=r(0),i=r(100),o=r(16);n({target:"String",proto:!0,forced:!r(101)("includes")},{includes:function(t){return!!~String(o(this)).indexOf(i(t),arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(74),i=r(4),o=r(7),a=r(16),s=r(77),l=r(78);n("match",1,(function(t,e,r){return[function(e){var r=a(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var a=i(t),u=String(this);if(!a.global)return l(a,u);var c=a.unicode;a.lastIndex=0;for(var f,h=[],d=0;null!==(f=l(a,u));){var p=String(f[0]);h[d]=p,""===p&&(a.lastIndex=s(u,o(a.lastIndex),c)),d++}return 0===d?null:h}]}))},function(t,e,r){"use strict";var n=r(0),i=r(99),o=r(16),a=r(7),s=r(20),l=r(4),u=r(25),c=r(73),f=r(64),h=r(17),d=r(1),p=r(6),g=r(34),v=r(77),m=r(18),y=r(29),b=p("matchAll"),x=m.set,w=m.getterFor("RegExp String Iterator"),S=RegExp.prototype,C=S.exec,M="".matchAll,k=!!M&&!d((function(){"a".matchAll(/./)})),T=i((function(t,e,r,n){x(this,{type:"RegExp String Iterator",regexp:t,string:e,global:r,unicode:n,done:!1})}),"RegExp String",(function(){var t=w(this);if(t.done)return{value:void 0,done:!0};var e=t.regexp,r=t.string,n=function(t,e){var r,n=t.exec;if("function"==typeof n){if("object"!=typeof(r=n.call(t,e)))throw TypeError("Incorrect exec result");return r}return C.call(t,e)}(e,r);return null===n?{value:void 0,done:t.done=!0}:t.global?(""==String(n[0])&&(e.lastIndex=v(r,a(e.lastIndex),t.unicode)),{value:n,done:!1}):(t.done=!0,{value:n,done:!1})})),A=function(t){var e,r,n,i,o,s,u=l(this),c=String(t);return e=g(u,RegExp),void 0===(r=u.flags)&&u instanceof RegExp&&!("flags"in S)&&(r=f.call(u)),n=void 0===r?"":String(r),i=new e(e===RegExp?u.source:u,n),o=!!~n.indexOf("g"),s=!!~n.indexOf("u"),i.lastIndex=a(u.lastIndex),new T(i,c,o,s)};n({target:"String",proto:!0,forced:k},{matchAll:function(t){var e,r,n,i=o(this);if(null!=t){if(c(t)&&!~String(o("flags"in S?t.flags:f.call(t))).indexOf("g"))throw TypeError("`.matchAll` does not allow non-global regexes");if(k)return M.apply(i,arguments);if(void 0===(r=t[b])&&y&&"RegExp"==u(t)&&(r=A),null!=r)return s(r).call(t,i)}else if(k)return M.apply(i,arguments);return e=String(i),n=new RegExp(t,"g"),y?A.call(n,e):n[b](e)}}),y||b in S||h(S,b,A)},function(t,e,r){"use strict";var n=r(0),i=r(103).end;n({target:"String",proto:!0,forced:r(134)},{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){"use strict";var n=r(0),i=r(103).start;n({target:"String",proto:!0,forced:r(134)},{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,r){r(0)({target:"String",proto:!0},{repeat:r(104)})},function(t,e,r){"use strict";var n=r(74),i=r(4),o=r(10),a=r(7),s=r(27),l=r(16),u=r(77),c=r(78),f=Math.max,h=Math.min,d=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\d\d?)/g;n("replace",2,(function(t,e,r,n){var v=n.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,m=n.REPLACE_KEEPS_$0,y=v?"$":"$0";return[function(r,n){var i=l(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,i,n):e.call(String(i),r,n)},function(t,n){if(!v&&m||"string"==typeof n&&-1===n.indexOf(y)){var o=r(e,t,this,n);if(o.done)return o.value}var l=i(t),d=String(this),p="function"==typeof n;p||(n=String(n));var g=l.global;if(g){var x=l.unicode;l.lastIndex=0}for(var w=[];;){var S=c(l,d);if(null===S)break;if(w.push(S),!g)break;""===String(S[0])&&(l.lastIndex=u(d,a(l.lastIndex),x))}for(var C,M="",k=0,T=0;T<w.length;T++){S=w[T];for(var A=String(S[0]),O=f(h(s(S.index),d.length),0),L=[],E=1;E<S.length;E++)L.push(void 0===(C=S[E])?C:String(C));var N=S.groups;if(p){var R=[A].concat(L,O,d);void 0!==N&&R.push(N);var I=String(n.apply(void 0,R))}else I=b(A,d,O,L,N,n);O>=k&&(M+=d.slice(k,O)+I,k=O+A.length)}return M+d.slice(k)}];function b(t,r,n,i,a,s){var l=n+t.length,u=i.length,c=g;return void 0!==a&&(a=o(a),c=p),e.call(s,c,(function(e,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return t;case"`":return r.slice(0,n);case"'":return r.slice(l);case"<":s=a[o.slice(1,-1)];break;default:var c=+o;if(0===c)return e;if(c>u){var f=d(c/10);return 0===f?e:f<=u?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):e}s=i[c-1]}return void 0===s?"":s}))}}))},function(t,e,r){"use strict";var n=r(74),i=r(4),o=r(16),a=r(125),s=r(78);n("search",1,(function(t,e,r){return[function(e){var r=o(this),n=null==e?void 0:e[t];return void 0!==n?n.call(e,r):new RegExp(e)[t](String(r))},function(t){var n=r(e,t,this);if(n.done)return n.value;var o=i(t),l=String(this),u=o.lastIndex;a(u,0)||(o.lastIndex=0);var c=s(o,l);return a(o.lastIndex,u)||(o.lastIndex=u),null===c?-1:c.index}]}))},function(t,e,r){"use strict";var n=r(74),i=r(73),o=r(4),a=r(16),s=r(34),l=r(77),u=r(7),c=r(78),f=r(75),h=r(1),d=[].push,p=Math.min,g=!h((function(){return!RegExp(4294967295,"y")}));n("split",2,(function(t,e,r){var n;return n="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,r){var n=String(a(this)),o=void 0===r?4294967295:r>>>0;if(0===o)return[];if(void 0===t)return[n];if(!i(t))return e.call(n,t,o);for(var s,l,u,c=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),p=0,g=new RegExp(t.source,h+"g");(s=f.call(g,n))&&!((l=g.lastIndex)>p&&(c.push(n.slice(p,s.index)),s.length>1&&s.index<n.length&&d.apply(c,s.slice(1)),u=s[0].length,p=l,c.length>=o));)g.lastIndex===s.index&&g.lastIndex++;return p===n.length?!u&&g.test("")||c.push(""):c.push(n.slice(p)),c.length>o?c.slice(0,o):c}:"0".split(void 0,0).length?function(t,r){return void 0===t&&0===r?[]:e.call(this,t,r)}:e,[function(e,r){var i=a(this),o=null==e?void 0:e[t];return void 0!==o?o.call(e,i,r):n.call(String(i),e,r)},function(t,i){var a=r(n,t,this,i,n!==e);if(a.done)return a.value;var f=o(t),h=String(this),d=s(f,RegExp),v=f.unicode,m=(f.ignoreCase?"i":"")+(f.multiline?"m":"")+(f.unicode?"u":"")+(g?"y":"g"),y=new d(g?f:"^(?:"+f.source+")",m),b=void 0===i?4294967295:i>>>0;if(0===b)return[];if(0===h.length)return null===c(y,h)?[h]:[];for(var x=0,w=0,S=[];w<h.length;){y.lastIndex=g?w:0;var C,M=c(y,g?h:h.slice(w));if(null===M||(C=p(u(y.lastIndex+(g?0:w)),h.length))===x)w=l(h,w,v);else{if(S.push(h.slice(x,w)),S.length===b)return S;for(var k=1;k<=M.length-1;k++)if(S.push(M[k]),S.length===b)return S;w=x=C}}return S.push(h.slice(x)),S}]}),!g)},function(t,e,r){"use strict";var n,i=r(0),o=r(13).f,a=r(7),s=r(100),l=r(16),u=r(101),c=r(29),f="".startsWith,h=Math.min,d=u("startsWith");i({target:"String",proto:!0,forced:!!(c||d||(n=o(String.prototype,"startsWith"),!n||n.writable))&&!d},{startsWith:function(t){var e=String(l(this));s(t);var r=a(h(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return f?f.call(e,n,r):e.slice(r,r+n.length)===n}})},function(t,e,r){"use strict";var n=r(0),i=r(48).trim;n({target:"String",proto:!0,forced:r(105)("trim")},{trim:function(){return i(this)}})},function(t,e,r){"use strict";var n=r(0),i=r(48).start,o=r(105)("trimStart"),a=o?function(){return i(this)}:"".trimStart;n({target:"String",proto:!0,forced:o},{trimStart:a,trimLeft:a})},function(t,e,r){"use strict";var n=r(0),i=r(48).end,o=r(105)("trimEnd"),a=o?function(){return i(this)}:"".trimEnd;n({target:"String",proto:!0,forced:o},{trimEnd:a,trimRight:a})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("anchor")},{anchor:function(t){return i(this,"a","name",t)}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("big")},{big:function(){return i(this,"big","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("blink")},{blink:function(){return i(this,"blink","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("bold")},{bold:function(){return i(this,"b","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("fixed")},{fixed:function(){return i(this,"tt","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("fontcolor")},{fontcolor:function(t){return i(this,"font","color",t)}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("fontsize")},{fontsize:function(t){return i(this,"font","size",t)}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("italics")},{italics:function(){return i(this,"i","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("link")},{link:function(t){return i(this,"a","href",t)}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("small")},{small:function(){return i(this,"small","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("strike")},{strike:function(){return i(this,"strike","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("sub")},{sub:function(){return i(this,"sub","","")}})},function(t,e,r){"use strict";var n=r(0),i=r(23);n({target:"String",proto:!0,forced:r(24)("sup")},{sup:function(){return i(this,"sup","","")}})},function(t,e,r){var n=r(5),i=r(2),o=r(56),a=r(80),s=r(9).f,l=r(41).f,u=r(73),c=r(64),f=r(76),h=r(14),d=r(1),p=r(18).set,g=r(47),v=r(6)("match"),m=i.RegExp,y=m.prototype,b=/a/g,x=/a/g,w=new m(b)!==b,S=f.UNSUPPORTED_Y;if(n&&o("RegExp",!w||S||d((function(){return x[v]=!1,m(b)!=b||m(x)==x||"/a/i"!=m(b,"i")})))){for(var C=function(t,e){var r,n=this instanceof C,i=u(t),o=void 0===e;if(!n&&i&&t.constructor===C&&o)return t;w?i&&!o&&(t=t.source):t instanceof C&&(o&&(e=c.call(t)),t=t.source),S&&(r=!!e&&e.indexOf("y")>-1)&&(e=e.replace(/y/g,""));var s=a(w?new m(t,e):m(t,e),n?this:y,C);return S&&r&&p(s,{sticky:r}),s},M=function(t){t in C||s(C,t,{configurable:!0,get:function(){return m[t]},set:function(e){m[t]=e}})},k=l(m),T=0;k.length>T;)M(k[T++]);y.constructor=C,C.prototype=y,h(i,"RegExp",C)}g("RegExp")},function(t,e,r){var n=r(5),i=r(9),o=r(64),a=r(76).UNSUPPORTED_Y;n&&("g"!=/./g.flags||a)&&i.f(RegExp.prototype,"flags",{configurable:!0,get:o})},function(t,e,r){var n=r(5),i=r(76).UNSUPPORTED_Y,o=r(9).f,a=r(18).get,s=RegExp.prototype;n&&i&&o(RegExp.prototype,"sticky",{configurable:!0,get:function(){if(this!==s){if(this instanceof RegExp)return!!a(this).sticky;throw TypeError("Incompatible receiver, RegExp required")}}})},function(t,e,r){"use strict";r(102);var n,i,o=r(0),a=r(3),s=(n=!1,(i=/[ac]/).exec=function(){return n=!0,/./.exec.apply(this,arguments)},!0===i.test("abc")&&n),l=/./.test;o({target:"RegExp",proto:!0,forced:!s},{test:function(t){if("function"!=typeof this.exec)return l.call(this,t);var e=this.exec(t);if(null!==e&&!a(e))throw new Error("RegExp exec method returned something other than an Object or null");return!!e}})},function(t,e,r){"use strict";var n=r(14),i=r(4),o=r(1),a=r(64),s=RegExp.prototype,l=s.toString,u=o((function(){return"/a/b"!=l.call({source:"a",flags:"b"})})),c="toString"!=l.name;(u||c)&&n(RegExp.prototype,"toString",(function(){var t=i(this),e=String(t.source),r=t.flags;return"/"+e+"/"+String(void 0===r&&t instanceof RegExp&&!("flags"in s)?a.call(t):r)}),{unsafe:!0})},function(t,e,r){var n=r(0),i=r(136);n({global:!0,forced:parseInt!=i},{parseInt:i})},function(t,e,r){var n=r(0),i=r(137);n({global:!0,forced:parseFloat!=i},{parseFloat:i})},function(t,e,r){"use strict";var n=r(5),i=r(2),o=r(56),a=r(14),s=r(11),l=r(25),u=r(80),c=r(28),f=r(1),h=r(32),d=r(41).f,p=r(13).f,g=r(9).f,v=r(48).trim,m=i.Number,y=m.prototype,b="Number"==l(h(y)),x=function(t){var e,r,n,i,o,a,s,l,u=c(t,!1);if("string"==typeof u&&u.length>2)if(43===(e=(u=v(u)).charCodeAt(0))||45===e){if(88===(r=u.charCodeAt(2))||120===r)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+u}for(a=(o=u.slice(2)).length,s=0;s<a;s++)if((l=o.charCodeAt(s))<48||l>i)return NaN;return parseInt(o,n)}return+u};if(o("Number",!m(" 0o1")||!m("0b1")||m("+0x1"))){for(var w,S=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof S&&(b?f((function(){y.valueOf.call(r)})):"Number"!=l(r))?u(new m(x(e)),r,S):x(e)},C=n?d(m):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),M=0;C.length>M;M++)s(m,w=C[M])&&!s(S,w)&&g(S,w,p(m,w));S.prototype=y,y.constructor=S,a(i,"Number",S)}},function(t,e,r){r(0)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},function(t,e,r){r(0)({target:"Number",stat:!0},{isFinite:r(272)})},function(t,e,r){var n=r(2).isFinite;t.exports=Number.isFinite||function(t){return"number"==typeof t&&n(t)}},function(t,e,r){r(0)({target:"Number",stat:!0},{isInteger:r(138)})},function(t,e,r){r(0)({target:"Number",stat:!0},{isNaN:function(t){return t!=t}})},function(t,e,r){var n=r(0),i=r(138),o=Math.abs;n({target:"Number",stat:!0},{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,e,r){r(0)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,r){r(0)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,r){var n=r(0),i=r(137);n({target:"Number",stat:!0,forced:Number.parseFloat!=i},{parseFloat:i})},function(t,e,r){var n=r(0),i=r(136);n({target:"Number",stat:!0,forced:Number.parseInt!=i},{parseInt:i})},function(t,e,r){"use strict";var n=r(0),i=r(27),o=r(139),a=r(104),s=r(1),l=1..toFixed,u=Math.floor,c=function(t,e,r){return 0===e?r:e%2==1?c(t,e-1,r*t):c(t*t,e/2,r)};n({target:"Number",proto:!0,forced:l&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!s((function(){l.call({})}))},{toFixed:function(t){var e,r,n,s,l=o(this),f=i(t),h=[0,0,0,0,0,0],d="",p="0",g=function(t,e){for(var r=-1,n=e;++r<6;)n+=t*h[r],h[r]=n%1e7,n=u(n/1e7)},v=function(t){for(var e=6,r=0;--e>=0;)r+=h[e],h[e]=u(r/t),r=r%t*1e7},m=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==h[t]){var r=String(h[t]);e=""===e?r:e+a.call("0",7-r.length)+r}return e};if(f<0||f>20)throw RangeError("Incorrect fraction digits");if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(d="-",l=-l),l>1e-21)if(r=(e=function(t){for(var e=0,r=t;r>=4096;)e+=12,r/=4096;for(;r>=2;)e+=1,r/=2;return e}(l*c(2,69,1))-69)<0?l*c(2,-e,1):l/c(2,e,1),r*=4503599627370496,(e=52-e)>0){for(g(0,r),n=f;n>=7;)g(1e7,0),n-=7;for(g(c(10,n,1),0),n=e-1;n>=23;)v(1<<23),n-=23;v(1<<n),g(1,1),v(2),p=m()}else g(0,r),g(1<<-e,0),p=m()+a.call("0",f);return p=f>0?d+((s=p.length)<=f?"0."+a.call("0",f-s)+p:p.slice(0,s-f)+"."+p.slice(s-f)):d+p}})},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(139),a=1..toPrecision;n({target:"Number",proto:!0,forced:i((function(){return"1"!==a.call(1,void 0)}))||!i((function(){a.call({})}))},{toPrecision:function(t){return void 0===t?a.call(o(this)):a.call(o(this),t)}})},function(t,e,r){var n=r(0),i=r(140),o=Math.acosh,a=Math.log,s=Math.sqrt,l=Math.LN2;n({target:"Math",stat:!0,forced:!o||710!=Math.floor(o(Number.MAX_VALUE))||o(1/0)!=1/0},{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?a(t)+l:i(t-1+s(t-1)*s(t+1))}})},function(t,e,r){var n=r(0),i=Math.asinh,o=Math.log,a=Math.sqrt;n({target:"Math",stat:!0,forced:!(i&&1/i(0)>0)},{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):o(e+a(e*e+1)):e}})},function(t,e,r){var n=r(0),i=Math.atanh,o=Math.log;n({target:"Math",stat:!0,forced:!(i&&1/i(-0)<0)},{atanh:function(t){return 0==(t=+t)?t:o((1+t)/(1-t))/2}})},function(t,e,r){var n=r(0),i=r(106),o=Math.abs,a=Math.pow;n({target:"Math",stat:!0},{cbrt:function(t){return i(t=+t)*a(o(t),1/3)}})},function(t,e,r){var n=r(0),i=Math.floor,o=Math.log,a=Math.LOG2E;n({target:"Math",stat:!0},{clz32:function(t){return(t>>>=0)?31-i(o(t+.5)*a):32}})},function(t,e,r){var n=r(0),i=r(81),o=Math.cosh,a=Math.abs,s=Math.E;n({target:"Math",stat:!0,forced:!o||o(710)===1/0},{cosh:function(t){var e=i(a(t)-1)+1;return(e+1/(e*s*s))*(s/2)}})},function(t,e,r){var n=r(0),i=r(81);n({target:"Math",stat:!0,forced:i!=Math.expm1},{expm1:i})},function(t,e,r){r(0)({target:"Math",stat:!0},{fround:r(290)})},function(t,e,r){var n=r(106),i=Math.abs,o=Math.pow,a=o(2,-52),s=o(2,-23),l=o(2,127)*(2-s),u=o(2,-126);t.exports=Math.fround||function(t){var e,r,o=i(t),c=n(t);return o<u?c*(o/u/s+1/a-1/a)*u*s:(r=(e=(1+s/a)*o)-(e-o))>l||r!=r?c*(1/0):c*r}},function(t,e,r){var n=r(0),i=Math.hypot,o=Math.abs,a=Math.sqrt;n({target:"Math",stat:!0,forced:!!i&&i(1/0,NaN)!==1/0},{hypot:function(t,e){for(var r,n,i=0,s=0,l=arguments.length,u=0;s<l;)u<(r=o(arguments[s++]))?(i=i*(n=u/r)*n+1,u=r):i+=r>0?(n=r/u)*n:r;return u===1/0?1/0:u*a(i)}})},function(t,e,r){var n=r(0),i=r(1),o=Math.imul;n({target:"Math",stat:!0,forced:i((function(){return-5!=o(4294967295,5)||2!=o.length}))},{imul:function(t,e){var r=+t,n=+e,i=65535&r,o=65535&n;return 0|i*o+((65535&r>>>16)*o+i*(65535&n>>>16)<<16>>>0)}})},function(t,e,r){var n=r(0),i=Math.log,o=Math.LOG10E;n({target:"Math",stat:!0},{log10:function(t){return i(t)*o}})},function(t,e,r){r(0)({target:"Math",stat:!0},{log1p:r(140)})},function(t,e,r){var n=r(0),i=Math.log,o=Math.LN2;n({target:"Math",stat:!0},{log2:function(t){return i(t)/o}})},function(t,e,r){r(0)({target:"Math",stat:!0},{sign:r(106)})},function(t,e,r){var n=r(0),i=r(1),o=r(81),a=Math.abs,s=Math.exp,l=Math.E;n({target:"Math",stat:!0,forced:i((function(){return-2e-17!=Math.sinh(-2e-17)}))},{sinh:function(t){return a(t=+t)<1?(o(t)-o(-t))/2:(s(t-1)-s(-t-1))*(l/2)}})},function(t,e,r){var n=r(0),i=r(81),o=Math.exp;n({target:"Math",stat:!0},{tanh:function(t){var e=i(t=+t),r=i(-t);return e==1/0?1:r==1/0?-1:(e-r)/(o(t)+o(-t))}})},function(t,e,r){r(31)(Math,"Math",!0)},function(t,e,r){var n=r(0),i=Math.ceil,o=Math.floor;n({target:"Math",stat:!0},{trunc:function(t){return(t>0?o:i)(t)}})},function(t,e,r){r(0)({target:"Date",stat:!0},{now:function(){return(new Date).getTime()}})},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(10),a=r(28);n({target:"Date",proto:!0,forced:i((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}))},{toJSON:function(t){var e=o(this),r=a(e);return"number"!=typeof r||isFinite(r)?e.toISOString():null}})},function(t,e,r){var n=r(0),i=r(304);n({target:"Date",proto:!0,forced:Date.prototype.toISOString!==i},{toISOString:i})},function(t,e,r){"use strict";var n=r(1),i=r(103).start,o=Math.abs,a=Date.prototype,s=a.getTime,l=a.toISOString;t.exports=n((function(){return"0385-07-25T07:06:39.999Z"!=l.call(new Date(-50000000000001))}))||!n((function(){l.call(new Date(NaN))}))?function(){if(!isFinite(s.call(this)))throw RangeError("Invalid time value");var t=this.getUTCFullYear(),e=this.getUTCMilliseconds(),r=t<0?"-":t>9999?"+":"";return r+i(o(t),r?6:4,0)+"-"+i(this.getUTCMonth()+1,2,0)+"-"+i(this.getUTCDate(),2,0)+"T"+i(this.getUTCHours(),2,0)+":"+i(this.getUTCMinutes(),2,0)+":"+i(this.getUTCSeconds(),2,0)+"."+i(e,3,0)+"Z"}:l},function(t,e,r){var n=r(14),i=Date.prototype,o=i.toString,a=i.getTime;new Date(NaN)+""!="Invalid Date"&&n(i,"toString",(function(){var t=a.call(this);return t==t?o.call(this):"Invalid Date"}))},function(t,e,r){var n=r(17),i=r(307),o=r(6)("toPrimitive"),a=Date.prototype;o in a||n(a,o,i)},function(t,e,r){"use strict";var n=r(4),i=r(28);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(n(this),"number"!==t)}},function(t,e,r){var n=r(0),i=r(26),o=r(1),a=i("JSON","stringify"),s=/[\uD800-\uDFFF]/g,l=/^[\uD800-\uDBFF]$/,u=/^[\uDC00-\uDFFF]$/,c=function(t,e,r){var n=r.charAt(e-1),i=r.charAt(e+1);return l.test(t)&&!u.test(i)||u.test(t)&&!l.test(n)?"\\u"+t.charCodeAt(0).toString(16):t},f=o((function(){return'"\\udf06\\ud834"'!==a("\udf06\ud834")||'"\\udead"'!==a("\udead")}));a&&n({target:"JSON",stat:!0,forced:f},{stringify:function(t,e,r){var n=a.apply(null,arguments);return"string"==typeof n?n.replace(s,c):n}})},function(t,e,r){var n=r(2);r(31)(n.JSON,"JSON",!0)},function(t,e,r){"use strict";var n,i,o,a,s=r(0),l=r(29),u=r(2),c=r(26),f=r(141),h=r(14),d=r(49),p=r(31),g=r(47),v=r(3),m=r(20),y=r(40),b=r(25),x=r(86),w=r(46),S=r(68),C=r(34),M=r(107).set,k=r(143),T=r(144),A=r(311),O=r(108),L=r(145),E=r(18),N=r(56),R=r(6),I=r(96),_=R("species"),P="Promise",D=E.get,F=E.set,W=E.getterFor(P),H=f,z=u.TypeError,U=u.document,j=u.process,B=c("fetch"),V=O.f,G=V,q="process"==b(j),Y=!!(U&&U.createEvent&&u.dispatchEvent),X=N(P,(function(){if(!(x(H)!==String(H))){if(66===I)return!0;if(!q&&"function"!=typeof PromiseRejectionEvent)return!0}if(l&&!H.prototype.finally)return!0;if(I>=51&&/native code/.test(H))return!1;var t=H.resolve(1),e=function(t){t((function(){}),(function(){}))};return(t.constructor={})[_]=e,!(t.then((function(){}))instanceof e)})),Z=X||!S((function(t){H.all(t).catch((function(){}))})),K=function(t){var e;return!(!v(t)||"function"!=typeof(e=t.then))&&e},$=function(t,e,r){if(!e.notified){e.notified=!0;var n=e.reactions;k((function(){for(var i=e.value,o=1==e.state,a=0;n.length>a;){var s,l,u,c=n[a++],f=o?c.ok:c.fail,h=c.resolve,d=c.reject,p=c.domain;try{f?(o||(2===e.rejection&&et(t,e),e.rejection=1),!0===f?s=i:(p&&p.enter(),s=f(i),p&&(p.exit(),u=!0)),s===c.promise?d(z("Promise-chain cycle")):(l=K(s))?l.call(s,h,d):h(s)):d(i)}catch(t){p&&!u&&p.exit(),d(t)}}e.reactions=[],e.notified=!1,r&&!e.rejection&&J(t,e)}))}},Q=function(t,e,r){var n,i;Y?((n=U.createEvent("Event")).promise=e,n.reason=r,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:e,reason:r},(i=u["on"+t])?i(n):"unhandledrejection"===t&&A("Unhandled promise rejection",r)},J=function(t,e){M.call(u,(function(){var r,n=e.value;if(tt(e)&&(r=L((function(){q?j.emit("unhandledRejection",n,t):Q("unhandledrejection",t,n)})),e.rejection=q||tt(e)?2:1,r.error))throw r.value}))},tt=function(t){return 1!==t.rejection&&!t.parent},et=function(t,e){M.call(u,(function(){q?j.emit("rejectionHandled",t):Q("rejectionhandled",t,e.value)}))},rt=function(t,e,r,n){return function(i){t(e,r,i,n)}},nt=function(t,e,r,n){e.done||(e.done=!0,n&&(e=n),e.value=r,e.state=2,$(t,e,!0))},it=function(t,e,r,n){if(!e.done){e.done=!0,n&&(e=n);try{if(t===r)throw z("Promise can't be resolved itself");var i=K(r);i?k((function(){var n={done:!1};try{i.call(r,rt(it,t,n,e),rt(nt,t,n,e))}catch(r){nt(t,n,r,e)}})):(e.value=r,e.state=1,$(t,e,!1))}catch(r){nt(t,{done:!1},r,e)}}};X&&(H=function(t){y(this,H,P),m(t),n.call(this);var e=D(this);try{t(rt(it,this,e),rt(nt,this,e))}catch(t){nt(this,e,t)}},(n=function(t){F(this,{type:P,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=d(H.prototype,{then:function(t,e){var r=W(this),n=V(C(this,H));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=q?j.domain:void 0,r.parent=!0,r.reactions.push(n),0!=r.state&&$(this,r,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),i=function(){var t=new n,e=D(t);this.promise=t,this.resolve=rt(it,t,e),this.reject=rt(nt,t,e)},O.f=V=function(t){return t===H||t===o?new i(t):G(t)},l||"function"!=typeof f||(a=f.prototype.then,h(f.prototype,"then",(function(t,e){var r=this;return new H((function(t,e){a.call(r,t,e)})).then(t,e)}),{unsafe:!0}),"function"==typeof B&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(t){return T(H,B.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:X},{Promise:H}),p(H,P,!1,!0),g(P),o=c(P),s({target:P,stat:!0,forced:X},{reject:function(t){var e=V(this);return e.reject.call(void 0,t),e.promise}}),s({target:P,stat:!0,forced:l||X},{resolve:function(t){return T(l&&this===o?H:this,t)}}),s({target:P,stat:!0,forced:Z},{all:function(t){var e=this,r=V(e),n=r.resolve,i=r.reject,o=L((function(){var r=m(e.resolve),o=[],a=0,s=1;w(t,(function(t){var l=a++,u=!1;o.push(void 0),s++,r.call(e,t).then((function(t){u||(u=!0,o[l]=t,--s||n(o))}),i)})),--s||n(o)}));return o.error&&i(o.value),r.promise},race:function(t){var e=this,r=V(e),n=r.reject,i=L((function(){var i=m(e.resolve);w(t,(function(t){i.call(e,t).then(r.resolve,n)}))}));return i.error&&n(i.value),r.promise}})},function(t,e,r){var n=r(2);t.exports=function(t,e){var r=n.console;r&&r.error&&(1===arguments.length?r.error(t):r.error(t,e))}},function(t,e,r){"use strict";var n=r(0),i=r(20),o=r(108),a=r(145),s=r(46);n({target:"Promise",stat:!0},{allSettled:function(t){var e=this,r=o.f(e),n=r.resolve,l=r.reject,u=a((function(){var r=i(e.resolve),o=[],a=0,l=1;s(t,(function(t){var i=a++,s=!1;o.push(void 0),l++,r.call(e,t).then((function(t){s||(s=!0,o[i]={status:"fulfilled",value:t},--l||n(o))}),(function(t){s||(s=!0,o[i]={status:"rejected",reason:t},--l||n(o))}))})),--l||n(o)}));return u.error&&l(u.value),r.promise}})},function(t,e,r){"use strict";var n=r(0),i=r(29),o=r(141),a=r(1),s=r(26),l=r(34),u=r(144),c=r(14);n({target:"Promise",proto:!0,real:!0,forced:!!o&&a((function(){o.prototype.finally.call({then:function(){}},(function(){}))}))},{finally:function(t){var e=l(this,s("Promise")),r="function"==typeof t;return this.then(r?function(r){return u(e,t()).then((function(){return r}))}:t,r?function(r){return u(e,t()).then((function(){throw r}))}:t)}}),i||"function"!=typeof o||o.prototype.finally||c(o.prototype,"finally",s("Promise").prototype.finally)},function(t,e,r){"use strict";var n=r(82),i=r(146);t.exports=n("Map",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,r){"use strict";var n=r(82),i=r(146);t.exports=n("Set",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),i)},function(t,e,r){"use strict";var n,i=r(2),o=r(49),a=r(43),s=r(82),l=r(147),u=r(3),c=r(18).enforce,f=r(115),h=!i.ActiveXObject&&"ActiveXObject"in i,d=Object.isExtensible,p=function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},g=t.exports=s("WeakMap",p,l);if(f&&h){n=l.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var v=g.prototype,m=v.delete,y=v.has,b=v.get,x=v.set;o(v,{delete:function(t){if(u(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new n),m.call(this,t)||e.frozen.delete(t)}return m.call(this,t)},has:function(t){if(u(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new n),y.call(this,t)||e.frozen.has(t)}return y.call(this,t)},get:function(t){if(u(t)&&!d(t)){var e=c(this);return e.frozen||(e.frozen=new n),y.call(this,t)?b.call(this,t):e.frozen.get(t)}return b.call(this,t)},set:function(t,e){if(u(t)&&!d(t)){var r=c(this);r.frozen||(r.frozen=new n),y.call(this,t)?x.call(this,t,e):r.frozen.set(t,e)}else x.call(this,t,e);return this}})}},function(t,e,r){"use strict";r(82)("WeakSet",(function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}}),r(147))},function(t,e,r){"use strict";var n=r(0),i=r(2),o=r(83),a=r(47),s=o.ArrayBuffer;n({global:!0,forced:i.ArrayBuffer!==s},{ArrayBuffer:s}),a("ArrayBuffer")},function(t,e){var r=Math.abs,n=Math.pow,i=Math.floor,o=Math.log,a=Math.LN2;t.exports={pack:function(t,e,s){var l,u,c,f=new Array(s),h=8*s-e-1,d=(1<<h)-1,p=d>>1,g=23===e?n(2,-24)-n(2,-77):0,v=t<0||0===t&&1/t<0?1:0,m=0;for((t=r(t))!=t||t===1/0?(u=t!=t?1:0,l=d):(l=i(o(t)/a),t*(c=n(2,-l))<1&&(l--,c*=2),(t+=l+p>=1?g/c:g*n(2,1-p))*c>=2&&(l++,c/=2),l+p>=d?(u=0,l=d):l+p>=1?(u=(t*c-1)*n(2,e),l+=p):(u=t*n(2,p-1)*n(2,e),l=0));e>=8;f[m++]=255&u,u/=256,e-=8);for(l=l<<e|u,h+=e;h>0;f[m++]=255&l,l/=256,h-=8);return f[--m]|=128*v,f},unpack:function(t,e){var r,i=t.length,o=8*i-e-1,a=(1<<o)-1,s=a>>1,l=o-7,u=i-1,c=t[u--],f=127&c;for(c>>=7;l>0;f=256*f+t[u],u--,l-=8);for(r=f&(1<<-l)-1,f>>=-l,l+=e;l>0;r=256*r+t[u],u--,l-=8);if(0===f)f=1-s;else{if(f===a)return r?NaN:c?-1/0:1/0;r+=n(2,e),f-=s}return(c?-1:1)*r*n(2,f-e)}}},function(t,e,r){var n=r(0),i=r(8);n({target:"ArrayBuffer",stat:!0,forced:!i.NATIVE_ARRAY_BUFFER_VIEWS},{isView:i.isView})},function(t,e,r){"use strict";var n=r(0),i=r(1),o=r(83),a=r(4),s=r(37),l=r(7),u=r(34),c=o.ArrayBuffer,f=o.DataView,h=c.prototype.slice;n({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:i((function(){return!new c(2).slice(1,void 0).byteLength}))},{slice:function(t,e){if(void 0!==h&&void 0===e)return h.call(a(this),t);for(var r=a(this).byteLength,n=s(t,r),i=s(void 0===e?r:e,r),o=new(u(this,c))(l(i-n)),d=new f(this),p=new f(o),g=0;n<i;)p.setUint8(g++,d.getUint8(n++));return o}})},function(t,e,r){var n=r(0),i=r(83);n({global:!0,forced:!r(109)},{DataView:i.DataView})},function(t,e,r){r(35)("Int8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){var n=r(27);t.exports=function(t){var e=n(t);if(e<0)throw RangeError("The argument can't be less than 0");return e}},function(t,e,r){r(35)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(35)("Uint8",(function(t){return function(e,r,n){return t(this,e,r,n)}}),!0)},function(t,e,r){r(35)("Int16",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(35)("Uint16",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(35)("Int32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(35)("Uint32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(35)("Float32",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){r(35)("Float64",(function(t){return function(e,r,n){return t(this,e,r,n)}}))},function(t,e,r){"use strict";var n=r(110);(0,r(8).exportTypedArrayStaticMethod)("from",r(150),n)},function(t,e,r){"use strict";var n=r(8),i=r(110),o=n.aTypedArrayConstructor;(0,n.exportTypedArrayStaticMethod)("of",(function(){for(var t=0,e=arguments.length,r=new(o(this))(e);e>t;)r[t]=arguments[t++];return r}),i)},function(t,e,r){"use strict";var n=r(8),i=r(129),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("copyWithin",(function(t,e){return i.call(o(this),t,e,arguments.length>2?arguments[2]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=r(12).every,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("every",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=r(97),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("fill",(function(t){return i.apply(o(this),arguments)}))},function(t,e,r){"use strict";var n=r(8),i=r(12).filter,o=r(34),a=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("filter",(function(t){for(var e=i(a(this),t,arguments.length>1?arguments[1]:void 0),r=o(this,this.constructor),n=0,l=e.length,u=new(s(r))(l);l>n;)u[n]=e[n++];return u}))},function(t,e,r){"use strict";var n=r(8),i=r(12).find,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("find",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=r(12).findIndex,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("findIndex",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=r(12).forEach,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("forEach",(function(t){i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=r(55).includes,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("includes",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=r(55).indexOf,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("indexOf",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(2),i=r(8),o=r(71),a=r(6)("iterator"),s=n.Uint8Array,l=o.values,u=o.keys,c=o.entries,f=i.aTypedArray,h=i.exportTypedArrayMethod,d=s&&s.prototype[a],p=!!d&&("values"==d.name||null==d.name),g=function(){return l.call(f(this))};h("entries",(function(){return c.call(f(this))})),h("keys",(function(){return u.call(f(this))})),h("values",g,!p),h(a,g,!p)},function(t,e,r){"use strict";var n=r(8),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=[].join;o("join",(function(t){return a.apply(i(this),arguments)}))},function(t,e,r){"use strict";var n=r(8),i=r(132),o=n.aTypedArray;(0,n.exportTypedArrayMethod)("lastIndexOf",(function(t){return i.apply(o(this),arguments)}))},function(t,e,r){"use strict";var n=r(8),i=r(12).map,o=r(34),a=n.aTypedArray,s=n.aTypedArrayConstructor;(0,n.exportTypedArrayMethod)("map",(function(t){return i(a(this),t,arguments.length>1?arguments[1]:void 0,(function(t,e){return new(s(o(t,t.constructor)))(e)}))}))},function(t,e,r){"use strict";var n=r(8),i=r(70).left,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduce",(function(t){return i(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=r(70).right,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("reduceRight",(function(t){return i(o(this),t,arguments.length,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=Math.floor;o("reverse",(function(){for(var t,e=i(this).length,r=a(e/2),n=0;n<r;)t=this[n],this[n++]=this[--e],this[e]=t;return this}))},function(t,e,r){"use strict";var n=r(8),i=r(7),o=r(149),a=r(10),s=r(1),l=n.aTypedArray;(0,n.exportTypedArrayMethod)("set",(function(t){l(this);var e=o(arguments.length>1?arguments[1]:void 0,1),r=this.length,n=a(t),s=i(n.length),u=0;if(s+e>r)throw RangeError("Wrong length");for(;u<s;)this[e+u]=n[u++]}),s((function(){new Int8Array(1).set({})})))},function(t,e,r){"use strict";var n=r(8),i=r(34),o=r(1),a=n.aTypedArray,s=n.aTypedArrayConstructor,l=n.exportTypedArrayMethod,u=[].slice;l("slice",(function(t,e){for(var r=u.call(a(this),t,e),n=i(this,this.constructor),o=0,l=r.length,c=new(s(n))(l);l>o;)c[o]=r[o++];return c}),o((function(){new Int8Array(1).slice()})))},function(t,e,r){"use strict";var n=r(8),i=r(12).some,o=n.aTypedArray;(0,n.exportTypedArrayMethod)("some",(function(t){return i(o(this),t,arguments.length>1?arguments[1]:void 0)}))},function(t,e,r){"use strict";var n=r(8),i=n.aTypedArray,o=n.exportTypedArrayMethod,a=[].sort;o("sort",(function(t){return a.call(i(this),t)}))},function(t,e,r){"use strict";var n=r(8),i=r(7),o=r(37),a=r(34),s=n.aTypedArray;(0,n.exportTypedArrayMethod)("subarray",(function(t,e){var r=s(this),n=r.length,l=o(t,n);return new(a(r,r.constructor))(r.buffer,r.byteOffset+l*r.BYTES_PER_ELEMENT,i((void 0===e?n:o(e,n))-l))}))},function(t,e,r){"use strict";var n=r(2),i=r(8),o=r(1),a=n.Int8Array,s=i.aTypedArray,l=i.exportTypedArrayMethod,u=[].toLocaleString,c=[].slice,f=!!a&&o((function(){u.call(new a(1))}));l("toLocaleString",(function(){return u.apply(f?c.call(s(this)):s(this),arguments)}),o((function(){return[1,2].toLocaleString()!=new a([1,2]).toLocaleString()}))||!o((function(){a.prototype.toLocaleString.call([1,2])})))},function(t,e,r){"use strict";var n=r(8).exportTypedArrayMethod,i=r(1),o=r(2).Uint8Array,a=o&&o.prototype||{},s=[].toString,l=[].join;i((function(){s.call({})}))&&(s=function(){return l.call(this)});var u=a.toString!=s;n("toString",s,u)},function(t,e,r){var n=r(0),i=r(26),o=r(20),a=r(4),s=r(1),l=i("Reflect","apply"),u=Function.apply;n({target:"Reflect",stat:!0,forced:!s((function(){l((function(){}))}))},{apply:function(t,e,r){return o(t),a(r),l?l(t,e,r):u.call(t,e,r)}})},function(t,e,r){var n=r(0),i=r(26),o=r(20),a=r(4),s=r(3),l=r(32),u=r(127),c=r(1),f=i("Reflect","construct"),h=c((function(){function t(){}return!(f((function(){}),[],t)instanceof t)})),d=!c((function(){f((function(){}))})),p=h||d;n({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(t,e){o(t),a(e);var r=arguments.length<3?t:o(arguments[2]);if(d&&!h)return f(t,e,r);if(t==r){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])}var n=[null];return n.push.apply(n,e),new(u.apply(t,n))}var i=r.prototype,c=l(s(i)?i:Object.prototype),p=Function.apply.call(t,c,e);return s(p)?p:c}})},function(t,e,r){var n=r(0),i=r(5),o=r(4),a=r(28),s=r(9);n({target:"Reflect",stat:!0,forced:r(1)((function(){Reflect.defineProperty(s.f({},1,{value:1}),1,{value:2})})),sham:!i},{defineProperty:function(t,e,r){o(t);var n=a(e,!0);o(r);try{return s.f(t,n,r),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),i=r(4),o=r(13).f;n({target:"Reflect",stat:!0},{deleteProperty:function(t,e){var r=o(i(t),e);return!(r&&!r.configurable)&&delete t[e]}})},function(t,e,r){var n=r(0),i=r(3),o=r(4),a=r(11),s=r(13),l=r(30);n({target:"Reflect",stat:!0},{get:function t(e,r){var n,u,c=arguments.length<3?e:arguments[2];return o(e)===c?e[r]:(n=s.f(e,r))?a(n,"value")?n.value:void 0===n.get?void 0:n.get.call(c):i(u=l(e))?t(u,r,c):void 0}})},function(t,e,r){var n=r(0),i=r(5),o=r(4),a=r(13);n({target:"Reflect",stat:!0,sham:!i},{getOwnPropertyDescriptor:function(t,e){return a.f(o(t),e)}})},function(t,e,r){var n=r(0),i=r(4),o=r(30);n({target:"Reflect",stat:!0,sham:!r(95)},{getPrototypeOf:function(t){return o(i(t))}})},function(t,e,r){r(0)({target:"Reflect",stat:!0},{has:function(t,e){return e in t}})},function(t,e,r){var n=r(0),i=r(4),o=Object.isExtensible;n({target:"Reflect",stat:!0},{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,e,r){r(0)({target:"Reflect",stat:!0},{ownKeys:r(88)})},function(t,e,r){var n=r(0),i=r(26),o=r(4);n({target:"Reflect",stat:!0,sham:!r(59)},{preventExtensions:function(t){o(t);try{var e=i("Object","preventExtensions");return e&&e(t),!0}catch(t){return!1}}})},function(t,e,r){var n=r(0),i=r(4),o=r(3),a=r(11),s=r(1),l=r(9),u=r(13),c=r(30),f=r(36);n({target:"Reflect",stat:!0,forced:s((function(){var t=l.f({},"a",{configurable:!0});return!1!==Reflect.set(c(t),"a",1,t)}))},{set:function t(e,r,n){var s,h,d=arguments.length<4?e:arguments[3],p=u.f(i(e),r);if(!p){if(o(h=c(e)))return t(h,r,n,d);p=f(0)}if(a(p,"value")){if(!1===p.writable||!o(d))return!1;if(s=u.f(d,r)){if(s.get||s.set||!1===s.writable)return!1;s.value=n,l.f(d,r,s)}else l.f(d,r,f(0,n));return!0}return void 0!==p.set&&(p.set.call(d,n),!0)}})},function(t,e,r){var n=r(0),i=r(4),o=r(126),a=r(45);a&&n({target:"Reflect",stat:!0},{setPrototypeOf:function(t,e){i(t),o(e);try{return a(t,e),!0}catch(t){return!1}}})},function(t,e,r){r(372),r(373),r(374),r(375),r(376),r(377),r(380),r(153);var n=r(54);t.exports=n},function(t,e,r){var n=r(2),i=r(151),o=r(131),a=r(17);for(var s in i){var l=n[s],u=l&&l.prototype;if(u&&u.forEach!==o)try{a(u,"forEach",o)}catch(t){u.forEach=o}}},function(t,e,r){var n=r(2),i=r(151),o=r(71),a=r(17),s=r(6),l=s("iterator"),u=s("toStringTag"),c=o.values;for(var f in i){var h=n[f],d=h&&h.prototype;if(d){if(d[l]!==c)try{a(d,l,c)}catch(t){d[l]=c}if(d[u]||a(d,u,f),i[f])for(var p in o)if(d[p]!==o[p])try{a(d,p,o[p])}catch(t){d[p]=o[p]}}}},function(t,e,r){var n=r(0),i=r(2),o=r(107);n({global:!0,bind:!0,enumerable:!0,forced:!i.setImmediate||!i.clearImmediate},{setImmediate:o.set,clearImmediate:o.clear})},function(t,e,r){var n=r(0),i=r(2),o=r(143),a=r(25),s=i.process,l="process"==a(s);n({global:!0,enumerable:!0,noTargetGet:!0},{queueMicrotask:function(t){var e=l&&s.domain;o(e?e.bind(t):t)}})},function(t,e,r){var n=r(0),i=r(2),o=r(69),a=[].slice,s=function(t){return function(e,r){var n=arguments.length>2,i=n?a.call(arguments,2):void 0;return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,i)}:e,r)}};n({global:!0,bind:!0,forced:/MSIE .\./.test(o)},{setTimeout:s(i.setTimeout),setInterval:s(i.setInterval)})},function(t,e,r){"use strict";r(135);var n,i=r(0),o=r(5),a=r(152),s=r(2),l=r(92),u=r(14),c=r(40),f=r(11),h=r(122),d=r(128),p=r(72).codeAt,g=r(378),v=r(31),m=r(153),y=r(18),b=s.URL,x=m.URLSearchParams,w=m.getState,S=y.set,C=y.getterFor("URL"),M=Math.floor,k=Math.pow,T=/[A-Za-z]/,A=/[\d+-.A-Za-z]/,O=/\d/,L=/^(0x|0X)/,E=/^[0-7]+$/,N=/^\d+$/,R=/^[\dA-Fa-f]+$/,I=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,_=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,P=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,D=/[\u0009\u000A\u000D]/g,F=function(t,e){var r,n,i;if("["==e.charAt(0)){if("]"!=e.charAt(e.length-1))return"Invalid host";if(!(r=H(e.slice(1,-1))))return"Invalid host";t.host=r}else if(Y(t)){if(e=g(e),I.test(e))return"Invalid host";if(null===(r=W(e)))return"Invalid host";t.host=r}else{if(_.test(e))return"Invalid host";for(r="",n=d(e),i=0;i<n.length;i++)r+=G(n[i],U);t.host=r}},W=function(t){var e,r,n,i,o,a,s,l=t.split(".");if(l.length&&""==l[l.length-1]&&l.pop(),(e=l.length)>4)return t;for(r=[],n=0;n<e;n++){if(""==(i=l[n]))return t;if(o=10,i.length>1&&"0"==i.charAt(0)&&(o=L.test(i)?16:8,i=i.slice(8==o?1:2)),""===i)a=0;else{if(!(10==o?N:8==o?E:R).test(i))return t;a=parseInt(i,o)}r.push(a)}for(n=0;n<e;n++)if(a=r[n],n==e-1){if(a>=k(256,5-e))return null}else if(a>255)return null;for(s=r.pop(),n=0;n<r.length;n++)s+=r[n]*k(256,3-n);return s},H=function(t){var e,r,n,i,o,a,s,l=[0,0,0,0,0,0,0,0],u=0,c=null,f=0,h=function(){return t.charAt(f)};if(":"==h()){if(":"!=t.charAt(1))return;f+=2,c=++u}for(;h();){if(8==u)return;if(":"!=h()){for(e=r=0;r<4&&R.test(h());)e=16*e+parseInt(h(),16),f++,r++;if("."==h()){if(0==r)return;if(f-=r,u>6)return;for(n=0;h();){if(i=null,n>0){if(!("."==h()&&n<4))return;f++}if(!O.test(h()))return;for(;O.test(h());){if(o=parseInt(h(),10),null===i)i=o;else{if(0==i)return;i=10*i+o}if(i>255)return;f++}l[u]=256*l[u]+i,2!=++n&&4!=n||u++}if(4!=n)return;break}if(":"==h()){if(f++,!h())return}else if(h())return;l[u++]=e}else{if(null!==c)return;f++,c=++u}}if(null!==c)for(a=u-c,u=7;0!=u&&a>0;)s=l[u],l[u--]=l[c+a-1],l[c+--a]=s;else if(8!=u)return;return l},z=function(t){var e,r,n,i;if("number"==typeof t){for(e=[],r=0;r<4;r++)e.unshift(t%256),t=M(t/256);return e.join(".")}if("object"==typeof t){for(e="",n=function(t){for(var e=null,r=1,n=null,i=0,o=0;o<8;o++)0!==t[o]?(i>r&&(e=n,r=i),n=null,i=0):(null===n&&(n=o),++i);return i>r&&(e=n,r=i),e}(t),r=0;r<8;r++)i&&0===t[r]||(i&&(i=!1),n===r?(e+=r?":":"::",i=!0):(e+=t[r].toString(16),r<7&&(e+=":")));return"["+e+"]"}return t},U={},j=h({},U,{" ":1,'"':1,"<":1,">":1,"`":1}),B=h({},j,{"#":1,"?":1,"{":1,"}":1}),V=h({},B,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),G=function(t,e){var r=p(t,0);return r>32&&r<127&&!f(e,t)?t:encodeURIComponent(t)},q={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Y=function(t){return f(q,t.scheme)},X=function(t){return""!=t.username||""!=t.password},Z=function(t){return!t.host||t.cannotBeABaseURL||"file"==t.scheme},K=function(t,e){var r;return 2==t.length&&T.test(t.charAt(0))&&(":"==(r=t.charAt(1))||!e&&"|"==r)},$=function(t){var e;return t.length>1&&K(t.slice(0,2))&&(2==t.length||"/"===(e=t.charAt(2))||"\\"===e||"?"===e||"#"===e)},Q=function(t){var e=t.path,r=e.length;!r||"file"==t.scheme&&1==r&&K(e[0],!0)||e.pop()},J=function(t){return"."===t||"%2e"===t.toLowerCase()},tt={},et={},rt={},nt={},it={},ot={},at={},st={},lt={},ut={},ct={},ft={},ht={},dt={},pt={},gt={},vt={},mt={},yt={},bt={},xt={},wt=function(t,e,r,i){var o,a,s,l,u,c=r||tt,h=0,p="",g=!1,v=!1,m=!1;for(r||(t.scheme="",t.username="",t.password="",t.host=null,t.port=null,t.path=[],t.query=null,t.fragment=null,t.cannotBeABaseURL=!1,e=e.replace(P,"")),e=e.replace(D,""),o=d(e);h<=o.length;){switch(a=o[h],c){case tt:if(!a||!T.test(a)){if(r)return"Invalid scheme";c=rt;continue}p+=a.toLowerCase(),c=et;break;case et:if(a&&(A.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(r)return"Invalid scheme";p="",c=rt,h=0;continue}if(r&&(Y(t)!=f(q,p)||"file"==p&&(X(t)||null!==t.port)||"file"==t.scheme&&!t.host))return;if(t.scheme=p,r)return void(Y(t)&&q[t.scheme]==t.port&&(t.port=null));p="","file"==t.scheme?c=dt:Y(t)&&i&&i.scheme==t.scheme?c=nt:Y(t)?c=st:"/"==o[h+1]?(c=it,h++):(t.cannotBeABaseURL=!0,t.path.push(""),c=yt)}break;case rt:if(!i||i.cannotBeABaseURL&&"#"!=a)return"Invalid scheme";if(i.cannotBeABaseURL&&"#"==a){t.scheme=i.scheme,t.path=i.path.slice(),t.query=i.query,t.fragment="",t.cannotBeABaseURL=!0,c=xt;break}c="file"==i.scheme?dt:ot;continue;case nt:if("/"!=a||"/"!=o[h+1]){c=ot;continue}c=lt,h++;break;case it:if("/"==a){c=ut;break}c=mt;continue;case ot:if(t.scheme=i.scheme,a==n)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query;else if("/"==a||"\\"==a&&Y(t))c=at;else if("?"==a)t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query="",c=bt;else{if("#"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.path.pop(),c=mt;continue}t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=xt}break;case at:if(!Y(t)||"/"!=a&&"\\"!=a){if("/"!=a){t.username=i.username,t.password=i.password,t.host=i.host,t.port=i.port,c=mt;continue}c=ut}else c=lt;break;case st:if(c=lt,"/"!=a||"/"!=p.charAt(h+1))continue;h++;break;case lt:if("/"!=a&&"\\"!=a){c=ut;continue}break;case ut:if("@"==a){g&&(p="%40"+p),g=!0,s=d(p);for(var y=0;y<s.length;y++){var b=s[y];if(":"!=b||m){var x=G(b,V);m?t.password+=x:t.username+=x}else m=!0}p=""}else if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)){if(g&&""==p)return"Invalid authority";h-=d(p).length+1,p="",c=ct}else p+=a;break;case ct:case ft:if(r&&"file"==t.scheme){c=gt;continue}if(":"!=a||v){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)){if(Y(t)&&""==p)return"Invalid host";if(r&&""==p&&(X(t)||null!==t.port))return;if(l=F(t,p))return l;if(p="",c=vt,r)return;continue}"["==a?v=!0:"]"==a&&(v=!1),p+=a}else{if(""==p)return"Invalid host";if(l=F(t,p))return l;if(p="",c=ht,r==ft)return}break;case ht:if(!O.test(a)){if(a==n||"/"==a||"?"==a||"#"==a||"\\"==a&&Y(t)||r){if(""!=p){var w=parseInt(p,10);if(w>65535)return"Invalid port";t.port=Y(t)&&w===q[t.scheme]?null:w,p=""}if(r)return;c=vt;continue}return"Invalid port"}p+=a;break;case dt:if(t.scheme="file","/"==a||"\\"==a)c=pt;else{if(!i||"file"!=i.scheme){c=mt;continue}if(a==n)t.host=i.host,t.path=i.path.slice(),t.query=i.query;else if("?"==a)t.host=i.host,t.path=i.path.slice(),t.query="",c=bt;else{if("#"!=a){$(o.slice(h).join(""))||(t.host=i.host,t.path=i.path.slice(),Q(t)),c=mt;continue}t.host=i.host,t.path=i.path.slice(),t.query=i.query,t.fragment="",c=xt}}break;case pt:if("/"==a||"\\"==a){c=gt;break}i&&"file"==i.scheme&&!$(o.slice(h).join(""))&&(K(i.path[0],!0)?t.path.push(i.path[0]):t.host=i.host),c=mt;continue;case gt:if(a==n||"/"==a||"\\"==a||"?"==a||"#"==a){if(!r&&K(p))c=mt;else if(""==p){if(t.host="",r)return;c=vt}else{if(l=F(t,p))return l;if("localhost"==t.host&&(t.host=""),r)return;p="",c=vt}continue}p+=a;break;case vt:if(Y(t)){if(c=mt,"/"!=a&&"\\"!=a)continue}else if(r||"?"!=a)if(r||"#"!=a){if(a!=n&&(c=mt,"/"!=a))continue}else t.fragment="",c=xt;else t.query="",c=bt;break;case mt:if(a==n||"/"==a||"\\"==a&&Y(t)||!r&&("?"==a||"#"==a)){if(".."===(u=(u=p).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(Q(t),"/"==a||"\\"==a&&Y(t)||t.path.push("")):J(p)?"/"==a||"\\"==a&&Y(t)||t.path.push(""):("file"==t.scheme&&!t.path.length&&K(p)&&(t.host&&(t.host=""),p=p.charAt(0)+":"),t.path.push(p)),p="","file"==t.scheme&&(a==n||"?"==a||"#"==a))for(;t.path.length>1&&""===t.path[0];)t.path.shift();"?"==a?(t.query="",c=bt):"#"==a&&(t.fragment="",c=xt)}else p+=G(a,B);break;case yt:"?"==a?(t.query="",c=bt):"#"==a?(t.fragment="",c=xt):a!=n&&(t.path[0]+=G(a,U));break;case bt:r||"#"!=a?a!=n&&("'"==a&&Y(t)?t.query+="%27":t.query+="#"==a?"%23":G(a,U)):(t.fragment="",c=xt);break;case xt:a!=n&&(t.fragment+=G(a,j))}h++}},St=function(t){var e,r,n=c(this,St,"URL"),i=arguments.length>1?arguments[1]:void 0,a=String(t),s=S(n,{type:"URL"});if(void 0!==i)if(i instanceof St)e=C(i);else if(r=wt(e={},String(i)))throw TypeError(r);if(r=wt(s,a,null,e))throw TypeError(r);var l=s.searchParams=new x,u=w(l);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(l)||null},o||(n.href=Mt.call(n),n.origin=kt.call(n),n.protocol=Tt.call(n),n.username=At.call(n),n.password=Ot.call(n),n.host=Lt.call(n),n.hostname=Et.call(n),n.port=Nt.call(n),n.pathname=Rt.call(n),n.search=It.call(n),n.searchParams=_t.call(n),n.hash=Pt.call(n))},Ct=St.prototype,Mt=function(){var t=C(this),e=t.scheme,r=t.username,n=t.password,i=t.host,o=t.port,a=t.path,s=t.query,l=t.fragment,u=e+":";return null!==i?(u+="//",X(t)&&(u+=r+(n?":"+n:"")+"@"),u+=z(i),null!==o&&(u+=":"+o)):"file"==e&&(u+="//"),u+=t.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==l&&(u+="#"+l),u},kt=function(){var t=C(this),e=t.scheme,r=t.port;if("blob"==e)try{return new URL(e.path[0]).origin}catch(t){return"null"}return"file"!=e&&Y(t)?e+"://"+z(t.host)+(null!==r?":"+r:""):"null"},Tt=function(){return C(this).scheme+":"},At=function(){return C(this).username},Ot=function(){return C(this).password},Lt=function(){var t=C(this),e=t.host,r=t.port;return null===e?"":null===r?z(e):z(e)+":"+r},Et=function(){var t=C(this).host;return null===t?"":z(t)},Nt=function(){var t=C(this).port;return null===t?"":String(t)},Rt=function(){var t=C(this),e=t.path;return t.cannotBeABaseURL?e[0]:e.length?"/"+e.join("/"):""},It=function(){var t=C(this).query;return t?"?"+t:""},_t=function(){return C(this).searchParams},Pt=function(){var t=C(this).fragment;return t?"#"+t:""},Dt=function(t,e){return{get:t,set:e,configurable:!0,enumerable:!0}};if(o&&l(Ct,{href:Dt(Mt,(function(t){var e=C(this),r=String(t),n=wt(e,r);if(n)throw TypeError(n);w(e.searchParams).updateSearchParams(e.query)})),origin:Dt(kt),protocol:Dt(Tt,(function(t){var e=C(this);wt(e,String(t)+":",tt)})),username:Dt(At,(function(t){var e=C(this),r=d(String(t));if(!Z(e)){e.username="";for(var n=0;n<r.length;n++)e.username+=G(r[n],V)}})),password:Dt(Ot,(function(t){var e=C(this),r=d(String(t));if(!Z(e)){e.password="";for(var n=0;n<r.length;n++)e.password+=G(r[n],V)}})),host:Dt(Lt,(function(t){var e=C(this);e.cannotBeABaseURL||wt(e,String(t),ct)})),hostname:Dt(Et,(function(t){var e=C(this);e.cannotBeABaseURL||wt(e,String(t),ft)})),port:Dt(Nt,(function(t){var e=C(this);Z(e)||(""==(t=String(t))?e.port=null:wt(e,t,ht))})),pathname:Dt(Rt,(function(t){var e=C(this);e.cannotBeABaseURL||(e.path=[],wt(e,t+"",vt))})),search:Dt(It,(function(t){var e=C(this);""==(t=String(t))?e.query=null:("?"==t.charAt(0)&&(t=t.slice(1)),e.query="",wt(e,t,bt)),w(e.searchParams).updateSearchParams(e.query)})),searchParams:Dt(_t),hash:Dt(Pt,(function(t){var e=C(this);""!=(t=String(t))?("#"==t.charAt(0)&&(t=t.slice(1)),e.fragment="",wt(e,t,xt)):e.fragment=null}))}),u(Ct,"toJSON",(function(){return Mt.call(this)}),{enumerable:!0}),u(Ct,"toString",(function(){return Mt.call(this)}),{enumerable:!0}),b){var Ft=b.createObjectURL,Wt=b.revokeObjectURL;Ft&&u(St,"createObjectURL",(function(t){return Ft.apply(b,arguments)})),Wt&&u(St,"revokeObjectURL",(function(t){return Wt.apply(b,arguments)}))}v(St,"URL"),i({global:!0,forced:!a,sham:!o},{URL:St})},function(t,e,r){"use strict";var n=/[^\0-\u007E]/,i=/[.\u3002\uFF0E\uFF61]/g,o="Overflow: input needs wider integers to process",a=Math.floor,s=String.fromCharCode,l=function(t){return t+22+75*(t<26)},u=function(t,e,r){var n=0;for(t=r?a(t/700):t>>1,t+=a(t/e);t>455;n+=36)t=a(t/35);return a(n+36*t/(t+38))},c=function(t){var e,r,n=[],i=(t=function(t){for(var e=[],r=0,n=t.length;r<n;){var i=t.charCodeAt(r++);if(i>=55296&&i<=56319&&r<n){var o=t.charCodeAt(r++);56320==(64512&o)?e.push(((1023&i)<<10)+(1023&o)+65536):(e.push(i),r--)}else e.push(i)}return e}(t)).length,c=128,f=0,h=72;for(e=0;e<t.length;e++)(r=t[e])<128&&n.push(s(r));var d=n.length,p=d;for(d&&n.push("-");p<i;){var g=2147483647;for(e=0;e<t.length;e++)(r=t[e])>=c&&r<g&&(g=r);var v=p+1;if(g-c>a((2147483647-f)/v))throw RangeError(o);for(f+=(g-c)*v,c=g,e=0;e<t.length;e++){if((r=t[e])<c&&++f>2147483647)throw RangeError(o);if(r==c){for(var m=f,y=36;;y+=36){var b=y<=h?1:y>=h+26?26:y-h;if(m<b)break;var x=m-b,w=36-b;n.push(s(l(b+x%w))),m=a(x/w)}n.push(s(l(m))),h=u(f,v,p==d),f=0,++p}}++f,++c}return n.join("")};t.exports=function(t){var e,r,o=[],a=t.toLowerCase().replace(i,".").split(".");for(e=0;e<a.length;e++)r=a[e],o.push(n.test(r)?"xn--"+c(r):r);return o.join(".")}},function(t,e,r){var n=r(4),i=r(61);t.exports=function(t){var e=i(t);if("function"!=typeof e)throw TypeError(String(t)+" is not iterable");return n(e.call(t))}},function(t,e,r){"use strict";r(0)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},function(t,e,r){var n=r(382),i=r(383);"string"==typeof(i=i.__esModule?i.default:i)&&(i=[[t.i,i,""]]);var o={insert:"head",singleton:!1};n(i,o);t.exports=i.locals||{}},function(t,e,r){"use strict";var n,i=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},o=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),a=[];function s(t){for(var e=-1,r=0;r<a.length;r++)if(a[r].identifier===t){e=r;break}return e}function l(t,e){for(var r={},n=[],i=0;i<t.length;i++){var o=t[i],l=e.base?o[0]+e.base:o[0],u=r[l]||0,c="".concat(l," ").concat(u);r[l]=u+1;var f=s(c),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==f?(a[f].references++,a[f].updater(h)):a.push({identifier:c,updater:v(h,e),references:1}),n.push(c)}return n}function u(t){var e=document.createElement("style"),n=t.attributes||{};if(void 0===n.nonce){var i=r.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(t){e.setAttribute(t,n[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,f=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function h(t,e,r,n){var i=r?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(t.styleSheet)t.styleSheet.cssText=f(e,i);else{var o=document.createTextNode(i),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(o,a[e]):t.appendChild(o)}}function d(t,e,r){var n=r.css,i=r.media,o=r.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),o&&btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}var p=null,g=0;function v(t,e){var r,n,i;if(e.singleton){var o=g++;r=p||(p=u(e)),n=h.bind(null,r,o,!1),i=h.bind(null,r,o,!0)}else r=u(e),n=d.bind(null,r,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)};return n(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;n(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var r=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var n=0;n<r.length;n++){var i=s(r[n]);a[i].references--}for(var o=l(t,e),u=0;u<r.length;u++){var c=s(r[u]);0===a[c].references&&(a[c].updater(),a.splice(c,1))}r=o}}}},function(t,e,r){(e=r(384)(!1)).push([t.i,"/* BASICS */\n\n.CodeMirror {\n  /* Set height, width, borders, and global font properties here */\n  font-family: monospace;\n  height: 300px;\n  color: black;\n  direction: ltr;\n}\n\n/* PADDING */\n\n.CodeMirror-lines {\n  padding: 4px 0; /* Vertical padding around content */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n  padding: 0 4px; /* Horizontal padding of content */\n}\n\n.CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n  background-color: white; /* The little square between H and V scrollbars */\n}\n\n/* GUTTER */\n\n.CodeMirror-gutters {\n  border-right: 1px solid #ddd;\n  background-color: #f7f7f7;\n  white-space: nowrap;\n}\n.CodeMirror-linenumbers {}\n.CodeMirror-linenumber {\n  padding: 0 3px 0 5px;\n  min-width: 20px;\n  text-align: right;\n  color: #999;\n  white-space: nowrap;\n}\n\n.CodeMirror-guttermarker { color: black; }\n.CodeMirror-guttermarker-subtle { color: #999; }\n\n/* CURSOR */\n\n.CodeMirror-cursor {\n  border-left: 1px solid black;\n  border-right: none;\n  width: 0;\n}\n/* Shown when moving in bi-directional text */\n.CodeMirror div.CodeMirror-secondarycursor {\n  border-left: 1px solid silver;\n}\n.cm-fat-cursor .CodeMirror-cursor {\n  width: auto;\n  border: 0 !important;\n  background: #7e7;\n}\n.cm-fat-cursor div.CodeMirror-cursors {\n  z-index: 1;\n}\n.cm-fat-cursor-mark {\n  background-color: rgba(20, 255, 20, 0.5);\n  -webkit-animation: blink 1.06s steps(1) infinite;\n  -moz-animation: blink 1.06s steps(1) infinite;\n  animation: blink 1.06s steps(1) infinite;\n}\n.cm-animate-fat-cursor {\n  width: auto;\n  border: 0;\n  -webkit-animation: blink 1.06s steps(1) infinite;\n  -moz-animation: blink 1.06s steps(1) infinite;\n  animation: blink 1.06s steps(1) infinite;\n  background-color: #7e7;\n}\n@-moz-keyframes blink {\n  0% {}\n  50% { background-color: transparent; }\n  100% {}\n}\n@-webkit-keyframes blink {\n  0% {}\n  50% { background-color: transparent; }\n  100% {}\n}\n@keyframes blink {\n  0% {}\n  50% { background-color: transparent; }\n  100% {}\n}\n\n/* Can style cursor different in overwrite (non-insert) mode */\n.CodeMirror-overwrite .CodeMirror-cursor {}\n\n.cm-tab { display: inline-block; text-decoration: inherit; }\n\n.CodeMirror-rulers {\n  position: absolute;\n  left: 0; right: 0; top: -50px; bottom: 0;\n  overflow: hidden;\n}\n.CodeMirror-ruler {\n  border-left: 1px solid #ccc;\n  top: 0; bottom: 0;\n  position: absolute;\n}\n\n/* DEFAULT THEME */\n\n.cm-s-default .cm-header {color: blue;}\n.cm-s-default .cm-quote {color: #090;}\n.cm-negative {color: #d44;}\n.cm-positive {color: #292;}\n.cm-header, .cm-strong {font-weight: bold;}\n.cm-em {font-style: italic;}\n.cm-link {text-decoration: underline;}\n.cm-strikethrough {text-decoration: line-through;}\n\n.cm-s-default .cm-keyword {color: #708;}\n.cm-s-default .cm-atom {color: #219;}\n.cm-s-default .cm-number {color: #164;}\n.cm-s-default .cm-def {color: #00f;}\n.cm-s-default .cm-variable,\n.cm-s-default .cm-punctuation,\n.cm-s-default .cm-property,\n.cm-s-default .cm-operator {}\n.cm-s-default .cm-variable-2 {color: #05a;}\n.cm-s-default .cm-variable-3, .cm-s-default .cm-type {color: #085;}\n.cm-s-default .cm-comment {color: #a50;}\n.cm-s-default .cm-string {color: #a11;}\n.cm-s-default .cm-string-2 {color: #f50;}\n.cm-s-default .cm-meta {color: #555;}\n.cm-s-default .cm-qualifier {color: #555;}\n.cm-s-default .cm-builtin {color: #30a;}\n.cm-s-default .cm-bracket {color: #997;}\n.cm-s-default .cm-tag {color: #170;}\n.cm-s-default .cm-attribute {color: #00c;}\n.cm-s-default .cm-hr {color: #999;}\n.cm-s-default .cm-link {color: #00c;}\n\n.cm-s-default .cm-error {color: #f00;}\n.cm-invalidchar {color: #f00;}\n\n.CodeMirror-composing { border-bottom: 2px solid; }\n\n/* Default styles for common addons */\n\ndiv.CodeMirror span.CodeMirror-matchingbracket {color: #0b0;}\ndiv.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}\n.CodeMirror-matchingtag { background: rgba(255, 150, 0, .3); }\n.CodeMirror-activeline-background {background: #e8f2ff;}\n\n/* STOP */\n\n/* The rest of this file contains styles related to the mechanics of\n   the editor. You probably shouldn't touch them. */\n\n.CodeMirror {\n  position: relative;\n  overflow: hidden;\n  background: white;\n}\n\n.CodeMirror-scroll {\n  overflow: scroll !important; /* Things will break if this is overridden */\n  /* 50px is the magic margin used to hide the element's real scrollbars */\n  /* See overflow: hidden in .CodeMirror */\n  margin-bottom: -50px; margin-right: -50px;\n  padding-bottom: 50px;\n  height: 100%;\n  outline: none; /* Prevent dragging from highlighting the element */\n  position: relative;\n}\n.CodeMirror-sizer {\n  position: relative;\n  border-right: 50px solid transparent;\n}\n\n/* The fake, visible scrollbars. Used to force redraw during scrolling\n   before actual scrolling happens, thus preventing shaking and\n   flickering artifacts. */\n.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler, .CodeMirror-gutter-filler {\n  position: absolute;\n  z-index: 6;\n  display: none;\n}\n.CodeMirror-vscrollbar {\n  right: 0; top: 0;\n  overflow-x: hidden;\n  overflow-y: scroll;\n}\n.CodeMirror-hscrollbar {\n  bottom: 0; left: 0;\n  overflow-y: hidden;\n  overflow-x: scroll;\n}\n.CodeMirror-scrollbar-filler {\n  right: 0; bottom: 0;\n}\n.CodeMirror-gutter-filler {\n  left: 0; bottom: 0;\n}\n\n.CodeMirror-gutters {\n  position: absolute; left: 0; top: 0;\n  min-height: 100%;\n  z-index: 3;\n}\n.CodeMirror-gutter {\n  white-space: normal;\n  height: 100%;\n  display: inline-block;\n  vertical-align: top;\n  margin-bottom: -50px;\n}\n.CodeMirror-gutter-wrapper {\n  position: absolute;\n  z-index: 4;\n  background: none !important;\n  border: none !important;\n}\n.CodeMirror-gutter-background {\n  position: absolute;\n  top: 0; bottom: 0;\n  z-index: 4;\n}\n.CodeMirror-gutter-elt {\n  position: absolute;\n  cursor: default;\n  z-index: 4;\n}\n.CodeMirror-gutter-wrapper ::selection { background-color: transparent }\n.CodeMirror-gutter-wrapper ::-moz-selection { background-color: transparent }\n\n.CodeMirror-lines {\n  cursor: text;\n  min-height: 1px; /* prevents collapsing before first draw */\n}\n.CodeMirror pre.CodeMirror-line,\n.CodeMirror pre.CodeMirror-line-like {\n  /* Reset some styles that the rest of the page might have set */\n  -moz-border-radius: 0; -webkit-border-radius: 0; border-radius: 0;\n  border-width: 0;\n  background: transparent;\n  font-family: inherit;\n  font-size: inherit;\n  margin: 0;\n  white-space: pre;\n  word-wrap: normal;\n  line-height: inherit;\n  color: inherit;\n  z-index: 2;\n  position: relative;\n  overflow: visible;\n  -webkit-tap-highlight-color: transparent;\n  -webkit-font-variant-ligatures: contextual;\n  font-variant-ligatures: contextual;\n}\n.CodeMirror-wrap pre.CodeMirror-line,\n.CodeMirror-wrap pre.CodeMirror-line-like {\n  word-wrap: break-word;\n  white-space: pre-wrap;\n  word-break: normal;\n}\n\n.CodeMirror-linebackground {\n  position: absolute;\n  left: 0; right: 0; top: 0; bottom: 0;\n  z-index: 0;\n}\n\n.CodeMirror-linewidget {\n  position: relative;\n  z-index: 2;\n  padding: 0.1px; /* Force widget margins to stay inside of the container */\n}\n\n.CodeMirror-widget {}\n\n.CodeMirror-rtl pre { direction: rtl; }\n\n.CodeMirror-code {\n  outline: none;\n}\n\n/* Force content-box sizing for the elements where we expect it */\n.CodeMirror-scroll,\n.CodeMirror-sizer,\n.CodeMirror-gutter,\n.CodeMirror-gutters,\n.CodeMirror-linenumber {\n  -moz-box-sizing: content-box;\n  box-sizing: content-box;\n}\n\n.CodeMirror-measure {\n  position: absolute;\n  width: 100%;\n  height: 0;\n  overflow: hidden;\n  visibility: hidden;\n}\n\n.CodeMirror-cursor {\n  position: absolute;\n  pointer-events: none;\n}\n.CodeMirror-measure pre { position: static; }\n\ndiv.CodeMirror-cursors {\n  visibility: hidden;\n  position: relative;\n  z-index: 3;\n}\ndiv.CodeMirror-dragcursors {\n  visibility: visible;\n}\n\n.CodeMirror-focused div.CodeMirror-cursors {\n  visibility: visible;\n}\n\n.CodeMirror-selected { background: #d9d9d9; }\n.CodeMirror-focused .CodeMirror-selected { background: #d7d4f0; }\n.CodeMirror-crosshair { cursor: crosshair; }\n.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection { background: #d7d4f0; }\n.CodeMirror-line::-moz-selection, .CodeMirror-line > span::-moz-selection, .CodeMirror-line > span > span::-moz-selection { background: #d7d4f0; }\n\n.cm-searching {\n  background-color: #ffa;\n  background-color: rgba(255, 255, 0, .4);\n}\n\n/* Used to force a border model for a node */\n.cm-force-border { padding-right: .1px; }\n\n@media print {\n  /* Hide the cursor when printing */\n  .CodeMirror div.CodeMirror-cursors {\n    visibility: hidden;\n  }\n}\n\n/* See issue #2901 */\n.cm-tab-wrap-hack:after { content: ''; }\n\n/* Help users use markselection to safely style text background */\nspan.CodeMirror-selectedtext { background: none; }\n",""]),t.exports=e},function(t,e,r){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",n=t[3];if(!n)return r;if(e&&"function"==typeof btoa){var i=(a=n,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(l," */")),o=n.sources.map((function(t){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(t," */")}));return[r].concat(o).concat([i]).join("\n")}var a,s,l;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,n){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(n)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);n&&i[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},function(t,e,r){!function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},r={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(n,i){var o,a,s=n.indentUnit,l={},u=i.htmlMode?e:r;for(var c in u)l[c]=u[c];for(var c in i)l[c]=i[c];function f(t,e){function r(r){return e.tokenize=r,r(t,e)}var n=t.next();return"<"==n?t.eat("!")?t.eat("[")?t.match("CDATA[")?r(d("atom","]]>")):null:t.match("--")?r(d("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),r(function t(e){return function(r,n){for(var i;null!=(i=r.next());){if("<"==i)return n.tokenize=t(e+1),n.tokenize(r,n);if(">"==i){if(1==e){n.tokenize=f;break}return n.tokenize=t(e-1),n.tokenize(r,n)}}return"meta"}}(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=d("meta","?>"),"meta"):(o=t.eat("/")?"closeTag":"openTag",e.tokenize=h,"tag bracket"):"&"==n?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function h(t,e){var r,n,i=t.next();if(">"==i||"/"==i&&t.eat(">"))return e.tokenize=f,o=">"==i?"endTag":"selfcloseTag","tag bracket";if("="==i)return o="equals",null;if("<"==i){e.tokenize=f,e.state=m,e.tagName=e.tagStart=null;var a=e.tokenize(t,e);return a?a+" tag error":"tag error"}return/[\'\"]/.test(i)?(e.tokenize=(r=i,(n=function(t,e){for(;!t.eol();)if(t.next()==r){e.tokenize=h;break}return"string"}).isInAttribute=!0,n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function d(t,e){return function(r,n){for(;!r.eol();){if(r.match(e)){n.tokenize=f;break}r.next()}return t}}function p(t,e,r){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=r,(l.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function g(t){t.context&&(t.context=t.context.prev)}function v(t,e){for(var r;;){if(!t.context)return;if(r=t.context.tagName,!l.contextGrabbers.hasOwnProperty(r)||!l.contextGrabbers[r].hasOwnProperty(e))return;g(t)}}function m(t,e,r){return"openTag"==t?(r.tagStart=e.column(),y):"closeTag"==t?b:m}function y(t,e,r){return"word"==t?(r.tagName=e.current(),a="tag",S):l.allowMissingTagName&&"endTag"==t?(a="tag bracket",S(t,0,r)):(a="error",y)}function b(t,e,r){if("word"==t){var n=e.current();return r.context&&r.context.tagName!=n&&l.implicitlyClosed.hasOwnProperty(r.context.tagName)&&g(r),r.context&&r.context.tagName==n||!1===l.matchClosing?(a="tag",x):(a="tag error",w)}return l.allowMissingTagName&&"endTag"==t?(a="tag bracket",x(t,0,r)):(a="error",w)}function x(t,e,r){return"endTag"!=t?(a="error",x):(g(r),m)}function w(t,e,r){return a="error",x(t,0,r)}function S(t,e,r){if("word"==t)return a="attribute",C;if("endTag"==t||"selfcloseTag"==t){var n=r.tagName,i=r.tagStart;return r.tagName=r.tagStart=null,"selfcloseTag"==t||l.autoSelfClosers.hasOwnProperty(n)?v(r,n):(v(r,n),r.context=new p(r,n,i==r.indented)),m}return a="error",S}function C(t,e,r){return"equals"==t?M:(l.allowMissing||(a="error"),S(t,0,r))}function M(t,e,r){return"string"==t?k:"word"==t&&l.allowUnquoted?(a="string",S):(a="error",S(t,0,r))}function k(t,e,r){return"string"==t?k:S(t,0,r)}return f.isInText=!0,{startState:function(t){var e={tokenize:f,state:m,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;o=null;var r=e.tokenize(t,e);return(r||o)&&"comment"!=r&&(a=null,e.state=e.state(o||r,t,e),a&&(r="error"==a?r+" error":a)),r},indent:function(e,r,n){var i=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+s;if(i&&i.noIndent)return t.Pass;if(e.tokenize!=h&&e.tokenize!=f)return n?n.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==l.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+s*(l.multilineTagIndentFactor||1);if(l.alignCDATA&&/<!\[CDATA\[/.test(r))return 0;var o=r&&/^<(\/)?([\w_:\.-]*)/.exec(r);if(o&&o[1])for(;i;){if(i.tagName==o[2]){i=i.prev;break}if(!l.implicitlyClosed.hasOwnProperty(i.tagName))break;i=i.prev}else if(o)for(;i;){var a=l.contextGrabbers[i.tagName];if(!a||!a.hasOwnProperty(o[2]))break;i=i.prev}for(;i&&i.prev&&!i.startOfLine;)i=i.prev;return i?i.indent+s:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:l.htmlMode?"html":"xml",helperType:l.htmlMode?"html":"xml",skipAttribute:function(t){t.state==M&&(t.state=S)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],r=t.context;r;r=r.prev)r.tagName&&e.push(r.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}(r(111))},function(t,e,r){"use strict";t.exports=r(387)},function(t,e,r){"use strict";var n=r(388),i=r(393),o={};o.conversions=n;var a=o.properties={};a.lineHeight=a.opacity=a.scale=a.scale3d=a.scaleX=a.scaleY=a.scaleZ={defaultUnit:"",defaultValue:1},a.rotate=a.rotate3d=a.rotateX=a.rotateY=a.rotateZ=a.skew=a.skewX=a.skewY={defaultUnit:"deg"},a.resolution={defaultUnit:"dpi",defaultValue:96},o.convert=function(t,e,r,n){var i=o.parse(e,n);return"_default"===t&&(t=o.getDefaultUnit(n)),t===i.unit?i.value:o.processConversion(i.unit,t,i.value,r,n)},o.parse=function(t,e){var r,n={};return i(t)?(n.value=t,n.unit=e?o.getDefaultUnit(e):""):null!==(r=t.toString().trim().match(/^(-?[\d+\.\-]+)([a-z]+|%)$/i))?(n.value=r[1],n.unit=r[2]):(n.unit=t,n.value=e?o.getDefaultValue(e):0),n.value=parseFloat(n.value),n},o.getDefaultValue=function(t){return void 0!==a[t]&&void 0!==a[t].defaultValue?a[t].defaultValue:0},o.getDefaultUnit=function(t){return void 0!==a[t]&&void 0!==a[t].defaultUnit?a[t].defaultUnit:"px"},o.processConversion=function(t,e,r,n,i){var a,s=o.getConversionType(t);return"function"==typeof s[t][e]?a=s[t][e]:(a=s[s._default][e],r=s[t][s._default](r,n,i)),a(r,n,i)},o.getConversionType=function(t){var e,r=null;for(e in n)if(n.hasOwnProperty(e)&&void 0!==n[e][t]){r=n[e];break}return r},t.exports=o},function(t,e,r){"use strict";t.exports={angle:r(389),length:r(390),resolution:r(392)}},function(t,e,r){"use strict";var n={_default:"deg"};n.deg={grad:function(t){return t/.9},rad:function(t){return t*(Math.PI/180)},turn:function(t){return t/360}},n.grad={deg:function(t){return.9*t}},n.rad={deg:function(t){return t/(Math.PI/180)}},n.turn={deg:function(t){return 360*t}},t.exports=n},function(t,e,r){"use strict";var n=r(154),i=r(391),o={_default:"px"};o[""]={px:function(t,e){return parseFloat(getComputedStyle(e,"").fontSize)*t}},o["%"]={px:function(t,e,r){return t*n.getRelativeElementDimension(e,r)/100}},o.ch={px:function(t,e){return t*n.ifZeroThenOne(n.getCreatedElementWidth(e,null,"0"))}},o.cm={px:function(t){return t/2.54*n.ifZeroThenOne(n.DPI)}},o.em={px:function(t,e){return t*n.getElementFontSize(e)}},o.ex={px:function(t,e){return t*n.getCreatedElementHeight(e,null,"x")}},o.in={px:function(t){return t*n.DPI}},o.mm={px:function(t){return t/2.54*n.ifZeroThenOne(n.DPI)/10}},o.pc={px:function(t){return t*(n.DPI/72*12)}},o.pt={px:function(t){return t*n.DPI/72}},o.px={"":function(t,e){return t/parseFloat(getComputedStyle(e,"").fontSize)},"%":function(t,e,r){return t/n.ifZeroThenOne(n.getRelativeElementDimension(e,r))*100},ch:function(t,e){return t/n.ifZeroThenOne(n.getCreatedElementWidth(e,null,"0"))},cm:function(t){return t/n.ifZeroThenOne(n.DPI)*2.54},em:function(t,e){return t/n.ifZeroThenOne(n.getElementFontSize(e))},ex:function(t,e){return t/n.ifZeroThenOne(n.getCreatedElementHeight(e,null,"x"))},in:function(t){return t/n.ifZeroThenOne(n.DPI)},mm:function(t){return 2.54*t/n.ifZeroThenOne(n.DPI)*10},pc:function(t){return t/(n.DPI/72*12)},pt:function(t){return 72*t/n.DPI},rem:function(t){return t/n.ifZeroThenOne(n.getElementFontSize(document.documentElement))},vh:function(t){return t/n.ifZeroThenOne(i.height()/100)},vmax:function(t){return t/n.ifZeroThenOne(i.max()/100)},vmin:function(t){return t/n.ifZeroThenOne(i.min()/100)},vw:function(t){return t/n.ifZeroThenOne(i.width()/100)}},o.rem={px:function(t){return t*n.getElementFontSize(document.documentElement)}},o.vh={px:function(t){return t*(i.height()/100)}},o.vmax={px:function(t){return t*(i.max()/100)}},o.vmin={px:function(t){return t*(i.min()/100)}},o.vw={px:function(t){return t*(i.width()/100)}},t.exports=o},function(t,e,r){"use strict";var n={},i=-1,o=-1;n.width=function(){return i},n.height=function(){return o},n.max=function(){return Math.max(i,o)},n.min=function(){return Math.min(i,o)},n.setDimensions=function(){"undefined"!=typeof document&&(i=document.documentElement.clientWidth,o=document.documentElement.clientHeight)},n.onWindowResize=function(){n.setDimensions()},"undefined"!=typeof window&&(window.addEventListener("resize",n.onWindowResize,!1),window.addEventListener("orientationchange",n.onWindowResize,!1),n.setDimensions()),t.exports=n},function(t,e,r){"use strict";var n=r(154),i={_default:"dpi"};i.dpi={dpcm:function(t){return t/2.54},dppx:function(t){return t/n.DPI}},i.dpcm={dpi:function(t){return 2.54*t}},i.dppx={dpi:function(t){return t*n.DPI}},t.exports=i},function(t,e,r){var n=function(t){return t="string"==typeof t?t.replace(/,/g,""):t,!isNaN(parseFloat(t))&&isFinite(t)&&"[object array]"!==Object.prototype.toString.call(t).toLowerCase()};t.exports&&(e=t.exports=n),e.isNumeric=n}]]);