You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
652 KiB
2 lines
652 KiB
/*! For license information please see 85.795b443b.chunk.js.LICENSE.txt */
|
|
(this.webpackJsonph5=this.webpackJsonph5||[]).push([[85,7,10,31],{1105:function(e,t,n){},1106:function(e,t,n){},1107:function(e,t,n){},1108:function(e,t,n){},1109:function(e,t,n){},1110:function(e,t,n){"use strict";(function(e){var r=n(1111),o=n(1112),i=n(1113);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"!=typeof e)return u(this,e,t,n);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t),e}(e,t,n,r):"string"==typeof t?function(e,t,n){if("string"==typeof n&&""!==n||(n="utf8"),!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),o=(e=s(e,r)).write(t,n);return o!==r&&(e=e.slice(0,o)),e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):h(e,t);if("Buffer"===t.type&&i(t.data))return h(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return B(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return L(e).length;default:if(r)return B(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):2147483647<n?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s/=a=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(s<n+l&&(n=s-l),i=n;0<=i;i--){for(var f=!0,h=0;h<l;h++)if(u(e,i+h)!==u(t,h)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o);var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");i/2<r&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function b(e,t,n,r){return D(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return D(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function x(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function _(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,u=e[o],c=null,f=239<u?4:223<u?3:191<u?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&127<(l=(31&u)<<6|63&i)&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&2047<(l=(15&u)<<12|(63&i)<<6|63&a)&&(l<55296||57343<l)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&65535<(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)&&l<1114112&&(c=l)}null===c?(c=65533,f=1):65535<c&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);for(var n="",r=0;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=E));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return r=null,i=t,a=n,c(o=e),o<=0||void 0===i?s(r,o):"string"==typeof a?s(r,o).fill(i,a):s(r,o).fill(i);var r,o,i,a},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(n=t=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=d,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?_(this,0,e):function(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e=e||"utf8";;)switch(e){case"hex":return S(this,t,n);case"utf8":case"utf-8":return _(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(o<=r&&n<=t)return 0;if(o<=r)return-1;if(n<=t)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){i=u[f],a=c[f];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||o<n)&&(n=o),0<e.length&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r=r||"utf8";for(var i,a,s,l,u=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return s=t,l=n,D(B(e,this.length-s),this,s,l);case"ascii":return b(this,e,t,n);case"latin1":case"binary":return b(this,e,t,n);case"base64":return this,i=t,a=n,D(L(e),this,i,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w(this,e,t,n);default:if(u)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),u=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function O(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function S(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;++i)o+=R(e[i]);return o}function N(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(n<e+t)throw new RangeError("Trying to access beyond buffer length")}function C(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o<t||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function q(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function M(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function j(e,t,n,r){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(e,t,n,r,i){return i||j(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function P(e,t,n,r,i){return i||j(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):r<e&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):r<t&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;0<t&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return(o*=128)<=r&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];0<r&&(o*=256);)i+=this[e+--r]*o;return(o*=128)<=i&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){e=+e,t|=0,n|=0,r||C(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;0<=--o&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);C(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;0<=--i&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||C(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return P(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return P(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t>=e.length&&(t=e.length),t=t||0,0<r&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;0<=o;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,"number"==typeof(e=e||0))for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:B(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var I=/[^+\/0-9A-Za-z-_]/g;function R(e){return e<16?"0"+e.toString(16):e.toString(16)}function B(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if(55295<(n=e.charCodeAt(a))&&n<57344){if(!o){if(56319<n){-1<(t-=3)&&i.push(239,191,189);continue}if(a+1===r){-1<(t-=3)&&i.push(239,191,189);continue}o=n;continue}if(n<56320){-1<(t-=3)&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&-1<(t-=3)&&i.push(239,191,189);if(o=null,n<128){if(--t<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function L(e){return r.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(I,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function D(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(64))},1111:function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],l=new i(function(e,t){return 3*(e+t)/4-t}(a,s)),c=0,f=0<s?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],l[c++]=t>>16&255,l[c++]=t>>8&255,l[c++]=255&t;return 2===s&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,l[c++]=255&t),1===s&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,l[c++]=t>>8&255,l[c++]=255&t),l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,s=n-o;a<s;a+=16383)i.push(c(e,a,s<a+16383?s:a+16383));return 1==o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2==o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},1112:function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,h=n?-1:1,p=e[t+f];for(f+=h,i=p&(1<<-c)-1,p>>=-c,c+=s;0<c;i=256*i+e[t+f],f+=h,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;0<c;a=256*a+e[t+f],f+=h,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,h=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),2<=(t+=1<=a+f?h/l:h*Math.pow(2,1-f))*l&&(a++,l/=2),c<=a+f?(s=0,a=c):1<=a+f?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[n+p]=255&s,p+=d,s/=256,o-=8);for(a=a<<o|s,u+=o;0<u;e[n+p]=255&a,p+=d,a/=256,u-=8);e[n+p-d]|=128*m}},1113:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},1114:function(e,t,n){var r;r=function(){return n={},e.m=t=[function(e,t,n){},function(e,t,n){"use strict";function r(e,t){this.position=void 0;var n,o="KaTeX parse error: "+e,i=t&&t.loc;if(i&&i.start<=i.end){var a=i.lexer.input;n=i.start;var s=i.end;n===a.length?o+=" at end of input: ":o+=" at position "+(n+1)+": ";var l=a.slice(n,s).replace(/[^]/g,"$&\u0332");o+=(15<n?"\u2026"+a.slice(n-15,n):a.slice(0,n))+l+(s+15<a.length?a.slice(s,s+15)+"\u2026":a.slice(s))}var u=new Error(o);return u.name="ParseError",u.__proto__=r.prototype,u.position=n,u}n.r(t),n(0);var o=function(){function e(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}return e.range=function(t,n){return n?t&&t.loc&&n.loc&&t.loc.lexer===n.loc.lexer?new e(t.loc.lexer,t.loc.start,n.loc.end):null:t&&t.loc},e}(),i=function(){function e(e,t){this.text=void 0,this.loc=void 0,this.text=e,this.loc=t}return e.prototype.range=function(t,n){return new e(n,o.range(this,t))},e}();r.prototype.__proto__=Error.prototype;var a=r,s=/([A-Z])/g,l={"&":"&",">":">","<":"<",'"':""","'":"'"},u=/[&><"']/g;function c(e){return"ordgroup"===e.type||"color"===e.type?1===e.body.length?c(e.body[0]):e:"font"===e.type?c(e.body):e}var f={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(u,(function(e){return l[e]}))},hyphenate:function(e){return e.replace(s,"-$1").toLowerCase()},getBaseElem:c,isCharacterBox:function(e){var t=c(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return null!=t?t[1]:"_relative"}},h=function(){function e(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,e=e||{},this.displayMode=f.deflt(e.displayMode,!1),this.output=f.deflt(e.output,"htmlAndMathml"),this.leqno=f.deflt(e.leqno,!1),this.fleqn=f.deflt(e.fleqn,!1),this.throwOnError=f.deflt(e.throwOnError,!0),this.errorColor=f.deflt(e.errorColor,"#cc0000"),this.macros=e.macros||{},this.minRuleThickness=Math.max(0,f.deflt(e.minRuleThickness,0)),this.colorIsTextColor=f.deflt(e.colorIsTextColor,!1),this.strict=f.deflt(e.strict,"warn"),this.trust=f.deflt(e.trust,!1),this.maxSize=Math.max(0,f.deflt(e.maxSize,1/0)),this.maxExpand=Math.max(0,f.deflt(e.maxExpand,1e3))}var t=e.prototype;return t.reportNonstrict=function(e,t,n){var r=this.strict;if("function"==typeof r&&(r=r(e,t,n)),r&&"ignore"!==r&&(!0===r||"error"===r))throw new a("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n)},t.useStrictBehavior=function(e,t,n){var r=this.strict;if("function"==typeof r)try{r=r(e,t,n)}catch(e){r="error"}return!(!r||"ignore"===r)&&(!0===r||"error"===r)},t.isTrusted=function(e){e.url&&!e.protocol&&(e.protocol=f.protocolFromUrl(e.url));var t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)},e}(),p=function(){function e(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}var t=e.prototype;return t.sup=function(){return d[m[this.id]]},t.sub=function(){return d[y[this.id]]},t.fracNum=function(){return d[v[this.id]]},t.fracDen=function(){return d[g[this.id]]},t.cramp=function(){return d[b[this.id]]},t.text=function(){return d[w[this.id]]},t.isTight=function(){return 2<=this.size},e}(),d=[new p(0,0,!1),new p(1,0,!0),new p(2,1,!1),new p(3,1,!0),new p(4,2,!1),new p(5,2,!0),new p(6,3,!1),new p(7,3,!0)],m=[4,5,4,5,6,7,6,7],y=[5,5,5,5,7,7,7,7],v=[2,3,4,5,6,7,6,7],g=[3,3,5,5,7,7,7,7],b=[1,1,3,3,5,5,7,7],w=[0,1,2,3,2,3,2,3],x={DISPLAY:d[0],TEXT:d[2],SCRIPT:d[4],SCRIPTSCRIPT:d[6]},_=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],E=[];function k(e){for(var t=0;t<E.length;t+=2)if(e>=E[t]&&e<=E[t+1])return 1}function O(e){return e.filter((function(e){return e})).join(" ")}function S(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}}function N(e){var t=document.createElement(e);for(var n in t.className=O(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var o=0;o<this.children.length;o++)t.appendChild(this.children[o].toNode());return t}function A(e){var t="<"+e;this.classes.length&&(t+=' class="'+f.escape(O(this.classes))+'"');var n="";for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=f.hyphenate(r)+":"+this.style[r]+";");for(var o in n&&(t+=' style="'+f.escape(n)+'"'),this.attributes)this.attributes.hasOwnProperty(o)&&(t+=" "+o+'="'+f.escape(this.attributes[o])+'"');t+=">";for(var i=0;i<this.children.length;i++)t+=this.children[i].toMarkup();return t+"</"+e+">"}_.forEach((function(e){return e.blocks.forEach((function(e){return E.push.apply(E,e)}))}));var C={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"},q=function(){function e(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e},t.toMarkup=function(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),M=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,S.call(this,e,n,r),this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){return N.call(this,"span")},t.toMarkup=function(){return A.call(this,"span")},e}(),j=function(){function e(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,S.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){return N.call(this,"a")},t.toMarkup=function(){return A.call(this,"a")},e}(),T=function(){function e(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e},t.toMarkup=function(){var e="<img src='"+this.src+" 'alt='"+this.alt+"' ",t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=f.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+f.escape(t)+'"'),e+"'/>"},e}(),P={"\xee":"\u0131\u0302","\xef":"\u0131\u0308","\xed":"\u0131\u0301","\xec":"\u0131\u0300"},I=function(){function e(e,t,n,r,o,i,a,s){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=r||0,this.skew=o||0,this.width=i||0,this.classes=a||[],this.style=s||{},this.maxFontSize=0;var l=function(e){for(var t=0;t<_.length;t++)for(var n=_[t],r=0;r<n.blocks.length;r++){var o=n.blocks[r];if(e>=o[0]&&e<=o[1])return n.name}return null}(this.text.charCodeAt(0));l&&this.classes.push(l+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=P[this.text])}var t=e.prototype;return t.hasClass=function(e){return f.contains(this.classes,e)},t.toNode=function(){var e=document.createTextNode(this.text),t=null;for(var n in 0<this.italic&&((t=document.createElement("span")).style.marginRight=this.italic+"em"),0<this.classes.length&&((t=t||document.createElement("span")).className=O(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e},t.toMarkup=function(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="',t+=f.escape(O(this.classes)),t+='"');var n="";for(var r in 0<this.italic&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(r)&&(n+=f.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+f.escape(n)+'"');var o=f.escape(this.text);return e?(t+=">",t+=o,t+="</span>"):o},e}(),R=function(){function e(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<svg";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"},e}(),B=function(){function e(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",C[this.pathName]),e},t.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+C[this.pathName]+"'/>"},e}(),L=function(){function e(e){this.attributes=void 0,this.attributes=e||{}}var t=e.prototype;return t.toNode=function(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e},t.toMarkup=function(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+"='"+this.attributes[t]+"'");return e+"/>"},e}();function D(e){if(e instanceof I)return e;throw new Error("Expected symbolNode but got "+String(e)+".")}var F={"AMS-Regular":{65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473]},"Fraktur-Regular":{33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],163:[0,.69444,0,0,.86853],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],163:[0,.69444,0,0,.76909],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],305:[0,.43056,0,.02778,.32246],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],567:[.19444,.43056,0,.08334,.38403],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,1],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.67,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.744,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.744,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333]},"Math-Italic":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"Math-Regular":{65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059]},"SansSerif-Bold":{33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212]},"Size1-Regular":{40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},z={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},U={"\xc5":"A","\xc7":"C","\xd0":"D","\xde":"o","\xe5":"a","\xe7":"c","\xf0":"d","\xfe":"o","\u0410":"A","\u0411":"B","\u0412":"B","\u0413":"F","\u0414":"A","\u0415":"E","\u0416":"K","\u0417":"3","\u0418":"N","\u0419":"N","\u041a":"K","\u041b":"N","\u041c":"M","\u041d":"H","\u041e":"O","\u041f":"N","\u0420":"P","\u0421":"C","\u0422":"T","\u0423":"y","\u0424":"O","\u0425":"X","\u0426":"U","\u0427":"h","\u0428":"W","\u0429":"W","\u042a":"B","\u042b":"X","\u042c":"B","\u042d":"3","\u042e":"X","\u042f":"R","\u0430":"a","\u0431":"b","\u0432":"a","\u0433":"r","\u0434":"y","\u0435":"e","\u0436":"m","\u0437":"e","\u0438":"n","\u0439":"n","\u043a":"n","\u043b":"n","\u043c":"m","\u043d":"n","\u043e":"o","\u043f":"n","\u0440":"p","\u0441":"c","\u0442":"o","\u0443":"y","\u0444":"b","\u0445":"x","\u0446":"n","\u0447":"n","\u0448":"w","\u0449":"w","\u044a":"a","\u044b":"m","\u044c":"a","\u044d":"e","\u044e":"m","\u044f":"r"};function V(e,t,n){if(!F[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),o=F[t][r];if(!o&&e[0]in U&&(r=U[e[0]].charCodeAt(0),o=F[t][r]),o||"text"!==n||k(r)&&(o=F[t][77]),o)return{depth:o[0],height:o[1],italic:o[2],skew:o[3],width:o[4]}}var H={},Y={bin:1,close:1,inner:1,open:1,punct:1,rel:1},W={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},K={math:{},text:{}},G=K;function $(e,t,n,r,o,i){K[e][o]={font:t,group:n,replace:r},i&&r&&(K[e][r]=K[e][o])}var Z="math",X="text",Q="main",J="ams",ee="accent-token",te="bin",ne="close",re="inner",oe="mathord",ie="op-token",ae="open",se="punct",le="rel",ue="spacing",ce="textord";$(Z,Q,le,"\u2261","\\equiv",!0),$(Z,Q,le,"\u227a","\\prec",!0),$(Z,Q,le,"\u227b","\\succ",!0),$(Z,Q,le,"\u223c","\\sim",!0),$(Z,Q,le,"\u22a5","\\perp"),$(Z,Q,le,"\u2aaf","\\preceq",!0),$(Z,Q,le,"\u2ab0","\\succeq",!0),$(Z,Q,le,"\u2243","\\simeq",!0),$(Z,Q,le,"\u2223","\\mid",!0),$(Z,Q,le,"\u226a","\\ll",!0),$(Z,Q,le,"\u226b","\\gg",!0),$(Z,Q,le,"\u224d","\\asymp",!0),$(Z,Q,le,"\u2225","\\parallel"),$(Z,Q,le,"\u22c8","\\bowtie",!0),$(Z,Q,le,"\u2323","\\smile",!0),$(Z,Q,le,"\u2291","\\sqsubseteq",!0),$(Z,Q,le,"\u2292","\\sqsupseteq",!0),$(Z,Q,le,"\u2250","\\doteq",!0),$(Z,Q,le,"\u2322","\\frown",!0),$(Z,Q,le,"\u220b","\\ni",!0),$(Z,Q,le,"\u221d","\\propto",!0),$(Z,Q,le,"\u22a2","\\vdash",!0),$(Z,Q,le,"\u22a3","\\dashv",!0),$(Z,Q,le,"\u220b","\\owns"),$(Z,Q,se,".","\\ldotp"),$(Z,Q,se,"\u22c5","\\cdotp"),$(Z,Q,ce,"#","\\#"),$(X,Q,ce,"#","\\#"),$(Z,Q,ce,"&","\\&"),$(X,Q,ce,"&","\\&"),$(Z,Q,ce,"\u2135","\\aleph",!0),$(Z,Q,ce,"\u2200","\\forall",!0),$(Z,Q,ce,"\u210f","\\hbar",!0),$(Z,Q,ce,"\u2203","\\exists",!0),$(Z,Q,ce,"\u2207","\\nabla",!0),$(Z,Q,ce,"\u266d","\\flat",!0),$(Z,Q,ce,"\u2113","\\ell",!0),$(Z,Q,ce,"\u266e","\\natural",!0),$(Z,Q,ce,"\u2663","\\clubsuit",!0),$(Z,Q,ce,"\u2118","\\wp",!0),$(Z,Q,ce,"\u266f","\\sharp",!0),$(Z,Q,ce,"\u2662","\\diamondsuit",!0),$(Z,Q,ce,"\u211c","\\Re",!0),$(Z,Q,ce,"\u2661","\\heartsuit",!0),$(Z,Q,ce,"\u2111","\\Im",!0),$(Z,Q,ce,"\u2660","\\spadesuit",!0),$(X,Q,ce,"\xa7","\\S",!0),$(X,Q,ce,"\xb6","\\P",!0),$(Z,Q,ce,"\u2020","\\dag"),$(X,Q,ce,"\u2020","\\dag"),$(X,Q,ce,"\u2020","\\textdagger"),$(Z,Q,ce,"\u2021","\\ddag"),$(X,Q,ce,"\u2021","\\ddag"),$(X,Q,ce,"\u2021","\\textdaggerdbl"),$(Z,Q,ne,"\u23b1","\\rmoustache",!0),$(Z,Q,ae,"\u23b0","\\lmoustache",!0),$(Z,Q,ne,"\u27ef","\\rgroup",!0),$(Z,Q,ae,"\u27ee","\\lgroup",!0),$(Z,Q,te,"\u2213","\\mp",!0),$(Z,Q,te,"\u2296","\\ominus",!0),$(Z,Q,te,"\u228e","\\uplus",!0),$(Z,Q,te,"\u2293","\\sqcap",!0),$(Z,Q,te,"\u2217","\\ast"),$(Z,Q,te,"\u2294","\\sqcup",!0),$(Z,Q,te,"\u25ef","\\bigcirc"),$(Z,Q,te,"\u2219","\\bullet"),$(Z,Q,te,"\u2021","\\ddagger"),$(Z,Q,te,"\u2240","\\wr",!0),$(Z,Q,te,"\u2a3f","\\amalg"),$(Z,Q,te,"&","\\And"),$(Z,Q,le,"\u27f5","\\longleftarrow",!0),$(Z,Q,le,"\u21d0","\\Leftarrow",!0),$(Z,Q,le,"\u27f8","\\Longleftarrow",!0),$(Z,Q,le,"\u27f6","\\longrightarrow",!0),$(Z,Q,le,"\u21d2","\\Rightarrow",!0),$(Z,Q,le,"\u27f9","\\Longrightarrow",!0),$(Z,Q,le,"\u2194","\\leftrightarrow",!0),$(Z,Q,le,"\u27f7","\\longleftrightarrow",!0),$(Z,Q,le,"\u21d4","\\Leftrightarrow",!0),$(Z,Q,le,"\u27fa","\\Longleftrightarrow",!0),$(Z,Q,le,"\u21a6","\\mapsto",!0),$(Z,Q,le,"\u27fc","\\longmapsto",!0),$(Z,Q,le,"\u2197","\\nearrow",!0),$(Z,Q,le,"\u21a9","\\hookleftarrow",!0),$(Z,Q,le,"\u21aa","\\hookrightarrow",!0),$(Z,Q,le,"\u2198","\\searrow",!0),$(Z,Q,le,"\u21bc","\\leftharpoonup",!0),$(Z,Q,le,"\u21c0","\\rightharpoonup",!0),$(Z,Q,le,"\u2199","\\swarrow",!0),$(Z,Q,le,"\u21bd","\\leftharpoondown",!0),$(Z,Q,le,"\u21c1","\\rightharpoondown",!0),$(Z,Q,le,"\u2196","\\nwarrow",!0),$(Z,Q,le,"\u21cc","\\rightleftharpoons",!0),$(Z,J,le,"\u226e","\\nless",!0),$(Z,J,le,"\ue010","\\@nleqslant"),$(Z,J,le,"\ue011","\\@nleqq"),$(Z,J,le,"\u2a87","\\lneq",!0),$(Z,J,le,"\u2268","\\lneqq",!0),$(Z,J,le,"\ue00c","\\@lvertneqq"),$(Z,J,le,"\u22e6","\\lnsim",!0),$(Z,J,le,"\u2a89","\\lnapprox",!0),$(Z,J,le,"\u2280","\\nprec",!0),$(Z,J,le,"\u22e0","\\npreceq",!0),$(Z,J,le,"\u22e8","\\precnsim",!0),$(Z,J,le,"\u2ab9","\\precnapprox",!0),$(Z,J,le,"\u2241","\\nsim",!0),$(Z,J,le,"\ue006","\\@nshortmid"),$(Z,J,le,"\u2224","\\nmid",!0),$(Z,J,le,"\u22ac","\\nvdash",!0),$(Z,J,le,"\u22ad","\\nvDash",!0),$(Z,J,le,"\u22ea","\\ntriangleleft"),$(Z,J,le,"\u22ec","\\ntrianglelefteq",!0),$(Z,J,le,"\u228a","\\subsetneq",!0),$(Z,J,le,"\ue01a","\\@varsubsetneq"),$(Z,J,le,"\u2acb","\\subsetneqq",!0),$(Z,J,le,"\ue017","\\@varsubsetneqq"),$(Z,J,le,"\u226f","\\ngtr",!0),$(Z,J,le,"\ue00f","\\@ngeqslant"),$(Z,J,le,"\ue00e","\\@ngeqq"),$(Z,J,le,"\u2a88","\\gneq",!0),$(Z,J,le,"\u2269","\\gneqq",!0),$(Z,J,le,"\ue00d","\\@gvertneqq"),$(Z,J,le,"\u22e7","\\gnsim",!0),$(Z,J,le,"\u2a8a","\\gnapprox",!0),$(Z,J,le,"\u2281","\\nsucc",!0),$(Z,J,le,"\u22e1","\\nsucceq",!0),$(Z,J,le,"\u22e9","\\succnsim",!0),$(Z,J,le,"\u2aba","\\succnapprox",!0),$(Z,J,le,"\u2246","\\ncong",!0),$(Z,J,le,"\ue007","\\@nshortparallel"),$(Z,J,le,"\u2226","\\nparallel",!0),$(Z,J,le,"\u22af","\\nVDash",!0),$(Z,J,le,"\u22eb","\\ntriangleright"),$(Z,J,le,"\u22ed","\\ntrianglerighteq",!0),$(Z,J,le,"\ue018","\\@nsupseteqq"),$(Z,J,le,"\u228b","\\supsetneq",!0),$(Z,J,le,"\ue01b","\\@varsupsetneq"),$(Z,J,le,"\u2acc","\\supsetneqq",!0),$(Z,J,le,"\ue019","\\@varsupsetneqq"),$(Z,J,le,"\u22ae","\\nVdash",!0),$(Z,J,le,"\u2ab5","\\precneqq",!0),$(Z,J,le,"\u2ab6","\\succneqq",!0),$(Z,J,le,"\ue016","\\@nsubseteqq"),$(Z,J,te,"\u22b4","\\unlhd"),$(Z,J,te,"\u22b5","\\unrhd"),$(Z,J,le,"\u219a","\\nleftarrow",!0),$(Z,J,le,"\u219b","\\nrightarrow",!0),$(Z,J,le,"\u21cd","\\nLeftarrow",!0),$(Z,J,le,"\u21cf","\\nRightarrow",!0),$(Z,J,le,"\u21ae","\\nleftrightarrow",!0),$(Z,J,le,"\u21ce","\\nLeftrightarrow",!0),$(Z,J,le,"\u25b3","\\vartriangle"),$(Z,J,ce,"\u210f","\\hslash"),$(Z,J,ce,"\u25bd","\\triangledown"),$(Z,J,ce,"\u25ca","\\lozenge"),$(Z,J,ce,"\u24c8","\\circledS"),$(Z,J,ce,"\xae","\\circledR"),$(X,J,ce,"\xae","\\circledR"),$(Z,J,ce,"\u2221","\\measuredangle",!0),$(Z,J,ce,"\u2204","\\nexists"),$(Z,J,ce,"\u2127","\\mho"),$(Z,J,ce,"\u2132","\\Finv",!0),$(Z,J,ce,"\u2141","\\Game",!0),$(Z,J,ce,"\u2035","\\backprime"),$(Z,J,ce,"\u25b2","\\blacktriangle"),$(Z,J,ce,"\u25bc","\\blacktriangledown"),$(Z,J,ce,"\u25a0","\\blacksquare"),$(Z,J,ce,"\u29eb","\\blacklozenge"),$(Z,J,ce,"\u2605","\\bigstar"),$(Z,J,ce,"\u2222","\\sphericalangle",!0),$(Z,J,ce,"\u2201","\\complement",!0),$(Z,J,ce,"\xf0","\\eth",!0),$(Z,J,ce,"\u2571","\\diagup"),$(Z,J,ce,"\u2572","\\diagdown"),$(Z,J,ce,"\u25a1","\\square"),$(Z,J,ce,"\u25a1","\\Box"),$(Z,J,ce,"\u25ca","\\Diamond"),$(Z,J,ce,"\xa5","\\yen",!0),$(X,J,ce,"\xa5","\\yen",!0),$(Z,J,ce,"\u2713","\\checkmark",!0),$(X,J,ce,"\u2713","\\checkmark"),$(Z,J,ce,"\u2136","\\beth",!0),$(Z,J,ce,"\u2138","\\daleth",!0),$(Z,J,ce,"\u2137","\\gimel",!0),$(Z,J,ce,"\u03dd","\\digamma",!0),$(Z,J,ce,"\u03f0","\\varkappa"),$(Z,J,ae,"\u250c","\\ulcorner",!0),$(Z,J,ne,"\u2510","\\urcorner",!0),$(Z,J,ae,"\u2514","\\llcorner",!0),$(Z,J,ne,"\u2518","\\lrcorner",!0),$(Z,J,le,"\u2266","\\leqq",!0),$(Z,J,le,"\u2a7d","\\leqslant",!0),$(Z,J,le,"\u2a95","\\eqslantless",!0),$(Z,J,le,"\u2272","\\lesssim",!0),$(Z,J,le,"\u2a85","\\lessapprox",!0),$(Z,J,le,"\u224a","\\approxeq",!0),$(Z,J,te,"\u22d6","\\lessdot"),$(Z,J,le,"\u22d8","\\lll",!0),$(Z,J,le,"\u2276","\\lessgtr",!0),$(Z,J,le,"\u22da","\\lesseqgtr",!0),$(Z,J,le,"\u2a8b","\\lesseqqgtr",!0),$(Z,J,le,"\u2251","\\doteqdot"),$(Z,J,le,"\u2253","\\risingdotseq",!0),$(Z,J,le,"\u2252","\\fallingdotseq",!0),$(Z,J,le,"\u223d","\\backsim",!0),$(Z,J,le,"\u22cd","\\backsimeq",!0),$(Z,J,le,"\u2ac5","\\subseteqq",!0),$(Z,J,le,"\u22d0","\\Subset",!0),$(Z,J,le,"\u228f","\\sqsubset",!0),$(Z,J,le,"\u227c","\\preccurlyeq",!0),$(Z,J,le,"\u22de","\\curlyeqprec",!0),$(Z,J,le,"\u227e","\\precsim",!0),$(Z,J,le,"\u2ab7","\\precapprox",!0),$(Z,J,le,"\u22b2","\\vartriangleleft"),$(Z,J,le,"\u22b4","\\trianglelefteq"),$(Z,J,le,"\u22a8","\\vDash",!0),$(Z,J,le,"\u22aa","\\Vvdash",!0),$(Z,J,le,"\u2323","\\smallsmile"),$(Z,J,le,"\u2322","\\smallfrown"),$(Z,J,le,"\u224f","\\bumpeq",!0),$(Z,J,le,"\u224e","\\Bumpeq",!0),$(Z,J,le,"\u2267","\\geqq",!0),$(Z,J,le,"\u2a7e","\\geqslant",!0),$(Z,J,le,"\u2a96","\\eqslantgtr",!0),$(Z,J,le,"\u2273","\\gtrsim",!0),$(Z,J,le,"\u2a86","\\gtrapprox",!0),$(Z,J,te,"\u22d7","\\gtrdot"),$(Z,J,le,"\u22d9","\\ggg",!0),$(Z,J,le,"\u2277","\\gtrless",!0),$(Z,J,le,"\u22db","\\gtreqless",!0),$(Z,J,le,"\u2a8c","\\gtreqqless",!0),$(Z,J,le,"\u2256","\\eqcirc",!0),$(Z,J,le,"\u2257","\\circeq",!0),$(Z,J,le,"\u225c","\\triangleq",!0),$(Z,J,le,"\u223c","\\thicksim"),$(Z,J,le,"\u2248","\\thickapprox"),$(Z,J,le,"\u2ac6","\\supseteqq",!0),$(Z,J,le,"\u22d1","\\Supset",!0),$(Z,J,le,"\u2290","\\sqsupset",!0),$(Z,J,le,"\u227d","\\succcurlyeq",!0),$(Z,J,le,"\u22df","\\curlyeqsucc",!0),$(Z,J,le,"\u227f","\\succsim",!0),$(Z,J,le,"\u2ab8","\\succapprox",!0),$(Z,J,le,"\u22b3","\\vartriangleright"),$(Z,J,le,"\u22b5","\\trianglerighteq"),$(Z,J,le,"\u22a9","\\Vdash",!0),$(Z,J,le,"\u2223","\\shortmid"),$(Z,J,le,"\u2225","\\shortparallel"),$(Z,J,le,"\u226c","\\between",!0),$(Z,J,le,"\u22d4","\\pitchfork",!0),$(Z,J,le,"\u221d","\\varpropto"),$(Z,J,le,"\u25c0","\\blacktriangleleft"),$(Z,J,le,"\u2234","\\therefore",!0),$(Z,J,le,"\u220d","\\backepsilon"),$(Z,J,le,"\u25b6","\\blacktriangleright"),$(Z,J,le,"\u2235","\\because",!0),$(Z,J,le,"\u22d8","\\llless"),$(Z,J,le,"\u22d9","\\gggtr"),$(Z,J,te,"\u22b2","\\lhd"),$(Z,J,te,"\u22b3","\\rhd"),$(Z,J,le,"\u2242","\\eqsim",!0),$(Z,Q,le,"\u22c8","\\Join"),$(Z,J,le,"\u2251","\\Doteq",!0),$(Z,J,te,"\u2214","\\dotplus",!0),$(Z,J,te,"\u2216","\\smallsetminus"),$(Z,J,te,"\u22d2","\\Cap",!0),$(Z,J,te,"\u22d3","\\Cup",!0),$(Z,J,te,"\u2a5e","\\doublebarwedge",!0),$(Z,J,te,"\u229f","\\boxminus",!0),$(Z,J,te,"\u229e","\\boxplus",!0),$(Z,J,te,"\u22c7","\\divideontimes",!0),$(Z,J,te,"\u22c9","\\ltimes",!0),$(Z,J,te,"\u22ca","\\rtimes",!0),$(Z,J,te,"\u22cb","\\leftthreetimes",!0),$(Z,J,te,"\u22cc","\\rightthreetimes",!0),$(Z,J,te,"\u22cf","\\curlywedge",!0),$(Z,J,te,"\u22ce","\\curlyvee",!0),$(Z,J,te,"\u229d","\\circleddash",!0),$(Z,J,te,"\u229b","\\circledast",!0),$(Z,J,te,"\u22c5","\\centerdot"),$(Z,J,te,"\u22ba","\\intercal",!0),$(Z,J,te,"\u22d2","\\doublecap"),$(Z,J,te,"\u22d3","\\doublecup"),$(Z,J,te,"\u22a0","\\boxtimes",!0),$(Z,J,le,"\u21e2","\\dashrightarrow",!0),$(Z,J,le,"\u21e0","\\dashleftarrow",!0),$(Z,J,le,"\u21c7","\\leftleftarrows",!0),$(Z,J,le,"\u21c6","\\leftrightarrows",!0),$(Z,J,le,"\u21da","\\Lleftarrow",!0),$(Z,J,le,"\u219e","\\twoheadleftarrow",!0),$(Z,J,le,"\u21a2","\\leftarrowtail",!0),$(Z,J,le,"\u21ab","\\looparrowleft",!0),$(Z,J,le,"\u21cb","\\leftrightharpoons",!0),$(Z,J,le,"\u21b6","\\curvearrowleft",!0),$(Z,J,le,"\u21ba","\\circlearrowleft",!0),$(Z,J,le,"\u21b0","\\Lsh",!0),$(Z,J,le,"\u21c8","\\upuparrows",!0),$(Z,J,le,"\u21bf","\\upharpoonleft",!0),$(Z,J,le,"\u21c3","\\downharpoonleft",!0),$(Z,J,le,"\u22b8","\\multimap",!0),$(Z,J,le,"\u21ad","\\leftrightsquigarrow",!0),$(Z,J,le,"\u21c9","\\rightrightarrows",!0),$(Z,J,le,"\u21c4","\\rightleftarrows",!0),$(Z,J,le,"\u21a0","\\twoheadrightarrow",!0),$(Z,J,le,"\u21a3","\\rightarrowtail",!0),$(Z,J,le,"\u21ac","\\looparrowright",!0),$(Z,J,le,"\u21b7","\\curvearrowright",!0),$(Z,J,le,"\u21bb","\\circlearrowright",!0),$(Z,J,le,"\u21b1","\\Rsh",!0),$(Z,J,le,"\u21ca","\\downdownarrows",!0),$(Z,J,le,"\u21be","\\upharpoonright",!0),$(Z,J,le,"\u21c2","\\downharpoonright",!0),$(Z,J,le,"\u21dd","\\rightsquigarrow",!0),$(Z,J,le,"\u21dd","\\leadsto"),$(Z,J,le,"\u21db","\\Rrightarrow",!0),$(Z,J,le,"\u21be","\\restriction"),$(Z,Q,ce,"\u2018","`"),$(Z,Q,ce,"$","\\$"),$(X,Q,ce,"$","\\$"),$(X,Q,ce,"$","\\textdollar"),$(Z,Q,ce,"%","\\%"),$(X,Q,ce,"%","\\%"),$(Z,Q,ce,"_","\\_"),$(X,Q,ce,"_","\\_"),$(X,Q,ce,"_","\\textunderscore"),$(Z,Q,ce,"\u2220","\\angle",!0),$(Z,Q,ce,"\u221e","\\infty",!0),$(Z,Q,ce,"\u2032","\\prime"),$(Z,Q,ce,"\u25b3","\\triangle"),$(Z,Q,ce,"\u0393","\\Gamma",!0),$(Z,Q,ce,"\u0394","\\Delta",!0),$(Z,Q,ce,"\u0398","\\Theta",!0),$(Z,Q,ce,"\u039b","\\Lambda",!0),$(Z,Q,ce,"\u039e","\\Xi",!0),$(Z,Q,ce,"\u03a0","\\Pi",!0),$(Z,Q,ce,"\u03a3","\\Sigma",!0),$(Z,Q,ce,"\u03a5","\\Upsilon",!0),$(Z,Q,ce,"\u03a6","\\Phi",!0),$(Z,Q,ce,"\u03a8","\\Psi",!0),$(Z,Q,ce,"\u03a9","\\Omega",!0),$(Z,Q,ce,"A","\u0391"),$(Z,Q,ce,"B","\u0392"),$(Z,Q,ce,"E","\u0395"),$(Z,Q,ce,"Z","\u0396"),$(Z,Q,ce,"H","\u0397"),$(Z,Q,ce,"I","\u0399"),$(Z,Q,ce,"K","\u039a"),$(Z,Q,ce,"M","\u039c"),$(Z,Q,ce,"N","\u039d"),$(Z,Q,ce,"O","\u039f"),$(Z,Q,ce,"P","\u03a1"),$(Z,Q,ce,"T","\u03a4"),$(Z,Q,ce,"X","\u03a7"),$(Z,Q,ce,"\xac","\\neg",!0),$(Z,Q,ce,"\xac","\\lnot"),$(Z,Q,ce,"\u22a4","\\top"),$(Z,Q,ce,"\u22a5","\\bot"),$(Z,Q,ce,"\u2205","\\emptyset"),$(Z,J,ce,"\u2205","\\varnothing"),$(Z,Q,oe,"\u03b1","\\alpha",!0),$(Z,Q,oe,"\u03b2","\\beta",!0),$(Z,Q,oe,"\u03b3","\\gamma",!0),$(Z,Q,oe,"\u03b4","\\delta",!0),$(Z,Q,oe,"\u03f5","\\epsilon",!0),$(Z,Q,oe,"\u03b6","\\zeta",!0),$(Z,Q,oe,"\u03b7","\\eta",!0),$(Z,Q,oe,"\u03b8","\\theta",!0),$(Z,Q,oe,"\u03b9","\\iota",!0),$(Z,Q,oe,"\u03ba","\\kappa",!0),$(Z,Q,oe,"\u03bb","\\lambda",!0),$(Z,Q,oe,"\u03bc","\\mu",!0),$(Z,Q,oe,"\u03bd","\\nu",!0),$(Z,Q,oe,"\u03be","\\xi",!0),$(Z,Q,oe,"\u03bf","\\omicron",!0),$(Z,Q,oe,"\u03c0","\\pi",!0),$(Z,Q,oe,"\u03c1","\\rho",!0),$(Z,Q,oe,"\u03c3","\\sigma",!0),$(Z,Q,oe,"\u03c4","\\tau",!0),$(Z,Q,oe,"\u03c5","\\upsilon",!0),$(Z,Q,oe,"\u03d5","\\phi",!0),$(Z,Q,oe,"\u03c7","\\chi",!0),$(Z,Q,oe,"\u03c8","\\psi",!0),$(Z,Q,oe,"\u03c9","\\omega",!0),$(Z,Q,oe,"\u03b5","\\varepsilon",!0),$(Z,Q,oe,"\u03d1","\\vartheta",!0),$(Z,Q,oe,"\u03d6","\\varpi",!0),$(Z,Q,oe,"\u03f1","\\varrho",!0),$(Z,Q,oe,"\u03c2","\\varsigma",!0),$(Z,Q,oe,"\u03c6","\\varphi",!0),$(Z,Q,te,"\u2217","*"),$(Z,Q,te,"+","+"),$(Z,Q,te,"\u2212","-"),$(Z,Q,te,"\u22c5","\\cdot",!0),$(Z,Q,te,"\u2218","\\circ"),$(Z,Q,te,"\xf7","\\div",!0),$(Z,Q,te,"\xb1","\\pm",!0),$(Z,Q,te,"\xd7","\\times",!0),$(Z,Q,te,"\u2229","\\cap",!0),$(Z,Q,te,"\u222a","\\cup",!0),$(Z,Q,te,"\u2216","\\setminus"),$(Z,Q,te,"\u2227","\\land"),$(Z,Q,te,"\u2228","\\lor"),$(Z,Q,te,"\u2227","\\wedge",!0),$(Z,Q,te,"\u2228","\\vee",!0),$(Z,Q,ce,"\u221a","\\surd"),$(Z,Q,ae,"(","("),$(Z,Q,ae,"[","["),$(Z,Q,ae,"\u27e8","\\langle",!0),$(Z,Q,ae,"\u2223","\\lvert"),$(Z,Q,ae,"\u2225","\\lVert"),$(Z,Q,ne,")",")"),$(Z,Q,ne,"]","]"),$(Z,Q,ne,"?","?"),$(Z,Q,ne,"!","!"),$(Z,Q,ne,"\u27e9","\\rangle",!0),$(Z,Q,ne,"\u2223","\\rvert"),$(Z,Q,ne,"\u2225","\\rVert"),$(Z,Q,le,"=","="),$(Z,Q,le,"<","<"),$(Z,Q,le,">",">"),$(Z,Q,le,":",":"),$(Z,Q,le,"\u2248","\\approx",!0),$(Z,Q,le,"\u2245","\\cong",!0),$(Z,Q,le,"\u2265","\\ge"),$(Z,Q,le,"\u2265","\\geq",!0),$(Z,Q,le,"\u2190","\\gets"),$(Z,Q,le,">","\\gt"),$(Z,Q,le,"\u2208","\\in",!0),$(Z,Q,le,"\ue020","\\@not"),$(Z,Q,le,"\u2282","\\subset",!0),$(Z,Q,le,"\u2283","\\supset",!0),$(Z,Q,le,"\u2286","\\subseteq",!0),$(Z,Q,le,"\u2287","\\supseteq",!0),$(Z,J,le,"\u2288","\\nsubseteq",!0),$(Z,J,le,"\u2289","\\nsupseteq",!0),$(Z,Q,le,"\u22a8","\\models"),$(Z,Q,le,"\u2190","\\leftarrow",!0),$(Z,Q,le,"\u2264","\\le"),$(Z,Q,le,"\u2264","\\leq",!0),$(Z,Q,le,"<","\\lt"),$(Z,Q,le,"\u2192","\\rightarrow",!0),$(Z,Q,le,"\u2192","\\to"),$(Z,J,le,"\u2271","\\ngeq",!0),$(Z,J,le,"\u2270","\\nleq",!0),$(Z,Q,ue,"\xa0","\\ "),$(Z,Q,ue,"\xa0","~"),$(Z,Q,ue,"\xa0","\\space"),$(Z,Q,ue,"\xa0","\\nobreakspace"),$(X,Q,ue,"\xa0","\\ "),$(X,Q,ue,"\xa0","~"),$(X,Q,ue,"\xa0","\\space"),$(X,Q,ue,"\xa0","\\nobreakspace"),$(Z,Q,ue,null,"\\nobreak"),$(Z,Q,ue,null,"\\allowbreak"),$(Z,Q,se,",",","),$(Z,Q,se,";",";"),$(Z,J,te,"\u22bc","\\barwedge",!0),$(Z,J,te,"\u22bb","\\veebar",!0),$(Z,Q,te,"\u2299","\\odot",!0),$(Z,Q,te,"\u2295","\\oplus",!0),$(Z,Q,te,"\u2297","\\otimes",!0),$(Z,Q,ce,"\u2202","\\partial",!0),$(Z,Q,te,"\u2298","\\oslash",!0),$(Z,J,te,"\u229a","\\circledcirc",!0),$(Z,J,te,"\u22a1","\\boxdot",!0),$(Z,Q,te,"\u25b3","\\bigtriangleup"),$(Z,Q,te,"\u25bd","\\bigtriangledown"),$(Z,Q,te,"\u2020","\\dagger"),$(Z,Q,te,"\u22c4","\\diamond"),$(Z,Q,te,"\u22c6","\\star"),$(Z,Q,te,"\u25c3","\\triangleleft"),$(Z,Q,te,"\u25b9","\\triangleright"),$(Z,Q,ae,"{","\\{"),$(X,Q,ce,"{","\\{"),$(X,Q,ce,"{","\\textbraceleft"),$(Z,Q,ne,"}","\\}"),$(X,Q,ce,"}","\\}"),$(X,Q,ce,"}","\\textbraceright"),$(Z,Q,ae,"{","\\lbrace"),$(Z,Q,ne,"}","\\rbrace"),$(Z,Q,ae,"[","\\lbrack"),$(X,Q,ce,"[","\\lbrack"),$(Z,Q,ne,"]","\\rbrack"),$(X,Q,ce,"]","\\rbrack"),$(Z,Q,ae,"(","\\lparen"),$(Z,Q,ne,")","\\rparen"),$(X,Q,ce,"<","\\textless"),$(X,Q,ce,">","\\textgreater"),$(Z,Q,ae,"\u230a","\\lfloor",!0),$(Z,Q,ne,"\u230b","\\rfloor",!0),$(Z,Q,ae,"\u2308","\\lceil",!0),$(Z,Q,ne,"\u2309","\\rceil",!0),$(Z,Q,ce,"\\","\\backslash"),$(Z,Q,ce,"\u2223","|"),$(Z,Q,ce,"\u2223","\\vert"),$(X,Q,ce,"|","\\textbar"),$(Z,Q,ce,"\u2225","\\|"),$(Z,Q,ce,"\u2225","\\Vert"),$(X,Q,ce,"\u2225","\\textbardbl"),$(X,Q,ce,"~","\\textasciitilde"),$(X,Q,ce,"\\","\\textbackslash"),$(X,Q,ce,"^","\\textasciicircum"),$(Z,Q,le,"\u2191","\\uparrow",!0),$(Z,Q,le,"\u21d1","\\Uparrow",!0),$(Z,Q,le,"\u2193","\\downarrow",!0),$(Z,Q,le,"\u21d3","\\Downarrow",!0),$(Z,Q,le,"\u2195","\\updownarrow",!0),$(Z,Q,le,"\u21d5","\\Updownarrow",!0),$(Z,Q,ie,"\u2210","\\coprod"),$(Z,Q,ie,"\u22c1","\\bigvee"),$(Z,Q,ie,"\u22c0","\\bigwedge"),$(Z,Q,ie,"\u2a04","\\biguplus"),$(Z,Q,ie,"\u22c2","\\bigcap"),$(Z,Q,ie,"\u22c3","\\bigcup"),$(Z,Q,ie,"\u222b","\\int"),$(Z,Q,ie,"\u222b","\\intop"),$(Z,Q,ie,"\u222c","\\iint"),$(Z,Q,ie,"\u222d","\\iiint"),$(Z,Q,ie,"\u220f","\\prod"),$(Z,Q,ie,"\u2211","\\sum"),$(Z,Q,ie,"\u2a02","\\bigotimes"),$(Z,Q,ie,"\u2a01","\\bigoplus"),$(Z,Q,ie,"\u2a00","\\bigodot"),$(Z,Q,ie,"\u222e","\\oint"),$(Z,Q,ie,"\u222f","\\oiint"),$(Z,Q,ie,"\u2230","\\oiiint"),$(Z,Q,ie,"\u2a06","\\bigsqcup"),$(Z,Q,ie,"\u222b","\\smallint"),$(X,Q,re,"\u2026","\\textellipsis"),$(Z,Q,re,"\u2026","\\mathellipsis"),$(X,Q,re,"\u2026","\\ldots",!0),$(Z,Q,re,"\u2026","\\ldots",!0),$(Z,Q,re,"\u22ef","\\@cdots",!0),$(Z,Q,re,"\u22f1","\\ddots",!0),$(Z,Q,ce,"\u22ee","\\varvdots"),$(Z,Q,ee,"\u02ca","\\acute"),$(Z,Q,ee,"\u02cb","\\grave"),$(Z,Q,ee,"\xa8","\\ddot"),$(Z,Q,ee,"~","\\tilde"),$(Z,Q,ee,"\u02c9","\\bar"),$(Z,Q,ee,"\u02d8","\\breve"),$(Z,Q,ee,"\u02c7","\\check"),$(Z,Q,ee,"^","\\hat"),$(Z,Q,ee,"\u20d7","\\vec"),$(Z,Q,ee,"\u02d9","\\dot"),$(Z,Q,ee,"\u02da","\\mathring"),$(Z,Q,oe,"\u0131","\\imath",!0),$(Z,Q,oe,"\u0237","\\jmath",!0),$(X,Q,ce,"\u0131","\\i",!0),$(X,Q,ce,"\u0237","\\j",!0),$(X,Q,ce,"\xdf","\\ss",!0),$(X,Q,ce,"\xe6","\\ae",!0),$(X,Q,ce,"\xe6","\\ae",!0),$(X,Q,ce,"\u0153","\\oe",!0),$(X,Q,ce,"\xf8","\\o",!0),$(X,Q,ce,"\xc6","\\AE",!0),$(X,Q,ce,"\u0152","\\OE",!0),$(X,Q,ce,"\xd8","\\O",!0),$(X,Q,ee,"\u02ca","\\'"),$(X,Q,ee,"\u02cb","\\`"),$(X,Q,ee,"\u02c6","\\^"),$(X,Q,ee,"\u02dc","\\~"),$(X,Q,ee,"\u02c9","\\="),$(X,Q,ee,"\u02d8","\\u"),$(X,Q,ee,"\u02d9","\\."),$(X,Q,ee,"\u02da","\\r"),$(X,Q,ee,"\u02c7","\\v"),$(X,Q,ee,"\xa8",'\\"'),$(X,Q,ee,"\u02dd","\\H"),$(X,Q,ee,"\u25ef","\\textcircled");var fe={"--":!0,"---":!0,"``":!0,"''":!0};$(X,Q,ce,"\u2013","--"),$(X,Q,ce,"\u2013","\\textendash"),$(X,Q,ce,"\u2014","---"),$(X,Q,ce,"\u2014","\\textemdash"),$(X,Q,ce,"\u2018","`"),$(X,Q,ce,"\u2018","\\textquoteleft"),$(X,Q,ce,"\u2019","'"),$(X,Q,ce,"\u2019","\\textquoteright"),$(X,Q,ce,"\u201c","``"),$(X,Q,ce,"\u201c","\\textquotedblleft"),$(X,Q,ce,"\u201d","''"),$(X,Q,ce,"\u201d","\\textquotedblright"),$(Z,Q,ce,"\xb0","\\degree",!0),$(X,Q,ce,"\xb0","\\degree"),$(X,Q,ce,"\xb0","\\textdegree",!0),$(Z,Q,oe,"\xa3","\\pounds"),$(Z,Q,oe,"\xa3","\\mathsterling",!0),$(X,Q,oe,"\xa3","\\pounds"),$(X,Q,oe,"\xa3","\\textsterling",!0),$(Z,J,ce,"\u2720","\\maltese"),$(X,J,ce,"\u2720","\\maltese"),$(X,Q,ue,"\xa0","\\ "),$(X,Q,ue,"\xa0"," "),$(X,Q,ue,"\xa0","~");for(var he='0123456789/@."',pe=0;pe<he.length;pe++){var de=he.charAt(pe);$(Z,Q,ce,de,de)}for(var me='0123456789!@*()-=+[]<>|";:?/.,',ye=0;ye<me.length;ye++){var ve=me.charAt(ye);$(X,Q,ce,ve,ve)}for(var ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",be=0;be<ge.length;be++){var we=ge.charAt(be);$(Z,Q,oe,we,we),$(X,Q,ce,we,we)}$(Z,J,ce,"C","\u2102"),$(X,J,ce,"C","\u2102"),$(Z,J,ce,"H","\u210d"),$(X,J,ce,"H","\u210d"),$(Z,J,ce,"N","\u2115"),$(X,J,ce,"N","\u2115"),$(Z,J,ce,"P","\u2119"),$(X,J,ce,"P","\u2119"),$(Z,J,ce,"Q","\u211a"),$(X,J,ce,"Q","\u211a"),$(Z,J,ce,"R","\u211d"),$(X,J,ce,"R","\u211d"),$(Z,J,ce,"Z","\u2124"),$(X,J,ce,"Z","\u2124"),$(Z,Q,oe,"h","\u210e"),$(X,Q,oe,"h","\u210e");for(var xe="",_e=0;_e<ge.length;_e++){var Ee=ge.charAt(_e);$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56320+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56372+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56424+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56580+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56736+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56788+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56840+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56944+_e)),$(X,Q,ce,Ee,xe),_e<26&&($(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56632+_e)),$(X,Q,ce,Ee,xe),$(Z,Q,oe,Ee,xe=String.fromCharCode(55349,56476+_e)),$(X,Q,ce,Ee,xe))}$(Z,Q,oe,"k",xe=String.fromCharCode(55349,56668)),$(X,Q,ce,"k",xe);for(var ke=0;ke<10;ke++){var Oe=ke.toString();$(Z,Q,oe,Oe,xe=String.fromCharCode(55349,57294+ke)),$(X,Q,ce,Oe,xe),$(Z,Q,oe,Oe,xe=String.fromCharCode(55349,57314+ke)),$(X,Q,ce,Oe,xe),$(Z,Q,oe,Oe,xe=String.fromCharCode(55349,57324+ke)),$(X,Q,ce,Oe,xe),$(Z,Q,oe,Oe,xe=String.fromCharCode(55349,57334+ke)),$(X,Q,ce,Oe,xe)}for(var Se="\xc7\xd0\xde\xe7\xfe",Ne=0;Ne<Se.length;Ne++){var Ae=Se.charAt(Ne);$(Z,Q,oe,Ae,Ae),$(X,Q,ce,Ae,Ae)}function Ce(e,t){return t.size<2?e:je[e-1][t.size-1]}$(X,Q,ce,"\xf0","\xf0"),$(X,Q,ce,"\u2013","\u2013"),$(X,Q,ce,"\u2014","\u2014"),$(X,Q,ce,"\u2018","\u2018"),$(X,Q,ce,"\u2019","\u2019"),$(X,Q,ce,"\u201c","\u201c"),$(X,Q,ce,"\u201d","\u201d");var qe=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathdefault","textit","Math-Italic"],["mathdefault","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["","",""],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Me=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],je=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Te=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Pe=function(){function e(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||e.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Te[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}var t=e.prototype;return t.extend=function(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new e(n)},t.havingStyle=function(e){return this.style===e?this:this.extend({style:e,size:Ce(this.textSize,e)})},t.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},t.havingSize=function(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Te[e-1]})},t.havingBaseStyle=function(t){t=t||this.style.text();var n=Ce(e.BASESIZE,t);return this.size===n&&this.textSize===e.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})},t.havingBaseSizing=function(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})},t.withColor=function(e){return this.extend({color:e})},t.withPhantom=function(){return this.extend({phantom:!0})},t.withFont=function(e){return this.extend({font:e})},t.withTextFontFamily=function(e){return this.extend({fontFamily:e,font:""})},t.withTextFontWeight=function(e){return this.extend({fontWeight:e,font:""})},t.withTextFontShape=function(e){return this.extend({fontShape:e,font:""})},t.sizingClasses=function(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]},t.baseSizingClasses=function(){return this.size!==e.BASESIZE?["sizing","reset-size"+this.size,"size"+e.BASESIZE]:[]},t.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!H[t=5<=e?0:3<=e?1:2]){var n=H[t]={cssEmPerMu:z.quad[t]/18};for(var r in z)z.hasOwnProperty(r)&&(n[r]=z[r][t])}return H[t]}(this.size)),this._fontMetrics},t.getColor=function(){return this.phantom?"transparent":this.color},e}();function Ie(e){return"string"!=typeof e&&(e=e.unit),e in He||e in Ye||"ex"===e}function Re(e,t){var n;if(e.unit in He)n=He[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{var r;if(r=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=r.fontMetrics().xHeight;else{if("em"!==e.unit)throw new a("Invalid unit: '"+e.unit+"'");n=r.fontMetrics().quad}r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)}function Be(e,t,n){return G[n][e]&&G[n][e].replace&&(e=G[n][e].replace),{value:e,metrics:V(e,t,n)}}function Le(e,t,n,r,o){var i,a=Be(e,t,n),s=a.metrics;if(e=a.value,s){var l=s.italic;("text"===n||r&&"mathit"===r.font)&&(l=0),i=new I(e,s.height,s.depth,l,s.skew,s.width,o)}else i=new I(e,0,0,0,0,0,o);if(r){i.maxFontSize=r.sizeMultiplier,r.style.isTight()&&i.classes.push("mtight");var u=r.getColor();u&&(i.style.color=u)}return i}function De(e,t){if(O(e.classes)===O(t.classes)&&e.skew===t.skew&&e.maxFontSize===t.maxFontSize){for(var n in e.style)if(e.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return;for(var r in t.style)if(t.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return;return 1}}function Fe(e){for(var t=0,n=0,r=0,o=0;o<e.children.length;o++){var i=e.children[o];i.height>t&&(t=i.height),i.depth>n&&(n=i.depth),i.maxFontSize>r&&(r=i.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r}function ze(e,t,n,r){var o=new M(e,t,n,r);return Fe(o),o}function Ue(e,t,n,r){return new M(e,t,n,r)}Pe.BASESIZE=6;var Ve=Pe,He={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},Ye={ex:!0,em:!0,mu:!0},We=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xa3"],Ke=function(e){var t=new q(e);return Fe(t),t},Ge=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}return r+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},$e={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ze={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Xe={fontMap:$e,makeSymbol:Le,mathsym:function(e,t,n,r){return void 0===r&&(r=[]),"boldsymbol"===n.font&&Be(e,"Main-Bold",t).metrics?Le(e,"Main-Bold",t,n,r.concat(["mathbf"])):"\\"===e||"main"===G[t][e].font?Le(e,"Main-Regular",t,n,r):Le(e,"AMS-Regular",t,n,r.concat(["amsrm"]))},makeSpan:ze,makeSvgSpan:Ue,makeLineSpan:function(e,t,n){var r=ze([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=r.height+"em",r.maxFontSize=1,r},makeAnchor:function(e,t,n,r){var o=new j(e,t,n,r);return Fe(o),o},makeFragment:Ke,wrapFragment:function(e,t){return e instanceof q?ze([],[e],t):e},makeVList:function(e){for(var t=function(e){if("individualShift"===e.positionType){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,i=1;i<t.length;i++){var a=-t[i].shift-o-t[i].elem.depth,s=a-(t[i-1].elem.height+t[i-1].elem.depth);o+=a,n.push({type:"kern",size:s}),n.push(t[i])}return{children:n,depth:r}}var l;if("top"===e.positionType){for(var u=e.positionData,c=0;c<e.children.length;c++){var f=e.children[c];u-="kern"===f.type?f.size:f.elem.height+f.elem.depth}l=u}else if("bottom"===e.positionType)l=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw new Error('First child must have type "elem".');if("shift"===e.positionType)l=-h.elem.depth-e.positionData;else{if("firstBaseline"!==e.positionType)throw new Error("Invalid positionType "+e.positionType+".");l=-h.elem.depth}}return{children:e.children,depth:l}}(e),n=t.children,r=t.depth,o=0,i=0;i<n.length;i++){var a=n[i];if("elem"===a.type){var s=a.elem;o=Math.max(o,s.maxFontSize,s.height)}}o+=2;var l=ze(["pstrut"],[]);l.style.height=o+"em";for(var u=[],c=r,f=r,h=r,p=0;p<n.length;p++){var d=n[p];if("kern"===d.type)h+=d.size;else{var m=d.elem,y=ze(d.wrapperClasses||[],[l,m],void 0,d.wrapperStyle||{});y.style.top=-o-h-m.depth+"em",d.marginLeft&&(y.style.marginLeft=d.marginLeft),d.marginRight&&(y.style.marginRight=d.marginRight),u.push(y),h+=m.height+m.depth}c=Math.min(c,h),f=Math.max(f,h)}var v,g=ze(["vlist"],u);if(g.style.height=f+"em",c<0){var b=ze([],[]),w=ze(["vlist"],[b]);w.style.height=-c+"em";var x=ze(["vlist-s"],[new I("\u200b")]);v=[ze(["vlist-r"],[g,x]),ze(["vlist-r"],[w])]}else v=[ze(["vlist-r"],[g])];var _=ze(["vlist-t"],v);return 2===v.length&&_.classes.push("vlist-t2"),_.height=f,_.depth=-c,_},makeOrd:function(e,t,n){var r,o=e.mode,i=e.text,s=["mord"],l="math"===o||"text"===o&&t.font,u=l?t.font:t.fontFamily;if(55349===i.charCodeAt(0)){var c=function(e,t){var n=1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536,r="math"===t?0:1;if(119808<=n&&n<120484){var o=Math.floor((n-119808)/26);return[qe[o][2],qe[o][r]]}if(120782<=n&&n<=120831){var i=Math.floor((n-120782)/10);return[Me[i][2],Me[i][r]]}if(120485==n||120486==n)return[qe[0][2],qe[0][r]];if(120486<n&&n<120782)return["",""];throw new a("Unsupported character: "+e)}(i,o),h=c[0],p=c[1];return Le(i,h,o,t,s.concat(p))}if(u){var d,m;if("boldsymbol"===u||"mathnormal"===u){var y="boldsymbol"===u?Be(i,"Math-BoldItalic",o).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}:(r=i,f.contains(We,r)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(r.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"});d=y.fontName,m=[y.fontClass]}else m=f.contains(We,i)?(d="Main-Italic",["mathit"]):l?(d=$e[u].fontName,[u]):(d=Ge(u,t.fontWeight,t.fontShape),[u,t.fontWeight,t.fontShape]);if(Be(i,d,o).metrics)return Le(i,d,o,t,s.concat(m));if(fe.hasOwnProperty(i)&&"Typewriter"===d.substr(0,10)){for(var v=[],g=0;g<i.length;g++)v.push(Le(i[g],d,o,t,s.concat(m)));return Ke(v)}}if("mathord"===n){var b=/[0-9]/.test((w=i).charAt(0))||f.contains(We,w)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"};return Le(i,b.fontName,o,t,s.concat([b.fontClass]))}if("textord"!==n)throw new Error("unexpected type: "+n+" in makeOrd");var w,x=G[o][i]&&G[o][i].font;if("ams"===x)return Le(i,Ge("amsrm",t.fontWeight,t.fontShape),o,t,s.concat("amsrm",t.fontWeight,t.fontShape));if("main"!==x&&x){var _=Ge(x,t.fontWeight,t.fontShape);return Le(i,_,o,t,s.concat(_,t.fontWeight,t.fontShape))}return Le(i,Ge("textrm",t.fontWeight,t.fontShape),o,t,s.concat(t.fontWeight,t.fontShape))},makeGlue:function(e,t){var n=ze(["mspace"],[],t),r=Re(e,t);return n.style.marginRight=r+"em",n},staticSvg:function(e,t){var n=Ze[e],r=n[0],o=n[1],i=n[2],a=new B(r),s=Ue(["overlay"],[new R([a],{width:o+"em",height:i+"em",style:"width:"+o+"em",viewBox:"0 0 "+1e3*o+" "+1e3*i,preserveAspectRatio:"xMinYMin"})],t);return s.height=i,s.style.height=i+"em",s.style.width=o+"em",s},svgData:Ze,tryCombineChars:function(e){for(var t=0;t<e.length-1;t++){var n=e[t],r=e[t+1];n instanceof I&&r instanceof I&&De(n,r)&&(n.text+=r.text,n.height=Math.max(n.height,r.height),n.depth=Math.max(n.depth,r.depth),n.italic=r.italic,e.splice(t+1,1),t--)}return e}};function Qe(e,t){var n=Je(e,t);if(!n)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return n}function Je(e,t){return e&&e.type===t?e:null}function et(e,t){var n,r,o=(r=t,(n=e)&&"atom"===n.type&&n.family===r?n:null);if(!o)throw new Error('Expected node of type "atom" and family "'+t+'", but got '+(e?"atom"===e.type?"atom of family "+e.family:"node of type "+e.type:String(e)));return o}function tt(e){var t=nt(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function nt(e){return e&&("atom"===e.type||W.hasOwnProperty(e.type))?e:null}var rt={number:3,unit:"mu"},ot={number:4,unit:"mu"},it={number:5,unit:"mu"},at={mord:{mop:rt,mbin:ot,mrel:it,minner:rt},mop:{mord:rt,mop:rt,mrel:it,minner:rt},mbin:{mord:ot,mop:ot,mopen:ot,minner:ot},mrel:{mord:it,mop:it,mopen:it,minner:it},mopen:{},mclose:{mop:rt,mbin:ot,mrel:it,minner:rt},mpunct:{mord:rt,mop:rt,mrel:it,mopen:rt,mclose:rt,mpunct:rt,minner:rt},minner:{mord:rt,mop:rt,mbin:ot,mrel:it,mopen:rt,mpunct:rt,minner:rt}},st={mord:{mop:rt},mop:{mord:rt,mop:rt},mbin:{},mrel:{},mopen:{},mclose:{mop:rt},mpunct:{},minner:{mop:rt}},lt={},ut={},ct={};function ft(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs,argTypes:r.argTypes,greediness:void 0===r.greediness?1:r.greediness,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,handler:o},l=0;l<n.length;++l)lt[n[l]]=s;t&&(i&&(ut[t]=i),a&&(ct[t]=a))}function ht(e){ft({type:e.type,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:e.htmlBuilder,mathmlBuilder:e.mathmlBuilder})}function pt(e){var t=Je(e,"ordgroup");return t?t.body:[e]}function dt(e,t,n,r){void 0===r&&(r=[null,null]);for(var o=[],i=0;i<e.length;i++){var a=kt(e[i],t);if(a instanceof q){var s=a.children;o.push.apply(o,s)}else o.push(a)}if(!n)return o;var l=t;if(1===e.length){var u=Je(e[0],"sizing")||Je(e[0],"styling");u&&("sizing"===u.type?l=t.havingSize(u.size):"styling"===u.type&&(l=t.havingStyle(bt[u.style])))}var c=yt([r[0]||"leftmost"],[],t),h=yt([r[1]||"rightmost"],[],t);return xt(o,(function(e,t){var n=t.classes[0],r=e.classes[0];"mbin"===n&&f.contains(gt,r)?t.classes[0]="mord":"mbin"===r&&f.contains(vt,n)&&(e.classes[0]="mord")}),{node:c},h),xt(o,(function(e,t){var n=Et(t),r=Et(e),o=n&&r?e.hasClass("mtight")?st[n][r]:at[n][r]:null;if(o)return Xe.makeGlue(o,l)}),{node:c},h),o}function mt(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return yt(t.concat(n))}var yt=Xe.makeSpan,vt=["leftmost","mbin","mopen","mrel","mop","mpunct"],gt=["rightmost","mrel","mclose","mpunct"],bt={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT},wt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},xt=function e(t,n,r,o){o&&t.push(o);for(var i=0;i<t.length;i++){var a=t[i],s=_t(a);if(s)e(s.children,n,r);else if("mspace"!==a.classes[0]){var l=n(a,r.node);l&&(r.insertAfter?r.insertAfter(l):(t.unshift(l),i++)),r.node=a,r.insertAfter=function(e){return function(n){t.splice(e+1,0,n),i++}}(i)}}o&&t.pop()},_t=function(e){return e instanceof q||e instanceof j?e:null},Et=function(e,t){return e?(t&&(e=function e(t,n){var r=_t(t);if(r){var o=r.children;if(o.length){if("right"===n)return e(o[o.length-1],"right");if("left"===n)return e(o[0],"left")}}return t}(e,t)),wt[e.classes[0]]||null):null},kt=function(e,t,n){if(!e)return yt();if(ut[e.type]){var r=ut[e.type](e,t);if(n&&t.size!==n.size){r=yt(t.sizingClasses(n),[r],t);var o=t.sizeMultiplier/n.sizeMultiplier;r.height*=o,r.depth*=o}return r}throw new a("Got group of unknown type: '"+e.type+"'")};function Ot(e,t){var n=yt(["base"],e,t),r=yt(["strut"]);return r.style.height=n.height+n.depth+"em",r.style.verticalAlign=-n.depth+"em",n.children.unshift(r),n}function St(e,t){var n=null;1===e.length&&"tag"===e[0].type&&(n=e[0].tag,e=e[0].body);for(var r,o=dt(e,t,!0),i=[],a=[],s=0;s<o.length;s++)if(a.push(o[s]),o[s].hasClass("mbin")||o[s].hasClass("mrel")||o[s].hasClass("allowbreak")){for(var l=!1;s<o.length-1&&o[s+1].hasClass("mspace")&&!o[s+1].hasClass("newline");)s++,a.push(o[s]),o[s].hasClass("nobreak")&&(l=!0);l||(i.push(Ot(a,t)),a=[])}else o[s].hasClass("newline")&&(a.pop(),0<a.length&&(i.push(Ot(a,t)),a=[]),i.push(o[s]));0<a.length&&i.push(Ot(a,t)),n&&((r=Ot(dt(n,t,!0))).classes=["tag"],i.push(r));var u=yt(["katex-html"],i);if(u.setAttribute("aria-hidden","true"),r){var c=r.children[0];c.style.height=u.height+u.depth+"em",c.style.verticalAlign=-u.depth+"em"}return u}function Nt(e){return new q(e)}function At(e,t,n){return!G[t][e]||!G[t][e].replace||55349===e.charCodeAt(0)||fe.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.substr(4,2)||n.font&&"tt"===n.font.substr(4,2))||(e=G[t][e].replace),new It.TextNode(e)}function Ct(e){return 1===e.length?e[0]:new It.MathNode("mrow",e)}function qt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var r=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var o=e.text;return f.contains(["\\imath","\\jmath"],o)?null:(G[r][o]&&G[r][o].replace&&(o=G[r][o].replace),V(o,Xe.fontMap[n].fontName,r)?Xe.fontMap[n].variant:null)}function Mt(e,t,n){if(1===e.length){var r=Rt(e[0],t);return n&&r instanceof Tt&&"mo"===r.type&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o,i=[],a=0;a<e.length;a++){var s=Rt(e[a],t);if(s instanceof Tt&&o instanceof Tt){if("mtext"===s.type&&"mtext"===o.type&&s.getAttribute("mathvariant")===o.getAttribute("mathvariant")){var l;(l=o.children).push.apply(l,s.children);continue}if("mn"===s.type&&"mn"===o.type){var u;(u=o.children).push.apply(u,s.children);continue}if("mi"===s.type&&1===s.children.length&&"mn"===o.type){var c=s.children[0];if(c instanceof Pt&&"."===c.text){var f;(f=o.children).push.apply(f,s.children);continue}}else if("mi"===o.type&&1===o.children.length){var h=o.children[0];if(h instanceof Pt&&"\u0338"===h.text&&("mo"===s.type||"mi"===s.type||"mn"===s.type)){var p=s.children[0];p instanceof Pt&&0<p.text.length&&(p.text=p.text.slice(0,1)+"\u0338"+p.text.slice(1),i.pop())}}}i.push(s),o=s}return i}function jt(e,t,n){return Ct(Mt(e,t,n))}var Tt=function(){function e(e,t){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=e,this.attributes={},this.children=t||[]}var t=e.prototype;return t.setAttribute=function(e,t){this.attributes[e]=t},t.getAttribute=function(e){return this.attributes[e]},t.toNode=function(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e},t.toMarkup=function(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="',e+=f.escape(this.attributes[t]),e+='"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</"+this.type+">"},t.toText=function(){return this.children.map((function(e){return e.toText()})).join("")},e}(),Pt=function(){function e(e){this.text=void 0,this.text=e}var t=e.prototype;return t.toNode=function(){return document.createTextNode(this.text)},t.toMarkup=function(){return f.escape(this.toText())},t.toText=function(){return this.text},e}(),It={MathNode:Tt,TextNode:Pt,SpaceNode:function(){function e(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?"\u200a":.1666<=e&&e<=.1667?"\u2009":.2222<=e&&e<=.2223?"\u2005":.2777<=e&&e<=.2778?"\u2005\u200a":-.05556<=e&&e<=-.05555?"\u200a\u2063":-.1667<=e&&e<=-.1666?"\u2009\u2063":-.2223<=e&&e<=-.2222?"\u205f\u2063":-.2778<=e&&e<=-.2777?"\u2005\u2063":null}var t=e.prototype;return t.toNode=function(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",this.width+"em"),e},t.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},t.toText=function(){return this.character?this.character:" "},e}(),newDocumentFragment:Nt},Rt=function(e,t){if(!e)return new It.MathNode("mrow");if(ct[e.type])return ct[e.type](e,t);throw new a("Got group of unknown type: '"+e.type+"'")};function Bt(e,t,n,r){var o,i=Mt(e,n);o=1===i.length&&i[0]instanceof Tt&&f.contains(["mrow","mtable"],i[0].type)?i[0]:new It.MathNode("mrow",i);var a=new It.MathNode("annotation",[new It.TextNode(t)]);a.setAttribute("encoding","application/x-tex");var s=new It.MathNode("semantics",[o,a]),l=new It.MathNode("math",[s]);l.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var u=r?"katex":"katex-mathml";return Xe.makeSpan([u],[l])}function Lt(e){return new Ve({style:e.displayMode?x.DISPLAY:x.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})}function Dt(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=Xe.makeSpan(n,[e])}return e}function Ft(e,t){var n,r,o,i=Je(e,"supsub");i?(n=(r=Qe(i.base,"accent")).base,i.base=n,o=function(e){if(e instanceof M)return e;throw new Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(kt(i,t)),i.base=r):n=(r=Qe(e,"accent")).base;var a=kt(n,t.havingCrampedStyle()),s=0;if(r.isShifty&&f.isCharacterBox(n)){var l=f.getBaseElem(n);s=D(kt(l,t.havingCrampedStyle())).skew}var u,c=Math.min(a.height,t.fontMetrics().xHeight);if(r.isStretchy)u=Yt(r,t),u=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:0<s?{width:"calc(100% - "+2*s+"em)",marginLeft:2*s+"em"}:void 0}]},t);else{var h,p;p="\\vec"===r.label?(h=Xe.staticSvg("vec",t),Xe.svgData.vec[1]):((h=D(h=Xe.makeOrd({mode:r.mode,text:r.label},t,"textord"))).italic=0,h.width),u=Xe.makeSpan(["accent-body"],[h]);var d="\\textcircled"===r.label;d&&(u.classes.push("accent-full"),c=a.height);var m=s;d||(m-=p/2),u.style.left=m+"em","\\textcircled"===r.label&&(u.style.top=".2em"),u=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-c},{type:"elem",elem:u}]},t)}var y=Xe.makeSpan(["mord","accent"],[u],t);return o?(o.children[0]=y,o.height=Math.max(y.height,o.height),o.classes[0]="mord",o):y}function zt(e,t){var n=e.isStretchy?Ht(e.label):new It.MathNode("mo",[At(e.label,e.mode)]),r=new It.MathNode("mover",[Rt(e.base,t),n]);return r.setAttribute("accent","true"),r}var Ut={widehat:"^",widecheck:"\u02c7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23df",overbrace:"\u23de",overgroup:"\u23e0",undergroup:"\u23e1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21d2",xRightarrow:"\u21d2",overleftharpoon:"\u21bc",xleftharpoonup:"\u21bc",overrightharpoon:"\u21c0",xrightharpoonup:"\u21c0",xLeftarrow:"\u21d0",xLeftrightarrow:"\u21d4",xhookleftarrow:"\u21a9",xhookrightarrow:"\u21aa",xmapsto:"\u21a6",xrightharpoondown:"\u21c1",xleftharpoondown:"\u21bd",xrightleftharpoons:"\u21cc",xleftrightharpoons:"\u21cb",xtwoheadleftarrow:"\u219e",xtwoheadrightarrow:"\u21a0",xlongequal:"=",xtofrom:"\u21c4",xrightleftarrows:"\u21c4",xrightequilibrium:"\u21cc",xleftequilibrium:"\u21cb"},Vt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ht=function(e){var t=new It.MathNode("mo",[new It.TextNode(Ut[e.substr(1)])]);return t.setAttribute("stretchy","true"),t},Yt=function(e,t){var n=function(){var n=4e5,r=e.label.substr(1);if(f.contains(["widehat","widecheck","widetilde","utilde"],r)){var o,i,a,s="ordgroup"===(d=e.base).type?d.body.length:1;if(5<s)i="widehat"===r||"widecheck"===r?(o=420,n=2364,a=.42,r+"4"):(o=312,n=2340,a=.34,"tilde4");else{var l=[1,1,2,2,3,3][s];i="widehat"===r||"widecheck"===r?(n=[0,1062,2364,2364,2364][l],o=[0,239,300,360,420][l],a=[0,.24,.3,.3,.36,.42][l],r+l):(n=[0,600,1033,2339,2340][l],o=[0,260,286,306,312][l],a=[0,.26,.286,.3,.306,.34][l],"tilde"+l)}var u=new B(i),c=new R([u],{width:"100%",height:a+"em",viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:Xe.makeSvgSpan([],[c],t),minWidth:0,height:a}}var h,p,d,m=[],y=Vt[r],v=y[0],g=y[1],b=y[2],w=b/1e3,x=v.length;if(1===x)h=["hide-tail"],p=[y[3]];else if(2===x)h=["halfarrow-left","halfarrow-right"],p=["xMinYMin","xMaxYMin"];else{if(3!==x)throw new Error("Correct katexImagesData or update code here to support\n "+x+" children.");h=["brace-left","brace-center","brace-right"],p=["xMinYMin","xMidYMin","xMaxYMin"]}for(var _=0;_<x;_++){var E=new B(v[_]),k=new R([E],{width:"400em",height:w+"em",viewBox:"0 0 "+n+" "+b,preserveAspectRatio:p[_]+" slice"}),O=Xe.makeSvgSpan([h[_]],[k],t);if(1===x)return{span:O,minWidth:g,height:w};O.style.height=w+"em",m.push(O)}return{span:Xe.makeSpan(["stretchy"],m,t),minWidth:g,height:w}}(),r=n.span,o=n.minWidth,i=n.height;return r.height=i,r.style.height=i+"em",0<o&&(r.style.minWidth=o+"em"),r},Wt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map((function(e){return"\\"+e})).join("|"));function Kt(e){var t=new It.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t}function Gt(e,t){var n=dt(e.body,t.withColor(e.color),!1);return Xe.makeFragment(n)}function $t(e,t){var n=Mt(e.body,t.withColor(e.color)),r=new It.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r}function Zt(e,t,n){var r=V(G.math[e]&&G.math[e].replace||e,t,n);if(!r)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return r}function Xt(e,t,n,r){var o=n.havingBaseStyle(t),i=Xe.makeSpan(r.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return i.height*=a,i.depth*=a,i.maxFontSize=o.sizeMultiplier,i}function Qt(e,t,n){var r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=o+"em",e.height-=o,e.depth+=o}function Jt(e,t,n,r,o,i){var a,s,l,u,c=(a=e,s=t,l=o,u=r,Xe.makeSymbol(a,"Size"+s+"-Regular",l,u)),f=Xt(Xe.makeSpan(["delimsizing","size"+t],[c],r),x.TEXT,r,i);return n&&Qt(f,r,x.TEXT),f}function en(e,t,n){var r;return r="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:Xe.makeSpan(["delimsizinginner",r],[Xe.makeSpan([],[Xe.makeSymbol(e,t,n)])])}}function tn(e,t,n,r,o,i){var a,s,l,u;a=l=u=e,s=null;var c="Size1-Regular";"\\uparrow"===e?l=u="\u23d0":"\\Uparrow"===e?l=u="\u2016":"\\downarrow"===e?a=l="\u23d0":"\\Downarrow"===e?a=l="\u2016":"\\updownarrow"===e?(a="\\uparrow",l="\u23d0",u="\\downarrow"):"\\Updownarrow"===e?(a="\\Uparrow",l="\u2016",u="\\Downarrow"):"["===e||"\\lbrack"===e?(a="\u23a1",l="\u23a2",u="\u23a3",c="Size4-Regular"):"]"===e||"\\rbrack"===e?(a="\u23a4",l="\u23a5",u="\u23a6",c="Size4-Regular"):"\\lfloor"===e||"\u230a"===e?(l=a="\u23a2",u="\u23a3",c="Size4-Regular"):"\\lceil"===e||"\u2308"===e?(a="\u23a1",l=u="\u23a2",c="Size4-Regular"):"\\rfloor"===e||"\u230b"===e?(l=a="\u23a5",u="\u23a6",c="Size4-Regular"):"\\rceil"===e||"\u2309"===e?(a="\u23a4",l=u="\u23a5",c="Size4-Regular"):"("===e||"\\lparen"===e?(a="\u239b",l="\u239c",u="\u239d",c="Size4-Regular"):")"===e||"\\rparen"===e?(a="\u239e",l="\u239f",u="\u23a0",c="Size4-Regular"):"\\{"===e||"\\lbrace"===e?(a="\u23a7",s="\u23a8",u="\u23a9",l="\u23aa",c="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(a="\u23ab",s="\u23ac",u="\u23ad",l="\u23aa",c="Size4-Regular"):"\\lgroup"===e||"\u27ee"===e?(a="\u23a7",u="\u23a9",l="\u23aa",c="Size4-Regular"):"\\rgroup"===e||"\u27ef"===e?(a="\u23ab",u="\u23ad",l="\u23aa",c="Size4-Regular"):"\\lmoustache"===e||"\u23b0"===e?(a="\u23a7",u="\u23ad",l="\u23aa",c="Size4-Regular"):"\\rmoustache"!==e&&"\u23b1"!==e||(a="\u23ab",u="\u23a9",l="\u23aa",c="Size4-Regular");var f=Zt(a,c,o),h=f.height+f.depth,p=Zt(l,c,o),d=p.height+p.depth,m=Zt(u,c,o),y=m.height+m.depth,v=0,g=1;if(null!==s){var b=Zt(s,c,o);v=b.height+b.depth,g=2}var w=h+y+v,_=Math.max(0,Math.ceil((t-w)/(g*d))),E=w+_*g*d,k=r.fontMetrics().axisHeight;n&&(k*=r.sizeMultiplier);var O=E/2-k,S=.005*(_+1)-d,N=[];if(N.push(en(u,c,o)),null===s)for(var A=0;A<_;A++)N.push(an),N.push(en(l,c,o));else{for(var C=0;C<_;C++)N.push(an),N.push(en(l,c,o));N.push({type:"kern",size:S}),N.push(en(l,c,o)),N.push(an),N.push(en(s,c,o));for(var q=0;q<_;q++)N.push(an),N.push(en(l,c,o))}N.push({type:"kern",size:S}),N.push(en(l,c,o)),N.push(an),N.push(en(a,c,o));var M=r.havingBaseStyle(x.TEXT),j=Xe.makeVList({positionType:"bottom",positionData:O,children:N},M);return Xt(Xe.makeSpan(["delimsizing","mult"],[j],M),x.TEXT,r,i)}function nn(e,t,n,r,o){var i=function(e,t,n){t*=1e3;var r,o,i,a,s,l,u="";switch(e){case"sqrtMain":u="M95,"+(622+(l=t)+80)+"\nc-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14\nc0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54\nc44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10\ns173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429\nc69,-144,104.5,-217.7,106.5,-221\nl"+l/2.075+" -"+l+"\nc5.3,-9.3,12,-14,20,-14\nH400000v"+(40+l)+"H845.2724\ns-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7\nc-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z\nM"+(834+l)+" 80h400000v"+(40+l)+"h-400000z";break;case"sqrtSize1":u="M263,"+(601+(s=t)+80)+"c0.7,0,18,39.7,52,119\nc34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120\nc340,-704.7,510.7,-1060.3,512,-1067\nl"+s/2.084+" -"+s+"\nc4.7,-7.3,11,-11,19,-11\nH40000v"+(40+s)+"H1012.3\ns-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232\nc-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1\ns-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26\nc-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z\nM"+(1001+s)+" 80h400000v"+(40+s)+"h-400000z";break;case"sqrtSize2":u="M983 "+(10+(a=t)+80)+"\nl"+a/3.13+" -"+a+"\nc4,-6.7,10,-10,18,-10 H400000v"+(40+a)+"\nH1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7\ns-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744\nc-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30\nc26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722\nc56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5\nc53.7,-170.3,84.5,-266.8,92.5,-289.5z\nM"+(1001+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize3":u="M424,"+(2398+(i=t)+80)+"\nc-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514\nc0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20\ns-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121\ns209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081\nl"+i/4.223+" -"+i+"c4,-6.7,10,-10,18,-10 H400000\nv"+(40+i)+"H1014.6\ns-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185\nc-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2z M"+(1001+i)+" 80\nh400000v"+(40+i)+"h-400000z";break;case"sqrtSize4":u="M473,"+(2713+(o=t)+80)+"\nc339.3,-1799.3,509.3,-2700,510,-2702 l"+o/5.298+" -"+o+"\nc3.3,-7.3,9.3,-11,18,-11 H400000v"+(40+o)+"H1017.7\ns-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9\nc-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200\nc0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26\ns76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,\n606zM"+(1001+o)+" 80h400000v"+(40+o)+"H1017.7z";break;case"sqrtTall":u="M702 "+((r=t)+80)+"H400000"+(40+r)+"\nH742v"+(n-54-80-r)+"l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1\nh-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170\nc-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667\n219 661 l218 661zM702 80H400000v"+(40+r)+"H742z"}return u}(e,r,n),a=new B(e,i),s=new R([a],{width:"400em",height:t+"em",viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return Xe.makeSvgSpan(["hide-tail"],[s],o)}function rn(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")}function on(e,t,n,r,o,i){var a;"<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),a=f.contains(un,e)?fn:f.contains(sn,e)?pn:hn;var s,l,u,c,h,p,d,m=dn(e,t,a,r);return"small"===m.type?(s=e,l=m.style,u=n,c=r,h=o,p=i,d=Xt(Xe.makeSymbol(s,"Main-Regular",h,c),l,c,p),u&&Qt(d,c,l),d):"large"===m.type?Jt(e,m.size,n,r,o,i):tn(e,t,n,r,o,i)}ft({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:function(e,t){var n=t[0],r=!Wt.test(e.funcName),o=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:o,base:n}},htmlBuilder:Ft,mathmlBuilder:zt}),ft({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(e,t){var n=t[0];return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:Ft,mathmlBuilder:zt}),ft({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:o}},htmlBuilder:function(e,t){var n=kt(e.base,t),r=Yt(e,t),o="\\utilde"===e.label?.12:0,i=Xe.makeVList({positionType:"bottom",positionData:r.height+o,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:o},{type:"elem",elem:n}]},t);return Xe.makeSpan(["mord","accentunder"],[i],t)},mathmlBuilder:function(e,t){var n=Ht(e.label),r=new It.MathNode("munder",[Rt(e.base,t),n]);return r.setAttribute("accentunder","true"),r}}),ft({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=e.funcName;return{type:"xArrow",mode:r.mode,label:o,body:t[0],below:n[0]}},htmlBuilder:function(e,t){var n,r=t.style,o=t.havingStyle(r.sup()),i=Xe.wrapFragment(kt(e.body,o,t),t);i.classes.push("x-arrow-pad"),e.below&&(o=t.havingStyle(r.sub()),(n=Xe.wrapFragment(kt(e.below,o,t),t)).classes.push("x-arrow-pad"));var a,s=Yt(e,t),l=-t.fontMetrics().axisHeight+.5*s.height,u=-t.fontMetrics().axisHeight-.5*s.height-.111;if((.25<i.depth||"\\xleftequilibrium"===e.label)&&(u-=i.depth),n){var c=-t.fontMetrics().axisHeight+n.height+.5*s.height+.111;a=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:l},{type:"elem",elem:n,shift:c}]},t)}else a=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:s,shift:l}]},t);return a.children[0].children[0].children[1].classes.push("svg-align"),Xe.makeSpan(["mrel","x-arrow"],[a],t)},mathmlBuilder:function(e,t){var n,r=Ht(e.label);if(e.body){var o=Kt(Rt(e.body,t));if(e.below){var i=Kt(Rt(e.below,t));n=new It.MathNode("munderover",[r,i,o])}else n=new It.MathNode("mover",[r,o])}else if(e.below){var a=Kt(Rt(e.below,t));n=new It.MathNode("munder",[r,a])}else n=Kt(),n=new It.MathNode("mover",[r,n]);return n}}),ft({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){for(var n=e.parser,r=Qe(t[0],"ordgroup").body,o="",i=0;i<r.length;i++)o+=Qe(r[i],"textord").text;var s=parseInt(o);if(isNaN(s))throw new a("\\@char has non-numeric argument "+o);return{type:"textord",mode:n.mode,text:String.fromCharCode(s)}}}),ft({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(e,t){var n=e.parser,r=Qe(t[0],"color-token").color,o=t[1];return{type:"color",mode:n.mode,color:r,body:pt(o)}},htmlBuilder:Gt,mathmlBuilder:$t}),ft({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(e,t){var n=e.parser,r=e.breakOnTokenText,o=Qe(t[0],"color-token").color;n.gullet.macros.set("\\current@color",o);var i=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:o,body:i}},htmlBuilder:Gt,mathmlBuilder:$t}),ft({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=e.funcName,i=n[0],a="\\cr"===o,s=!1;return a||(s=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")),{type:"cr",mode:r.mode,newLine:s,newRow:a,size:i&&Qe(i,"size").value}},htmlBuilder:function(e,t){if(e.newRow)throw new a("\\cr valid only within a tabular/array environment");var n=Xe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Re(e.size,t)+"em")),n},mathmlBuilder:function(e,t){var n=new It.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Re(e.size,t)+"em")),n}});var an={type:"kern",size:-.005},sn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","\\surd"],ln=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1"],un=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],cn=[0,1.2,1.8,2.4,3],fn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"stack"}],pn=[{type:"small",style:x.SCRIPTSCRIPT},{type:"small",style:x.SCRIPT},{type:"small",style:x.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],dn=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size);o<n.length&&"stack"!==n[o].type;o++){var i=Zt(e,rn(n[o]),"math"),a=i.height+i.depth;if("small"===n[o].type&&(a*=r.havingBaseStyle(n[o].style).sizeMultiplier),t<a)return n[o]}return n[n.length-1]},mn=function(e,t,n,r,o){if("<"===e||"\\lt"===e||"\u27e8"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"\u27e9"!==e||(e="\\rangle"),f.contains(sn,e)||f.contains(un,e))return Jt(e,t,!1,n,r,o);if(f.contains(ln,e))return tn(e,cn[t],!1,n,r,o);throw new a("Illegal delimiter: '"+e+"'")},yn=on,vn=function(e,t,n,r,o,i){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,s=5/r.fontMetrics().ptPerEm,l=Math.max(t-a,n+a);return on(e,Math.max(l/500*901,2*l-s),!0,r,o,i)},gn={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},bn=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230a","\u230b","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27e8","\\rangle","\u27e9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27ee","\u27ef","\\lmoustache","\\rmoustache","\u23b0","\u23b1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function wn(e,t){var n=nt(e);if(n&&f.contains(bn,n.text))return n;throw new a("Invalid delimiter: '"+(n?n.text:JSON.stringify(e))+"' after '"+t.funcName+"'",e)}function xn(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}function _n(e,t){var n,r,o=Xe.wrapFragment(kt(e.body,t),t),i=e.label.substr(1),a=t.sizeMultiplier,s=0,l=f.isCharacterBox(e.body);if("sout"===i)(n=Xe.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/a,s=-.5*t.fontMetrics().xHeight;else{/cancel/.test(i)?l||o.classes.push("cancel-pad"):o.classes.push("boxpad");var u,c=0;n=function(e,t,n,r){var o,i=e.height+e.depth+2*n;if(/fbox|color/.test(t)){if(o=Xe.makeSpan(["stretchy",t],[],r),"fbox"===t){var a=r.color&&r.getColor();a&&(o.style.borderColor=a)}}else{var s=[];/^[bx]cancel$/.test(t)&&s.push(new L({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&s.push(new L({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var l=new R(s,{width:"100%",height:i+"em"});o=Xe.makeSvgSpan([],[l],r)}return o.height=i,o.style.height=i+"em",o}(o,i,u=/box/.test(i)?(c=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),t.fontMetrics().fboxsep+("colorbox"===i?0:c)):l?.2:0,t),/fbox|boxed|fcolorbox/.test(i)&&(n.style.borderStyle="solid",n.style.borderWidth=c+"em"),s=o.depth+u,e.backgroundColor&&(n.style.backgroundColor=e.backgroundColor,e.borderColor&&(n.style.borderColor=e.borderColor))}return r=e.backgroundColor?Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:s},{type:"elem",elem:o,shift:0}]},t):Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:0},{type:"elem",elem:n,shift:s,wrapperClasses:/cancel/.test(i)?["svg-align"]:[]}]},t),/cancel/.test(i)&&(r.height=o.height,r.depth=o.depth),/cancel/.test(i)&&!l?Xe.makeSpan(["mord","cancel-lap"],[r],t):Xe.makeSpan(["mord"],[r],t)}function En(e,t){var n=0,r=new It.MathNode(-1<e.label.indexOf("colorbox")?"mpadded":"menclose",[Rt(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var o=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+o+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r}ft({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1},handler:function(e,t){var n=wn(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:gn[e.funcName].size,mclass:gn[e.funcName].mclass,delim:n.text}},htmlBuilder:function(e,t){return"."===e.delim?Xe.makeSpan([e.mclass]):mn(e.delim,e.size,t,e.mode,[e.mclass])},mathmlBuilder:function(e){var t=[];"."!==e.delim&&t.push(At(e.delim,e.mode));var n=new It.MathNode("mo",t);return"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n}}),ft({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(e,t){var n=e.parser.gullet.macros.get("\\current@color");if(n&&"string"!=typeof n)throw new a("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:wn(t[0],e).text,color:n}}}),ft({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(e,t){var n=wn(t[0],e),r=e.parser;++r.leftrightDepth;var o=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var i=Qe(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:o,left:n.text,right:i.delim,rightColor:i.color}},htmlBuilder:function(e,t){xn(e);for(var n,r,o=dt(e.body,t,!0,["mopen","mclose"]),i=0,a=0,s=!1,l=0;l<o.length;l++)o[l].isMiddle?s=!0:(i=Math.max(o[l].height,i),a=Math.max(o[l].depth,a));if(i*=t.sizeMultiplier,a*=t.sizeMultiplier,n="."===e.left?mt(t,["mopen"]):vn(e.left,i,a,t,e.mode,["mopen"]),o.unshift(n),s)for(var u=1;u<o.length;u++){var c=o[u].isMiddle;c&&(o[u]=vn(c.delim,i,a,c.options,e.mode,[]))}if("."===e.right)r=mt(t,["mclose"]);else{var f=e.rightColor?t.withColor(e.rightColor):t;r=vn(e.right,i,a,f,e.mode,["mclose"])}return o.push(r),Xe.makeSpan(["minner"],o,t)},mathmlBuilder:function(e,t){xn(e);var n=Mt(e.body,t);if("."!==e.left){var r=new It.MathNode("mo",[At(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if("."!==e.right){var o=new It.MathNode("mo",[At(e.right,e.mode)]);o.setAttribute("fence","true"),e.rightColor&&o.setAttribute("mathcolor",e.rightColor),n.push(o)}return Ct(n)}}),ft({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(e,t){var n=wn(t[0],e);if(!e.parser.leftrightDepth)throw new a("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:function(e,t){var n;if("."===e.delim)n=mt(t,[]);else{n=mn(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:function(e){var t="\\vert"===e.delim||"|"===e.delim?At("|","text"):At(e.delim,e.mode),n=new It.MathNode("mo",[t]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}}),ft({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(e,t){var n=e.parser,r=e.funcName,o=Qe(t[0],"color-token").color,i=t[1];return{type:"enclose",mode:n.mode,label:r,backgroundColor:o,body:i}},htmlBuilder:_n,mathmlBuilder:En}),ft({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(e,t){var n=e.parser,r=e.funcName,o=Qe(t[0],"color-token").color,i=Qe(t[1],"color-token").color,a=t[2];return{type:"enclose",mode:n.mode,label:r,backgroundColor:i,borderColor:o,body:a}},htmlBuilder:_n,mathmlBuilder:En}),ft({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(e,t){return{type:"enclose",mode:e.parser.mode,label:"\\fbox",body:t[0]}}}),ft({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"enclose",mode:n.mode,label:r,body:o}},htmlBuilder:_n,mathmlBuilder:En});var kn={};function On(e){for(var t=e.type,n=e.names,r=e.props,o=e.handler,i=e.htmlBuilder,a=e.mathmlBuilder,s={type:t,numArgs:r.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:o},l=0;l<n.length;++l)kn[n[l]]=s;i&&(ut[t]=i),a&&(ct[t]=a)}function Sn(e){var t=[];e.consumeSpaces();for(var n=e.fetch().text;"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}function Nn(e,t,n){var r=t.hskipBeforeAndAfter,o=t.addJot,i=t.cols,s=t.arraystretch,l=t.colSeparationType;if(e.gullet.beginGroup(),e.gullet.macros.set("\\\\","\\cr"),!s){var u=e.gullet.expandMacroAsText("\\arraystretch");if(null==u)s=1;else if(!(s=parseFloat(u))||s<0)throw new a("Invalid \\arraystretch: "+u)}e.gullet.beginGroup();var c=[],f=[c],h=[],p=[];for(p.push(Sn(e));;){var d=e.parseExpression(!1,"\\cr");e.gullet.endGroup(),e.gullet.beginGroup(),d={type:"ordgroup",mode:e.mode,body:d},n&&(d={type:"styling",mode:e.mode,style:n,body:[d]}),c.push(d);var m=e.fetch().text;if("&"===m)e.consume();else{if("\\end"===m){1===c.length&&"styling"===d.type&&0===d.body[0].body.length&&f.pop(),p.length<f.length+1&&p.push([]);break}if("\\cr"!==m)throw new a("Expected & or \\\\ or \\cr or \\end",e.nextToken);var y=Qe(e.parseFunction(),"cr");h.push(y.size),p.push(Sn(e)),c=[],f.push(c)}}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:o,arraystretch:s,body:f,cols:i,rowGaps:h,hskipBeforeAndAfter:r,hLinesBeforeRow:p,colSeparationType:l}}function An(e){return"d"===e.substr(0,1)?"display":"text"}function Cn(e,t){var n,r,o=e.body.length,i=e.hLinesBeforeRow,s=0,l=new Array(o),u=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),h=1/t.fontMetrics().ptPerEm,p=5*h;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(x.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var d=12*h,m=3*h,y=e.arraystretch*d,v=.7*y,g=.3*y,b=0;function w(e){for(var t=0;t<e.length;++t)0<t&&(b+=.25),u.push({pos:b,isDashed:e[t]})}for(w(i[0]),n=0;n<e.body.length;++n){var _=e.body[n],E=v,k=g;s<_.length&&(s=_.length);var O=new Array(_.length);for(r=0;r<_.length;++r){var S=kt(_[r],t);k<S.depth&&(k=S.depth),E<S.height&&(E=S.height),O[r]=S}var N=e.rowGaps[n],A=0;N&&0<(A=Re(N,t))&&(k<(A+=g)&&(k=A),A=0),e.addJot&&(k+=m),O.height=E,O.depth=k,b+=E,O.pos=b,b+=k+A,l[n]=O,w(i[n+1])}var C,q,M=b/2+t.fontMetrics().axisHeight,j=e.cols||[],T=[];for(q=r=0;r<s||q<j.length;++r,++q){for(var P=j[q]||{},I=!0;"separator"===P.type;){if(I||((C=Xe.makeSpan(["arraycolsep"],[])).style.width=t.fontMetrics().doubleRuleSep+"em",T.push(C)),"|"!==P.separator&&":"!==P.separator)throw new a("Invalid separator type: "+P.separator);var R="|"===P.separator?"solid":"dashed",B=Xe.makeSpan(["vertical-separator"],[],t);B.style.height=b+"em",B.style.borderRightWidth=c+"em",B.style.borderRightStyle=R,B.style.margin="0 -"+c/2+"em",B.style.verticalAlign=-(b-M)+"em",T.push(B),P=j[++q]||{},I=!1}if(!(s<=r)){var L=void 0;(0<r||e.hskipBeforeAndAfter)&&0!==(L=f.deflt(P.pregap,p))&&((C=Xe.makeSpan(["arraycolsep"],[])).style.width=L+"em",T.push(C));var D=[];for(n=0;n<o;++n){var F=l[n],z=F[r];if(z){var U=F.pos-M;z.depth=F.depth,z.height=F.height,D.push({type:"elem",elem:z,shift:U})}}D=Xe.makeVList({positionType:"individualShift",children:D},t),D=Xe.makeSpan(["col-align-"+(P.align||"c")],[D]),T.push(D),(r<s-1||e.hskipBeforeAndAfter)&&0!==(L=f.deflt(P.postgap,p))&&((C=Xe.makeSpan(["arraycolsep"],[])).style.width=L+"em",T.push(C))}}if(l=Xe.makeSpan(["mtable"],T),0<u.length){for(var V=Xe.makeLineSpan("hline",t,c),H=Xe.makeLineSpan("hdashline",t,c),Y=[{type:"elem",elem:l,shift:0}];0<u.length;){var W=u.pop(),K=W.pos-M;W.isDashed?Y.push({type:"elem",elem:H,shift:K}):Y.push({type:"elem",elem:V,shift:K})}l=Xe.makeVList({positionType:"individualShift",children:Y},t)}return Xe.makeSpan(["mord"],[l],t)}function qn(e,t){var n=new It.MathNode("mtable",e.body.map((function(e){return new It.MathNode("mtr",e.map((function(e){return new It.MathNode("mtd",[Rt(e,t)])})))}))),r=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);n.setAttribute("rowspacing",r+"em");var o="",i="";if(e.cols){var a=e.cols,s="",l=!1,u=0,c=a.length;"separator"===a[0].type&&(o+="top ",u=1),"separator"===a[a.length-1].type&&(o+="bottom ",--c);for(var f=u;f<c;f++)"align"===a[f].type?(i+=jn[a[f].align],l&&(s+="none "),l=!0):"separator"===a[f].type&&l&&(s+="|"===a[f].separator?"solid ":"dashed ",l=!1);n.setAttribute("columnalign",i.trim()),/[sd]/.test(s)&&n.setAttribute("columnlines",s.trim())}if("align"===e.colSeparationType){for(var h=e.cols||[],p="",d=1;d<h.length;d++)p+=d%2?"0em ":"1em ";n.setAttribute("columnspacing",p.trim())}else"alignat"===e.colSeparationType?n.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?n.setAttribute("columnspacing","0.2778em"):n.setAttribute("columnspacing","1em");var m="",y=e.hLinesBeforeRow;o+=0<y[0].length?"left ":"",o+=0<y[y.length-1].length?"right ":"";for(var v=1;v<y.length-1;v++)m+=0===y[v].length?"none ":y[v][0]?"dashed ":"solid ";return/[sd]/.test(m)&&n.setAttribute("rowlines",m.trim()),""!==o&&(n=new It.MathNode("menclose",[n])).setAttribute("notation",o.trim()),e.arraystretch&&e.arraystretch<1&&(n=new It.MathNode("mstyle",[n])).setAttribute("scriptlevel","1"),n}function Mn(e,t){var n,r=[],o=Nn(e.parser,{cols:r,addJot:!0},"display"),i=0,s={type:"ordgroup",mode:e.mode,body:[]},l=Je(t[0],"ordgroup");if(l){for(var u="",c=0;c<l.body.length;c++)u+=Qe(l.body[c],"textord").text;n=Number(u),i=2*n}var f=!i;o.body.forEach((function(e){for(var t=1;t<e.length;t+=2){var r=Qe(e[t],"styling");Qe(r.body[0],"ordgroup").body.unshift(s)}if(f)i<e.length&&(i=e.length);else{var o=e.length/2;if(n<o)throw new a("Too many math in a row: expected "+n+", but got "+o,e[0])}}));for(var h=0;h<i;++h){var p="r",d=0;h%2==1?p="l":0<h&&f&&(d=1),r[h]={type:"align",align:p,pregap:d,postgap:0}}return o.colSeparationType=f?"align":"alignat",o}var jn={c:"center ",l:"left ",r:"right "};On({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(e,t){var n={cols:(nt(t[0])?[t[0]]:Qe(t[0],"ordgroup").body).map((function(e){var t=tt(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new a("Unknown column alignment: "+t,e)})),hskipBeforeAndAfter:!0};return Nn(e.parser,n,An(e.envName))},htmlBuilder:Cn,mathmlBuilder:qn}),On({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName],n=Nn(e.parser,{hskipBeforeAndAfter:!1},An(e.envName));return t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:Cn,mathmlBuilder:qn}),On({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(e){var t=Nn(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:Cn,mathmlBuilder:qn}),On({type:"array",names:["subarray"],props:{numArgs:1},handler:function(e,t){var n=(nt(t[0])?[t[0]]:Qe(t[0],"ordgroup").body).map((function(e){var t=tt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new a("Unknown column alignment: "+t,e)}));if(1<n.length)throw new a("{subarray} can contain only one column");var r={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(1<(r=Nn(e.parser,r,"script")).body[0].length)throw new a("{subarray} can contain only one column");return r},htmlBuilder:Cn,mathmlBuilder:qn}),On({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(e){var t=Nn(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},An(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:Cn,mathmlBuilder:qn}),On({type:"array",names:["aligned"],props:{numArgs:0},handler:Mn,htmlBuilder:Cn,mathmlBuilder:qn}),On({type:"array",names:["gathered"],props:{numArgs:0},handler:function(e){return Nn(e.parser,{cols:[{type:"align",align:"c"}],addJot:!0},"display")},htmlBuilder:Cn,mathmlBuilder:qn}),On({type:"array",names:["alignedat"],props:{numArgs:1},handler:Mn,htmlBuilder:Cn,mathmlBuilder:qn}),ft({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(e){throw new a(e.funcName+" valid only within array environment")}});var Tn=kn;ft({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];if("ordgroup"!==o.type)throw new a("Invalid environment name",o);for(var i="",s=0;s<o.body.length;++s)i+=Qe(o.body[s],"textord").text;if("\\begin"!==r)return{type:"environment",mode:n.mode,name:i,nameGroup:o};if(!Tn.hasOwnProperty(i))throw new a("No such environment: "+i,o);var l=Tn[i],u=n.parseArguments("\\begin{"+i+"}",l),c=u.args,f=u.optArgs,h={mode:n.mode,envName:i,parser:n},p=l.handler(h,c,f);n.expect("\\end",!1);var d=n.nextToken,m=Qe(n.parseFunction(),"environment");if(m.name!==i)throw new a("Mismatch: \\begin{"+i+"} matched by \\end{"+m.name+"}",d);return p}});var Pn=Xe.makeSpan;function In(e,t){var n=dt(e.body,t,!0);return Pn([e.mclass],n,t)}function Rn(e,t){var n,r=Mt(e.body,t);return"minner"===e.mclass?It.newDocumentFragment(r):("mord"===e.mclass?e.isCharacterBox?(n=r[0]).type="mi":n=new It.MathNode("mi",r):(e.isCharacterBox?(n=r[0]).type="mo":n=new It.MathNode("mo",r),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"!==e.mclass&&"mclose"!==e.mclass||(n.attributes.lspace="0em",n.attributes.rspace="0em")),n)}function Bn(e){var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==t.type||"bin"!==t.family&&"rel"!==t.family?"mord":"m"+t.family}function Ln(e,t){var n=e.font,r=t.withFont(n);return kt(e.body,r)}function Dn(e,t){var n=e.font,r=t.withFont(n);return Rt(e.body,r)}ft({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.substr(5),body:pt(o),isCharacterBox:f.isCharacterBox(o)}},htmlBuilder:In,mathmlBuilder:Rn}),ft({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(e,t){return{type:"mclass",mode:e.parser.mode,mclass:Bn(t[0]),body:[t[1]],isCharacterBox:f.isCharacterBox(t[1])}}}),ft({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(e,t){var n,r=e.parser,o=e.funcName,i=t[1],a=t[0];n="\\stackrel"!==o?Bn(i):"mrel";var s={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==o,body:pt(i)},l={type:"supsub",mode:a.mode,base:s,sup:"\\underset"===o?null:a,sub:"\\underset"===o?a:null};return{type:"mclass",mode:r.mode,mclass:n,body:[l],isCharacterBox:f.isCharacterBox(l)}},htmlBuilder:In,mathmlBuilder:Rn});var Fn={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};function zn(e,t){var n=t;return"display"===e?n=n.id>=x.SCRIPT.id?n.text():x.DISPLAY:"text"===e&&n.size===x.DISPLAY.size?n=x.TEXT:"script"===e?n=x.SCRIPT:"scriptscript"===e&&(n=x.SCRIPTSCRIPT),n}function Un(e,t){var n,r=zn(e.size,t.style),o=r.fracNum(),i=r.fracDen();n=t.havingStyle(o);var a=kt(e.numer,n,t);if(e.continued){var s=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;a.height=a.height<s?s:a.height,a.depth=a.depth<l?l:a.depth}n=t.havingStyle(i);var u,c,f,h,p,d,m,y,v,g,b=kt(e.denom,n,t);if(f=e.hasBarLine?(c=(u=e.barSize?(c=Re(e.barSize,t),Xe.makeLineSpan("frac-line",t,c)):Xe.makeLineSpan("frac-line",t)).height,u.height):(u=null,c=0,t.fontMetrics().defaultRuleThickness),d=r.size===x.DISPLAY.size||"display"===e.size?(h=t.fontMetrics().num1,p=0<c?3*f:7*f,t.fontMetrics().denom1):(p=0<c?(h=t.fontMetrics().num2,f):(h=t.fontMetrics().num3,3*f),t.fontMetrics().denom2),u){var w=t.fontMetrics().axisHeight;h-a.depth-(w+.5*c)<p&&(h+=p-(h-a.depth-(w+.5*c))),w-.5*c-(b.height-d)<p&&(d+=p-(w-.5*c-(b.height-d)));var _=-(w-.5*c);m=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:d},{type:"elem",elem:u,shift:_},{type:"elem",elem:a,shift:-h}]},t)}else{var E=h-a.depth-(b.height-d);E<p&&(h+=.5*(p-E),d+=.5*(p-E)),m=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:b,shift:d},{type:"elem",elem:a,shift:-h}]},t)}return n=t.havingStyle(r),m.height*=n.sizeMultiplier/t.sizeMultiplier,m.depth*=n.sizeMultiplier/t.sizeMultiplier,y=r.size===x.DISPLAY.size?t.fontMetrics().delim1:t.fontMetrics().delim2,v=null==e.leftDelim?mt(t,["mopen"]):yn(e.leftDelim,y,!0,t.havingStyle(r),e.mode,["mopen"]),g=e.continued?Xe.makeSpan([]):null==e.rightDelim?mt(t,["mclose"]):yn(e.rightDelim,y,!0,t.havingStyle(r),e.mode,["mclose"]),Xe.makeSpan(["mord"].concat(n.sizingClasses(t)),[v,Xe.makeSpan(["mfrac"],[m]),g],t)}function Vn(e,t){var n=new It.MathNode("mfrac",[Rt(e.numer,t),Rt(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var r=Re(e.barSize,t);n.setAttribute("linethickness",r+"em")}}else n.setAttribute("linethickness","0px");var o=zn(e.size,t.style);if(o.size!==t.style.size){n=new It.MathNode("mstyle",[n]);var i=o.size===x.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",i),n.setAttribute("scriptlevel","0")}if(null==e.leftDelim&&null==e.rightDelim)return n;var a=[];if(null!=e.leftDelim){var s=new It.MathNode("mo",[new It.TextNode(e.leftDelim.replace("\\",""))]);s.setAttribute("fence","true"),a.push(s)}if(a.push(n),null!=e.rightDelim){var l=new It.MathNode("mo",[new It.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),a.push(l)}return Ct(a)}function Hn(e){var t=null;return 0<e.length&&(t="."===(t=e)?null:t),t}ft({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0],i=r;return i in Fn&&(i=Fn[i]),{type:"font",mode:n.mode,font:i.slice(1),body:o}},htmlBuilder:Ln,mathmlBuilder:Dn}),ft({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(e,t){var n=e.parser,r=t[0],o=f.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:Bn(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:o}}}),ft({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.parser,n=e.funcName,r=e.breakOnTokenText,o=t.mode,i=t.parseExpression(!0,r);return{type:"font",mode:o,font:"math"+n.slice(1),body:{type:"ordgroup",mode:t.mode,body:i}}},htmlBuilder:Ln,mathmlBuilder:Dn}),ft({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(e,t){var n,r=e.parser,o=e.funcName,i=t[0],a=t[1],s=null,l=null,u="auto";switch(o){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,s="(",l=")";break;case"\\\\bracefrac":n=!1,s="\\{",l="\\}";break;case"\\\\brackfrac":n=!1,s="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(o){case"\\cfrac":case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text"}return{type:"genfrac",mode:r.mode,continued:"\\cfrac"===o,numer:i,denom:a,hasBarLine:n,leftDelim:s,rightDelim:l,size:u,barSize:null}},htmlBuilder:Un,mathmlBuilder:Vn}),ft({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(e){var t,n=e.parser,r=e.funcName,o=e.token;switch(r){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:o}}});var Yn=["display","text","script","scriptscript"];function Wn(e,t){var n,r,o=t.style,i=Je(e,"supsub");r=i?(n=i.sup?kt(i.sup,t.havingStyle(o.sup()),t):kt(i.sub,t.havingStyle(o.sub()),t),Qe(i.base,"horizBrace")):Qe(e,"horizBrace");var a,s=kt(r.base,t.havingBaseStyle(x.DISPLAY)),l=Yt(r,t);if(r.isOver?(a=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(a=Xe.makeVList({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var u=Xe.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t);a=r.isOver?Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},t):Xe.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return Xe.makeSpan(["mord",r.isOver?"mover":"munder"],[a],t)}function Kn(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new a("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!Ie(n))throw new a("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n}function Gn(e,t){switch(t.style.size){case x.DISPLAY.size:return e.display;case x.TEXT.size:return e.text;case x.SCRIPT.size:return e.script;case x.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}}function $n(e,t,n,r,o,i,a){var s,l,u;if(e=Xe.makeSpan([],[e]),t){var c=kt(t,r.havingStyle(o.sup()),r);l={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var f=kt(n,r.havingStyle(o.sub()),r);s={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}if(l&&s){var h=r.fontMetrics().bigOpSpacing5+s.elem.height+s.elem.depth+s.kern+e.depth+a;u=Xe.makeVList({positionType:"bottom",positionData:h,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(s){var p=e.height-a;u=Xe.makeVList({positionType:"top",positionData:p,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:s.elem,marginLeft:-i+"em"},{type:"kern",size:s.kern},{type:"elem",elem:e}]},r)}else{if(!l)return e;var d=e.depth+a;u=Xe.makeVList({positionType:"bottom",positionData:d,children:[{type:"elem",elem:e},{type:"kern",size:l.kern},{type:"elem",elem:l.elem,marginLeft:i+"em"},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}return Xe.makeSpan(["mop","op-limits"],[u],r)}function Zn(e,t){var n,r,o,i=!1,a=Je(e,"supsub");a?(n=a.sup,r=a.sub,o=Qe(a.base,"op"),i=!0):o=Qe(e,"op");var s,l=t.style,u=!1;if(l.size===x.DISPLAY.size&&o.symbol&&!f.contains(Qn,o.name)&&(u=!0),o.symbol){var c=u?"Size2-Regular":"Size1-Regular",h="";if("\\oiint"!==o.name&&"\\oiiint"!==o.name||(h=o.name.substr(1),o.name="oiint"===h?"\\iint":"\\iiint"),s=Xe.makeSymbol(o.name,c,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),0<h.length){var p=s.italic,d=Xe.staticSvg(h+"Size"+(u?"2":"1"),t);s=Xe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:d,shift:u?.08:0}]},t),o.name="\\"+h,s.classes.unshift("mop"),s.italic=p}}else if(o.body){var m=dt(o.body,t,!0);1===m.length&&m[0]instanceof I?(s=m[0]).classes[0]="mop":s=Xe.makeSpan(["mop"],Xe.tryCombineChars(m),t)}else{for(var y=[],v=1;v<o.name.length;v++)y.push(Xe.mathsym(o.name[v],o.mode,t));s=Xe.makeSpan(["mop"],y,t)}var g=0,b=0;return(s instanceof I||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(g=(s.height-s.depth)/2-t.fontMetrics().axisHeight,b=s.italic),i?$n(s,n,r,t,l,b,g):(g&&(s.style.position="relative",s.style.top=g+"em"),s)}function Xn(e,t){var n;if(e.symbol)n=new Tt("mo",[At(e.name,e.mode)]),f.contains(Qn,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new Tt("mo",Mt(e.body,t));else{n=new Tt("mi",[new Pt(e.name.slice(1))]);var r=new Tt("mo",[At("\u2061","text")]);n=e.parentIsSupSub?new Tt("mo",[n,r]):Nt([n,r])}return n}ft({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(e,t){var n,r=e.parser,o=t[4],i=t[5],a=Je(t[0],"atom"),s=(a=a&&et(t[0],"open"))?Hn(a.text):null,l=Je(t[1],"atom"),u=(l=l&&et(t[1],"close"))?Hn(l.text):null,c=Qe(t[2],"size"),f=null;n=!!c.isBlank||0<(f=c.value).number;var h="auto",p=Je(t[3],"ordgroup");if(p){if(0<p.body.length){var d=Qe(p.body[0],"textord");h=Yn[Number(d.text)]}}else p=Qe(t[3],"textord"),h=Yn[Number(p.text)];return{type:"genfrac",mode:r.mode,numer:o,denom:i,continued:!1,hasBarLine:n,barSize:f,leftDelim:s,rightDelim:u,size:h}},htmlBuilder:Un,mathmlBuilder:Vn}),ft({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(e,t){var n=e.parser,r=(e.funcName,e.token);return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:Qe(t[0],"size").value,token:r}}}),ft({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(e,t){var n=e.parser,r=(e.funcName,t[0]),o=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e}(Qe(t[1],"infix").size),i=t[2],a=0<o.number;return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Un,mathmlBuilder:Vn}),ft({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Wn,mathmlBuilder:function(e,t){var n=Ht(e.label);return new It.MathNode(e.isOver?"mover":"munder",[Rt(e.base,t),n])}}),ft({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[1],o=Qe(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:o})?{type:"href",mode:n.mode,href:o,body:pt(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:function(e,t){var n=dt(e.body,t,!1);return Xe.makeAnchor(e.href,[],n,t)},mathmlBuilder:function(e,t){var n=jt(e.body,t);return n instanceof Tt||(n=new Tt("mrow",[n])),n.setAttribute("href",e.href),n}}),ft({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Qe(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var o=[],i=0;i<r.length;i++){var a=r[i];"~"===a&&(a="\\textasciitilde"),o.push({type:"textord",mode:"text",text:a})}var s={type:"text",mode:n.mode,font:"\\texttt",body:o};return{type:"href",mode:n.mode,href:r,body:pt(s)}}}),ft({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(e,t){return{type:"htmlmathml",mode:e.parser.mode,html:pt(t[0]),mathml:pt(t[1])}},htmlBuilder:function(e,t){var n=dt(e.html,t,!1);return Xe.makeFragment(n)},mathmlBuilder:function(e,t){return jt(e.mathml,t)}}),ft({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(e,t,n){var r=e.parser,o={number:0,unit:"em"},i={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var u=Qe(n[0],"raw").string.split(","),c=0;c<u.length;c++){var f=u[c].split("=");if(2===f.length){var h=f[1].trim();switch(f[0].trim()){case"alt":l=h;break;case"width":o=Kn(h);break;case"height":i=Kn(h);break;case"totalheight":s=Kn(h);break;default:throw new a("Invalid key: '"+f[0]+"' in \\includegraphics.")}}}var p=Qe(t[0],"url").url;return""===l&&(l=(l=(l=p).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),r.settings.isTrusted({command:"\\includegraphics",url:p})?{type:"includegraphics",mode:r.mode,alt:l,width:o,height:i,totalheight:s,src:p}:r.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(e,t){var n=Re(e.height,t),r=0;0<e.totalheight.number&&(r=Re(e.totalheight,t)-n,r=Number(r.toFixed(2)));var o=0;0<e.width.number&&(o=Re(e.width,t));var i={height:n+r+"em"};0<o&&(i.width=o+"em"),0<r&&(i.verticalAlign=-r+"em");var a=new T(e.src,e.alt,i);return a.height=n,a.depth=r,a},mathmlBuilder:function(e,t){var n=new It.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=Re(e.height,t),o=0;if(0<e.totalheight.number&&(o=(o=Re(e.totalheight,t)-r).toFixed(2),n.setAttribute("valign","-"+o+"em")),n.setAttribute("height",r+o+"em"),0<e.width.number){var i=Re(e.width,t);n.setAttribute("width",i+"em")}return n.setAttribute("src",e.src),n}}),ft({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=Qe(t[0],"size");if(n.settings.strict){var i="m"===r[1],a="mu"===o.value.unit;i?(a||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, not "+o.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):a&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:o.value}},htmlBuilder:function(e,t){return Xe.makeGlue(e.dimension,t)},mathmlBuilder:function(e,t){var n=Re(e.dimension,t);return new It.SpaceNode(n)}}),ft({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:o}},htmlBuilder:function(e,t){var n;n="clap"===e.alignment?(n=Xe.makeSpan([],[kt(e.body,t)]),Xe.makeSpan(["inner"],[n],t)):Xe.makeSpan(["inner"],[kt(e.body,t)]);var r=Xe.makeSpan(["fix"],[]),o=Xe.makeSpan([e.alignment],[n,r],t),i=Xe.makeSpan(["strut"]);return i.style.height=o.height+o.depth+"em",i.style.verticalAlign=-o.depth+"em",o.children.unshift(i),o=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o}]},t),Xe.makeSpan(["mord"],[o],t)},mathmlBuilder:function(e,t){var n=new It.MathNode("mpadded",[Rt(e.body,t)]);if("rlap"!==e.alignment){var r="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}}),ft({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e){var t=e.funcName,n=e.parser,r=n.mode;n.switchMode("math");var o="\\("===t?"\\)":"$",i=n.parseExpression(!1,o);return n.expect(o),n.switchMode(r),{type:"styling",mode:n.mode,style:"text",body:i}}}),ft({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(e){throw new a("Mismatched "+e.funcName)}}),ft({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(e,t){return{type:"mathchoice",mode:e.parser.mode,display:pt(t[0]),text:pt(t[1]),script:pt(t[2]),scriptscript:pt(t[3])}},htmlBuilder:function(e,t){var n=dt(Gn(e,t),t,!1);return Xe.makeFragment(n)},mathmlBuilder:function(e,t){return jt(Gn(e,t),t)}});var Qn=["\\smallint"],Jn={"\u220f":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22c0":"\\bigwedge","\u22c1":"\\bigvee","\u22c2":"\\bigcap","\u22c3":"\\bigcup","\u2a00":"\\bigodot","\u2a01":"\\bigoplus","\u2a02":"\\bigotimes","\u2a04":"\\biguplus","\u2a06":"\\bigsqcup"};ft({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220f","\u2210","\u2211","\u22c0","\u22c1","\u22c2","\u22c3","\u2a00","\u2a01","\u2a02","\u2a04","\u2a06"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=Jn[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ft({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:pt(r)}},htmlBuilder:Zn,mathmlBuilder:Xn});var er={"\u222b":"\\int","\u222c":"\\iint","\u222d":"\\iiint","\u222e":"\\oint","\u222f":"\\oiint","\u2230":"\\oiiint"};function tr(e,t){var n,r,o,i,a=!1,s=Je(e,"supsub");if(s?(n=s.sup,r=s.sub,o=Qe(s.base,"operatorname"),a=!0):o=Qe(e,"operatorname"),0<o.body.length){for(var l=dt(o.body.map((function(e){var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e})),t.withFont("mathrm"),!0),u=0;u<l.length;u++){var c=l[u];c instanceof I&&(c.text=c.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}i=Xe.makeSpan(["mop"],l,t)}else i=Xe.makeSpan(["mop"],[],t);return a?$n(i,n,r,t,t.style,0,0):i}function nr(e,t,n){for(var r=dt(e,t,!1),o=t.sizeMultiplier/n.sizeMultiplier,i=0;i<r.length;i++){var a=r[i].classes.indexOf("sizing");a<0?Array.prototype.push.apply(r[i].classes,t.sizingClasses(n)):r[i].classes[a+1]==="reset-size"+t.size&&(r[i].classes[a+1]="reset-size"+n.size),r[i].height*=o,r[i].depth*=o}return Xe.makeFragment(r)}ft({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ft({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ft({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222b","\u222c","\u222d","\u222e","\u222f","\u2230"],props:{numArgs:0},handler:function(e){var t=e.parser,n=e.funcName;return 1===n.length&&(n=er[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Zn,mathmlBuilder:Xn}),ft({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"operatorname",mode:n.mode,body:pt(o),alwaysHandleSupSub:"\\operatorname*"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:tr,mathmlBuilder:function(e,t){for(var n=Mt(e.body,t.withFont("mathrm")),r=!0,o=0;o<n.length;o++){var i=n[o];if(!(i instanceof It.SpaceNode))if(i instanceof It.MathNode)switch(i.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var a=i.children[0];1===i.children.length&&a instanceof It.TextNode?a.text=a.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):r=!1;break;default:r=!1}else r=!1}if(r){var s=n.map((function(e){return e.toText()})).join("");n=[new It.TextNode(s)]}var l=new It.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new It.MathNode("mo",[At("\u2061","text")]);return e.parentIsSupSub?new It.MathNode("mo",[l,u]):It.newDocumentFragment([l,u])}}),ht({type:"ordgroup",htmlBuilder:function(e,t){return e.semisimple?Xe.makeFragment(dt(e.body,t,!1)):Xe.makeSpan(["mord"],dt(e.body,t,!0),t)},mathmlBuilder:function(e,t){return jt(e.body,t,!0)}}),ft({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(e,t){var n=e.parser,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=kt(e.body,t.havingCrampedStyle()),r=Xe.makeLineSpan("overline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*o},{type:"elem",elem:r},{type:"kern",size:o}]},t);return Xe.makeSpan(["mord","overline"],[i],t)},mathmlBuilder:function(e,t){var n=new It.MathNode("mo",[new It.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new It.MathNode("mover",[Rt(e.body,t),n]);return r.setAttribute("accent","true"),r}}),ft({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"phantom",mode:n.mode,body:pt(r)}},htmlBuilder:function(e,t){var n=dt(e.body,t.withPhantom(),!1);return Xe.makeFragment(n)},mathmlBuilder:function(e,t){var n=Mt(e.body,t);return new It.MathNode("mphantom",n)}}),ft({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=Xe.makeSpan([],[kt(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r<n.children.length;r++)n.children[r].height=0,n.children[r].depth=0;return n=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),Xe.makeSpan(["mord"],[n],t)},mathmlBuilder:function(e,t){var n=Mt(pt(e.body),t),r=new It.MathNode("mphantom",n),o=new It.MathNode("mpadded",[r]);return o.setAttribute("height","0px"),o.setAttribute("depth","0px"),o}}),ft({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){var n=e.parser,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:function(e,t){var n=Xe.makeSpan(["inner"],[kt(e.body,t.withPhantom())]),r=Xe.makeSpan(["fix"],[]);return Xe.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:function(e,t){var n=Mt(pt(e.body),t),r=new It.MathNode("mphantom",n),o=new It.MathNode("mpadded",[r]);return o.setAttribute("width","0px"),o}}),ft({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(e,t){var n=e.parser,r=Qe(t[0],"size").value,o=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:o}},htmlBuilder:function(e,t){var n=kt(e.body,t),r=Re(e.dy,t);return Xe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:function(e,t){var n=new It.MathNode("mpadded",[Rt(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}}),ft({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(e,t,n){var r=e.parser,o=n[0],i=Qe(t[0],"size"),a=Qe(t[1],"size");return{type:"rule",mode:r.mode,shift:o&&Qe(o,"size").value,width:i.value,height:a.value}},htmlBuilder:function(e,t){var n=Xe.makeSpan(["mord","rule"],[],t),r=Re(e.width,t),o=Re(e.height,t),i=e.shift?Re(e.shift,t):0;return n.style.borderRightWidth=r+"em",n.style.borderTopWidth=o+"em",n.style.bottom=i+"em",n.width=r,n.height=o+i,n.depth=-i,n.maxFontSize=1.125*o*t.sizeMultiplier,n},mathmlBuilder:function(e,t){var n=Re(e.width,t),r=Re(e.height,t),o=e.shift?Re(e.shift,t):0,i=t.color&&t.getColor()||"black",a=new It.MathNode("mspace");a.setAttribute("mathbackground",i),a.setAttribute("width",n+"em"),a.setAttribute("height",r+"em");var s=new It.MathNode("mpadded",[a]);return 0<=o?s.setAttribute("height","+"+o+"em"):(s.setAttribute("height",o+"em"),s.setAttribute("depth","+"+-o+"em")),s.setAttribute("voffset",o+"em"),s}});var rr=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];ft({type:"sizing",names:rr,props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.breakOnTokenText,n=e.funcName,r=e.parser,o=r.parseExpression(!1,t);return{type:"sizing",mode:r.mode,size:rr.indexOf(n)+1,body:o}},htmlBuilder:function(e,t){var n=t.havingSize(e.size);return nr(e.body,n,t)},mathmlBuilder:function(e,t){var n=t.havingSize(e.size),r=Mt(e.body,n),o=new It.MathNode("mstyle",r);return o.setAttribute("mathsize",n.sizeMultiplier+"em"),o}}),ft({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(e,t,n){var r=e.parser,o=!1,i=!1,a=n[0]&&Qe(n[0],"ordgroup");if(a)for(var s="",l=0;l<a.body.length;++l)if("t"===(s=a.body[l].text))o=!0;else{if("b"!==s){i=o=!1;break}i=!0}else i=o=!0;var u=t[0];return{type:"smash",mode:r.mode,body:u,smashHeight:o,smashDepth:i}},htmlBuilder:function(e,t){var n=Xe.makeSpan([],[kt(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r<n.children.length;r++)n.children[r].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var o=0;o<n.children.length;o++)n.children[o].depth=0;var i=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return Xe.makeSpan(["mord"],[i],t)},mathmlBuilder:function(e,t){var n=new It.MathNode("mpadded",[Rt(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),ft({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(e,t,n){var r=e.parser,o=n[0],i=t[0];return{type:"sqrt",mode:r.mode,body:i,index:o}},htmlBuilder:function(e,t){var n=kt(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=Xe.wrapFragment(n,t);var r=t.fontMetrics().defaultRuleThickness,o=r;t.style.id<x.TEXT.id&&(o=t.fontMetrics().xHeight);var i=r+o/4,a=function(e,t){var n,r,o=t.havingBaseSizing(),i=dn("\\surd",e*o.sizeMultiplier,pn,o),a=o.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),l=0,u=0,c=0;return r="small"===i.type?(e<1?a=1:e<1.4&&(a=.7),u=(1+s)/a,(n=nn("sqrtMain",l=(1+s+.08)/a,c=1e3+1e3*s+80,s,t)).style.minWidth="0.853em",.833/a):"large"===i.type?(c=1080*cn[i.size],u=(cn[i.size]+s)/a,l=(cn[i.size]+s+.08)/a,(n=nn("sqrtSize"+i.size,l,c,s,t)).style.minWidth="1.02em",1/a):(u=e+s,(n=nn("sqrtTall",l=e+s+.08,c=Math.floor(1e3*e+s)+80,s,t)).style.minWidth="0.742em",1.056),n.height=u,n.style.height=l+"em",{span:n,advanceWidth:r,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*a}}(n.height+n.depth+i+r,t),s=a.span,l=a.ruleWidth,u=a.advanceWidth,c=s.height-l;c>n.height+n.depth+i&&(i=(i+c-n.height-n.depth)/2);var f=s.height-n.height-i-l;n.style.paddingLeft=u+"em";var h=Xe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+f)},{type:"elem",elem:s},{type:"kern",size:l}]},t);if(e.index){var p=t.havingStyle(x.SCRIPTSCRIPT),d=kt(e.index,p,t),m=.6*(h.height-h.depth),y=Xe.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:d}]},t),v=Xe.makeSpan(["root"],[y]);return Xe.makeSpan(["mord","sqrt"],[v,h],t)}return Xe.makeSpan(["mord","sqrt"],[h],t)},mathmlBuilder:function(e,t){var n=e.body,r=e.index;return r?new It.MathNode("mroot",[Rt(n,t),Rt(r,t)]):new It.MathNode("msqrt",[Rt(n,t)])}});var or={display:x.DISPLAY,text:x.TEXT,script:x.SCRIPT,scriptscript:x.SCRIPTSCRIPT};ft({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(e){var t=e.breakOnTokenText,n=e.funcName,r=e.parser,o=r.parseExpression(!0,t),i=n.slice(1,n.length-5);return{type:"styling",mode:r.mode,style:i,body:o}},htmlBuilder:function(e,t){var n=or[e.style],r=t.havingStyle(n).withFont("");return nr(e.body,r,t)},mathmlBuilder:function(e,t){var n=or[e.style],r=t.havingStyle(n),o=Mt(e.body,r),i=new It.MathNode("mstyle",o),a={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return i.setAttribute("scriptlevel",a[0]),i.setAttribute("displaystyle",a[1]),i}}),ht({type:"supsub",htmlBuilder:function(e,t){var n,r,o,i=(r=t,(o=(n=e).base)?"op"!==o.type?"operatorname"!==o.type?"accent"===o.type?f.isCharacterBox(o.base)?Ft:null:"horizBrace"===o.type&&!n.sub===o.isOver?Wn:null:o.alwaysHandleSupSub&&(r.style.size===x.DISPLAY.size||o.limits)?tr:null:o.limits&&(r.style.size===x.DISPLAY.size||o.alwaysHandleSupSub)?Zn:null:null);if(i)return i(e,t);var a,s,l,u=e.base,c=e.sup,h=e.sub,p=kt(u,t),d=t.fontMetrics(),m=0,y=0,v=u&&f.isCharacterBox(u);if(c){var g=t.havingStyle(t.style.sup());a=kt(c,g,t),v||(m=p.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(h){var b=t.havingStyle(t.style.sub());s=kt(h,b,t),v||(y=p.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}l=t.style===x.DISPLAY?d.sup1:t.style.cramped?d.sup3:d.sup2;var w,_=t.sizeMultiplier,E=.5/d.ptPerEm/_+"em",k=null;if(s){var O=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(p instanceof I||O)&&(k=-p.italic+"em")}if(a&&s){m=Math.max(m,l,a.depth+.25*d.xHeight),y=Math.max(y,d.sub2);var S=4*d.defaultRuleThickness;if(m-a.depth-(s.height-y)<S){y=S-(m-a.depth)+s.height;var N=.8*d.xHeight-(m-a.depth);0<N&&(m+=N,y-=N)}var A=[{type:"elem",elem:s,shift:y,marginRight:E,marginLeft:k},{type:"elem",elem:a,shift:-m,marginRight:E}];w=Xe.makeVList({positionType:"individualShift",children:A},t)}else if(s){y=Math.max(y,d.sub1,s.height-.8*d.xHeight);var C=[{type:"elem",elem:s,marginLeft:k,marginRight:E}];w=Xe.makeVList({positionType:"shift",positionData:y,children:C},t)}else{if(!a)throw new Error("supsub must have either sup or sub.");m=Math.max(m,l,a.depth+.25*d.xHeight),w=Xe.makeVList({positionType:"shift",positionData:-m,children:[{type:"elem",elem:a,marginRight:E}]},t)}var q=Et(p,"right")||"mord";return Xe.makeSpan([q],[p,Xe.makeSpan(["msupsub"],[w])],t)},mathmlBuilder:function(e,t){var n,r=!1,o=Je(e.base,"horizBrace");o&&!!e.sup===o.isOver&&(r=!0,n=o.isOver),!e.base||"op"!==e.base.type&&"operatorname"!==e.base.type||(e.base.parentIsSupSub=!0);var i,a=[Rt(e.base,t)];if(e.sub&&a.push(Rt(e.sub,t)),e.sup&&a.push(Rt(e.sup,t)),r)i=n?"mover":"munder";else if(e.sub)if(e.sup){var s=e.base;i=s&&"op"===s.type&&s.limits&&t.style===x.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===x.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=e.base;i=l&&"op"===l.type&&l.limits&&(t.style===x.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===x.DISPLAY)?"munder":"msub"}else{var u=e.base;i=u&&"op"===u.type&&u.limits&&(t.style===x.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||t.style===x.DISPLAY)?"mover":"msup"}return new It.MathNode(i,a)}}),ht({type:"atom",htmlBuilder:function(e,t){return Xe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder:function(e,t){var n=new It.MathNode("mo",[At(e.text,e.mode)]);if("bin"===e.family){var r=qt(e,t);"bold-italic"===r&&n.setAttribute("mathvariant",r)}else"punct"===e.family?n.setAttribute("separator","true"):"open"!==e.family&&"close"!==e.family||n.setAttribute("stretchy","false");return n}});var ir={mi:"italic",mn:"normal",mtext:"normal"};ht({type:"mathord",htmlBuilder:function(e,t){return Xe.makeOrd(e,t,"mathord")},mathmlBuilder:function(e,t){var n=new It.MathNode("mi",[At(e.text,e.mode,t)]),r=qt(e,t)||"italic";return r!==ir[n.type]&&n.setAttribute("mathvariant",r),n}}),ht({type:"textord",htmlBuilder:function(e,t){return Xe.makeOrd(e,t,"textord")},mathmlBuilder:function(e,t){var n,r=At(e.text,e.mode,t),o=qt(e,t)||"normal";return n="text"===e.mode?new It.MathNode("mtext",[r]):/[0-9]/.test(e.text)?new It.MathNode("mn",[r]):"\\prime"===e.text?new It.MathNode("mo",[r]):new It.MathNode("mi",[r]),o!==ir[n.type]&&n.setAttribute("mathvariant",o),n}});var ar={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},sr={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};function lr(){var e=new It.MathNode("mtd",[]);return e.setAttribute("width","50%"),e}function ur(e,t){var n=e.font;return n?cr[n]?t.withTextFontFamily(cr[n]):fr[n]?t.withTextFontWeight(fr[n]):t.withTextFontShape(hr[n]):t}ht({type:"spacing",htmlBuilder:function(e,t){if(sr.hasOwnProperty(e.text)){var n=sr[e.text].className||"";if("text"!==e.mode)return Xe.makeSpan(["mspace",n],[Xe.mathsym(e.text,e.mode,t)],t);var r=Xe.makeOrd(e,t,"textord");return r.classes.push(n),r}if(ar.hasOwnProperty(e.text))return Xe.makeSpan(["mspace",ar[e.text]],[],t);throw new a('Unknown type of space "'+e.text+'"')},mathmlBuilder:function(e){if(sr.hasOwnProperty(e.text))return new It.MathNode("mtext",[new It.TextNode("\xa0")]);if(ar.hasOwnProperty(e.text))return new It.MathNode("mspace");throw new a('Unknown type of space "'+e.text+'"')}}),ht({type:"tag",mathmlBuilder:function(e,t){var n=new It.MathNode("mtable",[new It.MathNode("mtr",[lr(),new It.MathNode("mtd",[jt(e.body,t)]),lr(),new It.MathNode("mtd",[jt(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var cr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},fr={"\\textbf":"textbf","\\textmd":"textmd"},hr={"\\textit":"textit","\\textup":"textup"};ft({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(e,t){var n=e.parser,r=e.funcName,o=t[0];return{type:"text",mode:n.mode,body:pt(o),font:r}},htmlBuilder:function(e,t){var n=ur(e,t),r=dt(e.body,n,!0);return Xe.makeSpan(["mord","text"],Xe.tryCombineChars(r),n)},mathmlBuilder:function(e,t){var n=ur(e,t);return jt(e.body,n)}}),ft({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(e,t){return{type:"underline",mode:e.parser.mode,body:t[0]}},htmlBuilder:function(e,t){var n=kt(e.body,t),r=Xe.makeLineSpan("underline-line",t),o=t.fontMetrics().defaultRuleThickness,i=Xe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:o},{type:"elem",elem:r},{type:"kern",size:3*o},{type:"elem",elem:n}]},t);return Xe.makeSpan(["mord","underline"],[i],t)},mathmlBuilder:function(e,t){var n=new It.MathNode("mo",[new It.TextNode("\u203e")]);n.setAttribute("stretchy","true");var r=new It.MathNode("munder",[Rt(e.body,t),n]);return r.setAttribute("accentunder","true"),r}}),ft({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(){throw new a("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(e,t){for(var n=pr(e),r=[],o=t.havingStyle(t.style.text()),i=0;i<n.length;i++){var a=n[i];"~"===a&&(a="\\textasciitilde"),r.push(Xe.makeSymbol(a,"Typewriter-Regular",e.mode,o,["mord","texttt"]))}return Xe.makeSpan(["mord","text"].concat(o.sizingClasses(t)),Xe.tryCombineChars(r),o)},mathmlBuilder:function(e){var t=new It.TextNode(pr(e)),n=new It.MathNode("mtext",[t]);return n.setAttribute("mathvariant","monospace"),n}});var pr=function(e){return e.body.replace(/ /g,e.star?"\u2423":"\xa0")},dr=lt,mr=new RegExp("^(\\\\[a-zA-Z@]+)[ \r\n\t]*$"),yr=new RegExp("[\u0300-\u036f]+$"),vr=function(){function e(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|([!-\\[\\]-\u2027\u202a-\ud7ff\uf900-\uffff][\u0300-\u036f]*|[\ud800-\udbff][\udc00-\udfff][\u0300-\u036f]*|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*|\\\\[a-zA-Z@]+[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14}}var t=e.prototype;return t.setCatcode=function(e,t){this.catcodes[e]=t},t.lex=function(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new i("EOF",new o(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new a("Unexpected character: '"+e[t]+"'",new i(e[t],new o(this,t,t+1)));var r=n[2]||" ";if(14===this.catcodes[r]){var s=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===s?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=s+1,this.lex()}var l=r.match(mr);return l&&(r=l[1]),new i(r,new o(this,t,this.tokenRegex.lastIndex))},e}(),gr=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}var t=e.prototype;return t.beginGroup=function(){this.undefStack.push({})},t.endGroup=function(){if(0===this.undefStack.length)throw new a("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(void 0===e[t]?delete this.current[t]:this.current[t]=e[t])},t.has=function(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)},t.get=function(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]},t.set=function(e,t,n){if(void 0===n&&(n=!1),n){for(var r=0;r<this.undefStack.length;r++)delete this.undefStack[r][e];0<this.undefStack.length&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}this.current[e]=t},e}(),br={},wr=br;function xr(e,t){br[e]=t}xr("\\@firstoftwo",(function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}})),xr("\\@secondoftwo",(function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}})),xr("\\@ifnextchar",(function(e){var t=e.consumeArgs(3),n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}})),xr("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),xr("\\TextOrMath",(function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}}));var _r={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};function Er(e,t){var n=e.consumeArgs(1)[0];if(1!==n.length)throw new a("\\gdef's first argument must be a macro name");var r=n[0].text,o=0;for(n=e.consumeArgs(1)[0];1===n.length&&"#"===n[0].text;){if(1!==(n=e.consumeArgs(1)[0]).length)throw new a('Invalid argument number length "'+n.length+'"');if(!/^[1-9]$/.test(n[0].text))throw new a('Invalid argument number "'+n[0].text+'"');if(o++,parseInt(n[0].text)!==o)throw new a('Argument number "'+n[0].text+'" out of order');n=e.consumeArgs(1)[0]}return e.macros.set(r,{tokens:n,numArgs:o},t),""}function kr(e,t,n){var r=e.consumeArgs(1)[0];if(1!==r.length)throw new a("\\newcommand's first argument must be a macro name");var o=r[0].text,i=e.isDefined(o);if(i&&!t)throw new a("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!i&&!n)throw new a("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var s=0;if(1===(r=e.consumeArgs(1)[0]).length&&"["===r[0].text){for(var l="",u=e.expandNextToken();"]"!==u.text&&"EOF"!==u.text;)l+=u.text,u=e.expandNextToken();if(!l.match(/^\s*[0-9]+\s*$/))throw new a("Invalid number of arguments: "+l);s=parseInt(l),r=e.consumeArgs(1)[0]}return e.macros.set(o,{tokens:r,numArgs:s}),""}xr("\\char",(function(e){var t,n=e.popToken(),r="";if("'"===n.text)t=8,n=e.popToken();else if('"'===n.text)t=16,n=e.popToken();else if("`"===n.text)if("\\"===(n=e.popToken()).text[0])r=n.text.charCodeAt(1);else{if("EOF"===n.text)throw new a("\\char` missing argument");r=n.text.charCodeAt(0)}else t=10;if(t){if(null==(r=_r[n.text])||t<=r)throw new a("Invalid base-"+t+" digit "+n.text);for(var o;null!=(o=_r[e.future().text])&&o<t;)r*=t,r+=o,e.popToken()}return"\\@char{"+r+"}"})),xr("\\gdef",(function(e){return Er(e,!0)})),xr("\\def",(function(e){return Er(e,!1)})),xr("\\global",(function(e){var t=e.consumeArgs(1)[0];if(1!==t.length)throw new a("Invalid command after \\global");var n=t[0].text;if("\\def"===n)return Er(e,!0);throw new a("Invalid command '"+n+"' after \\global")})),xr("\\newcommand",(function(e){return kr(e,!1,!0)})),xr("\\renewcommand",(function(e){return kr(e,!0,!1)})),xr("\\providecommand",(function(e){return kr(e,!0,!0)})),xr("\\bgroup","{"),xr("\\egroup","}"),xr("\\lq","`"),xr("\\rq","'"),xr("\\aa","\\r a"),xr("\\AA","\\r A"),xr("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),xr("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),xr("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),xr("\u212c","\\mathscr{B}"),xr("\u2130","\\mathscr{E}"),xr("\u2131","\\mathscr{F}"),xr("\u210b","\\mathscr{H}"),xr("\u2110","\\mathscr{I}"),xr("\u2112","\\mathscr{L}"),xr("\u2133","\\mathscr{M}"),xr("\u211b","\\mathscr{R}"),xr("\u212d","\\mathfrak{C}"),xr("\u210c","\\mathfrak{H}"),xr("\u2128","\\mathfrak{Z}"),xr("\\Bbbk","\\Bbb{k}"),xr("\xb7","\\cdotp"),xr("\\llap","\\mathllap{\\textrm{#1}}"),xr("\\rlap","\\mathrlap{\\textrm{#1}}"),xr("\\clap","\\mathclap{\\textrm{#1}}"),xr("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),xr("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),xr("\\ne","\\neq"),xr("\u2260","\\neq"),xr("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),xr("\u2209","\\notin"),xr("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),xr("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),xr("\u225a","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225a}}"),xr("\u225b","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225b}}"),xr("\u225d","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225d}}"),xr("\u225e","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225e}}"),xr("\u225f","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225f}}"),xr("\u27c2","\\perp"),xr("\u203c","\\mathclose{!\\mkern-0.8mu!}"),xr("\u220c","\\notni"),xr("\u231c","\\ulcorner"),xr("\u231d","\\urcorner"),xr("\u231e","\\llcorner"),xr("\u231f","\\lrcorner"),xr("\xa9","\\copyright"),xr("\xae","\\textregistered"),xr("\ufe0f","\\textregistered"),xr("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),xr("\u22ee","\\vdots"),xr("\\varGamma","\\mathit{\\Gamma}"),xr("\\varDelta","\\mathit{\\Delta}"),xr("\\varTheta","\\mathit{\\Theta}"),xr("\\varLambda","\\mathit{\\Lambda}"),xr("\\varXi","\\mathit{\\Xi}"),xr("\\varPi","\\mathit{\\Pi}"),xr("\\varSigma","\\mathit{\\Sigma}"),xr("\\varUpsilon","\\mathit{\\Upsilon}"),xr("\\varPhi","\\mathit{\\Phi}"),xr("\\varPsi","\\mathit{\\Psi}"),xr("\\varOmega","\\mathit{\\Omega}"),xr("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),xr("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu"),xr("\\boxed","\\fbox{$\\displaystyle{#1}$}"),xr("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),xr("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),xr("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Or={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};xr("\\dots",(function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Or?t=Or[n]:("\\not"===n.substr(0,4)||n in G.math&&f.contains(["bin","rel"],G.math[n].group))&&(t="\\dotsb"),t}));var Sr={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};xr("\\dotso",(function(e){return e.future().text in Sr?"\\ldots\\,":"\\ldots"})),xr("\\dotsc",(function(e){var t=e.future().text;return t in Sr&&","!==t?"\\ldots\\,":"\\ldots"})),xr("\\cdots",(function(e){return e.future().text in Sr?"\\@cdots\\,":"\\@cdots"})),xr("\\dotsb","\\cdots"),xr("\\dotsm","\\cdots"),xr("\\dotsi","\\!\\cdots"),xr("\\dotsx","\\ldots\\,"),xr("\\DOTSI","\\relax"),xr("\\DOTSB","\\relax"),xr("\\DOTSX","\\relax"),xr("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),xr("\\,","\\tmspace+{3mu}{.1667em}"),xr("\\thinspace","\\,"),xr("\\>","\\mskip{4mu}"),xr("\\:","\\tmspace+{4mu}{.2222em}"),xr("\\medspace","\\:"),xr("\\;","\\tmspace+{5mu}{.2777em}"),xr("\\thickspace","\\;"),xr("\\!","\\tmspace-{3mu}{.1667em}"),xr("\\negthinspace","\\!"),xr("\\negmedspace","\\tmspace-{4mu}{.2222em}"),xr("\\negthickspace","\\tmspace-{5mu}{.277em}"),xr("\\enspace","\\kern.5em "),xr("\\enskip","\\hskip.5em\\relax"),xr("\\quad","\\hskip1em\\relax"),xr("\\qquad","\\hskip2em\\relax"),xr("\\tag","\\@ifstar\\tag@literal\\tag@paren"),xr("\\tag@paren","\\tag@literal{({#1})}"),xr("\\tag@literal",(function(e){if(e.macros.get("\\df@tag"))throw new a("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"})),xr("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),xr("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),xr("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),xr("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),xr("\\pmb","\\html@mathml{\\@binrel{#1}{\\mathrlap{#1}\\kern0.5px#1}}{\\mathbf{#1}}"),xr("\\\\","\\newline"),xr("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var Nr=F["Main-Regular"]["T".charCodeAt(0)][1]-.7*F["Main-Regular"]["A".charCodeAt(0)][1]+"em";xr("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+Nr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),xr("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+Nr+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),xr("\\hspace","\\@ifstar\\@hspacer\\@hspace"),xr("\\@hspace","\\hskip #1\\relax"),xr("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),xr("\\ordinarycolon",":"),xr("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),xr("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),xr("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),xr("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),xr("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),xr("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),xr("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),xr("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),xr("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),xr("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),xr("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),xr("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),xr("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),xr("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),xr("\u2237","\\dblcolon"),xr("\u2239","\\eqcolon"),xr("\u2254","\\coloneqq"),xr("\u2255","\\eqqcolon"),xr("\u2a74","\\Coloneqq"),xr("\\ratio","\\vcentcolon"),xr("\\coloncolon","\\dblcolon"),xr("\\colonequals","\\coloneqq"),xr("\\coloncolonequals","\\Coloneqq"),xr("\\equalscolon","\\eqqcolon"),xr("\\equalscoloncolon","\\Eqqcolon"),xr("\\colonminus","\\coloneq"),xr("\\coloncolonminus","\\Coloneq"),xr("\\minuscolon","\\eqcolon"),xr("\\minuscoloncolon","\\Eqcolon"),xr("\\coloncolonapprox","\\Colonapprox"),xr("\\coloncolonsim","\\Colonsim"),xr("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),xr("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),xr("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),xr("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),xr("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220c}}"),xr("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),xr("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),xr("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),xr("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),xr("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),xr("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),xr("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),xr("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),xr("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),xr("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),xr("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),xr("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),xr("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228a}"),xr("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2acb}"),xr("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228b}"),xr("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2acc}"),xr("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27e6}}"),xr("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27e7}}"),xr("\u27e6","\\llbracket"),xr("\u27e7","\\rrbracket"),xr("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),xr("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),xr("\u2983","\\lBrace"),xr("\u2984","\\rBrace"),xr("\\darr","\\downarrow"),xr("\\dArr","\\Downarrow"),xr("\\Darr","\\Downarrow"),xr("\\lang","\\langle"),xr("\\rang","\\rangle"),xr("\\uarr","\\uparrow"),xr("\\uArr","\\Uparrow"),xr("\\Uarr","\\Uparrow"),xr("\\N","\\mathbb{N}"),xr("\\R","\\mathbb{R}"),xr("\\Z","\\mathbb{Z}"),xr("\\alef","\\aleph"),xr("\\alefsym","\\aleph"),xr("\\Alpha","\\mathrm{A}"),xr("\\Beta","\\mathrm{B}"),xr("\\bull","\\bullet"),xr("\\Chi","\\mathrm{X}"),xr("\\clubs","\\clubsuit"),xr("\\cnums","\\mathbb{C}"),xr("\\Complex","\\mathbb{C}"),xr("\\Dagger","\\ddagger"),xr("\\diamonds","\\diamondsuit"),xr("\\empty","\\emptyset"),xr("\\Epsilon","\\mathrm{E}"),xr("\\Eta","\\mathrm{H}"),xr("\\exist","\\exists"),xr("\\harr","\\leftrightarrow"),xr("\\hArr","\\Leftrightarrow"),xr("\\Harr","\\Leftrightarrow"),xr("\\hearts","\\heartsuit"),xr("\\image","\\Im"),xr("\\infin","\\infty"),xr("\\Iota","\\mathrm{I}"),xr("\\isin","\\in"),xr("\\Kappa","\\mathrm{K}"),xr("\\larr","\\leftarrow"),xr("\\lArr","\\Leftarrow"),xr("\\Larr","\\Leftarrow"),xr("\\lrarr","\\leftrightarrow"),xr("\\lrArr","\\Leftrightarrow"),xr("\\Lrarr","\\Leftrightarrow"),xr("\\Mu","\\mathrm{M}"),xr("\\natnums","\\mathbb{N}"),xr("\\Nu","\\mathrm{N}"),xr("\\Omicron","\\mathrm{O}"),xr("\\plusmn","\\pm"),xr("\\rarr","\\rightarrow"),xr("\\rArr","\\Rightarrow"),xr("\\Rarr","\\Rightarrow"),xr("\\real","\\Re"),xr("\\reals","\\mathbb{R}"),xr("\\Reals","\\mathbb{R}"),xr("\\Rho","\\mathrm{P}"),xr("\\sdot","\\cdot"),xr("\\sect","\\S"),xr("\\spades","\\spadesuit"),xr("\\sub","\\subset"),xr("\\sube","\\subseteq"),xr("\\supe","\\supseteq"),xr("\\Tau","\\mathrm{T}"),xr("\\thetasym","\\vartheta"),xr("\\weierp","\\wp"),xr("\\Zeta","\\mathrm{Z}"),xr("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),xr("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),xr("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),xr("\\blue","\\textcolor{##6495ed}{#1}"),xr("\\orange","\\textcolor{##ffa500}{#1}"),xr("\\pink","\\textcolor{##ff00af}{#1}"),xr("\\red","\\textcolor{##df0030}{#1}"),xr("\\green","\\textcolor{##28ae7b}{#1}"),xr("\\gray","\\textcolor{gray}{#1}"),xr("\\purple","\\textcolor{##9d38bd}{#1}"),xr("\\blueA","\\textcolor{##ccfaff}{#1}"),xr("\\blueB","\\textcolor{##80f6ff}{#1}"),xr("\\blueC","\\textcolor{##63d9ea}{#1}"),xr("\\blueD","\\textcolor{##11accd}{#1}"),xr("\\blueE","\\textcolor{##0c7f99}{#1}"),xr("\\tealA","\\textcolor{##94fff5}{#1}"),xr("\\tealB","\\textcolor{##26edd5}{#1}"),xr("\\tealC","\\textcolor{##01d1c1}{#1}"),xr("\\tealD","\\textcolor{##01a995}{#1}"),xr("\\tealE","\\textcolor{##208170}{#1}"),xr("\\greenA","\\textcolor{##b6ffb0}{#1}"),xr("\\greenB","\\textcolor{##8af281}{#1}"),xr("\\greenC","\\textcolor{##74cf70}{#1}"),xr("\\greenD","\\textcolor{##1fab54}{#1}"),xr("\\greenE","\\textcolor{##0d923f}{#1}"),xr("\\goldA","\\textcolor{##ffd0a9}{#1}"),xr("\\goldB","\\textcolor{##ffbb71}{#1}"),xr("\\goldC","\\textcolor{##ff9c39}{#1}"),xr("\\goldD","\\textcolor{##e07d10}{#1}"),xr("\\goldE","\\textcolor{##a75a05}{#1}"),xr("\\redA","\\textcolor{##fca9a9}{#1}"),xr("\\redB","\\textcolor{##ff8482}{#1}"),xr("\\redC","\\textcolor{##f9685d}{#1}"),xr("\\redD","\\textcolor{##e84d39}{#1}"),xr("\\redE","\\textcolor{##bc2612}{#1}"),xr("\\maroonA","\\textcolor{##ffbde0}{#1}"),xr("\\maroonB","\\textcolor{##ff92c6}{#1}"),xr("\\maroonC","\\textcolor{##ed5fa6}{#1}"),xr("\\maroonD","\\textcolor{##ca337c}{#1}"),xr("\\maroonE","\\textcolor{##9e034e}{#1}"),xr("\\purpleA","\\textcolor{##ddd7ff}{#1}"),xr("\\purpleB","\\textcolor{##c6b9fc}{#1}"),xr("\\purpleC","\\textcolor{##aa87ff}{#1}"),xr("\\purpleD","\\textcolor{##7854ab}{#1}"),xr("\\purpleE","\\textcolor{##543b78}{#1}"),xr("\\mintA","\\textcolor{##f5f9e8}{#1}"),xr("\\mintB","\\textcolor{##edf2df}{#1}"),xr("\\mintC","\\textcolor{##e0e5cc}{#1}"),xr("\\grayA","\\textcolor{##f6f7f7}{#1}"),xr("\\grayB","\\textcolor{##f0f1f2}{#1}"),xr("\\grayC","\\textcolor{##e3e5e6}{#1}"),xr("\\grayD","\\textcolor{##d6d8da}{#1}"),xr("\\grayE","\\textcolor{##babec2}{#1}"),xr("\\grayF","\\textcolor{##888d93}{#1}"),xr("\\grayG","\\textcolor{##626569}{#1}"),xr("\\grayH","\\textcolor{##3b3e40}{#1}"),xr("\\grayI","\\textcolor{##21242c}{#1}"),xr("\\kaBlue","\\textcolor{##314453}{#1}"),xr("\\kaGreen","\\textcolor{##71B307}{#1}");var Ar={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},Cr=function(){function e(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new gr(wr,t.macros),this.mode=n,this.stack=[]}var t=e.prototype;return t.feed=function(e){this.lexer=new vr(e,this.settings)},t.switchMode=function(e){this.mode=e},t.beginGroup=function(){this.macros.beginGroup()},t.endGroup=function(){this.macros.endGroup()},t.future=function(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]},t.popToken=function(){return this.future(),this.stack.pop()},t.pushToken=function(e){this.stack.push(e)},t.pushTokens=function(e){var t;(t=this.stack).push.apply(t,e)},t.consumeSpaces=function(){for(;" "===this.future().text;)this.stack.pop()},t.consumeArgs=function(e){for(var t=[],n=0;n<e;++n){this.consumeSpaces();var r=this.popToken();if("{"===r.text){for(var o=[],i=1;0!==i;){var s=this.popToken();if(o.push(s),"{"===s.text)++i;else if("}"===s.text)--i;else if("EOF"===s.text)throw new a("End of input in macro argument",r)}o.pop(),o.reverse(),t[n]=o}else{if("EOF"===r.text)throw new a("End of input expecting macro argument");t[n]=[r]}}return t},t.expandOnce=function(){var e=this.popToken(),t=e.text,n=this._getExpansion(t);if(null==n)return this.pushToken(e),e;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new a("Too many expansions: infinite loop or need to increase maxExpand setting");var r=n.tokens;if(n.numArgs)for(var o=this.consumeArgs(n.numArgs),i=(r=r.slice()).length-1;0<=i;--i){var s=r[i];if("#"===s.text){if(0===i)throw new a("Incomplete placeholder at end of macro body",s);if("#"===(s=r[--i]).text)r.splice(i+1,1);else{if(!/^[1-9]$/.test(s.text))throw new a("Not a valid argument number",s);r.splice.apply(r,[i,2].concat(o[s.text-1]))}}}return this.pushTokens(r),r},t.expandAfterFuture=function(){return this.expandOnce(),this.future()},t.expandNextToken=function(){for(;;){var e=this.expandOnce();if(e instanceof i){if("\\relax"!==e.text)return this.stack.pop();this.stack.pop()}}throw new Error},t.expandMacro=function(e){if(this.macros.get(e)){var t=[],n=this.stack.length;for(this.pushToken(new i(e));this.stack.length>n;)this.expandOnce()instanceof i&&t.push(this.stack.pop());return t}},t.expandMacroAsText=function(e){var t=this.expandMacro(e);return t?t.map((function(e){return e.text})).join(""):t},t._getExpansion=function(e){var t=this.macros.get(e);if(null==t)return t;var n="function"==typeof t?t(this):t;if("string"!=typeof n)return n;var r=0;if(-1!==n.indexOf("#"))for(var o=n.replace(/##/g,"");-1!==o.indexOf("#"+(r+1));)++r;for(var i=new vr(n,this.settings),a=[],s=i.lex();"EOF"!==s.text;)a.push(s),s=i.lex();return a.reverse(),{tokens:a,numArgs:r}},t.isDefined=function(e){return this.macros.has(e)||dr.hasOwnProperty(e)||G.math.hasOwnProperty(e)||G.text.hasOwnProperty(e)||Ar.hasOwnProperty(e)},e}(),qr={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030c":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030a":{text:"\\r",math:"\\mathring"},"\u030b":{text:"\\H"}},Mr={"\xe1":"a\u0301","\xe0":"a\u0300","\xe4":"a\u0308","\u01df":"a\u0308\u0304","\xe3":"a\u0303","\u0101":"a\u0304","\u0103":"a\u0306","\u1eaf":"a\u0306\u0301","\u1eb1":"a\u0306\u0300","\u1eb5":"a\u0306\u0303","\u01ce":"a\u030c","\xe2":"a\u0302","\u1ea5":"a\u0302\u0301","\u1ea7":"a\u0302\u0300","\u1eab":"a\u0302\u0303","\u0227":"a\u0307","\u01e1":"a\u0307\u0304","\xe5":"a\u030a","\u01fb":"a\u030a\u0301","\u1e03":"b\u0307","\u0107":"c\u0301","\u010d":"c\u030c","\u0109":"c\u0302","\u010b":"c\u0307","\u010f":"d\u030c","\u1e0b":"d\u0307","\xe9":"e\u0301","\xe8":"e\u0300","\xeb":"e\u0308","\u1ebd":"e\u0303","\u0113":"e\u0304","\u1e17":"e\u0304\u0301","\u1e15":"e\u0304\u0300","\u0115":"e\u0306","\u011b":"e\u030c","\xea":"e\u0302","\u1ebf":"e\u0302\u0301","\u1ec1":"e\u0302\u0300","\u1ec5":"e\u0302\u0303","\u0117":"e\u0307","\u1e1f":"f\u0307","\u01f5":"g\u0301","\u1e21":"g\u0304","\u011f":"g\u0306","\u01e7":"g\u030c","\u011d":"g\u0302","\u0121":"g\u0307","\u1e27":"h\u0308","\u021f":"h\u030c","\u0125":"h\u0302","\u1e23":"h\u0307","\xed":"i\u0301","\xec":"i\u0300","\xef":"i\u0308","\u1e2f":"i\u0308\u0301","\u0129":"i\u0303","\u012b":"i\u0304","\u012d":"i\u0306","\u01d0":"i\u030c","\xee":"i\u0302","\u01f0":"j\u030c","\u0135":"j\u0302","\u1e31":"k\u0301","\u01e9":"k\u030c","\u013a":"l\u0301","\u013e":"l\u030c","\u1e3f":"m\u0301","\u1e41":"m\u0307","\u0144":"n\u0301","\u01f9":"n\u0300","\xf1":"n\u0303","\u0148":"n\u030c","\u1e45":"n\u0307","\xf3":"o\u0301","\xf2":"o\u0300","\xf6":"o\u0308","\u022b":"o\u0308\u0304","\xf5":"o\u0303","\u1e4d":"o\u0303\u0301","\u1e4f":"o\u0303\u0308","\u022d":"o\u0303\u0304","\u014d":"o\u0304","\u1e53":"o\u0304\u0301","\u1e51":"o\u0304\u0300","\u014f":"o\u0306","\u01d2":"o\u030c","\xf4":"o\u0302","\u1ed1":"o\u0302\u0301","\u1ed3":"o\u0302\u0300","\u1ed7":"o\u0302\u0303","\u022f":"o\u0307","\u0231":"o\u0307\u0304","\u0151":"o\u030b","\u1e55":"p\u0301","\u1e57":"p\u0307","\u0155":"r\u0301","\u0159":"r\u030c","\u1e59":"r\u0307","\u015b":"s\u0301","\u1e65":"s\u0301\u0307","\u0161":"s\u030c","\u1e67":"s\u030c\u0307","\u015d":"s\u0302","\u1e61":"s\u0307","\u1e97":"t\u0308","\u0165":"t\u030c","\u1e6b":"t\u0307","\xfa":"u\u0301","\xf9":"u\u0300","\xfc":"u\u0308","\u01d8":"u\u0308\u0301","\u01dc":"u\u0308\u0300","\u01d6":"u\u0308\u0304","\u01da":"u\u0308\u030c","\u0169":"u\u0303","\u1e79":"u\u0303\u0301","\u016b":"u\u0304","\u1e7b":"u\u0304\u0308","\u016d":"u\u0306","\u01d4":"u\u030c","\xfb":"u\u0302","\u016f":"u\u030a","\u0171":"u\u030b","\u1e7d":"v\u0303","\u1e83":"w\u0301","\u1e81":"w\u0300","\u1e85":"w\u0308","\u0175":"w\u0302","\u1e87":"w\u0307","\u1e98":"w\u030a","\u1e8d":"x\u0308","\u1e8b":"x\u0307","\xfd":"y\u0301","\u1ef3":"y\u0300","\xff":"y\u0308","\u1ef9":"y\u0303","\u0233":"y\u0304","\u0177":"y\u0302","\u1e8f":"y\u0307","\u1e99":"y\u030a","\u017a":"z\u0301","\u017e":"z\u030c","\u1e91":"z\u0302","\u017c":"z\u0307","\xc1":"A\u0301","\xc0":"A\u0300","\xc4":"A\u0308","\u01de":"A\u0308\u0304","\xc3":"A\u0303","\u0100":"A\u0304","\u0102":"A\u0306","\u1eae":"A\u0306\u0301","\u1eb0":"A\u0306\u0300","\u1eb4":"A\u0306\u0303","\u01cd":"A\u030c","\xc2":"A\u0302","\u1ea4":"A\u0302\u0301","\u1ea6":"A\u0302\u0300","\u1eaa":"A\u0302\u0303","\u0226":"A\u0307","\u01e0":"A\u0307\u0304","\xc5":"A\u030a","\u01fa":"A\u030a\u0301","\u1e02":"B\u0307","\u0106":"C\u0301","\u010c":"C\u030c","\u0108":"C\u0302","\u010a":"C\u0307","\u010e":"D\u030c","\u1e0a":"D\u0307","\xc9":"E\u0301","\xc8":"E\u0300","\xcb":"E\u0308","\u1ebc":"E\u0303","\u0112":"E\u0304","\u1e16":"E\u0304\u0301","\u1e14":"E\u0304\u0300","\u0114":"E\u0306","\u011a":"E\u030c","\xca":"E\u0302","\u1ebe":"E\u0302\u0301","\u1ec0":"E\u0302\u0300","\u1ec4":"E\u0302\u0303","\u0116":"E\u0307","\u1e1e":"F\u0307","\u01f4":"G\u0301","\u1e20":"G\u0304","\u011e":"G\u0306","\u01e6":"G\u030c","\u011c":"G\u0302","\u0120":"G\u0307","\u1e26":"H\u0308","\u021e":"H\u030c","\u0124":"H\u0302","\u1e22":"H\u0307","\xcd":"I\u0301","\xcc":"I\u0300","\xcf":"I\u0308","\u1e2e":"I\u0308\u0301","\u0128":"I\u0303","\u012a":"I\u0304","\u012c":"I\u0306","\u01cf":"I\u030c","\xce":"I\u0302","\u0130":"I\u0307","\u0134":"J\u0302","\u1e30":"K\u0301","\u01e8":"K\u030c","\u0139":"L\u0301","\u013d":"L\u030c","\u1e3e":"M\u0301","\u1e40":"M\u0307","\u0143":"N\u0301","\u01f8":"N\u0300","\xd1":"N\u0303","\u0147":"N\u030c","\u1e44":"N\u0307","\xd3":"O\u0301","\xd2":"O\u0300","\xd6":"O\u0308","\u022a":"O\u0308\u0304","\xd5":"O\u0303","\u1e4c":"O\u0303\u0301","\u1e4e":"O\u0303\u0308","\u022c":"O\u0303\u0304","\u014c":"O\u0304","\u1e52":"O\u0304\u0301","\u1e50":"O\u0304\u0300","\u014e":"O\u0306","\u01d1":"O\u030c","\xd4":"O\u0302","\u1ed0":"O\u0302\u0301","\u1ed2":"O\u0302\u0300","\u1ed6":"O\u0302\u0303","\u022e":"O\u0307","\u0230":"O\u0307\u0304","\u0150":"O\u030b","\u1e54":"P\u0301","\u1e56":"P\u0307","\u0154":"R\u0301","\u0158":"R\u030c","\u1e58":"R\u0307","\u015a":"S\u0301","\u1e64":"S\u0301\u0307","\u0160":"S\u030c","\u1e66":"S\u030c\u0307","\u015c":"S\u0302","\u1e60":"S\u0307","\u0164":"T\u030c","\u1e6a":"T\u0307","\xda":"U\u0301","\xd9":"U\u0300","\xdc":"U\u0308","\u01d7":"U\u0308\u0301","\u01db":"U\u0308\u0300","\u01d5":"U\u0308\u0304","\u01d9":"U\u0308\u030c","\u0168":"U\u0303","\u1e78":"U\u0303\u0301","\u016a":"U\u0304","\u1e7a":"U\u0304\u0308","\u016c":"U\u0306","\u01d3":"U\u030c","\xdb":"U\u0302","\u016e":"U\u030a","\u0170":"U\u030b","\u1e7c":"V\u0303","\u1e82":"W\u0301","\u1e80":"W\u0300","\u1e84":"W\u0308","\u0174":"W\u0302","\u1e86":"W\u0307","\u1e8c":"X\u0308","\u1e8a":"X\u0307","\xdd":"Y\u0301","\u1ef2":"Y\u0300","\u0178":"Y\u0308","\u1ef8":"Y\u0303","\u0232":"Y\u0304","\u0176":"Y\u0302","\u1e8e":"Y\u0307","\u0179":"Z\u0301","\u017d":"Z\u030c","\u1e90":"Z\u0302","\u017b":"Z\u0307","\u03ac":"\u03b1\u0301","\u1f70":"\u03b1\u0300","\u1fb1":"\u03b1\u0304","\u1fb0":"\u03b1\u0306","\u03ad":"\u03b5\u0301","\u1f72":"\u03b5\u0300","\u03ae":"\u03b7\u0301","\u1f74":"\u03b7\u0300","\u03af":"\u03b9\u0301","\u1f76":"\u03b9\u0300","\u03ca":"\u03b9\u0308","\u0390":"\u03b9\u0308\u0301","\u1fd2":"\u03b9\u0308\u0300","\u1fd1":"\u03b9\u0304","\u1fd0":"\u03b9\u0306","\u03cc":"\u03bf\u0301","\u1f78":"\u03bf\u0300","\u03cd":"\u03c5\u0301","\u1f7a":"\u03c5\u0300","\u03cb":"\u03c5\u0308","\u03b0":"\u03c5\u0308\u0301","\u1fe2":"\u03c5\u0308\u0300","\u1fe1":"\u03c5\u0304","\u1fe0":"\u03c5\u0306","\u03ce":"\u03c9\u0301","\u1f7c":"\u03c9\u0300","\u038e":"\u03a5\u0301","\u1fea":"\u03a5\u0300","\u03ab":"\u03a5\u0308","\u1fe9":"\u03a5\u0304","\u1fe8":"\u03a5\u0306","\u038f":"\u03a9\u0301","\u1ffa":"\u03a9\u0300"},jr=function(){function e(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Cr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}var t=e.prototype;return t.expect=function(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new a("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()},t.consume=function(){this.nextToken=null},t.fetch=function(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken},t.switchMode=function(e){this.mode=e,this.gullet.switchMode(e)},t.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var e=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),e},t.parseExpression=function(t,n){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var o=this.fetch();if(-1!==e.endOfExpression.indexOf(o.text))break;if(n&&o.text===n)break;if(t&&dr[o.text]&&dr[o.text].infix)break;var i=this.parseAtom(n);if(!i)break;r.push(i)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)},t.handleInfixNodes=function(e){for(var t,n=-1,r=0;r<e.length;r++){var o=Je(e[r],"infix");if(o){if(-1!==n)throw new a("only one infix operator per group",o.token);n=r,t=o.replaceWith}}if(-1!==n&&t){var i,s,l=e.slice(0,n),u=e.slice(n+1);return i=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},s=1===u.length&&"ordgroup"===u[0].type?u[0]:{type:"ordgroup",mode:this.mode,body:u},["\\\\abovefrac"===t?this.callFunction(t,[i,e[n],s],[]):this.callFunction(t,[i,s],[])]}return e},t.handleSupSubscript=function(t){var n=this.fetch(),r=n.text;this.consume();var o=this.parseGroup(t,!1,e.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!o)throw new a("Expected group after '"+r+"'",n);return o},t.formatUnsupportedCmd=function(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var r={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[r]}},t.parseAtom=function(e){var t,n,r=this.parseGroup("atom",!1,null,e);if("text"===this.mode)return r;for(;;){this.consumeSpaces();var o=this.fetch();if("\\limits"===o.text||"\\nolimits"===o.text){var i=Je(r,"op");if(i){var s="\\limits"===o.text;i.limits=s,i.alwaysHandleSupSub=!0}else{if(!(i=Je(r,"operatorname"))||!i.alwaysHandleSupSub)throw new a("Limit controls must follow a math operator",o);var l="\\limits"===o.text;i.limits=l}this.consume()}else if("^"===o.text){if(t)throw new a("Double superscript",o);t=this.handleSupSubscript("superscript")}else if("_"===o.text){if(n)throw new a("Double subscript",o);n=this.handleSupSubscript("subscript")}else{if("'"!==o.text)break;if(t)throw new a("Double superscript",o);var u={type:"textord",mode:this.mode,text:"\\prime"},c=[u];for(this.consume();"'"===this.fetch().text;)c.push(u),this.consume();"^"===this.fetch().text&&c.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:c}}}return t||n?{type:"supsub",mode:this.mode,base:r,sup:t,sub:n}:r},t.parseFunction=function(e,t,n){var r=this.fetch(),o=r.text,i=dr[o];if(!i)return null;if(this.consume(),null!=n&&i.greediness<=n)throw new a("Got function '"+o+"' with no arguments"+(t?" as "+t:""),r);if("text"===this.mode&&!i.allowedInText)throw new a("Can't use function '"+o+"' in text mode",r);if("math"===this.mode&&!1===i.allowedInMath)throw new a("Can't use function '"+o+"' in math mode",r);var s=this.parseArguments(o,i),l=s.args,u=s.optArgs;return this.callFunction(o,l,u,r,e)},t.callFunction=function(e,t,n,r,o){var i={funcName:e,parser:this,token:r,breakOnTokenText:o},s=dr[e];if(s&&s.handler)return s.handler(i,t,n);throw new a("No function handler for "+e)},t.parseArguments=function(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var r=t.greediness,o=[],i=[],s=0;s<n;s++){var l=t.argTypes&&t.argTypes[s],u=s<t.numOptionalArgs,c=0<s&&!u||0===s&&!u&&"math"===this.mode,f=this.parseGroupOfType("argument to '"+e+"'",l,u,r,c);if(!f){if(u){i.push(null);continue}throw new a("Expected group after '"+e+"'",this.fetch())}(u?i:o).push(f)}return{args:o,optArgs:i}},t.parseGroupOfType=function(e,t,n,r,o){switch(t){case"color":return o&&this.consumeSpaces(),this.parseColorGroup(n);case"size":return o&&this.consumeSpaces(),this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n,o);case"math":case"text":return this.parseGroup(e,n,r,void 0,t,o);case"hbox":var i=this.parseGroup(e,n,r,void 0,"text",o);return i?{type:"styling",mode:i.mode,body:[i],style:"text"}:i;case"raw":if(o&&this.consumeSpaces(),n&&"{"===this.fetch().text)return null;var s=this.parseStringGroup("raw",n,!0);if(s)return{type:"raw",mode:"text",string:s.text};throw new a("Expected raw group",this.fetch());case"original":case null:case void 0:return this.parseGroup(e,n,r,void 0,void 0,o);default:throw new a("Unknown group type as "+e,this.fetch())}},t.consumeSpaces=function(){for(;" "===this.fetch().text;)this.consume()},t.parseStringGroup=function(e,t,n){var r=t?"[":"{",o=t?"]":"}",i=this.fetch();if(i.text!==r){if(t)return null;if(n&&"EOF"!==i.text&&/[^{}[\]]/.test(i.text))return this.consume(),i}var s=this.mode;this.mode="text",this.expect(r);for(var l,u="",c=this.fetch(),f=0,h=c;(l=this.fetch()).text!==o||n&&0<f;){switch(l.text){case"EOF":throw new a("Unexpected end of input in "+e,c.range(h,u));case r:f++;break;case o:f--}u+=(h=l).text,this.consume()}return this.expect(o),this.mode=s,c.range(h,u)},t.parseRegexGroup=function(e,t){var n=this.mode;this.mode="text";for(var r,o=this.fetch(),i=o,s="";"EOF"!==(r=this.fetch()).text&&e.test(s+r.text);)s+=(i=r).text,this.consume();if(""===s)throw new a("Invalid "+t+": '"+o.text+"'",o);return this.mode=n,o.range(i,s)},t.parseColorGroup=function(e){var t=this.parseStringGroup("color",e);if(!t)return null;var n=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new a("Invalid color: '"+t.text+"'",t);var r=n[0];return/^[0-9a-f]{6}$/i.test(r)&&(r="#"+r),{type:"color-token",mode:this.mode,color:r}},t.parseSizeGroup=function(e){var t,n=!1;if(!(t=e||"{"===this.fetch().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var r=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!r)throw new a("Invalid size: '"+t.text+"'",t);var o={number:+(r[1]+r[2]),unit:r[3]};if(!Ie(o))throw new a("Invalid unit: '"+o.unit+"'",t);return{type:"size",mode:this.mode,value:o,isBlank:n}},t.parseUrlGroup=function(e){this.gullet.lexer.setCatcode("%",13);var t=this.parseStringGroup("url",e,!0);if(this.gullet.lexer.setCatcode("%",14),!t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}},t.parseGroup=function(t,n,r,i,s,l){var u=this.mode;s&&this.switchMode(s),l&&this.consumeSpaces();var c,f=this.fetch(),h=f.text;if(n?"["===h:"{"===h||"\\begingroup"===h){this.consume();var p=e.endOfGroup[h];this.gullet.beginGroup();var d=this.parseExpression(!1,p),m=this.fetch();this.expect(p),this.gullet.endGroup(),c={type:"ordgroup",mode:this.mode,loc:o.range(f,m),body:d,semisimple:"\\begingroup"===h||void 0}}else if(n)c=null;else if(null==(c=this.parseFunction(i,t,r)||this.parseSymbol())&&"\\"===h[0]&&!Ar.hasOwnProperty(h)){if(this.settings.throwOnError)throw new a("Undefined control sequence: "+h,f);c=this.formatUnsupportedCmd(h),this.consume()}return s&&this.switchMode(u),c},t.formLigatures=function(e){for(var t=e.length-1,n=0;n<t;++n){var r=e[n],i=r.text;"-"===i&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:o.range(r,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(r,e[n+1]),text:"--"}),--t)),"'"!==i&&"`"!==i||e[n+1].text!==i||(e.splice(n,2,{type:"textord",mode:"text",loc:o.range(r,e[n+1]),text:i+i}),--t)}},t.parseSymbol=function(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),r="*"===n.charAt(0);if(r&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new a("\\verb assertion failed --\n please report what input caused this bug");return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:r}}Mr.hasOwnProperty(t[0])&&!G[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=Mr[t[0]]+t.substr(1));var i,s=yr.exec(t);if(s&&("i"===(t=t.substring(0,s.index))?t="\u0131":"j"===t&&(t="\u0237")),G[this.mode][t]){this.settings.strict&&"math"===this.mode&&0<=Se.indexOf(t)&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var l,u=G[this.mode][t].group,c=o.range(e);if(Y.hasOwnProperty(u)){var f=u;l={type:"atom",mode:this.mode,family:f,loc:c,text:t}}else l={type:u,mode:this.mode,loc:c,text:t};i=l}else{if(!(128<=t.charCodeAt(0)))return null;this.settings.strict&&(k(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),i={type:"textord",mode:"text",loc:o.range(e),text:t}}if(this.consume(),s)for(var h=0;h<s[0].length;h++){var p=s[0][h];if(!qr[p])throw new a("Unknown accent ' "+p+"'",e);var d=qr[p][this.mode];if(!d)throw new a("Accent "+p+" unsupported in "+this.mode+" mode",e);i={type:"accent",mode:this.mode,loc:o.range(e),label:d,isStretchy:!1,isShifty:!0,base:i}}return i},e}();jr.endOfExpression=["}","\\endgroup","\\end","\\right","&"],jr.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},jr.SUPSUB_GREEDINESS=1;var Tr=function(e,t){if(!("string"==typeof e||e instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var n=new jr(e,t);delete n.gullet.macros.current["\\df@tag"];var r=n.parse();if(n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new a("\\tag works only in display equations");n.gullet.feed("\\df@tag"),r=[{type:"tag",mode:"text",body:r,tag:n.parse()}]}return r},Pr=function(e,t,n){t.textContent="";var r=Rr(e,n).toNode();t.appendChild(r)};function Ir(e,t,n){if(n.throwOnError||!(e instanceof a))throw e;var r=Xe.makeSpan(["katex-error"],[new I(t)]);return r.setAttribute("title",e.toString()),r.setAttribute("style","color:"+n.errorColor),r}"undefined"!=typeof document&&"CSS1Compat"!==document.compatMode&&(Pr=function(){throw new a("KaTeX doesn't work in quirks mode.")});var Rr=function(e,t){var n=new h(t);try{return function(e,t,n){var r,o=Lt(n);if("mathml"===n.output)return Bt(e,t,o,!0);if("html"===n.output){var i=St(e,o);r=Xe.makeSpan(["katex"],[i])}else{var a=Bt(e,t,o,!1),s=St(e,o);r=Xe.makeSpan(["katex"],[a,s])}return Dt(r,n)}(Tr(e,n),e,n)}catch(t){return Ir(t,e,n)}},Br={version:"0.11.1",render:Pr,renderToString:function(e,t){return Rr(e,t).toMarkup()},ParseError:a,__parse:function(e,t){var n=new h(t);return Tr(e,n)},__renderToDomTree:Rr,__renderToHTMLTree:function(e,t){var n,r,o=new h(t);try{return r=St(Tr(e,o),Lt(n=o)),Dt(Xe.makeSpan(["katex"],[r]),n)}catch(t){return Ir(t,e,o)}},__setFontMetrics:function(e,t){F[e]=t},__defineSymbol:$,__defineMacro:xr,__domTree:{Span:M,Anchor:j,SymbolNode:I,SvgNode:R,PathNode:B,LineNode:L}};t.default=Br}],e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var o in t)e.d(r,o,function(e){return t[e]}.bind(null,o));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=1).default;function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var t,n},e.exports=r()},1129:function(e,t,n){"use strict";n(965);var r=n(970),o=(n(104),n(60)),i=(n(131),n(39)),a=(n(498),n(499)),s=(n(779),n(780)),l=(n(260),n(92)),u=(n(515),n(506)),c=(n(170),n(18)),f=(n(513),n(507)),h=n(8),p=n(7),d=n(10),m=n(9),y=n(11),v=(n(103),n(47)),g=n(0),b=n.n(g),w=n(6),x=n.n(w),_=n(171),E=(n(869),v.a.Search),k=function(e){function t(e){var n;return Object(h.a)(this,t),(n=Object(d.a)(this,Object(m.a)(t).call(this,e))).getdatalist=function(e,t,r,o,i,a,s,l,u){var c=u,f=void 0;"shixuns"===n.props.type&&"mine"===t&&(c=n.props&&void 0===n.props.user.course_name?"created_at":"publish_time"),"shixuns"===n.props.type&&(n.props&&void 0===n.props.user.course_name||(f=1)),n.setState({isspinning:!0});var h,p=void 0===n.props.statustype?r:"published";h="shixuns"===n.props.type?"/shixun_lists.json":"/subject_lists.json",x.a.get(h,{params:{page:e,type:t,status:p,keyword:o,order:i,diff:a,limit:s,sort:c,no_jupyter:f}}).then((function(e){e.data&&(void 0===l?n.setState({shixun_list:void 0===e.data.shixun_list?e.data.subject_list:e.data.shixun_list,shixuns_count:void 0===e.data.shixuns_count?e.data.subjects_count:e.data.shixuns_count,Grouplist:[],isspinning:!1}):"pagetype"===l&&n.setState({shixun_list:void 0===e.data.shixun_list?e.data.subject_list:e.data.shixun_list,shixuns_count:void 0===e.data.shixuns_count?e.data.subjects_count:e.data.shixuns_count,isspinning:!1}))})).catch((function(e){n.setState({isspinning:!1})}))},n.DropdownClick=function(e){n.setState({diff:e});var t=n.state,r=t.page,o=t.type,i=t.status,a=t.keyword,s=t.order,l=t.limit;n.getdatalist(r,o,i,a,s,e,l)},n.ItsCourse=function(e){return b.a.createElement(f.a,null,e.map((function(e,t){return b.a.createElement(f.a.Item,{key:t,id:e.id},b.a.createElement("a",{target:"_blank",href:"/paths/".concat(e.id),className:"newshixun500"},e.name))})))},n.getGrouplist=function(e){var t=n.state,r=t.page,o=t.allGrouplist;null!=o.find((function(e,t,n){return e.page==r}))&&o.map((function(t,n){t.page===r&&(t.list=e)}));var i=[];o.map((function(e,t){e.list.map((function(e,t){i.push(e)}))})),n.setState({Grouplist:i,allGrouplist:o})},n.PaginationCourse=function(e){var t=n.state.allGrouplist;void 0===t.find((function(t,n,r){return t.page==e}))&&t.push({page:e,list:[]});var r=n.state,o=r.type,i=r.status,a=r.keyword,s=r.order,l=r.diff,u=r.limit,c=r.sort;"shixuns"===n.props.type?n.getdatalist(e,o,i,a,s,l,u,"pagetype"):n.getdatalist(e,o,void 0,a,s,void 0,u,"pagetype",c),n.setState({page:e,allGrouplist:t})},n.belongto=function(e){n.setState({type:e,keyword:void 0,page:1});var t=n.state,r=t.status,o=t.order,i=t.diff,a=t.limit,s=t.sort;"shixuns"===n.props.type?(n.getdatalist(1,e,r,void 0,o,i,a),"all"===e?n.setState({belongtoindex:0}):n.setState({belongtoindex:1})):n.getdatalist(1,e,void 0,void 0,o,void 0,a,void 0,s)},n.updatedlist=function(e){if("desc"===e){n.setState({order:"asc"});var t=n.state,r=t.type,o=t.page,i=t.status,a=t.keyword,s=t.diff,l=t.limit;n.getdatalist(o,r,i,a,"asc",s,l)}else{n.setState({order:"desc"});var u=n.state,c=u.type,f=u.page,h=u.status,p=u.keyword,d=u.diff,m=u.limit;n.getdatalist(f,c,h,p,"desc",d,m)}},n.setdatafunsval=function(e){n.setState({keyword:e.target.value})},n.setdatafuns=function(e){n.setState({keyword:e,type:void 0,page:1,status:"all",order:"desc",diff:0,limit:20}),n.getdatalist(1,void 0,"all",e,"desc",0,20)},n.savecouseShixunModal=function(){n.setState({hometypepvisible:!0});var e=n.props.coursesId,t=n.state.Grouplist;if(0===t.length)return n.setState({hometypepvisible:!1}),void n.props.showNotification("shixuns"===n.props.type?"\u8bf7\u5148\u9009\u62e9\u5b9e\u8bad":"\u8bf7\u5148\u9009\u62e9\u8bfe\u7a0b");if(n.props.chooseShixun)return 1<t.length?(n.setState({hometypepvisible:!1}),void n.props.showNotification("\u8bd5\u5377\u9009\u62e9\u7684\u5b9e\u8bad\u6570\u4e0d\u80fd\u5927\u4e8e1")):(n.props.chooseShixun(t),void n.setState({hometypepvisible:!1}));if(n.props.pathShixun)return n.setState({hometypepvisible:!1}),void n.props.pathShixun(t);if("shixuns"===n.props.type){var r="/courses/"+e+"/homework_commons/create_shixun_homework.json";x.a.post(r,{category_id:null===n.props.category_id||void 0===n.props.category_id?void 0:parseInt(n.props.category_id),shixun_ids:t}).then((function(e){-1===e.data.status||(n.props.showNotification("\u64cd\u4f5c\u6210\u529f"),n.props.homeworkupdatalists(n.props.Coursename,n.props.page,n.props.order),n.props.hideNewShixunModelType(),n.props.updataleftNavfun()),n.setState({hometypepvisible:!1})})).catch((function(e){n.setState({hometypepvisible:!1})}))}else{var o="/courses/"+e+"/homework_commons/create_subject_homework.json";x.a.post(o,{category_id:null===n.props.category_id||void 0===n.props.category_id?void 0:parseInt(n.props.category_id),subject_ids:t}).then((function(e){-1===e.data.status||(n.props.showNotification("\u64cd\u4f5c\u6210\u529f"),n.props.homeworkupdatalists(n.props.Coursename,n.props.page,n.props.order),n.props.hideNewShixunModelType(),n.props.updataleftNavfun()),n.setState({hometypepvisible:!1})})).catch((function(e){n.setState({hometypepvisible:!1})}))}},n.poststatus=function(e){n.setState({status:e});var t=n.state,r=t.page,o=t.type,i=t.keyword,a=t.order,s=t.diff,l=t.limit;n.getdatalist(r,o,e,i,a,s,l)},n.updatepathlist=function(e,t){var r,o=n.state,i=o.page,a=o.type,s=o.keyword,l=(o.order,o.diff,o.limit);o.status,r=o.sort===e?"desc"===t?(n.setState({sort:e,order:"asc"}),"asc"):(n.setState({sort:e,order:"desc"}),"desc"):(n.setState({sort:e,order:"desc"}),t),n.getdatalist(i,a,void 0,s,r,void 0,l,void 0,e)},n.state={shixun_list:void 0,shixuns_count:void 0,Grouplist:[],allGrouplist:[{page:1,list:[]}],page:1,type:"all",status:"all",keyword:void 0,order:"desc",diff:0,limit:20,sort:"myshixuns_count",belongtoindex:0},n}return Object(y.a)(t,e),Object(p.a)(t,[{key:"componentDidMount",value:function(){var e=this.state,t=e.page,n=e.type,r=e.keyword,o=e.order,i=e.diff,a=e.limit,s=e.status,l=e.sort;"shixuns"===this.props.type?this.getdatalist(t,n,s,r,o,i,a,void 0,l):this.getdatalist(t,n,void 0,r,o,void 0,a,void 0,l)}},{key:"render",value:function(){var e=this,t=this.state,n=t.diff,h=t.Grouplist,p=t.status,d=t.shixun_list,m=t.shixuns_count,y=t.page,v=t.type,g=t.order,w=t.sort,x=(t.belongtoindex,b.a.createElement(f.a,{className:"menus"},b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:"all"===p?"color-blue":"",onClick:function(){return e.poststatus("all")}},"\u6240\u6709")),b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:"published"===p?"color-blue":"",onClick:function(){return e.poststatus("published")}},"\u5df2\u53d1\u5e03")),b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:"unpublished"===p?"color-blue":"",onClick:function(){return e.poststatus("unpublished")}},"\u672a\u53d1\u5e03"))));return b.a.createElement(f.a,{className:"menus"},b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:0===n?"color-blue":"",onClick:function(){return e.DropdownClick(0)}},"\u6240\u6709")),b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:1===n?"color-blue":"",onClick:function(){return e.DropdownClick(1)}},"\u521d\u7ea7")),b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:2===n?"color-blue":"",onClick:function(){return e.DropdownClick(2)}},"\u4e2d\u7ea7")),b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:3===n?"color-blue":"",onClick:function(){return e.DropdownClick(3)}},"\u9ad8\u7ea7")),b.a.createElement(f.a.Item,null,b.a.createElement("a",{className:4===n?"color-blue":"",onClick:function(){return e.DropdownClick(4)}},"\u9876\u7ea7"))),b.a.createElement("div",null,b.a.createElement("style",null,"body{ width: calc(100%) !important; }\n\t\t\t\t\t .ant-drawer-content{ overflow:auto !important; background: #f5f5f5; }\n\t\t\t\t\t .yslbottomsj{position: absolute;bottom: -8px;}\n\t\t\t\t\t .ant-drawer-close{\n\t\t\t\t\t font-size:24px !important;\n\t\t\t\t\t }\n\t\t\t\t\t .ant-drawer-body {\n\t\t\t\t\t\t\t\tpadding:15px 24px 24px 0px;\n\t\t\t\t\t \t}\n\t\t\t\t\t \t.ant-dropdown {\n\t\t\t\t\t \t z-index:11000\n\t\t\t\t\t \t}\n\t\t\t\t\t "),b.a.createElement(r.a,{placement:"bottom",closable:!0,destroyOnClose:!0,onClose:function(){return e.props.hideNewShixunModelType()},visible:"shixuns"===this.props.type?this.props.NewShixunModelType:this.props.shixunpath,height:"100%"},b.a.createElement(o.a,{spinning:this.state.isspinning},b.a.createElement("div",{className:"clearfix educontent pr mb60shixun"},b.a.createElement("div",{className:"square-list clearfix verticallayout"},b.a.createElement("div",{className:"newshixunheadersear"},b.a.createElement("div",{style:{height:"53px"}}),b.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t.ant-input, .ant-input .ant-input-suffix{\n \t\t\t\t\t\t\t\t\t\t\tbackground-color: #fff !important;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t.packinput .ant-input{\n \t\t\t\t\t\t\t\t\t\t\tborder: 1px solid rgba(217,217,217,1) !important;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t"),b.a.createElement(E,{style:{width:"780px"},className:"packinput",placeholder:"shixuns"===this.props.type?"\u5b9e\u8bad\u4fe1\u606f / \u9662\u6821\u540d\u79f0 / \u521b\u5efa\u8005":"\u8bfe\u7a0b\u540d\u79f0 / \u9662\u6821\u540d\u79f0 / \u521b\u5efa\u8005",value:this.state.keyword,enterButton:b.a.createElement("span",null,"\u641c\u7d22"),onInput:function(t){return e.setdatafunsval(t)},onSearch:function(t){return e.setdatafuns(t)}})),"shixuns"===this.props.type?b.a.createElement("div",{className:"clearfix sortinxdirection mt30 intermediatecenterysls"},b.a.createElement("p",{className:"nandu"},"\u7b5b\u9009\uff1a"),b.a.createElement("p",{className:"all"===v?"clickbutstwo ml13":"clickbutstwos ml13",onClick:function(){return e.belongto("all")}},"\u5168\u90e8\u5b9e\u8bad"),b.a.createElement("p",{className:"mine"===v?"clickbutstwo ml20":"clickbutstwos ml20",onClick:function(){return e.belongto("mine")}},"\u6211\u7684\u5b9e\u8bad")):"","shixuns"===this.props.type?b.a.createElement("div",{className:"clearfix sortinxdirection mt20 intermediatecenterysls"},b.a.createElement("p",{className:"nandu"},"\u96be\u5ea6\uff1a"),b.a.createElement("p",{className:0===n?"clickbuts ml13":"clickbutst ml13",onClick:function(){return e.DropdownClick(0)}},"\u5168\u90e8"),b.a.createElement("p",{className:1===n?"clickbuts ml30":"clickbutst ml30",onClick:function(){return e.DropdownClick(1)}},"\u521d\u7ea7"),b.a.createElement("p",{className:2===n?"clickbuts ml30":"clickbutst ml30",onClick:function(){return e.DropdownClick(2)}},"\u4e2d\u7ea7"),b.a.createElement("p",{className:3===n?"clickbuts ml30":"clickbutst ml30",onClick:function(){return e.DropdownClick(3)}},"\u4e2d\u9ad8\u7ea7"),b.a.createElement("p",{className:4===n?"clickbuts ml30":"clickbutst ml30",onClick:function(){return e.DropdownClick(4)}},"\u9ad8\u7ea7")):"",b.a.createElement("div",{className:"shixuns"===this.props.type?"clearfix font-12 mt20":"clearfix font-12 mt30"},b.a.createElement("div",{className:"font-12 ml5 fl"},b.a.createElement("span",{className:"fl color-grey-9 mr20"},"\u5df2\u9009 ",b.a.createElement("span",{className:"color-blue"},h.length)," \u4e2a","shixuns"===this.props.type?"\u5b9e\u8bad":"\u8bfe\u7a0b"),b.a.createElement("span",{className:"fl color-grey-9 mr20"},"\u5171 ",b.a.createElement("span",{className:"color-blue"},void 0===m?"":m)," \u4e2a","shixuns"===this.props.type?"\u5b9e\u8bad":"\u8bfe\u7a0b"),"shixuns"===this.props.type?"":b.a.createElement("span",{className:"fl color-grey-9 pointer mr30"},b.a.createElement("a",{className:" color-grey-6",onClick:function(){return e.updatepathlist("shixuns_count",g)}},"\u5b9e\u8bad\u6570"),b.a.createElement("sapn",{className:"relativef ml5 "},b.a.createElement("i",{className:"asc"===g&&"shixuns_count"===w?"iconfont icon-sanjiaoxing-up font-12 ntopsj color-grey-9 color-blue":"iconfont icon-sanjiaoxing-up font-12 ntopsj color-grey-9"}),b.a.createElement("i",{className:"desc"===g&&"shixuns_count"===w?"iconfont icon-sanjiaoxing-down font-12 nyslbottomsj color-grey-9 color-blue":"iconfont icon-sanjiaoxing-down font-12 nyslbottomsj color-grey-9"}))),"shixuns"===this.props.type?"":b.a.createElement("span",{className:"fl color-grey-9 pointer mr30"},b.a.createElement("a",{className:" color-grey-6",onClick:function(){return e.updatepathlist("myshixuns_count",g)}},"\u5b66\u4e60\u4eba\u6570"),b.a.createElement("sapn",{className:"relativef ml5 "},b.a.createElement("i",{className:"asc"===g&&"myshixuns_count"===w?"iconfont icon-sanjiaoxing-up font-12 ntopsj color-grey-9 color-blue":"iconfont icon-sanjiaoxing-up font-12 ntopsj color-grey-9"}),b.a.createElement("i",{className:"desc"===g&&"myshixuns_count"===w?"iconfont icon-sanjiaoxing-down font-12 nyslbottomsj color-grey-9 color-blue":"iconfont icon-sanjiaoxing-down font-12 nyslbottomsj color-grey-9"}))),"shixuns"===this.props.type?b.a.createElement("span",{className:"fl color-grey-9 pointer mr30"},b.a.createElement("a",{className:" color-grey-6",onClick:function(){return e.updatedlist(g)}},"\u5b66\u4e60\u4eba\u6570"),b.a.createElement("sapn",{className:"relativef ml5 "},b.a.createElement("i",{className:"asc"===g?"iconfont icon-sanjiaoxing-up font-12 ntopsj color-grey-9 color-blue":"iconfont icon-sanjiaoxing-up font-12 ntopsj color-grey-9"}),b.a.createElement("i",{className:"desc"===g?"iconfont icon-sanjiaoxing-down font-12 nyslbottomsj color-grey-9 color-blue":"iconfont icon-sanjiaoxing-down font-12 nyslbottomsj color-grey-9"}))):"","shixuns"===this.props.type&&void 0===this.props.statustype?b.a.createElement(u.a,{overlay:x},b.a.createElement("a",{className:"ant-dropdown-link color-grey-6 mr20"},"all"===p?"\u53d1\u5e03\u72b6\u6001":"published"===p?"\u5df2\u53d1\u5e03":"unpublished"===p?"\u672a\u53d1\u5e03":"",b.a.createElement(c.a,{type:"down",className:"color-grey-6"}))):""),b.a.createElement("div",{className:"font-12 alltopiscright ml25 fl"},"shixuns"===this.props.type?"":b.a.createElement("span",{className:"mine"===v?"fr topcsactive pointer color-grey-3 color-blue":"fr pointer color-grey-3",onClick:function(){return e.belongto("mine")}},"\u6211\u7684\u8bfe\u7a0b"),"shixuns"===this.props.type?"":b.a.createElement("span",{className:"all"===v?"fr mr30 topcsactive pointer color-grey-3 color-blue":"fr mr30 pointer color-grey-3",onClick:function(){return e.belongto("all")}},"\u5168\u90e8\u8bfe\u7a0b"))),b.a.createElement(l.a.Group,{onChange:this.getGrouplist,value:h},void 0===d||0===d.length?"":d.map((function(t,n){return b.a.createElement("div",{className:"mt10 edu-back-white pd20 relativef newshixunlist",key:n},b.a.createElement("div",{className:"clearfix"},b.a.createElement("div",{className:"item-body"},b.a.createElement("div",{className:"clearfix ds pr contentSection"},b.a.createElement(l.a,{value:t.id,key:t.id,className:"fl task-hide edu-txt-left mt3",name:"shixun_homework[]"}),b.a.createElement("a",{target:"_blank",href:"shixuns"===e.props.type?"/shixuns/".concat(t.identifier,"/challenges"):"/paths/".concat(t.id),className:"ml15 fl font-16 color-dark maxwidth1100",dangerouslySetInnerHTML:{__html:t.title}}),"shixuns"===e.props.type&&!0===t.is_jupyter?b.a.createElement("div",{className:"myysljupyter fl ml20 intermediatecenter"},b.a.createElement("p",{className:"myysljupytertest"},"Jupyter")):"",b.a.createElement("div",{className:"cl"}),b.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t .newradioStyles{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t overflow: hidden;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttext-overflow: ellipsis;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdisplay: -webkit-box;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-line-clamp: 2;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t-webkit-box-orient: vertical;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmax-height: 42px;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t"),"{}"==JSON.stringify(t.description)?"":b.a.createElement("div",{className:"newshixunmodelmidfont newradioStyles",dangerouslySetInnerHTML:{__html:t.description}}),void 0===t.challenge_names||0===t.challenge_names.length?"":b.a.createElement("div",{className:"newshixunmodelbotfont"},t.challenge_names.map((function(e,t){return b.a.createElement("span",null,"\u7b2c",t+1,"\u5173\uff1a",e)}))),b.a.createElement("div",{className:"newshixunpd030"},b.a.createElement("div",{className:"xuxianpro"})),b.a.createElement("div",{className:"color-grey panel-lightgrey fl ml30"},b.a.createElement("style",null,"\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-breadcrumb-separator{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t color: #D7D7D7 !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.panel-lightgrey, .panel-lightgrey span{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t color: #999 !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-breadcrumb-link{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t margin-right:10px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.ant-breadcrumb-separator{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t margin-right:20px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t"),"shixuns"===e.props.type?b.a.createElement(s.a,{separator:"|"},b.a.createElement(s.a.Item,null,t.author_name),b.a.createElement(s.a.Item,null,t.author_school_name),b.a.createElement(s.a.Item,null,"\u96be\u5ea6\u7cfb\u6570\uff1a",t.level),b.a.createElement(s.a.Item,null,"\u5b66\u4e60\u4eba\u6570\uff1a",t.study_count)):b.a.createElement(s.a,{separator:"|"},b.a.createElement(s.a.Item,null,t.author_name),b.a.createElement(s.a.Item,null,t.author_school_name),b.a.createElement(s.a.Item,null,"\u5b66\u4e60\u4eba\u6570\uff1a",t.myshixuns_count),b.a.createElement(s.a.Item,null,"\u7ae0\u8282\uff1a",t.stage_count),b.a.createElement(s.a.Item,null,"\u5b9e\u8bad\uff1a",t.shixuns_count))),void 0===t.subjects||0===t.subjects.length?"":b.a.createElement(u.a,{overlay:function(){return e.ItsCourse(t.subjects)}},b.a.createElement("a",{className:"ant-dropdown-link fl ml30 newshixunfont12 color-blue"},"\u6240\u5c5e\u8bfe\u7a0b",b.a.createElement(c.a,{className:"color-blue",type:"down"})))))))}))),void 0!==d&&void 0!==m&&0!==d.length&&0!==m&&20<m?b.a.createElement("div",{className:" edu-txt-center pd303010 newshixunmodels"},b.a.createElement(a.a,{showQuickJumper:!0,defaultCurrent:1,pageSize:20,total:void 0===m?"":m,current:y,onChange:this.PaginationCourse})):"",void 0===d?b.a.createElement("div",{className:"minhegiht300"}):0===d.length?b.a.createElement(_.a,null):"")),b.a.createElement("div",{className:"clearfix bor-bottom-greyE edu-back-white orderingbox newshixunbottombtn"},void 0===d||0===d.length?"":b.a.createElement("div",{className:" edu-txt-center padding13-30"},b.a.createElement(i.a,{className:"mr20 newshixunmode",onClick:function(){return e.props.hideNewShixunModelType()}},"\u53d6\u6d88"),b.a.createElement(i.a,{className:"newshixunmode mr40",type:"primary",onClick:function(){return e.savecouseShixunModal()},loading:this.state.hometypepvisible},"\u786e\u5b9a"))))))}}]),t}(g.Component);t.a=k},1407:function(e,t,n){},1528:function(e,t,n){"use strict";n(260);var r=n(92),o=(n(470),n(462)),i=n(8),a=n(7),s=n(10),l=n(9),u=n(11),c=(n(472),n(471)),f=(n(50),n(29)),h=(n(103),n(47)),p=n(0),d=n.n(p),m=(n(6),n(967)),y=n(28),v=(h.a.TextArea,f.a.confirm,window.$,c.a.Option,["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"]),g=function(e){function t(e){var n;return Object(i.a)(this,t),(n=Object(s.a)(this,Object(l.a)(t).call(this,e))).componentDidMount=function(){var e=n.props.match.params.Id;n.isEdit=!!e,e&&"/exercises/".concat(e,"/edit.json")},n.state={question_choices:["","","",""],standard_answers:[!1,!1,!1,!1]},n}return Object(u.a)(t,e),Object(a.a)(t,[{key:"render",value:function(){var e=this.props,t=(e.question_title,e.question_score,e.question_type),n=e.question_choices,i=(e.standard_answer,e.question_id),a=(e.question_number,e.index),s=(e.displayCount,e.showActionButton,this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(a));return d.a.createElement("div",{className:"bor-bottom-greyE padding20-30 singleDisplay",id:s,_id:i},d.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n .actionBtns {\n height: 28px\n }\n "),d.a.createElement(m.a,this.props),d.a.createElement("div",{className:"options"},n.map((function(e,n){var i;return i="".concat(v[n],"."),0==t?d.a.createElement("div",{className:"mb10 clearfix ",style:{display:"flex",flexDirection:"row"},key:n},d.a.createElement(o.a,{disabled:!0,className:"fl lineh-25 w50",checked:e.standard_boolean},i),d.a.createElement(y.s,{content:e.choice_text,selector:"single_"+(a+1)+(n+1),style:{float:"left",display:"inline-block"}})):d.a.createElement("div",{className:"mb10 clearfix",style:{display:"flex",flexDirection:"row"},key:n},d.a.createElement(r.a,{disabled:!0,className:"fl lineh-25 w50",checked:e.standard_boolean},i),d.a.createElement(y.s,{content:e.choice_text,selector:"single_"+(a+1)+(n+1),style:{float:"left",display:"inline-block"}}))}))))}}]),t}(p.Component);t.a=g},1529:function(e,t,n){"use strict";n(470);var r=n(462),o=n(8),i=n(7),a=n(10),s=n(9),l=n(11),u=(n(472),n(471)),c=(n(50),n(29)),f=(n(103),n(47)),h=n(0),p=n.n(h),d=(n(6),n(831)),m=n(28),y=n(967),v=(f.a.TextArea,c.a.confirm,window.$,u.a.Option,function(e){function t(e){var n;return Object(o.a)(this,t),(n=Object(a.a)(this,Object(s.a)(t).call(this,e))).componentDidMount=function(){var e=n.props.match.params.Id;n.isEdit=!!e,e&&"/exercises/".concat(e,"/edit.json")},n.state={question_choices:["","","",""],standard_answers:[!1,!1,!1,!1]},n}return Object(l.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this.props,t=(e.question_title,e.question_score,e.question_type),n=e.question_choices,o=(e.standard_answer,e.question_id),i=(e.question_number,e.index),a=(e.displayCount,this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(i));return d.f[t],p.a.createElement("div",{className:"bor-bottom-greyE padding20-30",id:a,_id:o},p.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n .actionBtns {\n height: 28px\n }\n \n "),p.a.createElement(y.a,this.props),p.a.createElement("div",{className:"options clearfix"},n.map((function(e,t){return p.a.createElement("div",{key:t,className:"fl mr30 df"},p.a.createElement(r.a,{disabled:!0,className:"lineh-25",checked:e.standard_boolean}),p.a.createElement(m.s,{content:e.choice_text,selector:"judge_"+(i+1)+t,className:""}))}))))}}]),t}(h.Component));t.a=v},1530:function(e,t,n){"use strict";var r=n(8),o=n(7),i=n(10),a=n(9),s=n(11),l=(n(472),n(471)),u=(n(50),n(29)),c=(n(103),n(47)),f=n(0),h=n.n(f),p=(n(6),n(831)),d=n(28),m=n(967),y=(c.a.TextArea,u.a.confirm,window.$,l.a.Option,function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(i.a)(this,Object(a.a)(t).call(this,e))).componentDidMount=function(){var e=n.props.match.params.Id;n.isEdit=!!e,e&&"/exercises/".concat(e,"/edit.json")},n.state={question_choices:["","","",""],standard_answers:[!1,!1,!1,!1]},n}return Object(s.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=(e.question_title,e.question_score,e.question_type),n=(e.question_choices,e.standard_answer),r=e.question_id,o=(e.question_number,e.index),i=(e.displayCount,e.multi_count,this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(o));return p.f[t],h.a.createElement("div",{className:"bor-bottom-greyE padding20-30",id:i,_id:r},h.a.createElement("style",null,"\n .answers {\n flex: 1;\n display: inline-block;\n }\n .answers .answer {\n background: #EDEDED;\n color: #C5C5C5;\n \n display: inline-block;\n line-height: 16px;\n padding:12px 10px;\n margin-bottom:10px;\n border-radius:2px;\n width: 1024px;\n word-break: break-all;\n }\n .answerRow { \n padding: 1px 0;\n }\n .answers .markdown-body > p{\n line-height:20px;\n }\n "),h.a.createElement(m.a,this.props),h.a.createElement("div",{className:"options"},n.map((function(e,t){return h.a.createElement("div",{className:"df answerRow",key:t},h.a.createElement("span",{className:"lineh-40"},"\u7b54\u6848\uff08\u586b\u7a7a",t+1,"\uff09\uff1a"),h.a.createElement("div",{className:"answers"},e.answer_text.map((function(e,n){return h.a.createElement(d.s,{className:"answer",key:n,content:e,selector:"null_"+(o+1)+(t+1)+(n+1)})}))))}))))}}]),t}(f.Component));t.a=y},1531:function(e,t,n){"use strict";var r=n(8),o=n(7),i=n(10),a=n(9),s=n(11),l=(n(472),n(471)),u=(n(50),n(29)),c=(n(103),n(47)),f=n(0),h=n.n(f),p=(n(6),n(831)),d=n(28),m=n(967),y=(c.a.TextArea,u.a.confirm,window.$,l.a.Option,function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(i.a)(this,Object(a.a)(t).call(this,e))).componentDidMount=function(){},n.state={},n}return Object(s.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=(e.question_title,e.question_score,e.question_type),n=e.standard_answer,r=e.question_id,o=(e.question_number,e.index),i=(e.displayCount,this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(o));return p.f[t],h.a.createElement("div",{className:"bor-bottom-greyE padding20-30",id:i,_id:r},h.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n .actionBtns {\n height: 28px\n }\n \n "),h.a.createElement(m.a,this.props),n[0]&&h.a.createElement(h.a.Fragment,null,h.a.createElement("div",{style:{color:"#05101A"},className:"font-16 mb5 font-bd"},"\u53c2\u8003\u7b54\u6848\uff1a"),h.a.createElement(d.s,{content:n[0],selector:"answer_"+i,className:""})))}}]),t}(f.Component));t.a=y},1532:function(e,t,n){"use strict";var r=n(8),o=n(7),i=n(10),a=n(9),s=n(11),l=(n(472),n(471)),u=(n(50),n(29)),c=(n(103),n(47)),f=n(0),h=n.n(f),p=(n(6),n(831)),d=n(28),m=n(967),y=(c.a.TextArea,u.a.confirm,window.$,l.a.Option,function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(i.a)(this,Object(a.a)(t).call(this,e))).componentDidMount=function(){},n.state={},n}return Object(s.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this.props,t=e.question_title,n=(e.question_score,e.question_type),r=(e.standard_answer,e.question_id),o=(e.question_number,e.index),i=(e.displayCount,e.shixun_name),a=e.shixun,s=(e.shixun_id,e.shixun_identifier),l=(this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(o));return p.f[n],h.a.createElement("div",{className:"bor-bottom-greyE padding20-30",id:l,_id:r},h.a.createElement("style",null,"\n\n .mainQuestionDisplay {\n margin-bottom:15px;\n }\n \n "),h.a.createElement(m.a,Object.assign({},this.props,{question_title:i,topRight:h.a.createElement("a",{target:"_blank",href:"/shixuns/".concat(s,"/challenges"),className:"mr30",style:{color:"#4CACFF"}},"\u5b9e\u8bad\u8be6\u60c5")})),h.a.createElement("div",{className:"mainQuestionDisplay color-grey-9 markdown-body",dangerouslySetInnerHTML:{__html:Object(d.Z)(t)}}),a.map((function(e,t){return h.a.createElement("div",null,"\u7b2c".concat(t+1,"\u5173"),"\u3000",e.challenge_name,"\u3000",e.challenge_score,"\u5206")})))}}]),t}(f.Component));t.a=y},2049:function(e,t,n){"use strict";n(500);var r=n(501),o=(n(259),n(167)),i=n(30),a=n(4),s=n(20),l=n(8),u=n(7),c=n(10),f=n(9),h=n(11),p=(n(472),n(471)),d=(n(50),n(29)),m=(n(103),n(47)),y=n(0),v=n.n(y),g=n(831),b=n(174),w=n(6),x=n.n(w),_=(n(753),n(195),n(28)),E=(n(577),n(579)),k=n(592),O=n.n(k),S=n(919),N=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],A=function(e){function t(e){var n;Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).addOption=function(){var e=n.state,t=e.question_choices,r=e.standard_answers;t.push(""),r.push(!1),n.setState({question_choices:t,standard_answers:r})},n.deleteOption=function(e){""===n.state.question_choices[e]?(n.toMDMode(null),n.setState((function(t){return{question_choices:O()(t.question_choices,{$splice:[[e,1]]}),standard_answers:O()(t.standard_answers,{$splice:[[e,1]]})}}))):n.props.confirm({content:"\u786e\u8ba4\u8981\u5220\u9664\u8fd9\u4e2a\u9009\u9879\u5417\uff1f",onOk:function(){n.toMDMode(null),n.setState((function(t){return{question_choices:O()(t.question_choices,{$splice:[[e,1]]}),standard_answers:O()(t.standard_answers,{$splice:[[e,1]]})}}))}})},n.onSave=function(){var e=n.state,t=e.question_title,r=e.question_score,o=(e.question_type,e.question_choices),i=e.standard_answers,a=n.props,s=a.question_id_to_insert_after,l=a.question_id,u=i.map((function(e,t){return 1==e?t+1:-1})).filter((function(e){return-1!=e}));if(!t)return n.refs.titleEditor.showError(),void n.props.showNotification("\u9898\u76ee\uff1a\u4e0d\u80fd\u4e3a\u7a7a");var c=parseFloat(r);if(0!=c)if(r&&NaN!=c)if(u&&0!=u.length){if(!t)return n.refs.titleEditor.showError(),void n.props.showNotification("\u9898\u76ee\uff1a\u4e0d\u80fd\u4e3a\u7a7a");for(var f=0;f<o.length;f++)if(!o[f])return n.refs["optionEditor".concat(f)].showError(),void n.props.showNotification("\u8bf7\u5148\u8f93\u5165 ".concat(N[f]," \u9009\u9879\u7684\u5185\u5bb9"));var h=n.props.match.params.Id;if(l){var p=n.props.getEditQuestionUrl(l);x.a.put(p,{question_title:t,question_type:1<u.length?1:0,question_score:r,question_choices:o,standard_answers:u,insert_id:s||void 0}).then((function(e){0==e.data.status?n.props.addSuccess():3==e.data.status&&n.props.changeScore(l,u)})).catch((function(e){}))}else{var d=n.props.getAddQuestionUrl();x.a.post(d,{exercise_bank_id:h,question_title:t,question_type:1<u.length?1:0,question_score:r,question_choices:o,standard_answers:u,insert_id:s||void 0}).then((function(e){0==e.data.status&&n.props.addSuccess()})).catch((function(e){}))}}else n.props.showNotification("\u8bf7\u5148\u70b9\u51fb\u9009\u62e9\u672c\u9009\u62e9\u9898\u7684\u6b63\u786e\u9009\u9879");else n.props.showNotification("\u5206\u503c\uff1a\u4e0d\u80fd\u4e3a\u7a7a");else n.props.showNotification("\u5206\u503c\uff1a\u5fc5\u987b\u5927\u4e8e0")},n.onCancel=function(){n.props.onEditorCancel()},n.componentDidMount=function(){},n.onOptionClick=function(e){var t=n.state.standard_answers.slice(0);t[e]=!t[e],n.setState({standard_answers:t})},n.onOptionContentChange=function(e,t){if(!(t>=n.state.question_choices.length)){var r=n.state.question_choices.slice(0);r[t]=e,n.setState({question_choices:r})}},n.on_question_score_change=function(e){n.setState({question_score:e})},n.toMDMode=function(e){if(n.mdReactObject){var t=n.mdReactObject;n.mdReactObject=null,t.toShowMode()}n.mdReactObject=e},n.toShowMode=function(){},n.handleChangeEditor=function(e){var t=n.state.quill_question_title,r=e.target.value;if("quill"===r){var o=t?JSON.parse(t):"";n.setState({quill_default_title:o})}n.setState({choice_editor:r})},n.handleCtxChange=function(e){n.setState({quill_question_title:JSON.stringify(e)})};var r=n.props.question_choices,o=void 0,i=void 0;return r&&(o=[],i=[],r.forEach((function(e,t){o.push(e.standard_boolean),i.push(e.choice_text)}))),n.state={question_choices:i||["","","",""],standard_answers:o||[!1,!1,!1,!1],question_title:n.props.question_title||"",question_type:n.props.question_type||0,question_score:n.props.question_score||n.props.init_question_score,choice_editor:"md",quill_question_title:"",quill_default_title:""},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.question_title,r=t.question_score,i=(t.question_type,t.question_choices),a=t.standard_answers,s=t.choice_editor,l=t.quill_default_title,u=this.props,c=(u.question_id,u.index),f=u.exerciseIsPublish,h=(u.isNew,this.props.isAdmin(),this.props.match.params.coursesId,this.props.question_id,"question_".concat(c)),p=a.map((function(e,t){return 1==e?N[t]:-1})).filter((function(e){return-1!=e}));return v.a.createElement("div",{className:"padding20-30 bor-bottom-greyE signleEditor",id:h},v.a.createElement("style",null,"\n .optionMdEditor {\n flex:1\n }\n .optionRow {\n margin:0px!important;\n /* margin-bottom: 20px!important; */\n }\n .signleEditor .content_editorMd_show{\n display: flex;\n margin-top:0px!important;\n border-radius:2px;\n max-width: 1056px;\n word-break:break-all;\n }\n .editor_area{\n display: inline-block;\n float: right;\n // line-height: 30px;\n // height: 30px;\n }\n .editor_txt{\n margin-right: 10px;\n font-size: 12px;\n color: #999;\n }\n .radio_style{\n display: inline-block;\n vertical: center;\n }\n "),v.a.createElement("p",{className:"mb10 clearfix"},v.a.createElement("span",{className:"color-blue font-16 mr20 fl"},"\u9009\u62e9\u9898"),v.a.createElement("span",{className:"color-grey-9 font-12 fl"},"\uff08\u5ba2\u89c2\u9898\uff0c\u7531\u7cfb\u7edf\u81ea\u52a8\u8bc4\u5206\uff0c\u8bf7\u8bbe\u7f6e\u6807\u51c6\u7b54\u6848\uff09")),"md"===s?v.a.createElement(b.a,{mdID:h,placeholder:"\u8bf7\u60a8\u8f93\u5165\u9898\u76ee",height:155,className:"mb20",initValue:n,onChange:function(t){return e.setState({question_title:t})},ref:"titleEditor"}):v.a.createElement(S.a,{wrapStyle:{marginBottom:"35px"},style:{height:"109px"},options:["code","image","formula"],placeholder:"\u8bf7\u60a8\u8f93\u5165\u9898\u76ee",value:l,onContentChange:this.handleCtxChange}),i.map((function(t,n){var r=a[n]?"check-option-bg":"";return v.a.createElement("div",{className:"df optionRow "},v.a.createElement("span",{class:"option-item fr mr10 color-grey select-choice ".concat(r," "),name:"option_span",onClick:function(){return e.onOptionClick(n)},style:{flex:"0 0 38px"}},v.a.createElement(_.g,{title:a[n]?"\u70b9\u51fb\u53d6\u6d88\u6807\u51c6\u7b54\u6848\u8bbe\u7f6e":"\u70b9\u51fb\u8bbe\u7f6e\u4e3a\u6807\u51c6\u7b54\u6848",placement:"left",condition:!0},v.a.createElement("div",{style:{width:"100%",height:"100%"}},N[n]))),v.a.createElement("div",{style:{flex:"0 0 1038px"}},v.a.createElement(_.i,{ref:"optionEditor".concat(n),toMDMode:e.toMDMode,toShowMode:e.toShowMode,height:166,className:"optionMdEditor",noStorage:!0,mdID:h+n,placeholder:"",onChange:function(t){return e.onOptionContentChange(t,n)},initValue:t})),f||0===n?v.a.createElement("i",{className:" font-18 ml15 mr20"}):v.a.createElement(o.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"iconfont icon-htmal5icon19 font-18 color-grey-c ml15",onClick:function(){return e.deleteOption(n)}})),!f&&v.a.createElement(o.a,{title:"\u65b0\u589e\u53c2\u8003\u7b54\u6848"},v.a.createElement("i",{className:"color-green font-16 iconfont icon-roundaddfill ml6",onClick:function(){return e.addOption()},style:{float:"right",visibility:n==i.length-1?"":"hidden",marginTop:"2px"}})))})),v.a.createElement("div",{className:"mb20"},v.a.createElement("span",{style:{color:"#FF6800"}},"\u6e29\u99a8\u63d0\u793a\uff1a\u70b9\u51fb\u9009\u9879\u8f93\u5165\u6846\u53ef\u8bbe\u7f6e\u7b54\u6848\uff1b\u9009\u4e2d\u7684\u9009\u9879\u5373\u4e3a\u6b63\u786e\u7b54\u6848\uff0c\u9009\u62e9\u591a\u4e2a\u7b54\u6848\u5373\u4e3a\u591a\u9009\u9898"),p&&p.length?v.a.createElement(v.a.Fragment,null,v.a.createElement("span",{className:"fr color-orange"},p.join(" ")),v.a.createElement("span",{className:"fr"},"\u6807\u51c6\u7b54\u6848\uff1a")):""),v.a.createElement("div",null,"\u5206\u503c\uff1a",v.a.createElement(E.a,{step:.1,precision:1,min:0,max:100,style:{width:100},value:r,onChange:this.on_question_score_change,disabled:f}),"\xa0\u5206",v.a.createElement("span",{className:"fr"},v.a.createElement(_.a,{style:"greyBack",className:"middle mr20",onClick:this.onCancel},"\u53d6\u6d88"),v.a.createElement(_.a,{style:"blue",className:"middle",onClick:this.onSave},"\u4fdd\u5b58"))))}}]),t}(y.Component),C=n(1528),q=(n(470),n(462)),M=q.a.Group,j=(m.a.TextArea,d.a.confirm,window.$,p.a.Option,function(e){function t(e){var n;Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).onSave=function(){var e=n.state,t=e.question_title,r=e.question_score,o=(e.question_type,e.question_choices),i=e.standard_answers,a=n.props,s=a.question_id_to_insert_after,l=a.question_id,u=i.map((function(e,t){return 1==e?t+1:-1})).filter((function(e){return-1!=e}));if(!t)return n.refs.titleEditor.showError(),void n.props.showNotification("\u9898\u76ee\uff1a\u4e0d\u80fd\u4e3a\u7a7a");var c=parseFloat(r);if(0!=c)if(r&&NaN!=c)if(u&&0!=u.length){if(!t)return n.refs.titleEditor.showError(),void n.props.showNotification("\u9898\u76ee\uff1a\u4e0d\u80fd\u4e3a\u7a7a");var f=n.props.match.params.Id;if(l){var h=n.props.getEditQuestionUrl(l);x.a.put(h,{question_title:t,question_type:2,question_score:r,question_choices:o,standard_answers:u,insert_id:s||void 0}).then((function(e){0==e.data.status?n.props.addSuccess():3==e.data.status&&n.props.changeScore(l,u)})).catch((function(e){}))}else{var p=n.props.getAddQuestionUrl();x.a.post(p,{exercise_bank_id:f,question_title:t,question_type:2,question_score:r,question_choices:o,standard_answers:u,insert_id:s||void 0}).then((function(e){0==e.data.status&&n.props.addSuccess()})).catch((function(e){}))}}else n.props.showNotification("\u5fc5\u987b\u8bbe\u7f6e\u6807\u51c6\u7b54\u6848");else n.props.showNotification("\u5206\u503c\uff1a\u4e0d\u80fd\u4e3a\u7a7a");else n.props.showNotification("\u5206\u503c\uff1a\u5fc5\u987b\u5927\u4e8e0")},n.onCancel=function(){n.props.onEditorCancel()},n.componentDidMount=function(){},n.onOptionClick=function(e){e.target.value?n.setState({standard_answers:[!0,!1]}):n.setState({standard_answers:[!1,!0]})},n.on_question_score_change=function(e){n.setState({question_score:e})};var r=n.props.question_choices,o=void 0,i=void 0;return r&&(o=[],i=[],r.forEach((function(e,t){o.push(e.standard_boolean),i.push(e.choice_text)}))),n.state={question_choices:i||["\u5bf9","\u9519"],standard_answers:o||[!1,!0],question_title:n.props.question_title||"",question_type:n.props.question_type||2,question_score:n.props.question_score||n.props.init_question_score},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.question_title,r=t.question_score,o=t.question_type,i=(t.question_choices,t.standard_answers),a=this.props,s=a.question_id,l=a.index,u=a.exerciseIsPublish,c=(a.isNew,this.props.isAdmin(),this.props.match.params.coursesId,this.props.question_id,"question_".concat(l));return v.a.createElement("div",{className:"padding20-30 bor-bottom-greyE",id:c},v.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n "),v.a.createElement("p",{className:"mb10 clearfix"},v.a.createElement("span",{className:"color-blue font-16 mr20 fl"},g.f[o]),v.a.createElement("span",{className:"color-grey-9 font-12 fl"},"\uff08\u5ba2\u89c2\u9898\uff0c\u7531\u7cfb\u7edf\u81ea\u52a8\u8bc4\u5206\uff0c\u8bf7\u8bbe\u7f6e\u6807\u51c6\u7b54\u6848\uff09")),v.a.createElement(b.a,{mdID:"question_".concat(s),placeholder:"\u8bf7\u60a8\u8f93\u5165\u9898\u76ee",height:155,initValue:n,onChange:function(t){return e.setState({question_title:t})},ref:"titleEditor"}),v.a.createElement("div",null,v.a.createElement(M,{onChange:this.onOptionClick,value:i[0]},v.a.createElement(q.a,{value:!0},"\u6b63\u786e"),v.a.createElement(q.a,{value:!1},"\u9519\u8bef")),!u&&v.a.createElement("span",{style:{color:"#FF6800"}},"\u6e29\u99a8\u63d0\u793a\uff1a\u70b9\u51fb\u9009\u9879\uff0c\u53ef\u4ee5\u76f4\u63a5\u8bbe\u7f6e\u6807\u51c6\u7b54\u6848")),v.a.createElement("div",null,"\u5206\u503c\uff1a",v.a.createElement(E.a,{step:.1,precision:1,min:0,max:100,style:{width:100},value:r,onChange:this.on_question_score_change,disabled:u})," \u5206",v.a.createElement("span",{className:"fr"},v.a.createElement(_.a,{style:"greyBack",className:"middle mr20",onClick:this.onCancel},"\u53d6\u6d88"),v.a.createElement(_.a,{style:"blue",className:"middle",onClick:this.onSave},"\u4fdd\u5b58"))))}}]),t}(y.Component)),T=n(1529),P=(n(260),n(92)),I=(window.$,function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).componentDidMount=function(){},n.getChCountBeforeCursor=function(e,t){for(var n=t.line,r=0,o=0;o<n;o++)r+=e.getLine(o).split("\u2581").length-1;return r+(e.getLine(n).substring(0,t.ch).split("\u2581").length-1)},n.onCMBeforeChange=function(e,t){var r=e.getRange(t.from,t.to),o=0;if(t.text.forEach((function(e){o+=e.split("\u2581").length-1})),r&&-1!=r.indexOf("\u2581")){var i=r.split("\u2581").length-1,a=n.getChCountBeforeCursor(e,t.from);window.confirm("\u786e\u8ba4\u8981\u5220\u9664\u7b2c".concat(1==i?a+1:"".concat(a+1,"-").concat(a+i),"\u4e2a\u7a7a\u5417\uff1f"))?n.props.onPlaceholderChange&&n.props.onPlaceholderChange(a,i,o):t.cancel()}else if(o){var s=n.getChCountBeforeCursor(e,t.from);n.props.onPlaceholderChange&&n.props.onPlaceholderChange(s,0,o)}},n.showError=function(){n.refs.nullMDEditor.showError()},n.state={},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){this.state.choice_url;var e=this.props;return e.mdID,e.className,v.a.createElement(b.a,Object.assign({},this.props,{onCMBeforeChange:this.onCMBeforeChange,ref:"nullMDEditor"}))}}]),t}(y.Component)),R=(m.a.TextArea,d.a.confirm,window.$,p.a.Option,function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).showError=function(e){n.refs["nullChildDMDEditor".concat(e)].showError()},n.state={},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=(t.question_title,t.question_score,t.question_type,t.question_choices,t.standard_answers,this.props),r=(n.question_id,n.index),i=n.onAnswerChange,a=n.addChildAnswer,s=n.toMDMode,l=n.exerciseIsPublish,u=n.answers;return v.a.createElement("div",{className:"df",style:{}},v.a.createElement("div",{className:"color-grey-6 mb5 mt6",style:{flex:"0 0 90px"}},"\u7b54\u6848(\u586b\u7a7a",r+1,"):"),v.a.createElement("div",{className:"df flex1",style:{flexDirection:"column"}},u.map((function(t,n){return v.a.createElement("div",{className:"df flex1"},v.a.createElement("div",{className:"flex1",style:{flex:"0 0 1000px"}},v.a.createElement(_.i,{ref:"nullChildDMDEditor".concat(n),className:"nullChildEditor",placeholder:"\u8bf7\u8f93\u5165\u53c2\u8003\u7b54\u6848".concat(0==n?"":"(\u53ef\u9009)"),toMDMode:s,noStorage:!0,mdID:"answer_".concat(r).concat(n),height:155,initValue:t,onChange:function(e){return i(r,n,e)}})),!l&&v.a.createElement(v.a.Fragment,null,0!=n&&v.a.createElement(o.a,{title:"\u5220\u9664"},v.a.createElement("i",{className:"iconfont icon-htmal5icon19 font-18 color-grey-c ml10",onClick:function(){return e.props.deleteChildAnswer(r,n)},style:{float:"right"}})),v.a.createElement(o.a,{title:"\u65b0\u589e\u53c2\u8003\u7b54\u6848"},v.a.createElement("i",{className:"color-green font-16 iconfont icon-roundaddfill ml6",onClick:function(){return a(r)},style:{float:"right",visibility:n==u.length-1?"":"hidden",marginTop:"2px"}}))))}))))}}]),t}(y.Component)),B=(m.a.TextArea,d.a.confirm,window.$,p.a.Option,function(e){function t(e){var n;Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).on_is_ordered_change=function(e){n.setState({is_ordered:e.target.checked})},n.onSave=function(){var e=n.state,t=e.question_title,r=e.question_score,o=(e.question_type,e.question_choices),i=e.standard_answers,a=e.is_ordered,s=n.props,l=s.question_id_to_insert_after,u=s.question_id,c=a;!0===c&&1===i.length&&(c=!1);var f=[];if(!t)return n.refs.titleEditor.showError(),void n.props.showNotification("\u9898\u76ee\uff1a\u4e0d\u80fd\u4e3a\u7a7a");var h=parseFloat(r);if(0!=h)if(r&&NaN!=h){var p=!1;if(i.forEach((function(e,t){f.push({choice_id:t+1,answer_text:[]}),e.forEach((function(e,r){f[t].answer_text.push(e),e||(n.refs["nullChildEditor".concat(t)].showError(r),n.props.showNotification("\u7b54\u6848\uff1a\u4e0d\u80fd\u4e3a\u7a7a"),p=!0)}))})),1!=p){if(!t)return n.refs.titleEditor.showError(),void n.props.showNotification("\u9898\u76ee\uff1a\u4e0d\u80fd\u4e3a\u7a7a");var d=n.props.match.params.Id;if(u){var m=n.props.getEditQuestionUrl(u);x.a.put(m,{question_title:t,question_type:3,question_score:r,question_choices:o,standard_answers:f,insert_id:l||void 0,is_ordered:c}).then((function(e){0==e.data.status?n.props.addSuccess():3==e.data.status&&n.props.changeScore(u,f)})).catch((function(e){}))}else{var y=n.props.getAddQuestionUrl();x.a.post(y,{exercise_bank_id:d,question_title:t,question_type:3,question_score:r,question_choices:o,standard_answers:f,insert_id:l||void 0,is_ordered:c}).then((function(e){0==e.data.status&&n.props.addSuccess()})).catch((function(e){}))}}}else n.props.showNotification("\u5206\u503c\uff1a\u4e0d\u80fd\u4e3a\u7a7a");else n.props.showNotification("\u5206\u503c\uff1a\u5fc5\u987b\u5927\u4e8e0")},n.onCancel=function(){n.props.onEditorCancel()},n.componentDidMount=function(){},n.on_question_score_change=function(e){n.setState({question_score:e})},n.onPlaceholderChange=function(e,t,r){var o=n.state.standard_answers.slice();if(t&&o.splice(e,t),r)for(var i=0;i<r;i++)o.splice(e+i,0,[""]);n.setState({standard_answers:o},(function(){n.mdReactObject&&n.mdReactObject.toShowMode()}))},n.onAnswerChange=function(e,t,r){n.state.standard_answers[e]&&n.setState((function(n){return{standard_answers:O()(n.standard_answers,Object(i.a)({},e,{$splice:[[t,1,r]]}))}}))},n.addChildAnswer=function(e){n.setState((function(t){return{standard_answers:O()(t.standard_answers,Object(i.a)({},e,{$push:[""]}))}}))},n.deleteChildAnswer=function(e,t){n.state.standard_answers[e][t]?n.props.confirm({content:"\u786e\u8ba4\u8981\u5220\u9664\u8fd9\u4e2a\u53c2\u8003\u7b54\u6848\u5417\uff1f",onOk:function(){n.setState((function(n){return{standard_answers:O()(n.standard_answers,Object(i.a)({},e,{$splice:[[t,1]]}))}}))}}):n.setState((function(n){return{standard_answers:O()(n.standard_answers,Object(i.a)({},e,{$splice:[[t,1]]}))}}))},n.toMDMode=function(e){if(n.mdReactObject){var t=n.mdReactObject;n.mdReactObject=null,e!=t&&t.toShowMode()}n.mdReactObject=e};var r=n.props,o=(r.question_choices,r.standard_answer),a=void 0;return o&&(a=[],o.forEach((function(e,t){a.push([]),e.answer_text.forEach((function(e,n){a[t].push(e)}))}))),n.state={standard_answers:a||[],question_title:n.props.question_title||"",question_type:n.props.question_type||3,question_score:n.props.question_score||n.props.init_question_score,is_ordered:!!n.props.is_ordered},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.question_title,r=t.question_score,o=t.question_type,i=(t.question_choices,t.standard_answers),a=t.is_ordered,s=this.props,l=s.question_id,u=s.index,c=s.exerciseIsPublish,f=(s.isNew,this.props.isAdmin(),this.props.match.params.coursesId,this.props.question_id,"question_".concat(u));return v.a.createElement("div",{className:"padding20-30 bor-bottom-greyE",id:f},v.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n .editorWrapDiv .content_editorMd_show {\n background: #EAEAEA;\n margin-bottom: 6px;\n width: 97%;\n display: inline-block;\n }\n .content_editorMd_show {\n display: flex;\n maxWidth: 1000px;\n }\n "),v.a.createElement("p",{className:"mb10 clearfix"},v.a.createElement("span",{className:"color-blue font-16 mr20 fl"},g.f[o]),v.a.createElement("span",{className:"color-grey-9 font-12 fl"},"\uff08\u5ba2\u89c2\u9898\uff0c\u7531\u7cfb\u7edf\u81ea\u52a8\u8bc4\u5206\uff0c\u5141\u8bb8\u624b\u52a8\u8c03\u5206\uff0c\u8bf7\u8bbe\u7f6e\u6807\u51c6\u7b54\u6848 \uff1b\u652f\u6301\u6700\u591a5\u4e2a\u7a7a\uff0c\u6bcf\u7a7a\u5f97\u5206\u6309\u7167\u672c\u9898\u7684\u603b\u5206\u5e73\u5747\u8ba1\u7b97\uff09")),v.a.createElement(I,Object.assign({},this.props,{mdID:"question_".concat(l),placeholder:"\u8bf7\u60a8\u8f93\u5165\u9898\u76ee",height:155,initValue:n,onChange:function(t){return e.setState({question_title:t})},onPlaceholderChange:this.onPlaceholderChange,showNullButton:!c,ref:"titleEditor"})),v.a.createElement("div",{className:"clearfix"},i.map((function(t,n){return v.a.createElement(R,Object.assign({ref:"nullChildEditor".concat(n)},e.props,{toMDMode:e.toMDMode,answers:t,index:n,onAnswerChange:e.onAnswerChange,addChildAnswer:e.addChildAnswer,deleteChildAnswer:e.deleteChildAnswer}))}))),v.a.createElement("div",{className:"clearfix "},1<i.length?v.a.createElement("span",null,v.a.createElement(P.a,{checked:a,onChange:this.on_is_ordered_change,className:"color-grey-3"},"\u591a\u4e2a\u586b\u7a7a\u7684\u7b54\u6848\u6709\u987a\u5e8f\u8981\u6c42"),v.a.createElement("span",{className:"color-grey-9 font-12"},"\uff08\u9009\u4e2d\uff0c\u6bcf\u4e2a\u586b\u7a7a\u7684\u7b54\u6848\u987a\u5e8f\u5fc5\u987b\u4e0e\u53c2\u8003\u7b54\u6848\u4e00\u81f4\uff09")):""),v.a.createElement("div",{className:"clearfix mt20"},"\u5206\u503c\uff1a",v.a.createElement(E.a,{step:.1,precision:1,min:0,max:100,style:{width:100},value:r,onChange:this.on_question_score_change,disabled:c,placeholder:"\u8bf7\u586b\u5199\u5206\u6570"})," \u5206",v.a.createElement("span",{className:"fr"},v.a.createElement(_.a,{style:"greyBack",className:"middle mr20",onClick:this.onCancel},"\u53d6\u6d88"),v.a.createElement(_.a,{style:"blue",className:"middle",onClick:this.onSave},"\u4fdd\u5b58"))))}}]),t}(y.Component)),L=n(1530),D=(m.a.TextArea,d.a.confirm,window.$,p.a.Option,function(e){function t(e){var n;Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).onSave=function(){var e=n.state,t=e.question_title,r=e.question_score,o=(e.question_type,e.question_choices,e.standard_answers),i=n.props,a=i.question_id_to_insert_after,s=i.question_id,l=o;if(!t)return n.refs.titleEditor.showError(),void n.props.showNotification("\u9898\u76ee\uff1a\u4e0d\u80fd\u4e3a\u7a7a");var u=parseFloat(r);if(0!=u)if(r&&NaN!=u){var c=n.props.match.params.Id;if(s){var f=n.props.getEditQuestionUrl(s);x.a.put(f,{question_title:t,question_type:4,question_score:r,standard_answers:l,insert_id:a||void 0}).then((function(e){0==e.data.status&&n.props.addSuccess()})).catch((function(e){}))}else{var h=n.props.getAddQuestionUrl();x.a.post(h,{exercise_bank_id:c,question_title:t,question_type:4,question_score:r,standard_answers:l,insert_id:a||void 0}).then((function(e){0==e.data.status&&n.props.addSuccess()})).catch((function(e){}))}}else n.props.showNotification("\u5206\u503c\uff1a\u4e0d\u80fd\u4e3a\u7a7a");else n.props.showNotification("\u5206\u503c\uff1a\u5fc5\u987b\u5927\u4e8e0")},n.onCancel=function(){n.props.onEditorCancel()},n.componentDidMount=function(){},n.on_question_score_change=function(e){n.setState({question_score:e})};var r=n.props.standard_answer,o=void 0;return r&&(o=r),n.state={standard_answers:o||[""],question_title:n.props.question_title||"",question_type:n.props.question_type||2,question_score:n.props.question_score||n.props.init_question_score},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.question_title,r=t.question_score,o=t.question_type,i=(t.question_choices,t.standard_answers),a=this.props,s=a.question_id,l=a.index,u=a.exerciseIsPublish,c=(a.isNew,this.props.isAdmin(),this.props.match.params.coursesId,this.props.question_id,"question_".concat(l));return v.a.createElement("div",{className:"padding20-30 bor-bottom-greyE",id:c},v.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n "),v.a.createElement("p",{className:"mb10 clearfix"},v.a.createElement("span",{className:"color-blue font-16 mr20 fl"},g.f[o]),v.a.createElement("span",{className:"color-grey-9 font-12 fl"},"\uff08\u4e3b\u89c2\u9898\uff0c\u672a\u4f5c\u7b54\u7684\u60c5\u51b5\u4e0b\u81ea\u52a8\u8bc4\u4e3a\u96f6\u5206\uff09")),v.a.createElement(b.a,{mdID:"question_".concat(s),placeholder:"\u8bf7\u60a8\u8f93\u5165\u9898\u76ee",height:155,initValue:n,onChange:function(t){return e.setState({question_title:t})},noStorage:!0,ref:"titleEditor"}),v.a.createElement("div",null,v.a.createElement("div",{className:"mb10 font-16"},"\u53c2\u8003\u7b54\u6848"),v.a.createElement(b.a,{mdID:"question_answer_".concat(s),placeholder:"\u8bf7\u8f93\u5165\u53c2\u8003\u7b54\u6848(\u53ef\u9009)",height:155,initValue:i[0]||"",onChange:function(t){return e.setState({standard_answers:[t]})},noStorage:!0})),v.a.createElement("div",{className:"mt10"},"\u5206\u503c\uff1a",v.a.createElement(E.a,{step:.1,precision:1,min:0,max:100,style:{width:100},value:r,onChange:this.on_question_score_change,disabled:u})," \u5206",v.a.createElement("span",{className:"fr"},v.a.createElement(_.a,{style:"greyBack",className:"middle mr20",onClick:this.onCancel},"\u53d6\u6d88"),v.a.createElement(_.a,{style:"blue",className:"middle",onClick:this.onSave},"\u4fdd\u5b58"))))}}]),t}(y.Component)),F=n(1531),z=(m.a.TextArea,d.a.confirm,window.$,p.a.Option,function(e){function t(e){var n;Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).onSave=function(){for(var e=n.state,t=e.question_title,r=e.question_scores,o=(e.question_type,e.shixun_name),i=n.props,a=i.question_id_to_insert_after,s=i.question_id,l=i.shixun_id,u=0;u<r.length;u++)if(!r[u]||"0"==r[u])return void n.props.showNotification("\u7b2c".concat(u+1,"\u9898\u7684\u5206\u503c\uff1a\u5fc5\u987b\u5927\u4e8e0"));var c=n.props.match.params.Id;if(s){var f=n.props.getEditQuestionUrl(s);x.a.put(f,{question_title:t,question_type:5,question_scores:r,shixun_id:l,insert_id:a||void 0,shixun_name:o}).then((function(e){0==e.data.status&&n.props.addSuccess()})).catch((function(e){}))}else{var h=n.props.getAddQuestionUrl();x.a.post(h,{exercise_bank_id:c,question_title:t,question_type:5,question_scores:r,shixun_id:l,insert_id:a||void 0,shixun_name:o}).then((function(e){0==e.data.status&&n.props.addSuccess()})).catch((function(e){}))}},n.onCancel=function(){n.props.onEditorCancel()},n.componentDidMount=function(){var e=n.props,t=e.shixun_id,r=e.exercise_url,o=n.props.match.params.Id,i="/".concat(r||"exercises","/").concat(o,"/commit_shixun.json");x.a.get(i,{params:{shixun_id:t}}).then((function(e){if(e.data.challenges){var t=n.state.question_scores,r=e.data.challenges.length;if(0==r)return n.onCancel(),n.props.showNotification("\u8fd9\u4e2a\u5b9e\u8bad\u6ca1\u6709\u5173\u5361\uff0c\u8bf7\u9009\u62e9\u5176\u4ed6\u5b9e\u8bad"),void(n.props.chooseShixunFail&&n.props.chooseShixunFail());n.props.chooseShixunSuccess&&n.props.chooseShixunSuccess();var o=[];if(t&&t.length&&t[0])o=t;else for(;r--;)o.push(5);n.setState(Object(a.a)({},e.data,{question_scores:o}))}})).catch((function(e){}))},n.on_question_score_change=function(e,t){var r=e;n.setState((function(e){return{question_scores:O()(e.question_scores,Object(i.a)({},t,{$set:r}))}}))};var r=n.props.shixun,o=r?r.map((function(e){return e.challenge_score})):[];return n.state={question_title:n.props.question_title||"",question_type:n.props.question_type||2,question_scores:o||"0",challenges:[]},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.question_title,r=(t.question_score,t.question_type),o=t.shixun_name,i=t.challenges,a=t.question_scores,s=this.props,l=s.question_id,u=s.index,c=(s.isNew,s.exerciseIsPublish);if(!i||0==i.length)return"";this.props.isAdmin(),this.props.match.params.coursesId;var f="question_".concat(u);return v.a.createElement("div",{className:"padding20-30 bor-bottom-greyE",id:f},v.a.createElement("style",null,"\n .optionMdEditor {\n flex: 0 0 800px\n }\n .optionRow {\n margin: 2px;\n }\n\n .df_left_right {\n display: flex;\n justify-content: space-between;\n margin: 0 6px;\n margin-bottom: 20px;\n }\n "),v.a.createElement("p",{className:"mb10 clearfix"},v.a.createElement("span",{className:"color-blue font-16 mr20 fl"},g.f[r]),v.a.createElement("span",{className:"color-grey-9 font-12 fl"},"\uff08\u5ba2\u89c2\u9898\uff0c\u7531\u7cfb\u7edf\u81ea\u52a8\u8bc4\u5206\uff0c\u5141\u8bb8\u624b\u52a8\u8c03\u5206\uff09")),v.a.createElement(m.a,{value:o,onChange:function(t){return e.setState({shixun_name:t.target.value})},style:{marginBottom:"10px"}}),v.a.createElement(b.a,{mdID:"question_".concat(l),placeholder:"\u8bf7\u8f93\u5165\u5b9e\u8bad\u9898\u5b8c\u6210\u8981\u6c42",height:155,initValue:n,onChange:function(t){return e.setState({question_title:t})},noStorage:!0}),v.a.createElement("div",null,v.a.createElement("div",{className:"df_left_right"},v.a.createElement("div",{className:"color-grey-9"},"\u5173\u5361"),v.a.createElement("div",{className:"color-grey-9",style:{flex:"0 0 76px"}},"\u5206\u503c")),i.map((function(t,n){return v.a.createElement("div",{className:"df_left_right"},v.a.createElement("div",{style:{color:"#05101A"},className:"lineh-30"},n+1,".",t.challenge_name),v.a.createElement("div",null,v.a.createElement(E.a,{step:.1,precision:1,min:0,max:100,style:{width:100},value:a[n],placeholder:"\u8bf7\u586b\u5199\u5206\u6570",disabled:c,onChange:function(t){return e.on_question_score_change(t,n)}})," \u5206"))}))),v.a.createElement("div",{style:{height:"40px",marginTop:"10px"}},v.a.createElement("span",{className:"fr"},v.a.createElement(_.a,{style:"greyBack",className:"middle mr20",onClick:this.onCancel},"\u53d6\u6d88"),v.a.createElement(_.a,{style:"blue",className:"middle",onClick:this.onSave},"\u4fdd\u5b58"))))}}]),t}(y.Component)),U=n(1532),V=n(1129),H=(p.a.Option,m.a.Search,function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).setVisible=function(e){n.setState({shixunmodal:e})},n.hidecouseShixunModal=function(){n.setVisible(!1)},n.funshixunmodallist=function(e,t,r,o){var i=n.state.newshixunmodallist,a=[];1<o&&(a=i),n.setState({hometypepvisible:r});var s=n.props.match.params.coursesId,l=n.props.shixunsUrl||"/courses/"+s+"/homework_commons/shixuns.json";x.a.get(l,{params:{search:e,type:t,page:o}}).then((function(e){if(200===e.status){for(var t=e.data.shixun_list,r=0;r<t.length;r++)a.push(t[r]);n.setState({shixunmodal:!0,shixunmodallist:e.data,newshixunmodallist:a,hometypepvisible:!1})}})).catch((function(e){}))},n.funpatheditarry=function(e){n.setState({patheditarry:e})},n.createCommonWork=function(){n.setState({hometypepvisible:!0,patheditarry:[]});var e=n.props.match.params.coursesId,t=n.props.shixunsUrl||"/courses/"+e+"/homework_commons/shixuns.json";x.a.get(t).then((function(e){200===e.status&&n.setState({shixunmodal:!0,shixunmodallist:e.data,hometypepvisible:!1,newshixunmodallist:e.data.shixun_list})})).catch((function(e){}))},n.state={shixunmodal:!1,hometypepvisible:!1},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"componentDidMount",value:function(){}},{key:"render",value:function(){var e=this,t=this.state,n=(t.Searchvalue,t.type,t.category_id,t.datas),r=t.shixunmodal,o=t.shixunmodallist,i=t.hometypepvisible,a=t.newshixunmodallist,s=t.patheditarry;return this.props.visible,!0===r?v.a.createElement(V.a,Object.assign({statustype:"published",type:"shixuns",datas:n,category_id:this.props.match.params.category_id,NewShixunModelType:r,shixunmodallist:o,funshixunmodallist:function(t,n,r,o){return e.funshixunmodallist(t,n,r,o)},hometypepvisible:i,hideNewShixunModelType:this.hidecouseShixunModal,newshixunmodallist:a,coursesId:this.props.match.params.coursesId,courseshomeworkstart:function(t,n){return e.props.newhomeworkstart&&e.props.newhomeworkstart(t,n)},funpatheditarry:function(t){return e.funpatheditarry(t)},patheditarry:s},this.props)):""}}]),t}(y.Component)),Y=(n(1407),n(264),m.a.TextArea),W=(d.a.confirm,window.$),K=(p.a.Option,function(e){function t(e){var n;return Object(l.a)(this,t),(n=Object(c.a)(this,Object(f.a)(t).call(this,e))).changeScore=function(e,t){n.props.confirm({content:"\u4fee\u6539\u4e86\u6807\u51c6\u7b54\u6848",subContent:"\u662f\u5426\u91cd\u65b0\u8ba1\u7b97\u5b66\u751f\u7b54\u9898\u7684\u6210\u7ee9\uff1f",onOk:function(){n.sureChangeScore(e,t)},onCancel:function(){n.addSuccess()}})},n.sureChangeScore=function(e,t){var r="/exercise_questions/".concat(e,"/update_scores.json");x.a.post(r,{standard_answers:t}).then((function(e){e&&(n.props.showNotification("".concat(e.data.message)),n.addSuccess())})).catch((function(e){}))},n.fetchExercise=function(){var e=n.props.match.params.Id;if(n.isEdit=n.props.isEdit||!!e,n.isEdit){var t=n.props.exercise_url?"/".concat(n.props.exercise_url,"/").concat(e,".json"):"/exercises/".concat(e,"/edit.json");x.a.get(t).then((function(e){if(e.data.exercise){var t=e.data,r=t.exercise,o=Object(s.a)(t,["exercise"]);r.exercise_name=r.exercise_name||r.name,r.exercise_description=r.exercise_description||r.description,n.setState(Object(a.a)({},r,{},o,{editMode:!1})),n.props.initData&&n.props.initData(e.data)}})).catch((function(e){}))}else{var r=n.props.match.params.coursesId,o="/courses/".concat(r,"/exercises/new.json");x.a.get(o).then((function(e){0==e.data.status&&n.setState(Object(a.a)({},e.data))})).catch((function(e){}))}},n.componentDidMount=function(){n.fetchExercise()},n.onSaveExercise=function(){var e=n.state,t=e.exercise_name,r=e.exercise_description,o=n.props.match.params.Id,i=n.props.match.params.coursesId;if(n.isEdit){var a="/".concat(n.props.exercise_url?n.props.exercise_url:"exercises","/").concat(o,".json");x.a.put(a,{exercise_name:t,exercise_description:r}).then((function(e){0==e.data.status&&(n.setState({editMode:!1}),n.props.showNotification("\u8bd5\u5377\u7f16\u8f91\u6210\u529f"))})).catch((function(e){}))}else{var s="/courses/".concat(i,"/exercises.json");x.a.post(s,{exercise_name:t,exercise_description:r}).then((function(e){if(0==e.data.status){n.setState({editMode:!1}),n.props.showNotification("\u8bd5\u5377\u65b0\u5efa\u6210\u529f");var t=e.data.data.exercise_id;n.isEdit=!0,n.props.history.replace("/courses/".concat(i,"/exercises/").concat(t,"/edit"))}})).catch((function(e){}))}},n.exercise_name_change=function(e){n.setState({exercise_name:e.target.value})},n.exercise_description_change=function(e){n.setState({exercise_description:e.target.value})},n._checkIsEditing=function(){return!(!n.editingId||!W(n.editingId).length)&&(n.props.showNotification("\u8bf7\u5148\u4fdd\u5b58\u6216\u53d6\u6d88\u5f53\u524d\u6b63\u5728\u7f16\u8f91\u7684\u95ee\u9898\u3002"),W("html").animate({scrollTop:W(n.editingId).offset().top-100}),!0)},n.onEditorCancel=function(){n.editingId=null;for(var e=n.state.exercise_questions,t=-1,r=0;r<e.length;r++)if(1==e[r].isNew){t=r;break}e[t].question_id?n.setState((function(e){return{exercise_questions:O()(e.exercise_questions,Object(i.a)({},t,{isNew:{$set:!1}}))}})):n.setState((function(e){return{exercise_questions:O()(e.exercise_questions,{$splice:[[t,1]]})}}))},n.addQuestion=function(e,t){n.isEdit?n._checkIsEditing()||(t==g.d?n.addShixun(e):n.addEditingQuestion(t,e)):n.props.showNotification("\u8bf7\u5148\u8f93\u5165\u8bd5\u5377\u6807\u9898\uff0c\u5e76\u4fdd\u5b58\u8bd5\u5377")},n.chooseShixun=function(e){n.addEditingQuestion(g.d,n.question_id_to_insert_after,{shixun_id:e[0]})},n.chooseShixunSuccess=function(){n.refs.shixunChooseModal.setVisible(!1)},n.addShixun=function(e){n.isEdit?n._checkIsEditing()||(n.refs.shixunChooseModal.setVisible(!0),n.question_id_to_insert_after=e):n.props.showNotification("\u8bf7\u5148\u8f93\u5165\u8bd5\u5377\u6807\u9898\uff0c\u5e76\u4fdd\u5b58\u8bd5\u5377")},n.editQestion=function(e){n._checkIsEditing()||(n.editingId="#question_".concat(e),n.setState((function(t){return{exercise_questions:O()(t.exercise_questions,Object(i.a)({},e,{isNew:{$set:!0}}))}})))},n.onSort=function(e,t,r){if(!n._checkIsEditing()){var o="/".concat(n.props.exercise_url_questions||"exercise_questions","/").concat(t,"/up_down.json");x.a.post(o,{opr:r?"up":"down"}).then((function(e){0==e.data.status&&n.fetchExercise()})).catch((function(e){}))}},n.onSortDown=function(e,t){n.onSort(e,t,!1)},n.onSortUp=function(e,t){n.onSort(e,t,!0)},n.getInitScore=function(e,t){var r=0;0==e||1==e?r=5:2==e||3==e?r=2:4==e?r=10:5==e&&(r=5);for(var o=t?n.findIndexById(t):n.state.exercise_questions.length-1;0<=o;o--)if(n.state.exercise_questions[o].question_type==e){r=n.state.exercise_questions[o].question_score;break}return r},n.addEditingQuestion=function(e,t,r){var o=n.getInitScore(e,t),i=Object(a.a)({question_type:e,init_question_score:o,isNew:!0,question_id_to_insert_after:t},r),s=n.state.exercise_questions.slice(0),l=s.length;if(t){var u=n.findIndexById(t);s.splice(u+1,0,i),l=u+1}else s.push(i);n.editingId="#question_".concat(l),n.setState({exercise_questions:s},(function(){setTimeout((function(){W(n.editingId).length&&W("html").animate({scrollTop:W(n.editingId).offset().top-100})}),500)}))},n.findIndexById=function(e){for(var t=n.state.exercise_questions,r=0;r<t.length;r++)if(t[r].question_id==e)return r},n.onQestionDelete=function(e){n.props.confirm({content:"\u786e\u8ba4\u8981\u5220\u9664\u8fd9\u4e2a\u95ee\u9898\u5417\uff1f",onOk:function(){var t="/".concat(n.props.exercise_url_questions||"exercise_questions","/").concat(e,".json");x.a.delete(t).then((function(e){0==e.data.status&&(n.props.showNotification("\u5220\u9664\u6210\u529f"),n.fetchExercise())})).catch((function(e){}))}})},n.addSuccess=function(){n.editingId=null,n.fetchExercise()},n.goToPreview=function(){var e=n.props.match.params.Id,t=n.props.match.params.coursesId;n.props.history.push("/courses/".concat(t,"/exercises/").concat(e,"/student_exercise_list?tab=2"))},n.getAddQuestionUrl=function(){var e=n.props.match.params.Id;return n.props.exercise_url_questions?"/".concat(n.props.exercise_url_questions,".json"):"/exercises/".concat(e,"/exercise_questions.json")},n.getEditQuestionUrl=function(e){return n.props.exercise_url_questions?"/".concat(n.props.exercise_url_questions,"/").concat(e,".json"):"/exercise_questions/".concat(e,".json")},n.state={exercise_questions:[],exercise_name:"",exercise_description:"",exercise_types:{},editMode:!n.props.match.params.Id},n}return Object(h.a)(t,e),Object(u.a)(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.exercise_name,i=t.exercise_description,a=(t.course_id,t.exercise_types),s=t.exercise_questions,l=(t.left_banner_id,a.q_counts),u=a.q_scores,c=a.q_doubles,f=a.q_doubles_scores,h=a.q_judges,p=a.q_judges_scores,d=a.q_mains,y=a.q_mains_scores,b=a.q_nulls,w=a.q_nulls_scores,x=a.q_shixuns,E=a.q_shixuns_scores,k=a.q_singles,O=a.q_singles_scores,S=(this.props.current_user,this.props.isAdmin(),this.props.match.params.coursesId,this.props.match.params.Id),N=(this.isEdit,{onQestionDelete:this.onQestionDelete,addSuccess:this.addSuccess,addQuestion:this.addQuestion,onEditorCancel:this.onEditorCancel,changeScore:this.changeScore,editQestion:this.editQestion,onSortDown:this.onSortDown,onSortUp:this.onSortUp,displayCount:s.length,exercise_status:this.state.exercise_status,exerciseIsPublish:2<=this.state.exercise_status,getAddQuestionUrl:this.getAddQuestionUrl,getEditQuestionUrl:this.getEditQuestionUrl,exercise_url:this.props.exercise_url});return v.a.createElement(v.a.Fragment,null,v.a.createElement(H,Object.assign({ref:"shixunChooseModal",chooseShixun:this.chooseShixun},this.props,{singleChoose:!0,shixunsUrl:this.props.shixunsUrl})),v.a.createElement("style",null,"\n .courseForm .formBlock {\n padding: 20px 30px 30px 30px;\n border-bottom: 1px solid #EDEDED;\n margin-bottom: 0px;\n background: #fff;\n }\n .exerciseNew .markdown-body {\n max-width: 1128px;\n }\n "),!this.state.editMode&&v.a.createElement("div",{className:"padding20-30",style:{background:"#fff"}},v.a.createElement("div",{className:"displayTitle font-16"},v.a.createElement("span",null,n),v.a.createElement("a",{className:"fr mr6",onClick:function(){e.setState({editMode:!0})},style:{lineHeight:"32px"}},v.a.createElement(o.a,{title:"\u7f16\u8f91"},v.a.createElement("i",{className:"iconfont icon-bianjidaibeijing font-20 color-green"})))),v.a.createElement("div",{className:"displayDescription color-grey-9",dangerouslySetInnerHTML:{__html:i},style:{whiteSpace:"pre-wrap"}})),this.state.editMode&&v.a.createElement(r.a,{labelCol:{xs:{span:24},sm:{span:24}},wrapperCol:{xs:{span:24},sm:{span:24}}},v.a.createElement("div",{className:"formBlock",style:{paddingBottom:"2px",borderBottom:"none"}},v.a.createElement(r.a.Item,{label:"\u8bd5\u5377\u6807\u9898",required:!0,className:"topicTitle "},v.a.createElement("style",null,"\n .exercicenewinputysl .ant-input{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tborder-right: none !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\theight: 40px !important;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n \n "),v.a.createElement(m.a,{placeholder:"\u8bf7\u8f93\u5165\u8bd5\u5377\u6807\u9898\uff0c\u6700\u5927\u9650\u5236".concat(60,"\u4e2a\u5b57\u7b26"),maxLength:60,className:"mt5 exercicenewinputysl",value:n,onChange:this.exercise_name_change,addonAfter:"".concat(n?n.length:0,"/").concat(60)})),v.a.createElement(r.a.Item,{label:"\xa0\xa0\u8bd5\u5377\u987b\u77e5"},v.a.createElement(Y,{placeholder:"\u8bf7\u5728\u6b64\u8f93\u5165\u672c\u6b21\u8bd5\u5377\u7b54\u9898\u7684\u76f8\u5173\u8bf4\u660e\uff0c\u6700\u5927\u9650\u5236100\u4e2a\u5b57\u7b26",className:"mt5",style:{height:"120px"},value:i,onChange:this.exercise_description_change})),v.a.createElement(r.a.Item,null,v.a.createElement("a",{className:"task-btn task-btn-orange fr mt4",style:{height:"30px",width:"70px"},onClick:this.onSaveExercise},"\u4fdd\u5b58"),this.isEdit&&v.a.createElement("a",{onClick:function(){return e.setState({editMode:!1})},className:"defalutCancelbtn fr mt4",style:{height:"30px",width:"70px",fontSize:"14px",lineHeight:"30px",marginRight:"16px"}},"\u53d6\u6d88")))),v.a.createElement("p",{className:"clearfix padding20-30 color-grey-9"},v.a.createElement("span",{className:"fl"},!!k&&v.a.createElement("span",{className:"mr20"},"\u5355\u9009\u9898",k,"\u9898\uff0c\u5171",O,"\u5206"),!!c&&v.a.createElement("span",{className:"mr20"},"\u591a\u9009\u9898",c,"\u9898\uff0c\u5171",f,"\u5206"),!!h&&v.a.createElement("span",{className:"mr20"},"\u5224\u65ad\u9898",h,"\u9898\uff0c\u5171",p,"\u5206"),!!b&&v.a.createElement("span",{className:"mr20"},"\u586b\u7a7a\u9898",b,"\u9898\uff0c\u5171",w,"\u5206"),!!d&&v.a.createElement("span",{className:"mr20"},"\u7b80\u7b54\u9898",d,"\u9898\uff0c\u5171",y,"\u5206"),!!x&&v.a.createElement("span",{className:"mr20"},"\u5b9e\u8bad\u9898",x,"\u9898\uff0c\u5171",E,"\u5206")),v.a.createElement("span",{className:"fr"},!!l&&v.a.createElement("span",null,"\u5408\u8ba1 ",v.a.createElement("span",{className:"color-blue"},l)," \u9898\uff0c \u5171 ",v.a.createElement("span",{className:"".concat(100<u?"color-red font-bd":"color-orange")},u)," \u5206"))),v.a.createElement("div",{className:"edu-back-white"},s.map((function(t,n){return 0==t.question_type||1==t.question_type?t.isNew?v.a.createElement(A,Object.assign({},e.props,t,{index:n},N)):v.a.createElement(C.a,Object.assign({},e.props,t,{index:n},N,{displayCount:s.length})):2==t.question_type?t.isNew?v.a.createElement(j,Object.assign({},e.props,t,{index:n},N)):v.a.createElement(T.a,Object.assign({},e.props,t,{index:n},N)):3==t.question_type?t.isNew?v.a.createElement(B,Object.assign({},e.props,t,{index:n},N)):v.a.createElement(L.a,Object.assign({},e.props,t,{index:n},N)):4==t.question_type?t.isNew?v.a.createElement(D,Object.assign({},e.props,t,{index:n},N)):v.a.createElement(F.a,Object.assign({},e.props,t,{index:n},N)):5==t.question_type?t.isNew?v.a.createElement(z,Object.assign({},e.props,t,{index:n},N,{chooseShixunSuccess:e.chooseShixunSuccess})):v.a.createElement(U.a,Object.assign({},e.props,t,{index:n},N)):v.a.createElement("div",null)})),!N.exerciseIsPublish&&v.a.createElement("div",{className:"problemShow padding30"},v.a.createElement(_.a,{style:"green",className:"mr20",onClick:function(){return e.addQuestion(null,g.e)}},v.a.createElement("i",{className:"iconfont icon-tianjiafangda color-white font-14 mr5",style:{marginTop:"-1px",display:"inline-block"}}),"\u9009\u62e9\u9898"),v.a.createElement(_.a,{style:"green",className:"mr20",onClick:function(){return e.addQuestion(null,g.a)}},v.a.createElement("i",{className:"iconfont icon-tianjiafangda color-white font-14 mr5",style:{marginTop:"-1px",display:"inline-block"}}),"\u5224\u65ad\u9898"),v.a.createElement(_.a,{style:"green",className:"mr20",onClick:function(){return e.addQuestion(null,g.c)}},v.a.createElement("i",{className:"iconfont icon-tianjiafangda color-white font-14 mr5",style:{marginTop:"-1px",display:"inline-block"}}),"\u586b\u7a7a\u9898"),v.a.createElement(_.a,{style:"green",className:"mr20",onClick:function(){return e.addQuestion(null,g.b)}},v.a.createElement("i",{className:"iconfont icon-tianjiafangda color-white font-14 mr5",style:{marginTop:"-1px",display:"inline-block"}}),"\u7b80\u7b54\u9898"),v.a.createElement(_.a,{style:"green",className:"mr20",onClick:function(){return e.addShixun(null)}},v.a.createElement("i",{className:"iconfont icon-tianjiafangda color-white font-14 mr5",style:{marginTop:"-1px",display:"inline-block"}}),"\u5b9e\u8bad\u9898"),S&&!this.props.hidePreviewButton&&v.a.createElement(_.a,{style:"blue",className:"fr",onClick:function(){return e.goToPreview()}},"\u8bd5\u5377\u9884\u89c8"),this.props.bottomSection&&this.props.bottomSection)))}}]),t}(y.Component));t.a=K},2240:function(e,t,n){"use strict";n.r(t);var r=n(8),o=n(7),i=n(10),a=n(9),s=n(11),l=n(0),u=n.n(l),c=(n(6),n(28)),f=n(2049),h=function(e){function t(e){var n;return Object(r.a)(this,t),(n=Object(i.a)(this,Object(a.a)(t).call(this,e))).componentDidMount=function(){},n.initData=function(e){var t=n.props.match.params.Id,r={title:"\u7f16\u8f91",is_public:e&&e.data&&e.data.exercise.is_public,crumbArray:[{to:"/banks/exercise/".concat(t,"/").concat(n.props.match.params.type),content:"\u8be6\u60c5"},{content:"\u7f16\u8f91"}]};n.props.initPublic(r,e.data)},n.state={isPublic:void 0},n}return Object(s.a)(t,e),Object(o.a)(t,[{key:"render",value:function(){var e=this,t=this.props.match.params,n=t.Id,r=(t.type,{initData:this.initData});return u.a.createElement("div",{className:"courseForm"},u.a.createElement("style",null,"\n .courseForm .ant-col-sm-24{\n text-align:left;\n }\n "),u.a.createElement(f.a,Object.assign({},this.props,this.state,r,{hidePreviewButton:!0,wrappedComponentRef:function(t){return e.exerciseNewCommonRef=t},isEdit:!0,shixunsUrl:"/exercise_banks/choose_shixun.json",exercise_url:"exercise_banks",exercise_url_questions:"exercise_bank_questions",bottomSection:u.a.createElement(c.a,{style:"blue",className:"fr",to:"/banks/exercise/".concat(n,"/").concat(this.props.match.params.type)},"\u5b8c\u6210")})))}}]),t}(l.Component);t.default=h},437:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};t.convertFieldsError=a,t.format=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=1,o=t[0],a=t.length;if("function"==typeof o)return o.apply(null,t.slice(1));if("string"!=typeof o)return o;for(var s=String(o).replace(i,(function(e){if("%%"===e)return"%";if(a<=r)return e;switch(e){case"%s":return String(t[r++]);case"%d":return Number(t[r++]);case"%j":try{return JSON.stringify(t[r++])}catch(e){return"[Circular]"}break;default:return e}})),l=t[r];r<a;l=t[++r])s+=" "+l;return s},t.isEmptyValue=function(e,t){return null==e||!("array"!==t||!Array.isArray(e)||e.length)||!(!function(e){return"string"===e||"url"===e||"hex"===e||"email"===e||"pattern"===e}(t)||"string"!=typeof e||e)},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.asyncMap=function(e,t,n,r){if(t.first)return s(function(e){var t=[];return Object.keys(e).forEach((function(n){t.push.apply(t,e[n])})),t}(e),n,r);var o=t.firstFields||[];!0===o&&(o=Object.keys(e));var i=Object.keys(e),l=i.length,u=0,c=[],f=new Promise((function(t,f){function h(e){if(c.push.apply(c,e),++u===l)return r(c),c.length?f({errors:c,fields:a(c)}):t()}i.forEach((function(t){var r,i,a,l,u,c,f=e[t];function p(e){l.push.apply(l,e),++u===c&&a(l)}-1!==o.indexOf(t)?s(f,n,h):(i=n,a=h,l=[],u=0,c=(r=f).length,r.forEach((function(e){i(e,p)})))}))}));return f.catch((function(e){return e})),f},t.complementError=function(e){return function(t){return t&&t.message?(t.field=t.field||e.fullField,t):{message:"function"==typeof t?t():t,field:t.field||e.fullField}}},t.deepMerge=function(e,t){if(t)for(var n in t)if(t.hasOwnProperty(n)){var i=t[n];"object"===(void 0===i?"undefined":o(i))&&"object"===o(e[n])?e[n]=r({},e[n],i):e[n]=i}return e};var i=/%[sdj%]/g;function a(e){if(!e||!e.length)return null;var t={};return e.forEach((function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)})),t}function s(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)n(a);else{var s=r;r+=1,s<o?t(e[s],i):n([])}}([])}t.warning=function(){}},441:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n(516)),o=u(n(607)),i=u(n(608)),a=u(n(609)),s=u(n(610)),l=u(n(611));function u(e){return e&&e.__esModule?e:{default:e}}t.default={required:r.default,whitespace:o.default,type:i.default,range:a.default,enum:s.default,pattern:l.default}},467:function(e,t,n){var r=n(477);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},477:function(e,t,n){var r=n(457),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},482:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return m})),n.d(t,"d",(function(){return y})),n.d(t,"e",(function(){return v})),n.d(t,"j",(function(){return g})),n.d(t,"h",(function(){return b})),n.d(t,"l",(function(){return w}));var r=n(16),o=n.n(r),i=n(109),a=n.n(i),s=n(133),l=n.n(s);function u(e,t){var n;return e.displayName="Form("+((n=t).displayName||n.name||"WrappedComponent")+")",e.WrappedComponent=t,a()(e,t)}function c(e){return e}function f(e){return Array.prototype.concat.apply([],e)}function h(e,t,n){var r={};return function e(t,n,r,o,i){var a=0<arguments.length&&void 0!==t?t:"",s=n,u=r,c=o,f=i;if(u(a,s))f(a,s);else if(null!=s)if(Array.isArray(s))s.forEach((function(t,n){return e(a+"["+n+"]",t,u,c,f)}));else{if("object"!=typeof s)return void l()(!1,c);Object.keys(s).forEach((function(t){var n=s[t];e(a+(a?".":"")+t,n,u,c,f)}))}}(void 0,e,t,n,(function(e,t){r[e]=t})),r}function p(e,t,n){var r=e.map((function(e){var t=o()({},e,{trigger:e.trigger||[]});return"string"==typeof t.trigger&&(t.trigger=[t.trigger]),t}));return t&&r.push({trigger:n?[].concat(n):[],rules:t}),r}function d(e){return e.filter((function(e){return!!e.rules&&e.rules.length})).map((function(e){return e.trigger})).reduce((function(e,t){return e.concat(t)}),[])}function m(e){if(!e||!e.target)return e;var t=e.target;return"checkbox"===t.type?t.checked:t.value}function y(e){return e?e.map((function(e){return e&&e.message?e.message:e})):e}function v(e,t,n){var r=e,o=t,i=n;return void 0===n&&("function"==typeof r?(i=r,o={},r=void 0):Array.isArray(r)?o="function"==typeof o?(i=o,{}):o||{}:(i=o,o=r||{},r=void 0)),{names:r,options:o,callback:i}}function g(e){return 0===Object.keys(e).length}function b(e){return!!e&&e.some((function(e){return e.rules&&e.rules.length}))}function w(e,t){return 0===e.lastIndexOf(t,0)}},493:function(e,t,n){var r=n(467),o=n(460),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},500:function(e,t,n){"use strict";n(46),n(628),n(589)},501:function(e,t,n){"use strict";var r=n(0),o=n(1),i=n(12),a=n.n(i),s=n(16),l=n.n(s),u=n(13),c=n.n(u),f=n(770),h=n.n(f),p=n(629),d=n.n(p),m=n(518),y=n(591),v=n(482);function g(e,t){var n=window.getComputedStyle,r=n?n(e):e.currentStyle;if(r)return r[t.replace(/-(\w)/gi,(function(e,t){return t.toUpperCase()}))]}var b={getForm:function(){return l()({},y.b.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(e,t,n){var r=this,o=Object(v.e)(e,t,n),i=o.names,a=o.callback,s=o.options;return this.validateFields(i,s,(function(e,t){if(e){var n=r.fieldsStore.getValidFieldsName(),o=void 0,i=void 0;if(n.forEach((function(t){if(d()(e,t)){var n=r.getFieldInstance(t);if(n){var a=c.a.findDOMNode(n),s=a.getBoundingClientRect().top;"hidden"!==a.type&&(void 0===i||s<i)&&(i=s,o=a)}}})),o){var u=s.container||function(e){for(var t=e,n=void 0;"body"!==(n=t.nodeName.toLowerCase());){var r=g(t,"overflowY");if(t!==e&&("auto"===r||"scroll"===r)&&t.scrollHeight>t.clientHeight)return t;t=t.parentNode}return"body"===n?t.ownerDocument:t}(o);h()(o,u,l()({onlyScrollIfNeeded:!0},s.scroll))}}"function"==typeof a&&a(e,t)}))}},w=function(e){return Object(m.a)(l()({},e),[b])},x=n(514),_=n(33),E=n(77),k=n(51),O=n(27),S=n(52),N=n(709),A=n(708),C=n(18),q="data-__meta",M="data-__field",j=n(169),T=n.n(j)()({labelAlign:"right",vertical:!1});function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var z=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},U=Object(k.a)("success","warning","error","validating","");Object(k.a)("left","right");var V=function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=L(e).apply(this,arguments),(t=!o||"object"!==P(o)&&"function"!=typeof o?D(n):o).helpShow=!1,t.onLabelClick=function(){var e=t.props.id||t.getId();if(e){var n=u.findDOMNode(D(t)).querySelector('[id="'.concat(e,'"]'));n&&n.focus&&n.focus()}},t.onHelpAnimEnd=function(e,n){(t.helpShow=n)||t.setState({})},t.renderFormItem=function(e){var n,o=e.getPrefixCls,i=t.props,s=i.prefixCls,l=i.style,u=i.className,c=z(i,["prefixCls","style","className"]),f=o("form",s),h=t.renderChildren(f),p=(R(n={},"".concat(f,"-item"),!0),R(n,"".concat(f,"-item-with-help"),t.helpShow),R(n,"".concat(u),!!u),n);return r.createElement(N.a,I({className:a()(p),style:l},Object(_.default)(c,["id","htmlFor","label","labelAlign","labelCol","wrapperCol","help","extra","validateStatus","hasFeedback","required","colon"]),{key:"row"}),h)},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(e,r.Component),t=e,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.children,n=e.help,r=e.validateStatus,o=e.id;Object(O.a)(this.getControls(t,!0).length<=1||void 0!==n||void 0!==r,"Form.Item","Cannot generate `validateStatus` and `help` automatically, while there are more than one `getFieldDecorator` in it."),Object(O.a)(!o,"Form.Item","`id` is deprecated for its label `htmlFor`. Please use `htmlFor` directly.")}},{key:"getHelpMessage",value:function(){var e=this.props.help;if(void 0===e&&this.getOnlyControl()){var t=this.getField().errors;return t?t.map((function(e,t){var n=null;return r.isValidElement(e)?n=e:r.isValidElement(e.message)&&(n=e.message),n?r.cloneElement(n,{key:t}):e.message})).reduce((function(e,t){return[].concat(function(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}(e),[" ",t])}),[]).slice(1):""}return e}},{key:"getControls",value:function(t,n){for(var o=[],i=r.Children.toArray(t),a=0;a<i.length&&(n||!(0<o.length));a++){var s=i[a];(!s.type||s.type!==e&&"FormItem"!==s.type.displayName)&&s.props&&(q in s.props?o.push(s):s.props.children&&(o=o.concat(this.getControls(s.props.children,n))))}return o}},{key:"getOnlyControl",value:function(){var e=this.getControls(this.props.children,!1)[0];return void 0!==e?e:null}},{key:"getChildProp",value:function(e){var t=this.getOnlyControl();return t&&t.props&&t.props[e]}},{key:"getId",value:function(){return this.getChildProp("id")}},{key:"getMeta",value:function(){return this.getChildProp(q)}},{key:"getField",value:function(){return this.getChildProp(M)}},{key:"getValidateStatus",value:function(){if(!this.getOnlyControl())return"";var e=this.getField();if(e.validating)return"validating";if(e.errors)return"error";var t="value"in e?e.value:this.getMeta().initialValue;return null!=t&&""!==t?"success":""}},{key:"isRequired",value:function(){var e=this.props.required;return void 0!==e?e:!!this.getOnlyControl()&&((this.getMeta()||{}).validate||[]).filter((function(e){return!!e.rules})).some((function(e){return e.rules.some((function(e){return e.required}))}))}},{key:"renderHelp",value:function(e){var t=this.getHelpMessage(),n=t?r.createElement("div",{className:"".concat(e,"-explain"),key:"help"},t):null;return n&&(this.helpShow=!!n),r.createElement(S.a,{transitionName:"show-help",component:"",transitionAppear:!0,key:"help",onEnd:this.onHelpAnimEnd},n)}},{key:"renderExtra",value:function(e){var t=this.props.extra;return t?r.createElement("div",{className:"".concat(e,"-extra")},t):null}},{key:"renderValidateWrapper",value:function(e,t,n,o){var i=this.props,s=this.getOnlyControl,l=void 0===i.validateStatus&&s?this.getValidateStatus():i.validateStatus,u="".concat(e,"-item-control");l&&(u=a()("".concat(e,"-item-control"),{"has-feedback":i.hasFeedback||"validating"===l,"has-success":"success"===l,"has-warning":"warning"===l,"has-error":"error"===l,"is-validating":"validating"===l}));var c="";switch(l){case"success":c="check-circle";break;case"warning":c="exclamation-circle";break;case"error":c="close-circle";break;case"validating":c="loading";break;default:c=""}var f=i.hasFeedback&&c?r.createElement("span",{className:"".concat(e,"-item-children-icon")},r.createElement(C.a,{type:c,theme:"loading"===c?"outlined":"filled"})):null;return r.createElement("div",{className:u},r.createElement("span",{className:"".concat(e,"-item-children")},t,f),n,o)}},{key:"renderWrapper",value:function(e,t){var n=this;return r.createElement(T.Consumer,{key:"wrapper"},(function(o){var i=o.wrapperCol,s=o.vertical,l=n.props.wrapperCol,u=("wrapperCol"in n.props?l:i)||{},c=a()("".concat(e,"-item-control-wrapper"),u.className);return r.createElement(T.Provider,{value:{vertical:s}},r.createElement(A.a,I({},u,{className:c}),t))}))}},{key:"renderLabel",value:function(e){var t=this;return r.createElement(T.Consumer,{key:"label"},(function(n){var o,i=n.vertical,s=n.labelAlign,l=n.labelCol,u=n.colon,c=t.props,f=c.label,h=c.labelCol,p=c.labelAlign,d=c.colon,m=c.id,y=c.htmlFor,v=t.isRequired(),g=("labelCol"in t.props?h:l)||{},b="labelAlign"in t.props?p:s,w="".concat(e,"-item-label"),x=a()(w,"left"===b&&"".concat(w,"-left"),g.className),_=f,E=!0===d||!1!==u&&!1!==d;E&&!i&&"string"==typeof f&&""!==f.trim()&&(_=f.replace(/[\uff1a:]\s*$/,""));var k=a()((R(o={},"".concat(e,"-item-required"),v),R(o,"".concat(e,"-item-no-colon"),!E),o));return f?r.createElement(A.a,I({},g,{className:x}),r.createElement("label",{htmlFor:y||m||t.getId(),className:k,title:"string"==typeof f?f:"",onClick:t.onLabelClick},_)):null}))}},{key:"renderChildren",value:function(e){var t=this.props.children;return[this.renderLabel(e),this.renderWrapper(e,this.renderValidateWrapper(e,t,this.renderHelp(e),this.renderExtra(e)))]}},{key:"render",value:function(){return r.createElement(E.a,null,this.renderFormItem)}}])&&B(t.prototype,n),e}();function H(e){return(H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(){return(Y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function W(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $(e,t){return($=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}V.defaultProps={hasFeedback:!1},V.propTypes={prefixCls:o.string,label:o.oneOfType([o.string,o.node]),labelCol:o.object,help:o.oneOfType([o.node,o.bool]),validateStatus:o.oneOf(U),hasFeedback:o.bool,wrapperCol:o.object,className:o.string,id:o.string,children:o.node,colon:o.bool};var Z=Object(k.a)("horizontal","inline","vertical"),X=function(){function e(t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,G(e).call(this,t))).renderForm=function(e){var t,o=e.getPrefixCls,i=n.props,s=i.prefixCls,l=i.hideRequiredMark,u=i.className,c=void 0===u?"":u,f=i.layout,h=o("form",s),p=a()(h,(W(t={},"".concat(h,"-horizontal"),"horizontal"===f),W(t,"".concat(h,"-vertical"),"vertical"===f),W(t,"".concat(h,"-inline"),"inline"===f),W(t,"".concat(h,"-hide-required-mark"),l),t),c),d=Object(_.default)(n.props,["prefixCls","className","layout","form","hideRequiredMark","wrapperCol","labelAlign","labelCol","colon"]);return r.createElement("form",Y({},d,{className:p}))},Object(O.a)(!t.form,"Form","It is unnecessary to pass `form` to `Form` after antd@1.7.0."),n}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$(e,t)}(e,r.Component),t=e,(n=[{key:"render",value:function(){var e=this.props,t=e.wrapperCol,n=e.labelAlign,o=e.labelCol,i=e.layout,a=e.colon;return r.createElement(T.Provider,{value:{wrapperCol:t,labelAlign:n,labelCol:o,vertical:"vertical"===i,colon:a}},r.createElement(E.a,null,this.renderForm))}}])&&K(t.prototype,n),e}();X.defaultProps={colon:!0,layout:"horizontal",hideRequiredMark:!1,onSubmit:function(e){e.preventDefault()}},X.propTypes={prefixCls:o.string,layout:o.oneOf(Z),children:o.any,onSubmit:o.func,hideRequiredMark:o.bool,colon:o.bool},X.Item=V,X.createFormField=x.a,X.create=function(e){return w(Y(Y({fieldNameProp:"id"},0<arguments.length&&void 0!==e?e:{}),{fieldMetaProp:q,fieldDataProp:M}))},t.a=X},506:function(e,t,n){"use strict";var r=n(480),o=n(0),i=n(12),a=n.n(i),s=n(39),l=n(77),u=n(18);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},v=s.a.Group,g=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=p(this,d(e).apply(this,arguments))).renderButton=function(e){var n=e.getPopupContainer,i=e.getPrefixCls,l=t.props,c=l.prefixCls,h=l.type,p=l.disabled,d=l.onClick,m=l.htmlType,g=l.children,b=l.className,w=l.overlay,x=l.trigger,_=l.align,E=l.visible,k=l.onVisibleChange,O=l.placement,S=l.getPopupContainer,N=l.href,A=l.icon,C=void 0===A?o.createElement(u.a,{type:"ellipsis"}):A,q=l.title,M=y(l,["prefixCls","type","disabled","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title"]),j=i("dropdown-button",c),T={align:_,overlay:w,disabled:p,trigger:p?[]:x,onVisibleChange:k,placement:O,getPopupContainer:S||n};return"visible"in t.props&&(T.visible=E),o.createElement(v,f({},M,{className:a()(j,b)}),o.createElement(s.a,{type:h,disabled:p,onClick:d,htmlType:m,href:N,title:q},g),o.createElement(r.a,T,o.createElement(s.a,{type:h},C)))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(e,o.Component),t=e,(n=[{key:"render",value:function(){return o.createElement(l.a,null,this.renderButton)}}])&&h(t.prototype,n),e}();g.defaultProps={placement:"bottomRight",type:"default"},r.a.Button=g,t.a=r.a},514:function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(16),o=n.n(r),i=n(22),a=n.n(i),s=function e(t){a()(this,e),o()(this,t)};function l(e){return e instanceof s}function u(e){return l(e)?e:new s(e)}},516:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,i,a){!e.required||n.hasOwnProperty(e.field)&&!r.isEmptyValue(t,a||e.type)||o.push(r.format(i.messages.required,e.fullField))}},517:function(e,t,n){var r=n(626);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},518:function(e,t,n){"use strict";var r=n(54),o=n.n(r),i=n(34),a=n.n(i),s=n(16),l=n.n(s),u=n(578),c=n.n(u),f=n(0),h=n.n(f),p=n(600),d=n.n(p),m=n(179),y=n(604),v=n.n(y),g=(n(133),n(511)),b=n.n(g),w=n(517),x=n.n(w),_=n(460),E=n.n(_),k=n(22),O=n.n(k),S=n(37),N=n.n(S),A=n(514),C=n(482);function q(e,t){return 0===t.indexOf(e)&&-1!==[".","["].indexOf(t[e.length])}function M(e){return Object(C.c)(e,(function(e,t){return Object(A.b)(t)}),"You must wrap field data with `createFormField`.")}var j=(N()(T,[{key:"updateFields",value:function(e){this.fields=M(e)}},{key:"flattenRegisteredFields",value:function(e){var t=this.getAllFieldsName();return Object(C.c)(e,(function(e){return 0<=t.indexOf(e)}),"You cannot set a form field before rendering a field associated with the value.")}},{key:"setFields",value:function(e){var t=this,n=this.fieldsMeta,r=l()({},this.fields,e),o={};Object.keys(n).forEach((function(e){o[e]=t.getValueFromFields(e,r)})),Object.keys(o).forEach((function(e){var n=o[e],i=t.getFieldMeta(e);if(i&&i.normalize){var a=i.normalize(n,t.getValueFromFields(e,t.fields),o);a!==n&&(r[e]=l()({},r[e],{value:a}))}})),this.fields=r}},{key:"resetFields",value:function(e){var t=this.fields;return(e?this.getValidFieldsFullName(e):this.getAllFieldsName()).reduce((function(e,n){var r=t[n];return r&&"value"in r&&(e[n]={}),e}),{})}},{key:"setFieldMeta",value:function(e,t){this.fieldsMeta[e]=t}},{key:"setFieldsAsDirty",value:function(){var e=this;Object.keys(this.fields).forEach((function(t){var n=e.fields[t],r=e.fieldsMeta[t];n&&r&&Object(C.h)(r.validate)&&(e.fields[t]=l()({},n,{dirty:!0}))}))}},{key:"getFieldMeta",value:function(e){return this.fieldsMeta[e]=this.fieldsMeta[e]||{},this.fieldsMeta[e]}},{key:"getValueFromFields",value:function(e,t){var n=t[e];if(n&&"value"in n)return n.value;var r=this.getFieldMeta(e);return r&&r.initialValue}},{key:"getValidFieldsName",value:function(){var e=this,t=this.fieldsMeta;return t?Object.keys(t).filter((function(t){return!e.getFieldMeta(t).hidden})):[]}},{key:"getAllFieldsName",value:function(){var e=this.fieldsMeta;return e?Object.keys(e):[]}},{key:"getValidFieldsFullName",value:function(e){var t=Array.isArray(e)?e:[e];return this.getValidFieldsName().filter((function(e){return t.some((function(t){return e===t||Object(C.l)(e,t)&&0<=[".","["].indexOf(e[t.length])}))}))}},{key:"getFieldValuePropValue",value:function(e){var t=e.name,n=e.getValueProps,r=e.valuePropName,o=this.getField(t),i="value"in o?o.value:e.initialValue;return n?n(i):a()({},r,i)}},{key:"getField",value:function(e){return l()({},this.fields[e],{name:e})}},{key:"getNotCollectedFields",value:function(){var e=this;return this.getValidFieldsName().filter((function(t){return!e.fields[t]})).map((function(t){return{name:t,dirty:!1,value:e.getFieldMeta(t).initialValue}})).reduce((function(e,t){return x()(e,t.name,Object(A.a)(t))}),{})}},{key:"getNestedAllFields",value:function(){var e=this;return Object.keys(this.fields).reduce((function(t,n){return x()(t,n,Object(A.a)(e.fields[n]))}),this.getNotCollectedFields())}},{key:"getFieldMember",value:function(e,t){return this.getField(e)[t]}},{key:"getNestedFields",value:function(e,t){return(e||this.getValidFieldsName()).reduce((function(e,n){return x()(e,n,t(n))}),{})}},{key:"getNestedField",value:function(e,t){var n=this.getValidFieldsFullName(e);if(0===n.length||1===n.length&&n[0]===e)return t(e);var r="["===n[0][e.length],o=r?e.length:e.length+1;return n.reduce((function(e,n){return x()(e,n.slice(o),t(n))}),r?[]:{})}},{key:"isValidNestedFieldName",value:function(e){return this.getAllFieldsName().every((function(t){return!q(t,e)&&!q(e,t)}))}},{key:"clearField",value:function(e){delete this.fields[e],delete this.fieldsMeta[e]}}]),T);function T(e){O()(this,T),P.call(this),this.fields=M(e),this.fieldsMeta={}}var P=function(){var e=this;this.setFieldsInitialValue=function(t){var n=e.flattenRegisteredFields(t),r=e.fieldsMeta;Object.keys(n).forEach((function(t){r[t]&&e.setFieldMeta(t,l()({},e.getFieldMeta(t),{initialValue:n[t]}))}))},this.getAllValues=function(){var t=e.fieldsMeta,n=e.fields;return Object.keys(t).reduce((function(t,r){return x()(t,r,e.getValueFromFields(r,n))}),{})},this.getFieldsValue=function(t){return e.getNestedFields(t,e.getFieldValue)},this.getFieldValue=function(t){var n=e.fields;return e.getNestedField(t,(function(t){return e.getValueFromFields(t,n)}))},this.getFieldsError=function(t){return e.getNestedFields(t,e.getFieldError)},this.getFieldError=function(t){return e.getNestedField(t,(function(t){return Object(C.d)(e.getFieldMember(t,"errors"))}))},this.isFieldValidating=function(t){return e.getFieldMember(t,"validating")},this.isFieldsValidating=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldValidating(t)}))},this.isFieldTouched=function(t){return e.getFieldMember(t,"touched")},this.isFieldsTouched=function(t){return(t||e.getValidFieldsName()).some((function(t){return e.isFieldTouched(t)}))}};t.a=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[],n=e.validateMessages,r=e.onFieldsChange,i=e.onValuesChange,s=e.mapProps,u=void 0===s?C.i:s,f=e.mapPropsToFields,p=e.fieldNameProp,y=e.fieldMetaProp,g=e.fieldDataProp,w=e.formPropName,_=void 0===w?"form":w,k=e.name,O=e.withRef;return function(e){var s=d()({displayName:"Form",mixins:t,getInitialState:function(){var e=this,t=f&&f(this.props);return this.fieldsStore=new j(t||{}),this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},this.renderFields={},this.domFields={},["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach((function(t){e[t]=function(){var n;return(n=e.fieldsStore)[t].apply(n,arguments)}})),{submitting:!1}},componentDidMount:function(){this.cleanUpUselessFields()},componentWillReceiveProps:function(e){f&&this.fieldsStore.updateFields(f(e))},componentDidUpdate:function(){this.cleanUpUselessFields()},onCollectCommon:function(e,t,n){var r=this.fieldsStore.getFieldMeta(e);if(r[t])r[t].apply(r,c()(n));else if(r.originalProps&&r.originalProps[t]){var o;(o=r.originalProps)[t].apply(o,c()(n))}var s=r.getValueFromEvent?r.getValueFromEvent.apply(r,c()(n)):C.g.apply(void 0,c()(n));if(i&&s!==this.fieldsStore.getFieldValue(e)){var u=this.fieldsStore.getAllValues(),f={};u[e]=s,Object.keys(u).forEach((function(e){return x()(f,e,u[e])})),i(l()(a()({},_,this.getForm()),this.props),x()({},e,s),f)}var h=this.fieldsStore.getField(e);return{name:e,field:l()({},h,{value:s,touched:!0}),fieldMeta:r}},onCollect:function(e,t){for(var n=arguments.length,r=Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this.onCollectCommon(e,t,r),s=i.name,u=i.field,c=i.fieldMeta.validate;this.fieldsStore.setFieldsAsDirty();var f=l()({},u,{dirty:Object(C.h)(c)});this.setFields(a()({},s,f))},onCollectValidate:function(e,t){for(var n=arguments.length,r=Array(2<n?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this.onCollectCommon(e,t,r),a=i.field,s=i.fieldMeta,u=l()({},a,{dirty:!0});this.fieldsStore.setFieldsAsDirty(),this.validateFieldsInternal([u],{action:t,options:{firstFields:!!s.validateFirst}})},getCacheBind:function(e,t,n){this.cachedBind[e]||(this.cachedBind[e]={});var r=this.cachedBind[e];return r[t]&&r[t].oriFn===n||(r[t]={fn:n.bind(this,e,t),oriFn:n}),r[t].fn},getFieldDecorator:function(e,t){var n=this,r=this.getFieldProps(e,t);return function(t){n.renderFields[e]=!0;var o=n.fieldsStore.getFieldMeta(e),i=t.props;return o.originalProps=i,o.ref=t.ref,h.a.cloneElement(t,l()({},r,n.fieldsStore.getFieldValuePropValue(o)))}},getFieldProps:function(e,t){var n=this,r=1<arguments.length&&void 0!==t?t:{};if(!e)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[e];var o=l()({name:e,trigger:"onChange",valuePropName:"value",validate:[]},r),i=o.rules,a=o.trigger,s=o.validateTrigger,u=void 0===s?a:s,c=o.validate,f=this.fieldsStore.getFieldMeta(e);"initialValue"in o&&(f.initialValue=o.initialValue);var h=l()({},this.fieldsStore.getFieldValuePropValue(o),{ref:this.getCacheBind(e,e+"__ref",this.saveRef)});p&&(h[p]=k?k+"_"+e:e);var d=Object(C.k)(c,i,u),m=Object(C.f)(d);m.forEach((function(t){h[t]||(h[t]=n.getCacheBind(e,t,n.onCollectValidate))})),a&&-1===m.indexOf(a)&&(h[a]=this.getCacheBind(e,a,this.onCollect));var v=l()({},f,o,{validate:d});return this.fieldsStore.setFieldMeta(e,v),y&&(h[y]=v),g&&(h[g]=this.fieldsStore.getField(e)),this.renderFields[e]=!0,h},getFieldInstance:function(e){return this.instances[e]},getRules:function(e,t){var n=e.validate.filter((function(e){return!t||0<=e.trigger.indexOf(t)})).map((function(e){return e.rules}));return Object(C.b)(n)},setFields:function(e,t){var n=this,o=this.fieldsStore.flattenRegisteredFields(e);if(this.fieldsStore.setFields(o),r){var i=Object.keys(o).reduce((function(e,t){return x()(e,t,n.fieldsStore.getField(t))}),{});r(l()(a()({},_,this.getForm()),this.props),i,this.fieldsStore.getNestedAllFields())}this.forceUpdate(t)},setFieldsValue:function(e,t){var n=this.fieldsStore.fieldsMeta,r=this.fieldsStore.flattenRegisteredFields(e),o=Object.keys(r).reduce((function(e,t){if(n[t]){var o=r[t];e[t]={value:o}}return e}),{});if(this.setFields(o,t),i){var s=this.fieldsStore.getAllValues();i(l()(a()({},_,this.getForm()),this.props),e,s)}},saveRef:function(e,t,n){if(!n){var r=this.fieldsStore.getFieldMeta(e);return r.preserve||(this.clearedFieldMetaCache[e]={field:this.fieldsStore.getField(e),meta:r},this.clearField(e)),void delete this.domFields[e]}this.domFields[e]=!0,this.recoverClearedField(e);var o=this.fieldsStore.getFieldMeta(e);if(o){var i=o.ref;if(i){if("string"==typeof i)throw new Error("can not set ref string for "+e);"function"==typeof i?i(n):Object.prototype.hasOwnProperty.call(i,"current")&&(i.current=n)}}this.instances[e]=n},cleanUpUselessFields:function(){var e=this,t=this.fieldsStore.getAllFieldsName().filter((function(t){var n=e.fieldsStore.getFieldMeta(t);return!e.renderFields[t]&&!e.domFields[t]&&!n.preserve}));t.length&&t.forEach(this.clearField),this.renderFields={}},clearField:function(e){this.fieldsStore.clearField(e),delete this.instances[e],delete this.cachedBind[e]},resetFields:function(e){var t=this,n=this.fieldsStore.resetFields(e);0<Object.keys(n).length&&this.setFields(n),e?(Array.isArray(e)?e:[e]).forEach((function(e){return delete t.clearedFieldMetaCache[e]})):this.clearedFieldMetaCache={}},recoverClearedField:function(e){this.clearedFieldMetaCache[e]&&(this.fieldsStore.setFields(a()({},e,this.clearedFieldMetaCache[e].field)),this.fieldsStore.setFieldMeta(e,this.clearedFieldMetaCache[e].meta),delete this.clearedFieldMetaCache[e])},validateFieldsInternal:function(e,t,r){var o=this,i=t.fieldNames,a=t.action,s=t.options,u=void 0===s?{}:s,c={},f={},h={},p={};if(e.forEach((function(e){var t=e.name;if(!0===u.force||!1!==e.dirty){var n=o.fieldsStore.getFieldMeta(t),r=l()({},e);r.errors=void 0,r.validating=!0,r.dirty=!0,c[t]=o.getRules(n,a),f[t]=r.value,h[t]=r}else e.errors&&x()(p,t,{errors:e.errors})})),this.setFields(h),Object.keys(f).forEach((function(e){f[e]=o.fieldsStore.getFieldValue(e)})),r&&Object(C.j)(h))r(Object(C.j)(p)?null:p,this.fieldsStore.getFieldsValue(i));else{var d=new v.a(c);n&&d.messages(n),d.validate(f,u,(function(e){var t=l()({},p);e&&e.length&&e.forEach((function(e){var n=e.field,r=n;Object.keys(c).some((function(e){var t=c[e]||[];if(e===n)return r=e,!0;if(t.every((function(e){return"array"!==e.type}))||0!==n.indexOf(e+"."))return!1;var o=n.slice(e.length+1);return!!/^\d+$/.test(o)&&(r=e,!0)}));var o=b()(t,r);"object"==typeof o&&!Array.isArray(o)||x()(t,r,{errors:[]}),b()(t,r.concat(".errors")).push(e)}));var n=[],a={};Object.keys(c).forEach((function(e){var r=b()(t,e),i=o.fieldsStore.getField(e);E()(i.value,f[e])?(i.errors=r&&r.errors,i.value=f[e],i.validating=!1,i.dirty=!1,a[e]=i):n.push({name:e})})),o.setFields(a),r&&(n.length&&n.forEach((function(e){var n=e.name,r=[{message:n+" need to revalidate",field:n}];x()(t,n,{expired:!0,errors:r})})),r(Object(C.j)(t)?null:t,o.fieldsStore.getFieldsValue(i)))}))}},validateFields:function(e,t,n){var r=this,o=new Promise((function(o,i){var a=Object(C.e)(e,t,n),s=a.names,l=a.options,u=Object(C.e)(e,t,n).callback;if(!u||"function"==typeof u){var c=u;u=function(e,t){c&&c(e,t),e?i({errors:e,values:t}):o(t)}}var f=s?r.fieldsStore.getValidFieldsFullName(s):r.fieldsStore.getValidFieldsName(),h=f.filter((function(e){var t=r.fieldsStore.getFieldMeta(e);return Object(C.h)(t.validate)})).map((function(e){var t=r.fieldsStore.getField(e);return t.value=r.fieldsStore.getFieldValue(e),t}));h.length?("firstFields"in l||(l.firstFields=f.filter((function(e){return!!r.fieldsStore.getFieldMeta(e).validateFirst}))),r.validateFieldsInternal(h,{fieldNames:f,options:l},u)):u(null,r.fieldsStore.getFieldsValue(f))}));return o.catch((function(e){return console.error,e})),o},isSubmitting:function(){return this.state.submitting},submit:function(e){var t=this;this.setState({submitting:!0}),e((function(){t.setState({submitting:!1})}))},render:function(){var t=this.props,n=t.wrappedComponentRef,r=o()(t,["wrappedComponentRef"]),i=a()({},_,this.getForm());O?i.ref="wrappedComponent":n&&(i.ref=n);var s=u.call(this,l()({},i,r));return h.a.createElement(e,s)}});return Object(C.a)(Object(m.a)(s),e)}}},577:function(e,t,n){"use strict";n(46),n(762)},578:function(e,t,n){"use strict";t.__esModule=!0;var r,o=(r=n(580))&&r.__esModule?r:{default:r};t.default=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return(0,o.default)(e)}},579:function(e,t,n){"use strict";var r,o=n(0),i=n.n(o),a=n(12),s=n.n(a),l=n(54),u=n.n(l),c=n(16),f=n.n(c),h=n(22),p=n.n(h),d=n(19),m=n.n(d),y=n(24),v=n.n(y),g=n(1),b=n.n(g),w=n(23),x=n(37),_=n.n(x),E=(r=i.a.Component,v()(k,r),_()(k,[{key:"componentDidUpdate",value:function(){this.props.disabled&&this.state.active&&this.setState({active:!1})}},{key:"triggerEvent",value:function(e,t,n){var r="on"+e,o=this.props.children;o.props[r]&&o.props[r](n),t!==this.state.active&&this.setState({active:t})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.disabled,r=e.activeClassName,o=e.activeStyle,a=n?void 0:{onTouchStart:this.onTouchStart,onTouchMove:this.onTouchMove,onTouchEnd:this.onTouchEnd,onTouchCancel:this.onTouchCancel,onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onMouseLeave:this.onMouseLeave},l=i.a.Children.only(t);if(n||!this.state.active)return i.a.cloneElement(l,a);var u=l.props,c=u.style,h=u.className;return!1!==o&&(o&&(c=f()({},c,o)),h=s()(h,r)),i.a.cloneElement(l,f()({className:h,style:c},a))}}]),k);function k(){p()(this,k);var e=m()(this,(k.__proto__||Object.getPrototypeOf(k)).apply(this,arguments));return e.state={active:!1},e.onTouchStart=function(t){e.triggerEvent("TouchStart",!0,t)},e.onTouchMove=function(t){e.triggerEvent("TouchMove",!1,t)},e.onTouchEnd=function(t){e.triggerEvent("TouchEnd",!1,t)},e.onTouchCancel=function(t){e.triggerEvent("TouchCancel",!1,t)},e.onMouseDown=function(t){e.triggerEvent("MouseDown",!0,t)},e.onMouseUp=function(t){e.triggerEvent("MouseUp",!1,t)},e.onMouseLeave=function(t){e.triggerEvent("MouseLeave",!1,t)},e}var O=E;E.defaultProps={disabled:!1};var S,N=(S=o.Component,v()(A,S),A.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.disabled,r=u()(e,["prefixCls","disabled"]);return i.a.createElement(O,{disabled:n,activeClassName:t+"-handler-active"},i.a.createElement("span",r))},A);function A(){return p()(this,A),m()(this,S.apply(this,arguments))}N.propTypes={prefixCls:b.a.string,disabled:b.a.bool,onTouchStart:b.a.func,onTouchEnd:b.a.func,onMouseDown:b.a.func,onMouseUp:b.a.func,onMouseLeave:b.a.func};var C=N;function q(){}function M(e){e.preventDefault()}function j(e){return null!=e}function T(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}var P,I=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,R=(P=i.a.Component,v()(B,P),B.prototype.componentDidMount=function(){this.componentDidUpdate()},B.prototype.componentDidUpdate=function(e){var t=this.props,n=t.value,r=t.onChange,o=t.max,i=t.min,a=this.state.focused;if(e){if(!T(e.value,n)||!T(e.max,o)||!T(e.min,i)){var s,l=a?n:this.getValidValue(n);s=this.pressingUpOrDown?l:this.inputting?this.rawInput:this.toPrecisionAsStep(l),this.setState({value:l,inputValue:s})}var u="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==o&&"number"==typeof u&&o<u&&r&&r(o),"min"in this.props&&e.min!==i&&"number"==typeof u&&u<i&&r&&r(i)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case w.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case w.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var c=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===w.a.BACKSPACE?c=this.cursorStart-1:this.lastKeyCode===w.a.DELETE&&(c=this.cursorStart):c=this.input.value.length,this.fixCaret(c,c)}}catch(e){}this.lastKeyCode=null,this.pressingUpOrDown&&(this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus(),this.pressingUpOrDown=!1)},B.prototype.componentWillUnmount=function(){this.stop()},B.prototype.getCurrentValidValue=function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t,10))?this.state.value:this.getValidValue(t),this.toNumber(t)},B.prototype.getRatio=function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},B.prototype.getValueFromEvent=function(e){var t=e.target.value.trim().replace(/\u3002/g,".");return j(this.props.decimalSeparator)&&(t=t.replace(this.props.decimalSeparator,".")),t},B.prototype.getValidValue=function(e,t,n){var r=1<arguments.length&&void 0!==t?t:this.props.min,o=2<arguments.length&&void 0!==n?n:this.props.max,i=parseFloat(e,10);return isNaN(i)?e:(i<r&&(i=r),o<i&&(i=o),i)},B.prototype.setValue=function(e,t){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(e,10))?null:parseFloat(e,10),o=this.state,i=o.value,a=void 0===i?null:i,s=o.inputValue,l=void 0===s?null:s,u="number"==typeof r?r.toFixed(n):""+r,c=r!==a||u!==""+l;return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},t):this.setState({value:r,inputValue:this.toPrecisionAsStep(e)},t),c&&this.props.onChange(r),r},B.prototype.getPrecision=function(e){if(j(this.props.precision))return this.props.precision;var t=e.toString();if(0<=t.indexOf("e-"))return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return 0<=t.indexOf(".")&&(n=t.length-t.indexOf(".")-1),n},B.prototype.getMaxPrecision=function(e,t){var n=1<arguments.length&&void 0!==t?t:1,r=this.props,o=r.precision,i=r.step;if(j(o))return o;var a=this.getPrecision(n),s=this.getPrecision(i),l=this.getPrecision(e);return e?Math.max(l,a+s):a+s},B.prototype.getPrecisionFactor=function(e,t){var n=1<arguments.length&&void 0!==t?t:1,r=this.getMaxPrecision(e,n);return Math.pow(10,r)},B.prototype.fixCaret=function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;e===n&&t===r||this.input.setSelectionRange(e,t)}catch(e){}},B.prototype.focus=function(){this.input.focus(),this.recordCursorPosition()},B.prototype.blur=function(){this.input.blur()},B.prototype.formatWrapper=function(e){return this.props.formatter?this.props.formatter(e):e},B.prototype.toPrecisionAsStep=function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)},B.prototype.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},B.prototype.toNumber=function(e){var t=this.props.precision,n=this.state.focused,r=e&&16<e.length&&n;return this.isNotCompleteNumber(e)||r?e:j(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)},B.prototype.upStep=function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e+r*n*t)/r).toFixed(o);return this.toNumber(i)},B.prototype.downStep=function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),o=Math.abs(this.getMaxPrecision(e,t)),i=((r*e-r*n*t)/r).toFixed(o);return this.toNumber(i)},B.prototype.step=function(e,t,n,r){var o=this,i=2<arguments.length&&void 0!==n?n:1,a=r;this.stop(),t&&(t.persist(),t.preventDefault());var s=this.props;if(!s.disabled){var l=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(l)){var u=this[e+"Step"](l,i),c=u>s.max||u<s.min;u>s.max?u=s.max:u<s.min&&(u=s.min),this.setValue(u),this.setState({focused:!0}),c||(this.autoStepTimer=setTimeout((function(){o[e](t,i,!0)}),a?200:600))}}},B.prototype.render=function(){var e,t=f()({},this.props),n=t.prefixCls,r=t.disabled,o=t.readOnly,a=t.useTouch,l=t.autoComplete,c=t.upHandler,h=t.downHandler,p=(u()(t,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler"]),s()(((e={})[n]=!0,e[t.className]=!!t.className,e[n+"-disabled"]=r,e[n+"-focused"]=this.state.focused,e))),d="",m="",y=this.state.value;if(y||0===y)if(isNaN(y))d=n+"-handler-up-disabled",m=n+"-handler-down-disabled";else{var v=Number(y);v>=t.max&&(d=n+"-handler-up-disabled"),v<=t.min&&(m=n+"-handler-down-disabled")}var g={};for(var b in t)!t.hasOwnProperty(b)||"data-"!==b.substr(0,5)&&"aria-"!==b.substr(0,5)&&"role"!==b||(g[b]=t[b]);var w,x=!t.readOnly&&!t.disabled,_=this.getInputDisplayValue(),E=void 0;w=a?(E={onTouchStart:x&&!d?this.up:q,onTouchEnd:this.stop},{onTouchStart:x&&!m?this.down:q,onTouchEnd:this.stop}):(E={onMouseDown:x&&!d?this.up:q,onMouseUp:this.stop,onMouseLeave:this.stop},{onMouseDown:x&&!m?this.down:q,onMouseUp:this.stop,onMouseLeave:this.stop});var k=!!d||r||o,O=!!m||r||o;return i.a.createElement("div",{className:p,style:t.style,title:t.title,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onMouseOver:t.onMouseOver,onMouseOut:t.onMouseOut},i.a.createElement("div",{className:n+"-handler-wrap"},i.a.createElement(C,f()({ref:this.saveUp,disabled:k,prefixCls:n,unselectable:"unselectable"},E,{role:"button","aria-label":"Increase Value","aria-disabled":!!k,className:n+"-handler "+n+"-handler-up "+d}),c||i.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:M})),i.a.createElement(C,f()({ref:this.saveDown,disabled:O,prefixCls:n,unselectable:"unselectable"},w,{role:"button","aria-label":"Decrease Value","aria-disabled":!!O,className:n+"-handler "+n+"-handler-down "+m}),h||i.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:M}))),i.a.createElement("div",{className:n+"-input-wrap"},i.a.createElement("input",f()({role:"spinbutton","aria-valuemin":t.min,"aria-valuemax":t.max,"aria-valuenow":y,required:t.required,type:t.type,placeholder:t.placeholder,onClick:t.onClick,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:t.tabIndex,autoComplete:l,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:x?this.onKeyDown:q,onKeyUp:x?this.onKeyUp:q,autoFocus:t.autoFocus,maxLength:t.maxLength,readOnly:t.readOnly,disabled:t.disabled,max:t.max,min:t.min,step:t.step,name:t.name,title:t.title,id:t.id,onChange:this.onChange,ref:this.saveInput,value:_,pattern:t.pattern},g))))},B);function B(e){p()(this,B);var t=m()(this,P.call(this,e));L.call(t);var n;n="value"in e?e.value:e.defaultValue,t.state={focused:e.autoFocus};var r=t.getValidValue(t.toNumber(n));return t.state=f()({},t.state,{inputValue:t.toPrecisionAsStep(r),value:r}),t}R.propTypes={value:b.a.oneOfType([b.a.number,b.a.string]),defaultValue:b.a.oneOfType([b.a.number,b.a.string]),focusOnUpDown:b.a.bool,autoFocus:b.a.bool,onChange:b.a.func,onPressEnter:b.a.func,onKeyDown:b.a.func,onKeyUp:b.a.func,prefixCls:b.a.string,tabIndex:b.a.oneOfType([b.a.string,b.a.number]),disabled:b.a.bool,onFocus:b.a.func,onBlur:b.a.func,readOnly:b.a.bool,max:b.a.number,min:b.a.number,step:b.a.oneOfType([b.a.number,b.a.string]),upHandler:b.a.node,downHandler:b.a.node,useTouch:b.a.bool,formatter:b.a.func,parser:b.a.func,onMouseEnter:b.a.func,onMouseLeave:b.a.func,onMouseOver:b.a.func,onMouseOut:b.a.func,onMouseUp:b.a.func,precision:b.a.number,required:b.a.bool,pattern:b.a.string,decimalSeparator:b.a.string},R.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-I,step:1,style:{},onChange:q,onKeyDown:q,onPressEnter:q,onFocus:q,onBlur:q,parser:function(e){return e.replace(/[^\w\.-]+/g,"")},required:!1,autoComplete:"off"};var L=function(){var t=this;this.onKeyDown=function(e){for(var n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props,a=i.onKeyDown,s=i.onPressEnter;if(e.keyCode===w.a.UP){var l=t.getRatio(e);t.up(e,l),t.stop()}else if(e.keyCode===w.a.DOWN){var u=t.getRatio(e);t.down(e,u),t.stop()}else e.keyCode===w.a.ENTER&&s&&s(e);t.recordCursorPosition(),t.lastKeyCode=e.keyCode,a&&a.apply(void 0,[e].concat(r))},this.onKeyUp=function(e){for(var n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props.onKeyUp;t.stop(),t.recordCursorPosition(),i&&i.apply(void 0,[e].concat(r))},this.onChange=function(e){var n=t.props.onChange;t.state.focused&&(t.inputting=!0),t.rawInput=t.props.parser(t.getValueFromEvent(e)),t.setState({inputValue:t.rawInput}),n(t.toNumber(t.rawInput))},this.onMouseUp=function(){var e=t.props.onMouseUp;t.recordCursorPosition(),e&&e.apply(void 0,arguments)},this.onFocus=function(){var e;t.setState({focused:!0}),(e=t.props).onFocus.apply(e,arguments)},this.onBlur=function(){var e=t.props.onBlur;t.inputting=!1,t.setState({focused:!1});var n=t.getCurrentValidValue(t.state.inputValue),r=t.setValue(n);if(e){var o=t.input.value,i=t.getInputDisplayValue({focus:!1,value:r});t.input.value=i,e.apply(void 0,arguments),t.input.value=o}},this.getInputDisplayValue=function(e){var n=e||t.state,r=n.focused,o=n.inputValue,i=n.value,a=void 0;null==(a=r?o:t.toPrecisionAsStep(i))&&(a="");var s=t.formatWrapper(a);return j(t.props.decimalSeparator)&&(s=s.toString().replace(".",t.props.decimalSeparator)),s},this.recordCursorPosition=function(){try{t.cursorStart=t.input.selectionStart,t.cursorEnd=t.input.selectionEnd,t.currentValue=t.input.value,t.cursorBefore=t.input.value.substring(0,t.cursorStart),t.cursorAfter=t.input.value.substring(t.cursorEnd)}catch(e){}},this.restoreByAfter=function(e){if(void 0===e)return!1;var n=t.input.value,r=n.lastIndexOf(e);if(-1===r)return!1;var o=t.cursorBefore.length;return t.lastKeyCode===w.a.DELETE&&t.cursorBefore.charAt(o-1)===e[0]?(t.fixCaret(o,o),!0):r+e.length===n.length&&(t.fixCaret(r,r),!0)},this.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,(function(n,r){var o=e.substring(r);return t.restoreByAfter(o)}))},this.stop=function(){t.autoStepTimer&&clearTimeout(t.autoStepTimer)},this.down=function(e,n,r){t.pressingUpOrDown=!0,t.step("down",e,n,r)},this.up=function(e,n,r){t.pressingUpOrDown=!0,t.step("up",e,n,r)},this.saveUp=function(e){t.upHandler=e},this.saveDown=function(e){t.downHandler=e},this.saveInput=function(e){t.input=e}},D=R,F=n(18),z=n(77);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function W(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,"a",(function(){return Z}));var $=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},Z=function(){function e(){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(t=W(this,K(e).apply(this,arguments))).saveInputNumber=function(e){t.inputNumberRef=e},t.renderInputNumber=function(e){var n,r=e.getPrefixCls,i=t.props,a=i.className,l=i.size,u=i.prefixCls,c=$(i,["className","size","prefixCls"]),f=r("input-number",u),h=s()((H(n={},"".concat(f,"-lg"),"large"===l),H(n,"".concat(f,"-sm"),"small"===l),n),a),p=o.createElement(F.a,{type:"up",className:"".concat(f,"-handler-up-inner")}),d=o.createElement(F.a,{type:"down",className:"".concat(f,"-handler-down-inner")});return o.createElement(D,V({ref:t.saveInputNumber,className:h,upHandler:p,downHandler:d,prefixCls:f},c))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}(e,o.Component),t=e,(n=[{key:"focus",value:function(){this.inputNumberRef.focus()}},{key:"blur",value:function(){this.inputNumberRef.blur()}},{key:"render",value:function(){return o.createElement(z.a,null,this.renderInputNumber)}}])&&Y(t.prototype,n),e}();Z.defaultProps={step:1}},580:function(e,t,n){e.exports={default:n(581),__esModule:!0}},581:function(e,t,n){n(271),n(582),e.exports=n(62).Array.from},582:function(e,t,n){"use strict";var r=n(177),o=n(85),i=n(137),a=n(583),s=n(584),l=n(270),u=n(585),c=n(586);o(o.S+o.F*!n(588)((function(e){Array.from(e)})),"Array",{from:function(e,t,n){var o,f,h,p,d=i(e),m="function"==typeof this?this:Array,y=arguments.length,v=1<y?t:void 0,g=void 0!==v,b=0,w=c(d);if(g&&(v=r(v,2<y?n:void 0,2)),null==w||m==Array&&s(w))for(f=new m(o=l(d.length));b<o;b++)u(f,b,g?v(d[b],b):d[b]);else for(p=w.call(d),f=new m;!(h=p.next()).done;b++)u(f,b,g?a(p,v,[h.value,b],!0):h.value);return f.length=b,f}})},583:function(e,t,n){var r=n(96);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},584:function(e,t,n){var r=n(135),o=n(83)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},585:function(e,t,n){"use strict";var r=n(76),o=n(108);e.exports=function(e,t,n){t in e?r.f(e,t,o(0,n)):e[t]=n}},586:function(e,t,n){var r=n(587),o=n(83)("iterator"),i=n(135);e.exports=n(62).getIteratorMethod=function(e){if(null!=e)return e[o]||e["@@iterator"]||i[r(e)]}},587:function(e,t,n){var r=n(178),o=n(83)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},588:function(e,t,n){var r=n(83)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,(function(){throw 2}))}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],a=i[r]();a.next=function(){return{done:n=!0}},i[r]=function(){return a},e(i)}catch(e){}return n}},591:function(e,t,n){"use strict";n.d(t,"b",(function(){return o}));var r=n(518),o={getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}};t.a=function(e){return Object(r.a)(e,[o])}},592:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(113),o=Object.prototype.hasOwnProperty,i=Array.prototype.splice,a=Object.prototype.toString;function s(e){return a.call(e).slice(8,-1)}var l=Object.assign||function(e,t){return u(t).forEach((function(n){o.call(t,n)&&(e[n]=t[n])})),e},u="function"==typeof Object.getOwnPropertySymbols?function(e){return Object.keys(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.keys(e)};function c(e){return Array.isArray(e)?l(e.constructor(e.length),e):"Map"===s(e)?new Map(e):"Set"===s(e)?new Set(e):e&&"object"==typeof e?l(Object.create(Object.getPrototypeOf(e)),e):e}var f=(Object.defineProperty(h.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(e){this.update.isEquals=e},enumerable:!0,configurable:!0}),h.prototype.extend=function(e,t){this.commands[e]=t},h.prototype.update=function(e,t){var n=this,i="function"==typeof t?{$apply:t}:t;Array.isArray(e)&&Array.isArray(i)||r(!Array.isArray(i),"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."),r("object"==typeof i&&null!==i,"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: %s.",Object.keys(this.commands).join(", "));var a=e;return u(i).forEach((function(t){if(o.call(n.commands,t)){var r=e===a;a=n.commands[t](i[t],a,i,e),r&&n.isEquals(a,e)&&(a=e)}else{var l="Map"===s(e)?n.update(e.get(t),i[t]):n.update(e[t],i[t]),u="Map"===s(a)?a.get(t):a[t];n.isEquals(l,u)&&(void 0!==l||o.call(e,t))||(a===e&&(a=c(e)),"Map"===s(a)?a.set(t,l):a[t]=l)}})),a},h);function h(){this.commands=l({},p),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(e,t){return e===t},this.update.newContext=function(){return(new h).update}}t.Context=f;var p={$push:function(e,t,n){return m(t,n,"$push"),e.length?t.concat(e):t},$unshift:function(e,t,n){return m(t,n,"$unshift"),e.length?e.concat(t):t},$splice:function(e,t,n,o){var a,s;return a=t,s=n,r(Array.isArray(a),"Expected $splice target to be an array; got %s",a),v(s.$splice),e.forEach((function(e){v(e),t===o&&e.length&&(t=c(o)),i.apply(t,e)})),t},$set:function(e,t,n){var o;return o=n,r(1===Object.keys(o).length,"Cannot have more than one key in an object with $set"),e},$toggle:function(e,t){y(e,"$toggle");var n=e.length?c(t):t;return e.forEach((function(e){n[e]=!t[e]})),n},$unset:function(e,t,n,r){return y(e,"$unset"),e.forEach((function(e){Object.hasOwnProperty.call(t,e)&&(t===r&&(t=c(r)),delete t[e])})),t},$add:function(e,t,n,r){return g(t,"$add"),y(e,"$add"),"Map"===s(t)?e.forEach((function(e){var n=e[0],o=e[1];t===r&&t.get(n)!==o&&(t=c(r)),t.set(n,o)})):e.forEach((function(e){t!==r||t.has(e)||(t=c(r)),t.add(e)})),t},$remove:function(e,t,n,r){return g(t,"$remove"),y(e,"$remove"),e.forEach((function(e){t===r&&t.has(e)&&(t=c(r)),t.delete(e)})),t},$merge:function(e,t,n,o){var i,a;return i=t,r((a=e)&&"object"==typeof a,"update(): $merge expects a spec of type 'object'; got %s",a),r(i&&"object"==typeof i,"update(): $merge expects a target of type 'object'; got %s",i),u(e).forEach((function(n){e[n]!==t[n]&&(t===o&&(t=c(o)),t[n]=e[n])})),t},$apply:function(e,t){var n;return r("function"==typeof(n=e),"update(): expected spec of $apply to be a function; got %s.",n),e(t)}},d=new f;function m(e,t,n){r(Array.isArray(e),"update(): expected target of %s to be an array; got %s.",n,e),y(t[n],n)}function y(e,t){r(Array.isArray(e),"update(): expected spec of %s to be an array; got %s. Did you forget to wrap your parameter in an array?",t,e)}function v(e){r(Array.isArray(e),"update(): expected spec of $splice to be an array of arrays; got %s. Did you forget to wrap your parameters in an array?",e)}function g(e,t){var n=s(e);r("Map"===n||"Set"===n,"update(): %s expects a target of type Set or Map; got %s",t,n)}t.isEquals=d.update.isEquals,t.extend=d.extend,t.default=d.update,t.default.default=e.exports=l(t.default,t)},600:function(e,t,n){"use strict";var r=n(0),o=n(601);if(void 0===r)throw Error("create-react-class could not find the React object. If you are using script tags, make sure that React is being loaded before create-react-class.");var i=(new r.Component).updater;e.exports=o(r.Component,r.isValidElement,i)},601:function(e,t,n){"use strict";var r=n(97),o=n(602),i=n(603);e.exports=function(e,t,n){var a=[],s={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",UNSAFE_componentWillMount:"DEFINE_MANY",UNSAFE_componentWillReceiveProps:"DEFINE_MANY",UNSAFE_componentWillUpdate:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},l={getDerivedStateFromProps:"DEFINE_MANY_MERGED"},u={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)c(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=r({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=r({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=h(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=r({},e.propTypes,t)},statics:function(e,t){!function(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){if(i(!(n in u),'ReactClass: You are attempting to define a reserved property, `%s`, that shouldn\'t be on the "statics" key. Define it as an instance property instead; it will still be accessible on the constructor.',n),n in e){var o=l.hasOwnProperty(n)?l[n]:null;return i("DEFINE_MANY_MERGED"===o,"ReactClass: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",n),e[n]=h(e[n],r)}e[n]=r}}}(e,t)},autobind:function(){}};function c(e,n){if(n){i("function"!=typeof n,"ReactClass: You're attempting to use a component class or function as a mixin. Instead, just use a regular object."),i(!t(n),"ReactClass: You're attempting to use a component as a mixin. Instead, just use a regular object.");var r,o,a,l=e.prototype,c=l.__reactAutoBindPairs;for(var f in n.hasOwnProperty("mixins")&&u.mixins(e,n.mixins),n)if(n.hasOwnProperty(f)&&"mixins"!==f){var d=n[f],m=l.hasOwnProperty(f);if(r=m,o=f,a=s.hasOwnProperty(o)?s[o]:null,v.hasOwnProperty(o)&&i("OVERRIDE_BASE"===a,"ReactClassInterface: You are attempting to override `%s` from your class specification. Ensure that your method names do not overlap with React methods.",o),r&&i("DEFINE_MANY"===a||"DEFINE_MANY_MERGED"===a,"ReactClassInterface: You are attempting to define `%s` on your component more than once. This conflict may be due to a mixin.",o),u.hasOwnProperty(f))u[f](e,d);else{var y=s.hasOwnProperty(f);if("function"!=typeof d||y||m||!1===n.autobind)if(m){var g=s[f];i(y&&("DEFINE_MANY_MERGED"===g||"DEFINE_MANY"===g),"ReactClass: Unexpected spec policy %s for key %s when mixing in component specs.",g,f),"DEFINE_MANY_MERGED"===g?l[f]=h(l[f],d):"DEFINE_MANY"===g&&(l[f]=p(l[f],d))}else l[f]=d;else c.push(f,d),l[f]=d}}}}function f(e,t){for(var n in i(e&&t&&"object"==typeof e&&"object"==typeof t,"mergeIntoWithNoDuplicateKeys(): Cannot merge non-objects."),t)t.hasOwnProperty(n)&&(i(void 0===e[n],"mergeIntoWithNoDuplicateKeys(): Tried to merge two objects with the same key: `%s`. This conflict may be due to a mixin; in particular, this may be caused by two getInitialState() or getDefaultProps() methods returning objects with clashing keys.",n),e[n]=t[n]);return e}function h(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return f(o,n),f(o,r),o}}function p(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function d(){}var m={componentDidMount:function(){this.__isMounted=!0}},y={componentWillUnmount:function(){this.__isMounted=!1}},v={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t)},isMounted:function(){return!!this.__isMounted}};return r(d.prototype,e.prototype,v),function(e){var t=function(e,r,a){this.__reactAutoBindPairs.length&&function(e){for(var t,n=e.__reactAutoBindPairs,r=0;r<n.length;r+=2){var o=n[r],i=n[r+1];e[o]=(t=e,i.bind(t))}}(this),this.props=e,this.context=r,this.refs=o,this.updater=a||n,this.state=null;var s=this.getInitialState?this.getInitialState():null;i("object"==typeof s&&!Array.isArray(s),"%s.getInitialState(): must return an object or null",t.displayName||"ReactCompositeComponent"),this.state=s};for(var r in t.prototype=new d,(t.prototype.constructor=t).prototype.__reactAutoBindPairs=[],a.forEach(c.bind(null,t)),c(t,m),c(t,e),c(t,y),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),i(t.prototype.render,"createClass(...): Class specification must implement a `render` method."),s)t.prototype[r]||(t.prototype[r]=null);return t}}},602:function(e,t,n){"use strict";e.exports={}},603:function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,o,i,a,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},604:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=n(437),s=(r=n(605))&&r.__esModule?r:{default:r},l=n(625);function u(e){this.rules=null,this._messages=l.messages,this.define(e)}u.prototype={messages:function(e){return e&&(this._messages=(0,a.deepMerge)((0,l.newMessages)(),e)),this._messages},define:function(e){if(!e)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===e?"undefined":i(e))||Array.isArray(e))throw new Error("Rules must be an object");this.rules={};var t=void 0,n=void 0;for(t in e)e.hasOwnProperty(t)&&(n=e[t],this.rules[t]=Array.isArray(n)?n:[n])},validate:function(e,t,n){var r=this,s=e,c=1<arguments.length&&void 0!==t?t:{},f=2<arguments.length&&void 0!==n?n:function(){};if("function"==typeof c&&(f=c,c={}),!this.rules||0===Object.keys(this.rules).length)return f&&f(),Promise.resolve();if(c.messages){var h=this.messages();h===l.messages&&(h=(0,l.newMessages)()),(0,a.deepMerge)(h,c.messages),c.messages=h}else c.messages=this.messages();var p=void 0,d=void 0,m={};(c.keys||Object.keys(this.rules)).forEach((function(t){p=r.rules[t],d=s[t],p.forEach((function(n){var i=n;"function"==typeof i.transform&&(s===e&&(s=o({},s)),d=s[t]=i.transform(d)),(i="function"==typeof i?{validator:i}:o({},i)).validator=r.getValidationMethod(i),i.field=t,i.fullField=i.fullField||t,i.type=r.getType(i),i.validator&&(m[t]=m[t]||[],m[t].push({rule:i,value:d,source:s,field:t}))}))}));var y={};return(0,a.asyncMap)(m,c,(function(e,t){var n=e.rule,r=!("object"!==n.type&&"array"!==n.type||"object"!==i(n.fields)&&"object"!==i(n.defaultField));function s(e,t){return o({},t,{fullField:n.fullField+"."+e})}function l(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];if(Array.isArray(i)||(i=[i]),!c.suppressWarning&&i.length&&u.warning("async-validator:",i),i.length&&n.message&&(i=[].concat(n.message)),i=i.map((0,a.complementError)(n)),c.first&&i.length)return y[n.field]=1,t(i);if(r){if(n.required&&!e.value)return i=n.message?[].concat(n.message).map((0,a.complementError)(n)):c.error?[c.error(n,(0,a.format)(c.messages.required,n.field))]:[],t(i);var l={};if(n.defaultField)for(var f in e.value)e.value.hasOwnProperty(f)&&(l[f]=n.defaultField);for(var h in l=o({},l,e.rule.fields))if(l.hasOwnProperty(h)){var p=Array.isArray(l[h])?l[h]:[l[h]];l[h]=p.map(s.bind(null,h))}var d=new u(l);d.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),d.validate(e.value,e.rule.options||c,(function(e){var n=[];i&&i.length&&n.push.apply(n,i),e&&e.length&&n.push.apply(n,e),t(n.length?n:null)}))}else t(i)}r=r&&(n.required||!n.required&&e.value),n.field=e.field;var f=void 0;n.asyncValidator?f=n.asyncValidator(n,e.value,l,e.source,c):n.validator&&(!0===(f=n.validator(n,e.value,l,e.source,c))?l():!1===f?l(n.message||n.field+" fails"):f instanceof Array?l(f):f instanceof Error&&l(f.message)),f&&f.then&&f.then((function(){return l()}),(function(e){return l(e)}))}),(function(e){!function(e){var t,n,r=void 0,o=[];for(r=0;r<e.length;r++)t=e[r],Array.isArray(t)?o=o.concat.apply(o,t):o.push(t);n=o.length?(0,a.convertFieldsError)(o):o=null,f(o,n)}(e)}))},getType:function(e){if(void 0===e.type&&e.pattern instanceof RegExp&&(e.type="pattern"),"function"!=typeof e.validator&&e.type&&!s.default.hasOwnProperty(e.type))throw new Error((0,a.format)("Unknown rule type %s",e.type));return e.type||"string"},getValidationMethod:function(e){if("function"==typeof e.validator)return e.validator;var t=Object.keys(e),n=t.indexOf("message");return-1!==n&&t.splice(n,1),1===t.length&&"required"===t[0]?s.default.required:s.default[this.getType(e)]||!1}},u.register=function(e,t){if("function"!=typeof t)throw new Error("Cannot register a validator by type, validator is not a function");s.default[e]=t},u.warning=a.warning,u.messages=l.messages,t.default=u},605:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(606)),o=v(n(612)),i=v(n(613)),a=v(n(614)),s=v(n(615)),l=v(n(616)),u=v(n(617)),c=v(n(618)),f=v(n(619)),h=v(n(620)),p=v(n(621)),d=v(n(622)),m=v(n(623)),y=v(n(624));function v(e){return e&&e.__esModule?e:{default:e}}t.default={string:r.default,method:o.default,number:i.default,boolean:a.default,regexp:s.default,integer:l.default,float:u.default,array:c.default,object:f.default,enum:h.default,pattern:p.default,date:d.default,url:y.default,hex:y.default,email:y.default,required:m.default}},606:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t,"string")&&!e.required)return n();o.default.required(e,t,r,s,a,"string"),(0,i.isEmptyValue)(t,"string")||(o.default.type(e,t,r,s,a),o.default.range(e,t,r,s,a),o.default.pattern(e,t,r,s,a),!0===e.whitespace&&o.default.whitespace(e,t,r,s,a))}n(s)}},607:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,i){!/^\s+$/.test(t)&&""!==t||o.push(r.format(i.messages.whitespace,e.fullField))}},608:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437)),a=(r=n(516))&&r.__esModule?r:{default:r},s={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},l={integer:function(e){return l.number(e)&&parseInt(e,10)===e},float:function(e){return l.number(e)&&!l.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(void 0===e?"undefined":o(e))&&!l.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&!!e.match(s.email)&&e.length<255},url:function(e){return"string"==typeof e&&!!e.match(s.url)},hex:function(e){return"string"==typeof e&&!!e.match(s.hex)}};t.default=function(e,t,n,r,s){if(e.required&&void 0===t)(0,a.default)(e,t,n,r,s);else{var u=e.type;-1<["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(u)?l[u](t)||r.push(i.format(s.messages.types[u],e.fullField,e.type)):u&&(void 0===t?"undefined":o(t))!==e.type&&r.push(i.format(s.messages.types[u],e.fullField,e.type))}}},609:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,i){var a="number"==typeof e.len,s="number"==typeof e.min,l="number"==typeof e.max,u=t,c=null,f="number"==typeof t,h="string"==typeof t,p=Array.isArray(t);if(f?c="number":h?c="string":p&&(c="array"),!c)return!1;p&&(u=t.length),h&&(u=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),a?u!==e.len&&o.push(r.format(i.messages[c].len,e.fullField,e.len)):s&&!l&&u<e.min?o.push(r.format(i.messages[c].min,e.fullField,e.min)):l&&!s&&u>e.max?o.push(r.format(i.messages[c].max,e.fullField,e.max)):s&&l&&(u<e.min||u>e.max)&&o.push(r.format(i.messages[c].range,e.fullField,e.min,e.max))}},610:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,i){e.enum=Array.isArray(e.enum)?e.enum:[],-1===e.enum.indexOf(t)&&o.push(r.format(i.messages.enum,e.fullField,e.enum.join(", ")))}},611:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(437));t.default=function(e,t,n,o,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||o.push(r.format(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},612:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,r,s,a),void 0!==t&&o.default.type(e,t,r,s,a)}n(s)}},613:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),(0,i.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,r,s,a),void 0!==t&&(o.default.type(e,t,r,s,a),o.default.range(e,t,r,s,a))}n(s)}},614:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(437),i=(r=n(441))&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,o.isEmptyValue)(t)&&!e.required)return n();i.default.required(e,t,r,s,a),void 0!==t&&i.default.type(e,t,r,s,a)}n(s)}},615:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,r,s,a),(0,i.isEmptyValue)(t)||o.default.type(e,t,r,s,a)}n(s)}},616:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,r,s,a),void 0!==t&&(o.default.type(e,t,r,s,a),o.default.range(e,t,r,s,a))}n(s)}},617:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,r,s,a),void 0!==t&&(o.default.type(e,t,r,s,a),o.default.range(e,t,r,s,a))}n(s)}},618:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t,"array")&&!e.required)return n();o.default.required(e,t,r,s,a,"array"),(0,i.isEmptyValue)(t,"array")||(o.default.type(e,t,r,s,a),o.default.range(e,t,r,s,a))}n(s)}},619:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,r,s,a),void 0!==t&&o.default.type(e,t,r,s,a)}n(s)}},620:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();o.default.required(e,t,r,s,a),t&&o.default.enum(e,t,r,s,a)}n(s)}},621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t,"string")&&!e.required)return n();o.default.required(e,t,r,s,a),(0,i.isEmptyValue)(t,"string")||o.default.pattern(e,t,r,s,a)}n(s)}},622:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t)&&!e.required)return n();if(o.default.required(e,t,r,s,a),!(0,i.isEmptyValue)(t)){var l=void 0;l="number"==typeof t?new Date(t):t,o.default.type(e,l,r,s,a),l&&o.default.range(e,l.getTime(),r,s,a)}}n(s)}},623:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=(r=n(441))&&r.__esModule?r:{default:r};t.default=function(e,t,n,r,a){var s=[],l=Array.isArray(t)?"array":void 0===t?"undefined":o(t);i.default.required(e,t,r,s,a,l),n(s)}},624:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(r=n(441))&&r.__esModule?r:{default:r},i=n(437);t.default=function(e,t,n,r,a){var s=e.type,l=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if((0,i.isEmptyValue)(t,s)&&!e.required)return n();o.default.required(e,t,r,l,a,s),(0,i.isEmptyValue)(t,s)||o.default.type(e,t,r,l,a)}n(l)}},625:function(e,t,n){"use strict";function r(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}Object.defineProperty(t,"__esModule",{value:!0}),t.newMessages=r,t.messages=r()},626:function(e,t,n){var r=n(493),o=n(634),i=n(492),a=n(168),s=n(487);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,h=e;null!=h&&++u<c;){var p=s(t[u]),d=n;if(u!=f){var m=h[p];void 0===(d=l?l(m,p,h):void 0)&&(d=a(m)?m:i(t[u+1])?[]:{})}r(h,p,d),h=h[p]}return e}},628:function(e,t,n){},629:function(e,t,n){var r=n(630),o=n(633);e.exports=function(e,t){return null!=e&&o(e,t,r)}},630:function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},753:function(e,t,n){},762:function(e,t,n){},829:function(e,t,n){(function(t){var n;n=function(){return r={},e.m=n=[function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),o=n(18),i=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),f=n(12),h=n(32),p=n(33),d=n(31),m=n(1),y={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:h.default,Style:p.default,Store:d.default}};t.default=y},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=(o(s,i=Error),s);function s(e){var t=this;return e="[Parchment] "+e,(t=i.call(this,e)||this).message=e,t.name=t.constructor.name,t}t.ParchmentError=a;var l,u,c={},f={},h={},p={};function d(e,t){var n;if(void 0===t&&(t=l.ANY),"string"==typeof e)n=p[e]||c[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=p.text;else if("number"==typeof e)e&l.LEVEL&l.BLOCK?n=p.block:e&l.LEVEL&l.INLINE&&(n=p.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var o in r)if(n=f[r[o]])break;n=n||h[e.tagName]}return null!=n&&t&l.LEVEL&n.scope&&t&l.TYPE&n.scope?n:null}t.DATA_KEY="__blot",(u=l=t.Scope||(t.Scope={}))[u.TYPE=3]="TYPE",u[u.LEVEL=12]="LEVEL",u[u.ATTRIBUTE=13]="ATTRIBUTE",u[u.BLOT=14]="BLOT",u[u.INLINE=7]="INLINE",u[u.BLOCK=11]="BLOCK",u[u.BLOCK_BLOT=10]="BLOCK_BLOT",u[u.INLINE_BLOT=6]="INLINE_BLOT",u[u.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",u[u.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",u[u.ANY=15]="ANY",t.create=function(e,t){var n=d(e);if(null==n)throw new a("Unable to create "+e+" blot");var r=n,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(o,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(1<t.length)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new a("Invalid definition");if("abstract"===r.blotName)throw new a("Cannot register abstract class");return"string"==typeof(p[r.blotName||r.attrName]=r).keyName?c[r.keyName]=r:(null!=r.className&&(f[r.className]=r),null!=r.tagName&&(Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase(),(Array.isArray(r.tagName)?r.tagName:[r.tagName]).forEach((function(e){null!=h[e]&&null!=r.className||(h[e]=r)})))),r}},function(e,t,n){function r(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}var o=n(51),i=n(11),a=n(3),s=n(20),l=String.fromCharCode(0);r.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&0<Object.keys(t).length&&(n.attributes=t),this.push(n))},r.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},r.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&0<Object.keys(t).length&&(n.attributes=t),this.push(n)},r.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=a(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(--t,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},r.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},r.prototype.filter=function(e){return this.ops.filter(e)},r.prototype.forEach=function(e){this.ops.forEach(e)},r.prototype.map=function(e){return this.ops.map(e)},r.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},r.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},r.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+s.length(t):t.delete?e-t.delete:e}),0)},r.prototype.length=function(){return this.reduce((function(e,t){return e+s.length(t)}),0)},r.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=s.iterator(this.ops),i=0;i<t&&o.hasNext();){var a;i<e?a=o.next(e-i):(a=o.next(t-i),n.push(a)),i+=s.length(a)}return new r(n)},r.prototype.compose=function(e){var t=s.iterator(this.ops),n=s.iterator(e.ops),o=[],a=n.peek();if(null!=a&&"number"==typeof a.retain&&null==a.attributes){for(var l=a.retain;"insert"===t.peekType()&&t.peekLength()<=l;)l-=t.peekLength(),o.push(t.next());0<a.retain-l&&n.next(a.retain-l)}for(var u=new r(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),h=n.next(c);if("number"==typeof h.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var d=s.attributes.compose(f.attributes,h.attributes,"number"==typeof f.retain);if(d&&(p.attributes=d),u.push(p),!n.hasNext()&&i(u.ops[u.ops.length-1],p)){var m=new r(t.rest());return u.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof f.retain&&u.push(h)}return u.chop()},r.prototype.concat=function(e){var t=new r(this.ops.slice());return 0<e.ops.length&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},r.prototype.diff=function(e,t){if(this.ops===e.ops)return new r;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:l;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),a=new r,u=o(n[0],n[1],t),c=s.iterator(this.ops),f=s.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;0<t;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(f.peekLength(),t),a.push(f.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),a.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var r=c.next(n),l=f.next(n);i(r.insert,l.insert)?a.retain(n,s.attributes.diff(r.attributes,l.attributes)):a.push(l).delete(n)}t-=n}})),a.chop()},r.prototype.eachLine=function(e,t){t=t||"\n";for(var n=s.iterator(this.ops),o=new r,i=0;n.hasNext();){if("insert"!==n.peekType())return;var a=n.peek(),l=s.length(a)-n.peekLength(),u="string"==typeof a.insert?a.insert.indexOf(t,l)-l:-1;if(u<0)o.push(n.next());else if(0<u)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},i))return;i+=1,o=new r}}0<o.length()&&e(o,{},i)},r.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=s.iterator(this.ops),o=s.iterator(e.ops),i=new r;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())i.push(o.next());else{var a=Math.min(n.peekLength(),o.peekLength()),l=n.next(a),u=o.next(a);if(l.delete)continue;u.delete?i.push(u):i.retain(a,s.attributes.transform(l.attributes,u.attributes,t))}else i.retain(s.length(n.next()));return i.chop()},r.prototype.transformPosition=function(e,t){t=!!t;for(var n=s.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var o=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(r<e||!t)&&(e+=o),r+=o):e-=Math.min(o,e-r)}return e},e.exports=r},function(e,t){"use strict";function n(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===s.call(e)}function r(e){if(e&&"[object Object]"===s.call(e)){var t,n=a.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&a.call(e.constructor.prototype,"isPrototypeOf");if(!e.constructor||n||r){for(t in e);return void 0===t||a.call(e,t)}}}function o(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue}function i(e,t){if("__proto__"===t){if(!a.call(e,t))return;if(u)return u(e,t).value}return e[t]}var a=Object.prototype.hasOwnProperty,s=Object.prototype.toString,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor;e.exports=function e(t,a){var s,l,u,c,f,h=t,p=1,d=arguments.length,m=!1;for("boolean"==typeof h&&(m=h,h=a||{},p=2),(null==h||"object"!=typeof h&&"function"!=typeof h)&&(h={});p<d;++p)if(null!=(s=arguments[p]))for(l in s)u=i(h,l),h!==(c=i(s,l))&&(m&&c&&(r(c)||(f=n(c)))?o(h,{name:l,newValue:e(m,f?(f=!1,u&&n(u)?u:[]):u&&r(u)?u:{},c)}):void 0!==c&&o(h,{name:l,newValue:c}));return h}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:i(o,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var a=h(n(3)),s=h(n(2)),l=h(n(0)),u=h(n(16)),c=h(n(6)),f=h(n(7));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=(m(v,l.default.Embed),r(v,[{key:"attach",value:function(){i(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"attach",this).call(this),this.attributes=new l.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new s.default).insert(this.value(),(0,a.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=l.default.query(e,l.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,r){this.format(n,r)}},{key:"insertAt",value:function(e,t,n){if("string"==typeof t&&t.endsWith("\n")){var r=l.default.create(g.blotName);this.parent.insertBefore(r,0===e?this:this.next),r.insertAt(0,t.slice(0,-1))}else i(v.prototype.__proto__||Object.getPrototypeOf(v.prototype),"insertAt",this).call(this,e,t,n)}}]),v);function v(){return p(this,v),d(this,(v.__proto__||Object.getPrototypeOf(v)).apply(this,arguments))}y.scope=l.default.Scope.BLOCK_BLOT;var g=(m(b,l.default.Block),r(b,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(l.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),w(t))}),new s.default).insert("\n",w(this))),this.cache.delta}},{key:"deleteAt",value:function(e,t){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"deleteAt",this).call(this,e,t),this.cache={}}},{key:"formatAt",value:function(e,t,n,r){t<=0||(l.default.query(n,l.default.Scope.BLOCK)?e+t===this.length()&&this.format(n,r):i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"formatAt",this).call(this,e,Math.min(t,this.length()-e-1),n,r),this.cache={})}},{key:"insertAt",value:function(e,t,n){if(null!=n)return i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,e,t,n);if(0!==t.length){var r=t.split("\n"),o=r.shift();0<o.length&&(e<this.length()-1||null==this.children.tail?i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),o):this.children.tail.insertAt(this.children.tail.length(),o),this.cache={});var a=this;r.reduce((function(e,t){return(a=a.split(e,!0)).insertAt(0,t),t.length}),e+o.length)}}},{key:"insertBefore",value:function(e,t){var n=this.children.head;i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"insertBefore",this).call(this,e,t),n instanceof u.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,t){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"moveChildren",this).call(this,e,t),this.cache={}}},{key:"optimize",value:function(e){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t;if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var o=i(b.prototype.__proto__||Object.getPrototypeOf(b.prototype),"split",this).call(this,e,n);return this.cache={},o}}]),b);function b(e){p(this,b);var t=d(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,e));return t.cache={},t}function w(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:w(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,l.default.Embed,f.default],t.bubbleFormats=w,t.BlockEmbed=y,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n(50);var s=v(n(2)),l=v(n(14)),u=v(n(8)),c=v(n(9)),f=v(n(0)),h=n(15),p=v(h),d=v(n(3)),m=v(n(10)),y=v(n(34));function v(e){return e&&e.__esModule?e:{default:e}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=(0,m.default)("quill"),w=(i(x,null,[{key:"debug",value:function(e){!0===e&&(e="log"),m.default.level(e)}},{key:"find",value:function(e){return e.__quill||f.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t,n){var r=this,o=2<arguments.length&&void 0!==n&&n;if("string"!=typeof e){var i=e.attrName||e.blotName;"string"==typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(n){r.register(n,e[n],t)}))}else null==this.imports[e]||o||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?f.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(x,[{key:"addContainer",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:null;if("string"==typeof e){var r=e;(e=document.createElement("div")).classList.add(r)}return this.container.insertBefore(e,n),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],E.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(e){var t=!(0<arguments.length&&void 0!==e)||e;this.scroll.enable(t),this.container.classList.toggle("ql-disabled",!t)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t,n){var r=this,o=2<arguments.length&&void 0!==n?n:u.default.sources.API;return E.call(this,(function(){var n=r.getSelection(!0),o=new s.default;if(null==n)return o;if(f.default.query(e,f.default.Scope.BLOCK))o=r.editor.formatLine(n.index,n.length,g({},e,t));else{if(0===n.length)return r.selection.format(e,t),o;o=r.editor.formatText(n.index,n.length,g({},e,t))}return r.setSelection(n,u.default.sources.SILENT),o}),o)}},{key:"formatLine",value:function(e,t,n,r,i){var a,s=this,l=k(e,t,n,r,i),u=o(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],E.call(this,(function(){return s.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,r,i){var a,s=this,l=k(e,t,n,r,i),u=o(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],E.call(this,(function(){return s.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,r=void 0;r="number"==typeof e?this.selection.getBounds(e,n):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:r.bottom-o.top,height:r.height,left:r.left-o.left,right:r.right-o.left,top:r.top-o.top,width:r.width}}},{key:"getContents",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,r=1<arguments.length&&void 0!==t?t:this.getLength()-n,i=k(n,r),a=o(i,2);return n=a[0],r=a[1],this.editor.getContents(n,r)}},{key:"getFormat",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:this.getSelection(!0),r=1<arguments.length&&void 0!==t?t:0;return"number"==typeof n?this.editor.getFormat(n,r):this.editor.getFormat(n.index,n.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,r=1<arguments.length&&void 0!==t?t:Number.MAX_VALUE;return"number"!=typeof n?this.scroll.lines(n.index,n.length):this.scroll.lines(n,r)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(e){return 0<arguments.length&&void 0!==e&&e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:0,r=1<arguments.length&&void 0!==t?t:this.getLength()-n,i=k(n,r),a=o(i,2);return n=a[0],r=a[1],this.editor.getText(n,r)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(e,t,n,r){var o=this,i=3<arguments.length&&void 0!==r?r:x.sources.API;return E.call(this,(function(){return o.editor.insertEmbed(e,t,n)}),i,e)}},{key:"insertText",value:function(e,t,n,r,i){var a,s=this,l=k(e,0,n,r,i),u=o(l,4);return e=u[0],a=u[2],i=u[3],E.call(this,(function(){return s.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,i=k(e,t,n),a=o(i,4);return e=a[0],t=a[1],n=a[3],E.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e,t){var n=this,r=1<arguments.length&&void 0!==t?t:u.default.sources.API;return E.call(this,(function(){e=new s.default(e);var t=n.getLength(),r=n.editor.deleteText(0,t),o=n.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(n.editor.deleteText(n.getLength()-1,1),o.delete(1)),r.compose(o)}),r)}},{key:"setSelection",value:function(e,t,n){if(null==e)this.selection.setRange(null,t||x.sources.API);else{var r=k(e,t,n),i=o(r,4);e=i[0],t=i[1],n=i[3],this.selection.setRange(new h.Range(e,t),n),n!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:u.default.sources.API,r=(new s.default).insert(e);return this.setContents(r,n)}},{key:"update",value:function(e){var t=0<arguments.length&&void 0!==e?e:u.default.sources.USER,n=this.scroll.update(t);return this.selection.update(t),n}},{key:"updateContents",value:function(e,t){var n=this,r=1<arguments.length&&void 0!==t?t:u.default.sources.API;return E.call(this,(function(){return e=new s.default(e),n.editor.applyDelta(e,r)}),r,!0)}}]),x);function x(e){var t=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),this.options=_(e,n),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",e);this.options.debug&&x.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",(this.container.__quill=this).root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new u.default,this.scroll=f.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new l.default(this.scroll),this.selection=new p.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(u.default.events.EDITOR_CHANGE,(function(e){e===u.default.events.TEXT_CHANGE&&t.root.classList.toggle("ql-blank",t.editor.isBlank())})),this.emitter.on(u.default.events.SCROLL_UPDATE,(function(e,n){var r=t.selection.lastRange,o=r&&0===r.length?r.index:void 0;E.call(t,(function(){return t.editor.update(null,n,o)}),e)}));var o=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(o),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}function _(e,t){if((t=(0,d.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==w.DEFAULTS.theme){if(t.theme=w.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=y.default;var n=(0,d.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=w.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,d.default)(!0,{},w.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function E(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===u.default.sources.USER)return new s.default;var o=null==n?null:this.getSelection(),i=this.editor.delta,a=e();if(null!=o&&(!0===n&&(n=o.index),null==r?o=O(o,a,t):0!==r&&(o=O(o,n,r,t)),this.setSelection(o,u.default.sources.SILENT)),0<a.length()){var l,c,f=[u.default.events.TEXT_CHANGE,a,i,t];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(f)),t!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return a}function k(e,t,n,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?("number"!=typeof t&&(i=o,o=n,n=t),t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(a=n,i=o):"string"==typeof n&&(null!=o?a[n]=o:i=n),[e,t,a,i=i||u.default.sources.API]}function O(e,t,n,r){if(null==e)return null;var i=void 0,a=void 0;if(t instanceof s.default){var l=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==u.default.sources.USER)})),c=o(l,2);i=c[0],a=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&r===u.default.sources.USER?e:0<=n?e+n:Math.max(t,e+n)})),p=o(f,2);i=p[0],a=p[1]}return new h.Range(i,a-i)}w.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},w.events=u.default.events,w.sources=u.default.sources,w.version="1.3.7",w.imports={delta:s.default,parchment:f.default,"core/module":c.default,"core/theme":y.default},t.expandConfig=_,t.overload=k,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:o(i,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var i=s(n(7)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,a.default.Inline),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(u,[{key:"formatAt",value:function(e,t,n,r){if(u.compare(this.statics.blotName,n)<0&&a.default.query(n,a.default.Scope.BLOT)){var i=this.isolate(e,t);r&&i.wrap(n,r)}else o(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"formatAt",this).call(this,e,t,n,r)}},{key:"optimize",value:function(e){if(o(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"optimize",this).call(this,e),this.parent instanceof u&&0<u.compare(this.statics.blotName,this.parent.statics.blotName)){var t=this.parent.isolate(this.offset(),this.length());this.moveChildren(t),t.wrap(this)}}}],[{key:"compare",value:function(e,t){var n=u.order.indexOf(e),r=u.order.indexOf(t);return 0<=n||0<=r?n-r:e===t?0:e<t?-1:1}}]),u);function u(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).apply(this,arguments))}l.allowedChildren=[l,a.default.Embed,i.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((r=n(0))&&r.__esModule?r:{default:r}).default.Text),i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=i(n(54));function i(e){return e&&e.__esModule?e:{default:e}}var a=(0,i(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,o.default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(l,[{key:"emit",value:function(){a.log.apply(a,arguments),function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(1<t?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(this.listeners[e.type]||[]).forEach((function(t){var r=t.node,o=t.handler;e.target!==r&&!r.contains(e.target)||o.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),l);function l(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this));return e.listeners={},e.on("error",a.error),e}s.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},s.sources={API:"api",SILENT:"silent",USER:"user"},t.default=s},function(e,t,n){"use strict";function r(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.quill=e,this.options=t}Object.defineProperty(t,"__esModule",{value:!0}),r.DEFAULTS={},t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],o="warn";function i(e){if(r.indexOf(e)<=r.indexOf(o)){for(var t,n=arguments.length,i=Array(1<n?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return r.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,n){var r=Array.prototype.slice,o=n(52),i=n(53),a=e.exports=function(e,t,n){return n=n||{},e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=r.call(e),t=r.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=o(e),h=o(t)}catch(e){return!1}if(f.length!=h.length)return!1;for(f.sort(),h.sort(),u=f.length-1;0<=u;u--)if(f[u]!=h[u])return!1;for(u=f.length-1;0<=u;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||0<e.length&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(i.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},i.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},i.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?-1<this.whitelist.indexOf(t.replace(/["']/g,"")):-1<this.whitelist.indexOf(t)))},i.prototype.remove=function(e){e.removeAttribute(this.keyName)},i.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},i);function i(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var o=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|o:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:i(o,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var a=f(n(2)),s=f(n(0)),l=f(n(4)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var m=(d(y,u.default),y);function y(){return h(this,y),p(this,(y.__proto__||Object.getPrototypeOf(y)).apply(this,arguments))}m.blotName="code",m.tagName="CODE";var v=(d(g,l.default),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(g,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,t){if(e!==this.statics.blotName||!t){var n=this.descendant(c.default,this.length()-1),o=r(n,1)[0];null!=o&&o.deleteAt(o.length()-1,1),i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"format",this).call(this,e,t)}}},{key:"formatAt",value:function(e,t,n,r){if(0!==t&&null!=s.default.query(n,s.default.Scope.BLOCK)&&(n!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var o=this.newlineIndex(e);if(!(o<0||e+t<=o)){var i=this.newlineIndex(e,!0)+1,a=o-i+1,l=this.isolate(i,a),u=l.next;l.format(n,r),u instanceof g&&u.formatAt(0,e-i+t-a,n,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var o=this.descendant(c.default,e),i=r(o,2),a=i[0],s=i[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e,t){if(1<arguments.length&&void 0!==t&&t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return-1<n?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===t.statics.formats(t.domNode)&&(t.optimize(e),t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){i(g.prototype.__proto__||Object.getPrototypeOf(g.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var t=i(g.__proto__||Object.getPrototypeOf(g),"create",this).call(this,e);return t.setAttribute("spellcheck",!1),t}},{key:"formats",value:function(){return!0}}]),g);function g(){return h(this,g),p(this,(g.__proto__||Object.getPrototypeOf(g)).apply(this,arguments))}v.blotName="code-block",v.tagName="PRE",v.TAB=" ",t.Code=m,t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=v(n(2)),s=v(n(20)),l=v(n(0)),u=v(n(13)),c=v(n(24)),f=n(4),h=v(f),p=v(n(16)),d=v(n(21)),m=v(n(11)),y=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}var g=/^[ -~]*$/,b=(function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(w,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=e.reduce((function(e,t){if(1===t.insert){var n=(0,d.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,d.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"!=typeof t.insert)return e.push(t);var r=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(r,t.attributes)}),new a.default)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),i<=e&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var d=t.scroll.line(e),m=o(d,2),v=m[0],g=m[1],b=(0,y.default)({},(0,f.bubbleFormats)(v));if(v instanceof h.default){var w=v.descendant(l.default.Leaf,g),x=o(w,1)[0];b=(0,y.default)(b,(0,f.bubbleFormats)(x))}c=s.default.attributes.diff(b,c)||{}}else if("object"===r(a.insert)){var _=Object.keys(a.insert)[0];if(null==_)return e;t.scroll.insertAt(e,_,a.insert[_])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t,n){var r=this,o=2<arguments.length&&void 0!==n?n:{};return this.scroll.update(),Object.keys(o).forEach((function(n){if(null==r.scroll.whitelist||r.scroll.whitelist[n]){var i=r.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var s=e-t.offset(r.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,n,o[n])}else t.format(n,o[n]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,d.default)(o)))}},{key:"formatText",value:function(e,t,n){var r=this,o=2<arguments.length&&void 0!==n?n:{};return Object.keys(o).forEach((function(n){r.scroll.formatAt(e,t,n,o[n])})),this.update((new a.default).retain(e).retain(t,(0,d.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,r=[],i=[];0===n?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof h.default?r.push(t):t instanceof l.default.Leaf&&i.push(t)})):(r=this.scroll.lines(e,n),i=this.scroll.descendants(l.default.Leaf,e,n));var a=[r,i].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());0<Object.keys(t).length;){var n=e.shift();if(null==n)return t;t=x((0,f.bubbleFormats)(n),t)}return t}));return y.default.apply(y.default,a)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert((i=n,(o=t)in(r={})?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r)));var r,o,i}},{key:"insertText",value:function(e,t,n){var r=this,o=2<arguments.length&&void 0!==n?n:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(n){r.scroll.formatAt(e,t.length,n,o[n])})),this.update((new a.default).retain(e).insert(t,(0,d.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(1<this.scroll.children.length)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&!(1<e.children.length)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),i=o(r,2),s=i[0],l=i[1],c=0,f=new a.default;null!=s&&(c=s instanceof u.default?s.newlineIndex(l)-l+1:s.length()-l,f=s.delta().slice(l,l+c-1).insert("\n"));var h=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(h);return this.applyDelta(p)}},{key:"update",value:function(e,t,n){var r=1<arguments.length&&void 0!==t?t:[],o=2<arguments.length&&void 0!==n?n:void 0,i=this.delta;if(1===r.length&&"characterData"===r[0].type&&r[0].target.data.match(g)&&l.default.find(r[0].target)){var s=l.default.find(r[0].target),u=(0,f.bubbleFormats)(s),h=s.offset(this.scroll),p=r[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(p),y=(new a.default).insert(s.value());e=(new a.default).retain(h).concat(d.diff(y,o)).reduce((function(e,t){return t.insert?e.insert(t.insert,u):e.push(t)}),new a.default),this.delta=i.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(i.compose(e),this.delta)||(e=i.diff(this.delta,o));return e}}]),w);function w(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),this.scroll=e,this.delta=this.getDelta()}function x(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=u(n(0)),a=u(n(21)),s=u(n(11)),l=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;f(this,h),this.index=e,this.length=t}var p=(0,u(n(10)).default)("quill:selection"),d=(function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(m,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=i.default.find(n.start.node,!1);if(null==r)return;if(r instanceof i.default.Leaf){var o=r.split(n.start.offset);r.parent.insertBefore(this.cursor,o)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e,t){var n=1<arguments.length&&void 0!==t?t:0,o=this.scroll.length();e=Math.min(e,o-1),n=Math.min(e+n,o-1)-e;var i=void 0,a=this.scroll.leaf(e),s=r(a,2),l=s[0],u=s[1];if(null==l)return null;var c=l.position(u,!0),f=r(c,2);i=f[0],u=f[1];var h=document.createRange();if(0<n){h.setStart(i,u);var p=this.scroll.leaf(e+n),d=r(p,2);if(l=d[0],u=d[1],null==l)return null;var m=l.position(u,!0),y=r(m,2);return i=y[0],u=y[1],h.setEnd(i,u),h.getBoundingClientRect()}var v="left",g=void 0;return i instanceof Text?(u<i.data.length?(h.setStart(i,u),h.setEnd(i,u+1)):(h.setStart(i,u-1),h.setEnd(i,u),v="right"),g=h.getBoundingClientRect()):(g=l.domNode.getBoundingClientRect(),0<u&&(v="right")),{bottom:g.top+g.height,height:g.height,left:g[v],right:g[v],top:g.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return p.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var o=n.map((function(e){var n=r(e,2),o=n[0],a=n[1],s=i.default.find(o,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof i.default.Container?l+s.length():l+s.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(o)));return new h(s,a-s)}},{key:"normalizeNative",value:function(e){if(!y(this.root,e.startContainer)||!e.collapsed&&!y(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&0<t.childNodes.length;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,s=t.scroll.leaf(e),l=r(s,2),u=l[0],c=l[1],f=u.position(c,0!==n),h=r(f,2);a=h[0],c=h[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=r(i,1)[0],s=a;if(0<t.length){var l=this.scroll.line(Math.min(t.index+t.length,o));s=r(l,1)[0]}if(null!=a&&null!=s){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t,n,r,o){var i=2<arguments.length&&void 0!==n?n:e,a=3<arguments.length&&void 0!==r?r:t,s=4<arguments.length&&void 0!==o&&o;if(p.info("setNativeRange",e,t,i,a),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=i.parentNode){var l=document.getSelection();if(null!=l)if(null!=e){this.hasFocus()||this.root.focus();var u=(this.getNativeRange()||{}).native;if(null==u||s||e!==u.startContainer||t!==u.startOffset||i!==u.endContainer||a!==u.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==i.tagName&&(a=[].indexOf.call(i.parentNode.childNodes,i),i=i.parentNode);var c=document.createRange();c.setStart(e,t),c.setEnd(i,a),l.removeAllRanges(),l.addRange(c)}}else l.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e,t,n){var r=1<arguments.length&&void 0!==t&&t,o=2<arguments.length&&void 0!==n?n:l.default.sources.API;if("string"==typeof r&&(o=r,r=!1),p.info("setRange",e),null!=e){var i=this.rangeToNative(e);this.setNativeRange.apply(this,c(i).concat([r]))}else this.setNativeRange(null);this.update(o)}},{key:"update",value:function(e){var t=0<arguments.length&&void 0!==e?e:l.default.sources.USER,n=this.lastRange,o=this.getRange(),i=r(o,2),u=i[0],c=i[1];if(this.lastRange=u,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(n,this.lastRange)){var f;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var h,p=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(n),t];(f=this.emitter).emit.apply(f,[l.default.events.EDITOR_CHANGE].concat(p)),t!==l.default.sources.SILENT&&(h=this.emitter).emit.apply(h,p)}}}]),m);function m(e,t){var n=this;f(this,m),this.emitter=t,this.scroll=e,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new h(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&0<t.length()&&n.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var r=t.range,o=r.startNode,i=r.startOffset,a=r.endNode,s=r.endOffset;n.setNativeRange(o,i,a,s)}})),this.update(l.default.sources.SILENT)}function y(e,t){try{t.parentNode}catch(e){return}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=h,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o,i=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((o=n(0))&&o.__esModule?o:{default:o}).default.Embed),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(a,[{key:"insertInto",value:function(e,t){0===e.children.length?function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"insertInto",this).call(this,e,t):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}i.blotName="break",i.tagName="BR",t.default=i},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(44),s=n(30),l=n(1),u=(o(c,i=s.default),c.prototype.appendChild=function(e){this.insertBefore(e)},c.prototype.attach=function(){i.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},c.prototype.build=function(){var e=this;this.children=new a.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=f(t);e.insertBefore(n,e.children.head||void 0)}catch(t){if(t instanceof l.ParchmentError)return;throw t}}))},c.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},c.prototype.descendant=function(e,t){var n=this.children.find(t),r=n[0],o=n[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,o]:r instanceof c?r.descendant(e,o):[null,-1]},c.prototype.descendants=function(e,t,n){void 0===t&&(t=0),void 0===n&&(n=Number.MAX_VALUE);var r=[],o=n;return this.children.forEachAt(t,n,(function(t,n,i){(null==e.blotName&&e(t)||null!=e.blotName&&t instanceof e)&&r.push(t),t instanceof c&&(r=r.concat(t.descendants(e,n,o))),o-=i})),r},c.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),i.prototype.detach.call(this)},c.prototype.formatAt=function(e,t,n,r){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,n,r)}))},c.prototype.insertAt=function(e,t,n){var r=this.children.find(e),o=r[0],i=r[1];if(o)o.insertAt(i,t,n);else{var a=null==n?l.create("text",t):l.create(t,n);this.appendChild(a)}},c.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new l.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},c.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},c.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},c.prototype.optimize=function(e){if(i.prototype.optimize.call(this,e),0===this.children.length)if(null!=this.statics.defaultChild){var t=l.create(this.statics.defaultChild);this.appendChild(t),t.optimize(e)}else this.remove()},c.prototype.path=function(e,t){void 0===t&&(t=!1);var n=this.children.find(e,t),r=n[0],o=n[1],i=[[this,e]];return r instanceof c?i.concat(r.path(o,t)):(null!=r&&i.push([r,o]),i)},c.prototype.removeChild=function(e){this.children.remove(e)},c.prototype.replace=function(e){e instanceof c&&e.moveChildren(this),i.prototype.replace.call(this,e)},c.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,r,o){e=e.split(r,t),n.appendChild(e)})),n},c.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},c.prototype.update=function(e,t){var n=this,r=[],o=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(r.push.apply(r,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=l.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),r.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=l.find(e.nextSibling));var r=f(e);r.next==t&&null!=r.next||(null!=r.parent&&r.parent.removeChild(n),n.insertBefore(r,t||void 0))}))},c);function c(e){var t=i.call(this,e)||this;return t.build(),t}function f(t){var n=l.find(t);if(null==n)try{n=l.create(t)}catch(e){n=l.create(l.Scope.INLINE),[].slice.call(t.childNodes).forEach((function(e){n.domNode.appendChild(e)})),t.parentNode&&t.parentNode.replaceChild(n.domNode,t),n.attach()}return n}t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(12),s=n(31),l=n(17),u=n(1),c=(o(f,i=l.default),f.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},f.prototype.format=function(e,t){var n=u.query(e);n instanceof a.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},f.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},f.prototype.replaceWith=function(e,t){var n=i.prototype.replaceWith.call(this,e,t);return this.attributes.copy(n),n},f.prototype.update=function(e,t){var n=this;i.prototype.update.call(this,e,t),e.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},f.prototype.wrap=function(e,t){var n=i.prototype.wrap.call(this,e,t);return n instanceof f&&n.statics.scope===this.statics.scope&&this.attributes.move(n),n},f);function f(e){var t=i.call(this,e)||this;return t.attributes=new s.default(t.domNode),t}t.default=c},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(30),s=n(1),l=(o(u,i=a.default),u.value=function(e){return!0},u.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},u.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return 0<e&&(n+=1),[this.parent.domNode,n]},u.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},u.scope=s.Scope.INLINE_BLOT,u);function u(){return null!==i&&i.apply(this,arguments)||this}t.default=l},function(e,t,n){var r=n(11),o=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=o(!0,{},t);for(var i in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(r[i]=e[i]);return 0<Object.keys(r).length?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,o){return r(e[o],t[o])||(n[o]=void 0===t[o]?null:t[o]),n}),{});return 0<Object.keys(n).length?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return 0<Object.keys(r).length?r:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e=e||1/0;var t=this.ops[this.index];if(t){var n=this.offset,r=i.length(t);if(r-n<=e?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(n,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=i},function(e,n){var r=function(){"use strict";function n(e,t){return null!=t&&e instanceof t}var r,o,i;try{r=Map}catch(e){r=function(){}}try{o=Set}catch(e){o=function(){}}try{i=Promise}catch(e){i=function(){}}function a(e,s,u,c,f){"object"==typeof s&&(u=s.depth,c=s.prototype,f=s.includeNonEnumerable,s=s.circular);var h=[],p=[],d=void 0!==t;return void 0===s&&(s=!0),void 0===u&&(u=1/0),function e(u,m){if(null===u)return null;if(0===m)return u;var y,v;if("object"!=typeof u)return u;if(n(u,r))y=new r;else if(n(u,o))y=new o;else if(n(u,i))y=new i((function(t,n){u.then((function(n){t(e(n,m-1))}),(function(t){n(e(t,m-1))}))}));else if(a.__isArray(u))y=[];else if(a.__isRegExp(u))y=new RegExp(u.source,l(u)),u.lastIndex&&(y.lastIndex=u.lastIndex);else if(a.__isDate(u))y=new Date(u.getTime());else{if(d&&t.isBuffer(u))return y=t.allocUnsafe?t.allocUnsafe(u.length):new t(u.length),u.copy(y),y;n(u,Error)?y=Object.create(u):void 0===c?(v=Object.getPrototypeOf(u),y=Object.create(v)):(y=Object.create(c),v=c)}if(s){var g=h.indexOf(u);if(-1!=g)return p[g];h.push(u),p.push(y)}for(var b in n(u,r)&&u.forEach((function(t,n){var r=e(n,m-1),o=e(t,m-1);y.set(r,o)})),n(u,o)&&u.forEach((function(t){var n=e(t,m-1);y.add(n)})),u){var w;v&&(w=Object.getOwnPropertyDescriptor(v,b)),w&&null==w.set||(y[b]=e(u[b],m-1))}if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(u);for(b=0;b<x.length;b++){var _=x[b];(k=Object.getOwnPropertyDescriptor(u,_))&&!k.enumerable&&!f||(y[_]=e(u[_],m-1),k.enumerable||Object.defineProperty(y,_,{enumerable:!1}))}}if(f){var E=Object.getOwnPropertyNames(u);for(b=0;b<E.length;b++){var k,O=E[b];(k=Object.getOwnPropertyDescriptor(u,O))&&k.enumerable||(y[O]=e(u[O],m-1),Object.defineProperty(y,O,{enumerable:!1}))}}return y}(e,u)}function s(e){return Object.prototype.toString.call(e)}function l(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return a.clonePrototype=function(e){if(null===e)return null;function t(){}return t.prototype=e,new t},a.__objToStr=s,a.__isDate=function(e){return"object"==typeof e&&"[object Date]"===s(e)},a.__isArray=function(e){return"object"==typeof e&&"[object Array]"===s(e)},a.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===s(e)},a.__getRegExpFlags=l,a}();"object"==typeof e&&e.exports&&(e.exports=r)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:i(o,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var a=p(n(0)),s=p(n(8)),l=n(4),u=p(l),c=p(n(16)),f=p(n(13)),h=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function d(e){return e instanceof u.default||e instanceof l.BlockEmbed}var m=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(y,a.default.Scroll),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(y,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,t){var n=this.line(e),o=r(n,2),a=o[0],s=o[1],u=this.line(e+t),h=r(u,1)[0];if(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"deleteAt",this).call(this,e,t),null!=h&&a!==h&&0<s){if(a instanceof l.BlockEmbed||h instanceof l.BlockEmbed)return void this.optimize();if(a instanceof f.default){var p=a.newlineIndex(a.length(),!0);if(-1<p&&(a=a.split(p+1))===h)return void this.optimize()}else if(h instanceof f.default){var d=h.newlineIndex(0);-1<d&&h.split(d+1)}var m=h.children.head instanceof c.default?null:h.children.head;a.moveChildren(h,m),a.remove()}this.optimize()}},{key:"enable",value:function(e){var t=!(0<arguments.length&&void 0!==e)||e;this.domNode.setAttribute("contenteditable",t)}},{key:"formatAt",value:function(e,t,n,r){null!=this.whitelist&&!this.whitelist[n]||(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"formatAt",this).call(this,e,t,n,r),this.optimize())}},{key:"insertAt",value:function(e,t,n){if(null==n||null==this.whitelist||this.whitelist[t]){if(e>=this.length())if(null==n||null==a.default.query(t,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==n&&t.endsWith("\n")&&(t=t.slice(0,-1)),r.insertAt(0,t,n)}else{var o=a.default.create(t,n);this.appendChild(o)}else i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertAt",this).call(this,e,t,n);this.optimize()}}},{key:"insertBefore",value:function(e,t){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var n=a.default.create(this.statics.defaultChild);n.appendChild(e),e=n}i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,e,t)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(d,e)}},{key:"lines",value:function(e,t){return function e(t,n,r){var o=[],i=r;return t.children.forEachAt(n,r,(function(t,n,r){d(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,n,i))),i-=r})),o}(this,0<arguments.length&&void 0!==e?e:0,1<arguments.length&&void 0!==t?t:Number.MAX_VALUE)}},{key:"optimize",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:[],r=1<arguments.length&&void 0!==t?t:{};!0!==this.batch&&(i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,n,r),0<n.length&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,n,r))}},{key:"path",value:function(e){return i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var t=s.default.sources.USER;"string"==typeof e&&(t=e),Array.isArray(e)||(e=this.observer.takeRecords()),0<e.length&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,t,e),i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"update",this).call(this,e.concat([])),0<e.length&&this.emitter.emit(s.default.events.SCROLL_UPDATE,t,e)}}}]),y);function y(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,e));return n.emitter=t.emitter,Array.isArray(t.whitelist)&&(n.whitelist=t.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),n}m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[u.default,l.BlockEmbed,h.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e};function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=y(n(21)),l=y(n(11)),u=y(n(3)),c=y(n(2)),f=y(n(20)),h=y(n(0)),p=y(n(5)),d=y(n(10)),m=y(n(9));function y(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(0,d.default)("quill:keyboard"),b=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",w=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(x,m.default),i(x,null,[{key:"match",value:function(e,t){return t=C(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(x,[{key:"addBinding",value:function(e,t,n){var r=1<arguments.length&&void 0!==t?t:{},o=2<arguments.length&&void 0!==n?n:{},i=C(e);if(null==i||null==i.key)return g.warn("Attempted to add invalid keyboard binding",i);"function"==typeof r&&(r={handler:r}),"function"==typeof o&&(o={handler:o}),i=(0,u.default)(i,r,o),this.bindings[i.key]=this.bindings[i.key]||[],this.bindings[i.key].push(i)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(t){if(!t.defaultPrevented){var n=t.which||t.keyCode,i=(e.bindings[n]||[]).filter((function(e){return x.match(t,e)}));if(0!==i.length){var a=e.quill.getSelection();if(null!=a&&e.quill.hasFocus()){var s=e.quill.getLine(a.index),u=o(s,2),c=u[0],f=u[1],p=e.quill.getLeaf(a.index),d=o(p,2),m=d[0],y=d[1],v=0===a.length?[m,y]:e.quill.getLeaf(a.index+a.length),g=o(v,2),b=g[0],w=g[1],_=m instanceof h.default.Text?m.value().slice(0,y):"",E=b instanceof h.default.Text?b.value().slice(w):"",k={collapsed:0===a.length,empty:0===a.length&&c.length()<=1,format:e.quill.getFormat(a),offset:f,prefix:_,suffix:E};i.some((function(t){if(null!=t.collapsed&&t.collapsed!==k.collapsed)return!1;if(null!=t.empty&&t.empty!==k.empty)return!1;if(null!=t.offset&&t.offset!==k.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==k.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=k.format[e]:!1===t.format[e]?null==k.format[e]:(0,l.default)(t.format[e],k.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(k.prefix)||null!=t.suffix&&!t.suffix.test(k.suffix)||!0===t.handler.call(e,a,k))}))&&t.preventDefault()}}}}))}}]),x);function x(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,e,t));return n.bindings={},Object.keys(n.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])})),n.addBinding({key:x.keys.ENTER,shiftKey:null},S),n.addBinding({key:x.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:x.keys.BACKSPACE},{collapsed:!0},E),n.addBinding({key:x.keys.DELETE},{collapsed:!0},k)):(n.addBinding({key:x.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},E),n.addBinding({key:x.keys.DELETE},{collapsed:!0,suffix:/^.?$/},k)),n.addBinding({key:x.keys.BACKSPACE},{collapsed:!1},O),n.addBinding({key:x.keys.DELETE},{collapsed:!1},O),n.addBinding({key:x.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},E),n.listen(),n}function _(e,t){var n,r=e===w.keys.LEFT?"prefix":"suffix";return v(n={key:e,shiftKey:t,altKey:null},r,/^$/),v(n,"handler",(function(n){var r=n.index;e===w.keys.RIGHT&&(r+=n.length+1);var i=this.quill.getLeaf(r);return!(o(i,1)[0]instanceof h.default.Embed)||(e===w.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index-1,p.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,p.default.sources.USER):this.quill.setSelection(n.index+n.length+1,p.default.sources.USER),!1)})),n}function E(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=o(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=o(a,1)[0];if(null!=s&&1<s.length()){var l=r.formats(),u=this.quill.getFormat(e.index-1,1);i=f.default.attributes.diff(l,u)||{}}}var c=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-c,c,p.default.sources.USER),0<Object.keys(i).length&&this.quill.formatLine(e.index-c,c,i,p.default.sources.USER),this.quill.focus()}}function k(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},i=0,a=this.quill.getLine(e.index),s=o(a,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),u=o(l,1)[0];if(u){var c=s.formats(),h=this.quill.getFormat(e.index,1);r=f.default.attributes.diff(c,h)||{},i=u.length()}}this.quill.deleteText(e.index,n,p.default.sources.USER),0<Object.keys(r).length&&this.quill.formatLine(e.index+i-1,n,r,p.default.sources.USER)}}function O(e){var t=this.quill.getLines(e),n={};if(1<t.length){var r=t[0].formats(),o=t[t.length-1].formats();n=f.default.attributes.diff(o,r)||{}}this.quill.deleteText(e,p.default.sources.USER),0<Object.keys(n).length&&this.quill.formatLine(e.index,1,n,p.default.sources.USER),this.quill.setSelection(e.index,p.default.sources.SILENT),this.quill.focus()}function S(e,t){var n=this;0<e.length&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return h.default.query(n,h.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],p.default.sources.USER))}))}function N(e){return{key:w.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=h.default.query("code-block"),r=t.index,i=t.length,a=this.quill.scroll.descendant(n,r),s=o(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),f=l.newlineIndex(u,!0)+1,d=l.newlineIndex(c+u+i),m=l.domNode.textContent.slice(f,d).split("\n");u=0,m.forEach((function(t,o){e?(l.insertAt(f+u,n.TAB),u+=n.TAB.length,0===o?r+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(f+u,n.TAB.length),u-=n.TAB.length,0===o?r-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(p.default.sources.USER),this.quill.setSelection(r,i,p.default.sources.SILENT)}}}}function A(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],p.default.sources.USER)}}}function C(e){if("string"==typeof e||"number"==typeof e)return C({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,s.default)(e,!1)),"string"==typeof e.key)if(null!=w.keys[e.key.toUpperCase()])e.key=w.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[b]=e.shortKey,delete e.shortKey),e}w.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},w.DEFAULTS={bindings:{bold:A("bold"),italic:A("italic"),underline:A("underline"),indent:{key:w.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",p.default.sources.USER)}},outdent:{key:w.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",p.default.sources.USER)}},"outdent backspace":{key:w.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",p.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,p.default.sources.USER)}},"indent code-block":N(!0),"outdent code-block":N(!1),"remove tab":{key:w.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,p.default.sources.USER)}},tab:{key:w.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,p.default.sources.SILENT)}},"list empty enter":{key:w.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,p.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,p.default.sources.USER)}},"checklist enter":{key:w.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(0,u.default)({},r.formats(),{list:"checked"}),s=(new c.default).retain(e.index).insert("\n",a).retain(r.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:w.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=o(n,2),i=r[0],a=r[1],s=(new c.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,p.default.sources.USER),this.quill.setSelection(e.index+1,p.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),i=o(r,2),a=i[0],s=i[1];if(n<s)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",p.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,p.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,p.default.sources.SILENT)}},"code exit":{key:w.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=o(t,2),r=n[0],i=n[1],a=(new c.default).retain(e.index+r.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,p.default.sources.USER)}},"embed left":_(w.keys.LEFT,!1),"embed left shift":_(w.keys.LEFT,!0),"embed right":_(w.keys.RIGHT,!1),"embed right shift":_(w.keys.RIGHT,!0)}},t.default=w,t.SHORTKEY=b},function(e,t,n){"use strict";function r(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:r(i,t,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=l(n(0)),s=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,a.default.Embed),o(c,null,[{key:"value",value:function(){}}]),o(c,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,t){if(0!==this._length)return r(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,e,t);for(var n=this,o=0;null!=n&&n.statics.scope!==a.default.Scope.BLOCK_BLOT;)o+=n.offset(n.parent),n=n.parent;null!=n&&(this._length=c.CONTENTS.length,n.optimize(),n.formatAt(o,c.CONTENTS.length,e,t),this._length=0)}},{key:"index",value:function(e,t){return e===this.textNode?0:r(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"index",this).call(this,e,t)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,t=this.selection.getNativeRange(),n=void 0,r=void 0,o=void 0;if(null!=t&&t.start.node===e&&t.end.node===e){var i=[e,t.start.offset,t.end.offset];n=i[0],r=i[1],o=i[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==c.CONTENTS){var l=this.textNode.data.split(c.CONTENTS).join("");this.next instanceof s.default?(n=this.next.domNode,this.next.insertAt(0,l),this.textNode.data=c.CONTENTS):(this.textNode.data=l,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(c.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=r){var u=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([r,o].map((function(e){return Math.max(0,Math.min(n.data.length,e-1))})),2);return r=u[0],o=u[1],{startNode:n,startOffset:r,endNode:n,endOffset:o}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var r=this.restore();r&&(t.range=r)}}},{key:"value",value:function(){return""}}]),c);function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,e));return n.selection=t,n.textNode=document.createTextNode(c.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,n}u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(0)),o=n(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,r.default.Container),l);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}s.allowedChildren=[i.default,o.BlockEmbed,s],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o,i=(o=n(0))&&o.__esModule?o:{default:o},a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,i.default.Attributor.Style),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(s,[{key:"value",value:function(e){var t=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"value",this).call(this,e);return t.startsWith("rgb(")?"#"+(t=t.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):t}}]),s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}var l=new i.default.Attributor.Class("color","ql-color",{scope:i.default.Scope.INLINE}),u=new a("color","color",{scope:i.default.Scope.INLINE});t.ColorAttributor=a,t.ColorClass=l,t.ColorStyle=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:o(i,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var i,a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,((i=n(6))&&i.__esModule?i:{default:i}).default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(s,[{key:"format",value:function(e,t){if(e!==this.statics.blotName||!t)return o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"format",this).call(this,e,t);t=this.constructor.sanitize(t),this.domNode.setAttribute("href",t)}}],[{key:"create",value:function(e){var t=o(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this,e);return e=this.sanitize(e),t.setAttribute("href",e),t.setAttribute("rel","noopener noreferrer"),t.setAttribute("target","_blank"),t}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return l(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}function l(e,t){var n=document.createElement("a");n.href=e;var r=n.href.slice(0,n.href.indexOf(":"));return-1<t.indexOf(r)}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=s(n(23)),a=s(n(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=(function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(f,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var r=e.buildItem(n);t.appendChild(r),!0===n.selected&&e.selectItem(r)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e,t){var n=1<arguments.length&&void 0!==t&&t,o=this.container.querySelector(".ql-selected");if(e!==o&&(null!=o&&o.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),n))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(-1<this.select.selectedIndex){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),f);function f(e){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),this.select=e,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){t.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.togglePicker();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=v(n(0)),o=v(n(5)),i=n(4),a=v(i),s=v(n(16)),l=v(n(25)),u=v(n(24)),c=v(n(35)),f=v(n(6)),h=v(n(22)),p=v(n(7)),d=v(n(55)),m=v(n(42)),y=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":h.default,"blots/text":p.default,"modules/clipboard":d.default,"modules/history":m.default,"modules/keyboard":y.default}),r.default.register(a.default,s.default,u.default,f.default,h.default,p.default),t.default=o.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),o=(Object.defineProperty(i.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),i.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return t=Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),"number"==typeof e?document.createElement(this.tagName[e-1]):-1<this.tagName.indexOf(e)?document.createElement(e):document.createElement(this.tagName[0])):document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},i.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},i.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},i.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},i.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},i.prototype.formatAt=function(e,t,n,o){var i=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&o)i.wrap(n,o);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var a=r.create(this.statics.scope);i.wrap(a),a.format(n,o)}},i.prototype.insertAt=function(e,t,n){var o=null==n?r.create("text",t):r.create(t,n),i=this.split(e);this.parent.insertBefore(o,i)},i.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},i.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},i.prototype.length=function(){return 1},i.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},i.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},i.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},i.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},i.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},i.prototype.split=function(e,t){return 0===e?this:this.next},i.prototype.update=function(e,t){},i.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},i.blotName="abstract",i);function i(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),o=n(32),i=n(33),a=n(1),s=(l.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},l.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=o.default.keys(this.domNode),s=i.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},l.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},l.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},l.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},l);function l(e){this.attributes={},this.domNode=e,this.build()}t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function a(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}var s,l=(o(u,s=i.default),u.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},u.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},u.prototype.remove=function(e){a(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},u.prototype.value=function(e){var t=(a(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},u);function u(){return null!==s&&s.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12);function a(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}var s,l=(o(u,s=i.default),u.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},u.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[a(this.keyName)]=t,!0)},u.prototype.remove=function(e){e.style[a(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},u.prototype.value=function(e){var t=e.style[a(this.keyName)];return this.canAdd(e,t)?t:""},u);function u(){return null!==s&&s.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});var o=(function(e,t,n){t&&r(e.prototype,t)}(i,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),i);function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.quill=e,this.options=t,this.modules={}}o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=a(n(0)),i=a(n(7));function a(e){return e&&e.__esModule?e:{default:e}}var s="\ufeff",l=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,o.default.Embed),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(u,[{key:"index",value:function(e,t){return e===this.leftGuard?0:e===this.rightGuard?1:function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(u.prototype.__proto__||Object.getPrototypeOf(u.prototype),"index",this).call(this,e,t)}},{key:"restore",value:function(e){var t=void 0,n=void 0,r=e.data.split(s).join("");if(e===this.leftGuard)if(this.prev instanceof i.default){var a=this.prev.length();this.prev.insertAt(a,r),t={startNode:this.prev.domNode,startOffset:a+r.length}}else n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this),t={startNode:n,startOffset:r.length};else e===this.rightGuard&&(t=this.next instanceof i.default?(this.next.insertAt(0,r),{startNode:this.next.domNode,startOffset:r.length}):(n=document.createTextNode(r),this.parent.insertBefore(o.default.create(n),this.next),{startNode:n,startOffset:r.length}));return e.data=s,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var r=n.restore(e.target);r&&(t.range=r)}}))}}]),u);function u(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(u.__proto__||Object.getPrototypeOf(u)).call(this,e));return t.contentNode=document.createElement("span"),t.contentNode.setAttribute("contenteditable",!1),[].slice.call(t.domNode.childNodes).forEach((function(e){t.contentNode.appendChild(e)})),t.leftGuard=document.createTextNode(s),t.rightGuard=document.createTextNode(s),t.domNode.appendChild(t.leftGuard),t.domNode.appendChild(t.contentNode),t.domNode.appendChild(t.rightGuard),t}t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),s=new o.default.Attributor.Class("align","ql-align",i),l=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=s,t.AlignStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=n(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),s=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),s=new o.default.Attributor.Class("direction","ql-direction",i),l=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=s,t.DirectionStyle=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o,i=(o=n(0))&&o.__esModule?o:{default:o},a={scope:i.default.Scope.INLINE,whitelist:["serif","monospace"]},s=new i.default.Attributor.Class("font","ql-font",a);function l(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).apply(this,arguments))}var u=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,i.default.Attributor.Style),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(l,[{key:"value",value:function(e){return function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(l.prototype.__proto__||Object.getPrototypeOf(l.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),l)("font","font-family",a);t.FontStyle=u,t.FontClass=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var r,o=(r=n(0))&&r.__esModule?r:{default:r},i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,n){"use strict";e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var s=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,a(n(9)).default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(l,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var r=u(n[e]);this.quill.setSelection(r)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),r=Date.now();if(this.lastRecorded+this.options.delay>r&&0<this.stack.undo.length){var o=this.stack.undo.pop();n=n.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),l);function l(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(l.__proto__||Object.getPrototypeOf(l)).call(this,e,t));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,r,o){e!==i.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&o!==i.default.sources.USER?n.transform(t):n.record(t,r))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.bind(n)),n}function u(e){var t,n,r=e.reduce((function(e,t){return e+(t.delete||0)}),0),i=e.length()-r;return null!=(n=(t=e).ops[t.ops.length-1])&&(null!=n.insert?"string"==typeof n.insert&&n.insert.endsWith("\n"):null!=n.attributes&&Object.keys(n.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))&&--i,i}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=d(n(3)),a=d(n(2)),s=d(n(8)),l=d(n(23)),u=d(n(34)),c=d(n(59)),f=d(n(60)),h=d(n(28)),p=d(n(61));function d(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],w=[!1,"serif","monospace"],x=["1","2","3",!1],_=["small",!1,"large","huge"],E=(v(k,u.default),r(k,[{key:"addModule",value:function(e){var t=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(k.prototype.__proto__||Object.getPrototypeOf(k.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(t),t}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var r=e.value||"";null!=r&&t[n][r]&&(e.innerHTML=t[n][r])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&N(e,g),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&N(e,b,"background"==n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?N(e,w):e.classList.contains("ql-header")?N(e,x):e.classList.contains("ql-size")&&N(e,_)),new h.default(e)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),k);function k(e,t){m(this,k);var n=y(this,(k.__proto__||Object.getPrototypeOf(k)).call(this,e,t));return e.emitter.listenDOM("click",document.body,(function t(r){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(r.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(r.target)||e.close()}))})),n}E.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var r=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(r.index).delete(r.length).insert({image:n.target.result}),s.default.sources.USER),e.quill.setSelection(r.index+1,s.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var O=(v(S,p.default),r(S,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(e,t){var n=0<arguments.length&&void 0!==e?e:"link",r=1<arguments.length&&void 0!==t?t:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=r?this.textbox.value=r:n!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+n)||""),this.root.setAttribute("data-mode",n)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var t=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",e,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",e,s.default.sources.USER)),this.quill.root.scrollTop=t;break;case"video":e=function(e){var t=e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/);return t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e}(e);case"formula":if(!e)break;var n=this.quill.getSelection(!0);if(null!=n){var r=n.index+n.length;this.quill.insertEmbed(r,this.root.getAttribute("data-mode"),e,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(r+1," ",s.default.sources.USER),this.quill.setSelection(r+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),S);function S(e,t){m(this,S);var n=y(this,(S.__proto__||Object.getPrototypeOf(S)).call(this,e,t));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}function N(e,t,n){var r=2<arguments.length&&void 0!==n&&n;t.forEach((function(t){var n=document.createElement("option");t===r?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}t.BaseTooltip=O,t.default=E},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=(o.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),1<e.length&&this.append.apply(this,e.slice(1))},o.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},o.prototype.insertBefore=function(e,t){e&&(null!=(e.next=t)?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?((this.tail.next=e).prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},o.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},o.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),--this.length)},o.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},o.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var o=n.length();if(e<o||t&&e===o&&(null==n.next||0!==n.next.length()))return[n,e];e-=o}return[null,0]},o.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},o.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var r,o=this.find(e),i=o[0],a=e-o[1],s=this.iterator(i);(r=s())&&a<e+t;){var l=r.length();a<e?n(r,e-a,Math.min(t,a+l-e)):n(r,0,Math.min(l,e+t-a)),a+=l}},o.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},o.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},o);function o(){this.head=this.tail=null,this.length=0}t.default=r},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(17),s=n(1),l={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},u=(o(c,i=a.default),c.prototype.detach=function(){i.prototype.detach.call(this),this.observer.disconnect()},c.prototype.deleteAt=function(e,t){this.update(),0===e&&t===this.length()?this.children.forEach((function(e){e.remove()})):i.prototype.deleteAt.call(this,e,t)},c.prototype.formatAt=function(e,t,n,r){this.update(),i.prototype.formatAt.call(this,e,t,n,r)},c.prototype.insertAt=function(e,t,n){this.update(),i.prototype.insertAt.call(this,e,t,n)},c.prototype.optimize=function(e,t){var n=this;void 0===e&&(e=[]),void 0===t&&(t={}),i.prototype.optimize.call(this,t);for(var r=[].slice.call(this.observer.takeRecords());0<r.length;)e.push(r.pop());for(var o=function e(t,r){void 0===r&&(r=!0),null!=t&&t!==n&&null!=t.domNode.parentNode&&(null==t.domNode[s.DATA_KEY].mutations&&(t.domNode[s.DATA_KEY].mutations=[]),r&&e(t.parent))},l=function e(n){null!=n.domNode[s.DATA_KEY]&&null!=n.domNode[s.DATA_KEY].mutations&&(n instanceof a.default&&n.children.forEach(e),n.optimize(t))},u=e,c=0;0<u.length;c+=1){if(100<=c)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=s.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(o(s.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=s.find(e,!1);o(t,!1),t instanceof a.default&&t.children.forEach((function(e){o(e,!1)}))}))):"attributes"===e.type&&o(t.prev)),o(t))})),this.children.forEach(l),r=(u=[].slice.call(this.observer.takeRecords())).slice();0<r.length;)e.push(r.pop())}},c.prototype.update=function(e,t){var n=this;void 0===t&&(t={}),(e=e||this.observer.takeRecords()).map((function(e){var t=s.find(e.target,!0);return null==t?null:null==t.domNode[s.DATA_KEY].mutations?(t.domNode[s.DATA_KEY].mutations=[e],t):(t.domNode[s.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[s.DATA_KEY]&&e.update(e.domNode[s.DATA_KEY].mutations||[],t)})),null!=this.domNode[s.DATA_KEY].mutations&&i.prototype.update.call(this,this.domNode[s.DATA_KEY].mutations,t),this.optimize(e,t)},c.blotName="scroll",c.defaultChild="block",c.scope=s.Scope.BLOCK_BLOT,c.tagName="DIV",c);function c(e){var t=i.call(this,e)||this;return(t.scroll=t).observer=new MutationObserver((function(e){t.update(e)})),t.observer.observe(t.domNode,l),t.attach(),t}t.default=u},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(18),s=n(1),l=(o(u,i=a.default),u.formats=function(e){if(e.tagName!==u.tagName)return i.formats.call(this,e)},u.prototype.format=function(e,t){var n=this;e!==this.statics.blotName||t?i.prototype.format.call(this,e,t):(this.children.forEach((function(e){e instanceof a.default||(e=e.wrap(u.blotName,!0)),n.attributes.copy(e)})),this.unwrap())},u.prototype.formatAt=function(e,t,n,r){null!=this.formats()[n]||s.query(n,s.Scope.ATTRIBUTE)?this.isolate(e,t).format(n,r):i.prototype.formatAt.call(this,e,t,n,r)},u.prototype.optimize=function(e){i.prototype.optimize.call(this,e);var t=this.formats();if(0===Object.keys(t).length)return this.unwrap();var n=this.next;n instanceof u&&n.prev===this&&function(e,t){if(Object.keys(e).length===Object.keys(t).length){for(var n in e)if(e[n]!==t[n])return;return 1}}(t,n.formats())&&(n.moveChildren(this),n.remove())},u.blotName="inline",u.scope=s.Scope.INLINE_BLOT,u.tagName="SPAN",u);function u(){return null!==i&&i.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(18),s=n(1),l=(o(u,i=a.default),u.formats=function(e){var t=s.query(u.blotName).tagName;if(e.tagName!==t)return i.formats.call(this,e)},u.prototype.format=function(e,t){null!=s.query(e,s.Scope.BLOCK)&&(e!==this.statics.blotName||t?i.prototype.format.call(this,e,t):this.replaceWith(u.blotName))},u.prototype.formatAt=function(e,t,n,r){null!=s.query(n,s.Scope.BLOCK)?this.format(n,r):i.prototype.formatAt.call(this,e,t,n,r)},u.prototype.insertAt=function(e,t,n){if(null==n||null!=s.query(t,s.Scope.INLINE))i.prototype.insertAt.call(this,e,t,n);else{var r=this.split(e),o=s.create(t,n);r.parent.insertBefore(o,r)}},u.prototype.update=function(e,t){navigator.userAgent.match(/Trident/)?this.build():i.prototype.update.call(this,e,t)},u.blotName="block",u.scope=s.Scope.BLOCK_BLOT,u.tagName="P",u);function u(){return null!==i&&i.apply(this,arguments)||this}t.default=l},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(19),s=(o(l,i=a.default),l.formats=function(e){},l.prototype.format=function(e,t){i.prototype.formatAt.call(this,0,this.length(),e,t)},l.prototype.formatAt=function(e,t,n,r){0===e&&t===this.length()?this.format(n,r):i.prototype.formatAt.call(this,e,t,n,r)},l.prototype.formats=function(){return this.statics.formats(this.domNode)},l);function l(){return null!==i&&i.apply(this,arguments)||this}t.default=s},function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i,a=n(19),s=n(1),l=(o(u,i=a.default),u.create=function(e){return document.createTextNode(e)},u.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},u.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},u.prototype.index=function(e,t){return this.domNode===e?t:-1},u.prototype.insertAt=function(e,t,n){null==n?(this.text=this.text.slice(0,e)+t+this.text.slice(e),this.domNode.data=this.text):i.prototype.insertAt.call(this,e,t,n)},u.prototype.length=function(){return this.text.length},u.prototype.optimize=function(e){i.prototype.optimize.call(this,e),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof u&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},u.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},u.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=s.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},u.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},u.prototype.value=function(){return this.text},u.blotName="text",u.scope=s.Scope.INLINE_BLOT,u);function u(e){var t=i.call(this,e)||this;return t.text=t.statics.value(t.domNode),t}t.default=l},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1<arguments.length&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,o=arguments[1],i=0;i<r;i++)if(t=n[i],e.call(o,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function r(e,t,s){if(e==t)return e?[[0,e]]:[];(s<0||e.length<s)&&(s=null);var u=i(e,t),c=e.substring(0,u);u=a(e=e.substring(u),t=t.substring(u));var f=e.substring(e.length-u),h=function(e,t){var s;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return s=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==u.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length<n.length)return null;function o(e,t,n){for(var r,o,s,l,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(u,c+1));){var h=i(e.substring(n),t.substring(c)),p=a(e.substring(0,n),t.substring(0,c));f.length<p+h&&(f=t.substring(c-p,c)+t.substring(c,c+h),r=e.substring(0,n-p),o=e.substring(n+h),s=t.substring(0,c-p),l=t.substring(c+h))}return 2*f.length>=e.length?[r,o,s,l,f]:null}var s,l,u,c,f,h=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));return h||p?(s=!p||h&&h[4].length>p[4].length?h:p,e.length>t.length?(l=s[0],u=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],l=s[2],u=s[3]),[l,u,c,f,s[4]]):null}(e,t);if(f){var h=f[0],p=f[1],d=f[2],m=f[3],y=f[4],v=r(h,d),g=r(p,m);return v.concat([[0,y]],g)}return function(e,t){for(var r=e.length,i=t.length,a=Math.ceil((r+i)/2),s=a,l=2*a,u=new Array(l),c=new Array(l),f=0;f<l;f++)u[f]=-1,c[f]=-1;u[s+1]=0,c[s+1]=0;for(var h=r-i,p=h%2!=0,d=0,m=0,y=0,v=0,g=0;g<a;g++){for(var b=-g+d;b<=g-m;b+=2){for(var w=s+b,x=(S=b==-g||b!=g&&u[w-1]<u[w+1]?u[w+1]:u[w-1]+1)-b;S<r&&x<i&&e.charAt(S)==t.charAt(x);)S++,x++;if(u[w]=S,r<S)m+=2;else if(i<x)d+=2;else if(p&&0<=(k=s+h-b)&&k<l&&-1!=c[k]&&(E=r-c[k])<=S)return o(e,t,S,x)}for(var _=-g+y;_<=g-v;_+=2){for(var E,k=s+_,O=(E=_==-g||_!=g&&c[k-1]<c[k+1]?c[k+1]:c[k-1]+1)-_;E<r&&O<i&&e.charAt(r-E-1)==t.charAt(i-O-1);)E++,O++;if(c[k]=E,r<E)v+=2;else if(i<O)y+=2;else if(!p&&0<=(w=s+h-_)&&w<l&&-1!=u[w]){var S=u[w];if(x=s+S-w,(E=r-E)<=S)return o(e,t,S,x)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-u),t=t.substring(0,t.length-u));return c&&h.unshift([0,c]),f&&h.push([0,f]),function e(t){t.push([0,""]);for(var r,o=0,s=0,l=0,u="",c="";o<t.length;)switch(t[o][0]){case 1:l++,c+=t[o][1],o++;break;case n:s++,u+=t[o][1],o++;break;case 0:1<s+l?(0!==s&&0!==l&&(0!==(r=i(c,u))&&(0<o-s-l&&0==t[o-s-l-1][0]?t[o-s-l-1][1]+=c.substring(0,r):(t.splice(0,0,[0,c.substring(0,r)]),o++),c=c.substring(r),u=u.substring(r)),0!==(r=a(c,u))&&(t[o][1]=c.substring(c.length-r)+t[o][1],c=c.substring(0,c.length-r),u=u.substring(0,u.length-r))),0===s?t.splice(o-l,s+l,[1,c]):0===l?t.splice(o-s,s+l,[n,u]):t.splice(o-s-l,s+l,[n,u],[1,c]),o=o-s-l+(s?1:0)+(l?1:0)+1):0!==o&&0==t[o-1][0]?(t[o-1][1]+=t[o][1],t.splice(o,1)):o++,s=l=0,c=u=""}""===t[t.length-1][1]&&t.pop();var f=!1;for(o=1;o<t.length-1;)0==t[o-1][0]&&0==t[o+1][0]&&(t[o][1].substring(t[o][1].length-t[o-1][1].length)==t[o-1][1]?(t[o][1]=t[o-1][1]+t[o][1].substring(0,t[o][1].length-t[o-1][1].length),t[o+1][1]=t[o-1][1]+t[o+1][1],t.splice(o-1,1),f=!0):t[o][1].substring(0,t[o+1][1].length)==t[o+1][1]&&(t[o-1][1]+=t[o+1][1],t[o][1]=t[o][1].substring(t[o+1][1].length)+t[o+1][1],t.splice(o+1,1),f=!0)),o++;f&&e(t)}(h),null!=s&&(h=function(e,t){var r=function(e,t){if(0===t)return[0,e];for(var r=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===n||0===i[0]){var a=r+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var s=t-r,l=[i[0],i[1].slice(0,s)],u=[i[0],i[1].slice(s)];return e.splice(o,1,l,u),[o+1,e]}r=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=r[1],i=r[0],a=o[i],s=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return o.splice(i,2,s,a),l(o,i,2);if(null==s||0!==s[1].indexOf(a[1]))return e;o.splice(i,2,[s[0],a[1]],[0,a[1]]);var u=s[1].slice(a[1].length);return 0<u.length&&o.splice(i+2,0,[s[0],u]),l(o,i,3)}(h,s)),function(e){function t(e){return 56320<=e.charCodeAt(0)&&e.charCodeAt(0)<=57343}for(var r=!1,o=2;o<e.length;o+=1)0===e[o-2][0]&&55296<=(i=e[o-2][1]).charCodeAt(i.length-1)&&i.charCodeAt(i.length-1)<=56319&&e[o-1][0]===n&&t(e[o-1][1])&&1===e[o][0]&&t(e[o][1])&&(r=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));var i;if(!r)return e;var a=[];for(o=0;o<e.length;o+=1)0<e[o][1].length&&a.push(e[o]);return a}(h)}function o(e,t,n,o){var i=e.substring(0,n),a=t.substring(0,o),s=e.substring(n),l=t.substring(o),u=r(i,a),c=r(s,l);return u.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(i,o)==t.substring(i,o)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,r=Math.min(e.length,t.length),o=r,i=0;n<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=n=o:r=o,o=Math.floor((r-n)/2+n);return o}var s=r;function l(e,t,n){for(var r=t+n-1;0<=r&&t-1<=r;r--)if(r+1<e.length){var o=e[r],i=e[r+1];o[0]===i[1]&&e.splice(r,2,[o[0],o[1]+i[1]])}return e}s.INSERT=1,s.DELETE=n,s.EQUAL=0,e.exports=s},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function r(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?r:o).supported=r,t.unsupported=o},function(e,t){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function o(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(r=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)n.call(e,t)&&o.push(r?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var n=r?r+e:e,o=this._events[n];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,s=new Array(a);i<a;i++)s[i]=o[i].fn;return s},a.prototype.emit=function(e,t,n,o,i,a){var s=r?r+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var h,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,o);break;default:if(!l)for(h=1,l=new Array(f-1);h<f;h++)l[h-1]=arguments[h];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){var o=new i(t,n||this),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,n){var o=new i(t,n||this,!0),a=r?r+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=r,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=b(n(3)),s=b(n(2)),l=b(n(0)),u=b(n(5)),c=b(n(10)),f=b(n(9)),h=n(36),p=n(37),d=b(n(13)),m=n(26),y=n(38),v=n(39),g=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x=(0,c.default)("quill:clipboard"),_="__ql-matcher",E=[[Node.TEXT_NODE,B],[Node.TEXT_NODE,I],["br",function(e,t){return q(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,P],[Node.ELEMENT_NODE,R],[Node.ELEMENT_NODE,T],[Node.ELEMENT_NODE,function(e,t){var n={},r=e.style||{};return r.fontStyle&&"italic"===C(e).fontStyle&&(n.italic=!0),r.fontWeight&&(C(e).fontWeight.startsWith("bold")||700<=parseInt(C(e).fontWeight))&&(n.bold=!0),0<Object.keys(n).length&&(t=A(t,n)),0<parseFloat(r.textIndent||0)&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!q(t,"\n"))return t;for(var r=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(l.default.query(o)||{}).blotName&&(r+=1),o=o.parentNode;return r<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new s.default}]],k=[h.AlignAttribute,y.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=[h.AlignStyle,p.BackgroundStyle,m.ColorStyle,y.DirectionStyle,v.FontStyle,g.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(N,f.default),function(e,t,n){t&&i(e.prototype,t),n&&i(e,n)}(N,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[d.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,w({},d.default.blotName,t[d.default.blotName]))}var r=this.prepareMatching(),i=o(r,2),a=i[0],l=i[1],u=function e(t,n,r){return t.nodeType===t.TEXT_NODE?r.reduce((function(e,n){return n(t,e)}),new s.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(o,i){var a=e(i,n,r);return i.nodeType===t.ELEMENT_NODE&&(a=n.reduce((function(e,t){return t(i,e)}),a),a=(i[_]||[]).reduce((function(e,t){return t(i,e)}),a)),o.concat(a)}),new s.default):new s.default}(this.container,a,l);return q(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),x.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t,n){var r=2<arguments.length&&void 0!==n?n:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(o),r),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,u.default.sources.USER),t.quill.setSelection(r.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var i=o(r,2),a=i[0],s=i[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[_]=e[_]||[],e[_].push(s)}))}})),[t,n]}}]),N);function N(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,N);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,e,t));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],E.concat(n.options.matchers).forEach((function(e){var r=o(e,2),i=r[0],a=r[1];!t.matchVisual&&a===R||n.addMatcher(i,a)})),n}function A(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return A(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,a.default)({},w({},t,n),r.attributes))}),new s.default)}function C(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function q(e,t){for(var n="",r=e.ops.length-1;0<=r&&n.length<t.length;--r){var o=e.ops[r];if("string"!=typeof o.insert)break;n=o.insert+n}return n.slice(-1*t.length)===t}function M(e){if(0!==e.childNodes.length){var t=C(e);return-1<["block","list-item"].indexOf(t.display)}}function j(e,t,n){return A(n,e,!0)}function T(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),o=l.default.Attributor.Style.keys(e),i={};return n.concat(r).concat(o).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=k[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(n=O[t],i[n.attrName]=n.value(e)||void 0))})),0<Object.keys(i).length&&(t=A(t,i)),t}function P(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},o=n.value(e);null!=o&&(r[n.blotName]=o,t=(new s.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=A(t,n.blotName,n.formats(e)));return t}function I(e,t){return q(t,"\n")||(M(e)||0<t.length()&&e.nextSibling&&M(e.nextSibling))&&t.insert("\n"),t}function R(e,t){if(M(e)&&null!=e.nextElementSibling&&!q(t,"\n\n")){var n=e.offsetHeight+parseFloat(C(e).marginTop)+parseFloat(C(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function B(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!C(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&M(e.parentNode)||null!=e.previousSibling&&M(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&M(e.parentNode)||null!=e.nextSibling&&M(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},t.default=S,t.matchAttributor=T,t.matchBlot=P,t.matchNewline=I,t.matchSpacing=R,t.matchText=B},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:o(i,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var i,a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,((i=n(6))&&i.__esModule?i:{default:i}).default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(s,[{key:"optimize",value:function(e){o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return o(s.__proto__||Object.getPrototypeOf(s),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=c(n(2)),a=c(n(0)),s=c(n(5)),l=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var h=(0,l.default)("quill:toolbar"),p=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(d,u.default),function(e,t,n){t&&o(e.prototype,t),n&&o(e,n)}(d,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void h.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void h.warn("ignoring attaching to nonexistent format",n,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];l=!u.hasAttribute("selected")&&u.value||!1}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c,f,h,p=t.quill.selection.getRange(),d=r(p,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(d.index).delete(d.length).insert((h=l,(f=n)in(c={})?Object.defineProperty(c,f,{value:h,enumerable:!0,configurable:!0,writable:!0}):c[f]=h,c)),s.default.sources.USER)}else t.quill.format(n,l,s.default.sources.USER);t.update(d)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var o=r(n,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[i])s=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var l=t[i];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),d);function d(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);var n,o=f(this,(d.__proto__||Object.getPrototypeOf(d)).call(this,e,t));if(Array.isArray(o.options.container)){var i=document.createElement("div");y(i,o.options.container),e.container.parentNode.insertBefore(i,e.container),o.container=i}else"string"==typeof o.options.container?o.container=document.querySelector(o.options.container):o.container=o.options.container;return o.container instanceof HTMLElement?(o.container.classList.add("ql-toolbar"),o.controls=[],o.handlers={},Object.keys(o.options.handlers).forEach((function(e){o.addHandler(e,o.options.handlers[e])})),[].forEach.call(o.container.querySelectorAll("button, select"),(function(e){o.attach(e)})),o.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.SELECTION_CHANGE&&o.update(t)})),o.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var e=o.quill.selection.getRange(),t=r(e,1)[0];o.update(t)})),o):(n=h.error("Container required for toolbar",o.options),f(o,n))}function m(e,t,n){var r=document.createElement("button");r.setAttribute("type","button"),r.classList.add("ql-"+t),null!=n&&(r.value=n),e.appendChild(r)}function y(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)m(n,e);else{var t=Object.keys(e)[0],r=e[t];Array.isArray(r)?(o=n,i=t,a=r,(s=document.createElement("select")).classList.add("ql-"+i),a.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),s.appendChild(t)})),o.appendChild(s)):m(n,t,r)}var o,i,a,s})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),r=parseInt(n.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===n.direction&&(o*=-1),this.quill.format("indent",r+o,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=p,t.addControls=y},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:o(i,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var i,a=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,((i=n(28))&&i.__esModule?i:{default:i}).default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(s,[{key:"buildItem",value:function(e){var t=o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"buildItem",this).call(this,e);return t.style.backgroundColor=e.getAttribute("value")||"",t}},{key:"selectItem",value:function(e,t){o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"selectItem",this).call(this,e,t);var n=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=r:n.style.fill=r)}}]),s);function s(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).call(this,e));return n.label.innerHTML=t,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),n}t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o,i=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((o=n(28))&&o.__esModule?o:{default:o}).default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(a,[{key:"selectItem",value:function(e,t){(function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0})(a.prototype.__proto__||Object.getPrototypeOf(a.prototype),"selectItem",this).call(this,e,t),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),a);function a(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).call(this,e));return n.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=t[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),n}t.default=i},function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.defineProperty(t,"__esModule",{value:!0});var o=(function(e,t,n){t&&r(e.prototype,t)}(i,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var r=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>r.right&&(i=r.right-o.right,this.root.style.left=t+i+"px"),o.left<r.left&&(i=r.left-o.left,this.root.style.left=t+i+"px"),o.bottom>r.bottom){var a=o.bottom-o.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),i);function i(e,t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.quill=e,this.boundsContainer=t||document.body,this.root=e.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}t.default=o},function(e,t,n){"use strict";function r(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:r(i,t,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=p(n(3)),s=p(n(8)),l=n(43),u=p(l),c=p(n(27)),f=n(15),h=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],g=(y(b,u.default),o(b,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),h.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),h.default),this.tooltip=new w(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),b);function b(e,t){d(this,b),null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=v);var n=m(this,(b.__proto__||Object.getPrototypeOf(b)).call(this,e,t));return n.quill.container.classList.add("ql-snow"),n}g.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var w=(y(x,l.BaseTooltip),o(x,[{key:"listen",value:function(){var e=this;r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===s.default.sources.USER){var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.quill.scroll.descendant(c.default,t.index),2),i=o[0],a=o[1];if(null!=i){e.linkRange=new f.Range(t.index-a,i.length());var l=c.default.formats(i.domNode);return e.preview.textContent=l,e.preview.setAttribute("href",l),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(x.prototype.__proto__||Object.getPrototypeOf(x.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),x);function x(e,t){d(this,x);var n=m(this,(x.__proto__||Object.getPrototypeOf(x)).call(this,e,t));return n.preview=n.root.querySelector("a.ql-preview"),n}w.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=I(n(29)),o=n(36),i=n(38),a=n(64),s=I(n(65)),l=I(n(66)),u=n(67),c=I(u),f=n(37),h=n(26),p=n(39),d=n(40),m=I(n(56)),y=I(n(68)),v=I(n(27)),g=I(n(69)),b=I(n(70)),w=I(n(71)),x=I(n(72)),_=I(n(73)),E=n(13),k=I(E),O=I(n(74)),S=I(n(75)),N=I(n(57)),A=I(n(41)),C=I(n(28)),q=I(n(59)),M=I(n(60)),j=I(n(61)),T=I(n(108)),P=I(n(62));function I(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":d.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":d.SizeStyle},!0),r.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":p.FontClass,"formats/size":d.SizeClass,"formats/blockquote":s.default,"formats/code-block":k.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":m.default,"formats/code":E.Code,"formats/italic":y.default,"formats/link":v.default,"formats/script":g.default,"formats/strike":b.default,"formats/underline":w.default,"formats/image":x.default,"formats/video":_.default,"formats/list/item":u.ListItem,"modules/formula":O.default,"modules/syntax":S.default,"modules/toolbar":N.default,"themes/bubble":T.default,"themes/snow":P.default,"ui/icons":A.default,"ui/picker":C.default,"ui/icon-picker":M.default,"ui/color-picker":q.default,"ui/tooltip":j.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:o(i,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var i,a=(i=n(0))&&i.__esModule?i:{default:i};function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(s.__proto__||Object.getPrototypeOf(s)).apply(this,arguments))}var l=new(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,a.default.Attributor.Class),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(s,[{key:"add",value:function(e,t){if("+1"===t||"-1"===t){var n=this.value(e)||0;t="+1"===t?n+1:n-1}return 0===t?(this.remove(e),!0):o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"add",this).call(this,e,t)}},{key:"canAdd",value:function(e,t){return o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,e,t)||o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"canAdd",this).call(this,e,parseInt(t))}},{key:"value",value:function(e){return parseInt(o(s.prototype.__proto__||Object.getPrototypeOf(s.prototype),"value",this).call(this,e))||void 0}}]),s)("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((r=n(4))&&r.__esModule?r:{default:r}).default),i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}o.blotName="blockquote",o.tagName="blockquote",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o,i=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((o=n(4))&&o.__esModule?o:{default:o}).default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(a,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var o=Object.getPrototypeOf(e);return null===o?void 0:i(o,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var a=u(n(0)),s=u(n(4)),l=u(n(25));function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=(h(d,s.default),r(d,[{key:"format",value:function(e,t){e!==m.blotName||t?i(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"format",this).call(this,e,t):this.replaceWith(a.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():i(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,t){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,t),this):(this.parent.unwrap(),i(d.prototype.__proto__||Object.getPrototypeOf(d.prototype),"replaceWith",this).call(this,e,t))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:i(d.__proto__||Object.getPrototypeOf(d),"formats",this).call(this,e)}}]),d);function d(){return c(this,d),f(this,(d.__proto__||Object.getPrototypeOf(d)).apply(this,arguments))}p.blotName="list-item",p.tagName="LI";var m=(h(y,l.default),r(y,null,[{key:"create",value:function(e){var t="ordered"===e?"OL":"UL",n=i(y.__proto__||Object.getPrototypeOf(y),"create",this).call(this,t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),r(y,[{key:"format",value:function(e,t){0<this.children.length&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,t){if(e instanceof p)i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"insertBefore",this).call(this,e,t);else{var n=null==t?this.length():t.offset(this),r=this.split(n);r.parent.insertBefore(e,r)}}},{key:"optimize",value:function(e){i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"optimize",this).call(this,e);var t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var t=a.default.create(this.statics.defaultChild);e.moveChildren(t),this.appendChild(t)}i(y.prototype.__proto__||Object.getPrototypeOf(y.prototype),"replace",this).call(this,e)}}]),y);function y(e){function t(t){if(t.target.parentNode===e){var r=n.statics.formats(e),o=a.default.find(t.target);"checked"===r?o.format("list","unchecked"):"unchecked"===r&&o.format("list","checked")}}c(this,y);var n=f(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,e));return e.addEventListener("touchstart",t),e.addEventListener("mousedown",t),n}m.blotName="list",m.scope=a.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[p],t.ListItem=p,t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((r=n(56))&&r.__esModule?r:{default:r}).default),i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o,i=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,((o=n(6))&&o.__esModule?o:{default:o}).default),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(a,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(a.__proto__||Object.getPrototypeOf(a),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(a.__proto__||Object.getPrototypeOf(a)).apply(this,arguments))}i.blotName="script",i.tagName=["SUB","SUP"],t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((r=n(6))&&r.__esModule?r:{default:r}).default),i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}o.blotName="strike",o.tagName="S",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,((r=n(6))&&r.__esModule?r:{default:r}).default),i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(i.__proto__||Object.getPrototypeOf(i)).apply(this,arguments))}o.blotName="underline",o.tagName="U",t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:o(i,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var i,a=(i=n(0))&&i.__esModule?i:{default:i},s=n(27),l=["alt","height","width"],u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,a.default.Embed),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(c,[{key:"format",value:function(e,t){-1<l.indexOf(e)?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,e,t)}}],[{key:"create",value:function(e){var t=o(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,e);return"string"==typeof e&&t.setAttribute("src",this.sanitize(e)),t}},{key:"formats",value:function(e){return l.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){null===e&&(e=Function.prototype);var r=Object.getOwnPropertyDescriptor(e,t);if(void 0===r){var i=Object.getPrototypeOf(e);return null===i?void 0:o(i,t,n)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(n):void 0}var i,a=n(4),s=(i=n(27))&&i.__esModule?i:{default:i},l=["height","width"],u=(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,a.BlockEmbed),function(e,t,n){t&&r(e.prototype,t),n&&r(e,n)}(c,[{key:"format",value:function(e,t){-1<l.indexOf(e)?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):o(c.prototype.__proto__||Object.getPrototypeOf(c.prototype),"format",this).call(this,e,t)}}],[{key:"create",value:function(e){var t=o(c.__proto__||Object.getPrototypeOf(c),"create",this).call(this,e);return t.setAttribute("frameborder","0"),t.setAttribute("allowfullscreen",!0),t.setAttribute("src",this.sanitize(e)),t}},{key:"formats",value:function(e){return l.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(c.__proto__||Object.getPrototypeOf(c)).apply(this,arguments))}u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=l(n(35)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(f(p,i.default),r(p,null,[{key:"create",value:function(e){var t=function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(p.__proto__||Object.getPrototypeOf(p),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,t,{throwOnError:!1,errorColor:"#f00"}),t.setAttribute("data-value",e)),t}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),p);function p(){return u(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}h.blotName="formula",h.className="ql-formula",h.tagName="SPAN";var d=(f(m,s.default),r(m,null,[{key:"register",value:function(){a.default.register(h,!0)}}]),m);function m(){u(this,m);var e=c(this,(m.__proto__||Object.getPrototypeOf(m)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}t.FormulaBlot=h,t.default=d},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var r=function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),e};function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=l(n(0)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var h=(f(p,l(n(13)).default),r(p,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),function e(t,n,r){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,n);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,r)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(r):void 0}(p.prototype.__proto__||Object.getPrototypeOf(p.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((0<t.trim().length||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),p);function p(){return u(this,p),c(this,(p.__proto__||Object.getPrototypeOf(p)).apply(this,arguments))}h.className="ql-syntax";var d=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),m=(f(y,s.default),r(y,null,[{key:"register",value:function(){a.default.register(d,!0),a.default.register(h,!0)}}]),r(y,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(h).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),y);function y(e,t){u(this,y);var n=c(this,(y.__proto__||Object.getPrototypeOf(y)).call(this,e,t));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return n.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){n.highlight(),r=null}),n.options.interval)})),n.highlight(),n}m.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=h,t.CodeToken=d,t.default=m},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){"use strict";function r(e,t,n){null===e&&(e=Function.prototype);var o=Object.getOwnPropertyDescriptor(e,t);if(void 0===o){var i=Object.getPrototypeOf(e);return null===i?void 0:r(i,t,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0}Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=h(n(3)),s=h(n(8)),l=n(43),u=h(l),c=n(15),f=h(n(41));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],v=(m(g,u.default),o(g,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),f.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),f.default)}}]),g);function g(e,t){p(this,g),null!=t.modules.toolbar&&null==t.modules.toolbar.container&&(t.modules.toolbar.container=y);var n=d(this,(g.__proto__||Object.getPrototypeOf(g)).call(this,e,t));return n.quill.container.classList.add("ql-bubble"),n}v.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=(m(w,l.BaseTooltip),o(w,[{key:"listen",value:function(){var e=this;r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var t=r(w.prototype.__proto__||Object.getPrototypeOf(w.prototype),"position",this).call(this,e),n=this.root.querySelector(".ql-tooltip-arrow");if(n.style.marginLeft="",0===t)return t;n.style.marginLeft=-1*t-n.offsetWidth/2+"px"}}]),w);function w(e,t){p(this,w);var n=d(this,(w.__proto__||Object.getPrototypeOf(w)).call(this,e,t));return n.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t,r,o){if(e===s.default.events.SELECTION_CHANGE)if(null!=t&&0<t.length&&o===s.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var i=n.quill.getLines(t.index,t.length);if(1===i.length)n.position(n.quill.getBounds(t));else{var a=i[i.length-1],l=n.quill.getIndex(a),u=Math.min(a.length()-1,t.index+t.length-l),f=n.quill.getBounds(new c.Range(l,u));n.position(f)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=v},function(e,t,n){e.exports=n(63)}],e.c=r,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e.p="",e(e.s=109).default;function e(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return n[t].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n,r},e.exports=n()}).call(this,n(1110).Buffer)},831:function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"f",(function(){return l}));var r=0,o=2,i=3,a=4,s=5,l=["\u5355\u9009\u9898","\u591a\u9009\u9898","\u5224\u65ad\u9898","\u586b\u7a7a\u9898","\u7b80\u7b54\u9898","\u5b9e\u8bad\u9898"]},869:function(e,t,n){},919:function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(17),a=n(136),s=(n(1105),n(1106),n(1107),n(1108),n(1109),n(0)),l=n.n(s),u=n(829),c=n.n(u),f=n(1114),h=n.n(f),p=n(26),d=n(28),m=n(8),y=n(7),v=n(10),g=n(9);function b(e,t,n){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Object(g.a)(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}var w=n(11),x=function(e){function t(){return Object(m.a)(this,t),Object(v.a)(this,Object(g.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(y.a)(t,null,[{key:"create",value:function(e){var n=b(Object(g.a)(t),"create",this).call(this);return n.setAttribute("alt",e.alt),n.setAttribute("src",e.url),n.addEventListener("click",(function(){e.onclick(e.url)}),!1),e.width&&n.setAttribute("width",e.width),e.height&&n.setAttribute("height",e.height),e.id&&n.setAttribute("id",e.id),e.width||e.height||n.setAttribute("width","100%"),n}},{key:"value",value:function(e){return{alt:e.getAttribute("alt"),url:e.getAttribute("src"),onclick:e.onclick,width:e.width,height:e.height,display:e.getAttribute("display"),id:e.id}}}]),t}(c.a.import("blots/block/embed"));x.blotName="image",x.tagName="img";var _=function(e){function t(){return Object(m.a)(this,t),Object(v.a)(this,Object(g.a)(t).apply(this,arguments))}return Object(w.a)(t,e),Object(y.a)(t,null,[{key:"create",value:function(e){var n=b(Object(g.a)(t),"cerate",this).call(this,e);return n.setAttribute("data_index",e.data_index),n.nodeValue=e.text,n}},{key:"value",value:function(e){return{data_index:e.getAttribute("data_index")}}}]),t}(c.a.import("blots/inline"));_.blotName="fill",_.tagName="span";var E=_,k=c.a.import("attributors/style/size"),O=c.a.import("formats/font");k.whitelist=["12px","14px","16px","18px","20px",!1],O.whitelist=["SimSun","SimHei","Microsoft-YaHei","KaiTi","FangSong","Arial","Times-New-Roman","sans-serif"],window.Quill=c.a,window.katex=h.a,c.a.register(x),c.a.register(k),c.a.register(O,!0),c.a.register({"formats/fill":E}),t.a=function(e){function t(e){E&&E(e,C)}var n=e.placeholder,r=e.readOnly,u=e.autoFocus,f=void 0!==u&&u,h=e.options,m=e.value,y=e.imgAttrs,v=void 0===y?{}:y,g=e.style,b=void 0===g?{}:g,w=e.wrapStyle,x=void 0===w?{}:w,_=e.showUploadImage,E=e.onContentChange,k=e.addFill,O=e.deleteFill,S=Object(s.useRef)(null),N=Object(s.useState)(null),A=Object(a.a)(N,2),C=A[0],q=A[1],M=Object(s.useState)(null),j=Object(a.a)(M,2),T=j[0],P=j[1],I=Object(s.useState)(0),R=Object(a.a)(I,2),B=R[0],L=R[1],D=Object(s.useState)({}),F=Object(a.a)(D,2),z=(F[0],F[1]),U={modules:{toolbar:h||["bold","italic","underline",{size:["12px","14px","16px","18px","20px"]},{align:[]},{list:"ordered"},{list:"bullet"},{script:"sub"},{script:"super"},{color:[]},{background:[]},{header:[1,2,3,4,5,!1]},"blockquote","code-block","link","image","video","formula","clean"],keyboard:{bindings:{tab:{key:9,handler:function(){}},backspace:{key:"Backspace",handler:function(e){var t=e.index,n=e.length,r=0===n?t-1:t,o=n||1,i=/\u2581/g,a=this.quill.getText(r,o).match(i);if(a){if(window.confirm("\u786e\u5b9a\u8981\u5220\u9664\u5417?")){var s=((0===n?this.quill.getText(0,t-1):this.quill.getText(0,t)).match(i)||[]).length,l=[];return a.forEach((function(e,t){0===s?l.push(t):l.push(s+t)})),O&&O(l),!0}return!1}return!0}}}}},readOnly:r,placeholder:n,theme:r?"bubble":"snow"};return Object(s.useEffect)((function(){var e=document.createElement("div");S.current.appendChild(e);var t=new c.a(S.current,U);q(t),t.getModule("toolbar").addHandler("image",(function(e){var n=document.createElement("input");n.setAttribute("type","file"),n.setAttribute("accept","image/*"),n.click(),n.onchange=function(){var e=Object(i.a)(o.a.mark((function e(r){var i,a,s,l,u,c,f;return o.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.files[0],(a=new FormData).append("file",i),s=t.getSelection(!0),l="",e.next=7,Object(p.n)(a);case 7:(u=e.sent).data&&u.data.id&&(l=Object(d.L)("api/attachments/".concat(u.data.id))),c=v.width,f=v.height,l&&t.insertEmbed(s.index,"image",{url:l,alt:"\u56fe\u7247\u4fe1\u606f",onClick:_,width:c,height:f});case 11:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()})),t.getModule("toolbar").addHandler("fill",(function(e){L(B+1);var n=t.getSelection(!0);t.insertText(n.index,"\u2581"),k&&k()}))}),[]),Object(s.useEffect)((function(){if(C){var e=C.getContents();m&&m.hasOwnProperty("ops")&&(m.ops||[]).forEach((function(e,t){e.insert.image&&(e.insert.image=Object.assign({},e.insert.image,{style:{cursor:"pointer"},onclick:function(e){return _(e)}}))})),function e(t,n){if(t===n)return!0;if(!t&&n||t&&!n||!t&&!n)return!1;if(Array.isArray(t)){if(!Array.isArray(n))return!1;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(!e(n[r],t[r]))return!1;return!0}if("object"!=typeof n)return!1;if("object"!=typeof t)return!1;var o=Object.keys(t),i=Object.keys(n);if(o.length!==i.length)return!1;o.sort(),i.sort();for(var a=0;a<o.length;a++){if(o[a]!==i[a])return!1;var s=o[a];if(!e(t[s],n[s]))return!1}return!0}(e,m)||(P(C.getSelection()),"string"==typeof m&&m?(C.clipboard.dangerouslyPasteHTML(m,"api"),f?C.focus():C.blur()):(C.setContents(m),f&&C.focus()))}}),[C,m,q,f]),Object(s.useEffect)((function(){C&&T&&(C.setSelection(T),P(null))}),[C,T,P]),Object(s.useEffect)((function(){C&&C.root&&(C.root.dataset.placeholder=n)}),[C,n]),Object(s.useEffect)((function(){var e;if(C)return C.on("text-change",e=function(){var e=C.getContents();z(e),t(C.getContents())}),function(){C.off("text-change",e)}}),[C,t]),l.a.createElement("div",{className:"quill_editor_for_react_area",style:x},l.a.createElement("div",{ref:S,style:b}))}},965:function(e,t,n){"use strict";n(46),n(981)},967:function(e,t,n){"use strict";n(259);var r=n(167),o=n(8),i=n(7),a=n(10),s=n(9),l=n(11),u=(n(472),n(471)),c=(n(50),n(29)),f=(n(103),n(47)),h=n(0),p=n.n(h),d=(n(6),n(831)),m=n(28),y=(f.a.TextArea,c.a.confirm,window.$,u.a.Option,function(e){function t(e){var n;return Object(o.a)(this,t),(n=Object(a.a)(this,Object(s.a)(t).call(this,e))).componentDidMount=function(){},n.state={},n}return Object(l.a)(t,e),Object(i.a)(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.question_title,o=t.question_score,i=t.question_type,a=(t.question_choices,t.standard_answer,t.question_id),s=(t.question_number,t.index),l=t.displayCount,u=t.topRight,c=t.showActionButton,f=t.exerciseIsPublish,h=(this.props.isAdmin(),this.props.match.params.coursesId,this.isEdit,"question_".concat(s),d.f[i]);return p.a.createElement(p.a.Fragment,null,p.a.createElement("div",{className:"new_li"},p.a.createElement("style",null,"\n .actionBtns {\n height: 28px\n }\n "),p.a.createElement("div",{className:"font-16 fl"},p.a.createElement("span",{className:"color-blue"},s+1,"\u3001",h),p.a.createElement("span",{className:"color-grey-9"},"\uff08",o,"\u5206\uff09")),p.a.createElement("div",{className:"fr actionBtns"},u,0!=c&&p.a.createElement(p.a.Fragment,null,!f&&p.a.createElement("a",{className:"mr30",onClick:function(){return e.props.onQestionDelete(a)}},p.a.createElement(r.a,{title:"\u5220\u9664"},p.a.createElement("i",{className:"color-grey-cd font-16 iconfont icon-shanchu"}))),0===s?"":p.a.createElement("a",{className:"mr30",onClick:function(){return e.props.onSortUp(s,a)}},p.a.createElement(r.a,{title:"\u4e0a\u79fb"},p.a.createElement("i",{className:"color-green font-18 iconfont icon-xiangshangyi"}))),s===l-1?"":p.a.createElement("a",{className:"mr30",onClick:function(){return e.props.onSortDown(s,a)}},p.a.createElement(r.a,{title:"\u4e0b\u79fb"},p.a.createElement("i",{className:"color-green font-18 iconfont icon-xiangxiayi"}))),!f&&p.a.createElement("a",{className:"mr30",onClick:function(){return e.props.addQuestion(a,i)}},p.a.createElement(r.a,{title:"(\u5411\u4e0b\u63d2\u5165".concat(h,")")},p.a.createElement("i",{className:"color-green font-18 iconfont icon-roundaddfill"}))),p.a.createElement("a",{onClick:function(){return e.props.editQestion(s)}},p.a.createElement(r.a,{title:"\u7f16\u8f91"},p.a.createElement("i",{className:"color-green font-18 iconfont icon-bianjidaibeijing"})))))),n&&p.a.createElement(m.s,{content:n,selector:"qtitle_"+(s+1),style:{display:"inline-block",width:"100%",margin:"10px 0px 15px"}}))}}]),t}(h.Component));t.a=y},970:function(e,t,n){"use strict";var r=n(0),o=n(199),i=n(25),a=n(12),s=n.n(a),l=n(198),u=n(23),c={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},f=Object.keys(c).filter((function(e){if("undefined"==typeof document)return!1;var t=document.getElementsByTagName("html")[0];return e in(t?t.style:{})}))[0],h=c[f];function p(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),n)}function d(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r):e.attachEvent&&e.detachEvent("on".concat(t),n)}function m(e){return!isNaN(parseFloat(e))&&isFinite(e)}var y=!("undefined"!=typeof window&&window.document&&window.document.createElement);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function x(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _(e,t){return(_=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var E={},k=function(){function e(t){var n,r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this,r=w(e).call(this,t),(n=!r||"object"!==v(r)&&"function"!=typeof r?x(this):r).domFocus=function(){n.dom&&n.dom.focus()},n.removeStartHandler=function(e){1<e.touches.length||(n.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},n.removeMoveHandler=function(e){if(!(1<e.changedTouches.length)){var t=e.currentTarget,r=e.changedTouches[0].clientX-n.startPos.x,o=e.changedTouches[0].clientY-n.startPos.y;(t===n.maskDom||t===n.handlerDom||t===n.contentDom&&function e(t,n,r,o){if(!n||n===document||n instanceof Document)return!1;if(n===t.parentNode)return!0;var i=Math.max(Math.abs(r),Math.abs(o))===Math.abs(o),a=Math.max(Math.abs(r),Math.abs(o))===Math.abs(r),s=n.scrollHeight-n.clientHeight,l=n.scrollWidth-n.clientWidth,u=document.defaultView.getComputedStyle(n),c="auto"===u.overflowY||"scroll"===u.overflowY,f="auto"===u.overflowX||"scroll"===u.overflowX,h=s&&c,p=l&&f;return!!(i&&(!h||h&&(n.scrollTop>=s&&o<0||n.scrollTop<=0&&0<o))||a&&(!p||p&&(n.scrollLeft>=l&&l<0||n.scrollLeft<=0&&0<l)))&&e(t,n.parentNode,r,o)}(t,e.target,r,o))&&e.preventDefault()}},n.transitionEnd=function(e){var t=e.target;d(t,h,n.transitionEnd),t.style.transition=""},n.onKeyDown=function(e){if(e.keyCode===u.a.ESC){var t=n.props.onClose;e.stopPropagation(),t&&t(e)}},n.onWrapperTransitionEnd=function(e){var t=n.props,r=t.open,o=t.afterVisibleChange;e.target===n.contentWrapper&&e.propertyName.match(/transform$/)&&(n.dom.style.transition="",!r&&n.getCurrentDrawerSome()&&(document.body.style.overflowX="",n.maskDom&&(n.maskDom.style.left="",n.maskDom.style.width="")),o&&o(!!r))},n.openLevelTransition=function(){var e=n.props,t=e.open,r=e.width,o=e.height,i=n.getHorizontalBoolAndPlacementName(),a=i.isHorizontal,s=i.placementName,l=n.contentDom?n.contentDom.getBoundingClientRect()[a?"width":"height"]:0,u=(a?r:o)||l;n.setLevelAndScrolling(t,s,u)},n.setLevelTransform=function(e,t,r,o){var i=n.props,a=i.placement,s=i.levelMove,l=i.duration,u=i.ease,c=i.showMask;n.levelDom.forEach((function(i){i.style.transition="transform ".concat(l," ").concat(u),p(i,h,n.transitionEnd);var f,d,m=e?r:0;if(s){var y=(d="function"==typeof(f=s)?f({target:i,open:e}):f,Array.isArray(d)?2===d.length?d:[d[0],d[1]]:[d]);m=e?y[0]:y[1]||0}var v="number"==typeof m?"".concat(m,"px"):m,g="left"===a||"top"===a?v:"-".concat(v);g=c&&"right"===a&&o?"calc(".concat(g," + ").concat(o,"px)"):g,i.style.transform=m?"".concat(t,"(").concat(g,")"):""}))},n.setLevelAndScrolling=function(e,t,r){var o=n.props.onChange;if(!y){var i=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(l.a)(!0):0;n.setLevelTransform(e,t,r,i),n.toggleScrollingToDrawerAndBody(i)}o&&o(e)},n.toggleScrollingToDrawerAndBody=function(e){var t=n.props,r=t.getOpenCount,o=t.getContainer,i=t.showMask,a=t.open,s=o&&o(),l=r&&r();if(s&&s.parentNode===document.body&&i){var u=["touchstart"],c=[document.body,n.maskDom,n.handlerDom,n.contentDom];a&&"hidden"!==document.body.style.overflow?(e&&n.addScrollingEffect(e),1===l&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",c.forEach((function(e,t){e&&p(e,u[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)}))):n.getCurrentDrawerSome()&&(l||(document.body.style.overflow=""),document.body.style.touchAction="",e&&n.remScrollingEffect(e),c.forEach((function(e,t){e&&d(e,u[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)})))}},n.addScrollingEffect=function(e){var t=n.props,r=t.placement,o=t.duration,i=t.ease,a=t.getOpenCount,s=t.switchScrollingEffect;1===(a&&a())&&s();var l="width ".concat(o," ").concat(i),u="transform ".concat(o," ").concat(i);switch(n.dom.style.transition="none",r){case"right":n.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":n.dom.style.width="calc(100% - ".concat(e,"px)"),n.dom.style.transform="translateZ(0)"}clearTimeout(n.timeout),n.timeout=setTimeout((function(){n.dom&&(n.dom.style.transition="".concat(u,",").concat(l),n.dom.style.width="",n.dom.style.transform="")}))},n.remScrollingEffect=function(e){var t,r=n.props,o=r.placement,i=r.duration,a=r.ease,s=r.getOpenCount,l=r.switchScrollingEffect;s&&s()||l(!0),f&&(document.body.style.overflowX="hidden"),n.dom.style.transition="none";var u="width ".concat(i," ").concat(a),c="transform ".concat(i," ").concat(a);switch(o){case"left":n.dom.style.width="100%",u="width 0s ".concat(a," ").concat(i);break;case"right":n.dom.style.transform="translateX(".concat(e,"px)"),n.dom.style.width="100%",u="width 0s ".concat(a," ").concat(i),n.maskDom&&(n.maskDom.style.left="-".concat(e,"px"),n.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":n.dom.style.width="calc(100% + ".concat(e,"px)"),n.dom.style.height="100%",n.dom.style.transform="translateZ(0)",t="height 0s ".concat(a," ").concat(i)}clearTimeout(n.timeout),n.timeout=setTimeout((function(){n.dom&&(n.dom.style.transition="".concat(c,",").concat(t?"".concat(t,","):"").concat(u),n.dom.style.transform="",n.dom.style.width="",n.dom.style.height="")}))},n.getCurrentDrawerSome=function(){return!Object.keys(E).some((function(e){return E[e]}))},n.getLevelDom=function(e){var t=e.level,r=e.getContainer;if(!y){var o,i=r&&r(),a=i?i.parentNode:null;n.levelDom=[],"all"===t?(a?Array.prototype.slice.call(a.children):[]).forEach((function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==i&&n.levelDom.push(e)})):t&&(o=t,(Array.isArray(o)?o:[o]).forEach((function(e){document.querySelectorAll(e).forEach((function(e){n.levelDom.push(e)}))})))}},n.getHorizontalBoolAndPlacementName=function(){var e=n.props.placement,t="left"===e||"right"===e;return{isHorizontal:t,placementName:"translate".concat(t?"X":"Y")}},n.state={_self:x(n)},n}var t,n,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(e,r.Component),t=e,o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,o={prevProps:e};if(void 0!==n){var i=e.placement,a=e.level;i!==n.placement&&(r.contentDom=null),a!==n.level&&r.getLevelDom(e)}return o}}],(n=[{key:"componentDidMount",value:function(){var e=this;if(!y){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(e){}this.passive=!!t&&{passive:!1}}var n=this.props.open;this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),n&&(E[this.drawerId]=n,this.openLevelTransition(),this.forceUpdate((function(){e.domFocus()})))}},{key:"componentDidUpdate",value:function(e){var t=this.props.open;t!==e.open&&(t&&this.domFocus(),E[this.drawerId]=!!t,this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.getOpenCount,n=e.open,r=e.switchScrollingEffect,o="function"==typeof t&&t();delete E[this.drawerId],n&&(this.setLevelTransform(!1),document.body.style.touchAction=""),o||r(!(document.body.style.overflow=""))}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.className,i=n.children,a=n.style,l=n.width,u=n.height,c=(n.defaultOpen,n.open),f=n.prefixCls,h=n.placement,p=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),d=(n.onChange,n.afterVisibleChange,n.showMask),y=n.maskClosable,v=n.maskStyle,b=n.onClose,w=n.onHandleClick,x=n.keyboard,_=(n.getOpenCount,n.switchScrollingEffect,function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(n,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"])),E=!!this.dom&&c,k=s()(f,(g(e={},"".concat(f,"-").concat(h),!0),g(e,"".concat(f,"-open"),E),g(e,o||"",!!o),g(e,"no-mask",!d),e)),O=this.getHorizontalBoolAndPlacementName().placementName,S="left"===h||"top"===h?"-100%":"100%",N=E?"":"".concat(O,"(").concat(S,")"),A=p&&r.cloneElement(p,{onClick:function(e){p.props.onClick&&p.props.onClick(),w&&w(e)},ref:function(e){t.handlerDom=e}});return r.createElement("div",Object.assign({},_,{tabIndex:-1,className:k,style:a,ref:function(e){t.dom=e},onKeyDown:E&&x?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),d&&r.createElement("div",{className:"".concat(f,"-mask"),onClick:y?b:void 0,style:v,ref:function(e){t.maskDom=e}}),r.createElement("div",{className:"".concat(f,"-content-wrapper"),style:{transform:N,msTransform:N,width:m(l)?"".concat(l,"px"):l,height:m(u)?"".concat(u,"px"):u},ref:function(e){t.contentWrapper=e}},r.createElement("div",{className:"".concat(f,"-content"),ref:function(e){t.contentDom=e},onTouchStart:E&&d?this.removeStartHandler:void 0,onTouchMove:E&&d?this.removeMoveHandler:void 0},i),A))}}])&&b(t.prototype,n),o&&b(t,o),e}();k.defaultProps={switchScrollingEffect:function(){}};var O=Object(i.polyfill)(k);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var M=function(){function e(t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0!==e)return e;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(e):t}(this,C(e).call(this,t))).onHandleClick=function(e){var t=n.props,r=t.onHandleClick,o=t.open;if(r&&r(e),void 0===o){var i=n.state.open;n.setState({open:!i})}},n.onClose=function(e){var t=n.props,r=t.onClose,o=t.open;r&&r(e),void 0===o&&n.setState({open:!1})};var r=void 0!==t.open?t.open:!!t.defaultOpen;return n.state={open:r},n}var t,n,i;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&q(e,t)}(e,r.Component),t=e,i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r={prevProps:e};return void 0!==n&&e.open!==n.open&&(r.open=e.open),r}}],(n=[{key:"render",value:function(){var e=this,t=this.props,n=(t.defaultOpen,t.getContainer),i=t.wrapperClassName,a=t.forceRender,s=t.handler,l=N(t,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),u=this.state.open;if(!n)return r.createElement("div",{className:i,ref:function(t){e.dom=t}},r.createElement(O,Object.assign({},l,{open:u,handler:s,getContainer:function(){return e.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var c=!!s||a;return r.createElement(o.a,{visible:u,forceRender:c,getContainer:n,wrapperClassName:i},(function(t){var n=t.visible,o=t.afterClose,i=N(t,["visible","afterClose"]);return r.createElement(O,Object.assign({},l,i,{open:void 0!==n?n:u,afterVisibleChange:void 0!==o?o:l.afterVisibleChange,handler:s,onClose:e.onClose,onHandleClick:e.onHandleClick}))}))}}])&&A(t.prototype,n),i&&A(t,i),e}();M.defaultProps={prefixCls:"drawer",placement:"left",getContainer:"body",defaultOpen:!1,level:"all",duration:".3s",ease:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",onChange:function(){},afterVisibleChange:function(){},handler:r.createElement("div",{className:"drawer-handle"},r.createElement("i",{className:"drawer-handle-icon"})),showMask:!0,maskClosable:!0,maskStyle:{},wrapperClassName:"",className:"",keyboard:!0,forceRender:!1};var j=Object(i.polyfill)(M),T=n(169),P=n.n(T),I=n(33),R=n(27),B=n(18),L=n(77),D=n(51);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function z(){return(z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var W=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},K=P()(null),G=(Object(D.a)("top","right","bottom","left"),function(){function e(){var t,n,o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n=this,o=V(e).apply(this,arguments),(t=!o||"object"!==F(o)&&"function"!=typeof o?H(n):o).state={push:!1},t.push=function(){t.setState({push:!0})},t.pull=function(){t.setState({push:!1})},t.onDestroyTransitionEnd=function(){t.getDestroyOnClose()&&(t.props.visible||(t.destroyClose=!0,t.forceUpdate()))},t.getDestroyOnClose=function(){return t.props.destroyOnClose&&!t.props.visible},t.getPushTransform=function(e){return"left"===e||"right"===e?"translateX(".concat("left"===e?180:-180,"px)"):"top"===e||"bottom"===e?"translateY(".concat("top"===e?180:-180,"px)"):void 0},t.getRcDrawerStyle=function(){var e=t.props,n=e.zIndex,r=e.placement,o=e.style;return z({zIndex:n,transform:t.state.push?t.getPushTransform(r):void 0},o)},t.renderBody=function(){var e=t.props,n=e.bodyStyle,o=e.drawerStyle,i=e.prefixCls,a=e.visible;if(t.destroyClose&&!a)return null;t.destroyClose=!1;var s={};return t.getDestroyOnClose()&&(s.opacity=0,s.transition="opacity .3s"),r.createElement("div",{className:"".concat(i,"-wrapper-body"),style:z(z({},s),o),onTransitionEnd:t.onDestroyTransitionEnd},t.renderHeader(),r.createElement("div",{className:"".concat(i,"-body"),style:n},t.props.children))},t.renderProvider=function(e){var n=t.props,o=n.prefixCls,i=n.placement,a=n.className,l=n.wrapClassName,u=n.width,c=n.height,f=n.mask,h=W(n,["prefixCls","placement","className","wrapClassName","width","height","mask"]);Object(R.a)(void 0===l,"Drawer","wrapClassName is deprecated, please use className instead.");var p=f?"":"no-mask";t.parentDrawer=e;var d={};return"left"===i||"right"===i?d.width=u:d.height=c,r.createElement(K.Provider,{value:H(t)},r.createElement(j,z({handler:!1},Object(I.default)(h,["zIndex","style","closable","destroyOnClose","drawerStyle","headerStyle","bodyStyle","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton"]),d,{prefixCls:o,open:t.props.visible,showMask:f,placement:i,style:t.getRcDrawerStyle(),className:s()(l,a,p)}),t.renderBody()))},t}var t,n;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(e,r.Component),t=e,(n=[{key:"componentDidMount",value:function(){this.props.visible&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(e){var t=this.props.visible;e.visible!==t&&this.parentDrawer&&(t?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"renderHeader",value:function(){var e=this.props,t=e.title,n=e.prefixCls,o=e.closable,i=e.headerStyle;if(!t&&!o)return null;var a="".concat(n,t?"-header":"-header-no-title");return r.createElement("div",{className:a,style:i},t&&r.createElement("div",{className:"".concat(n,"-title")},t),o&&this.renderCloseIcon())}},{key:"renderCloseIcon",value:function(){var e=this.props,t=e.closable,n=e.prefixCls,o=e.onClose;return t&&r.createElement("button",{onClick:o,"aria-label":"Close",className:"".concat(n,"-close")},r.createElement(B.a,{type:"close"}))}},{key:"render",value:function(){return r.createElement(K.Consumer,null,this.renderProvider)}}])&&U(t.prototype,n),e}());G.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0},t.a=Object(L.c)({prefixCls:"drawer"})(G)},981:function(e,t,n){}}]); |