inequality-grammar 0.10.3 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["inequality-grammar"]=e():t["inequality-grammar"]=e()}(window,(function(){return function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=196)}([function(t,e){var r=Array.isArray;t.exports=r},function(t,e,r){var n=r(53),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,r){var n=r(84),o=r(90);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},function(t,e,r){var n=r(29);t.exports=function(t,e){return n(t,e)}},function(t,e,r){var n=r(6),o=r(86),i=r(87),a=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e,r){var n=r(1).Symbol;t.exports=n},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,r){var n=r(62),o=r(64),i=r(10);t.exports=function(t){return i(t)?n(t):o(t)}},function(t,e,r){var n,o;n=this,o=function(){function t(e,r,n){return this.id=++t.highestId,this.name=e,this.symbols=r,this.postprocess=n,this}function e(t,e,r,n){this.rule=t,this.dot=e,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===t.symbols.length}function r(t,e){this.grammar=t,this.index=e,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(t,e){this.rules=t,this.start=e||this.rules[0].name;var r=this.byName={};this.rules.forEach((function(t){r.hasOwnProperty(t.name)||(r[t.name]=[]),r[t.name].push(t)}))}function o(){this.reset("")}function i(t,e,i){if(t instanceof n){var a=t;i=e}else a=n.fromCompiled(t,e);for(var s in this.grammar=a,this.options={keepHistory:!1,lexer:a.lexer||new o},i||{})this.options[s]=i[s];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(a,0);this.table=[u],u.wants[a.start]=[],u.predict(a.start),u.process(),this.current=0}function a(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return t.toString();if(t.type)return"%"+t.type;if(t.test)return"<"+String(t.test)+">";throw new Error("Unknown symbol type: "+t)}}return t.highestId=0,t.prototype.toString=function(t){var e=void 0===t?this.symbols.map(a).join(" "):this.symbols.slice(0,t).map(a).join(" ")+" ● "+this.symbols.slice(t).map(a).join(" ");return this.name+" → "+e},e.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},e.prototype.nextState=function(t){var r=new e(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=t,r.isComplete&&(r.data=r.build(),r.right=void 0),r},e.prototype.build=function(){var t=[],e=this;do{t.push(e.right.data),e=e.left}while(e.left);return t.reverse(),t},e.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(t){for(var e=this.states,r=this.wants,n=this.completed,o=0;o<e.length;o++){var a=e[o];if(a.isComplete){if(a.finish(),a.data!==i.fail){for(var s=a.wantedBy,u=s.length;u--;){var c=s[u];this.complete(c,a)}if(a.reference===this.index){var l=a.rule.name;(this.completed[l]=this.completed[l]||[]).push(a)}}}else{if("string"!=typeof(l=a.rule.symbols[a.dot])){this.scannable.push(a);continue}if(r[l]){if(r[l].push(a),n.hasOwnProperty(l)){var p=n[l];for(u=0;u<p.length;u++){var f=p[u];this.complete(a,f)}}}else r[l]=[a],this.predict(l)}}},r.prototype.predict=function(t){for(var r=this.grammar.byName[t]||[],n=0;n<r.length;n++){var o=r[n],i=this.wants[t],a=new e(o,0,this.index,i);this.states.push(a)}},r.prototype.complete=function(t,e){var r=t.nextState(e);this.states.push(r)},n.fromCompiled=function(e,r){var o=e.Lexer;e.ParserStart&&(r=e.ParserStart,e=e.ParserRules);var i=new n(e=e.map((function(e){return new t(e.name,e.symbols,e.postprocess)})),r);return i.lexer=o,i},o.prototype.reset=function(t,e){this.buffer=t,this.index=0,this.line=e?e.line:1,this.lastLineBreak=e?-e.col:0},o.prototype.next=function(){if(this.index<this.buffer.length){var t=this.buffer[this.index++];return"\n"===t&&(this.line+=1,this.lastLineBreak=this.index),{value:t}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(t,e){var r=this.buffer;if("string"==typeof r){var n=r.split("\n").slice(Math.max(0,this.line-5),this.line),o=r.indexOf("\n",this.index);-1===o&&(o=r.length);var i=this.index-this.lastLineBreak,a=String(this.line).length;return e+=" at line "+this.line+" col "+i+":\n\n",e+=n.map((function(t,e){return s(this.line-n.length+e+1,a)+" "+t}),this).join("\n"),e+="\n"+s("",a+i)+"^\n"}return e+" at index "+(this.index-1);function s(t,e){var r=String(t);return Array(e-r.length+1).join(" ")+r}},i.fail={},i.prototype.feed=function(t){var e,n=this.lexer;for(n.reset(t,this.lexerState);;){try{if(!(e=n.next()))break}catch(t){var i=new r(this.grammar,this.current+1);throw this.table.push(i),(u=new Error(this.reportLexerError(t))).offset=this.current,u.token=t.token,u}var a=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var s=this.current+1;i=new r(this.grammar,s),this.table.push(i);for(var u,c=void 0!==e.text?e.text:e.value,l=n.constructor===o?e.value:e,p=a.scannable,f=p.length;f--;){var h=p[f],y=h.rule.symbols[h.dot];if(y.test?y.test(l):y.type?y.type===e.type:y.literal===c){var v=h.nextState({data:l,token:e,isToken:!0,reference:s-1});i.states.push(v)}}if(i.process(),0===i.states.length)throw(u=new Error(this.reportError(e))).offset=this.current,u.token=e,u;this.options.keepHistory&&(a.lexerState=n.save()),this.current++}return a&&(this.lexerState=n.save()),this.results=this.finish(),this},i.prototype.reportLexerError=function(t){var e,r,n=t.token;return n?(e="input "+JSON.stringify(n.text[0])+" (lexer error)",r=this.lexer.formatError(n,"Syntax error")):(e="input (lexer error)",r=t.message),this.reportErrorCommon(r,e)},i.prototype.reportError=function(t){var e=(t.type?t.type+" token: ":"")+JSON.stringify(void 0!==t.value?t.value:t),r=this.lexer.formatError(t,"Syntax error");return this.reportErrorCommon(r,e)},i.prototype.reportErrorCommon=function(t,e){var r=[];r.push(t);var n=this.table.length-2,o=this.table[n],i=o.states.filter((function(t){var e=t.rule.symbols[t.dot];return e&&"string"!=typeof e}));return 0===i.length?(r.push("Unexpected "+e+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(o.states,r)):(r.push("Unexpected "+e+". Instead, I was expecting to see one of the following:\n"),i.map((function(t){return this.buildFirstStateStack(t,[])||[t]}),this).forEach((function(t){var e=t[0],n=e.rule.symbols[e.dot],o=this.getSymbolDisplay(n);r.push("A "+o+" based on:"),this.displayStateStack(t,r)}),this)),r.push(""),r.join("\n")},i.prototype.displayStateStack=function(t,e){for(var r,n=0,o=0;o<t.length;o++){var i=t[o],a=i.rule.toString(i.dot);a===r?n++:(n>0&&e.push(" ^ "+n+" more lines identical to this"),n=0,e.push(" "+a)),r=a}},i.prototype.getSymbolDisplay=function(t){return function(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return"character matching "+t;if(t.type)return t.type+" token";if(t.test)return"token matching "+String(t.test);throw new Error("Unknown symbol type: "+t)}}(t)},i.prototype.buildFirstStateStack=function(t,e){if(-1!==e.indexOf(t))return null;if(0===t.wantedBy.length)return[t];var r=t.wantedBy[0],n=[t].concat(e),o=this.buildFirstStateStack(r,n);return null===o?null:[t].concat(o)},i.prototype.save=function(){var t=this.table[this.current];return t.lexerState=this.lexerState,t},i.prototype.restore=function(t){var e=t.index;this.current=e,this.table[e]=t,this.table.splice(e+1),this.lexerState=t.lexerState,this.results=this.finish()},i.prototype.rewind=function(t){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[t])},i.prototype.finish=function(){var t=[],e=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(r){r.rule.name===e&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&t.push(r)})),t.map((function(t){return t.data}))},{Parser:i,Grammar:n,Rule:t}},t.exports?t.exports=o():n.nearley=o()},function(t,e,r){var n=r(52),o=r(35);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},function(t,e,r){var n=r(131),o=r(27),i=r(132),a=r(56),s=r(133),u=r(5),c=r(54),l=c(n),p=c(o),f=c(i),h=c(a),y=c(s),v=u;(n&&"[object DataView]"!=v(new n(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case l:return"[object DataView]";case p:return"[object Map]";case f:return"[object Promise]";case h:return"[object Set]";case y:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,r){var n=r(67),o=r(39);t.exports=function(t,e,r,i){var a=!r;r||(r={});for(var s=-1,u=e.length;++s<u;){var c=e[s],l=i?i(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),a?o(r,c,l):n(r,c,l)}return r}},function(t,e,r){var n=r(48);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,r){var n=r(3)(Object,"create");t.exports=n},function(t,e,r){var n=r(95),o=r(96),i=r(97),a=r(98),s=r(99);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(26);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},function(t,e,r){var n=r(101);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},function(t,e,r){var n=r(127),o=r(2),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e,r){(function(t){var n=r(1),o=r(128),i=e&&!e.nodeType&&e,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,s=a&&a.exports===i?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||o;t.exports=u}).call(this,r(33)(t))},function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},function(t,e,r){var n=r(0),o=r(47),i=r(160),a=r(163);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,r){var n=r(64),o=r(11),i=r(18),a=r(0),s=r(10),u=r(19),c=r(20),l=r(34),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},function(t,e,r){var n=r(44),o=r(66),i=r(174),a=r(21),s=r(12),u=r(178),c=r(180),l=r(70),p=c((function(t,e){var r={};if(null==t)return r;var c=!1;e=n(e,(function(e){return e=a(e,t),c||(c=e.length>1),e})),s(t,l(t),r),c&&(r=o(r,7,u));for(var p=e.length;p--;)i(r,e[p]);return r}));t.exports=p},function(t,e,r){var n=r(80);t.exports=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?n(t,void 0,e):[]}},function(t,e,r){var n=r(81),o=r(100),i=r(102),a=r(103),s=r(104);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,r){var n=r(3)(r(1),"Map");t.exports=n},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},function(t,e,r){var n=r(115),o=r(2);t.exports=function t(e,r,i,a,s){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,a,t,s))}},function(t,e,r){var n=r(15),o=r(116),i=r(117),a=r(118),s=r(119),u=r(120);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,t.exports=c},function(t,e){t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},function(t,e,r){var n=r(125),o=r(61),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(t){return null==t?[]:(t=Object(t),n(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=s},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,r){var n=r(129),o=r(36),i=r(37),a=i&&i.isTypedArray,s=a?o(a):n;t.exports=s},function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t){return function(e){return t(e)}}},function(t,e,r){(function(t){var n=r(53),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o&&n.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();t.exports=s}).call(this,r(33)(t))},function(t,e,r){var n=r(66);t.exports=function(t){return n(t,5)}},function(t,e,r){var n=r(68);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},function(t,e,r){var n=r(62),o=r(137),i=r(10);t.exports=function(t){return i(t)?n(t,!0):o(t)}},function(t,e,r){var n=r(65)(Object.getPrototypeOf,Object);t.exports=n},function(t,e,r){var n=r(58);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},function(t,e,r){var n=r(44),o=r(45),i=r(171),a=r(0);t.exports=function(t,e){return(a(t)?n:i)(t,o(e,3))}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},function(t,e,r){var n=r(155),o=r(158),i=r(73),a=r(0),s=r(168);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(t[0],t[1]):n(t):s(t)}},function(t,e,r){var n=r(21),o=r(13);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},function(t,e,r){var n=r(0),o=r(48),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||(a.test(t)||!i.test(t)||null!=e&&t in Object(e))}},function(t,e,r){var n=r(5),o=r(2);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},function(t,e,r){var n=r(190),o=r(191),i=r(45),a=r(194),s=r(0);t.exports=function(t,e,r){var u=s(t)?n:a,c=arguments.length<3;return u(t,i(e,4),r,c,o)}},function(t,e,r){var n=r(39),o=r(74),i=r(45);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},function(t,e,r){var n=r(25),o=r(105),i=r(106);function a(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e,r){var n=r(5),o=r(7);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r(85))},function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,r){var n=r(3)(r(1),"Set");t.exports=n},function(t,e,r){var n=r(51),o=r(121),i=r(55);t.exports=function(t,e,r,a,s,u){var c=1&r,l=t.length,p=e.length;if(l!=p&&!(c&&p>l))return!1;var f=u.get(t),h=u.get(e);if(f&&h)return f==e&&h==t;var y=-1,v=!0,d=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++y<l;){var b=t[y],m=e[y];if(a)var g=c?a(m,b,y,e,t,u):a(b,m,y,t,e,u);if(void 0!==g){if(g)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||s(b,t,r,a,u)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!s(b,m,r,a,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},function(t,e,r){var n=r(1).Uint8Array;t.exports=n},function(t,e,r){var n=r(60),o=r(32),i=r(8);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(31),o=r(0);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},function(t,e){t.exports=function(){return[]}},function(t,e,r){var n=r(126),o=r(18),i=r(0),a=r(19),s=r(63),u=r(34),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),p=!r&&!l&&a(t),f=!r&&!l&&!p&&u(t),h=r||l||p||f,y=h?n(t.length,String):[],v=y.length;for(var d in t)!e&&!c.call(t,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||f&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||s(d,v))||y.push(d);return y}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},function(t,e,r){var n=r(20),o=r(130),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},function(t,e,r){var n=r(30),o=r(134),i=r(67),a=r(135),s=r(136),u=r(139),c=r(140),l=r(141),p=r(142),f=r(59),h=r(70),y=r(11),v=r(143),d=r(144),b=r(149),m=r(0),g=r(19),x=r(151),_=r(7),j=r(153),w=r(8),O=r(40),S={};S["[object Arguments]"]=S["[object Array]"]=S["[object ArrayBuffer]"]=S["[object DataView]"]=S["[object Boolean]"]=S["[object Date]"]=S["[object Float32Array]"]=S["[object Float64Array]"]=S["[object Int8Array]"]=S["[object Int16Array]"]=S["[object Int32Array]"]=S["[object Map]"]=S["[object Number]"]=S["[object Object]"]=S["[object RegExp]"]=S["[object Set]"]=S["[object String]"]=S["[object Symbol]"]=S["[object Uint8Array]"]=S["[object Uint8ClampedArray]"]=S["[object Uint16Array]"]=S["[object Uint32Array]"]=!0,S["[object Error]"]=S["[object Function]"]=S["[object WeakMap]"]=!1,t.exports=function t(e,r,A,P,k,R){var E,L=1&r,$=2&r,M=4&r;if(A&&(E=k?A(e,P,k,R):A(e)),void 0!==E)return E;if(!_(e))return e;var D=m(e);if(D){if(E=v(e),!L)return c(e,E)}else{var T=y(e),F="[object Function]"==T||"[object GeneratorFunction]"==T;if(g(e))return u(e,L);if("[object Object]"==T||"[object Arguments]"==T||F&&!k){if(E=$||F?{}:b(e),!L)return $?p(e,s(E,e)):l(e,a(E,e))}else{if(!S[T])return k?e:{};E=d(e,T,L)}}R||(R=new n);var N=R.get(e);if(N)return N;R.set(e,E),j(e)?e.forEach((function(n){E.add(t(n,r,A,n,e,R))})):x(e)&&e.forEach((function(n,o){E.set(o,t(n,r,A,o,e,R))}));var I=D?void 0:(M?$?h:f:$?O:w)(e);return o(I||e,(function(n,o){I&&(n=e[o=n]),i(E,o,t(n,r,A,o,e,R))})),E}},function(t,e,r){var n=r(39),o=r(26),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var a=t[e];i.call(t,e)&&o(a,r)&&(void 0!==r||e in t)||n(t,e,r)}},function(t,e,r){var n=r(3),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,e,r){var n=r(31),o=r(41),i=r(32),a=r(61),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:a;t.exports=s},function(t,e,r){var n=r(60),o=r(69),i=r(40);t.exports=function(t){return n(t,i,o)}},function(t,e,r){var n=r(7);t.exports=function(t){return t==t&&!n(t)}},function(t,e){t.exports=function(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}},function(t,e){t.exports=function(t){return t}},function(t,e,r){var n=r(173),o=r(8);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e){t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),a=n(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===r(i[u],u,i))break}return e}}},function(t,e,r){var n=r(10);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,a=e?i:-1,s=Object(r);(e?a--:++a<i)&&!1!==o(s[a],a,s););return r}}},function(t,e,r){"use strict";r.r(e),r.d(e,"_rightChainToArray",(function(){return p})),r.d(e,"_findRightmost",(function(){return f})),r.d(e,"_safeToRemove",(function(){return h})),r.d(e,"_simplify",(function(){return y}));r(38);var n=r(22),o=r.n(n),i=(r(4),r(43),r(50)),a=r.n(i),s=r(23),u=r.n(s);r(49);function c(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return l(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var p=function(t){for(var e=t,r=[e];e.children.right;)e=e.children.right,r=[].concat(c(r),[e]);return r},f=function(t){for(var e=t;e.children.right;)e=e.children.right;return e},h=function(t){return t&&"Brackets"===t.type&&o()(u()(t.children,"argument"))},y=function t(e){if(e.children=a()(e.children,(function(e,r,n){return t(e)})),"Brackets"===e.type||"Fn"===e.type){var r=e.children.argument;h(r)&&(e.children.argument=r.children.argument)}if("Fraction"===e.type){var n=e.children.numerator;h(n)&&(e.children.numerator=n.children.argument);var o=e.children.denominator;h(o)&&(e.children.denominator=o.children.argument)}var i=e.children.superscript;return h(i)&&(e.children.superscript=i.children.argument),e}},function(t,e,r){!function(){function e(t){return t[0]}var n=c(r(38)),o=(c(r(22)),c(r(4))),i=c(r(43)),a=c(r(23)),s=c(r(49)),u=r(77);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",varepsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω"};var d=r(195).compile({Int:/[0-9]+/,IdMod:/[a-zA-Z]+_(?:prime)/,Id:{match:/[a-zA-Z]+(?:_[a-zA-Z0-9]+)?/,type:function(t){for(var e=Object.create(null),r=Object.getOwnPropertyNames(t),n=function(n){var o=r[n],i=t[o];(Array.isArray(i)?i:[i]).forEach((function(t){if("string"!=typeof t)throw new Error("keyword must be string (in keyword '"+o+"')");e[t]=o}))},o=0;o<r.length;o++)n(o);return function(t){return e[t]}}({TrigFn:["cos","sin","tan","cosec","sec","cot","cosh","sinh","tanh","cosech","sech","coth","arccos","arcsin","arctan","arccosec","arcsec","arccot","arccosh","arcsinh","arctanh","arccosech","arcsech","arccoth","acos","asin","atan","acosec","asec","acot","acosh","asinh","atanh","acosech","asech","acoth"],Fn:["ln","abs"],Log:["log"],Radix:["sqrt"],Derivative:["diff","Derivative"]})},Rel:["=","==","<","<=",">",">="],PlusMinus:["+","-","±","-","-"],Pow:["**","^"],Mul:["*","×"],Div:["/","÷"],Lparen:"(",Rparen:")",Comma:",",c:/./}),b=null;try{b=window}catch(t){b={innerWidth:800,innerHeight:600}}var m=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=new RegExp("^(?:a|arc)([^r].+)$"),i=t.text,a=!1;o.test(i)&&(i=o.exec(i)[1],a=1);var s,u=(0,n.default)(e),c=(0,n.default)(r);return s=null===c?{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{argument:u}}:{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{superscript:c,argument:u}},a&&(s.children.superscript={type:"Num",properties:{significand:"-1"},children:{}}),s},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"Fn",properties:{name:"log",allowSubscript:!0,innerSuperscript:!1},children:{argument:t}};return null!==e?"Num"!==e.type&&"Symbol"!==e.type||(r.children.subscript=(0,n.default)(e)):r.children.subscript={type:"Num",properties:{significand:"10"},children:{}},r},x=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]);return(0,u._findRightmost)(e).children.right=r,e},_=function(t){var e=(0,i.default)(t.split(""),(function(t){return/[0-9]/.test(t)?j([{text:t}]):{type:"Symbol",properties:{letter:t},children:{}}}));return(0,s.default)(e,(function(t,e){return e.children.right=t,e}))},j=function(t){return{type:"Num",properties:{significand:t[0].text},children:{}}},w={Lexer:d,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:b.innerWidth/4,y:b.innerHeight/3},e.expression={latex:"",python:""},(0,u._simplify)(e)}},{name:"main",symbols:["_","AS","_",d.has("Rel")?{type:"Rel"}:Rel,"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),o={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,u._findRightmost)(e).children.right=o,h(h({},e=(0,u._simplify)(e)),{},{position:{x:b.innerWidth/4,y:b.innerHeight/3},expression:{latex:"",python:""}})}},{name:"P",symbols:[d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:(0,n.default)(t[2])}}}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[3],null)}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Pow")?{type:"Pow"}:Pow,"NUM",d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[5],t[2])}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen,d.has("Pow")?{type:"Pow"}:Pow,"NUM"],postprocess:function(t){return m(t[0],t[3],t[7])}},{name:"P",symbols:[d.has("Derivative")?{type:"Derivative"}:Derivative,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","ARGS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t[3]}},r=t[7].reduce((function(t,e){if(0==t.length)return[{object:e,order:1}];var r=t[t.length-1];return"Num"===e.type?(r.order=parseInt(e.properties.significand),[].concat(l(t.slice(0,t.length-1)),[r])):(0,o.default)(e,r.object)?(r.order=r.order+1,[].concat(l(t.slice(0,t.length-1)),[r])):[].concat(l(t),[{object:e,order:1}])}),[]).map((function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t.object}};return t.order>1&&(e.children.order={type:"Num",properties:{significand:"".concat(t.order)},children:{}}),e})),n=r.reduce((function(t,e){return t+parseInt(e.children.order?e.children.order.properties.significand:"1")}),0);return n>1&&(e.children.order={type:"Num",properties:{significand:"".concat(n)},children:{}}),{type:"Derivative",children:{numerator:e,denominator:(0,s.default)(r,(function(t,e){return e.children.right=t,e}))}}}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","VAR","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","NUM","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Radix")?{type:"Radix"}:Radix,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Radix",children:{argument:(0,n.default)(t[3])}}}},{name:"P",symbols:[d.has("Fn")?{type:"Fn"}:Fn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e=(0,n.default)(t[3]);return"abs"===t[0].text?{type:"AbsoluteValue",children:{argument:e}}:{type:"Fn",properties:{name:t[0].text,allowSubscript:"ln"!==t[0].text,innerSuperscript:!1},children:{argument:e}}}},{name:"P",symbols:["VAR"],postprocess:e},{name:"P",symbols:["NUM"],postprocess:e},{name:"P",symbols:[d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","P"],postprocess:function(t){return{type:"BinaryOperation",properties:{operation:t[0].text},children:{right:t[2]}}}},{name:"ARGS",symbols:["AS"],postprocess:function(t){return[t[0]]}},{name:"ARGS",symbols:["ARGS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","AS"],postprocess:function(t){return t[0].concat(t[4])}},{name:"E",symbols:["P","_",d.has("Pow")?{type:"Pow"}:Pow,"_","E"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]),o=(0,u._findRightmost)(e);if("BinaryOperation"===r.type){var i=(0,n.default)(r.children.right.children.right);i&&(e.children.right=i,r.children.right.children=(0,a.default)(r.children.right.children,"right"))}else{var s=(0,n.default)(r.children.right);s&&(o.children.right=s,r.children=(0,a.default)(r.children,"right"))}if(!(["Fn","Log","TrigFn"].indexOf(e.type)>-1))return o.children.superscript=r,e;switch(e.properties.name){case"ln":case"log":return{type:"Brackets",properties:{type:"round"},children:{argument:e,superscript:r}};default:return o.children.superscript=r,e}}},{name:"E",symbols:["P"],postprocess:e},{name:"MD",symbols:["MD","_",d.has("Mul")?{type:"Mul"}:Mul,"_","E"],postprocess:x},{name:"MD",symbols:["MD","_",d.has("Div")?{type:"Div"}:Div,"_","E"],postprocess:function(t){var e=null;"BinaryOperation"===t[4].type?(e=(0,n.default)(t[4].children.right.children.right),t[4].children.right.children=(0,a.default)(t[4].children.right.children,"right")):(e=(0,n.default)(t[4].children.right),t[4].children=(0,a.default)(t[4].children,"right"));var r=(0,n.default)(t[0]),o=(0,u._rightChainToArray)(r).map((function(t){return t.children=(0,a.default)(t.children,"right"),t})),i={type:"Fraction",children:{numerator:o.pop(),denominator:(0,n.default)(t[4])}};return e&&(i.children.right=e),o.length>0?(o[o.length-1].children.right=i,o.reduceRight((function(t,e){return e.children.right=t,e}))):i}},{name:"MD",symbols:["MD","_","E"],postprocess:x},{name:"MD",symbols:["E"],postprocess:e},{name:"AS",symbols:["AS","_",d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","MD"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]);return(0,u._findRightmost)(e).children.right={type:"BinaryOperation",properties:{operation:t[2].text},children:{right:r}},e}},{name:"AS",symbols:["MD"],postprocess:e},{name:"VAR",symbols:[d.has("Id")?{type:"Id"}:Id],postprocess:function t(e){var r=Object.keys(v),n=e[0].text.split("_"),o=["[a-zA-Z]"].concat(l(r)).join("|"),i=new RegExp("^((?:d|D)(?:elta)?)(".concat(o,")$")),a=n[0].match(i);if(a)return{type:"Differential",properties:{letter:v[a[1]]||a[1]},children:{argument:t([{text:e[0].text.substring(a[1].length)}])}};r.indexOf(n[0])>-1&&(n[0]=v[n[0]]);var s=_(n[0]);if(n.length>1){r.indexOf(n[1])>-1&&(n[1]=v[n[1]]);var c=_(n[1]);(0,u._findRightmost)(s).children.subscript=c}return s}},{name:"VAR",symbols:[d.has("IdMod")?{type:"IdMod"}:IdMod],postprocess:function(t){var e=Object.keys(v),r=t[0].text.split("_");e.indexOf(r[0])>-1&&(r[0]=v[r[0]]);var n=_(r[0]);return(0,u._findRightmost)(n).properties.modifier=r[1],n}},{name:"NUM",symbols:[d.has("Int")?{type:"Int"}:Int],postprocess:j},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==t.exports?t.exports=w:window.grammar=w}()},function(t,e,r){!function(){function e(t){return t[0]}var n=i(r(38)),o=(i(r(22)),i(r(4)),i(r(43)),i(r(50)),i(r(23)),i(r(49)),r(77));function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=null;try{c=window}catch(t){c={innerWidth:800,innerHeight:600}}var l=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]),i=(0,o._findRightmost)(e),a="";switch(t[2].toLowerCase()){case"AND":case"and":case"&":case"∧":case".":a="and";break;case"OR":case"or":case"|":case"∨":case"v":case"+":a="or";break;case"XOR":case"xor":case"^":case"⊻":a="xor";break;default:a=""}return i.children.right={type:"LogicBinaryOperation",properties:{operation:a},children:{right:r}},e},p=function(t){return{type:"LogicNot",children:{argument:t[2]}}},f={Lexer:void 0,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:c.innerWidth/4,y:c.innerHeight/3},e.expression={latex:"",python:""},(0,o._simplify)(e)}},{name:"main",symbols:["_","AS","_",{literal:"="},"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),i={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,o._findRightmost)(e).children.right=i,s(s({},e=(0,o._simplify)(e)),{},{position:{x:c.innerWidth/4,y:c.innerHeight/3},expression:{latex:"",python:""}})}},{name:"AS$string$1",symbols:[{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$1","_","MD"],postprocess:l},{name:"AS$string$2",symbols:[{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$2","_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"|"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"∨"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"v"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"+"},"_","MD"],postprocess:l},{name:"AS",symbols:["MD"],postprocess:e},{name:"MD$string$1",symbols:[{literal:"A"},{literal:"N"},{literal:"D"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$1","_","XOR"],postprocess:l},{name:"MD$string$2",symbols:[{literal:"a"},{literal:"n"},{literal:"d"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$2","_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"&"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"∧"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"."},"_","XOR"],postprocess:l},{name:"MD",symbols:["XOR"],postprocess:e},{name:"XOR$string$1",symbols:[{literal:"X"},{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$1","_","P"],postprocess:l},{name:"XOR$string$2",symbols:[{literal:"x"},{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$2","_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"^"},"_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"⊻"},"_","P"],postprocess:l},{name:"XOR",symbols:["P"],postprocess:e},{name:"P",symbols:[{literal:"("},"_","AS","_",{literal:")"}],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:t[2]}}}},{name:"P",symbols:["N"],postprocess:e},{name:"N$string$1",symbols:[{literal:"N"},{literal:"O"},{literal:"T"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$1","_","P"],postprocess:p},{name:"N$string$2",symbols:[{literal:"n"},{literal:"o"},{literal:"t"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$2","_","P"],postprocess:p},{name:"N",symbols:[{literal:"!"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"~"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"¬"},"_","P"],postprocess:p},{name:"N",symbols:["L"],postprocess:e},{name:"L$string$1",symbols:[{literal:"t"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$1"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$2",symbols:[{literal:"T"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$2"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"T"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"1"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$3",symbols:[{literal:"f"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$3"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L$string$4",symbols:[{literal:"F"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$4"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"F"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"0"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[/[A-EG-SU-Z]/],postprocess:function(t){return{type:"Symbol",properties:{letter:t[0]},children:{}}}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(t){return null}}],ParserStart:"main"};void 0!==t.exports?t.exports=f:window.grammar=f}()},function(t,e,r){var n=r(51),o=r(107),i=r(112),a=r(55),s=r(113),u=r(28);t.exports=function(t,e,r){var c=-1,l=o,p=t.length,f=!0,h=[],y=h;if(r)f=!1,l=i;else if(p>=200){var v=e?null:s(t);if(v)return u(v);f=!1,l=a,y=new n}else y=e?[]:h;t:for(;++c<p;){var d=t[c],b=e?e(d):d;if(d=r||0!==d?d:0,f&&b==b){for(var m=y.length;m--;)if(y[m]===b)continue t;e&&y.push(b),h.push(d)}else l(y,b,r)||(y!==h&&y.push(b),h.push(d))}return h}},function(t,e,r){var n=r(82),o=r(15),i=r(27);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},function(t,e,r){var n=r(83),o=r(91),i=r(92),a=r(93),s=r(94);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=s,t.exports=u},function(t,e,r){var n=r(14);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,r){var n=r(52),o=r(88),i=r(7),a=r(54),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:s).test(a(t))}},function(t,e){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(t){"object"==typeof window&&(r=window)}t.exports=r},function(t,e,r){var n=r(6),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=a.call(t);return n&&(e?t[s]=r:delete t[s]),o}},function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},function(t,e,r){var n,o=r(89),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},function(t,e,r){var n=r(1)["__core-js_shared__"];t.exports=n},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,r){var n=r(14),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},function(t,e,r){var n=r(14),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},function(t,e,r){var n=r(14);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,r){var n=r(16),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():o.call(e,r,1),--this.size,!0)}},function(t,e,r){var n=r(16);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},function(t,e,r){var n=r(16);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,r){var n=r(16);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},function(t,e,r){var n=r(17);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,r){var n=r(17);t.exports=function(t){return n(this,t).get(t)}},function(t,e,r){var n=r(17);t.exports=function(t){return n(this,t).has(t)}},function(t,e,r){var n=r(17);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(108);t.exports=function(t,e){return!!(null==t?0:t.length)&&n(t,e,0)>-1}},function(t,e,r){var n=r(109),o=r(110),i=r(111);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},function(t,e){t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},function(t,e){t.exports=function(t){return t!=t}},function(t,e){t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},function(t,e){t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},function(t,e,r){var n=r(56),o=r(114),i=r(28),a=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=a},function(t,e){t.exports=function(){}},function(t,e,r){var n=r(30),o=r(57),i=r(122),a=r(124),s=r(11),u=r(0),c=r(19),l=r(34),p="[object Object]",f=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,h,y,v){var d=u(t),b=u(e),m=d?"[object Array]":s(t),g=b?"[object Array]":s(e),x=(m="[object Arguments]"==m?p:m)==p,_=(g="[object Arguments]"==g?p:g)==p,j=m==g;if(j&&c(t)){if(!c(e))return!1;d=!0,x=!1}if(j&&!x)return v||(v=new n),d||l(t)?o(t,e,r,h,y,v):i(t,e,m,r,h,y,v);if(!(1&r)){var w=x&&f.call(t,"__wrapped__"),O=_&&f.call(e,"__wrapped__");if(w||O){var S=w?t.value():t,A=O?e.value():e;return v||(v=new n),y(S,A,r,h,v)}}return!!j&&(v||(v=new n),a(t,e,r,h,y,v))}},function(t,e,r){var n=r(15);t.exports=function(){this.__data__=new n,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,r){var n=r(15),o=r(27),i=r(25);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(t,e),this.size=r.size,this}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},function(t,e,r){var n=r(6),o=r(58),i=r(26),a=r(57),s=r(123),u=r(28),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=s;case"[object Set]":var y=1&n;if(h||(h=u),t.size!=e.size&&!y)return!1;var v=f.get(t);if(v)return v==e;n|=2,f.set(t,e);var d=a(h(t),h(e),n,c,p,f);return f.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},function(t,e){t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},function(t,e,r){var n=r(59),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,a,s){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var p=l;p--;){var f=c[p];if(!(u?f in e:o.call(e,f)))return!1}var h=s.get(t),y=s.get(e);if(h&&y)return h==e&&y==t;var v=!0;s.set(t,e),s.set(e,t);for(var d=u;++p<l;){var b=t[f=c[p]],m=e[f];if(i)var g=u?i(m,b,f,e,t,s):i(b,m,f,t,e,s);if(!(void 0===g?b===m||a(b,m,r,i,s):g)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var x=t.constructor,_=e.constructor;x==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(v=!1)}return s.delete(t),s.delete(e),v}},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}},function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},function(t,e,r){var n=r(5),o=r(2);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,r){var n=r(5),o=r(35),i=r(2),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[n(t)]}},function(t,e,r){var n=r(65)(Object.keys,Object);t.exports=n},function(t,e,r){var n=r(3)(r(1),"DataView");t.exports=n},function(t,e,r){var n=r(3)(r(1),"Promise");t.exports=n},function(t,e,r){var n=r(3)(r(1),"WeakMap");t.exports=n},function(t,e){t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},function(t,e,r){var n=r(12),o=r(8);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(12),o=r(40);t.exports=function(t,e){return t&&n(e,o(e),t)}},function(t,e,r){var n=r(7),o=r(20),i=r(138),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var s in t)("constructor"!=s||!e&&a.call(t,s))&&r.push(s);return r}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},function(t,e,r){(function(t){var n=r(1),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}}).call(this,r(33)(t))},function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},function(t,e,r){var n=r(12),o=r(32);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e,r){var n=r(12),o=r(69);t.exports=function(t,e){return n(t,o(t),e)}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,r){var n=r(42),o=r(145),i=r(146),a=r(147),s=r(148);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(t,r);case"[object Map]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Set]":return new u;case"[object Symbol]":return a(t)}}},function(t,e,r){var n=r(42);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},function(t,e){var r=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,r.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,r){var n=r(6),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,r){var n=r(42);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},function(t,e,r){var n=r(150),o=r(41),i=r(20);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},function(t,e,r){var n=r(7),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},function(t,e,r){var n=r(152),o=r(36),i=r(37),a=i&&i.isMap,s=a?o(a):n;t.exports=s},function(t,e,r){var n=r(11),o=r(2);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},function(t,e,r){var n=r(154),o=r(36),i=r(37),a=i&&i.isSet,s=a?o(a):n;t.exports=s},function(t,e,r){var n=r(11),o=r(2);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},function(t,e,r){var n=r(156),o=r(157),i=r(72);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},function(t,e,r){var n=r(30),o=r(29);t.exports=function(t,e,r,i){var a=r.length,s=a,u=!i;if(null==t)return!s;for(t=Object(t);a--;){var c=r[a];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var l=(c=r[a])[0],p=t[l],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in t))return!1}else{var h=new n;if(i)var y=i(p,f,l,t,e,h);if(!(void 0===y?o(f,p,3,i,h):y))return!1}}return!0}},function(t,e,r){var n=r(71),o=r(8);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],a=t[i];e[r]=[i,a,n(a)]}return e}},function(t,e,r){var n=r(29),o=r(159),i=r(165),a=r(47),s=r(71),u=r(72),c=r(13);t.exports=function(t,e){return a(t)&&s(e)?u(c(t),e):function(r){var a=o(r,t);return void 0===a&&a===e?i(r,t):n(e,a,3)}}},function(t,e,r){var n=r(46);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},function(t,e,r){var n=r(161),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=a},function(t,e,r){var n=r(162);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},function(t,e,r){var n=r(25);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=t.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},function(t,e,r){var n=r(164);t.exports=function(t){return null==t?"":n(t)}},function(t,e,r){var n=r(6),o=r(44),i=r(0),a=r(48),s=n?n.prototype:void 0,u=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},function(t,e,r){var n=r(166),o=r(167);t.exports=function(t,e){return null!=t&&o(t,e,n)}},function(t,e){t.exports=function(t,e){return null!=t&&e in Object(t)}},function(t,e,r){var n=r(21),o=r(18),i=r(0),a=r(63),s=r(35),u=r(13);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,p=!1;++c<l;){var f=u(e[c]);if(!(p=null!=t&&r(t,f)))break;t=t[f]}return p||++c!=l?p:!!(l=null==t?0:t.length)&&s(l)&&a(f,l)&&(i(t)||o(t))}},function(t,e,r){var n=r(169),o=r(170),i=r(47),a=r(13);t.exports=function(t){return i(t)?n(a(t)):o(t)}},function(t,e){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},function(t,e,r){var n=r(46);t.exports=function(t){return function(e){return n(e,t)}}},function(t,e,r){var n=r(172),o=r(10);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},function(t,e,r){var n=r(74),o=r(76)(n);t.exports=o},function(t,e,r){var n=r(75)();t.exports=n},function(t,e,r){var n=r(21),o=r(175),i=r(176),a=r(13);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[a(o(e))]}},function(t,e){t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},function(t,e,r){var n=r(46),o=r(177);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},function(t,e){t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},function(t,e,r){var n=r(179);t.exports=function(t){return n(t)?void 0:t}},function(t,e,r){var n=r(5),o=r(41),i=r(2),a=Function.prototype,s=Object.prototype,u=a.toString,c=s.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},function(t,e,r){var n=r(181),o=r(184),i=r(186);t.exports=function(t){return i(o(t,void 0,n),t+"")}},function(t,e,r){var n=r(182);t.exports=function(t){return(null==t?0:t.length)?n(t,1):[]}},function(t,e,r){var n=r(31),o=r(183);t.exports=function t(e,r,i,a,s){var u=-1,c=e.length;for(i||(i=o),s||(s=[]);++u<c;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,a,s):n(s,l):a||(s[s.length]=l)}return s}},function(t,e,r){var n=r(6),o=r(18),i=r(0),a=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(a&&t&&t[a])}},function(t,e,r){var n=r(185),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),u=Array(s);++a<s;)u[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=r(u),n(t,this,c)}}},function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},function(t,e,r){var n=r(187),o=r(189)(n);t.exports=o},function(t,e,r){var n=r(188),o=r(68),i=r(73),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var o=r(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},function(t,e){t.exports=function(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}},function(t,e,r){var n=r(192),o=r(76)(n,!0);t.exports=o},function(t,e,r){var n=r(193),o=r(8);t.exports=function(t,e){return t&&n(t,e,o)}},function(t,e,r){var n=r(75)(!0);t.exports=n},function(t,e){t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},function(t,e,r){var n,o,i;o=[],void 0===(i="function"==typeof(n=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(t){return t&&"[object RegExp]"===e.call(t)}function o(t){return t&&"object"==typeof t&&!n(t)&&!Array.isArray(t)}function i(t){return"("+t+")"}function a(t){return t.length?"(?:"+t.map((function(t){return"(?:"+t+")"})).join("|")+")":"(?!)"}function s(t){if("string"==typeof t)return"(?:"+t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")";if(n(t)){if(t.ignoreCase)throw new Error("RegExp /i flag not allowed");if(t.global)throw new Error("RegExp /g flag is implied");if(t.sticky)throw new Error("RegExp /y flag is implied");if(t.multiline)throw new Error("RegExp /m flag is implied");return t.source}throw new Error("Not a pattern: "+t)}function u(e,r){if(o(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var i={defaultType:e,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var a in r)t.call(r,a)&&(i[a]=r[a]);if("string"==typeof i.type&&e!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+e+"')");var s=i.match;return i.match=Array.isArray(s)?s:s?[s]:[],i.match.sort((function(t,e){return n(t)&&n(e)?0:n(e)?-1:n(t)?1:e.length-t.length})),i}function c(t){return Array.isArray(t)?function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n.include)for(var o=[].concat(n.include),i=0;i<o.length;i++)e.push({include:o[i]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));e.push(u(n.type,n))}}return e}(t):function(t){for(var e=Object.getOwnPropertyNames(t),r=[],n=0;n<e.length;n++){var i=e[n],a=t[i],s=[].concat(a);if("include"!==i){var c=[];s.forEach((function(t){o(t)?(c.length&&r.push(u(i,c)),r.push(u(i,t)),c=[]):c.push(t)})),c.length&&r.push(u(i,c))}else for(var l=0;l<s.length;l++)r.push({include:s[l]})}return r}(t)}var l=u("error",{lineBreaks:!0,shouldThrow:!0});function p(t,e){for(var o=null,u=Object.create(null),c=!0,p=null,f=[],h=[],y=0;y<t.length;y++)t[y].fallback&&(c=!1);for(y=0;y<t.length;y++){var v=t[y];if(v.include)throw new Error("Inheritance is not allowed in stateless lexers");if(v.error||v.fallback){if(o)throw!v.fallback==!o.fallback?new Error("Multiple "+(v.fallback?"fallback":"error")+" rules not allowed (for token '"+v.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+v.defaultType+"')");o=v}var d=v.match.slice();if(c)for(;d.length&&"string"==typeof d[0]&&1===d[0].length;)u[d.shift().charCodeAt(0)]=v;if(v.pop||v.push||v.next){if(!e)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+v.defaultType+"')");if(v.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+v.defaultType+"')")}if(0!==d.length){c=!1,f.push(v);for(var b=0;b<d.length;b++){var m=d[b];if(n(m))if(null===p)p=m.unicode;else if(p!==m.unicode&&!1===v.fallback)throw new Error("If one rule is /u then all must be")}var g=a(d.map(s)),x=new RegExp(g);if(x.test(""))throw new Error("RegExp matches empty string: "+x);if(new RegExp("|"+g).exec("").length-1>0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: … ) instead");if(!v.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);h.push(i(g))}}var _=o&&o.fallback,j=r&&!_?"ym":"gm",w=r||_?"":"|";return!0===p&&(j+="u"),{regexp:new RegExp(a(h)+w,j),groups:f,fast:u,error:o||l}}function f(t,e,r){var n=t&&(t.push||t.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+t.defaultType+"' of state '"+e+"')");if(t&&t.pop&&1!=+t.pop)throw new Error("pop must be 1 (in token '"+t.defaultType+"' of state '"+e+"')")}var h=function(t,e){this.startState=e,this.states=t,this.buffer="",this.stack=[],this.reset()};h.prototype.reset=function(t,e){return this.buffer=t||"",this.index=0,this.line=e?e.line:1,this.col=e?e.col:1,this.queuedToken=e?e.queuedToken:null,this.queuedThrow=e?e.queuedThrow:null,this.setState(e?e.state:this.startState),this.stack=e&&e.stack?e.stack.slice():[],this},h.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},h.prototype.setState=function(t){if(t&&this.state!==t){this.state=t;var e=this.states[t];this.groups=e.groups,this.error=e.error,this.re=e.regexp,this.fast=e.fast}},h.prototype.popState=function(){this.setState(this.stack.pop())},h.prototype.pushState=function(t){this.stack.push(this.state),this.setState(t)};var y=r?function(t,e){return t.exec(e)}:function(t,e){var r=t.exec(e);return 0===r[0].length?null:r};function v(){return this.value}if(h.prototype._getGroup=function(t){for(var e=this.groups.length,r=0;r<e;r++)if(void 0!==t[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},h.prototype.next=function(){var t=this.index;if(this.queuedGroup){var e=this._token(this.queuedGroup,this.queuedText,t);return this.queuedGroup=null,this.queuedText="",e}var r=this.buffer;if(t!==r.length){if(a=this.fast[r.charCodeAt(t)])return this._token(a,r.charAt(t),t);var n=this.re;n.lastIndex=t;var o=y(n,r),i=this.error;if(null==o)return this._token(i,r.slice(t,r.length),t);var a=this._getGroup(o),s=o[0];return i.fallback&&o.index!==t?(this.queuedGroup=a,this.queuedText=s,this._token(i,r.slice(t,o.index),t)):this._token(a,s,t)}},h.prototype._token=function(t,e,r){var n=0;if(t.lineBreaks){var o=/\n/g,i=1;if("\n"===e)n=1;else for(;o.exec(e);)n++,i=o.lastIndex}var a={type:"function"==typeof t.type&&t.type(e)||t.defaultType,value:"function"==typeof t.value?t.value(e):e,text:e,toString:v,offset:r,lineBreaks:n,line:this.line,col:this.col},s=e.length;if(this.index+=s,this.line+=n,0!==n?this.col=s-i+1:this.col+=s,t.shouldThrow)throw new Error(this.formatError(a,"invalid syntax"));return t.pop?this.popState():t.push?this.pushState(t.push):t.next&&this.setState(t.next),a},"undefined"!=typeof Symbol&&Symbol.iterator){var d=function(t){this.lexer=t};d.prototype.next=function(){var t=this.lexer.next();return{value:t,done:!t}},d.prototype[Symbol.iterator]=function(){return this},h.prototype[Symbol.iterator]=function(){return new d(this)}}return h.prototype.formatError=function(t,e){if(null==t){var r=this.buffer.slice(this.index);t={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(0,t.offset-t.col+1),o=t.lineBreaks?t.text.indexOf("\n"):t.text.length,i=this.buffer.substring(n,t.offset+o);return e+=" at line "+t.line+" col "+t.col+":\n\n",e+=" "+i+"\n",e+=" "+Array(t.col).join(" ")+"^"},h.prototype.clone=function(){return new h(this.states,this.state)},h.prototype.has=function(t){return!0},{compile:function(t){var e=p(c(t));return new h({start:e},"start")},states:function(t,e){var r=t.$all?c(t.$all):[];delete t.$all;var n=Object.getOwnPropertyNames(t);e||(e=n[0]);for(var o=Object.create(null),i=0;i<n.length;i++){var a=n[i];o[a]=c(t[a]).concat(r)}for(i=0;i<n.length;i++){a=n[i];for(var s=o[a],u=Object.create(null),l=0;l<s.length;l++){var y=s[l];if(y.include){var v=[l,1];if(y.include!==a&&!u[y.include]){u[y.include]=!0;var d=o[y.include];if(!d)throw new Error("Cannot include nonexistent state '"+y.include+"' (in state '"+a+"')");for(var b=0;b<d.length;b++){var m=d[b];-1===s.indexOf(m)&&v.push(m)}}s.splice.apply(s,v),l--}}}var g=Object.create(null);for(i=0;i<n.length;i++)a=n[i],g[a]=p(o[a],!0);for(i=0;i<n.length;i++){var x=n[i],_=g[x],j=_.groups;for(l=0;l<j.length;l++)f(j[l],x,g);var w=Object.getOwnPropertyNames(_.fast);for(l=0;l<w.length;l++)f(_.fast[w[l]],x,g)}return new h(g,e)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(t){for(var e=Object.create(null),r=Object.create(null),n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var i=n[o],a=t[i];(Array.isArray(a)?a:[a]).forEach((function(t){if((r[t.length]=r[t.length]||[]).push(t),"string"!=typeof t)throw new Error("keyword must be string (in keyword '"+i+"')");e[t]=i}))}function s(t){return JSON.stringify(t)}var u="";for(var c in u+="switch (value.length) {\n",r){var l=r[c];u+="case "+c+":\n",u+="switch (value) {\n",l.forEach((function(t){var r=e[t];u+="case "+s(t)+": return "+s(r)+"\n"})),u+="}\n"}return u+="}\n",Function("value",u)}}})?n.apply(e,o):n)||(t.exports=i)},function(t,e,r){"use strict";r.r(e),r.d(e,"parseExpression",(function(){return d})),r.d(e,"parseMathsExpression",(function(){return p})),r.d(e,"parseBooleanExpression",(function(){return v}));var n=r(24),o=r.n(n),i=r(4),a=r.n(i),s=r(9),u=r(78),c=r.n(u),l=s.Grammar.fromCompiled(c.a),p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=new s.Parser(l),r=null;try{r=o()(e.feed(t).results,a.a)}catch(t){console.log(t),r={error:t}}return r},f=r(79),h=r.n(f),y=s.Grammar.fromCompiled(h.a),v=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=new s.Parser(y),r=null;try{r=o()(e.feed(t).results,a.a)}catch(t){console.log(t),r={error:t}}return r},d=p}])}));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["inequality-grammar"]=e():t["inequality-grammar"]=e()}(self,(()=>(()=>{var t={8326:(t,e,r)=>{!function(){function e(t){return t[0]}var n=i(r(361)),o=(i(r(1609)),i(r(8446)),i(r(5161)),i(r(6604)),i(r(7557)),i(r(6579)),r(353));function i(t){return t&&t.__esModule?t:{default:t}}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){u(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function u(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=null;try{c=window}catch(t){c={innerWidth:800,innerHeight:600}}var l=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]),i=(0,o._findRightmost)(e),s="";switch(t[2].toLowerCase()){case"AND":case"and":case"&":case"∧":case".":s="and";break;case"OR":case"or":case"|":case"∨":case"v":case"+":s="or";break;case"XOR":case"xor":case"^":case"⊻":s="xor";break;default:s=""}return i.children.right={type:"LogicBinaryOperation",properties:{operation:s},children:{right:r}},e},p=function(t){return{type:"LogicNot",children:{argument:t[2]}}},f={Lexer:void 0,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:c.innerWidth/4,y:c.innerHeight/3},e.expression={latex:"",python:""},(0,o._simplify)(e)}},{name:"main",symbols:["_","AS","_",{literal:"="},"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),i={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,o._findRightmost)(e).children.right=i,a(a({},e=(0,o._simplify)(e)),{},{position:{x:c.innerWidth/4,y:c.innerHeight/3},expression:{latex:"",python:""}})}},{name:"AS$string$1",symbols:[{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$1","_","MD"],postprocess:l},{name:"AS$string$2",symbols:[{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"AS",symbols:["AS","_","AS$string$2","_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"|"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"∨"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"v"},"_","MD"],postprocess:l},{name:"AS",symbols:["AS","_",{literal:"+"},"_","MD"],postprocess:l},{name:"AS",symbols:["MD"],postprocess:e},{name:"MD$string$1",symbols:[{literal:"A"},{literal:"N"},{literal:"D"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$1","_","XOR"],postprocess:l},{name:"MD$string$2",symbols:[{literal:"a"},{literal:"n"},{literal:"d"}],postprocess:function(t){return t.join("")}},{name:"MD",symbols:["MD","_","MD$string$2","_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"&"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"∧"},"_","XOR"],postprocess:l},{name:"MD",symbols:["MD","_",{literal:"."},"_","XOR"],postprocess:l},{name:"MD",symbols:["XOR"],postprocess:e},{name:"XOR$string$1",symbols:[{literal:"X"},{literal:"O"},{literal:"R"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$1","_","P"],postprocess:l},{name:"XOR$string$2",symbols:[{literal:"x"},{literal:"o"},{literal:"r"}],postprocess:function(t){return t.join("")}},{name:"XOR",symbols:["XOR","_","XOR$string$2","_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"^"},"_","P"],postprocess:l},{name:"XOR",symbols:["XOR","_",{literal:"⊻"},"_","P"],postprocess:l},{name:"XOR",symbols:["P"],postprocess:e},{name:"P",symbols:[{literal:"("},"_","AS","_",{literal:")"}],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:t[2]}}}},{name:"P",symbols:["N"],postprocess:e},{name:"N$string$1",symbols:[{literal:"N"},{literal:"O"},{literal:"T"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$1","_","P"],postprocess:p},{name:"N$string$2",symbols:[{literal:"n"},{literal:"o"},{literal:"t"}],postprocess:function(t){return t.join("")}},{name:"N",symbols:["N$string$2","_","P"],postprocess:p},{name:"N",symbols:[{literal:"!"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"~"},"_","P"],postprocess:p},{name:"N",symbols:[{literal:"¬"},"_","P"],postprocess:p},{name:"N",symbols:["L"],postprocess:e},{name:"L$string$1",symbols:[{literal:"t"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$1"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$2",symbols:[{literal:"T"},{literal:"r"},{literal:"u"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$2"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"T"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L",symbols:[{literal:"1"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!0},children:{}}}},{name:"L$string$3",symbols:[{literal:"f"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$3"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L$string$4",symbols:[{literal:"F"},{literal:"a"},{literal:"l"},{literal:"s"},{literal:"e"}],postprocess:function(t){return t.join("")}},{name:"L",symbols:["L$string$4"],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"F"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[{literal:"0"}],postprocess:function(t){return{type:"LogicLiteral",properties:{value:!1},children:{}}}},{name:"L",symbols:[/[A-EG-SU-Z]/],postprocess:function(t){return{type:"Symbol",properties:{letter:t[0]},children:{}}}},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"],postprocess:function(t){return null}}],ParserStart:"main"};void 0!==t.exports?t.exports=f:window.grammar=f}()},1647:(t,e,r)=>{!function(){function e(t){return t[0]}var n=c(r(361)),o=(c(r(1609)),c(r(8446))),i=c(r(5161)),s=c(r(7557)),a=c(r(6579)),u=r(353);function c(t){return t&&t.__esModule?t:{default:t}}function l(t){return function(t){if(Array.isArray(t))return p(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return p(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function f(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?f(Object(r),!0).forEach((function(e){y(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function y(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var v={alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",varepsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigma:"σ",tau:"τ",upsilon:"υ",phi:"ϕ",chi:"χ",psi:"ψ",omega:"ω",Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω"},d=r(9271).compile({Int:/[0-9]+/,IdMod:/[a-zA-Z]+_(?:prime)/,Id:{match:/[a-zA-Z]+(?:_[a-zA-Z0-9]+)?/,type:function(t){for(var e=new Map,r=Object.getOwnPropertyNames(t),n=function(n){var o=r[n],i=t[o];(Array.isArray(i)?i:[i]).forEach((function(t){if("string"!=typeof t)throw new Error("keyword must be string (in keyword '"+o+"')");e.set(t,o)}))},o=0;o<r.length;o++)n(o);return function(t){return e.get(t)}}({TrigFn:["cos","sin","tan","cosec","sec","cot","cosh","sinh","tanh","cosech","sech","coth","arccos","arcsin","arctan","arccosec","arcsec","arccot","arccosh","arcsinh","arctanh","arccosech","arcsech","arccoth","acos","asin","atan","acosec","asec","acot","acosh","asinh","atanh","acosech","asech","acoth"],Fn:["ln","abs"],Log:["log"],Radix:["sqrt"],Derivative:["diff","Derivative"]})},Rel:["=","==","<","<=",">",">="],PlusMinus:["+","-","±","-","-"],Pow:["**","^"],Mul:["*","×"],Div:["/","÷"],Lparen:"(",Rparen:")",Comma:",",c:/./}),b=null;try{b=window}catch(t){b={innerWidth:800,innerHeight:600}}var m=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,o=new RegExp("^(?:a|arc)([^r].+)$"),i=t.text,s=!1;o.test(i)&&(i=o.exec(i)[1],s=1);var a,u=(0,n.default)(e),c=(0,n.default)(r);return a=null===c?{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{argument:u}}:{type:"Fn",properties:{name:i,allowSubscript:!1,innerSuperscript:!0},children:{superscript:c,argument:u}},s&&(a.children.superscript={type:"Num",properties:{significand:"-1"},children:{}}),a},g=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r={type:"Fn",properties:{name:"log",allowSubscript:!0,innerSuperscript:!1},children:{argument:t}};return null!==e?"Num"!==e.type&&"Symbol"!==e.type||(r.children.subscript=(0,n.default)(e)):r.children.subscript={type:"Num",properties:{significand:"10"},children:{}},r},x=function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[t.length-1]);return(0,u._findRightmost)(e).children.right=r,e},_=function(t){var e=(0,i.default)(t.split(""),(function(t){return/[0-9]/.test(t)?w([{text:t}]):{type:"Symbol",properties:{letter:t},children:{}}}));return(0,a.default)(e,(function(t,e){return e.children.right=t,e}))},w=function(t){return{type:"Num",properties:{significand:t[0].text},children:{}}},j={Lexer:d,ParserRules:[{name:"main",symbols:["_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]);return e.position={x:b.innerWidth/4,y:b.innerHeight/3},e.expression={latex:"",python:""},(0,u._simplify)(e)}},{name:"main",symbols:["_","AS","_",d.has("Rel")?{type:"Rel"}:Rel,"_","AS","_"],postprocess:function(t){var e=(0,n.default)(t[1]),r=(0,n.default)(t[5]),o={type:"Relation",properties:{relation:"=="===t[3].text?"=":t[3].text},children:{right:r}};return(0,u._findRightmost)(e).children.right=o,h(h({},e=(0,u._simplify)(e)),{},{position:{x:b.innerWidth/4,y:b.innerHeight/3},expression:{latex:"",python:""}})}},{name:"P",symbols:[d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Brackets",properties:{type:"round"},children:{argument:(0,n.default)(t[2])}}}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[3],null)}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Pow")?{type:"Pow"}:Pow,"NUM",d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return m(t[0],t[5],t[2])}},{name:"P",symbols:[d.has("TrigFn")?{type:"TrigFn"}:TrigFn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen,d.has("Pow")?{type:"Pow"}:Pow,"NUM"],postprocess:function(t){return m(t[0],t[3],t[7])}},{name:"P",symbols:[d.has("Derivative")?{type:"Derivative"}:Derivative,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","ARGS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t[3]}},r=t[7].reduce((function(t,e){if(0==t.length)return[{object:e,order:1}];var r=t[t.length-1];return"Num"===e.type?(r.order=parseInt(e.properties.significand),[].concat(l(t.slice(0,t.length-1)),[r])):(0,o.default)(e,r.object)?(r.order=r.order+1,[].concat(l(t.slice(0,t.length-1)),[r])):[].concat(l(t),[{object:e,order:1}])}),[]).map((function(t){var e={type:"Differential",properties:{letter:"d"},children:{argument:t.object}};return t.order>1&&(e.children.order={type:"Num",properties:{significand:"".concat(t.order)},children:{}}),e})),n=r.reduce((function(t,e){return t+parseInt(e.children.order?e.children.order.properties.significand:"1")}),0);return n>1&&(e.children.order={type:"Num",properties:{significand:"".concat(n)},children:{}}),{type:"Derivative",children:{numerator:e,denominator:(0,a.default)(r,(function(t,e){return e.children.right=t,e}))}}}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","VAR","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Log")?{type:"Log"}:Log,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","NUM","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return g(t[3],t[7])}},{name:"P",symbols:[d.has("Radix")?{type:"Radix"}:Radix,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){return{type:"Radix",children:{argument:(0,n.default)(t[3])}}}},{name:"P",symbols:[d.has("Fn")?{type:"Fn"}:Fn,d.has("Lparen")?{type:"Lparen"}:Lparen,"_","AS","_",d.has("Rparen")?{type:"Rparen"}:Rparen],postprocess:function(t){var e=(0,n.default)(t[3]);return"abs"===t[0].text?{type:"AbsoluteValue",children:{argument:e}}:{type:"Fn",properties:{name:t[0].text,allowSubscript:"ln"!==t[0].text,innerSuperscript:!1},children:{argument:e}}}},{name:"P",symbols:["VAR"],postprocess:e},{name:"P",symbols:["NUM"],postprocess:e},{name:"P",symbols:[d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","P"],postprocess:function(t){return{type:"BinaryOperation",properties:{operation:t[0].text},children:{right:t[2]}}}},{name:"ARGS",symbols:["AS"],postprocess:function(t){return[t[0]]}},{name:"ARGS",symbols:["ARGS","_",d.has("Comma")?{type:"Comma"}:Comma,"_","AS"],postprocess:function(t){return t[0].concat(t[4])}},{name:"E",symbols:["P","_",d.has("Pow")?{type:"Pow"}:Pow,"_","E"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]),o=(0,u._findRightmost)(e);if("BinaryOperation"===r.type){var i=(0,n.default)(r.children.right.children.right);i&&(e.children.right=i,r.children.right.children=(0,s.default)(r.children.right.children,"right"))}else{var a=(0,n.default)(r.children.right);a&&(o.children.right=a,r.children=(0,s.default)(r.children,"right"))}if(!(["Fn","Log","TrigFn"].indexOf(e.type)>-1))return o.children.superscript=r,e;switch(e.properties.name){case"ln":case"log":return{type:"Brackets",properties:{type:"round"},children:{argument:e,superscript:r}};default:return o.children.superscript=r,e}}},{name:"E",symbols:["P"],postprocess:e},{name:"MD",symbols:["MD","_",d.has("Mul")?{type:"Mul"}:Mul,"_","E"],postprocess:x},{name:"MD",symbols:["MD","_",d.has("Div")?{type:"Div"}:Div,"_","E"],postprocess:function(t){var e=null;"BinaryOperation"===t[4].type?(e=(0,n.default)(t[4].children.right.children.right),t[4].children.right.children=(0,s.default)(t[4].children.right.children,"right")):(e=(0,n.default)(t[4].children.right),t[4].children=(0,s.default)(t[4].children,"right"));var r=(0,n.default)(t[0]),o=(0,u._rightChainToArray)(r).map((function(t){return t.children=(0,s.default)(t.children,"right"),t})),i={type:"Fraction",children:{numerator:o.pop(),denominator:(0,n.default)(t[4])}};return e&&(i.children.right=e),o.length>0?(o[o.length-1].children.right=i,o.reduceRight((function(t,e){return e.children.right=t,e}))):i}},{name:"MD",symbols:["MD","_","E"],postprocess:x},{name:"MD",symbols:["E"],postprocess:e},{name:"AS",symbols:["AS","_",d.has("PlusMinus")?{type:"PlusMinus"}:PlusMinus,"_","MD"],postprocess:function(t){var e=(0,n.default)(t[0]),r=(0,n.default)(t[4]);return(0,u._findRightmost)(e).children.right={type:"BinaryOperation",properties:{operation:t[2].text},children:{right:r}},e}},{name:"AS",symbols:["MD"],postprocess:e},{name:"VAR",symbols:[d.has("Id")?{type:"Id"}:Id],postprocess:function t(e){var r=Object.keys(v),n=e[0].text.split("_"),o=["[a-zA-Z]"].concat(l(r)).join("|"),i=new RegExp("^((?:d|D)(?:elta)?)(".concat(o,")$")),s=n[0].match(i);if(s)return{type:"Differential",properties:{letter:v[s[1]]||s[1]},children:{argument:t([{text:e[0].text.substring(s[1].length)}])}};r.indexOf(n[0])>-1&&(n[0]=v[n[0]]);var a=_(n[0]);if(n.length>1){r.indexOf(n[1])>-1&&(n[1]=v[n[1]]);var c=_(n[1]);(0,u._findRightmost)(a).children.subscript=c}return a}},{name:"VAR",symbols:[d.has("IdMod")?{type:"IdMod"}:IdMod],postprocess:function(t){var e=Object.keys(v),r=t[0].text.split("_");e.indexOf(r[0])>-1&&(r[0]=v[r[0]]);var n=_(r[0]);return(0,u._findRightmost)(n).properties.modifier=r[1],n}},{name:"NUM",symbols:[d.has("Int")?{type:"Int"}:Int],postprocess:w},{name:"_$ebnf$1",symbols:[]},{name:"_$ebnf$1",symbols:["_$ebnf$1",/[\s]/],postprocess:function(t){return t[0].concat([t[1]])}},{name:"_",symbols:["_$ebnf$1"]}],ParserStart:"main"};void 0!==t.exports?t.exports=j:window.grammar=j}()},353:(t,e,r)=>{"use strict";r.r(e),r.d(e,{_findRightmost:()=>p,_rightChainToArray:()=>l,_safeToRemove:()=>f,_simplify:()=>h}),r(361);var n=r(1609),o=r.n(n),i=(r(8446),r(5161),r(6604)),s=r.n(i),a=r(7557),u=r.n(a);function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r(6579);var l=function(t){for(var e=t,r=[e];e.children.right;)e=e.children.right,r=[].concat(function(t){if(Array.isArray(t))return c(t)}(n=r)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(n)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(t,e):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[e]);var n;return r},p=function(t){for(var e=t;e.children.right;)e=e.children.right;return e},f=function(t){return t&&"Brackets"===t.type&&o()(u()(t.children,"argument"))},h=function t(e){if(e.children=s()(e.children,(function(e,r,n){return t(e)})),"Brackets"===e.type||"Fn"===e.type){var r=e.children.argument;f(r)&&(e.children.argument=r.children.argument)}if("Fraction"===e.type){var n=e.children.numerator;f(n)&&(e.children.numerator=n.children.argument);var o=e.children.denominator;f(o)&&(e.children.denominator=o.children.argument)}var i=e.children.superscript;return f(i)&&(e.children.superscript=i.children.argument),e}},8552:(t,e,r)=>{var n=r(852)(r(5639),"DataView");t.exports=n},1989:(t,e,r)=>{var n=r(1789),o=r(401),i=r(7667),s=r(1327),a=r(1866);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},8407:(t,e,r)=>{var n=r(7040),o=r(4125),i=r(2117),s=r(7518),a=r(4705);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},7071:(t,e,r)=>{var n=r(852)(r(5639),"Map");t.exports=n},3369:(t,e,r)=>{var n=r(4785),o=r(1285),i=r(6e3),s=r(9916),a=r(5265);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=s,u.prototype.set=a,t.exports=u},3818:(t,e,r)=>{var n=r(852)(r(5639),"Promise");t.exports=n},8525:(t,e,r)=>{var n=r(852)(r(5639),"Set");t.exports=n},8668:(t,e,r)=>{var n=r(3369),o=r(619),i=r(2385);function s(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}s.prototype.add=s.prototype.push=o,s.prototype.has=i,t.exports=s},6384:(t,e,r)=>{var n=r(8407),o=r(7465),i=r(3779),s=r(7599),a=r(4758),u=r(4309);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=s,c.prototype.has=a,c.prototype.set=u,t.exports=c},2705:(t,e,r)=>{var n=r(5639).Symbol;t.exports=n},1149:(t,e,r)=>{var n=r(5639).Uint8Array;t.exports=n},577:(t,e,r)=>{var n=r(852)(r(5639),"WeakMap");t.exports=n},6874:t=>{t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},7412:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},4963:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var s=t[r];e(s,r,t)&&(i[o++]=s)}return i}},7443:(t,e,r)=>{var n=r(2118);t.exports=function(t,e){return!(null==t||!t.length)&&n(t,e,0)>-1}},1196:t=>{t.exports=function(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}},4636:(t,e,r)=>{var n=r(2545),o=r(5694),i=r(1469),s=r(4144),a=r(5776),u=r(6719),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&o(t),p=!r&&!l&&s(t),f=!r&&!l&&!p&&u(t),h=r||l||p||f,y=h?n(t.length,String):[],v=y.length;for(var d in t)!e&&!c.call(t,d)||h&&("length"==d||p&&("offset"==d||"parent"==d)||f&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,v))||y.push(d);return y}},9932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},2488:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},2549:t=>{t.exports=function(t,e,r,n){var o=null==t?0:t.length;for(n&&o&&(r=t[--o]);o--;)r=e(r,t[o],o,t);return r}},2908:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},4865:(t,e,r)=>{var n=r(9465),o=r(7813),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var s=t[e];i.call(t,e)&&o(s,r)&&(void 0!==r||e in t)||n(t,e,r)}},8470:(t,e,r)=>{var n=r(7813);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},4037:(t,e,r)=>{var n=r(8363),o=r(3674);t.exports=function(t,e){return t&&n(e,o(e),t)}},3886:(t,e,r)=>{var n=r(8363),o=r(1704);t.exports=function(t,e){return t&&n(e,o(e),t)}},9465:(t,e,r)=>{var n=r(8777);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},5990:(t,e,r)=>{var n=r(6384),o=r(7412),i=r(4865),s=r(4037),a=r(3886),u=r(4626),c=r(278),l=r(8805),p=r(1911),f=r(8234),h=r(6904),y=r(4160),v=r(3824),d=r(9148),b=r(8517),m=r(1469),g=r(4144),x=r(6688),_=r(3218),w=r(2928),j=r(3674),O=r(1704),S="[object Arguments]",A="[object Function]",k="[object Object]",P={};P[S]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[k]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[A]=P["[object WeakMap]"]=!1,t.exports=function t(e,r,R,E,L,$){var M,D=1&r,T=2&r,F=4&r;if(R&&(M=L?R(e,E,L,$):R(e)),void 0!==M)return M;if(!_(e))return e;var N=m(e);if(N){if(M=v(e),!D)return c(e,M)}else{var I=y(e),C=I==A||"[object GeneratorFunction]"==I;if(g(e))return u(e,D);if(I==k||I==S||C&&!L){if(M=T||C?{}:b(e),!D)return T?p(e,a(M,e)):l(e,s(M,e))}else{if(!P[I])return L?e:{};M=d(e,I,D)}}$||($=new n);var B=$.get(e);if(B)return B;$.set(e,M),w(e)?e.forEach((function(n){M.add(t(n,r,R,n,e,$))})):x(e)&&e.forEach((function(n,o){M.set(o,t(n,r,R,o,e,$))}));var z=N?void 0:(F?T?h:f:T?O:j)(e);return o(z||e,(function(n,o){z&&(n=e[o=n]),i(M,o,t(n,r,R,o,e,$))})),M}},3118:(t,e,r)=>{var n=r(3218),o=Object.create,i=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=i},9881:(t,e,r)=>{var n=r(7816),o=r(9291)(n);t.exports=o},5865:(t,e,r)=>{var n=r(4370),o=r(9291)(n,!0);t.exports=o},1848:t=>{t.exports=function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}},1078:(t,e,r)=>{var n=r(2488),o=r(7285);t.exports=function t(e,r,i,s,a){var u=-1,c=e.length;for(i||(i=o),a||(a=[]);++u<c;){var l=e[u];r>0&&i(l)?r>1?t(l,r-1,i,s,a):n(a,l):s||(a[a.length]=l)}return a}},8483:(t,e,r)=>{var n=r(5063)();t.exports=n},7816:(t,e,r)=>{var n=r(8483),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},4370:(t,e,r)=>{var n=r(7473),o=r(3674);t.exports=function(t,e){return t&&n(t,e,o)}},7473:(t,e,r)=>{var n=r(5063)(!0);t.exports=n},7786:(t,e,r)=>{var n=r(1811),o=r(327);t.exports=function(t,e){for(var r=0,i=(e=n(e,t)).length;null!=t&&r<i;)t=t[o(e[r++])];return r&&r==i?t:void 0}},8866:(t,e,r)=>{var n=r(2488),o=r(1469);t.exports=function(t,e,r){var i=e(t);return o(t)?i:n(i,r(t))}},4239:(t,e,r)=>{var n=r(2705),o=r(9607),i=r(2333),s=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?o(t):i(t)}},13:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},2118:(t,e,r)=>{var n=r(1848),o=r(2722),i=r(2351);t.exports=function(t,e,r){return e==e?i(t,e,r):n(t,o,r)}},9454:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},939:(t,e,r)=>{var n=r(2492),o=r(7005);t.exports=function t(e,r,i,s,a){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,i,s,t,a))}},2492:(t,e,r)=>{var n=r(6384),o=r(7114),i=r(8351),s=r(6096),a=r(4160),u=r(1469),c=r(4144),l=r(6719),p="[object Arguments]",f="[object Array]",h="[object Object]",y=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,d,b){var m=u(t),g=u(e),x=m?f:a(t),_=g?f:a(e),w=(x=x==p?h:x)==h,j=(_=_==p?h:_)==h,O=x==_;if(O&&c(t)){if(!c(e))return!1;m=!0,w=!1}if(O&&!w)return b||(b=new n),m||l(t)?o(t,e,r,v,d,b):i(t,e,x,r,v,d,b);if(!(1&r)){var S=w&&y.call(t,"__wrapped__"),A=j&&y.call(e,"__wrapped__");if(S||A){var k=S?t.value():t,P=A?e.value():e;return b||(b=new n),d(k,P,r,v,b)}}return!!O&&(b||(b=new n),s(t,e,r,v,d,b))}},5588:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},2958:(t,e,r)=>{var n=r(6384),o=r(939);t.exports=function(t,e,r,i){var s=r.length,a=s,u=!i;if(null==t)return!a;for(t=Object(t);s--;){var c=r[s];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++s<a;){var l=(c=r[s])[0],p=t[l],f=c[1];if(u&&c[2]){if(void 0===p&&!(l in t))return!1}else{var h=new n;if(i)var y=i(p,f,l,t,e,h);if(!(void 0===y?o(f,p,3,i,h):y))return!1}}return!0}},2722:t=>{t.exports=function(t){return t!=t}},8458:(t,e,r)=>{var n=r(3560),o=r(5346),i=r(3218),s=r(346),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,p=c.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(n(t)?f:a).test(s(t))}},9221:(t,e,r)=>{var n=r(4160),o=r(7005);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},8749:(t,e,r)=>{var n=r(4239),o=r(1780),i=r(7005),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!s[n(t)]}},7206:(t,e,r)=>{var n=r(1573),o=r(6432),i=r(6557),s=r(1469),a=r(9601);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?s(t)?o(t[0],t[1]):n(t):a(t)}},280:(t,e,r)=>{var n=r(5726),o=r(6916),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},313:(t,e,r)=>{var n=r(3218),o=r(5726),i=r(3498),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return i(t);var e=o(t),r=[];for(var a in t)("constructor"!=a||!e&&s.call(t,a))&&r.push(a);return r}},9199:(t,e,r)=>{var n=r(9881),o=r(8612);t.exports=function(t,e){var r=-1,i=o(t)?Array(t.length):[];return n(t,(function(t,n,o){i[++r]=e(t,n,o)})),i}},1573:(t,e,r)=>{var n=r(2958),o=r(1499),i=r(2634);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},6432:(t,e,r)=>{var n=r(939),o=r(7361),i=r(9095),s=r(5403),a=r(9162),u=r(2634),c=r(327);t.exports=function(t,e){return s(t)&&a(e)?u(c(t),e):function(r){var s=o(r,t);return void 0===s&&s===e?i(r,t):n(e,s,3)}}},371:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},9152:(t,e,r)=>{var n=r(7786);t.exports=function(t){return function(e){return n(e,t)}}},107:t=>{t.exports=function(t,e,r,n,o){return o(t,(function(t,o,i){r=n?(n=!1,t):e(r,t,o,i)})),r}},6560:(t,e,r)=>{var n=r(5703),o=r(8777),i=r(6557),s=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:i;t.exports=s},4259:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}},2545:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},531:(t,e,r)=>{var n=r(2705),o=r(9932),i=r(1469),s=r(3448),a=n?n.prototype:void 0,u=a?a.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(s(e))return u?u.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},1717:t=>{t.exports=function(t){return function(e){return t(e)}}},5652:(t,e,r)=>{var n=r(8668),o=r(7443),i=r(1196),s=r(4757),a=r(3593),u=r(1814);t.exports=function(t,e,r){var c=-1,l=o,p=t.length,f=!0,h=[],y=h;if(r)f=!1,l=i;else if(p>=200){var v=e?null:a(t);if(v)return u(v);f=!1,l=s,y=new n}else y=e?[]:h;t:for(;++c<p;){var d=t[c],b=e?e(d):d;if(d=r||0!==d?d:0,f&&b==b){for(var m=y.length;m--;)if(y[m]===b)continue t;e&&y.push(b),h.push(d)}else l(y,b,r)||(y!==h&&y.push(b),h.push(d))}return h}},7406:(t,e,r)=>{var n=r(1811),o=r(928),i=r(292),s=r(327);t.exports=function(t,e){return e=n(e,t),null==(t=i(t,e))||delete t[s(o(e))]}},4757:t=>{t.exports=function(t,e){return t.has(e)}},1811:(t,e,r)=>{var n=r(1469),o=r(5403),i=r(5514),s=r(9833);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:i(s(t))}},4318:(t,e,r)=>{var n=r(1149);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},4626:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o?n.Buffer:void 0,a=s?s.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=a?a(r):new t.constructor(r);return t.copy(n),n}},7157:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},3147:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},419:(t,e,r)=>{var n=r(2705),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},7133:(t,e,r)=>{var n=r(4318);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},278:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},8363:(t,e,r)=>{var n=r(4865),o=r(9465);t.exports=function(t,e,r,i){var s=!r;r||(r={});for(var a=-1,u=e.length;++a<u;){var c=e[a],l=i?i(r[c],t[c],c,r,t):void 0;void 0===l&&(l=t[c]),s?o(r,c,l):n(r,c,l)}return r}},8805:(t,e,r)=>{var n=r(8363),o=r(9551);t.exports=function(t,e){return n(t,o(t),e)}},1911:(t,e,r)=>{var n=r(8363),o=r(1442);t.exports=function(t,e){return n(t,o(t),e)}},4429:(t,e,r)=>{var n=r(5639)["__core-js_shared__"];t.exports=n},9291:(t,e,r)=>{var n=r(8612);t.exports=function(t,e){return function(r,o){if(null==r)return r;if(!n(r))return t(r,o);for(var i=r.length,s=e?i:-1,a=Object(r);(e?s--:++s<i)&&!1!==o(a[s],s,a););return r}}},5063:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,i=Object(e),s=n(e),a=s.length;a--;){var u=s[t?a:++o];if(!1===r(i[u],u,i))break}return e}}},3593:(t,e,r)=>{var n=r(8525),o=r(308),i=r(1814),s=n&&1/i(new n([,-0]))[1]==1/0?function(t){return new n(t)}:o;t.exports=s},696:(t,e,r)=>{var n=r(8630);t.exports=function(t){return n(t)?void 0:t}},8777:(t,e,r)=>{var n=r(852),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},7114:(t,e,r)=>{var n=r(8668),o=r(2908),i=r(4757);t.exports=function(t,e,r,s,a,u){var c=1&r,l=t.length,p=e.length;if(l!=p&&!(c&&p>l))return!1;var f=u.get(t),h=u.get(e);if(f&&h)return f==e&&h==t;var y=-1,v=!0,d=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++y<l;){var b=t[y],m=e[y];if(s)var g=c?s(m,b,y,e,t,u):s(b,m,y,t,e,u);if(void 0!==g){if(g)continue;v=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(b===t||a(b,t,r,s,u)))return d.push(e)}))){v=!1;break}}else if(b!==m&&!a(b,m,r,s,u)){v=!1;break}}return u.delete(t),u.delete(e),v}},8351:(t,e,r)=>{var n=r(2705),o=r(1149),i=r(7813),s=r(7114),a=r(8776),u=r(1814),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var y=1&n;if(h||(h=u),t.size!=e.size&&!y)return!1;var v=f.get(t);if(v)return v==e;n|=2,f.set(t,e);var d=s(h(t),h(e),n,c,p,f);return f.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},6096:(t,e,r)=>{var n=r(8234),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,s,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var p=l;p--;){var f=c[p];if(!(u?f in e:o.call(e,f)))return!1}var h=a.get(t),y=a.get(e);if(h&&y)return h==e&&y==t;var v=!0;a.set(t,e),a.set(e,t);for(var d=u;++p<l;){var b=t[f=c[p]],m=e[f];if(i)var g=u?i(m,b,f,e,t,a):i(b,m,f,t,e,a);if(!(void 0===g?b===m||s(b,m,r,i,a):g)){v=!1;break}d||(d="constructor"==f)}if(v&&!d){var x=t.constructor,_=e.constructor;x==_||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof _&&_ instanceof _||(v=!1)}return a.delete(t),a.delete(e),v}},9021:(t,e,r)=>{var n=r(5564),o=r(5357),i=r(61);t.exports=function(t){return i(o(t,void 0,n),t+"")}},1957:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},8234:(t,e,r)=>{var n=r(8866),o=r(9551),i=r(3674);t.exports=function(t){return n(t,i,o)}},6904:(t,e,r)=>{var n=r(8866),o=r(1442),i=r(1704);t.exports=function(t){return n(t,i,o)}},5050:(t,e,r)=>{var n=r(7019);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},1499:(t,e,r)=>{var n=r(9162),o=r(3674);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var i=e[r],s=t[i];e[r]=[i,s,n(s)]}return e}},852:(t,e,r)=>{var n=r(8458),o=r(7801);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},5924:(t,e,r)=>{var n=r(5569)(Object.getPrototypeOf,Object);t.exports=n},9607:(t,e,r)=>{var n=r(2705),o=Object.prototype,i=o.hasOwnProperty,s=o.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var o=s.call(t);return n&&(e?t[a]=r:delete t[a]),o}},9551:(t,e,r)=>{var n=r(4963),o=r(479),i=Object.prototype.propertyIsEnumerable,s=Object.getOwnPropertySymbols,a=s?function(t){return null==t?[]:(t=Object(t),n(s(t),(function(e){return i.call(t,e)})))}:o;t.exports=a},1442:(t,e,r)=>{var n=r(2488),o=r(5924),i=r(9551),s=r(479),a=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,i(t)),t=o(t);return e}:s;t.exports=a},4160:(t,e,r)=>{var n=r(8552),o=r(7071),i=r(3818),s=r(8525),a=r(577),u=r(4239),c=r(346),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",y="[object DataView]",v=c(n),d=c(o),b=c(i),m=c(s),g=c(a),x=u;(n&&x(new n(new ArrayBuffer(1)))!=y||o&&x(new o)!=l||i&&x(i.resolve())!=p||s&&x(new s)!=f||a&&x(new a)!=h)&&(x=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return y;case d:return l;case b:return p;case m:return f;case g:return h}return e}),t.exports=x},7801:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},222:(t,e,r)=>{var n=r(1811),o=r(5694),i=r(1469),s=r(5776),a=r(1780),u=r(327);t.exports=function(t,e,r){for(var c=-1,l=(e=n(e,t)).length,p=!1;++c<l;){var f=u(e[c]);if(!(p=null!=t&&r(t,f)))break;t=t[f]}return p||++c!=l?p:!!(l=null==t?0:t.length)&&a(l)&&s(f,l)&&(i(t)||o(t))}},1789:(t,e,r)=>{var n=r(4536);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},7667:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},1327:(t,e,r)=>{var n=r(4536),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},1866:(t,e,r)=>{var n=r(4536);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},3824:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},9148:(t,e,r)=>{var n=r(4318),o=r(7157),i=r(3147),s=r(419),a=r(7133);t.exports=function(t,e,r){var u=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new u(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return a(t,r);case"[object Map]":case"[object Set]":return new u;case"[object Number]":case"[object String]":return new u(t);case"[object RegExp]":return i(t);case"[object Symbol]":return s(t)}}},8517:(t,e,r)=>{var n=r(3118),o=r(5924),i=r(5726);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:n(o(t))}},7285:(t,e,r)=>{var n=r(2705),o=r(5694),i=r(1469),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(t)||!!(s&&t&&t[s])}},5776:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},5403:(t,e,r)=>{var n=r(1469),o=r(3448),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||s.test(t)||!i.test(t)||null!=e&&t in Object(e)}},7019:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},5346:(t,e,r)=>{var n,o=r(4429),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},5726:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},9162:(t,e,r)=>{var n=r(3218);t.exports=function(t){return t==t&&!n(t)}},7040:t=>{t.exports=function(){this.__data__=[],this.size=0}},4125:(t,e,r)=>{var n=r(8470),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},2117:(t,e,r)=>{var n=r(8470);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},7518:(t,e,r)=>{var n=r(8470);t.exports=function(t){return n(this.__data__,t)>-1}},4705:(t,e,r)=>{var n=r(8470);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},4785:(t,e,r)=>{var n=r(1989),o=r(8407),i=r(7071);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},1285:(t,e,r)=>{var n=r(5050);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6e3:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).get(t)}},9916:(t,e,r)=>{var n=r(5050);t.exports=function(t){return n(this,t).has(t)}},5265:(t,e,r)=>{var n=r(5050);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},8776:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},2634:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},4523:(t,e,r)=>{var n=r(8306);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},4536:(t,e,r)=>{var n=r(852)(Object,"create");t.exports=n},6916:(t,e,r)=>{var n=r(5569)(Object.keys,Object);t.exports=n},3498:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},1167:(t,e,r)=>{t=r.nmd(t);var n=r(1957),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,s=i&&i.exports===o&&n.process,a=function(){try{return i&&i.require&&i.require("util").types||s&&s.binding&&s.binding("util")}catch(t){}}();t.exports=a},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5569:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},5357:(t,e,r)=>{var n=r(6874),o=Math.max;t.exports=function(t,e,r){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,s=-1,a=o(i.length-e,0),u=Array(a);++s<a;)u[s]=i[e+s];s=-1;for(var c=Array(e+1);++s<e;)c[s]=i[s];return c[e]=r(u),n(t,this,c)}}},292:(t,e,r)=>{var n=r(7786),o=r(4259);t.exports=function(t,e){return e.length<2?t:n(t,o(e,0,-1))}},5639:(t,e,r)=>{var n=r(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();t.exports=i},619:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2385:t=>{t.exports=function(t){return this.__data__.has(t)}},1814:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},61:(t,e,r)=>{var n=r(6560),o=r(1275)(n);t.exports=o},1275:t=>{var e=Date.now;t.exports=function(t){var r=0,n=0;return function(){var o=e(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}}},7465:(t,e,r)=>{var n=r(8407);t.exports=function(){this.__data__=new n,this.size=0}},3779:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},7599:t=>{t.exports=function(t){return this.__data__.get(t)}},4758:t=>{t.exports=function(t){return this.__data__.has(t)}},4309:(t,e,r)=>{var n=r(8407),o=r(7071),i=r(3369);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var s=r.__data__;if(!o||s.length<199)return s.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(s)}return r.set(t,e),this.size=r.size,this}},2351:t=>{t.exports=function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}},5514:(t,e,r)=>{var n=r(4523),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,s=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(i,"$1"):r||t)})),e}));t.exports=s},327:(t,e,r)=>{var n=r(3448);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},346:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},361:(t,e,r)=>{var n=r(5990);t.exports=function(t){return n(t,5)}},5703:t=>{t.exports=function(t){return function(){return t}}},7813:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},5564:(t,e,r)=>{var n=r(1078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},7361:(t,e,r)=>{var n=r(7786);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},9095:(t,e,r)=>{var n=r(13),o=r(222);t.exports=function(t,e){return null!=t&&o(t,e,n)}},6557:t=>{t.exports=function(t){return t}},5694:(t,e,r)=>{var n=r(9454),o=r(7005),i=Object.prototype,s=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return o(t)&&s.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},1469:t=>{var e=Array.isArray;t.exports=e},8612:(t,e,r)=>{var n=r(3560),o=r(1780);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},4144:(t,e,r)=>{t=r.nmd(t);var n=r(5639),o=r(5062),i=e&&!e.nodeType&&e,s=i&&t&&!t.nodeType&&t,a=s&&s.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;t.exports=u},1609:(t,e,r)=>{var n=r(280),o=r(4160),i=r(5694),s=r(1469),a=r(8612),u=r(4144),c=r(5726),l=r(6719),p=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(a(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||u(t)||l(t)||i(t)))return!t.length;var e=o(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!n(t).length;for(var r in t)if(p.call(t,r))return!1;return!0}},8446:(t,e,r)=>{var n=r(939);t.exports=function(t,e){return n(t,e)}},3560:(t,e,r)=>{var n=r(4239),o=r(3218);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1780:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},6688:(t,e,r)=>{var n=r(5588),o=r(1717),i=r(1167),s=i&&i.isMap,a=s?o(s):n;t.exports=a},3218:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},7005:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},8630:(t,e,r)=>{var n=r(4239),o=r(5924),i=r(7005),s=Function.prototype,a=Object.prototype,u=s.toString,c=a.hasOwnProperty,l=u.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=n(t))return!1;var e=o(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==l}},2928:(t,e,r)=>{var n=r(9221),o=r(1717),i=r(1167),s=i&&i.isSet,a=s?o(s):n;t.exports=a},3448:(t,e,r)=>{var n=r(4239),o=r(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},6719:(t,e,r)=>{var n=r(8749),o=r(1717),i=r(1167),s=i&&i.isTypedArray,a=s?o(s):n;t.exports=a},3674:(t,e,r)=>{var n=r(4636),o=r(280),i=r(8612);t.exports=function(t){return i(t)?n(t):o(t)}},1704:(t,e,r)=>{var n=r(4636),o=r(313),i=r(8612);t.exports=function(t){return i(t)?n(t,!0):o(t)}},928:t=>{t.exports=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}},5161:(t,e,r)=>{var n=r(9932),o=r(7206),i=r(9199),s=r(1469);t.exports=function(t,e){return(s(t)?n:i)(t,o(e,3))}},6604:(t,e,r)=>{var n=r(9465),o=r(7816),i=r(7206);t.exports=function(t,e){var r={};return e=i(e,3),o(t,(function(t,o,i){n(r,o,e(t,o,i))})),r}},8306:(t,e,r)=>{var n=r(3369);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var s=t.apply(this,n);return r.cache=i.set(o,s)||i,s};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},308:t=>{t.exports=function(){}},7557:(t,e,r)=>{var n=r(9932),o=r(5990),i=r(7406),s=r(1811),a=r(8363),u=r(696),c=r(9021),l=r(6904),p=c((function(t,e){var r={};if(null==t)return r;var c=!1;e=n(e,(function(e){return e=s(e,t),c||(c=e.length>1),e})),a(t,l(t),r),c&&(r=o(r,7,u));for(var p=e.length;p--;)i(r,e[p]);return r}));t.exports=p},9601:(t,e,r)=>{var n=r(371),o=r(9152),i=r(5403),s=r(327);t.exports=function(t){return i(t)?n(s(t)):o(t)}},6579:(t,e,r)=>{var n=r(2549),o=r(5865),i=r(7206),s=r(107),a=r(1469);t.exports=function(t,e,r){var u=a(t)?n:s,c=arguments.length<3;return u(t,i(e,4),r,c,o)}},479:t=>{t.exports=function(){return[]}},5062:t=>{t.exports=function(){return!1}},9833:(t,e,r)=>{var n=r(531);t.exports=function(t){return null==t?"":n(t)}},7185:(t,e,r)=>{var n=r(5652);t.exports=function(t,e){return e="function"==typeof e?e:void 0,t&&t.length?n(t,void 0,e):[]}},9271:function(t,e){var r,n;void 0===(n="function"==typeof(r=function(){"use strict";var t=Object.prototype.hasOwnProperty,e=Object.prototype.toString,r="boolean"==typeof(new RegExp).sticky;function n(t){return t&&"[object RegExp]"===e.call(t)}function o(t){return t&&"object"==typeof t&&!n(t)&&!Array.isArray(t)}function i(t){return"("+t+")"}function s(t){return t.length?"(?:"+t.map((function(t){return"(?:"+t+")"})).join("|")+")":"(?!)"}function a(t){if("string"==typeof t)return"(?:"+(t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+")");if(n(t)){if(t.ignoreCase)throw new Error("RegExp /i flag not allowed");if(t.global)throw new Error("RegExp /g flag is implied");if(t.sticky)throw new Error("RegExp /y flag is implied");if(t.multiline)throw new Error("RegExp /m flag is implied");return t.source}throw new Error("Not a pattern: "+t)}function u(e,r){if(o(r)||(r={match:r}),r.include)throw new Error("Matching rules cannot also include states");var i={defaultType:e,lineBreaks:!!r.error||!!r.fallback,pop:!1,next:null,push:null,error:!1,fallback:!1,value:null,type:null,shouldThrow:!1};for(var s in r)t.call(r,s)&&(i[s]=r[s]);if("string"==typeof i.type&&e!==i.type)throw new Error("Type transform cannot be a string (type '"+i.type+"' for token '"+e+"')");var a=i.match;return i.match=Array.isArray(a)?a:a?[a]:[],i.match.sort((function(t,e){return n(t)&&n(e)?0:n(e)?-1:n(t)?1:e.length-t.length})),i}function c(t){return Array.isArray(t)?function(t){for(var e=[],r=0;r<t.length;r++){var n=t[r];if(n.include)for(var o=[].concat(n.include),i=0;i<o.length;i++)e.push({include:o[i]});else{if(!n.type)throw new Error("Rule has no type: "+JSON.stringify(n));e.push(u(n.type,n))}}return e}(t):function(t){for(var e=Object.getOwnPropertyNames(t),r=[],n=0;n<e.length;n++){var i=e[n],s=t[i],a=[].concat(s);if("include"!==i){var c=[];a.forEach((function(t){o(t)?(c.length&&r.push(u(i,c)),r.push(u(i,t)),c=[]):c.push(t)})),c.length&&r.push(u(i,c))}else for(var l=0;l<a.length;l++)r.push({include:a[l]})}return r}(t)}var l=u("error",{lineBreaks:!0,shouldThrow:!0});function p(t,e){for(var o=null,u=Object.create(null),c=!0,p=null,f=[],h=[],y=0;y<t.length;y++)t[y].fallback&&(c=!1);for(y=0;y<t.length;y++){var v=t[y];if(v.include)throw new Error("Inheritance is not allowed in stateless lexers");if(v.error||v.fallback){if(o)throw!v.fallback==!o.fallback?new Error("Multiple "+(v.fallback?"fallback":"error")+" rules not allowed (for token '"+v.defaultType+"')"):new Error("fallback and error are mutually exclusive (for token '"+v.defaultType+"')");o=v}var d=v.match.slice();if(c)for(;d.length&&"string"==typeof d[0]&&1===d[0].length;)u[d.shift().charCodeAt(0)]=v;if(v.pop||v.push||v.next){if(!e)throw new Error("State-switching options are not allowed in stateless lexers (for token '"+v.defaultType+"')");if(v.fallback)throw new Error("State-switching options are not allowed on fallback tokens (for token '"+v.defaultType+"')")}if(0!==d.length){c=!1,f.push(v);for(var b=0;b<d.length;b++){var m=d[b];if(n(m))if(null===p)p=m.unicode;else if(p!==m.unicode&&!1===v.fallback)throw new Error("If one rule is /u then all must be")}var g=s(d.map(a)),x=new RegExp(g);if(x.test(""))throw new Error("RegExp matches empty string: "+x);if(new RegExp("|"+g).exec("").length-1>0)throw new Error("RegExp has capture groups: "+x+"\nUse (?: … ) instead");if(!v.lineBreaks&&x.test("\n"))throw new Error("Rule should declare lineBreaks: "+x);h.push(i(g))}}var _=o&&o.fallback,w=r&&!_?"ym":"gm",j=r||_?"":"|";return!0===p&&(w+="u"),{regexp:new RegExp(s(h)+j,w),groups:f,fast:u,error:o||l}}function f(t,e,r){var n=t&&(t.push||t.next);if(n&&!r[n])throw new Error("Missing state '"+n+"' (in token '"+t.defaultType+"' of state '"+e+"')");if(t&&t.pop&&1!=+t.pop)throw new Error("pop must be 1 (in token '"+t.defaultType+"' of state '"+e+"')")}var h=function(t,e){this.startState=e,this.states=t,this.buffer="",this.stack=[],this.reset()};h.prototype.reset=function(t,e){return this.buffer=t||"",this.index=0,this.line=e?e.line:1,this.col=e?e.col:1,this.queuedToken=e?e.queuedToken:null,this.queuedThrow=e?e.queuedThrow:null,this.setState(e?e.state:this.startState),this.stack=e&&e.stack?e.stack.slice():[],this},h.prototype.save=function(){return{line:this.line,col:this.col,state:this.state,stack:this.stack.slice(),queuedToken:this.queuedToken,queuedThrow:this.queuedThrow}},h.prototype.setState=function(t){if(t&&this.state!==t){this.state=t;var e=this.states[t];this.groups=e.groups,this.error=e.error,this.re=e.regexp,this.fast=e.fast}},h.prototype.popState=function(){this.setState(this.stack.pop())},h.prototype.pushState=function(t){this.stack.push(this.state),this.setState(t)};var y=r?function(t,e){return t.exec(e)}:function(t,e){var r=t.exec(e);return 0===r[0].length?null:r};function v(){return this.value}if(h.prototype._getGroup=function(t){for(var e=this.groups.length,r=0;r<e;r++)if(void 0!==t[r+1])return this.groups[r];throw new Error("Cannot find token type for matched text")},h.prototype.next=function(){var t=this.index;if(this.queuedGroup){var e=this._token(this.queuedGroup,this.queuedText,t);return this.queuedGroup=null,this.queuedText="",e}var r=this.buffer;if(t!==r.length){if(s=this.fast[r.charCodeAt(t)])return this._token(s,r.charAt(t),t);var n=this.re;n.lastIndex=t;var o=y(n,r),i=this.error;if(null==o)return this._token(i,r.slice(t,r.length),t);var s=this._getGroup(o),a=o[0];return i.fallback&&o.index!==t?(this.queuedGroup=s,this.queuedText=a,this._token(i,r.slice(t,o.index),t)):this._token(s,a,t)}},h.prototype._token=function(t,e,r){var n=0;if(t.lineBreaks){var o=/\n/g,i=1;if("\n"===e)n=1;else for(;o.exec(e);)n++,i=o.lastIndex}var s={type:"function"==typeof t.type&&t.type(e)||t.defaultType,value:"function"==typeof t.value?t.value(e):e,text:e,toString:v,offset:r,lineBreaks:n,line:this.line,col:this.col},a=e.length;if(this.index+=a,this.line+=n,0!==n?this.col=a-i+1:this.col+=a,t.shouldThrow)throw new Error(this.formatError(s,"invalid syntax"));return t.pop?this.popState():t.push?this.pushState(t.push):t.next&&this.setState(t.next),s},"undefined"!=typeof Symbol&&Symbol.iterator){var d=function(t){this.lexer=t};d.prototype.next=function(){var t=this.lexer.next();return{value:t,done:!t}},d.prototype[Symbol.iterator]=function(){return this},h.prototype[Symbol.iterator]=function(){return new d(this)}}return h.prototype.formatError=function(t,e){if(null==t){var r=this.buffer.slice(this.index);t={text:r,offset:this.index,lineBreaks:-1===r.indexOf("\n")?0:1,line:this.line,col:this.col}}var n=Math.max(0,t.offset-t.col+1),o=t.lineBreaks?t.text.indexOf("\n"):t.text.length,i=this.buffer.substring(n,t.offset+o);return e+=" at line "+t.line+" col "+t.col+":\n\n",(e+=" "+i+"\n")+" "+Array(t.col).join(" ")+"^"},h.prototype.clone=function(){return new h(this.states,this.state)},h.prototype.has=function(t){return!0},{compile:function(t){var e=p(c(t));return new h({start:e},"start")},states:function(t,e){var r=t.$all?c(t.$all):[];delete t.$all;var n=Object.getOwnPropertyNames(t);e||(e=n[0]);for(var o=Object.create(null),i=0;i<n.length;i++)o[g=n[i]]=c(t[g]).concat(r);for(i=0;i<n.length;i++)for(var s=o[g=n[i]],a=Object.create(null),u=0;u<s.length;u++){var l=s[u];if(l.include){var y=[u,1];if(l.include!==g&&!a[l.include]){a[l.include]=!0;var v=o[l.include];if(!v)throw new Error("Cannot include nonexistent state '"+l.include+"' (in state '"+g+"')");for(var d=0;d<v.length;d++){var b=v[d];-1===s.indexOf(b)&&y.push(b)}}s.splice.apply(s,y),u--}}var m=Object.create(null);for(i=0;i<n.length;i++){var g;m[g=n[i]]=p(o[g],!0)}for(i=0;i<n.length;i++){var x=n[i],_=m[x],w=_.groups;for(u=0;u<w.length;u++)f(w[u],x,m);var j=Object.getOwnPropertyNames(_.fast);for(u=0;u<j.length;u++)f(_.fast[j[u]],x,m)}return new h(m,e)},error:Object.freeze({error:!0}),fallback:Object.freeze({fallback:!0}),keywords:function(t){for(var e=Object.create(null),r=Object.create(null),n=Object.getOwnPropertyNames(t),o=0;o<n.length;o++){var i=n[o],s=t[i];(Array.isArray(s)?s:[s]).forEach((function(t){if((r[t.length]=r[t.length]||[]).push(t),"string"!=typeof t)throw new Error("keyword must be string (in keyword '"+i+"')");e[t]=i}))}function a(t){return JSON.stringify(t)}var u="";for(var c in u+="switch (value.length) {\n",r){var l=r[c];u+="case "+c+":\n",u+="switch (value) {\n",l.forEach((function(t){var r=e[t];u+="case "+a(t)+": return "+a(r)+"\n"})),u+="}\n"}return u+="}\n",Function("value",u)}}})?r.apply(e,[]):r)||(t.exports=n)},9654:function(t){var e;e=function(){function t(e,r,n){return this.id=++t.highestId,this.name=e,this.symbols=r,this.postprocess=n,this}function e(t,e,r,n){this.rule=t,this.dot=e,this.reference=r,this.data=[],this.wantedBy=n,this.isComplete=this.dot===t.symbols.length}function r(t,e){this.grammar=t,this.index=e,this.states=[],this.wants={},this.scannable=[],this.completed={}}function n(t,e){this.rules=t,this.start=e||this.rules[0].name;var r=this.byName={};this.rules.forEach((function(t){r.hasOwnProperty(t.name)||(r[t.name]=[]),r[t.name].push(t)}))}function o(){this.reset("")}function i(t,e,i){if(t instanceof n){var s=t;i=e}else s=n.fromCompiled(t,e);for(var a in this.grammar=s,this.options={keepHistory:!1,lexer:s.lexer||new o},i||{})this.options[a]=i[a];this.lexer=this.options.lexer,this.lexerState=void 0;var u=new r(s,0);this.table=[u],u.wants[s.start]=[],u.predict(s.start),u.process(),this.current=0}function s(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return t.toString();if(t.type)return"%"+t.type;if(t.test)return"<"+String(t.test)+">";throw new Error("Unknown symbol type: "+t)}}return t.highestId=0,t.prototype.toString=function(t){var e=void 0===t?this.symbols.map(s).join(" "):this.symbols.slice(0,t).map(s).join(" ")+" ● "+this.symbols.slice(t).map(s).join(" ");return this.name+" → "+e},e.prototype.toString=function(){return"{"+this.rule.toString(this.dot)+"}, from: "+(this.reference||0)},e.prototype.nextState=function(t){var r=new e(this.rule,this.dot+1,this.reference,this.wantedBy);return r.left=this,r.right=t,r.isComplete&&(r.data=r.build(),r.right=void 0),r},e.prototype.build=function(){var t=[],e=this;do{t.push(e.right.data),e=e.left}while(e.left);return t.reverse(),t},e.prototype.finish=function(){this.rule.postprocess&&(this.data=this.rule.postprocess(this.data,this.reference,i.fail))},r.prototype.process=function(t){for(var e=this.states,r=this.wants,n=this.completed,o=0;o<e.length;o++){var s=e[o];if(s.isComplete){if(s.finish(),s.data!==i.fail){for(var a=s.wantedBy,u=a.length;u--;){var c=a[u];this.complete(c,s)}if(s.reference===this.index){var l=s.rule.name;(this.completed[l]=this.completed[l]||[]).push(s)}}}else{if("string"!=typeof(l=s.rule.symbols[s.dot])){this.scannable.push(s);continue}if(r[l]){if(r[l].push(s),n.hasOwnProperty(l)){var p=n[l];for(u=0;u<p.length;u++){var f=p[u];this.complete(s,f)}}}else r[l]=[s],this.predict(l)}}},r.prototype.predict=function(t){for(var r=this.grammar.byName[t]||[],n=0;n<r.length;n++){var o=r[n],i=this.wants[t],s=new e(o,0,this.index,i);this.states.push(s)}},r.prototype.complete=function(t,e){var r=t.nextState(e);this.states.push(r)},n.fromCompiled=function(e,r){var o=e.Lexer;e.ParserStart&&(r=e.ParserStart,e=e.ParserRules);var i=new n(e=e.map((function(e){return new t(e.name,e.symbols,e.postprocess)})),r);return i.lexer=o,i},o.prototype.reset=function(t,e){this.buffer=t,this.index=0,this.line=e?e.line:1,this.lastLineBreak=e?-e.col:0},o.prototype.next=function(){if(this.index<this.buffer.length){var t=this.buffer[this.index++];return"\n"===t&&(this.line+=1,this.lastLineBreak=this.index),{value:t}}},o.prototype.save=function(){return{line:this.line,col:this.index-this.lastLineBreak}},o.prototype.formatError=function(t,e){var r=this.buffer;if("string"==typeof r){var n=r.split("\n").slice(Math.max(0,this.line-5),this.line),o=r.indexOf("\n",this.index);-1===o&&(o=r.length);var i=this.index-this.lastLineBreak,s=String(this.line).length;return e+=" at line "+this.line+" col "+i+":\n\n",(e+=n.map((function(t,e){return a(this.line-n.length+e+1,s)+" "+t}),this).join("\n"))+"\n"+a("",s+i)+"^\n"}return e+" at index "+(this.index-1);function a(t,e){var r=String(t);return Array(e-r.length+1).join(" ")+r}},i.fail={},i.prototype.feed=function(t){var e,n=this.lexer;for(n.reset(t,this.lexerState);;){try{if(!(e=n.next()))break}catch(t){var i=new r(this.grammar,this.current+1);throw this.table.push(i),(u=new Error(this.reportLexerError(t))).offset=this.current,u.token=t.token,u}var s=this.table[this.current];this.options.keepHistory||delete this.table[this.current-1];var a=this.current+1;i=new r(this.grammar,a),this.table.push(i);for(var u,c=void 0!==e.text?e.text:e.value,l=n.constructor===o?e.value:e,p=s.scannable,f=p.length;f--;){var h=p[f],y=h.rule.symbols[h.dot];if(y.test?y.test(l):y.type?y.type===e.type:y.literal===c){var v=h.nextState({data:l,token:e,isToken:!0,reference:a-1});i.states.push(v)}}if(i.process(),0===i.states.length)throw(u=new Error(this.reportError(e))).offset=this.current,u.token=e,u;this.options.keepHistory&&(s.lexerState=n.save()),this.current++}return s&&(this.lexerState=n.save()),this.results=this.finish(),this},i.prototype.reportLexerError=function(t){var e,r,n=t.token;return n?(e="input "+JSON.stringify(n.text[0])+" (lexer error)",r=this.lexer.formatError(n,"Syntax error")):(e="input (lexer error)",r=t.message),this.reportErrorCommon(r,e)},i.prototype.reportError=function(t){var e=(t.type?t.type+" token: ":"")+JSON.stringify(void 0!==t.value?t.value:t),r=this.lexer.formatError(t,"Syntax error");return this.reportErrorCommon(r,e)},i.prototype.reportErrorCommon=function(t,e){var r=[];r.push(t);var n=this.table.length-2,o=this.table[n],i=o.states.filter((function(t){var e=t.rule.symbols[t.dot];return e&&"string"!=typeof e}));return 0===i.length?(r.push("Unexpected "+e+". I did not expect any more input. Here is the state of my parse table:\n"),this.displayStateStack(o.states,r)):(r.push("Unexpected "+e+". Instead, I was expecting to see one of the following:\n"),i.map((function(t){return this.buildFirstStateStack(t,[])||[t]}),this).forEach((function(t){var e=t[0],n=e.rule.symbols[e.dot],o=this.getSymbolDisplay(n);r.push("A "+o+" based on:"),this.displayStateStack(t,r)}),this)),r.push(""),r.join("\n")},i.prototype.displayStateStack=function(t,e){for(var r,n=0,o=0;o<t.length;o++){var i=t[o],s=i.rule.toString(i.dot);s===r?n++:(n>0&&e.push(" ^ "+n+" more lines identical to this"),n=0,e.push(" "+s)),r=s}},i.prototype.getSymbolDisplay=function(t){return function(t){var e=typeof t;if("string"===e)return t;if("object"===e){if(t.literal)return JSON.stringify(t.literal);if(t instanceof RegExp)return"character matching "+t;if(t.type)return t.type+" token";if(t.test)return"token matching "+String(t.test);throw new Error("Unknown symbol type: "+t)}}(t)},i.prototype.buildFirstStateStack=function(t,e){if(-1!==e.indexOf(t))return null;if(0===t.wantedBy.length)return[t];var r=t.wantedBy[0],n=[t].concat(e),o=this.buildFirstStateStack(r,n);return null===o?null:[t].concat(o)},i.prototype.save=function(){var t=this.table[this.current];return t.lexerState=this.lexerState,t},i.prototype.restore=function(t){var e=t.index;this.current=e,this.table[e]=t,this.table.splice(e+1),this.lexerState=t.lexerState,this.results=this.finish()},i.prototype.rewind=function(t){if(!this.options.keepHistory)throw new Error("set option `keepHistory` to enable rewinding");this.restore(this.table[t])},i.prototype.finish=function(){var t=[],e=this.grammar.start;return this.table[this.table.length-1].states.forEach((function(r){r.rule.name===e&&r.dot===r.rule.symbols.length&&0===r.reference&&r.data!==i.fail&&t.push(r)})),t.map((function(t){return t.data}))},{Parser:i,Grammar:n,Rule:t}},t.exports?t.exports=e():this.nearley=e()}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t);var n={};return(()=>{"use strict";r.r(n),r.d(n,{parseBooleanExpression:()=>y,parseExpression:()=>v,parseMathsExpression:()=>l});var t=r(7185),e=r.n(t),o=r(8446),i=r.n(o),s=r(9654),a=r(1647),u=r.n(a),c=s.Grammar.fromCompiled(u());function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(c),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var p=r(8326),f=r.n(p),h=s.Grammar.fromCompiled(f());function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",r=new s.Parser(h),n=null;try{n=e()(r.feed(t).results,i())}catch(t){console.log(t),n={error:t}}return n}var v=l})(),n})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inequality-grammar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/inequality-grammar.js",
|
|
6
6
|
"files": [
|
|
@@ -21,17 +21,16 @@
|
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://github.com/isaacphysics/inequality-grammar#readme",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@babel/core": "^7.
|
|
25
|
-
"@babel/preset-env": "^7.11
|
|
26
|
-
"babel-loader": "^8.
|
|
24
|
+
"@babel/core": "^7.17.8",
|
|
25
|
+
"@babel/preset-env": "^7.16.11",
|
|
26
|
+
"babel-loader": "^8.2.4",
|
|
27
27
|
"nearley-loader": "^2.0.0",
|
|
28
|
-
"webpack": "^
|
|
29
|
-
"webpack-cli": "^
|
|
28
|
+
"webpack": "^5.71.0",
|
|
29
|
+
"webpack-cli": "^4.9.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"lodash": "^4.17.
|
|
32
|
+
"lodash": "^4.17.21",
|
|
33
33
|
"moo": "^0.5.1",
|
|
34
|
-
"nearley": "^2.
|
|
35
|
-
"npm-check-updates": "^7.1.1"
|
|
34
|
+
"nearley": "^2.20.1"
|
|
36
35
|
}
|
|
37
36
|
}
|