!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).cheerio=t()}}(function(){return function(){return function t(e,n,r){function i(s,a){if(!n[s]){if(!e[s]){var c="function"==typeof require&&require;if(!a&&c)return c(s,!0);if(o)return o(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u}var l=n[s]={exports:{}};e[s][0].call(l.exports,function(t){return i(e[s][1][t]||t)},l,l.exports,t,e,n,r)}return n[s].exports}for(var o="function"==typeof require&&require,s=0;s0?r-4:r,h=0;h>16&255,a[c++]=e>>8&255,a[c++]=255&e;2===s&&(e=i[t.charCodeAt(h)]<<2|i[t.charCodeAt(h+1)]>>4,a[c++]=255&e);1===s&&(e=i[t.charCodeAt(h)]<<10|i[t.charCodeAt(h+1)]<<4|i[t.charCodeAt(h+2)]>>2,a[c++]=e>>8&255,a[c++]=255&e);return a},n.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],s=0,a=n-i;sa?a:s+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,s=[],a=e;a>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},{}],2:[function(t,e,n){},{}],3:[function(t,e,n){"use strict";var r=t("base64-js"),i=t("ieee754");n.Buffer=a,n.SlowBuffer=function(t){+t!=t&&(t=0);return a.alloc(+t)},n.INSPECT_MAX_BYTES=50;var o=2147483647;function s(t){if(t>o)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return e.__proto__=a.prototype,e}function a(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return l(t)}return c(t,e,n)}function c(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!a.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|f(t,e),r=s(n),i=r.write(t,e);i!==n&&(r=r.slice(0,i));return r}(t,e);if(ArrayBuffer.isView(t))return h(t);if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(U(t,ArrayBuffer)||t&&U(t.buffer,ArrayBuffer))return function(t,e,n){if(e<0||t.byteLength=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|t}function f(t,e){if(a.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||U(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return j(t).length;default:if(i)return r?-1:H(t).length;e=(""+e).toLowerCase(),i=!0}}function _(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function d(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),F(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){var o,s=1,a=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(i){var l=-1;for(o=n;oa&&(n=a-c),o=n;o>=0;o--){for(var h=!0,p=0;pi&&(r=i):r=i;var o=e.length;r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function v(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:u>223?3:u>191?2:1;if(i+h<=n)switch(h){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=t[i+1],s=t[i+2],128==(192&o)&&128==(192&s)&&(c=(15&u)<<12|(63&o)<<6|63&s)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[i+1],s=t[i+2],a=t[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(c=(15&u)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(l=c)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=N)return String.fromCharCode.apply(String,t);var n="",r=0;for(;rthis.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return C(this,e,n);case"latin1":case"binary":return O(this,e,n);case"base64":return v(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(t){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===a.compare(this,t)},a.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return t=this.toString("hex",0,e).replace(/(.{2})/g,"$1 ").trim(),this.length>e&&(t+=" ... "),""},a.prototype.compare=function(t,e,n,r,i){if(U(t,Uint8Array)&&(t=a.from(t,t.offset,t.byteLength)),!a.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0),c=Math.min(o,s),u=this.slice(r,i),l=t.slice(e,n),h=0;h>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return T(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return g(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return y(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return b(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var N=4096;function C(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function R(t,e,n,r,i,o){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function x(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function k(t,e,n,r,o){return e=+e,n>>>=0,o||x(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function w(t,e,n,r,o){return e=+e,n>>>=0,o||x(t,0,n,8),i.write(t,e,n,r,52,8),n+8}a.prototype.slice=function(t,e){var n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},a.prototype.readUInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return t>>>=0,e||I(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},a.prototype.readUInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},a.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},a.prototype.readInt8=function(t,e){return t>>>=0,e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},a.prototype.readInt16LE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,e){t>>>=0,e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt32LE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},a.prototype.readInt32BE=function(t,e){return t>>>=0,e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},a.prototype.readFloatLE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return t>>>=0,e||I(t,4,this.length),i.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return t>>>=0,e||I(t,8,this.length),i.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e>>>=0,n>>>=0,r)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,r)||R(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},a.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,255,0),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},a.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o>0)-a&255;return e+n},a.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);R(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},a.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},a.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},a.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},a.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},a.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||R(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},a.prototype.writeFloatLE=function(t,e,n){return k(this,t,e,!0,n)},a.prototype.writeFloatBE=function(t,e,n){return k(this,t,e,!1,n)},a.prototype.writeDoubleLE=function(t,e,n){return w(this,t,e,!0,n)},a.prototype.writeDoubleBE=function(t,e,n){return w(this,t,e,!1,n)},a.prototype.copy=function(t,e,n,r){if(!a.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return i},a.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!a.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var i=t.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(t=i)}}else"number"==typeof t&&(t&=255);if(e<0||this.length>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function j(t){return r.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(D,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function B(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function U(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function F(t){return t!=t}},{"base64-js":1,ieee754:6}],4:[function(t,e,n){(function(t){function e(t){return Object.prototype.toString.call(t)}n.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===e(t)},n.isBoolean=function(t){return"boolean"==typeof t},n.isNull=function(t){return null===t},n.isNullOrUndefined=function(t){return null==t},n.isNumber=function(t){return"number"==typeof t},n.isString=function(t){return"string"==typeof t},n.isSymbol=function(t){return"symbol"==typeof t},n.isUndefined=function(t){return void 0===t},n.isRegExp=function(t){return"[object RegExp]"===e(t)},n.isObject=function(t){return"object"==typeof t&&null!==t},n.isDate=function(t){return"[object Date]"===e(t)},n.isError=function(t){return"[object Error]"===e(t)||t instanceof Error},n.isFunction=function(t){return"function"==typeof t},n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},n.isBuffer=t.isBuffer}).call(this,{isBuffer:t("../../is-buffer/index.js")})},{"../../is-buffer/index.js":8}],5:[function(t,e,n){var r=Object.create||function(t){var e=function(){};return e.prototype=t,new e},i=Object.keys||function(t){var e=[];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.push(n);return n},o=Function.prototype.bind||function(t){var e=this;return function(){return e.apply(t,arguments)}};function s(){this._events&&Object.prototype.hasOwnProperty.call(this,"_events")||(this._events=r(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0}e.exports=s,s.EventEmitter=s,s.prototype._events=void 0,s.prototype._maxListeners=void 0;var a,c=10;try{var u={};Object.defineProperty&&Object.defineProperty(u,"x",{value:0}),a=0===u.x}catch(t){a=!1}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,n,i){var o,s,a;if("function"!=typeof n)throw new TypeError('"listener" argument must be a function');if((s=t._events)?(s.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),s=t._events),a=s[e]):(s=t._events=r(null),t._eventsCount=0),a){if("function"==typeof a?a=s[e]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),!a.warned&&(o=l(t))&&o>0&&a.length>o){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+' "'+String(e)+'" listeners added. Use emitter.setMaxListeners() to increase limit.');c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=a.length,"object"==typeof console&&console.warn&&console.warn("%s: %s",c.name,c.message)}}else a=s[e]=n,++t._eventsCount;return t}function p(){if(!this.fired)switch(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length){case 0:return this.listener.call(this.target);case 1:return this.listener.call(this.target,arguments[0]);case 2:return this.listener.call(this.target,arguments[0],arguments[1]);case 3:return this.listener.call(this.target,arguments[0],arguments[1],arguments[2]);default:for(var t=new Array(arguments.length),e=0;e1&&(e=arguments[1]),e instanceof Error)throw e;var c=new Error('Unhandled "error" event. ('+e+")");throw c.context=e,c}if(!(n=s[t]))return!1;var u="function"==typeof n;switch(r=arguments.length){case 1:!function(t,e,n){if(e)t.call(n);else for(var r=t.length,i=m(t,r),o=0;o=0;s--)if(n[s]===e||n[s].listener===e){a=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function(t,e){for(var n=e,r=n+1,i=t.length;r=0;o--)this.removeListener(t,e[o]);return this},s.prototype.listeners=function(t){return _(this,t,!0)},s.prototype.rawListeners=function(t){return _(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):d.call(t,e)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?Reflect.ownKeys(this._events):[]}},{}],6:[function(t,e,n){n.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,c=(1<>1,l=-7,h=n?i-1:0,p=n?-1:1,f=t[e+h];for(h+=p,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+h],h+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=u}return(f?-1:1)*s*Math.pow(2,o-r)},n.write=function(t,e,n,r,i,o){var s,a,c,u=8*o-i-1,l=(1<>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,_=r?1:-1,d=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?p/c:p*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*c-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=_,a/=256,i-=8);for(s=s<0;t[n+f]=255&s,f+=_,s/=256,u-=8);t[n+f-_]|=128*d}},{}],7:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],8:[function(t,e,n){function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}e.exports=function(t){return null!=t&&(r(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&r(t.slice(0,0))}(t)||!!t._isBuffer)}},{}],9:[function(t,e,n){var r={}.toString;e.exports=Array.isArray||function(t){return"[object Array]"==r.call(t)}},{}],10:[function(t,e,n){(function(t){"use strict";!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:for(o=new Array(a-1),s=0;s1)for(var n=1;n0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):y(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?y(t,s,e,!1):C(t,s)):y(t,s,e,!1))):r||(s.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=b?t=b:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function S(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(f("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?i.nextTick(N,t):N(t))}function N(t){f("emit readable"),t.emit("readable"),I(t)}function C(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(O,t,e))}function O(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var r;to.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}(t,e):function(t,e){var n=u.allocUnsafe(t),r=e.head,i=1;r.data.copy(n),t-=r.data.length;for(;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}(t,e);return r}(t,e.buffer,e.decoder),n);var n}function x(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,i.nextTick(k,e,t))}function k(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function w(t,e){for(var n=0,r=t.length;n=e.highWaterMark||e.ended))return f("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?x(this):S(this),null;if(0===(t=v(t,e))&&e.ended)return 0===e.length&&x(this),null;var r,i=e.needReadable;return f("need readable",i),(0===e.length||e.length-t0?R(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&x(this)),null!==r&&this.emit("data",r),r},g.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},g.prototype.pipe=function(t,e){var r=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,f("pipe count=%d opts=%j",o.pipesCount,e);var c=(!e||!1!==e.end)&&t!==n.stdout&&t!==n.stderr?l:g;function u(e,n){f("onunpipe"),e===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,f("cleanup"),t.removeListener("close",T),t.removeListener("finish",E),t.removeListener("drain",h),t.removeListener("error",m),t.removeListener("unpipe",u),r.removeListener("end",l),r.removeListener("end",g),r.removeListener("data",d),p=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function l(){f("onend"),t.end()}o.endEmitted?i.nextTick(c):r.once("end",c),t.on("unpipe",u);var h=function(t){return function(){var e=t._readableState;f("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,I(t))}}(r);t.on("drain",h);var p=!1;var _=!1;function d(e){f("ondata"),_=!1,!1!==t.write(e)||_||((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==w(o.pipes,t))&&!p&&(f("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++,_=!0),r.pause())}function m(e){f("onerror",e),g(),t.removeListener("error",m),0===a(t,"error")&&t.emit("error",e)}function T(){t.removeListener("finish",E),g()}function E(){f("onfinish"),t.removeListener("close",T),g()}function g(){f("unpipe"),r.unpipe(t)}return r.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",m),t.once("close",T),t.once("finish",E),t.emit("pipe",r),o.flowing||(f("pipe resume"),r.resume()),t},g.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o-1?i:o.nextTick;E.WritableState=T;var u=t("core-util-is");u.inherits=t("inherits");var l={deprecate:t("util-deprecate")},h=t("./internal/streams/stream"),p=t("safe-buffer").Buffer,f=r.Uint8Array||function(){};var _,d=t("./internal/streams/destroy");function m(){}function T(e,n){a=a||t("./_stream_duplex"),e=e||{};var r=n instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,u=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(u||0===u)?u:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===e.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,r,i){--e.pendingcb,n?(o.nextTick(i,r),o.nextTick(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),S(t,e))}(t,n,r,e,i);else{var s=b(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||y(t,n),r?c(A,t,n,s,i):A(t,n,s,i)}}(n,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function E(e){if(a=a||t("./_stream_duplex"),!(_.call(E,this)||this instanceof a))return new E(e);this._writableState=new T(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),h.call(this)}function g(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function A(t,e,n,r){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,r(),S(t,e)}function y(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,i=new Array(r),o=e.corkedRequestsFree;o.entry=n;for(var a=0,c=!0;n;)i[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;i.allBuffers=c,g(t,e,!0,e.length,i,"",o.finish),e.pendingcb++,e.lastBufferedRequest=null,o.next?(e.corkedRequestsFree=o.next,o.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;n;){var u=n.chunk,l=n.encoding,h=n.callback;if(g(t,e,!1,e.objectMode?1:u.length,u,l,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function b(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function v(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),S(t,e)})}function S(t,e){var n=b(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,o.nextTick(v,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}u.inherits(E,h),T.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(T.prototype,"buffer",{get:l.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty(E,Symbol.hasInstance,{value:function(t){return!!_.call(this,t)||this===E&&(t&&t._writableState instanceof T)}})):_=function(t){return t instanceof this},E.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},E.prototype.write=function(t,e,n){var r,i=this._writableState,s=!1,a=!i.objectMode&&(r=t,p.isBuffer(r)||r instanceof f);return a&&!p.isBuffer(t)&&(t=function(t){return p.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=i.defaultEncoding),"function"!=typeof n&&(n=m),i.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),o.nextTick(e,n)}(this,n):(a||function(t,e,n,r){var i=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),o.nextTick(r,s),i=!1),i}(this,i,t,n))&&(i.pendingcb++,s=function(t,e,n,r,i,o){if(!n){var s=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=p.from(e,n));return e}(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},E.prototype._writev=null,E.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(t,e,n){e.ending=!0,S(t,e),n&&(e.finished?o.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,r,n)},Object.defineProperty(E.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=d.destroy,E.prototype._undestroy=d.undestroy,E.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},t("timers").setImmediate)},{"./_stream_duplex":13,"./internal/streams/destroy":19,"./internal/streams/stream":20,_process:11,"core-util-is":4,inherits:7,"process-nextick-args":10,"safe-buffer":26,timers:29,"util-deprecate":30}],18:[function(t,e,n){"use strict";var r=t("safe-buffer").Buffer,i=t("util");e.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return r.alloc(0);if(1===this.length)return this.head.data;for(var e,n,i,o=r.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,n=o,i=a,e.copy(n,i),a+=s.data.length,s=s.next;return o},t}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var t=i.inspect({length:this.length});return this.constructor.name+" "+t})},{"safe-buffer":26,util:2}],19:[function(t,e,n){"use strict";var r=t("process-nextick-args");function i(t,e){t.emit("error",e)}e.exports={destroy:function(t,e){var n=this,o=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return o||s?(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,t),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(r.nextTick(i,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},{"process-nextick-args":10}],20:[function(t,e,n){e.exports=t("events").EventEmitter},{events:5}],21:[function(t,e,n){"use strict";var r=t("safe-buffer").Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=u,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=p,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function u(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function p(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}n.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(t.lastNeed=i-1),i;if(--r=0)return i>0&&(t.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:t.lastNeed=i-3),i;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},{"safe-buffer":26}],22:[function(t,e,n){e.exports=t("./readable").PassThrough},{"./readable":23}],23:[function(t,e,n){(n=e.exports=t("./lib/_stream_readable.js")).Stream=n,n.Readable=n,n.Writable=t("./lib/_stream_writable.js"),n.Duplex=t("./lib/_stream_duplex.js"),n.Transform=t("./lib/_stream_transform.js"),n.PassThrough=t("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":13,"./lib/_stream_passthrough.js":14,"./lib/_stream_readable.js":15,"./lib/_stream_transform.js":16,"./lib/_stream_writable.js":17}],24:[function(t,e,n){e.exports=t("./readable").Transform},{"./readable":23}],25:[function(t,e,n){e.exports=t("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":17}],26:[function(t,e,n){var r=t("buffer"),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,n),n.Buffer=s),o(i,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},{buffer:3}],27:[function(t,e,n){e.exports=i;var r=t("events").EventEmitter;function i(){r.call(this)}t("inherits")(i,r),i.Readable=t("readable-stream/readable.js"),i.Writable=t("readable-stream/writable.js"),i.Duplex=t("readable-stream/duplex.js"),i.Transform=t("readable-stream/transform.js"),i.PassThrough=t("readable-stream/passthrough.js"),i.Stream=i,i.prototype.pipe=function(t,e){var n=this;function i(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function o(){n.readable&&n.resume&&n.resume()}n.on("data",i),t.on("drain",o),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",c));var s=!1;function a(){s||(s=!0,t.end())}function c(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function u(t){if(l(),0===r.listenerCount(this,"error"))throw t}function l(){n.removeListener("data",i),t.removeListener("drain",o),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",u),t.removeListener("error",u),n.removeListener("end",l),n.removeListener("close",l),t.removeListener("close",l)}return n.on("error",u),t.on("error",u),n.on("end",l),n.on("close",l),t.on("close",l),t.emit("pipe",n),t}},{events:5,inherits:7,"readable-stream/duplex.js":12,"readable-stream/passthrough.js":22,"readable-stream/readable.js":23,"readable-stream/transform.js":24,"readable-stream/writable.js":25}],28:[function(t,e,n){arguments[4][21][0].apply(n,arguments)},{dup:21,"safe-buffer":26}],29:[function(t,e,n){(function(e,r){var i=t("process/browser.js").nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},c=0;function u(t,e){this._id=t,this._clearFn=e}n.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},n.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},n.clearTimeout=n.clearInterval=function(t){t.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},n.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},n.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},n._unrefActive=n.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n.setImmediate="function"==typeof e?e:function(t){var e=c++,r=!(arguments.length<2)&&s.call(arguments,1);return a[e]=!0,i(function(){a[e]&&(r?t.apply(null,r):t.call(null),n.clearImmediate(e))}),e},n.clearImmediate="function"==typeof r?r:function(t){delete a[t]}}).call(this,t("timers").setImmediate,t("timers").clearImmediate)},{"process/browser.js":11,timers:29}],30:[function(t,e,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(t){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(t,e){if(n("noDeprecation"))return t;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),r=!0}return t.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],31:[function(t,e,n){e.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},{}],32:[function(t,e,n){(function(e,r){var i=/%[sdj%]/g;n.format=function(t){if(!T(t)){for(var e=[],n=0;n=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),c=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(e)?r.showHidden=e:e&&n._extend(r,e),E(r.showHidden)&&(r.showHidden=!1),E(r.depth)&&(r.depth=2),E(r.colors)&&(r.colors=!1),E(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=c),l(r,t,r.depth)}function c(t,e){var n=a.styles[e];return n?"["+a.colors[n][0]+"m"+t+"["+a.colors[n][1]+"m":t}function u(t,e){return t}function l(t,e,r){if(t.customInspect&&e&&v(e.inspect)&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var i=e.inspect(r,t);return T(i)||(i=l(t,i,r)),i}var o=function(t,e){if(E(e))return t.stylize("undefined","undefined");if(T(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(m(e))return t.stylize(""+e,"number");if(_(e))return t.stylize(""+e,"boolean");if(d(e))return t.stylize("null","null")}(t,e);if(o)return o;var s=Object.keys(e),a=function(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(e)),b(e)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return h(e);if(0===s.length){if(v(e)){var c=e.name?": "+e.name:"";return t.stylize("[Function"+c+"]","special")}if(g(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(y(e))return t.stylize(Date.prototype.toString.call(e),"date");if(b(e))return h(e)}var u,A="",S=!1,N=["{","}"];(f(e)&&(S=!0,N=["[","]"]),v(e))&&(A=" [Function"+(e.name?": "+e.name:"")+"]");return g(e)&&(A=" "+RegExp.prototype.toString.call(e)),y(e)&&(A=" "+Date.prototype.toUTCString.call(e)),b(e)&&(A=" "+h(e)),0!==s.length||S&&0!=e.length?r<0?g(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special"):(t.seen.push(e),u=S?function(t,e,n,r,i){for(var o=[],s=0,a=e.length;s=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(u,A,N)):N[0]+A+N[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,r,i,o){var s,a,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),O(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=d(n)?l(t,c.value,null):l(t,c.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n")):a=t.stylize("[Circular]","special")),E(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t){return Array.isArray(t)}function _(t){return"boolean"==typeof t}function d(t){return null===t}function m(t){return"number"==typeof t}function T(t){return"string"==typeof t}function E(t){return void 0===t}function g(t){return A(t)&&"[object RegExp]"===S(t)}function A(t){return"object"==typeof t&&null!==t}function y(t){return A(t)&&"[object Date]"===S(t)}function b(t){return A(t)&&("[object Error]"===S(t)||t instanceof Error)}function v(t){return"function"==typeof t}function S(t){return Object.prototype.toString.call(t)}function N(t){return t<10?"0"+t.toString(10):t.toString(10)}n.debuglog=function(t){if(E(o)&&(o=e.env.NODE_DEBUG||""),t=t.toUpperCase(),!s[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var r=e.pid;s[t]=function(){var e=n.format.apply(n,arguments);console.error("%s %d: %s",t,r,e)}}else s[t]=function(){};return s[t]},n.inspect=a,a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},n.isArray=f,n.isBoolean=_,n.isNull=d,n.isNullOrUndefined=function(t){return null==t},n.isNumber=m,n.isString=T,n.isSymbol=function(t){return"symbol"==typeof t},n.isUndefined=E,n.isRegExp=g,n.isObject=A,n.isDate=y,n.isError=b,n.isFunction=v,n.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},n.isBuffer=t("./support/isBuffer");var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function O(t,e){return Object.prototype.hasOwnProperty.call(t,e)}n.log=function(){var t,e;console.log("%s - %s",(t=new Date,e=[N(t.getHours()),N(t.getMinutes()),N(t.getSeconds())].join(":"),[t.getDate(),C[t.getMonth()],e].join(" ")),n.format.apply(n,arguments))},n.inherits=t("inherits"),n._extend=function(t,e){if(!e||!A(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./support/isBuffer":31,_process:11,inherits:7}],33:[function(t,e,n){(e.exports=t("./lib/cheerio")).version=t("./package.json").version},{"./lib/cheerio":39,"./package.json":327}],34:[function(t,e,n){var r=t("../static"),i=t("../utils"),o=i.isTag,s=i.domEach,a=Object.prototype.hasOwnProperty,c=i.camelCase,u=i.cssCase,l=/\s+/,h={forEach:t("lodash/forEach"),extend:t("lodash/assignIn"),some:t("lodash/some")},p={null:null,true:!0,false:!1},f=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,_=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,d=function(t,e){if(t&&o(t))return t.attribs||(t.attribs={}),e?a.call(t.attribs,e)?f.test(e)?e:t.attribs[e]:"option"===t.name&&"value"===e?r.text(t.children):"input"!==t.name||"radio"!==t.attribs.type&&"checkbox"!==t.attribs.type||"value"!==e?void 0:"on":t.attribs},m=function(t,e,n){null===n?A(t,e):t.attribs[e]=n+""};n.attr=function(t,e){return"object"==typeof t||void 0!==e?s(this,"function"==typeof e?function(n,r){m(r,t,e.call(r,n,r.attribs[t]))}:function(n,r){o(r)&&("object"==typeof t?h.forEach(t,function(t,e){m(r,e,t)}):m(r,t,e))}):d(this[0],t)};var T=function(t,e){if(t&&o(t))return a.call(t,e)?t[e]:f.test(e)?void 0!==d(t,e):d(t,e)},E=function(t,e,n){t[e]=f.test(e)?!!n:n};n.prop=function(t,e){var n,r=0;if("string"==typeof t&&void 0===e){switch(t){case"style":n=this.css(),h.forEach(n,function(t,e){n[r++]=e}),n.length=r;break;case"tagName":case"nodeName":n=this[0].name.toUpperCase();break;default:n=T(this[0],t)}return n}if("object"==typeof t||void 0!==e)return s(this,"function"==typeof e?function(n,r){E(r,t,e.call(r,n,T(r,t)))}:function(n,r){o(r)&&("object"==typeof t?h.forEach(t,function(t,e){E(r,e,t)}):E(r,t,e))})};var g=function(t,e){var n,r,i,o,s,l,h,f=1===arguments.length;for(f?i=(n=Object.keys(t.attribs).filter(function(t){return"data-"===t.slice(0,"data-".length)})).map(function(t){return c(t.slice("data-".length))}):(n=["data-"+u(e)],i=[e]),l=0,h=n.length;l-1;)if(n=o+t.length,(0===o||l.test(i[o-1]))&&(n===i.length||l.test(i[n])))return!0})},n.addClass=function(t){if("function"==typeof t)return s(this,function(e,r){var i=r.attribs.class||"";n.addClass.call([r],t.call(r,e,i))});if(!t||"string"!=typeof t)return this;for(var e=t.split(l),r=this.length,i=0;i=0&&(c.splice(s,1),a=!0,u--);a&&(n.attribs.class=c.join(" "))}}))},n.toggleClass=function(t,e){if("function"==typeof t)return s(this,function(r,i){n.toggleClass.call([i],t.call(i,r,i.attribs.class||"",e),e)});if(!t||"string"!=typeof t)return this;for(var r,i,a=t.split(l),c=a.length,u="boolean"==typeof e?e?1:-1:0,h=this.length,p=0;p=0&&i<0?r.push(a[f]):u<=0&&i>=0&&r.splice(i,1);this[p].attribs.class=r.join(" ")}return this},n.is=function(t){return!!t&&this.filter(t).length>0}},{"../static":42,"../utils":43,"lodash/assignIn":255,"lodash/forEach":262,"lodash/some":289}],35:[function(t,e,n){var r=t("../utils").domEach,i={pick:t("lodash/pick")},o=Object.prototype.toString;function s(t,e){var n=function(t){return(t=(t||"").trim())?t.split(";").reduce(function(t,e){var n=e.indexOf(":");return n<1||n===e.length-1?t:(t[e.slice(0,n).trim()]=e.slice(n+1).trim(),t)},{}):{}}(t.attribs.style);return"string"==typeof e?n[e]:Array.isArray(e)?i.pick(n,e):n}n.css=function(t,e){return 2===arguments.length||"[object Object]"===o.call(t)?r(this,function(n,r){!function t(e,n,r,i){if("string"==typeof n){var o=s(e);"function"==typeof r&&(r=r.call(e,i,o[n])),""===r?delete o[n]:null!=r&&(o[n]=r),e.attribs.style=(a=o,Object.keys(a||{}).reduce(function(t,e){return t+=(t?" ":"")+e+": "+a[e]+";"},""))}else"object"==typeof n&&Object.keys(n).forEach(function(r){t(e,r,n[r])});var a}(r,t,e,n)}):s(this[0],t)}},{"../utils":43,"lodash/pick":285}],36:[function(t,e,n){var r=/%20/g,i=/\r?\n/g,o={map:t("lodash/map")};n.serialize=function(){var t=this.serializeArray();return o.map(t,function(t){return encodeURIComponent(t.name)+"="+encodeURIComponent(t.value)}).join("&").replace(r,"+")},n.serializeArray=function(){var t=this.constructor;return this.map(function(){var e=t(this);return"form"===this.name?e.find("input,select,textarea,keygen").toArray():e.filter("input,select,textarea,keygen").toArray()}).filter('[name!=""]:not(:disabled):not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map(function(e,n){var r=t(n),s=r.attr("name"),a=r.val();return null==a&&(a=""),Array.isArray(a)?o.map(a,function(t){return{name:s,value:t.replace(i,"\r\n")}}):{name:s,value:a.replace(i,"\r\n")}}).get()}},{"lodash/map":280}],37:[function(t,e,n){var r=t("../parse"),i=t("../static"),o=r.update,s=r.evaluate,a=t("../utils"),c=a.domEach,u=a.cloneDom,l=a.isHtml,h=Array.prototype.slice,p={flatten:t("lodash/flatten"),bind:t("lodash/bind"),forEach:t("lodash/forEach")};n._makeDomArray=function(t,e){return null==t?[]:t.cheerio?e?u(t.get(),t.options):t.get():Array.isArray(t)?p.flatten(t.map(function(t){return this._makeDomArray(t,e)},this)):"string"==typeof t?s(t,this.options,!1):e?u([t]):[t]};var f=function(t){return function(){var e=h.call(arguments),n=this.length-1;return c(this,function(r,o){var s,a;a="function"==typeof e[0]?e[0].call(o,r,i.html(o.children)):e,s=this._makeDomArray(a,r-1&&(u.children.splice(a,1),i===u&&e>a&&l[0]--),c.root=null,c.parent=i,c.prev&&(c.prev.next=c.next||null),c.next&&(c.next.prev=c.prev||null),c.prev=r[o-1]||h,c.next=r[o+1]||p;return h&&(h.next=r[0]),p&&(p.prev=r[r.length-1]),t.splice.apply(t,l)};n.appendTo=function(t){return t.cheerio||(t=this.constructor.call(this.constructor,t,null,this._originalRoot)),t.append(this),this},n.prependTo=function(t){return t.cheerio||(t=this.constructor.call(this.constructor,t,null,this._originalRoot)),t.prepend(this),this},n.append=f(function(t,e,n){_(e,e.length,0,t,n)}),n.prepend=f(function(t,e,n){_(e,0,0,t,n)}),n.wrap=function(t){var e="function"==typeof t&&t,n=this.length-1;return p.forEach(this,p.bind(function(r,i){var s,a,c,u,h=r.parent||r.root,p=h.children;if(h){for(e&&(t=e.call(r,i)),"string"!=typeof t||l(t)||(t=this.parents().last().find(t).clone()),a=(s=this._makeDomArray(t,i=a.children.length);)"tag"===a.children[c].type?(a=a.children[c],c=0):c++;u=p.indexOf(r),o([r],a),_(p,u,0,s,h)}},this)),this},n.after=function(){var t=h.call(arguments),e=this.length-1;return c(this,function(n,r){var o=r.parent||r.root;if(o){var s,a,c=o.children,u=c.indexOf(r);u<0||(s="function"==typeof t[0]?t[0].call(r,n,i.html(r.children)):t,a=this._makeDomArray(s,n0})},n.first=function(){return this.length>1?this._make(this[0]):this},n.last=function(){return this.length>1?this._make(this[this.length-1]):this},n.eq=function(t){return 0===(t=+t)&&this.length<=1?this:(t<0&&(t=this.length+t),this[t]?this._make(this[t]):this._make([]))},n.get=function(t){return null==t?Array.prototype.slice.call(this):this[t<0?this.length+t:t]},n.index=function(t){var e,n;return 0===arguments.length?(e=this.parent().children(),n=this[0]):"string"==typeof t?(e=this._make(t),n=this[0]):(e=this,n=t.cheerio?t[0]:t),e.get().indexOf(n)},n.slice=function(){return this._make([].slice.apply(this,arguments))},n.end=function(){return this.prevObject||this._make([])},n.add=function(t,e){for(var n=this._make(t,e),r=s(n.get().concat(this.get())),i=0;i",e,!1)[0];return o.type="root",o.parent=null,n.update(i,o),o}).evaluate=function(t,e,n){var s;(r.isBuffer(t)&&(t=t.toString()),"string"==typeof t)?s=e.xmlMode||e._useHtmlParser2?i.parseDOM(t,e):function(t,e){return(e?o.parse:o.parseFragment)(t,{treeAdapter:o.treeAdapters.htmlparser2}).children}(t,n):s=t;return s},n.update=function(t,e){Array.isArray(t)||(t=[t]),e?e.children=t:e=null;for(var n=0;n)[^>]*$|#([\w\-]*)$)/;n.isHtml=function(t){if("<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3)return!0;var e=a.exec(t);return!(!e||!e[1])}},{"./parse":41,"dom-serializer":53,"lodash/assign":254}],44:[function(t,e,n){e.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},{}],45:[function(t,e,n){"use strict";e.exports=m;var r=t("./lib/pseudos.js"),i=t("domutils"),o=i.findOne,s=i.findAll,a=i.getChildren,c=i.removeSubsets,u=t("boolbase").falseFunc,l=t("./lib/compile.js"),h=l.compileUnsafe,p=l.compileToken;function f(t){return function(e,n,r){return"function"!=typeof e&&(e=h(e,r,n)),n=Array.isArray(n)?c(n):a(n),t(e,n)}}var _=f(function(t,e){return t!==u&&e&&0!==e.length?s(t,e):[]}),d=f(function(t,e){return t!==u&&e&&0!==e.length?o(t,e):null});function m(t,e,n){return _(t,e,n)}m.compile=l,m.filters=r.filters,m.pseudos=r.pseudos,m.selectAll=_,m.selectOne=d,m.is=function(t,e,n){return("function"==typeof e?e:l(e,n))(t)},m.parse=l,m.iterate=_,m._compileUnsafe=h,m._compileToken=p},{"./lib/compile.js":47,"./lib/pseudos.js":50,boolbase:44,domutils:59}],46:[function(t,e,n){var r=t("domutils"),i=r.hasAttrib,o=r.getAttributeValue,s=t("boolbase").falseFunc,a=/[-[\]{}()*+?.,\\^$|#\s]/g,c={__proto__:null,equals:function(t,e){var n=e.name,r=e.value;return e.ignoreCase?(r=r.toLowerCase(),function(e){var i=o(e,n);return null!=i&&i.toLowerCase()===r&&t(e)}):function(e){return o(e,n)===r&&t(e)}},hyphen:function(t,e){var n=e.name,r=e.value,i=r.length;return e.ignoreCase?(r=r.toLowerCase(),function(e){var s=o(e,n);return null!=s&&(s.length===i||"-"===s.charAt(i))&&s.substr(0,i).toLowerCase()===r&&t(e)}):function(e){var s=o(e,n);return null!=s&&s.substr(0,i)===r&&(s.length===i||"-"===s.charAt(i))&&t(e)}},element:function(t,e){var n=e.name,r=e.value;if(/\s/.test(r))return s;var i="(?:^|\\s)"+(r=r.replace(a,"\\$&"))+"(?:$|\\s)",c=e.ignoreCase?"i":"",u=new RegExp(i,c);return function(e){var r=o(e,n);return null!=r&&u.test(r)&&t(e)}},exists:function(t,e){var n=e.name;return function(e){return i(e,n)&&t(e)}},start:function(t,e){var n=e.name,r=e.value,i=r.length;return 0===i?s:e.ignoreCase?(r=r.toLowerCase(),function(e){var s=o(e,n);return null!=s&&s.substr(0,i).toLowerCase()===r&&t(e)}):function(e){var s=o(e,n);return null!=s&&s.substr(0,i)===r&&t(e)}},end:function(t,e){var n=e.name,r=e.value,i=-r.length;return 0===i?s:e.ignoreCase?(r=r.toLowerCase(),function(e){var s=o(e,n);return null!=s&&s.substr(i).toLowerCase()===r&&t(e)}):function(e){var s=o(e,n);return null!=s&&s.substr(i)===r&&t(e)}},any:function(t,e){var n=e.name,r=e.value;if(""===r)return s;if(e.ignoreCase){var i=new RegExp(r.replace(a,"\\$&"),"i");return function(e){var r=o(e,n);return null!=r&&i.test(r)&&t(e)}}return function(e){var i=o(e,n);return null!=i&&i.indexOf(r)>=0&&t(e)}},not:function(t,e){var n=e.name,r=e.value;return""===r?function(e){return!!o(e,n)&&t(e)}:e.ignoreCase?(r=r.toLowerCase(),function(e){var i=o(e,n);return null!=i&&i.toLowerCase()!==r&&t(e)}):function(e){return o(e,n)!==r&&t(e)}}};e.exports={compile:function(t,e,n){if(n&&n.strict&&(e.ignoreCase||"not"===e.action))throw SyntaxError("Unsupported attribute selector");return c[e.action](t,e)},rules:c}},{boolbase:44,domutils:59}],47:[function(t,e,n){e.exports=function(t,e,n){return p(f(t,e,n))},e.exports.compileUnsafe=f,e.exports.compileToken=g;var r=t("css-what"),i=t("domutils"),o=i.isTag,s=t("./general.js"),a=t("./sort.js"),c=t("boolbase"),u=c.trueFunc,l=c.falseFunc,h=t("./procedure.json");function p(t){return function(e){return o(e)&&t(e)}}function f(t,e,n){return g(r(t,e),e,n)}function _(t){return"pseudo"===t.type&&("scope"===t.name||Array.isArray(t.data)&&t.data.some(function(t){return t.some(_)}))}var d={type:"descendant"},m={type:"pseudo",name:"scope"},T={},E=i.getParent;function g(t,e,n){(t=t.filter(function(t){return t.length>0})).forEach(a);var r=Array.isArray(n);return(n=e&&e.context||n)&&!r&&(n=[n]),function(t,e){var n=!!e&&!!e.length&&e.every(function(t){return t===T||!!E(t)});t.forEach(function(t){if(t.length>0&&A(t[0])&&"descendant"!==t[0].type) ;else{if(!n||_(t))return;t.unshift(d)}t.unshift(m)})}(t,n),t.map(function(t){return function(t,e,n,r){var i=r&&"scope"===t[0].name&&"descendant"===t[1].type;return t.reduce(function(t,r,o){return t===l?t:s[r.type](t,r,e,n,i&&1===o)},e&&e.rootFunc||u)}(t,e,n,r)}).reduce(y,l)}function A(t){return h[t.type]<0}function y(t,e){return e===l||t===u?t:t===l||e===u?e:function(n){return t(n)||e(n)}}var b=t("./pseudos.js").filters,v=i.existsOne,S=(o=i.isTag,i.getChildren);function N(t){return t.some(A)}b.not=function(t,e,n,r){var i={xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict)};if(i.strict&&(e.length>1||e.some(N)))throw new SyntaxError("complex selectors in :not aren't allowed in strict mode");var o=g(e,i,r);return o===l?t:o===u?l:function(e){return!o(e)&&t(e)}},b.has=function(t,e,n){var r={xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict)},i=e.some(N)?[T]:null,s=g(e,r,i);return s===l?l:s===u?function(e){return S(e).some(o)&&t(e)}:(s=p(s),i?function(e){return t(e)&&(i[0]=e,v(s,S(e)))}:function(e){return t(e)&&v(s,S(e))})},b.matches=function(t,e,n,r){return g(e,{xmlMode:!(!n||!n.xmlMode),strict:!(!n||!n.strict),rootFunc:t},r)}},{"./general.js":48,"./procedure.json":49,"./pseudos.js":50,"./sort.js":51,boolbase:44,"css-what":52,domutils:59}],48:[function(t,e,n){var r=t("domutils"),i=r.isTag,o=r.getParent,s=r.getChildren,a=r.getSiblings,c=r.getName;e.exports={__proto__:null,attribute:t("./attributes.js").compile,pseudo:t("./pseudos.js").compile,tag:function(t,e){var n=e.name;return function(e){return c(e)===n&&t(e)}},descendant:function(t,e,n,r,i){return function(e){if(i&&t(e))return!0;for(var n=!1;!n&&(e=o(e));)n=t(e);return n}},parent:function(t,e,n){if(n&&n.strict)throw SyntaxError("Parent selector isn't part of CSS3");return function(t){return s(t).some(r)};function r(e){return i(e)&&t(e)}},child:function(t){return function(e){var n=o(e);return!!n&&t(n)}},sibling:function(t){return function(e){for(var n=a(e),r=0;r=0}},icontains:function(t,e){var n=e.toLowerCase();return function(e){return t(e)&&o(e).toLowerCase().indexOf(n)>=0}},"nth-child":function(t,e){var n=p(e);return n===m?n:n===d?E(t):function(e){for(var r=c(e),o=0,s=0;o=0;s--)if(i(r[s])){if(r[s]===e)break;o++}return n(o)&&t(e)}},"nth-of-type":function(t,e){var n=p(e);return n===m?n:n===d?E(t):function(e){for(var r=c(e),o=0,s=0;s=0;s--)if(i(r[s])){if(r[s]===e)break;l(r[s])===l(e)&&o++}return n(o)&&t(e)}},root:function(t){return function(e){return!s(e)&&t(e)}},scope:function(t,e,n,r){return r&&0!==r.length?1===r.length?function(e){return r[0]===e&&t(e)}:function(e){return r.indexOf(e)>=0&&t(e)}:g.root(t)},checkbox:T("type","checkbox"),file:T("type","file"),password:T("type","password"),radio:T("type","radio"),reset:T("type","reset"),image:T("type","image"),submit:T("type","submit")},A={empty:function(t){return!a(t).some(function(t){return i(t)||"text"===t.type})},"first-child":function(t){return function(t){for(var e=0;t&&e=0;n--){if(e[n]===t)return!0;if(i(e[n]))break}return!1},"first-of-type":function(t){for(var e=c(t),n=0;n=0;n--)if(i(e[n])){if(e[n]===t)return!0;if(l(e[n])===l(t))break}return!1},"only-of-type":function(t){for(var e=c(t),n=0,r=e.length;n1&&"scope"!==e)throw new SyntaxError("pseudo-selector :"+e+" requires an argument")}else if(1===t.length)throw new SyntaxError("pseudo-selector :"+e+" doesn't have any arguments")}var b=/^(?:(?:nth|last|first|only)-(?:child|of-type)|root|empty|(?:en|dis)abled|checked|not)$/;e.exports={compile:function(t,e,n,r){var i=e.name,o=e.data;if(n&&n.strict&&!b.test(i))throw SyntaxError(":"+i+" isn't part of CSS3");if("function"==typeof g[i])return y(g[i],i,o),g[i](t,o,n,r);if("function"==typeof A[i]){var s=A[i];return y(s,i,o),t===d?s:function(e){return s(e,o)&&t(e)}}throw new SyntaxError("unmatched pseudo-class :"+i)},filters:g,pseudos:A}},{"./attributes.js":46,boolbase:44,domutils:59,"nth-check":299}],51:[function(t,e,n){e.exports=function(t){for(var e=t.map(o),n=1;n=0&&r>=1);else if(e===r.pseudo)if(t.data)if("has"===t.name||"contains"===t.name)e=0;else if("matches"===t.name||"not"===t.name){e=0;for(var n=0;ne&&(e=s)}t.data.length>1&&e>0&&(e-=1)}else e=1;else e=3;return e}},{"./procedure.json":49}],52:[function(t,e,n){"use strict";e.exports=function(t,e){var n=[];if(""!==(t=function t(e,n,i){var p,m,T,E,g=[],A=!1;function y(){var t=n.match(r)[0];return n=n.substr(t.length),f(t)}function b(t){for(;_(n.charAt(t));)t++;n=n.substr(t)}function v(t){for(var e=0;"\\"===n.charAt(--t);)e++;return 1==(1&e)}for(b(0);""!==n;)if(_(m=n.charAt(0)))A=!0,b(1);else if(m in a)g.push({type:a[m]}),A=!1,b(1);else if(","===m){if(0===g.length)throw new SyntaxError("empty sub-selector");e.push(g),g=[],A=!1,b(1)}else if(A&&(g.length>0&&g.push({type:"descendant"}),A=!1),"*"===m)n=n.substr(1),g.push({type:"universal"});else if(m in c)n=n.substr(1),g.push({type:"attribute",name:c[m][0],action:c[m][1],value:y(),ignoreCase:!1});else if("["===m){if(n=n.substr(1),!(p=n.match(o)))throw new SyntaxError("Malformed attribute selector: "+n);n=n.substr(p[0].length),T=f(p[1]),i&&("lowerCaseAttributeNames"in i?!i.lowerCaseAttributeNames:i.xmlMode)||(T=T.toLowerCase()),g.push({type:"attribute",name:T,action:s[p[2]],value:f(p[4]||p[5]||""),ignoreCase:!!p[6]})}else if(":"===m){if(":"===n.charAt(1)){n=n.substr(2),g.push({type:"pseudo-element",name:y().toLowerCase()});continue}if(n=n.substr(1),T=y().toLowerCase(),p=null,"("===n.charAt(0))if(T in u){var S=(E=n.charAt(1))in h;if(n=n.substr(S+1),n=t(p=[],n,i),S){if(n.charAt(0)!==E)throw new SyntaxError("unmatched quotes in :"+T);n=n.substr(1)}if(")"!==n.charAt(0))throw new SyntaxError("missing closing parenthesis in :"+T+" "+n);n=n.substr(1)}else{for(var N=1,C=1;C>0&&N":"child","<":"parent","~":"sibling","+":"adjacent"},c={__proto__:null,"#":["id","equals"],".":["class","element"]},u={__proto__:null,has:!0,not:!0,matches:!0},l={__proto__:null,contains:!0,icontains:!0},h={__proto__:null,'"':!0,"'":!0};function p(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)}function f(t){return t.replace(i,p)}function _(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function d(t,e){if(t.length>0&&0===e.length)throw new SyntaxError("empty sub-selector");t.push(e)}},{}],53:[function(t,e,n){var r=t("domelementtype"),i=t("entities"),o={__proto__:null,allowfullscreen:!0,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,default:!0,defer:!0,disabled:!0,hidden:!0,ismap:!0,loop:!0,multiple:!0,muted:!0,open:!0,readonly:!0,required:!0,reversed:!0,scoped:!0,seamless:!0,selected:!0,typemustmatch:!0},s={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};var a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},c=e.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};for(var n="",i=0;i",t.children&&(n+=c(t.children,e)),a[t.name]&&!e.xmlMode||(n+="")):n+="/>",n}function l(t){return"<"+t.data+">"}function h(t,e){var n=t.data||"";return!e.decodeEntities||t.parent&&t.parent.name in s||(n=i.encodeXML(n)),n}function p(t){return""}function f(t){return"\x3c!--"+t.data+"--\x3e"}},{domelementtype:54,entities:66}],54:[function(t,e,n){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",isTag:function(t){return"tag"===t.type||"script"===t.type||"style"===t.type}}},{}],55:[function(t,e,n){e.exports={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(t){return"tag"===t.type||"script"===t.type||"style"===t.type}}},{}],56:[function(t,e,n){var r=t("domelementtype"),i=/\s+/g,o=t("./lib/node"),s=t("./lib/element");function a(t,e,n){"object"==typeof t?(n=e,e=t,t=null):"function"==typeof e&&(n=e,e=c),this._callback=t,this._options=e||c,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var c={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};a.prototype.onparserinit=function(t){this._parser=t},a.prototype.onreset=function(){a.call(this,this._callback,this._options,this._elementCB)},a.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},a.prototype._handleCallback=a.prototype.onerror=function(t){if("function"==typeof this._callback)this._callback(t,this.dom);else if(t)throw t},a.prototype.onclosetag=function(){var t=this._tagStack.pop();this._options.withEndIndices&&t&&(t.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(t)},a.prototype._createDomElement=function(t){if(!this._options.withDomLvl1)return t;var e;for(var n in e="tag"===t.type?Object.create(s):Object.create(o),t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e},a.prototype._addDomElement=function(t){var e=this._tagStack[this._tagStack.length-1],n=e?e.children:this.dom,r=n[n.length-1];t.next=null,this._options.withStartIndices&&(t.startIndex=this._parser.startIndex),this._options.withEndIndices&&(t.endIndex=this._parser.endIndex),r?(t.prev=r,r.next=t):t.prev=null,n.push(t),t.parent=e||null},a.prototype.onopentag=function(t,e){var n={type:"script"===t?r.Script:"style"===t?r.Style:r.Tag,name:t,attribs:e,children:[]},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)},a.prototype.ontext=function(t){var e,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;if(!this._tagStack.length&&this.dom.length&&(e=this.dom[this.dom.length-1]).type===r.Text)n?e.data=(e.data+t).replace(i," "):e.data+=t;else if(this._tagStack.length&&(e=this._tagStack[this._tagStack.length-1])&&(e=e.children[e.children.length-1])&&e.type===r.Text)n?e.data=(e.data+t).replace(i," "):e.data+=t;else{n&&(t=t.replace(i," "));var o=this._createDomElement({data:t,type:r.Text});this._addDomElement(o)}},a.prototype.oncomment=function(t){var e=this._tagStack[this._tagStack.length-1];if(e&&e.type===r.Comment)e.data+=t;else{var n={data:t,type:r.Comment},i=this._createDomElement(n);this._addDomElement(i),this._tagStack.push(i)}},a.prototype.oncdatastart=function(){var t={children:[{data:"",type:r.Text}],type:r.CDATA},e=this._createDomElement(t);this._addDomElement(e),this._tagStack.push(e)},a.prototype.oncommentend=a.prototype.oncdataend=function(){this._tagStack.pop()},a.prototype.onprocessinginstruction=function(t,e){var n=this._createDomElement({name:t,data:e,type:r.Directive});this._addDomElement(n)},e.exports=a},{"./lib/element":57,"./lib/node":58,domelementtype:55}],57:[function(t,e,n){var r=t("./node"),i=e.exports=Object.create(r),o={tagName:"name"};Object.keys(o).forEach(function(t){var e=o[t];Object.defineProperty(i,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})},{"./node":58}],58:[function(t,e,n){var r=e.exports={get firstChild(){var t=this.children;return t&&t[0]||null},get lastChild(){var t=this.children;return t&&t[t.length-1]||null},get nodeType(){return o[this.type]||o.element}},i={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o={element:1,text:3,cdata:4,comment:8};Object.keys(i).forEach(function(t){var e=i[t];Object.defineProperty(r,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})},{}],59:[function(t,e,n){var r=e.exports;[t("./lib/stringify"),t("./lib/traversal"),t("./lib/manipulation"),t("./lib/querying"),t("./lib/legacy"),t("./lib/helpers")].forEach(function(t){Object.keys(t).forEach(function(e){r[e]=t[e].bind(r)})})},{"./lib/helpers":60,"./lib/legacy":61,"./lib/manipulation":62,"./lib/querying":63,"./lib/stringify":64,"./lib/traversal":65}],60:[function(t,e,n){n.removeSubsets=function(t){for(var e,n,r,i=t.length;--i>-1;){for(e=n=t[i],t[i]=null,r=!0;n;){if(t.indexOf(n)>-1){r=!1,t.splice(i,1);break}n=n.parent}r&&(t[i]=e)}return t};var r=1,i=2,o=4,s=8,a=16,c=n.compareDocumentPosition=function(t,e){var n,c,u,l,h,p,f=[],_=[];if(t===e)return 0;for(n=t;n;)f.unshift(n),n=n.parent;for(n=e;n;)_.unshift(n),n=n.parent;for(p=0;f[p]===_[p];)p++;return 0===p?r:(u=(c=f[p-1]).children,l=f[p],h=_[p],u.indexOf(l)>u.indexOf(h)?c===e?o|a:o:c===t?i|s:i)};n.uniqueSort=function(t){var e,n,r=t.length;for(t=t.slice();--r>-1;)e=t[r],(n=t.indexOf(e))>-1&&n0&&(o=i(t,o,n,r),s=s.concat(o),(r-=o.length)<=0)));a++);return s}e.exports={filter:function(t,e,n,r){Array.isArray(e)||(e=[e]);"number"==typeof r&&isFinite(r)||(r=1/0);return i(t,e,!1!==n,r)},find:i,findOneChild:function(t,e){for(var n=0,r=e.length;n0&&(i=t(e,n[o].children)));return i},existsOne:function t(e,n){for(var i=0,o=n.length;i0&&t(e,n[i].children)))return!0;return!1},findAll:function t(e,n){var i=[];for(var o=0,s=n.length;o0&&(i=i.concat(t(e,n[o].children))));return i}}},{domelementtype:55}],64:[function(t,e,n){var r=t("domelementtype"),i=t("dom-serializer"),o=r.isTag;e.exports={getInnerHTML:function(t,e){return t.children?t.children.map(function(t){return i(t,e)}).join(""):""},getOuterHTML:i,getText:function t(e){if(Array.isArray(e))return e.map(t).join("");if(o(e)||e.type===r.CDATA)return t(e.children);if(e.type===r.Text)return e.data;return""}}},{"dom-serializer":53,domelementtype:55}],65:[function(t,e,n){var r=n.getChildren=function(t){return t.children},i=n.getParent=function(t){return t.parent};n.getSiblings=function(t){var e=i(t);return e?r(e):[t]},n.getAttributeValue=function(t,e){return t.attribs&&t.attribs[e]},n.hasAttrib=function(t,e){return!!t.attribs&&hasOwnProperty.call(t.attribs,e)},n.getName=function(t){return t.name}},{}],66:[function(t,e,n){var r=t("./lib/encode.js"),i=t("./lib/decode.js");n.decode=function(t,e){return(!e||e<=0?i.XML:i.HTML)(t)},n.decodeStrict=function(t,e){return(!e||e<=0?i.XML:i.HTMLStrict)(t)},n.encode=function(t,e){return(!e||e<=0?r.XML:r.HTML)(t)},n.encodeXML=r.XML,n.encodeHTML4=n.encodeHTML5=n.encodeHTML=r.HTML,n.decodeXML=n.decodeXMLStrict=i.XML,n.decodeHTML4=n.decodeHTML5=n.decodeHTML=i.HTML,n.decodeHTML4Strict=n.decodeHTML5Strict=n.decodeHTMLStrict=i.HTMLStrict,n.escape=r.escape},{"./lib/decode.js":67,"./lib/encode.js":69}],67:[function(t,e,n){var r=t("../maps/entities.json"),i=t("../maps/legacy.json"),o=t("../maps/xml.json"),s=t("./decode_codepoint.js"),a=u(o),c=u(r);function u(t){var e=Object.keys(t).join("|"),n=p(t),r=new RegExp("&(?:"+(e+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(t){return String(t).replace(r,n)}}var l=function(){for(var t=Object.keys(i).sort(h),e=Object.keys(r).sort(h),n=0,o=0;n=55296&&t<=57343||t>1114111)return"�";t in r&&(t=r[t]);var e="";t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t);return e+=String.fromCharCode(t)}},{"../maps/decode.json":70}],69:[function(t,e,n){var r=a(t("../maps/xml.json")),i=c(r);n.XML=f(r,i);var o=a(t("../maps/entities.json")),s=c(o);function a(t){return Object.keys(t).sort().reduce(function(e,n){return e[t[n]]="&"+n+";",e},{})}function c(t){var e=[],n=[];return Object.keys(t).forEach(function(t){1===t.length?e.push("\\"+t):n.push(t)}),n.unshift("["+e.join("")+"]"),new RegExp(n.join("|"),"g")}n.HTML=f(o,s);var u=/[^\0-\x7F]/g,l=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;function h(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"}function p(t){return"&#x"+(1024*(t.charCodeAt(0)-55296)+t.charCodeAt(1)-56320+65536).toString(16).toUpperCase()+";"}function f(t,e){function n(e){return t[e]}return function(t){return t.replace(e,n).replace(l,p).replace(u,h)}}var _=c(r);n.escape=function(t){return t.replace(_,h).replace(l,p).replace(u,h)}},{"../maps/entities.json":71,"../maps/xml.json":73}],70:[function(t,e,n){e.exports={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}},{}],71:[function(t,e,n){e.exports={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"⁡",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"⁣",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"​",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},{}],72:[function(t,e,n){e.exports={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",amp:"&",AMP:"&",Aring:"Å",aring:"å",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",brvbar:"¦",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",iquest:"¿",Iuml:"Ï",iuml:"ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",Ntilde:"Ñ",ntilde:"ñ",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",Ograve:"Ò",ograve:"ò",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",Ouml:"Ö",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",THORN:"Þ",thorn:"þ",times:"×",Uacute:"Ú",uacute:"ú",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",Uuml:"Ü",uuml:"ü",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ"}},{}],73:[function(t,e,n){e.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},{}],74:[function(t,e,n){function r(t){this._cbs=t||{},this.events=[]}e.exports=r;var i=t("./").EVENTS;Object.keys(i).forEach(function(t){if(0===i[t])t="on"+t,r.prototype[t]=function(){this.events.push([t]),this._cbs[t]&&this._cbs[t]()};else if(1===i[t])t="on"+t,r.prototype[t]=function(e){this.events.push([t,e]),this._cbs[t]&&this._cbs[t](e)};else{if(2!==i[t])throw Error("wrong number of arguments");t="on"+t,r.prototype[t]=function(e,n){this.events.push([t,e,n]),this._cbs[t]&&this._cbs[t](e,n)}}}),r.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},r.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var t=0,e=this.events.length;t0;this._cbs.onclosetag(this._stack[--t]));this._cbs.onend&&this._cbs.onend()},l.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},l.prototype.parseComplete=function(t){this.reset(),this.end(t)},l.prototype.write=function(t){this._tokenizer.write(t)},l.prototype.end=function(t){this._tokenizer.end(t)},l.prototype.pause=function(){this._tokenizer.pause()},l.prototype.resume=function(){this._tokenizer.resume()},l.prototype.parseChunk=l.prototype.write,l.prototype.done=l.prototype.end,e.exports=l},{"./Tokenizer.js":79,events:5,inherits:82}],77:[function(t,e,n){function r(t){this._cbs=t||{}}e.exports=r;var i=t("./").EVENTS;Object.keys(i).forEach(function(t){if(0===i[t])t="on"+t,r.prototype[t]=function(){this._cbs[t]&&this._cbs[t]()};else if(1===i[t])t="on"+t,r.prototype[t]=function(e){this._cbs[t]&&this._cbs[t](e)};else{if(2!==i[t])throw Error("wrong number of arguments");t="on"+t,r.prototype[t]=function(e,n){this._cbs[t]&&this._cbs[t](e,n)}}})},{"./":81}],78:[function(t,e,n){e.exports=i;var r=t("./WritableStream.js");function i(t){r.call(this,new o(this),t)}function o(t){this.scope=t}t("inherits")(i,r),i.prototype.readable=!0;var s=t("../").EVENTS;Object.keys(s).forEach(function(t){if(0===s[t])o.prototype["on"+t]=function(){this.scope.emit(t)};else if(1===s[t])o.prototype["on"+t]=function(e){this.scope.emit(t,e)};else{if(2!==s[t])throw Error("wrong number of arguments!");o.prototype["on"+t]=function(e,n){this.scope.emit(t,e,n)}}})},{"../":81,"./WritableStream.js":80,inherits:82}],79:[function(t,e,n){e.exports=mt;var r=t("entities/lib/decode_codepoint.js"),i=t("entities/maps/entities.json"),o=t("entities/maps/legacy.json"),s=t("entities/maps/xml.json"),a=0,c=a++,u=a++,l=a++,h=a++,p=a++,f=a++,_=a++,d=a++,m=a++,T=a++,E=a++,g=a++,A=a++,y=a++,b=a++,v=a++,S=a++,N=a++,C=a++,O=a++,L=a++,M=a++,I=a++,R=a++,x=a++,k=a++,w=a++,D=a++,P=a++,H=a++,j=a++,B=a++,U=a++,F=a++,G=a++,K=a++,q=a++,z=a++,Y=a++,W=a++,V=a++,$=a++,X=a++,Q=a++,J=a++,Z=a++,tt=a++,et=a++,nt=a++,rt=a++,it=a++,ot=a++,st=a++,at=a++,ct=a++,ut=0,lt=ut++,ht=ut++,pt=ut++;function ft(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function _t(t,e,n){var r=t.toLowerCase();return t===r?function(t){t===r?this._state=e:(this._state=n,this._index--)}:function(i){i===r||i===t?this._state=e:(this._state=n,this._index--)}}function dt(t,e){var n=t.toLowerCase();return function(r){r===n||r===t?this._state=e:(this._state=l,this._index--)}}function mt(t,e){this._state=c,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=c,this._special=lt,this._cbs=e,this._running=!0,this._ended=!1,this._xmlMode=!(!t||!t.xmlMode),this._decodeEntities=!(!t||!t.decodeEntities)}mt.prototype._stateText=function(t){"<"===t?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=u,this._sectionStart=this._index):this._decodeEntities&&this._special===lt&&"&"===t&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=c,this._state=it,this._sectionStart=this._index)},mt.prototype._stateBeforeTagName=function(t){"/"===t?this._state=p:"<"===t?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):">"===t||this._special!==lt||ft(t)?this._state=c:"!"===t?(this._state=b,this._sectionStart=this._index+1):"?"===t?(this._state=S,this._sectionStart=this._index+1):(this._state=this._xmlMode||"s"!==t&&"S"!==t?l:j,this._sectionStart=this._index)},mt.prototype._stateInTagName=function(t){("/"===t||">"===t||ft(t))&&(this._emitToken("onopentagname"),this._state=d,this._index--)},mt.prototype._stateBeforeCloseingTagName=function(t){ft(t)||(">"===t?this._state=c:this._special!==lt?"s"===t||"S"===t?this._state=B:(this._state=c,this._index--):(this._state=f,this._sectionStart=this._index))},mt.prototype._stateInCloseingTagName=function(t){(">"===t||ft(t))&&(this._emitToken("onclosetag"),this._state=_,this._index--)},mt.prototype._stateAfterCloseingTagName=function(t){">"===t&&(this._state=c,this._sectionStart=this._index+1)},mt.prototype._stateBeforeAttributeName=function(t){">"===t?(this._cbs.onopentagend(),this._state=c,this._sectionStart=this._index+1):"/"===t?this._state=h:ft(t)||(this._state=m,this._sectionStart=this._index)},mt.prototype._stateInSelfClosingTag=function(t){">"===t?(this._cbs.onselfclosingtag(),this._state=c,this._sectionStart=this._index+1):ft(t)||(this._state=d,this._index--)},mt.prototype._stateInAttributeName=function(t){("="===t||"/"===t||">"===t||ft(t))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=T,this._index--)},mt.prototype._stateAfterAttributeName=function(t){"="===t?this._state=E:"/"===t||">"===t?(this._cbs.onattribend(),this._state=d,this._index--):ft(t)||(this._cbs.onattribend(),this._state=m,this._sectionStart=this._index)},mt.prototype._stateBeforeAttributeValue=function(t){'"'===t?(this._state=g,this._sectionStart=this._index+1):"'"===t?(this._state=A,this._sectionStart=this._index+1):ft(t)||(this._state=y,this._sectionStart=this._index,this._index--)},mt.prototype._stateInAttributeValueDoubleQuotes=function(t){'"'===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=d):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=it,this._sectionStart=this._index)},mt.prototype._stateInAttributeValueSingleQuotes=function(t){"'"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=d):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=it,this._sectionStart=this._index)},mt.prototype._stateInAttributeValueNoQuotes=function(t){ft(t)||">"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=d,this._index--):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=it,this._sectionStart=this._index)},mt.prototype._stateBeforeDeclaration=function(t){this._state="["===t?M:"-"===t?N:v},mt.prototype._stateInDeclaration=function(t){">"===t&&(this._cbs.ondeclaration(this._getSection()),this._state=c,this._sectionStart=this._index+1)},mt.prototype._stateInProcessingInstruction=function(t){">"===t&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=c,this._sectionStart=this._index+1)},mt.prototype._stateBeforeComment=function(t){"-"===t?(this._state=C,this._sectionStart=this._index+1):this._state=v},mt.prototype._stateInComment=function(t){"-"===t&&(this._state=O)},mt.prototype._stateAfterComment1=function(t){this._state="-"===t?L:C},mt.prototype._stateAfterComment2=function(t){">"===t?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=c,this._sectionStart=this._index+1):"-"!==t&&(this._state=C)},mt.prototype._stateBeforeCdata1=_t("C",I,v),mt.prototype._stateBeforeCdata2=_t("D",R,v),mt.prototype._stateBeforeCdata3=_t("A",x,v),mt.prototype._stateBeforeCdata4=_t("T",k,v),mt.prototype._stateBeforeCdata5=_t("A",w,v),mt.prototype._stateBeforeCdata6=function(t){"["===t?(this._state=D,this._sectionStart=this._index+1):(this._state=v,this._index--)},mt.prototype._stateInCdata=function(t){"]"===t&&(this._state=P)},mt.prototype._stateAfterCdata1=function(t){this._state="]"===t?H:D},mt.prototype._stateAfterCdata2=function(t){">"===t?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=c,this._sectionStart=this._index+1):"]"!==t&&(this._state=D)},mt.prototype._stateBeforeSpecial=function(t){"c"===t||"C"===t?this._state=U:"t"===t||"T"===t?this._state=X:(this._state=l,this._index--)},mt.prototype._stateBeforeSpecialEnd=function(t){this._special!==ht||"c"!==t&&"C"!==t?this._special!==pt||"t"!==t&&"T"!==t?this._state=c:this._state=tt:this._state=z},mt.prototype._stateBeforeScript1=dt("R",F),mt.prototype._stateBeforeScript2=dt("I",G),mt.prototype._stateBeforeScript3=dt("P",K),mt.prototype._stateBeforeScript4=dt("T",q),mt.prototype._stateBeforeScript5=function(t){("/"===t||">"===t||ft(t))&&(this._special=ht),this._state=l,this._index--},mt.prototype._stateAfterScript1=_t("R",Y,c),mt.prototype._stateAfterScript2=_t("I",W,c),mt.prototype._stateAfterScript3=_t("P",V,c),mt.prototype._stateAfterScript4=_t("T",$,c),mt.prototype._stateAfterScript5=function(t){">"===t||ft(t)?(this._special=lt,this._state=f,this._sectionStart=this._index-6,this._index--):this._state=c},mt.prototype._stateBeforeStyle1=dt("Y",Q),mt.prototype._stateBeforeStyle2=dt("L",J),mt.prototype._stateBeforeStyle3=dt("E",Z),mt.prototype._stateBeforeStyle4=function(t){("/"===t||">"===t||ft(t))&&(this._special=pt),this._state=l,this._index--},mt.prototype._stateAfterStyle1=_t("Y",et,c),mt.prototype._stateAfterStyle2=_t("L",nt,c),mt.prototype._stateAfterStyle3=_t("E",rt,c),mt.prototype._stateAfterStyle4=function(t){">"===t||ft(t)?(this._special=lt,this._state=f,this._sectionStart=this._index-5,this._index--):this._state=c},mt.prototype._stateBeforeEntity=_t("#",ot,st),mt.prototype._stateBeforeNumericEntity=_t("X",ct,at),mt.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+16&&(e=6);e>=2;){var n=this._buffer.substr(t,e);if(o.hasOwnProperty(n))return this._emitPartial(o[n]),void(this._sectionStart+=e+1);e--}},mt.prototype._stateInNamedEntity=function(t){";"===t?(this._parseNamedEntityStrict(),this._sectionStart+1"z")&&(t<"A"||t>"Z")&&(t<"0"||t>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==c?"="!==t&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},mt.prototype._decodeNumericEntity=function(t,e){var n=this._sectionStart+t;if(n!==this._index){var i=this._buffer.substring(n,this._index),o=parseInt(i,e);this._emitPartial(r(o)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},mt.prototype._stateInNumericEntity=function(t){";"===t?(this._decodeNumericEntity(2,10),this._sectionStart++):(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},mt.prototype._stateInHexEntity=function(t){";"===t?(this._decodeNumericEntity(3,16),this._sectionStart++):(t<"a"||t>"f")&&(t<"A"||t>"F")&&(t<"0"||t>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},mt.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===c?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},mt.prototype.write=function(t){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=t,this._parse()},mt.prototype._parse=function(){for(;this._index-1}},{"./_baseIndexOf":121}],101:[function(t,e,n){var r=t("./_baseTimes"),i=t("./isArguments"),o=t("./isArray"),s=t("./isBuffer"),a=t("./_isIndex"),c=t("./isTypedArray"),u=Object.prototype.hasOwnProperty;e.exports=function(t,e){var n=o(t),l=!n&&i(t),h=!n&&!l&&s(t),p=!n&&!l&&!h&&c(t),f=n||l||h||p,_=f?r(t.length,String):[],d=_.length;for(var m in t)!e&&!u.call(t,m)||f&&("length"==m||h&&("offset"==m||"parent"==m)||p&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,d))||_.push(m);return _}},{"./_baseTimes":148,"./_isIndex":201,"./isArguments":266,"./isArray":267,"./isBuffer":270,"./isTypedArray":277}],102:[function(t,e,n){e.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n0&&o(l)?n>1?t(l,n-1,o,s,a):r(a,l):s||(a[a.length]=l)}return a}},{"./_arrayPush":103,"./_isFlattenable":200}],115:[function(t,e,n){var r=t("./_createBaseFor")();e.exports=r},{"./_createBaseFor":165}],116:[function(t,e,n){var r=t("./_baseFor"),i=t("./keys");e.exports=function(t,e){return t&&r(t,e,i)}},{"./_baseFor":115,"./keys":278}],117:[function(t,e,n){var r=t("./_castPath"),i=t("./_toKey");e.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(s=t.length>3&&"function"==typeof s?(o--,s):void 0,a&&i(n[0],n[1],a)&&(s=o<3?void 0:s,o=1),e=Object(e);++r1&&_.reverse(),C&&Sp))return!1;var _=l.get(t);if(_&&l.get(e))return _==e;var d=-1,m=!0,T=n&a?new r:void 0;for(l.set(t,e),l.set(e,t);++d1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(r,"{\n/* [wrapped with "+e+"] */\n")}},{}],200:[function(t,e,n){var r=t("./_Symbol"),i=t("./isArguments"),o=t("./isArray"),s=r?r.isConcatSpreadable:void 0;e.exports=function(t){return o(t)||i(t)||!!(s&&t&&t[s])}},{"./_Symbol":94,"./isArguments":266,"./isArray":267}],201:[function(t,e,n){var r=9007199254740991,i=/^(?:0|[1-9]\d*)$/;e.exports=function(t,e){var n=typeof t;return!!(e=null==e?r:e)&&("number"==n||"symbol"!=n&&i.test(t))&&t>-1&&t%1==0&&t-1}},{"./_assocIndexOf":108}],213:[function(t,e,n){var r=t("./_assocIndexOf");e.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},{"./_assocIndexOf":108}],214:[function(t,e,n){var r=t("./_Hash"),i=t("./_ListCache"),o=t("./_Map");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},{"./_Hash":84,"./_ListCache":86,"./_Map":88}],215:[function(t,e,n){var r=t("./_getMapData");e.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},{"./_getMapData":183}],216:[function(t,e,n){var r=t("./_getMapData");e.exports=function(t){return r(this,t).get(t)}},{"./_getMapData":183}],217:[function(t,e,n){var r=t("./_getMapData");e.exports=function(t){return r(this,t).has(t)}},{"./_getMapData":183}],218:[function(t,e,n){var r=t("./_getMapData");e.exports=function(t,e){var n=r(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this}},{"./_getMapData":183}],219:[function(t,e,n){e.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t,r){n[++e]=[r,t]}),n}},{}],220:[function(t,e,n){e.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},{}],221:[function(t,e,n){var r=t("./memoize"),i=500;e.exports=function(t){var e=r(t,function(t){return n.size===i&&n.clear(),t}),n=e.cache;return e}},{"./memoize":281}],222:[function(t,e,n){var r=t("./_composeArgs"),i=t("./_composeArgsRight"),o=t("./_replaceHolders"),s="__lodash_placeholder__",a=1,c=2,u=4,l=8,h=128,p=256,f=Math.min;e.exports=function(t,e){var n=t[1],_=e[1],d=n|_,m=d<(a|c|h),T=_==h&&n==l||_==h&&n==p&&t[7].length<=e[8]||_==(h|p)&&e[7].length<=e[8]&&n==l;if(!m&&!T)return t;_&a&&(t[2]=e[2],d|=n&a?0:u);var E=e[3];if(E){var g=t[3];t[3]=g?r(g,E,e[4]):E,t[4]=g?o(t[3],s):e[4]}return(E=e[5])&&(g=t[5],t[5]=g?i(g,E,e[6]):E,t[6]=g?o(t[5],s):e[6]),(E=e[7])&&(t[7]=E),_&h&&(t[8]=null==t[8]?e[8]:f(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=d,t}},{"./_composeArgs":157,"./_composeArgsRight":158,"./_replaceHolders":233}],223:[function(t,e,n){var r=t("./_WeakMap"),i=r&&new r;e.exports=i},{"./_WeakMap":96}],224:[function(t,e,n){var r=t("./_getNative")(Object,"create");e.exports=r},{"./_getNative":185}],225:[function(t,e,n){var r=t("./_overArg")(Object.keys,Object);e.exports=r},{"./_overArg":229}],226:[function(t,e,n){e.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},{}],227:[function(t,e,n){var r=t("./_freeGlobal"),i="object"==typeof n&&n&&!n.nodeType&&n,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,s=o&&o.exports===i&&r.process,a=function(){try{var t=o&&o.require&&o.require("util").types;return t||s&&s.binding&&s.binding("util")}catch(t){}}();e.exports=a},{"./_freeGlobal":178}],228:[function(t,e,n){var r=Object.prototype.toString;e.exports=function(t){return r.call(t)}},{}],229:[function(t,e,n){e.exports=function(t,e){return function(n){return t(e(n))}}},{}],230:[function(t,e,n){var r=t("./_apply"),i=Math.max;e.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,s=-1,a=i(o.length-e,0),c=Array(a);++s0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},{}],243:[function(t,e,n){var r=t("./_ListCache");e.exports=function(){this.__data__=new r,this.size=0}},{"./_ListCache":86}],244:[function(t,e,n){e.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},{}],245:[function(t,e,n){e.exports=function(t){return this.__data__.get(t)}},{}],246:[function(t,e,n){e.exports=function(t){return this.__data__.has(t)}},{}],247:[function(t,e,n){var r=t("./_ListCache"),i=t("./_Map"),o=t("./_MapCache"),s=200;e.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!i||a.length2?e[2]:void 0;for(u&&o(e[0],e[1],u)&&(r=1);++n-1&&t%1==0&&t<=r}},{}],273:[function(t,e,n){e.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},{}],274:[function(t,e,n){e.exports=function(t){return null!=t&&"object"==typeof t}},{}],275:[function(t,e,n){var r=t("./_baseGetTag"),i=t("./_getPrototype"),o=t("./isObjectLike"),s="[object Object]",a=Function.prototype,c=Object.prototype,u=a.toString,l=c.hasOwnProperty,h=u.call(Object);e.exports=function(t){if(!o(t)||r(t)!=s)return!1;var e=i(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==h}},{"./_baseGetTag":119,"./_getPrototype":186,"./isObjectLike":274}],276:[function(t,e,n){var r=t("./_baseGetTag"),i=t("./isObjectLike"),o="[object Symbol]";e.exports=function(t){return"symbol"==typeof t||i(t)&&r(t)==o}},{"./_baseGetTag":119,"./isObjectLike":274}],277:[function(t,e,n){var r=t("./_baseIsTypedArray"),i=t("./_baseUnary"),o=t("./_nodeUtil"),s=o&&o.isTypedArray,a=s?i(s):r;e.exports=a},{"./_baseIsTypedArray":128,"./_baseUnary":150,"./_nodeUtil":227}],278:[function(t,e,n){var r=t("./_arrayLikeKeys"),i=t("./_baseKeys"),o=t("./isArrayLike");e.exports=function(t){return o(t)?r(t):i(t)}},{"./_arrayLikeKeys":101,"./_baseKeys":130,"./isArrayLike":268}],279:[function(t,e,n){var r=t("./_arrayLikeKeys"),i=t("./_baseKeysIn"),o=t("./isArrayLike");e.exports=function(t){return o(t)?r(t,!0):i(t)}},{"./_arrayLikeKeys":101,"./_baseKeysIn":131,"./isArrayLike":268}],280:[function(t,e,n){var r=t("./_arrayMap"),i=t("./_baseIteratee"),o=t("./_baseMap"),s=t("./isArray");e.exports=function(t,e){return(s(t)?r:o)(t,i(e,3))}},{"./_arrayMap":102,"./_baseIteratee":129,"./_baseMap":133,"./isArray":267}],281:[function(t,e,n){var r=t("./_MapCache"),i="Expected a function";function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(i);var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=t.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},{"./_MapCache":89}],282:[function(t,e,n){var r=t("./_baseMerge"),i=t("./_createAssigner")(function(t,e,n){r(t,e,n)});e.exports=i},{"./_baseMerge":136,"./_createAssigner":163}],283:[function(t,e,n){var r="Expected a function";e.exports=function(t){if("function"!=typeof t)throw new TypeError(r);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},{}],284:[function(t,e,n){e.exports=function(){}},{}],285:[function(t,e,n){var r=t("./_basePick"),i=t("./_flatRest")(function(t,e){return null==t?{}:r(t,e)});e.exports=i},{"./_basePick":138,"./_flatRest":177}],286:[function(t,e,n){var r=t("./_baseProperty"),i=t("./_basePropertyDeep"),o=t("./_isKey"),s=t("./_toKey");e.exports=function(t){return o(t)?r(s(t)):i(t)}},{"./_baseProperty":140,"./_basePropertyDeep":141,"./_isKey":203,"./_toKey":250}],287:[function(t,e,n){var r=t("./_arrayReduce"),i=t("./_baseEach"),o=t("./_baseIteratee"),s=t("./_baseReduce"),a=t("./isArray");e.exports=function(t,e,n){var c=a(t)?r:s,u=arguments.length<3;return c(t,o(e,4),n,u,i)}},{"./_arrayReduce":104,"./_baseEach":111,"./_baseIteratee":129,"./_baseReduce":142,"./isArray":267}],288:[function(t,e,n){var r=t("./_arrayFilter"),i=t("./_baseFilter"),o=t("./_baseIteratee"),s=t("./isArray"),a=t("./negate");e.exports=function(t,e){return(s(t)?r:i)(t,a(o(e,3)))}},{"./_arrayFilter":99,"./_baseFilter":112,"./_baseIteratee":129,"./isArray":267,"./negate":283}],289:[function(t,e,n){var r=t("./_arraySome"),i=t("./_baseIteratee"),o=t("./_baseSome"),s=t("./isArray"),a=t("./_isIterateeCall");e.exports=function(t,e,n){var c=s(t)?r:o;return n&&a(t,e,n)&&(e=void 0),c(t,i(e,3))}},{"./_arraySome":105,"./_baseIteratee":129,"./_baseSome":147,"./_isIterateeCall":202,"./isArray":267}],290:[function(t,e,n){e.exports=function(){return[]}},{}],291:[function(t,e,n){e.exports=function(){return!1}},{}],292:[function(t,e,n){var r=t("./toNumber"),i=1/0,o=1.7976931348623157e308;e.exports=function(t){return t?(t=r(t))===i||t===-i?(t<0?-1:1)*o:t==t?t:0:0===t?t:0}},{"./toNumber":294}],293:[function(t,e,n){var r=t("./toFinite");e.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},{"./toFinite":292}],294:[function(t,e,n){var r=t("./isObject"),i=t("./isSymbol"),o=NaN,s=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,l=parseInt;e.exports=function(t){if("number"==typeof t)return t;if(i(t))return o;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=c.test(t);return n||u.test(t)?l(t.slice(2),n?2:8):a.test(t)?o:+t}},{"./isObject":273,"./isSymbol":276}],295:[function(t,e,n){var r=t("./_copyObject"),i=t("./keysIn");e.exports=function(t){return r(t,i(t))}},{"./_copyObject":160,"./keysIn":279}],296:[function(t,e,n){var r=t("./_baseToString");e.exports=function(t){return null==t?"":r(t)}},{"./_baseToString":149}],297:[function(t,e,n){var r=t("./_LazyWrapper"),i=t("./_LodashWrapper"),o=t("./_baseLodash"),s=t("./isArray"),a=t("./isObjectLike"),c=t("./_wrapperClone"),u=Object.prototype.hasOwnProperty;function l(t){if(a(t)&&!s(t)&&!(t instanceof r)){if(t instanceof i)return t;if(u.call(t,"__wrapped__"))return c(t)}return new i(t)}l.prototype=o.prototype,l.prototype.constructor=l,e.exports=l},{"./_LazyWrapper":85,"./_LodashWrapper":87,"./_baseLodash":132,"./_wrapperClone":253,"./isArray":267,"./isObjectLike":274}],298:[function(t,e,n){e.exports=function(t){var e=t[0],n=t[1]-1;if(n<0&&e<=0)return o;if(-1===e)return function(t){return t<=n};if(0===e)return function(t){return t===n};if(1===e)return n<0?i:function(t){return t>=n};var r=n%e;r<0&&(r+=e);if(e>1)return function(t){return t>=n&&t%e===r};return e*=-1,function(t){return t<=n&&t%e===r}};var r=t("boolbase"),i=r.trueFunc,o=r.falseFunc},{boolbase:44}],299:[function(t,e,n){var r=t("./parse.js"),i=t("./compile.js");e.exports=function(t){return i(r(t))},e.exports.parse=r,e.exports.compile=i},{"./compile.js":298,"./parse.js":300}],300:[function(t,e,n){e.exports=function(t){if("even"===(t=t.trim().toLowerCase()))return[2,0];if("odd"===t)return[2,1];var e,n=t.match(r);if(!n)throw new SyntaxError("n-th rule couldn't be parsed ('"+t+"')");return n[1]?(e=parseInt(n[1],10),isNaN(e)&&(e="-"===n[1].charAt(0)?-1:1)):e=0,[e,n[3]?parseInt((n[2]||"")+n[3],10):0]};var r=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/},{}],301:[function(t,e,n){"use strict";var r=t("./html").DOCUMENT_MODE,i=["+//silmaril//dtd html pro v0r11 19970101//en","-//advasoft ltd//dtd html 3.0 aswedit + extensions//en","-//as//dtd html 3.0 aswedit + extensions//en","-//ietf//dtd html 2.0 level 1//en","-//ietf//dtd html 2.0 level 2//en","-//ietf//dtd html 2.0 strict level 1//en","-//ietf//dtd html 2.0 strict level 2//en","-//ietf//dtd html 2.0 strict//en","-//ietf//dtd html 2.0//en","-//ietf//dtd html 2.1e//en","-//ietf//dtd html 3.0//en","-//ietf//dtd html 3.0//en//","-//ietf//dtd html 3.2 final//en","-//ietf//dtd html 3.2//en","-//ietf//dtd html 3//en","-//ietf//dtd html level 0//en","-//ietf//dtd html level 0//en//2.0","-//ietf//dtd html level 1//en","-//ietf//dtd html level 1//en//2.0","-//ietf//dtd html level 2//en","-//ietf//dtd html level 2//en//2.0","-//ietf//dtd html level 3//en","-//ietf//dtd html level 3//en//3.0","-//ietf//dtd html strict level 0//en","-//ietf//dtd html strict level 0//en//2.0","-//ietf//dtd html strict level 1//en","-//ietf//dtd html strict level 1//en//2.0","-//ietf//dtd html strict level 2//en","-//ietf//dtd html strict level 2//en//2.0","-//ietf//dtd html strict level 3//en","-//ietf//dtd html strict level 3//en//3.0","-//ietf//dtd html strict//en","-//ietf//dtd html strict//en//2.0","-//ietf//dtd html strict//en//3.0","-//ietf//dtd html//en","-//ietf//dtd html//en//2.0","-//ietf//dtd html//en//3.0","-//metrius//dtd metrius presentational//en","-//microsoft//dtd internet explorer 2.0 html strict//en","-//microsoft//dtd internet explorer 2.0 html//en","-//microsoft//dtd internet explorer 2.0 tables//en","-//microsoft//dtd internet explorer 3.0 html strict//en","-//microsoft//dtd internet explorer 3.0 html//en","-//microsoft//dtd internet explorer 3.0 tables//en","-//netscape comm. corp.//dtd html//en","-//netscape comm. corp.//dtd strict html//en","-//o'reilly and associates//dtd html 2.0//en","-//o'reilly and associates//dtd html extended 1.0//en","-//spyglass//dtd html 2.0 extended//en","-//sq//dtd html 2.0 hotmetal + extensions//en","-//sun microsystems corp.//dtd hotjava html//en","-//sun microsystems corp.//dtd hotjava strict html//en","-//w3c//dtd html 3 1995-03-24//en","-//w3c//dtd html 3.2 draft//en","-//w3c//dtd html 3.2 final//en","-//w3c//dtd html 3.2//en","-//w3c//dtd html 3.2s draft//en","-//w3c//dtd html 4.0 frameset//en","-//w3c//dtd html 4.0 transitional//en","-//w3c//dtd html experimental 19960712//en","-//w3c//dtd html experimental 970421//en","-//w3c//dtd w3 html//en","-//w3o//dtd w3 html 3.0//en","-//w3o//dtd w3 html 3.0//en//","-//webtechs//dtd mozilla html 2.0//en","-//webtechs//dtd mozilla html//en"],o=i.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),s=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],a=["-//W3C//DTD XHTML 1.0 Frameset//","-//W3C//DTD XHTML 1.0 Transitional//"],c=a.concat(["-//W3C//DTD HTML 4.01 Frameset//","-//W3C//DTD HTML 4.01 Transitional//"]);function u(t){var e=-1!==t.indexOf('"')?"'":'"';return e+t+e}function l(t,e){for(var n=0;n-1)return r.QUIRKS;var u=null===n?o:i;if(l(e,u))return r.QUIRKS;if(l(e,u=null===n?a:c))return r.LIMITED_QUIRKS}return r.NO_QUIRKS},n.serializeContent=function(t,e,n){var r="!DOCTYPE ";return t&&(r+=t),null!==e?r+=" PUBLIC "+u(e):null!==n&&(r+=" SYSTEM"),null!==n&&(r+=" "+u(n)),r}},{"./html":303}],302:[function(t,e,n){"use strict";var r=t("../tokenizer"),i=t("./html"),o=i.TAG_NAMES,s=i.NAMESPACES,a=i.ATTRS,c={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},u={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},l={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:s.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:s.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:s.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:s.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:s.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:s.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:s.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:s.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:s.XML},"xml:space":{prefix:"xml",name:"space",namespace:s.XML},xmlns:{prefix:"",name:"xmlns",namespace:s.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:s.XMLNS}},h=n.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},p=Object.create(null);p[o.B]=!0,p[o.BIG]=!0,p[o.BLOCKQUOTE]=!0,p[o.BODY]=!0,p[o.BR]=!0,p[o.CENTER]=!0,p[o.CODE]=!0,p[o.DD]=!0,p[o.DIV]=!0,p[o.DL]=!0,p[o.DT]=!0,p[o.EM]=!0,p[o.EMBED]=!0,p[o.H1]=!0,p[o.H2]=!0,p[o.H3]=!0,p[o.H4]=!0,p[o.H5]=!0,p[o.H6]=!0,p[o.HEAD]=!0,p[o.HR]=!0,p[o.I]=!0,p[o.IMG]=!0,p[o.LI]=!0,p[o.LISTING]=!0,p[o.MENU]=!0,p[o.META]=!0,p[o.NOBR]=!0,p[o.OL]=!0,p[o.P]=!0,p[o.PRE]=!0,p[o.RUBY]=!0,p[o.S]=!0,p[o.SMALL]=!0,p[o.SPAN]=!0,p[o.STRONG]=!0,p[o.STRIKE]=!0,p[o.SUB]=!0,p[o.SUP]=!0,p[o.TABLE]=!0,p[o.TT]=!0,p[o.U]=!0,p[o.UL]=!0,p[o.VAR]=!0,n.causesExit=function(t){var e=t.tagName;return!!(e===o.FONT&&(null!==r.getTokenAttr(t,a.COLOR)||null!==r.getTokenAttr(t,a.SIZE)||null!==r.getTokenAttr(t,a.FACE)))||p[e]},n.adjustTokenMathMLAttrs=function(t){for(var e=0;e0;n--)t.onItemPop(this.items[n]);e.popAllUpToHtmlElement.call(this)},remove:function(n){t.onItemPop(this.current),e.remove.call(this,n)}}}},{"../../utils/mixin":326,util:32}],306:[function(t,e,n){"use strict";var r=t("../../utils/mixin"),i=t("../../tokenizer"),o=t("./tokenizer_mixin"),s=t("../position_tracking/preprocessor_mixin"),a=t("./open_element_stack_mixin"),c=t("../../common/html"),u=t("util").inherits,l=c.TAG_NAMES,h=e.exports=function(t){r.call(this,t),this.parser=t,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null};u(h,r),h.prototype._setStartLocation=function(t){this.lastStartTagToken?(t.__location=Object.create(this.lastStartTagToken.location),t.__location.startTag=this.lastStartTagToken.location):t.__location=null},h.prototype._setEndLocation=function(t,e){var n=t.__location;if(n)if(e.location){var r=e.location,o=this.parser.treeAdapter.getTagName(t);e.type===i.END_TAG_TOKEN&&o===e.tagName?(n.endTag=Object.create(r),n.endOffset=r.endOffset):n.endOffset=r.startOffset}else e.type===i.EOF_TOKEN&&(n.endOffset=this.posTracker.offset)},h.prototype._getOverriddenMethods=function(t,e){return{_bootstrap:function(n,r){e._bootstrap.call(this,n,r),t.lastStartTagToken=null,t.lastFosterParentingLocation=null,t.currentToken=null,t.posTracker=new s(this.tokenizer.preprocessor),new o(this.tokenizer),new a(this.openElements,{onItemPop:function(e){t._setEndLocation(e,t.currentToken)}})},_runParsingLoop:function(n){e._runParsingLoop.call(this,n);for(var r=this.openElements.stackTop;r>=0;r--)t._setEndLocation(this.openElements.items[r],t.currentToken)},_processTokenInForeignContent:function(n){t.currentToken=n,e._processTokenInForeignContent.call(this,n)},_processToken:function(n){if(t.currentToken=n,e._processToken.call(this,n),n.type===i.END_TAG_TOKEN&&(n.tagName===l.HTML||n.tagName===l.BODY&&this.openElements.hasInScope(l.BODY)))for(var r=this.openElements.stackTop;r>=0;r--){var o=this.openElements.items[r];if(this.treeAdapter.getTagName(o)===n.tagName){t._setEndLocation(o,n);break}}},_setDocumentType:function(t){e._setDocumentType.call(this,t);for(var n=this.treeAdapter.getChildNodes(this.document),r=n.length,i=0;i=3)for(var n=this.treeAdapter.getAttrList(t).length,i=this.treeAdapter.getTagName(t),o=this.treeAdapter.getNamespaceURI(t),s=this.length-1;s>=0;s--){var a=this.entries[s];if(a.type===r.MARKER_ENTRY)break;var c=a.element,u=this.treeAdapter.getAttrList(c);this.treeAdapter.getTagName(c)===i&&this.treeAdapter.getNamespaceURI(c)===o&&u.length===n&&e.push({idx:s,attrs:u})}return e.length<3?[]:e},r.prototype._ensureNoahArkCondition=function(t){var e=this._getNoahArkConditionCandidates(t),n=e.length;if(n){for(var r=this.treeAdapter.getAttrList(t),i=r.length,o=Object.create(null),s=0;s=2;s--)this.entries.splice(e[s].idx,1),this.length--}},r.prototype.insertMarker=function(){this.entries.push({type:r.MARKER_ENTRY}),this.length++},r.prototype.pushElement=function(t,e){this._ensureNoahArkCondition(t),this.entries.push({type:r.ELEMENT_ENTRY,element:t,token:e}),this.length++},r.prototype.insertElementAfterBookmark=function(t,e){for(var n=this.length-1;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:r.ELEMENT_ENTRY,element:t,token:e}),this.length++},r.prototype.removeEntry=function(t){for(var e=this.length-1;e>=0;e--)if(this.entries[e]===t){this.entries.splice(e,1),this.length--;break}},r.prototype.clearToLastMarker=function(){for(;this.length;){var t=this.entries.pop();if(this.length--,t.type===r.MARKER_ENTRY)break}},r.prototype.getElementEntryInScopeWithTagName=function(t){for(var e=this.length-1;e>=0;e--){var n=this.entries[e];if(n.type===r.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===t)return n}return null},r.prototype.getElementEntry=function(t){for(var e=this.length-1;e>=0;e--){var n=this.entries[e];if(n.type===r.ELEMENT_ENTRY&&n.element===t)return n}return null}},{}],311:[function(t,e,n){"use strict";var r=t("../tokenizer"),i=t("./open_element_stack"),o=t("./formatting_element_list"),s=t("../extensions/location_info/parser_mixin"),a=t("../tree_adapters/default"),c=t("../utils/merge_options"),u=t("../common/doctype"),l=t("../common/foreign_content"),h=t("../common/unicode"),p=t("../common/html"),f=p.TAG_NAMES,_=p.NAMESPACES,d=p.ATTRS,m={locationInfo:!1,treeAdapter:a},T="hidden",E=8,g=3,A="BEFORE_HTML_MODE",y="BEFORE_HEAD_MODE",b="IN_HEAD_MODE",v="AFTER_HEAD_MODE",S="IN_BODY_MODE",N="TEXT_MODE",C="IN_TABLE_MODE",O="IN_TABLE_TEXT_MODE",L="IN_CAPTION_MODE",M="IN_COLUMN_GROUP_MODE",I="IN_TABLE_BODY_MODE",R="IN_ROW_MODE",x="IN_CELL_MODE",k="IN_SELECT_MODE",w="IN_SELECT_IN_TABLE_MODE",D="IN_TEMPLATE_MODE",P="AFTER_BODY_MODE",H="IN_FRAMESET_MODE",j="AFTER_FRAMESET_MODE",B="AFTER_AFTER_BODY_MODE",U="AFTER_AFTER_FRAMESET_MODE",F=Object.create(null);F[f.TR]=R,F[f.TBODY]=F[f.THEAD]=F[f.TFOOT]=I,F[f.CAPTION]=L,F[f.COLGROUP]=M,F[f.TABLE]=C,F[f.BODY]=S,F[f.FRAMESET]=H;var G=Object.create(null);G[f.CAPTION]=G[f.COLGROUP]=G[f.TBODY]=G[f.TFOOT]=G[f.THEAD]=C,G[f.COL]=M,G[f.TR]=I,G[f.TD]=G[f.TH]=R;var K=Object.create(null);K.INITIAL_MODE=Object.create(null),K.INITIAL_MODE[r.CHARACTER_TOKEN]=K.INITIAL_MODE[r.NULL_CHARACTER_TOKEN]=rt,K.INITIAL_MODE[r.WHITESPACE_CHARACTER_TOKEN]=J,K.INITIAL_MODE[r.COMMENT_TOKEN]=Z,K.INITIAL_MODE[r.DOCTYPE_TOKEN]=function(t,e){t._setDocumentType(e);var n=e.forceQuirks?p.DOCUMENT_MODE.QUIRKS:u.getDocumentMode(e.name,e.publicId,e.systemId);t.treeAdapter.setDocumentMode(t.document,n),t.insertionMode=A},K.INITIAL_MODE[r.START_TAG_TOKEN]=K.INITIAL_MODE[r.END_TAG_TOKEN]=K.INITIAL_MODE[r.EOF_TOKEN]=rt,K[A]=Object.create(null),K[A][r.CHARACTER_TOKEN]=K[A][r.NULL_CHARACTER_TOKEN]=it,K[A][r.WHITESPACE_CHARACTER_TOKEN]=J,K[A][r.COMMENT_TOKEN]=Z,K[A][r.DOCTYPE_TOKEN]=J,K[A][r.START_TAG_TOKEN]=function(t,e){e.tagName===f.HTML?(t._insertElement(e,_.HTML),t.insertionMode=y):it(t,e)},K[A][r.END_TAG_TOKEN]=function(t,e){var n=e.tagName;n!==f.HTML&&n!==f.HEAD&&n!==f.BODY&&n!==f.BR||it(t,e)},K[A][r.EOF_TOKEN]=it,K[y]=Object.create(null),K[y][r.CHARACTER_TOKEN]=K[y][r.NULL_CHARACTER_TOKEN]=ot,K[y][r.WHITESPACE_CHARACTER_TOKEN]=J,K[y][r.COMMENT_TOKEN]=Z,K[y][r.DOCTYPE_TOKEN]=J,K[y][r.START_TAG_TOKEN]=function(t,e){var n=e.tagName;n===f.HTML?bt(t,e):n===f.HEAD?(t._insertElement(e,_.HTML),t.headElement=t.openElements.current,t.insertionMode=b):ot(t,e)},K[y][r.END_TAG_TOKEN]=function(t,e){var n=e.tagName;n!==f.HEAD&&n!==f.BODY&&n!==f.HTML&&n!==f.BR||ot(t,e)},K[y][r.EOF_TOKEN]=ot,K[b]=Object.create(null),K[b][r.CHARACTER_TOKEN]=K[b][r.NULL_CHARACTER_TOKEN]=ct,K[b][r.WHITESPACE_CHARACTER_TOKEN]=et,K[b][r.COMMENT_TOKEN]=Z,K[b][r.DOCTYPE_TOKEN]=J,K[b][r.START_TAG_TOKEN]=st,K[b][r.END_TAG_TOKEN]=at,K[b][r.EOF_TOKEN]=ct,K[v]=Object.create(null),K[v][r.CHARACTER_TOKEN]=K[v][r.NULL_CHARACTER_TOKEN]=ut,K[v][r.WHITESPACE_CHARACTER_TOKEN]=et,K[v][r.COMMENT_TOKEN]=Z,K[v][r.DOCTYPE_TOKEN]=J,K[v][r.START_TAG_TOKEN]=function(t,e){var n=e.tagName;n===f.HTML?bt(t,e):n===f.BODY?(t._insertElement(e,_.HTML),t.framesetOk=!1,t.insertionMode=S):n===f.FRAMESET?(t._insertElement(e,_.HTML),t.insertionMode=H):n===f.BASE||n===f.BASEFONT||n===f.BGSOUND||n===f.LINK||n===f.META||n===f.NOFRAMES||n===f.SCRIPT||n===f.STYLE||n===f.TEMPLATE||n===f.TITLE?(t.openElements.push(t.headElement),st(t,e),t.openElements.remove(t.headElement)):n!==f.HEAD&&ut(t,e)},K[v][r.END_TAG_TOKEN]=function(t,e){var n=e.tagName;n===f.BODY||n===f.HTML||n===f.BR?ut(t,e):n===f.TEMPLATE&&at(t,e)},K[v][r.EOF_TOKEN]=ut,K[S]=Object.create(null),K[S][r.CHARACTER_TOKEN]=ht,K[S][r.NULL_CHARACTER_TOKEN]=J,K[S][r.WHITESPACE_CHARACTER_TOKEN]=lt,K[S][r.COMMENT_TOKEN]=Z,K[S][r.DOCTYPE_TOKEN]=J,K[S][r.START_TAG_TOKEN]=bt,K[S][r.END_TAG_TOKEN]=Ct,K[S][r.EOF_TOKEN]=Ot,K[N]=Object.create(null),K[N][r.CHARACTER_TOKEN]=K[N][r.NULL_CHARACTER_TOKEN]=K[N][r.WHITESPACE_CHARACTER_TOKEN]=et,K[N][r.COMMENT_TOKEN]=K[N][r.DOCTYPE_TOKEN]=K[N][r.START_TAG_TOKEN]=J,K[N][r.END_TAG_TOKEN]=function(t,e){e.tagName===f.SCRIPT&&(t.pendingScript=t.openElements.current);t.openElements.pop(),t.insertionMode=t.originalInsertionMode},K[N][r.EOF_TOKEN]=function(t,e){t.openElements.pop(),t.insertionMode=t.originalInsertionMode,t._processToken(e)},K[C]=Object.create(null),K[C][r.CHARACTER_TOKEN]=K[C][r.NULL_CHARACTER_TOKEN]=K[C][r.WHITESPACE_CHARACTER_TOKEN]=Lt,K[C][r.COMMENT_TOKEN]=Z,K[C][r.DOCTYPE_TOKEN]=J,K[C][r.START_TAG_TOKEN]=Mt,K[C][r.END_TAG_TOKEN]=It,K[C][r.EOF_TOKEN]=Ot,K[O]=Object.create(null),K[O][r.CHARACTER_TOKEN]=function(t,e){t.pendingCharacterTokens.push(e),t.hasNonWhitespacePendingCharacterToken=!0},K[O][r.NULL_CHARACTER_TOKEN]=J,K[O][r.WHITESPACE_CHARACTER_TOKEN]=function(t,e){t.pendingCharacterTokens.push(e)},K[O][r.COMMENT_TOKEN]=K[O][r.DOCTYPE_TOKEN]=K[O][r.START_TAG_TOKEN]=K[O][r.END_TAG_TOKEN]=K[O][r.EOF_TOKEN]=function(t,e){var n=0;if(t.hasNonWhitespacePendingCharacterToken)for(;n=0;r--){var i=t.openElements.items[r];if(i===e.element)break;t._isSpecialElement(i)&&(n=i)}return n||(t.openElements.popUntilElementPopped(e.element),t.activeFormattingElements.removeEntry(e)),n}function W(t,e,n){for(var r=e,i=t.openElements.getCommonAncestor(e),o=0,s=i;s!==n;o++,s=i){i=t.openElements.getCommonAncestor(s);var a=t.activeFormattingElements.getElementEntry(s),c=a&&o>=g;!a||c?(c&&t.activeFormattingElements.removeEntry(a),t.openElements.remove(s)):(s=V(t,a),r===e&&(t.activeFormattingElements.bookmark=a),t.treeAdapter.detachNode(r),t.treeAdapter.appendChild(s,r),r=s)}return r}function V(t,e){var n=t.treeAdapter.getNamespaceURI(e.element),r=t.treeAdapter.createElement(e.token.tagName,n,e.token.attrs);return t.openElements.replace(e.element,r),e.element=r,r}function $(t,e,n){if(t._isElementCausesFosterParenting(e))t._fosterParentElement(n);else{var r=t.treeAdapter.getTagName(e),i=t.treeAdapter.getNamespaceURI(e);r===f.TEMPLATE&&i===_.HTML&&(e=t.treeAdapter.getTemplateContent(e)),t.treeAdapter.appendChild(e,n)}}function X(t,e,n){var r=t.treeAdapter.getNamespaceURI(n.element),i=n.token,o=t.treeAdapter.createElement(i.tagName,r,i.attrs);t._adoptNodes(e,o),t.treeAdapter.appendChild(e,o),t.activeFormattingElements.insertElementAfterBookmark(o,n.token),t.activeFormattingElements.removeEntry(n),t.openElements.remove(n.element),t.openElements.insertAfter(e,o)}function Q(t,e){for(var n,r=0;r0&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(f.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t._popTmplInsertionMode(),t._resetInsertionMode())}function ct(t,e){t.openElements.pop(),t.insertionMode=v,t._processToken(e)}function ut(t,e){t._insertFakeElement(f.BODY),t.insertionMode=S,t._processToken(e)}function lt(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e)}function ht(t,e){t._reconstructActiveFormattingElements(),t._insertCharacters(e),t.framesetOk=!1}function pt(t,e){t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t._insertElement(e,_.HTML)}function ft(t,e){t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t._insertElement(e,_.HTML),t.skipNextNewLine=!0,t.framesetOk=!1}function _t(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}function dt(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML),t.activeFormattingElements.insertMarker(),t.framesetOk=!1}function mt(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,_.HTML),t.framesetOk=!1}function Tt(t,e){t._appendElement(e,_.HTML)}function Et(t,e){t._switchToTextParsing(e,r.MODE.RAWTEXT)}function gt(t,e){t.openElements.currentTagName===f.OPTION&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML)}function At(t,e){t.openElements.hasInScope(f.RUBY)&&t.openElements.generateImpliedEndTags(),t._insertElement(e,_.HTML)}function yt(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML)}function bt(t,e){var n=e.tagName;switch(n.length){case 1:n===f.I||n===f.S||n===f.B||n===f.U?_t(t,e):n===f.P?pt(t,e):n===f.A?function(t,e){var n=t.activeFormattingElements.getElementEntryInScopeWithTagName(f.A);n&&(Q(t,e),t.openElements.remove(n.element),t.activeFormattingElements.removeEntry(n)),t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e):yt(t,e);break;case 2:n===f.DL||n===f.OL||n===f.UL?pt(t,e):n===f.H1||n===f.H2||n===f.H3||n===f.H4||n===f.H5||n===f.H6?function(t,e){t.openElements.hasInButtonScope(f.P)&&t._closePElement();var n=t.openElements.currentTagName;n!==f.H1&&n!==f.H2&&n!==f.H3&&n!==f.H4&&n!==f.H5&&n!==f.H6||t.openElements.pop(),t._insertElement(e,_.HTML)}(t,e):n===f.LI||n===f.DD||n===f.DT?function(t,e){t.framesetOk=!1;for(var n=e.tagName,r=t.openElements.stackTop;r>=0;r--){var i=t.openElements.items[r],o=t.treeAdapter.getTagName(i),s=null;if(n===f.LI&&o===f.LI?s=f.LI:n!==f.DD&&n!==f.DT||o!==f.DD&&o!==f.DT||(s=o),s){t.openElements.generateImpliedEndTagsWithExclusion(s),t.openElements.popUntilTagNamePopped(s);break}if(o!==f.ADDRESS&&o!==f.DIV&&o!==f.P&&t._isSpecialElement(i))break}t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t._insertElement(e,_.HTML)}(t,e):n===f.EM||n===f.TT?_t(t,e):n===f.BR?mt(t,e):n===f.HR?function(t,e){t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t.openElements.currentTagName===f.MENUITEM&&t.openElements.pop(),t._appendElement(e,_.HTML),t.framesetOk=!1}(t,e):n===f.RB?At(t,e):n===f.RT||n===f.RP?function(t,e){t.openElements.hasInScope(f.RUBY)&&t.openElements.generateImpliedEndTagsWithExclusion(f.RTC),t._insertElement(e,_.HTML)}(t,e):n!==f.TH&&n!==f.TD&&n!==f.TR&&yt(t,e);break;case 3:n===f.DIV||n===f.DIR||n===f.NAV?pt(t,e):n===f.PRE?ft(t,e):n===f.BIG?_t(t,e):n===f.IMG||n===f.WBR?mt(t,e):n===f.XMP?function(t,e){t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t._reconstructActiveFormattingElements(),t.framesetOk=!1,t._switchToTextParsing(e,r.MODE.RAWTEXT)}(t,e):n===f.SVG?function(t,e){t._reconstructActiveFormattingElements(),l.adjustTokenSVGAttrs(e),l.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,_.SVG):t._insertElement(e,_.SVG)}(t,e):n===f.RTC?At(t,e):n!==f.COL&&yt(t,e);break;case 4:n===f.HTML?function(t,e){0===t.openElements.tmplCount&&t.treeAdapter.adoptAttributes(t.openElements.items[0],e.attrs)}(t,e):n===f.BASE||n===f.LINK||n===f.META?st(t,e):n===f.BODY?function(t,e){var n=t.openElements.tryPeekProperlyNestedBodyElement();n&&0===t.openElements.tmplCount&&(t.framesetOk=!1,t.treeAdapter.adoptAttributes(n,e.attrs))}(t,e):n===f.MAIN?pt(t,e):n===f.FORM?function(t,e){var n=t.openElements.tmplCount>0;t.formElement&&!n||(t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t._insertElement(e,_.HTML),n||(t.formElement=t.openElements.current))}(t,e):n===f.CODE||n===f.FONT?_t(t,e):n===f.NOBR?function(t,e){t._reconstructActiveFormattingElements(),t.openElements.hasInScope(f.NOBR)&&(Q(t,e),t._reconstructActiveFormattingElements()),t._insertElement(e,_.HTML),t.activeFormattingElements.pushElement(t.openElements.current,e)}(t,e):n===f.AREA?mt(t,e):n===f.MATH?function(t,e){t._reconstructActiveFormattingElements(),l.adjustTokenMathMLAttrs(e),l.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,_.MATHML):t._insertElement(e,_.MATHML)}(t,e):n===f.MENU?function(t,e){t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t.openElements.currentTagName===f.MENUITEM&&t.openElements.pop(),t._insertElement(e,_.HTML)}(t,e):n!==f.HEAD&&yt(t,e);break;case 5:n===f.STYLE||n===f.TITLE?st(t,e):n===f.ASIDE?pt(t,e):n===f.SMALL?_t(t,e):n===f.TABLE?function(t,e){t.treeAdapter.getDocumentMode(t.document)!==p.DOCUMENT_MODE.QUIRKS&&t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t._insertElement(e,_.HTML),t.framesetOk=!1,t.insertionMode=C}(t,e):n===f.EMBED?mt(t,e):n===f.INPUT?function(t,e){t._reconstructActiveFormattingElements(),t._appendElement(e,_.HTML);var n=r.getTokenAttr(e,d.TYPE);n&&n.toLowerCase()===T||(t.framesetOk=!1)}(t,e):n===f.PARAM||n===f.TRACK?Tt(t,e):n===f.IMAGE?function(t,e){e.tagName=f.IMG,mt(t,e)}(t,e):n!==f.FRAME&&n!==f.TBODY&&n!==f.TFOOT&&n!==f.THEAD&&yt(t,e);break;case 6:n===f.SCRIPT?st(t,e):n===f.CENTER||n===f.FIGURE||n===f.FOOTER||n===f.HEADER||n===f.HGROUP?pt(t,e):n===f.BUTTON?function(t,e){t.openElements.hasInScope(f.BUTTON)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(f.BUTTON)),t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML),t.framesetOk=!1}(t,e):n===f.STRIKE||n===f.STRONG?_t(t,e):n===f.APPLET||n===f.OBJECT?dt(t,e):n===f.KEYGEN?mt(t,e):n===f.SOURCE?Tt(t,e):n===f.IFRAME?function(t,e){t.framesetOk=!1,t._switchToTextParsing(e,r.MODE.RAWTEXT)}(t,e):n===f.SELECT?function(t,e){t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML),t.framesetOk=!1,t.insertionMode===C||t.insertionMode===L||t.insertionMode===I||t.insertionMode===R||t.insertionMode===x?t.insertionMode=w:t.insertionMode=k}(t,e):n===f.OPTION?gt(t,e):yt(t,e);break;case 7:n===f.BGSOUND?st(t,e):n===f.DETAILS||n===f.ADDRESS||n===f.ARTICLE||n===f.SECTION||n===f.SUMMARY?pt(t,e):n===f.LISTING?ft(t,e):n===f.MARQUEE?dt(t,e):n===f.NOEMBED?Et(t,e):n!==f.CAPTION&&yt(t,e);break;case 8:n===f.BASEFONT?st(t,e):n===f.MENUITEM?function(t,e){t.openElements.currentTagName===f.MENUITEM&&t.openElements.pop(),t._reconstructActiveFormattingElements(),t._insertElement(e,_.HTML)}(t,e):n===f.FRAMESET?function(t,e){var n=t.openElements.tryPeekProperlyNestedBodyElement();t.framesetOk&&n&&(t.treeAdapter.detachNode(n),t.openElements.popAllUpToHtmlElement(),t._insertElement(e,_.HTML),t.insertionMode=H)}(t,e):n===f.FIELDSET?pt(t,e):n===f.TEXTAREA?function(t,e){t._insertElement(e,_.HTML),t.skipNextNewLine=!0,t.tokenizer.state=r.MODE.RCDATA,t.originalInsertionMode=t.insertionMode,t.framesetOk=!1,t.insertionMode=N}(t,e):n===f.TEMPLATE?st(t,e):n===f.NOSCRIPT?Et(t,e):n===f.OPTGROUP?gt(t,e):n!==f.COLGROUP&&yt(t,e);break;case 9:n===f.PLAINTEXT?function(t,e){t.openElements.hasInButtonScope(f.P)&&t._closePElement(),t._insertElement(e,_.HTML),t.tokenizer.state=r.MODE.PLAINTEXT}(t,e):yt(t,e);break;case 10:n===f.BLOCKQUOTE||n===f.FIGCAPTION?pt(t,e):yt(t,e);break;default:yt(t,e)}}function vt(t,e){var n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n))}function St(t,e){var n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilTagNamePopped(n),t.activeFormattingElements.clearToLastMarker())}function Nt(t,e){for(var n=e.tagName,r=t.openElements.stackTop;r>0;r--){var i=t.openElements.items[r];if(t.treeAdapter.getTagName(i)===n){t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilElementPopped(i);break}if(t._isSpecialElement(i))break}}function Ct(t,e){var n=e.tagName;switch(n.length){case 1:n===f.A||n===f.B||n===f.I||n===f.S||n===f.U?Q(t,e):n===f.P?function(t){t.openElements.hasInButtonScope(f.P)||t._insertFakeElement(f.P),t._closePElement()}(t):Nt(t,e);break;case 2:n===f.DL||n===f.UL||n===f.OL?vt(t,e):n===f.LI?function(t){t.openElements.hasInListItemScope(f.LI)&&(t.openElements.generateImpliedEndTagsWithExclusion(f.LI),t.openElements.popUntilTagNamePopped(f.LI))}(t):n===f.DD||n===f.DT?function(t,e){var n=e.tagName;t.openElements.hasInScope(n)&&(t.openElements.generateImpliedEndTagsWithExclusion(n),t.openElements.popUntilTagNamePopped(n))}(t,e):n===f.H1||n===f.H2||n===f.H3||n===f.H4||n===f.H5||n===f.H6?function(t){t.openElements.hasNumberedHeaderInScope()&&(t.openElements.generateImpliedEndTags(),t.openElements.popUntilNumberedHeaderPopped())}(t):n===f.BR?function(t){t._reconstructActiveFormattingElements(),t._insertFakeElement(f.BR),t.openElements.pop(),t.framesetOk=!1}(t):n===f.EM||n===f.TT?Q(t,e):Nt(t,e);break;case 3:n===f.BIG?Q(t,e):n===f.DIR||n===f.DIV||n===f.NAV?vt(t,e):Nt(t,e);break;case 4:n===f.BODY?function(t){t.openElements.hasInScope(f.BODY)&&(t.insertionMode=P)}(t):n===f.HTML?function(t,e){t.openElements.hasInScope(f.BODY)&&(t.insertionMode=P,t._processToken(e))}(t,e):n===f.FORM?function(t){var e=t.openElements.tmplCount>0,n=t.formElement;e||(t.formElement=null),(n||e)&&t.openElements.hasInScope(f.FORM)&&(t.openElements.generateImpliedEndTags(),e?t.openElements.popUntilTagNamePopped(f.FORM):t.openElements.remove(n))}(t):n===f.CODE||n===f.FONT||n===f.NOBR?Q(t,e):n===f.MAIN||n===f.MENU?vt(t,e):Nt(t,e);break;case 5:n===f.ASIDE?vt(t,e):n===f.SMALL?Q(t,e):Nt(t,e);break;case 6:n===f.CENTER||n===f.FIGURE||n===f.FOOTER||n===f.HEADER||n===f.HGROUP?vt(t,e):n===f.APPLET||n===f.OBJECT?St(t,e):n===f.STRIKE||n===f.STRONG?Q(t,e):Nt(t,e);break;case 7:n===f.ADDRESS||n===f.ARTICLE||n===f.DETAILS||n===f.SECTION||n===f.SUMMARY?vt(t,e):n===f.MARQUEE?St(t,e):Nt(t,e);break;case 8:n===f.FIELDSET?vt(t,e):n===f.TEMPLATE?at(t,e):Nt(t,e);break;case 10:n===f.BLOCKQUOTE||n===f.FIGCAPTION?vt(t,e):Nt(t,e);break;default:Nt(t,e)}}function Ot(t,e){t.tmplInsertionModeStackTop>-1?Dt(t,e):t.stopped=!0}function Lt(t,e){var n=t.openElements.currentTagName;n===f.TABLE||n===f.TBODY||n===f.TFOOT||n===f.THEAD||n===f.TR?(t.pendingCharacterTokens=[],t.hasNonWhitespacePendingCharacterToken=!1,t.originalInsertionMode=t.insertionMode,t.insertionMode=O,t._processToken(e)):Rt(t,e)}function Mt(t,e){var n=e.tagName;switch(n.length){case 2:n===f.TD||n===f.TH||n===f.TR?function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(f.TBODY),t.insertionMode=I,t._processToken(e)}(t,e):Rt(t,e);break;case 3:n===f.COL?function(t,e){t.openElements.clearBackToTableContext(),t._insertFakeElement(f.COLGROUP),t.insertionMode=M,t._processToken(e)}(t,e):Rt(t,e);break;case 4:n===f.FORM?function(t,e){t.formElement||0!==t.openElements.tmplCount||(t._insertElement(e,_.HTML),t.formElement=t.openElements.current,t.openElements.pop())}(t,e):Rt(t,e);break;case 5:n===f.TABLE?function(t,e){t.openElements.hasInTableScope(f.TABLE)&&(t.openElements.popUntilTagNamePopped(f.TABLE),t._resetInsertionMode(),t._processToken(e))}(t,e):n===f.STYLE?st(t,e):n===f.TBODY||n===f.TFOOT||n===f.THEAD?function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,_.HTML),t.insertionMode=I}(t,e):n===f.INPUT?function(t,e){var n=r.getTokenAttr(e,d.TYPE);n&&n.toLowerCase()===T?t._appendElement(e,_.HTML):Rt(t,e)}(t,e):Rt(t,e);break;case 6:n===f.SCRIPT?st(t,e):Rt(t,e);break;case 7:n===f.CAPTION?function(t,e){t.openElements.clearBackToTableContext(),t.activeFormattingElements.insertMarker(),t._insertElement(e,_.HTML),t.insertionMode=L}(t,e):Rt(t,e);break;case 8:n===f.COLGROUP?function(t,e){t.openElements.clearBackToTableContext(),t._insertElement(e,_.HTML),t.insertionMode=M}(t,e):n===f.TEMPLATE?st(t,e):Rt(t,e);break;default:Rt(t,e)}}function It(t,e){var n=e.tagName;n===f.TABLE?t.openElements.hasInTableScope(f.TABLE)&&(t.openElements.popUntilTagNamePopped(f.TABLE),t._resetInsertionMode()):n===f.TEMPLATE?at(t,e):n!==f.BODY&&n!==f.CAPTION&&n!==f.COL&&n!==f.COLGROUP&&n!==f.HTML&&n!==f.TBODY&&n!==f.TD&&n!==f.TFOOT&&n!==f.TH&&n!==f.THEAD&&n!==f.TR&&Rt(t,e)}function Rt(t,e){var n=t.fosterParentingEnabled;t.fosterParentingEnabled=!0,t._processTokenInBodyMode(e),t.fosterParentingEnabled=n}function xt(t,e){t.openElements.currentTagName===f.COLGROUP&&(t.openElements.pop(),t.insertionMode=C,t._processToken(e))}function kt(t,e){var n=e.tagName;n===f.HTML?bt(t,e):n===f.OPTION?(t.openElements.currentTagName===f.OPTION&&t.openElements.pop(),t._insertElement(e,_.HTML)):n===f.OPTGROUP?(t.openElements.currentTagName===f.OPTION&&t.openElements.pop(),t.openElements.currentTagName===f.OPTGROUP&&t.openElements.pop(),t._insertElement(e,_.HTML)):n===f.INPUT||n===f.KEYGEN||n===f.TEXTAREA||n===f.SELECT?t.openElements.hasInSelectScope(f.SELECT)&&(t.openElements.popUntilTagNamePopped(f.SELECT),t._resetInsertionMode(),n!==f.SELECT&&t._processToken(e)):n!==f.SCRIPT&&n!==f.TEMPLATE||st(t,e)}function wt(t,e){var n=e.tagName;if(n===f.OPTGROUP){var r=t.openElements.items[t.openElements.stackTop-1],i=r&&t.treeAdapter.getTagName(r);t.openElements.currentTagName===f.OPTION&&i===f.OPTGROUP&&t.openElements.pop(),t.openElements.currentTagName===f.OPTGROUP&&t.openElements.pop()}else n===f.OPTION?t.openElements.currentTagName===f.OPTION&&t.openElements.pop():n===f.SELECT&&t.openElements.hasInSelectScope(f.SELECT)?(t.openElements.popUntilTagNamePopped(f.SELECT),t._resetInsertionMode()):n===f.TEMPLATE&&at(t,e)}function Dt(t,e){t.openElements.tmplCount>0?(t.openElements.popUntilTagNamePopped(f.TEMPLATE),t.activeFormattingElements.clearToLastMarker(),t._popTmplInsertionMode(),t._resetInsertionMode(),t._processToken(e)):t.stopped=!0}function Pt(t,e){t.insertionMode=S,t._processToken(e)}function Ht(t,e){t.insertionMode=S,t._processToken(e)}q.prototype.parse=function(t){var e=this.treeAdapter.createDocument();return this._bootstrap(e,null),this.tokenizer.write(t,!0),this._runParsingLoop(null),e},q.prototype.parseFragment=function(t,e){e||(e=this.treeAdapter.createElement(f.TEMPLATE,_.HTML,[]));var n=this.treeAdapter.createElement("documentmock",_.HTML,[]);this._bootstrap(n,e),this.treeAdapter.getTagName(e)===f.TEMPLATE&&this._pushTmplInsertionMode(D),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(t,!0),this._runParsingLoop(null);var r=this.treeAdapter.getFirstChild(n),i=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,i),i},q.prototype._bootstrap=function(t,e){this.tokenizer=new r(this.options),this.stopped=!1,this.insertionMode="INITIAL_MODE",this.originalInsertionMode="",this.document=t,this.fragmentContext=e,this.headElement=null,this.formElement=null,this.openElements=new i(this.document,this.treeAdapter),this.activeFormattingElements=new o(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1},q.prototype._runParsingLoop=function(t){for(;!this.stopped;){this._setupTokenizerCDATAMode();var e=this.tokenizer.getNextToken();if(e.type===r.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===e.chars[0])){if(1===e.chars.length)continue;e.chars=e.chars.substr(1)}if(this._processInputToken(e),t&&this.pendingScript)break}},q.prototype.runParsingLoopForCurrentChunk=function(t,e){if(this._runParsingLoop(e),e&&this.pendingScript){var n=this.pendingScript;return this.pendingScript=null,void e(n)}t&&t()},q.prototype._setupTokenizerCDATAMode=function(){var t=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=t&&t!==this.document&&this.treeAdapter.getNamespaceURI(t)!==_.HTML&&!this._isIntegrationPoint(t)},q.prototype._switchToTextParsing=function(t,e){this._insertElement(t,_.HTML),this.tokenizer.state=e,this.originalInsertionMode=this.insertionMode,this.insertionMode=N},q.prototype.switchToPlaintextParsing=function(){this.insertionMode=N,this.originalInsertionMode=S,this.tokenizer.state=r.MODE.PLAINTEXT},q.prototype._getAdjustedCurrentElement=function(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current},q.prototype._findFormInFragmentContext=function(){var t=this.fragmentContext;do{if(this.treeAdapter.getTagName(t)===f.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}while(t)},q.prototype._initTokenizerForFragmentParsing=function(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===_.HTML){var t=this.treeAdapter.getTagName(this.fragmentContext);t===f.TITLE||t===f.TEXTAREA?this.tokenizer.state=r.MODE.RCDATA:t===f.STYLE||t===f.XMP||t===f.IFRAME||t===f.NOEMBED||t===f.NOFRAMES||t===f.NOSCRIPT?this.tokenizer.state=r.MODE.RAWTEXT:t===f.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:t===f.PLAINTEXT&&(this.tokenizer.state=r.MODE.PLAINTEXT)}},q.prototype._setDocumentType=function(t){this.treeAdapter.setDocumentType(this.document,t.name,t.publicId,t.systemId)},q.prototype._attachElementToTree=function(t){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{var e=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(e,t)}},q.prototype._appendElement=function(t,e){var n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n)},q.prototype._insertElement=function(t,e){var n=this.treeAdapter.createElement(t.tagName,e,t.attrs);this._attachElementToTree(n),this.openElements.push(n)},q.prototype._insertFakeElement=function(t){var e=this.treeAdapter.createElement(t,_.HTML,[]);this._attachElementToTree(e),this.openElements.push(e)},q.prototype._insertTemplate=function(t){var e=this.treeAdapter.createElement(t.tagName,_.HTML,t.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(e,n),this._attachElementToTree(e),this.openElements.push(e)},q.prototype._insertFakeRootElement=function(){var t=this.treeAdapter.createElement(f.HTML,_.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t)},q.prototype._appendCommentNode=function(t,e){var n=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(e,n)},q.prototype._insertCharacters=function(t){if(this._shouldFosterParentOnInsertion())this._fosterParentText(t.chars);else{var e=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(e,t.chars)}},q.prototype._adoptNodes=function(t,e){for(;;){var n=this.treeAdapter.getFirstChild(t);if(!n)break;this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(e,n)}},q.prototype._shouldProcessTokenInForeignContent=function(t){var e=this._getAdjustedCurrentElement();if(!e||e===this.document)return!1;var n=this.treeAdapter.getNamespaceURI(e);if(n===_.HTML)return!1;if(this.treeAdapter.getTagName(e)===f.ANNOTATION_XML&&n===_.MATHML&&t.type===r.START_TAG_TOKEN&&t.tagName===f.SVG)return!1;var i=t.type===r.CHARACTER_TOKEN||t.type===r.NULL_CHARACTER_TOKEN||t.type===r.WHITESPACE_CHARACTER_TOKEN;return(!(t.type===r.START_TAG_TOKEN&&t.tagName!==f.MGLYPH&&t.tagName!==f.MALIGNMARK)&&!i||!this._isIntegrationPoint(e,_.MATHML))&&((t.type!==r.START_TAG_TOKEN&&!i||!this._isIntegrationPoint(e,_.HTML))&&t.type!==r.EOF_TOKEN)},q.prototype._processToken=function(t){K[this.insertionMode][t.type](this,t)},q.prototype._processTokenInBodyMode=function(t){K[S][t.type](this,t)},q.prototype._processTokenInForeignContent=function(t){t.type===r.CHARACTER_TOKEN?function(t,e){t._insertCharacters(e),t.framesetOk=!1}(this,t):t.type===r.NULL_CHARACTER_TOKEN?function(t,e){e.chars=h.REPLACEMENT_CHARACTER,t._insertCharacters(e)}(this,t):t.type===r.WHITESPACE_CHARACTER_TOKEN?et(this,t):t.type===r.COMMENT_TOKEN?Z(this,t):t.type===r.START_TAG_TOKEN?function(t,e){if(l.causesExit(e)&&!t.fragmentContext){for(;t.treeAdapter.getNamespaceURI(t.openElements.current)!==_.HTML&&!t._isIntegrationPoint(t.openElements.current);)t.openElements.pop();t._processToken(e)}else{var n=t._getAdjustedCurrentElement(),r=t.treeAdapter.getNamespaceURI(n);r===_.MATHML?l.adjustTokenMathMLAttrs(e):r===_.SVG&&(l.adjustTokenSVGTagName(e),l.adjustTokenSVGAttrs(e)),l.adjustTokenXMLAttrs(e),e.selfClosing?t._appendElement(e,r):t._insertElement(e,r)}}(this,t):t.type===r.END_TAG_TOKEN&&function(t,e){for(var n=t.openElements.stackTop;n>0;n--){var r=t.openElements.items[n];if(t.treeAdapter.getNamespaceURI(r)===_.HTML){t._processToken(e);break}if(t.treeAdapter.getTagName(r).toLowerCase()===e.tagName){t.openElements.popUntilElementPopped(r);break}}}(this,t)},q.prototype._processInputToken=function(t){this._shouldProcessTokenInForeignContent(t)?this._processTokenInForeignContent(t):this._processToken(t)},q.prototype._isIntegrationPoint=function(t,e){var n=this.treeAdapter.getTagName(t),r=this.treeAdapter.getNamespaceURI(t),i=this.treeAdapter.getAttrList(t);return l.isIntegrationPoint(n,r,i,e)},q.prototype._reconstructActiveFormattingElements=function(){var t=this.activeFormattingElements.length;if(t){var e=t,n=null;do{if(e--,(n=this.activeFormattingElements.entries[e]).type===o.MARKER_ENTRY||this.openElements.contains(n.element)){e++;break}}while(e>0);for(var r=e;r=0;t--){var n=this.openElements.items[t];0===t&&(e=!0,this.fragmentContext&&(n=this.fragmentContext));var r=this.treeAdapter.getTagName(n),i=F[r];if(i){this.insertionMode=i;break}if(!(e||r!==f.TD&&r!==f.TH)){this.insertionMode=x;break}if(!e&&r===f.HEAD){this.insertionMode=b;break}if(r===f.SELECT){this._resetInsertionModeForSelect(t);break}if(r===f.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}if(r===f.HTML){this.insertionMode=this.headElement?v:y;break}if(e){this.insertionMode=S;break}}},q.prototype._resetInsertionModeForSelect=function(t){if(t>0)for(var e=t-1;e>0;e--){var n=this.openElements.items[e],r=this.treeAdapter.getTagName(n);if(r===f.TEMPLATE)break;if(r===f.TABLE)return void(this.insertionMode=w)}this.insertionMode=k},q.prototype._pushTmplInsertionMode=function(t){this.tmplInsertionModeStack.push(t),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=t},q.prototype._popTmplInsertionMode=function(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]},q.prototype._isElementCausesFosterParenting=function(t){var e=this.treeAdapter.getTagName(t);return e===f.TABLE||e===f.TBODY||e===f.TFOOT||e===f.THEAD||e===f.TR},q.prototype._shouldFosterParentOnInsertion=function(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)},q.prototype._findFosterParentingLocation=function(){for(var t={parent:null,beforeElement:null},e=this.openElements.stackTop;e>=0;e--){var n=this.openElements.items[e],r=this.treeAdapter.getTagName(n),i=this.treeAdapter.getNamespaceURI(n);if(r===f.TEMPLATE&&i===_.HTML){t.parent=this.treeAdapter.getTemplateContent(n);break}if(r===f.TABLE){t.parent=this.treeAdapter.getParentNode(n),t.parent?t.beforeElement=n:t.parent=this.openElements.items[e-1];break}}return t.parent||(t.parent=this.openElements.items[0]),t},q.prototype._fosterParentElement=function(t){var e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertBefore(e.parent,t,e.beforeElement):this.treeAdapter.appendChild(e.parent,t)},q.prototype._fosterParentText=function(t){var e=this._findFosterParentingLocation();e.beforeElement?this.treeAdapter.insertTextBefore(e.parent,t,e.beforeElement):this.treeAdapter.insertText(e.parent,t)},q.prototype._isSpecialElement=function(t){var e=this.treeAdapter.getTagName(t),n=this.treeAdapter.getNamespaceURI(t);return p.SPECIAL_ELEMENTS[n][e]}},{"../common/doctype":301,"../common/foreign_content":302,"../common/html":303,"../common/unicode":304,"../extensions/location_info/parser_mixin":306,"../tokenizer":320,"../tree_adapters/default":323,"../utils/merge_options":325,"./formatting_element_list":310,"./open_element_stack":312}],312:[function(t,e,n){"use strict";var r=t("../common/html"),i=r.TAG_NAMES,o=r.NAMESPACES;function s(t){switch(t.length){case 1:return t===i.P;case 2:return t===i.RB||t===i.RP||t===i.RT||t===i.DD||t===i.DT||t===i.LI;case 3:return t===i.RTC;case 6:return t===i.OPTION;case 8:return t===i.OPTGROUP||t===i.MENUITEM}return!1}function a(t,e){switch(t.length){case 2:if(t===i.TD||t===i.TH)return e===o.HTML;if(t===i.MI||t===i.MO||t===i.MN||t===i.MS)return e===o.MATHML;break;case 4:if(t===i.HTML)return e===o.HTML;if(t===i.DESC)return e===o.SVG;break;case 5:if(t===i.TABLE)return e===o.HTML;if(t===i.MTEXT)return e===o.MATHML;if(t===i.TITLE)return e===o.SVG;break;case 6:return(t===i.APPLET||t===i.OBJECT)&&e===o.HTML;case 7:return(t===i.CAPTION||t===i.MARQUEE)&&e===o.HTML;case 8:return t===i.TEMPLATE&&e===o.HTML;case 13:return t===i.FOREIGN_OBJECT&&e===o.SVG;case 14:return t===i.ANNOTATION_XML&&e===o.MATHML}return!1}var c=e.exports=function(t,e){this.stackTop=-1,this.items=[],this.current=t,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=e};c.prototype._indexOf=function(t){for(var e=-1,n=this.stackTop;n>=0;n--)if(this.items[n]===t){e=n;break}return e},c.prototype._isInTemplate=function(){return this.currentTagName===i.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===o.HTML},c.prototype._updateCurrentElement=function(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null},c.prototype.push=function(t){this.items[++this.stackTop]=t,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++},c.prototype.pop=function(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()},c.prototype.replace=function(t,e){var n=this._indexOf(t);this.items[n]=e,n===this.stackTop&&this._updateCurrentElement()},c.prototype.insertAfter=function(t,e){var n=this._indexOf(t)+1;this.items.splice(n,0,e),n===++this.stackTop&&this._updateCurrentElement()},c.prototype.popUntilTagNamePopped=function(t){for(;this.stackTop>-1;){var e=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===t&&n===o.HTML)break}},c.prototype.popUntilElementPopped=function(t){for(;this.stackTop>-1;){var e=this.current;if(this.pop(),e===t)break}},c.prototype.popUntilNumberedHeaderPopped=function(){for(;this.stackTop>-1;){var t=this.currentTagName,e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===i.H1||t===i.H2||t===i.H3||t===i.H4||t===i.H5||t===i.H6&&e===o.HTML)break}},c.prototype.popUntilTableCellPopped=function(){for(;this.stackTop>-1;){var t=this.currentTagName,e=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===i.TD||t===i.TH&&e===o.HTML)break}},c.prototype.popAllUpToHtmlElement=function(){this.stackTop=0,this._updateCurrentElement()},c.prototype.clearBackToTableContext=function(){for(;this.currentTagName!==i.TABLE&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()},c.prototype.clearBackToTableBodyContext=function(){for(;this.currentTagName!==i.TBODY&&this.currentTagName!==i.TFOOT&&this.currentTagName!==i.THEAD&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()},c.prototype.clearBackToTableRowContext=function(){for(;this.currentTagName!==i.TR&&this.currentTagName!==i.TEMPLATE&&this.currentTagName!==i.HTML||this.treeAdapter.getNamespaceURI(this.current)!==o.HTML;)this.pop()},c.prototype.remove=function(t){for(var e=this.stackTop;e>=0;e--)if(this.items[e]===t){this.items.splice(e,1),this.stackTop--,this._updateCurrentElement();break}},c.prototype.tryPeekProperlyNestedBodyElement=function(){var t=this.items[1];return t&&this.treeAdapter.getTagName(t)===i.BODY?t:null},c.prototype.contains=function(t){return this._indexOf(t)>-1},c.prototype.getCommonAncestor=function(t){var e=this._indexOf(t);return--e>=0?this.items[e]:null},c.prototype.isRootHtmlElementCurrent=function(){return 0===this.stackTop&&this.currentTagName===i.HTML},c.prototype.hasInScope=function(t){for(var e=this.stackTop;e>=0;e--){var n=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===o.HTML)return!0;if(a(n,r))return!1}return!0},c.prototype.hasNumberedHeaderInScope=function(){for(var t=this.stackTop;t>=0;t--){var e=this.treeAdapter.getTagName(this.items[t]),n=this.treeAdapter.getNamespaceURI(this.items[t]);if((e===i.H1||e===i.H2||e===i.H3||e===i.H4||e===i.H5||e===i.H6)&&n===o.HTML)return!0;if(a(e,n))return!1}return!0},c.prototype.hasInListItemScope=function(t){for(var e=this.stackTop;e>=0;e--){var n=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===o.HTML)return!0;if((n===i.UL||n===i.OL)&&r===o.HTML||a(n,r))return!1}return!0},c.prototype.hasInButtonScope=function(t){for(var e=this.stackTop;e>=0;e--){var n=this.treeAdapter.getTagName(this.items[e]),r=this.treeAdapter.getNamespaceURI(this.items[e]);if(n===t&&r===o.HTML)return!0;if(n===i.BUTTON&&r===o.HTML||a(n,r))return!1}return!0},c.prototype.hasInTableScope=function(t){for(var e=this.stackTop;e>=0;e--){var n=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(n===t)return!0;if(n===i.TABLE||n===i.TEMPLATE||n===i.HTML)return!1}}return!0},c.prototype.hasTableBodyContextInTableScope=function(){for(var t=this.stackTop;t>=0;t--){var e=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===o.HTML){if(e===i.TBODY||e===i.THEAD||e===i.TFOOT)return!0;if(e===i.TABLE||e===i.HTML)return!1}}return!0},c.prototype.hasInSelectScope=function(t){for(var e=this.stackTop;e>=0;e--){var n=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===o.HTML){if(n===t)return!0;if(n!==i.OPTION&&n!==i.OPTGROUP)return!1}}return!0},c.prototype.generateImpliedEndTags=function(){for(;s(this.currentTagName);)this.pop()},c.prototype.generateImpliedEndTagsWithExclusion=function(t){for(;s(this.currentTagName)&&this.currentTagName!==t;)this.pop()}},{"../common/html":303}],313:[function(t,e,n){"use strict";var r=t("stream").Writable,i=t("util").inherits,o=t("./index"),s=e.exports=function(t){r.call(this),this.parser=new o(t),this.lastChunkWritten=!1,this.writeCallback=null,this.pausedByScript=!1,this.document=this.parser.treeAdapter.createDocument(),this.pendingHtmlInsertions=[],this._resume=this._resume.bind(this),this._documentWrite=this._documentWrite.bind(this),this._scriptHandler=this._scriptHandler.bind(this),this.parser._bootstrap(this.document,null)};i(s,r),s.prototype._write=function(t,e,n){this.writeCallback=n,this.parser.tokenizer.write(t.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()},s.prototype.end=function(t,e,n){this.lastChunkWritten=!0,r.prototype.end.call(this,t||"",e,n)},s.prototype._runParsingLoop=function(){this.parser.runParsingLoopForCurrentChunk(this.writeCallback,this._scriptHandler)},s.prototype._resume=function(){if(!this.pausedByScript)throw new Error("Parser was already resumed");for(;this.pendingHtmlInsertions.length;){var t=this.pendingHtmlInsertions.pop();this.parser.tokenizer.insertHtmlAtCurrentPos(t)}this.pausedByScript=!1,this.parser.tokenizer.active&&this._runParsingLoop()},s.prototype._documentWrite=function(t){this.parser.stopped||this.pendingHtmlInsertions.push(t)},s.prototype._scriptHandler=function(t){this.listeners("script").length?(this.pausedByScript=!0,this.emit("script",t,this._documentWrite,this._resume)):this._runParsingLoop()}},{"./index":311,stream:27,util:32}],314:[function(t,e,n){"use strict";var r=t("./parser_stream"),i=t("util").inherits,o=t("../common/html").TAG_NAMES;i(e.exports=function(t){r.call(this,t),this.parser._insertFakeElement(o.HTML),this.parser._insertFakeElement(o.HEAD),this.parser.openElements.pop(),this.parser._insertFakeElement(o.BODY),this.parser._insertFakeElement(o.PRE),this.parser.treeAdapter.insertText(this.parser.openElements.current,"\n"),this.parser.switchToPlaintextParsing()},r)},{"../common/html":303,"./parser_stream":313,util:32}],315:[function(t,e,n){"use strict";var r=t("stream").Writable,i=t("util"),o=e.exports=function(){r.call(this)};i.inherits(o,r),o.prototype._write=function(t,e,n){n()}},{stream:27,util:32}],316:[function(t,e,n){"use strict";var r=t("stream").Transform,i=t("./dev_null_stream"),o=t("util").inherits,s=t("../tokenizer"),a=t("../extensions/location_info/tokenizer_mixin"),c=t("./parser_feedback_simulator"),u=t("../utils/merge_options"),l={locationInfo:!1},h=e.exports=function(t){r.call(this),this.options=u(l,t),this.tokenizer=new s(t),this.options.locationInfo&&new a(this.tokenizer),this.parserFeedbackSimulator=new c(this.tokenizer),this.pendingText=null,this.currentTokenLocation=void 0,this.lastChunkWritten=!1,this.stopped=!1,this.pipe(new i)};o(h,r),h.prototype._transform=function(t,e,n){this.stopped||(this.tokenizer.write(t.toString("utf8"),this.lastChunkWritten),this._runParsingLoop()),this.push(t),n()},h.prototype._flush=function(t){t()},h.prototype.end=function(t,e,n){this.lastChunkWritten=!0,r.prototype.end.call(this,t,e,n)},h.prototype.stop=function(){this.stopped=!0},h.prototype._runParsingLoop=function(){do{var t=this.parserFeedbackSimulator.getNextToken();if(t.type===s.HIBERNATION_TOKEN)break;t.type===s.CHARACTER_TOKEN||t.type===s.WHITESPACE_CHARACTER_TOKEN||t.type===s.NULL_CHARACTER_TOKEN?(this.options.locationInfo&&(null===this.pendingText?this.currentTokenLocation=t.location:this.currentTokenLocation.endOffset=t.location.endOffset),this.pendingText=(this.pendingText||"")+t.chars):(this._emitPendingText(),this._handleToken(t))}while(!this.stopped&&t.type!==s.EOF_TOKEN)},h.prototype._handleToken=function(t){this.options.locationInfo&&(this.currentTokenLocation=t.location),t.type===s.START_TAG_TOKEN?this.emit("startTag",t.tagName,t.attrs,t.selfClosing,this.currentTokenLocation):t.type===s.END_TAG_TOKEN?this.emit("endTag",t.tagName,this.currentTokenLocation):t.type===s.COMMENT_TOKEN?this.emit("comment",t.data,this.currentTokenLocation):t.type===s.DOCTYPE_TOKEN&&this.emit("doctype",t.name,t.publicId,t.systemId,this.currentTokenLocation)},h.prototype._emitPendingText=function(){null!==this.pendingText&&(this.emit("text",this.pendingText,this.currentTokenLocation),this.pendingText=null)}},{"../extensions/location_info/tokenizer_mixin":307,"../tokenizer":320,"../utils/merge_options":325,"./dev_null_stream":315,"./parser_feedback_simulator":317,stream:27,util:32}],317:[function(t,e,n){"use strict";var r=t("../tokenizer"),i=t("../common/foreign_content"),o=t("../common/unicode"),s=t("../common/html"),a=s.TAG_NAMES,c=s.NAMESPACES,u=e.exports=function(t){this.tokenizer=t,this.namespaceStack=[],this.namespaceStackTop=-1,this._enterNamespace(c.HTML)};u.prototype.getNextToken=function(){var t=this.tokenizer.getNextToken();if(t.type===r.START_TAG_TOKEN)this._handleStartTagToken(t);else if(t.type===r.END_TAG_TOKEN)this._handleEndTagToken(t);else if(t.type===r.NULL_CHARACTER_TOKEN&&this.inForeignContent)t.type=r.CHARACTER_TOKEN,t.chars=o.REPLACEMENT_CHARACTER;else if(this.skipNextNewLine&&(t.type!==r.HIBERNATION_TOKEN&&(this.skipNextNewLine=!1),t.type===r.WHITESPACE_CHARACTER_TOKEN&&"\n"===t.chars[0])){if(1===t.chars.length)return this.getNextToken();t.chars=t.chars.substr(1)}return t},u.prototype._enterNamespace=function(t){this.namespaceStackTop++,this.namespaceStack.push(t),this.inForeignContent=t!==c.HTML,this.currentNamespace=t,this.tokenizer.allowCDATA=this.inForeignContent},u.prototype._leaveCurrentNamespace=function(){this.namespaceStackTop--,this.namespaceStack.pop(),this.currentNamespace=this.namespaceStack[this.namespaceStackTop],this.inForeignContent=this.currentNamespace!==c.HTML,this.tokenizer.allowCDATA=this.inForeignContent},u.prototype._ensureTokenizerMode=function(t){t===a.TEXTAREA||t===a.TITLE?this.tokenizer.state=r.MODE.RCDATA:t===a.PLAINTEXT?this.tokenizer.state=r.MODE.PLAINTEXT:t===a.SCRIPT?this.tokenizer.state=r.MODE.SCRIPT_DATA:t!==a.STYLE&&t!==a.IFRAME&&t!==a.XMP&&t!==a.NOEMBED&&t!==a.NOFRAMES&&t!==a.NOSCRIPT||(this.tokenizer.state=r.MODE.RAWTEXT)},u.prototype._handleStartTagToken=function(t){var e=t.tagName;if(e===a.SVG?this._enterNamespace(c.SVG):e===a.MATH&&this._enterNamespace(c.MATHML),this.inForeignContent){if(i.causesExit(t))return void this._leaveCurrentNamespace();var n=this.currentNamespace;n===c.MATHML?i.adjustTokenMathMLAttrs(t):n===c.SVG&&(i.adjustTokenSVGTagName(t),i.adjustTokenSVGAttrs(t)),i.adjustTokenXMLAttrs(t),e=t.tagName,!t.selfClosing&&i.isIntegrationPoint(e,n,t.attrs)&&this._enterNamespace(c.HTML)}else e===a.PRE||e===a.TEXTAREA||e===a.LISTING?this.skipNextNewLine=!0:e===a.IMAGE&&(t.tagName=a.IMG),this._ensureTokenizerMode(e)},u.prototype._handleEndTagToken=function(t){var e=t.tagName;if(this.inForeignContent)(e===a.SVG&&this.currentNamespace===c.SVG||e===a.MATH&&this.currentNamespace===c.MATHML)&&this._leaveCurrentNamespace();else{var n=this.namespaceStack[this.namespaceStackTop-1];n===c.SVG&&i.SVG_TAG_NAMES_ADJUSTMENT_MAP[e]&&(e=i.SVG_TAG_NAMES_ADJUSTMENT_MAP[e]),i.isIntegrationPoint(e,n,t.attrs)&&this._leaveCurrentNamespace()}this.currentNamespace===c.SVG&&i.adjustTokenSVGTagName(t)}},{"../common/foreign_content":302,"../common/html":303,"../common/unicode":304,"../tokenizer":320}],318:[function(t,e,n){"use strict";var r=t("../tree_adapters/default"),i=t("../utils/merge_options"),o=t("../common/doctype"),s=t("../common/html"),a=s.TAG_NAMES,c=s.NAMESPACES,u={treeAdapter:r},l=/&/g,h=/\u00a0/g,p=/"/g,f=//g,d=e.exports=function(t,e){this.options=i(u,e),this.treeAdapter=this.options.treeAdapter,this.html="",this.startNode=t};d.escapeString=function(t,e){return t=t.replace(l,"&").replace(h," "),t=e?t.replace(p,"""):t.replace(f,"<").replace(_,">")},d.prototype.serialize=function(){return this._serializeChildNodes(this.startNode),this.html},d.prototype._serializeChildNodes=function(t){var e=this.treeAdapter.getChildNodes(t);if(e)for(var n=0,r=e.length;n",e!==a.AREA&&e!==a.BASE&&e!==a.BASEFONT&&e!==a.BGSOUND&&e!==a.BR&&e!==a.BR&&e!==a.COL&&e!==a.EMBED&&e!==a.FRAME&&e!==a.HR&&e!==a.IMG&&e!==a.INPUT&&e!==a.KEYGEN&&e!==a.LINK&&e!==a.MENUITEM&&e!==a.META&&e!==a.PARAM&&e!==a.SOURCE&&e!==a.TRACK&&e!==a.WBR){var r=e===a.TEMPLATE&&n===c.HTML?this.treeAdapter.getTemplateContent(t):t;this._serializeChildNodes(r),this.html+=""}},d.prototype._serializeAttributes=function(t){for(var e=this.treeAdapter.getAttrList(t),n=0,r=e.length;n"}},{"../common/doctype":301,"../common/html":303,"../tree_adapters/default":323,"../utils/merge_options":325}],319:[function(t,e,n){"use strict";var r=t("stream").Readable,i=t("util").inherits,o=t("./index"),s=e.exports=function(t,e){r.call(this),this.serializer=new o(t,e),Object.defineProperty(this.serializer,"html",{get:function(){return""},set:this.push.bind(this)})};i(s,r),s.prototype._read=function(){this.serializer.serialize(),this.push(null)}},{"./index":318,stream:27,util:32}],320:[function(t,e,n){"use strict";var r=t("./preprocessor"),i=t("../common/unicode"),o=t("./named_entity_data"),s=i.CODE_POINTS,a=i.CODE_POINT_SEQUENCES,c={0:65533,13:13,128:8364,129:129,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,141:141,142:381,143:143,144:144,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,157:157,158:382,159:376},u="DATA_STATE";function l(t){return t===s.SPACE||t===s.LINE_FEED||t===s.TABULATION||t===s.FORM_FEED}function h(t){return t>=s.DIGIT_0&&t<=s.DIGIT_9}function p(t){return t>=s.LATIN_CAPITAL_A&&t<=s.LATIN_CAPITAL_Z}function f(t){return t>=s.LATIN_SMALL_A&&t<=s.LATIN_SMALL_Z}function _(t){return f(t)||p(t)}function d(t,e){return h(t)||e&&(t>=s.LATIN_CAPITAL_A&&t<=s.LATIN_CAPITAL_F||t>=s.LATIN_SMALL_A&&t<=s.LATIN_SMALL_F)}function m(t){return t+32}function T(t){return t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(t>>>10&1023|55296)+String.fromCharCode(56320|1023&t))}function E(t){return String.fromCharCode(m(t))}function g(t,e){for(var n=o[++t],r=++t,i=r+n-1;r<=i;){var s=r+i>>>1,a=o[s];if(ae))return o[s+n];i=s-1}}return-1}var A=e.exports=function(){this.preprocessor=new r,this.tokenQueue=[],this.allowCDATA=!1,this.state=u,this.returnState="",this.tempBuff=[],this.additionalAllowedCp=void 0,this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null};A.CHARACTER_TOKEN="CHARACTER_TOKEN",A.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN",A.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN",A.START_TAG_TOKEN="START_TAG_TOKEN",A.END_TAG_TOKEN="END_TAG_TOKEN",A.COMMENT_TOKEN="COMMENT_TOKEN",A.DOCTYPE_TOKEN="DOCTYPE_TOKEN",A.EOF_TOKEN="EOF_TOKEN",A.HIBERNATION_TOKEN="HIBERNATION_TOKEN",A.MODE={DATA:u,RCDATA:"RCDATA_STATE",RAWTEXT:"RAWTEXT_STATE",SCRIPT_DATA:"SCRIPT_DATA_STATE",PLAINTEXT:"PLAINTEXT_STATE"},A.getTokenAttr=function(t,e){for(var n=t.attrs.length-1;n>=0;n--)if(t.attrs[n].name===e)return t.attrs[n].value;return null},A.prototype.getNextToken=function(){for(;!this.tokenQueue.length&&this.active;){this._hibernationSnapshot();var t=this._consume();this._ensureHibernation()||this[this.state](t)}return this.tokenQueue.shift()},A.prototype.write=function(t,e){this.active=!0,this.preprocessor.write(t,e)},A.prototype.insertHtmlAtCurrentPos=function(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t)},A.prototype._hibernationSnapshot=function(){this.consumedAfterSnapshot=0},A.prototype._ensureHibernation=function(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:A.HIBERNATION_TOKEN}),!0}return!1},A.prototype._consume=function(){return this.consumedAfterSnapshot++,this.preprocessor.advance()},A.prototype._unconsume=function(){this.consumedAfterSnapshot--,this.preprocessor.retreat()},A.prototype._unconsumeSeveral=function(t){for(;t--;)this._unconsume()},A.prototype._reconsumeInState=function(t){this.state=t,this._unconsume()},A.prototype._consumeSubsequentIfMatch=function(t,e,n){for(var r=0,i=!0,o=t.length,a=0,c=e,u=void 0;a0&&(c=this._consume(),r++),c===s.EOF){i=!1;break}if(c!==(u=t[a])&&(n||c!==m(u))){i=!1;break}}return i||this._unconsumeSeveral(r),i},A.prototype._lookahead=function(){var t=this._consume();return this._unconsume(),t},A.prototype.isTempBufferEqualToScriptString=function(){if(this.tempBuff.length!==a.SCRIPT_STRING.length)return!1;for(var t=0;t=55296&&r<=57343||r>1114111?s.REPLACEMENT_CHARACTER:i)},A.prototype._consumeNamedEntity=function(t){for(var e=null,n=0,r=null,i=0,a=!1,c=0;c>-1;){var u=o[c],l=u<7;if(l&&1&u&&(e=2&u?[o[++c],o[++c]]:[o[++c]],n=i,r===s.SEMICOLON)){a=!0;break}if(i++,(r=this._consume())===s.EOF)break;c=l?4&u?g(c,r):-1:r===u?++c:-1}if(e){if(!a&&(this._unconsumeSeveral(i-n),t)){var p=this._lookahead();if(p===s.EQUALS_SIGN||function(t){return _(t)||h(t)}(p))return this._unconsumeSeveral(n),null}return e}return this._unconsumeSeveral(i),null},A.prototype._consumeCharacterReference=function(t,e){if(l(t)||t===s.GREATER_THAN_SIGN||t===s.AMPERSAND||t===this.additionalAllowedCp||t===s.EOF)return this._unconsume(),null;if(t===s.NUMBER_SIGN){var n=!1,r=this._lookahead();return r!==s.LATIN_SMALL_X&&r!==s.LATIN_CAPITAL_X||(this._consume(),n=!0),(r=this._lookahead())!==s.EOF&&d(r,n)?[this._consumeNumericEntity(n)]:(this._unconsumeSeveral(n?2:1),null)}return this._unconsume(),this._consumeNamedEntity(e)};var y=A.prototype;y.DATA_STATE=function(t){this.preprocessor.dropParsedChunk(),t===s.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_DATA_STATE":t===s.LESS_THAN_SIGN?this.state="TAG_OPEN_STATE":t===s.NULL?this._emitCodePoint(t):t===s.EOF?this._emitEOFToken():this._emitCodePoint(t)},y.CHARACTER_REFERENCE_IN_DATA_STATE=function(t){this.additionalAllowedCp=void 0;var e=this._consumeCharacterReference(t,!1);this._ensureHibernation()||(e?this._emitSeveralCodePoints(e):this._emitChar("&"),this.state=u)},y.RCDATA_STATE=function(t){this.preprocessor.dropParsedChunk(),t===s.AMPERSAND?this.state="CHARACTER_REFERENCE_IN_RCDATA_STATE":t===s.LESS_THAN_SIGN?this.state="RCDATA_LESS_THAN_SIGN_STATE":t===s.NULL?this._emitChar(i.REPLACEMENT_CHARACTER):t===s.EOF?this._emitEOFToken():this._emitCodePoint(t)},y.CHARACTER_REFERENCE_IN_RCDATA_STATE=function(t){this.additionalAllowedCp=void 0;var e=this._consumeCharacterReference(t,!1);this._ensureHibernation()||(e?this._emitSeveralCodePoints(e):this._emitChar("&"),this.state="RCDATA_STATE")},y.RAWTEXT_STATE=function(t){this.preprocessor.dropParsedChunk(),t===s.LESS_THAN_SIGN?this.state="RAWTEXT_LESS_THAN_SIGN_STATE":t===s.NULL?this._emitChar(i.REPLACEMENT_CHARACTER):t===s.EOF?this._emitEOFToken():this._emitCodePoint(t)},y.SCRIPT_DATA_STATE=function(t){this.preprocessor.dropParsedChunk(),t===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_LESS_THAN_SIGN_STATE":t===s.NULL?this._emitChar(i.REPLACEMENT_CHARACTER):t===s.EOF?this._emitEOFToken():this._emitCodePoint(t)},y.PLAINTEXT_STATE=function(t){this.preprocessor.dropParsedChunk(),t===s.NULL?this._emitChar(i.REPLACEMENT_CHARACTER):t===s.EOF?this._emitEOFToken():this._emitCodePoint(t)},y.TAG_OPEN_STATE=function(t){t===s.EXCLAMATION_MARK?this.state="MARKUP_DECLARATION_OPEN_STATE":t===s.SOLIDUS?this.state="END_TAG_OPEN_STATE":_(t)?(this._createStartTagToken(),this._reconsumeInState("TAG_NAME_STATE")):t===s.QUESTION_MARK?this._reconsumeInState("BOGUS_COMMENT_STATE"):(this._emitChar("<"),this._reconsumeInState(u))},y.END_TAG_OPEN_STATE=function(t){_(t)?(this._createEndTagToken(),this._reconsumeInState("TAG_NAME_STATE")):t===s.GREATER_THAN_SIGN?this.state=u:t===s.EOF?(this._reconsumeInState(u),this._emitChar("<"),this._emitChar("/")):this._reconsumeInState("BOGUS_COMMENT_STATE")},y.TAG_NAME_STATE=function(t){l(t)?this.state="BEFORE_ATTRIBUTE_NAME_STATE":t===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":t===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):p(t)?this.currentToken.tagName+=E(t):t===s.NULL?this.currentToken.tagName+=i.REPLACEMENT_CHARACTER:t===s.EOF?this._reconsumeInState(u):this.currentToken.tagName+=T(t)},y.RCDATA_LESS_THAN_SIGN_STATE=function(t){t===s.SOLIDUS?(this.tempBuff=[],this.state="RCDATA_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RCDATA_STATE"))},y.RCDATA_END_TAG_OPEN_STATE=function(t){_(t)?(this._createEndTagToken(),this._reconsumeInState("RCDATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RCDATA_STATE"))},y.RCDATA_END_TAG_NAME_STATE=function(t){if(p(t))this.currentToken.tagName+=E(t),this.tempBuff.push(t);else if(f(t))this.currentToken.tagName+=T(t),this.tempBuff.push(t);else{if(this._isAppropriateEndTagToken()){if(l(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===s.GREATER_THAN_SIGN)return this.state=u,void this._emitCurrentToken()}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RCDATA_STATE")}},y.RAWTEXT_LESS_THAN_SIGN_STATE=function(t){t===s.SOLIDUS?(this.tempBuff=[],this.state="RAWTEXT_END_TAG_OPEN_STATE"):(this._emitChar("<"),this._reconsumeInState("RAWTEXT_STATE"))},y.RAWTEXT_END_TAG_OPEN_STATE=function(t){_(t)?(this._createEndTagToken(),this._reconsumeInState("RAWTEXT_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("RAWTEXT_STATE"))},y.RAWTEXT_END_TAG_NAME_STATE=function(t){if(p(t))this.currentToken.tagName+=E(t),this.tempBuff.push(t);else if(f(t))this.currentToken.tagName+=T(t),this.tempBuff.push(t);else{if(this._isAppropriateEndTagToken()){if(l(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("RAWTEXT_STATE")}},y.SCRIPT_DATA_LESS_THAN_SIGN_STATE=function(t){t===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_END_TAG_OPEN_STATE"):t===s.EXCLAMATION_MARK?(this.state="SCRIPT_DATA_ESCAPE_START_STATE",this._emitChar("<"),this._emitChar("!")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_STATE"))},y.SCRIPT_DATA_END_TAG_OPEN_STATE=function(t){_(t)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_STATE"))},y.SCRIPT_DATA_END_TAG_NAME_STATE=function(t){if(p(t))this.currentToken.tagName+=E(t),this.tempBuff.push(t);else if(f(t))this.currentToken.tagName+=T(t),this.tempBuff.push(t);else{if(this._isAppropriateEndTagToken()){if(l(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_STATE")}},y.SCRIPT_DATA_ESCAPE_START_STATE=function(t){t===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPE_START_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},y.SCRIPT_DATA_ESCAPE_START_DASH_STATE=function(t){t===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):this._reconsumeInState("SCRIPT_DATA_STATE")},y.SCRIPT_DATA_ESCAPED_STATE=function(t){t===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_STATE",this._emitChar("-")):t===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":t===s.NULL?this._emitChar(i.REPLACEMENT_CHARACTER):t===s.EOF?this._reconsumeInState(u):this._emitCodePoint(t)},y.SCRIPT_DATA_ESCAPED_DASH_STATE=function(t){t===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):t===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":t===s.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(i.REPLACEMENT_CHARACTER)):t===s.EOF?this._reconsumeInState(u):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(t))},y.SCRIPT_DATA_ESCAPED_DASH_DASH_STATE=function(t){t===s.HYPHEN_MINUS?this._emitChar("-"):t===s.LESS_THAN_SIGN?this.state="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE":t===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):t===s.NULL?(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitChar(i.REPLACEMENT_CHARACTER)):t===s.EOF?this._reconsumeInState(u):(this.state="SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(t))},y.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE=function(t){t===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE"):_(t)?(this.tempBuff=[],this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE")):(this._emitChar("<"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},y.SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE=function(t){_(t)?(this._createEndTagToken(),this._reconsumeInState("SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE")):(this._emitChar("<"),this._emitChar("/"),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE"))},y.SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE=function(t){if(p(t))this.currentToken.tagName+=E(t),this.tempBuff.push(t);else if(f(t))this.currentToken.tagName+=T(t),this.tempBuff.push(t);else{if(this._isAppropriateEndTagToken()){if(l(t))return void(this.state="BEFORE_ATTRIBUTE_NAME_STATE");if(t===s.SOLIDUS)return void(this.state="SELF_CLOSING_START_TAG_STATE");if(t===s.GREATER_THAN_SIGN)return this._emitCurrentToken(),void(this.state=u)}this._emitChar("<"),this._emitChar("/"),this._emitSeveralCodePoints(this.tempBuff),this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")}},y.SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE=function(t){l(t)||t===s.SOLIDUS||t===s.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_DOUBLE_ESCAPED_STATE":"SCRIPT_DATA_ESCAPED_STATE",this._emitCodePoint(t)):p(t)?(this.tempBuff.push(m(t)),this._emitCodePoint(t)):f(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState("SCRIPT_DATA_ESCAPED_STATE")},y.SCRIPT_DATA_DOUBLE_ESCAPED_STATE=function(t){t===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",this._emitChar("-")):t===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):t===s.NULL?this._emitChar(i.REPLACEMENT_CHARACTER):t===s.EOF?this._reconsumeInState(u):this._emitCodePoint(t)},y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE=function(t){t===s.HYPHEN_MINUS?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",this._emitChar("-")):t===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):t===s.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(i.REPLACEMENT_CHARACTER)):t===s.EOF?this._reconsumeInState(u):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(t))},y.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE=function(t){t===s.HYPHEN_MINUS?this._emitChar("-"):t===s.LESS_THAN_SIGN?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",this._emitChar("<")):t===s.GREATER_THAN_SIGN?(this.state="SCRIPT_DATA_STATE",this._emitChar(">")):t===s.NULL?(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitChar(i.REPLACEMENT_CHARACTER)):t===s.EOF?this._reconsumeInState(u):(this.state="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(t))},y.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE=function(t){t===s.SOLIDUS?(this.tempBuff=[],this.state="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",this._emitChar("/")):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},y.SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE=function(t){l(t)||t===s.SOLIDUS||t===s.GREATER_THAN_SIGN?(this.state=this.isTempBufferEqualToScriptString()?"SCRIPT_DATA_ESCAPED_STATE":"SCRIPT_DATA_DOUBLE_ESCAPED_STATE",this._emitCodePoint(t)):p(t)?(this.tempBuff.push(m(t)),this._emitCodePoint(t)):f(t)?(this.tempBuff.push(t),this._emitCodePoint(t)):this._reconsumeInState("SCRIPT_DATA_DOUBLE_ESCAPED_STATE")},y.BEFORE_ATTRIBUTE_NAME_STATE=function(t){l(t)||(t===s.SOLIDUS||t===s.GREATER_THAN_SIGN||t===s.EOF?this._reconsumeInState("AFTER_ATTRIBUTE_NAME_STATE"):t===s.EQUALS_SIGN?(this._createAttr("="),this.state="ATTRIBUTE_NAME_STATE"):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},y.ATTRIBUTE_NAME_STATE=function(t){l(t)||t===s.SOLIDUS||t===s.GREATER_THAN_SIGN||t===s.EOF?(this._leaveAttrName("AFTER_ATTRIBUTE_NAME_STATE"),this._unconsume()):t===s.EQUALS_SIGN?this._leaveAttrName("BEFORE_ATTRIBUTE_VALUE_STATE"):p(t)?this.currentAttr.name+=E(t):t===s.QUOTATION_MARK||t===s.APOSTROPHE||t===s.LESS_THAN_SIGN?this.currentAttr.name+=T(t):t===s.NULL?this.currentAttr.name+=i.REPLACEMENT_CHARACTER:this.currentAttr.name+=T(t)},y.AFTER_ATTRIBUTE_NAME_STATE=function(t){l(t)||(t===s.SOLIDUS?this.state="SELF_CLOSING_START_TAG_STATE":t===s.EQUALS_SIGN?this.state="BEFORE_ATTRIBUTE_VALUE_STATE":t===s.GREATER_THAN_SIGN?(this.state=u,this._emitCurrentToken()):t===s.EOF?this._reconsumeInState(u):(this._createAttr(""),this._reconsumeInState("ATTRIBUTE_NAME_STATE")))},y.BEFORE_ATTRIBUTE_VALUE_STATE=function(t){l(t)||(t===s.QUOTATION_MARK?this.state="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE":t===s.APOSTROPHE?this.state="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE":this._reconsumeInState("ATTRIBUTE_VALUE_UNQUOTED_STATE"))},y.ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE=function(t){t===s.QUOTATION_MARK?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":t===s.AMPERSAND?(this.additionalAllowedCp=s.QUOTATION_MARK,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):t===s.NULL?this.currentAttr.value+=i.REPLACEMENT_CHARACTER:t===s.EOF?this._reconsumeInState(u):this.currentAttr.value+=T(t)},y.ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE=function(t){t===s.APOSTROPHE?this.state="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE":t===s.AMPERSAND?(this.additionalAllowedCp=s.APOSTROPHE,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):t===s.NULL?this.currentAttr.value+=i.REPLACEMENT_CHARACTER:t===s.EOF?this._reconsumeInState(u):this.currentAttr.value+=T(t)},y.ATTRIBUTE_VALUE_UNQUOTED_STATE=function(t){l(t)?this._leaveAttrValue("BEFORE_ATTRIBUTE_NAME_STATE"):t===s.AMPERSAND?(this.additionalAllowedCp=s.GREATER_THAN_SIGN,this.returnState=this.state,this.state="CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE"):t===s.GREATER_THAN_SIGN?(this._leaveAttrValue(u),this._emitCurrentToken()):t===s.NULL?this.currentAttr.value+=i.REPLACEMENT_CHARACTER:t===s.QUOTATION_MARK||t===s.APOSTROPHE||t===s.LESS_THAN_SIGN||t===s.EQUALS_SIGN||t===s.GRAVE_ACCENT?this.currentAttr.value+=T(t):t===s.EOF?this._reconsumeInState(u):this.currentAttr.value+=T(t)},y.CHARACTER_REFERENCE_IN_ATTRIBUTE_VALUE_STATE=function(t){var e=this._consumeCharacterReference(t,!0);if(!this._ensureHibernation()){if(e)for(var n=0;nthis.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])},i.prototype._addGap=function(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos},i.prototype._processHighRangeCodePoint=function(t){if(this.pos!==this.lastCharPos){var e=this.html.charCodeAt(this.pos+1);i=e,(n=t)>=55296&&n<=56319&&i>=56320&&i<=57343&&(this.pos++,t=function(t,e){return 1024*(t-55296)+9216+e}(t,e),this._addGap())}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,r.EOF;var n,i;return t},i.prototype.write=function(t,e){this.html?this.html+=t:this.html=t,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=e},i.prototype.insertHtmlAtCurrentPos=function(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1},i.prototype.advance=function(){if(this.pos++,this.pos>this.lastCharPos)return this.lastChunkWritten||(this.endOfChunkHit=!0),r.EOF;var t=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&t===r.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):t===r.CARRIAGE_RETURN?(this.skipNextNewLine=!0,r.LINE_FEED):(this.skipNextNewLine=!1,t>=55296?this._processHighRangeCodePoint(t):t)},i.prototype.retreat=function(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}},{"../common/unicode":304}],323:[function(t,e,n){"use strict";var r=t("../common/html").DOCUMENT_MODE;n.createDocument=function(){return{nodeName:"#document",mode:r.NO_QUIRKS,childNodes:[]}},n.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}},n.createElement=function(t,e,n){return{nodeName:t,tagName:t,attrs:n,namespaceURI:e,childNodes:[],parentNode:null}},n.createCommentNode=function(t){return{nodeName:"#comment",data:t,parentNode:null}};var i=function(t){return{nodeName:"#text",value:t,parentNode:null}},o=n.appendChild=function(t,e){t.childNodes.push(e),e.parentNode=t},s=n.insertBefore=function(t,e,n){var r=t.childNodes.indexOf(n);t.childNodes.splice(r,0,e),e.parentNode=t};n.setTemplateContent=function(t,e){t.content=e},n.getTemplateContent=function(t){return t.content},n.setDocumentType=function(t,e,n,r){for(var i=null,s=0;s (mat.io)",license:"MIT",keywords:["htmlparser","jquery","selector","scraper","parser","html"],repository:{type:"git",url:"git://github.com/cheeriojs/cheerio.git"},main:"./index.js",files:["index.js","lib"],engines:{node:">= 0.6"},dependencies:{"css-select":"~1.2.0","dom-serializer":"~0.1.0",entities:"~1.1.1",htmlparser2:"^3.9.1",lodash:"^4.15.0",parse5:"^3.0.1"},devDependencies:{benchmark:"^2.1.0",coveralls:"^2.11.9","expect.js":"~0.3.1",istanbul:"^0.4.3",jquery:"^3.0.0",jsdom:"^9.2.1",jshint:"^2.9.2",mocha:"^3.1.2",xyz:"~1.1.0"},scripts:{},readme:"

cheerio

\n\n
Fast, flexible & lean implementation of core jQuery designed specifically for the server.
\n\n\n\n
\n\n```js\nconst cheerio = require('cheerio')\nconst $ = cheerio.load('

Hello world

')\n\n$('h2.title').text('Hello there!')\n$('h2').addClass('welcome')\n\n$.html()\n//=>

Hello there!

\n```\n\n## Installation\n`npm install cheerio`\n\n## Features\n__❤ Familiar syntax:__\nCheerio implements a subset of core jQuery. Cheerio removes all the DOM inconsistencies and browser cruft from the jQuery library, revealing its truly gorgeous API.\n\n__ϟ Blazingly fast:__\nCheerio works with a very simple, consistent DOM model. As a result parsing, manipulating, and rendering are incredibly efficient. Preliminary end-to-end benchmarks suggest that cheerio is about __8x__ faster than JSDOM.\n\n__❁ Incredibly flexible:__\nCheerio wraps around [parse5](https://github.com/inikulin/parse5) parser and can optionally use @FB55's forgiving [htmlparser2](https://github.com/fb55/htmlparser2/). Cheerio can parse nearly any HTML or XML document.\n\n## Cheerio is not a web browser\n\nCheerio parses markup and provides an API for traversing/manipulating the resulting data structure. It does not interpret the result as a web browser does. Specifically, it does *not* produce a visual rendering, apply CSS, load external resources, or execute JavaScript. If your use case requires any of this functionality, you should consider projects like [PhantomJS](http://phantomjs.org/) or [JSDom](https://github.com/tmpvar/jsdom).\n\n## Job Board\n\nLooking for a career upgrade? Check out the available Node.js & Javascript positions at these innovative companies:\n\n\n\n\n\n## API\n\n### Markup example we'll be using:\n\n```html\n
    \n
  • Apple
  • \n
  • Orange
  • \n
  • Pear
  • \n
\n```\n\nThis is the HTML markup we will be using in all of the API examples.\n\n### Loading\nFirst you need to load in the HTML. This step in jQuery is implicit, since jQuery operates on the one, baked-in DOM. With Cheerio, we need to pass in the HTML document.\n\nThis is the _preferred_ method:\n\n```js\nconst cheerio = require('cheerio');\nconst $ = cheerio.load('
    ...
');\n```\n\nOptionally, you can also load in the HTML by passing the string as the context:\n\n```js\nconst $ = require('cheerio');\n$('ul', '
    ...
');\n```\n\nOr as the root:\n\n```js\nconst $ = require('cheerio');\n$('li', 'ul', '
    ...
');\n```\n\nIf you need to modify parsing options for XML input, you may pass an extra\nobject to `.load()`:\n\n```js\nconst $ = cheerio.load('
    ...
', {\n xml: {\n normalizeWhitespace: true,\n }\n});\n```\n\nThe options in the `xml` object are taken directly from [htmlparser2](https://github.com/fb55/htmlparser2/wiki/Parser-options), therefore any options that can be used in `htmlparser2` are valid in cheerio as well. The default options are:\n\n```js\n{\n withDomLvl1: true,\n normalizeWhitespace: false,\n xmlMode: true,\n decodeEntities: true\n}\n```\n\nFor a full list of options and their effects, see [this](https://github.com/fb55/DomHandler) and\n[htmlparser2's options](https://github.com/fb55/htmlparser2/wiki/Parser-options).\n\nSome users may wish to parse markup with the `htmlparser2` library, and\ntraverse/manipulate the resulting structure with Cheerio. This may be the case\nfor those upgrading from pre-1.0 releases of Cheerio (which relied on\n`htmlparser2`), for those dealing with invalid markup (because `htmlparser2` is\nmore forgiving), or for those operating in performance-critical situations\n(because `htmlparser2` may be faster in some cases). Note that \"more forgiving\"\nmeans `htmlparser2` has error-correcting mechanisms that aren't always a match\nfor the standards observed by web browsers. This behavior may be useful when\nparsing non-HTML content.\n\nTo support these cases, `load` also accepts a `htmlparser2`-compatible data\nstructure as its first argument. Users may install `htmlparser2`, use it to\nparse input, and pass the result to `load`:\n\n```js\n// Usage as of htmlparser2 version 3:\nconst htmlparser2 = require('htmlparser2');\nconst dom = htmlparser2.parseDOM(document, options);\n\nconst $ = cheerio.load(dom);\n```\n\n### Selectors\n\nCheerio's selector implementation is nearly identical to jQuery's, so the API is very similar.\n\n#### $( selector, [context], [root] )\n`selector` searches within the `context` scope which searches within the `root` scope. `selector` and `context` can be a string expression, DOM Element, array of DOM elements, or cheerio object. `root` is typically the HTML document string.\n\nThis selector method is the starting point for traversing and manipulating the document. Like jQuery, it's the primary method for selecting elements in the document, but unlike jQuery it's built on top of the CSSSelect library, which implements most of the Sizzle selectors.\n\n```js\n$('.apple', '#fruits').text()\n//=> Apple\n\n$('ul .pear').attr('class')\n//=> pear\n\n$('li[class=orange]').html()\n//=> Orange\n```\n\n### Attributes\nMethods for getting and modifying attributes.\n\n#### .attr( name, value )\nMethod for getting and setting attributes. Gets the attribute value for only the first element in the matched set. If you set an attribute's value to `null`, you remove that attribute. You may also pass a `map` and `function` like jQuery.\n\n```js\n$('ul').attr('id')\n//=> fruits\n\n$('.apple').attr('id', 'favorite').html()\n//=>
  • Apple
  • \n```\n\n> See http://api.jquery.com/attr/ for more information\n\n#### .prop( name, value )\nMethod for getting and setting properties. Gets the property value for only the first element in the matched set.\n\n```js\n$('input[type=\"checkbox\"]').prop('checked')\n//=> false\n\n$('input[type=\"checkbox\"]').prop('checked', true).val()\n//=> ok\n```\n\n> See http://api.jquery.com/prop/ for more information\n\n#### .data( name, value )\nMethod for getting and setting data attributes. Gets or sets the data attribute value for only the first element in the matched set.\n\n```js\n$('
    ').data()\n//=> { appleColor: 'red' }\n\n$('
    ').data('apple-color')\n//=> 'red'\n\nconst apple = $('.apple').data('kind', 'mac')\napple.data('kind')\n//=> 'mac'\n```\n\n> See http://api.jquery.com/data/ for more information\n\n#### .val( [value] )\nMethod for getting and setting the value of input, select, and textarea. Note: Support for `map`, and `function` has not been added yet.\n\n```js\n$('input[type=\"text\"]').val()\n//=> input_text\n\n$('input[type=\"text\"]').val('test').html()\n//=> \n```\n\n#### .removeAttr( name )\nMethod for removing attributes by `name`.\n\n```js\n$('.pear').removeAttr('class').html()\n//=>
  • Pear
  • \n```\n\n#### .hasClass( className )\nCheck to see if *any* of the matched elements have the given `className`.\n\n```js\n$('.pear').hasClass('pear')\n//=> true\n\n$('apple').hasClass('fruit')\n//=> false\n\n$('li').hasClass('pear')\n//=> true\n```\n\n#### .addClass( className )\nAdds class(es) to all of the matched elements. Also accepts a `function` like jQuery.\n\n```js\n$('.pear').addClass('fruit').html()\n//=>
  • Pear
  • \n\n$('.apple').addClass('fruit red').html()\n//=>
  • Apple
  • \n```\n\n> See http://api.jquery.com/addClass/ for more information.\n\n#### .removeClass( [className] )\nRemoves one or more space-separated classes from the selected elements. If no `className` is defined, all classes will be removed. Also accepts a `function` like jQuery.\n\n```js\n$('.pear').removeClass('pear').html()\n//=>
  • Pear
  • \n\n$('.apple').addClass('red').removeClass().html()\n//=>
  • Apple
  • \n```\n\n> See http://api.jquery.com/removeClass/ for more information.\n\n#### .toggleClass( className, [switch] )\nAdd or remove class(es) from the matched elements, depending on either the class's presence or the value of the switch argument. Also accepts a `function` like jQuery.\n\n```js\n$('.apple.green').toggleClass('fruit green red').html()\n//=>
  • Apple
  • \n\n$('.apple.green').toggleClass('fruit green red', true).html()\n//=>
  • Apple
  • \n```\n\n> See http://api.jquery.com/toggleClass/ for more information.\n\n#### .is( selector )\n#### .is( element )\n#### .is( selection )\n#### .is( function(index) )\nChecks the current list of elements and returns `true` if _any_ of the elements match the selector. If using an element or Cheerio selection, returns `true` if _any_ of the elements match. If using a predicate function, the function is executed in the context of the selected element, so `this` refers to the current element.\n\n### Forms\n\n#### .serializeArray()\n\nEncode a set of form elements as an array of names and values.\n\n```js\n$('
    ').serializeArray()\n//=> [ { name: 'foo', value: 'bar' } ]\n```\n\n### Traversing\n\n#### .find(selector)\n#### .find(selection)\n#### .find(node)\nGet the descendants of each element in the current set of matched elements, filtered by a selector, jQuery object, or element.\n\n```js\n$('#fruits').find('li').length\n//=> 3\n$('#fruits').find($('.apple')).length\n//=> 1\n```\n\n#### .parent([selector])\nGet the parent of each element in the current set of matched elements, optionally filtered by a selector.\n\n```js\n$('.pear').parent().attr('id')\n//=> fruits\n```\n\n#### .parents([selector])\nGet a set of parents filtered by `selector` of each element in the current set of match elements.\n```js\n$('.orange').parents().length\n// => 2\n$('.orange').parents('#fruits').length\n// => 1\n```\n\n#### .parentsUntil([selector][,filter])\nGet the ancestors of each element in the current set of matched elements, up to but not including the element matched by the selector, DOM node, or cheerio object.\n```js\n$('.orange').parentsUntil('#food').length\n// => 1\n```\n\n#### .closest(selector)\nFor each element in the set, get the first element that matches the selector by testing the element itself and traversing up through its ancestors in the DOM tree.\n\n```js\n$('.orange').closest()\n// => []\n$('.orange').closest('.apple')\n// => []\n$('.orange').closest('li')\n// => [
  • Orange
  • ]\n$('.orange').closest('#fruits')\n// => [
      ...
    ]\n```\n\n#### .next([selector])\nGets the next sibling of the first selected element, optionally filtered by a selector.\n\n```js\n$('.apple').next().hasClass('orange')\n//=> true\n```\n\n#### .nextAll([selector])\nGets all the following siblings of the first selected element, optionally filtered by a selector.\n\n```js\n$('.apple').nextAll()\n//=> [
  • Orange
  • ,
  • Pear
  • ]\n$('.apple').nextAll('.orange')\n//=> [
  • Orange
  • ]\n```\n\n#### .nextUntil([selector], [filter])\nGets all the following siblings up to but not including the element matched by the selector, optionally filtered by another selector.\n\n```js\n$('.apple').nextUntil('.pear')\n//=> [
  • Orange
  • ]\n```\n\n#### .prev([selector])\nGets the previous sibling of the first selected element optionally filtered by a selector.\n\n```js\n$('.orange').prev().hasClass('apple')\n//=> true\n```\n\n#### .prevAll([selector])\nGets all the preceding siblings of the first selected element, optionally filtered by a selector.\n\n```js\n$('.pear').prevAll()\n//=> [
  • Orange
  • ,
  • Apple
  • ]\n$('.pear').prevAll('.orange')\n//=> [
  • Orange
  • ]\n```\n\n#### .prevUntil([selector], [filter])\nGets all the preceding siblings up to but not including the element matched by the selector, optionally filtered by another selector.\n\n```js\n$('.pear').prevUntil('.apple')\n//=> [
  • Orange
  • ]\n```\n\n#### .slice( start, [end] )\nGets the elements matching the specified range\n\n```js\n$('li').slice(1).eq(0).text()\n//=> 'Orange'\n\n$('li').slice(1, 2).length\n//=> 1\n```\n\n#### .siblings([selector])\nGets the first selected element's siblings, excluding itself.\n\n```js\n$('.pear').siblings().length\n//=> 2\n\n$('.pear').siblings('.orange').length\n//=> 1\n\n```\n\n#### .children([selector])\nGets the children of the first selected element.\n\n```js\n$('#fruits').children().length\n//=> 3\n\n$('#fruits').children('.pear').text()\n//=> Pear\n```\n\n#### .contents()\nGets the children of each element in the set of matched elements, including text and comment nodes.\n\n```js\n$('#fruits').contents().length\n//=> 3\n```\n\n#### .each( function(index, element) )\nIterates over a cheerio object, executing a function for each matched element. When the callback is fired, the function is fired in the context of the DOM element, so `this` refers to the current element, which is equivalent to the function parameter `element`. To break out of the `each` loop early, return with `false`.\n\n```js\nconst fruits = [];\n\n$('li').each(function(i, elem) {\n fruits[i] = $(this).text();\n});\n\nfruits.join(', ');\n//=> Apple, Orange, Pear\n```\n\n#### .map( function(index, element) )\nPass each element in the current matched set through a function, producing a new Cheerio object containing the return values. The function can return an individual data item or an array of data items to be inserted into the resulting set. If an array is returned, the elements inside the array are inserted into the set. If the function returns null or undefined, no element will be inserted.\n\n```js\n$('li').map(function(i, el) {\n // this === el\n return $(this).text();\n}).get().join(' ');\n//=> \"apple orange pear\"\n```\n\n#### .filter( selector )
    .filter( selection )
    .filter( element )
    .filter( function(index, element) )\n\nIterates over a cheerio object, reducing the set of selector elements to those that match the selector or pass the function's test. When a Cheerio selection is specified, return only the elements contained in that selection. When an element is specified, return only that element (if it is contained in the original selection). If using the function method, the function is executed in the context of the selected element, so `this` refers to the current element.\n\nSelector:\n\n```js\n$('li').filter('.orange').attr('class');\n//=> orange\n```\n\nFunction:\n\n```js\n$('li').filter(function(i, el) {\n // this === el\n return $(this).attr('class') === 'orange';\n}).attr('class')\n//=> orange\n```\n\n#### .not( selector )
    .not( selection )
    .not( element )
    .not( function(index, elem) )\n\nRemove elements from the set of matched elements. Given a jQuery object that represents a set of DOM elements, the `.not()` method constructs a new jQuery object from a subset of the matching elements. The supplied selector is tested against each element; the elements that don't match the selector will be included in the result. The `.not()` method can take a function as its argument in the same way that `.filter()` does. Elements for which the function returns true are excluded from the filtered set; all other elements are included.\n\nSelector:\n\n```js\n$('li').not('.apple').length;\n//=> 2\n```\n\nFunction:\n\n```js\n$('li').not(function(i, el) {\n // this === el\n return $(this).attr('class') === 'orange';\n}).length;\n//=> 2\n```\n\n#### .has( selector )
    .has( element )\n\nFilters the set of matched elements to only those which have the given DOM element as a descendant or which have a descendant that matches the given selector. Equivalent to `.filter(':has(selector)')`.\n\nSelector:\n\n```js\n$('ul').has('.pear').attr('id');\n//=> fruits\n```\n\nElement:\n\n```js\n$('ul').has($('.pear')[0]).attr('id');\n//=> fruits\n```\n\n#### .first()\nWill select the first element of a cheerio object\n\n```js\n$('#fruits').children().first().text()\n//=> Apple\n```\n\n#### .last()\nWill select the last element of a cheerio object\n\n```js\n$('#fruits').children().last().text()\n//=> Pear\n```\n\n#### .eq( i )\nReduce the set of matched elements to the one at the specified index. Use `.eq(-i)` to count backwards from the last selected element.\n\n```js\n$('li').eq(0).text()\n//=> Apple\n\n$('li').eq(-1).text()\n//=> Pear\n```\n\n#### .get( [i] )\n\nRetrieve the DOM elements matched by the Cheerio object. If an index is specified, retrieve one of the elements matched by the Cheerio object:\n\n```js\n$('li').get(0).tagName\n//=> li\n```\n\nIf no index is specified, retrieve all elements matched by the Cheerio object:\n\n```js\n$('li').get().length\n//=> 3\n```\n\n#### .index()\n#### .index( selector )\n#### .index( nodeOrSelection )\n\nSearch for a given element from among the matched elements.\n\n```js\n$('.pear').index()\n//=> 2\n$('.orange').index('li')\n//=> 1\n$('.apple').index($('#fruit, li'))\n//=> 1\n```\n\n#### .end()\nEnd the most recent filtering operation in the current chain and return the set of matched elements to its previous state.\n\n```js\n$('li').eq(0).end().length\n//=> 3\n```\n\n#### .add( selector [, context] )\n#### .add( element )\n#### .add( elements )\n#### .add( html )\n#### .add( selection )\nAdd elements to the set of matched elements.\n\n```js\n$('.apple').add('.orange').length\n//=> 2\n```\n\n#### .addBack( [filter] )\n\nAdd the previous set of elements on the stack to the current set, optionally filtered by a selector.\n\n```js\n$('li').eq(0).addBack('.orange').length\n//=> 2\n```\n\n### Manipulation\nMethods for modifying the DOM structure.\n\n#### .append( content, [content, ...] )\nInserts content as the *last* child of each of the selected elements.\n\n```js\n$('ul').append('
  • Plum
  • ')\n$.html()\n//=>
      \n//
    • Apple
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    • Plum
    • \n//
    \n```\n\n#### .appendTo( target )\nInsert every element in the set of matched elements to the end of the target.\n\n```js\n$('
  • Plum
  • ').appendTo('#fruits')\n$.html()\n//=>
      \n//
    • Apple
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    • Plum
    • \n//
    \n```\n\n#### .prepend( content, [content, ...] )\nInserts content as the *first* child of each of the selected elements.\n\n```js\n$('ul').prepend('
  • Plum
  • ')\n$.html()\n//=>
      \n//
    • Plum
    • \n//
    • Apple
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    \n```\n\n#### .prependTo( target )\nInsert every element in the set of matched elements to the beginning of the target.\n\n```js\n$('
  • Plum
  • ').prependTo('#fruits')\n$.html()\n//=>
      \n//
    • Plum
    • \n//
    • Apple
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    \n```\n\n#### .after( content, [content, ...] )\nInsert content next to each element in the set of matched elements.\n\n```js\n$('.apple').after('
  • Plum
  • ')\n$.html()\n//=>
      \n//
    • Apple
    • \n//
    • Plum
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    \n```\n\n#### .insertAfter( target )\nInsert every element in the set of matched elements after the target.\n\n```js\n$('
  • Plum
  • ').insertAfter('.apple')\n$.html()\n//=>
      \n//
    • Apple
    • \n//
    • Plum
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    \n```\n\n#### .before( content, [content, ...] )\nInsert content previous to each element in the set of matched elements.\n\n```js\n$('.apple').before('
  • Plum
  • ')\n$.html()\n//=>
      \n//
    • Plum
    • \n//
    • Apple
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    \n```\n\n#### .insertBefore( target )\nInsert every element in the set of matched elements before the target.\n\n```js\n$('
  • Plum
  • ').insertBefore('.apple')\n$.html()\n//=>
      \n//
    • Plum
    • \n//
    • Apple
    • \n//
    • Orange
    • \n//
    • Pear
    • \n//
    \n```\n\n#### .remove( [selector] )\nRemoves the set of matched elements from the DOM and all their children. `selector` filters the set of matched elements to be removed.\n\n```js\n$('.pear').remove()\n$.html()\n//=>
      \n//
    • Apple
    • \n//
    • Orange
    • \n//
    \n```\n\n#### .replaceWith( content )\nReplaces matched elements with `content`.\n\n```js\nconst plum = $('
  • Plum
  • ')\n$('.pear').replaceWith(plum)\n$.html()\n//=>
      \n//
    • Apple
    • \n//
    • Orange
    • \n//
    • Plum
    • \n//
    \n```\n\n#### .empty()\nEmpties an element, removing all its children.\n\n```js\n$('ul').empty()\n$.html()\n//=>
      \n```\n\n#### .html( [htmlString] )\nGets an html content string from the first selected element. If `htmlString` is specified, each selected element's content is replaced by the new content.\n\n```js\n$('.orange').html()\n//=> Orange\n\n$('#fruits').html('
    • Mango
    • ').html()\n//=>
    • Mango
    • \n```\n\n#### .text( [textString] )\nGet the combined text contents of each element in the set of matched elements, including their descendants. If `textString` is specified, each selected element's content is replaced by the new text content.\n\n```js\n$('.orange').text()\n//=> Orange\n\n$('ul').text()\n//=> Apple\n// Orange\n// Pear\n```\n\n#### .wrap( content )\nThe .wrap() function can take any string or object that could be passed to the $() factory function to specify a DOM structure. This structure may be nested several levels deep, but should contain only one inmost element. A copy of this structure will be wrapped around each of the elements in the set of matched elements. This method returns the original set of elements for chaining purposes.\n\n```js\nconst redFruit = $('
      ')\n$('.apple').wrap(redFruit)\n\n//=>
        \n//
        \n//
      • Apple
      • \n//
        \n//
      • Orange
      • \n//
      • Plum
      • \n//
      \n\nconst healthy = $('
      ')\n$('li').wrap(healthy)\n\n//=>
        \n//
        \n//
      • Apple
      • \n//
        \n//
        \n//
      • Orange
      • \n//
        \n//
        \n//
      • Plum
      • \n//
        \n//
      \n```\n\n#### .css( [propertName] )
      .css( [ propertyNames] )
      .css( [propertyName], [value] )
      .css( [propertName], [function] )
      .css( [properties] )\n\nGet the value of a style property for the first element in the set of matched elements or set one or more CSS properties for every matched element.\n\n### Rendering\nWhen you're ready to render the document, you can use the `html` utility function:\n\n```js\n$.html()\n//=>
        \n//
      • Apple
      • \n//
      • Orange
      • \n//
      • Pear
      • \n//
      \n```\n\nIf you want to return the outerHTML you can use `$.html(selector)`:\n\n```js\n$.html('.pear')\n//=>
    • Pear
    • \n```\n\nBy default, `html` will leave some tags open. Sometimes you may instead want to render a valid XML document. For example, you might parse the following XML snippet:\n\n```xml\nconst $ = cheerio.load('');\n```\n\n... and later want to render to XML. To do this, you can use the 'xml' utility function:\n\n```js\n$.xml()\n//=> \n```\n\nYou may also render the text content of a Cheerio object using the `text` static method:\n\n```js\nconst $ = cheerio.load('This is content.')\n$.text()\n//=> This is content.\n```\n\nThe method may be called on the Cheerio module itself--be sure to pass a collection of nodes!\n\n```js\nconst $ = cheerio.load('
      This is content.
      ')\ncheerio.text($('div'))\n//=> This is content.\n```\n\n### Miscellaneous\nDOM element methods that don't fit anywhere else\n\n#### .toArray()\nRetrieve all the DOM elements contained in the jQuery set as an array.\n\n```js\n$('li').toArray()\n//=> [ {...}, {...}, {...} ]\n```\n\n#### .clone() ####\nClone the cheerio object.\n\n```js\nconst moreFruit = $('#fruits').clone()\n```\n\n### Utilities\n\n#### $.root\n\nSometimes you need to work with the top-level root element. To query it, you can use `$.root()`.\n\n```js\n$.root().append('
        ').html();\n//=>
          ...
          \n```\n\n#### $.contains( container, contained )\nChecks to see if the `contained` DOM element is a descendant of the `container` DOM element.\n\n#### $.parseHTML( data [, context ] [, keepScripts ] )\nParses a string into an array of DOM nodes. The `context` argument has no meaning for Cheerio, but it is maintained for API compatability.\n\n#### $.load( html[, options ] )\nCreate a querying function, bound to a document created from the provided markup. Note that similar to web browser contexts, this operation may introduce ``, ``, and `` elements. See the previous section titled \"Loading\" for usage information.\n\n### Plugins\n\nOnce you have loaded a document, you may extend the prototype or the equivalent `fn` property with custom plugin methods:\n\n```js\nconst $ = cheerio.load('Hello, world!');\n$.prototype.logHtml = function() {\n console.log(this.html());\n};\n\n$('body').logHtml(); // logs \"Hello, world!\" to the console\n```\n\n### The \"DOM Node\" object\n\nCheerio collections are made up of objects that bear some resemblence to [browser-based DOM nodes](https://developer.mozilla.org/en-US/docs/Web/API/Node). You can expect them to define the following properties:\n\n- `tagName`\n- `parentNode`\n- `previousSibling`\n- `nextSibling`\n- `nodeValue`\n- `firstChild`\n- `childNodes`\n- `lastChild`\n\n## Screencasts\n\nhttp://vimeo.com/31950192\n\n> This video tutorial is a follow-up to Nettut's \"How to Scrape Web Pages with Node.js and jQuery\", using cheerio instead of JSDOM + jQuery. This video shows how easy it is to use cheerio and how much faster cheerio is than JSDOM + jQuery.\n\n## Contributors\n\nThese are some of the contributors that have made cheerio possible:\n\n```\nproject : cheerio\n repo age : 2 years, 6 months\n active : 285 days\n commits : 762\n files : 36\n authors :\n 293 Matt Mueller 38.5%\n 133 Matthew Mueller 17.5%\n 92 Mike Pennisi 12.1%\n 54 David Chambers 7.1%\n 30 kpdecker 3.9%\n 19 Felix Böhm 2.5%\n 17 fb55 2.2%\n 15 Siddharth Mahendraker 2.0%\n 11 Adam Bretz 1.4%\n 8 Nazar Leush 1.0%\n 7 ironchefpython 0.9%\n 6 Jarno Leppänen 0.8%\n 5 Ben Sheldon 0.7%\n 5 Jos Shepherd 0.7%\n 5 Ryan Schmukler 0.7%\n 5 Steven Vachon 0.7%\n 4 Maciej Adwent 0.5%\n 4 Amir Abu Shareb 0.5%\n 3 jeremy.dentel@brandingbrand.com 0.4%\n 3 Andi Neck 0.4%\n 2 steve 0.3%\n 2 alexbardas 0.3%\n 2 finspin 0.3%\n 2 Ali Farhadi 0.3%\n 2 Chris Khoo 0.3%\n 2 Rob Ashton 0.3%\n 2 Thomas Heymann 0.3%\n 2 Jaro Spisak 0.3%\n 2 Dan Dascalescu 0.3%\n 2 Torstein Thune 0.3%\n 2 Wayne Larsen 0.3%\n 1 Timm Preetz 0.1%\n 1 Xavi 0.1%\n 1 Alex Shaindlin 0.1%\n 1 mattym 0.1%\n 1 Felix Böhm 0.1%\n 1 Farid Neshat 0.1%\n 1 Dmitry Mazuro 0.1%\n 1 Jeremy Hubble 0.1%\n 1 nevermind 0.1%\n 1 Manuel Alabor 0.1%\n 1 Matt Liegey 0.1%\n 1 Chris O'Hara 0.1%\n 1 Michael Holroyd 0.1%\n 1 Michiel De Mey 0.1%\n 1 Ben Atkin 0.1%\n 1 Rich Trott 0.1%\n 1 Rob \"Hurricane\" Ashton 0.1%\n 1 Robin Gloster 0.1%\n 1 Simon Boudrias 0.1%\n 1 Sindre Sorhus 0.1%\n 1 xiaohwan 0.1%\n```\n\n## Cheerio in the real world\n\nAre you using cheerio in production? Add it to the [wiki](https://github.com/cheeriojs/cheerio/wiki/Cheerio-in-Production)!\n\n## Testing\n\nTo run the test suite, download the repository, then within the cheerio directory, run:\n\n```shell\nmake setup\nmake test\n```\n\nThis will download the development packages and run the test suite.\n\n## Special Thanks\n\nThis library stands on the shoulders of some incredible developers. A special thanks to:\n\n__• @FB55 for node-htmlparser2 & CSSSelect:__\nFelix has a knack for writing speedy parsing engines. He completely re-wrote both @tautologistic's `node-htmlparser` and @harry's `node-soupselect` from the ground up, making both of them much faster and more flexible. Cheerio would not be possible without his foundational work\n\n__• @jQuery team for jQuery:__\nThe core API is the best of its class and despite dealing with all the browser inconsistencies the code base is extremely clean and easy to follow. Much of cheerio's implementation and documentation is from jQuery. Thanks guys.\n\n__• @visionmedia:__\nThe style, the structure, the open-source\"-ness\" of this library comes from studying TJ's style and using many of his libraries. This dude consistently pumps out high-quality libraries and has always been more than willing to help or answer questions. You rock TJ.\n\n## License\n\nMIT\n",readmeFilename:"package/Readme.md"}},{}]},{},[33])(33)});