From 575b817e5993e104ba28f1c4816912d9ac9a0243 Mon Sep 17 00:00:00 2001 From: Diwank Singh Tomer Date: Thu, 5 Jun 2025 21:57:21 +0530 Subject: [PATCH] modernize to idyll 5.x --- CLAUDE.md | 48 + dist/idyll-embed.min.js | 67 +- dist/idyll-embed.min.js.LICENSE.txt | 84 + dist/idyll-embed.min.js.map | 1 + index.html | 88 +- index.js | 45 +- package-lock.json | 18850 ++++++++++++++++++-------- package.json | 26 +- test-dev.html | 55 + test.html | 52 + webpack.config.js | 49 +- 11 files changed, 13928 insertions(+), 5437 deletions(-) create mode 100644 CLAUDE.md create mode 100644 dist/idyll-embed.min.js.LICENSE.txt create mode 100644 dist/idyll-embed.min.js.map create mode 100644 test-dev.html create mode 100644 test.html diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..82ceb2e --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,48 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +idyll-embed is a JavaScript library that bundles the Idyll runtime for embedding interactive Idyll documents directly into HTML pages. It provides a single minified script that can be included via a script tag, exposing global `Idyll` and `IdyllComponents` objects. + +## Commands + +### Build +```bash +npm run build +``` +Builds the project using webpack, creating `dist/idyll-embed.min.js`. + +### Development +```bash +npm install +``` +Install all dependencies before development. + +## Architecture + +The project has a simple architecture centered around bundling Idyll for browser use: + +1. **Entry Point**: `index.js` imports Idyll, React, and ReactDOM, then creates the global API: + - `Idyll.render(markup, container, options)` - Renders Idyll markup + - `Idyll.registerComponent(name, component)` - Registers custom components + - `window.IdyllComponents` - Exposes all built-in Idyll components + +2. **Build Process**: Webpack bundles everything into a single minified file, using Babel to transpile JSX and modern JavaScript. + +3. **Usage Pattern**: Users include the script, create a container div, and call `Idyll.render()` with their markup. + +## Key Dependencies + +- **idyll**: 5.x (core framework) +- **React/ReactDOM**: Bundled as Idyll's rendering engine +- **Webpack 4**: Build tooling +- **Babel**: JavaScript transpilation + +## Important Notes + +- The project was recently modernized to Idyll 5.x +- No test framework is currently set up +- The dist folder contains the built output +- Legacy build tools (browserify, uglify-js) are present in package.json but webpack is the primary build system \ No newline at end of file diff --git a/dist/idyll-embed.min.js b/dist/idyll-embed.min.js index 560ebac..4d4ec7e 100644 --- a/dist/idyll-embed.min.js +++ b/dist/idyll-embed.min.js @@ -1,65 +1,2 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=653)}([function(e,t,n){e.exports=n(353)()},function(e,t,n){"use strict";e.exports=n(309)},function(e,t,n){var r=n(112),i=n(44),o=n(116),a=n(29),s=n(87),u=n(6),l=Object.prototype.hasOwnProperty,c=o((function(e,t){if(s(t)||a(t))i(t,u(t),e);else for(var n in t)l.call(t,n)&&r(e,n,t[n])}));e.exports=c},function(e,t,n){var r=n(54),i=n(52),o=n(89),a=n(68),s=Object.prototype,u=s.hasOwnProperty,l=r((function(e,t){e=Object(e);var n=-1,r=t.length,l=r>2?t[2]:void 0;for(l&&o(t[0],t[1],l)&&(r=1);++n1),t})),s(e,c(e),n),l&&(n=i(n,7,u));for(var p=t.length;p--;)o(n,t[p]);return n}));e.exports=p},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return et?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),a=o.right,s=o.left,u=a,l=function(e,t){null==t&&(t=c);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);ne?1:t>=e?0:NaN},h=function(e){return null===e?NaN:+e},d=function(e,t){var n,r,i=e.length,o=0,a=-1,s=0,u=0;if(null==t)for(;++a1)return u/(o-1)},m=function(e,t){var n=d(e,t);return n?Math.sqrt(n):n},y=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a=n)for(r=i=n;++an&&(r=n),i=n)for(r=i=n;++an&&(r=n),i0)return[e];if((r=t0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s=0?(o>=A?10:o>=C?5:o>=_?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=A?10:o>=C?5:o>=_?2:1)}function T(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=A?i*=10:o>=C?i*=5:o>=_&&(i*=2),tp;)f.pop(),--h;var d,m=new Array(h+1);for(i=0;i<=h;++i)(d=m[i]=[]).x0=i>0?f[i-1]:c,d.x1=i=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}},F=function(e,t,n){return e=b.call(e,h).sort(r),Math.ceil((n-t)/(2*(O(e,.75)-O(e,.25))*Math.pow(e.length,-1/3)))},M=function(e,t,n){return Math.ceil((n-t)/(3.5*m(e)*Math.pow(e.length,-1/3)))},j=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++or&&(r=n)}else for(;++o=n)for(r=n;++or&&(r=n);return r},N=function(e,t){var n,r=e.length,i=r,o=-1,a=0;if(null==t)for(;++o=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n},I=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o=n)for(r=n;++on&&(r=n)}else for(;++o=n)for(r=n;++on&&(r=n);return r},L=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},z=function(e,t){if(n=e.length){var n,i,o=0,a=0,s=e[a];for(null==t&&(t=r);++o=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}var falafel=__webpack_require__(404),parse=__webpack_require__(408),_require=__webpack_require__(122),getChildren=_require.getChildren,getNodeName=_require.getNodeName,getProperties=_require.getProperties,getType=_require.getType,removeNodesByName=_require.removeNodesByName,isPropertyAccess=function(e){var t=e.parent.source().indexOf("."+e.name);if(-1===t)return!1;return!(t>="__idyllStateProxy".length&&"__idyllStateProxy"===e.parent.source().substr(t-"__idyllStateProxy".length,"__idyllStateProxy".length))},isObjectKey=function(e){return"Property"===e.parent.type&&e.parent.key===e},buildExpression=function(e,t,n){var r=[],i="";try{i=falafel(n?t:"var __idyllReturnValue = "+(t||"undefined"),(function(t){switch(t.type){case"Identifier":var n=isPropertyAccess(t)||isObjectKey(t);Object.keys(e).indexOf(t.name)>-1&&(r.push(t.name),n||t.update("__idyllStateProxy."+t.source()))}}))}catch(e){console.error(e)}return n?"\n ((context) => {\n var __idyllExpressionExecuted = false;\n var __idyllStateProxy = new Proxy({\n "+r.map((function(e){return e+": "+("refs"!==e?"context.__idyllCopy(context['"+e+"'])":"context['"+e+"']")})).join(", ")+"\n }, {\n get: (target, prop) => {\n return target[prop];\n },\n set: (target, prop, value) => {\n if (__idyllExpressionExecuted) {\n var newState = {};\n newState[prop] = value;\n context.__idyllUpdate(newState);\n }\n target[prop] = value;\n return true;\n }\n });\n "+i+";\n context.__idyllUpdate({\n "+r.filter((function(e){return"refs"!==e})).map((function(e){return e+": __idyllStateProxy['"+e+"']"})).join(", ")+"\n });\n __idyllExpressionExecuted = true;\n })(this)\n ":"\n ((context) => {\n var __idyllStateProxy = new Proxy({}, {\n get: (_, prop) => {\n return context[prop];\n },\n set: (_, prop, value) => {\n console.warn('Warning, trying to set a value in a property expression.');\n }\n });\n "+i+";\n return __idyllReturnValue;\n })(this)"},evalExpression=function evalExpression(acc,expr,key,context){var isEventHandler=key&&(key.match(/^on[A-Z].*/)||key.match(/^handle[A-Z].*/)),e=buildExpression(acc,expr,isEventHandler);if(isEventHandler)return function(){eval(e)}.bind(Object.assign({},acc,context||{},{__idyllCopy:function e(t){if("object"!==(void 0===t?"undefined":_typeof(t)))return t;var n,r,i;for(i in n=Array.isArray(t)?[]:{},t)r=t[i],n[i]="object"===(void 0===r?"undefined":_typeof(r))?e(r):r;return n}}));try{return function(evalString){try{return eval("("+evalString+")")}catch(e){console.warn("Error occurred in Idyll expression"),console.error(e)}}.call(Object.assign({},acc),e)}catch(e){}},getVars=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];void 0!==r.update&&void 0!==r.value?t[n]=r.value:t[n]=r})),t},r=function(e,r){var i=getType(r),o=getProperties(r)||[];if(!o.name||!o.value)return o;var a=o.name.value,s=o.value.type,u=o.value.value;switch(s){case"value":e[a]=u;break;case"variable":t.hasOwnProperty(u)?e[a]=t[u]:e[a]=evalExpression(t,l);break;case"expression":var l=u;e[a]="var"===i?evalExpression(Object.assign({},t,n(e)),l):{value:evalExpression(Object.assign({},t,n(e)),l),update:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return evalExpression(Object.assign({},t,e,n),l)}}}return e};return e.reduce(r,{})},filterIdyllProps=function(e,t){e.__vars__,e.__expr__,e.idyllASTNode,e.hasHook,e.initialState,e.isHTMLNode,e.refName,e.onEnterViewFully,e.onEnterView,e.onExitViewFully,e.onExitView,e.fullWidth;var n=_objectWithoutProperties(e,["__vars__","__expr__","idyllASTNode","hasHook","initialState","isHTMLNode","refName","onEnterViewFully","onEnterView","onExitViewFully","onExitView","fullWidth"]);if(t){n.idyll,n.hasError,n.updateProps;return _objectWithoutProperties(n,["idyll","hasError","updateProps"])}return n},getData=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=function(e,n){var r=getProperties(n).name.value,i=getProperties(n).source.value;if(!!getProperties(n).async&&getProperties(n).async.value){var o=getProperties(n).initialValue?JSON.parse(getProperties(n).initialValue.value):[],a=new Promise((function(e){return e(o)}));"undefined"!=typeof fetch?a=fetch(i).then((function(e){if(e.status>=400)throw new Error("Error Status "+e.status+" occurred while fetching data from "+i+". If you are using a file to load the data and not a url, make sure async is not set to true.");return i.endsWith(".csv")?e.text().then((function(e){return parse(e,{cast:!0,columns:!0})})).catch((function(e){console.error("Error while parsing csv: "+e)})):e.json().catch((function(e){return console.error(e)}))})).catch((function(e){console.error(e)})):"undefined"!=typeof window&&console.warn("Could not find fetch."),e.asyncData[r]={initialValue:o,dataPromise:a}}else e.syncData[r]=t[r];return e};return e.reduce(n,{syncData:{},asyncData:{}})},splitAST=function(e){var t={vars:[],derived:[],data:[],elements:[]};return e.forEach(function e(n){return function(r){var i=getType(r),o=(getProperties(r),getChildren(r));if(0!=r.id){if("var"===i?t.vars.push(r):t[i]?t[i].push(r):n&&t.elements.push(r),!o||1===o.length&&"textnode"===getType(o[0]))return;o.forEach(e(!1))}}}(!0)),t},hooks=["onEnterView","onEnterViewFully","onExitView","onExitViewFully"],scrollMonitorEvents={onEnterView:"enterViewport",onEnterViewFully:"fullyEnterViewport",onExitView:"partiallyExitViewport",onExitViewFully:"exitViewport"},translate=function(e){return splitAST(getChildren(e)).elements.map((function e(t){if("textnode"===getType(t))return t;var n=getNodeName(t),r=getProperties(t);r||(r={});var i=getChildren(t);return _extends({component:n},function(e,t){var n={idyllASTNode:t};for(var r in e){var i=r,o=e[r].type,a=e[r].value;"variable"==o&&(n.__vars__||(n.__vars__={}),n.__vars__[i]=a),"expression"==o&&(n.__expr__||(n.__expr__={}),n.__expr__[i]=a),hooks.includes(i)&&(n.hasHook=!0),n[i]=a}return n}(r,t),{children:i.map(e)})}))},mapTree=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0},r=function e(r,i){return i.component&&i.children&&(i.children=i.children.reduce(e,[])),n(i)&&r.push(t(i)),r},i=e.reduce(r,[]);return i},filterASTForDocument=function(e){return removeNodesByName(e,"meta")},findWrapTargets=function(e,t,n){var r=[],i=Object.keys(n);i.forEach((function(e,t){for(var n=e.split("-"),r=0;r-1:!!c&&r(e,t,n)>-1}},function(e,t,n){var r=n(571),i=n(54),o=n(259),a=i((function(e,t){return o(e)?r(e,t):[]}));e.exports=a},function(e,t,n){var r=n(228),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){"use strict";var r=TypeError,i=function(){throw new r},o=Object.getOwnPropertyDescriptor?function(){try{return arguments.callee,i}catch(e){try{return Object.getOwnPropertyDescriptor(arguments,"callee").get}catch(e){return i}}}():i,a=n(97)(),s=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:s(Uint8Array),c={"$ %Array%":Array,"$ %ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"$ %ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"$ %ArrayIteratorPrototype%":a?s([][Symbol.iterator]()):void 0,"$ %ArrayPrototype%":Array.prototype,"$ %ArrayProto_entries%":Array.prototype.entries,"$ %ArrayProto_forEach%":Array.prototype.forEach,"$ %ArrayProto_keys%":Array.prototype.keys,"$ %ArrayProto_values%":Array.prototype.values,"$ %AsyncFromSyncIteratorPrototype%":void 0,"$ %AsyncFunction%":void 0,"$ %AsyncFunctionPrototype%":void 0,"$ %AsyncGenerator%":void 0,"$ %AsyncGeneratorFunction%":void 0,"$ %AsyncGeneratorPrototype%":void 0,"$ %AsyncIteratorPrototype%":u&&a&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"$ %Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"$ %Boolean%":Boolean,"$ %BooleanPrototype%":Boolean.prototype,"$ %DataView%":"undefined"==typeof DataView?void 0:DataView,"$ %DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"$ %Date%":Date,"$ %DatePrototype%":Date.prototype,"$ %decodeURI%":decodeURI,"$ %decodeURIComponent%":decodeURIComponent,"$ %encodeURI%":encodeURI,"$ %encodeURIComponent%":encodeURIComponent,"$ %Error%":Error,"$ %ErrorPrototype%":Error.prototype,"$ %eval%":eval,"$ %EvalError%":EvalError,"$ %EvalErrorPrototype%":EvalError.prototype,"$ %Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"$ %Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"$ %Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"$ %Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"$ %Function%":Function,"$ %FunctionPrototype%":Function.prototype,"$ %Generator%":void 0,"$ %GeneratorFunction%":void 0,"$ %GeneratorPrototype%":void 0,"$ %Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"$ %Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"$ %Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"$ %Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"$ %Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"$ %Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"$ %isFinite%":isFinite,"$ %isNaN%":isNaN,"$ %IteratorPrototype%":a?s(s([][Symbol.iterator]())):void 0,"$ %JSON%":"object"==typeof JSON?JSON:void 0,"$ %JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"$ %Map%":"undefined"==typeof Map?void 0:Map,"$ %MapIteratorPrototype%":"undefined"!=typeof Map&&a?s((new Map)[Symbol.iterator]()):void 0,"$ %MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"$ %Math%":Math,"$ %Number%":Number,"$ %NumberPrototype%":Number.prototype,"$ %Object%":Object,"$ %ObjectPrototype%":Object.prototype,"$ %ObjProto_toString%":Object.prototype.toString,"$ %ObjProto_valueOf%":Object.prototype.valueOf,"$ %parseFloat%":parseFloat,"$ %parseInt%":parseInt,"$ %Promise%":"undefined"==typeof Promise?void 0:Promise,"$ %PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"$ %PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"$ %Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"$ %Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"$ %Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"$ %Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"$ %RangeError%":RangeError,"$ %RangeErrorPrototype%":RangeError.prototype,"$ %ReferenceError%":ReferenceError,"$ %ReferenceErrorPrototype%":ReferenceError.prototype,"$ %Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"$ %RegExp%":RegExp,"$ %RegExpPrototype%":RegExp.prototype,"$ %Set%":"undefined"==typeof Set?void 0:Set,"$ %SetIteratorPrototype%":"undefined"!=typeof Set&&a?s((new Set)[Symbol.iterator]()):void 0,"$ %SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"$ %SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"$ %SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"$ %String%":String,"$ %StringIteratorPrototype%":a?s(""[Symbol.iterator]()):void 0,"$ %StringPrototype%":String.prototype,"$ %Symbol%":a?Symbol:void 0,"$ %SymbolPrototype%":a?Symbol.prototype:void 0,"$ %SyntaxError%":SyntaxError,"$ %SyntaxErrorPrototype%":SyntaxError.prototype,"$ %ThrowTypeError%":o,"$ %TypedArray%":l,"$ %TypedArrayPrototype%":l?l.prototype:void 0,"$ %TypeError%":r,"$ %TypeErrorPrototype%":r.prototype,"$ %Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"$ %Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"$ %Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"$ %Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"$ %Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"$ %Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"$ %Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"$ %Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"$ %URIError%":URIError,"$ %URIErrorPrototype%":URIError.prototype,"$ %WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"$ %WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"$ %WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"$ %WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=n(78).call(Function.call,String.prototype.replace),f=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,d=function(e){var t=[];return p(e,f,(function(e,n,r,i){t[t.length]=r?p(i,h,"$1"):n||e})),t},m=function(e,t){var n="$ "+e;if(!(n in c))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===c[n]&&!t)throw new r("intrinsic "+e+" exists, but is not available. Please file an issue!");return c[n]};e.exports=function(e,t){if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');var n=d(e);if(0===n.length)return m(e,t);for(var r=m("%"+n[0]+"%",t),i=1;i1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){var r=n(227);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(166),i=n(116)((function(e,t,n){r(e,t,n)}));e.exports=i},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){e.exports=n(572)},function(e,t,n){var r=n(588),i=n(7),o="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(o);return i(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){var r=n(4),i=n(156);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(310)},function(e,t,n){var r=n(123),i=0;e.exports=function(e){var t=++i;return r(e)+t}},function(e,t,n){var r=n(113),i=n(576),o=Object.prototype.hasOwnProperty,a=i((function(e,t,n){o.call(e,n)?e[n].push(t):r(e,n,[t])}));e.exports=a},function(e,t,n){"use strict";var r=n(57);t.a=function(e){return(e=Object(r.a)(Math.abs(e)))?e[1]:NaN}},function(e,t,n){"use strict";var r=n(71),i=n(125),o=n(126),a=function(e){return new Array(e.length)};function s(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}s.prototype={constructor:s,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var u="$";function l(e,t,n,r,i,o){for(var a,u=0,l=t.length,c=o.length;ut?1:e>=t?0:NaN}var f=n(72);function h(e){return function(){this.removeAttribute(e)}}function d(e){return function(){this.removeAttributeNS(e.space,e.local)}}function m(e,t){return function(){this.setAttribute(e,t)}}function y(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function g(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}function v(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}var b=n(127);function x(e){return function(){delete this[e]}}function w(e,t){return function(){this[e]=t}}function E(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}function A(e){return e.trim().split(/^|\s+/)}function C(e){return e.classList||new _(e)}function _(e){this._node=e,this._names=A(e.getAttribute("class")||"")}function k(e,t){for(var n=C(e),r=-1,i=t.length;++r=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function O(){this.textContent=""}function F(e){return function(){this.textContent=e}}function M(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}function j(){this.innerHTML=""}function N(e){return function(){this.innerHTML=e}}function R(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}function B(){this.nextSibling&&this.parentNode.appendChild(this)}function I(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}var L=n(46);function z(){return null}function $(){var e=this.parentNode;e&&e.removeChild(this)}function V(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function U(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}var q=n(56),W=n(73);function H(e,t,n){var r=Object(W.a)(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function K(e,t){return function(){return H(this,e,t)}}function G(e,t){return function(){return H(this,e,t.apply(this,arguments))}}n.d(t,"c",(function(){return Y})),n.d(t,"a",(function(){return X}));var Y=[null];function X(e,t){this._groups=e,this._parents=t}function J(){return new X([[document.documentElement]],Y)}X.prototype=J.prototype={constructor:X,select:function(e){"function"!=typeof e&&(e=Object(r.a)(e));for(var t=this._groups,n=t.length,i=new Array(n),o=0;o=A&&(A=E+1);!(w=b[A])&&++A=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=p);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o1?this.each((null==t?x:"function"==typeof t?E:w)(e,t)):this.node()[e]},classed:function(e,t){var n=A(e+"");if(arguments.length<2){for(var r=C(this.node()),i=-1,o=n.length;++i - * @license MIT - */ -var r=n(409),i=n(410),o=n(411);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return $(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(e).length;default:if(r)return $(e).length;t=(""+t).toLowerCase(),r=!0}}function m(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return D(this,t,n);case"utf8":case"utf-8":return k(this,t,n);case"ascii":return T(this,t,n);case"latin1":case"binary":return P(this,t,n);case"base64":return _(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,i);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function _(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function k(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=S)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=e.slice(t,n),p=0;pi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return x(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return E(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var S=4096;function T(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function M(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function R(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(e,t,n,r,o){return o||R(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function I(e,t,n,r,o){return o||R(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||M(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);M(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||M(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return B(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return B(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return I(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return I(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(L,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function U(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(40))},function(e,t,n){var r=n(64),i=n(469),o=n(470),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(472),i=n(513),o=n(12),a=n(14),s=n(37);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(112),i=n(113);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}))}function u(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r1?r[0]+r.slice(2):r,+e.slice(n+1)]}},,function(e,t,n){"use strict";var r=n(22),i=n(202),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&o(e,".prototype.")?i(n):n}},function(e,t,n){"use strict";function r(e,t,n){var r=n?" !== ":" === ",i=n?" || ":" && ",o=n?"!":"",a=n?"":"!";switch(e){case"null":return t+r+"null";case"array":return o+"Array.isArray("+t+")";case"object":return"("+o+t+i+"typeof "+t+r+'"object"'+i+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+r+'"number"'+i+a+"("+t+" % 1)"+i+t+r+t+")";default:return"typeof "+t+r+'"'+e+'"'}}e.exports={copy:function(e,t){for(var n in t=t||{},e)t[n]=e[n];return t},checkDataType:r,checkDataTypes:function(e,t){switch(e.length){case 1:return r(e[0],t,!0);default:var n="",i=o(e);for(var a in i.array&&i.object&&(n=i.null?"(":"(!"+t+" || ",n+="typeof "+t+' !== "object")',delete i.null,delete i.array,delete i.object),i.number&&delete i.integer,i)n+=(n?" && ":"")+r(a,t,!0);return n}},coerceToTypes:function(e,t){if(Array.isArray(t)){for(var n=[],r=0;r=t)throw new Error("Cannot access property/index "+r+" levels up, current level is "+t);return n[t-r]}if(r>t)throw new Error("Cannot access data "+r+" levels up, current level is "+t);if(o="data"+(t-r||""),!i)return o}for(var s=o,l=i.split("/"),c=0;c=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function i(e){if(!(t=r.exec(e)))throw new Error("invalid format: "+e);var t;return new o({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function o(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}i.prototype=o.prototype,o.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type}},function(e,t,n){"use strict";function r(){}t.a=function(e){return null==e?r:function(){return this.querySelector(e)}}},function(e,t,n){"use strict";var r=n(49);t.a=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),r.a.hasOwnProperty(t)?{space:r.a[t],local:e}:e}},function(e,t,n){"use strict";t.a=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}},function(e,t,n){var r=n(581),i=n(6);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){"use strict";var r=n(56);t.a=function(){for(var e,t=r.c;e=t.sourceEvent;)t=e;return t}},function(e,t,n){var r=n(54),i=n(262),o=n(118),a=n(90),s=r((function(e,t){var n=a(t,o(s));return i(e,32,void 0,t,n)}));s.placeholder={},e.exports=s},function(e,t){var n={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}};e.exports=function(e,t){var r=n[t];return e=null==e?"":String(e),r&&(e=e.replace(r.regexp,(function(e){return r.map[e]}))),e.toLowerCase()}},function(e,t,n){"use strict";var r=n(331);e.exports=Function.prototype.bind||r},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,l=[],c=!1,p=-1;function f(){c&&u&&(c=!1,u.length?l=u.concat(l):p=-1,l.length&&h())}function h(){if(!c){var e=s(f);c=!0;for(var t=l.length;t;){for(u=l,l=[];++p1)for(var n=1;n-1&&e%1==0&&e2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r-1?e:(D(t),Object.assign({},e,{children:t}))},h=function(e){return C(e,"node (hc)"),O(e,"node"),!(["textnode","var","derived","data"].indexOf(d(e))>-1)&&!(!e.children||!e.children.length)};var d=function(e){return C(e,"node(Get type)"),O(e,"node"),e.type};function m(e,t,n){return k(t,"name"),e.map((function(e){return-1===["textnode","var","derived","data"].indexOf(e.type)&&(e=Object.assign({},e,{children:m(p(e),t,n)})),e=y(e,t,n)}))}var y=function(e,t,n){return k(t,"name"),T(e,"node",n,"modifier"),["textnode","var","derived","data"].indexOf(e.type)>-1?Object.assign({},e):(e.name&&e.name.toLowerCase()===t&&(e=n(Object.assign({},e))),Object.assign({},e))},g=function(e){return C(e,"node"),"component"!==e.type?e.type:e.name},v=function(e){return C(e,"node"),O(e,"node"),e.properties?e.properties:null},b=function(e,t){return E(e,t),Object.assign({},e,{children:[].concat(t,p(e))})};var x=function(e,t){T(e,"ast",t,"f"),function e(t,n){(t||[]).forEach((function(t){var r=p(t);r.length>0&&e(r,n),n(t)}))}(e.children,t),t(e)};function w(e,t){C(e,"ast"),C(t,"node"),O(e,"ast"),O(t,"node")}function E(e,t){C(e,"ast"),S(t,"nodes"),t.forEach((function(e,t){C(e,"nodes (index: "+t+")")})),O(e,"ast"),t.forEach((function(e,t){O(e,"nodes (index: "+t+")")}))}function A(e,t,n,r,o){_(e,"id"),k(t,"name"),function(e){if(k(e,"type"),-1===["component","textnode","var","derived","data"].indexOf(e))throw new i.InvalidParameterError("Type should be a component, textnode, var, derived or data")}(n),P(r),D(o)}function C(e,t){if("object"!==(void 0===e?"undefined":r(e)))throw new i.InvalidParameterError("Parameter "+t+" must be a well defined JSON object. Object: "+e)}function _(e,t){if("number"!=typeof e)throw new i.InvalidParameterError("Paramter: "+t+"must be an integer.")}function k(e,t){if("string"!=typeof e)throw new i.InvalidParameterError("Parameter"+e+"must be a string.")}function S(e,t){if(!Array.isArray(e))throw new InvalidParameterError("Paramter "+t+" must be an array. Object: "+param)}function T(e,t,n,r){C(e,t),function(e,t){if("function"!=typeof e)throw new InvalidParameterError("Paramter "+t+" must be a Function. Function: "+e)}(n,r),O(e,t)}function P(e){e&&(C(e,"props (Properties)"),function(e){if(!u(e))throw console.log("Error message from validator: "+u.errors[0].message),console.log("Error message from validator: ",u.errors[0]),new i.InvalidParameterError("Parameter props is not a well-defined JSON according to the the AST schema. Look at schema.properties.properties!")}(e))}function D(e){e&&(S(e,"children"),e.forEach((function(e,t){C(e,"children (index: "+t+")")})),e.forEach((function(e,t){O(e,"children (index: "+t+")")})))}function O(e,t){if(!s(e))throw console.log("Error message from validator: "+s.errors[0].message),console.log("Error message from validator: ",s.errors[0]),new i.MalformedAstError(t+" must be well-defined and follow the AST schema. Object: "+JSON.stringify(e))}function F(e){return Object.keys(e.properties||{}).reduce((function(t,n){return t+" "+n+":"+function(e){switch(e.type){case"value":return JSON.stringify(e.value);case"expression":return"`"+e.value+"`";case"variable":return e.value}}(e.properties[n])}),"").trim()}function M(e,t){return(e.children||[]).reduce((function(e,n){return e+"\n"+function(e,t){switch(e.type){case"textnode":return""+" ".repeat(t)+e.value;case"component":if("textcontainer"===e.name.toLowerCase())return"\n"+M(e,t)+"\n";var n=F(e);return h(e)?" ".repeat(t)+"["+e.name+(n?" "+n:"")+"]"+M(e,t+1)+"\n"+" ".repeat(t)+"[/"+e.name+"]":" ".repeat(t)+"["+e.name+(n?" "+n:"")+" /]";case"var":case"derived":case"data":case"meta":return" ".repeat(t)+"["+e.type+" "+F(e)+" /]"}}(n,t)}),"")}e.exports={appendNode:function(e,t){return w(e,t),c(e,[t])},appendNodes:c,converters:l,createNode:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;A(e,t,n,r,i);var o=new Object;return o.id=e,o.type=n,o.name=t,r&&(o.properties=Object.assign({},r)),i&&(o.children=Object.assign({},i)),o},createTextNode:function(e,t){_(e,"id"),k(t,"value");var n=new Object;return n.id=e,n.type="textnode",n.value=t,n},filterChildren:function(e,t){return T(e,"node",t,"filter"),["textnode","var","derived","data"].indexOf(e.type)>-1?e:Object.assign({},e,{children:p(e).filter((function(e){return t(e)}))})},filterNodes:function(e,t){T(e,"ast",t,"filter");var n=[];return x(e,(function(e){t(e)&&n.push(Object.assign({},e))})),n},getChildren:p,getNodesByName:function(e,t){C(e,"ast"),k(t,"name"),O(e,"ast");var n=[];"article"===t&&n.push(e);var r=function e(t,n){var r=[].concat(t.filter((function(e){return e.name===n}))),i=[];return t.forEach((function(t){h(t)&&(i=i.concat(e(t.children,n)))})),r.concat(i)}(e.children,t);return n.concat(r)},getNodesByType:function(e,t){C(e,"ast"),k(t,"type"),O(e,"ast");var n=function e(t,n){var r=[].concat(t.filter((function(e){return e.type===n}))),i=[];return t.forEach((function(t){h(t)&&(i=i.concat(e(t.children,n)))})),r.concat(i)}(e.children,t);return[].concat(n)},getNodeName:g,getPropertyKeys:function(e){return C(e,"node"),O(e,"node"),Object.keys(e.properties)},getProperty:function(e,t){return k(t,"key"),C(e,"node gp"),O(e,"node"),e.properties&&e.properties.hasOwnProperty(t)?e.properties[t]:null},getProperties:v,getPropertiesByType:function(e,t){if(function(e){if(k(e,"type"),-1===["value","expression","variable"].indexOf(e))throw new i.InvalidParameterError("Type should be a value, expression or variable")}(t),C(e,"node"),O(e,"node"),"string"!=typeof t&&-1===["value","expression","variable"].indexOf(t))throw new i.InvalidParameterError("Type should be a value, expression or variable");var n=[];if(e.properties)for(var r in e.properties)r.data.type===t&&n.push(r);return n},getText:function(e){C(e,"node"),O(e,"node");var t=[];return x(e,(function(e){"textnode"===e.type&&t.push(e.value)})),t.join(" ")},hasType:function(e){return!!e.type},getType:d,hasChildren:h,modifyChildren:function(e,t){return T(e,"node",t,"modifier"),["textnode","var","derived","data"].indexOf(e.type)>-1?e:Object.assign({},e,{children:p(e).map((function(e){return t(e)}))})},modifyNodesByName:function(e,t,n){return k(t,"name"),T(e,"ast",n,"modifier"),[e].map((function(e){return-1===["textnode","var","derived","data"].indexOf(e.type)&&(e=Object.assign({},e,{children:m(p(e),t.toLowerCase(),n)})),e=y(e,t,n)}))[0]},prependNode:function(e,t){w(e,t),b(e,[t])},prependNodes:b,removeNodesByName:function(e,t){if(k(t,"name"),C(e,"ast"),O(e,"ast"),h(e)){var n=p(e);e=f(e,function e(t,n){return t.filter((function(e){return g(e)!==n})).map((function(t){return f(t,e(p(t),n))}))}(n,t))}return e},removeNodesByType:function(e,t){if(k(t,"type"),C(e,"ast"),O(e,"ast"),h(e)){var n=p(e);e=f(e,function e(t,n){return t.filter((function(e){return d(e)!==n})).map((function(t){return f(t,e(p(t),n))}))}(n,t))}return e},removeProperty:function(e,t){(k(t,"key"),C(e,"node"),O(e,"node"),v(e))&&delete Object.assign({},e).properties.key;return newNode},setChildren:f,setProperty:function(e,t,n){if(k(key,"key"),C(n,"data"),C(e,"node"),O(e,"node"),"object"!==(void 0===e?"undefined":r(e)))throw new i.InvalidParameterError("Parameter ast must be a well-defined JSON object.");if(s(e))throw new i.MalformedAstError("Parameter ast needs to be a JSON structure according to the schema.");if("object"!==(void 0===n?"undefined":r(n)))throw new i.InvalidParameterError("Parameter data must be a well-defined JSON object.");if("string"!=typeof t)throw new i.InvalidParameterError("Parameter name must be a string.");var o=Object.assign({},e);return o.properties&&(o.properties[t]=n),o},setProperties:function(e,t){if(C(e,"node"),O(e,"node sp"),P(props),"object"!==("undefined"==typeof porperties?"undefined":r(porperties)))throw new i.InvalidParameterError("Parameter paramter must be a well-defined JSON object.");if(u(t))throw new i.InvalidParameterError("Paramete props is not a well-defined JSON according to the the AST schema. Look at schema.properties.properties!");var n=Object.assign({},e);return n.properties?n.properties=Object.assign({},n.properties,t):n.properties=Object.assign({},t),n},walkNodes:x,walkNodesBreadthFirst:function(e,t){T(e,"ast",t,"f"),t(e),function e(t,n){var r=[];(t||[]).forEach((function(e){n(e),r=r.concat(p(e))})),r.length>0&&e(r,n)}(e,t)},toMarkup:function(e){return M(e,0).trim()}}},function(e,t,n){var r=n(517);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){"use strict";var r=n(34);t.a=function(e){return"string"==typeof e?new r.a([[document.querySelector(e)]],[document.documentElement]):new r.a([[e]],r.c)}},function(e,t,n){"use strict";function r(){return[]}t.a=function(e){return null==e?r:function(){return this.querySelectorAll(e)}}},function(e,t,n){"use strict";t.a=function(e){return function(){return this.matches(e)}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s}));var r=n(73);function i(e){return function(){this.style.removeProperty(e)}}function o(e,t,n){return function(){this.style.setProperty(e,t,n)}}function a(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function s(e,t){return e.style.getPropertyValue(t)||Object(r.a)(e).getComputedStyle(e,null).getPropertyValue(t)}t.a=function(e,t,n){return arguments.length>1?this.each((null==t?i:"function"==typeof t?a:o)(e,t,null==n?"":n)):s(this.node(),e)}},function(e,t,n){"use strict";var r,i=n(33),o=n(70),a=function(e){e:for(var t,n=e.length,r=1,i=-1;r0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},s=n(57),u=function(e,t){var n=Object(s.a)(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},l={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return u(100*e,t)},r:u,s:function(e,t){var n=Object(s.a)(e,t);if(!n)return e+"";var i=n[0],o=n[1],a=o-(r=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,u=i.length;return a===u?i:a>u?i+new Array(a-u+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+Object(s.a)(e,Math.max(0,t+a-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},c=function(e){return e},p=Array.prototype.map,f=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];t.a=function(e){var t,n,s=void 0===e.grouping||void 0===e.thousands?c:(t=p.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}),u=void 0===e.currency?"":e.currency[0]+"",h=void 0===e.currency?"":e.currency[1]+"",d=void 0===e.decimal?".":e.decimal+"",m=void 0===e.numerals?c:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(p.call(e.numerals,String)),y=void 0===e.percent?"%":e.percent+"",g=void 0===e.minus?"-":e.minus+"",v=void 0===e.nan?"NaN":e.nan+"";function b(e){var t=(e=Object(o.b)(e)).fill,n=e.align,i=e.sign,c=e.symbol,p=e.zero,b=e.width,x=e.comma,w=e.precision,E=e.trim,A=e.type;"n"===A?(x=!0,A="g"):l[A]||(void 0===w&&(w=12),E=!0,A="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var C="$"===c?u:"#"===c&&/[boxX]/.test(A)?"0"+A.toLowerCase():"",_="$"===c?h:/[%p]/.test(A)?y:"",k=l[A],S=/[defgprs%]/.test(A);function T(e){var o,u,l,c=C,h=_;if("c"===A)h=k(e)+h,e="";else{var y=(e=+e)<0;if(e=isNaN(e)?v:k(Math.abs(e),w),E&&(e=a(e)),y&&0==+e&&(y=!1),c=(y?"("===i?i:g:"-"===i||"("===i?"":i)+c,h=("s"===A?f[8+r/3]:"")+h+(y&&"("===i?")":""),S)for(o=-1,u=e.length;++o(l=e.charCodeAt(o))||l>57){h=(46===l?d+e.slice(o+1):e.slice(o))+h,e=e.slice(0,o);break}}x&&!p&&(e=s(e,1/0));var T=c.length+e.length+h.length,P=T>1)+c+e+h+P.slice(T);break;default:e=P+c+e+h}return m(e)}return w=void 0===w?6:/[gprs]/.test(A)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w)),T.toString=function(){return e+""},T}return{format:b,formatPrefix:function(e,t){var n=b(((e=Object(o.b)(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Object(i.a)(t)/3))),a=Math.pow(10,-r),s=f[8+r/3];return function(e){return n(a*e)+s}}}}},function(e,t,n){var r=n(549)(n(550));e.exports=r},function(e,t,n){var r=n(553),i=n(110),o=n(43),a=n(554),s=n(14);e.exports=function(e,t,n){var u=s(e)?r:a,l=arguments.length<3;return u(e,o(t,4),n,l,i)}},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function p(){for(var e=[],t=0;t0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"==typeof u)o(u,this,t);else{var l=u.length,c=m(u,l);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return h(this,e,!0)},s.prototype.rawListeners=function(e){return h(this,e,!1)},s.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){(t=e.exports=n(217)).Stream=t,t.Readable=t,t.Writable=n(144),t.Duplex=n(50),t.Transform=n(221),t.PassThrough=n(422)},function(e,t,n){var r=n(41),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(98);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=v;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;v.WritableState=g;var l=n(80);l.inherits=n(61);var c={deprecate:n(420)},p=n(218),f=n(143).Buffer,h=i.Uint8Array||function(){};var d,m=n(219);function y(){}function g(e,t){s=s||n(50),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,l=e.writableHighWaterMark,c=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(l||0===l)?l:c,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var p=!1===e.decodeStrings;this.decodeStrings=!p,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(C,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),C(e,t))}(e,n,r,t,i);else{var a=E(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||w(e,n),r?u(x,e,n,a,i):x(e,n,a,i)}}(t,e)},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 a(this)}function v(e){if(s=s||n(50),!(d.call(v,this)||this instanceof s))return new v(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),p.call(this)}function b(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function x(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),C(e,t)}function w(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,b(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,c=n.encoding,p=n.callback;if(b(e,t,!1,t.objectMode?1:l.length,l,c,p),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function E(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function A(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),C(e,t)}))}function C(e,t){var n=E(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(A,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}l.inherits(v,p),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(d=Function.prototype[Symbol.hasInstance],Object.defineProperty(v,Symbol.hasInstance,{value:function(e){return!!d.call(this,e)||this===v&&(e&&e._writableState instanceof g)}})):d=function(e){return e instanceof this},v.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},v.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,f.isBuffer(r)||r instanceof h);return s&&!f.isBuffer(e)&&(e=function(e){return f.from(e)}(e)),"function"==typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!=typeof n&&(n=y),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=f.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(v.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),v.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},v.prototype._writev=null,v.prototype.end=function(e,t,n){var r=this._writableState;"function"==typeof e?(n=e,e=null,t=null):"function"==typeof t&&(n=t,t=null),null!=e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,C(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(v.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),v.prototype.destroy=m.destroy,v.prototype._undestroy=m.undestroy,v.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(79),n(418).setImmediate,n(40))},function(e,t,n){"use strict";var r=n(63);e.exports=new r({explicit:[n(446),n(447),n(448)]})},function(e,t,n){"use strict";(function(e){var r=n(464);t.typeOf=n(147),t.isBuffer=function(e){return"buffer"===t.typeOf(e)},t.isObject=function(e){return"object"===t.typeOf(e)},t.toBuffer=function(t){return"string"==typeof t?new e(t):t},t.toString=function(e){if(t.isBuffer(e))return r(String(e));if("string"!=typeof e)throw new TypeError("expected input to be a string or buffer");return r(e)},t.arrayify=function(e){return e?Array.isArray(e)?e:[e]:[]},t.startsWith=function(e,t,n){return"number"!=typeof n&&(n=t.length),e.slice(0,n)===t}}).call(this,n(41).Buffer)},function(e,t){var n=Object.prototype.toString;e.exports=function(e){var t=typeof e;return"undefined"===t?"undefined":null===e?"null":!0===e||!1===e||e instanceof Boolean?"boolean":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?void 0!==e.constructor.name&&"Generator"===e.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(e)?"array":e instanceof RegExp?"regexp":e instanceof Date?"date":"[object RegExp]"===(t=n.call(e))?"regexp":"[object Date]"===t?"date":"[object Arguments]"===t?"arguments":"[object Error]"===t?"error":"[object Promise]"===t?"promise":function(e){return e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}(e)?"buffer":"[object Set]"===t?"set":"[object WeakSet]"===t?"weakset":"[object Map]"===t?"map":"[object WeakMap]"===t?"weakmap":"[object Symbol]"===t?"symbol":"[object Map Iterator]"===t?"mapiterator":"[object Set Iterator]"===t?"setiterator":"[object String Iterator]"===t?"stringiterator":"[object Array Iterator]"===t?"arrayiterator":"[object Int8Array]"===t?"int8array":"[object Uint8Array]"===t?"uint8array":"[object Uint8ClampedArray]"===t?"uint8clampedarray":"[object Int16Array]"===t?"int16array":"[object Uint16Array]"===t?"uint16array":"[object Int32Array]"===t?"int32array":"[object Uint32Array]"===t?"uint32array":"[object Float32Array]"===t?"float32array":"[object Float64Array]"===t?"float64array":"object"}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n-1&&e%1==0&&e<=n}},function(e,t,n){(function(e){var r=n(228),i=t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(107)(e))},function(e,t,n){var r=n(14),i=n(88),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(a.test(e)||!o.test(e)||null!=t&&e in Object(t))}},function(e,t,n){var r=n(245),i=n(6);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(528),i=n(249)(r);e.exports=i},function(e,t,n){var r=n(239)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(235),i=n(252),o=n(68);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(232);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){var r=n(24),i=n(246),o=n(160);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(256);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){var r=n(102),i=n(258),o=n(245),a=n(551),s=n(7),u=n(68),l=n(260);e.exports=function e(t,n,c,p,f){t!==n&&o(n,(function(o,u){if(f||(f=new r),s(o))a(t,n,u,c,e,p,f);else{var h=p?p(l(t,u),o,u+"",t,n,f):void 0;void 0===h&&(h=o),i(t,u,h)}}),u)}},function(e,t,n){var r=n(115),i=n(168),o=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=o,this.__views__=[]}a.prototype=r(i.prototype),a.prototype.constructor=a,e.exports=a},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(264),i=n(270),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t,n){var r=n(115),i=n(168);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(274);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t,n){e.exports={default:n(596),__esModule:!0}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"2.6.10"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(){for(var e={},t=0;t0&&(t=t[0]);var n=new e(t,this);return n.setStateFromDOM(),n.listenToDOM(),n},e.prototype.create=function(e,t){"string"==typeof e?e=document.querySelector(e):e&&e.length>0&&(e=e[0]);var n=new c(this,e,t);return this.watchers.push(n),n},e.prototype.beget=function(e,t){return this.create(e,t)},e}();e.exports=d},function(e,t,n){"use strict";function r(e,t,n){function r(e,t){if(0!==e.length)for(g=e.length;g--;)(v=e[g]).callback.call(b,t,b),v.isOne&&e.splice(g,1)}var i,d,m,y,g,v,b=this;this.watchItem=t,this.container=e,this.offsets=n?n===+n?{top:n,bottom:n}:{top:n.top||h.top,bottom:n.bottom||h.bottom}:h,this.callbacks={};for(var x=0,w=f.length;x0?this.top=this.bottom=this.watchItem:this.top=this.bottom=this.container.documentHeight-this.watchItem:(this.top=this.watchItem.top,this.bottom=this.watchItem.bottom);this.top-=this.offsets.top,this.bottom+=this.offsets.bottom,this.height=this.bottom-this.top,void 0===e&&void 0===t||this.top===e&&this.bottom===t||r(this.callbacks[c],null)}},this.recalculateLocation(),this.update(),i=this.isInViewport,d=this.isFullyInViewport,m=this.isAboveViewport,y=this.isBelowViewport}var i=n(1),o=i.VISIBILITYCHANGE,a=i.ENTERVIEWPORT,s=i.FULLYENTERVIEWPORT,u=i.EXITVIEWPORT,l=i.PARTIALLYEXITVIEWPORT,c=i.LOCATIONCHANGE,p=i.STATECHANGE,f=i.eventTypes,h=i.defaultOffsets;r.prototype={on:function(e,t,n){switch(!0){case e===o&&!this.isInViewport&&this.isAboveViewport:case e===a&&this.isInViewport:case e===s&&this.isFullyInViewport:case e===u&&this.isAboveViewport&&!this.isInViewport:case e===l&&this.isInViewport&&this.isAboveViewport:if(t.call(this,this.container.latestEvent,this),n)return}if(!this.callbacks[e])throw new Error("Tried to add a scroll monitor listener of type "+e+". Your options are: "+f.join(", "));this.callbacks[e].push({callback:t,isOne:n||!1})},off:function(e,t){if(!this.callbacks[e])throw new Error("Tried to remove a scroll monitor listener of type "+e+". Your options are: "+f.join(", "));for(var n,r=0;n=this.callbacks[e][r];r++)if(n.callback===t){this.callbacks[e].splice(r,1);break}},one:function(e,t){this.on(e,t,!0)},recalculateSize:function(){this.height=this.watchItem.offsetHeight+this.offsets.top+this.offsets.bottom,this.bottom=this.top+this.height},update:function(){this.isAboveViewport=this.topthis.container.viewportBottom,this.isInViewport=this.topthis.container.viewportTop,this.isFullyInViewport=this.top>=this.container.viewportTop&&this.bottom<=this.container.viewportBottom||this.isAboveViewport&&this.isBelowViewport},destroy:function(){var e=this.container.watchers.indexOf(this);this.container.watchers.splice(e,1);for(var t=0,n=f.length;t=0&&"[object Function]"===r.call(e.callee)),n}},function(e,t,n){"use strict";var r=n(192),i=n(39),o=n(78).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var a in t)i(t,a)&&o(t,a)&&n.push([a,t[a]]);return n}},function(e,t,n){"use strict";e.exports=n(329)},function(e,t,n){"use strict";e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,n){"use strict";var r=n(22),i=r("%TypeError%"),o=r("%SyntaxError%"),a=n(39),s={"Property Descriptor":function(e,t){if("Object"!==e.Type(t))return!1;var n={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in t)if(a(t,r)&&!n[r])return!1;var o=a(t,"[[Value]]"),s=a(t,"[[Get]]")||a(t,"[[Set]]");if(o&&s)throw new i("Property Descriptors may not be both accessor and data descriptors");return!0}};e.exports=function(e,t,n,r){var a=s[t];if("function"!=typeof a)throw new o("unknown record type: "+t);if(!a(e,r))throw new i(n+" must be a "+t)}},function(e,t,n){"use strict";e.exports=Number.isNaN||function(e){return e!=e}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t,n){"use strict";var r=n(22),i=n(39),o=r("%Object%").assign;e.exports=function(e,t){if(o)return o(e,t);for(var n in t)i(t,n)&&(e[n]=t[n]);return e}},function(e,t,n){"use strict";e.exports=function(e){return e>=0?1:-1}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e%t;return Math.floor(n>=0?n:n+t)}},function(e,t,n){"use strict";e.exports=function(e,t){for(var n=0;n=t.length,value:t[e]}}}}:"String"===e.Type(t)&&(n=function(){var n=0;return{next:function(){var r=e.AdvanceStringIndex(t,n,!0),i=s(t,n,r);return n=r,{done:r>t.length,value:i}}}}),n}},function(e,t,n){"use strict";var r=n(22),i=r("%Object.setPrototypeOf%",!0),o=r("%Array.prototype%");e.exports=i||([].__proto__!==o?null:function(e,t){return e.__proto__=t,e})},function(e,t,n){"use strict";var r=n(191);e.exports=function(){return"function"==typeof Object.entries?Object.entries:r}},function(e,t,n){"use strict";var r=n(192),i=n(39),o=n(78).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=r.RequireObjectCoercible(e),n=[];for(var a in t)i(t,a)&&o(t,a)&&n.push(t[a]);return n}},function(e,t,n){"use strict";var r=n(206);e.exports=function(){return"function"==typeof Object.values?Object.values:r}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={GLOBAL:{HIDE:"__react_tooltip_hide_event",REBUILD:"__react_tooltip_rebuild_event",SHOW:"__react_tooltip_show_event"}}},function(e,t,n){"use strict";var r=n(60);e.exports=function(e){r.copy(e,this)}},function(e,t,n){"use strict";e.exports=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n,r="boolean"==typeof t.cycles&&t.cycles,i=t.cmp&&(n=t.cmp,function(e){return function(t,r){var i={key:t,value:e[t]},o={key:r,value:e[r]};return n(i,o)}}),o=[];return function e(t){if(t&&t.toJSON&&"function"==typeof t.toJSON&&(t=t.toJSON()),void 0!==t){if("number"==typeof t)return isFinite(t)?""+t:"null";if("object"!=typeof t)return JSON.stringify(t);var n,a;if(Array.isArray(t)){for(a="[",n=0;n",v=h?">":"<",b=void 0;if(y){var x=e.util.getData(m.$data,a,e.dataPathArr),w="exclusive"+o,E="exclType"+o,A="exclIsNumber"+o,C="' + "+(S="op"+o)+" + '";i+=" var schemaExcl"+o+" = "+x+"; ",i+=" var "+w+"; var "+E+" = typeof "+(x="schemaExcl"+o)+"; if ("+E+" != 'boolean' && "+E+" != 'undefined' && "+E+" != 'number') { ";var _;b=d;(_=_||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: {} ",!1!==e.opts.messages&&(i+=" , message: '"+d+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+u+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var k=i;i=_.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+E+" == 'number' ? ( ("+w+" = "+r+" === undefined || "+x+" "+g+"= "+r+") ? "+p+" "+v+"= "+x+" : "+p+" "+v+" "+r+" ) : ( ("+w+" = "+x+" === true) ? "+p+" "+v+"= "+r+" : "+p+" "+v+" "+r+" ) || "+p+" !== "+p+") { var op"+o+" = "+w+" ? '"+g+"' : '"+g+"='; ",void 0===s&&(b=d,l=e.errSchemaPath+"/"+d,r=x,f=y)}else{C=g;if((A="number"==typeof m)&&f){var S="'"+C+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" ( "+r+" === undefined || "+m+" "+g+"= "+r+" ? "+p+" "+v+"= "+m+" : "+p+" "+v+" "+r+" ) || "+p+" !== "+p+") { "}else{A&&void 0===s?(w=!0,b=d,l=e.errSchemaPath+"/"+d,r=m,v+="="):(A&&(r=Math[h?"min":"max"](m,s)),m===(!A||r)?(w=!0,b=d,l=e.errSchemaPath+"/"+d,v+="="):(w=!1,C+="="));S="'"+C+"'";i+=" if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+p+" "+v+" "+r+" || "+p+" !== "+p+") { "}}b=b||t,(_=_||[]).push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(b||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { comparison: "+S+", limit: "+r+", exclusive: "+w+" } ",!1!==e.opts.messages&&(i+=" , message: 'should be "+C+" ",i+=f?"' + "+r:r+"'"),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";k=i;return i=_.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+k+"]); ":i+=" validate.errors = ["+k+"]; return false; ":i+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" "+p+".length "+("maxItems"==t?">":"<")+" "+r+") { ";var h=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxItems"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" items' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s;var h="maxLength"==t?">":"<";i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),!1===e.opts.unicode?i+=" "+p+".length ":i+=" ucs2length("+p+") ",i+=" "+h+" "+r+") { ";var d=t,m=m||[];m.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(d||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT be ",i+="maxLength"==t?"longer":"shorter",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" characters' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var y=i;return i=m.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+y+"]); ":i+=" validate.errors = ["+y+"]; return false; ":i+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i=" ",o=e.level,a=e.dataLevel,s=e.schema[t],u=e.schemaPath+e.util.getProperty(t),l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,p="data"+(a||""),f=e.opts.$data&&s&&s.$data;f?(i+=" var schema"+o+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",r="schema"+o):r=s,i+="if ( ",f&&(i+=" ("+r+" !== undefined && typeof "+r+" != 'number') || "),i+=" Object.keys("+p+").length "+("maxProperties"==t?">":"<")+" "+r+") { ";var h=t,d=d||[];d.push(i),i="",!1!==e.createErrors?(i+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { limit: "+r+" } ",!1!==e.opts.messages&&(i+=" , message: 'should NOT have ",i+="maxProperties"==t?"more":"fewer",i+=" than ",i+=f?"' + "+r+" + '":""+s,i+=" properties' "),e.opts.verbose&&(i+=" , schema: ",i+=f?"validate.schema"+u:""+s,i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),i+=" } "):i+=" {} ";var m=i;return i=d.pop(),!e.compositeRule&&c?e.async?i+=" throw new ValidationError(["+m+"]); ":i+=" validate.errors = ["+m+"]; return false; ":i+=" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} ",c&&(i+=" else { "),i}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},function(e,t,n){"use strict";(function(t,r){var i=n(98);e.exports=b;var o,a=n(414);b.ReadableState=v;n(141).EventEmitter;var s=function(e,t){return e.listeners(t).length},u=n(218),l=n(143).Buffer,c=t.Uint8Array||function(){};var p=n(80);p.inherits=n(61);var f=n(415),h=void 0;h=f&&f.debuglog?f.debuglog("stream"):function(){};var d,m=n(416),y=n(219);p.inherits(b,u);var g=["error","close","destroy","pause","resume"];function v(e,t){e=e||{};var r=t instanceof(o=o||n(50));this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,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.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(220).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function b(e){if(o=o||n(50),!(this instanceof b))return new b(e);this._readableState=new v(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function x(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,C(e)}(e,a)):(i||(o=function(e,t){var n;r=t,l.isBuffer(r)||r instanceof c||"string"==typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var r;return n}(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"==typeof t||a.objectMode||Object.getPrototypeOf(t)===l.prototype||(t=function(e){return l.from(e)}(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):w(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?w(e,a,t,!1):k(e,a)):w(e,a,t,!1))):r||(a.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.lengtht.highWaterMark&&(t.highWaterMark=function(e){return e>=E?e=E:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function C(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(h("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(_,e):_(e))}function _(e){h("emit readable"),e.emit("readable"),D(e)}function k(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(S,e,t))}function S(e,t){for(var n=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=function(e,t,n){var r;eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),0===(e-=a)){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}(e,t):function(e,t){var n=l.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;for(;r=r.next;){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),0===(e-=a)){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}(e,t);return r}(e,t.buffer,t.decoder),n);var n}function F(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(M,t,e))}function M(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function j(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return h("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?F(this):C(this),null;if(0===(e=A(e,t))&&t.ended)return 0===t.length&&F(this),null;var r,i=t.needReadable;return h("need readable",i),(0===t.length||t.length-e0?O(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&F(this)),null!==r&&this.emit("data",r),r},b.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},b.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,h("pipe count=%d opts=%j",o.pipesCount,t);var u=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr?c:b;function l(t,r){h("onunpipe"),t===n&&r&&!1===r.hasUnpiped&&(r.hasUnpiped=!0,h("cleanup"),e.removeListener("close",g),e.removeListener("finish",v),e.removeListener("drain",p),e.removeListener("error",y),e.removeListener("unpipe",l),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",m),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function c(){h("onend"),e.end()}o.endEmitted?i.nextTick(u):n.once("end",u),e.on("unpipe",l);var p=function(e){return function(){var t=e._readableState;h("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&s(e,"data")&&(t.flowing=!0,D(e))}}(n);e.on("drain",p);var f=!1;var d=!1;function m(t){h("ondata"),d=!1,!1!==e.write(t)||d||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==j(o.pipes,e))&&!f&&(h("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,d=!0),n.pause())}function y(t){h("onerror",t),b(),e.removeListener("error",y),0===s(e,"error")&&e.emit("error",t)}function g(){e.removeListener("finish",v),b()}function v(){h("onfinish"),e.removeListener("close",g),b()}function b(){h("unpipe"),n.unpipe(e)}return n.on("data",m),function(e,t,n){if("function"==typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,"error",y),e.once("close",g),e.once("finish",v),e.emit("pipe",n),o.flowing||(h("pipe resume"),n.resume()),e},b.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!=(192&t[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&t.length>1){if(128!=(192&t[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&t.length>2&&128!=(192&t[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2==0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function c(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function p(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";e.exports=a;var r=n(50),i=n(80);function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length0&&o(c)?n>1?e(c,n-1,o,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(40))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(152),i=n(231),o=n(153),a=1,s=2;e.exports=function(e,t,n,u,l,c){var p=n&a,f=e.length,h=t.length;if(f!=h&&!(p&&h>f))return!1;var d=c.get(e);if(d&&c.get(t))return d==t;var m=-1,y=!0,g=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++m0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n1&&d.reverse(),k&&C=l){var y=t?null:s(e);if(y)return u(y);h=!1,p=a,m=new r}else m=t?[]:d;e:for(;++c0?r:n)(e)}},function(e,t,n){var r=n(1),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.idyll,e.hasError,e.updateProps,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["idyll","hasError","updateProps"]));return t.if?r.createElement("div",null,t.children):r.createElement("div",{style:{display:"none"}},t.children)},t}(r.Component);i._idyll={name:"Conditional",tagType:"open",children:["Some text"],props:[{name:"if",type:"expression",example:"`x < 10`",description:"An expression; if this evaluates to true, the children will be rendered, otherwise nothing will be drawn to the screen"}]},e.exports=i},function(e,t,n){"use strict";var r=n(75),i=n(45);t.a=function(e){var t=Object(r.a)();return t.changedTouches&&(t=t.changedTouches[0]),Object(i.a)(e,t)}},function(e,t,n){"use strict";var r=n(75),i=n(45);t.a=function(e,t,n){arguments.length<3&&(n=t,t=Object(r.a)().changedTouches);for(var o,a=0,s=t?t.length:0;a=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["idyll","updateProps","hasError"]));return r.createElement("div",t)},t}(r.Component);i._idyll={name:"Graphic",tagType:"open"},e.exports=i},function(e,t,n){var r=Object.assign||function(e){for(var t=1;t=400}o.prototype.header=r.prototype.header,o.fromRequest=function(e){return new o(i(e))},e.exports=o},function(e,t,n){"use strict";function r(e){var t="string"==typeof e?{url:e}:e||{};this.method=t.method?t.method.toUpperCase():"GET",this.url=t.url,this.headers=t.headers||{},this.body=t.body,this.timeout=t.timeout||0,this.errorOn404=null==t.errorOn404||t.errorOn404,this.onload=t.onload,this.onerror=t.onerror}r.prototype.abort=function(){if(!this.aborted)return this.aborted=!0,this.xhr.abort(),this},r.prototype.header=function(e,t){var n;for(n in this.headers)if(this.headers.hasOwnProperty(n)&&e.toLowerCase()===n.toLowerCase()){if(1===arguments.length)return this.headers[n];delete this.headers[n];break}if(null!=t)return this.headers[e]=t,t},e.exports=r},function(e,t,n){"use strict";var r=n(177);e.exports=function(e){var t=e.xhr,n={request:e,xhr:t};try{var i,o,a,s={};if(t.getAllResponseHeaders)for(i=t.getAllResponseHeaders().split("\n"),o=0;o0||a){var n=!t.state.show;t.setState({currentEvent:e,currentTarget:u,show:!0},(function(){t.updatePosition(),n&&o&&o(e)}))}};clearTimeout(this.delayShowLoop),r?this.delayShowLoop=setTimeout(l,s):l()}}},{key:"listenForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.addEventListener("mouseleave",this.hideTooltip)}},{key:"removeListenerForTooltipExit",value:function(){this.state.show&&this.tooltipRef&&this.tooltipRef.removeEventListener("mouseleave",this.hideTooltip)}},{key:"hideTooltip",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{isScroll:!1},i=this.state.disable,o=r.isScroll,a=o?0:this.state.delayHide,s=this.props.afterHide,u=this.getTooltipContent();if(this.mount&&!this.isEmptyTip(u)&&!i){if(t){var l=this.getTargetArray(this.props.id),c=l.some((function(t){return t===e.currentTarget}));if(!c||!this.state.show)return}var p=function(){var t=n.state.show;n.mouseOnToolTip()?n.listenForTooltipExit():(n.removeListenerForTooltipExit(),n.setState({show:!1},(function(){n.removeScrollListener(),t&&s&&s(e)})))};this.clearTimer(),a?this.delayHideLoop=setTimeout(p,parseInt(a,10)):p()}}},{key:"hideTooltipOnScroll",value:function(e,t){this.hideTooltip(e,t,{isScroll:!0})}},{key:"addScrollListener",value:function(e){var t=this.isCapture(e);window.addEventListener("scroll",this.hideTooltipOnScroll,t)}},{key:"removeScrollListener",value:function(){window.removeEventListener("scroll",this.hideTooltipOnScroll)}},{key:"updatePosition",value:function(){var e=this,t=this.state,n=t.currentEvent,r=t.currentTarget,i=t.place,o=t.desiredPlace,a=t.effect,s=t.offset,u=this.tooltipRef,l=(0,g.default)(n,r,u,i,o,a,s);if(l.position&&this.props.overridePosition&&(l.position=this.props.overridePosition(l.position,n,r,u,i,o,a,s)),l.isNewState)return this.setState(l.newState,(function(){e.updatePosition()}));u.style.left=l.position.left+"px",u.style.top=l.position.top+"px"}},{key:"setStyleHeader",value:function(){var e=document.getElementsByTagName("head")[0];if(!e.querySelector('style[id="react-tooltip"]')){var t=document.createElement("style");t.id="react-tooltip",t.innerHTML=w.default,n.nc&&t.setAttribute("nonce",n.nc),e.insertBefore(t,e.firstChild)}}},{key:"clearTimer",value:function(){clearTimeout(this.delayShowLoop),clearTimeout(this.delayHideLoop),clearTimeout(this.delayReshow),clearInterval(this.intervalUpdateContent)}},{key:"render",value:function(){var e=this,n=this.state,r=n.extraClass,i=n.html,o=n.ariaProps,s=n.disable,l=this.getTooltipContent(),p=this.isEmptyTip(l),f=(0,c.default)("__react_component_tooltip",{show:this.state.show&&!s&&!p},{border:this.state.border},{"place-top":"top"===this.state.place},{"place-bottom":"bottom"===this.state.place},{"place-left":"left"===this.state.place},{"place-right":"right"===this.state.place},{"type-dark":"dark"===this.state.type},{"type-success":"success"===this.state.type},{"type-warning":"warning"===this.state.type},{"type-error":"error"===this.state.type},{"type-info":"info"===this.state.type},{"type-light":"light"===this.state.type},{allow_hover:this.props.delayUpdate},{allow_click:this.props.clickable}),h=this.props.wrapper;return t.supportedWrappers.indexOf(h)<0&&(h=t.defaultProps.wrapper),i?u.default.createElement(h,a({className:f+" "+r,id:this.props.id,ref:function(t){return e.tooltipRef=t}},o,{"data-id":"tooltip",dangerouslySetInnerHTML:{__html:l}})):u.default.createElement(h,a({className:f+" "+r,id:this.props.id},o,{ref:function(t){return e.tooltipRef=t},"data-id":"tooltip"}),l)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.ariaProps,r=(0,b.parseAria)(e);return Object.keys(r).some((function(e){return r[e]!==n[e]}))?a({},t,{ariaProps:r}):null}}]),t}(u.default.Component),i.propTypes={children:l.default.any,place:l.default.string,type:l.default.string,effect:l.default.string,offset:l.default.object,multiline:l.default.bool,border:l.default.bool,insecure:l.default.bool,class:l.default.string,className:l.default.string,id:l.default.string,html:l.default.bool,delayHide:l.default.number,delayUpdate:l.default.number,delayShow:l.default.number,event:l.default.string,eventOff:l.default.string,watchWindow:l.default.bool,isCapture:l.default.bool,globalEventOff:l.default.string,getContent:l.default.any,afterShow:l.default.func,afterHide:l.default.func,overridePosition:l.default.func,disable:l.default.bool,scrollHide:l.default.bool,resizeHide:l.default.bool,wrapper:l.default.string,clickable:l.default.bool},i.defaultProps={insecure:!0,resizeHide:!0,wrapper:"div",clickable:!1},i.supportedWrappers=["div","span"],i.displayName="ReactTooltip",r=o))||r)||r)||r)||r)||r)||r;e.exports=A},function(e,t,n){var r=n(43),i=n(276);e.exports=function(e,t){return e&&e.length?i(e,r(t,2)):[]}},function(e,t,n){var r=n(590)();e.exports=r},function(e,t,n){var r=n(159),i=n(591);e.exports=function(e,t){return e&&r(e,i(t))}},function(e,t,n){var r=n(592)(n(6));e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerLanguage=void 0;var r=o(n(595)),i=o(n(626));function o(e){return e&&e.__esModule?e:{default:e}}t.registerLanguage=i.default.registerLanguage;t.default=(0,r.default)(i.default,{})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#333",background:"#f8f8f8"},"hljs-comment":{color:"#998",fontStyle:"italic"},"hljs-quote":{color:"#998",fontStyle:"italic"},"hljs-keyword":{color:"#333",fontWeight:"bold"},"hljs-selector-tag":{color:"#333",fontWeight:"bold"},"hljs-subst":{color:"#333",fontWeight:"normal"},"hljs-number":{color:"#008080"},"hljs-literal":{color:"#008080"},"hljs-variable":{color:"#008080"},"hljs-template-variable":{color:"#008080"},"hljs-tag .hljs-attr":{color:"#008080"},"hljs-string":{color:"#d14"},"hljs-doctag":{color:"#d14"},"hljs-title":{color:"#900",fontWeight:"bold"},"hljs-section":{color:"#900",fontWeight:"bold"},"hljs-selector-id":{color:"#900",fontWeight:"bold"},"hljs-type":{color:"#458",fontWeight:"bold"},"hljs-class .hljs-title":{color:"#458",fontWeight:"bold"},"hljs-tag":{color:"#000080",fontWeight:"normal"},"hljs-name":{color:"#000080",fontWeight:"normal"},"hljs-attribute":{color:"#000080",fontWeight:"normal"},"hljs-regexp":{color:"#009926"},"hljs-link":{color:"#009926"},"hljs-symbol":{color:"#990073"},"hljs-bullet":{color:"#990073"},"hljs-built_in":{color:"#0086b3"},"hljs-builtin-name":{color:"#0086b3"},"hljs-meta":{color:"#999",fontWeight:"bold"},"hljs-deletion":{background:"#fdd"},"hljs-addition":{background:"#dfd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}}},function(e,t,n){"use strict";var r,i=n(634),o=n(635),a=n(636),s=n(637),u=n(290),l=n(291),c=n(177),p=n(293),f=s.create;e.exports=function e(t,n){function i(e,i){var s,h,d,m,y,g;for(e=new l(c(t,e)),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=(0,i.default)();if(u||(u=(0,o.default)(s)),t.events)throw new Error("Event handlers cannot be overwritten.");if("string"==typeof e&&!document.getElementById(e))throw new Error('Element "'+e+'" does not exist.');t.events=a.default.proxyEvents(s);var l=new Promise((function(n){"object"===(void 0===e?"undefined":r(e))&&e.playVideo instanceof Function?n(e):u.then((function(r){var i=new r.Player(e,t);return s.on("ready",(function(){n(i)})),null}))})),c=a.default.promisifyPlayer(l,n);return c.on=s.on,c.off=s.off,c},e.exports=t.default},,,function(e,t,n){"use strict"; -/** @license React v16.12.0 - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var r=n(187),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,p=i?Symbol.for("react.context"):60110,f=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113;i&&Symbol.for("react.suspense_list");var d=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder"),i&&Symbol.for("react.scope");var y="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nO.length&&O.push(e)}function j(e,t,n){return null==e?0:function e(t,n,r,i){var s=typeof t;"undefined"!==s&&"boolean"!==s||(t=null);var u=!1;if(null===t)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case o:case a:u=!0}}if(u)return r(i,t,""===n?"."+N(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var l=0;l