Created
September 15, 2020 09:42
-
-
Save hdoro/130380fd1c906862dbc7839597bfe43d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! | |
dBBBBb dBBBBP dBBBBP dBP dBP dBBBP dBP .dBBBBP dBP dBBBBP dBBBBb | |
dBP dB'.BP dB'.BP dBP.d8P BP dB'.BP dBP | |
dBBBK' dB'.BP dB'.BP dBBBBP' dBP dBP `BBBBb dBP dB'.BP dBP dBP | |
dB' db dB'.BP dB'.BP dBP BB dBP dBP dBP dBP dB'.BP dBP dBP | |
dBBBBP' dBBBBP dBBBBP dBP dB' dBBBBP dBP dBBBBP' dBP dBBBBP dBP dBP | |
* Bookcision v4.0.5 - Excise your notes/highlights from read.amazon.com | |
* https://bookcision.readwise.io | |
* Copyright (c) 2018 Readwise <[email protected]>, originally created by Ryan Norbauer (http://ryan.norbauer.com) | |
* MIT Licensed | |
*/ | |
!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,o){r.apply(this,[t,e,o].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){var r=n(13);if(r.meetsMinimumRequirements){var o=n(21),i=n(22),a=n(44);if(!a.initialized){n(45);var s=n(46),c=s(o.name);c.set("package.json",o),a.initialized=!0}var l=n(28),u=n(47),f=n(55),p=n(25);n(50),n(65);var h=!1;h||n(67);var d=n(68),b=n(99),g=n(103),m=function(t){u("Done",100);var e=d.getFragment(t);new f(e)},v=function(t){t instanceof b.NotFoundError?(u("Please navigate to a specific book and try again.",99.999),i.info("Activated on a non-book page.",t)):t instanceof g.ScrapeError?(u("Error retrieving highlights from Amazon, please try again...",99.999),i.warning("Scrape failure.",t)):u(t,99.999)};l.onDocumentReady(function(){if(0!==location.hostname.indexOf("ler.amazon."))u("Go to read.amazon.com/notebook (or read.amazon.co.jp, read.amazon.co.uk, etc.) to start.",99.999);else{var t;t=h?"B004LROUW2":p.findASIN(),u("Loading highlights",75),b.get(t,m,v)}})}else{var y=confirm("Sorry, bookcision only supports modern browsers. Would you like instructions on how to upgrade?");y&&window.open("http://browsehappy.com/","_blank")}},,,,,,,,,,,,,function(t,e,n){var r=n(14),o=[localStorage,document.querySelector,document.documentElement,Array.prototype.forEach,Array.prototype.filter,Function.prototype.bind];"undefined"!=typeof Node&&o.push(Node.ELEMENT_NODE);for(var i=[document.documentElement.nextElementSibling],a=!0,s=0;a&&s<o.length;s++)a="undefined"!=typeof o[s]&&null!==o[s];for(var s=0;a&&s<i.length;s++)a="undefined"!=typeof i[s];if(a){var c={"file-system":function(){return new Blob}},l=document.documentElement;Object.keys(c).forEach(function(t){var e;try{e=Boolean(c[t]())}catch(t){}var n=e===!0?"":"no-";r(l).addClass(n+t)}),t.exports={meetsMinimumRequirements:a,featuresWithFallbacks:c}}else t.exports={meetsMinimumRequirements:!1,featuresWithFallbacks:{}}},function(t,e,n){function r(t){this.element=t}var o=n(15),i=n(17),a=n(19),s={top:"px",bottom:"px",left:"px",right:"px",width:"px",height:"px","font-size":"px",margin:"px","margin-top":"px","margin-bottom":"px","margin-left":"px","margin-right":"px",padding:"px","padding-top":"px","padding-bottom":"px","padding-left":"px","padding-right":"px"};r.prototype.apply=function(){var t=null;2===arguments.length?(t={},t[arguments[0]]=arguments[1]):t=arguments[0];var e=this.element.style;for(var n in t)if(t.hasOwnProperty(n)){var r,i=o(n),a=t[n];r="number"==typeof a&&s.hasOwnProperty(i)?String(a)+s[i]:a,e.setProperty(i,r)}return this},r.prototype.getUsedValue=function(t){var e=getComputedStyle(this.element),n=e[t];if(n){var r=parseFloat(n);return isNaN(r)?n:r}return null},r.prototype.addClass=function(t){return i.addClass(this.element,t),this},r.prototype.removeClass=function(t){return i.removeClass(this.element,t),this},r.prototype.toggleClass=function(t){return i.toggleClass(this.element,t),this},r.prototype.hasClass=function(t){return i.hasClass(this.element,t)},function(){var t=function(t){return function(e,n){a[t](this.element,e),setTimeout(n,e)}};r.prototype.fadeOut=t("out"),r.prototype.fadeIn=t("in")}(),t.exports=function(t){return new r(t)}},function(t,e,n){var r=n(16);t.exports=function(t){return r(t).replace(/ |\./g,"-")}},function(t,e){t.exports=function(t){return String(t).replace(/([a-z])([A-Z0-9])/g,"$1 $2").replace(/[^a-zA-Z0-9]+/g,".").replace(/(?!\d\.\d)(^|.)\./g,"$1 ").replace(/^ | $/g,"").toLowerCase()}},function(t,e,n){(function(t){/*! | |
* vibe 0.9.4+201403131410 | |
* https://github.com/ryanve/vibe | |
* MIT License (c) 2014 Ryan Van Etten | |
*/ | |
!function(e,n,r){"undefined"!=typeof t&&t.exports?t.exports=r():e[n]=r()}(this,"vibe",function(){function t(e,n,r){var o,a,s=0,c=e.length;if("function"==typeof r)for(;s<c&&(a=r.call(e[s]),!1!==a);)t([e[s++]],n,a);else if("string"==typeof r?r=r.match(i):r)for(a=r.length;s<c;s++)for(o=0;o<a;o++)n(e[s],r[o]);return e}var e="classList",n="undefined"!=typeof document&&document.documentElement[e],r=!!(n&&n.contains&&n.add&&n.remove),o=/\s+/g,i=/\S+/g,a=" ",s=function(t,e){return!!~(a+t.replace(o,a)+a).indexOf(a+e+a)},c=r?function(t,n){""===n||t[e].add(n)}:function(t,e){s(t.className,e)||(t.className+=a+e)},l=r?function(t,n){""===n||t[e].remove(n)}:function(t,e){var n=0,r="",o=t.className.match(i),s=o&&o.length;for(e=r+e;s--;)e===o[s]?++n:r=o[s]+(r?a:r)+r;n&&(t.className=r)},u=r?function(t,n){return""===n||!!t[e].contains(n)}:function(t,e){return s(t.className,e)},f=function(t,e,n){return""===e||(n="boolean"==typeof n?n:!u(t,e),(n?c:l)(t,e),n)};return{addClass:c,removeClass:l,toggleClass:f,hasClass:u,fn:{addClass:function(e){return t(this,c,e)},removeClass:function(e){return t(this,l,e)},toggleClass:function(e,n){return t(this,!0===n?c:!1===n?l:f,e)},hasClass:function(t){for(var e=0,n=this.length;e<n;)if(u(this[e++],t))return!0;return!1}}}})}).call(e,n(18)(t))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e,n){function r(t,e,n,r){"undefined"==typeof n?n=1e3:"function"==typeof n&&(r=n,n=1e3);var i=o.get(t.style,"transition")||"";o(t.style,"transition","opacity "+n/1e3+"s"),t.style.opacity=e,setTimeout(function(){o(t.style,"transition",i),r&&r()},n)}var o=n(20);t.exports=r,r.out=function(t,e,n){r(t,0,e,n)},r.in=function(t,e,n){r(t,1,e,n)}},function(t,e){function n(t,e,n){for(var o=0;o<r.length;o++)t[r[o]+e]=n}var r=["-webkit-","-moz-","-o-","-ms-",""];t.exports=n,n.get=function(t,e){for(var n=0;n<r.length;n++){var o=t[r[n]+e];if(o&&""!=o)return o}return""}},function(t,e){t.exports={name:"bookcision",private:!0,version:"4.0.5",engines:{node:"0.10.35"},tagline:"Excise your notes/highlights from read.amazon.com",description:"When highlights and notes are created on any Kindle device, they are synced up to Amazon's cloud. These are then visible at read.amazon.com, but there is no reason to believe that Amazon will continue to provide this service forever, and our ability to work with text in that hosted browser-based environment is limited. This is a bookmarklet that permits one to excise notes/highlights from read.amazon.com. It yields a single page of cleanly styled notes/highlights, which can then be copied to one's clipboard and pasted into a local text repository (OneNote, Evernote, DevonThink, etc.). The highlights and notes can also be downloaded in a number of formats (e.g. JSON).",keywords:["kindle","note","highlight"],author:"Readwise <[email protected]>, originally created by Ryan Norbauer (http://ryan.norbauer.com)",bugs:{email:"[email protected]"},homepage:"https://bookcision.readwise.io",license:"MIT",scripts:{test:"grunt test"},dependencies:{async:"~0.9.0","change-case":"2.1.1",cheerio:"~0.16.0",cornet:"~0.1.5","coverjs-loader":"~0.5.0","css-loader":"~0.6.12","dom-storage":"~2.0.1",entities:"^1.1.1","expose-loader":"~0.5.3","extended-exceptions":"~2.1.0",fade:"0.2.0",grunt:"^0.4.5","grunt-asciify":"~0.2.2","grunt-azureblob":"~0.1.2","grunt-cli":"https://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz","grunt-contrib-clean":"~0.5.0","grunt-contrib-connect":"~0.7.1","grunt-contrib-copy":"~0.5.0","grunt-contrib-jade":"~0.12.0","grunt-contrib-livereload":"~0.1.2","grunt-contrib-uglify":"~0.4.0","grunt-env":"~0.4.1","grunt-hg-release":"git+https://github.com/altano/grunt-hg-release.git","grunt-open":"~0.2.3","grunt-regarde":"~0.1.1","grunt-simple-mocha":"~0.4.0","grunt-webpack":"~1.0.7",handlebars:"2.x","handlebars-loader":"0.1.x","html-util":"~0.2.1",htmlparser2:"~3.7.2",hyperquest:"~0.3.0","imports-loader":"~0.6.3","jade-loader":"~0.5.1","json-loader":"~0.5.1",key:"~0.1.11","less-loader":"~0.7.5","markdown-js":"0.0.3",matchdep:"~0.3.0",mitm:"~0.5.1",multipost:"0.0.3","object-path":"~0.5.0","param-case":"~0.1.0","raw-loader":"~0.5.1","script-loader":"~0.5.2",set:"~1.1.1",should:"~4.0.1",sinon:"~1.8.2","style-loader":"~0.6.4",vibe:"~0.9.4",webpack:"~1.3.0-beta5","webpack-dev-server":"^1.7.0",xmlhttprequest:"~1.6.0",zeroclipboard:"~1.1.7"},devDependencies:{}}},function(t,e,n){var r,o=n(23);r=n(42);var i=n(44);i.rollbarInitialized||(r.init(o),i.rollbarInitialized=!0),t.exports=r},function(t,e,n){var r=n(21),o=n(24),i=n(25),a=n(30),s={accessToken:o.client_access_token,captureUncaught:!0,payload:{environment:a,client:{javascript:{source_map_enabled:!0,code_version:r.version,guess_uncaught_frames:!0}}}},c=i.findUser();c&&(s.payload.person={id:c.id,username:c.name}),t.exports=s},function(t,e){t.exports={client_access_token:"f500ab8cbdd645adb4fa0f0cd75d2e15",server_access_token:"8c0ef41cc7874b7693b5c83065e87988"}},function(t,e,n){var r=(n(26),n(27),n(28)),o=n(29);t.exports=function(){var t=function(){var t=null;if("undefined"!=typeof workData&&null!==workData&&workData.asin&&workData.asin.trim().length>0)t=workData.asin.trim();else{var e=[r.extractStringFromElement("input[name=asin]"),r.extractStringFromElement("input#kp-notebook-annotations-asin")];t=e.find(Boolean)}if(!t&&localStorage&&localStorage.getItem("last_app_activity"))try{var n=JSON.parse(localStorage.getItem("last_app_activity"));t=n.asin}catch(t){}return t},e=function(){var t=null;return"undefined"!=typeof viewerData&&null!==viewerData&&viewerData.customerId&&viewerData.customerId.length>0&&(t={id:viewerData.customerId}),t},n=function(){var t="undefined"!=typeof window&&window.KindleGlobal?window.KindleGlobal.amazonDeviceType:null;return t||(t="A2CLFWBIMVSE9N"),t};return{findASIN:t,findUser:o.memoize(e),getAmazonDeviceType:o.memoize(n)}}()},function(t,e){e.unique=function(t){for(var e={},n=[],r=0;r<t.length;++r)e.hasOwnProperty(t[r])||(e[t[r]]=!0,n.push(t[r]));return n},e.last=function(t){return t[t.length-1]},e.removeByRange=function(t,e,n){var r=t.slice((n||e)+1||t.length);return t.length=e<0?t.length+e:e,t.push.apply(t,r)},e.removeByValue=function(t){for(var e,n,r=arguments,o=r.length;o&&t.length;)for(e=r[--o];(n=t.indexOf(e))!==-1;)t.splice(n,1);return t},e.clone=function(t){return t.slice(0)}},function(t,e){e.startsWith=function(t,e){return 0===t.indexOf(e)},e.isWhitespace=function(t){return/^\s*$/.test(t)},e.isNotEmpty=function(t){return Boolean(t&&!e.isWhitespace(t))}},function(t,e,n){var r=(n(14),n(29),n(26));e.onDocumentReady=function(t){"complete"===document.readyState?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},e.createDocumentFragmentFromHtml=function(t){var e=document.createElement("div");e.innerHTML=t;for(var n=document.createDocumentFragment();e.firstChild;)n.appendChild(e.firstChild);return n},e.isNode=function(t){return t&&"number"==typeof t.nodeType},e.isElement=function(t){return e.isNode(t)&&(t instanceof HTMLElement||t.nodeType===Node.ELEMENT_NODE||t.nodeType===Node.DOCUMENT_FRAGMENT_NODE)},e.isTextNode=function(t){return e.isNode(t)&&t.nodeType===Node.TEXT_NODE},e.extractStringFromElement=function(t){var n=null,o=document.querySelectorAll(t),i=r.last(o);if(i&&("string"==typeof i.textContent&&(n=i.textContent.trim(),0===n.length&&(n=null)),null===n&&"string"==typeof i.value&&(n=i.value.trim(),0===n.length&&(n=null))),!n&&arguments.length>1){var a=Array.prototype.slice.call(arguments,1);return e.extractStringFromElement(a)}return n}},function(t,e){e.memoize=function(t){var e=!1,n=null;return function(){return e||(e=!0,n=t.apply(this,arguments)),n}}},function(t,e,n){var r=n(21),o=n(31),i="",a=r.name+i+".js",s=new o(a);switch(s.parentDirectory()){case"dest":t.exports="development";break;case"latest":t.exports="production";break;default:t.exports="staging"}},function(t,e,n){var r=n(32),o=n(26),i=n(36),a=function(t){this.script=null;var e=r.format('script[src$="%s"]',t),n=document.querySelectorAll(e);if(n.length>0&&(this.script=o.last(n)),!this.script)throw"Could not find the current script "+t;if(!this.script.src||""===this.script.src)throw"Invalid script found";this.url=i.parse(this.script.src,!0,!0)};a.prototype.parentDirectory=function(){var t=this.url.pathname,e=t.split("/");if(e.length<2)throw new Error("Error parsing parent directory of url "+this.url.toString());return e[e.length-2]},a.prototype.resolveUrlRelativeTo=function(t){return i.resolve(this.script.src,t)},a.prototype.getOrigin=function(){var t=i.parse(this.script.src);return t.protocol+"//"+t.host},t.exports=a},function(t,e,n){(function(t,r){function o(t,n){var r={seen:[],stylize:a};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),b(n)?r.showHidden=n:n&&e._extend(r,n),_(r.showHidden)&&(r.showHidden=!1),_(r.depth)&&(r.depth=2),_(r.colors)&&(r.colors=!1),_(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=i),c(r,t,r.depth)}function i(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function a(t,e){return t}function s(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function c(t,n,r){if(t.customInspect&&n&&T(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o=n.inspect(r,t);return y(o)||(o=c(t,o,r)),o}var i=l(t,n);if(i)return i;var a=Object.keys(n),b=s(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),S(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return u(n);if(0===a.length){if(T(n)){var g=n.name?": "+n.name:"";return t.stylize("[Function"+g+"]","special")}if(x(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(E(n))return t.stylize(Date.prototype.toString.call(n),"date");if(S(n))return u(n)}var m="",v=!1,w=["{","}"];if(d(n)&&(v=!0,w=["[","]"]),T(n)){var _=n.name?": "+n.name:"";m=" [Function"+_+"]"}if(x(n)&&(m=" "+RegExp.prototype.toString.call(n)),E(n)&&(m=" "+Date.prototype.toUTCString.call(n)),S(n)&&(m=" "+u(n)),0===a.length&&(!v||0==n.length))return w[0]+m+w[1];if(r<0)return x(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var k;return k=v?f(t,n,r,b,a):a.map(function(e){return p(t,n,r,b,e,v)}),t.seen.pop(),h(k,m,w)}function l(t,e){if(_(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return v(e)?t.stylize(""+e,"number"):b(e)?t.stylize(""+e,"boolean"):g(e)?t.stylize("null","null"):void 0}function u(t){return"["+Error.prototype.toString.call(t)+"]"}function f(t,e,n,r,o){for(var i=[],a=0,s=e.length;a<s;++a)N(e,String(a))?i.push(p(t,e,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(p(t,e,n,r,o,!0))}),i}function p(t,e,n,r,o,i){var a,s,l;if(l=Object.getOwnPropertyDescriptor(e,o)||{value:e[o]},l.get?s=l.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):l.set&&(s=t.stylize("[Setter]","special")),N(r,o)||(a="["+o+"]"),s||(t.seen.indexOf(l.value)<0?(s=g(n)?c(t,l.value,null):c(t,l.value,n-1),s.indexOf("\n")>-1&&(s=i?s.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t}).join("\n"))):s=t.stylize("[Circular]","special")),_(a)){if(i&&o.match(/^\d+$/))return s;a=JSON.stringify(""+o),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function h(t,e,n){var r=0,o=t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function d(t){return Array.isArray(t)}function b(t){return"boolean"==typeof t}function g(t){return null===t}function m(t){return null==t}function v(t){return"number"==typeof t}function y(t){return"string"==typeof t}function w(t){return"symbol"==typeof t}function _(t){return void 0===t}function x(t){return k(t)&&"[object RegExp]"===C(t)}function k(t){return"object"==typeof t&&null!==t}function E(t){return k(t)&&"[object Date]"===C(t)}function S(t){return k(t)&&("[object Error]"===C(t)||t instanceof Error)}function T(t){return"function"==typeof t}function A(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function C(t){return Object.prototype.toString.call(t)}function O(t){return t<10?"0"+t.toString(10):t.toString(10)}function L(){var t=new Date,e=[O(t.getHours()),O(t.getMinutes()),O(t.getSeconds())].join(":");return[t.getDate(),M[t.getMonth()],e].join(" ")}function N(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var j=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(o(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,i=r.length,a=String(t).replace(j,function(t){if("%%"===t)return"%";if(n>=i)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}}),s=r[n];n<i;s=r[++n])a+=g(s)||!k(s)?" "+s:" "+o(s);return a},e.deprecate=function(n,o){function i(){if(!a){if(r.throwDeprecation)throw new Error(o);r.traceDeprecation?console.trace(o):console.error(o),a=!0}return n.apply(this,arguments)}if(_(t.process))return function(){return e.deprecate(n,o).apply(this,arguments)};if(r.noDeprecation===!0)return n;var a=!1;return i};var R,D={};e.debuglog=function(t){if(_(R)&&(R=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!D[t])if(new RegExp("\\b"+t+"\\b","i").test(R)){var n=r.pid;D[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else D[t]=function(){};return D[t]},e.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=b,e.isNull=g,e.isNullOrUndefined=m,e.isNumber=v,e.isString=y,e.isSymbol=w,e.isUndefined=_,e.isRegExp=x,e.isObject=k,e.isDate=E,e.isError=S,e.isFunction=T,e.isPrimitive=A,e.isBuffer=n(34);var M=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",L(),e.format.apply(e,arguments))},e.inherits=n(35),e._extend=function(t,e){if(!e||!k(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}).call(e,function(){return this}(),n(33))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(u===setTimeout)return setTimeout(t,0);if((u===n||!u)&&setTimeout)return u=setTimeout,setTimeout(t,0);try{return u(t,0)}catch(e){try{return u.call(null,t,0)}catch(e){return u.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){b&&h&&(b=!1,h.length?d=h.concat(d):g=-1,d.length&&s())}function s(){if(!b){var t=o(a);b=!0;for(var e=d.length;e;){for(h=d,d=[];++g<e;)h&&h[g].run();g=-1,e=d.length}h=null,b=!1,i(t)}}function c(t,e){this.fun=t,this.array=e}function l(){}var u,f,p=t.exports={};!function(){try{u="function"==typeof setTimeout?setTimeout:n}catch(t){u=n}try{f="function"==typeof clearTimeout?clearTimeout:r}catch(t){f=r}}();var h,d=[],b=!1,g=-1;p.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];d.push(new c(t,e)),1!==d.length||b||o(s)},c.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=l,p.addListener=l,p.once=l,p.off=l,p.removeListener=l,p.removeAllListeners=l,p.emit=l,p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e,n){"use strict";function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,n){if(t&&l.isObject(t)&&t instanceof r)return t;var o=new r;return o.parse(t,e,n),o}function i(t){return l.isString(t)&&(t=o(t)),t instanceof r?t.format():r.prototype.format.call(t)}function a(t,e){return o(t,!1,!0).resolve(e)}function s(t,e){return t?o(t,!1,!0).resolveObject(e):e}var c=n(37),l=n(38);e.parse=o,e.resolve=a,e.resolveObject=s,e.format=i,e.Url=r;var u=/^([a-z0-9.+-]+:)/i,f=/:[0-9]*$/,p=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,h=["<",">",'"',"`"," ","\r","\n","\t"],d=["{","}","|","\\","^","`"].concat(h),b=["'"].concat(d),g=["%","/","?",";","#"].concat(b),m=["/","?","#"],v=255,y=/^[+a-z0-9A-Z_-]{0,63}$/,w=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,_={javascript:!0,"javascript:":!0},x={javascript:!0,"javascript:":!0},k={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},E=n(39);r.prototype.parse=function(t,e,n){if(!l.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t.indexOf("?"),o=r!==-1&&r<t.indexOf("#")?"?":"#",i=t.split(o),a=/\\/g;i[0]=i[0].replace(a,"/"),t=i.join(o);var s=t;if(s=s.trim(),!n&&1===t.split("#").length){var f=p.exec(s);if(f)return this.path=s,this.href=s,this.pathname=f[1],f[2]?(this.search=f[2],e?this.query=E.parse(this.search.substr(1)):this.query=this.search.substr(1)):e&&(this.search="",this.query={}),this}var h=u.exec(s);if(h){h=h[0];var d=h.toLowerCase();this.protocol=d,s=s.substr(h.length)}if(n||h||s.match(/^\/\/[^@\/]+@[^@\/]+/)){var S="//"===s.substr(0,2);!S||h&&x[h]||(s=s.substr(2),this.slashes=!0)}if(!x[h]&&(S||h&&!k[h])){for(var T=-1,A=0;A<m.length;A++){var C=s.indexOf(m[A]);C!==-1&&(T===-1||C<T)&&(T=C)}var O,L;L=T===-1?s.lastIndexOf("@"):s.lastIndexOf("@",T),L!==-1&&(O=s.slice(0,L),s=s.slice(L+1),this.auth=decodeURIComponent(O)),T=-1;for(var A=0;A<g.length;A++){var C=s.indexOf(g[A]);C!==-1&&(T===-1||C<T)&&(T=C)}T===-1&&(T=s.length),this.host=s.slice(0,T),s=s.slice(T),this.parseHost(),this.hostname=this.hostname||"";var N="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!N)for(var j=this.hostname.split(/\./),A=0,R=j.length;A<R;A++){var D=j[A];if(D&&!D.match(y)){for(var M="",I=0,P=D.length;I<P;I++)M+=D.charCodeAt(I)>127?"x":D[I];if(!M.match(y)){var q=j.slice(0,A),B=j.slice(A+1),z=D.match(w);z&&(q.push(z[1]),B.unshift(z[2])),B.length&&(s="/"+B.join(".")+s),this.hostname=q.join(".");break}}}this.hostname.length>v?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=c.toASCII(this.hostname));var U=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+U,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==s[0]&&(s="/"+s))}if(!_[d])for(var A=0,R=b.length;A<R;A++){var H=b[A];if(s.indexOf(H)!==-1){var $=encodeURIComponent(H);$===H&&($=escape(H)),s=s.split(H).join($)}}var W=s.indexOf("#");W!==-1&&(this.hash=s.substr(W),s=s.slice(0,W));var V=s.indexOf("?");if(V!==-1?(this.search=s.substr(V),this.query=s.substr(V+1),e&&(this.query=E.parse(this.query)),s=s.slice(0,V)):e&&(this.search="",this.query={}),s&&(this.pathname=s),k[d]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",G=this.search||"";this.path=U+G}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(i=E.stringify(this.query));var a=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||k[e])&&o!==!1?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),a&&"?"!==a.charAt(0)&&(a="?"+a),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),a=a.replace("#","%23"),e+o+n+a+r},r.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(l.isString(t)){var e=new r;e.parse(t,!1,!0),t=e}for(var n=new r,o=Object.keys(this),i=0;i<o.length;i++){var a=o[i];n[a]=this[a]}if(n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol){for(var s=Object.keys(t),c=0;c<s.length;c++){var u=s[c];"protocol"!==u&&(n[u]=t[u])}return k[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n}if(t.protocol&&t.protocol!==n.protocol){if(!k[t.protocol]){for(var f=Object.keys(t),p=0;p<f.length;p++){var h=f[p];n[h]=t[h]}return n.href=n.format(),n}if(n.protocol=t.protocol,t.host||x[t.protocol])n.pathname=t.pathname;else{for(var d=(t.pathname||"").split("/");d.length&&!(t.host=d.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==d[0]&&d.unshift(""),d.length<2&&d.unshift(""),n.pathname=d.join("/")}if(n.search=t.search,n.query=t.query,n.host=t.host||"",n.auth=t.auth,n.hostname=t.hostname||t.host,n.port=t.port,n.pathname||n.search){var b=n.pathname||"",g=n.search||"";n.path=b+g}return n.slashes=n.slashes||t.slashes,n.href=n.format(),n}var m=n.pathname&&"/"===n.pathname.charAt(0),v=t.host||t.pathname&&"/"===t.pathname.charAt(0),y=v||m||n.host&&t.pathname,w=y,_=n.pathname&&n.pathname.split("/")||[],d=t.pathname&&t.pathname.split("/")||[],E=n.protocol&&!k[n.protocol];if(E&&(n.hostname="",n.port=null,n.host&&(""===_[0]?_[0]=n.host:_.unshift(n.host)),n.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===d[0]?d[0]=t.host:d.unshift(t.host)),t.host=null),y=y&&(""===d[0]||""===_[0])),v)n.host=t.host||""===t.host?t.host:n.host,n.hostname=t.hostname||""===t.hostname?t.hostname:n.hostname,n.search=t.search,n.query=t.query,_=d;else if(d.length)_||(_=[]),_.pop(),_=_.concat(d),n.search=t.search,n.query=t.query;else if(!l.isNullOrUndefined(t.search)){if(E){n.hostname=n.host=_.shift();var S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return n.search=t.search,n.query=t.query,l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!_.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var T=_.slice(-1)[0],A=(n.host||t.host||_.length>1)&&("."===T||".."===T)||""===T,C=0,O=_.length;O>=0;O--)T=_[O],"."===T?_.splice(O,1):".."===T?(_.splice(O,1),C++):C&&(_.splice(O,1),C--);if(!y&&!w)for(;C--;C)_.unshift("..");!y||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),A&&"/"!==_.join("/").substr(-1)&&_.push("");var L=""===_[0]||_[0]&&"/"===_[0].charAt(0);if(E){n.hostname=n.host=L?"":_.length?_.shift():"";var S=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");S&&(n.auth=S.shift(),n.host=n.hostname=S.shift())}return y=y||n.host&&_.length,y&&!L&&_.unshift(""),_.length?n.pathname=_.join("/"):(n.pathname=null,n.path=null),l.isNull(n.pathname)&&l.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=f.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e,n){var r;(function(t,o){!function(i){function a(t){throw RangeError(j[t])}function s(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function c(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(N,".");var o=t.split("."),i=s(o,e).join(".");return r+i}function l(t){for(var e,n,r=[],o=0,i=t.length;o<i;)e=t.charCodeAt(o++),e>=55296&&e<=56319&&o<i?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),o--)):r.push(e);return r}function u(t){return s(t,function(t){var e="";return t>65535&&(t-=65536,e+=M(t>>>10&1023|55296),t=56320|1023&t),e+=M(t)}).join("")}function f(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:_}function p(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function h(t,e,n){var r=0;for(t=n?D(t/S):t>>1,t+=D(t/e);t>R*k>>1;r+=_)t=D(t/R);return D(r+(R+1)*t/(t+E))}function d(t){var e,n,r,o,i,s,c,l,p,d,b=[],g=t.length,m=0,v=A,y=T;for(n=t.lastIndexOf(C),n<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&a("not-basic"),b.push(t.charCodeAt(r));for(o=n>0?n+1:0;o<g;){for(i=m,s=1,c=_;o>=g&&a("invalid-input"),l=f(t.charCodeAt(o++)),(l>=_||l>D((w-m)/s))&&a("overflow"),m+=l*s,p=c<=y?x:c>=y+k?k:c-y,!(l<p);c+=_)d=_-p,s>D(w/d)&&a("overflow"),s*=d;e=b.length+1,y=h(m-i,e,0==i),D(m/e)>w-v&&a("overflow"),v+=D(m/e),m%=e,b.splice(m++,0,v)}return u(b)}function b(t){var e,n,r,o,i,s,c,u,f,d,b,g,m,v,y,E=[];for(t=l(t),g=t.length,e=A,n=0,i=T,s=0;s<g;++s)b=t[s],b<128&&E.push(M(b));for(r=o=E.length,o&&E.push(C);r<g;){for(c=w,s=0;s<g;++s)b=t[s],b>=e&&b<c&&(c=b);for(m=r+1,c-e>D((w-n)/m)&&a("overflow"),n+=(c-e)*m,e=c,s=0;s<g;++s)if(b=t[s],b<e&&++n>w&&a("overflow"),b==e){for(u=n,f=_;d=f<=i?x:f>=i+k?k:f-i,!(u<d);f+=_)y=u-d,v=_-d,E.push(M(p(d+y%v,0))),u=D(y/v);E.push(M(p(u,0))),i=h(n,m,r==o),n=0,++r}++n,++e}return E.join("")}function g(t){return c(t,function(t){return O.test(t)?d(t.slice(4).toLowerCase()):t})}function m(t){return c(t,function(t){return L.test(t)?"xn--"+b(t):t})}var v=("object"==typeof e&&e&&!e.nodeType&&e,"object"==typeof t&&t&&!t.nodeType&&t,"object"==typeof o&&o);v.global!==v&&v.window!==v&&v.self!==v||(i=v);var y,w=2147483647,_=36,x=1,k=26,E=38,S=700,T=72,A=128,C="-",O=/^xn--/,L=/[^\x20-\x7E]/,N=/[\x2E\u3002\uFF0E\uFF61]/g,j={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},R=_-x,D=Math.floor,M=String.fromCharCode;y={version:"1.3.2",ucs2:{decode:l,encode:u},decode:d,encode:b,toASCII:m,toUnicode:g},r=function(){return y}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))}(this)}).call(e,n(18)(t),function(){return this}())},function(t,e){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(40),e.encode=e.stringify=n(41)},function(t,e){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,r,o){e=e||"&",r=r||"=";var i={};if("string"!=typeof t||0===t.length)return i;var a=/\+/g;t=t.split(e);var s=1e3;o&&"number"==typeof o.maxKeys&&(s=o.maxKeys);var c=t.length;s>0&&c>s&&(c=s);for(var l=0;l<c;++l){var u,f,p,h,d=t[l].replace(a,"%20"),b=d.indexOf(r);b>=0?(u=d.substr(0,b),f=d.substr(b+1)):(u=d,f=""),p=decodeURIComponent(u),h=decodeURIComponent(f),n(i,p)?Array.isArray(i[p])?i[p].push(h):i[p]=[i[p],h]:i[p]=h}return i}},function(t,e){"use strict";var n=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,r,o){return e=e||"&",r=r||"=",null===t&&(t=void 0),"object"==typeof t?Object.keys(t).map(function(o){var i=encodeURIComponent(n(o))+r;return Array.isArray(t[o])?t[o].map(function(t){return i+encodeURIComponent(n(t))}).join(e):i+encodeURIComponent(n(t[o]))}).join(e):o?encodeURIComponent(n(o))+r+encodeURIComponent(n(t)):""}},function(t,e,n){(function(e){t.exports=e.rollbar=n(43)}).call(e,function(){return this}())},function(module,exports){!function(window,document){function _isUndefined(t){return"undefined"==typeof t}function computeStackTraceWrapper(t){function e(t){if(!y)return"";try{var e=function(){try{return new window.XMLHttpRequest}catch(t){return new window.ActiveXObject("Microsoft.XMLHTTP")}},n=e();return n.open("GET",t,!1),n.send(""),n.responseText}catch(t){return""}}function n(t){if(!v.hasOwnProperty(t)){var n="";t.indexOf(document.domain)!==-1&&(n=e(t)),v[t]=n?n.split("\n"):[]}return v[t]}function r(t,e){var r,o=/function ([^(]*)\(([^)]*)\)/,i=/['"]?([0-9A-Za-z$_]+)['"]?\s*[:=]\s*(function|eval|new Function)/,a="",s=10,c=n(t);if(!c.length)return UNKNOWN_FUNCTION;for(var l=0;l<s;++l)if(a=c[e-l]+a,!_isUndefined(a)){if(r=i.exec(a))return r[1];if(r=o.exec(a))return r[1]}return UNKNOWN_FUNCTION}function o(t,e){var r=n(t);if(!r.length)return null;var o=[],i=Math.floor(w/2),a=i+w%2,s=Math.max(0,e-i-1),c=Math.min(r.length,e+a-1);e-=1;for(var l=s;l<c;++l)_isUndefined(r[l])||o.push(r[l]);return o.length>0?o:null}function i(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#]/g,"\\$&")}function a(t){return i(t).replace("<","(?:<|<)").replace(">","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function s(t,e){for(var r,o,i=0,a=e.length;i<a;++i)if((r=n(e[i])).length&&(r=r.join("\n"),o=t.exec(r)))return{url:e[i],line:r.substring(0,o.index).split("\n").length,column:o.index-r.lastIndexOf("\n",o.index)-1};return null}function c(t,e,r){var o,a=n(e),s=new RegExp("\\b"+i(t)+"\\b");return r-=1,a&&a.length>r&&(o=s.exec(a[r]))?o.index:null}function l(t){for(var e,n,r,o,c=[window.location.href],l=document.getElementsByTagName("script"),u=""+t,f=/^function(?:\s+([\w$]+))?\s*\(([\w\s,]*)\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,p=/^function on([\w$]+)\s*\(event\)\s*\{\s*(\S[\s\S]*\S)\s*\}\s*$/,h=0;h<l.length;++h){var d=l[h];d.src&&c.push(d.src)}if(r=f.exec(u)){var b=r[1]?"\\s+"+r[1]:"",g=r[2].split(",").join("\\s*,\\s*");e=i(r[3]).replace(/;$/,";?"),n=new RegExp("function"+b+"\\s*\\(\\s*"+g+"\\s*\\)\\s*{\\s*"+e+"\\s*}")}else n=new RegExp(i(u).replace(/\s+/g,"\\s+"));if(o=s(n,c))return o;if(r=p.exec(u)){var m=r[1];if(e=a(r[2]),n=new RegExp("on"+m+"=[\\'\"]\\s*"+e+"\\s*[\\'\"]","i"),o=s(n,c[0]))return o;if(n=new RegExp(e),o=s(n,c))return o}return null}function u(t){if(!t.stack)return null;for(var e,n,i=/^\s*at (?:((?:\[object object\])?\S+(?: \[as \S+\])?) )?\(?((?:file|http|https):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=/^\s*(\S*)(?:\((.*?)\))?@((?:file|http|https).*?):(\d+)(?::(\d+))?\s*$/i,s=t.stack.split("\n"),l=[],u=/^(.*) is undefined$/.exec(t.message),f=0,p=s.length;f<p;++f){if(e=a.exec(s[f]))n={url:e[3],func:e[1]||UNKNOWN_FUNCTION,args:e[2]?e[2].split(","):"",line:+e[4],column:e[5]?+e[5]:null};else{if(!(e=i.exec(s[f])))continue;n={url:e[2],func:e[1]||UNKNOWN_FUNCTION,line:+e[3],column:e[4]?+e[4]:null}}!n.func&&n.line&&(n.func=r(n.url,n.line)),n.line&&(n.context=o(n.url,n.line)),l.push(n)}return l[0]&&l[0].line&&!l[0].column&&u&&(l[0].column=c(u[1],l[0].url,l[0].line)),l.length?{mode:"stack",name:t.name,message:t.message,url:document.location.href,stack:l,useragent:navigator.userAgent}:null}function f(t){for(var e,n=t.stacktrace,i=/ line (\d+), column (\d+) in (?:<anonymous function: ([^>]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i,a=n.split("\n"),s=[],c=0,l=a.length;c<l;c+=2)if(e=i.exec(a[c])){var u={line:+e[1],column:+e[2],func:e[3]||e[4],args:e[5]?e[5].split(","):[],url:e[6]};if(!u.func&&u.line&&(u.func=r(u.url,u.line)),u.line)try{u.context=o(u.url,u.line)}catch(t){}u.context||(u.context=[a[c+1]]), | |
s.push(u)}return s.length?{mode:"stacktrace",name:t.name,message:t.message,url:document.location.href,stack:s,useragent:navigator.userAgent}:null}function p(t){var e=t.message.split("\n");if(e.length<4)return null;var i,c,l,u,f=/^\s*Line (\d+) of linked script ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i,p=/^\s*Line (\d+) of inline#(\d+) script in ((?:file|http|https)\S+)(?:: in function (\S+))?\s*$/i,h=/^\s*Line (\d+) of function script\s*$/i,d=[],b=document.getElementsByTagName("script"),g=[];for(c in b)b.hasOwnProperty(c)&&!b[c].src&&g.push(b[c]);for(c=2,l=e.length;c<l;c+=2){var m=null;if(i=f.exec(e[c]))m={url:i[2],func:i[3],line:+i[1]};else if(i=p.exec(e[c])){m={url:i[3],func:i[4]};var v=+i[1],y=g[i[2]-1];if(y&&(u=n(m.url))){u=u.join("\n");var w=u.indexOf(y.innerText);w>=0&&(m.line=v+u.substring(0,w).split("\n").length)}}else if(i=h.exec(e[c])){var _=window.location.href.replace(/#.*$/,""),x=i[1],k=new RegExp(a(e[c+1]));u=s(k,[_]),m={url:_,line:u?u.line:x,func:""}}if(m){m.func||(m.func=r(m.url,m.line));var E=o(m.url,m.line),S=E?E[Math.floor(E.length/2)]:null;E&&S.replace(/^\s*/,"")===e[c+1].replace(/^\s*/,"")?m.context=E:m.context=[e[c+1]],d.push(m)}}return d.length?{mode:"multiline",name:t.name,message:e[0],url:document.location.href,stack:d,useragent:navigator.userAgent}:null}function h(t,e,n,i){var a={url:e,line:n};if(a.url&&a.line){t.incomplete=!1,a.func||(a.func=r(a.url,a.line)),a.context||(a.context=o(a.url,a.line));var s=/ '([^']+)' /.exec(i);if(s&&(a.column=c(s[1],a.url,a.line)),t.stack.length>0&&t.stack[0].url===a.url){if(t.stack[0].line===a.line)return!1;if(!t.stack[0].line&&t.stack[0].func===a.func)return t.stack[0].line=a.line,t.stack[0].context=a.context,!1}return t.stack.unshift(a),t.partial=!0,!0}return t.incomplete=!0,!1}function d(t,e){for(var n,o,i,a=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,s=[],u={},f=!1,p=d.caller;p&&!f;p=p.caller)if(p!==b&&p!==_){if(o={url:null,func:UNKNOWN_FUNCTION,line:null,column:null},p.name?o.func=p.name:(n=a.exec(p.toString()))&&(o.func=n[1]),i=l(p)){o.url=i.url,o.line=i.line,o.func===UNKNOWN_FUNCTION&&(o.func=r(o.url,o.line));var g=/ '([^']+)' /.exec(t.message||t.description);g&&(o.column=c(g[1],i.url,i.line))}u[""+p]?f=!0:u[""+p]=!0,s.push(o)}e&&s.splice(0,e);var m={mode:"callers",name:t.name,message:t.message,url:document.location.href,stack:s,useragent:navigator.userAgent};return h(m,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),m}function b(t,e){var n=null;e=null==e?0:+e;try{if(n=f(t))return n}catch(t){if(m)throw t}try{if(n=u(t))return n}catch(t){if(m)throw t}try{if(n=p(t))return n}catch(t){if(m)throw t}try{if(n=d(t,e+1))return n}catch(t){if(m)throw t}return{mode:"failed"}}function g(t){t=(null==t?0:+t)+1;try{throw new Error}catch(e){return b(e,t+1)}}var m=!1,v={},y=t.remoteFetching,w=t.linesOfContext,_=t.tracekitReport;return b.augmentStackTraceWithInitialElement=h,b.guessFunctionName=r,b.gatherContext=o,b.ofCaller=g,b}function Notifier(t){_topLevelNotifier=_topLevelNotifier||this;var e=window.location.protocol;0!==e.indexOf("http")&&(e="https:");var n=e+"//"+Notifier.DEFAULT_ENDPOINT;this.options={endpoint:n,environment:"production",scrubFields:Util.copy(Notifier.DEFAULT_SCRUB_FIELDS),maxItems:Notifier.DEFAULT_MAX_ITEMS,itemsPerMinute:Notifier.DEFAULT_ITEMS_PER_MIN,checkIgnore:null,logLevel:Notifier.DEFAULT_LOG_LEVEL,reportLevel:Notifier.DEFAULT_REPORT_LEVEL,uncaughtErrorLevel:Notifier.DEFAULT_UNCAUGHT_ERROR_LEVEL,payload:{}},this.lastError=null,this.plugins={},this.parentNotifier=t,this.logger=function(){if(window.console&&window.console.log){var t=["Rollbar internal error:"].concat(Array.prototype.slice.call(arguments,0));window.console.log(t)}},t&&(t.hasOwnProperty("shimId")?t.notifier=this:(this.logger=t.logger,this.configure(t.options)))}function _wrapNotifierFn(t,e){return function(){var n=e||this;try{return t.apply(n,arguments)}catch(t){n&&n.logger(t)}}}function _guessErrorClass(t){var e=t.match(ERR_CLASS_REGEXP),n="(unknown)";return e&&(n=e[e.length-1],t=t.replace((e[e.length-2]||"")+n+":",""),t=t.replace(/(^[\s]+|[\s]+$)/g,"")),[n,t]}function _payloadProcessorTimer(t){for(var e;e=window._rollbarPayloadQueue.shift();)_processPayload(e.endpointUrl,e.accessToken,e.payload,e.callback);t||(payloadProcessorTimeout=setTimeout(_payloadProcessorTimer,1e3))}function _processPayload(t,e,n,r){r=r||function(){};var o=(new Date).getTime();o-rateLimitStartTime>=6e4&&(rateLimitStartTime=o,rateLimitPerMinCounter=0);var i=window._globalRollbarOptions.maxItems,a=window._globalRollbarOptions.itemsPerMinute,s=function(){return!n.ignoreRateLimit&&i>=1&&rateLimitCounter>=i},c=function(){return!n.ignoreRateLimit&&a>=1&&rateLimitPerMinCounter>=a};return s()?void r(new Error(i+" max items reached")):c()?void r(new Error(a+" items per minute reached")):(rateLimitCounter++,rateLimitPerMinCounter++,s()&&_topLevelNotifier._log(_topLevelNotifier.options.uncaughtErrorLevel,"maxItems has been hit. Ignoring errors for the remainder of the current page load.",null,{maxItems:i},null,!1,!0),n.ignoreRateLimit&&delete n.ignoreRateLimit,void XHR.post(t,e,n,function(t,e){return t?r(t):r(null,e)}))}function _rollbarWindowOnError(t,e,n){!n[4]&&window._rollbarWrappedError&&(n[4]=window._rollbarWrappedError,window._rollbarWrappedError=null),globalNotifier.uncaughtError.apply(globalNotifier,n),e&&e.apply(window,n)}function _extendListenerPrototype(t,e){if(e.hasOwnProperty&&e.hasOwnProperty("addEventListener")){var n=e.addEventListener;e.addEventListener=function(e,r,o){n.call(this,e,t.wrap(r),o)};var r=e.removeEventListener;e.removeEventListener=function(t,e,n){r.call(this,t,e._wrapped||e,n)}}}var setupCustomJSON=function(JSON){function f(t){return t<10?"0"+t:t}function quote(t){return escapable.lastIndex=0,escapable.test(t)?'"'+t.replace(escapable,function(t){var e=meta[t];return"string"==typeof e?e:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+t+'"'}function str(t,e){var n,r,o,i,a,s=gap,c=e[t];switch(c&&"object"==typeof c&&"function"==typeof c.toJSON&&(c=c.toJSON(t)),"function"==typeof rep&&(c=rep.call(e,t,c)),typeof c){case"string":return quote(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);case"object":if(!c)return"null";if(gap+=indent,a=[],"[object Array]"===Object.prototype.toString.apply(c)){for(i=c.length,n=0;n<i;n+=1)a[n]=str(n,c)||"null";return o=0===a.length?"[]":gap?"[\n"+gap+a.join(",\n"+gap)+"\n"+s+"]":"["+a.join(",")+"]",gap=s,o}if(rep&&"object"==typeof rep)for(i=rep.length,n=0;n<i;n+=1)"string"==typeof rep[n]&&(r=rep[n],o=str(r,c),o&&a.push(quote(r)+(gap?": ":":")+o));else for(r in c)Object.prototype.hasOwnProperty.call(c,r)&&(o=str(r,c),o&&a.push(quote(r)+(gap?": ":":")+o));return o=0===a.length?"{}":gap?"{\n"+gap+a.join(",\n"+gap)+"\n"+s+"}":"{"+a.join(",")+"}",gap=s,o}}"function"!=typeof Date.prototype.toJSON&&(Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null},String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()});var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;"function"!=typeof JSON.stringify&&(JSON.stringify=function(t,e,n){var r;if(gap="",indent="","number"==typeof n)for(r=0;r<n;r+=1)indent+=" ";else"string"==typeof n&&(indent=n);if(rep=e,e&&"function"!=typeof e&&("object"!=typeof e||"number"!=typeof e.length))throw new Error("JSON.stringify");return str("",{"":t})}),"function"!=typeof JSON.parse&&(JSON.parse=function(text,reviver){function walk(t,e){var n,r,o=t[e];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r=walk(o,n),void 0!==r?o[n]=r:delete o[n]);return reviver.call(t,e,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse")})},UNKNOWN_FUNCTION="?",Util={merge:function(){var t,e,n,r,o,i,a=arguments[0]||{},s=1,c=arguments.length,l=!0;for("object"!=typeof a&&"function"!=typeof a&&(a={});s<c;s++)if(null!==(t=arguments[s]))for(e in t)n=a[e],r=t[e],a!==r&&(l&&r&&(r.constructor==Object||(o=r.constructor==Array))?(o?(o=!1,i=n&&n.constructor==Array?n:[]):i=n&&n.constructor==Object?n:{},a[e]=Util.merge(i,r)):void 0!==r&&(a[e]=r));return a},copy:function(t){var e;return"object"==typeof t&&(t.constructor==Object?e={}:t.constructor==Array&&(e=[])),Util.merge(e,t),e},parseUriOptions:{strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},parseUri:function(t){if(!t||"string"!=typeof t&&!(t instanceof String))throw new Error("Util.parseUri() received invalid input");for(var e=Util.parseUriOptions,n=e.parser[e.strictMode?"strict":"loose"].exec(t),r={},o=14;o--;)r[e.key[o]]=n[o]||"";return r[e.q.name]={},r[e.key[12]].replace(e.q.parser,function(t,n,o){n&&(r[e.q.name][n]=o)}),r},sanitizeUrl:function(t){if(!t||"string"!=typeof t&&!(t instanceof String))throw new Error("Util.sanitizeUrl() received invalid input");var e=Util.parseUri(t);return""===e.anchor&&(e.source=e.source.replace("#","")),t=e.source.replace("?"+e.query,"")},traverse:function(t,e){var n,r,o,i="object"==typeof t,a=[];if(i)if(t.constructor===Object)for(n in t)t.hasOwnProperty(n)&&a.push(n);else if(t.constructor===Array)for(o=0;o<t.length;++o)a.push(o);for(o=0;o<a.length;++o)n=a[o],r=t[n],i="object"==typeof r,i?null===r?t[n]=e(n,r):r.constructor===Object?t[n]=Util.traverse(r,e):r.constructor===Array?t[n]=Util.traverse(r,e):t[n]=e(n,r):t[n]=e(n,r);return t},redact:function(t){return t=String(t),new Array(t.length+1).join("*")},uuid4:function(){var t=(new Date).getTime(),e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:7&n|8).toString(16)});return e}},RollbarJSON={},testData={a:[{b:1}]};try{var serialized=JSON.stringify(testData);'{"a":[{"b":1}]}'!==serialized?setupCustomJSON(RollbarJSON):(RollbarJSON.stringify=JSON.stringify,RollbarJSON.parse=JSON.parse)}catch(t){setupCustomJSON(RollbarJSON)}var XHR={XMLHttpFactories:[function(){return new XMLHttpRequest},function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new ActiveXObject("Msxml3.XMLHTTP")},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],createXMLHTTPObject:function(){var t,e=!1,n=XHR.XMLHttpFactories,r=n.length;for(t=0;t<r;t++)try{e=n[t]();break}catch(t){}return e},post:function(t,e,n,r){if("object"!=typeof n)throw new Error("Expected an object to POST");n=RollbarJSON.stringify(n),r=r||function(){};var o=XHR.createXMLHTTPObject();if(o)try{try{var i=function(t){try{i&&4===o.readyState&&(i=void 0,200===o.status?r(null,RollbarJSON.parse(o.responseText)):r("number"==typeof o.status&&o.status>=400&&o.status<600?new Error(o.status.toString()):new Error))}catch(t){var e;e="object"==typeof t&&t.stack?t:new Error(t),r(e)}};o.open("POST",t,!0),o.setRequestHeader&&(o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("X-Rollbar-Access-Token",e)),o.onreadystatechange=i,o.send(n)}catch(e){if("undefined"!=typeof XDomainRequest){var a=function(t){r(new Error)},s=function(t){r(new Error)},c=function(t){r(null,RollbarJSON.parse(o.responseText))};o=new XDomainRequest,o.onprogress=function(){},o.ontimeout=a,o.onerror=s,o.onload=c,o.open("POST",t,!0),o.send(n)}}}catch(t){r(t)}}};Notifier.NOTIFIER_VERSION="1.0.0-rc.8",Notifier.DEFAULT_ENDPOINT="api.rollbar.com/api/1/",Notifier.DEFAULT_SCRUB_FIELDS=["passwd","password","secret","confirm_password","password_confirmation"],Notifier.DEFAULT_LOG_LEVEL="debug",Notifier.DEFAULT_REPORT_LEVEL="debug",Notifier.DEFAULT_UNCAUGHT_ERROR_LEVEL="warning",Notifier.DEFAULT_ITEMS_PER_MIN=60,Notifier.DEFAULT_MAX_ITEMS=0,Notifier.LEVELS={debug:0,info:1,warning:2,error:3,critical:4},window._rollbarPayloadQueue=[],window._globalRollbarOptions={startTime:(new Date).getTime()};var TK=computeStackTraceWrapper({remoteFetching:!1,linesOfContext:3}),_topLevelNotifier;Notifier._generateLogFn=function(t){return _wrapNotifierFn(function(){var e=this._getLogArgs(arguments);return this._log(t||e.level||this.options.logLevel||Notifier.DEFAULT_LOG_LEVEL,e.message,e.err,e.custom,e.callback)})},Notifier.prototype._getLogArgs=function(t){for(var e,n,r,o,i,a,s,c=this.options.logLevel||Notifier.DEFAULT_LOG_LEVEL,l=0;l<t.length;++l)s=t[l],a=typeof s,"string"===a?n=s:"function"===a?i=_wrapNotifierFn(s,this):s&&"object"===a&&("Date"===s.constructor.name?e=s:s instanceof Error||s.prototype===Error.prototype||s.hasOwnProperty("stack")?r=s:o=s);return{level:c,message:n,err:r,custom:o,callback:i}},Notifier.prototype._route=function(t){var e=this.options.endpoint,n=/\/$/.test(e),r=/^\//.test(t);return n&&r?t=t.substring(1):n||r||(t="/"+t),e+t},Notifier.prototype._processShimQueue=function(t){for(var e,n,r,o,i,a,s,c={};n=t.shift();)e=n.shim,r=n.method,o=n.args,i=e.parentShim,s=c[e.shimId],s||(i?(a=c[i.shimId],s=new Notifier(a)):s=this,c[e.shimId]=s),s[r]&&"function"==typeof s[r]&&s[r].apply(s,o)},Notifier.prototype._buildPayload=function(t,e,n,r,o){var i=this.options.accessToken,a=this.options.environment,s=Util.copy(this.options.payload),c=Util.uuid4();if(void 0===Notifier.LEVELS[e])throw new Error("Invalid level");if(!n&&!r&&!o)throw new Error("No message, stack info or custom data");var l={environment:a,endpoint:this.options.endpoint,uuid:c,level:e,platform:"browser",framework:"browser-js",language:"javascript",body:this._buildBody(n,r,o),request:{url:window.location.href,query_string:window.location.search,user_ip:"$remote_ip"},client:{runtime_ms:t.getTime()-window._globalRollbarOptions.startTime,timestamp:Math.round(t.getTime()/1e3),javascript:{browser:window.navigator.userAgent,language:window.navigator.language,cookie_enabled:window.navigator.cookieEnabled,screen:{width:window.screen.width,height:window.screen.height},plugins:this._getBrowserPlugins()}},server:{},notifier:{name:"rollbar-browser-js",version:Notifier.NOTIFIER_VERSION}};s.body&&delete s.body;var u={access_token:i,data:Util.merge(l,s)};return this._scrub(u.data),u},Notifier.prototype._buildBody=function(t,e,n){var r;return r=e&&"failed"!==e.mode?this._buildPayloadBodyTrace(t,e,n):this._buildPayloadBodyMessage(t,n)},Notifier.prototype._buildPayloadBodyMessage=function(t,e){t||(t=e?RollbarJSON.stringify(e):"");var n={body:t};return e&&(n.extra=Util.copy(e)),{message:n}},Notifier.prototype._buildPayloadBodyTrace=function(t,e,n){var r=_guessErrorClass(e.message),o=e.name||r[0],i=r[1],a={exception:{class:o,message:i}};if(t&&(a.exception.description=t||"uncaught exception"),e.stack){var s,c,l,u,f,p,h,d;for(a.frames=[],h=0;h<e.stack.length;++h)s=e.stack[h],c={filename:s.url?Util.sanitizeUrl(s.url):"(unknown)",lineno:s.line||null,method:s.func&&"?"!==s.func?s.func:"[anonymous]",colno:s.column},l=u=f=null,p=s.context?s.context.length:0,p&&(d=Math.floor(p/2),u=s.context.slice(0,d),l=s.context[d],f=s.context.slice(d)),l&&(c.code=l),(u||f)&&(c.context={},u&&u.length&&(c.context.pre=u),f&&f.length&&(c.context.post=f)),s.args&&(c.args=s.args),a.frames.push(c);return n&&(a.extra=Util.copy(n)),{trace:a}}return this._buildPayloadBodyMessage(o+": "+i,n)},Notifier.prototype._getBrowserPlugins=function(){if(!this._browserPlugins){var t,e,n=window.navigator.plugins||[],r=n.length,o=[];for(e=0;e<r;++e)t=n[e],o.push({name:t.name,description:t.description});this._browserPlugins=o}return this._browserPlugins},Notifier.prototype._scrub=function(t){function e(t,e,n,r,o,i,a,s){return e+Util.redact(i)}function n(t){var n;if("string"==typeof t)for(n=0;n<s.length;++n)t=t.replace(s[n],e);return t}function r(t,e){var n;for(n=0;n<a.length;++n)if(a[n].test(t)){e=Util.redact(e);break}return e}function o(t,e){var o=r(t,e);return o===e?n(o):o}var i=this.options.scrubFields,a=this._getScrubFieldRegexs(i),s=this._getScrubQueryParamRegexs(i);return Util.traverse(t,o),t},Notifier.prototype._getScrubFieldRegexs=function(t){for(var e,n=[],r=0;r<t.length;++r)e="\\[?(%5[bB])?"+t[r]+"\\[?(%5[bB])?\\]?(%5[dD])?",n.push(new RegExp(e,"i"));return n},Notifier.prototype._getScrubQueryParamRegexs=function(t){for(var e,n=[],r=0;r<t.length;++r)e="\\[?(%5[bB])?"+t[r]+"\\[?(%5[bB])?\\]?(%5[dD])?",n.push(new RegExp("("+e+"=)([^&\\n]+)","igm"));return n},Notifier.prototype._enqueuePayload=function(t,e,n,r){var o=function(){if(r){var t="This item was not sent to Rollbar because it was ignored. This can happen if a custom checkIgnore() function was used or if the item's level was less than the notifier' reportLevel. See https://rollbar.com/docs/notifier/rollbar.js/configuration for more details.";r(null,{err:0,result:{id:null,uuid:null,message:t}})}};if(this._internalCheckIgnore(e,n,t))return void o();try{if(this.options.checkIgnore&&"function"==typeof this.options.checkIgnore&&this.options.checkIgnore(e,n,t))return void o()}catch(t){this.configure({checkIgnore:null}),this.error("Error while calling custom checkIgnore() function. Removing custom checkIgnore().",t)}window._rollbarPayloadQueue.push({callback:r,accessToken:this.options.accessToken,endpointUrl:this._route("item/"),payload:t})},Notifier.prototype._internalCheckIgnore=function(t,e,n){var r=e[0],o=Notifier.LEVELS[r]||0,i=Notifier.LEVELS[this.options.reportLevel]||0;if(o<i)return!0;var a=this.options?this.options.plugins:{};return!!(a&&a.jquery&&a.jquery.ignoreAjaxErrors&&n.body.message)&&n.body.messagejquery_ajax_error},Notifier.prototype._log=function(t,e,n,r,o,i,a){var s=null;if(n){if(s=n._tkStackTrace?n._tkStackTrace:TK(n),n===this.lastError)return;this.lastError=n}var c=this._buildPayload(new Date,t,e,s,r);a&&(c.ignoreRateLimit=!0),this._enqueuePayload(c,!!i,[t,e,n,r],o)},Notifier.prototype.log=Notifier._generateLogFn(),Notifier.prototype.debug=Notifier._generateLogFn("debug"),Notifier.prototype.info=Notifier._generateLogFn("info"),Notifier.prototype.warn=Notifier._generateLogFn("warning"),Notifier.prototype.warning=Notifier._generateLogFn("warning"),Notifier.prototype.error=Notifier._generateLogFn("error"),Notifier.prototype.critical=Notifier._generateLogFn("critical"),Notifier.prototype.uncaughtError=_wrapNotifierFn(function(t,e,n,r,o){if(o&&o.stack)return void this._log(this.options.uncaughtErrorLevel,t,o,null,null,!0);if(e&&e.stack)return void this._log(this.options.uncaughtErrorLevel,t,e,null,null,!0);var i={url:e||"",line:n};i.func=TK.guessFunctionName(i.url,i.line),i.context=TK.gatherContext(i.url,i.line);var a={mode:"onerror",message:t||"uncaught exception",url:document.location.href,stack:[i],useragent:navigator.userAgent};o&&(a=o._tkStackTrace||TK(o));var s=this._buildPayload(new Date,this.options.uncaughtErrorLevel,t,a);this._enqueuePayload(s,!0,[this.options.uncaughtErrorLevel,t,e,n,r,o])}),Notifier.prototype.global=_wrapNotifierFn(function(t){t=t||{},Util.merge(window._globalRollbarOptions,t),void 0!==t.maxItems&&(rateLimitCounter=0),void 0!==t.itemsPerMinute&&(rateLimitPerMinCounter=0)}),Notifier.prototype.configure=_wrapNotifierFn(function(t){Util.merge(this.options,t)}),Notifier.prototype.scope=_wrapNotifierFn(function(t){var e=new Notifier(this);return Util.merge(e.options.payload,t),e}),Notifier.prototype.wrap=function(t){if("function"!=typeof t)return t;if(t._isWrap)return t;if(!t._wrapped){t._wrapped=function(){try{t.apply(this,arguments)}catch(t){throw t.stack||(t._tkStackTrace=TK(t)),window._rollbarWrappedError=t,t}},t._wrapped._isWrap=!0;for(var e in t)t.hasOwnProperty(e)&&(t._wrapped[e]=t[e])}return t._wrapped};var ERR_CLASS_REGEXP=new RegExp("^(([a-zA-Z0-9-_$ ]*): *)?(Uncaught )?([a-zA-Z0-9-_$ ]*): "),payloadProcessorTimeout;Notifier.processPayloads=function(t){payloadProcessorTimeout&&!t||_payloadProcessorTimer(t)};var rateLimitStartTime=(new Date).getTime(),rateLimitCounter=0,rateLimitPerMinCounter=0,globalNotifier=new Notifier;window._rollbarWrappedError=null,globalNotifier.init=function(t){if(this.configure(t),t.captureUncaught){var e=window.onerror;window.onerror=function(){var t=Array.prototype.slice.call(arguments,0);_rollbarWindowOnError(globalNotifier,e,t)};var n,r,o=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"];for(n=0;n<o.length;++n)r=o[n],window[r]&&window[r].prototype&&_extendListenerPrototype(this,window[r].prototype)}Notifier.processPayloads()},module.exports=globalNotifier}(window,document)},function(t,e,n){(function(e){var r=n(21);t.exports=function t(){var e="_"+r.name+"_Globals";return t[e]=t[e]||{},t[e]}}).call(e,function(){return this}())},function(t,e){String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/,"")})},function(t,e){var n={};t.exports=function(t){return n.hasOwnProperty(t)||(n[t]=new r(t)),n[t]};var r=function(t){var e=t+".applicationStorage",n=null,r=function(){var t=JSON.stringify(n);localStorage.setItem(e,t)},o=function(){var t=localStorage.getItem(e);t&&(n=JSON.parse(t)),null===n&&(n={})},i=function(){return null===n&&o(),n};this.get=function(t){return i()[t]},this.set=function(t,e){i()[t]=e,r()},this.use=function(t){t(i()),r()},this._getGetLocalStorageKey=function(){return e}}},function(t,e,n){var r=n(14),o=n(48),i=n(49);n(50),n(53),t.exports=function(){var t="0.15s",e=2,n=null,a=null,s=null,c=3,l=new o(c),u=null,f=null,p=null,h=function(){document.body.appendChild(n)},d=function(){document.body.removeChild(n),n=null,a=null},b=function(){n||(n=document.createElement("div"),r(n).addClass("bootstrap").addClass("bookcision-feedback-fixedWrapper"),a=document.createElement("div"),r(a).addClass("bookcision-feedback-containerElement"),f=document.createElement("div"),r(f).addClass("progress").addClass("progress-dull").addClass("progress-striped"),u=document.createElement("div"),r(u).addClass("bar"),f.appendChild(u),a.appendChild(f),y(),s=document.createElement("ul"),r(s).addClass("bookcision-feedback-messagesContainerElement"),a.appendChild(s),n.appendChild(a),n.addEventListener("click",function(t){a.contains(t.target)||g()}),h()),m()},g=function(){x();var e=function(){a&&(a.style.display="none",i(a).y(0).duration("0s").end(),d(),v())};i(a).y(a.offsetHeight*-1).duration(t).then(e).end()},m=function(){a.style.display="inline-block"},v=function(){for(;s.hasChildNodes();)s.removeChild(s.lastChild);l.empty()},y=function(){p=null,f.style.display="none"},w=function(t){if(t<0||t>100)throw new Error("Progress bar width must be between 0 and 100, inclusive");p=t,u.style.width=String(p)+"%",p<100?r(f).addClass("active"):r(f).removeClass("active"),f.style.display=""},_=null,x=function(){_&&(clearTimeout(_),_=null)},k=function(){x(),null!==p&&100!==p||(_=setTimeout(g,1e3*e))},E=function(e,n){n?w(n):y();var o=document.createElement("li");o.style.fontSize="0.4em",o.style.opacity="0";var a=l.unshift(o);a&&i(a).set("font-size","0em").set("opacity","0").duration(t).end(function(){s.contains(a)&&s.removeChild(a)});var c=document.createTextNode(e);o.appendChild(c),o.style.margin=0,s.insertBefore(o,s.firstElementChild),r(o).getUsedValue("opacity");var u=Array.prototype.slice.call(s.children);u.forEach(function(e,n){switch(n){case 0:i(e).set("font-size","2.5em").set("opacity","1").duration(t).end();break;case 1:i(e).set("font-size","1.5em").set("color","rgba(255, 255, 255, .5)").duration(t).end();break;case 2:i(e).set("font-size","1.0em").set("color","rgba(255, 255, 255, .3)").duration(t).end()}})};return function(){if(!document.body)throw"Error: DOM is not loaded yet.";b(),E.apply(this,arguments),k()}}()},function(t,e){t.exports=function(t){var e=[],n=[];this.unshift=function(r){return e.unshift(r),n.forEach(function(t){t(e)}),e.length>t?e.pop():null},this.empty=function(){e.length=0},this.onItemAdded=function(t){n.push(t)}}},function(t,e){/*! | |
* move | |
* Copyright(c) 2011 TJ Holowaychuk <[email protected]> | |
* MIT Licensed | |
*/ | |
t.exports=function(){function t(){this.callbacks={}}var e=window.getComputedStyle||window.currentStyle,n={top:"px",bottom:"px",left:"px",right:"px",width:"px",height:"px","font-size":"px",margin:"px","margin-top":"px","margin-bottom":"px","margin-left":"px","margin-right":"px",padding:"px","padding-top":"px","padding-bottom":"px","padding-left":"px","padding-right":"px"},r=function(t){return new o(r.select(t))};r.version="0.0.3",r.defaults={duration:500},r.ease={in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",linear:"cubic-bezier(0.250, 0.250, 0.750, 0.750)","ease-in-quad":"cubic-bezier(0.550, 0.085, 0.680, 0.530)","ease-in-cubic":"cubic-bezier(0.550, 0.055, 0.675, 0.190)","ease-in-quart":"cubic-bezier(0.895, 0.030, 0.685, 0.220)","ease-in-quint":"cubic-bezier(0.755, 0.050, 0.855, 0.060)","ease-in-sine":"cubic-bezier(0.470, 0.000, 0.745, 0.715)","ease-in-expo":"cubic-bezier(0.950, 0.050, 0.795, 0.035)","ease-in-circ":"cubic-bezier(0.600, 0.040, 0.980, 0.335)","ease-in-back":"cubic-bezier(0.600, -0.280, 0.735, 0.045)","ease-out-quad":"cubic-bezier(0.250, 0.460, 0.450, 0.940)","ease-out-cubic":"cubic-bezier(0.215, 0.610, 0.355, 1.000)","ease-out-quart":"cubic-bezier(0.165, 0.840, 0.440, 1.000)","ease-out-quint":"cubic-bezier(0.230, 1.000, 0.320, 1.000)","ease-out-sine":"cubic-bezier(0.390, 0.575, 0.565, 1.000)","ease-out-expo":"cubic-bezier(0.190, 1.000, 0.220, 1.000)","ease-out-circ":"cubic-bezier(0.075, 0.820, 0.165, 1.000)","ease-out-back":"cubic-bezier(0.175, 0.885, 0.320, 1.275)","ease-out-quad":"cubic-bezier(0.455, 0.030, 0.515, 0.955)","ease-out-cubic":"cubic-bezier(0.645, 0.045, 0.355, 1.000)","ease-in-out-quart":"cubic-bezier(0.770, 0.000, 0.175, 1.000)","ease-in-out-quint":"cubic-bezier(0.860, 0.000, 0.070, 1.000)","ease-in-out-sine":"cubic-bezier(0.445, 0.050, 0.550, 0.950)","ease-in-out-expo":"cubic-bezier(1.000, 0.000, 0.000, 1.000)","ease-in-out-circ":"cubic-bezier(0.785, 0.135, 0.150, 0.860)","ease-in-out-back":"cubic-bezier(0.680, -0.550, 0.265, 1.550)"},r.select=function(t){return"string"!=typeof t?t:document.getElementById(t)||document.querySelectorAll(t)[0]},t.prototype.on=function(t,e){return(this.callbacks[t]=this.callbacks[t]||[]).push(e),this},t.prototype.emit=function(t){var e,n=Array.prototype.slice.call(arguments,1),r=this.callbacks[t];if(r){e=r.length;for(var o=0;o<e;++o)r[o].apply(this,n)}return this};var o=function e(n){return this instanceof e?(t.call(this),this.el=n,this._props={},this._rotate=0,this._transitionProps=[],this._transforms=[],void this.duration(r.defaults.duration)):new e(n)};return o.prototype=new t,o.prototype.constructor=o,o.prototype.transform=function(t){return this._transforms.push(t),this},o.prototype.skew=function(t,e){return e=e||0,this.transform("skew("+t+"deg, "+e+"deg)")},o.prototype.skewX=function(t){return this.transform("skewX("+t+"deg)")},o.prototype.skewY=function(t){return this.transform("skewY("+t+"deg)")},o.prototype.translate=o.prototype.to=function(t,e){return e=e||0,this.transform("translate("+t+"px, "+e+"px)")},o.prototype.translateX=o.prototype.x=function(t){return this.transform("translateX("+t+"px)")},o.prototype.translateY=o.prototype.y=function(t){return this.transform("translateY("+t+"px)")},o.prototype.scale=function(t,e){return e=null==e?t:e,this.transform("scale("+t+", "+e+")")},o.prototype.scaleX=function(t){return this.transform("scaleX("+t+")")},o.prototype.scaleY=function(t){return this.transform("scaleY("+t+")")},o.prototype.rotate=function(t){return this.transform("rotate("+t+"deg)")},o.prototype.ease=function(t){return t=r.ease[t]||t||"ease",this.setVendorProperty("transition-timing-function",t)},o.prototype.animate=function(t,e){for(var n in e)e.hasOwnProperty(n)&&this.setVendorProperty("animation-"+n,e[n]);return this.setVendorProperty("animation-name",t)},o.prototype.duration=function(t){return t=this._duration="string"==typeof t?1e3*parseFloat(t):t,this.setVendorProperty("transition-duration",t+"ms")},o.prototype.delay=function(t){return t="string"==typeof t?1e3*parseFloat(t):t,this.setVendorProperty("transition-delay",t+"ms")},o.prototype.setProperty=function(t,e){return this._props[t]=e,this},o.prototype.setVendorProperty=function(t,e){return this.setProperty("-webkit-"+t,e),this.setProperty("-moz-"+t,e),this.setProperty("-ms-"+t,e),this.setProperty("-o-"+t,e),this},o.prototype.set=function(t,e){return this.transition(t),"number"==typeof e&&n[t]&&(e+=n[t]),this._props[t]=e,this},o.prototype.add=function(t,n){if(e){var r=this;return this.on("start",function(){var e=parseInt(r.current(t),10);r.set(t,e+n+"px")})}},o.prototype.sub=function(t,n){if(e){var r=this;return this.on("start",function(){var e=parseInt(r.current(t),10);r.set(t,e-n+"px")})}},o.prototype.current=function(t){return e(this.el).getPropertyValue(t)},o.prototype.transition=function(t){return this._transitionProps.indexOf(t)?(this._transitionProps.push(t),this):this},o.prototype.applyProperties=function(){var t=this._props,e=this.el;for(var n in t)t.hasOwnProperty(n)&&e.style.setProperty(n,t[n],"");return this},o.prototype.move=o.prototype.select=function(t){return this.el=r.select(t),this},o.prototype.then=function(t){if(t instanceof o)this.on("end",function(){t.end()});else{if("function"!=typeof t){var e=new o(this.el);return e._transforms=this._transforms.slice(0),this.then(e),e.parent=this,e}this.on("end",t)}return this},o.prototype.pop=function(){return this.parent},o.prototype.end=function(t){var e=this;return this.emit("start"),this._transforms.length&&this.setVendorProperty("transform",this._transforms.join(" ")),this.setVendorProperty("transition-properties",this._transitionProps.join(", ")),this.applyProperties(),t&&this.then(t),setTimeout(function(){e.emit("end")},this._duration),this},r}()},function(t,e,n){n(51)(n(52))},function(t,e,n){t.exports=function(t){var e=document.createElement("style");e.type="text/css";var n=document.getElementsByTagName("head")[0];return n.appendChild(e),e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t)),function(){n.removeChild(e)}}},function(t,e){t.exports='/*!\n * Bootstrap v2.3.1\n *\n * Copyright 2012 Twitter, Inc\n * Licensed under the Apache License v2.0\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Designed and built with all the love in the world @twitter by @mdo and @fat.\n *\n */.bootstrap .clearfix{*zoom:1}.bootstrap .clearfix:before,.bootstrap .clearfix:after{display:table;content:"";line-height:0}.bootstrap .clearfix:after{clear:both}.bootstrap .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bootstrap .input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap article,.bootstrap aside,.bootstrap details,.bootstrap figcaption,.bootstrap figure,.bootstrap footer,.bootstrap header,.bootstrap hgroup,.bootstrap nav,.bootstrap section{display:block}.bootstrap audio,.bootstrap canvas,.bootstrap video{display:inline-block;*display:inline;*zoom:1}.bootstrap audio:not([controls]){display:none}.bootstrap html{font-size:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}.bootstrap a:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bootstrap a:hover,.bootstrap a:active{outline:0}.bootstrap sub,.bootstrap sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.bootstrap sup{top:-.5em}.bootstrap sub{bottom:-.25em}.bootstrap img{max-width:100%;width:auto\\9;height:auto;vertical-align:middle;border:0;-ms-interpolation-mode:bicubic}.bootstrap #map_canvas img,.bootstrap .google-maps img{max-width:none}.bootstrap button,.bootstrap input,.bootstrap select{margin:0;font-size:100%;vertical-align:middle}.bootstrap textarea{margin:0;font-size:100%}.bootstrap button,.bootstrap input{*overflow:visible;line-height:normal}.bootstrap button::-moz-focus-inner,.bootstrap input::-moz-focus-inner{padding:0;border:0}.bootstrap button{-webkit-appearance:button}.bootstrap html input[type="button"]{-webkit-appearance:button;cursor:pointer}.bootstrap input[type="reset"],.bootstrap input[type="submit"]{-webkit-appearance:button}.bootstrap label,.bootstrap select,.bootstrap button,.bootstrap input[type="button"],.bootstrap input[type="reset"],.bootstrap input[type="submit"],.bootstrap input[type="radio"],.bootstrap input[type="checkbox"]{cursor:pointer}.bootstrap input[type="search"]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}.bootstrap input[type="search"]::-webkit-search-decoration,.bootstrap input[type="search"]::-webkit-search-cancel-button{-webkit-appearance:none}.bootstrap textarea{overflow:auto;vertical-align:top}@media print{.bootstrap *{text-shadow:none!important;color:#000!important;background:transparent!important;box-shadow:none!important}.bootstrap a,.bootstrap a:visited{text-decoration:underline}.bootstrap a[href]:after{content:" (" attr(href)")"}.bootstrap abbr[title]:after{content:" (" attr(title)")"}.bootstrap .ir a:after,.bootstrap a[href^="javascript:"]:after,.bootstrap a[href^="#"]:after{content:""}.bootstrap pre,.bootstrap blockquote{border:1px solid #999;page-break-inside:avoid}.bootstrap thead{display:table-header-group}.bootstrap tr,.bootstrap img{page-break-inside:avoid}.bootstrap img{max-width:100%!important}@page{margin:.5cm}.bootstrap p,.bootstrap h2,.bootstrap h3{orphans:3;widows:3}.bootstrap h2,.bootstrap h3{page-break-after:avoid}}.bootstrap .btn{display:inline-block;*display:inline;*zoom:1;padding:4px 12px;margin-bottom:0;font-size:14px;line-height:20px;text-align:center;vertical-align:middle;cursor:pointer;color:#333;text-shadow:0 1px 1px rgba(255,255,255,.75);background-color:#f5f5f5;background-image:-moz-linear-gradient(top,#fff,#e6e6e6);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fff),to(#e6e6e6));background-image:-webkit-linear-gradient(top,#fff,#e6e6e6);background-image:-o-linear-gradient(top,#fff,#e6e6e6);background-image:linear-gradient(to bottom,#fff,#e6e6e6);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ffffffff\', endColorstr=\'#ffe6e6e6\', GradientType=0);border-color:rgba(0,0,0,.1)rgba(0,0,0,.1)rgba(0,0,0,.25);*background-color:#e6e6e6;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);border:1px solid #ccc;*border:0;border-bottom-color:#b3b3b3;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;*margin-left:.3em;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05)}.bootstrap .btn:hover,.bootstrap .btn.hover{background-color:#e6e6e6;*background-color:#d9d9d9}.bootstrap .btn:focus{color:#333}.bootstrap .btn:focus,.bootstrap .btn.focus{background-color:#e6e6e6;*background-color:#d9d9d9}.bootstrap .btn:active,.bootstrap .btn.active,.bootstrap .btn.disabled,.bootstrap .btn[disabled]{color:#333;background-color:#e6e6e6;*background-color:#d9d9d9}.bootstrap .btn:active,.bootstrap .btn.active{background-color:#ccc \\9}.bootstrap .btn:first-child{*margin-left:0}.bootstrap .btn:hover,.bootstrap .btn.hover,.bootstrap .btn:focus,.bootstrap .btn.focus{color:#333;text-decoration:none;background-position:0 -15px;-webkit-transition:background-position .1s linear;-moz-transition:background-position .1s linear;-o-transition:background-position .1s linear;transition:background-position .1s linear}.bootstrap .btn:focus{outline:thin dotted #333;outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.bootstrap .btn.active,.bootstrap .btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.bootstrap .btn.disabled,.bootstrap .btn[disabled]{cursor:default;background-image:none;opacity:.65;filter:alpha(opacity=65);-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.bootstrap .btn-large{padding:11px 19px;font-size:17.5px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.bootstrap .btn-large [class^="icon-"],.bootstrap .btn-large [class*=" icon-"]{margin-top:4px}.bootstrap .btn-small{padding:2px 10px;font-size:11.9px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bootstrap .btn-small [class^="icon-"],.bootstrap .btn-small [class*=" icon-"]{margin-top:0}.bootstrap .btn-mini [class^="icon-"],.bootstrap .btn-mini [class*=" icon-"]{margin-top:-1px}.bootstrap .btn-mini{padding:0 6px;font-size:10.5px;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.bootstrap .btn-block{display:block;width:100%;padding-left:0;padding-right:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bootstrap .btn-block+.btn-block{margin-top:5px}.bootstrap input[type="submit"].btn-block,.bootstrap input[type="reset"].btn-block,.bootstrap input[type="button"].btn-block{width:100%}.bootstrap .btn-primary.active,.bootstrap .btn-warning.active,.bootstrap .btn-danger.active,.bootstrap .btn-success.active,.bootstrap .btn-info.active,.bootstrap .btn-inverse.active{color:rgba(255,255,255,.75)}.bootstrap .btn-primary{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#006dcc;background-image:-moz-linear-gradient(top,#08c,#04c);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#04c));background-image:-webkit-linear-gradient(top,#08c,#04c);background-image:-o-linear-gradient(top,#08c,#04c);background-image:linear-gradient(to bottom,#08c,#04c);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ff0088cc\', endColorstr=\'#ff0044cc\', GradientType=0);border-color:#04c #04c #002a80;border-color:rgba(0,0,0,.1)rgba(0,0,0,.1)rgba(0,0,0,.25);*background-color:#04c;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.bootstrap .btn-primary:hover,.bootstrap .btn-primary.hover,.bootstrap .btn-primary:focus,.bootstrap .btn-primary.focus,.bootstrap .btn-primary:active,.bootstrap .btn-primary.active,.bootstrap .btn-primary.disabled,.bootstrap .btn-primary[disabled]{color:#fff;background-color:#04c;*background-color:#003bb3}.bootstrap .btn-primary:active,.bootstrap .btn-primary.active{background-color:#039 \\9}.bootstrap .btn-warning{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#faa732;background-image:-moz-linear-gradient(top,#fbb450,#f89406);background-image:-webkit-gradient(linear,0 0,0 100%,from(#fbb450),to(#f89406));background-image:-webkit-linear-gradient(top,#fbb450,#f89406);background-image:-o-linear-gradient(top,#fbb450,#f89406);background-image:linear-gradient(to bottom,#fbb450,#f89406);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#fffbb450\', endColorstr=\'#fff89406\', GradientType=0);border-color:#f89406 #f89406 #ad6704;border-color:rgba(0,0,0,.1)rgba(0,0,0,.1)rgba(0,0,0,.25);*background-color:#f89406;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.bootstrap .btn-warning:hover,.bootstrap .btn-warning.hover,.bootstrap .btn-warning:focus,.bootstrap .btn-warning.focus,.bootstrap .btn-warning:active,.bootstrap .btn-warning.active,.bootstrap .btn-warning.disabled,.bootstrap .btn-warning[disabled]{color:#fff;background-color:#f89406;*background-color:#df8505}.bootstrap .btn-warning:active,.bootstrap .btn-warning.active{background-color:#c67605 \\9}.bootstrap .btn-danger{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#da4f49;background-image:-moz-linear-gradient(top,#ee5f5b,#bd362f);background-image:-webkit-gradient(linear,0 0,0 100%,from(#ee5f5b),to(#bd362f));background-image:-webkit-linear-gradient(top,#ee5f5b,#bd362f);background-image:-o-linear-gradient(top,#ee5f5b,#bd362f);background-image:linear-gradient(to bottom,#ee5f5b,#bd362f);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ffee5f5b\', endColorstr=\'#ffbd362f\', GradientType=0);border-color:#bd362f #bd362f #802420;border-color:rgba(0,0,0,.1)rgba(0,0,0,.1)rgba(0,0,0,.25);*background-color:#bd362f;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.bootstrap .btn-danger:hover,.bootstrap .btn-danger.hover,.bootstrap .btn-danger:focus,.bootstrap .btn-danger.focus,.bootstrap .btn-danger:active,.bootstrap .btn-danger.active,.bootstrap .btn-danger.disabled,.bootstrap .btn-danger[disabled]{color:#fff;background-color:#bd362f;*background-color:#a9302a}.bootstrap .btn-danger:active,.bootstrap .btn-danger.active{background-color:#942a25 \\9}.bootstrap .btn-success{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#5bb75b;background-image:-moz-linear-gradient(top,#62c462,#51a351);background-image:-webkit-gradient(linear,0 0,0 100%,from(#62c462),to(#51a351));background-image:-webkit-linear-gradient(top,#62c462,#51a351);background-image:-o-linear-gradient(top,#62c462,#51a351);background-image:linear-gradient(to bottom,#62c462,#51a351);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ff62c462\', endColorstr=\'#ff51a351\', GradientType=0);border-color:#51a351 #51a351 #387038;border-color:rgba(0,0,0,.1)rgba(0,0,0,.1)rgba(0,0,0,.25);*background-color:#51a351;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.bootstrap .btn-success:hover,.bootstrap .btn-success.hover,.bootstrap .btn-success:focus,.bootstrap .btn-success.focus,.bootstrap .btn-success:active,.bootstrap .btn-success.active,.bootstrap .btn-success.disabled,.bootstrap .btn-success[disabled]{color:#fff;background-color:#51a351;*background-color:#499249}.bootstrap .btn-success:active,.bootstrap .btn-success.active{background-color:#408140 \\9}.bootstrap .btn-info{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#49afcd;background-image:-moz-linear-gradient(top,#5bc0de,#2f96b4);background-image:-webkit-gradient(linear,0 0,0 100%,from(#5bc0de),to(#2f96b4));background-image:-webkit-linear-gradient(top,#5bc0de,#2f96b4);background-image:-o-linear-gradient(top,#5bc0de,#2f96b4);background-image:linear-gradient(to bottom,#5bc0de,#2f96b4);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ff5bc0de\', endColorstr=\'#ff2f96b4\', GradientType=0);border-color:#2f96b4 #2f96b4 #1f6377;border-color:rgba(0,0,0,.1)rgba(0,0,0,.1)rgba(0,0,0,.25);*background-color:#2f96b4;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.bootstrap .btn-info:hover,.bootstrap .btn-info.hover,.bootstrap .btn-info:focus,.bootstrap .btn-info.focus,.bootstrap .btn-info:active,.bootstrap .btn-info.active,.bootstrap .btn-info.disabled,.bootstrap .btn-info[disabled]{color:#fff;background-color:#2f96b4;*background-color:#2a85a0}.bootstrap .btn-info:active,.bootstrap .btn-info.active{background-color:#24748c \\9}.bootstrap .btn-inverse{color:#fff;text-shadow:0 -1px 0 rgba(0,0,0,.25);background-color:#363636;background-image:-moz-linear-gradient(top,#444,#222);background-image:-webkit-gradient(linear,0 0,0 100%,from(#444),to(#222));background-image:-webkit-linear-gradient(top,#444,#222);background-image:-o-linear-gradient(top,#444,#222);background-image:linear-gradient(to bottom,#444,#222);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ff444444\', endColorstr=\'#ff222222\', GradientType=0);border-color:#222 #222 #000;border-color:rgba(0,0,0,.1)rgba(0,0,0,.1)rgba(0,0,0,.25);*background-color:#222;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false)}.bootstrap .btn-inverse:hover,.bootstrap .btn-inverse.hover,.bootstrap .btn-inverse:focus,.bootstrap .btn-inverse.focus,.bootstrap .btn-inverse:active,.bootstrap .btn-inverse.active,.bootstrap .btn-inverse.disabled,.bootstrap .btn-inverse[disabled]{color:#fff;background-color:#222;*background-color:#151515}.bootstrap .btn-inverse:active,.bootstrap .btn-inverse.active{background-color:#080808 \\9}.bootstrap button.btn,.bootstrap input[type="submit"].btn{*padding-top:3px;*padding-bottom:3px}.bootstrap button.btn::-moz-focus-inner,.bootstrap input[type="submit"].btn::-moz-focus-inner{padding:0;border:0}.bootstrap button.btn.btn-large,.bootstrap input[type="submit"].btn.btn-large{*padding-top:7px;*padding-bottom:7px}.bootstrap button.btn.btn-small,.bootstrap input[type="submit"].btn.btn-small{*padding-top:3px;*padding-bottom:3px}.bootstrap button.btn.btn-mini,.bootstrap input[type="submit"].btn.btn-mini{*padding-top:1px;*padding-bottom:1px}.bootstrap .btn-link,.bootstrap .btn-link:active,.bootstrap .btn-link[disabled]{background-color:transparent;background-image:none;-webkit-box-shadow:none;-moz-box-shadow:none;box-shadow:none}.bootstrap .btn-link{border-color:transparent;cursor:pointer;color:#08c;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bootstrap .btn-link:hover,.bootstrap .btn-link:focus{color:#005580;text-decoration:underline;background-color:transparent}.bootstrap .btn-link[disabled]:hover,.bootstrap .btn-link[disabled]:focus{color:#333;text-decoration:none}.bootstrap .btn-group{position:relative;display:inline-block;*display:inline;*zoom:1;font-size:0;vertical-align:middle;white-space:nowrap;*margin-left:.3em}.bootstrap .btn-group:first-child{*margin-left:0}.bootstrap .btn-group+.btn-group{margin-left:5px}.bootstrap .btn-toolbar{font-size:0;margin-top:10px;margin-bottom:10px}.bootstrap .btn-toolbar>.btn+.btn,.bootstrap .btn-toolbar>.btn-group+.btn,.bootstrap .btn-toolbar>.btn+.btn-group{margin-left:5px}.bootstrap .btn-group>.btn{position:relative;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bootstrap .btn-group>.btn+.btn{margin-left:-1px}.bootstrap .btn-group>.btn,.bootstrap .btn-group>.dropdown-menu,.bootstrap .btn-group>.popover{font-size:14px}.bootstrap .btn-group>.btn-mini{font-size:10.5px}.bootstrap .btn-group>.btn-small{font-size:11.9px}.bootstrap .btn-group>.btn-large{font-size:17.5px}.bootstrap .btn-group>.btn:first-child{margin-left:0;-webkit-border-top-left-radius:4px;-moz-border-radius-topleft:4px;border-top-left-radius:4px;-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px}.bootstrap .btn-group>.btn:last-child,.bootstrap .btn-group>.dropdown-toggle{-webkit-border-top-right-radius:4px;-moz-border-radius-topright:4px;border-top-right-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px}.bootstrap .btn-group>.btn.large:first-child{margin-left:0;-webkit-border-top-left-radius:6px;-moz-border-radius-topleft:6px;border-top-left-radius:6px;-webkit-border-bottom-left-radius:6px;-moz-border-radius-bottomleft:6px;border-bottom-left-radius:6px}.bootstrap .btn-group>.btn.large:last-child,.bootstrap .btn-group>.large.dropdown-toggle{-webkit-border-top-right-radius:6px;-moz-border-radius-topright:6px;border-top-right-radius:6px;-webkit-border-bottom-right-radius:6px;-moz-border-radius-bottomright:6px;border-bottom-right-radius:6px}.bootstrap .btn-group>.btn:hover,.bootstrap .btn-group>.btn.hover,.bootstrap .btn-group>.btn:focus,.bootstrap .btn-group>.btn.focus,.bootstrap .btn-group>.btn:active,.bootstrap .btn-group>.btn.active{z-index:2}.bootstrap .btn-group .dropdown-toggle:active,.bootstrap .btn-group.open .dropdown-toggle{outline:0}.bootstrap .btn-group>.btn+.dropdown-toggle{padding-left:8px;padding-right:8px;-webkit-box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 1px 0 0 rgba(255,255,255,.125),inset 0 1px 0 rgba(255,255,255,.2),0 1px 2px rgba(0,0,0,.05);*padding-top:5px;*padding-bottom:5px}.bootstrap .btn-group>.btn-mini+.dropdown-toggle{padding-left:5px;padding-right:5px;*padding-top:2px;*padding-bottom:2px}.bootstrap .btn-group>.btn-small+.dropdown-toggle{*padding-top:5px;*padding-bottom:4px}.bootstrap .btn-group>.btn-large+.dropdown-toggle{padding-left:12px;padding-right:12px;*padding-top:7px;*padding-bottom:7px}.bootstrap .btn-group.open .dropdown-toggle{background-image:none;-webkit-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);-moz-box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05);box-shadow:inset 0 2px 4px rgba(0,0,0,.15),0 1px 2px rgba(0,0,0,.05)}.bootstrap .btn-group.open .btn.dropdown-toggle{background-color:#e6e6e6}.bootstrap .btn-group.open .btn-primary.dropdown-toggle{background-color:#04c}.bootstrap .btn-group.open .btn-warning.dropdown-toggle{background-color:#f89406}.bootstrap .btn-group.open .btn-danger.dropdown-toggle{background-color:#bd362f}.bootstrap .btn-group.open .btn-success.dropdown-toggle{background-color:#51a351}.bootstrap .btn-group.open .btn-info.dropdown-toggle{background-color:#2f96b4}.bootstrap .btn-group.open .btn-inverse.dropdown-toggle{background-color:#222}.bootstrap .btn .caret{margin-top:8px;margin-left:0}.bootstrap .btn-large .caret{margin-top:6px;border-left-width:5px;border-right-width:5px;border-top-width:5px}.bootstrap .btn-mini .caret,.bootstrap .btn-small .caret{margin-top:8px}.bootstrap .dropup .btn-large .caret{border-bottom-width:5px}.bootstrap .btn-primary .caret,.bootstrap .btn-warning .caret,.bootstrap .btn-danger .caret,.bootstrap .btn-info .caret,.bootstrap .btn-success .caret,.bootstrap .btn-inverse .caret{border-top-color:#fff;border-bottom-color:#fff}.bootstrap .btn-group-vertical{display:inline-block;*display:inline;*zoom:1}.bootstrap .btn-group-vertical>.btn{display:block;float:none;max-width:100%;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bootstrap .btn-group-vertical>.btn+.btn{margin-left:0;margin-top:-1px}.bootstrap .btn-group-vertical>.btn:first-child{-webkit-border-radius:4px 4px 0 0;-moz-border-radius:4px 4px 0 0;border-radius:4px 4px 0 0}.bootstrap .btn-group-vertical>.btn:last-child{-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px}.bootstrap .btn-group-vertical>.btn-large:first-child{-webkit-border-radius:6px 6px 0 0;-moz-border-radius:6px 6px 0 0;border-radius:6px 6px 0 0}.bootstrap .btn-group-vertical>.btn-large:last-child{-webkit-border-radius:0 0 6px 6px;-moz-border-radius:0 0 6px 6px;border-radius:0 0 6px 6px}.bootstrap .dropup,.bootstrap .dropdown{position:relative}.bootstrap .dropdown-toggle{*margin-bottom:-3px}.bootstrap .dropdown-toggle:active,.bootstrap .open .dropdown-toggle{outline:0}.bootstrap .caret{display:inline-block;width:0;height:0;vertical-align:top;border-top:4px solid #000;border-right:4px solid transparent;border-left:4px solid transparent;content:""}.bootstrap .dropdown .caret{margin-top:8px;margin-left:2px}.bootstrap .dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;list-style:none;background-color:#fff;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);*border-right-width:2px;*border-bottom-width:2px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);-moz-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);-webkit-background-clip:padding-box;-moz-background-clip:padding;background-clip:padding-box}.bootstrap .dropdown-menu.pull-right{right:0;left:auto}.bootstrap .dropdown-menu .divider{*width:100%;height:1px;margin:9px 1px;*margin:-5px 0 5px;overflow:hidden;background-color:#e5e5e5;border-bottom:1px solid #fff}.bootstrap .dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:20px;color:#333;white-space:nowrap}.bootstrap .dropdown-menu>li>a:hover,.bootstrap .dropdown-menu>li>a:focus,.bootstrap .dropdown-submenu:hover>a,.bootstrap .dropdown-submenu:focus>a,.bootstrap .dropdown-menu>.active>a,.bootstrap .dropdown-menu>.active>a:hover,.bootstrap .dropdown-menu>.active>a:focus{text-decoration:none;color:#fff;background-color:#0081c2;background-image:-moz-linear-gradient(top,#08c,#0077b3);background-image:-webkit-gradient(linear,0 0,0 100%,from(#08c),to(#0077b3));background-image:-webkit-linear-gradient(top,#08c,#0077b3);background-image:-o-linear-gradient(top,#08c,#0077b3);background-image:linear-gradient(to bottom,#08c,#0077b3);background-repeat:repeat-x;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#ff0088cc\', endColorstr=\'#ff0077b3\', GradientType=0)}.bootstrap .dropdown-menu>.active>a,.bootstrap .dropdown-menu>.active>a:hover,.bootstrap .dropdown-menu>.active>a:focus{outline:0}.bootstrap .dropdown-menu>.disabled>a,.bootstrap .dropdown-menu>.disabled>a:hover,.bootstrap .dropdown-menu>.disabled>a:focus{color:#999}.bootstrap .dropdown-menu>.disabled>a:hover,.bootstrap .dropdown-menu>.disabled>a:focus{text-decoration:none;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled = false);cursor:default}.bootstrap .open{*z-index:1000}.bootstrap .open>.dropdown-menu{display:block}.bootstrap .pull-right>.dropdown-menu{right:0;left:auto}.bootstrap .dropup .caret,.bootstrap .navbar-fixed-bottom .dropdown .caret{border-top:0;border-bottom:4px solid #000;content:""}.bootstrap .dropup .dropdown-menu,.bootstrap .navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:1px}.bootstrap .dropdown-submenu{position:relative}.bootstrap .dropdown-submenu>.dropdown-menu{top:0;left:100%;margin-top:-6px;margin-left:-1px;-webkit-border-radius:0 6px 6px 6px;-moz-border-radius:0 6px 6px 6px;border-radius:0 6px 6px 6px}.bootstrap .dropdown-submenu:hover>.dropdown-menu{display:block}.bootstrap .dropup .dropdown-submenu>.dropdown-menu{top:auto;bottom:0;margin-top:0;margin-bottom:-2px;-webkit-border-radius:5px 5px 5px 0;-moz-border-radius:5px 5px 5px 0;border-radius:5px 5px 5px 0}.bootstrap .dropdown-submenu>a:after{display:block;content:" ";float:right;width:0;height:0;border-color:transparent;border-style:solid;border-width:5px 0 5px 5px;border-left-color:#ccc;margin-top:5px;margin-right:-10px}.bootstrap .dropdown-submenu:hover>a:after{border-left-color:#fff}.bootstrap .dropdown-submenu.pull-left{float:none}.bootstrap .dropdown-submenu.pull-left>.dropdown-menu{left:-100%;margin-left:10px;-webkit-border-radius:6px 0 6px 6px;-moz-border-radius:6px 0 6px 6px;border-radius:6px 0 6px 6px}.bootstrap .dropdown .dropdown-menu .nav-header{padding-left:20px;padding-right:20px}.bootstrap .typeahead{z-index:1051;margin-top:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-moz-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-ms-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:0 0}to{background-position:40px 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.bootstrap .bookcision-feedback-containerElement .progress{overflow:hidden;height:10px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-moz-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1);-webkit-border-radius:0;-moz-border-radius:0;border-radius:0}.bootstrap .bookcision-feedback-containerElement .progress .bar{width:0;height:100%;color:#fff;float:left;font-size:12px;text-align:center;text-shadow:0 -1px 0 rgba(0,0,0,.25);-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-moz-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-transition:width .6s ease;-moz-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.bootstrap .bookcision-feedback-containerElement .progress .bar+.bar{-webkit-box-shadow:inset 1px 0 0 rgba(0,0,0,.15),inset 0 -1px 0 rgba(0,0,0,.15);-moz-box-shadow:inset 1px 0 0 rgba(0,0,0,.15),inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 1px 0 0 rgba(0,0,0,.15),inset 0 -1px 0 rgba(0,0,0,.15)}.bootstrap .bookcision-feedback-containerElement .progress-striped .bar{background-color:#149bdf;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent);-webkit-background-size:40px 40px;-moz-background-size:40px 40px;-o-background-size:40px 40px;background-size:40px 40px}.bootstrap .bookcision-feedback-containerElement .progress.active .bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-moz-animation:progress-bar-stripes 2s linear infinite;-ms-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.bootstrap .bookcision-feedback-containerElement .progress-dull.progress-striped .bar,.bootstrap .bookcision-feedback-containerElement .progress-striped .bar-dull{background-color:#8d8d8d;background-image:-webkit-gradient(linear,0 100%,100% 0,color-stop(.25,rgba(255,255,255,.15)),color-stop(.25,transparent),color-stop(.5,transparent),color-stop(.5,rgba(255,255,255,.15)),color-stop(.75,rgba(255,255,255,.15)),color-stop(.75,transparent),to(transparent));background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent);background-image:-moz-linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15)25%,transparent 25%,transparent 50%,rgba(255,255,255,.15)50%,rgba(255,255,255,.15)75%,transparent 75%,transparent)}.bootstrap .btn{position:relative;z-index:7500}'; | |
},function(t,e,n){n(51)(n(54))},function(t,e){t.exports=".bookcision-feedback-fixedWrapper{position:fixed;top:0;width:100%;height:100%;text-align:center;z-index:10000}.bookcision-feedback-containerElement{border-radius:0 0 10px 10px;background-color:rgba(0,0,0,.7);margin:0 auto;top:0;min-width:450px;color:#fff;text-align:center;font-family:'Segoe UI','Helvetica Neue',Helvetica,Arial,Sans-Serif;font-size:1.5em;line-height:1}.bookcision-feedback-messagesContainerElement{margin:0;padding:.3em 2em 1em;list-style-type:none}.bookcision-feedback-messagesContainerElement ul,.bookcision-feedback-messagesContainerElement li{list-style-type:none!important}.bookcision-feedback-messagesContainerElement li:first-child{color:#fff}"},function(t,e,n){var r=n(14),o=n(28),i=n(49),a=n(56);n(63);var s=null;t.exports=function(t){if(null!==s)throw new Error("Can only create one modal dialog at a time.");s=this;var e="0.15s",n=null,c=null,l=function(){document.body.appendChild(c)},u=function(){document.body.removeChild(c),c=null,n=null,s=null},f=function(){c=document.createElement("div"),r(c).addClass("bootstrap").addClass("bookcision-ModalDialog-fixedWrapper"),n=document.createElement("div"),r(n).addClass("bookcision-ModalDialog-containerElement"),c.appendChild(n);var t=document.createElement("span");r(t).addClass("bookcision-ModalDialog-closeButton"),t.innerHTML="×",n.appendChild(t),c.addEventListener("click",function(e){(c===e.target||t.contains(e.target))&&p()}),l();var e=r(t).getUsedValue("marginRight")+t.offsetWidth;r(n).apply("padding-right",e),h()},p=function(){window.removeEventListener("keyup",d);var t=function(){c&&(c.style.display="none",c.style.opacity="1",u())};i(c).set("opacity","0").duration(e).then(t).end()},h=function(){window.addEventListener("keyup",d),c.style.display="inline-block",c.style.opacity="0",r(c).getUsedValue("opacity"),i(c).set("opacity","1").duration(e).end()},d=function(t){a.is(a.code.special.esc,t.which)&&p()};if(this.appendChild=function(t){n.appendChild(t)},this.appendHTML=function(t){n.insertAdjacentHTML("beforeend",t)},f(),"undefined"!=typeof t)if(o.isNode(t))this.appendChild(t);else{if("string"!=typeof t)throw"Error: Cannot add object of unknown type to ModalDialog.";this.appendHTML(t)}}},function(t,e,n){(function(){"use strict";var e,r,o,i=[].indexOf||function(t){for(var e=0,n=this.length;e<n;e++)if(e in this&&this[e]===t)return e;return-1},a={}.hasOwnProperty;e=n(57).isRef,o={},o.code={special:n(58),arrow:n(59),punctuation:n(60),alnum:n(61),brand:n(62)},o.get=function(t){return r(o.code,t)},o.is=function(t,n){return e(t)||(t=r(t,n)),e(t)?e(n)?n===t:n===t.code||i.call(t.code,n)>=0:n===t},r=function(t,n){var i,s,c;for(i in t)if(a.call(t,i))if(c=t[i],e(c)){if(o.is(c,n))return c}else if(s=r(c,n),e(s))return s},"undefined"!=typeof window&&(window.key=o),t.exports=o}).call(this)},function(t,e){(function(){"use strict";var e,n,r,o;e=function(){function t(t,e){this.name=t,this.code=e}return t}(),o=function(t,n){return new e(t,n)},r=function(t){return t instanceof e},n=function(t){if(!r(t))throw new Error("Invalid reference");return t},t.exports={ref:o,isRef:r,assertRef:n}}).call(this)},function(t,e,n){(function(){"use strict";var e,r;e=n(57).ref,r={backspace:e("Backspace",8),tab:e("Tab",9),enter:e("Enter",13),shift:e("Shift",16),ctrl:e("Ctrl",17),alt:e("Alt",18),caps:e("Caps Lock",20),esc:e("Escape",27),space:e("Space",32),num:e("Num Lock",144)},t.exports=r}).call(this)},function(t,e,n){(function(){"use strict";var e,r;r=n(57).ref,e={left:r("Left",37),up:r("Up",38),right:r("Right",39),down:r("Down",40)},t.exports=e}).call(this)},function(t,e,n){(function(){"use strict";var e,r;r=n(57).ref,e={colon:r("Colon/Semicolon",[59,186]),equal:r("Equal/Plus",[61,187]),comma:r("Comma/Less Than",[44,188]),hyphen:r("Hyphen/Underscore",[45,109,189]),period:r("Period/Greater Than",[46,190]),tilde:r("Tilde/Back Tick",[96,192]),apostrophe:r("Apostrophe/Quote",[39,222]),slash:{forward:r("Forward Slash/Question Mark",[47,191]),backward:r("Backward Slash/Pipe",220)},brace:{square:{open:r("Open Square/Curly Brace",219),close:r("Close Square/Curly Brace",221)}}},e.semicolon=e.colon,e.plus=e.equal,e.lessthan=e.comma,e.underscore=e.hyphen,e.greaterthan=e.period,e.question=e.slash.forward,e.backtick=e.tilde,e.pipe=e.slash.backward,e.quote=e.apostrophe,e.brace.curly=e.brace.square,t.exports=e}).call(this)},function(t,e,n){(function(){"use strict";var e,r;r=n(57).ref,e={0:r("0",48),1:r("1",49),2:r("2",50),3:r("3",51),4:r("4",52),5:r("5",53),6:r("6",54),7:r("7",55),8:r("8",56),9:r("9",57),a:r("A",65),b:r("B",66),c:r("C",67),d:r("D",68),e:r("E",69),f:r("F",70),g:r("G",71),h:r("H",72),i:r("I",73),j:r("J",74),k:r("K",75),l:r("L",76),m:r("M",77),n:r("N",78),o:r("O",79),p:r("P",80),q:r("Q",81),r:r("R",82),s:r("S",83),t:r("T",84),u:r("U",85),v:r("V",86),w:r("W",87),x:r("X",88),y:r("Y",89),z:r("Z",90)},t.exports=e}).call(this)},function(t,e,n){(function(){"use strict";var e,r;r=n(57).ref,e={apple:r("Apple ⌘",224),windows:{start:r("Windows start",[91,92]),menu:r("Windows menu",93)}},t.exports=e}).call(this)},function(t,e,n){n(51)(n(64))},function(t,e){t.exports='.bookcision-ModalDialog-fixedWrapper{background-color:rgba(0,0,0,.1);position:fixed;top:0;right:0;bottom:0;left:0;max-width:100%;max-height:100%;text-align:center;z-index:5000}.bookcision-ModalDialog-containerElement{background-color:#fff;margin:auto;width:850px;height:100%;padding:30px;box-sizing:border-box;overflow:auto;text-align:left;font-family:Georgia,"Times New Roman",Times,serif;position:relative}.bookcision-ModalDialog-containerElement,.bookcision-ModalDialog-containerElement ul{color:#000}.bookcision-ModalDialog-closeButton{position:absolute;top:0;right:0;margin-right:10px;font-size:4em;line-height:1;cursor:pointer;color:#ccc}.bookcision-ModalDialog-closeButton:hover{color:#000}.bookcision-ModalDialog-containerElement ul,.bookcision-ModalDialog-containerElement li{list-style-type:none!important}'},function(t,e,n){n(51)(n(66))},function(t,e){t.exports='/*!\n * Font Awesome 3.2.1\n * the iconic font designed for Bootstrap\n * ------------------------------------------------------------------------------\n * The full suite of pictographic icons, examples, and documentation can be\n * found at http://fontawesome.io. Stay up to date on Twitter at\n * http://twitter.com/fontawesome.\n *\n * License\n * ------------------------------------------------------------------------------\n * - The Font Awesome font is licensed under SIL OFL 1.1 -\n * http://scripts.sil.org/OFL\n * - Font Awesome CSS, LESS, and SASS files are licensed under MIT License -\n * http://opensource.org/licenses/mit-license.html\n * - Font Awesome documentation licensed under CC BY 3.0 -\n * http://creativecommons.org/licenses/by/3.0/\n * - Attribution is no longer required in Font Awesome 3.0, but much appreciated:\n * "Font Awesome by Dave Gandy - http://fontawesome.io"\n *\n * Author - Dave Gandy\n * ------------------------------------------------------------------------------\n * Email: [email protected]\n * Twitter: http://twitter.com/davegandy\n * Work: Lead Product Designer @ Kyruus - http://kyruus.com\n */@font-face{font-family:\'FontAwesome\';src:url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.eot?v=3.2.1);src:url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.eot?#iefix&v=3.2.1) format(\'embedded-opentype\'),url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.woff?v=3.2.1) format(\'woff\'),url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.ttf?v=3.2.1) format(\'truetype\'),url(//netdna.bootstrapcdn.com/font-awesome/3.2.1/font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1) format(\'svg\');font-weight:400;font-style:normal}[class^="icon-"],[class*=" icon-"]{font-family:FontAwesome;font-weight:400;font-style:normal;text-decoration:inherit;-webkit-font-smoothing:antialiased;*margin-right:.3em}[class^="icon-"]:before,[class*=" icon-"]:before{text-decoration:inherit;display:inline-block;speak:none}.icon-large:before{vertical-align:-10%;font-size:1.3333333333333333em}a [class^="icon-"],a [class*=" icon-"]{display:inline}[class^="icon-"].icon-fixed-width,[class*=" icon-"].icon-fixed-width{display:inline-block;width:1.1428571428571428em;text-align:right;padding-right:.2857142857142857em}[class^="icon-"].icon-fixed-width.icon-large,[class*=" icon-"].icon-fixed-width.icon-large{width:1.4285714285714286em}.icons-ul{margin-left:2.142857142857143em;list-style-type:none}.icons-ul>li{position:relative}.icons-ul .icon-li{position:absolute;left:-2.142857142857143em;width:2.142857142857143em;text-align:center;line-height:inherit}[class^="icon-"].hide,[class*=" icon-"].hide{display:none}.icon-muted{color:#eee}.icon-light{color:#fff}.icon-dark{color:#333}.icon-border{border:solid 1px #eee;padding:.2em .25em .15em;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.icon-2x{font-size:2em}.icon-2x.icon-border{border-width:2px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}.icon-3x{font-size:3em}.icon-3x.icon-border{border-width:3px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.icon-4x{font-size:4em}.icon-4x.icon-border{border-width:4px;-webkit-border-radius:6px;-moz-border-radius:6px;border-radius:6px}.icon-5x{font-size:5em}.icon-5x.icon-border{border-width:5px;-webkit-border-radius:7px;-moz-border-radius:7px;border-radius:7px}.pull-right{float:right}.pull-left{float:left}[class^="icon-"].pull-left,[class*=" icon-"].pull-left{margin-right:.3em}[class^="icon-"].pull-right,[class*=" icon-"].pull-right{margin-left:.3em}.icon-glass:before{content:"\\f000"}.icon-music:before{content:"\\f001"}.icon-search:before{content:"\\f002"}.icon-envelope-alt:before{content:"\\f003"}.icon-heart:before{content:"\\f004"}.icon-star:before{content:"\\f005"}.icon-star-empty:before{content:"\\f006"}.icon-user:before{content:"\\f007"}.icon-film:before{content:"\\f008"}.icon-th-large:before{content:"\\f009"}.icon-th:before{content:"\\f00a"}.icon-th-list:before{content:"\\f00b"}.icon-ok:before{content:"\\f00c"}.icon-remove:before{content:"\\f00d"}.icon-zoom-in:before{content:"\\f00e"}.icon-zoom-out:before{content:"\\f010"}.icon-power-off:before,.icon-off:before{content:"\\f011"}.icon-signal:before{content:"\\f012"}.icon-gear:before,.icon-cog:before{content:"\\f013"}.icon-trash:before{content:"\\f014"}.icon-home:before{content:"\\f015"}.icon-file-alt:before{content:"\\f016"}.icon-time:before{content:"\\f017"}.icon-road:before{content:"\\f018"}.icon-download-alt:before{content:"\\f019"}.icon-download:before{content:"\\f01a"}.icon-upload:before{content:"\\f01b"}.icon-inbox:before{content:"\\f01c"}.icon-play-circle:before{content:"\\f01d"}.icon-rotate-right:before,.icon-repeat:before{content:"\\f01e"}.icon-refresh:before{content:"\\f021"}.icon-list-alt:before{content:"\\f022"}.icon-lock:before{content:"\\f023"}.icon-flag:before{content:"\\f024"}.icon-headphones:before{content:"\\f025"}.icon-volume-off:before{content:"\\f026"}.icon-volume-down:before{content:"\\f027"}.icon-volume-up:before{content:"\\f028"}.icon-qrcode:before{content:"\\f029"}.icon-barcode:before{content:"\\f02a"}.icon-tag:before{content:"\\f02b"}.icon-tags:before{content:"\\f02c"}.icon-book:before{content:"\\f02d"}.icon-bookmark:before{content:"\\f02e"}.icon-print:before{content:"\\f02f"}.icon-camera:before{content:"\\f030"}.icon-font:before{content:"\\f031"}.icon-bold:before{content:"\\f032"}.icon-italic:before{content:"\\f033"}.icon-text-height:before{content:"\\f034"}.icon-text-width:before{content:"\\f035"}.icon-align-left:before{content:"\\f036"}.icon-align-center:before{content:"\\f037"}.icon-align-right:before{content:"\\f038"}.icon-align-justify:before{content:"\\f039"}.icon-list:before{content:"\\f03a"}.icon-indent-left:before{content:"\\f03b"}.icon-indent-right:before{content:"\\f03c"}.icon-facetime-video:before{content:"\\f03d"}.icon-picture:before{content:"\\f03e"}.icon-pencil:before{content:"\\f040"}.icon-map-marker:before{content:"\\f041"}.icon-adjust:before{content:"\\f042"}.icon-tint:before{content:"\\f043"}.icon-edit:before{content:"\\f044"}.icon-share:before{content:"\\f045"}.icon-check:before{content:"\\f046"}.icon-move:before{content:"\\f047"}.icon-step-backward:before{content:"\\f048"}.icon-fast-backward:before{content:"\\f049"}.icon-backward:before{content:"\\f04a"}.icon-play:before{content:"\\f04b"}.icon-pause:before{content:"\\f04c"}.icon-stop:before{content:"\\f04d"}.icon-forward:before{content:"\\f04e"}.icon-fast-forward:before{content:"\\f050"}.icon-step-forward:before{content:"\\f051"}.icon-eject:before{content:"\\f052"}.icon-chevron-left:before{content:"\\f053"}.icon-chevron-right:before{content:"\\f054"}.icon-plus-sign:before{content:"\\f055"}.icon-minus-sign:before{content:"\\f056"}.icon-remove-sign:before{content:"\\f057"}.icon-ok-sign:before{content:"\\f058"}.icon-question-sign:before{content:"\\f059"}.icon-info-sign:before{content:"\\f05a"}.icon-screenshot:before{content:"\\f05b"}.icon-remove-circle:before{content:"\\f05c"}.icon-ok-circle:before{content:"\\f05d"}.icon-ban-circle:before{content:"\\f05e"}.icon-arrow-left:before{content:"\\f060"}.icon-arrow-right:before{content:"\\f061"}.icon-arrow-up:before{content:"\\f062"}.icon-arrow-down:before{content:"\\f063"}.icon-mail-forward:before,.icon-share-alt:before{content:"\\f064"}.icon-resize-full:before{content:"\\f065"}.icon-resize-small:before{content:"\\f066"}.icon-plus:before{content:"\\f067"}.icon-minus:before{content:"\\f068"}.icon-asterisk:before{content:"\\f069"}.icon-exclamation-sign:before{content:"\\f06a"}.icon-gift:before{content:"\\f06b"}.icon-leaf:before{content:"\\f06c"}.icon-fire:before{content:"\\f06d"}.icon-eye-open:before{content:"\\f06e"}.icon-eye-close:before{content:"\\f070"}.icon-warning-sign:before{content:"\\f071"}.icon-plane:before{content:"\\f072"}.icon-calendar:before{content:"\\f073"}.icon-random:before{content:"\\f074"}.icon-comment:before{content:"\\f075"}.icon-magnet:before{content:"\\f076"}.icon-chevron-up:before{content:"\\f077"}.icon-chevron-down:before{content:"\\f078"}.icon-retweet:before{content:"\\f079"}.icon-shopping-cart:before{content:"\\f07a"}.icon-folder-close:before{content:"\\f07b"}.icon-folder-open:before{content:"\\f07c"}.icon-resize-vertical:before{content:"\\f07d"}.icon-resize-horizontal:before{content:"\\f07e"}.icon-bar-chart:before{content:"\\f080"}.icon-twitter-sign:before{content:"\\f081"}.icon-facebook-sign:before{content:"\\f082"}.icon-camera-retro:before{content:"\\f083"}.icon-key:before{content:"\\f084"}.icon-gears:before,.icon-cogs:before{content:"\\f085"}.icon-comments:before{content:"\\f086"}.icon-thumbs-up-alt:before{content:"\\f087"}.icon-thumbs-down-alt:before{content:"\\f088"}.icon-star-half:before{content:"\\f089"}.icon-heart-empty:before{content:"\\f08a"}.icon-signout:before{content:"\\f08b"}.icon-linkedin-sign:before{content:"\\f08c"}.icon-pushpin:before{content:"\\f08d"}.icon-external-link:before{content:"\\f08e"}.icon-signin:before{content:"\\f090"}.icon-trophy:before{content:"\\f091"}.icon-github-sign:before{content:"\\f092"}.icon-upload-alt:before{content:"\\f093"}.icon-lemon:before{content:"\\f094"}.icon-phone:before{content:"\\f095"}.icon-unchecked:before,.icon-check-empty:before{content:"\\f096"}.icon-bookmark-empty:before{content:"\\f097"}.icon-phone-sign:before{content:"\\f098"}.icon-twitter:before{content:"\\f099"}.icon-facebook:before{content:"\\f09a"}.icon-github:before{content:"\\f09b"}.icon-unlock:before{content:"\\f09c"}.icon-credit-card:before{content:"\\f09d"}.icon-rss:before{content:"\\f09e"}.icon-hdd:before{content:"\\f0a0"}.icon-bullhorn:before{content:"\\f0a1"}.icon-bell:before{content:"\\f0a2"}.icon-certificate:before{content:"\\f0a3"}.icon-hand-right:before{content:"\\f0a4"}.icon-hand-left:before{content:"\\f0a5"}.icon-hand-up:before{content:"\\f0a6"}.icon-hand-down:before{content:"\\f0a7"}.icon-circle-arrow-left:before{content:"\\f0a8"}.icon-circle-arrow-right:before{content:"\\f0a9"}.icon-circle-arrow-up:before{content:"\\f0aa"}.icon-circle-arrow-down:before{content:"\\f0ab"}.icon-globe:before{content:"\\f0ac"}.icon-wrench:before{content:"\\f0ad"}.icon-tasks:before{content:"\\f0ae"}.icon-filter:before{content:"\\f0b0"}.icon-briefcase:before{content:"\\f0b1"}.icon-fullscreen:before{content:"\\f0b2"}.icon-group:before{content:"\\f0c0"}.icon-link:before{content:"\\f0c1"}.icon-cloud:before{content:"\\f0c2"}.icon-beaker:before{content:"\\f0c3"}.icon-cut:before{content:"\\f0c4"}.icon-copy:before{content:"\\f0c5"}.icon-paperclip:before,.icon-paper-clip:before{content:"\\f0c6"}.icon-save:before{content:"\\f0c7"}.icon-sign-blank:before{content:"\\f0c8"}.icon-reorder:before{content:"\\f0c9"}.icon-list-ul:before{content:"\\f0ca"}.icon-list-ol:before{content:"\\f0cb"}.icon-strikethrough:before{content:"\\f0cc"}.icon-underline:before{content:"\\f0cd"}.icon-table:before{content:"\\f0ce"}.icon-magic:before{content:"\\f0d0"}.icon-truck:before{content:"\\f0d1"}.icon-pinterest:before{content:"\\f0d2"}.icon-pinterest-sign:before{content:"\\f0d3"}.icon-google-plus-sign:before{content:"\\f0d4"}.icon-google-plus:before{content:"\\f0d5"}.icon-money:before{content:"\\f0d6"}.icon-caret-down:before{content:"\\f0d7"}.icon-caret-up:before{content:"\\f0d8"}.icon-caret-left:before{content:"\\f0d9"}.icon-caret-right:before{content:"\\f0da"}.icon-columns:before{content:"\\f0db"}.icon-sort:before{content:"\\f0dc"}.icon-sort-down:before{content:"\\f0dd"}.icon-sort-up:before{content:"\\f0de"}.icon-envelope:before{content:"\\f0e0"}.icon-linkedin:before{content:"\\f0e1"}.icon-rotate-left:before,.icon-undo:before{content:"\\f0e2"}.icon-legal:before{content:"\\f0e3"}.icon-dashboard:before{content:"\\f0e4"}.icon-comment-alt:before{content:"\\f0e5"}.icon-comments-alt:before{content:"\\f0e6"}.icon-bolt:before{content:"\\f0e7"}.icon-sitemap:before{content:"\\f0e8"}.icon-umbrella:before{content:"\\f0e9"}.icon-paste:before{content:"\\f0ea"}.icon-lightbulb:before{content:"\\f0eb"}.icon-exchange:before{content:"\\f0ec"}.icon-cloud-download:before{content:"\\f0ed"}.icon-cloud-upload:before{content:"\\f0ee"}.icon-user-md:before{content:"\\f0f0"}.icon-stethoscope:before{content:"\\f0f1"}.icon-suitcase:before{content:"\\f0f2"}.icon-bell-alt:before{content:"\\f0f3"}.icon-coffee:before{content:"\\f0f4"}.icon-food:before{content:"\\f0f5"}.icon-file-text-alt:before{content:"\\f0f6"}.icon-building:before{content:"\\f0f7"}.icon-hospital:before{content:"\\f0f8"}.icon-ambulance:before{content:"\\f0f9"}.icon-medkit:before{content:"\\f0fa"}.icon-fighter-jet:before{content:"\\f0fb"}.icon-beer:before{content:"\\f0fc"}.icon-h-sign:before{content:"\\f0fd"}.icon-plus-sign-alt:before{content:"\\f0fe"}.icon-double-angle-left:before{content:"\\f100"}.icon-double-angle-right:before{content:"\\f101"}.icon-double-angle-up:before{content:"\\f102"}.icon-double-angle-down:before{content:"\\f103"}.icon-angle-left:before{content:"\\f104"}.icon-angle-right:before{content:"\\f105"}.icon-angle-up:before{content:"\\f106"}.icon-angle-down:before{content:"\\f107"}.icon-desktop:before{content:"\\f108"}.icon-laptop:before{content:"\\f109"}.icon-tablet:before{content:"\\f10a"}.icon-mobile-phone:before{content:"\\f10b"}.icon-circle-blank:before{content:"\\f10c"}.icon-quote-left:before{content:"\\f10d"}.icon-quote-right:before{content:"\\f10e"}.icon-spinner:before{content:"\\f110"}.icon-circle:before{content:"\\f111"}.icon-mail-reply:before,.icon-reply:before{content:"\\f112"}.icon-github-alt:before{content:"\\f113"}.icon-folder-close-alt:before{content:"\\f114"}.icon-folder-open-alt:before{content:"\\f115"}.icon-expand-alt:before{content:"\\f116"}.icon-collapse-alt:before{content:"\\f117"}.icon-smile:before{content:"\\f118"}.icon-frown:before{content:"\\f119"}.icon-meh:before{content:"\\f11a"}.icon-gamepad:before{content:"\\f11b"}.icon-keyboard:before{content:"\\f11c"}.icon-flag-alt:before{content:"\\f11d"}.icon-flag-checkered:before{content:"\\f11e"}.icon-terminal:before{content:"\\f120"}.icon-code:before{content:"\\f121"}.icon-reply-all:before,.icon-mail-reply-all:before{content:"\\f122"}.icon-star-half-full:before,.icon-star-half-empty:before{content:"\\f123"}.icon-location-arrow:before{content:"\\f124"}.icon-crop:before{content:"\\f125"}.icon-code-fork:before{content:"\\f126"}.icon-unlink:before{content:"\\f127"}.icon-question:before{content:"\\f128"}.icon-info:before{content:"\\f129"}.icon-exclamation:before{content:"\\f12a"}.icon-superscript:before{content:"\\f12b"}.icon-subscript:before{content:"\\f12c"}.icon-eraser:before{content:"\\f12d"}.icon-puzzle-piece:before{content:"\\f12e"}.icon-microphone:before{content:"\\f130"}.icon-microphone-off:before{content:"\\f131"}.icon-shield:before{content:"\\f132"}.icon-calendar-empty:before{content:"\\f133"}.icon-fire-extinguisher:before{content:"\\f134"}.icon-rocket:before{content:"\\f135"}.icon-maxcdn:before{content:"\\f136"}.icon-chevron-sign-left:before{content:"\\f137"}.icon-chevron-sign-right:before{content:"\\f138"}.icon-chevron-sign-up:before{content:"\\f139"}.icon-chevron-sign-down:before{content:"\\f13a"}.icon-html5:before{content:"\\f13b"}.icon-css3:before{content:"\\f13c"}.icon-anchor:before{content:"\\f13d"}.icon-unlock-alt:before{content:"\\f13e"}.icon-bullseye:before{content:"\\f140"}.icon-ellipsis-horizontal:before{content:"\\f141"}.icon-ellipsis-vertical:before{content:"\\f142"}.icon-rss-sign:before{content:"\\f143"}.icon-play-sign:before{content:"\\f144"}.icon-ticket:before{content:"\\f145"}.icon-minus-sign-alt:before{content:"\\f146"}.icon-check-minus:before{content:"\\f147"}.icon-level-up:before{content:"\\f148"}.icon-level-down:before{content:"\\f149"}.icon-check-sign:before{content:"\\f14a"}.icon-edit-sign:before{content:"\\f14b"}.icon-external-link-sign:before{content:"\\f14c"}.icon-share-sign:before{content:"\\f14d"}.icon-compass:before{content:"\\f14e"}.icon-collapse:before{content:"\\f150"}.icon-collapse-top:before{content:"\\f151"}.icon-expand:before{content:"\\f152"}.icon-euro:before,.icon-eur:before{content:"\\f153"}.icon-gbp:before{content:"\\f154"}.icon-dollar:before,.icon-usd:before{content:"\\f155"}.icon-rupee:before,.icon-inr:before{content:"\\f156"}.icon-yen:before,.icon-jpy:before{content:"\\f157"}.icon-renminbi:before,.icon-cny:before{content:"\\f158"}.icon-won:before,.icon-krw:before{content:"\\f159"}.icon-bitcoin:before,.icon-btc:before{content:"\\f15a"}.icon-file:before{content:"\\f15b"}.icon-file-text:before{content:"\\f15c"}.icon-sort-by-alphabet:before{content:"\\f15d"}.icon-sort-by-alphabet-alt:before{content:"\\f15e"}.icon-sort-by-attributes:before{content:"\\f160"}.icon-sort-by-attributes-alt:before{content:"\\f161"}.icon-sort-by-order:before{content:"\\f162"}.icon-sort-by-order-alt:before{content:"\\f163"}.icon-thumbs-up:before{content:"\\f164"}.icon-thumbs-down:before{content:"\\f165"}.icon-youtube-sign:before{content:"\\f166"}.icon-youtube:before{content:"\\f167"}.icon-xing:before{content:"\\f168"}.icon-xing-sign:before{content:"\\f169"}.icon-youtube-play:before{content:"\\f16a"}.icon-dropbox:before{content:"\\f16b"}.icon-stackexchange:before{content:"\\f16c"}.icon-instagram:before{content:"\\f16d"}.icon-flickr:before{content:"\\f16e"}.icon-adn:before{content:"\\f170"}.icon-bitbucket:before{content:"\\f171"}.icon-bitbucket-sign:before{content:"\\f172"}.icon-tumblr:before{content:"\\f173"}.icon-tumblr-sign:before{content:"\\f174"}.icon-long-arrow-down:before{content:"\\f175"}.icon-long-arrow-up:before{content:"\\f176"}.icon-long-arrow-left:before{content:"\\f177"}.icon-long-arrow-right:before{content:"\\f178"}.icon-apple:before{content:"\\f179"}.icon-windows:before{content:"\\f17a"}.icon-android:before{content:"\\f17b"}.icon-linux:before{content:"\\f17c"}.icon-dribbble:before{content:"\\f17d"}.icon-skype:before{content:"\\f17e"}.icon-foursquare:before{content:"\\f180"}.icon-trello:before{content:"\\f181"}.icon-female:before{content:"\\f182"}.icon-male:before{content:"\\f183"}.icon-gittip:before{content:"\\f184"}.icon-sun:before{content:"\\f185"}.icon-moon:before{content:"\\f186"}.icon-archive:before{content:"\\f187"}.icon-bug:before{content:"\\f188"}.icon-vk:before{content:"\\f189"}.icon-weibo:before{content:"\\f18a"}.icon-renren:before{content:"\\f18b"}'},function(t,e){!function(t,e,n,r,o,i,a){t.GoogleAnalyticsObject=o,t[o]=t[o]||function(){(t[o].q=t[o].q||[]).push(arguments)},t[o].l=1*new Date,i=e.createElement(n),a=e.getElementsByTagName(n)[0],i.async=1,i.src=r,a.parentNode.insertBefore(i,a)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-25177302-3","amazon.com"),ga("send","pageview")},function(t,e,n){var r=n(69),o=n(77),i=n(79);n(82),n(84),n(86),n(88);var a=n(90),s=n(91),c=n(47),l=(n(14),n(95)),u={text:{extension:"txt",mimetype:"text/plain",getFileContentsForDownload:r},xml:{extension:"xml",mimetype:"application/xml",getFileContentsForDownload:o},json:{extension:"json",mimetype:"application/json",getFileContentsForDownload:function(t){return JSON.stringify(t)}}},f=function(t){var e=t.replace(/\s+/g,"."),n=e.replace(/[^\w.]/g,"");return n},p=function(t,e){if(!(e in u))throw"Unknown format specified.";c("Writing highlights to file",50);var n=u[e].getFileContentsForDownload(t),r=u[e].mimetype,o="Kindle.Highlights_"+f(t.title)+"_"+String(Date.now())+"."+u[e].extension,i=new s(o,r,n);i.download(),c("Highlights written.",100)};t.exports=a(i,{events:[{selector:".bookcision-download-as-text",event:"click",handler:function(t,e){p(t,"text")}},{selector:".bookcision-download-as-xml",event:"click",handler:function(t,e){p(t,"xml")}},{selector:".bookcision-download-as-json",event:"click",handler:function(t,e){p(t,"json")}},{selector:".dropdown-toggle",event:"click",handler:function(t,e){var n=e.currentTarget.parentNode.querySelector(".dropdown-toggle + ul");n.style.display="block"!==n.style.display?"block":"none"}}],onAfterFragmentGenerated:function(t,e){var n=e.querySelector(".dropdown-toggle"),o=e.querySelector(".dropdown-toggle + ul");n&&o&&document.body.addEventListener("click",function(t){n.contains(t.target)||(o.style.display="none")});var i=e.querySelector(".bookcision-copy-to-clipboard");if(i)var a=r(t),s={complete:function(){c.flash({icon:"icon-ok"})}},c=new l(i,a,s)}})},function(t,e,n){var r=n(70);t.exports=(r.default||r).template({1:function(t,e,n,r){var o,i=this.lambda,a="";return o=e.unless.call(t,null!=t?t.isNoteOnly:t,{name:"unless",hash:{},fn:this.program(2,r),inverse:this.noop,data:r}),null!=o&&(a+=o),o=e.if.call(t,null!=t?t.note:t,{name:"if",hash:{},fn:this.program(4,r),inverse:this.noop,data:r}),null!=o&&(a+=o),a+="\r\nLOCATION: ",o=i(null!=(o=null!=t?t.location:t)?o.value:o,t),null!=o&&(a+=o),a+"\r\n"},2:function(t,e,n,r){var o,i,a="function",s=e.helperMissing,c="\r\n";return i=null!=(i=e.text||(null!=t?t.text:t))?i:s,o=typeof i===a?i.call(t,{name:"text",hash:{},data:r}):i,null!=o&&(c+=o),c},4:function(t,e,n,r){var o,i,a="function",s=e.helperMissing,c="\r\nNOTE: ";return i=null!=(i=e.note||(null!=t?t.note:t))?i:s,o=typeof i===a?i.call(t,{name:"note",hash:{},data:r}):i,null!=o&&(c+=o),c},6:function(t,e,n,r){return"You have no highlights for this book yet.\r\n"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){var o,i,a="function",s=e.helperMissing,c="";return i=null!=(i=e.title||(null!=t?t.title:t))?i:s,o=typeof i===a?i.call(t,{name:"title",hash:{},data:r}):i,null!=o&&(c+=o),c+="\r\n",i=null!=(i=e.authors||(null!=t?t.authors:t))?i:s,o=typeof i===a?i.call(t,{name:"authors",hash:{},data:r}):i,null!=o&&(c+=o),c+="\r\n",o=e.each.call(t,null!=t?t.highlights:t,{name:"each",hash:{},fn:this.program(1,r),inverse:this.program(6,r),data:r}),null!=o&&(c+=o),c},useData:!0})},function(t,e,n){t.exports=n(71)},function(t,e,n){"use strict";var r=n(72),o=n(74).default,i=n(75).default,a=n(73),s=n(76),c=function(){var t=new r.HandlebarsEnvironment;return a.extend(t,r),t.SafeString=o,t.Exception=i,t.Utils=a,t.escapeExpression=a.escapeExpression,t.VM=s,t.template=function(e){return s.template(e,t)},t},l=c();l.create=c,l.default=l,e.default=l},function(t,e,n){"use strict";function r(t,e){this.helpers=t||{},this.partials=e||{},o(this)}function o(t){t.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new a("Missing helper: '"+arguments[arguments.length-1].name+"'")}),t.registerHelper("blockHelperMissing",function(e,n){var r=n.inverse,o=n.fn;if(e===!0)return o(this);if(e===!1||null==e)return r(this);if(u(e))return e.length>0?(n.ids&&(n.ids=[n.name]),t.helpers.each(e,n)):r(this);if(n.data&&n.ids){var a=g(n.data);a.contextPath=i.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(e,n)}),t.registerHelper("each",function(t,e){if(!e)throw new a("Must pass iterator to #each");var n,r,o=e.fn,s=e.inverse,c=0,l="";if(e.data&&e.ids&&(r=i.appendContextPath(e.data.contextPath,e.ids[0])+"."),f(t)&&(t=t.call(this)),e.data&&(n=g(e.data)),t&&"object"==typeof t)if(u(t))for(var p=t.length;c<p;c++)n&&(n.index=c,n.first=0===c,n.last=c===t.length-1,r&&(n.contextPath=r+c)),l+=o(t[c],{data:n});else for(var h in t)t.hasOwnProperty(h)&&(n&&(n.key=h,n.index=c,n.first=0===c,r&&(n.contextPath=r+h)),l+=o(t[h],{data:n}),c++);return 0===c&&(l=s(this)),l}),t.registerHelper("if",function(t,e){return f(t)&&(t=t.call(this)),!e.hash.includeZero&&!t||i.isEmpty(t)?e.inverse(this):e.fn(this)}),t.registerHelper("unless",function(e,n){return t.helpers.if.call(this,e,{fn:n.inverse,inverse:n.fn,hash:n.hash})}),t.registerHelper("with",function(t,e){f(t)&&(t=t.call(this));var n=e.fn;if(i.isEmpty(t))return e.inverse(this);if(e.data&&e.ids){var r=g(e.data);r.contextPath=i.appendContextPath(e.data.contextPath,e.ids[0]),e={data:r}}return n(t,e)}),t.registerHelper("log",function(e,n){var r=n.data&&null!=n.data.level?parseInt(n.data.level,10):1;t.log(r,e)}),t.registerHelper("lookup",function(t,e){return t&&t[e]})}var i=n(73),a=n(75).default,s="2.0.0";e.VERSION=s;var c=6;e.COMPILER_REVISION=c;var l={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1"};e.REVISION_CHANGES=l;var u=i.isArray,f=i.isFunction,p=i.toString,h="[object Object]";e.HandlebarsEnvironment=r,r.prototype={constructor:r,logger:d,log:b,registerHelper:function(t,e){if(p.call(t)===h){if(e)throw new a("Arg not supported with multiple helpers");i.extend(this.helpers,t)}else this.helpers[t]=e},unregisterHelper:function(t){delete this.helpers[t]},registerPartial:function(t,e){p.call(t)===h?i.extend(this.partials,t):this.partials[t]=e},unregisterPartial:function(t){delete this.partials[t]}};var d={methodMap:{0:"debug",1:"info",2:"warn",3:"error"},DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(t,e){if(d.level<=t){var n=d.methodMap[t];"undefined"!=typeof console&&console[n]&&console[n].call(console,e)}}};e.logger=d;var b=d.log;e.log=b;var g=function(t){var e=i.extend({},t);return e._parent=t,e};e.createFrame=g},function(t,e,n){"use strict";function r(t){return l[t]}function o(t){for(var e=1;e<arguments.length;e++)for(var n in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],n)&&(t[n]=arguments[e][n]);return t}function i(t){return t instanceof c?t.toString():null==t?"":t?(t=""+t,f.test(t)?t.replace(u,r):t):t+""}function a(t){return!t&&0!==t||!(!d(t)||0!==t.length)}function s(t,e){return(t?t+".":"")+e}var c=n(74).default,l={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},u=/[&<>"'`]/g,f=/[&<>"'`]/;e.extend=o;var p=Object.prototype.toString;e.toString=p;var h=function(t){return"function"==typeof t};h(/x/)&&(h=function(t){return"function"==typeof t&&"[object Function]"===p.call(t)});var h;e.isFunction=h;var d=Array.isArray||function(t){return!(!t||"object"!=typeof t)&&"[object Array]"===p.call(t)};e.isArray=d,e.escapeExpression=i,e.isEmpty=a,e.appendContextPath=s},function(t,e){"use strict";function n(t){this.string=t}n.prototype.toString=function(){return""+this.string},e.default=n},function(t,e){"use strict";function n(t,e){ | |
var n;e&&e.firstLine&&(n=e.firstLine,t+=" - "+n+":"+e.firstColumn);for(var o=Error.prototype.constructor.call(this,t),i=0;i<r.length;i++)this[r[i]]=o[r[i]];n&&(this.lineNumber=n,this.column=e.firstColumn)}var r=["description","fileName","lineNumber","message","name","number","stack"];n.prototype=new Error,e.default=n},function(t,e,n){"use strict";function r(t){var e=t&&t[0]||1,n=f;if(e!==n){if(e<n){var r=p[n],o=p[e];throw new u("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+o+").")}throw new u("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}}function o(t,e){if(!e)throw new u("No environment passed to template");if(!t||!t.main)throw new u("Unknown template object: "+typeof t);e.VM.checkRevision(t.compiler);var n=function(n,r,o,i,a,s,c,f,p){a&&(i=l.extend({},i,a));var h=e.VM.invokePartial.call(this,n,o,i,s,c,f,p);if(null==h&&e.compile){var d={helpers:s,partials:c,data:f,depths:p};c[o]=e.compile(n,{data:void 0!==f,compat:t.compat},e),h=c[o](i,d)}if(null!=h){if(r){for(var b=h.split("\n"),g=0,m=b.length;g<m&&(b[g]||g+1!==m);g++)b[g]=r+b[g];h=b.join("\n")}return h}throw new u("The partial "+o+" could not be compiled when running in runtime-only mode")},r={lookup:function(t,e){for(var n=t.length,r=0;r<n;r++)if(t[r]&&null!=t[r][e])return t[r][e]},lambda:function(t,e){return"function"==typeof t?t.call(e):t},escapeExpression:l.escapeExpression,invokePartial:n,fn:function(e){return t[e]},programs:[],program:function(t,e,n){var r=this.programs[t],o=this.fn(t);return e||n?r=i(this,t,o,e,n):r||(r=this.programs[t]=i(this,t,o)),r},data:function(t,e){for(;t&&e--;)t=t._parent;return t},merge:function(t,e){var n=t||e;return t&&e&&t!==e&&(n=l.extend({},e,t)),n},noop:e.VM.noop,compilerInfo:t.compiler},o=function(e,n){n=n||{};var i=n.data;o._setup(n),!n.partial&&t.useData&&(i=c(e,i));var a;return t.useDepths&&(a=n.depths?[e].concat(n.depths):[e]),t.main.call(r,e,r.helpers,r.partials,i,a)};return o.isTop=!0,o._setup=function(n){n.partial?(r.helpers=n.helpers,r.partials=n.partials):(r.helpers=r.merge(n.helpers,e.helpers),t.usePartial&&(r.partials=r.merge(n.partials,e.partials)))},o._child=function(e,n,o){if(t.useDepths&&!o)throw new u("must pass parent depths");return i(r,e,t[e],n,o)},o}function i(t,e,n,r,o){var i=function(e,i){return i=i||{},n.call(t,e,t.helpers,t.partials,i.data||r,o&&[e].concat(o))};return i.program=e,i.depth=o?o.length:0,i}function a(t,e,n,r,o,i,a){var s={partial:!0,helpers:r,partials:o,data:i,depths:a};if(void 0===t)throw new u("The partial "+e+" could not be found");if(t instanceof Function)return t(n,s)}function s(){return""}function c(t,e){return e&&"root"in e||(e=e?h(e):{},e.root=t),e}var l=n(73),u=n(75).default,f=n(72).COMPILER_REVISION,p=n(72).REVISION_CHANGES,h=n(72).createFrame;e.checkRevision=r,e.template=o,e.program=i,e.invokePartial=a,e.noop=s},function(t,e,n){var r=n(70);t.exports=(r.default||r).template({1:function(t,e,r,o){var i,a=this.escapeExpression,s=this.lambda,c='\r\n <highlight isNoteOnly="'+a(n(78).call(t,null!=t?t.isNoteOnly:t,{name:"$toString",hash:{},data:o}))+'">';return i=e.unless.call(t,null!=t?t.isNoteOnly:t,{name:"unless",hash:{},fn:this.program(2,o),inverse:this.noop,data:o}),null!=i&&(c+=i),c+='\r\n <location url="'+a(s(null!=(i=null!=t?t.location:t)?i.url:i,t))+'">'+a(s(null!=(i=null!=t?t.location:t)?i.value:i,t))+"</location>",i=e.if.call(t,null!=t?t.note:t,{name:"if",hash:{},fn:this.program(4,o),inverse:this.noop,data:o}),null!=i&&(c+=i),c+"\r\n </highlight>"},2:function(t,e,n,r){var o=this.lambda,i=this.escapeExpression;return"\r\n <text>"+i(o(null!=t?t.text:t,t))+"</text>"},4:function(t,e,n,r){var o=this.lambda,i=this.escapeExpression;return"\r\n <note>"+i(o(null!=t?t.note:t,t))+"</note>"},compiler:[6,">= 2.0.0-beta.1"],main:function(t,e,n,r){var o,i=this.lambda,a=this.escapeExpression,s="<book>\r\n <title>"+a(i(null!=t?t.title:t,t))+"</title>\r\n <authors>"+a(i(null!=t?t.authors:t,t))+"</authors>\r\n <highlights>";return o=e.each.call(t,null!=t?t.highlights:t,{name:"each",hash:{},fn:this.program(1,r),inverse:this.noop,data:r}),null!=o&&(s+=o),s+"\r\n </highlights>\r\n</book>"},useData:!0})},function(t,e){t.exports=function(t){return void 0===t?"undefined":t.toString()}},function(module,exports,__webpack_require__){var jade=__webpack_require__(80);module.exports=function anonymous(locals,attrs,escape,rethrow,merge){attrs=attrs||jade.attrs,escape=escape||jade.escape,rethrow=rethrow||jade.rethrow,merge=merge||jade.merge;var buf=[];with(locals||{}){var interp;buf.push('<div class="bootstrap bookcision-book">'),0!==highlights.length&&buf.push('<div class="button-with-dropdown download-button-group btn-group"><button class="btn bookcision-download-as-text"><i class="icon-download"></i> Download</button><button class="btn dropdown-toggle"><span class="caret"></span></button><ul><li class="bookcision-download-as-text"><span>as plain text</span></li><li class="bookcision-download-as-xml"><span>as XML</span></li><li class="last bookcision-download-as-json"><span>as JSON</span></li></ul></div><button class="btn bookcision-copy-to-clipboard"><i class="icon-copy"></i> Copy to clipboard</button>'),buf.push('<span class="bookcision-header"><h1>');var __val__=title;buf.push(escape(null==__val__?"":__val__)),buf.push("</h1><h2>"+escape(null==(interp=authors)?"":interp)+"</h2></span>"),0===highlights.length?buf.push('<p class="bookcision-no-highlights">You have no highlights for this book yet.</p>'):(buf.push('<ul class="bookcision-highlights">'),function(){if("number"==typeof highlights.length)for(var t=0,e=highlights.length;t<e;t++){var n=highlights[t];if(buf.push("<li>"),!n.isNoteOnly)if(n.note){buf.push('<p class="bookcision-highlight with-note">');var r=n.text;buf.push(escape(null==r?"":r)),buf.push("</p>")}else{buf.push('<p class="bookcision-highlight without-note">');var r=n.text;buf.push(escape(null==r?"":r)),buf.push("</p>")}if(n.note){buf.push('<p class="bookcision-highlight-note">');var r=n.note;buf.push(escape(null==r?"":r)),buf.push("</p>")}buf.push('<p class="bookcision-location"><a'),buf.push(attrs({href:""+n.location.url},{href:!1})),buf.push(">Location: "+escape(null==(interp=n.location.value)?"":interp)+"</a></p></li>")}else{var e=0;for(var t in highlights){e++;var n=highlights[t];if(buf.push("<li>"),!n.isNoteOnly)if(n.note){buf.push('<p class="bookcision-highlight with-note">');var r=n.text;buf.push(escape(null==r?"":r)),buf.push("</p>")}else{buf.push('<p class="bookcision-highlight without-note">');var r=n.text;buf.push(escape(null==r?"":r)),buf.push("</p>")}if(n.note){buf.push('<p class="bookcision-highlight-note">');var r=n.note;buf.push(escape(null==r?"":r)),buf.push("</p>")}buf.push('<p class="bookcision-location"><a'),buf.push(attrs({href:""+n.location.url},{href:!1})),buf.push(">Location: "+escape(null==(interp=n.location.value)?"":interp)+"</a></p></li>")}}}.call(this),buf.push("</ul>")),buf.push("</div>")}return buf.join("")}},function(t,e,n){function r(t){return null!=t}/*! | |
* Jade - runtime | |
* Copyright(c) 2010 TJ Holowaychuk <[email protected]> | |
* MIT Licensed | |
*/ | |
Array.isArray||(Array.isArray=function(t){return"[object Array]"==Object.prototype.toString.call(t)}),Object.keys||(Object.keys=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}),e.merge=function(t,e){var n=t.class,o=e.class;(n||o)&&(n=n||[],o=o||[],Array.isArray(n)||(n=[n]),Array.isArray(o)||(o=[o]),n=n.filter(r),o=o.filter(r),t.class=n.concat(o).join(" "));for(var i in e)"class"!=i&&(t[i]=e[i]);return t},e.attrs=function(t,n){var r=[],o=t.terse;delete t.terse;var i=Object.keys(t),a=i.length;if(a){r.push("");for(var s=0;s<a;++s){var c=i[s],l=t[c];"boolean"==typeof l||null==l?l&&(o?r.push(c):r.push(c+'="'+c+'"')):0==c.indexOf("data")&&"string"!=typeof l?r.push(c+"='"+JSON.stringify(l)+"'"):"class"==c&&Array.isArray(l)?r.push(c+'="'+e.escape(l.join(" "))+'"'):n&&n[c]?r.push(c+'="'+e.escape(l)+'"'):r.push(c+'="'+l+'"')}}return r.join(" ")},e.escape=function(t){return String(t).replace(/&(?!(\w+|\#\d+);)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")},e.rethrow=function(t,e,r){if(!e)throw t;var o=3,i=n(81).readFileSync(e,"utf8"),a=i.split("\n"),s=Math.max(r-o,0),c=Math.min(a.length,r+o),o=a.slice(s,c).map(function(t,e){var n=e+s+1;return(n==r?" > ":" ")+n+"| "+t}).join("\n");throw t.path=e,t.message=(e||"Jade")+":"+r+"\n"+o+"\n\n"+t.message,t}},function(t,e){var n={};e.setFile=function(t,e){n[t]=e},e.readFileSync=function(t){return n[t]||""}},function(t,e,n){n(51)(n(83))},function(t,e){t.exports=".bookcision-book h1,.bookcision-book h2,.bookcision-book h3,.bookcision-book h4,.bookcision-book h5,.bookcision-book h6{color:#000}ul.bookcision-highlights>li,p.bookcision-no-highlights{padding-left:5px;margin-bottom:20px}ul.bookcision-highlights,p.bookcision-no-highlights{padding:2.5rem 1rem 1rem}ul.bookcision-highlights{list-style:none}ul.bookcision-highlights li p:first-child{margin-bottom:0}"},function(t,e,n){n(51)(n(85))},function(t,e){t.exports='ul.bookcision-highlights li p{padding-left:10px;border-left:4px solid #ccc}ul.bookcision-highlights li p.bookcision-highlight-note{font-weight:700;font-size:14px;border-left-color:#777}ul.bookcision-highlights p.bookcision-note-context{color:#999;font-style:italic}ul.bookcision-highlights p.bookcision-highlight.with-note,ul.bookcision-highlights p.bookcision-note-context{padding-bottom:5px}ul.bookcision-highlights p.bookcision-note-context::after{content:" …"}ul.bookcision-highlights p.bookcision-note-context::before{content:"… "}ul.bookcision-highlights .bookcision-location{text-align:right;border-left-style:none;margin-top:5px}ul.bookcision-highlights a:link,ul.bookcision-highlights a:hover,ul.bookcision-highlights a:visited{font-size:12px;text-decoration:underline}ul.bookcision-highlights a:link{color:#777}ul.bookcision-highlights a:hover,ul.bookcision-highlights a:visited{color:#999}'},function(t,e,n){n(51)(n(87))},function(t,e){t.exports='.bookcision-book .clearfix{*zoom:1}.bookcision-book .clearfix:before,.bookcision-book .clearfix:after{display:table;content:"";line-height:0}.bookcision-book .clearfix:after{clear:both}.bookcision-book .hide-text{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.bookcision-book .input-block-level{display:block;width:100%;min-height:30px;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.bookcision-book *,.bookcision-book .btn{text-shadow:none}.bookcision-book ul{margin:0}.bookcision-book .button-with-dropdown li{background:#d0d0d0;color:#fff;text-align:right;font-family:Helvetica,Arial,Verdana,sans-serif;font-size:12px;line-height:49px;padding:0 20px;text-decoration:none}.bookcision-book .button-with-dropdown ul{list-style:none;cursor:pointer}.bookcision-book .button-with-dropdown ul>li:last-child{-webkit-border-bottom-left-radius:4px;-moz-border-radius-bottomleft:4px;border-bottom-left-radius:4px;-webkit-border-bottom-right-radius:4px;-moz-border-radius-bottomright:4px;border-bottom-right-radius:4px}.bookcision-book .button-with-dropdown ul>li.active{background:#d0d0d0}.bookcision-book .button-with-dropdown ul>li:hover{background:#d0d0d0}.bookcision-book .button-with-dropdown .dropdown-toggle{z-index:1}.bookcision-book .button-with-dropdown .dropdown-toggle+ul{display:none;position:absolute;min-width:100px;top:100%;right:0}.bookcision-book .button-with-dropdown .dropdown-toggle+ul li{background:#767878;filter:none;font-size:12px;display:block;line-height:120%;padding:10px}.bookcision-book .button-with-dropdown .dropdown-toggle+ul li:hover{background:#494949}'},function(t,e,n){n(51)(n(89))},function(t,e){t.exports=".no-file-system .bookcision-book .download-button-group{display:none}.bookcision-book .download-button-group,.bookcision-book .bookcision-copy-to-clipboard{float:right;margin-top:5px;margin-right:20px}"},function(t,e,n){var r=n(28);t.exports=function(t,e){var n=function(t,n){if(e.events){var r=function(e,n){e.addEventListener(n.event,function(){var e=Array.prototype.slice.call(arguments,0);e.unshift(t),n.handler.apply(this,e)})};e.events.forEach(function(t){var e=[];t.element&&e.push(t.element),t.elements&&Array.prototype.push.apply(e,t.elements),t.selector&&Array.prototype.push.apply(e,n.querySelectorAll(t.selector)),e.forEach(function(e){r(e,t)})})}e.onAfterFragmentGenerated&&e.onAfterFragmentGenerated.call(n,t,n)};return{getHtml:t,getFragment:function(e){var o=t(e),i=r.createDocumentFragmentFromHtml(o);return n(e,i),i}}}},function(t,e,n){var r=n(92);t.exports=function(t,e,n){var o=new Blob([n],{type:e});this.download=function(){r(o,t)}}},function(t,e,n){var r,o;(function(t){/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */ | |
var i=i||"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob.bind(navigator)||function(t){"use strict";if("undefined"==typeof navigator||!/MSIE [1-9]\./.test(navigator.userAgent)){var e=t.document,n=function(){return t.URL||t.webkitURL||t},r=e.createElementNS("http://www.w3.org/1999/xhtml","a"),o=!t.externalHost&&"download"in r,i=function(n){var r=e.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,t,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)},a=t.webkitRequestFileSystem,s=t.requestFileSystem||a||t.mozRequestFileSystem,c=function(e){(t.setImmediate||t.setTimeout)(function(){throw e},0)},l="application/octet-stream",u=0,f=[],p=function(){for(var t=f.length;t--;){var e=f[t];"string"==typeof e?n().revokeObjectURL(e):e.remove()}f.length=0},h=function(t,e,n){e=[].concat(e);for(var r=e.length;r--;){var o=t["on"+e[r]];if("function"==typeof o)try{o.call(t,n||t)}catch(t){c(t)}}},d=function(e,c){var p,d,b,g=this,m=e.type,v=!1,y=function(){var t=n().createObjectURL(e);return f.push(t),t},w=function(){h(g,"writestart progress write writeend".split(" "))},_=function(){!v&&p||(p=y(e)),d?d.location.href=p:window.open(p,"_blank"),g.readyState=g.DONE,w()},x=function(t){return function(){if(g.readyState!==g.DONE)return t.apply(this,arguments)}},k={create:!0,exclusive:!1};return g.readyState=g.INIT,c||(c="download"),o?(p=y(e),r.href=p,r.download=c,i(r),g.readyState=g.DONE,void w()):(t.chrome&&m&&m!==l&&(b=e.slice||e.webkitSlice,e=b.call(e,0,e.size,l),v=!0),a&&"download"!==c&&(c+=".download"),(m===l||a)&&(d=t),s?(u+=e.size,void s(t.TEMPORARY,u,x(function(t){t.root.getDirectory("saved",k,x(function(t){var n=function(){t.getFile(c,k,x(function(t){t.createWriter(x(function(n){n.onwriteend=function(e){d.location.href=t.toURL(),f.push(t),g.readyState=g.DONE,h(g,"writeend",e)},n.onerror=function(){var t=n.error;t.code!==t.ABORT_ERR&&_()},"writestart progress write abort".split(" ").forEach(function(t){n["on"+t]=g["on"+t]}),n.write(e),g.abort=function(){n.abort(),g.readyState=g.DONE},g.readyState=g.WRITING}),_)}),_)};t.getFile(c,{create:!1},x(function(t){t.remove(),n()}),x(function(t){t.code===t.NOT_FOUND_ERR?n():_()}))}),_)}),_)):void _())},b=d.prototype,g=function(t,e){return new d(t,e)};return b.abort=function(){var t=this;t.readyState=t.DONE,h(t,"abort")},b.readyState=b.INIT=0,b.WRITING=1,b.DONE=2,b.error=b.onwritestart=b.onprogress=b.onwrite=b.onabort=b.onerror=b.onwriteend=null,t.addEventListener("unload",p,!1),g.unload=function(){p(),t.removeEventListener("unload",p,!1)},g}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content);"undefined"!=typeof t&&null!==t?t.exports=i:null!==n(93)&&null!=n(94)&&(r=[],o=function(){return i}.apply(e,r),!(void 0!==o&&(t.exports=o)))}).call(e,n(18)(t))},function(t,e){t.exports=function(){throw new Error("define cannot be used indirect")}},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e,n){function r(t,e,n){i.call(this,t);var r={hoverClass:"hover",activeClass:"active"},o=new a(this._element,r),s=this._element,c=function(){var t=!1;return function(e){t||(t=!0,o.unglue(s),s.addEventListener("click",function(){alert(e)}))}}();for(var l in n)o.on(l,n[l]);o.on("load",function(t){o.on("dataRequested",function(t,n){t.setText(e)})}),o.on("noflash",function(t,e){c("You must have Flash Player installed to copy to the clipboard.")}),o.on("wrongflash",function(t,e){c("You must upgrade your Flash Player to copy to the clipboard.")})}var o=n(32),i=(n(14),n(96)),a=n(97);o.inherits(r,i),t.exports=r},function(t,e,n){function r(t){if(this._element=t,!i.isElement(this._element))throw new Error("Argument is not an HTMLElement.");if(this._icon=this._element.querySelector("i"),this._textElement=this._element.lastChild,!i.isTextNode(this._textElement))throw new Error("The last element in the button must be a text node.");this._runningFlashAnimations=!1}var o=n(14),i=n(28);r.prototype.setText=function(t){if(this._textElement!==this._element.lastChild)throw new Error("Unexpected DOM structure in button.");var e=document.createTextNode(t);this._element.replaceChild(e,this._textElement),this._textElement=this._element.lastChild},r.prototype.getText=function(){return this._textElement.nodeValue},r.prototype.setIcon=function(t){this._icon.className=t},r.prototype.getIcon=function(){return this._icon.className},r.prototype.flash=function(t){if(t.icon&&!i.isElement(this._icon))throw new Error("Invalid option for this button, which does not contain an icon.");if(!this._runningFlashAnimations){this._runningFlashAnimations=!0;var e=this.getIcon(),n=this.getText(),r=function(){if(t.icon&&this.setIcon(t.icon),t.text){var e=" "===n[0]?" "+t.text:t.text;this.setText(e)}}.bind(this),a=function(t){this.setIcon(e),this.setText(n),o(this._icon).fadeIn(100,t)}.bind(this),s=function(){this._runningFlashAnimations=!1}.bind(this),c=function(){o(this._icon).fadeOut(100,function(){a(s)})}.bind(this);r(),setTimeout(c,3e3)}},t.exports=r},function(t,e,n){var r=n(98),o=n(21),i=n(31),a="",s=o.name+a+".js",c=new i(s),l=c.resolveUrlRelativeTo("ZeroClipboard.swf"),u=[window.location.protocol+"//"+window.location.host];r.setDefaults({moviePath:l,allowScriptAccess:"always",trustedDomains:u,trustedOrigins:u}),window.ZeroClipboard=t.exports=r},function(t,e,n){/*! | |
* zeroclipboard | |
* The Zero Clipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie, and a JavaScript interface. | |
* Copyright 2012 Jon Rohan, James M. Greene, . | |
* Released under the MIT license | |
* http://jonrohan.github.com/ZeroClipboard/ | |
* v1.1.7 | |
*/ | |
!function(){"use strict";var e,n=function(t,e){var n=t.style[e];if(t.currentStyle?n=t.currentStyle[e]:window.getComputedStyle&&(n=document.defaultView.getComputedStyle(t,null).getPropertyValue(e)),"auto"==n&&"cursor"==e)for(var r=["a"],o=0;o<r.length;o++)if(t.tagName.toLowerCase()==r[o])return"pointer";return n},r=function(t){if(h.prototype._singleton){t||(t=window.event);var e;this!==window?e=this:t.target?e=t.target:t.srcElement&&(e=t.srcElement),h.prototype._singleton.setCurrent(e)}},o=function(t,e,n){t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent&&t.attachEvent("on"+e,n)},i=function(t,e,n){t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent&&t.detachEvent("on"+e,n)},a=function(t,e){if(t.addClass)return t.addClass(e),t;if(e&&"string"==typeof e){var n=(e||"").split(/\s+/);if(1===t.nodeType)if(t.className){for(var r=" "+t.className+" ",o=t.className,i=0,a=n.length;i<a;i++)r.indexOf(" "+n[i]+" ")<0&&(o+=" "+n[i]);t.className=o.replace(/^\s+|\s+$/g,"")}else t.className=e}return t},s=function(t,e){if(t.removeClass)return t.removeClass(e),t;if(e&&"string"==typeof e||void 0===e){var n=(e||"").split(/\s+/);if(1===t.nodeType&&t.className)if(e){for(var r=(" "+t.className+" ").replace(/[\n\t]/g," "),o=0,i=n.length;o<i;o++)r=r.replace(" "+n[o]+" "," ");t.className=r.replace(/^\s+|\s+$/g,"")}else t.className=""}return t},c=function(t){var e={left:0,top:0,width:t.width||t.offsetWidth||0,height:t.height||t.offsetHeight||0,zIndex:9999},r=n(t,"zIndex");for(r&&"auto"!=r&&(e.zIndex=parseInt(r,10));t;){var o=parseInt(n(t,"borderLeftWidth"),10),i=parseInt(n(t,"borderTopWidth"),10);e.left+=isNaN(t.offsetLeft)?0:t.offsetLeft,e.left+=isNaN(o)?0:o,e.top+=isNaN(t.offsetTop)?0:t.offsetTop,e.top+=isNaN(i)?0:i,t=t.offsetParent}return e},l=function(t){return(t.indexOf("?")>=0?"&":"?")+"nocache="+(new Date).getTime()},u=function(t){var e=[];return t.trustedDomains&&("string"==typeof t.trustedDomains?e.push("trustedDomain="+t.trustedDomains):e.push("trustedDomain="+t.trustedDomains.join(","))),e.join("&")},f=function(t,e){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},p=function(t){if("string"==typeof t)throw new TypeError("ZeroClipboard doesn't accept query strings.");return t.length?t:[t]},h=function(t,e){if(t&&(h.prototype._singleton||this).glue(t),h.prototype._singleton)return h.prototype._singleton;h.prototype._singleton=this,this.options={};for(var n in b)this.options[n]=b[n];for(var r in e)this.options[r]=e[r];this.handlers={},h.detectFlashSupport()&&g()},d=[];h.prototype.setCurrent=function(t){e=t,this.reposition(),t.getAttribute("title")&&this.setTitle(t.getAttribute("title")),this.setHandCursor("pointer"==n(t,"cursor"))},h.prototype.setText=function(t){t&&""!==t&&(this.options.text=t,this.ready()&&this.flashBridge.setText(t))},h.prototype.setTitle=function(t){t&&""!==t&&this.htmlBridge.setAttribute("title",t)},h.prototype.setSize=function(t,e){this.ready()&&this.flashBridge.setSize(t,e)},h.prototype.setHandCursor=function(t){this.ready()&&this.flashBridge.setHandCursor(t)},h.version="1.1.7";var b={moviePath:"ZeroClipboard.swf",trustedDomains:null,text:null,hoverClass:"zeroclipboard-is-hover",activeClass:"zeroclipboard-is-active",allowScriptAccess:"sameDomain"};h.setDefaults=function(t){for(var e in t)b[e]=t[e]},h.destroy=function(){h.prototype._singleton.unglue(d);var t=h.prototype._singleton.htmlBridge;t.parentNode.removeChild(t),delete h.prototype._singleton},h.detectFlashSupport=function(){var t=!1;try{new ActiveXObject("ShockwaveFlash.ShockwaveFlash")&&(t=!0)}catch(e){navigator.mimeTypes["application/x-shockwave-flash"]&&(t=!0)}return t};var g=function(){var t=h.prototype._singleton,e=document.getElementById("global-zeroclipboard-html-bridge");if(!e){var n=' <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" id="global-zeroclipboard-flash-bridge" width="100%" height="100%"> <param name="movie" value="'+t.options.moviePath+l(t.options.moviePath)+'"/> <param name="allowScriptAccess" value="'+t.options.allowScriptAccess+'"/> <param name="scale" value="exactfit"/> <param name="loop" value="false"/> <param name="menu" value="false"/> <param name="quality" value="best" /> <param name="bgcolor" value="#ffffff"/> <param name="wmode" value="transparent"/> <param name="flashvars" value="'+u(t.options)+'"/> <embed src="'+t.options.moviePath+l(t.options.moviePath)+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="100%" height="100%" name="global-zeroclipboard-flash-bridge" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+u(t.options)+'" scale="exactfit"> </embed> </object>';e=document.createElement("div"),e.id="global-zeroclipboard-html-bridge",e.setAttribute("class","global-zeroclipboard-container"),e.setAttribute("data-clipboard-ready",!1),e.style.position="absolute",e.style.left="-9999px",e.style.top="-9999px",e.style.width="15px",e.style.height="15px",e.style.zIndex="9999",e.innerHTML=n,document.body.appendChild(e)}t.htmlBridge=e,t.flashBridge=document["global-zeroclipboard-flash-bridge"]||e.children[0].lastElementChild};h.prototype.resetBridge=function(){this.htmlBridge.style.left="-9999px",this.htmlBridge.style.top="-9999px",this.htmlBridge.removeAttribute("title"),this.htmlBridge.removeAttribute("data-clipboard-text"),s(e,this.options.activeClass),e=null,this.options.text=null},h.prototype.ready=function(){var t=this.htmlBridge.getAttribute("data-clipboard-ready");return"true"===t||t===!0},h.prototype.reposition=function(){if(!e)return!1;var t=c(e);this.htmlBridge.style.top=t.top+"px",this.htmlBridge.style.left=t.left+"px",this.htmlBridge.style.width=t.width+"px",this.htmlBridge.style.height=t.height+"px",this.htmlBridge.style.zIndex=t.zIndex+1,this.setSize(t.width,t.height)},h.dispatch=function(t,e){h.prototype._singleton.receiveEvent(t,e)},h.prototype.on=function(t,e){for(var n=t.toString().split(/\s/g),r=0;r<n.length;r++)t=n[r].toLowerCase().replace(/^on/,""),this.handlers[t]||(this.handlers[t]=e);this.handlers.noflash&&!h.detectFlashSupport()&&this.receiveEvent("onNoFlash",null)},h.prototype.addEventListener=h.prototype.on,h.prototype.off=function(t,e){for(var n=t.toString().split(/\s/g),r=0;r<n.length;r++){t=n[r].toLowerCase().replace(/^on/,"");for(var o in this.handlers)o===t&&this.handlers[o]===e&&delete this.handlers[o]}},h.prototype.removeEventListener=h.prototype.off,h.prototype.receiveEvent=function(t,n){t=t.toString().toLowerCase().replace(/^on/,"");var r=e;switch(t){case"load":if(n&&parseFloat(n.flashVersion.replace(",",".").replace(/[^0-9\.]/gi,""))<10)return void this.receiveEvent("onWrongFlash",{flashVersion:n.flashVersion});this.htmlBridge.setAttribute("data-clipboard-ready",!0);break;case"mouseover":a(r,this.options.hoverClass);break;case"mouseout":s(r,this.options.hoverClass),this.resetBridge();break;case"mousedown":a(r,this.options.activeClass);break;case"mouseup":s(r,this.options.activeClass);break;case"datarequested":var o=r.getAttribute("data-clipboard-target"),i=o?document.getElementById(o):null;if(i){var c=i.value||i.textContent||i.innerText;c&&this.setText(c)}else{var l=r.getAttribute("data-clipboard-text");l&&this.setText(l)}break;case"complete":this.options.text=null}if(this.handlers[t]){var u=this.handlers[t];"function"==typeof u?u.call(r,this,n):"string"==typeof u&&window[u].call(r,this,n)}},h.prototype.glue=function(t){t=p(t);for(var e=0;e<t.length;e++)f(t[e],d)==-1&&(d.push(t[e]),o(t[e],"mouseover",r))},h.prototype.unglue=function(t){t=p(t);for(var e=0;e<t.length;e++){i(t[e],"mouseover",r);var n=f(t[e],d);n!=-1&&d.splice(n,1)}},t.exports=h}()},function(t,e,n){var r=(n(100),n(103)),o=(n(25),function(t,e,n,r){this.asin=t,this.title=e,this.authors=n,this.highlights=r});t.exports=o,o.get=function(t,e,n){t?new r({asin:t,doneCallback:function(t,n,r,i){var a=new o(t,n,r,i);e(a)},failCallback:n}):n(new o.NotFoundError("Missing 'asin,' 'title,' or 'authors' field"))};var i=n(233);o.NotFoundError=i.create_custom_error("BookNotFoundError",i.RuntimeError)},function(t,e,n){var r=n(101),o=function(t){r(t,this)};o.isEqual=function(t,e){var n=o.schema.requiredFields.concat(o.schema.optionalFields);return n.every(function(n){return t[n]===e[n]})},o.schema={requiredFields:["text","isNoteOnly","location.url","location.value"],optionalFields:["note"]},t.exports=o},function(t,e,n){var r=n(102),o=n(26);t.exports=function(t,e){var n=e.constructor.schema,i=o.clone(n.requiredFields),a=n.requiredFields.concat(n.optionalFields);if(a.forEach(function(a){var s=r.get(t,a);if(void 0!==s)r.set(e,a,s),o.removeByValue(i,a);else if(a in n.requiredFields)throw new Error("Could not find required field '"+a+"' in object.")}),i.length>0)throw new Error("The following required fields not found in the source object: "+i.join(", "))}},function(t,e,n){var r,o,i;!function(n,a){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=a():(o=[],r=a,i="function"==typeof r?r.apply(e,o):r,!(void 0!==i&&(t.exports=i)))}(this,function(){"use strict";function t(t){if(!t)return!0;if(i(t)&&0===t.length)return!0;for(var e in t)if(f.call(t,e))return!1;return!0}function e(t){return u.call(t)}function n(t){return"number"==typeof t||"[object Number]"===e(t)}function r(t){return"string"==typeof t||"[object String]"===e(t)}function o(t){return"object"==typeof t&&"[object Object]"===e(t)}function i(t){return"object"==typeof t&&"number"==typeof t.length&&"[object Array]"===e(t)}function a(t){return"boolean"==typeof t||"[object Boolean]"===e(t)}function s(t){var e=parseInt(t);return e.toString()===t?e:t}function c(e,o,i,a){if(n(o)&&(o=[o]),t(o))return e;if(r(o))return c(e,o.split("."),i,a);var l=s(o[0]);if(1===o.length){var u=e[l];return void 0!==u&&a||(e[l]=i),u}return void 0===e[l]&&(n(l)?e[l]=[]:e[l]={}),c(e[l],o.slice(1),i,a)}function l(e,o){if(n(o)&&(o=[o]),!t(e)){if(t(o))return e;if(r(o))return l(e,o.split("."));var a=s(o[0]),c=e[a];if(1===o.length)void 0!==c&&(i(e)?e.splice(a,1):delete e[a]);else if(void 0!==e[a])return l(e[a],o.slice(1));return e}}var u=Object.prototype.toString,f=Object.prototype.hasOwnProperty,p={};return p.ensureExists=function(t,e,n){return c(t,e,n,!0)},p.set=function(t,e,n,r){return c(t,e,n,r)},p.empty=function(e,s){if(t(s))return e;if(!t(e)){var c,l;if(!(c=p.get(e,s)))return e;if(r(c))return p.set(e,s,"");if(a(c))return p.set(e,s,!1);if(n(c))return p.set(e,s,0);if(i(c))c.length=0;else{if(!o(c))return p.set(e,s,null);for(l in c)f.call(c,l)&&delete c[l]}}},p.push=function(t,e){var n=p.get(t,e);i(n)||(n=[],p.set(t,e,n));var r=Array.prototype.slice.call(arguments,2);n.push.apply(n,r)},p.coalesce=function(t,e,n){for(var r,o=0,i=e.length;o<i;o++)if(void 0!==(r=p.get(t,e[o])))return r;return n},p.get=function(e,o,i){if(n(o)&&(o=[o]),t(o))return e;if(t(e))return i;if(r(o))return p.get(e,o.split("."),i);var a=s(o[0]);return 1===o.length?void 0===e[a]?i:e[a]:p.get(e[a],o.slice(1),i)},p.del=function(t,e){return l(t,e)},p})},function(t,e,n){function r(){}function o(t){if(!t.asin)throw new Error("Must specify an asin.");this.options=t;var e="read.amazon.com";this.host=location.hostname||e,this.scrapedData={asin:t.asin,title:null,authors:null,highlights:[],contentLimitState:null,nextPageStartToken:null},this.queueNextChunkScraping()}var i=n(104),a=n(32),s=n(195),c=n(100),l=(n(36),n(27)),u=n(25),f=n(223);o.prototype.queueNextChunkScraping=function(){var t=this.scrapedData.highlights.length;r("queue next chunk w/ "+t+" highlights already."),r("amazonScraper.getAmazonDeviceType(): ",u.getAmazonDeviceType());var e;e=this.scrapedData.nextPageStartToken?a.format("https://%s/kp/notebook?asin=%s&contentLimitState=%s&token=%s",this.host,this.options.asin,this.scrapedData.contentLimitState,this.scrapedData.nextPageStartToken):a.format("https://%s/kp/notebook?purpose=NOTEBOOK&amazonDeviceType=%s&appName=notebook&asin=%s&contentLimitState=&",this.host,u.getAmazonDeviceType(),this.options.asin),0!==t&&(e+="&index="+t),this.scrapeChunk(t,e)},o.prototype.onChunkScraped=function(t,e,n,o,i,a){var s=this;s.scrapedData.title=s.scrapedData.title||e,s.scrapedData.authors=s.scrapedData.authors||n,s.scrapedData.contentLimitState=i,s.scrapedData.nextPageStartToken=a,o&&o.length>0?(r("onChunkScraped: found "+o.length+" highlights on the existing "+s.scrapedData.highlights.length+" highlights."),s.scrapedData.highlights=s.scrapedData.highlights.concat(o),s.queueNextChunkScraping()):s.options.doneCallback&&(r("onChunkScraped: found 0 highlights, calling doneCallback"),s.options.doneCallback(s.scrapedData.asin,s.scrapedData.title,s.scrapedData.authors,s.scrapedData.highlights))},o.prototype.scrapeChunk=function(t,e){r(e);var n=this,u=this.options;r(JSON.stringify(u)),i(e,function(e){var i,p,h,d,b=[];u.failCallback&&e.on("error",function(t){u.failCallback(new o.ScrapeError(t))}),e.on("dom",function(){n.onChunkScraped(u.asin,i,p,b,h,d)});var g=e.select(".a-spacing-top-small.a-color-base.kp-notebook-selectable.kp-notebook-metadata",function(t){i=s(t).text().trim(),i=f.decodeHTML(i),r("found title: "+i),u.onTitle&&u.onTitle(i),e.removeListener("element",g)}),m=e.select(".a-size-base.a-spacing-top-micro.a-color-secondary.kp-notebook-selectable.kp-notebook-metadata",function(t){p=s(t).text().trim(),p=f.decodeHTML(p),p=l.startsWith(p,"by ")?p.substring(3):p,u.onAuthors&&u.onAuthors(p),e.removeListener("element",m)});e.select(".kp-notebook-content-limit-state",function(t){h=t.attribs.value}),e.select(".kp-notebook-annotations-next-page-start",function(t){d=t.attribs.value});var v=0===t?"#kp-notebook-annotations > div":"div.a-row.a-spacing-base";e.select(v,function(t){var e=s(t).find("span#note:not(:empty)"),r=s(e).text().trim();r=f.decodeHTML(r);var o=Boolean(r&&l.isNotEmpty(r)),i=s(t).find("span#highlight:not(:empty)"),p=s(i).text().trim();p=f.decodeHTML(p);var h=Boolean(p&&l.isNotEmpty(p)),d=o&&!h,g=s(t).find("#kp-annotation-location"),m=s(g).val(),v=parseInt(m,10),y=a.format("kindle://book?action=open&asin=%s&location=%d",n.options.asin,v);if(o||h){var w=new c({text:p,isNoteOnly:d,location:{url:y,value:v},note:o?r:null}),_=n.scrapedData.highlights.some(function(t){return c.isEqual(t,w)});_||(b.push(w),u.onHighlight&&u.onHighlight(w))}})}.bind(this))},t.exports=o;var p=n(233);o.ScrapeError=p.create_custom_error("BookScraperScrapeError",p.RuntimeError)},function(t,e,n){function r(t,e){var n=new i;e&&e(n);var r=s.get(t);return r.pipe(new o(n)),r.on("response",function(t){var e=t.statusCode;if(e<200||e>=300){var n=Error("Received status code "+e+' ("'+a.STATUS_CODES[e]+'")');r.emit("error",n)}}),r.on("error",function(t){n.emit("error",t)}),n}var o=n(105).WritableStream,i=n(167),a=n(184),s=n(191);t.exports=r},function(t,e,n){function r(e,n){return delete t.exports[e],t.exports[e]=n,n}var o=n(106),i=n(114);t.exports={Parser:o,Tokenizer:n(107),ElementType:n(115),DomHandler:i,get FeedHandler(){return r("FeedHandler",n(118))},get Stream(){return r("Stream",n(119))},get WritableStream(){return r("WritableStream",n(120))},get ProxyHandler(){return r("ProxyHandler",n(158))},get DomUtils(){return r("DomUtils",n(159))},get CollectingHandler(){return r("CollectingHandler",n(166))},DefaultHandler:i,get RssHandler(){return r("RssHandler",this.FeedHandler)},parseDOM:function(t,e){var n=new i(e);return new o(n,e).end(t),n.dom},parseFeed:function(e,n){var r=new t.exports.FeedHandler(n);return new o(r,n).end(e),r.dom},createDomStream:function(t,e,n){var r=new i(t,e,n);return new o(r,e)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}},function(t,e,n){function r(t,e){this._options=e||{},this._cbs=t||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._tokenizer=new o(this._options,this)}var o=n(107),i={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},a={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},select:i,input:i,output:i,button:i,datalist:i,textarea:i,option:{option:!0},optgroup:{optgroup:!0}},s={__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,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0},c=/\s|\//;n(32).inherits(r,n(113).EventEmitter),r.prototype._updatePosition=function(t){null===this.endIndex?this._tokenizer._sectionStart<=t?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-t:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer._index},r.prototype.ontext=function(t){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(t)},r.prototype.onopentagname=function(t){if(this._lowerCaseTagNames&&(t=t.toLowerCase()),this._tagname=t,!this._options.xmlMode&&t in a)for(var e;(e=this._stack[this._stack.length-1])in a[t];this.onclosetag(e));!this._options.xmlMode&&t in s||this._stack.push(t),this._cbs.onopentagname&&this._cbs.onopentagname(t),this._cbs.onopentag&&(this._attribs={})},r.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in s&&this._cbs.onclosetag(this._tagname),this._tagname=""},r.prototype.onclosetag=function(t){if(this._updatePosition(1),this._lowerCaseTagNames&&(t=t.toLowerCase()),!this._stack.length||t in s&&!this._options.xmlMode)this._options.xmlMode||"br"!==t&&"p"!==t||(this.onopentagname(t),this._closeCurrentTag());else{var e=this._stack.lastIndexOf(t);if(e!==-1)if(this._cbs.onclosetag)for(e=this._stack.length-e;e--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=e;else"p"!==t||this._options.xmlMode||(this.onopentagname(t),this._closeCurrentTag())}},r.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing?this._closeCurrentTag():this.onopentagend()},r.prototype._closeCurrentTag=function(){var t=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===t&&(this._cbs.onclosetag&&this._cbs.onclosetag(t),this._stack.pop())},r.prototype.onattribname=function(t){this._lowerCaseAttributeNames&&(t=t.toLowerCase()),this._attribname=t},r.prototype.onattribdata=function(t){this._attribvalue+=t},r.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},r.prototype._getInstructionName=function(t){var e=t.search(c),n=e<0?t:t.substr(0,e);return this._lowerCaseTagNames&&(n=n.toLowerCase()),n},r.prototype.ondeclaration=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("!"+e,"!"+t)}},r.prototype.onprocessinginstruction=function(t){if(this._cbs.onprocessinginstruction){var e=this._getInstructionName(t);this._cbs.onprocessinginstruction("?"+e,"?"+t)}},r.prototype.oncomment=function(t){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(t),this._cbs.oncommentend&&this._cbs.oncommentend()},r.prototype.oncdata=function(t){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(t),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+t+"]]")},r.prototype.onerror=function(t){this._cbs.onerror&&this._cbs.onerror(t)},r.prototype.onend=function(){if(this._cbs.onclosetag)for(var t=this._stack.length;t>0;this._cbs.onclosetag(this._stack[--t]));this._cbs.onend&&this._cbs.onend()},r.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[]},r.prototype.parseComplete=function(t){this.reset(),this.end(t)},r.prototype.write=function(t){this._tokenizer.write(t)},r.prototype.end=function(t){this._tokenizer.end(t)},r.prototype.pause=function(){this._tokenizer.pause()},r.prototype.resume=function(){this._tokenizer.resume()},r.prototype.parseChunk=r.prototype.write,r.prototype.done=r.prototype.end,t.exports=r},function(t,e,n){function r(t){return" "===t||"\n"===t||"\t"===t||"\f"===t||"\r"===t}function o(t,e){return function(n){n===t&&(this._state=e)}}function i(t,e,n){var r=t.toLowerCase();return t===r?function(t){t===r?this._state=e:(this._state=n,this._index--)}:function(o){o===r||o===t?this._state=e:(this._state=n,this._index--)}}function a(t,e){var n=t.toLowerCase();return function(r){r===n||r===t?this._state=e:(this._state=b,this._index--)}}function s(t,e){this._state=h,this._buffer="",this._sectionStart=0,this._index=0,this._baseState=h,this._special=bt,this._cbs=e,this._running=!0,this._ended=!1,this._xmlMode=!(!t||!t.xmlMode),this._decodeEntities=!(!t||!t.decodeEntities)}t.exports=s;var c=n(108),l=n(110),u=n(111),f=n(112),p=0,h=p++,d=p++,b=p++,g=p++,m=p++,v=p++,y=p++,w=p++,_=p++,x=p++,k=p++,E=p++,S=p++,T=p++,A=p++,C=p++,O=p++,L=p++,N=p++,j=p++,R=p++,D=p++,M=p++,I=p++,P=p++,q=p++,B=p++,z=p++,U=p++,F=p++,H=p++,$=p++,W=p++,V=p++,G=p++,X=p++,Y=p++,J=p++,K=p++,Q=p++,Z=p++,tt=p++,et=p++,nt=p++,rt=p++,ot=p++,it=p++,at=p++,st=p++,ct=p++,lt=p++,ut=p++,ft=p++,pt=p++,ht=p++,dt=0,bt=dt++,gt=dt++,mt=dt++;s.prototype._stateText=function(t){"<"===t?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=d,this._sectionStart=this._index):this._decodeEntities&&this._special===bt&&"&"===t&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=h,this._state=lt,this._sectionStart=this._index)},s.prototype._stateBeforeTagName=function(t){"/"===t?this._state=m:">"===t||this._special!==bt||r(t)?this._state=h:"!"===t?(this._state=A,this._sectionStart=this._index+1):"?"===t?(this._state=O,this._sectionStart=this._index+1):"<"===t?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):(this._state=this._xmlMode||"s"!==t&&"S"!==t?b:H,this._sectionStart=this._index)},s.prototype._stateInTagName=function(t){("/"===t||">"===t||r(t))&&(this._emitToken("onopentagname"),this._state=w,this._index--)},s.prototype._stateBeforeCloseingTagName=function(t){r(t)||(">"===t?this._state=h:this._special!==bt?"s"===t||"S"===t?this._state=$:(this._state=h,this._index--):(this._state=v,this._sectionStart=this._index))},s.prototype._stateInCloseingTagName=function(t){(">"===t||r(t))&&(this._emitToken("onclosetag"),this._state=y,this._index--)},s.prototype._stateAfterCloseingTagName=function(t){">"===t&&(this._state=h,this._sectionStart=this._index+1)},s.prototype._stateBeforeAttributeName=function(t){">"===t?(this._cbs.onopentagend(),this._state=h,this._sectionStart=this._index+1):"/"===t?this._state=g:r(t)||(this._state=_,this._sectionStart=this._index)},s.prototype._stateInSelfClosingTag=function(t){">"===t?(this._cbs.onselfclosingtag(),this._state=h,this._sectionStart=this._index+1):r(t)||(this._state=w,this._index--)},s.prototype._stateInAttributeName=function(t){("="===t||"/"===t||">"===t||r(t))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=x,this._index--)},s.prototype._stateAfterAttributeName=function(t){"="===t?this._state=k:"/"===t||">"===t?(this._cbs.onattribend(),this._state=w,this._index--):r(t)||(this._cbs.onattribend(),this._state=_,this._sectionStart=this._index)},s.prototype._stateBeforeAttributeValue=function(t){'"'===t?(this._state=E,this._sectionStart=this._index+1):"'"===t?(this._state=S,this._sectionStart=this._index+1):r(t)||(this._state=T,this._sectionStart=this._index,this._index--)},s.prototype._stateInAttributeValueDoubleQuotes=function(t){'"'===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=w):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=lt,this._sectionStart=this._index)},s.prototype._stateInAttributeValueSingleQuotes=function(t){"'"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=w):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=lt,this._sectionStart=this._index)},s.prototype._stateInAttributeValueNoQuotes=function(t){r(t)||">"===t?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=w,this._index--):this._decodeEntities&&"&"===t&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=lt,this._sectionStart=this._index)},s.prototype._stateBeforeDeclaration=function(t){this._state="["===t?D:"-"===t?L:C},s.prototype._stateInDeclaration=function(t){">"===t&&(this._cbs.ondeclaration(this._getSection()),this._state=h,this._sectionStart=this._index+1)},s.prototype._stateInProcessingInstruction=function(t){">"===t&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=h,this._sectionStart=this._index+1)},s.prototype._stateBeforeComment=function(t){"-"===t?(this._state=N,this._sectionStart=this._index+1):this._state=C},s.prototype._stateInComment=function(t){"-"===t&&(this._state=j)},s.prototype._stateAfterComment1=function(t){"-"===t?this._state=R:this._state=N},s.prototype._stateAfterComment2=function(t){">"===t?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"-"!==t&&(this._state=N)},s.prototype._stateBeforeCdata1=i("C",M,C),s.prototype._stateBeforeCdata2=i("D",I,C),s.prototype._stateBeforeCdata3=i("A",P,C),s.prototype._stateBeforeCdata4=i("T",q,C),s.prototype._stateBeforeCdata5=i("A",B,C),s.prototype._stateBeforeCdata6=function(t){"["===t?(this._state=z,this._sectionStart=this._index+1):(this._state=C,this._index--)},s.prototype._stateInCdata=function(t){"]"===t&&(this._state=U)},s.prototype._stateAfterCdata1=o("]",F),s.prototype._stateAfterCdata2=function(t){">"===t?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=h,this._sectionStart=this._index+1):"]"!==t&&(this._state=z)},s.prototype._stateBeforeSpecial=function(t){"c"===t||"C"===t?this._state=W:"t"===t||"T"===t?this._state=et:(this._state=b,this._index--)},s.prototype._stateBeforeSpecialEnd=function(t){this._special!==gt||"c"!==t&&"C"!==t?this._special!==mt||"t"!==t&&"T"!==t?this._state=h:this._state=it:this._state=J},s.prototype._stateBeforeScript1=a("R",V),s.prototype._stateBeforeScript2=a("I",G),s.prototype._stateBeforeScript3=a("P",X),s.prototype._stateBeforeScript4=a("T",Y),s.prototype._stateBeforeScript5=function(t){("/"===t||">"===t||r(t))&&(this._special=gt),this._state=b,this._index--},s.prototype._stateAfterScript1=i("R",K,h),s.prototype._stateAfterScript2=i("I",Q,h),s.prototype._stateAfterScript3=i("P",Z,h),s.prototype._stateAfterScript4=i("T",tt,h),s.prototype._stateAfterScript5=function(t){">"===t||r(t)?(this._special=bt,this._state=v,this._sectionStart=this._index-6,this._index--):this._state=h},s.prototype._stateBeforeStyle1=a("Y",nt),s.prototype._stateBeforeStyle2=a("L",rt),s.prototype._stateBeforeStyle3=a("E",ot),s.prototype._stateBeforeStyle4=function(t){("/"===t||">"===t||r(t))&&(this._special=mt),this._state=b,this._index--},s.prototype._stateAfterStyle1=i("Y",at,h),s.prototype._stateAfterStyle2=i("L",st,h),s.prototype._stateAfterStyle3=i("E",ct,h),s.prototype._stateAfterStyle4=function(t){">"===t||r(t)?(this._special=bt,this._state=v,this._sectionStart=this._index-5,this._index--):this._state=h},s.prototype._stateBeforeEntity=i("#",ut,ft),s.prototype._stateBeforeNumericEntity=i("X",ht,pt),s.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var t=this._buffer.substring(this._sectionStart+1,this._index),e=this._xmlMode?f:l;e.hasOwnProperty(t)&&(this._emitPartial(e[t]),this._sectionStart=this._index+1)}},s.prototype._parseLegacyEntity=function(){var t=this._sectionStart+1,e=this._index-t;for(e>6&&(e=6);e>=2;){var n=this._buffer.substr(t,e);if(u.hasOwnProperty(n))return this._emitPartial(u[n]),void(this._sectionStart+=e+1);e--}},s.prototype._stateInNamedEntity=function(t){";"===t?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(t<"a"||t>"z")&&(t<"A"||t>"Z")&&(t<"0"||t>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==h?"="!==t&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},s.prototype._decodeNumericEntity=function(t,e){var n=this._sectionStart+t;if(n!==this._index){var r=this._buffer.substring(n,this._index),o=parseInt(r,e);this._emitPartial(c(o)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},s.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--)},s.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--)},s.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._index=0):this._running&&(this._state===h?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._index=0):this._sectionStart===this._index?(this._buffer="",this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart),this._sectionStart=0)},s.prototype.write=function(t){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=t,this._parse()},s.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var t=this._buffer.charAt(this._index);this._state===h?this._stateText(t):this._state===d?this._stateBeforeTagName(t):this._state===b?this._stateInTagName(t):this._state===m?this._stateBeforeCloseingTagName(t):this._state===v?this._stateInCloseingTagName(t):this._state===y?this._stateAfterCloseingTagName(t):this._state===g?this._stateInSelfClosingTag(t):this._state===w?this._stateBeforeAttributeName(t):this._state===_?this._stateInAttributeName(t):this._state===x?this._stateAfterAttributeName(t):this._state===k?this._stateBeforeAttributeValue(t):this._state===E?this._stateInAttributeValueDoubleQuotes(t):this._state===S?this._stateInAttributeValueSingleQuotes(t):this._state===T?this._stateInAttributeValueNoQuotes(t):this._state===A?this._stateBeforeDeclaration(t):this._state===C?this._stateInDeclaration(t):this._state===O?this._stateInProcessingInstruction(t):this._state===L?this._stateBeforeComment(t):this._state===N?this._stateInComment(t):this._state===j?this._stateAfterComment1(t):this._state===R?this._stateAfterComment2(t):this._state===D?this._stateBeforeCdata1(t):this._state===M?this._stateBeforeCdata2(t):this._state===I?this._stateBeforeCdata3(t):this._state===P?this._stateBeforeCdata4(t):this._state===q?this._stateBeforeCdata5(t):this._state===B?this._stateBeforeCdata6(t):this._state===z?this._stateInCdata(t):this._state===U?this._stateAfterCdata1(t):this._state===F?this._stateAfterCdata2(t):this._state===H?this._stateBeforeSpecial(t):this._state===$?this._stateBeforeSpecialEnd(t):this._state===W?this._stateBeforeScript1(t):this._state===V?this._stateBeforeScript2(t):this._state===G?this._stateBeforeScript3(t):this._state===X?this._stateBeforeScript4(t):this._state===Y?this._stateBeforeScript5(t):this._state===J?this._stateAfterScript1(t):this._state===K?this._stateAfterScript2(t):this._state===Q?this._stateAfterScript3(t):this._state===Z?this._stateAfterScript4(t):this._state===tt?this._stateAfterScript5(t):this._state===et?this._stateBeforeStyle1(t):this._state===nt?this._stateBeforeStyle2(t):this._state===rt?this._stateBeforeStyle3(t):this._state===ot?this._stateBeforeStyle4(t):this._state===it?this._stateAfterStyle1(t):this._state===at?this._stateAfterStyle2(t):this._state===st?this._stateAfterStyle3(t):this._state===ct?this._stateAfterStyle4(t):this._state===lt?this._stateBeforeEntity(t):this._state===ut?this._stateBeforeNumericEntity(t):this._state===ft?this._stateInNamedEntity(t):this._state===pt?this._stateInNumericEntity(t):this._state===ht?this._stateInHexEntity(t):this._cbs.onerror(Error("unknown _state"),this._state), | |
this._index++}this._cleanup()},s.prototype.pause=function(){this._running=!1},s.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},s.prototype.end=function(t){this._ended&&this._cbs.onerror(Error(".end() after done!")),t&&this.write(t),this._ended=!0,this._running&&this._finish()},s.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},s.prototype._handleTrailingData=function(){var t=this._buffer.substr(this._sectionStart);this._state===z||this._state===U||this._state===F?this._cbs.oncdata(t):this._state===N||this._state===j||this._state===R?this._cbs.oncomment(t):this._state!==ft||this._xmlMode?this._state!==pt||this._xmlMode?this._state!==ht||this._xmlMode?this._state!==b&&this._state!==w&&this._state!==k&&this._state!==x&&this._state!==_&&this._state!==S&&this._state!==E&&this._state!==T&&this._state!==v&&this._cbs.ontext(t):(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData()))},s.prototype.reset=function(){s.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},s.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},s.prototype._emitToken=function(t){this._cbs[t](this._getSection()),this._sectionStart=-1},s.prototype._emitPartial=function(t){this._baseState!==h?this._cbs.onattribdata(t):this._cbs.ontext(t)}},[234,109],function(t,e){t.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}},function(t,e){t.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:""}},function(t,e){t.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:"ÿ"}},function(t,e){t.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}},function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function o(t){return"number"==typeof t}function i(t){return"object"==typeof t&&null!==t}function a(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!o(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,o,s,c,l;if(this._events||(this._events={}),"error"===t&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if(e=arguments[1],e instanceof Error)throw e;var u=new Error('Uncaught, unspecified "error" event. ('+e+")");throw u.context=e,u}if(n=this._events[t],a(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),l=n.slice(),o=l.length,c=0;c<o;c++)l[c].apply(this,s);return!0},n.prototype.addListener=function(t,e){var o;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?i(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,i(this._events[t])&&!this._events[t].warned&&(o=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners,o&&o>0&&this._events[t].length>o&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace())),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),o||(o=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var o=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,o,a,s;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],a=n.length,o=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(i(n)){for(s=a;s-- >0;)if(n[s]===e||n[s].listener&&n[s].listener===e){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){var e;return e=this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},function(t,e,n){function r(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=[]}var o=n(115),i=/\s+/g,a=n(116),s=n(117),c={normalizeWhitespace:!1};r.prototype.onreset=function(){r.call(this,this._callback,this._options,this._elementCB)},r.prototype.onend=function(){this._done||(this._done=!0, | |
this._handleCallback(null))},r.prototype._handleCallback=r.prototype.onerror=function(t){if("function"==typeof this._callback)this._callback(t,this.dom);else if(t)throw t},r.prototype.onclosetag=function(){var t=this._tagStack.pop();this._elementCB&&this._elementCB(t)},r.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.withDomLvl1&&(t.__proto__="tag"===t.type?s:a),r?(t.prev=r,r.next=t):t.prev=null,n.push(t),t.parent=e||null},r.prototype.onopentag=function(t,e){var n={type:"script"===t?o.Script:"style"===t?o.Style:o.Tag,name:t,attribs:e,children:[]};this._addDomElement(n),this._tagStack.push(n)},r.prototype.ontext=function(t){var e,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;!this._tagStack.length&&this.dom.length&&(e=this.dom[this.dom.length-1]).type===o.Text?n?e.data=(e.data+t).replace(i," "):e.data+=t:this._tagStack.length&&(e=this._tagStack[this._tagStack.length-1])&&(e=e.children[e.children.length-1])&&e.type===o.Text?n?e.data=(e.data+t).replace(i," "):e.data+=t:(n&&(t=t.replace(i," ")),this._addDomElement({data:t,type:o.Text}))},r.prototype.oncomment=function(t){var e=this._tagStack[this._tagStack.length-1];if(e&&e.type===o.Comment)return void(e.data+=t);var n={data:t,type:o.Comment};this._addDomElement(n),this._tagStack.push(n)},r.prototype.oncdatastart=function(){var t={children:[{data:"",type:o.Text}],type:o.CDATA};this._addDomElement(t),this._tagStack.push(t)},r.prototype.oncommentend=r.prototype.oncdataend=function(){this._tagStack.pop()},r.prototype.onprocessinginstruction=function(t,e){this._addDomElement({name:t,data:e,type:o.Directive})},t.exports=r},function(t,e){t.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}}},function(t,e){var n=t.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}},r={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},o={element:1,text:3,cdata:4,comment:8};Object.keys(r).forEach(function(t){var e=r[t];Object.defineProperty(n,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})},function(t,e,n){var r=n(116),o=t.exports=Object.create(r),i={tagName:"name"};Object.keys(i).forEach(function(t){var e=i[t];Object.defineProperty(o,t,{get:function(){return this[e]||null},set:function(t){return this[e]=t,t}})})},function(t,e,n){function r(t,e){this.init(t,e)}function o(t,e){return u.getElementsByTagName(t,e,!0)}function i(t,e){return u.getElementsByTagName(t,e,!0,1)[0]}function a(t,e,n){return u.getText(u.getElementsByTagName(t,e,n,1)).trim()}function s(t,e,n,r,o){var i=a(n,r,o);i&&(t[e]=i)}var c=n(105),l=c.DomHandler,u=c.DomUtils;n(32).inherits(r,l),r.prototype.init=l;var f=function(t){return"rss"===t||"feed"===t||"rdf:RDF"===t};r.prototype.onend=function(){var t,e,n={},r=i(f,this.dom);r&&("feed"===r.name?(e=r.children,n.type="atom",s(n,"id","id",e),s(n,"title","title",e),(t=i("link",e))&&(t=t.attribs)&&(t=t.href)&&(n.link=t),s(n,"description","subtitle",e),(t=a("updated",e))&&(n.updated=new Date(t)),s(n,"author","email",e,!0),n.items=o("entry",e).map(function(t){var e,n={};return t=t.children,s(n,"id","id",t),s(n,"title","title",t),(e=i("link",t))&&(e=e.attribs)&&(e=e.href)&&(n.link=e),s(n,"description","summary",t),(e=a("updated",t))&&(n.pubDate=new Date(e)),n})):(e=i("channel",r.children).children,n.type=r.name.substr(0,3),n.id="",s(n,"title","title",e),s(n,"link","link",e),s(n,"description","description",e),(t=a("lastBuildDate",e))&&(n.updated=new Date(t)),s(n,"author","managingEditor",e,!0),n.items=o("item",r.children).map(function(t){var e,n={};return t=t.children,s(n,"id","guid",t),s(n,"title","title",t),s(n,"link","link",t),s(n,"description","description",t),(e=a("pubDate",t))&&(n.pubDate=new Date(e)),n}))),this.dom=n,l.prototype._handleCallback.call(this,r?null:Error("couldn't find root of feed"))},t.exports=r},function(t,e,n){function r(t){i.call(this,new o(this),t)}function o(t){this.scope=t}t.exports=r;var i=n(120);n(32).inherits(r,i),r.prototype.readable=!0;var a=n(105).EVENTS;Object.keys(a).forEach(function(t){if(0===a[t])o.prototype["on"+t]=function(){this.scope.emit(t)};else if(1===a[t])o.prototype["on"+t]=function(e){this.scope.emit(t,e)};else{if(2!==a[t])throw Error("wrong number of arguments!");o.prototype["on"+t]=function(e,n){this.scope.emit(t,e,n)}}})},function(t,e,n){function r(t,e){var n=this._parser=new o(t,e);i.call(this,{decodeStrings:!1}),this.once("finish",function(){n.end()})}t.exports=r;var o=n(106),i=n(121).Writable||n(147).Writable;n(32).inherits(r,i),i.prototype._write=function(t,e,n){this._parser.write(t),n()}},function(t,e,n){function r(){o.call(this)}t.exports=r;var o=n(113).EventEmitter,i=n(122);i(r,o),r.Readable=n(123),r.Writable=n(143),r.Duplex=n(144),r.Transform=n(145),r.PassThrough=n(146),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&l.pause&&l.pause()}function r(){l.readable&&l.resume&&l.resume()}function i(){u||(u=!0,t.end())}function a(){u||(u=!0,"function"==typeof t.destroy&&t.destroy())}function s(t){if(c(),0===o.listenerCount(this,"error"))throw t}function c(){l.removeListener("data",n),t.removeListener("drain",r),l.removeListener("end",i),l.removeListener("close",a),l.removeListener("error",s),t.removeListener("error",s),l.removeListener("end",c),l.removeListener("close",c),t.removeListener("close",c)}var l=this;l.on("data",n),t.on("drain",r),t._isStdio||e&&e.end===!1||(l.on("end",i),l.on("close",a));var u=!1;return l.on("error",s),t.on("error",s),l.on("end",c),l.on("close",c),t.on("close",c),t.emit("pipe",l),t}},35,function(t,e,n){(function(r){var o=function(){try{return n(121)}catch(t){}}();e=t.exports=n(124),e.Stream=o||e,e.Readable=e,e.Writable=n(136),e.Duplex=n(135),e.Transform=n(141),e.PassThrough=n(142),!r.browser&&"disable"===r.env.READABLE_STREAM&&o&&(t.exports=o)}).call(e,n(33))},function(t,e,n){(function(e){"use strict";function r(t,e,n){return"function"==typeof t.prependListener?t.prependListener(e,n):void(t._events&&t._events[e]?N(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n))}function o(t,e){O=O||n(135),t=t||{},this.objectMode=!!t.objectMode,e instanceof O&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=~~this.highWaterMark,this.buffer=new z,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(B||(B=n(140).StringDecoder),this.decoder=new B(t.encoding),this.encoding=t.encoding)}function i(t){return O=O||n(135),this instanceof i?(this._readableState=new o(t,this),this.readable=!0,t&&"function"==typeof t.read&&(this._read=t.read),void j.call(this)):new i(t)}function a(t,e,n,r,o){var i=u(e,n);if(i)t.emit("error",i);else if(null===n)e.reading=!1,f(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var a=new Error("stream.push() after EOF");t.emit("error",a)}else if(e.endEmitted&&o){var c=new Error("stream.unshift() after end event");t.emit("error",c)}else{var l;!e.decoder||o||r||(n=e.decoder.write(n),l=!e.objectMode&&0===n.length),o||(e.reading=!1),l||(e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&p(t))),d(t,e)}else o||(e.reading=!1);return s(e)}function s(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function c(t){return t>=U?t=U:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function l(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=c(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function u(t,e){var n=null;return D.isBuffer(e)||"string"==typeof e||null===e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function f(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,p(t)}}function p(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(q("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?L(h,t):h(t))}function h(t){q("emit readable"),t.emit("readable"),w(t)}function d(t,e){e.readingMore||(e.readingMore=!0,L(b,t,e))}function b(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(q("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function g(t){return function(){var e=t._readableState;q("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&R(t,"data")&&(e.flowing=!0,w(t))}}function m(t){q("readable nexttick read 0"),t.read(0)}function v(t,e){e.resumeScheduled||(e.resumeScheduled=!0,L(y,t,e))}function y(t,e){e.reading||(q("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),w(t),e.flowing&&!e.reading&&t.read(0)}function w(t){var e=t._readableState;for(q("flow",e.flowing);e.flowing&&null!==t.read(););}function _(t,e){if(0===e.length)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=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=x(t,e.buffer,e.decoder),n}function x(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?k(t,e):E(t,e),r}function k(t,e){var n=e.head,r=1,o=n.data;for(t-=o.length;n=n.next;){var i=n.data,a=t>i.length?i.length:t;if(o+=a===i.length?i:i.slice(0,t),t-=a,0===t){a===i.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=i.slice(a));break}++r}return e.length-=r,o}function E(t,e){var n=M.allocUnsafe(t),r=e.head,o=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var i=r.data,a=t>i.length?i.length:t;if(i.copy(n,n.length-t,0,a),t-=a,0===t){a===i.length?(++o,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=i.slice(a));break}++o}return e.length-=o,n}function S(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,L(T,e,t))}function T(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function A(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n)}function C(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}t.exports=i;var O,L=n(125),N=n(126);i.ReadableState=o;var j,R=(n(113).EventEmitter,function(t,e){return t.listeners(e).length});!function(){try{j=n(121)}catch(t){}finally{j||(j=n(113).EventEmitter)}}();var D=n(127).Buffer,M=n(131),I=n(132);I.inherits=n(122);var P=n(133),q=void 0;q=P&&P.debuglog?P.debuglog("stream"):function(){};var B,z=n(134);I.inherits(i,j),i.prototype.push=function(t,e){var n=this._readableState;return n.objectMode||"string"!=typeof t||(e=e||n.defaultEncoding,e!==n.encoding&&(t=M.from(t,e),e="")),a(this,n,t,e,!1)},i.prototype.unshift=function(t){var e=this._readableState;return a(this,e,t,"",!0)},i.prototype.isPaused=function(){return this._readableState.flowing===!1},i.prototype.setEncoding=function(t){return B||(B=n(140).StringDecoder),this._readableState.decoder=new B(t),this._readableState.encoding=t,this};var U=8388608;i.prototype.read=function(t){q("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return q("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?S(this):p(this),null;if(t=l(t,e),0===t&&e.ended)return 0===e.length&&S(this),null;var r=e.needReadable;q("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,q("length less than watermark",r)),e.ended||e.reading?(r=!1,q("reading or ended",r)):r&&(q("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=l(n,e)));var o;return o=t>0?_(t,e):null,null===o?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&S(this)),null!==o&&this.emit("data",o),o},i.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},i.prototype.pipe=function(t,n){function o(t){q("onunpipe"),t===p&&a()}function i(){q("onend"),t.end()}function a(){q("cleanup"),t.removeListener("close",l),t.removeListener("finish",u),t.removeListener("drain",m),t.removeListener("error",c),t.removeListener("unpipe",o),p.removeListener("end",i),p.removeListener("end",a),p.removeListener("data",s),v=!0,!h.awaitDrain||t._writableState&&!t._writableState.needDrain||m()}function s(e){q("ondata"),y=!1;var n=t.write(e);!1!==n||y||((1===h.pipesCount&&h.pipes===t||h.pipesCount>1&&C(h.pipes,t)!==-1)&&!v&&(q("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,y=!0),p.pause())}function c(e){q("onerror",e),f(),t.removeListener("error",c),0===R(t,"error")&&t.emit("error",e)}function l(){t.removeListener("finish",u),f()}function u(){q("onfinish"),t.removeListener("close",l),f()}function f(){q("unpipe"),p.unpipe(t)}var p=this,h=this._readableState;switch(h.pipesCount){case 0:h.pipes=t;break;case 1:h.pipes=[h.pipes,t];break;default:h.pipes.push(t)}h.pipesCount+=1,q("pipe count=%d opts=%j",h.pipesCount,n);var d=(!n||n.end!==!1)&&t!==e.stdout&&t!==e.stderr,b=d?i:a;h.endEmitted?L(b):p.once("end",b),t.on("unpipe",o);var m=g(p);t.on("drain",m);var v=!1,y=!1;return p.on("data",s),r(t,"error",c),t.once("close",l),t.once("finish",u),t.emit("pipe",p),h.flowing||(q("pipe resume"),p.resume()),t},i.prototype.unpipe=function(t){var e=this._readableState;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),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this);return this}var i=C(e.pipes,t);return i===-1?this:(e.pipes.splice(i,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},i.prototype.on=function(t,e){var n=j.prototype.on.call(this,t,e);if("data"===t)this._readableState.flowing!==!1&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&p(this,r):L(m,this))}return n},i.prototype.addListener=i.prototype.on,i.prototype.resume=function(){var t=this._readableState;return t.flowing||(q("resume"),t.flowing=!0,v(this,t)),this},i.prototype.pause=function(){return q("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(q("pause"),this._readableState.flowing=!1,this.emit("pause")),this},i.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;t.on("end",function(){if(q("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(o){if(q("wrapped data"),e.decoder&&(o=e.decoder.write(o)),(!e.objectMode||null!==o&&void 0!==o)&&(e.objectMode||o&&o.length)){var i=r.push(o);i||(n=!0,t.pause())}});for(var o in t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));var i=["error","close","destroy","pause","resume"];return A(i,function(e){t.on(e,r.emit.bind(r,e))}),r._read=function(e){q("wrapped _read",e),n&&(n=!1,t.resume())},r},i._fromList=_}).call(e,n(33))},function(t,e,n){(function(e){"use strict";function n(t,n,r,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var i,a,s=arguments.length;switch(s){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,o)});default:for(i=new Array(s-1),a=0;a<i.length;)i[a++]=arguments[a];return e.nextTick(function(){t.apply(null,i)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(e,n(33))},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){(function(t){/*! | |
* The buffer module from node.js, for the browser. | |
* | |
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org> | |
* @license MIT | |
*/ | |
"use strict";function r(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}function o(){return a.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(o()<e)throw new RangeError("Invalid typed array length");return a.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=a.prototype):(null===t&&(t=new a(e)),t.length=e),t}function a(t,e,n){if(!(a.TYPED_ARRAY_SUPPORT||this instanceof a))return new a(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return u(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?h(t,e,n,r):"string"==typeof e?f(t,e,n):d(t,e)}function c(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function l(t,e,n,r){return c(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function u(t,e){if(c(e),t=i(t,e<0?0:0|b(e)),!a.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!a.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(e,n);t=i(t,r);var o=t.write(e,n);return o!==r&&(t=t.slice(0,o)),t}function p(t,e){var n=e.length<0?0:0|b(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function h(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),a.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=a.prototype):t=p(t,e),t}function d(t,e){if(a.isBuffer(e)){var n=0|b(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||J(e.length)?i(t,0):p(t,e);if("Buffer"===e.type&&Z(e.data))return p(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function b(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function g(t){return+t!=t&&(t=0),a.alloc(+t)}function m(t,e){if(a.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return X(t).length;default:if(r)return W(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return N(this,e,n);case"latin1":case"binary":return j(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function y(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function w(t,e,n,r,o){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=a.from(e,r)),a.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,o);if("number"==typeof e)return e&=255,a.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,o);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,o){function i(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,c=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}var l;if(o){var u=-1;for(l=n;l<s;l++)if(i(t,l)===i(e,u===-1?0:l-u)){if(u===-1&&(u=l),l-u+1===c)return u*a}else u!==-1&&(l-=l-u),u=-1}else for(n+c>s&&(n=s-c),l=n;l>=0;l--){for(var f=!0,p=0;p<c;p++)if(i(t,l+p)!==i(e,p)){f=!1;break}if(f)return l}return-1}function x(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function k(t,e,n,r){return Y(W(e,t.length-n),t,n,r)}function E(t,e,n,r){return Y(V(e),t,n,r)}function S(t,e,n,r){return E(t,e,n,r)}function T(t,e,n,r){return Y(X(e),t,n,r)}function A(t,e,n,r){return Y(G(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?K.fromByteArray(t):K.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;o<n;){var i=t[o],a=null,s=i>239?4:i>223?3:i>191?2:1;if(o+s<=n){var c,l,u,f;switch(s){case 1:i<128&&(a=i);break;case 2:c=t[o+1],128===(192&c)&&(f=(31&i)<<6|63&c,f>127&&(a=f));break;case 3:c=t[o+1],l=t[o+2],128===(192&c)&&128===(192&l)&&(f=(15&i)<<12|(63&c)<<6|63&l,f>2047&&(f<55296||f>57343)&&(a=f));break;case 4:c=t[o+1],l=t[o+2],u=t[o+3],128===(192&c)&&128===(192&l)&&128===(192&u)&&(f=(15&i)<<18|(63&c)<<12|(63&l)<<6|63&u,f>65535&&f<1114112&&(a=f))}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=s}return L(r)}function L(t){var e=t.length;if(e<=tt)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=tt));return n}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(127&t[o]);return r}function j(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;o<n;++o)r+=String.fromCharCode(t[o]);return r}function R(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=e;i<n;++i)o+=$(t[i]);return o}function D(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function M(t,e,n){if(t%1!==0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function I(t,e,n,r,o,i){if(!a.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||e<i)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function P(t,e,n,r){e<0&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);o<i;++o)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function q(t,e,n,r){e<0&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);o<i;++o)t[n+o]=e>>>8*(r?o:3-o)&255}function B(t,e,n,r,o,i){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(t,e,n,r,o){return o||B(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||B(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,n,r,52,8),n+8}function F(t){if(t=H(t).replace(et,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function H(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function $(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,r=t.length,o=null,i=[],a=0;a<r;++a){if(n=t.charCodeAt(a),n>55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;i.push(n)}else if(n<2048){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function G(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function X(t){return K.toByteArray(F(t))}function Y(t,e,n,r){for(var o=0;o<r&&!(o+n>=e.length||o>=t.length);++o)e[o+n]=t[o];return o}function J(t){return t!==t}var K=n(128),Q=n(129),Z=n(130);e.Buffer=a,e.SlowBuffer=g,e.INSPECT_MAX_BYTES=50,a.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:r(),e.kMaxLength=o(),a.poolSize=8192,a._augment=function(t){return t.__proto__=a.prototype,t},a.from=function(t,e,n){return s(null,t,e,n)},a.TYPED_ARRAY_SUPPORT&&(a.prototype.__proto__=Uint8Array.prototype,a.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&a[Symbol.species]===a&&Object.defineProperty(a,Symbol.species,{value:null,configurable:!0})),a.alloc=function(t,e,n){return l(null,t,e,n)},a.allocUnsafe=function(t){return u(null,t)},a.allocUnsafeSlow=function(t){return u(null,t)},a.isBuffer=function(t){return!(null==t||!t._isBuffer)},a.compare=function(t,e){if(!a.isBuffer(t)||!a.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,i=Math.min(n,r);o<i;++o)if(t[o]!==e[o]){n=t[o],r=e[o];break}return n<r?-1:r<n?1:0},a.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(t,e){if(!Z(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return a.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=a.allocUnsafe(e),o=0;for(n=0;n<t.length;++n){var i=t[n];if(!a.isBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(r,o),o+=i.length}return r},a.byteLength=m,a.prototype._isBuffer=!0,a.prototype.swap16=function(){var t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)y(this,e,e+1);return this},a.prototype.swap32=function(){var t=this.length;if(t%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)y(this,e,e+3),y(this,e+1,e+2);return this},a.prototype.swap64=function(){var t=this.length;if(t%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)y(this,e,e+7),y(this,e+1,e+6),y(this,e+2,e+5),y(this,e+3,e+4);return this},a.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):v.apply(this,arguments)},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="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},a.prototype.compare=function(t,e,n,r,o){if(!a.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),e<0||n>t.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&e>=n)return 0;if(r>=o)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,o>>>=0,this===t)return 0;for(var i=o-r,s=n-e,c=Math.min(i,s),l=this.slice(r,o),u=t.slice(e,n),f=0;f<c;++f)if(l[f]!==u[f]){i=l[f],s=u[f];break}return i<s?-1:s<i?1:0},a.prototype.includes=function(t,e,n){return this.indexOf(t,e,n)!==-1},a.prototype.indexOf=function(t,e,n){return w(this,t,e,n,!0)},a.prototype.lastIndexOf=function(t,e,n){return w(this,t,e,n,!1)},a.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-e;if((void 0===n||n>o)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return x(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var tt=4096;a.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e<t&&(e=t);var r;if(a.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=a.prototype;else{var o=e-t;r=new a(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+t]}return r},a.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},a.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},a.prototype.readUInt8=function(t,e){return e||M(t,1,this.length),this[t]},a.prototype.readUInt16LE=function(t,e){return e||M(t,2,this.length),this[t]|this[t+1]<<8},a.prototype.readUInt16BE=function(t,e){return e||M(t,2,this.length),this[t]<<8|this[t+1]},a.prototype.readUInt32LE=function(t,e){return e||M(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 e||M(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||M(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},a.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||M(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},a.prototype.readInt8=function(t,e){return e||M(t,1,this.length),128&this[t]?(255-this[t]+1)*-1:this[t]},a.prototype.readInt16LE=function(t,e){e||M(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},a.prototype.readInt16BE=function(t,e){e||M(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 e||M(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 e||M(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 e||M(t,4,this.length),Q.read(this,t,!0,23,4)},a.prototype.readFloatBE=function(t,e){return e||M(t,4,this.length),Q.read(this,t,!1,23,4)},a.prototype.readDoubleLE=function(t,e){return e||M(t,8,this.length),Q.read(this,t,!0,52,8)},a.prototype.readDoubleBE=function(t,e){return e||M(t,8,this.length),Q.read(this,t,!1,52,8)},a.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;I(this,t,e,n,o,0)}var i=1,a=0;for(this[e]=255&t;++a<n&&(i*=256);)this[e+a]=t/i&255;return e+n},a.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;I(this,t,e,n,o,0)}var i=n-1,a=1;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=t/a&255;return e+n},a.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,255,0),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},a.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},a.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,65535,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},a.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):q(this,t,e,!0),e+4},a.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,4294967295,0),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},a.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);I(this,t,e,n,o-1,-o)}var i=0,a=1,s=0;for(this[e]=255&t;++i<n&&(a*=256);)t<0&&0===s&&0!==this[e+i-1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},a.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var o=Math.pow(2,8*n-1);I(this,t,e,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[e+i]=255&t;--i>=0&&(a*=256);)t<0&&0===s&&0!==this[e+i+1]&&(s=1),this[e+i]=(t/a>>0)-s&255;return e+n},a.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,1,127,-128),a.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),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||I(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):P(this,t,e,!0),e+2},a.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,2,32767,-32768),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):P(this,t,e,!1),e+2},a.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),a.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):q(this,t,e,!0),e+4},a.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||I(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),a.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):q(this,t,e,!1),e+4},a.prototype.writeFloatLE=function(t,e,n){return z(this,t,e,!0,n)},a.prototype.writeFloatBE=function(t,e,n){return z(this,t,e,!1,n)},a.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},a.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},a.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,i=r-n;if(this===t&&n<e&&e<r)for(o=i-1;o>=0;--o)t[o+e]=this[o+n];else if(i<1e3||!a.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+i),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),1===t.length){var o=t.charCodeAt(0);o<256&&(t=o)}if(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)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var i;if("number"==typeof t)for(i=e;i<n;++i)this[i]=t;else{var s=a.isBuffer(t)?t:W(new a(t,r).toString()),c=s.length;for(i=0;i<n-e;++i)this[i+e]=s[i%c]}return this};var et=/[^+\/0-9A-Za-z-_]/g}).call(e,function(){return this}())},function(t,e){"use strict";function n(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function r(t){return 3*t.length/4-n(t)}function o(t){var e,r,o,i,a,s,c=t.length;a=n(t),s=new u(3*c/4-a),o=a>0?c-4:c;var f=0;for(e=0,r=0;e<o;e+=4,r+=3)i=l[t.charCodeAt(e)]<<18|l[t.charCodeAt(e+1)]<<12|l[t.charCodeAt(e+2)]<<6|l[t.charCodeAt(e+3)],s[f++]=i>>16&255,s[f++]=i>>8&255,s[f++]=255&i;return 2===a?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[f++]=255&i):1===a&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[f++]=i>>8&255,s[f++]=255&i),s}function i(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function a(t,e,n){for(var r,o=[],a=e;a<n;a+=3)r=(t[a]<<16)+(t[a+1]<<8)+t[a+2],o.push(i(r));return o.join("")}function s(t){for(var e,n=t.length,r=n%3,o="",i=[],s=16383,l=0,u=n-r;l<u;l+=s)i.push(a(t,l,l+s>u?u:l+s));return 1===r?(e=t[n-1],o+=c[e>>2],o+=c[e<<4&63],o+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],o+=c[e>>10],o+=c[e>>4&63],o+=c[e<<2&63],o+="="),i.push(o),i.join("")}e.byteLength=r,e.toByteArray=o,e.fromByteArray=s;for(var c=[],l=[],u="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,h=f.length;p<h;++p)c[p]=f[p],l[f.charCodeAt(p)]=p;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,o){var i,a,s=8*o-r-1,c=(1<<s)-1,l=c>>1,u=-7,f=n?o-1:0,p=n?-1:1,h=t[e+f];for(f+=p,i=h&(1<<-u)-1,h>>=-u,u+=s;u>0;i=256*i+t[e+f],f+=p,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+t[e+f],f+=p,u-=8);if(0===i)i=1-l;else{if(i===c)return a?NaN:(h?-1:1)*(1/0);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},e.write=function(t,e,n,r,o,i){var a,s,c,l=8*i-o-1,u=(1<<l)-1,f=u>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,b=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=u):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),e+=a+f>=1?p/c:p*Math.pow(2,1-f),e*c>=2&&(a++,c/=2),a+f>=u?(s=0,a=u):a+f>=1?(s=(e*c-1)*Math.pow(2,o),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;t[n+h]=255&s,h+=d,s/=256,o-=8);for(a=a<<o|s,l+=o;l>0;t[n+h]=255&a,h+=d,a/=256,l-=8);t[n+h-d]|=128*b}},126,function(t,e,n){(function(t){"use strict";var r=n(127),o=r.Buffer,i=r.SlowBuffer,a=r.kMaxLength||2147483647;e.alloc=function(t,e,n){if("function"==typeof o.alloc)return o.alloc(t,e,n);if("number"==typeof n)throw new TypeError("encoding must not be number");if("number"!=typeof t)throw new TypeError("size must be a number");if(t>a)throw new RangeError("size is too large");var r=n,i=e;void 0===i&&(r=void 0,i=0);var s=new o(t);if("string"==typeof i)for(var c=new o(i,r),l=c.length,u=-1;++u<t;)s[u]=c[u%l];else s.fill(i);return s},e.allocUnsafe=function(t){if("function"==typeof o.allocUnsafe)return o.allocUnsafe(t);if("number"!=typeof t)throw new TypeError("size must be a number");if(t>a)throw new RangeError("size is too large");return new o(t)},e.from=function(e,n,r){if("function"==typeof o.from&&(!t.Uint8Array||Uint8Array.from!==o.from))return o.from(e,n,r);if("number"==typeof e)throw new TypeError('"value" argument must not be a number');if("string"==typeof e)return new o(e,n);if("undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer){var i=n;if(1===arguments.length)return new o(e);"undefined"==typeof i&&(i=0);var a=r;if("undefined"==typeof a&&(a=e.byteLength-i),i>=e.byteLength)throw new RangeError("'offset' is out of bounds");if(a>e.byteLength-i)throw new RangeError("'length' is out of bounds");return new o(e.slice(i,i+a))}if(o.isBuffer(e)){var s=new o(e.length);return e.copy(s,0,0,e.length),s}if(e){if(Array.isArray(e)||"undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return new o(e);if("Buffer"===e.type&&Array.isArray(e.data))return new o(e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")},e.allocUnsafeSlow=function(t){if("function"==typeof o.allocUnsafeSlow)return o.allocUnsafeSlow(t);if("number"!=typeof t)throw new TypeError("size must be a number");if(t>=a)throw new RangeError("size is too large");return new i(t)}}).call(e,function(){return this}())},function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===g(t)}function r(t){return"boolean"==typeof t}function o(t){return null===t}function i(t){return null==t}function a(t){return"number"==typeof t}function s(t){return"string"==typeof t}function c(t){return"symbol"==typeof t}function l(t){return void 0===t}function u(t){return"[object RegExp]"===g(t)}function f(t){return"object"==typeof t&&null!==t}function p(t){return"[object Date]"===g(t)}function h(t){return"[object Error]"===g(t)||t instanceof Error}function d(t){return"function"==typeof t}function b(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function g(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=r,e.isNull=o,e.isNullOrUndefined=i,e.isNumber=a,e.isString=s,e.isSymbol=c,e.isUndefined=l,e.isRegExp=u,e.isObject=f,e.isDate=p,e.isError=h,e.isFunction=d,e.isPrimitive=b,e.isBuffer=t.isBuffer}).call(e,n(127).Buffer)},function(t,e){},function(t,e,n){"use strict";function r(){this.head=null,this.tail=null,this.length=0}var o=(n(127).Buffer,n(131));t.exports=r,r.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},r.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},r.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}},r.prototype.clear=function(){this.head=this.tail=null,this.length=0},r.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},r.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)n.data.copy(e,r),r+=n.data.length,n=n.next;return e}},function(t,e,n){"use strict";function r(t){return this instanceof r?(l.call(this,t),u.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",o)):new r(t)}function o(){this.allowHalfOpen||this._writableState.ended||s(i,this)}function i(t){t.end()}var a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=r;var s=n(125),c=n(132);c.inherits=n(122);var l=n(124),u=n(136);c.inherits(r,l);for(var f=a(u.prototype),p=0;p<f.length;p++){var h=f[p];r.prototype[h]||(r.prototype[h]=u.prototype[h])}},function(t,e,n){(function(e,r){"use strict";function o(){}function i(t,e,n){this.chunk=t,this.encoding=e,this.callback=n,this.next=null}function a(t,e){E=E||n(135),t=t||{},this.objectMode=!!t.objectMode,e instanceof E&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var i=t.decodeStrings===!1;this.decodeStrings=!i,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){b(e,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 k(this)}function s(t){return E=E||n(135),j.call(s,this)||this instanceof E?(this._writableState=new a(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev)),void C.call(this)):new s(t)}function c(t,e){var n=new Error("write after end");t.emit("error",n),S(e,n)}function l(t,e,n,r){var o=!0,i=!1;return null===n?i=new TypeError("May not write null values to stream"):L.isBuffer(n)||"string"==typeof n||void 0===n||e.objectMode||(i=new TypeError("Invalid non-string/buffer chunk")),i&&(t.emit("error",i),S(r,i),o=!1),o}function u(t,e,n){return t.objectMode||t.decodeStrings===!1||"string"!=typeof e||(e=N.from(e,n)),e}function f(t,e,n,r,o){n=u(e,n,r),L.isBuffer(n)&&(r="buffer");var a=e.objectMode?1:n.length;e.length+=a;var s=e.length<e.highWaterMark;if(s||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest=new i(n,r,o),c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else p(t,e,!1,a,n,r,o);return s}function p(t,e,n,r,o,i,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function h(t,e,n,r,o){--e.pendingcb,n?S(o,r):o(r),t._writableState.errorEmitted=!0,t.emit("error",r)}function d(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function b(t,e){var n=t._writableState,r=n.sync,o=n.writecb;if(d(n),e)h(t,n,r,e,o);else{var i=y(n);i||n.corked||n.bufferProcessing||!n.bufferedRequest||v(t,n),r?T(g,t,n,i,o):g(t,n,i,o)}}function g(t,e,n,r){n||m(t,e),e.pendingcb--,r(),_(t,e)}function m(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function v(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),i=e.corkedRequestsFree;i.entry=n;for(var a=0;n;)o[a]=n,n=n.next,a+=1;p(t,e,!0,e.length,o,"",i.finish),e.pendingcb++,e.lastBufferedRequest=null,i.next?(e.corkedRequestsFree=i.next,i.next=null):e.corkedRequestsFree=new k(e)}else{for(;n;){var s=n.chunk,c=n.encoding,l=n.callback,u=e.objectMode?1:s.length;if(p(t,e,!1,u,s,c,l),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function y(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function w(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function _(t,e){var n=y(e);return n&&(0===e.pendingcb?(w(t,e),e.finished=!0,t.emit("finish")):w(t,e)),n}function x(t,e,n){e.ending=!0,_(t,e),n&&(e.finished?S(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function k(t){var e=this;this.next=null,this.entry=null,this.finish=function(n){var r=e.entry;for(e.entry=null;r;){var o=r.callback;t.pendingcb--,o(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}}t.exports=s;var E,S=n(125),T=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?r:S;s.WritableState=a;var A=n(132);A.inherits=n(122);var C,O={deprecate:n(139)};!function(){try{C=n(121)}catch(t){}finally{C||(C=n(113).EventEmitter)}}();var L=n(127).Buffer,N=n(131);A.inherits(s,C),a.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(a.prototype,"buffer",{get:O.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(t){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(s,Symbol.hasInstance,{value:function(t){return!!j.call(this,t)||t&&t._writableState instanceof a}})):j=function(t){return t instanceof this},s.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},s.prototype.write=function(t,e,n){var r=this._writableState,i=!1;return"function"==typeof e&&(n=e,e=null),L.isBuffer(t)?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=o),r.ended?c(this,n):l(this,r,t,n)&&(r.pendingcb++,i=f(this,r,t,e,n)),i},s.prototype.cork=function(){var t=this._writableState;t.corked++},s.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||v(this,t))}, | |
s.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},s.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},s.prototype._writev=null,s.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&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||x(this,r,n)}}).call(e,n(33),n(137).setImmediate)},function(t,e,n){function r(t,e){this._id=t,this._clearFn=e}var o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,window,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,window,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(window,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(138),e.setImmediate=setImmediate,e.clearImmediate=clearImmediate},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return b[d]=r,h(d),d++}function o(t){delete b[t]}function i(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(g)setTimeout(a,0,t);else{var e=b[t];if(e){g=!0;try{i(e)}finally{o(t),g=!1}}}}function s(){h=function(t){e.nextTick(function(){a(t)})}}function c(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}function l(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),h=function(n){t.postMessage(e+n,"*")}}function u(){var t=new MessageChannel;t.port1.onmessage=function(t){var e=t.data;a(e)},h=function(e){t.port2.postMessage(e)}}function f(){var t=m.documentElement;h=function(e){var n=m.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}function p(){h=function(t){setTimeout(a,0,t)}}if(!t.setImmediate){var h,d=1,b={},g=!1,m=t.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(t);v=v&&v.setTimeout?v:t,"[object process]"==={}.toString.call(t.process)?s():c()?l():t.MessageChannel?u():m&&"onreadystatechange"in m.createElement("script")?f():p(),v.setImmediate=r,v.clearImmediate=o}}("undefined"==typeof self?"undefined"==typeof t?this:t:self)}).call(e,function(){return this}(),n(33))},function(t,e){(function(e){function n(t,e){function n(){if(!o){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),o=!0}return t.apply(this,arguments)}if(r("noDeprecation"))return t;var o=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(e,function(){return this}())},function(t,e,n){function r(t){if(t&&!c(t))throw new Error("Unknown encoding: "+t)}function o(t){return t.toString(this.encoding)}function i(t){this.charReceived=t.length%2,this.charLength=this.charReceived?2:0}function a(t){this.charReceived=t.length%3,this.charLength=this.charReceived?3:0}var s=n(127).Buffer,c=s.isEncoding||function(t){switch(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}},l=e.StringDecoder=function(t){switch(this.encoding=(t||"utf8").toLowerCase().replace(/[-_]/,""),r(t),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=i;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=a;break;default:return void(this.write=o)}this.charBuffer=new s(6),this.charReceived=0,this.charLength=0};l.prototype.write=function(t){for(var e="";this.charLength;){var n=t.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:t.length;if(t.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";t=t.slice(n,t.length),e=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var r=e.charCodeAt(e.length-1);if(!(r>=55296&&r<=56319)){if(this.charReceived=this.charLength=0,0===t.length)return e;break}this.charLength+=this.surrogateSize,e=""}this.detectIncompleteChar(t);var o=t.length;this.charLength&&(t.copy(this.charBuffer,0,t.length-this.charReceived,o),o-=this.charReceived),e+=t.toString(this.encoding,0,o);var o=e.length-1,r=e.charCodeAt(o);if(r>=55296&&r<=56319){var i=this.surrogateSize;return this.charLength+=i,this.charReceived+=i,this.charBuffer.copy(this.charBuffer,i,0,i),t.copy(this.charBuffer,0,0,i),e.substring(0,o)}return e},l.prototype.detectIncompleteChar=function(t){for(var e=t.length>=3?3:t.length;e>0;e--){var n=t[t.length-e];if(1==e&&n>>5==6){this.charLength=2;break}if(e<=2&&n>>4==14){this.charLength=3;break}if(e<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=e},l.prototype.end=function(t){var e="";if(t&&t.length&&(e=this.write(t)),this.charReceived){var n=this.charReceived,r=this.charBuffer,o=this.encoding;e+=r.slice(0,n).toString(o)}return e}},function(t,e,n){"use strict";function r(t){this.afterTransform=function(e,n){return o(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function o(t,e,n){var r=t._transformState;r.transforming=!1;var o=r.writecb;if(!o)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&t.push(n),o(e);var i=t._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&t._read(i.highWaterMark)}function i(t){if(!(this instanceof i))return new i(t);s.call(this,t),this._transformState=new r(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t,n){a(e,t,n)}):a(e)})}function a(t,e,n){if(e)return t.emit("error",e);null!==n&&void 0!==n&&t.push(n);var r=t._writableState,o=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(o.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=i;var s=n(135),c=n(132);c.inherits=n(122),c.inherits(i,s),i.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},i.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},i.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},i.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0}},function(t,e,n){"use strict";function r(t){return this instanceof r?void o.call(this,t):new r(t)}t.exports=r;var o=n(141),i=n(132);i.inherits=n(122),i.inherits(r,o),r.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(136)},function(t,e,n){t.exports=n(135)},function(t,e,n){t.exports=n(141)},function(t,e,n){t.exports=n(142)},function(t,e,n){e=t.exports=n(148),e.Stream=n(121),e.Readable=e,e.Writable=n(154),e.Duplex=n(153),e.Transform=n(156),e.PassThrough=n(157)},function(t,e,n){(function(e){function r(t,e){var r=n(153);t=t||{};var o=t.highWaterMark,i=t.objectMode?16:16384;this.highWaterMark=o||0===o?o:i,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.objectMode=!!t.objectMode,e instanceof r&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.defaultEncoding=t.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(C||(C=n(155).StringDecoder),this.decoder=new C(t.encoding),this.encoding=t.encoding)}function o(t){n(153);return this instanceof o?(this._readableState=new r(t,this),this.readable=!0,void T.call(this)):new o(t)}function i(t,e,n,r,o){var i=l(e,n);if(i)t.emit("error",i);else if(A.isNullOrUndefined(n))e.reading=!1,e.ended||u(t,e);else if(e.objectMode||n&&n.length>0)if(e.ended&&!o){var s=new Error("stream.push() after EOF");t.emit("error",s)}else if(e.endEmitted&&o){var s=new Error("stream.unshift() after end event");t.emit("error",s)}else!e.decoder||o||r||(n=e.decoder.write(n)),o||(e.reading=!1),e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,o?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&f(t)),h(t,e);else o||(e.reading=!1);return a(e)}function a(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function s(t){if(t>=L)t=L;else{t--;for(var e=1;e<32;e<<=1)t|=t>>e;t++}return t}function c(t,e){return 0===e.length&&e.ended?0:e.objectMode?0===t?0:1:isNaN(t)||A.isNull(t)?e.flowing&&e.buffer.length?e.buffer[0].length:e.length:t<=0?0:(t>e.highWaterMark&&(e.highWaterMark=s(t)),t>e.length?e.ended?e.length:(e.needReadable=!0,0):t)}function l(t,e){var n=null;return A.isBuffer(e)||A.isString(e)||A.isNullOrUndefined(e)||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function u(t,e){if(e.decoder&&!e.ended){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,f(t)}function f(t){var n=t._readableState;n.needReadable=!1,n.emittedReadable||(O("emitReadable",n.flowing),n.emittedReadable=!0,n.sync?e.nextTick(function(){p(t)}):p(t))}function p(t){O("emit readable"),t.emit("readable"),v(t)}function h(t,n){n.readingMore||(n.readingMore=!0,e.nextTick(function(){d(t,n)}))}function d(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(O("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function b(t){return function(){var e=t._readableState;O("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&S.listenerCount(t,"data")&&(e.flowing=!0,v(t))}}function g(t,n){n.resumeScheduled||(n.resumeScheduled=!0,e.nextTick(function(){m(t,n)}))}function m(t,e){e.resumeScheduled=!1,t.emit("resume"),v(t),e.flowing&&!e.reading&&t.read(0)}function v(t){var e=t._readableState;if(O("flow",e.flowing),e.flowing)do var n=t.read();while(null!==n&&e.flowing)}function y(t,e){var n,r=e.buffer,o=e.length,i=!!e.decoder,a=!!e.objectMode;if(0===r.length)return null;if(0===o)n=null;else if(a)n=r.shift();else if(!t||t>=o)n=i?r.join(""):E.concat(r,o),r.length=0;else if(t<r[0].length){var s=r[0];n=s.slice(0,t),r[0]=s.slice(t)}else if(t===r[0].length)n=r.shift();else{n=i?"":new E(t);for(var c=0,l=0,u=r.length;l<u&&c<t;l++){var s=r[0],f=Math.min(t-c,s.length);i?n+=s.slice(0,f):s.copy(n,c,0,f),f<s.length?r[0]=s.slice(f):r.shift(),c+=f}}return n}function w(t){var n=t._readableState;if(n.length>0)throw new Error("endReadable called on non-empty stream");n.endEmitted||(n.ended=!0,e.nextTick(function(){n.endEmitted||0!==n.length||(n.endEmitted=!0,t.readable=!1,t.emit("end"))}))}function _(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n)}function x(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}t.exports=o;var k=n(149),E=n(127).Buffer;o.ReadableState=r;var S=n(113).EventEmitter;S.listenerCount||(S.listenerCount=function(t,e){return t.listeners(e).length});var T=n(121),A=n(150);A.inherits=n(151);var C,O=n(152);O=O&&O.debuglog?O.debuglog("stream"):function(){},A.inherits(o,T),o.prototype.push=function(t,e){var n=this._readableState;return A.isString(t)&&!n.objectMode&&(e=e||n.defaultEncoding,e!==n.encoding&&(t=new E(t,e),e="")),i(this,n,t,e,!1)},o.prototype.unshift=function(t){var e=this._readableState;return i(this,e,t,"",!0)},o.prototype.setEncoding=function(t){return C||(C=n(155).StringDecoder),this._readableState.decoder=new C(t),this._readableState.encoding=t,this};var L=8388608;o.prototype.read=function(t){O("read",t);var e=this._readableState,n=t;if((!A.isNumber(t)||t>0)&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return O("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?w(this):f(this),null;if(t=c(t,e),0===t&&e.ended)return 0===e.length&&w(this),null;var r=e.needReadable;O("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,O("length less than watermark",r)),(e.ended||e.reading)&&(r=!1,O("reading or ended",r)),r&&(O("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1),r&&!e.reading&&(t=c(n,e));var o;return o=t>0?y(t,e):null,A.isNull(o)&&(e.needReadable=!0,t=0),e.length-=t,0!==e.length||e.ended||(e.needReadable=!0),n!==t&&e.ended&&0===e.length&&w(this),A.isNull(o)||this.emit("data",o),o},o.prototype._read=function(t){this.emit("error",new Error("not implemented"))},o.prototype.pipe=function(t,n){function r(t){O("onunpipe"),t===f&&i()}function o(){O("onend"),t.end()}function i(){O("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",g),t.removeListener("error",s),t.removeListener("unpipe",r),f.removeListener("end",o),f.removeListener("end",i),f.removeListener("data",a),!p.awaitDrain||t._writableState&&!t._writableState.needDrain||g()}function a(e){O("ondata");var n=t.write(e);!1===n&&(O("false write response, pause",f._readableState.awaitDrain),f._readableState.awaitDrain++,f.pause())}function s(e){O("onerror",e),u(),t.removeListener("error",s),0===S.listenerCount(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),u()}function l(){O("onfinish"),t.removeListener("close",c),u()}function u(){O("unpipe"),f.unpipe(t)}var f=this,p=this._readableState;switch(p.pipesCount){case 0:p.pipes=t;break;case 1:p.pipes=[p.pipes,t];break;default:p.pipes.push(t)}p.pipesCount+=1,O("pipe count=%d opts=%j",p.pipesCount,n);var h=(!n||n.end!==!1)&&t!==e.stdout&&t!==e.stderr,d=h?o:i;p.endEmitted?e.nextTick(d):f.once("end",d),t.on("unpipe",r);var g=b(f);return t.on("drain",g),f.on("data",a),t._events&&t._events.error?k(t._events.error)?t._events.error.unshift(s):t._events.error=[s,t._events.error]:t.on("error",s),t.once("close",c),t.once("finish",l),t.emit("pipe",f),p.flowing||(O("pipe resume"),f.resume()),t},o.prototype.unpipe=function(t){var e=this._readableState;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),this);if(!t){var n=e.pipes,r=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<r;o++)n[o].emit("unpipe",this);return this}var o=x(e.pipes,t);return o===-1?this:(e.pipes.splice(o,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this),this)},o.prototype.on=function(t,n){var r=T.prototype.on.call(this,t,n);if("data"===t&&!1!==this._readableState.flowing&&this.resume(),"readable"===t&&this.readable){var o=this._readableState;if(!o.readableListening)if(o.readableListening=!0,o.emittedReadable=!1,o.needReadable=!0,o.reading)o.length&&f(this,o);else{var i=this;e.nextTick(function(){O("readable nexttick read 0"),i.read(0)})}}return r},o.prototype.addListener=o.prototype.on,o.prototype.resume=function(){var t=this._readableState;return t.flowing||(O("resume"),t.flowing=!0,t.reading||(O("resume read 0"),this.read(0)),g(this,t)),this},o.prototype.pause=function(){return O("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(O("pause"),this._readableState.flowing=!1,this.emit("pause")),this},o.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;t.on("end",function(){if(O("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(o){if(O("wrapped data"),e.decoder&&(o=e.decoder.write(o)),o&&(e.objectMode||o.length)){var i=r.push(o);i||(n=!0,t.pause())}});for(var o in t)A.isFunction(t[o])&&A.isUndefined(this[o])&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));var i=["error","close","destroy","pause","resume"];return _(i,function(e){t.on(e,r.emit.bind(r,e))}),r._read=function(e){O("wrapped _read",e),n&&(n=!1,t.resume())},r},o._fromList=y}).call(e,n(33))},function(t,e){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},function(t,e,n){(function(t){function n(t){return Array.isArray(t)}function r(t){return"boolean"==typeof t}function o(t){return null===t}function i(t){return null==t}function a(t){return"number"==typeof t}function s(t){return"string"==typeof t}function c(t){return"symbol"==typeof t}function l(t){return void 0===t}function u(t){return f(t)&&"[object RegExp]"===m(t)}function f(t){return"object"==typeof t&&null!==t}function p(t){return f(t)&&"[object Date]"===m(t)}function h(t){return f(t)&&("[object Error]"===m(t)||t instanceof Error)}function d(t){return"function"==typeof t}function b(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||"undefined"==typeof t}function g(e){return t.isBuffer(e)}function m(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=r,e.isNull=o,e.isNullOrUndefined=i,e.isNumber=a,e.isString=s,e.isSymbol=c,e.isUndefined=l,e.isRegExp=u,e.isObject=f,e.isDate=p,e.isError=h,e.isFunction=d,e.isPrimitive=b,e.isBuffer=g}).call(e,n(127).Buffer)},35,133,function(t,e,n){(function(e){function r(t){return this instanceof r?(c.call(this,t),l.call(this,t),t&&t.readable===!1&&(this.readable=!1),t&&t.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,t&&t.allowHalfOpen===!1&&(this.allowHalfOpen=!1),void this.once("end",o)):new r(t)}function o(){this.allowHalfOpen||this._writableState.ended||e.nextTick(this.end.bind(this))}function i(t,e){for(var n=0,r=t.length;n<r;n++)e(t[n],n)}t.exports=r;var a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e},s=n(150);s.inherits=n(151);var c=n(148),l=n(154);s.inherits(r,c),i(a(l.prototype),function(t){r.prototype[t]||(r.prototype[t]=l.prototype[t])})}).call(e,n(33))},function(t,e,n){(function(e){function r(t,e,n){this.chunk=t,this.encoding=e,this.callback=n}function o(t,e){var r=n(153);t=t||{};var o=t.highWaterMark,i=t.objectMode?16:16384;this.highWaterMark=o||0===o?o:i,this.objectMode=!!t.objectMode,e instanceof r&&(this.objectMode=this.objectMode||!!t.writableObjectMode),this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1;var a=t.decodeStrings===!1;this.decodeStrings=!a,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){h(e,t)},this.writecb=null,this.writelen=0,this.buffer=[],this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1}function i(t){var e=n(153);return this instanceof i||this instanceof e?(this._writableState=new o(t,this),this.writable=!0,void k.call(this)):new i(t)}function a(t,n,r){var o=new Error("write after end");t.emit("error",o),e.nextTick(function(){r(o)})}function s(t,n,r,o){var i=!0;if(!(x.isBuffer(r)||x.isString(r)||x.isNullOrUndefined(r)||n.objectMode)){var a=new TypeError("Invalid non-string/buffer chunk");t.emit("error",a),e.nextTick(function(){o(a)}),i=!1}return i}function c(t,e,n){return!t.objectMode&&t.decodeStrings!==!1&&x.isString(e)&&(e=new _(e,n)),e}function l(t,e,n,o,i){n=c(e,n,o),x.isBuffer(n)&&(o="buffer");var a=e.objectMode?1:n.length;e.length+=a;var s=e.length<e.highWaterMark;return s||(e.needDrain=!0),e.writing||e.corked?e.buffer.push(new r(n,o,i)):u(t,e,!1,a,n,o,i),s}function u(t,e,n,r,o,i,a){e.writelen=r,e.writecb=a,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,i,e.onwrite),e.sync=!1}function f(t,n,r,o,i){r?e.nextTick(function(){n.pendingcb--,i(o)}):(n.pendingcb--,i(o)),t._writableState.errorEmitted=!0,t.emit("error",o)}function p(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function h(t,n){var r=t._writableState,o=r.sync,i=r.writecb;if(p(r),n)f(t,r,o,n,i);else{var a=m(t,r);a||r.corked||r.bufferProcessing||!r.buffer.length||g(t,r),o?e.nextTick(function(){d(t,r,a,i)}):d(t,r,a,i)}}function d(t,e,n,r){n||b(t,e),e.pendingcb--,r(),y(t,e)}function b(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function g(t,e){if(e.bufferProcessing=!0,t._writev&&e.buffer.length>1){for(var n=[],r=0;r<e.buffer.length;r++)n.push(e.buffer[r].callback);e.pendingcb++,u(t,e,!0,e.length,e.buffer,"",function(t){for(var r=0;r<n.length;r++)e.pendingcb--,n[r](t)}),e.buffer=[]}else{for(var r=0;r<e.buffer.length;r++){var o=e.buffer[r],i=o.chunk,a=o.encoding,s=o.callback,c=e.objectMode?1:i.length;if(u(t,e,!1,c,i,a,s),e.writing){r++;break}}r<e.buffer.length?e.buffer=e.buffer.slice(r):e.buffer.length=0}e.bufferProcessing=!1}function m(t,e){return e.ending&&0===e.length&&!e.finished&&!e.writing}function v(t,e){e.prefinished||(e.prefinished=!0,t.emit("prefinish"))}function y(t,e){var n=m(t,e);return n&&(0===e.pendingcb?(v(t,e),e.finished=!0,t.emit("finish")):v(t,e)),n}function w(t,n,r){n.ending=!0,y(t,n),r&&(n.finished?e.nextTick(r):t.once("finish",r)),n.ended=!0}t.exports=i;var _=n(127).Buffer;i.WritableState=o;var x=n(150);x.inherits=n(151);var k=n(121);x.inherits(i,k),i.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},i.prototype.write=function(t,e,n){var r=this._writableState,o=!1;return x.isFunction(e)&&(n=e,e=null),x.isBuffer(t)?e="buffer":e||(e=r.defaultEncoding),x.isFunction(n)||(n=function(){}),r.ended?a(this,r,n):s(this,r,t,n)&&(r.pendingcb++,o=l(this,r,t,e,n)),o},i.prototype.cork=function(){var t=this._writableState;t.corked++},i.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.buffer.length||g(this,t))},i.prototype._write=function(t,e,n){n(new Error("not implemented"))},i.prototype._writev=null,i.prototype.end=function(t,e,n){var r=this._writableState;x.isFunction(t)?(n=t,t=null,e=null):x.isFunction(e)&&(n=e,e=null),x.isNullOrUndefined(t)||this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||w(this,r,n)}}).call(e,n(33))},140,function(t,e,n){function r(t,e){this.afterTransform=function(t,n){return o(e,t,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null}function o(t,e,n){var r=t._transformState;r.transforming=!1;var o=r.writecb;if(!o)return t.emit("error",new Error("no writecb in Transform class"));r.writechunk=null,r.writecb=null,c.isNullOrUndefined(n)||t.push(n),o&&o(e);var i=t._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&t._read(i.highWaterMark)}function i(t){if(!(this instanceof i))return new i(t);s.call(this,t),this._transformState=new r(t,this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,this.once("prefinish",function(){c.isFunction(this._flush)?this._flush(function(t){a(e,t)}):a(e)})}function a(t,e){if(e)return t.emit("error",e);var n=t._writableState,r=t._transformState;if(n.length)throw new Error("calling transform done when ws.length != 0");if(r.transforming)throw new Error("calling transform done when still transforming");return t.push(null)}t.exports=i;var s=n(153),c=n(150);c.inherits=n(151),c.inherits(i,s),i.prototype.push=function(t,e){return this._transformState.needTransform=!1,s.prototype.push.call(this,t,e)},i.prototype._transform=function(t,e,n){throw new Error("not implemented")},i.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var o=this._readableState;(r.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},i.prototype._read=function(t){var e=this._transformState;c.isNull(e.writechunk)||!e.writecb||e.transforming?e.needTransform=!0:(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform))}},function(t,e,n){function r(t){return this instanceof r?void o.call(this,t):new r(t)}t.exports=r;var o=n(156),i=n(150);i.inherits=n(151),i.inherits(r,o),r.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){function r(t){this._cbs=t||{}}t.exports=r;var o=n(105).EVENTS;Object.keys(o).forEach(function(t){if(0===o[t])t="on"+t,r.prototype[t]=function(){this._cbs[t]&&this._cbs[t]()};else if(1===o[t])t="on"+t,r.prototype[t]=function(e){this._cbs[t]&&this._cbs[t](e)};else{if(2!==o[t])throw Error("wrong number of arguments");t="on"+t,r.prototype[t]=function(e,n){this._cbs[t]&&this._cbs[t](e,n)}}})},[235,160,161,162,163,164,165],[236,115],function(t,e){var n=e.getChildren=function(t){return t.children},r=e.getParent=function(t){return t.parent};e.getSiblings=function(t){var e=r(t);return e?n(e):[t]},e.getAttributeValue=function(t,e){return t.attribs&&t.attribs[e]},e.hasAttrib=function(t,e){return hasOwnProperty.call(t.attribs,e)},e.getName=function(t){return t.name}},function(t,e){e.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},e.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var o=e.parent=t.parent;if(o){var i=o.children;i[i.lastIndexOf(t)]=e}},e.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var n=t.children[t.children.length-2];n.next=e,e.prev=n,e.next=null}},e.append=function(t,e){var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,e.parent=n,r){if(r.prev=e,n){var o=n.children;o.splice(o.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},e.prepend=function(t,e){var n=t.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=n,e.prev=t.prev,e.next=t,t.prev=e}},[237,115],[238,115],function(t,e){e.removeSubsets=function(t){for(var e,n,r,o=t.length;--o>-1;){for(e=n=t[o],t[o]=null,r=!0;n;){if(t.indexOf(n)>-1){r=!1,t.splice(o,1);break}n=n.parent}r&&(t[o]=e)}return t};var n={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16},r=e.compareDocumentPosition=function(t,e){var r,o,i,a,s,c,l=[],u=[];if(t===e)return 0;for(r=t;r;)l.unshift(r),r=r.parent;for(r=e;r;)u.unshift(r),r=r.parent;for(c=0;l[c]===u[c];)c++;return 0===c?n.DISCONNECTED:(o=l[c-1],i=o.children,a=l[c],s=u[c],i.indexOf(a)>i.indexOf(s)?o===e?n.FOLLOWING|n.CONTAINED_BY:n.FOLLOWING:o===t?n.PRECEDING|n.CONTAINS:n.PRECEDING)};e.uniqueSort=function(t){var e,o,i=t.length;for(t=t.slice();--i>-1;)e=t[i],o=t.indexOf(e),o>-1&&o<i&&t.splice(i,1);return t.sort(function(t,e){var o=r(t,e);return o&n.PRECEDING?-1:o&n.FOLLOWING?1:0}),t}},function(t,e,n){function r(t){this._cbs=t||{},this.events=[]}t.exports=r;var o=n(105).EVENTS;Object.keys(o).forEach(function(t){if(0===o[t])t="on"+t,r.prototype[t]=function(){this.events.push([t]),this._cbs[t]&&this._cbs[t]()};else if(1===o[t])t="on"+t,r.prototype[t]=function(e){this.events.push([t,e]),this._cbs[t]&&this._cbs[t](e)};else{if(2!==o[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;t<e;t++)if(this._cbs[this.events[t][0]]){var n=this.events[t].length;1===n?this._cbs[this.events[t][0]]():2===n?this._cbs[this.events[t][0]](this.events[t][1]):this._cbs[this.events[t][0]](this.events[t][1],this.events[t][2])}}},function(t,e,n){function r(t){if(!(this instanceof r))return new r(t);var e=this;o.call(this,function(t,n){e.emit("dom",n)},t,function(t){e.emit("element",t)})}var o=n(168),i=n(170),a=n(172);n(32).inherits(r,n(113).EventEmitter),Object.getOwnPropertyNames(o.prototype).forEach(function(t){r.prototype[t]=o.prototype[t]}),r.prototype.select=function(t,e){function n(n){t(n)&&e(n)}return"string"==typeof t&&(t=a.parse(t)),this.on("element",n),n},r.prototype.remove=function(t){return this.select(t,i.removeElement)},t.exports=r},function(t,e,n){function r(t,e,n){"object"==typeof t?(n=e,e=t,t=null):"function"==typeof e&&(n=e,e=a),this._callback=t,this._options=e||a,this._elementCB=n,this.dom=[],this._done=!1,this._tagStack=[]}var o=n(169),i=/\s+/g,a={normalizeWhitespace:!1};r.prototype.onreset=function(){r.call(this,this._callback,this._options,this._elementCB)},r.prototype.onend=function(){this._done||(this._done=!0,this._handleCallback(null))},r.prototype._handleCallback=r.prototype.onerror=function(t){if("function"==typeof this._callback)this._callback(t,this.dom);else if(t)throw t},r.prototype.onclosetag=function(t){var e=this._tagStack.pop();this._elementCB&&this._elementCB(e)},r.prototype._addDomElement=function(t){var e=this._tagStack[this._tagStack.length-1];e?e.children.push(t):this.dom.push(t)},r.prototype.onopentag=function(t,e){var n=this._tagStack[this._tagStack.length-1],r={type:"script"===t?o.Script:"style"===t?o.Style:o.Tag,name:t,attribs:e,children:[],prev:null,next:null,parent:n||null};if(n){for(var i=n.children.length;i>0;)if(o.isTag(n.children[--i])){r.prev=n.children[i],n.children[i].next=r;break}n.children.push(r)}else this.dom.push(r);this._tagStack.push(r)},r.prototype.ontext=function(t){var e,n=this._options.normalizeWhitespace||this._options.ignoreWhitespace;!this._tagStack.length&&this.dom.length&&(e=this.dom[this.dom.length-1]).type===o.Text?n?e.data=(e.data+t).replace(i," "):e.data+=t:this._tagStack.length&&(e=this._tagStack[this._tagStack.length-1])&&(e=e.children[e.children.length-1])&&e.type===o.Text?n?e.data=(e.data+t).replace(i," "):e.data+=t:(n&&(t=t.replace(i," ")),this._addDomElement({data:t,type:o.Text}))},r.prototype.oncomment=function(t){var e=this._tagStack[this._tagStack.length-1];if(e&&e.type===o.Comment)return void(e.data+=t);var n={data:t,type:o.Comment};this._addDomElement(n),this._tagStack.push(n)},r.prototype.oncdatastart=function(){var t={children:[{data:"",type:o.Text}],type:o.CDATA};this._addDomElement(t),this._tagStack.push(t)},r.prototype.oncommentend=r.prototype.oncdataend=function(){this._tagStack.pop()},r.prototype.onprocessinginstruction=function(t,e){this._addDomElement({name:t,data:e,type:o.Directive})},t.exports=r},115,function(t,e,n){function r(t){return t.children}function o(t){return t.parent}function i(t){var e=o(t);return e?r(e):[t]}function a(t,e){return t.attribs&&t.attribs[e]}function s(t,e){return hasOwnProperty.call(t.attribs,e)}function c(t){return t.name}function l(t,e,n,o){for(var i,a=[],s=0,c=e.length;s<c&&!(t(e[s])&&(a.push(e[s]),--o<=0))&&(i=r(e[s]),!(n&&i&&i.length>0&&(i=l(t,i,n,o),a=a.concat(i),o-=i.length,o<=0)));s++);return a}function u(t,e){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n];return null}function f(t,e){for(var n=null,r=0,o=e.length;r<o&&!n;r++)t(e[r])?n=e[r]:e[r].children&&e[r].children.length>0&&(n=f(t,e[r].children)); | |
return n}function p(t,e){for(var n=[],o=0,i=e.length;o<i;o++){t(e[o])&&n.push(e[o]);var a=r(e[o]);a&&a.length&&(n=n.concat(p(t,a)))}return n}function h(t,e,n,r){return Array.isArray(e)||(e=[e]),"number"==typeof r&&isFinite(r)?1===r?(e=n===!1?u(t,e):f(t,e),e?[e]:[]):l(t,e,n!==!1,r):n===!1?e.filter(t):p(t,e)}function d(t,e){return"function"==typeof e?function(n){return n.attribs&&e(n.attribs[t])}:function(n){return n.attribs&&n.attribs[t]===e}}var b=n(171),g=t.exports,m=g.isTag=b.isTag;g.getChildren=r,g.getParent=o,g.getAttributeValue=a,g.hasAttrib=s,g.getName=c,g.getSiblings=i,g.findOne=f,g.findAll=p,g.filter=h,g.testElement=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){if("tag_name"===n){if(!m(e)||!t.tag_name(e.name))return!1}else if("tag_type"===n){if(!t.tag_type(e.type))return!1}else if("tag_contains"===n){if(m(e)||!t.tag_contains(e.data))return!1}else if(!e.attribs||!t[n](e.attribs[n]))return!1}else;return!0};var v={tag_name:function(t){return"function"==typeof t?function(e){return m(e)&&t(e.name)}:"*"===t?m:function(e){return m(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof type?function(e){return!m(e)&&t(e.data)}:function(e){return!m(e)&&e.data===t}}};g.getElements=function(t,e,n,r){var o=[];for(var i in t)t.hasOwnProperty(i)&&(i in v?o.push(v[i](t[i])):o.push(d(i,t[i])));return 0===o.length?[]:1===o.length?h(o[0],e,n,r):h(function(t){return o.some(function(e){return e(t)})},e,n,r)},g.getElementById=function(t,e,n){return Array.isArray(e)||(e=[e]),f(d("id",t),e,n!==!1)},g.getElementsByTagName=function(t,e,n,r){return h(v.tag_name(t),e,n,r)},g.getElementsByTagType=function(t,e,n,r){return h(v.tag_type(t),e,n,r)},g.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},g.replaceElement=function(t,e){if(t.prev&&(t.prev.next=e,e.prev=t.prev),t.next&&(t.next.prev=e,e.next=t.next),t.parent){var n=t.parent.children;n.splice(n.lastIndexOf(t),1,e),e.parent=t.parent}},g.getInnerHTML=function(t){if(!t.children)return"";for(var e=t.children,n=e.length,r="",o=0;o<n;o++)r+=g.getOuterHTML(e[o]);return r};var y={__proto__:null,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,defer:!0,disabled:!0,hidden:!0,loop:!0,multiple:!0,open:!0,readonly:!0,required:!0,scoped:!0,selected:!0,"/":!0},w={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,link:!0,meta:!0,param:!0,embed:!0};g.getOuterHTML=function(t){var e=t.type;if(e===b.Text)return t.data;if(e===b.Comment)return"<!--"+t.data+"-->";if(e===b.Directive)return"<"+t.data+">";if(e===b.CDATA)return"<!CDATA "+g.getInnerHTML(t)+"]]>";var n="<"+t.name;if("attribs"in t)for(var r in t.attribs)if(t.attribs.hasOwnProperty(r)){n+=" "+r;var o=t.attribs[r];o?n+='="'+o+'"':r in y||(n+='=""')}return t.name in w&&0===t.children.length?n+" />":n+">"+g.getInnerHTML(t)+"</"+t.name+">"},g.getText=function t(e){return Array.isArray(e)?e.map(t).join(""):m(e)||e.type===b.CDATA?t(e.children):e.type===b.Text?e.data:""}},115,function(t,e,n){"use strict";function r(t,e,n){return"function"!=typeof t&&(t=h(t,n)),Array.isArray(e)||(e=f(e)),e&&t!==p?u(t,e):[]}function o(t,e,n){return"function"!=typeof t&&(t=h(t,n)),Array.isArray(e)||(e=f(e)),e&&t!==p?l(t,e):null}function i(t,e,n){return("function"==typeof e?e:h(e,n))(t)}function a(t,e,n){return r(t,e,n)}t.exports=a;var s=n(173),c=n(174),l=c.findOne,u=c.findAll,f=c.getChildren,p=n(178).falseFunc,h=n(180);a.compile=h,a.filters=s.filters,a.pseudos=s.pseudos,a.selectAll=r,a.selectOne=o,a.is=i,a.parse=h,a.iterate=r},function(t,e,n){function r(t){for(var e=0;t&&e<t.length;e++)if(s(t[e]))return t[e]}function o(t,e){var n={name:t,value:e};return function(t){return g(t,n)}}function i(t,e,n){if(null===n){if(t.length>1)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 a=n(174),s=a.isTag,c=a.getText,l=a.getParent,u=a.getChildren,f=a.getSiblings,p=a.hasAttrib,h=a.getName,d=a.getAttributeValue,b=n(177),g=n(179).rules.equals,m=n(178),v=m.rootFunc,y=m.trueFunc,w=m.falseFunc,_={contains:function(t,e){return'"'!==e.charAt(0)&&"'"!==e.charAt(0)||e.charAt(0)!==e.substr(-1)||(e=e.slice(1,-1)),function(n){return c(n).indexOf(e)>=0&&t(n)}},"first-child":function(t){return function(e){return r(f(e))===e&&t(e)}},"last-child":function(t){return function(e){for(var n=f(e),r=n.length-1;r>=0;r--){if(n[r]===e)return t(e);if(s(n[r]))break}return!1}},"first-of-type":function(t){return function(e){for(var n=f(e),r=0;r<n.length;r++)if(s(n[r])){if(n[r]===e)return t(e);if(h(n[r])===h(e))break}return!1}},"last-of-type":function(t){return function(e){for(var n=f(e),r=n.length-1;r>=0;r--)if(s(n[r])){if(n[r]===e)return t(e);if(h(n[r])===h(e))break}return!1}},"only-of-type":function(t){return function(e){for(var n=f(e),r=0,o=n.length;r<o;r++)if(s(n[r])){if(n[r]===e)continue;if(h(n[r])===h(e))return!1}return t(e)}},"only-child":function(t){return function(e){for(var n=f(e),r=0;r<n.length;r++)if(s(n[r])&&n[r]!==e)return!1;return t(e)}},"nth-child":function(t,e){var n=b(e);return n===w?n:n===y?t===v?n:t:function(e){for(var r=f(e),o=0,i=0;o<r.length;o++)if(s(r[o])){if(r[o]===e)break;i++}return n(i)&&t(e)}},"nth-last-child":function(t,e){var n=b(e);return n===w?n:n===y?t===v?n:t:function(e){for(var r=f(e),o=0,i=r.length-1;i>=0;i--)if(s(r[i])){if(r[i]===e)break;o++}return n(o)&&t(e)}},"nth-of-type":function(t,e){var n=b(e);return n===w?n:n===y?t===v?n:t:function(e){for(var r=f(e),o=0,i=0;i<r.length;i++)if(s(r[i])){if(r[i]===e)break;h(r[i])===h(e)&&o++}return n(o)&&t(e)}},"nth-last-of-type":function(t,e){var n=b(e);return n===w?n:n===y?t===v?n:t:function(e){for(var r=f(e),o=0,i=r.length-1;i>=0&&r[i]!==e;i--)h(r[i])===h(e)&&o++;return n(o)&&t(e)}},checkbox:o("type","checkbox"),file:o("type","file"),password:o("type","password"),radio:o("type","radio"),reset:o("type","reset"),image:o("type","image"),submit:o("type","submit")},x={root:function(t){return!l(t)},empty:function(t){return!u(t).some(function(t){return s(t)||"text"===t.type})},selected:function(t){if(p(t,"selected"))return!0;if("option"!==h(t))return!1;var e=l(t);if(!e||"select"!==h(e))return!1;for(var n=u(e),r=!1,o=0;o<n.length;o++)if(s(n[o]))if(n[o]===t)r=!0;else{if(!r)return!1;if(p(n[o],"selected"))return!1}return r},disabled:function(t){return p(t,"disabled")},enabled:function(t){return!p(t,"disabled")},checked:function(t){return p(t,"checked")||x.selected(t)},parent:function(t){return!x.empty(t)},header:function(t){var e=h(t);return"h1"===e||"h2"===e||"h3"===e||"h4"===e||"h5"===e||"h6"===e},button:function(t){var e=h(t);return"button"===e||"input"===e&&"button"===d(t,"type")},input:function(t){var e=h(t);return"input"===e||"textarea"===e||"select"===e||"button"===e},text:function(t){var e;return"input"===h(t)&&(!(e=d(t,"type"))||"text"===e.toLowerCase())}};t.exports={compile:function(t,e){var n=e.name,r=e.data;if("function"==typeof _[n])return i(_[n],n,r),_[n](t,r);if("function"==typeof x[n]){var o=x[n];return i(o,n,r),function(e){return o(e,r)&&t(e)}}throw new SyntaxError("unmatched pseudo-class :"+n)},filters:_,pseudos:x}},function(t,e,n){function r(t){return t.children}function o(t){return t.parent}function i(t){var e=o(t);return e?r(e):[t]}function a(t,e){return t.attribs&&t.attribs[e]}function s(t,e){return hasOwnProperty.call(t.attribs,e)}function c(t){return t.name}function l(t,e,n,o){for(var i,a=[],s=0,c=e.length;s<c&&!(t(e[s])&&(a.push(e[s]),--o<=0))&&(i=r(e[s]),!(n&&i&&i.length>0&&(i=l(t,i,n,o),a=a.concat(i),o-=i.length,o<=0)));s++);return a}function u(t,e){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n];return null}function f(t,e){for(var n=null,r=0,o=e.length;r<o&&!n;r++)t(e[r])?n=e[r]:e[r].children&&e[r].children.length>0&&(n=f(t,e[r].children));return n}function p(t,e){for(var n=[],o=0,i=e.length;o<i;o++){t(e[o])&&n.push(e[o]);var a=r(e[o]);a&&a.length&&(n=n.concat(p(t,a)))}return n}function h(t,e,n,r){return Array.isArray(e)||(e=[e]),"number"==typeof r&&isFinite(r)?1===r?(e=n===!1?u(t,e):f(t,e),e?[e]:[]):l(t,e,n!==!1,r):n===!1?e.filter(t):p(t,e)}function d(t,e){return"function"==typeof e?function(n){return n.attribs&&e(n.attribs[t])}:function(n){return n.attribs&&n.attribs[t]===e}}function b(t,e){return function(n){return t(n)||e(n)}}var g=n(175),m=t.exports;[n(176)].forEach(function(t){Object.keys(t).forEach(function(e){m[e]=t[e]})});var v=m.isTag=g.isTag;m.getChildren=r,m.getParent=o,m.getAttributeValue=a,m.hasAttrib=s,m.getName=c,m.getSiblings=i,m.findOne=f,m.findAll=p,m.filter=h,m.testElement=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){if("tag_name"===n){if(!v(e)||!t.tag_name(e.name))return!1}else if("tag_type"===n){if(!t.tag_type(e.type))return!1}else if("tag_contains"===n){if(v(e)||!t.tag_contains(e.data))return!1}else if(!e.attribs||!t[n](e.attribs[n]))return!1}else;return!0};var y={tag_name:function(t){return"function"==typeof t?function(e){return v(e)&&t(e.name)}:"*"===t?v:function(e){return v(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return!v(e)&&t(e.data)}:function(e){return!v(e)&&e.data===t}}};m.getElements=function(t,e,n,r){var o=Object.keys(t).map(function(e){var n=t[e];return e in y?y[e](n):d(e,n)});return 0===o.length?[]:h(o.reduce(b),e,n,r)},m.getElementById=function(t,e,n){return Array.isArray(e)||(e=[e]),f(d("id",t),e,n!==!1)},m.getElementsByTagName=function(t,e,n,r){return h(y.tag_name(t),e,n,r)},m.getElementsByTagType=function(t,e,n,r){return h(y.tag_type(t),e,n,r)},m.removeElement=function(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){var e=t.parent.children;e.splice(e.lastIndexOf(t),1)}},m.replaceElement=function(t,e){var n=e.prev=t.prev;n&&(n.next=e);var r=e.next=t.next;r&&(r.prev=e);var o=e.parent=t.parent;if(o){var i=o.children;i[i.lastIndexOf(t)]=e}},m.appendChild=function(t,e){if(e.parent=t,1!==t.children.push(e)){var n=t.children[t.children.length-2];n.next=e,e.prev=n,e.next=null}},m.append=function(t,e){var n=t.parent,r=t.next;if(e.next=r,e.prev=t,t.next=e,r){if(r.prev=e,n){var o=n.children;o.splice(o.lastIndexOf(r),0,e)}}else n&&n.children.push(e)},m.prepend=function(t,e){var n=t.parent;if(n){var r=n.children;r.splice(r.lastIndexOf(t),0,e)}t.prev&&(t.prev.next=e),e.prev=t.prev,e.next=t,t.prev=e}},115,function(t,e,n){function r(t){return t.children?t.children.map(o).join(""):""}function o(t){switch(t.type){case a.Text:return t.data;case a.Comment:return"<!--"+t.data+"-->";case a.Directive:return"<"+t.data+">";case a.CDATA:return"<!CDATA "+r(t)+"]]>"}var e="<"+t.name;if("attribs"in t)for(var n in t.attribs)if(t.attribs.hasOwnProperty(n)){e+=" "+n;var o=t.attribs[n];null==o?n in c||(e+='=""'):e+='="'+o+'"'}return t.name in l&&0===t.children.length?e+" />":e+">"+r(t)+"</"+t.name+">"}function i(t){return Array.isArray(t)?t.map(i).join(""):s(t)||t.type===a.CDATA?i(t.children):t.type===a.Text?t.data:""}var a=n(175),s=a.isTag;t.exports={getInnerHTML:r,getOuterHTML:o,getText:i};var c={__proto__:null,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,defer:!0,disabled:!0,hidden:!0,loop:!0,multiple:!0,open:!0,readonly:!0,required:!0,scoped:!0,selected:!0},l={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,link:!0,meta:!0,param:!0,embed:!0}},[239,178],function(t,e){t.exports={rootFunc:function(){return!0},trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(t,e,n){var r=n(174),o=r.hasAttrib,i=r.getAttributeValue,a=n(178).falseFunc,s=/[-[\]{}()*+?.,\\^$|#\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 o=i(e,n);return null!=o&&o.toLowerCase()===r&&t(e)}):function(e){return i(e,n)===r&&t(e)}},hyphen:function(t,e){var n=e.name,r=e.value,o=r.length;return e.ignoreCase?(r=r.toLowerCase(),function(e){var a=i(e,n);return null!=a&&(a.length===o||"-"===a.charAt(o))&&a.substr(0,o).toLowerCase()===r&&t(e)}):function(e){var a=i(e,n);return null!=a&&a.substr(0,o)===r&&(a.length===o||"-"===a.charAt(o))&&t(e)}},element:function(t,e){var n=e.name,r=e.value;if(/\s/.test(r))return a;r=r.replace(s,"\\$&");var o="(?:^|\\s)"+r+"(?:$|\\s)",c=e.ignoreCase?"i":"",l=new RegExp(o,c);return function(e){var r=i(e,n);return null!=r&&l.test(r)&&t(e)}},exists:function(t,e){var n=e.name;return function(e){return o(e,n)&&t(e)}},start:function(t,e){var n=e.name,r=e.value,o=r.length;return 0===o?a:e.ignoreCase?(r=r.toLowerCase(),function(e){var a=i(e,n);return null!=a&&a.substr(0,o).toLowerCase()===r&&t(e)}):function(e){var a=i(e,n);return null!=a&&a.substr(0,o)===r&&t(e)}},end:function(t,e){var n=e.name,r=e.value,o=-r.length;return 0===o?a:e.ignoreCase?(r=r.toLowerCase(),function(e){var a=i(e,n);return null!=a&&a.substr(o).toLowerCase()===r&&t(e)}):function(e){var a=i(e,n);return null!=a&&a.substr(o)===r&&t(e)}},any:function(t,e){var n=e.name,r=e.value;if(""===r)return a;if(e.ignoreCase){var o=new RegExp(r.replace(s,"\\$&"),"i");return function(e){var r=i(e,n);return null!=r&&o.test(r)&&t(e)}}return function(e){var o=i(e,n);return null!=o&&o.indexOf(r)>=0&&t(e)}},not:function(t,e){var n=e.name,r=e.value;return""===r?function(e){return!!i(e,n)&&t(e)}:e.ignoreCase?(r=r.toLowerCase(),function(e){var o=i(e,n);return null!=o&&o.toLowerCase()!==r&&t(e)}):function(e){return i(e,n)!==r&&t(e)}}};t.exports={compile:function(t,e){return c[e.action](t,e)},rules:c}},function(t,e,n){function r(t,e){var n=a(t,e).map(o).reduce(i,d);return function(t){return c(t)&&n(t)}}function o(t){return u(t).reduce(function(t,e){return t===d?t:l[e.type](t,e)},p)}function i(t,e){return e===d||e===p||t===h?t:t===d||t===p||e===h?e:function(n){return t(n)||e(n)}}t.exports=r;var a=n(181),s=n(174),c=s.isTag,l=n(182),u=n(183),f=n(178),p=f.rootFunc,h=f.trueFunc,d=f.falseFunc,b=n(173).filters,g=s.findOne,m=s.getChildren;b.not=function(t,e){var n=r(e);return n===d?t===p?h:t:n===h||n===p?d:function(e){return!n(e)&&t(e)}},b.has=function(t,e){var n=r(e);return n===d?d:function(e){return t(e)&&null!==g(n,m(e))}}},function(t,e){"use strict";function n(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 r(t){return t.replace(c,n)}function o(t){for(var e=1,n=1,r=t.length;n>0&&e<r;e++)"("===t.charAt(e)?n++:")"===t.charAt(e)&&n--;return e}function i(t,e){function n(){var e=t.match(s)[0];return t=t.substr(e.length),r(e)}t=(t+"").trimLeft();for(var i,c,h,d=[],b=[],g=!1;""!==t;)if(s.test(t))g&&(b.push({type:"descendant"}),g=!1),h=n(),e&&("lowerCaseTags"in e?!e.lowerCaseTags:e.xmlMode)||(h=h.toLowerCase()),b.push({type:"tag",name:h});else if(a.test(t))g=!0,t=t.trimLeft();else{if(c=t.charAt(0),t=t.substr(1),c in f){b.push({type:f[c]}),t=t.trimLeft(),g=!1;continue}if(","===c){if(0===b.length)throw new SyntaxError("empty sub-selector");d.push(b),b=[],t=t.trimLeft(),g=!1;continue}if(g&&(b.push({type:"descendant"}),g=!1),"*"===c)b.push({type:"universal"});else if(c in p)b.push({type:"attribute",name:p[c][0],action:p[c][1],value:n(),ignoreCase:!1});else if("["===c){if(i=t.match(l),!i)throw new SyntaxError("Malformed attribute selector: "+t);t=t.substr(i[0].length),h=r(i[1]),e&&("lowerCaseAttributeNames"in e?!e.lowerCaseAttributeNames:e.xmlMode)||(h=h.toLowerCase()),b.push({type:"attribute",name:h,action:u[i[2]],value:r(i[4]||i[5]||""),ignoreCase:!!i[6]})}else{if(":"!==c)throw new SyntaxError("Unmatched selector: "+c+t);if(h=n().toLowerCase(),i=null,"("===t.charAt(0)){var m=o(t);i=t.substr(1,m-2),t=t.substr(m)}b.push({type:"pseudo",name:h,data:i})}}if(d.length>0&&0===b.length)throw new SyntaxError("empty sub-selector");return d.push(b),d}t.exports=i;var a=/^\s/,s=/^(?:\\.|[\w\-\u00c0-\uFFFF])+/,c=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,l=/^\s*((?:\\.|[\w\u00c0-\uFFFF\-])+)\s*(?:(\S?)=\s*(?:(['"])(.*?)\3|(#?(?:\\.|[\w\u00c0-\uFFFF\-])*)|)|)\s*(i)?\]/,u={__proto__:null,undefined:"exists","":"equals","~":"element","^":"start",$:"end","*":"any","!":"not","|":"hyphen"},f={__proto__:null,">":"child","<":"parent","~":"sibling","+":"adjacent"},p={__proto__:null,"#":["id","equals"],".":["class","element"]}},function(t,e,n){var r=n(174),o=r.isTag,i=r.getParent,a=r.getChildren,s=r.getSiblings,c=r.getName,l=n(178),u=l.rootFunc,f=l.trueFunc;t.exports={__proto__:null,attribute:n(179).compile,pseudo:n(173).compile,tag:function(t,e){var n=e.name;return function(e){return c(e)===n&&t(e)}},descendant:function(t){return function(e){for(var n=!1;!n&&(e=i(e));)n=t(e);return n}},parent:function(t){return function(e){return a(e).some(t)}},child:function(t){return function(e){var n=i(e);return!!n&&t(n)}},sibling:function(t){return function(e){for(var n=s(e),r=0;r<n.length;r++)if(o(n[r])){if(n[r]===e)break;if(t(n[r]))return!0}return!1}},adjacent:function(t){return function(e){for(var n,r=s(e),i=0;i<r.length;i++)if(o(r[i])){if(r[i]===e)break;n=r[i]}return!!n&&t(n)}},universal:function(t){return t===u?f:t}}},function(t,e){function n(t){for(var e=1;e<t.length;e++){var n=r[t[e].type];if(n!==-1)for(var o=e-1;o>=0&&n<r[t[o].type];o--){var i=t[o+1];t[o+1]=t[o],t[o]=i}}return t}t.exports=n;var r={__proto__:null,universal:5,tag:3,attribute:1,pseudo:0,descendant:-1,child:-1,sibling:-1,adjacent:-1}},function(t,e,n){(function(t){var r=n(185),o=n(189),i=n(190),a=n(36),s=e;s.request=function(e,n){e="string"==typeof e?a.parse(e):o(e);var i=t.location.protocol.search(/^https?:$/)===-1?"http:":"",s=e.protocol||i,c=e.hostname||e.host,l=e.port,u=e.path||"/";c&&c.indexOf(":")!==-1&&(c="["+c+"]"),e.url=(c?s+"//"+c:"")+(l?":"+l:"")+u,e.method=(e.method||"GET").toUpperCase(),e.headers=e.headers||{};var f=new r(e);return n&&f.on("response",n),f},s.get=function(t,e){var n=s.request(t,e);return n.end(),n},s.Agent=function(){},s.Agent.defaultMaxSockets=4,s.STATUS_CODES=i,s.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(e,function(){return this}())},function(t,e,n){(function(e,r,o){function i(t,e){return s.fetch&&e?"fetch":s.mozchunkedarraybuffer?"moz-chunked-arraybuffer":s.msstream?"ms-stream":s.arraybuffer&&t?"arraybuffer":s.vbArray&&t?"text:vbarray":"text"}function a(t){try{var e=t.status;return null!==e&&0!==e}catch(t){return!1}}var s=n(186),c=n(122),l=n(187),u=n(123),f=n(188),p=l.IncomingMessage,h=l.readyStates,d=t.exports=function(t){var n=this;u.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+new e(t.auth).toString("base64")),Object.keys(t.headers).forEach(function(e){n.setHeader(e,t.headers[e])});var r,o=!0;if("disable-fetch"===t.mode||"timeout"in t)o=!1,r=!0;else if("prefer-streaming"===t.mode)r=!1;else if("allow-wrong-content-type"===t.mode)r=!s.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");r=!0}n._mode=i(r,o),n.on("finish",function(){n._onFinish()})};c(d,u.Writable),d.prototype.setHeader=function(t,e){var n=this,r=t.toLowerCase();b.indexOf(r)===-1&&(n._headers[r]={name:t,value:e})},d.prototype.getHeader=function(t){var e=this;return e._headers[t.toLowerCase()].value},d.prototype.removeHeader=function(t){var e=this;delete e._headers[t.toLowerCase()]},d.prototype._onFinish=function(){var t=this;if(!t._destroyed){var n=t._opts,i=t._headers,a=null;if("POST"!==n.method&&"PUT"!==n.method&&"PATCH"!==n.method&&"MERGE"!==n.method||(a=s.blobConstructor?new r.Blob(t._body.map(function(t){return f(t)}),{type:(i["content-type"]||{}).value||""}):e.concat(t._body).toString()),"fetch"===t._mode){var c=Object.keys(i).map(function(t){return[i[t].name,i[t].value]});r.fetch(t._opts.url,{method:t._opts.method,headers:c,body:a||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin"}).then(function(e){t._fetchResponse=e,t._connect()},function(e){t.emit("error",e)})}else{var l=t._xhr=new r.XMLHttpRequest;try{l.open(t._opts.method,t._opts.url,!0)}catch(e){return void o.nextTick(function(){t.emit("error",e)})}"responseType"in l&&(l.responseType=t._mode.split(":")[0]),"withCredentials"in l&&(l.withCredentials=!!n.withCredentials),"text"===t._mode&&"overrideMimeType"in l&&l.overrideMimeType("text/plain; charset=x-user-defined"),"timeout"in n&&(l.timeout=n.timeout,l.ontimeout=function(){t.emit("timeout")}),Object.keys(i).forEach(function(t){l.setRequestHeader(i[t].name,i[t].value)}),t._response=null,l.onreadystatechange=function(){switch(l.readyState){case h.LOADING:case h.DONE:t._onXHRProgress()}},"moz-chunked-arraybuffer"===t._mode&&(l.onprogress=function(){t._onXHRProgress()}),l.onerror=function(){t._destroyed||t.emit("error",new Error("XHR error"))};try{l.send(a)}catch(e){return void o.nextTick(function(){t.emit("error",e)})}}}},d.prototype._onXHRProgress=function(){var t=this;a(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress())},d.prototype._connect=function(){var t=this;t._destroyed||(t._response=new p(t._xhr,t._fetchResponse,t._mode),t._response.on("error",function(e){t.emit("error",e)}),t.emit("response",t._response))},d.prototype._write=function(t,e,n){var r=this;r._body.push(t),n()},d.prototype.abort=d.prototype.destroy=function(){var t=this;t._destroyed=!0,t._response&&(t._response._destroyed=!0),t._xhr&&t._xhr.abort()},d.prototype.end=function(t,e,n){var r=this;"function"==typeof t&&(n=t,t=void 0),u.Writable.prototype.end.call(r,t,e,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var b=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","user-agent","via"]}).call(e,n(127).Buffer,function(){return this}(),n(33))},function(t,e){(function(t){function n(){if(void 0!==i)return i;if(t.XMLHttpRequest){i=new t.XMLHttpRequest;try{i.open("GET",t.XDomainRequest?"/":"https://example.com")}catch(t){i=null}}else i=null;return i}function r(t){var e=n();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(t){}return!1}function o(t){return"function"==typeof t}e.fetch=o(t.fetch)&&o(t.ReadableStream),e.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),e.blobConstructor=!0}catch(t){}var i,a="undefined"!=typeof t.ArrayBuffer,s=a&&o(t.ArrayBuffer.prototype.slice);e.arraybuffer=e.fetch||a&&r("arraybuffer"),e.msstream=!e.fetch&&s&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&a&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!n()&&o(n().overrideMimeType),e.vbArray=o(t.VBArray),i=null}).call(e,function(){return this}())},function(t,e,n){(function(t,r,o){var i=n(186),a=n(122),s=n(123),c=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=e.IncomingMessage=function(e,n,o){function a(){l.read().then(function(t){if(!c._destroyed){if(t.done)return void c.push(null);c.push(new r(t.value)),a()}}).catch(function(t){c.emit("error",t)})}var c=this;if(s.Readable.call(c),c._mode=o,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){t.nextTick(function(){c.emit("close")})}),"fetch"===o){c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach(function(t,e){c.headers[e.toLowerCase()]=t,c.rawHeaders.push(e,t)});var l=n.body.getReader();a()}else{c._xhr=e,c._pos=0,c.url=e.responseURL,c.statusCode=e.status,c.statusMessage=e.statusText;var u=e.getAllResponseHeaders().split(/\r?\n/);if(u.forEach(function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(e[2])):void 0!==c.headers[n]?c.headers[n]+=", "+e[2]:c.headers[n]=e[2],c.rawHeaders.push(e[1],e[2])}}),c._charset="x-user-defined",!i.overrideMimeType){var f=c.rawHeaders["mime-type"];if(f){var p=f.match(/;\s*charset=([^;])(;|$)/);p&&(c._charset=p[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(l,s.Readable),l.prototype._read=function(){},l.prototype._onXHRProgress=function(){var t=this,e=t._xhr,n=null;switch(t._mode){case"text:vbarray":if(e.readyState!==c.DONE)break;try{n=new o.VBArray(e.responseBody).toArray()}catch(t){}if(null!==n){t.push(new r(n));break}case"text":try{n=e.responseText}catch(e){t._mode="text:vbarray";break}if(n.length>t._pos){var i=n.substr(t._pos);if("x-user-defined"===t._charset){for(var a=new r(i.length),s=0;s<i.length;s++)a[s]=255&i.charCodeAt(s);t.push(a)}else t.push(i,t._charset);t._pos=n.length}break;case"arraybuffer":if(e.readyState!==c.DONE||!e.response)break;n=e.response,t.push(new r(new Uint8Array(n)));break;case"moz-chunked-arraybuffer":if(n=e.response,e.readyState!==c.LOADING||!n)break;t.push(new r(new Uint8Array(n)));break;case"ms-stream":if(n=e.response,e.readyState!==c.LOADING)break;var l=new o.MSStreamReader;l.onprogress=function(){l.result.byteLength>t._pos&&(t.push(new r(new Uint8Array(l.result.slice(t._pos)))),t._pos=l.result.byteLength)},l.onload=function(){t.push(null)},l.readAsArrayBuffer(n)}t._xhr.readyState===c.DONE&&"ms-stream"!==t._mode&&t.push(null)}}).call(e,n(33),n(127).Buffer,function(){return this}())},function(t,e,n){var r=n(127).Buffer;t.exports=function(t){if(t instanceof Uint8Array){if(0===t.byteOffset&&t.byteLength===t.buffer.byteLength)return t.buffer;if("function"==typeof t.buffer.slice)return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(r.isBuffer(t)){for(var e=new Uint8Array(t.length),n=t.length,o=0;o<n;o++)e[o]=t[o];return e.buffer}throw new Error("Argument must be a Buffer")}},function(t,e){function n(){for(var t={},e=0;e<arguments.length;e++){var n=arguments[e];for(var o in n)r.call(n,o)&&(t[o]=n[o])}return t}t.exports=n;var r=Object.prototype.hasOwnProperty},function(t,e){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},function(t,e,n){(function(e,r){function o(t,e){var n=Array.prototype.slice.call(arguments,2);return function(){var r=n.concat(Array.prototype.slice.call(arguments));return e.apply(t,r)}}function i(t,n,r,i){"object"==typeof t&&(r=n,n=t,t=void 0),"function"==typeof n&&(r=n,n=void 0),n||(n={}),void 0!==t&&(n.uri=t),i&&(n.method=i.method);var s=new a(n),c=s.duplex&&u();c&&c.pause();var l=u(),p=s.duplex?f(c,l):l;s.duplex||(l.writable=!1),p.request=s,p.setHeader=o(s,s.setHeader),p.setLocation=o(s,s.setLocation);var h=!1;return p.on("close",function(){h=!0}),e.nextTick(function(){if(!h){p.on("close",function(){t.destroy()});var t=s._send();t.on("error",o(p,p.emit,"error")),t.on("response",function(t){p.response=t,p.emit("response",t),s.duplex?t.pipe(l):(t.on("data",function(t){l.queue(t)}),t.on("end",function(){l.queue(null)}))}),s.duplex?(c.pipe(t),c.resume()):t.end()}}),r&&(p.on("error",r),p.on("response",o(p,r,null))),p}function a(t){this.headers=t.headers||{};var e=(t.method||"GET").toUpperCase();this.method=e,this.duplex=!("GET"===e||"DELETE"===e||"HEAD"===e),this.auth=t.auth,this.options=t,t.uri&&this.setLocation(t.uri)}var s=n(36),c=n(184),l=n(192),u=n(193),f=n(194);t.exports=i,i.get=i,i.post=function(t,e,n){return i(t,e,n,{method:"POST"})},i.put=function(t,e,n){return i(t,e,n,{method:"PUT"})},i.delete=function(t,e,n){return i(t,e,n,{method:"DELETE"})},a.prototype._send=function(){this._sent=!0;var t=this.headers||{},e=s.parse(this.uri),n=e.auth||this.auth;n&&(t.authorization="Basic "+r(n).toString("base64"));var o=e.protocol||"",i="https:"===o?l:c,a={scheme:o.replace(/:$/,""),method:this.method,host:e.hostname,port:Number(e.port)||("https:"===o?443:80),path:e.path,agent:!1,headers:t,withCredentials:this.options.withCredentials};"https:"===o&&(a.pfx=this.options.pfx,a.key=this.options.key,a.cert=this.options.cert,a.ca=this.options.ca,a.ciphers=this.options.ciphers,a.rejectUnauthorized=this.options.rejectUnauthorized,a.secureProtocol=this.options.secureProtocol);var u=i.request(a);return u.setTimeout&&u.setTimeout(1e3*Math.pow(2,32)),u},a.prototype.setHeader=function(t,e){if(this._sent)throw new Error("request already sent");return this.headers[t]=e,this},a.prototype.setLocation=function(t){return this.uri=t,this}}).call(e,n(33),n(127).Buffer)},function(t,e,n){var r=n(184),o=t.exports;for(var i in r)r.hasOwnProperty(i)&&(o[i]=r[i]);o.request=function(t,e){return t||(t={}),t.scheme="https",t.protocol="https:",r.request.call(this,t,e)}},function(t,e,n){(function(r){function o(t,e){function n(){for(;c.length&&!l.paused;){var t=c.shift();if(null===t)return l.emit("end");l.emit("data",t)}}function o(){l.writable=!1,e.call(l),l.readable||l.destroy()}t=t||function(t){this.queue(t)},e=e||function(){this.queue(null)};var a=!1,s=!1,c=[],l=new i;return l.readable=l.writable=!0,l.paused=!1,l.write=function(e){return t.call(this,e),!l.paused},l.queue=l.push=function(t){return c.push(t),n(),l},l.on("end",function(){l.readable=!1,l.writable||r.nextTick(function(){l.destroy()})}),l.end=function(t){if(!a)return a=!0,arguments.length&&l.write(t),o(),l},l.destroy=function(){if(!s)return s=!0,a=!0,c.length=0,l.writable=l.readable=!1,l.emit("close"),l},l.pause=function(){if(!l.paused)return l.paused=!0,l.emit("pause"),l},l.resume=function(){return l.paused&&(l.paused=!1),n(),l.paused||l.emit("drain"),l},l}var i=n(121);e=t.exports=o,o.through=o}).call(e,n(33))},function(t,e,n){function r(t,e){if(t.forEach)return t.forEach(e);for(var n=0;n<t.length;n++)e(t[n],n)}function o(t,e){function n(e){function n(){return t[e].apply(t,arguments)}h[e]=n}function o(t){function n(){h.emit(t);var n=e[t];return n?n.apply(e,arguments):void e.emit(t)}h[t]=n}function u(t){function n(){var e=l.call(arguments);e.unshift(t),h.emit.apply(h,e)}e.on(t,n)}function f(){if(!d){d=!0;var t=l.call(arguments);t.unshift("end"),h.emit.apply(h,t)}}function p(t){h.emit("error",t)}var h=new i,d=!1;return r(a,n),r(s,o),r(c,u),e.on("end",f),t.on("drain",function(){h.emit("drain")}),t.on("error",p),e.on("error",p),h.writable=t.writable,h.readable=e.readable,h}var i=n(121),a=["write","end","destroy"],s=["resume","pause"],c=["data","close"],l=Array.prototype.slice;t.exports=o},function(t,e,n){e=t.exports=n(196),e.version=n(232).version},function(t,e,n){var r=(n(197),n(198)),o=n(199),i=[n(201),n(202),n(220),n(231)],a=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,s=(n(221), | |
t.exports=function(t,e,n,i){return this instanceof s?(this.options=o.defaults(i||{},this.options),t?(n&&("string"==typeof n&&(n=r(n,this.options)),this._root=s.call(this,n)),t.cheerio?t:(l(t)&&(t=[t]),Array.isArray(t)?(o.forEach(t,function(t,e){this[e]=t},this),this.length=t.length,this):"string"==typeof t&&c(t)?s.call(this,r(t,this.options).children):(e?"string"==typeof e?c(e)?(e=r(e,this.options),e=s.call(this,e)):(t=[e,t].join(" "),e=this._root):e.cheerio||(e=s.call(this,e)):e=this._root,e?e.find(t):this))):this):new s(t,e,n,i)});o.extend(s,n(221)),s.prototype.cheerio="[cheerio object]",s.prototype.options={normalizeWhitespace:!1,xmlMode:!1,decodeEntities:!0},s.prototype.length=0,s.prototype.splice=Array.prototype.splice;var c=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])};s.prototype._make=function(t){var e=new s(t,void 0,void 0,this.options);return e.prevObject=this,e},s.prototype.toArray=function(){return this.get()},i.forEach(function(t){o.extend(s.prototype,t)});var l=function(t){return t.name||"text"===t.type||"comment"===t.type}},function(t,e,n){(function(t){function n(t,e){for(var n=0,r=t.length-1;r>=0;r--){var o=t[r];"."===o?t.splice(r,1):".."===o?(t.splice(r,1),n++):n&&(t.splice(r,1),n--)}if(e)for(;n--;n)t.unshift("..");return t}function r(t,e){if(t.filter)return t.filter(e);for(var n=[],r=0;r<t.length;r++)e(t[r],r,t)&&n.push(t[r]);return n}var o=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(t){return o.exec(t).slice(1)};e.resolve=function(){for(var e="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:t.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,o="/"===a.charAt(0))}return e=n(r(e.split("/"),function(t){return!!t}),!o).join("/"),(o?"/":"")+e||"."},e.normalize=function(t){var o=e.isAbsolute(t),i="/"===a(t,-1);return t=n(r(t.split("/"),function(t){return!!t}),!o).join("/"),t||o||(t="."),t&&i&&(t+="/"),(o?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(r(t,function(t,e){if("string"!=typeof t)throw new TypeError("Arguments to path.join must be strings");return t}).join("/"))},e.relative=function(t,n){function r(t){for(var e=0;e<t.length&&""===t[e];e++);for(var n=t.length-1;n>=0&&""===t[n];n--);return e>n?[]:t.slice(e,n-e+1)}t=e.resolve(t).substr(1),n=e.resolve(n).substr(1);for(var o=r(t.split("/")),i=r(n.split("/")),a=Math.min(o.length,i.length),s=a,c=0;c<a;c++)if(o[c]!==i[c]){s=c;break}for(var l=[],c=s;c<o.length;c++)l.push("..");return l=l.concat(i.slice(s)),l.join("/")},e.sep="/",e.delimiter=":",e.dirname=function(t){var e=i(t),n=e[0],r=e[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},e.basename=function(t,e){var n=i(t)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n},e.extname=function(t){return i(t)[3]};var a="b"==="ab".substr(-1)?function(t,e,n){return t.substr(e,n)}:function(t,e,n){return e<0&&(e=t.length+e),t.substr(e,n)}}).call(e,n(33))},function(t,e,n){var r=n(105),o=(n(199),n(200));o.isTag;e=t.exports=function(t,e){var n=i(t,e),r={type:"root",name:"root",parent:null,prev:null,next:null,children:[]};return a(n,r),r};var i=e.evaluate=function(t,e){var n;return n="string"==typeof t?r.parseDOM(t,e):t},a=e.update=function(t,e){Array.isArray(t)||(t=[t]),e?e.children=t:e=null;for(var n=0;n<t.length;n++){var r=t[n],o=r.parent||r.root,i=o&&o.children;i&&i!==t&&(i.splice(i.indexOf(r),1),r.prev&&(r.prev.next=r.next),r.next&&(r.next.prev=r.prev)),e?(r.prev=t[n-1]||null,r.next=t[n+1]||null):r.prev=r.next=null,e&&"root"===e.type?(r.root=e,r.parent=null):(r.root=null,r.parent=e)}return e}},function(t,e,n){var r;(function(t,o){(function(){function i(t,e,n){for(var r=(n||0)-1,o=t?t.length:0;++r<o;)if(t[r]===e)return r;return-1}function a(t,e){var n=typeof e;if(t=t.cache,"boolean"==n||null==e)return t[e]?0:-1;"number"!=n&&"string"!=n&&(n="object");var r="number"==n?e:S+e;return t=(t=t[n])&&t[r],"object"==n?t&&i(t,e)>-1?0:-1:t?0:-1}function s(t){var e=this.cache,n=typeof t;if("boolean"==n||null==t)e[t]=!0;else{"number"!=n&&"string"!=n&&(n="object");var r="number"==n?t:S+t,o=e[n]||(e[n]={});"object"==n?(o[r]||(o[r]=[])).push(t):o[r]=!0}}function c(t){return t.charCodeAt(0)}function l(t,e){for(var n=t.criteria,r=e.criteria,o=-1,i=n.length;++o<i;){var a=n[o],s=r[o];if(a!==s){if(a>s||"undefined"==typeof a)return 1;if(a<s||"undefined"==typeof s)return-1}}return t.index-e.index}function u(t){var e=-1,n=t.length,r=t[0],o=t[n/2|0],i=t[n-1];if(r&&"object"==typeof r&&o&&"object"==typeof o&&i&&"object"==typeof i)return!1;var a=h();a.false=a.null=a.true=a.undefined=!1;var c=h();for(c.array=t,c.cache=a,c.push=s;++e<n;)c.push(t[e]);return c}function f(t){return"\\"+ot[t]}function p(){return w.pop()||[]}function h(){return _.pop()||{array:null,cache:null,criteria:null,false:!1,index:0,null:!1,number:null,object:null,push:null,string:null,true:!1,undefined:!1,value:null}}function d(t){return"function"!=typeof t.toString&&"string"==typeof(t+"")}function b(t){t.length=0,w.length<A&&w.push(t)}function g(t){var e=t.cache;e&&g(e),t.array=t.cache=t.criteria=t.object=t.number=t.string=t.value=null,_.length<A&&_.push(t)}function m(t,e,n){e||(e=0),"undefined"==typeof n&&(n=t?t.length:0);for(var r=-1,o=n-e||0,i=Array(o<0?0:o);++r<o;)i[r]=t[e+r];return i}function v(t){function e(t){return t&&"object"==typeof t&&!fr(t)&&$n.call(t,"__wrapped__")?t:new n(t)}function n(t,e){this.__chain__=!!e,this.__wrapped__=t}function r(t){function e(){if(r){var t=m(r);Wn.apply(t,arguments)}if(this instanceof e){var i=s(n.prototype),a=n.apply(i,t||arguments);return Pt(a)?a:i}return n.apply(o,t||arguments)}var n=t[0],r=t[2],o=t[4];return ur(e,t),e}function o(t,e,n,r,i){if(n){var a=n(t);if("undefined"!=typeof a)return a}var s=Pt(t);if(!s)return t;var c=Pn.call(t);if(!Z[c]||!cr.nodeClass&&d(t))return t;var l=ar[c];switch(c){case W:case V:return new l(+t);case Y:case Q:return new l(t);case K:return a=l(t.source,R.exec(t)),a.lastIndex=t.lastIndex,a}var u=fr(t);if(e){var f=!r;r||(r=p()),i||(i=p());for(var h=r.length;h--;)if(r[h]==t)return i[h];a=u?l(t.length):{}}else a=u?m(t):xr({},t);return u&&($n.call(t,"index")&&(a.index=t.index),$n.call(t,"input")&&(a.input=t.input)),e?(r.push(t),i.push(a),(u?_r:Sr)(t,function(t,s){a[s]=o(t,e,n,r,i)}),f&&(b(r),b(i)),a):a}function s(t,e){return Pt(t)?Kn(t):{}}function w(t,e,n){if("function"!=typeof t)return on;if("undefined"==typeof e||!("prototype"in t))return t;var r=t.__bindData__;if("undefined"==typeof r&&(cr.funcNames&&(r=!t.name),r=r||!cr.funcDecomp,!r)){var o=Fn.call(t);cr.funcNames||(r=!D.test(o)),r||(r=q.test(o),ur(t,r))}if(r===!1||r!==!0&&1&r[1])return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)};case 4:return function(n,r,o,i){return t.call(e,n,r,o,i)}}return Ue(t,e)}function _(t){function e(){var t=l?a:this;if(o){var d=m(o);Wn.apply(d,arguments)}if((i||f)&&(d||(d=m(arguments)),i&&Wn.apply(d,i),f&&d.length<c))return r|=16,_([n,p?r:r&-4,d,null,a,c]);if(d||(d=arguments),u&&(n=t[h]),this instanceof e){t=s(n.prototype);var b=n.apply(t,d);return Pt(b)?b:t}return n.apply(t,d)}var n=t[0],r=t[1],o=t[2],i=t[3],a=t[4],c=t[5],l=1&r,u=2&r,f=4&r,p=8&r,h=n;return ur(e,t),e}function A(t,e){var n=-1,r=bt(),o=t?t.length:0,s=o>=T&&r===i,c=[];if(s){var l=u(e);l?(r=a,e=l):s=!1}for(;++n<o;){var f=t[n];r(e,f)<0&&c.push(f)}return s&&g(e),c}function ot(t,e,n,r){for(var o=(r||0)-1,i=t?t.length:0,a=[];++o<i;){var s=t[o];if(s&&"object"==typeof s&&"number"==typeof s.length&&(fr(s)||yt(s))){e||(s=ot(s,e,n));var c=-1,l=s.length,u=a.length;for(a.length+=l;++c<l;)a[u++]=s[c]}else n||a.push(s)}return a}function at(t,e,n,r,o,i){if(n){var a=n(t,e);if("undefined"!=typeof a)return!!a}if(t===e)return 0!==t||1/t==1/e;var s=typeof t,c=typeof e;if(!(t!==t||t&&rt[s]||e&&rt[c]))return!1;if(null==t||null==e)return t===e;var l=Pn.call(t),u=Pn.call(e);if(l==H&&(l=J),u==H&&(u=J),l!=u)return!1;switch(l){case W:case V:return+t==+e;case Y:return t!=+t?e!=+e:0==t?1/t==1/e:t==+e;case K:case Q:return t==Ln(e)}var f=l==$;if(!f){var h=$n.call(t,"__wrapped__"),g=$n.call(e,"__wrapped__");if(h||g)return at(h?t.__wrapped__:t,g?e.__wrapped__:e,n,r,o,i);if(l!=J||!cr.nodeClass&&(d(t)||d(e)))return!1;var m=!cr.argsObject&&yt(t)?Cn:t.constructor,v=!cr.argsObject&&yt(e)?Cn:e.constructor;if(m!=v&&!(It(m)&&m instanceof m&&It(v)&&v instanceof v)&&"constructor"in t&&"constructor"in e)return!1}var y=!o;o||(o=p()),i||(i=p());for(var w=o.length;w--;)if(o[w]==t)return i[w]==e;var _=0;if(a=!0,o.push(t),i.push(e),f){if(w=t.length,_=e.length,a=_==w,a||r)for(;_--;){var x=w,k=e[_];if(r)for(;x--&&!(a=at(t[x],k,n,r,o,i)););else if(!(a=at(t[_],k,n,r,o,i)))break}}else Er(e,function(e,s,c){if($n.call(c,s))return _++,a=$n.call(t,s)&&at(t[s],e,n,r,o,i)}),a&&!r&&Er(t,function(t,e,n){if($n.call(n,e))return a=--_>-1});return o.pop(),i.pop(),y&&(b(o),b(i)),a}function st(t,e,n,r,o){(fr(e)?re:Sr)(e,function(e,i){var a,s,c=e,l=t[i];if(e&&((s=fr(e))||Tr(e))){for(var u=r.length;u--;)if(a=r[u]==e){l=o[u];break}if(!a){var f;n&&(c=n(l,e),(f="undefined"!=typeof c)&&(l=c)),f||(l=s?fr(l)?l:[]:Tr(l)?l:{}),r.push(e),o.push(l),f||st(l,e,n,r,o)}}else n&&(c=n(l,e),"undefined"==typeof c&&(c=e)),"undefined"!=typeof c&&(l=c);t[i]=l})}function ct(t,e){return t+Un(ir()*(e-t+1))}function ut(t,e,n){var r=-1,o=bt(),s=t?t.length:0,c=[],l=!e&&s>=T&&o===i,f=n||l?p():c;if(l){var h=u(f);o=a,f=h}for(;++r<s;){var d=t[r],m=n?n(d,r,t):d;(e?!r||f[f.length-1]!==m:o(f,m)<0)&&((n||l)&&f.push(m),c.push(d))}return l?(b(f.array),g(f)):n&&b(f),c}function ft(t){return function(n,r,o){var i={};if(r=e.createCallback(r,o,3),fr(n))for(var a=-1,s=n.length;++a<s;){var c=n[a];t(i,c,r(c,a,n),n)}else _r(n,function(e,n,o){t(i,e,r(e,n,o),o)});return i}}function pt(t,e,n,o,i,a){var s=1&e,c=2&e,l=4&e,u=16&e,f=32&e;if(!c&&!It(t))throw new Nn;u&&!n.length&&(e&=-17,u=n=!1),f&&!o.length&&(e&=-33,f=o=!1);var p=t&&t.__bindData__;if(p&&p!==!0)return p=m(p),p[2]&&(p[2]=m(p[2])),p[3]&&(p[3]=m(p[3])),!s||1&p[1]||(p[4]=i),!s&&1&p[1]&&(e|=8),!l||4&p[1]||(p[5]=a),u&&Wn.apply(p[2]||(p[2]=[]),n),f&&Yn.apply(p[3]||(p[3]=[]),o),p[1]|=e,pt.apply(null,p);var h=1==e||17===e?r:_;return h([t,e,n,o,i,a])}function ht(){nt.shadowedProps=U,nt.array=nt.bottom=nt.loop=nt.top="",nt.init="iterable",nt.useHas=!0;for(var t,e=0;t=arguments[e];e++)for(var n in t)nt[n]=t[n];var r=nt.args;nt.firstArg=/^[^,]+/.exec(r)[0];var o=Sn("baseCreateCallback, errorClass, errorProto, hasOwnProperty, indicatorObject, isArguments, isArray, isString, keys, objectProto, objectTypes, nonEnumProps, stringClass, stringProto, toString","return function("+r+") {\n"+lr(nt)+"\n}");return o(w,G,Rn,$n,E,yt,fr,Ft,nt.keys,Dn,rt,sr,Q,Mn,Pn)}function dt(t){return mr[t]}function bt(){var t=(t=e.indexOf)===Ee?i:t;return t}function gt(t){return"function"==typeof t&&qn.test(t)}function mt(t){var e,n;return!(!(t&&Pn.call(t)==J&&(e=t.constructor,!It(e)||e instanceof e))||!cr.argsClass&&yt(t)||!cr.nodeClass&&d(t))&&(cr.ownLast?(Er(t,function(t,e,r){return n=$n.call(r,e),!1}),n!==!1):(Er(t,function(t,e){n=e}),"undefined"==typeof n||$n.call(t,n)))}function vt(t){return vr[t]}function yt(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Pn.call(t)==H||!1}function wt(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n=e,e=!1),o(t,e,"function"==typeof n&&w(n,r,1))}function _t(t,e,n){return o(t,!0,"function"==typeof e&&w(e,n,1))}function xt(t,e){var n=s(t);return e?xr(n,e):n}function kt(t,n,r){var o;return n=e.createCallback(n,r,3),Sr(t,function(t,e,r){if(n(t,e,r))return o=e,!1}),o}function Et(t,n,r){var o;return n=e.createCallback(n,r,3),Tt(t,function(t,e,r){if(n(t,e,r))return o=e,!1}),o}function St(t,e,n){var r=[];Er(t,function(t,e){r.push(e,t)});var o=r.length;for(e=w(e,n,3);o--&&e(r[o--],r[o],t)!==!1;);return t}function Tt(t,e,n){var r=hr(t),o=r.length;for(e=w(e,n,3);o--;){var i=r[o];if(e(t[i],i,t)===!1)break}return t}function At(t){var e=[];return Er(t,function(t,n){It(t)&&e.push(n)}),e.sort()}function Ct(t,e){return!!t&&$n.call(t,e)}function Ot(t){for(var e=-1,n=hr(t),r=n.length,o={};++e<r;){var i=n[e];o[t[i]]=i}return o}function Lt(t){return t===!0||t===!1||t&&"object"==typeof t&&Pn.call(t)==W||!1}function Nt(t){return t&&"object"==typeof t&&Pn.call(t)==V||!1}function jt(t){return t&&1===t.nodeType||!1}function Rt(t){var e=!0;if(!t)return e;var n=Pn.call(t),r=t.length;return n==$||n==Q||(cr.argsClass?n==H:yt(t))||n==J&&"number"==typeof r&&It(t.splice)?!r:(Sr(t,function(){return e=!1}),e)}function Dt(t,e,n,r){return at(t,e,"function"==typeof n&&w(n,r,2))}function Mt(t){return Zn(t)&&!tr(parseFloat(t))}function It(t){return"function"==typeof t}function Pt(t){return!(!t||!rt[typeof t])}function qt(t){return zt(t)&&t!=+t}function Bt(t){return null===t}function zt(t){return"number"==typeof t||t&&"object"==typeof t&&Pn.call(t)==Y||!1}function Ut(t){return t&&rt[typeof t]&&Pn.call(t)==K||!1}function Ft(t){return"string"==typeof t||t&&"object"==typeof t&&Pn.call(t)==Q||!1}function Ht(t){return"undefined"==typeof t}function $t(t,n,r){var o={};return n=e.createCallback(n,r,3),Sr(t,function(t,e,r){o[e]=n(t,e,r)}),o}function Wt(t){var e=arguments,n=2;if(!Pt(t))return t;if("number"!=typeof e[2]&&(n=e.length),n>3&&"function"==typeof e[n-2])var r=w(e[--n-1],e[n--],2);else n>2&&"function"==typeof e[n-1]&&(r=e[--n]);for(var o=m(arguments,1,n),i=-1,a=p(),s=p();++i<n;)st(t,o[i],r,a,s);return b(a),b(s),t}function Vt(t,n,r){var o={};if("function"!=typeof n){var i=[];Er(t,function(t,e){i.push(e)}),i=A(i,ot(arguments,!0,!1,1));for(var a=-1,s=i.length;++a<s;){var c=i[a];o[c]=t[c]}}else n=e.createCallback(n,r,3),Er(t,function(t,e,r){n(t,e,r)||(o[e]=t)});return o}function Gt(t){for(var e=-1,n=hr(t),r=n.length,o=_n(r);++e<r;){var i=n[e];o[e]=[i,t[i]]}return o}function Xt(t,n,r){var o={};if("function"!=typeof n)for(var i=-1,a=ot(arguments,!0,!1,1),s=Pt(t)?a.length:0;++i<s;){var c=a[i];c in t&&(o[c]=t[c])}else n=e.createCallback(n,r,3),Er(t,function(t,e,r){n(t,e,r)&&(o[e]=t)});return o}function Yt(t,n,r,o){var i=fr(t);if(null==r)if(i)r=[];else{var a=t&&t.constructor,c=a&&a.prototype;r=s(c)}return n&&(n=e.createCallback(n,o,4),(i?_r:Sr)(t,function(t,e,o){return n(r,t,e,o)})),r}function Jt(t){for(var e=-1,n=hr(t),r=n.length,o=_n(r);++e<r;)o[e]=t[n[e]];return o}function Kt(t){var e=arguments,n=-1,r=ot(e,!0,!1,1),o=e[2]&&e[2][e[1]]===t?1:r.length,i=_n(o);for(cr.unindexedChars&&Ft(t)&&(t=t.split(""));++n<o;)i[n]=t[r[n]];return i}function Qt(t,e,n){var r=-1,o=bt(),i=t?t.length:0,a=!1;return n=(n<0?nr(0,i+n):n)||0,fr(t)?a=o(t,e,n)>-1:"number"==typeof i?a=(Ft(t)?t.indexOf(e,n):o(t,e,n))>-1:_r(t,function(t){if(++r>=n)return!(a=t===e)}),a}function Zt(t,n,r){var o=!0;if(n=e.createCallback(n,r,3),fr(t))for(var i=-1,a=t.length;++i<a&&(o=!!n(t[i],i,t)););else _r(t,function(t,e,r){return o=!!n(t,e,r)});return o}function te(t,n,r){var o=[];if(n=e.createCallback(n,r,3),fr(t))for(var i=-1,a=t.length;++i<a;){var s=t[i];n(s,i,t)&&o.push(s)}else _r(t,function(t,e,r){n(t,e,r)&&o.push(t)});return o}function ee(t,n,r){if(n=e.createCallback(n,r,3),!fr(t)){var o;return _r(t,function(t,e,r){if(n(t,e,r))return o=t,!1}),o}for(var i=-1,a=t.length;++i<a;){var s=t[i];if(n(s,i,t))return s}}function ne(t,n,r){var o;return n=e.createCallback(n,r,3),oe(t,function(t,e,r){if(n(t,e,r))return o=t,!1}),o}function re(t,e,n){if(e&&"undefined"==typeof n&&fr(t))for(var r=-1,o=t.length;++r<o&&e(t[r],r,t)!==!1;);else _r(t,e,n);return t}function oe(t,e,n){var r=t,o=t?t.length:0;if(e=e&&"undefined"==typeof n?e:w(e,n,3),fr(t))for(;o--&&e(t[o],o,t)!==!1;);else{if("number"!=typeof o){var i=hr(t);o=i.length}else cr.unindexedChars&&Ft(t)&&(r=t.split(""));_r(t,function(t,n,a){return n=i?i[--o]:--o,e(r[n],n,a)})}return t}function ie(t,e){var n=m(arguments,2),r=-1,o="function"==typeof e,i=t?t.length:0,a=_n("number"==typeof i?i:0);return re(t,function(t){a[++r]=(o?e:t[e]).apply(t,n)}),a}function ae(t,n,r){var o=-1,i=t?t.length:0,a=_n("number"==typeof i?i:0);if(n=e.createCallback(n,r,3),fr(t))for(;++o<i;)a[o]=n(t[o],o,t);else _r(t,function(t,e,r){a[++o]=n(t,e,r)});return a}function se(t,n,r){var o=-(1/0),i=o;if("function"!=typeof n&&r&&r[n]===t&&(n=null),null==n&&fr(t))for(var a=-1,s=t.length;++a<s;){var l=t[a];l>i&&(i=l)}else n=null==n&&Ft(t)?c:e.createCallback(n,r,3),_r(t,function(t,e,r){var a=n(t,e,r);a>o&&(o=a,i=t)});return i}function ce(t,n,r){var o=1/0,i=o;if("function"!=typeof n&&r&&r[n]===t&&(n=null),null==n&&fr(t))for(var a=-1,s=t.length;++a<s;){var l=t[a];l<i&&(i=l)}else n=null==n&&Ft(t)?c:e.createCallback(n,r,3),_r(t,function(t,e,r){var a=n(t,e,r);a<o&&(o=a,i=t)});return i}function le(t,n,r,o){var i=arguments.length<3;if(n=e.createCallback(n,o,4),fr(t)){var a=-1,s=t.length;for(i&&(r=t[++a]);++a<s;)r=n(r,t[a],a,t)}else _r(t,function(t,e,o){r=i?(i=!1,t):n(r,t,e,o)});return r}function ue(t,n,r,o){var i=arguments.length<3;return n=e.createCallback(n,o,4),oe(t,function(t,e,o){r=i?(i=!1,t):n(r,t,e,o)}),r}function fe(t,n,r){return n=e.createCallback(n,r,3),te(t,function(t,e,r){return!n(t,e,r)})}function pe(t,e,n){if(t&&"number"!=typeof t.length?t=Jt(t):cr.unindexedChars&&Ft(t)&&(t=t.split("")),null==e||n)return t?t[ct(0,t.length-1)]:y;var r=he(t);return r.length=rr(nr(0,e),r.length),r}function he(t){var e=-1,n=t?t.length:0,r=_n("number"==typeof n?n:0);return re(t,function(t){var n=ct(0,++e);r[e]=r[n],r[n]=t}),r}function de(t){var e=t?t.length:0;return"number"==typeof e?e:hr(t).length}function be(t,n,r){var o;if(n=e.createCallback(n,r,3),fr(t))for(var i=-1,a=t.length;++i<a&&!(o=n(t[i],i,t)););else _r(t,function(t,e,r){return!(o=n(t,e,r))});return!!o}function ge(t,n,r){var o=-1,i=fr(n),a=t?t.length:0,s=_n("number"==typeof a?a:0);for(i||(n=e.createCallback(n,r,3)),re(t,function(t,e,r){var a=s[++o]=h();i?a.criteria=ae(n,function(e){return t[e]}):(a.criteria=p())[0]=n(t,e,r),a.index=o,a.value=t}),a=s.length,s.sort(l);a--;){var c=s[a];s[a]=c.value,i||b(c.criteria),g(c)}return s}function me(t){return t&&"number"==typeof t.length?cr.unindexedChars&&Ft(t)?t.split(""):m(t):Jt(t)}function ve(t){for(var e=-1,n=t?t.length:0,r=[];++e<n;){var o=t[e];o&&r.push(o)}return r}function ye(t){return A(t,ot(arguments,!0,!0,1))}function we(t,n,r){var o=-1,i=t?t.length:0;for(n=e.createCallback(n,r,3);++o<i;)if(n(t[o],o,t))return o;return-1}function _e(t,n,r){var o=t?t.length:0;for(n=e.createCallback(n,r,3);o--;)if(n(t[o],o,t))return o;return-1}function xe(t,n,r){var o=0,i=t?t.length:0;if("number"!=typeof n&&null!=n){var a=-1;for(n=e.createCallback(n,r,3);++a<i&&n(t[a],a,t);)o++}else if(o=n,null==o||r)return t?t[0]:y;return m(t,0,rr(nr(0,o),i))}function ke(t,e,n,r){return"boolean"!=typeof e&&null!=e&&(r=n,n="function"!=typeof e&&r&&r[e]===t?null:e,e=!1),null!=n&&(t=ae(t,n,r)),ot(t,e)}function Ee(t,e,n){if("number"==typeof n){var r=t?t.length:0;n=n<0?nr(0,r+n):n||0}else if(n){var o=Re(t,e);return t[o]===e?o:-1}return i(t,e,n)}function Se(t,n,r){var o=0,i=t?t.length:0;if("number"!=typeof n&&null!=n){var a=i;for(n=e.createCallback(n,r,3);a--&&n(t[a],a,t);)o++}else o=null==n||r?1:n||o;return m(t,0,rr(nr(0,i-o),i))}function Te(){for(var t=[],e=-1,n=arguments.length,r=p(),o=bt(),s=o===i,c=p();++e<n;){var l=arguments[e];(fr(l)||yt(l))&&(t.push(l),r.push(s&&l.length>=T&&u(e?t[e]:c)))}var f=t[0],h=-1,d=f?f.length:0,m=[];t:for(;++h<d;){var v=r[0];if(l=f[h],(v?a(v,l):o(c,l))<0){for(e=n,(v||c).push(l);--e;)if(v=r[e],(v?a(v,l):o(t[e],l))<0)continue t;m.push(l)}}for(;n--;)v=r[n],v&&g(v);return b(r),b(c),m}function Ae(t,n,r){var o=0,i=t?t.length:0;if("number"!=typeof n&&null!=n){var a=i;for(n=e.createCallback(n,r,3);a--&&n(t[a],a,t);)o++}else if(o=n,null==o||r)return t?t[i-1]:y;return m(t,nr(0,i-o))}function Ce(t,e,n){var r=t?t.length:0;for("number"==typeof n&&(r=(n<0?nr(0,r+n):rr(n,r-1))+1);r--;)if(t[r]===e)return r;return-1}function Oe(t){for(var e=arguments,n=0,r=e.length,o=t?t.length:0;++n<r;)for(var i=-1,a=e[n];++i<o;)t[i]===a&&(Xn.call(t,i--,1),o--);return t}function Le(t,e,n){t=+t||0,n="number"==typeof n?n:+n||1,null==e&&(e=t,t=0);for(var r=-1,o=nr(0,Bn((e-t)/(n||1))),i=_n(o);++r<o;)i[r]=t,t+=n;return i}function Ne(t,n,r){var o=-1,i=t?t.length:0,a=[];for(n=e.createCallback(n,r,3);++o<i;){var s=t[o];n(s,o,t)&&(a.push(s),Xn.call(t,o--,1),i--)}return a}function je(t,n,r){if("number"!=typeof n&&null!=n){var o=0,i=-1,a=t?t.length:0;for(n=e.createCallback(n,r,3);++i<a&&n(t[i],i,t);)o++}else o=null==n||r?1:nr(0,n);return m(t,o)}function Re(t,n,r,o){var i=0,a=t?t.length:i;for(r=r?e.createCallback(r,o,1):on,n=r(n);i<a;){var s=i+a>>>1;r(t[s])<n?i=s+1:a=s}return i}function De(){return ut(ot(arguments,!0,!0))}function Me(t,n,r,o){return"boolean"!=typeof n&&null!=n&&(o=r,r="function"!=typeof n&&o&&o[n]===t?null:n,n=!1),null!=r&&(r=e.createCallback(r,o,3)),ut(t,n,r)}function Ie(t){return A(t,m(arguments,1))}function Pe(){for(var t=-1,e=arguments.length;++t<e;){var n=arguments[t];if(fr(n)||yt(n))var r=r?ut(A(r,n).concat(A(n,r))):n}return r||[]}function qe(){for(var t=arguments.length>1?arguments:arguments[0],e=-1,n=t?se(Lr(t,"length")):0,r=_n(n<0?0:n);++e<n;)r[e]=Lr(t,e);return r}function Be(t,e){var n=-1,r=t?t.length:0,o={};for(e||!r||fr(t[0])||(e=[]);++n<r;){var i=t[n];e?o[i]=e[n]:i&&(o[i[0]]=i[1])}return o}function ze(t,e){if(!It(e))throw new Nn;return function(){if(--t<1)return e.apply(this,arguments)}}function Ue(t,e){return arguments.length>2?pt(t,17,m(arguments,2),null,e):pt(t,1,null,null,e)}function Fe(t){for(var e=arguments.length>1?ot(arguments,!0,!1,1):At(t),n=-1,r=e.length;++n<r;){var o=e[n];t[o]=pt(t[o],1,null,null,t)}return t}function He(t,e){return arguments.length>2?pt(e,19,m(arguments,2),null,t):pt(e,3,null,null,t)}function $e(){for(var t=arguments,e=t.length;e--;)if(!It(t[e]))throw new Nn;return function(){for(var e=arguments,n=t.length;n--;)e=[t[n].apply(this,e)];return e[0]}}function We(t,e){return e="number"==typeof e?e:+e||t.length,pt(t,4,null,null,null,e)}function Ve(t,e,n){var r,o,i,a,s,c,l,u=0,f=!1,p=!0;if(!It(t))throw new Nn;if(e=nr(0,e)||0,n===!0){var h=!0;p=!1}else Pt(n)&&(h=n.leading,f="maxWait"in n&&(nr(e,n.maxWait)||0),p="trailing"in n?n.trailing:p);var d=function(){var n=e-(jr()-a);if(n<=0){o&&zn(o);var f=l;o=c=l=y,f&&(u=jr(),i=t.apply(s,r),c||o||(r=s=null))}else c=Gn(d,n)},b=function(){c&&zn(c),o=c=l=y,(p||f!==e)&&(u=jr(),i=t.apply(s,r),c||o||(r=s=null))};return function(){if(r=arguments,a=jr(),s=this,l=p&&(c||!h),f===!1)var n=h&&!c;else{o||h||(u=a);var g=f-(a-u),m=g<=0;m?(o&&(o=zn(o)),u=a,i=t.apply(s,r)):o||(o=Gn(b,g))}return m&&c?c=zn(c):c||e===f||(c=Gn(d,e)),n&&(m=!0,i=t.apply(s,r)),!m||c||o||(r=s=null),i}}function Ge(t){if(!It(t))throw new Nn;var e=m(arguments,1);return Gn(function(){t.apply(y,e)},1)}function Xe(t,e){if(!It(t))throw new Nn;var n=m(arguments,2);return Gn(function(){t.apply(y,n)},e)}function Ye(t,e){if(!It(t))throw new Nn;var n=function(){var r=n.cache,o=e?e.apply(this,arguments):S+arguments[0];return $n.call(r,o)?r[o]:r[o]=t.apply(this,arguments)};return n.cache={},n}function Je(t){var e,n;if(!It(t))throw new Nn;return function(){return e?n:(e=!0,n=t.apply(this,arguments),t=null,n)}}function Ke(t){return pt(t,16,m(arguments,1))}function Qe(t){return pt(t,32,null,m(arguments,1))}function Ze(t,e,n){var r=!0,o=!0;if(!It(t))throw new Nn;return n===!1?r=!1:Pt(n)&&(r="leading"in n?n.leading:r,o="trailing"in n?n.trailing:o),tt.leading=r,tt.maxWait=e,tt.trailing=o,Ve(t,e,tt)}function tn(t,e){return pt(e,16,[t])}function en(t){return function(){return t}}function nn(t,e,n){var r=typeof t;if(null==t||"function"==r)return w(t,e,n);if("object"!=r)return ln(t);var o=hr(t),i=o[0],a=t[i];return 1!=o.length||a!==a||Pt(a)?function(e){for(var n=o.length,r=!1;n--&&(r=at(e[o[n]],t[o[n]],null,!0)););return r}:function(t){var e=t[i];return a===e&&(0!==a||1/a==1/e)}}function rn(t){return null==t?"":Ln(t).replace(wr,dt)}function on(t){return t}function an(t,r,o){var i=!0,a=r&&At(r);r&&(o||a.length)||(null==o&&(o=r),s=n,r=t,t=e,a=At(r)),o===!1?i=!1:Pt(o)&&"chain"in o&&(i=o.chain);var s=t,c=It(s);re(a,function(e){var n=t[e]=r[e];c&&(s.prototype[e]=function(){var e=this.__chain__,r=this.__wrapped__,o=[r];Wn.apply(o,arguments);var a=n.apply(t,o);if(i||e){if(r===a&&Pt(a))return this;a=new s(a),a.__chain__=e}return a})})}function sn(){return t._=In,this}function cn(){}function ln(t){return function(e){return e[t]}}function un(t,e,n){var r=null==t,o=null==e;if(null==n&&("boolean"==typeof t&&o?(n=t,t=1):o||"boolean"!=typeof e||(n=e,o=!0)),r&&o&&(e=1),t=+t||0,o?(e=t,t=0):e=+e||0,n||t%1||e%1){var i=ir();return rr(t+i*(e-t+parseFloat("1e-"+((i+"").length-1))),e)}return ct(t,e)}function fn(t,e){if(t){var n=t[e];return It(n)?t[e]():n}}function pn(t,n,r){var o=e.templateSettings;t=Ln(t||""),r=kr({},r,o);var i,a=kr({},r.imports,o.imports),s=hr(a),c=Jt(a),l=0,u=r.interpolate||P,p="__p += '",h=On((r.escape||P).source+"|"+u.source+"|"+(u===M?j:P).source+"|"+(r.evaluate||P).source+"|$","g");t.replace(h,function(e,n,r,o,a,s){return r||(r=o),p+=t.slice(l,s).replace(B,f),n&&(p+="' +\n__e("+n+") +\n'"),a&&(i=!0,p+="';\n"+a+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=s+e.length,e}),p+="';\n";var d=r.variable,b=d;b||(d="obj",p="with ("+d+") {\n"+p+"\n}\n"),p=(i?p.replace(O,""):p).replace(L,"$1").replace(N,"$1;"),p="function("+d+") {\n"+(b?"":d+" || ("+d+" = {});\n")+"var __t, __p = '', __e = _.escape"+(i?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var g="\n/*\n//# sourceURL="+(r.sourceURL||"/lodash/template/source["+F++ +"]")+"\n*/";try{var m=Sn(s,"return "+p+g).apply(y,c)}catch(t){throw t.source=p,t}return n?m(n):(m.source=p,m)}function hn(t,e,n){t=(t=+t)>-1?t:0;var r=-1,o=_n(t);for(e=w(e,n,1);++r<t;)o[r]=e(r);return o}function dn(t){return null==t?"":Ln(t).replace(yr,vt)}function bn(t){var e=++x;return Ln(null==t?"":t)+e}function gn(t){return t=new n(t),t.__chain__=!0,t}function mn(t,e){return e(t),t}function vn(){return this.__chain__=!0,this}function yn(){return Ln(this.__wrapped__)}function wn(){return this.__wrapped__}t=t?lt.defaults(it.Object(),t,lt.pick(it,z)):it;var _n=t.Array,xn=t.Boolean,kn=t.Date,En=t.Error,Sn=t.Function,Tn=t.Math,An=t.Number,Cn=t.Object,On=t.RegExp,Ln=t.String,Nn=t.TypeError,jn=[],Rn=En.prototype,Dn=Cn.prototype,Mn=Ln.prototype,In=t._,Pn=Dn.toString,qn=On("^"+Ln(Pn).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$"),Bn=Tn.ceil,zn=t.clearTimeout,Un=Tn.floor,Fn=Sn.prototype.toString,Hn=gt(Hn=Cn.getPrototypeOf)&&Hn,$n=Dn.hasOwnProperty,Wn=jn.push,Vn=Dn.propertyIsEnumerable,Gn=t.setTimeout,Xn=jn.splice,Yn=jn.unshift,Jn=function(){try{var t={},e=gt(e=Cn.defineProperty)&&e,n=e(t,t,t)&&e}catch(t){}return n}(),Kn=gt(Kn=Cn.create)&&Kn,Qn=gt(Qn=_n.isArray)&&Qn,Zn=t.isFinite,tr=t.isNaN,er=gt(er=Cn.keys)&&er,nr=Tn.max,rr=Tn.min,or=t.parseInt,ir=Tn.random,ar={};ar[$]=_n,ar[W]=xn,ar[V]=kn,ar[X]=Sn,ar[J]=Cn,ar[Y]=An,ar[K]=On,ar[Q]=Ln;var sr={};sr[$]=sr[V]=sr[Y]={constructor:!0,toLocaleString:!0,toString:!0,valueOf:!0},sr[W]=sr[Q]={constructor:!0,toString:!0,valueOf:!0},sr[G]=sr[X]=sr[K]={constructor:!0,toString:!0},sr[J]={constructor:!0},function(){for(var t=U.length;t--;){var e=U[t];for(var n in sr)$n.call(sr,n)&&!$n.call(sr[n],e)&&(sr[n][e]=!1)}}(),n.prototype=e.prototype;var cr=e.support={};!function(){var e=function(){this.x=1},n={0:1,length:1},r=[];e.prototype={valueOf:1,y:1};for(var o in new e)r.push(o);for(o in arguments);cr.argsClass=Pn.call(arguments)==H,cr.argsObject=arguments.constructor==Cn&&!(arguments instanceof _n),cr.enumErrorProps=Vn.call(Rn,"message")||Vn.call(Rn,"name"),cr.enumPrototypes=Vn.call(e,"prototype"),cr.funcDecomp=!gt(t.WinRTError)&&q.test(v),cr.funcNames="string"==typeof Sn.name,cr.nonEnumArgs=0!=o,cr.nonEnumShadows=!/valueOf/.test(r),cr.ownLast="x"!=r[0],cr.spliceObjects=(jn.splice.call(n,0,1),!n[0]),cr.unindexedChars="x"[0]+Cn("x")[0]!="xx";try{cr.nodeClass=!(Pn.call(document)==J&&!({toString:0}+""))}catch(t){cr.nodeClass=!0}}(1),e.templateSettings={escape:/<%-([\s\S]+?)%>/g,evaluate:/<%([\s\S]+?)%>/g,interpolate:M,variable:"",imports:{_:e}};var lr=function(t){var e="var index, iterable = "+t.firstArg+", result = "+t.init+";\nif (!iterable) return result;\n"+t.top+";";t.array?(e+="\nvar length = iterable.length; index = -1;\nif ("+t.array+") { ",cr.unindexedChars&&(e+="\n if (isString(iterable)) {\n iterable = iterable.split('')\n } "),e+="\n while (++index < length) {\n "+t.loop+";\n }\n}\nelse { "):cr.nonEnumArgs&&(e+="\n var length = iterable.length; index = -1;\n if (length && isArguments(iterable)) {\n while (++index < length) {\n index += '';\n "+t.loop+";\n }\n } else { "),cr.enumPrototypes&&(e+="\n var skipProto = typeof iterable == 'function';\n "),cr.enumErrorProps&&(e+="\n var skipErrorProps = iterable === errorProto || iterable instanceof Error;\n ");var n=[];if(cr.enumPrototypes&&n.push('!(skipProto && index == "prototype")'),cr.enumErrorProps&&n.push('!(skipErrorProps && (index == "message" || index == "name"))'),t.useHas&&t.keys)e+="\n var ownIndex = -1,\n ownProps = objectTypes[typeof iterable] && keys(iterable),\n length = ownProps ? ownProps.length : 0;\n\n while (++ownIndex < length) {\n index = ownProps[ownIndex];\n",n.length&&(e+=" if ("+n.join(" && ")+") {\n "),e+=t.loop+"; ",n.length&&(e+="\n }"),e+="\n } ";else if(e+="\n for (index in iterable) {\n",t.useHas&&n.push("hasOwnProperty.call(iterable, index)"),n.length&&(e+=" if ("+n.join(" && ")+") {\n "),e+=t.loop+"; ",n.length&&(e+="\n }"),e+="\n } ",cr.nonEnumShadows){for(e+="\n\n if (iterable !== objectProto) {\n var ctor = iterable.constructor,\n isProto = iterable === (ctor && ctor.prototype),\n className = iterable === stringProto ? stringClass : iterable === errorProto ? errorClass : toString.call(iterable),\n nonEnum = nonEnumProps[className];\n ",k=0;k<7;k++)e+="\n index = '"+t.shadowedProps[k]+"';\n if ((!(isProto && nonEnum[index]) && hasOwnProperty.call(iterable, index))",t.useHas||(e+=" || (!nonEnum[index] && iterable[index] !== objectProto[index])"),e+=") {\n "+t.loop+";\n } ";e+="\n } "}return(t.array||cr.nonEnumArgs)&&(e+="\n}"),e+=t.bottom+";\nreturn result"};Kn||(s=function(){function e(){}return function(n){if(Pt(n)){e.prototype=n;var r=new e;e.prototype=null}return r||t.Object()}}());var ur=Jn?function(t,e){et.value=e,Jn(t,"__bindData__",et)}:cn;cr.argsClass||(yt=function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&$n.call(t,"callee")&&!Vn.call(t,"callee")||!1});var fr=Qn||function(t){return t&&"object"==typeof t&&"number"==typeof t.length&&Pn.call(t)==$||!1},pr=ht({args:"object",init:"[]",top:"if (!(objectTypes[typeof object])) return result",loop:"result.push(index)"}),hr=er?function(t){return Pt(t)?cr.enumPrototypes&&"function"==typeof t||cr.nonEnumArgs&&t.length&&yt(t)?pr(t):er(t):[]}:pr,dr={args:"collection, callback, thisArg",top:"callback = callback && typeof thisArg == 'undefined' ? callback : baseCreateCallback(callback, thisArg, 3)",array:"typeof length == 'number'",keys:hr,loop:"if (callback(iterable[index], index, collection) === false) return result"},br={args:"object, source, guard",top:"var args = arguments,\n argsIndex = 0,\n argsLength = typeof guard == 'number' ? 2 : args.length;\nwhile (++argsIndex < argsLength) {\n iterable = args[argsIndex];\n if (iterable && objectTypes[typeof iterable]) {",keys:hr,loop:"if (typeof result[index] == 'undefined') result[index] = iterable[index]",bottom:" }\n}"},gr={top:"if (!objectTypes[typeof iterable]) return result;\n"+dr.top,array:!1},mr={"&":"&","<":"<",">":">",'"':""","'":"'"},vr=Ot(mr),yr=On("("+hr(vr).join("|")+")","g"),wr=On("["+hr(mr).join("")+"]","g"),_r=ht(dr),xr=ht(br,{top:br.top.replace(";",";\nif (argsLength > 3 && typeof args[argsLength - 2] == 'function') {\n var callback = baseCreateCallback(args[--argsLength - 1], args[argsLength--], 2);\n} else if (argsLength > 2 && typeof args[argsLength - 1] == 'function') {\n callback = args[--argsLength];\n}"), | |
loop:"result[index] = callback ? callback(result[index], iterable[index]) : iterable[index]"}),kr=ht(br),Er=ht(dr,gr,{useHas:!1}),Sr=ht(dr,gr);It(/x/)&&(It=function(t){return"function"==typeof t&&Pn.call(t)==X});var Tr=Hn?function(t){if(!t||Pn.call(t)!=J||!cr.argsClass&&yt(t))return!1;var e=t.valueOf,n=gt(e)&&(n=Hn(e))&&Hn(n);return n?t==n||Hn(t)==n:mt(t)}:mt,Ar=ft(function(t,e,n){$n.call(t,n)?t[n]++:t[n]=1}),Cr=ft(function(t,e,n){($n.call(t,n)?t[n]:t[n]=[]).push(e)}),Or=ft(function(t,e,n){t[n]=e}),Lr=ae,Nr=te,jr=gt(jr=kn.now)&&jr||function(){return(new kn).getTime()},Rr=8==or(C+"08")?or:function(t,e){return or(Ft(t)?t.replace(I,""):t,e||0)};return e.after=ze,e.assign=xr,e.at=Kt,e.bind=Ue,e.bindAll=Fe,e.bindKey=He,e.chain=gn,e.compact=ve,e.compose=$e,e.constant=en,e.countBy=Ar,e.create=xt,e.createCallback=nn,e.curry=We,e.debounce=Ve,e.defaults=kr,e.defer=Ge,e.delay=Xe,e.difference=ye,e.filter=te,e.flatten=ke,e.forEach=re,e.forEachRight=oe,e.forIn=Er,e.forInRight=St,e.forOwn=Sr,e.forOwnRight=Tt,e.functions=At,e.groupBy=Cr,e.indexBy=Or,e.initial=Se,e.intersection=Te,e.invert=Ot,e.invoke=ie,e.keys=hr,e.map=ae,e.mapValues=$t,e.max=se,e.memoize=Ye,e.merge=Wt,e.min=ce,e.omit=Vt,e.once=Je,e.pairs=Gt,e.partial=Ke,e.partialRight=Qe,e.pick=Xt,e.pluck=Lr,e.property=ln,e.pull=Oe,e.range=Le,e.reject=fe,e.remove=Ne,e.rest=je,e.shuffle=he,e.sortBy=ge,e.tap=mn,e.throttle=Ze,e.times=hn,e.toArray=me,e.transform=Yt,e.union=De,e.uniq=Me,e.values=Jt,e.where=Nr,e.without=Ie,e.wrap=tn,e.xor=Pe,e.zip=qe,e.zipObject=Be,e.collect=ae,e.drop=je,e.each=re,e.eachRight=oe,e.extend=xr,e.methods=At,e.object=Be,e.select=te,e.tail=je,e.unique=Me,e.unzip=qe,an(e),e.clone=wt,e.cloneDeep=_t,e.contains=Qt,e.escape=rn,e.every=Zt,e.find=ee,e.findIndex=we,e.findKey=kt,e.findLast=ne,e.findLastIndex=_e,e.findLastKey=Et,e.has=Ct,e.identity=on,e.indexOf=Ee,e.isArguments=yt,e.isArray=fr,e.isBoolean=Lt,e.isDate=Nt,e.isElement=jt,e.isEmpty=Rt,e.isEqual=Dt,e.isFinite=Mt,e.isFunction=It,e.isNaN=qt,e.isNull=Bt,e.isNumber=zt,e.isObject=Pt,e.isPlainObject=Tr,e.isRegExp=Ut,e.isString=Ft,e.isUndefined=Ht,e.lastIndexOf=Ce,e.mixin=an,e.noConflict=sn,e.noop=cn,e.now=jr,e.parseInt=Rr,e.random=un,e.reduce=le,e.reduceRight=ue,e.result=fn,e.runInContext=v,e.size=de,e.some=be,e.sortedIndex=Re,e.template=pn,e.unescape=dn,e.uniqueId=bn,e.all=Zt,e.any=be,e.detect=ee,e.findWhere=ee,e.foldl=le,e.foldr=ue,e.include=Qt,e.inject=le,an(function(){var t={};return Sr(e,function(n,r){e.prototype[r]||(t[r]=n)}),t}(),!1),e.first=xe,e.last=Ae,e.sample=pe,e.take=xe,e.head=xe,Sr(e,function(t,r){var o="sample"!==r;e.prototype[r]||(e.prototype[r]=function(e,r){var i=this.__chain__,a=t(this.__wrapped__,e,r);return i||null!=e&&(!r||o&&"function"==typeof e)?new n(a,i):a})}),e.VERSION="2.4.1",e.prototype.chain=vn,e.prototype.toString=yn,e.prototype.value=wn,e.prototype.valueOf=wn,_r(["join","pop","shift"],function(t){var r=jn[t];e.prototype[t]=function(){var t=this.__chain__,e=r.apply(this.__wrapped__,arguments);return t?new n(e,t):e}}),_r(["push","reverse","sort","unshift"],function(t){var n=jn[t];e.prototype[t]=function(){return n.apply(this.__wrapped__,arguments),this}}),_r(["concat","slice","splice"],function(t){var r=jn[t];e.prototype[t]=function(){return new n(r.apply(this.__wrapped__,arguments),this.__chain__)}}),cr.spliceObjects||_r(["pop","shift","splice"],function(t){var r=jn[t],o="splice"==t;e.prototype[t]=function(){var t=this.__chain__,e=this.__wrapped__,i=r.apply(e,arguments);return 0===e.length&&delete e[0],t||o?new n(i,t):i}}),e}var y,w=[],_=[],x=0,E={},S=+new Date+"",T=75,A=40,C=" \t\v\f \ufeff\n\r\u2028\u2029 ",O=/\b__p \+= '';/g,L=/\b(__p \+=) '' \+/g,N=/(__e\(.*?\)|\b__t\)) \+\n'';/g,j=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,R=/\w*$/,D=/^\s*function[ \n\r\t]+\w/,M=/<%=([\s\S]+?)%>/g,I=RegExp("^["+C+"]*0+(?=.$)"),P=/($^)/,q=/\bthis\b/,B=/['\n\r\t\u2028\u2029\\]/g,z=["Array","Boolean","Date","Error","Function","Math","Number","Object","RegExp","String","_","attachEvent","clearTimeout","isFinite","isNaN","parseInt","setTimeout"],U=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],F=0,H="[object Arguments]",$="[object Array]",W="[object Boolean]",V="[object Date]",G="[object Error]",X="[object Function]",Y="[object Number]",J="[object Object]",K="[object RegExp]",Q="[object String]",Z={};Z[X]=!1,Z[H]=Z[$]=Z[W]=Z[V]=Z[Y]=Z[J]=Z[K]=Z[Q]=!0;var tt={leading:!1,maxWait:0,trailing:!1},et={configurable:!1,enumerable:!1,value:null,writable:!1},nt={args:"",array:null,bottom:"",firstArg:"",init:"",keys:null,loop:"",shadowedProps:null,support:null,top:"",useHas:!1},rt={boolean:!1,function:!0,object:!0,number:!1,string:!1,undefined:!1},ot={"\\":"\\","'":"'","\n":"n","\r":"r","\t":"t","\u2028":"u2028","\u2029":"u2029"},it=rt[typeof window]&&window||this,at=rt[typeof e]&&e&&!e.nodeType&&e,st=rt[typeof t]&&t&&!t.nodeType&&t,ct=(st&&st.exports===at&&at,rt[typeof o]&&o);!ct||ct.global!==ct&&ct.window!==ct||(it=ct);var lt=v();it._=lt,r=function(){return lt}.call(e,n,e,t),!(r!==y&&(t.exports=r))}).call(this)}).call(e,n(18)(t),function(){return this}())},function(t,e){var n={tag:!0,script:!0,style:!0};e.isTag=function(t){return t.type&&(t=t.type),n[t]||!1},e.camelCase=function(t){return t.replace(/[_.-](\w|$)/g,function(t,e){return e.toUpperCase()})},e.cssCase=function(t){return t.replace(/[A-Z]/g,"-$&").toLowerCase()},e.domEach=function(t,e){for(var n=0,r=t.length;n<r&&e(n,t[n])!==!1;)++n;return t}},function(t,e,n){var r=n(199),o=n(200),i=o.isTag,a=o.domEach,s=Object.prototype.hasOwnProperty,c=o.camelCase,l=o.cssCase,u=/\s+/,f="data-",p={null:null,true:!0,false:!1},h=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,d=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,b=function(t,e){if(t&&i(t))return t.attribs||(t.attribs={}),e?s.call(t.attribs,e)?t.attribs[e]:void 0:t.attribs},g=function(t,e,n){null===n?y(t,e):t.attribs[e]=n+""},m=(e.attr=function(t,e){return"object"==typeof t||void 0!==e?"function"==typeof e?a(this,function(n,r){g(r,t,e.call(r,n,r.attribs[t]))}):a(this,function(n,o){i(o)&&("object"==typeof t?r.each(t,function(t,e){o.attribs[e]=t+""}):g(o,t,e))}):b(this[0],t)},function(t,e,n){return"object"==typeof e?r.extend(t.data,e):void("string"==typeof e&&void 0!==n?t.data[e]=n:"object"==typeof e&&r.exend(t.data,e))}),v=function(t,e){var n,r,o,i,a,u,h,b=1===arguments.length;for(b?(n=Object.keys(t.attribs).filter(function(t){return t.slice(0,f.length)===f}),o=n.map(function(t){return c(t.slice(f.length))})):(n=[f+l(e)],o=[e]),u=0,h=n.length;u<h;++u)r=n[u],i=o[u],s.call(t.attribs,r)&&(a=t.attribs[r],s.call(p,a)?a=p[a]:a===String(Number(a))?a=Number(a):d.test(a)&&(a=JSON.parse(a)),t.data[i]=a);return b?t.data:a},y=(e.data=function(t,e){var n=this[0];if(n&&i(n))return n.data||(n.data={}),t?"object"==typeof t||void 0!==e?(a(this,function(n,r){m(r,t,e)}),this):s.call(n.data,t)?n.data[t]:v(n,t):v(n)},e.val=function(t){var e=0===arguments.length,n=this[0];if(n)switch(n.name){case"textarea":return this.text(t);case"input":switch(this.attr("type")){case"radio":var r,o,i="input[type=radio][name="+this.attr("name")+"]:checked";return r=this.closest("form"),0===r.length&&(o=(this.parents().last()[0]||this[0]).root,r=this._make(o)),e?r.find(i).attr("value"):(r.find(":checked").removeAttr("checked"),r.find('input[type=radio][value="'+t+'"]').attr("checked",""),this);default:return this.attr("value",t)}return;case"select":var s,c=this.find("option:selected");if(void 0===c)return;if(!e){if(!this.attr().hasOwnProperty("multiple")&&"object"==typeof t)return this;"object"!=typeof t&&(t=[t]),this.find("option").removeAttr("selected");for(var l=0;l<t.length;l++)this.find('option[value="'+t[l]+'"]').attr("selected","");return this}return s=c.attr("value"),this.attr().hasOwnProperty("multiple")&&(s=[],a(c,function(t,e){s.push(e.attribs.value)})),s;case"option":return e?this.attr("value"):(this.attr("value",t),this)}},function(t,e){t.attribs&&s.call(t.attribs,e)&&(h.test(t.attribs[e])?t.attribs[e]=!1:delete t.attribs[e])}),w=(e.removeAttr=function(t){return a(this,function(e,n){y(n,t)}),this},e.hasClass=function(t){return r.any(this,function(e){var n,r=e.attribs,o=r&&r.class,i=-1;if(o)for(;(i=o.indexOf(t,i+1))>-1;)if(n=i+t.length,(0===i||u.test(o[i-1]))&&(n===o.length||u.test(o[n])))return!0})},e.addClass=function(t){if("function"==typeof t)return a(this,function(e,n){var r=n.attribs.class||"";w.call([n],t.call(n,e,r))});if(!t||"string"!=typeof t)return this;for(var e=t.split(u),n=this.length,r=0;r<n;r++)if(i(this[r])){var o,s,c=b(this[r],"class");if(c){s=" "+c+" ",o=e.length;for(var l=0;l<o;l++){var f=e[l]+" ";~s.indexOf(" "+f)||(s+=f)}g(this[r],"class",s.trim())}else g(this[r],"class",e.join(" ").trim())}return this}),_=function(t){return t?t.trim().split(u):[]},x=e.removeClass=function(t){var e,n,r;return"function"==typeof t?a(this,function(e,n){x.call([n],t.call(n,e,n.attribs.class||""))}):(e=_(t),n=e.length,r=0===arguments.length,a(this,function(t,o){if(i(o))if(r)o.attribs.class="";else{for(var a,s,c=_(o.attribs.class),l=0;l<n;l++)a=c.indexOf(e[l]),a>=0&&(c.splice(a,1),s=!0,l--);s&&(o.attribs.class=c.join(" "))}}))},k=e.toggleClass=function(t,e){if("function"==typeof t)return a(this,function(n,r){k.call([r],t.call(r,n,r.attribs.class||"",e),e)});if(!t||"string"!=typeof t)return this;for(var n,r,o=t.split(u),s=o.length,c="boolean"==typeof e,l=this.length,f=0;f<l;f++)if(i(this[f])){n=_(this[f].attribs.class);for(var p=0;p<s;p++)r=c&&e?-1:n.indexOf(o[p]),(c?e:r<0)?n.push(o[p]):r>=0&&n.splice(r,1);this[f].attribs.class=n.join(" ")}return this};e.is=function(t){return!!t&&this.filter(t).length>0}},function(t,e,n){function r(t,e,n,r){for(var o=[];e&&o.length<r;)n&&!l.call([e],n,t).length||o.push(e),e=e.parent;return o}var o=n(199),i=n(203),a=n(200),s=a.domEach,c=a.isTag,l=(e.find=function(t){var e=o.reduce(this,function(t,e){return t.concat(o.filter(e.children,c))},[]);return this._make(i(t,e,this.options))},e.parent=function(t){var e=[];return s(this,function(t,n){var r=n.parent;r&&e.indexOf(r)<0&&e.push(r)}),arguments.length&&(e=l.call(e,t,this)),this._make(e)},e.parents=function(t){var e=[];return this.get().reverse().forEach(function(n){r(this,n.parent,t,1/0).forEach(function(t){e.indexOf(t)===-1&&e.push(t)})},this),this._make(e)},e.parentsUntil=function(t,e){var n,r,o=[];return"string"==typeof t?n=i(t,this.parents().toArray(),this.options)[0]:t&&t.cheerio?r=t.toArray():t&&(n=t),this.toArray().reverse().forEach(function(t){for(;(t=t.parent)&&(n&&t!==n||r&&r.indexOf(t)===-1||!n&&!r);)c(t)&&o.indexOf(t)===-1&&o.push(t)},this),this._make(e?i(e,o,this.options):o)},e.closest=function(t){var e=[];return t?(s(this,function(n,o){var i=r(this,o,t,1)[0];i&&e.indexOf(i)<0&&e.push(i)}.bind(this)),this._make(e)):this._make(e)},e.next=function(t){if(!this[0])return this;var e=[];return o.forEach(this,function(t){for(;t=t.next;)if(c(t))return void e.push(t)}),t?l.call(e,t,this):this._make(e)},e.nextAll=function(t){if(!this[0])return this;var e=[];return o.forEach(this,function(t){for(;t=t.next;)c(t)&&e.indexOf(t)===-1&&e.push(t)}),t?l.call(e,t,this):this._make(e)},e.nextUntil=function(t,e){if(!this[0])return this;var n,r,a=[];return"string"==typeof t?n=i(t,this.nextAll().get(),this.options)[0]:t&&t.cheerio?r=t.get():t&&(n=t),o.forEach(this,function(t){for(;(t=t.next)&&(n&&t!==n||r&&r.indexOf(t)===-1||!n&&!r);)c(t)&&a.indexOf(t)===-1&&a.push(t)}),e?l.call(a,e,this):this._make(a)},e.prev=function(t){if(!this[0])return this;var e=[];return o.forEach(this,function(t){for(;t=t.prev;)if(c(t))return void e.push(t)}),t?l.call(e,t,this):this._make(e)},e.prevAll=function(t){if(!this[0])return this;var e=[];return o.forEach(this,function(t){for(;t=t.prev;)c(t)&&e.indexOf(t)===-1&&e.push(t)}),t?l.call(e,t,this):this._make(e)},e.prevUntil=function(t,e){if(!this[0])return this;var n,r,a=[];return"string"==typeof t?n=i(t,this.prevAll().get(),this.options)[0]:t&&t.cheerio?r=t.get():t&&(n=t),o.forEach(this,function(t){for(;(t=t.prev)&&(n&&t!==n||r&&r.indexOf(t)===-1||!n&&!r);)c(t)&&a.indexOf(t)===-1&&a.push(t)}),e?l.call(a,e,this):this._make(a)},e.siblings=function(t){var e=this.parent(),n=o.filter(e?e.children():this.siblingsAndMe(),function(t){return c(t)&&!this.is(t)},this);return void 0!==t?l.call(n,t,this):this._make(n)},e.children=function(t){var e=o.reduce(this,function(t,e){return t.concat(o.filter(e.children,c))},[]);return void 0===t?this._make(e):"number"==typeof t?this._make(e[t]):l.call(e,t,this)},e.contents=function(){return this._make(o.reduce(this,function(t,e){return t.push.apply(t,e.children),t},[]))},e.each=function(t){for(var e=0,n=this.length;e<n&&t.call(this[e],e,this[e])!==!1;)++e;return this},e.map=function(t){return this._make(o.reduce(this,function(e,n,r){var o=t.call(n,r,n);return null==o?e:e.concat(o)},[]))},e.filter=function(t,e){e=e||this;var n,r=o.bind(e._make,e);return n="string"==typeof t?i.compile(t,e.options):"function"==typeof t?function(e,n){return t.call(e,n,e)}:t.cheerio?t.is.bind(t):function(e){return t===e},r(o.filter(this,n))});e.first=function(){return this.length>1?this._make(this[0]):this},e.last=function(){return this.length>1?this._make(this[this.length-1]):this},e.eq=function(t){return t=+t,0===t&&this.length<=1?this:(t<0&&(t=this.length+t),this[t]?this._make(this[t]):this._make([]))},e.get=function(t){return null==t?Array.prototype.slice.call(this):this[t<0?this.length+t:t]},e.slice=function(){return this._make([].slice.apply(this,arguments))},e.end=function(){return this.prevObject||this._make([])}},function(t,e,n){"use strict";function r(t){return function(e,n,r){return"function"!=typeof e&&(e=d(e,r)),n=Array.isArray(n)?f(n):u(n),t(e,n)}}function o(t,e,n){return("function"==typeof e?e:h(e,n))(t)}function i(t,e,n){return b(t,e,n)}t.exports=i;var a=n(204),s=n(205),c=s.findOne,l=s.findAll,u=s.getChildren,f=s.removeSubsets,p=n(214).falseFunc,h=n(216),d=h.compileUnsafe,b=r(function(t,e){return t!==p&&e&&0!==e.length?l(t,e):[]}),g=r(function(t,e){return t!==p&&e&&0!==e.length?c(t,e):null});i.compile=h,i.filters=a.filters,i.pseudos=a.pseudos,i.selectAll=b,i.selectOne=g,i.is=o,i.parse=h,i.iterate=b},function(t,e,n){function r(t){for(var e=0;t&&e<t.length;e++)if(c(t[e]))return t[e]}function o(t,e){var n={name:t,value:e};return function(t){return m(t,n)}}function i(t){return function(e){return!!u(e)&&t(e)}}function a(t,e,n){if(null===n){if(t.length>1)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 s=n(205),c=s.isTag,l=s.getText,u=s.getParent,f=s.getChildren,p=s.getSiblings,h=s.hasAttrib,d=s.getName,b=s.getAttributeValue,g=n(213),m=n(215).rules.equals,v=n(214),y=v.trueFunc,w=v.falseFunc,_={contains:function(t,e){return'"'!==e.charAt(0)&&"'"!==e.charAt(0)||e.charAt(0)!==e.substr(-1)||(e=e.slice(1,-1)),function(n){return l(n).indexOf(e)>=0&&t(n)}},"first-child":function(t){return function(e){return r(p(e))===e&&t(e)}},"last-child":function(t){return function(e){for(var n=p(e),r=n.length-1;r>=0;r--){if(n[r]===e)return t(e);if(c(n[r]))break}return!1}},"first-of-type":function(t){return function(e){for(var n=p(e),r=0;r<n.length;r++)if(c(n[r])){if(n[r]===e)return t(e);if(d(n[r])===d(e))break}return!1}},"last-of-type":function(t){return function(e){for(var n=p(e),r=n.length-1;r>=0;r--)if(c(n[r])){if(n[r]===e)return t(e);if(d(n[r])===d(e))break}return!1}},"only-of-type":function(t){return function(e){for(var n=p(e),r=0,o=n.length;r<o;r++)if(c(n[r])){if(n[r]===e)continue;if(d(n[r])===d(e))return!1}return t(e)}},"only-child":function(t){return function(e){for(var n=p(e),r=0;r<n.length;r++)if(c(n[r])&&n[r]!==e)return!1;return t(e)}},"nth-child":function(t,e){var n=g(e);return n===w?n:n===y?i(t):function(e){for(var r=p(e),o=0,i=0;o<r.length;o++)if(c(r[o])){if(r[o]===e)break;i++}return n(i)&&t(e)}},"nth-last-child":function(t,e){var n=g(e);return n===w?n:n===y?i(t):function(e){for(var r=p(e),o=0,i=r.length-1;i>=0;i--)if(c(r[i])){if(r[i]===e)break;o++}return n(o)&&t(e)}},"nth-of-type":function(t,e){var n=g(e);return n===w?n:n===y?i(t):function(e){for(var r=p(e),o=0,i=0;i<r.length;i++)if(c(r[i])){if(r[i]===e)break;d(r[i])===d(e)&&o++}return n(o)&&t(e)}},"nth-last-of-type":function(t,e){var n=g(e);return n===w?n:n===y?i(t):function(e){for(var r=p(e),o=0,i=r.length-1;i>=0&&r[i]!==e;i--)d(r[i])===d(e)&&o++;return n(o)&&t(e)}},checkbox:o("type","checkbox"),file:o("type","file"),password:o("type","password"),radio:o("type","radio"),reset:o("type","reset"),image:o("type","image"),submit:o("type","submit")},x={root:function(t){return!u(t)},empty:function(t){return!f(t).some(function(t){return c(t)||"text"===t.type})},selected:function(t){if(h(t,"selected"))return!0;if("option"!==d(t))return!1;var e=u(t);if(!e||"select"!==d(e))return!1;for(var n=f(e),r=!1,o=0;o<n.length;o++)if(c(n[o]))if(n[o]===t)r=!0;else{if(!r)return!1;if(h(n[o],"selected"))return!1}return r},disabled:function(t){return h(t,"disabled")},enabled:function(t){return!h(t,"disabled")},checked:function(t){return h(t,"checked")||x.selected(t)},parent:function(t){return!x.empty(t)},header:function(t){var e=d(t);return"h1"===e||"h2"===e||"h3"===e||"h4"===e||"h5"===e||"h6"===e},button:function(t){var e=d(t);return"button"===e||"input"===e&&"button"===b(t,"type")},input:function(t){var e=d(t);return"input"===e||"textarea"===e||"select"===e||"button"===e},text:function(t){var e;return"input"===d(t)&&(!(e=b(t,"type"))||"text"===e.toLowerCase())}};t.exports={compile:function(t,e){var n=e.name,r=e.data;if("function"==typeof _[n])return a(_[n],n,r),_[n](t,r);if("function"==typeof x[n]){var o=x[n];return a(o,n,r),function(e){return o(e,r)&&t(e)}}throw new SyntaxError("unmatched pseudo-class :"+n)},filters:_,pseudos:x}},[235,206,208,209,210,211,212],[236,207],115,161,162,[237,207],[238,207],function(t,e){e.removeSubsets=function(t){for(var e,n,r,o=t.length;--o>-1;){for(e=n=t[o],t[o]=null,r=!0;n;){if(t.indexOf(n)>-1){r=!1,t.splice(o,1);break}n=n.parent}r&&(t[o]=e)}return t}},[239,214],function(t,e){t.exports={trueFunc:function(){return!0},falseFunc:function(){return!1}}},function(t,e,n){var r=n(205),o=r.hasAttrib,i=r.getAttributeValue,a=n(214).falseFunc,s=/[-[\]{}()*+?.,\\^$|#\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 o=i(e,n);return null!=o&&o.toLowerCase()===r&&t(e)}):function(e){return i(e,n)===r&&t(e)}},hyphen:function(t,e){var n=e.name,r=e.value,o=r.length;return e.ignoreCase?(r=r.toLowerCase(),function(e){var a=i(e,n);return null!=a&&(a.length===o||"-"===a.charAt(o))&&a.substr(0,o).toLowerCase()===r&&t(e)}):function(e){var a=i(e,n);return null!=a&&a.substr(0,o)===r&&(a.length===o||"-"===a.charAt(o))&&t(e)}},element:function(t,e){var n=e.name,r=e.value;if(/\s/.test(r))return a;r=r.replace(s,"\\$&");var o="(?:^|\\s)"+r+"(?:$|\\s)",c=e.ignoreCase?"i":"",l=new RegExp(o,c);return function(e){var r=i(e,n);return null!=r&&l.test(r)&&t(e)}},exists:function(t,e){var n=e.name;return function(e){return o(e,n)&&t(e)}},start:function(t,e){var n=e.name,r=e.value,o=r.length;return 0===o?a:e.ignoreCase?(r=r.toLowerCase(),function(e){var a=i(e,n);return null!=a&&a.substr(0,o).toLowerCase()===r&&t(e)}):function(e){var a=i(e,n);return null!=a&&a.substr(0,o)===r&&t(e)}},end:function(t,e){var n=e.name,r=e.value,o=-r.length;return 0===o?a:e.ignoreCase?(r=r.toLowerCase(),function(e){var a=i(e,n);return null!=a&&a.substr(o).toLowerCase()===r&&t(e)}):function(e){var a=i(e,n);return null!=a&&a.substr(o)===r&&t(e)}},any:function(t,e){var n=e.name,r=e.value;if(""===r)return a;if(e.ignoreCase){var o=new RegExp(r.replace(s,"\\$&"),"i");return function(e){var r=i(e,n);return null!=r&&o.test(r)&&t(e)}}return function(e){var o=i(e,n);return null!=o&&o.indexOf(r)>=0&&t(e)}},not:function(t,e){var n=e.name,r=e.value;return""===r?function(e){return!!i(e,n)&&t(e)}:e.ignoreCase?(r=r.toLowerCase(),function(e){var o=i(e,n);return null!=o&&o.toLowerCase()!==r&&t(e)}):function(e){return i(e,n)!==r&&t(e)}}};t.exports={compile:function(t,e){return c[e.action](t,e)},rules:c}},function(t,e,n){function r(t,e){var n=o(t,e);return function(t){return l(t)&&n(t)}}function o(t,e){return s(t,e).map(i).reduce(a,d)}function i(t){return 0===t.length?d:f(t).reduce(function(t,e){return t===d?t:u[e.type](t,e)},h)}function a(t,e){return e===d||t===h?t:t===d||e===h?e:function(n){return t(n)||e(n)}}t.exports=r,t.exports.compileUnsafe=o;var s=n(217),c=n(205),l=c.isTag,u=n(218),f=n(219),p=n(214),h=p.trueFunc,d=p.falseFunc,b=n(204),g=b.filters,m=b.pseudos.parent,v=c.existsOne,y=c.getChildren;g.not=function(t,e){var n=o(e);return n===d?t:n===h?d:function(e){return!n(e)&&t(e)}},g.has=function(t,e){var n=r(e);return n===d?d:n===h?function(e){return m(e)&&t(e)}:function(e){return t(e)&&v(n,y(e))}}},181,function(t,e,n){var r=n(205),o=r.isTag,i=r.getParent,a=r.getChildren,s=r.getSiblings,c=r.getName;t.exports={__proto__:null,attribute:n(215).compile,pseudo:n(204).compile,tag:function(t,e){var n=e.name;return function(e){return c(e)===n&&t(e)}},descendant:function(t){return function(e){for(var n=!1;!n&&(e=i(e));)n=t(e);return n}},parent:function(t){return function(e){return a(e).some(t)}},child:function(t){return function(e){var n=i(e);return!!n&&t(n)}},sibling:function(t){return function(e){for(var n=s(e),r=0;r<n.length;r++)if(o(n[r])){if(n[r]===e)break;if(t(n[r]))return!0}return!1}},adjacent:function(t){return function(e){for(var n,r=s(e),i=0;i<r.length;i++)if(o(r[i])){if(r[i]===e)break;n=r[i]}return!!n&&t(n)}},universal:function(t){return t}}},function(t,e){function n(t){for(var e=1;e<t.length;e++){var n=o[t[e].type];if(!(n<0))for(var a=e-1;a>=0&&(!(n>o[t[a].type])&&(n===r&&o[t[a].type]===r&&i[t[e].action]<=i[t[a].action]));a--){var s=t[a+1];t[a+1]=t[a],t[a]=s}}return t}t.exports=n;var r=1,o={__proto__:null,universal:5,tag:3,attribute:r,pseudo:0,descendant:-1,child:-1,parent:-1,sibling:-1,adjacent:-1},i={__proto__:null,exists:8,equals:7,not:6,start:5,end:4,any:3,hyphen:2,element:1}},function(t,e,n){var r=n(199),o=n(198),i=n(221),a=o.update,s=o.evaluate,c=n(200),l=c.domEach,u=(c.encode,Array.prototype.slice);e._makeDomArray=function t(e){return null==e?[]:e.cheerio?e.get():Array.isArray(e)?r.flatten(e.map(t,this)):"string"==typeof e?s(e,this.options):[e]};var f=function(t){return function(){var e=this,n=u.call(arguments),r=this._makeDomArray(n);return"function"==typeof n[0]?l(this,function(o,a){r=e._makeDomArray(n[0].call(a,o,i.html(a.children))),t(r,a.children,a)}):l(this,function(e,n){t(r,n.children,n)})}},p=function(t,e,n,r,o){var i,a,s,c,l,u=[e,n].concat(r),f=t[e-1]||null,p=t[e]||null;for(i=0,a=r.length;i<a;++i)c=r[i],l=c.parent||c.root,s=l&&l.children.indexOf(r[i]),l&&s>-1&&(l.children.splice(s,1),o===l&&e>s&&u[0]--),c.root=null,c.parent=o,c.prev=r[i-1]||f,c.next=r[i+1]||p;return f&&(f.next=r[0]),p&&(p.prev=r[r.length-1]),t.splice.apply(t,u)},h=(e.append=f(function(t,e,n){p(e,e.length,0,t,n)}),e.prepend=f(function(t,e,n){p(e,0,0,t,n)}),e.after=function(){var t=u.call(arguments),e=this._makeDomArray(t),n=this;return l(this,function(r,o){var i=o.parent||o.root;if(i){var a=i.children,s=a.indexOf(o);~s&&("function"==typeof t[0]&&(e=n._makeDomArray(t[0].call(o,r))),p(a,++s,0,e,i))}}),this},e.before=function(){var t=u.call(arguments),e=this._makeDomArray(t),n=this;return l(this,function(r,o){var i=o.parent||o.root;if(i){var a=i.children,s=a.indexOf(o);~s&&("function"==typeof t[0]&&(e=n._makeDomArray(t[0].call(o,r))),p(a,s,0,e,i))}}),this},e.remove=function(t){var e=this;return t&&(e=e.filter(t)),l(e,function(t,e){var n=e.parent||e.root;if(n){var r=n.children,o=r.indexOf(e);~o&&(r.splice(o,1),e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.prev=e.next=e.parent=e.root=null)}}),this},e.replaceWith=function(t){var e=this;return l(this,function(n,r){var o=r.parent||r.root;if(o){var i,s=o.children,c=e._makeDomArray("function"==typeof t?t.call(r,n,r):t);a(c,null),i=s.indexOf(r),p(s,i,1,c,o),r.parent=r.prev=r.next=r.root=null}}),this},e.empty=function(){return l(this,function(t,e){r.each(e.children,function(t){t.next=t.prev=t.parent=null}),e.children.length=0}),this},e.html=function(t){return void 0===t?this[0]&&this[0].children?i.html(this[0].children):null:(t=t.cheerio?t.get():s(t,this.options),l(this,function(e,n){r.each(n.children,function(t){t.next=t.prev=t.parent=null}),a(t,n)}),this)},e.toString=function(){return i.html(this)},e.text=function(t){if(void 0===t)return i.text(this);if("function"==typeof t)return l(this,function(e,n){var r=[n];return h.call(r,t.call(n,e,i.text(r)))});var e={data:t,type:"text",parent:null,prev:null,next:null,children:[]};return l(this,function(t,n){r.each(n.children,function(t){t.next=t.prev=t.parent=null}),a(e,n)}),this});e.clone=function(){return this._make(i.html(this))}},function(t,e,n){var r=n(203),o=n(198),i=n(222),a=n(199),s=(e.load=function(t,r){var i=n(196);r=a.defaults(r||{},i.prototype.options);var s=o(t,r),c=function(t,e,n,o){return o=a.defaults(o||{},r),new i(t,e,n||s,o)};return c.__proto__=e,c._root=s,c},e.html=function(t){return t?(t="string"==typeof t?r(t,this._root,this.options):t,i(t,this.options)):this._root&&this._root.children?i(this._root.children,this.options):""},e.xml=function(t){return t?(t="string"==typeof t?r(t,this._root,this.options):t,i(t,{xmlMode:!0})):this._root&&this._root.children?i(this._root.children,{xmlMode:!0}):""},e.text=function(t){if(!t)return"";for(var e,n="",r=t.length,o=0;o<r;o++)e=t[o],"text"===e.type?n+=e.data:e.children&&"comment"!==e.type&&(n+=s(e.children));return n});e.parseHTML=function(t,e,n){var r;return t&&"string"==typeof t?("boolean"==typeof e&&(n=e),r=this.load(t),n||r("script").remove(),r.root()[0].children):null},e.root=function(){return this(this._root)},e.contains=function(t,e){if(e===t)return!1;for(;e&&e!==e.parent;)if(e=e.parent,e===t)return!0;return!1}},function(t,e,n){var r=n(199),o=n(200),i=n(223),a={__proto__:null,autofocus:!0,autoplay:!0,async:!0,checked:!0,controls:!0,defer:!0,disabled:!0,hidden:!0,loop:!0,multiple:!0,open:!0,readonly:!0,required:!0,scoped:!0,selected:!0},s=function(t){if(t){var e,n="";for(var r in t)e=t[r],n&&(n+=" "),n+=!e&&a[r]?r:r+'="'+i.escape(e||"")+'"';return n}},c={__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,path:!0,circle:!0,ellipse:!0,line:!0,rect:!0,use:!0},l=t.exports=function(t,e){Array.isArray(t)||t.cheerio||(t=[t]),e=e||{};var n="",i=e.xmlMode;return r.each(t,function(t){var r,a=o.isTag(t.type);r=a?f(t,i):"directive"===t.type?p(t):"comment"===t.type?b(t):"cdata"===t.type?d(t):h(t),t.children&&"cdata"!==t.type&&(r+=l(t.children,e)),!a||c[t.name]&&!i||u(t,i)||(r+="</"+t.name+">"),n+=r}),n},u=function(t,e){return e&&(!t.children||0===t.children.length)},f=function(t,e){var n="<"+t.name,r=s(t.attribs);return r&&(n+=" "+r),u(t,e)&&(n+="/"),n+">"},p=function(t){return"<"+t.data+">"},h=function(t){return i.encodeXML(t.data||"")},d=function(t){return"<![CDATA["+t.children[0].data+"]]>"},b=function(t){return"<!--"+t.data+"-->"}},function(t,e,n){var r=n(224),o=n(227);e.decode=function(t,e){return(!e||e<=0?o.XML:o.HTML)(t)},e.decodeStrict=function(t,e){return(!e||e<=0?o.XML:o.HTMLStrict)(t)},e.encode=function(t,e){return(!e||e<=0?r.XML:r.HTML)(t)},e.encodeXML=r.XML,e.encodeHTML4=e.encodeHTML5=e.encodeHTML=r.HTML,e.decodeXML=e.decodeXMLStrict=o.XML,e.decodeHTML4=e.decodeHTML5=e.decodeHTML=o.HTML,e.decodeHTML4Strict=e.decodeHTML5Strict=e.decodeHTMLStrict=o.HTMLStrict,e.escape=r.escape},function(t,e,n){function r(t){return Object.keys(t).sort().reduce(function(e,n){return e[t[n]]="&"+n+";",e},{})}function o(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")}function i(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"}function a(t){var e=t.charCodeAt(0),n=t.charCodeAt(1),r=1024*(e-55296)+n-56320+65536;return"&#x"+r.toString(16).toUpperCase()+";"}function s(t,e){function n(e){return t[e]}return function(t){return t.replace(e,n).replace(d,a).replace(h,i)}}function c(t){return t.replace(b,i).replace(d,a).replace(h,i)}var l=r(n(225)),u=o(l);e.XML=s(l,u);var f=r(n(226)),p=o(f);e.HTML=s(f,p);var h=/[^\0-\x7F]/g,d=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,b=o(l);e.escape=c},112,110,function(t,e,n){function r(t){var e=Object.keys(t).join("|"),n=i(t);e+="|#[xX][\\da-fA-F]+|#\\d+";var r=new RegExp("&(?:"+e+");","g");return function(t){return String(t).replace(r,n)}}function o(t,e){return t<e?1:-1}function i(t){return function(e){return"#"===e.charAt(1)?l("X"===e.charAt(2)||"x"===e.charAt(2)?parseInt(e.substr(3),16):parseInt(e.substr(2),10)):t[e.slice(1,-1)]}}var a=n(226),s=n(228),c=n(225),l=n(229),u=r(c),f=r(a),p=function(){function t(t){return";"!==t.substr(-1)&&(t+=";"),u(t)}for(var e=Object.keys(s).sort(o),n=Object.keys(a).sort(o),r=0,c=0;r<n.length;r++)e[c]===n[r]?(n[r]+=";?",c++):n[r]+=";";var l=new RegExp("&(?:"+n.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),u=i(a);return function(e){return String(e).replace(l,t)}}();t.exports={XML:u,HTML:p,HTMLStrict:f}},111,[234,230],109,function(t,e,n){function r(t,e,n,a){if("string"==typeof e){var s=o(t);"function"==typeof n&&(n=n.call(t,a,t)),""===n?delete s[e]:null!=n&&(s[e]=n),t.attribs.style=i(s)}else"object"==typeof e&&Object.keys(e).forEach(function(n){r(t,n,e[n])})}function o(t,e){var n=a(t.attribs.style);return"string"==typeof e?n[e]:Array.isArray(e)?s.pick(n,e):n}function i(t){return Object.keys(t||{}).reduce(function(e,n){return e+=""+(e?" ":"")+n+": "+t[n]+";"},"")}function a(t){return t=(t||"").trim(),t?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)},{}):{}}var s=n(199),c=n(200).domEach,l=Object.prototype.toString;e.css=function(t,e){return 2===arguments.length||"[object Object]"===l.call(t)?c(this,function(n,o){r(o,t,e,n)}):o(this[0],t)}},function(t,e){t.exports={name:"cheerio",version:"0.16.0",description:"Tiny, fast, and elegant implementation of core jQuery designed specifically for the server",author:{name:"Matt Mueller",email:"[email protected]",url:"mat.io"},keywords:["htmlparser","jquery","selector","scraper","parser","html"],repository:{type:"git",url:"git://github.com/MatthewMueller/cheerio.git"},main:"./index.js",engines:{node:">= 0.6"},dependencies:{CSSselect:"~0.4.0",entities:"~1.1.1",htmlparser2:"~3.7.0",lodash:"~2.4.1"},devDependencies:{benchmark:"~1.0.0","expect.js":"~0.3.1",jsdom:"~0.8.9",jshint:"~2.3.0",mocha:"*",xyz:"~0.3.0"},scripts:{test:"make test"},readme:"# cheerio [](http://travis-ci.org/cheeriojs/cheerio)\n\nFast, flexible, and lean implementation of core jQuery designed specifically for the server.\n\n## Introduction\nTeach your server HTML.\n\n```js\nvar cheerio = require('cheerio'),\n $ = cheerio.load('<h2 class=\"title\">Hello world</h2>');\n\n$('h2.title').text('Hello there!');\n$('h2').addClass('welcome');\n\n$.html();\n//=> <h2 class=\"title welcome\">Hello there!</h2>\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 @FB55's forgiving [htmlparser2](https://github.com/fb55/htmlparser2/). Cheerio can parse nearly any HTML or XML document.\n\n## What about JSDOM?\nI wrote cheerio because I found myself increasingly frustrated with JSDOM. For me, there were three main sticking points that I kept running into again and again:\n\n__• JSDOM's built-in parser is too strict:__\n JSDOM's bundled HTML parser cannot handle many popular sites out there today.\n\n__• JSDOM is too slow:__\nParsing big websites with JSDOM has a noticeable delay.\n\n__• JSDOM feels too heavy:__\nThe goal of JSDOM is to provide an identical DOM environment as what we see in the browser. I never really needed all this, I just wanted a simple, familiar way to do HTML manipulation.\n\n## When I would use JSDOM\n\nCheerio will not solve all your problems. I would still use JSDOM if I needed to work in a browser-like environment on the server, particularly if I wanted to automate functional tests.\n\n## API\n\n### Markup example we'll be using:\n\n```html\n<ul id=\"fruits\">\n <li class=\"apple\">Apple</li>\n <li class=\"orange\">Orange</li>\n <li class=\"pear\">Pear</li>\n</ul>\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\nvar cheerio = require('cheerio'),\n $ = cheerio.load('<ul id=\"fruits\">...</ul>');\n```\n\nOptionally, you can also load in the HTML by passing the string as the context:\n\n```js\n$ = require('cheerio');\n$('ul', '<ul id=\"fruits\">...</ul>');\n```\n\nOr as the root:\n\n```js\n$ = require('cheerio');\n$('li', 'ul', '<ul id=\"fruits\">...</ul>');\n```\n\nYou can also pass an extra object to `.load()` if you need to modify any\nof the default parsing options:\n\n```js\n$ = cheerio.load('<ul id=\"fruits\">...</ul>', {\n normalizeWhitespace: true,\n xmlMode: true\n});\n```\n\nThese parsing options 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 normalizeWhitespace: false,\n xmlMode: false,\n decodeEntities: true\n}\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\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 an 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//=> <li class=\"orange\">Orange</li>\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//=> <li class=\"apple\" id=\"favorite\">Apple</li>\n```\n\n> See http://api.jquery.com/attr/ 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$('<div data-apple-color=\"red\"></div>').data()\n//=> { appleColor: 'red' }\n\n$('<div data-apple-color=\"red\"></div>').data('data-apple-color')\n//=> 'red'\n\nvar 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//=> <input type=\"text\" value=\"test\"/>\n```\n\n#### .removeAttr( name )\nMethod for removing attributes by `name`.\n\n```js\n$('.pear').removeAttr('class').html()\n//=> <li>Pear</li>\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//=> <li class=\"pear fruit\">Pear</li>\n\n$('.apple').addClass('fruit red').html()\n//=> <li class=\"apple fruit red\">Apple</li>\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//=> <li class=\"\">Pear</li>\n\n$('.apple').addClass('red').removeClass().html()\n//=> <li class=\"\">Apple</li>\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//=> <li class=\"apple fruit red\">Apple</li>\n\n$('.apple.green').toggleClass('fruit green red', true).html()\n//=> <li class=\"apple green fruit red\">Apple</li>\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\n### Traversing\n\n#### .find(selector)\nGet a set of descendants filtered by `selector` of each element in the current set of matched elements.\n\n```js\n$('#fruits').find('li').length\n//=> 3\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// => [<li class=\"orange\">Orange</li>]\n$('.orange').closest('#fruits')\n// => [<ul id=\"fruits\"> ... </ul>]\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()\nGets all the following siblings of the first selected element.\n\n```js\n$('.apple').nextAll()\n//=> [<li class=\"orange\">Orange</li>, <li class=\"pear\">Pear</li>]\n```\n\n#### .nextUntil()\nGets all the following siblings up to but not including the element matched by the selector.\n\n```js\n$('.apple').nextUntil('.pear')\n//=> [<li class=\"orange\">Orange</li>]\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()\nGets all the preceding siblings of the first selected element.\n\n```js\n$('.pear').prevAll()\n//=> [<li class=\"orange\">Orange</li>, <li class=\"apple\">Apple</li>]\n```\n\n#### .prevUntil()\nGets all the preceding siblings up to but not including the element matched by the selector.\n\n```js\n$('.pear').prevUntil('.apple')\n//=> [<li class=\"orange\">Orange</li>]\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\nvar 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 $('<div>').text($(this).text());\n}).html();\n//=> <div>apple</div><div>orange</div><div>pear</div>\n```\n\n#### .filter( selector ) <br /> .filter( selection ) <br /> .filter( element ) <br /> .filter( function(index) )\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#### .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).name\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#### .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### 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('<li class=\"plum\">Plum</li>')\n$.html()\n//=> <ul id=\"fruits\">\n// <li class=\"apple\">Apple</li>\n// <li class=\"orange\">Orange</li>\n// <li class=\"pear\">Pear</li>\n// <li class=\"plum\">Plum</li>\n// </ul>\n```\n\n#### .prepend( content, [content, ...] )\nInserts content as the *first* child of each of the selected elements.\n\n```js\n$('ul').prepend('<li class=\"plum\">Plum</li>')\n$.html()\n//=> <ul id=\"fruits\">\n// <li class=\"plum\">Plum</li>\n// <li class=\"apple\">Apple</li>\n// <li class=\"orange\">Orange</li>\n// <li class=\"pear\">Pear</li>\n// </ul>\n```\n\n#### .after( content, [content, ...] )\nInsert content next to each element in the set of matched elements.\n\n```js\n$('.apple').after('<li class=\"plum\">Plum</li>')\n$.html()\n//=> <ul id=\"fruits\">\n// <li class=\"apple\">Apple</li>\n// <li class=\"plum\">Plum</li>\n// <li class=\"orange\">Orange</li>\n// <li class=\"pear\">Pear</li>\n// </ul>\n```\n\n#### .before( content, [content, ...] )\nInsert content previous to each element in the set of matched elements.\n\n```js\n$('.apple').before('<li class=\"plum\">Plum</li>')\n$.html()\n//=> <ul id=\"fruits\">\n// <li class=\"plum\">Plum</li>\n// <li class=\"apple\">Apple</li>\n// <li class=\"orange\">Orange</li>\n// <li class=\"pear\">Pear</li>\n// </ul>\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//=> <ul id=\"fruits\">\n// <li class=\"apple\">Apple</li>\n// <li class=\"orange\">Orange</li>\n// </ul>\n```\n\n#### .replaceWith( content )\nReplaces matched elements with `content`.\n\n```js\nvar plum = $('<li class=\"plum\">Plum</li>')\n$('.pear').replaceWith(plum)\n$.html()\n//=> <ul id=\"fruits\">\n// <li class=\"apple\">Apple</li>\n// <li class=\"orange\">Orange</li>\n// <li class=\"plum\">Plum</li>\n// </ul>\n```\n\n#### .empty()\nEmpties an element, removing all it's children.\n\n```js\n$('ul').empty()\n$.html()\n//=> <ul id=\"fruits\"></ul>\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('<li class=\"mango\">Mango</li>').html()\n//=> <li class=\"mango\">Mango</li>\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#### .css( [propertName] ) <br /> .css( [ propertyNames] ) <br /> .css( [propertyName], [value] ) <br /> .css( [propertName], [function] ) <br /> .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//=> <ul id=\"fruits\">\n// <li class=\"apple\">Apple</li>\n// <li class=\"orange\">Orange</li>\n// <li class=\"pear\">Pear</li>\n// </ul>\n```\n\nIf you want to return the outerHTML you can use `$.html(selector)`:\n\n```js\n$.html('.pear')\n//=> <li class=\"pear\">Pear</li>\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\n$ = cheerio.load('<media:thumbnail url=\"http://www.foo.com/keyframe.jpg\" width=\"75\" height=\"50\" time=\"12:05:01.123\"/>');\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//=> <media:thumbnail url=\"http://www.foo.com/keyframe.jpg\" width=\"75\" height=\"50\" time=\"12:05:01.123\"/>\n```\n\n\n### Miscellaneous\nDOM element methods that don't fit anywhere else\n\n#### .clone() ####\nClone the cheerio object.\n\n```js\nvar 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('<ul id=\"vegetables\"></ul>').html();\n//=> <ul id=\"fruits\">...</ul><ul id=\"vegetables\"></ul>\n```\n\n#### $.contains( container, contained )\nChecks to see if the `contained` DOM element is a descendent 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## 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## Test Coverage\n\nCheerio has high-test coverage, you can view the report [here](https://s3.amazonaws.com/MattMueller/Coverage/cheerio.html).\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## 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 [email protected] 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## 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\n(The MIT License)\n\nCopyright (c) 2012 Matt Mueller <[email protected]>\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n", | |
readmeFilename:"Readme.md",bugs:{url:"https://github.com/MatthewMueller/cheerio/issues"},homepage:"https://github.com/MatthewMueller/cheerio",_id:"[email protected]",_shasum:"780ae472692ea85e1e0fe332e806bdba98c16d0a",_from:"https://registry.npmjs.org/cheerio/-/cheerio-0.16.0.tgz",_resolved:"https://registry.npmjs.org/cheerio/-/cheerio-0.16.0.tgz"}},function(t,e,n){var r;r=function(){"use strict";function t(t){var e,n;t instanceof Error?(e=t,n=e.message):(n=""+(t||""),e=new Error(n)),this.message=n,this.stack=e.stack,this.name="ExtendedError"}function e(e,n){function r(){n.prototype.constructor.apply(this,arguments),this.name=e}return"undefined"==typeof n&&(n=t),r.prototype=Object.create(n.prototype),r.prototype.constructor=r,r}var n=Error,r={};return t.prototype=Object.create(n.prototype),t.prototype.constructor=t,r.ExtendedError=t,r.create_custom_error=e,r.LogicError=e("LogicError"),r.InvalidArgument=e("InvalidArgument",r.LogicError),r.LengthError=e("LengthError",r.LogicError),r.OutOfRange=e("OutOfRange",r.LogicError),r.RuntimeError=e("RuntimeError"),r.NotImplemented=e("NotImplemented",r.RuntimeError),r.UnknownEnumValue=e("UnknownEnumValue",r.RuntimeError),r.IllegalState=e("IllegalState",r.RuntimeError),r.InvariantNotMet=e("InvariantNotMet",r.LogicError),r}.call(e,n,e,t),!(void 0!==r&&(t.exports=r))},function(t,e,n,r){function o(t){if(t>=55296&&t<=57343||t>1114111)return"�";t in i&&(t=i[t]);var e="";return t>65535&&(t-=65536,e+=String.fromCharCode(t>>>10&1023|55296),t=56320|1023&t),e+=String.fromCharCode(t)}var i=n(r);t.exports=o},function(t,e,n,r,o,i,a,s,c){var l=t.exports;[n(r),n(o),n(i),n(a),n(s),n(c)].forEach(function(t){Object.keys(t).forEach(function(e){l[e]=t[e].bind(l)})})},function(t,e,n,r){function o(t){return t.children?t.children.map(i).join(""):""}function i(t){switch(t.type){case s.Text:return t.data;case s.Comment:return"<!--"+t.data+"-->";case s.Directive:return"<"+t.data+">";case s.CDATA:return"<!CDATA "+o(t)+"]]>"}var e="<"+t.name;if("attribs"in t)for(var n in t.attribs)if(t.attribs.hasOwnProperty(n)){e+=" "+n;var r=t.attribs[n];null==r?n in l||(e+='=""'):e+='="'+r+'"'}return t.name in u&&0===t.children.length?e+" />":e+">"+o(t)+"</"+t.name+">"}function a(t){return Array.isArray(t)?t.map(a).join(""):c(t)||t.type===s.CDATA?a(t.children):t.type===s.Text?t.data:""}var s=n(r),c=s.isTag;t.exports={getInnerHTML:o,getOuterHTML:i,getText:a};var l={__proto__:null,async:!0,autofocus:!0,autoplay:!0,checked:!0,controls:!0,defer:!0,disabled:!0,hidden:!0,loop:!0,multiple:!0,open:!0,readonly:!0,required:!0,scoped:!0,selected:!0},u={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,link:!0,meta:!0,param:!0,embed:!0}},function(t,e,n,r){function o(t,e,n,r){return Array.isArray(e)||(e=[e]),"number"==typeof r&&isFinite(r)||(r=1/0),i(t,e,n!==!1,r)}function i(t,e,n,r){for(var o,a=[],s=0,c=e.length;s<c&&!(t(e[s])&&(a.push(e[s]),--r<=0))&&(o=e[s].children,!(n&&o&&o.length>0&&(o=i(t,o,n,r),a=a.concat(o),r-=o.length,r<=0)));s++);return a}function a(t,e){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n];return null}function s(t,e){for(var n=null,r=0,o=e.length;r<o&&!n;r++)u(e[r])&&(t(e[r])?n=e[r]:e[r].children.length>0&&(n=s(t,e[r].children)));return n}function c(t,e){for(var n=0,r=e.length;n<r;n++)if(u(e[n])&&(t(e[n])||e[n].children.length>0&&c(t,e[n].children)))return!0;return!1}function l(t,e){for(var n=[],r=0,o=e.length;r<o;r++)u(e[r])&&(t(e[r])&&n.push(e[r]),e[r].children.length>0&&(n=n.concat(l(t,e[r].children))));return n}var u=n(r).isTag;t.exports={filter:o,find:i,findOneChild:a,findOne:s,existsOne:c,findAll:l}},function(t,e,n,r){function o(t,e){return"function"==typeof e?function(n){return n.attribs&&e(n.attribs[t])}:function(n){return n.attribs&&n.attribs[t]===e}}function i(t,e){return function(n){return t(n)||e(n)}}var a=n(r),s=e.isTag=a.isTag;e.testElement=function(t,e){for(var n in t)if(t.hasOwnProperty(n)){if("tag_name"===n){if(!s(e)||!t.tag_name(e.name))return!1}else if("tag_type"===n){if(!t.tag_type(e.type))return!1}else if("tag_contains"===n){if(s(e)||!t.tag_contains(e.data))return!1}else if(!e.attribs||!t[n](e.attribs[n]))return!1}else;return!0};var c={tag_name:function(t){return"function"==typeof t?function(e){return s(e)&&t(e.name)}:"*"===t?s:function(e){return s(e)&&e.name===t}},tag_type:function(t){return"function"==typeof t?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return"function"==typeof t?function(e){return!s(e)&&t(e.data)}:function(e){return!s(e)&&e.data===t}}};e.getElements=function(t,e,n,r){var a=Object.keys(t).map(function(e){var n=t[e];return e in c?c[e](n):o(e,n)});return 0===a.length?[]:this.filter(a.reduce(i),e,n,r)},e.getElementById=function(t,e,n){return Array.isArray(e)||(e=[e]),this.findOne(o("id",t),e,n!==!1)},e.getElementsByTagName=function(t,e,n,r){return this.filter(c.tag_name(t),e,n,r)},e.getElementsByTagType=function(t,e,n,r){return this.filter(c.tag_type(t),e,n,r)}},function(t,e,n,r){function o(t){if(t=t.trim().toLowerCase(),"even"===t)return[2,0];if("odd"===t)return[2,1];var e=t.match(l);if(!e)throw new SyntaxError("n-th rule couldn't be parsed ('"+t+"')");var n;return e[1]?(n=parseInt(e[1],10),n||(n="-"===e[1].charAt(0)?-1:1)):n=0,[n,e[3]?parseInt((e[2]||"")+e[3],10):0]}function i(t){var e=t[0],n=t[1]-1;if(n<0&&e<=0)return c;if(e===-1)return function(t){return t<=n};if(0===e)return function(t){return t===n};if(1===e)return n<0?s:function(t){return t>=n};var r=n%e;return r<0&&(r+=e),e>1?function(t){return t>=n&&t%e===r}:(e*=-1,function(t){return t<=n&&t%e===r})}var a=n(r),s=a.trueFunc,c=a.falseFunc;t.exports=function(t){return i(o(t))},t.exports.parse=o,t.exports.compile=i;var l=/^([+\-]?\d*n)?\s*(?:([+\-]?)\s*(\d+))?$/}])); | |
//# sourceMappingURL=bookcision.js.map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment