From f5cf5d0cc84d047a1e85c1114679ab371788b27e Mon Sep 17 00:00:00 2001 From: Stephan Zwicknagl Date: Wed, 23 Oct 2024 10:47:23 -0400 Subject: [PATCH] Set version number --- backend/setup.cfg | 2 +- docs/index.rst | 2 +- docs/viasp/commandline.rst | 4 ++-- frontend/package-lock.json | 4 ++-- frontend/package.json | 2 +- frontend/viasp_dash/package-info.json | 2 +- frontend/viasp_dash/viasp_dash.min.js | 2 +- frontend/viasp_dash/viasp_dash.min.js.map | 2 +- setup.cfg | 2 +- setup.py | 2 +- 10 files changed, 12 insertions(+), 12 deletions(-) diff --git a/backend/setup.cfg b/backend/setup.cfg index c5c6ac6..87b9ab4 100644 --- a/backend/setup.cfg +++ b/backend/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = viasp-backend -version = 2.1.2 +version = 2.0.0.pre1 author = Luis Glaser author_email = Luis.Glaser@uni-potsdam.de description = The backend for the viasp package. diff --git a/docs/index.rst b/docs/index.rst index 5c8ee81..05f3eb8 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -18,7 +18,7 @@ Explore ASP programs and their answer sets with viASP: * Inspect iterations of recursive rules * Relax and visualize unsatisfiable programs * Reorder rules -* Zoom in and out with Ctrl + mouse wheel +* Zoom in and out with Shift + mouse wheel .. toctree:: :maxdepth: 2 diff --git a/docs/viasp/commandline.rst b/docs/viasp/commandline.rst index ed42bea..d80c180 100644 --- a/docs/viasp/commandline.rst +++ b/docs/viasp/commandline.rst @@ -164,7 +164,7 @@ The relaxation mode transforms all integrity constraints of the input program in .. code-block:: bash $ viasp unsat-example.lp - viasp version 2.1.2 + viasp version 2.0.0.pre1 Reading from unsat-example.lp Starting backend at http://localhost:5050 @@ -200,7 +200,7 @@ When solving the relaxed program, the atom ``unsat(r1, (X,))`` will be derived, .. code-block:: bash $ viasp unsat-example.lp --relax - viasp version 2.1.2 + viasp version 2.0.0.pre1 Reading from unsat-example.lp UNSAT [INFO] Set models. diff --git a/frontend/package-lock.json b/frontend/package-lock.json index f0534d5..989fbda 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -1,12 +1,12 @@ { "name": "viasp_dash", - "version": "2.1.2", + "version": "2.0.0.pre1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "viasp_dash", - "version": "2.1.2", + "version": "2.0.0.pre1", "license": "MIT", "dependencies": { "@react-hook/resize-observer": "^1.2.6", diff --git a/frontend/package.json b/frontend/package.json index 98bfaa6..c8a0630 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,6 +1,6 @@ { "name": "viasp_dash", - "version": "2.1.2", + "version": "2.0.0.pre1", "description": "The dash frontend for the viasp package.", "main": "build/index.js", "scripts": { diff --git a/frontend/viasp_dash/package-info.json b/frontend/viasp_dash/package-info.json index 98bfaa6..c8a0630 100644 --- a/frontend/viasp_dash/package-info.json +++ b/frontend/viasp_dash/package-info.json @@ -1,6 +1,6 @@ { "name": "viasp_dash", - "version": "2.1.2", + "version": "2.0.0.pre1", "description": "The dash frontend for the viasp package.", "main": "build/index.js", "scripts": { diff --git a/frontend/viasp_dash/viasp_dash.min.js b/frontend/viasp_dash/viasp_dash.min.js index 6b81600..ff7b9c6 100644 --- a/frontend/viasp_dash/viasp_dash.min.js +++ b/frontend/viasp_dash/viasp_dash.min.js @@ -1,3 +1,3 @@ /*! For license information please see viasp_dash.min.js.LICENSE.txt */ -(()=>{var t,e,n={3979:(t,e,n)=>{"use strict";n.d(e,{K:()=>O});var r=n(9196),o=n.n(r),i=n(4781),a=n(3379),u=n.n(a),s=n(7795),c=n.n(s),l=n(569),f=n.n(l),p=n(3565),d=n.n(p),h=n(9216),y=n.n(h),m=n(4589),v=n.n(m),g=n(8061),b={};b.styleTagTransform=v(),b.setAttributes=d(),b.insert=f().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=y(),u()(g.Z,b),g.Z&&g.Z.locals&&g.Z.locals;var A=n(9064),w=n.n(A),_=(n(1569),n(7217)),x=(n(2622),n(1087),n(4800));n(4405);function S(t){var e=t.symbol,n=(0,_.oF)();return o().createElement("span",{className:"detail_atom_view_content",style:{backgroundColor:n.light,color:n.dark}},(0,i.jZ)(e))}function O(){return parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--detail-open-width"))/100}S.propTypes={symbol:x.QT},x.jK,w().arrayOf(x.QT),w().func},3927:(t,e,n)=>{"use strict";n.d(e,{Oq:()=>o,Hb:()=>b,tt:()=>w,R4:()=>A,aO:()=>a,mZ:()=>i,Jk:()=>u,Ft:()=>s,I$:()=>d,n1:()=>m,qd:()=>p,PM:()=>g,Wn:()=>c,cP:()=>l,iw:()=>h,qH:()=>y,cp:()=>v});var r=n(3979),o=150,i="Shift",a=50,u=.05,s=(0,r.K)(),c=30,l=.01,f=n(4781),p=.8,d=(0,f.Q2)(.7),h=3e3,y=1e3,m=(0,f.Q2)(2.5),v=(0,f.Q2)(5.7),g=(0,f.Q2)(.1),b=40,A=38,w=13},7217:(t,e,n)=>{"use strict";n.d(e,{WK:()=>l,dG:()=>s,oF:()=>c});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i),u=n(4800),s=o().createContext([]),c=function(){return o().useContext(s)},l=function(t){var e=t.children,n=t.colorPalette;return o().createElement(s.Provider,{value:n},e)};l.propTypes={children:a().element,colorPalette:u.Uk}},4078:(t,e,n)=>{"use strict";n.d(e,{$:()=>A,w:()=>b});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i),u=n(1087),s=n(7217),c=n(1569),l=n(3927);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0?s[e].push(h):s[e]=[h]}else a.splice(f,1),u[e]&&delete u[e],s[e]&&(s[e]=s[e].map((function(t){return t.color===n&&(t.markedForDeletion=!0,t.markedForInsertion=!1),t})));y(a.map((function(t){return JSON.parse(t)}))),S(s),w(u),setTimeout((function(){w((function(t){var n=function(t){for(var e=1;e{"use strict";n.d(e,{DS:()=>p,mu:()=>v,rV:()=>m});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{"use strict";n.d(e,{$:()=>l,J:()=>c});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{"use strict";n.d(e,{Dl:()=>b,x2:()=>y,y_:()=>g});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i),u=n(1087);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:p,e=arguments.length>1?arguments[1]:void 0;return e.type===d?f(f({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"error"})}):e.type===h?f(f({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"warn"})}):f({},t)},v=o().createContext([]),g=function(){return o().useContext(v)},b=function(t){var e,n,r=t.children,i=(e=o().useReducer(m,p),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,n)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1],l=(0,u.rV)().backendURL,f=o().useRef(l);return o().useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("control/warnings"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(f.current).catch((function(t){y("Failed to get transformations: ".concat(t))})).then((function(e){t&&e.map((function(t){return"FAILURE"===(e=t).reason.value?{type:d,text:"The program contains a rule that will cause false behaviour! Remove/Rephrase the following rule: ".concat(e.ast)}:"relaxer"===e.reason.value?{type:h,text:e.message}:{type:h,text:"The program contains a rule that is not supported! The graph shown might be faulty! ".concat(e.ast)};var e})).map((function(t){return s(t)}))})),function(){return t=!1}}),[]),o().createElement(v.Provider,{value:[a,s]},r)};b.propTypes={children:a().element}},714:(t,e,n)=>{"use strict";n.d(e,{Cf:()=>O,KT:()=>W,O7:()=>S,Qx:()=>N,WK:()=>Y,Wp:()=>H,Z3:()=>U,oA:()=>J,oB:()=>M,p6:()=>Q,rl:()=>$,vi:()=>X});var r=n(9196),o=n.n(r),i=n(1569),a=n(1087),u=n(9064),s=n.n(u),c=n(4781);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(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 d(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:g,i=arguments.length>1?arguments[1]:void 0;if("APP/TRANSFORMATIONS/ADD"===i.type)return m(m({},o),{},{transformations:o.transformations.concat(m(m({},i.t),{},{rules:i.t.rules.str_.map((function(t){return{_type:"RuleWrapper",rule:t,highlight:!1}})),shown:!0,isExpandableV:!1,isCollapsibleV:!1,allNodesShowMini:!1}))});if(i.type===b)return m(m({},o),{},{transformations:i.ts.map((function(t){return m(m({},t),{},{rules:t.rules.str_.map((function(e,n){return{_type:"RuleWrapper",rule:e,hash:t.rules.hash[n]}})),shown:!0,isExpandableV:!1,isCollapsibleV:!1,allNodesShowMini:!1})}))});if(i.type===z)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(t=o.transformationNodesMap[i.tid])||void 0===t?void 0:t.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandableV:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandableV:i.v}):t}))}):t}))))}):o;if(i.type===L)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(e=o.transformationNodesMap[i.tid])||void 0===e?void 0:e.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isCollapsibleV:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isCollapsibleV:i.v}):t}))}):t}))))}):o;if(i.type===F)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(n=o.transformationNodesMap[i.tid])||void 0===n?void 0:n.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandVAllTheWay:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandVAllTheWay:i.v}):t}))}):t}))))}):o;if(i.type===V)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(r=o.transformationNodesMap[i.tid])||void 0===r?void 0:r.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{showMini:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{showMini:i.v}):t}))}):t}))))}):o;if(i.type===A)return m(m({},o),{},{transformations:[]});if(i.type===T)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id!==i.t.id?m(m({},t),{},{shown:!1}):m(m({},t),{},{shown:!0})}))});if("APP/TRANSFORMATIONS/SHOW"===i.type)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id===i.t.id?m(m({},t),{},{shown:!0}):t}))});if("APP/TRANSFORMATIONS/HIDE"===i.type)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id===i.t.id?m(m({},t),{},{shown:!1}):t}))});if("APP/TRANSFORMATIONS/TOGGLE"===i.type)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id===i.t.id?m(m({},t),{},{shown:!t.shown}):t}))});if(i.type===w){var a=p(o.transformations),u=f(a.splice(i.oldIndex,1),1)[0];a.splice(i.newIndex,0,u),a=a.map((function(t,e){return m(m({},t),{},{id:e})}));var s=Object.values(o.transformationNodesMap),l=f(s.splice(i.oldIndex,1),1)[0];return s.splice(i.newIndex,0,l),s=s.reduce((function(t,e,n){return t[e]=Object.values(s)[n],t}),{}),m(m({},o),{},{transformations:a,transformationNodesMap:s})}if(i.type===C)return m(m({},o),{},{currentSort:i.s});if(i.type===E)return m(m({},o),{},{currentSort:i.s});if(i.type===I)return m(m({},o),{},{transformationNodesMap:i.nodesRes.reduce((function(t,e,n){return t[i.t[n].id]=e.map((function(t){return m(m({},t),{},{recursive:t.recursive.map((function(t){return m(m({},t),{},{loading:!1,shownRecursion:!1,isExpandableV:!1,isCollapsibleV:!1,isExpandVAllTheWay:!1,showMini:!1})})),loading:!1,shownRecursion:!1,isExpandableV:!1,isCollapsibleV:!1,isExpandVAllTheWay:!1,showMini:!1})})),t}),{})});if(i.type===j)return null===o.transformationNodesMap?m(m({},o),{},{transformationNodesMap:o.transformations.map((function(t){return(0,c.Sy)()}))}):m(m({},o),{},{transformationNodesMap:Object.keys(o.transformationNodesMap).reduce((function(t,e){return t[e]=(0,c.Sy)(o.transformationNodesMap[e]),t}),{})});if(i.type===q)return m(m({},o),{},{clingraphGraphics:i.g.map((function(t,e){t.loading=!1,t.showMini=!1;var n=Math.max.apply(Math,p(Object.keys(o.transformationNodesMap).map((function(t){return parseInt(t,10)}))));return t.space_multiplier=o.transformationNodesMap[n][e].space_multiplier,t}))});if(i.type===Z)return null===o.clingraphGraphics?m({},o):m(m({},o),{},{clingraphGraphics:(0,c.oz)(o.clingraphGraphics)});if(i.type===G)return m(m({},o),{},{clingraphGraphics:o.clingraphGraphics.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{showMini:i.v}):t}))});if(i.type===_)return m(m({},o),{},{transformationDropIndices:i.t});if(i.type===x)return null!==i.tid?m(m({},o),{},{transformations:o.transformations.map((function(t){var e,n,r;return t.id===i.tid&&(t.isExpandableV=null===(e=o.transformationNodesMap[i.tid])||void 0===e?void 0:e.some((function(t){return t.isExpandableV})),t.isCollapsibleV=null===(n=o.transformationNodesMap[i.tid])||void 0===n?void 0:n.some((function(t){return t.isCollapsibleV})),t.allNodesShowMini=null===(r=o.transformationNodesMap[i.tid])||void 0===r?void 0:r.every((function(t){return t.showMini}))),t}))}):o;if(i.type===k)return m(m({},o),{},{edges:i.e});if(i.type===B)return m(m({},o),{},{edges:[]});if(i.type===R){var d=p(o.shownRecursion);d.includes(i.n)?d=d.filter((function(t){return t!==i.n})):d.push(i.n);var h=Object.keys(o.transformationNodesMap).reduce((function(t,e){return t[e]=o.transformationNodesMap[e].map((function(t){return t.uuid===i.n?m(m({},t),{},{shownRecursion:!t.shownRecursion}):t})),t}),{});return m(m({},o),{},{transformationNodesMap:h,shownRecursion:d})}return i.type===D?m(m({},o),{},{shownRecursion:[]}):m({},o)},Q=function(t){var e=t.children,n=f((0,i.y_)(),2)[1],r=(0,a.rV)().backendURL,u=f(o().useReducer(K,g),2),s=u[0],c=u[1],l=o().useRef(r),d=o().useRef(n),h=function(t,e){(function(t,e,n){return fetch("".concat(n("graph/edges")),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({shownRecursion:t,usingClingraph:e})}).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))})(t,e,l.current).catch((function(t){d.current((0,i.x2)("Failed to get edges: ".concat(t)))})).then((function(t){c({type:k,e:t})}))},y=function(t){(function(t){return fetch("".concat(t("graph/sorts"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))})(l.current).catch((function(t){d.current((0,i.x2)("Failed to get transformations: ".concat(t)))})).then((function(e){c({type:A}),c({type:b,ts:e}),function(t){c(P()),c({type:Z});var e=t.map((function(t){return{id:t.id,hash:t.hash}})),n=e.map((function(t){return function(t,e){return fetch("".concat(e("graph/children"),"/").concat(t)).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))}(t.hash,l.current)}));return n.push(function(t){return fetch("".concat(t("graph/facts"))).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))}(l.current)),e.push({id:-1}),n.push(function(t){return fetch("".concat(t("clingraph/children"))).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))}(l.current)),Promise.all(n)}(e).catch((function(t){d.current((0,i.x2)("Failed to get nodes: ".concat(t)))})).then((function(n){var r=n.slice(0,n.length-1),o=n[n.length-1],i=[].concat(p(e.map((function(t){return{id:t.id}}))),[{id:-1}]);c(function(t,e){return{type:I,nodesRes:t,t:e}}(r,i)),c({type:q,g:o}),h(t,o.length>0)}))}))},m=o().useRef(y);return o().useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("graph/current"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(l.current).catch((function(t){d.current((0,i.x2)("Failed to get dependency sorts: ".concat(t)))})).then((function(e){t&&c({type:C,s:e})})),m.current([]),function(){t=!1}}),[]),o().createElement(X.Provider,{value:{state:s,dispatch:c,setSortAndFetchGraph:function(t,e){c({type:B}),c(P()),c(function(t,e){return{type:w,oldIndex:t,newIndex:e}}(t,e)),c({type:D}),function(t,e,n){return fetch("".concat(t("graph/sorts")),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({moved_transformation:{old_index:e,new_index:n}})}).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(l.current,t,e).catch((function(t){d.current((0,i.x2)("Failed to set new current graph: ".concat(t)))})).then((function(t){var e;t&&t.hash&&c((e=t.hash,{type:E,s:e})),y(s.shownRecursion,s.clingraphGraphics.length)}))},reloadEdges:h}},e)},J=function(){return o().useContext(X)};Q.propTypes={children:s().element}},4800:(t,e,n)=>{"use strict";n.d(e,{KA:()=>f,QT:()=>i,Uk:()=>h,WY:()=>y,b6:()=>p,ex:()=>a,f8:()=>l,jK:()=>u,q7:()=>d,vG:()=>c});var r=n(9064),o=n.n(r),i=o().exact({_type:o().oneOf(["Function"]),arguments:o().array,name:o().string,positive:o().bool}),a=o().exact({_type:o().oneOf(["SymbolIdentifier"]),symbol:i,has_reason:o().bool,uuid:o().string}),u=o().exact({_type:o().oneOf(["Signature"]),name:o().string,args:o().number}),s=o().exact({_type:o().oneOf(["RuleContainer"]),ast:o().arrayOf(o().string),str_:o().arrayOf(o().string)}),c=o().exact({_type:o().oneOf(["RuleWrapper"]),rule:o().string,hash:o().string}),l=o().exact({_type:o().oneOf(["Transformation"]),id:o().number,rules:s,adjacent_sort_indices:o().exact({lower_bound:o().number,upper_bound:o().number}),hash:o().string}),f=o().exact({_type:o().oneOf(["Transformation"]),id:o().number,rules:o().arrayOf(c),adjacent_sort_indices:o().exact({lower_bound:o().number,upper_bound:o().number}),hash:o().string,shown:o().bool,isExpandableV:o().bool,isCollapsibleV:o().bool,allNodesShowMini:o().bool}),p=(o().exact({_type:o().oneOf(["Graph"]),_graph:o().object}),o().exact({_type:o().oneOf(["Node"]),atoms:o().array,diff:o().array,rule_nr:o().number,reason:o().object,reason_rules:o().object,recursive:o().oneOfType([o().bool,o().array]),space_multiplier:o().number,uuid:o().string,loading:o().bool,shownRecursion:o().bool,isExpandableV:o().bool,isCollapsibleV:o().bool,isExpandVAllTheWay:o().bool,showMini:o().bool})),d=o().exact({_type:o().oneOf(["ClingraphNode"]),uuid:o().string,loading:o().bool,space_multiplier:o().number,showMini:o().bool}),h=(o().exact({_type:o().oneOf(["Box"]),uuid:o().string}),o().exact({primary:o().string,light:o().string,dark:o().string,warn:o().string,error:o().string,infoBackground:o().string,rowShading:o().arrayOf(o().string),explanationHighlights:o().arrayOf(o().string)})),y=o().exact({scale:o().number,translation:o().shape({x:o().number,y:o().number})})},4781:(t,e,n)=>{"use strict";n.d(e,{Q2:()=>d,Sy:()=>l,_5:()=>c,_d:()=>p,jZ:()=>s,oz:()=>f});var r=n(4586);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?"".concat(t.name,"(").concat(e,")"):"".concat(t.name);case"SymbolIdentifier":return s(t.symbol);case"String":return'"'.concat(t.string,'"');default:throw new TypeError("Unimplemented type ".concat(t._type))}}function c(t){return t.join(" ")}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(t.length>0)return t.map((function(t,e){return u(u({},t),{},{loading:!0})}));for(var e=[],n=Math.floor(2*Math.random())+1,o=Math.floor(20*Math.random())+3,i=0;i0&&void 0!==arguments[0]?arguments[0]:[];if(t.length>0)return t.map((function(t,e){return u(u({},t),{},{uuid:"".concat(t.uuid),loading:!0})}));for(var e=[],n=Math.floor(2*Math.random())+1,o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}(t.children);try{for(r.s();!(n=r.n()).done;){var o=p(n.value,e);if(o)return o}}catch(t){r.e(t)}finally{r.f()}return null}function d(t){return t*parseFloat(getComputedStyle(document.documentElement).fontSize)}},1564:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".box_border {\n border-radius: 1px 1px 1px 1px;\n border: 2px solid;\n margin: 25px 5px 15px 5px;\n position: relative;\n}\n\n\n.highlighted_box {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 2px #333);\n}\n","",{version:3,sources:["webpack://./src/lib/components/box.css"],names:[],mappings:"AAAA;IACI,8BAA8B;IAC9B,iBAAiB;IACjB,yBAAyB;IACzB,kBAAkB;AACtB;;;AAGA;IACI,2BAA2B;IAC3B,iCAAiC;AACrC",sourcesContent:[".box_border {\n border-radius: 1px 1px 1px 1px;\n border: 2px solid;\n margin: 25px 5px 15px 5px;\n position: relative;\n}\n\n\n.highlighted_box {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 2px #333);\n}\n"],sourceRoot:""}]);const u=a},3869:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".boxrow_container {\n justify-content: space-around;\n background: transparent;\n box-sizing: border-box;\n position: relative;\n z-index: 3;\n}\n\n.boxrow_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}","",{version:3,sources:["webpack://./src/lib/components/boxrow.css"],names:[],mappings:"AAAA;IACI,6BAA6B;IAC7B,uBAAuB;IACvB,sBAAsB;IACtB,kBAAkB;IAClB,UAAU;AACd;;AAEA;IACI,aAAa;IACb,6BAA6B;IAC7B,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;AACpB",sourcesContent:[".boxrow_container {\n justify-content: space-around;\n background: transparent;\n box-sizing: border-box;\n position: relative;\n z-index: 3;\n}\n\n.boxrow_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}"],sourceRoot:""}]);const u=a},8061:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,":root {\n --detail-open-width: 20%;\n}\n\n.detail {\n float: right;\n height: 100vh;\n box-shadow: -1px -1px 2px 1px rgba(0, 0, 0, .2);\n font-family: monospace;\n transition: width 0.2s;\n width: 0;\n position: fixed;\n z-index: 20;\n top: 0;\n right: 0;\n overflow-y: auto;\n}\n\n.detail-open {\n width: var(--detail-open-width);\n}\n\n@media screen and (max-height: 450px) {\n .detail-column {\n padding-top: 15px;\n }\n}\n\n.detail_atom_view_heading {\n font-family: monospace, sans-serif;\n overflow: hidden;\n font-size: 11pt;\n text-align: left;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n\n\n.detail_atom_view_content {\n width: fit-content;\n padding: 5px;\n margin: 5px;\n border-radius: 0.7em;\n}\n\n.detail_atom_view_content_container {\n display: flex;\n flex-wrap: wrap;\n}\n\n.closeButton {\n font-size: 24pt;\n cursor: pointer;\n}\n","",{version:3,sources:["webpack://./src/lib/components/detail.css"],names:[],mappings:"AAAA;IACI,wBAAwB;AAC5B;;AAEA;IACI,YAAY;IACZ,aAAa;IACb,+CAA+C;IAC/C,sBAAsB;IACtB,sBAAsB;IACtB,QAAQ;IACR,eAAe;IACf,WAAW;IACX,MAAM;IACN,QAAQ;IACR,gBAAgB;AACpB;;AAEA;IACI,+BAA+B;AACnC;;AAEA;IACI;QACI,iBAAiB;IACrB;AACJ;;AAEA;IACI,kCAAkC;IAClC,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,SAAS;IACT,UAAU;IACV,eAAe;AACnB;;;AAGA;IACI,kBAAkB;IAClB,YAAY;IACZ,WAAW;IACX,oBAAoB;AACxB;;AAEA;IACI,aAAa;IACb,eAAe;AACnB;;AAEA;IACI,eAAe;IACf,eAAe;AACnB",sourcesContent:[":root {\n --detail-open-width: 20%;\n}\n\n.detail {\n float: right;\n height: 100vh;\n box-shadow: -1px -1px 2px 1px rgba(0, 0, 0, .2);\n font-family: monospace;\n transition: width 0.2s;\n width: 0;\n position: fixed;\n z-index: 20;\n top: 0;\n right: 0;\n overflow-y: auto;\n}\n\n.detail-open {\n width: var(--detail-open-width);\n}\n\n@media screen and (max-height: 450px) {\n .detail-column {\n padding-top: 15px;\n }\n}\n\n.detail_atom_view_heading {\n font-family: monospace, sans-serif;\n overflow: hidden;\n font-size: 11pt;\n text-align: left;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n\n\n.detail_atom_view_content {\n width: fit-content;\n padding: 5px;\n margin: 5px;\n border-radius: 0.7em;\n}\n\n.detail_atom_view_content_container {\n display: flex;\n flex-wrap: wrap;\n}\n\n.closeButton {\n font-size: 24pt;\n cursor: pointer;\n}\n"],sourceRoot:""}]);const u=a},9397:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".dragHandle {\n visibility: hidden;\n cursor: move;\n padding-left: 10px;\n width: 20px;\n height: 16px;\n position: absolute;\n z-index: 8;\n margin-top: -5px;\n}\n\n.row_container:hover .dragHandle {\n visibility: visible;\n}","",{version:3,sources:["webpack://./src/lib/components/draghandle.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,UAAU;IACV,gBAAgB;AACpB;;AAEA;IACI,mBAAmB;AACvB",sourcesContent:[".dragHandle {\n visibility: hidden;\n cursor: move;\n padding-left: 10px;\n width: 20px;\n height: 16px;\n position: absolute;\n z-index: 8;\n margin-top: -5px;\n}\n\n.row_container:hover .dragHandle {\n visibility: visible;\n}"],sourceRoot:""}]);const u=a},4057:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".facts_banner{\n padding-top: 0;\n}","",{version:3,sources:["webpack://./src/lib/components/facts.css"],names:[],mappings:"AAAA;IACI,cAAc;AAClB",sourcesContent:[".facts_banner{\n padding-top: 0;\n}"],sourceRoot:""}]);const u=a},5551:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,'body {\n margin: 0;\n flex-flow: column;\n overflow: hidden;\n}\n\n.content {\n height: 100vh;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.graph {\n height: 100vh;\n width: 100vw;\n overflow: auto;\n}\n\n.noselect {\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Old versions of Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n /* Non-prefixed version, currently\n supported by Chrome, Edge, Opera and Firefox */\n}\n\n.user_message {\n width: fit-content;\n width: -moz-fit-content;\n padding: 10px;\n margin: 10px;\n border-radius: 5px 5px 5px 5px;\n font-family: sans-serif;\n filter: drop-shadow(.1em .1em .14em #3333338c);\n}\n\n.user_message_list {\n position: fixed;\n left: 0;\n top: 0;\n z-index: 99;\n}\n\n.alert-shown {\n opacity: 1;\n transition: all 250ms linear;\n}\n\n.alert-hidden {\n opacity: 0;\n transition: all 250ms linear 2s;\n}\n\n.txt-elem {\n font-family: "Monaco", monospace;\n font-size: 12pt;\n}',"",{version:3,sources:["webpack://./src/lib/components/main.css"],names:[],mappings:"AAAA;IACI,SAAS;IACT,iBAAiB;IACjB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,YAAY;IACZ,cAAc;AAClB;;AAEA;IACI,2BAA2B,EAAE,eAAe;IAC5C,yBAAyB,EAAE,WAAW;IACtC,wBAAwB,EAAE,mBAAmB;IAC7C,sBAAsB,EAAE,4BAA4B;IACpD,qBAAqB,EAAE,2BAA2B;IAClD,iBAAiB;IACjB;mFAC+E;AACnF;;AAEA;IACI,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,YAAY;IACZ,8BAA8B;IAC9B,uBAAuB;IACvB,8CAA8C;AAClD;;AAEA;IACI,eAAe;IACf,OAAO;IACP,MAAM;IACN,WAAW;AACf;;AAEA;IACI,UAAU;IACV,4BAA4B;AAChC;;AAEA;IACI,UAAU;IACV,+BAA+B;AACnC;;AAEA;IACI,gCAAgC;IAChC,eAAe;AACnB",sourcesContent:['body {\n margin: 0;\n flex-flow: column;\n overflow: hidden;\n}\n\n.content {\n height: 100vh;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.graph {\n height: 100vh;\n width: 100vw;\n overflow: auto;\n}\n\n.noselect {\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Old versions of Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n /* Non-prefixed version, currently\n supported by Chrome, Edge, Opera and Firefox */\n}\n\n.user_message {\n width: fit-content;\n width: -moz-fit-content;\n padding: 10px;\n margin: 10px;\n border-radius: 5px 5px 5px 5px;\n font-family: sans-serif;\n filter: drop-shadow(.1em .1em .14em #3333338c);\n}\n\n.user_message_list {\n position: fixed;\n left: 0;\n top: 0;\n z-index: 99;\n}\n\n.alert-shown {\n opacity: 1;\n transition: all 250ms linear;\n}\n\n.alert-hidden {\n opacity: 0;\n transition: all 250ms linear 2s;\n}\n\n.txt-elem {\n font-family: "Monaco", monospace;\n font-size: 12pt;\n}'],sourceRoot:""}]);const u=a},2273:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".set_container {\n width: fit-content;\n position: relative;\n line-height: 18pt;\n min-height: 18pt;\n cursor: pointer;\n}\n\n.node_border {\n border-radius: 0.7em;\n border: 1pt solid;\n margin: 12pt 3% 12pt 3%;\n position: relative;\n height: max-content;\n overflow: hidden;\n}\n\n.mouse_over_shadow:hover {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.highlighted_node {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.bauchbinde {\n bottom: 0;\n left: 0;\n right: 0;\n /* padding-top: 1em; */\n /* margin-top: 1em; */\n background-color: transparent;\n /* cursor: pointer; */\n}\n\n.bauchbinde_text {\n position: relative;\n text-align: center;\n overflow: hidden;\n}\n\n.set_too_high {\n /* overflow-y: hidden; */\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 2.5em;\n min-height: 2.5em;\n}\n\n.set_value {\n width: fit-content;\n margin: .38em 1em .5em 1em;\n\n position: relative;\n flex: 0 0 auto;\n display: flex;\n flex-flow: row wrap;\n justify-content: center;\n align-items: center;\n}\n\n\n\n.mini {\n text-align: center;\n vertical-align: middle;\n width: fit-content;\n height: fit-content;\n /* font-size: 12pt; */\n min-width: .57em;\n cursor: pointer;\n min-height: .57em;\n}\n\n.recursion_button{\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.recursion_button:hover {\n box-shadow: 0 .28em .57em 0 rgba(0, 0, 0, 0.2), 0 .43em .71em 0 rgba(0, 0, 0, 0.2);\n transition: .3s ease-in-out;\n -moz-transition: .3s ease-in-out;\n -webkit-transition: .3s ease-in-out;\n}\n\n.recursion_button_text{\n cursor: pointer;\n font-size: 1pt;\n font-weight: bold;\n border-radius: 0em .57em 0em .28em;\n padding: 1px;\n vertical-align: middle;\n text-align: center;\n width: auto;\n}\n\n@keyframes loading {\n 0% {\n background-position: -200em 0;\n }\n\n 100% {\n background-position: calc(200em + 100%) 0;\n }\n}\n\n.loading {\n background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);\n background-size: 200em 100%;\n border-radius: 0.8em;\n animation: loading 1.5s infinite;\n}\n\n.hidden {\n visibility: hidden\n}\n\n.rotate_icon {\n transform: rotate(180deg);\n}","",{version:3,sources:["webpack://./src/lib/components/node.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,eAAe;AACnB;;AAEA;IACI,oBAAoB;IACpB,iBAAiB;IACjB,uBAAuB;IACvB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;AACpB;;AAEA;IACI,2BAA2B;IAC3B,mCAAmC;AACvC;;AAEA;IACI,2BAA2B;IAC3B,mCAAmC;AACvC;;AAEA;IACI,SAAS;IACT,OAAO;IACP,QAAQ;IACR,sBAAsB;IACtB,qBAAqB;IACrB,6BAA6B;IAC7B,qBAAqB;AACzB;;AAEA;IACI,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,wBAAwB;IACxB,aAAa;IACb,uBAAuB;IACvB,mBAAmB;IACnB,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,kBAAkB;IAClB,0BAA0B;;IAE1B,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,uBAAuB;IACvB,mBAAmB;AACvB;;;;AAIA;IACI,kBAAkB;IAClB,sBAAsB;IACtB,kBAAkB;IAClB,mBAAmB;IACnB,qBAAqB;IACrB,gBAAgB;IAChB,eAAe;IACf,iBAAiB;AACrB;;AAEA;IACI,kBAAkB;IAClB,QAAQ;IACR,MAAM;AACV;;AAEA;IACI,kFAAkF;IAClF,2BAA2B;IAC3B,gCAAgC;IAChC,mCAAmC;AACvC;;AAEA;IACI,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,kCAAkC;IAClC,YAAY;IACZ,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;AACf;;AAEA;IACI;QACI,6BAA6B;IACjC;;IAEA;QACI,yCAAyC;IAC7C;AACJ;;AAEA;IACI,yEAAyE;IACzE,2BAA2B;IAC3B,oBAAoB;IACpB,gCAAgC;AACpC;;AAEA;IACI;AACJ;;AAEA;IACI,yBAAyB;AAC7B",sourcesContent:[".set_container {\n width: fit-content;\n position: relative;\n line-height: 18pt;\n min-height: 18pt;\n cursor: pointer;\n}\n\n.node_border {\n border-radius: 0.7em;\n border: 1pt solid;\n margin: 12pt 3% 12pt 3%;\n position: relative;\n height: max-content;\n overflow: hidden;\n}\n\n.mouse_over_shadow:hover {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.highlighted_node {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.bauchbinde {\n bottom: 0;\n left: 0;\n right: 0;\n /* padding-top: 1em; */\n /* margin-top: 1em; */\n background-color: transparent;\n /* cursor: pointer; */\n}\n\n.bauchbinde_text {\n position: relative;\n text-align: center;\n overflow: hidden;\n}\n\n.set_too_high {\n /* overflow-y: hidden; */\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 2.5em;\n min-height: 2.5em;\n}\n\n.set_value {\n width: fit-content;\n margin: .38em 1em .5em 1em;\n\n position: relative;\n flex: 0 0 auto;\n display: flex;\n flex-flow: row wrap;\n justify-content: center;\n align-items: center;\n}\n\n\n\n.mini {\n text-align: center;\n vertical-align: middle;\n width: fit-content;\n height: fit-content;\n /* font-size: 12pt; */\n min-width: .57em;\n cursor: pointer;\n min-height: .57em;\n}\n\n.recursion_button{\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.recursion_button:hover {\n box-shadow: 0 .28em .57em 0 rgba(0, 0, 0, 0.2), 0 .43em .71em 0 rgba(0, 0, 0, 0.2);\n transition: .3s ease-in-out;\n -moz-transition: .3s ease-in-out;\n -webkit-transition: .3s ease-in-out;\n}\n\n.recursion_button_text{\n cursor: pointer;\n font-size: 1pt;\n font-weight: bold;\n border-radius: 0em .57em 0em .28em;\n padding: 1px;\n vertical-align: middle;\n text-align: center;\n width: auto;\n}\n\n@keyframes loading {\n 0% {\n background-position: -200em 0;\n }\n\n 100% {\n background-position: calc(200em + 100%) 0;\n }\n}\n\n.loading {\n background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);\n background-size: 200em 100%;\n border-radius: 0.8em;\n animation: loading 1.5s infinite;\n}\n\n.hidden {\n visibility: hidden\n}\n\n.rotate_icon {\n transform: rotate(180deg);\n}"],sourceRoot:""}]);const u=a},1052:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,"\n.row_header {\n border-radius: 0 8px 8px 0;\n width: fit-content;\n max-width: 95%;\n position: relative;\n padding: 8px 8px 8px 16px;\n z-index: 8;\n}\n\n.row_header_bar {\n border-bottom: solid 1px #333333;\n border-radius: 0 5px 0 0;\n background-color: whitesmoke;\n}\n\n.rule_highlight_dot {\n display: inline-block;\n width: 9px;\n height: 9px;\n border-radius: 50%;\n position: absolute;\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.rule_highlight_dot.fade-in {\n animation-name: animate-fade-in;\n}\n\n@keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.rule_highlight_dot.fade-out {\n animation-name: animate-fade-out;\n animation-fill-mode: forwards;\n}\n\n@keyframes animate-fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n visibility: hidden;\n display:none;\n }\n}\n\n.rule_text {\n white-space: pre-wrap;\n padding: 4px 0;\n position: relative;\n width: fit-content;\n border-radius: 7px;\n transition: background-color 1.0s ease;\n}\n\n.row_toggle {\n font-size: 10pt;\n cursor: pointer;\n padding-left: 10px;\n padding-right: 10px;\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_toggle:hover {\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}\n\n.branch_space {\n display: flex;\n justify-content: center;\n overflow: hidden;\n max-width: 75%;\n}\n\n.row_container {\n justify-content: space-around;\n background: transparent;\n padding-top: 1em;\n /* overflow-y: hidden; */\n}\n\n.faded {\n opacity: 0.6;\n filter: grayscale(100%);\n}\n\n","",{version:3,sources:["webpack://./src/lib/components/row.css"],names:[],mappings:";AACA;IACI,0BAA0B;IAC1B,kBAAkB;IAClB,cAAc;IACd,kBAAkB;IAClB,yBAAyB;IACzB,UAAU;AACd;;AAEA;IACI,gCAAgC;IAChC,wBAAwB;IACxB,4BAA4B;AAChC;;AAEA;IACI,qBAAqB;IACrB,UAAU;IACV,WAAW;IACX,kBAAkB;IAClB,kBAAkB;IAClB,UAAU;IACV,QAAQ;IACR,2BAA2B;AAC/B;;AAEA;IACI,+BAA+B;AACnC;;AAEA;IACI;QACI,UAAU;IACd;;IAEA;QACI,UAAU;IACd;AACJ;;AAEA;IACI,gCAAgC;IAChC,6BAA6B;AACjC;;AAEA;IACI;QACI,UAAU;IACd;;IAEA;QACI,UAAU;QACV,kBAAkB;QAClB,YAAY;IAChB;AACJ;;AAEA;IACI,qBAAqB;IACrB,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,sCAAsC;AAC1C;;AAEA;IACI,eAAe;IACf,eAAe;IACf,kBAAkB;IAClB,mBAAmB;IACnB,mCAAmC;IACnC,wCAAwC;IACxC,2CAA2C;AAC/C;;AAEA;IACI,mCAAmC;IACnC,wCAAwC;IACxC,2CAA2C;AAC/C;;AAEA;IACI,aAAa;IACb,6BAA6B;IAC7B,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,uBAAuB;IACvB,gBAAgB;IAChB,cAAc;AAClB;;AAEA;IACI,6BAA6B;IAC7B,uBAAuB;IACvB,gBAAgB;IAChB,wBAAwB;AAC5B;;AAEA;IACI,YAAY;IACZ,uBAAuB;AAC3B",sourcesContent:["\n.row_header {\n border-radius: 0 8px 8px 0;\n width: fit-content;\n max-width: 95%;\n position: relative;\n padding: 8px 8px 8px 16px;\n z-index: 8;\n}\n\n.row_header_bar {\n border-bottom: solid 1px #333333;\n border-radius: 0 5px 0 0;\n background-color: whitesmoke;\n}\n\n.rule_highlight_dot {\n display: inline-block;\n width: 9px;\n height: 9px;\n border-radius: 50%;\n position: absolute;\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.rule_highlight_dot.fade-in {\n animation-name: animate-fade-in;\n}\n\n@keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.rule_highlight_dot.fade-out {\n animation-name: animate-fade-out;\n animation-fill-mode: forwards;\n}\n\n@keyframes animate-fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n visibility: hidden;\n display:none;\n }\n}\n\n.rule_text {\n white-space: pre-wrap;\n padding: 4px 0;\n position: relative;\n width: fit-content;\n border-radius: 7px;\n transition: background-color 1.0s ease;\n}\n\n.row_toggle {\n font-size: 10pt;\n cursor: pointer;\n padding-left: 10px;\n padding-right: 10px;\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_toggle:hover {\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}\n\n.branch_space {\n display: flex;\n justify-content: center;\n overflow: hidden;\n max-width: 75%;\n}\n\n.row_container {\n justify-content: space-around;\n background: transparent;\n padding-top: 1em;\n /* overflow-y: hidden; */\n}\n\n.faded {\n opacity: 0.6;\n filter: grayscale(100%);\n}\n\n"],sourceRoot:""}]);const u=a},9935:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,"/* ===== SEARCH BOX ===== */\n.search {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 18;\n min-width: 200px;\n}\n\n.search_row {\n list-style-type: none;\n font-family: monospace;\n cursor: pointer;\n width: 200px;\n}\n\n.search_row.active {\n background-color: #6554C0;\n}\n\n.search_result_list {\n position: static;\n list-style: none;\n margin-left: 0;\n padding-left: 1.2em;\n margin-bottom: 1px;\n border-radius: 0 5px 0 5px;\n filter: drop-shadow(0 0 1px #333);\n max-width: 500px;\n overflow: hidden;\n min-width: 200px;\n width: fit-content;\n width: -moz-fit-content;\n\n}\n\n.filter {\n cursor: pointer;\n font-family: monospace;\n border-radius: 500px;\n left: 0;\n padding-left: 20px;\n opacity: 0.8;\n width: 200px;\n}\n\n.active_filters_list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.close {\n color: black;\n float: right;\n padding-right: 5px;\n}\n\n.close:hover {\n opacity: 1;\n}\n\nform {\n padding-top: 0;\n}\n","",{version:3,sources:["webpack://./src/lib/components/search.css"],names:[],mappings:"AAAA,2BAA2B;AAC3B;IACI,eAAe;IACf,SAAS;IACT,OAAO;IACP,WAAW;IACX,gBAAgB;AACpB;;AAEA;IACI,qBAAqB;IACrB,sBAAsB;IACtB,eAAe;IACf,YAAY;AAChB;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,kBAAkB;IAClB,0BAA0B;IAC1B,iCAAiC;IACjC,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;;AAE3B;;AAEA;IACI,eAAe;IACf,sBAAsB;IACtB,oBAAoB;IACpB,OAAO;IACP,kBAAkB;IAClB,YAAY;IACZ,YAAY;AAChB;;AAEA;IACI,gBAAgB;IAChB,SAAS;IACT,UAAU;AACd;;AAEA;IACI,YAAY;IACZ,YAAY;IACZ,kBAAkB;AACtB;;AAEA;IACI,UAAU;AACd;;AAEA;IACI,cAAc;AAClB",sourcesContent:["/* ===== SEARCH BOX ===== */\n.search {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 18;\n min-width: 200px;\n}\n\n.search_row {\n list-style-type: none;\n font-family: monospace;\n cursor: pointer;\n width: 200px;\n}\n\n.search_row.active {\n background-color: #6554C0;\n}\n\n.search_result_list {\n position: static;\n list-style: none;\n margin-left: 0;\n padding-left: 1.2em;\n margin-bottom: 1px;\n border-radius: 0 5px 0 5px;\n filter: drop-shadow(0 0 1px #333);\n max-width: 500px;\n overflow: hidden;\n min-width: 200px;\n width: fit-content;\n width: -moz-fit-content;\n\n}\n\n.filter {\n cursor: pointer;\n font-family: monospace;\n border-radius: 500px;\n left: 0;\n padding-left: 20px;\n opacity: 0.8;\n width: 200px;\n}\n\n.active_filters_list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.close {\n color: black;\n float: right;\n padding-right: 5px;\n}\n\n.close:hover {\n opacity: 1;\n}\n\nform {\n padding-top: 0;\n}\n"],sourceRoot:""}]);const u=a},1098:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".symbol {\n margin: 1px 1px;\n display: flex;\n border-radius: 7px;\n /* translate: 1px -3px; */\n}\n\n.mark_symbol {\n min-width: 0;\n min-height: 0;\n width: fit-content;\n ;\n width: -moz-fit-content;\n display: flex;\n border-radius: 7px;\n font-style: bold, italic;\n}","",{version:3,sources:["webpack://./src/lib/components/symbol.css"],names:[],mappings:"AAAA;IACI,eAAe;IACf,aAAa;IACb,kBAAkB;IAClB,yBAAyB;AAC7B;;AAEA;IACI,YAAY;IACZ,aAAa;IACb,kBAAkB;;IAElB,uBAAuB;IACvB,aAAa;IACb,kBAAkB;IAClB,wBAAwB;AAC5B",sourcesContent:[".symbol {\n margin: 1px 1px;\n display: flex;\n border-radius: 7px;\n /* translate: 1px -3px; */\n}\n\n.mark_symbol {\n min-width: 0;\n min-height: 0;\n width: fit-content;\n ;\n width: -moz-fit-content;\n display: flex;\n border-radius: 7px;\n font-style: bold, italic;\n}"],sourceRoot:""}]);const u=a},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var u=0;u0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},7537:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[e].concat([i]).join("\n")}return[e].join("\n")}},7145:(t,e)=>{"use strict";function n(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var r="object"==typeof process&&!0;function o(t,e){if(!t){if(r)throw new Error("Invariant failed");throw new Error(e())}}e.invariant=o;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,u=Object.prototype.toString;function s(t){return u.call(t).slice(8,-1)}var c=Object.assign||function(t,e){return l(e).forEach((function(n){i.call(e,n)&&(t[n]=e[n])})),t},l="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function f(t){return Array.isArray(t)?c(t.constructor(t.length),t):"Map"===s(t)?new Map(t):"Set"===s(t)?new Set(t):t&&"object"==typeof t?c(Object.create(Object.getPrototypeOf(t)),t):t}var p=function(){function t(){this.commands=c({},d),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,e){return t===e},this.update.newContext=function(){return(new t).update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,e){this.commands[t]=e},t.prototype.update=function(t,e){var n=this,r="function"==typeof e?{$apply:e}:e;Array.isArray(t)&&Array.isArray(r)||o(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var a=t;return l(r).forEach((function(e){if(i.call(n.commands,e)){var o=t===a;a=n.commands[e](r[e],a,r,t),o&&n.isEquals(a,t)&&(a=t)}else{var u="Map"===s(t)?n.update(t.get(e),r[e]):n.update(t[e],r[e]),c="Map"===s(a)?a.get(e):a[e];n.isEquals(u,c)&&(void 0!==u||i.call(t,e))||(a===t&&(a=f(t)),"Map"===s(a)?a.set(e,u):a[e]=u)}})),a},t}();e.Context=p;var d={$push:function(t,e,n){return y(e,n,"$push"),t.length?e.concat(t):e},$unshift:function(t,e,n){return y(e,n,"$unshift"),t.length?t.concat(e):e},$splice:function(t,e,r,i){return function(t,e){o(Array.isArray(t),(function(){return"Expected $splice target to be an array; got "+n(t)})),v(e.$splice)}(e,r),t.forEach((function(t){v(t),e===i&&t.length&&(e=f(i)),a.apply(e,t)})),e},$set:function(t,e,n){return function(t){o(1===Object.keys(t).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),t},$toggle:function(t,e){m(t,"$toggle");var n=t.length?f(e):e;return t.forEach((function(t){n[t]=!e[t]})),n},$unset:function(t,e,n,r){return m(t,"$unset"),t.forEach((function(t){Object.hasOwnProperty.call(e,t)&&(e===r&&(e=f(r)),delete e[t])})),e},$add:function(t,e,n,r){return g(e,"$add"),m(t,"$add"),"Map"===s(e)?t.forEach((function(t){var n=t[0],o=t[1];e===r&&e.get(n)!==o&&(e=f(r)),e.set(n,o)})):t.forEach((function(t){e!==r||e.has(t)||(e=f(r)),e.add(t)})),e},$remove:function(t,e,n,r){return g(e,"$remove"),m(t,"$remove"),t.forEach((function(t){e===r&&e.has(t)&&(e=f(r)),e.delete(t)})),e},$merge:function(t,e,r,i){var a,u;return a=e,o((u=t)&&"object"==typeof u,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(u)})),o(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+n(a)})),l(t).forEach((function(n){t[n]!==e[n]&&(e===i&&(e=f(i)),e[n]=t[n])})),e},$apply:function(t,e){var r;return o("function"==typeof(r=t),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),t(e)}},h=new p;function y(t,e,r){o(Array.isArray(t),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(t)+"."})),m(e[r],r)}function m(t,e){o(Array.isArray(t),(function(){return"update(): expected spec of "+n(e)+" to be an array; got "+n(t)+". Did you forget to wrap your parameter in an array?"}))}function v(t){o(Array.isArray(t),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(t)+". Did you forget to wrap your parameters in an array?"}))}function g(t,e){var r=s(t);o("Map"===r||"Set"===r,(function(){return"update(): "+n(e)+" expects a target of type Set or Map; got "+n(r)}))}e.isEquals=h.update.isEquals,e.extend=h.extend,e.default=h.update,e.default.default=t.exports=c(e.default,e)},1296:(t,e,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),f=Object.prototype.toString,p=Math.max,d=Math.min,h=function(){return l.Date.now()};function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=i.test(t);return n||a.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=r,i=o;return r=o=void 0,c=e,a=t.apply(i,n)}function b(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-c>=i}function A(){var t=h();if(b(t))return w(t);u=setTimeout(A,function(t){var n=e-(t-s);return f?d(n,i-(t-c)):n}(t))}function w(t){return u=void 0,v&&r?g(t):(r=o=void 0,a)}function _(){var t=h(),n=b(t);if(r=arguments,o=this,s=t,n){if(void 0===u)return function(t){return c=t,u=setTimeout(A,e),l?g(t):a}(s);if(f)return u=setTimeout(A,e),g(s)}return void 0===u&&(u=setTimeout(A,e)),a}return e=m(e)||0,y(n)&&(l=!!n.leading,i=(f="maxWait"in n)?p(m(n.maxWait)||0,e):i,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},_.flush=function(){return void 0===u?a:w(h())},_}},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},4239:(t,e,n)=>{var r=n(2705),o=n(9607),i=n(2333),a=r?r.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)}},7561:(t,e,n)=>{var r=n(7990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},9607:(t,e,n)=>{var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:(t,e,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3279:(t,e,n)=>{var r=n(3218),o=n(7771),i=n(4841),a=Math.max,u=Math.min;t.exports=function(t,e,n){var s,c,l,f,p,d,h=0,y=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=s,r=c;return s=c=void 0,h=e,f=t.apply(r,n)}function b(t){var n=t-d;return void 0===d||n>=e||n<0||m&&t-h>=l}function A(){var t=o();if(b(t))return w(t);p=setTimeout(A,function(t){var n=e-(t-d);return m?u(n,l-(t-h)):n}(t))}function w(t){return p=void 0,v&&s?g(t):(s=c=void 0,f)}function _(){var t=o(),n=b(t);if(s=arguments,c=this,d=t,n){if(void 0===p)return function(t){return h=t,p=setTimeout(A,e),y?g(t):f}(d);if(m)return clearTimeout(p),p=setTimeout(A,e),g(d)}return void 0===p&&(p=setTimeout(A,e)),f}return e=i(e)||0,r(n)&&(y=!!n.leading,l=(m="maxWait"in n)?a(i(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=d=c=p=void 0},_.flush=function(){return void 0===p?f:w(o())},_}},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}},3448:(t,e,n)=>{var r=n(4239),o=n(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},6486:function(t,e,n){var r;t=n.nmd(t),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",s=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],y="[object Arguments]",m="[object Array]",v="[object Boolean]",g="[object Date]",b="[object Error]",A="[object Function]",w="[object GeneratorFunction]",_="[object Map]",x="[object Number]",S="[object Object]",O="[object Promise]",C="[object RegExp]",E="[object Set]",I="[object String]",j="[object Symbol]",P="[object WeakMap]",k="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",M="[object Float64Array]",R="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",z="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",W="[object Uint32Array]",U=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Z=RegExp(H.source),G=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,At=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",Ot="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",Et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",It="["+wt+"]",jt="["+Et+"]",Pt="["+_t+"]",kt="\\d+",Bt="["+xt+"]",Tt="["+St+"]",Mt="[^"+wt+Et+kt+xt+St+Ot+"]",Rt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+wt+"]",Nt="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+Ot+"]",Ft="\\u200d",Wt="(?:"+Tt+"|"+Mt+")",Ut="(?:"+Lt+"|"+Mt+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+Pt+"|"+Rt+")?",qt="["+Ct+"]?",Zt=qt+Ht+"(?:"+Ft+"(?:"+[Dt,Nt,zt].join("|")+")"+qt+Ht+")*",Gt="(?:"+[Bt,Nt,zt].join("|")+")"+Zt,Yt="(?:"+[Dt+Pt+"?",Pt,Nt,zt,It].join("|")+")",Xt=RegExp("['’]","g"),Kt=RegExp(Pt,"g"),Qt=RegExp(Rt+"(?="+Rt+")|"+Yt+Zt,"g"),Jt=RegExp([Lt+"?"+Tt+"+"+$t+"(?="+[jt,Lt,"$"].join("|")+")",Ut+"+"+Vt+"(?="+[jt,Lt+Wt,"$"].join("|")+")",Lt+"?"+Wt+"+"+$t,Lt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kt,Gt].join("|"),"g"),te=RegExp("["+Ft+wt+_t+Ct+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,oe={};oe[T]=oe[M]=oe[R]=oe[D]=oe[N]=oe[z]=oe[L]=oe[F]=oe[W]=!0,oe[y]=oe[m]=oe[k]=oe[v]=oe[B]=oe[g]=oe[b]=oe[A]=oe[_]=oe[x]=oe[S]=oe[C]=oe[E]=oe[I]=oe[P]=!1;var ie={};ie[y]=ie[m]=ie[k]=ie[B]=ie[v]=ie[g]=ie[T]=ie[M]=ie[R]=ie[D]=ie[N]=ie[_]=ie[x]=ie[S]=ie[C]=ie[E]=ie[I]=ie[j]=ie[z]=ie[L]=ie[F]=ie[W]=!0,ie[b]=ie[A]=ie[P]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,se=parseInt,ce="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,fe=ce||le||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,he=de&&de.exports===pe,ye=he&&ce.process,me=function(){try{return de&&de.require&&de.require("util").types||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),ve=me&&me.isArrayBuffer,ge=me&&me.isDate,be=me&&me.isMap,Ae=me&&me.isRegExp,we=me&&me.isSet,_e=me&&me.isTypedArray;function xe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Se(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function Pe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function Je(t,e){for(var n=t.length;n--&&Le(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+ae[t]}function rn(t){return te.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function an(t,e){return function(n){return t(e(n))}}function un(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),hn=function t(e){var n,r=(e=null==e?fe:hn.defaults(fe.Object(),e,hn.pick(fe,ne))).Array,ot=e.Date,wt=e.Error,_t=e.Function,xt=e.Math,St=e.Object,Ot=e.RegExp,Ct=e.String,Et=e.TypeError,It=r.prototype,jt=_t.prototype,Pt=St.prototype,kt=e["__core-js_shared__"],Bt=jt.toString,Tt=Pt.hasOwnProperty,Mt=0,Rt=(n=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Pt.toString,Nt=Bt.call(St),zt=fe._,Lt=Ot("^"+Bt.call(Tt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=he?e.Buffer:o,Wt=e.Symbol,Ut=e.Uint8Array,$t=Ft?Ft.allocUnsafe:o,Vt=an(St.getPrototypeOf,St),Ht=St.create,qt=Pt.propertyIsEnumerable,Zt=It.splice,Gt=Wt?Wt.isConcatSpreadable:o,Yt=Wt?Wt.iterator:o,Qt=Wt?Wt.toStringTag:o,te=function(){try{var t=ci(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,ce=ot&&ot.now!==fe.Date.now&&ot.now,le=e.setTimeout!==fe.setTimeout&&e.setTimeout,pe=xt.ceil,de=xt.floor,ye=St.getOwnPropertySymbols,me=Ft?Ft.isBuffer:o,De=e.isFinite,Ve=It.join,yn=an(St.keys,St),mn=xt.max,vn=xt.min,gn=ot.now,bn=e.parseInt,An=xt.random,wn=It.reverse,_n=ci(e,"DataView"),xn=ci(e,"Map"),Sn=ci(e,"Promise"),On=ci(e,"Set"),Cn=ci(e,"WeakMap"),En=ci(St,"create"),In=Cn&&new Cn,jn={},Pn=Ni(_n),kn=Ni(xn),Bn=Ni(Sn),Tn=Ni(On),Mn=Ni(Cn),Rn=Wt?Wt.prototype:o,Dn=Rn?Rn.valueOf:o,Nn=Rn?Rn.toString:o;function zn(t){if(tu(t)&&!$a(t)&&!(t instanceof Un)){if(t instanceof Wn)return t;if(Tt.call(t,"__wrapped__"))return zi(t)}return new Wn(t)}var Ln=function(){function t(){}return function(e){if(!Ja(e))return{};if(Ht)return Ht(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function Fn(){}function Wn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function $n(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ar(t,e,n,r,i,a){var u,s=1&e,c=2&e,l=4&e;if(n&&(u=i?n(t,r,i,a):n(t)),u!==o)return u;if(!Ja(t))return t;var f=$a(t);if(f){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Tt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return Eo(t,u)}else{var p=pi(t),d=p==A||p==w;if(Za(t))return wo(t,s);if(p==S||p==y||d&&!i){if(u=c||d?{}:hi(t),!s)return c?function(t,e){return Io(t,fi(t),e)}(t,function(t,e){return t&&Io(e,ku(e),t)}(u,t)):function(t,e){return Io(t,li(t),e)}(t,nr(u,t))}else{if(!ie[p])return i?t:{};u=function(t,e,n){var r,o=t.constructor;switch(e){case k:return _o(t);case v:case g:return new o(+t);case B:return function(t,e){var n=e?_o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case T:case M:case R:case D:case N:case z:case L:case F:case W:return xo(t,n);case _:return new o;case x:case I:return new o(t);case C:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case E:return new o;case j:return r=t,Dn?St(Dn.call(r)):{}}}(t,p,s)}}a||(a=new Zn);var h=a.get(t);if(h)return h;a.set(t,u),iu(t)?t.forEach((function(r){u.add(ar(r,e,n,r,t,a))})):eu(t)&&t.forEach((function(r,o){u.set(o,ar(r,e,n,o,t,a))}));var m=f?o:(l?c?ni:ei:c?ku:Pu)(t);return Oe(m||t,(function(r,o){m&&(r=t[o=r]),Jn(u,o,ar(r,e,n,o,t,a))})),u}function ur(t,e,n){var r=n.length;if(null==t)return!r;for(t=St(t);r--;){var i=n[r],a=e[i],u=t[i];if(u===o&&!(i in t)||!a(u))return!1}return!0}function sr(t,e,n){if("function"!=typeof t)throw new Et(i);return Ii((function(){t.apply(o,n)}),e)}function cr(t,e,n,r){var o=-1,i=je,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;n&&(e=ke(e,Ye(n))),r?(i=Pe,a=!1):e.length>=200&&(i=Ke,a=!1,e=new qn(e));t:for(;++o-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(xn||Vn),string:new $n}},Hn.prototype.delete=function(t){var e=ui(this,t).delete(t);return this.size-=e?1:0,e},Hn.prototype.get=function(t){return ui(this,t).get(t)},Hn.prototype.has=function(t){return ui(this,t).has(t)},Hn.prototype.set=function(t,e){var n=ui(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(t){return this.__data__.set(t,a),this},qn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Zn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Zn.prototype.get=function(t){return this.__data__.get(t)},Zn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!xn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(t,e),this.size=n.size,this};var lr=ko(gr),fr=ko(br,!0);function pr(t,e){var n=!0;return lr(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function dr(t,e,n){for(var r=-1,i=t.length;++r0&&n(u)?e>1?yr(u,e-1,n,r,o):Be(o,u):r||(o[o.length]=u)}return o}var mr=Bo(),vr=Bo(!0);function gr(t,e){return t&&mr(t,e,Pu)}function br(t,e){return t&&vr(t,e,Pu)}function Ar(t,e){return Ie(e,(function(e){return Xa(t[e])}))}function wr(t,e){for(var n=0,r=(e=vo(e,t)).length;null!=t&&ne}function Or(t,e){return null!=t&&Tt.call(t,e)}function Cr(t,e){return null!=t&&e in St(t)}function Er(t,e,n){for(var i=n?Pe:je,a=t[0].length,u=t.length,s=u,c=r(u),l=1/0,f=[];s--;){var p=t[s];s&&e&&(p=ke(p,Ye(e))),l=vn(p.length,l),c[s]=!n&&(e||a>=120&&p.length>=120)?new qn(s&&p):o}p=t[0];var d=-1,h=c[0];t:for(;++d=u?s:s*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(o)}function Ur(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)u!==t&&Zt.call(u,s,1),Zt.call(t,s,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;mi(o)?Zt.call(t,o,1):so(t,o)}}return t}function Hr(t,e){return t+de(An()*(e-t+1))}function qr(t,e){var n="";if(!t||e<1||e>f)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return ji(Si(t,e,ns),t+"")}function Gr(t){return Yn(Lu(t))}function Yr(t,e){var n=Lu(t);return Bi(n,ir(e,0,n.length))}function Xr(t,e,n,r){if(!Ja(t))return t;for(var i=-1,a=(e=vo(e,t)).length,u=a-1,s=t;null!=s&&++ii?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=r(i);++o>>1,a=t[i];null!==a&&!uu(a)&&(n?a<=e:a=200){var c=e?null:Zo(t);if(c)return sn(c);a=!1,o=Ke,s=new qn}else s=e?[]:u;t:for(;++r=r?t:to(t,e,n)}var Ao=ae||function(t){return fe.clearTimeout(t)};function wo(t,e){if(e)return t.slice();var n=t.length,r=$t?$t(n):new t.constructor(n);return t.copy(r),r}function _o(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(t)),e}function xo(t,e){var n=e?_o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function So(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,a=uu(t),u=e!==o,s=null===e,c=e==e,l=uu(e);if(!s&&!l&&!a&&t>e||a&&u&&c&&!s&&!l||r&&u&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&t1?n[i-1]:o,u=i>2?n[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,u&&vi(n[0],n[1],u)&&(a=i<3?o:a,i=1),e=St(e);++r-1?i[a?e[u]:u]:o}}function No(t){return ti((function(e){var n=e.length,r=n,a=Wn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Et(i);if(a&&!s&&"wrapper"==oi(u))var s=new Wn([],!0)}for(r=s?r:n;++r1&&A.reverse(),d&&fs))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var p=-1,d=!0,h=2&n?new qn:o;for(a.set(t,e),a.set(e,t);++p-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Oe(h,(function(n){var r="_."+n[0];e&n[1]&&!je(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ut):[]}(r),n)))}function ki(t){var e=0,n=0;return function(){var r=gn(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function Bi(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,oa(t,n)}));function fa(t){var e=zn(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var da=ti((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return or(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Un&&mi(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)})),ha=jo((function(t,e,n){Tt.call(t,n)?++t[n]:rr(t,n,1)})),ya=Do(Ui),ma=Do($i);function va(t,e){return($a(t)?Oe:lr)(t,ai(e,3))}function ga(t,e){return($a(t)?Ce:fr)(t,ai(e,3))}var ba=jo((function(t,e,n){Tt.call(t,n)?t[n].push(e):rr(t,n,[e])})),Aa=Zr((function(t,e,n){var o=-1,i="function"==typeof e,a=Ha(t)?r(t.length):[];return lr(t,(function(t){a[++o]=i?xe(e,t,n):Ir(t,e,n)})),a})),wa=jo((function(t,e,n){rr(t,n,e)}));function _a(t,e){return($a(t)?ke:Dr)(t,ai(e,3))}var xa=jo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Sa=Zr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vi(t,e[0],e[1])?e=[]:n>2&&vi(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,yr(e,1),[])})),Oa=ce||function(){return fe.Date.now()};function Ca(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,Yo(t,c,o,o,o,o,e)}function Ea(t,e){var n;if("function"!=typeof e)throw new Et(i);return t=du(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Ia=Zr((function(t,e,n){var r=1;if(n.length){var o=un(n,ii(Ia));r|=s}return Yo(t,r,e,n,o)})),ja=Zr((function(t,e,n){var r=3;if(n.length){var o=un(n,ii(ja));r|=s}return Yo(e,r,t,n,o)}));function Pa(t,e,n){var r,a,u,s,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new Et(i);function y(e){var n=r,i=a;return r=a=o,f=e,s=t.apply(i,n)}function m(t){var n=t-l;return l===o||n>=e||n<0||d&&t-f>=u}function v(){var t=Oa();if(m(t))return g(t);c=Ii(v,function(t){var n=e-(t-l);return d?vn(n,u-(t-f)):n}(t))}function g(t){return c=o,h&&r?y(t):(r=a=o,s)}function b(){var t=Oa(),n=m(t);if(r=arguments,a=this,l=t,n){if(c===o)return function(t){return f=t,c=Ii(v,e),p?y(t):s}(l);if(d)return Ao(c),c=Ii(v,e),y(l)}return c===o&&(c=Ii(v,e)),s}return e=yu(e)||0,Ja(n)&&(p=!!n.leading,u=(d="maxWait"in n)?mn(yu(n.maxWait)||0,e):u,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&Ao(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?s:g(Oa())},b}var ka=Zr((function(t,e){return sr(t,1,e)})),Ba=Zr((function(t,e,n){return sr(t,yu(e)||0,n)}));function Ta(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Et(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ta.Cache||Hn),n}function Ma(t){if("function"!=typeof t)throw new Et(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ta.Cache=Hn;var Ra=go((function(t,e){var n=(e=1==e.length&&$a(e[0])?ke(e[0],Ye(ai())):ke(yr(e,1),Ye(ai()))).length;return Zr((function(r){for(var o=-1,i=vn(r.length,n);++o=e})),Ua=jr(function(){return arguments}())?jr:function(t){return tu(t)&&Tt.call(t,"callee")&&!qt.call(t,"callee")},$a=r.isArray,Va=ve?Ye(ve):function(t){return tu(t)&&xr(t)==k};function Ha(t){return null!=t&&Qa(t.length)&&!Xa(t)}function qa(t){return tu(t)&&Ha(t)}var Za=me||ys,Ga=ge?Ye(ge):function(t){return tu(t)&&xr(t)==g};function Ya(t){if(!tu(t))return!1;var e=xr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ru(t)}function Xa(t){if(!Ja(t))return!1;var e=xr(t);return e==A||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ka(t){return"number"==typeof t&&t==du(t)}function Qa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function Ja(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tu(t){return null!=t&&"object"==typeof t}var eu=be?Ye(be):function(t){return tu(t)&&pi(t)==_};function nu(t){return"number"==typeof t||tu(t)&&xr(t)==x}function ru(t){if(!tu(t)||xr(t)!=S)return!1;var e=Vt(t);if(null===e)return!0;var n=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Bt.call(n)==Nt}var ou=Ae?Ye(Ae):function(t){return tu(t)&&xr(t)==C},iu=we?Ye(we):function(t){return tu(t)&&pi(t)==E};function au(t){return"string"==typeof t||!$a(t)&&tu(t)&&xr(t)==I}function uu(t){return"symbol"==typeof t||tu(t)&&xr(t)==j}var su=_e?Ye(_e):function(t){return tu(t)&&Qa(t.length)&&!!oe[xr(t)]},cu=Vo(Rr),lu=Vo((function(t,e){return t<=e}));function fu(t){if(!t)return[];if(Ha(t))return au(t)?fn(t):Eo(t);if(Yt&&t[Yt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Yt]());var e=pi(t);return(e==_?on:e==E?sn:Lu)(t)}function pu(t){return t?(t=yu(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function du(t){var e=pu(t),n=e%1;return e==e?n?e-n:e:0}function hu(t){return t?ir(du(t),0,d):0}function yu(t){if("number"==typeof t)return t;if(uu(t))return p;if(Ja(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ja(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var n=ht.test(t);return n||mt.test(t)?se(t.slice(2),n?2:8):dt.test(t)?p:+t}function mu(t){return Io(t,ku(t))}function vu(t){return null==t?"":ao(t)}var gu=Po((function(t,e){if(wi(e)||Ha(e))Io(e,Pu(e),t);else for(var n in e)Tt.call(e,n)&&Jn(t,n,e[n])})),bu=Po((function(t,e){Io(e,ku(e),t)})),Au=Po((function(t,e,n,r){Io(e,ku(e),t,r)})),wu=Po((function(t,e,n,r){Io(e,Pu(e),t,r)})),_u=ti(or),xu=Zr((function(t,e){t=St(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&vi(e[0],e[1],i)&&(r=1);++n1),e})),Io(t,ni(t),n),r&&(n=ar(n,7,Qo));for(var o=e.length;o--;)so(n,e[o]);return n})),Ru=ti((function(t,e){return null==t?{}:function(t,e){return Ur(t,e,(function(e,n){return Cu(t,n)}))}(t,e)}));function Du(t,e){if(null==t)return{};var n=ke(ni(t),(function(t){return[t]}));return e=ai(e),Ur(t,n,(function(t,n){return e(t,n[0])}))}var Nu=Go(Pu),zu=Go(ku);function Lu(t){return null==t?[]:Xe(t,Pu(t))}var Fu=Mo((function(t,e,n){return e=e.toLowerCase(),t+(n?Wu(e):e)}));function Wu(t){return Yu(vu(t).toLowerCase())}function Uu(t){return(t=vu(t))&&t.replace(gt,tn).replace(Kt,"")}var $u=Mo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Vu=Mo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Hu=To("toLowerCase"),qu=Mo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Zu=Mo((function(t,e,n){return t+(n?" ":"")+Yu(e)})),Gu=Mo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Yu=To("toUpperCase");function Xu(t,e,n){return t=vu(t),(e=n?o:e)===o?function(t){return ee.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(st)||[]}(t):t.match(e)||[]}var Ku=Zr((function(t,e){try{return xe(t,o,e)}catch(t){return Ya(t)?t:new wt(t)}})),Qu=ti((function(t,e){return Oe(e,(function(e){e=Di(e),rr(t,e,Ia(t[e],t))})),t}));function Ju(t){return function(){return t}}var ts=No(),es=No(!0);function ns(t){return t}function rs(t){return Tr("function"==typeof t?t:ar(t,1))}var os=Zr((function(t,e){return function(n){return Ir(n,t,e)}})),is=Zr((function(t,e){return function(n){return Ir(t,n,e)}}));function as(t,e,n){var r=Pu(e),o=Ar(e,r);null!=n||Ja(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Ar(e,Pu(e)));var i=!(Ja(n)&&"chain"in n&&!n.chain),a=Xa(t);return Oe(o,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=Eo(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Be([this.value()],arguments))})})),t}function us(){}var ss=Wo(ke),cs=Wo(Ee),ls=Wo(Re);function fs(t){return gi(t)?$e(Di(t)):function(t){return function(e){return wr(e,t)}}(t)}var ps=$o(),ds=$o(!0);function hs(){return[]}function ys(){return!1}var ms,vs=Fo((function(t,e){return t+e}),0),gs=qo("ceil"),bs=Fo((function(t,e){return t/e}),1),As=qo("floor"),ws=Fo((function(t,e){return t*e}),1),_s=qo("round"),xs=Fo((function(t,e){return t-e}),0);return zn.after=function(t,e){if("function"!=typeof e)throw new Et(i);return t=du(t),function(){if(--t<1)return e.apply(this,arguments)}},zn.ary=Ca,zn.assign=gu,zn.assignIn=bu,zn.assignInWith=Au,zn.assignWith=wu,zn.at=_u,zn.before=Ea,zn.bind=Ia,zn.bindAll=Qu,zn.bindKey=ja,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return $a(t)?t:[t]},zn.chain=fa,zn.chunk=function(t,e,n){e=(n?vi(t,e,n):e===o)?1:mn(du(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,u=0,s=r(pe(i/e));ai?0:i+n),(r=r===o||r>i?i:du(r))<0&&(r+=i),r=n>r?0:hu(r);n>>0)?(t=vu(t))&&("string"==typeof e||null!=e&&!ou(e))&&!(e=ao(e))&&rn(t)?bo(fn(t),0,n):t.split(e,n):[]},zn.spread=function(t,e){if("function"!=typeof t)throw new Et(i);return e=null==e?0:mn(du(e),0),Zr((function(n){var r=n[e],o=bo(n,0,e);return r&&Be(o,r),xe(t,this,o)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?to(t,1,e):[]},zn.take=function(t,e,n){return t&&t.length?to(t,0,(e=n||e===o?1:du(e))<0?0:e):[]},zn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?to(t,(e=r-(e=n||e===o?1:du(e)))<0?0:e,r):[]},zn.takeRightWhile=function(t,e){return t&&t.length?lo(t,ai(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?lo(t,ai(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Et(i);return Ja(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pa(t,e,{leading:r,maxWait:e,trailing:o})},zn.thru=pa,zn.toArray=fu,zn.toPairs=Nu,zn.toPairsIn=zu,zn.toPath=function(t){return $a(t)?ke(t,Di):uu(t)?[t]:Eo(Ri(vu(t)))},zn.toPlainObject=mu,zn.transform=function(t,e,n){var r=$a(t),o=r||Za(t)||su(t);if(e=ai(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Ja(t)&&Xa(i)?Ln(Vt(t)):{}}return(o?Oe:gr)(t,(function(t,r,o){return e(n,t,r,o)})),n},zn.unary=function(t){return Ca(t,1)},zn.union=ta,zn.unionBy=ea,zn.unionWith=na,zn.uniq=function(t){return t&&t.length?uo(t):[]},zn.uniqBy=function(t,e){return t&&t.length?uo(t,ai(e,2)):[]},zn.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?uo(t,o,e):[]},zn.unset=function(t,e){return null==t||so(t,e)},zn.unzip=ra,zn.unzipWith=oa,zn.update=function(t,e,n){return null==t?t:co(t,e,mo(n))},zn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:co(t,e,mo(n),r)},zn.values=Lu,zn.valuesIn=function(t){return null==t?[]:Xe(t,ku(t))},zn.without=ia,zn.words=Xu,zn.wrap=function(t,e){return Da(mo(e),t)},zn.xor=aa,zn.xorBy=ua,zn.xorWith=sa,zn.zip=ca,zn.zipObject=function(t,e){return ho(t||[],e||[],Jn)},zn.zipObjectDeep=function(t,e){return ho(t||[],e||[],Xr)},zn.zipWith=la,zn.entries=Nu,zn.entriesIn=zu,zn.extend=bu,zn.extendWith=Au,as(zn,zn),zn.add=vs,zn.attempt=Ku,zn.camelCase=Fu,zn.capitalize=Wu,zn.ceil=gs,zn.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=yu(n))==n?n:0),e!==o&&(e=(e=yu(e))==e?e:0),ir(yu(t),e,n)},zn.clone=function(t){return ar(t,4)},zn.cloneDeep=function(t){return ar(t,5)},zn.cloneDeepWith=function(t,e){return ar(t,5,e="function"==typeof e?e:o)},zn.cloneWith=function(t,e){return ar(t,4,e="function"==typeof e?e:o)},zn.conformsTo=function(t,e){return null==e||ur(t,e,Pu(e))},zn.deburr=Uu,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=bs,zn.endsWith=function(t,e,n){t=vu(t),e=ao(e);var r=t.length,i=n=n===o?r:ir(du(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},zn.eq=La,zn.escape=function(t){return(t=vu(t))&&G.test(t)?t.replace(q,en):t},zn.escapeRegExp=function(t){return(t=vu(t))&&nt.test(t)?t.replace(et,"\\$&"):t},zn.every=function(t,e,n){var r=$a(t)?Ee:pr;return n&&vi(t,e,n)&&(e=o),r(t,ai(e,3))},zn.find=ya,zn.findIndex=Ui,zn.findKey=function(t,e){return Ne(t,ai(e,3),gr)},zn.findLast=ma,zn.findLastIndex=$i,zn.findLastKey=function(t,e){return Ne(t,ai(e,3),br)},zn.floor=As,zn.forEach=va,zn.forEachRight=ga,zn.forIn=function(t,e){return null==t?t:mr(t,ai(e,3),ku)},zn.forInRight=function(t,e){return null==t?t:vr(t,ai(e,3),ku)},zn.forOwn=function(t,e){return t&&gr(t,ai(e,3))},zn.forOwnRight=function(t,e){return t&&br(t,ai(e,3))},zn.get=Ou,zn.gt=Fa,zn.gte=Wa,zn.has=function(t,e){return null!=t&&di(t,e,Or)},zn.hasIn=Cu,zn.head=Hi,zn.identity=ns,zn.includes=function(t,e,n,r){t=Ha(t)?t:Lu(t),n=n&&!r?du(n):0;var o=t.length;return n<0&&(n=mn(o+n,0)),au(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Le(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:du(n);return o<0&&(o=mn(r+o,0)),Le(t,e,o)},zn.inRange=function(t,e,n){return e=pu(e),n===o?(n=e,e=0):n=pu(n),function(t,e,n){return t>=vn(e,n)&&t=-9007199254740991&&t<=f},zn.isSet=iu,zn.isString=au,zn.isSymbol=uu,zn.isTypedArray=su,zn.isUndefined=function(t){return t===o},zn.isWeakMap=function(t){return tu(t)&&pi(t)==P},zn.isWeakSet=function(t){return tu(t)&&"[object WeakSet]"==xr(t)},zn.join=function(t,e){return null==t?"":Ve.call(t,e)},zn.kebabCase=$u,zn.last=Yi,zn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=du(n))<0?mn(r+i,0):vn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):ze(t,We,i,!0)},zn.lowerCase=Vu,zn.lowerFirst=Hu,zn.lt=cu,zn.lte=lu,zn.max=function(t){return t&&t.length?dr(t,ns,Sr):o},zn.maxBy=function(t,e){return t&&t.length?dr(t,ai(e,2),Sr):o},zn.mean=function(t){return Ue(t,ns)},zn.meanBy=function(t,e){return Ue(t,ai(e,2))},zn.min=function(t){return t&&t.length?dr(t,ns,Rr):o},zn.minBy=function(t,e){return t&&t.length?dr(t,ai(e,2),Rr):o},zn.stubArray=hs,zn.stubFalse=ys,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=ws,zn.nth=function(t,e){return t&&t.length?Fr(t,du(e)):o},zn.noConflict=function(){return fe._===this&&(fe._=zt),this},zn.noop=us,zn.now=Oa,zn.pad=function(t,e,n){t=vu(t);var r=(e=du(e))?ln(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Uo(de(o),n)+t+Uo(pe(o),n)},zn.padEnd=function(t,e,n){t=vu(t);var r=(e=du(e))?ln(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=An();return vn(t+i*(e-t+ue("1e-"+((i+"").length-1))),e)}return Hr(t,e)},zn.reduce=function(t,e,n){var r=$a(t)?Te:He,o=arguments.length<3;return r(t,ai(e,4),n,o,lr)},zn.reduceRight=function(t,e,n){var r=$a(t)?Me:He,o=arguments.length<3;return r(t,ai(e,4),n,o,fr)},zn.repeat=function(t,e,n){return e=(n?vi(t,e,n):e===o)?1:du(e),qr(vu(t),e)},zn.replace=function(){var t=arguments,e=vu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(t,e,n){var r=-1,i=(e=vo(e,t)).length;for(i||(i=1,t=o);++rf)return[];var n=d,r=vn(t,d);e=ai(e),t-=d;for(var o=Ze(r,e);++n=a)return t;var s=n-ln(r);if(s<1)return r;var c=u?bo(u,0,s).join(""):t.slice(0,s);if(i===o)return c+r;if(u&&(s+=c.length-s),ou(i)){if(t.slice(s).search(i)){var l,f=c;for(i.global||(i=Ot(i.source,vu(pt.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?s:p)}}else if(t.indexOf(ao(i),s)!=s){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},zn.unescape=function(t){return(t=vu(t))&&Z.test(t)?t.replace(H,dn):t},zn.uniqueId=function(t){var e=++Mt;return vu(t)+e},zn.upperCase=Gu,zn.upperFirst=Yu,zn.each=va,zn.eachRight=ga,zn.first=Hi,as(zn,(ms={},gr(zn,(function(t,e){Tt.call(zn.prototype,e)||(ms[e]=t)})),ms),{chain:!1}),zn.VERSION="4.17.21",Oe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),Oe(["drop","take"],(function(t,e){Un.prototype[t]=function(n){n=n===o?1:mn(du(n),0);var r=this.__filtered__&&!e?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},Un.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Oe(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ai(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Oe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}})),Oe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ns)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Zr((function(t,e){return"function"==typeof t?new Un(this):this.map((function(n){return Ir(n,t,e)}))})),Un.prototype.reject=function(t){return this.filter(Ma(ai(t)))},Un.prototype.slice=function(t,e){t=du(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Un(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=du(e))<0?n.dropRight(-e):n.take(e-t)),n)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(d)},gr(Un.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=zn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(zn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,s=e instanceof Un,c=u[0],l=s||$a(e),f=function(t){var e=i.apply(zn,Be([t],u));return r&&p?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,y=s&&!d;if(!a&&l){e=y?e:new Un(this);var m=t.apply(e,u);return m.__actions__.push({func:pa,args:[f],thisArg:o}),new Wn(m,p)}return h&&y?t.apply(this,u):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),Oe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=It[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply($a(o)?o:[],t)}return this[n]((function(n){return e.apply($a(n)?n:[],t)}))}})),gr(Un.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";Tt.call(jn,r)||(jn[r]=[]),jn[r].push({name:e,func:n})}})),jn[zo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=Eo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Eo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Eo(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=$a(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(t){for(var e,n=this;n instanceof Fn;){var r=zi(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},zn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Un){var e=t;return this.__actions__.length&&(e=new Un(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Ji],thisArg:o}),new Wn(e,this.__chain__)}return this.thru(Ji)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Yt&&(zn.prototype[Yt]=function(){return this}),zn}();fe._=hn,(r=function(){return hn}.call(e,n,e,t))===o||(t.exports=r)}.call(this)},7771:(t,e,n)=>{var r=n(5639);t.exports=function(){return r.Date.now()}},4841:(t,e,n)=>{var r=n(7561),o=n(3218),i=n(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},75:function(t){(function(){var e,n,r;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-r)/1e6},n=process.hrtime,r=(e=function(){var t;return 1e9*(t=n())[0]+t[1]})()):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},4087:(t,e,n)=>{for(var r=n(1407),o="undefined"==typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!u&&c{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(6115)),s=r(n(1655)),c=r(n(4993)),l=r(n(3808)),f=r(n(8416)),p=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(9196)),d=r(n(679));function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}var y=function(t){(0,s.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,l.default)(e);if(n){var o=(0,l.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,c.default)(this,t)});function o(){var t;(0,i.default)(this,o);for(var e=arguments.length,n=new Array(e),a=0;a{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(1655)),s=r(n(4993)),c=r(n(3808));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var f=function(t){(0,u.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,c.default)(e);if(n){var o=(0,c.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,s.default)(this,t)});function o(){return(0,i.default)(this,o),r.apply(this,arguments)}return(0,a.default)(o,[{key:"componentDidUpdate",value:function(){this.props.cb()}},{key:"render",value:function(){return null}}]),o}(function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(9196)).Component);e.default=f,t.exports=e.default,t.exports.default=e.default},679:(t,e,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(6115)),s=r(n(1655)),c=r(n(4993)),l=r(n(3808)),f=r(n(8416)),p=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(9196));function d(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}var h=function(t){(0,s.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,l.default)(e);if(n){var o=(0,l.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,c.default)(this,t)});function o(){var t;(0,i.default)(this,o);for(var e=arguments.length,n=new Array(e),a=0;a{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(6115)),s=r(n(1655)),c=r(n(4993)),l=r(n(3808)),f=r(n(8416)),p=A(n(9196)),d=A(n(9064)),h=n(7727),y=r(n(7145)),m=r(n(6536)),v=r(n(133)),g=r(n(9302));function b(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(b=function(t){return t?n:e})(t)}function A(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=b(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e0&&m0&&v0?1:a<0?-1:0,s=i;if(0!==u)for(var c=this._getKeyFn(),l=Math.abs(a),f=i+u;f=0;f+=u){var p=this._getItemHeight(c(t[f])).drag;if(l

3&&void 0!==arguments[3]?arguments[3]:this.props.list;if(e{"use strict";n.d(e,{w_:()=>l});var r=n(9196),o=n.n(r),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o().createContext&&o().createContext(i),u=function(){return u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{var r;self,r=function(t,e){return(()=>{"use strict";var n={229:e=>{e.exports=t},297:t=>{t.exports=e}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return n[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{default:()=>w,SteppedLineTo:()=>_,Line:()=>x,SteppedLine:()=>S});var t=o(229),e=o.n(t),n=o(297),r=o.n(n);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)throw new Error('LinkTo anchor format is " "');var n,r,o=(r=2,function(t){if(Array.isArray(t))return t}(n=e)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return Object.assign({},b,i?this.parseAnchorText(i)||{x:this.parseAnchorPercent(i)}:{},a?this.parseAnchorText(a)||{y:this.parseAnchorPercent(a)}:{})}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"detect",value:function(){var t=this.props,e=t.from,n=t.to,r=t.within,o=void 0===r?"":r,i=this.findElement(e),a=this.findElement(n);if(!i||!a)return!1;var u=this.fromAnchor,s=this.toAnchor,c=i.getBoundingClientRect(),l=a.getBoundingClientRect(),f=window.pageXOffset,p=window.pageYOffset;if(o){var d=this.findElement(o),h=d.getBoundingClientRect();f-=h.left+(window.pageXOffset||document.documentElement.scrollLeft)-d.scrollLeft,p-=h.top+(window.pageYOffset||document.documentElement.scrollTop)-d.scrollTop}var y=c.left+c.width*u.x+f,m=l.left+l.width*s.x+f;return{x0:y,y0:c.top+c.height*u.y+p,x1:m,y1:l.top+l.height*s.y+p}}},{key:"render",value:function(){var t=this.detect();return t?r().createElement(x,l({},t,this.props)):null}}]),n}(n.Component);w.propTypes=s({from:e().string.isRequired,to:e().string.isRequired,within:e().string,fromAnchor:e().string,toAnchor:e().string,delay:e().oneOfType([e().number,e().bool])},A);var _=function(t){y(n,t);var e=v(n);function n(){return p(this,n),e.apply(this,arguments)}return h(n,[{key:"render",value:function(){var t=this.detect();return t?r().createElement(S,l({},t,this.props)):null}}]),n}(w),x=function(t){y(n,t);var e=v(n);function n(){return p(this,n),e.apply(this,arguments)}return h(n,[{key:"componentDidMount",value:function(){this.within.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.within.removeChild(this.el)}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"render",value:function(){var t=this,e=this.props,n=e.x0,o=e.y0,i=e.x1,a=e.y1,u=e.within,s=void 0===u?"":u;this.within=s?this.findElement(s):document.body;var c=a-o,f=i-n,p=180*Math.atan2(c,f)/Math.PI,d=Math.sqrt(f*f+c*c),h={position:"absolute",top:"".concat(o,"px"),left:"".concat(n,"px"),width:"".concat(d,"px"),zIndex:Number.isFinite(this.props.zIndex)?String(this.props.zIndex):"1",transform:"rotate(".concat(p,"deg)"),transformOrigin:"0 0"},y={borderTopColor:this.props.borderColor||"#f00",borderTopStyle:this.props.borderStyle||"solid",borderTopWidth:this.props.borderWidth||1},m={className:this.props.className,style:Object.assign({},y,h)};return r().createElement("div",{className:"react-lineto-placeholder"},r().createElement("div",l({ref:function(e){t.el=e}},m)))}}]),n}(n.PureComponent);x.propTypes=s({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired},A);var S=function(t){y(n,t);var e=v(n);function n(){return p(this,n),e.apply(this,arguments)}return h(n,[{key:"render",value:function(){return"h"===this.props.orientation?this.renderHorizontal():this.renderVertical()}},{key:"renderVertical",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=n-t;if(Math.abs(i)<=1)return r().createElement(x,l({},this.props,{x0:t,y0:e,x1:t,y1:o}));if(0===i)return r().createElement(x,this.props);var a=this.props.borderWidth||1,u=Math.round((e+o)/2),s=i>0?a:0,c=Math.min(t,n)-s,f=Math.max(t,n);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(x,l({},this.props,{x0:t,y0:e,x1:t,y1:u})),r().createElement(x,l({},this.props,{x0:n,y0:o,x1:n,y1:u})),r().createElement(x,l({},this.props,{x0:c,y0:u,x1:f,y1:u})))}},{key:"renderHorizontal",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=o-e;if(Math.abs(i)<=1)return r().createElement(x,l({},this.props,{x0:t,y0:e,x1:n,y1:e}));if(0===i)return r().createElement(x,this.props);var a=this.props.borderWidth||1,u=Math.round((t+n)/2),s=i<0?a:0,c=Math.min(e,o)-s,f=Math.max(e,o);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(x,l({},this.props,{x0:t,y0:e,x1:u,y1:e})),r().createElement(x,l({},this.props,{x0:n,y0:o,x1:u,y1:o})),r().createElement(x,l({},this.props,{x0:u,y0:c,x1:u,y1:f})))}}]),n}(n.PureComponent);S.propTypes=s({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired,orientation:e().oneOf(["h","v"])},A)})(),i})()},t.exports=r(n(9064),n(9196))},7166:function(t,e,n){var r;r=function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(0),a=n.n(i);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){for(var n=0;n=f},n)),o.a.createElement("div",null,o.a.createElement("button",{ref:function(e){t.minusNode=e},onClick:g,onTouchEnd:g,className:[i||"",u||""].join(" "),type:"button",style:i||u?void 0:y,disabled:h||c<=l},r)))}}])&&s(n.prototype,r),e}(r.Component);f.propTypes={onClickPlus:a.a.func.isRequired,onClickMinus:a.a.func.isRequired,plusBtnContents:a.a.node,minusBtnContents:a.a.node,btnClass:a.a.string,plusBtnClass:a.a.string,minusBtnClass:a.a.string,controlsClass:a.a.string,scale:a.a.number,minScale:a.a.number,maxScale:a.a.number,disableZoom:a.a.bool},f.defaultProps={plusBtnContents:"+",minusBtnContents:"-",disableZoom:!1};var p=f;function d(t,e,n){return Math.max(t,Math.min(e,n))}function h(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function y(t){return{x:t.clientX,y:t.clientY}}function m(t,e){return n=y(t),r=y(e),o=n.x-r.x,i=n.y-r.y,Math.sqrt(Math.pow(o,2)+Math.pow(i,2));var n,r,o,i}var v=!1;try{var g={get passive(){v=!0}};window.addEventListener("test",g,g),window.removeEventListener("test",g,g)}catch(t){v=!1}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function A(){return A=Object.assign||function(t){for(var e=1;e1&&!r?this.scaleFromMultiTouch(t):1===t.touches.length&&this.startPointerInfo&&!n&&this.onDrag(t.touches[0])}}},{key:"onDrag",value:function(t){var e=this,n=this.startPointerInfo,r=n.translation,o=n.pointers[0],i=t.clientX-o.clientX,a=t.clientY-o.clientY,u={x:r.x+i,y:r.y+a},s=Math.abs(i)>1||Math.abs(a)>1;this.setState({shouldPreventTouchEndDefault:s},(function(){e.props.onChange({scale:e.props.value.scale,translation:e.clampTranslation(u)})}))}},{key:"onWheel",value:function(t){if(!this.props.disableZoom){t.preventDefault(),t.stopPropagation();var e=Math.pow(2,.002*t.deltaY),n=d(this.props.minScale,this.props.value.scale+(1-e),this.props.maxScale),r=this.clientPosToTranslatedPos({x:t.clientX,y:t.clientY});this.scaleFromPoint(n,r)}}},{key:"setPointerState",value:function(t){t&&0!==t.length?this.startPointerInfo={pointers:t,scale:this.props.value.scale,translation:this.props.value.translation}:this.startPointerInfo=void 0}},{key:"clampTranslation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=t.x,r=t.y,o=e.translationBounds,i=o.xMax,a=o.xMin,u=o.yMax,s=o.yMin;return s=null!=s?s:-1/0,u=null!=u?u:1/0,{x:d(a=null!=a?a:-1/0,n,i=null!=i?i:1/0),y:d(s,r,u)}}},{key:"translatedOrigin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.value.translation,e=this.getContainerBoundingClientRect();return{x:e.left+t.x,y:e.top+t.y}}},{key:"clientPosToTranslatedPos",value:function(t){var e=t.x,n=t.y,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.value.translation,o=this.translatedOrigin(r);return{x:e-o.x,y:n-o.y}}},{key:"scaleFromPoint",value:function(t,e){var n=this.props.value,r=n.translation,o=n.scale,i=t/(0!=o?o:1),a=P(e.x,i),u=P(e.y,i),s={x:r.x-a,y:r.y-u};this.props.onChange({scale:t,translation:this.clampTranslation(s)})}},{key:"scaleFromMultiTouch",value:function(t){var e=this.startPointerInfo.pointers,n=t.touches,r=m(e[0],e[1]),o=m(n[0],n[1])/r,i=this.startPointerInfo.scale,a=i+(o-1)*i,u=d(this.props.minScale,a,this.props.maxScale),s=h(y(e[0]),y(e[1])),c=h(y(n[0]),y(n[1])),l=c.x-s.x,f=c.y-s.y,p=u/i,v=this.clientPosToTranslatedPos(s,this.startPointerInfo.translation),g=P(v.x,p),b=P(v.y,p),A={x:this.startPointerInfo.translation.x-g+l,y:this.startPointerInfo.translation.y-b+f};this.props.onChange({scale:u,translation:this.clampTranslation(A)})}},{key:"discreteScaleStepSize",value:function(){var t=this.props,e=t.minScale,n=t.maxScale;return Math.abs(n-e)/10}},{key:"changeScale",value:function(t){var e=this.props.value.scale+t,n=this.props,r=d(n.minScale,e,n.maxScale),o=this.getContainerBoundingClientRect(),i=o.left+o.width/2,a=o.top+o.height/2,u=this.clientPosToTranslatedPos({x:i,y:a});this.scaleFromPoint(r,u)}},{key:"getContainerNode",value:function(){return this.containerNode}},{key:"getContainerBoundingClientRect",value:function(){return this.getContainerNode().getBoundingClientRect()}},{key:"renderControls",value:function(){var t=this,e=this.discreteScaleStepSize();return o.a.createElement(p,{onClickPlus:function(){return t.changeScale(e)},onClickMinus:function(){return t.changeScale(-e)},plusBtnContents:this.props.plusBtnContents,minusBtnContents:this.props.minusBtnContents,btnClass:this.props.btnClass,plusBtnClass:this.props.plusBtnClass,minusBtnClass:this.props.minusBtnClass,controlsClass:this.props.controlsClass,scale:this.props.value.scale,minScale:this.props.minScale,maxScale:this.props.maxScale,disableZoom:this.props.disableZoom})}},{key:"render",value:function(){var t=this,e=this.props,n=e.showControls,r=e.children,i=this.props.value.scale,a=this.clampTranslation(this.props.value.translation),u=function(e){t.state.shouldPreventTouchEndDefault&&(e.preventDefault(),t.setState({shouldPreventTouchEndDefault:!1}))};return o.a.createElement("div",{ref:function(e){t.containerNode=e},style:{height:"100%",width:"100%",position:"relative",touchAction:"none"},onClickCapture:u,onTouchEndCapture:u},r?r({translation:a,scale:i}):void 0,n?this.renderControls():void 0)}}]),e}(r.Component),T=function(t){function e(t){var n;_(this,e),n=x(this,S(e).call(this,t));var r=e.isControlled(t);return n.state=r?{lastKnownValueFromProps:t.value}:{value:t.defaultValue||{scale:1,translation:{x:0,y:0}},lastKnownValueFromProps:void 0},n}return I(e,t),E(e,null,[{key:"propTypes",get:function(){return{children:a.a.func,value:a.a.shape({scale:a.a.number.isRequired,translation:k.isRequired}),defaultValue:a.a.shape({scale:a.a.number.isRequired,translation:k.isRequired}),disableZoom:a.a.bool,disablePan:a.a.bool,onChange:a.a.func,translationBounds:a.a.shape({xMin:a.a.number,xMax:a.a.number,yMin:a.a.number,yMax:a.a.number}),minScale:a.a.number,maxScale:a.a.number,showControls:a.a.bool,plusBtnContents:a.a.node,minusBtnContents:a.a.node,btnClass:a.a.string,plusBtnClass:a.a.string,minusBtnClass:a.a.string,controlsClass:a.a.string}}}]),E(e,[{key:"innerProps",value:function(){var t=this.props;return t.value,t.defaultValue,t.onChange,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["value","defaultValue","onChange"])}},{key:"getValue",value:function(){return e.isControlled(this.props)?this.props.value:this.state.value}},{key:"render",value:function(){var t=this,n=this.props,r=n.onChange,i=n.children,a=e.isControlled(this.props),u=a?this.props.value:this.state.value;return o.a.createElement(B,A({onChange:function(e){a?r(e):t.setState({value:e})},value:u},this.innerProps()),i)}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=e.isControlled(t),o=n.lastKnownValueFromProps&&e.isControlled({value:n.lastKnownValueFromProps});return!o&&r?{value:void 0,lastKnownValueFromProps:t.value}:o&&!r?{value:n.lastKnownValueFromProps,lastKnownValueFromProps:void 0}:o&&r?{lastKnownValueFromProps:t.value}:o||r?void 0:null}},{key:"isControlled",value:function(t){return null!=t.value}}]),e}(r.Component),M=function(t){return o.a.createElement(T,t,(function(e){var n=e.translation,r=e.scale,i="translate(".concat(n.x,"px, ").concat(n.y,"px) scale(").concat(r,")");return o.a.createElement("div",{style:{height:"100%",width:"100%",position:"relative",overflow:"hidden",touchAction:"none",msTouchAction:"none",cursor:"all-scroll",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"}},o.a.createElement("div",{style:{display:"inline-block",transform:i,transformOrigin:"0 0 "}},t.children))}))};n.d(e,"MapInteractionCSS",(function(){return M})),n.d(e,"MapInteraction",(function(){return T})),e.default=T}])},t.exports=r(n(9064),n(9196))},9144:(t,e,n)=>{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),u={},l={},p={},d={};for(var y in e)if(Object.prototype.hasOwnProperty.call(e,y)){var m=e[y];if("number"==typeof m)p[y]=m,d[y]=0,u[y]=m,l[y]=0;else{for(var v=o.state.lastIdealStyle[y],g=o.state.lastIdealVelocity[y],b=0;b{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),u=[],l=[],p=[],d=[],y=0;y{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e10*y&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/y)*y)/y,u=Math.floor(o.accumulatedTime/y),c=v(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,n,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),f=c[0],d=c[1],h=c[2],g=c[3],b=c[4],A=0;A{"use strict";e.__esModule=!0,e.default=function(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=0);return e},t.exports=e.default},8505:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e,n){for(var r={},o=0;or[l])return-1;if(o>i[l]&&sr[l])return 1;if(a>i[l]&&u{"use strict";e.__esModule=!0,e.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},t.exports=e.default},7727:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t.default:t}e.__esModule=!0;var o=n(9144);e.Motion=r(o);var i=n(6506);e.StaggeredMotion=r(i);var a=n(921);e.TransitionMotion=r(a);var u=n(124);e.spring=r(u);var s=n(2392);e.presets=r(s);var c=n(9483);e.stripStyle=r(c);var l=n(9566);e.reorderKeys=r(l)},9566:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(){},t.exports=e.default},7739:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e,n){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(0!==n[r])return!1;var o="number"==typeof e[r]?e[r]:e[r].val;if(t[r]!==o)return!1}return!0},t.exports=e.default},124:(t,e,n)=>{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e{"use strict";e.__esModule=!0,e.default=function(t,e,r,o,i,a,u){var s=r+(-i*(e-o)+-a*r)*t,c=e+s*t;return Math.abs(s){"use strict";e.__esModule=!0,e.default=function(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]="number"==typeof t[n]?t[n]:t[n].val);return e},t.exports=e.default},6536:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(6690)),i=r(n(9728)),a=r(n(8416)),u=function(){function t(){(0,o.default)(this,t),(0,a.default)(this,"map",new Map),(0,a.default)(this,"_refFns",new Map)}return(0,i.default)(t,[{key:"ref",value:function(t){var e=this,n=this._refFns.get(t);return n||function n(r){null==r?(e._refFns.delete(t),e.map.delete(t)):(e._refFns.set(t,n),e.map.set(t,r))}}}]),t}();e.default=u},1420:function(t,e,n){var r;r=function(t,e,n){return function(){"use strict";var r={"./src/Xarrow/utils/buzzier.js":function(t,e,n){n.r(e),n.d(e,{bzFunction:function(){return r},buzzierMinSols:function(){return o}});var r=function(t,e,n,r){return function(o){return Math.pow(1-o,3)*t+3*Math.pow(1-o,2)*o*e+3*(1-o)*Math.pow(o,2)*n+Math.pow(o,3)*r}},o=function(t,e,n,o){var i=r(t,e,n,o),a=-6*t+12*e-6*n,u=Math.pow(-6*t+12*e-6*n,2)-4*(3*e-3*t)*(-3*t+9*e-9*n+3*o),s=2*(-3*t+9*e-9*n+3*o);return[i((a+Math.sqrt(u))/s),i((a-Math.sqrt(u))/s)]}},"./src/Xarrow/Xarrow.tsx":function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?"translate(-100% , -50%)":"translate(-0% , -50%)",width:"max-content",position:"absolute",left:Z.cx0+Z.labelEndPos.x,top:Z.cy0+Z.labelEndPos.y+_+5}},g.end):null,L?c.default.createElement(c.default.Fragment,null,u(u([],Z.startPoints),Z.endPoints).map((function(t,e){return c.default.createElement("div",{key:e,style:{background:"gray",opacity:.5,borderRadius:"50%",transform:"translate(-50%, -50%)",height:5,width:5,position:"absolute",left:t.x-Z.mainDivPos.x,top:t.y-Z.mainDivPos.y}})}))):null):null)});h.propTypes=p.default,e.default=h},"./src/Xarrow/anchors.ts":function(t,e,n){t=n.nmd(t),Object.defineProperty(e,"__esModule",{value:!0}),e.calcAnchors=void 0,e.calcAnchors=function(t,e){return t.map((function(t){var n,r,o=(n=e.right-e.x,r=e.bottom-e.y,{middle:{x:.5*n,y:.5*r},left:{x:0,y:.5*r},right:{x:n,y:.5*r},top:{x:.5*n,y:0},bottom:{x:.5*n,y:r}})[t.position],i=o.x,a=o.y;return{x:e.x+i+t.offset.x,y:e.y+a+t.offset.y,anchor:t}}))},n.c[n.s]},"./src/Xarrow/propTypes.ts":function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n("prop-types")),i=n("./src/constants.tsx"),a=o.default.oneOf(i.cAnchorEdge),u=o.default.exact({position:a.isRequired,offset:o.default.exact({x:o.default.number,y:o.default.number}).isRequired}),s=o.default.oneOfType([a,u]),c=o.default.oneOfType([s,o.default.arrayOf(s)]),l=o.default.oneOfType([o.default.string,o.default.exact({current:o.default.any})]),f=o.default.oneOfType([o.default.element,o.default.string]),p=o.default.exact({start:f,middle:f,end:f}),d=o.default.oneOf(Object.keys(i.arrowShapes)),h=o.default.any,y=o.default.oneOfType([d,o.default.exact({svgElem:h,offsetForward:o.default.number}).isRequired]),m={start:l.isRequired,end:l.isRequired,startAnchor:c,endAnchor:c,labels:o.default.oneOfType([f,p]),color:o.default.string,lineColor:o.default.string,showHead:o.default.bool,headColor:o.default.string,headSize:o.default.number,tailSize:o.default.number,tailColor:o.default.string,strokeWidth:o.default.number,showTail:o.default.bool,path:o.default.oneOf(i.cPaths),showXarrow:o.default.bool,curveness:o.default.number,gridBreak:o.default.string,dashness:o.default.oneOfType([o.default.bool,o.default.object]),headShape:y,tailShape:y,animateDrawing:o.default.oneOfType([o.default.bool,o.default.number]),zIndex:o.default.number,passProps:o.default.object,arrowBodyProps:o.default.object,arrowHeadProps:o.default.object,arrowTailProps:o.default.object,SVGcanvasProps:o.default.object,divContainerProps:o.default.object,_extendSVGcanvas:o.default.number,_debug:o.default.bool,_cpx1Offset:o.default.number,_cpy1Offset:o.default.number,_cpx2Offset:o.default.number,_cpy2Offset:o.default.number};e.default=m},"./src/Xarrow/useXarrowProps.ts":function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(e=e.filter((function(t){return"auto"!==t.position}))).push.apply(e,n.flatMap((function(t){return["left","right","top","bottom"].map((function(e){return r(r({},t),{position:e})}))}))),e.map((function(t){if("object"==typeof t){var e=t;return e.position||(e.position="auto"),e.offset||(e.offset={x:0,y:0}),e.offset.y||(e.offset.y=0),e.offset.x||(e.offset.x=0),e}return t}))},d=function(t){return"string"==typeof t&&(t in f.arrowShapes?t=f.arrowShapes[t]:(console.warn("'"+t+"' is not supported arrow shape. the supported arrow shapes is one of "+f.cArrowShapes+".\n reverting to default shape."),t=f.arrowShapes.arrow1)),void 0===(null==t?void 0:t.offsetForward)&&(t.offsetForward=.25),void 0===(null==t?void 0:t.svgElem)&&(t.svgElem="path"),t},h=function(t,e){return e&&(e.current=!0),t},y=function(t){return t},m=function(t,e,n){return h(t,n)},v=function(t,e,n){return h(Number(t),n)},g={start:function(t){return c.getElementByPropGiven(t)},end:function(t){return c.getElementByPropGiven(t)},startAnchor:function(t,e,n){return h(p(t),n)},endAnchor:function(t,e,n){return h(p(t),n)},labels:function(t){return function(t){var e={start:null,middle:null,end:null};if(t)if("string"==typeof t||s.default.isValidElement(t))e.middle=t;else for(var n in t)e[n]=t[n];return e}(t)},color:y,lineColor:function(t,e){return t||e.color},headColor:function(t,e){return t||e.color},tailColor:function(t,e){return t||e.color},strokeWidth:v,showHead:m,headSize:v,showTail:m,tailSize:v,path:m,curveness:v,gridBreak:function(t,e,n){return h((r=t,(o=c.xStr2absRelative(r))||(o={relative:.5,abs:0}),o),n);var r,o},dashness:function(t,e){return r=e,i=0,a=0,"object"==typeof(n=t)?(i=n.strokeLen||2*r.strokeWidth,a=n.strokeLen?n.nonStrokeLen:r.strokeWidth,o=n.animation?n.animation:null):"boolean"==typeof n&&n&&(i=2*r.strokeWidth,a=r.strokeWidth,o=null),{strokeLen:i,nonStrokeLen:a,animation:o,animDirection:1};var n,r,o,i,a},headShape:function(t){return d(t)},tailShape:function(t){return d(t)},showXarrow:y,animateDrawing:y,zIndex:function(t){return Number(t)},passProps:y,arrowBodyProps:m,arrowHeadProps:m,arrowTailProps:m,SVGcanvasProps:m,divContainerProps:m,divContainerStyle:m,SVGcanvasStyle:m,_extendSVGcanvas:m,_debug:m,_cpx1Offset:m,_cpy1Offset:m,_cpx2Offset:m,_cpy2Offset:m},b={};for(var A in g)b[A]=[A];for(var w=0,_=["lineColor","headColor","tailColor"];w<_.length;w++)b[A=_[w]].push("color");var x={start:null,end:null,startAnchor:"auto",endAnchor:"auto",labels:null,color:"CornflowerBlue",lineColor:null,headColor:null,tailColor:null,strokeWidth:4,showHead:!0,headSize:6,showTail:!1,tailSize:6,path:"smooth",curveness:.8,gridBreak:"50%",dashness:!1,headShape:"arrow1",tailShape:"arrow1",showXarrow:!0,animateDrawing:!1,zIndex:0,passProps:{},arrowBodyProps:{},arrowHeadProps:{},arrowTailProps:{},SVGcanvasProps:{},divContainerProps:{},divContainerStyle:{},SVGcanvasStyle:{},_extendSVGcanvas:0,_debug:!1,_cpx1Offset:0,_cpy1Offset:0,_cpx2Offset:0,_cpy2Offset:0},S={};S=function(t,e){for(var n,r=0,o=Object.entries(t);r0?1:-1,tt=X>0?1:-1,et=[x.offsetForward,S.offsetForward],nt=et[0],rt=et[1],ot=v*y,it=b*y,at=0,ut=0,st=0,ct=0,lt=ot*nt,ft=it*rt,pt=Number(w);u.cPaths.includes(A)||(A="smooth"),"straight"===A&&(pt=0,A="smooth");var dt=y+y*(v>b?v:b)/2,ht=dt,yt=dt,mt=dt,vt=dt;yt+=Number(O),ht+=Number(O),mt+=Number(O),vt+=Number(O);var gt=0,bt=K,At=0,wt=Q;if(Y<0&&(gt=(n=[bt,gt])[0],bt=n[1]),X<0&&(At=(r=[wt,At])[0],wt=r[1]),0===pt){var _t=Math.atan(Q/K);m&&(bt-=ot*(1-nt)*J*Math.cos(_t),wt-=ot*(1-nt)*tt*Math.sin(_t),_t*=tt,J<0&&(_t=(Math.PI-_t*J)*J),at=Math.cos(_t)*lt-Math.sin(_t)*ot/2,ut=Math.cos(_t)*ot/2+Math.sin(_t)*lt,R=180*_t/Math.PI);var xt=Math.atan(Q/K);g&&(gt+=it*(1-rt)*J*Math.cos(xt),At+=it*(1-rt)*tt*Math.sin(xt),xt*=-tt,J>0&&(xt=(Math.PI-xt*J)*J),st=Math.cos(xt)*ft-Math.sin(xt)*it/2,ct=Math.cos(xt)*it/2+Math.sin(xt)*ft,D=180*xt/Math.PI)}else"middle"===$&&($=K>Q?J?"left":"right":tt?"top":"bottom"),m&&(["left","right"].includes($)?(at+=lt*J,bt-=ot*(1-nt)*J,ut+=ot*J/2,"left"===$?(R=0,J<0&&(R+=180)):(R=180,J>0&&(R+=180))):["top","bottom"].includes($)&&(at+=ot*-tt/2,wt-=ot*tt-(ut+=lt*tt),"top"===$?(R=270,tt>0&&(R+=180)):(R=90,tt<0&&(R+=180))));g&&0!==pt&&(["left","right"].includes(U)?(gt+=it*J+(st+=ft*-J),ct+=-it*J/2,"left"===U?(D=180,J<0&&(D+=180)):(D=0,J>0&&(D+=180))):["top","bottom"].includes(U)&&(At+=it*tt+(ct+=ft*-tt),st+=it*tt/2,"top"===U?(D=90,tt>0&&(D+=180)):(D=270,tt<0&&(D+=180))));var St={x:at,y:ut},Ot={x:st,y:ct},Ct=gt,Et=At,It=bt,jt=wt,Pt={};"smooth"===A?Pt={hh:function(){Ct+=K*pt*J,It-=K*pt*J},vv:function(){Et+=Q*pt*tt,jt-=Q*pt*tt},hv:function(){Ct+=K*pt*J,jt-=Q*pt*tt},vh:function(){Et+=Q*pt*tt,It-=K*pt*J}}:"grid"===A&&(Pt={hh:function(){Ct+=(K*_.relative+_.abs)*J,It-=(K*(1-_.relative)-_.abs)*J,m&&(Ct-=ot*(1-nt)/2*J,It+=ot*(1-nt)/2*J),g&&(Ct-=it*(1-rt)/2*J,It+=it*(1-rt)/2*J)},vv:function(){Et+=(Q*_.relative+_.abs)*tt,jt-=(Q*(1-_.relative)-_.abs)*tt,m&&(Et-=ot*(1-nt)/2*tt,jt+=ot*(1-nt)/2*tt),g&&(Et-=it*(1-rt)/2*tt,jt+=it*(1-rt)/2*tt)},hv:function(){Ct=bt},vh:function(){Et=wt}});var kt="";["left","right"].includes(U)?kt+="h":["bottom","top"].includes(U)?kt+="v":"middle"===U&&(kt+="m"),["left","right"].includes($)?kt+="h":["bottom","top"].includes($)?kt+="v":"middle"===$&&(kt+="m"),Pt[kt=K>Q?kt.replace(/m/g,"h"):kt.replace(/m/g,"v")](),Ct+=C,Et+=E,It+=I,jt+=j;var Bt=s.buzzierMinSols(gt,Ct,It,bt),Tt=Bt[0],Mt=Bt[1],Rt=s.buzzierMinSols(At,Et,jt,wt),Dt=Rt[0],Nt=Rt[1];Tt<0&&(yt+=-Tt),Mt>K&&(ht+=Mt-K),Dt<0&&(mt+=-Dt),Nt>Q&&(vt+=Nt-Q),"grid"===A&&(yt+=dt,ht+=dt,mt+=dt,vt+=dt),gt+=yt,bt+=yt,At+=mt,wt+=mt,Ct+=yt,It+=yt,Et+=mt,jt+=mt;var zt=K+yt+ht,Lt=Q+mt+vt;Z-=yt,G-=mt;var Ft,Wt=s.bzFunction(gt,Ct,It,bt),Ut=s.bzFunction(At,Et,jt,wt),$t={x:Wt(.01),y:Ut(.01)},Vt={x:Wt(.5),y:Ut(.5)},Ht={x:Wt(.99),y:Ut(.99)};return"grid"===A?Ft="M "+gt+" "+At+" L "+Ct+" "+Et+" L "+It+" "+jt+" "+bt+" "+wt:"smooth"===A&&(Ft="M "+gt+" "+At+" C "+Ct+" "+Et+", "+It+" "+jt+", "+bt+" "+wt),{cx0:Z,cy0:G,x1:gt,x2:bt,y1:At,y2:wt,cw:zt,ch:Lt,cpx1:Ct,cpy1:Et,cpx2:It,cpy2:jt,dx:Y,dy:X,absDx:K,absDy:Q,headOrient:R,tailOrient:D,labelStartPos:$t,labelMiddlePos:Vt,labelEndPos:Ht,excLeft:yt,excRight:ht,excUp:mt,excDown:vt,headOffset:lt,arrowHeadOffset:St,arrowTailOffset:Ot,startPoints:N,endPoints:z,mainDivPos:q,xSign:J,ySign:tt,lineLength:null!==(l=null===(c=M.current)||void 0===c?void 0:c.getTotalLength())&&void 0!==l?l:0,fHeadSize:ot,fTailSize:it,arrowPath:Ft}}},"./src/Xarrow/utils/index.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSvgPos=e.getElemPos=e.getShortestLine=e.xStr2absRelative=e.factorDpathStr=e.getElementByPropGiven=void 0,e.getElementByPropGiven=function(t){return"string"==typeof t?document.getElementById(t):null==t?void 0:t.current},e.factorDpathStr=function(t,e){var n=t.split(/(\d+(?:\.\d+)?)/);return(n=n.map((function(t){return Number(t)?(Number(t)*e).toString():t}))).join("")},e.xStr2absRelative=function(t){if("string"!=typeof t)return{abs:0,relative:.5};var e=t.split("%"),n=0,r=0;if(1==e.length){var o=parseFloat(e[0]);if(!isNaN(o))return{abs:n=o,relative:0}}else if(2==e.length){var i=[parseFloat(e[0]),parseFloat(e[1])],a=i[0],u=i[1];if(isNaN(a)||(r=a/100),isNaN(u)||(n=u),!isNaN(a)||!isNaN(u))return{abs:n,relative:r}}},e.getShortestLine=function(t,e){var n,r=1/0,o=1/0;return t.forEach((function(t){e.forEach((function(e){var i,a;i=t,a=e,(o=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2))){t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(e),s=0;s{"use strict";var e=[];function n(t){for(var n=-1,r=0;r{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4586:(t,e,n)=>{"use strict";var r;n.d(e,{Z:()=>l});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=[],s=0;s<256;++s)u.push((s+256).toString(16).substr(1));const c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&a.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n},l=function(t,e,n){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return c(r)}},9064:t=>{"use strict";t.exports=window.PropTypes},9196:t=>{"use strict";t.exports=window.React},6115:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},6690:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},9728:(t,e,n)=>{var r=n(4062);function o(t,e){for(var n=0;n{var r=n(4062);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},3808:t=>{function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},1655:(t,e,n)=>{var r=n(6015);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4993:(t,e,n)=>{var r=n(8698).default,o=n(6115);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},6015:t=>{function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5036:(t,e,n)=>{var r=n(8698).default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4062:(t,e,n)=>{var r=n(8698).default,o=n(5036);t.exports=function(t){var e=o(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return n[t].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,n)=>(o.f[n](t,e),e)),[])),o.u=t=>({530:"async-Settings",569:"async-IconWrapper"}[t]+".js"),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="viasp_dash:",o.l=(n,r,i,a)=>{if(t[n])t[n].push(r);else{var u,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l{u.onerror=u.onload=null,clearTimeout(d);var o=t[n];if(delete t[n],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((t=>t(r))),e)return e(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),s&&document.head.appendChild(u)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!t;)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})();var i,a=function(){var t=document.currentScript;if(!t){for(var e=document.getElementsByTagName("script"),n=[],r=0;r{var t={179:0};o.f.j=(e,n)=>{var r=o.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(e),u=new Error;o.l(a,(n=>{if(o.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,r[1](u)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,i,[a,u,s]=n,c=0;if(a.some((e=>0!==t[e]))){for(r in u)o.o(u,r)&&(o.m[r]=u[r]);s&&s(o)}for(e&&e(n);c{"use strict";o.r(s),o.d(s,{ViaspDash:()=>qi});var t=o(9196),e=o.n(t),n=o(9064),r=o.n(n),i=o(4800),a=o(3379),u=o.n(a),c=o(7795),l=o.n(c),f=o(569),p=o.n(f),d=o(3565),h=o.n(d),y=o(9216),m=o.n(y),v=o(4589),g=o.n(v),b=o(2273),A={};A.styleTagTransform=g(),A.setAttributes=h(),A.insert=p().bind(null,"head"),A.domAPI=l(),A.insertStyleElement=m(),u()(b.Z,A),b.Z&&b.Z.locals&&b.Z.locals;var w=o(4781),_=o(1098),x={};x.styleTagTransform=g(),x.setAttributes=h(),x.insert=p().bind(null,"head"),x.domAPI=l(),x.insertStyleElement=m(),u()(_.Z,x),_.Z&&_.Z.locals&&_.Z.locals;var S=o(4078);function O(t,e){if(t){if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){d+=" mark_symbol";var b=function(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(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.")}()}(new Set(g.map((function(t){return m[t].color})).reverse())).map((function(t,e,n){var r=e/n.length*100,o=(e+1)/n.length*100;return"".concat(t," ").concat(r,"%, ").concat(t," ").concat(o,"%")})).join(", ");h={background:"linear-gradient(-45deg, ".concat(b,")")}}return f=0===f.length?"":f,i.has_reason&&c&&(h=v(m,i.uuid)),e().createElement("span",{className:d,id:i.uuid+p,style:h,onClick:function(t){return u(t,i)},onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)}},f)}function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:B,e=arguments.length>1?arguments[1]:void 0;return e.type===M?k(k({},t),{},{shownNodes:t.shownNodes.concat(e.node)}):e.type===T?k(k({},t),{},{shownNodes:t.shownNodes.filter((function(t){return t!==e.node}))}):k({},t)},z=e().createContext([]),L=function(){return e().useContext(z)},F=function(t){var n,r,o=t.children,i=(n=e().useReducer(N,B),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(n,r)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1];return e().createElement(z.Provider,{value:{globalState:a,dispatch:u}},o)};F.propTypes={children:r().element};var W=o(7217);function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:J,e=arguments.length>1?arguments[1]:void 0;return"FILTERS/SIGNATURE/ADD"===e.type?Q(Q({},t),{},{activeFilters:t.activeFilters.concat(e.signature)}):e.type===tt?Q(Q({},t),{},{activeFilters:t.activeFilters.filter((function(t){return t!==e.filter}))}):Q({},t)},nt=e().createContext([]),rt=function(){return e().useContext(nt)},ot=function(t){var n,r,o=t.children,i=(n=e().useReducer(et,J),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(n,r)||function(t,e){if(t){if("string"==typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1];return e().createElement(nt.Provider,{value:[a,u]},o)};function it(t){return"string"==typeof t&&"%"===t[t.length-1]&&function(t){const e=parseFloat(t);return!isNaN(e)&&isFinite(e)}(t.substring(0,t.length-1))}function at(t,e){0===e&&(null==t?void 0:t.style)&&(t.style.display="none")}ot.propTypes={children:r().element};const ut={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function st(t,e){return[t.static,0===e&&t.staticHeightZero,"number"==typeof e&&e>0?t.staticHeightSpecific:null,"auto"===e&&t.staticHeightAuto].filter((t=>t)).join(" ")}const ct=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"],lt=t.forwardRef(((e,n)=>{const{animateOpacity:r=!1,animationStateClasses:o={},applyInlineTransitions:i=!0,children:a,className:u="",contentClassName:s,delay:c=0,duration:l=500,easing:f="ease",height:p,onHeightAnimationEnd:d,onHeightAnimationStart:h,style:y,contentRef:m}=e,v=Object.assign({},e);ct.forEach((t=>{delete v[t]}));const g=(0,t.useRef)(p),b=(0,t.useRef)(null),A=(0,t.useRef)(),w=(0,t.useRef)(),_=(0,t.useRef)(Object.assign(Object.assign({},ut),o)),x="undefined"!=typeof window,S=(0,t.useRef)(!(!x||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),O=S.current?0:c,C=S.current?0:l;let E=p,I="visible";"number"==typeof p?(E=p<0?0:p,I="hidden"):it(E)&&(E="0%"===p?0:p,I="hidden");const[j,P]=(0,t.useState)(E),[k,B]=(0,t.useState)(I),[T,M]=(0,t.useState)(!1),[R,D]=(0,t.useState)(st(_.current,p));(0,t.useEffect)((()=>{at(b.current,j)}),[]),(0,t.useEffect)((()=>{if(p!==g.current&&b.current){!function(t,e){0===e&&(null==t?void 0:t.style)&&(t.style.display="")}(b.current,g.current),b.current.style.overflow="hidden";const t=b.current.offsetHeight;b.current.style.overflow="";const e=C+O;let n,r,o,i="hidden";const a="auto"===g.current;"number"==typeof p?(n=p<0?0:p,r=n):it(p)?(n="0%"===p?0:p,r=n):(n=t,r="auto",i=void 0),a&&(r=n,n=t);const u=[_.current.animating,("auto"===g.current||pg.current)&&_.current.animatingDown,0===r&&_.current.animatingToHeightZero,"auto"===r&&_.current.animatingToHeightAuto,"number"==typeof r&&r>0?_.current.animatingToHeightSpecific:null].filter((t=>t)).join(" "),s=st(_.current,r);P(n),B("hidden"),M(!a),D(u),clearTimeout(w.current),clearTimeout(A.current),a?(o=!0,w.current=setTimeout((()=>{P(r),B(i),M(o),null==h||h(r)}),50),A.current=setTimeout((()=>{M(!1),D(s),at(b.current,r),null==d||d(r)}),e)):(null==h||h(n),w.current=setTimeout((()=>{P(r),B(i),M(!1),D(s),"auto"!==p&&at(b.current,n),null==d||d(n)}),e))}return g.current=p,()=>{clearTimeout(w.current),clearTimeout(A.current)}}),[p]);const N=Object.assign(Object.assign({},y),{height:j,overflow:k||(null==y?void 0:y.overflow)});T&&i&&(N.transition=`height ${C}ms ${f} ${O}ms`,(null==y?void 0:y.transition)&&(N.transition=`${y.transition}, ${N.transition}`),N.WebkitTransition=N.transition);const z={};r&&(z.transition=`opacity ${C}ms ${f} ${O}ms`,z.WebkitTransition=z.transition,0===j&&(z.opacity=0));const L=void 0!==v["aria-hidden"]?v["aria-hidden"]:0===p;return t.createElement("div",Object.assign({},v,{"aria-hidden":L,className:`${R} ${u}`,style:N,ref:n}),t.createElement("div",{className:s,style:z,ref:t=>{b.current=t,m&&(m.current=t)}},a))})),ft=lt;function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},$t=[],Vt=0,Ht={attributes:!0,characterData:!0,childList:!0,subtree:!0},qt=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zt=function(t){return void 0===t&&(t=0),Date.now()+t},Gt=!1,Yt=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!Gt){Gt=!0;var n,r=Zt(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(Ut(e);At.some((function(t){return t.activeTargets.length>0}));)e=Wt(),Ut(e);return At.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:wt}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=wt),window.dispatchEvent(t)),e>0}()}finally{if(Gt=!1,t=r-Zt(),!Vt)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!_t){var e=0,n=document.createTextNode("");new MutationObserver((function(){return $t.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),_t=function(){n.textContent="".concat(e?e--:e++)}}$t.push(t),_t()}((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,Ht)};document.body?e():jt.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),qt.forEach((function(e){return jt.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),qt.forEach((function(e){return jt.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),Xt=function(t){!Vt&&t>0&&Yt.start(),!(Vt+=t)&&Yt.stop()},Kt=function(){function t(t,e){this.target=t,this.observedBox=e||vt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=zt(this.target,this.observedBox,!0);return t=this.target,Ct(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Qt=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},Jt=new WeakMap,te=function(t,e){for(var n=0;n=0&&(o&&At.splice(At.indexOf(n),1),n.observationTargets.splice(r,1),Xt(-1))},t.disconnect=function(t){var e=this,n=Jt.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),ne=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ee.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!It(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ee.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!It(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ee.unobserve(this,t)},t.prototype.disconnect=function(){ee.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const re=e()["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"],oe="undefined"!=typeof window&&"ResizeObserver"in window?window.ResizeObserver:ne;function ie(){}let ae;const ue=function(e,n){const r=ae||(ae=function(){let t=!1,e=[];const n=new Map,r=new oe(((r,o)=>{e=e.concat(r),t||window.requestAnimationFrame((function(){const r=new Set;for(let t=0;tn(e[t],o)))}e=[],t=!1})),t=!0}));return{observer:r,subscribe(t,e){var o;r.observe(t);const i=null!==(o=n.get(t))&&void 0!==o?o:[];i.push(e),n.set(t,i)},unsubscribe(t,e){var o;const i=null!==(o=n.get(t))&&void 0!==o?o:[];if(1===i.length)return r.unobserve(t),void n.delete(t);const a=i.indexOf(e);-1!==a&&i.splice(a,1),n.set(t,i)}}}()),o=(e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),n})(n);return re((()=>{let t=!1;const n=e&&"current"in e?e.current:e;if(!n)return ie;function i(e,n){t||o.current(e,n)}return r.subscribe(n,i),()=>{t=!0,r.unsubscribe(n,i)}}),[e,r,o]),r.observer};var se=o(1296),ce=o.n(se),le=o(3927),fe=o(3279),pe=o.n(fe);function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function he(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,[e].map(ve))}))}}),[n]),ue(t,(function(t){return a(n.current,t)}))};function be(t){return function(t){if(Array.isArray(t))return _e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||we(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 Ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||we(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(t,e){if(t){if("string"==typeof t)return _e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(t,e):void 0}}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nle.cp})))){var a=Math.max.apply(Math,be(e.map((function(t){return t.fittingHeight}))));i(a),v((0,q.KT)(s,o.uuid,r>a))}else i(Math.min(le.cp,r)),v((0,q.KT)(s,o.uuid,r>le.cp));v((0,q.Cf)(s))}),[n,p,i,A,_,o.loading,v,o.uuid,o.isExpandVAllTheWay,s]);e().useEffect((function(){var t;x(),t=function(){g.current&&x()},setTimeout((function(){requestAnimationFrame(t)}))}),[x,p,r,o.isExpandVAllTheWay,l]),ue(b,x);var O=n.filter((function(t){return A(t)})).map((function(t){return e().createElement(E,{key:JSON.stringify(t),symbolIdentifier:t,isSubnode:u,handleClick:w})}));return e().createElement("div",{className:"set_container ".concat(!0===o.loading?"hidden":""),style:{color:c.dark},ref:b},e().createElement("span",{className:"set_value"},O.length>0?O:""))}function Oe(n){var r=n.node,o=(0,q.oA)(),i=o.state,a=o.dispatch,u=o.reloadEdges,s=(0,W.oF)();return e().createElement("div",{className:"recursion_button",onClick:function(t){t.stopPropagation(),a((0,q.Qx)(r.uuid));var e=Object.values(i.transformationNodesMap).flat().filter((function(t){return t.shownRecursion})).map((function(t){return t.uuid}));r.shownRecursion?e.splice(e.indexOf(r.uuid),1):e.push(r.uuid),u(e,i.clingraphGraphics.length>0)}},0===r.recursive.length?null:e().createElement("div",{className:"recursion_button_text",style:{backgroundColor:s.primary,color:s.light}},e().createElement(t.Suspense,{fallback:e().createElement("div",null,"R")},e().createElement(gt,{icon:"clockwiseVerticalArrows",width:"9",height:"9"}))))}function Ce(t,e,n,r,o){if(null!=t&&t.current){var i=t.current,a=(0,w._d)(i,"set_too_high"),u=(0,w._d)(i,"node_border"),s=!!a&&a.scrollWidth>u.offsetWidth-le.PM;n<=i.offsetWidth-le.PM&&o(!1),!e&&s&&(r(i.offsetWidth),o(!0)),null!==n||s||o(!1)}}function Ee(t){var n=t.node,r=t.isSubnode,o=t.branchSpace,i=t.transformationId,a=Ae(e().useState(null),2),u=a[0],s=a[1],c=(0,W.oF)(),l=L().dispatch,f=(0,q.oA)().dispatch,p=function(t){var n=Ae(V(),1)[0],r=Ae(e().useState("txt-elem node_border mouse_over_shadow ".concat(t.uuid," ").concat(n===t.uuid?"highlighted_node":null)),2),o=r[0],i=r[1];return e().useEffect((function(){n===t.uuid&&console.log("highlighted node",t.uuid),i("txt-elem node_border mouse_over_shadow ".concat(t.uuid," ").concat(n===t.uuid?"highlighted_node":null))}),[t.uuid,n]),o}(n),d=Ae(e().useState(le.n1),2),h=d[0],y=d[1],m=yt().animationState,v=((0,G.J)().setShownDetail,e().useRef(l)),g=e().useRef(n.uuid),b=e().useRef(null);ge(b,g),e().useEffect((function(){var t=v.current,e=g.current;return t(D(e)),function(){t(R(e))}}),[]),e().useEffect((function(){f((0,q.Z3)(i,n.uuid,h>le.cp))}),[h,f,n.uuid,i]);var A=e().useCallback((function(){Ce(o,n.showMini,u,s,(function(t){f((0,q.Wp)(i,n.uuid,t)),f((0,q.Cf)(i))}))}),[o,u,m.graph_zoom,n.showMini]),w=e().useMemo((function(){return ce()(A,le.Oq)}),[A]);e().useEffect((function(){A()}),[A,n.showMini]),ue(document.getElementById("content"),w);var _="".concat(n.uuid,"_animate_height");return e().createElement("div",{className:p,style:{backgroundColor:c.light,color:c.primary},id:n.uuid,onClick:function(t){t.stopPropagation()}},n.showMini?e().createElement("div",{style:{backgroundColor:c.primary,color:c.primary},className:"mini"}):e().createElement(ft,{id:_,duration:500,height:h,ref:b,contentClassName:"set_too_high ".concat(!0===n.loading?"loading":null)},e().createElement(Se,{node:n,setHeight:y,parentID:_,isSubnode:r,transformationId:i}),e().createElement(Oe,{node:n})))}function Ie(t){var n=t.node,r=t.branchSpace,o=t.transformationId,i=Ae(e().useState(),2),a=i[0],u=i[1],s=(0,W.oF)(),c=L().dispatch,l="node_border ".concat(n.uuid),f=(0,G.J)().setShownDetail,p=(0,q.oA)().dispatch,d=yt().animationState,h=e().useRef(c),y=e().useRef(n.uuid),m=function(t){f(t.uuid)};e().useEffect((function(){var t=h.current,e=y.current;return t(D(e)),function(){t(R(e))}}),[]);var v=e().useCallback((function(){Ce(r,n.showMini,a,u,(function(t){return p((0,q.Wp)(o,n.uuid,t))}))}),[r,n.showMini,a,d.graph_zoom]),g=e().useMemo((function(){return ce()(v,le.Oq)}),[v]);return e().useEffect((function(){v()}),[v,n]),ue(document.getElementById("content"),g),e().createElement("div",{className:l,style:{color:s.primary},id:n.uuid,onClick:function(t){t.stopPropagation(),m(n)}},n.showMini?e().createElement("div",{style:{backgroundColor:s.primary,color:s.primary},className:"mini"}):e().createElement(e().Fragment,null,e().createElement(Oe,{node:n}),n.recursive.map((function(t){return e().createElement(Ee,{key:t.uuid,node:t,notifyClick:m,isSubnode:!0,transformationId:o})}))))}Se.propTypes={node:i.b6,setHeight:r().func,parentID:r().string,isSubnode:r().bool,transformationId:r().oneOfType([r().number,r().string])},Oe.propTypes={node:i.b6},Ee.propTypes={node:i.b6,isSubnode:r().bool,branchSpace:r().object,transformationId:r().oneOfType([r().number,r().string])},Ie.propTypes={node:i.b6,branchSpace:r().object,transformationId:r().oneOfType([r().number,r().string])};const je={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Pe=function(t){var e,n,r=[],o=1;if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),je[t])r=je[t].slice(),n="rgb";else if("transparent"===t)o=0,n="rgb",r=[0,0,0];else if("#"===t[0]){var i=t.slice(1),a=i.length;o=1,a<=4?(r=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===a&&(o=parseInt(i[3]+i[3],16)/255)):(r=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===a&&(o=parseInt(i[6]+i[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var u=e[1],s="cmyk"===(n=u.replace(/a$/,""))?4:"gray"===n?1:3;r=e[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===n&&(n=r.shift()),r=r.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===n?255*t:"h"===n[0]?100*t:"l"!==n[0]||e?"lab"===n?125*t:"lch"===n?e<2?150*t:360*t:"o"!==n[0]||e?"oklab"===n?.4*t:"oklch"===n?e<2?.4*t:360*t:t:t:100*t;if("h"===n[e]||2===e&&"h"===n[n.length-1]){if(void 0!==ke[t])return ke[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)})),o=r.length>s?r.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(r=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),n=t.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:n,values:r,alpha:o}};var ke={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const Be={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},Te={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,n,r,o,i,a=t[0]/360,u=t[1]/100,s=t[2]/100,c=0;if(0===u)return[i=255*s,i,i];for(e=2*s-(n=s<.5?s*(1+u):s+u-s*u),o=[0,0,0];c<3;)(r=a+1/3*-(c-1))<0?r++:r>1&&r--,i=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[c++]=255*i;return o}};function Me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n/g,">").replace(/\n/g,"
")}}),s[r]&&i?s[r].map((function(t,n){return e().createElement("span",{key:"".concat(r,"_").concat(t.color,"_").concat(n),className:"rule_highlight_dot \n ".concat(t.markedForInsertion?"fade-in":"","\n ").concat(t.markedForDeletion?"fade-out":"","\n "),style:{backgroundColor:t.color,marginLeft:"".concat(le.I$+n*le.I$,"px"),animationDuration:"".concat(le.qH,"ms")},onAnimationEnd:function(e){e.target.className.includes("fade-out")&&l(r,t.color,s),e.target.className.includes("fade-in")&&c(r,t.color,s)}})})):null)}function Fe(t){var n=t.ruleWrappers,r=(0,W.oF)();return e().createElement("div",{style:{backgroundColor:r.primary,color:r.light,borderColor:r.primary},className:"txt-elem row_header"},n.map((function(t){return e().createElement(Le,{key:t.hash,ruleWrapper:t,multipleRules:n.length>1})})))}ze.styleTagTransform=g(),ze.setAttributes=h(),ze.insert=p().bind(null,"head"),ze.domAPI=l(),ze.insertStyleElement=m(),u()(Ne.Z,ze),Ne.Z&&Ne.Z.locals&&Ne.Z.locals,Le.propTypes={ruleWrapper:i.vG,multipleRules:r().bool},Fe.propTypes={ruleWrappers:r().arrayOf(i.vG)};var We=o(9397),Ue={};function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.itemSelected&&this.context.state.transformationDropIndices!==this.props.item.adjacent_sort_indices&&t.itemSelected!==this.props.itemSelected&&this.context.dispatch((0,q.O7)(this.props.item.adjacent_sort_indices)),this.props.itemSelectedle.cP&&null===this.intervalId&&(this.intervalId=setInterval((function(){var t=n.rowRef.current;null!==t&&n.setAnimationState((function(e){return Qe(Qe({},e),{},nn({},n.props.item.id,Qe(Qe({},e[n.props.item.id]),{},{width:t.clientWidth,height:t.clientHeight,top:t.offsetTop,left:t.offsetLeft})))}))}),le.Wn)),this.props.itemSelected0&&t.shownRecursion?e().createElement("div",{className:"branch_space",key:t.uuid,style:{flex:"0 0 ".concat(r,"%")},ref:g.current[n]},e().createElement(Ie,{key:t.uuid,node:t,branchSpace:g.current[n],transformationId:o.id})):e().createElement("div",{className:"branch_space",key:t.uuid,style:{flex:"0 0 ".concat(r,"%")},ref:g.current[n]},e().createElement(Ee,{key:t.uuid,node:t,isSubnode:!1,branchSpace:g.current[n],transformationId:o.id}))}))):null,o.allNodesShowMini||!o.isExpandableV&&!o.isCollapsibleV?null:e().createElement(De,{transformationId:o.id,nodes:f}))}nn(on,"contextType",q.vi),on.propTypes={item:i.KA,itemSelected:r().number,anySelected:r().number,dragHandleProps:r().object,commonProps:r().shape({transform:i.WY})},an.propTypes={transformation:i.KA,dragHandleProps:r().object,itemSelected:r().number,transform:i.WY};var un=o(1564),sn={};sn.styleTagTransform=g(),sn.setAttributes=h(),sn.insert=p().bind(null,"head"),sn.domAPI=l(),sn.insertStyleElement=m(),u()(un.Z,sn),un.Z&&un.Z.locals&&un.Z.locals;var cn=o(6486);function ln(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&e>a.offsetWidth-le.PM;r<=a.offsetWidth-le.PM&&i(!1),!n&&u&&(o(a.offsetWidth),i(!0)),null!==r||u||i(!1)}}(r,f.width,n.showMini,i,a,(function(t){d((0,q.WK)(n.uuid,t))}))}),[r,i,h.graph_zoom,n.showMini]),m=e().useMemo((function(){return(0,cn.debounce)(y,le.Oq)}),[y]);return e().useEffect((function(){y()}),[y,n.showMini]),ue(document.getElementById("content"),m),e().createElement("div",{className:c,style:{backgroundColor:u.primary,color:u.primary},id:n.uuid},n.showMini?e().createElement("div",{style:{backgroundColor:u.primary,color:u.primary},className:"mini"}):e().createElement("div",{style:{backgroundColor:u.primary,color:u.primary}},n.loading?e().createElement("div",{className:"loading",style:f}):e().createElement("img",{src:"".concat(s("clingraph"),"/").concat(n.uuid),alt:"Clingraph"})))}pn.propTypes={node:i.q7,branchSpace:r().object};var dn=o(3869),hn={};function yn(t){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(t)}function mn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vn(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?Vn(er,--Jn):0,Kn--,10===tr&&(Kn=1,Xn--),tr}function ar(){return tr=Jn2||lr(tr)>3?"":" "}function dr(t,e){for(;--e&&ar()&&!(tr<48||tr>102||tr>57&&tr<65||tr>70&&tr<97););return cr(t,sr()+(e<6&&32==ur()&&32==ar()))}function hr(t){for(;ar();)switch(tr){case t:return Jn;case 34:case 39:34!==t&&39!==t&&hr(tr);break;case 40:41===t&&hr(t);break;case 92:ar()}return Jn}function yr(t,e){for(;ar()&&t+tr!==57&&(t+tr!==84||47!==ur()););return"/*"+cr(e,Jn-1)+"*"+zn(47===t?t:ar())}function mr(t){for(;!lr(ur());)ar();return cr(t,Jn)}function vr(t,e){for(var n="",r=0;r6)switch(Vn(t,e+1)){case 109:if(45!==Vn(t,e+4))break;case 102:return Un(t,/(.+:)(.+)-([^]+)/,"$1"+Pn+"$2-$3$1"+jn+(108==Vn(t,e+3)?"$3":"$2-$3"))+t;case 115:return~$n(t,"stretch")?br(Un(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return Un(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,o,i,a,u){return In+n+":"+r+u+(o?In+n+"-span:"+(i?a:+a-+r)+u:"")+t}));case 4949:if(121===Vn(t,e+6))return Un(t,":",":"+Pn)+t;break;case 6444:switch(Vn(t,45===Vn(t,14)?18:11)){case 120:return Un(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pn+(45===Vn(t,14)?"inline-":"")+"box$3$1"+Pn+"$2$3$1"+In+"$2box$3")+t;case 100:return Un(t,":",":"+In)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Un(t,"scroll-","scroll-snap-")+t}return t}function Ar(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case Tn:return void(t.return=br(t.value,t.length,n));case Rn:return vr([rr(t,{value:Un(t.value,"@","@"+Pn)})],r);case Bn:if(t.length)return function(t,e){return t.map(e).join("")}(n=t.props,(function(e){switch(Wn(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":or(rr(t,{props:[Un(e,/:(read-\w+)/,":"+jn+"$1")]})),or(rr(t,{props:[e]})),Ln(t,{props:Yn(n,r)});break;case"::placeholder":or(rr(t,{props:[Un(e,/:(plac\w+)/,":"+Pn+"input-$1")]})),or(rr(t,{props:[Un(e,/:(plac\w+)/,":"+jn+"$1")]})),or(rr(t,{props:[Un(e,/:(plac\w+)/,In+"input-$1")]})),or(rr(t,{props:[e]})),Ln(t,{props:Yn(n,r)})}return""}))}}function wr(t){return function(t){return er="",t}(_r("",null,null,null,[""],t=function(t){return Xn=Kn=1,Qn=qn(er=t),Jn=0,[]}(t),0,[0],t))}function _r(t,e,n,r,o,i,a,u,s){for(var c=0,l=0,f=a,p=0,d=0,h=0,y=1,m=1,v=1,g=0,b="",A=o,w=i,_=r,x=b;m;)switch(h=g,g=ar()){case 40:if(108!=h&&58==Vn(x,f-1)){-1!=$n(x+=Un(fr(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=fr(g);break;case 9:case 10:case 13:case 32:x+=pr(h);break;case 92:x+=dr(sr()-1,7);continue;case 47:switch(ur()){case 42:case 47:Gn(Sr(yr(ar(),sr()),e,n,s),s);break;default:x+="/"}break;case 123*y:u[c++]=qn(x)*v;case 125*y:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+l:-1==v&&(x=Un(x,/\f/g,"")),d>0&&qn(x)-f&&Gn(d>32?Or(x+";",r,n,f-1,s):Or(Un(x," ","")+";",r,n,f-2,s),s);break;case 59:x+=";";default:if(Gn(_=xr(x,e,n,c,l,o,u,b,A=[],w=[],f,i),i),123===g)if(0===l)_r(x,e,_,_,A,i,f,u,w);else switch(99===p&&110===Vn(x,3)?100:p){case 100:case 108:case 109:case 115:_r(t,_,_,r&&Gn(xr(t,_,_,0,0,o,u,b,o,A=[],f,w),w),o,w,f,u,r?A:w);break;default:_r(x,_,_,_,[""],w,0,u,w)}}c=l=d=0,y=v=1,b=x="",f=a;break;case 58:f=1+qn(x),d=h;default:if(y<1)if(123==g)--y;else if(125==g&&0==y++&&125==ir())continue;switch(x+=zn(g),g*y){case 38:v=l>0?1:(x+="\f",-1);break;case 44:u[c++]=(qn(x)-1)*v,v=1;break;case 64:45===ur()&&(x+=fr(ar())),p=ur(),l=f=qn(b=x+=mr(sr())),g++;break;case 45:45===h&&2==qn(x)&&(y=0)}}return i}function xr(t,e,n,r,o,i,a,u,s,c,l,f){for(var p=o-1,d=0===o?i:[""],h=Zn(d),y=0,m=0,v=0;y0?d[g]+" "+b:Un(b,/&\f/g,d[g])))&&(s[v++]=A);return nr(t,e,n,0===o?Bn:u,s,c,l,f)}function Sr(t,e,n,r){return nr(t,e,n,kn,zn(tr),Hn(t,2,-2),0,r)}function Or(t,e,n,r,o){return nr(t,e,n,Tn,Hn(t,0,r),Hn(t,r+1,-1),r,o)}var Cr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Er="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ir="undefined"!=typeof window&&"HTMLElement"in window,jr=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Pr=(new Set,Object.freeze([])),kr=Object.freeze({});var Br=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Tr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Mr=/(^-|-$)/g;function Rr(t){return t.replace(Tr,"-").replace(Mr,"")}var Dr=/(a)(d)/gi,Nr=function(t){return String.fromCharCode(t+(t>25?39:97))};function zr(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Nr(e%52)+n;return(Nr(e%52)+n).replace(Dr,"$1-$2")}var Lr,Fr=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},Wr=function(t){return Fr(5381,t)};function Ur(t){return"string"==typeof t&&!0}var $r="function"==typeof Symbol&&Symbol.for,Vr=$r?Symbol.for("react.memo"):60115,Hr=$r?Symbol.for("react.forward_ref"):60112,qr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Gr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yr=((Lr={})[Hr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lr[Vr]=Gr,Lr);function Xr(t){return("type"in(e=t)&&e.type.$$typeof)===Vr?Gr:"$$typeof"in t?Yr[t.$$typeof]:qr;var e}var Kr=Object.defineProperty,Qr=Object.getOwnPropertyNames,Jr=Object.getOwnPropertySymbols,to=Object.getOwnPropertyDescriptor,eo=Object.getPrototypeOf,no=Object.prototype;function ro(t,e,n){if("string"!=typeof e){if(no){var r=eo(e);r&&r!==no&&ro(t,r,n)}var o=Qr(e);Jr&&(o=o.concat(Jr(e)));for(var i=Xr(t),a=Xr(e),u=0;u0?" Args: ".concat(e.join(", ")):""))}var po=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;t>=o;)if((o<<=1)<0)throw fo(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n,i=r;i=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t0&&(s+="".concat(t,","))})),r+="".concat(a).concat(u,'{content:"').concat(s,'"}').concat("/*!sc*/\n")},i=0;i0?".".concat(e):t},l=s.slice();l.push((function(t){t.type===Bn&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(ko,n).replace(r,c))})),a.prefix&&l.push(Ar),l.push(gr);var f=function(t,o,i,u){void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u="&"),e=u,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=t.replace(Bo,""),c=wr(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(c=To(c,a.namespace));var f,p,d,h=[];return vr(c,(f=l.concat((d=function(t){return h.push(t)},function(t){t.root||(t=t.return)&&d(t)})),p=Zn(f),function(t,e,n,r){for(var o="",i=0;i="A"&&t<="Z"};function $o(t){for(var e="",n=0;n>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}r=ao(r,i),this.staticRulesId=i}else{for(var u=Fr(this.baseHash,n.hash),s="",c=0;c>>0);e.hasNameForId(this.componentId,p)||e.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=ao(r,p)}}return r},t}(),Xo=e().createContext(void 0);Xo.Consumer;var Ko={};function Qo(n,r,o){var i=io(n),a=n,u=!Ur(n),s=r.attrs,c=void 0===s?Pr:s,l=r.componentId,f=void 0===l?function(t,e){var n="string"!=typeof t?"sc":Rr(t);Ko[n]=(Ko[n]||0)+1;var r="".concat(n,"-").concat(function(t){return zr(Wr(t)>>>0)}("6.1.0"+n+Ko[n]));return e?"".concat(e,"-").concat(r):r}(r.displayName,r.parentComponentId):l,p=(void 0===r.displayName&&function(t){Ur(t)?"styled.".concat(t):"Styled(".concat(function(t){return t.displayName||t.name||"Component"}(t),")")}(n),r.displayName&&r.componentId?"".concat(Rr(r.displayName),"-").concat(r.componentId):r.componentId||f),d=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,h=r.shouldForwardProp;if(i&&a.shouldForwardProp){var y=a.shouldForwardProp;if(r.shouldForwardProp){var m=r.shouldForwardProp;h=function(t,e){return y(t,e)&&m(t,e)}}else h=y}var v=new Yo(o,p,i?a.componentStyle:void 0),g=e().forwardRef((function(n,r){return function(n,r,o){var i=n.attrs,a=n.componentStyle,u=n.defaultProps,s=n.foldedComponentIds,c=n.styledComponentId,l=n.target,f=e().useContext(Xo),p=Lo(),d=n.shouldForwardProp||p.shouldForwardProp,h=function(t,e,n){for(var r,o=Sn(Sn({},e),{className:void 0,theme:n}),i=0;i2&&Po.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)}}(),function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=xo(),r=uo([n&&'nonce="'.concat(n,'"'),"".concat(Er,'="true"'),"".concat("data-styled-version",'="').concat("6.1.0",'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(t.sealed)throw fo(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw fo(2);var r=((n={})[Er]="",n["data-styled-version"]="6.1.0",n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=xo();return o&&(r.nonce=o),[e().createElement("style",Sn({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new Po({isServer:!0}),this.sealed=!1}t.prototype.collectStyles=function(t){if(this.sealed)throw fo(2);return e().createElement(Fo,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw fo(3)}}(),"__sc-".concat(Er,"__");var ai,ui,si=ii.span(ri||(ai=["\n &:before {\n color: ",";\n position: absolute;\n left: 0;\n content: '","';\n};\n"],ui||(ui=ai.slice(0)),ri=Object.freeze(Object.defineProperties(ai,{raw:{value:Object.freeze(ui)}}))),(function(t){return t.color}),(function(t){return t.content}));function ci(t){var n=t.value,r=(0,Z.rV)().state,o=(0,W.oF)(),i="UNKNOWN FILTER",a="?",u="#123123";return"Node"===n._type&&(a="{}",u=o.primary,i=(0,w.jZ)(r.show_all?n.atoms:n.diff)),"Signature"===n._type&&(a=" /",u=o.primary,i="".concat(n.name,"/").concat(n.args)),"Transformation"===n._type&&(a=":-",u=o.primary,i=(0,w._5)(n.rules)),e().createElement(si,{color:u,content:a},i)}function li(t){var n=t.onClose,r=(0,W.oF)();return e().createElement("span",{style:{color:r.light},className:"close",onClick:n},"X")}ci.propTypes={value:r().oneOfType([i.jK,i.f8,i.b6])},r().oneOfType([i.jK,i.f8,i.b6]),r().bool,r().func,li.propTypes={onClose:r().func},r().oneOfType([i.f8,i.b6,i.jK]);var fi=o(4057),pi={};function di(t){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(t)}function hi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yi(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?i:null)}Ci.propTypes={id:r().string};var Ei=o(1569),Ii=o(4405);function ji(t){return(0,Ii.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"}}]})(t)}function Pi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ki(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ki(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ki(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0,m=e().useRef(null);return e().createElement("div",{className:"graph_container",ref:m},e().createElement(gi,{transform:o}),e().createElement(t.Suspense,{fallback:e().createElement("div",null,"Loading...")},e().createElement(bt,null)),e().createElement(Di(),{ref:d,itemKey:"hash",template:on,list:u,onMoveEnd:function(t,e,n,r){c.lower_bound<=r&&r<=c.upper_bound&&(h(),f(n,r)),l((0,q.O7)(null))},container:function(){return r.current},autoScrollRegionSize:200,padding:0,unsetZIndex:!0,commonProps:{transform:o}}),y?e().createElement(bn,{transform:o}):null,0===p.length?null:e().createElement(Ci,null),0===u.length?null:e().createElement(wi,null))}function Hi(t){var n=t.notifyDash,r=(0,Z.rV)().backendURL,o=Ui((0,Ei.y_)(),2)[1],i=(e().useRef(r),e().useRef(o),yt().setAnimationState),a=e().useRef(i),u=Ui(e().useState(!1),2),s=u[0],c=u[1],l=Ui(e().useState({scale:1,translation:{xMin:0,xMax:0}}),2),f=l[0],p=l[1],d=Ui(e().useState({translation:{x:0,y:0},scale:1}),2),h=d[0],y=d[1],m=e().useRef(null);e().useEffect((function(){var t=a.current;return t((function(t){return Wi(Wi({},t),{},{graph_zoom:{translation:{x:0,y:0},scale:1}})})),function(){t((function(t){return t.graph_zoom,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Li)}))}}),[]),e().useEffect((function(){var t=function(t){console.log(t.key),t.key===le.mZ&&c(!0)},e=function(t){t.key===le.mZ&&c(!1)};return window.addEventListener("keydown",t),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",t),window.removeEventListener("keyup",e)}}),[]);var v=(0,G.J)().shownDetail,g=e().useRef(null),b=e().useCallback((function(){null===v&&null!==g.current&&y((function(t){var e=m.current.clientWidth*t.scale,n=m.current.clientWidth-t.translation.x-e;return n<=0?Wi({},t):t.scale<1?{scale:1,translation:Wi(Wi({},t),{},{x:0})}:Wi(Wi({},t),{},{translation:Wi(Wi({},t.translation),{},{x:t.translation.x+n})})})),null!==v&&null===g.current&&y((function(t){var e=m.current.clientWidth*t.scale-m.current.clientWidth+t.translation.x;return 1===t.scale||e>=le.Jk*m.current.clientWidth?Wi({},t):Wi(Wi({},t),{},{translation:Wi(Wi({},t.translation),{},{x:t.translation.x-le.Ft*m.current.clientWidth-e})})})),g.current=v}),[y,v]);e().useEffect((function(){b()}),[v,b]);var A=e().useCallback((function(){y((function(t){var e=m.current.clientWidth,n=null===v?0:le.Ft*e,r=e*t.scale;return f.translation.xMin+t.translation.x>=le.Jk*e?Wi({},t):Wi(Wi({},t),{},{translation:Wi(Wi({},t.translation),{},{x:e-r-n})})}))}),[v,f]),w=e().useMemo((function(){return ce()(A,le.aO)}),[A]);ue(m,w);var _=Ui(e().useState(0),2),x=_[0],S=_[1];return e().useEffect((function(){var t=m.current,e=function(t){S(t.target.scrollTop)};return t&&t.addEventListener("scroll",e),function(){t&&t.removeEventListener("scroll",e)}}),[m]),e().useEffect((function(){i((function(t){return Wi(Wi({},t),{},{graph_zoom:Wi(Wi({},t.graph_zoom),{},{translation:{x:h.translation.x,y:x}})})}))}),[h,x,i]),e().createElement(e().Fragment,null,e().createElement("div",{className:"content",id:"content",ref:m},e().createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}},e().createElement(Ni.MapInteraction,{minScale:f.scale,value:h,onChange:function(t){return function(t){var e=t.scale;if(s){var n=Wi({},t.translation),r=e,o=m.current.clientWidth,i=o*r,a=null===v?0:le.Ft*o;p({scale:null===v?1:1-le.Ft,translation:{xMax:0,xMin:o-i-a}}),y((function(){return n.xf.translation.xMax&&(n.x=f.translation.xMax),r{var t,e,n={3979:(t,e,n)=>{"use strict";n.d(e,{K:()=>O});var r=n(9196),o=n.n(r),i=n(4781),a=n(3379),u=n.n(a),s=n(7795),c=n.n(s),l=n(569),f=n.n(l),p=n(3565),d=n.n(p),h=n(9216),y=n.n(h),m=n(4589),v=n.n(m),g=n(8061),b={};b.styleTagTransform=v(),b.setAttributes=d(),b.insert=f().bind(null,"head"),b.domAPI=c(),b.insertStyleElement=y(),u()(g.Z,b),g.Z&&g.Z.locals&&g.Z.locals;var A=n(9064),w=n.n(A),_=(n(1569),n(7217)),x=(n(2622),n(1087),n(4800));n(4405);function S(t){var e=t.symbol,n=(0,_.oF)();return o().createElement("span",{className:"detail_atom_view_content",style:{backgroundColor:n.light,color:n.dark}},(0,i.jZ)(e))}function O(){return parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--detail-open-width"))/100}S.propTypes={symbol:x.QT},x.jK,w().arrayOf(x.QT),w().func},3927:(t,e,n)=>{"use strict";n.d(e,{Oq:()=>o,Hb:()=>b,tt:()=>w,R4:()=>A,aO:()=>a,mZ:()=>i,Jk:()=>u,Ft:()=>s,I$:()=>d,n1:()=>m,qd:()=>p,PM:()=>g,Wn:()=>c,cP:()=>l,iw:()=>h,qH:()=>y,cp:()=>v});var r=n(3979),o=150,i="Shift",a=50,u=.05,s=(0,r.K)(),c=30,l=.01,f=n(4781),p=.8,d=(0,f.Q2)(.7),h=3e3,y=1e3,m=(0,f.Q2)(2.5),v=(0,f.Q2)(5.7),g=(0,f.Q2)(.1),b=40,A=38,w=13},7217:(t,e,n)=>{"use strict";n.d(e,{WK:()=>l,dG:()=>s,oF:()=>c});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i),u=n(4800),s=o().createContext([]),c=function(){return o().useContext(s)},l=function(t){var e=t.children,n=t.colorPalette;return o().createElement(s.Provider,{value:n},e)};l.propTypes={children:a().element,colorPalette:u.Uk}},4078:(t,e,n)=>{"use strict";n.d(e,{$:()=>A,w:()=>b});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i),u=n(1087),s=n(7217),c=n(1569),l=n(3927);function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function d(t,e,n){return(e=function(t){var e=function(t,e){if("object"!==f(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===f(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function h(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0?s[e].push(h):s[e]=[h]}else a.splice(f,1),u[e]&&delete u[e],s[e]&&(s[e]=s[e].map((function(t){return t.color===n&&(t.markedForDeletion=!0,t.markedForInsertion=!1),t})));y(a.map((function(t){return JSON.parse(t)}))),S(s),w(u),setTimeout((function(){w((function(t){var n=function(t){for(var e=1;e{"use strict";n.d(e,{DS:()=>p,mu:()=>v,rV:()=>m});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{"use strict";n.d(e,{$:()=>l,J:()=>c});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i);function u(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n{"use strict";n.d(e,{Dl:()=>b,x2:()=>y,y_:()=>g});var r=n(9196),o=n.n(r),i=n(9064),a=n.n(i),u=n(1087);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:p,e=arguments.length>1?arguments[1]:void 0;return e.type===d?f(f({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"error"})}):e.type===h?f(f({},t),{},{activeMessages:t.activeMessages.concat({text:e.text,level:"warn"})}):f({},t)},v=o().createContext([]),g=function(){return o().useContext(v)},b=function(t){var e,n,r=t.children,i=(e=o().useReducer(m,p),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(e,n)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],s=i[1],l=(0,u.rV)().backendURL,f=o().useRef(l);return o().useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("control/warnings"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(f.current).catch((function(t){y("Failed to get transformations: ".concat(t))})).then((function(e){t&&e.map((function(t){return"FAILURE"===(e=t).reason.value?{type:d,text:"The program contains a rule that will cause false behaviour! Remove/Rephrase the following rule: ".concat(e.ast)}:"relaxer"===e.reason.value?{type:h,text:e.message}:{type:h,text:"The program contains a rule that is not supported! The graph shown might be faulty! ".concat(e.ast)};var e})).map((function(t){return s(t)}))})),function(){return t=!1}}),[]),o().createElement(v.Provider,{value:[a,s]},r)};b.propTypes={children:a().element}},714:(t,e,n)=>{"use strict";n.d(e,{Cf:()=>O,KT:()=>W,O7:()=>S,Qx:()=>N,WK:()=>Y,Wp:()=>H,Z3:()=>U,oA:()=>J,oB:()=>M,p6:()=>Q,rl:()=>$,vi:()=>X});var r=n(9196),o=n.n(r),i=n(1569),a=n(1087),u=n(9064),s=n.n(u),c=n(4781);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||d(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t){return function(t){if(Array.isArray(t))return h(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||d(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 d(t,e){if(t){if("string"==typeof t)return h(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(t,e):void 0}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:g,i=arguments.length>1?arguments[1]:void 0;if("APP/TRANSFORMATIONS/ADD"===i.type)return m(m({},o),{},{transformations:o.transformations.concat(m(m({},i.t),{},{rules:i.t.rules.str_.map((function(t){return{_type:"RuleWrapper",rule:t,highlight:!1}})),shown:!0,isExpandableV:!1,isCollapsibleV:!1,allNodesShowMini:!1}))});if(i.type===b)return m(m({},o),{},{transformations:i.ts.map((function(t){return m(m({},t),{},{rules:t.rules.str_.map((function(e,n){return{_type:"RuleWrapper",rule:e,hash:t.rules.hash[n]}})),shown:!0,isExpandableV:!1,isCollapsibleV:!1,allNodesShowMini:!1})}))});if(i.type===z)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(t=o.transformationNodesMap[i.tid])||void 0===t?void 0:t.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandableV:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandableV:i.v}):t}))}):t}))))}):o;if(i.type===L)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(e=o.transformationNodesMap[i.tid])||void 0===e?void 0:e.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isCollapsibleV:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isCollapsibleV:i.v}):t}))}):t}))))}):o;if(i.type===F)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(n=o.transformationNodesMap[i.tid])||void 0===n?void 0:n.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandVAllTheWay:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{isExpandVAllTheWay:i.v}):t}))}):t}))))}):o;if(i.type===V)return o.transformationNodesMap&&null!==i.tid?m(m({},o),{},{transformationNodesMap:m(m({},o.transformationNodesMap),{},v({},i.tid,null===(r=o.transformationNodesMap[i.tid])||void 0===r?void 0:r.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{showMini:i.v}):t.recursive?m(m({},t),{},{recursive:t.recursive.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{showMini:i.v}):t}))}):t}))))}):o;if(i.type===A)return m(m({},o),{},{transformations:[]});if(i.type===T)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id!==i.t.id?m(m({},t),{},{shown:!1}):m(m({},t),{},{shown:!0})}))});if("APP/TRANSFORMATIONS/SHOW"===i.type)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id===i.t.id?m(m({},t),{},{shown:!0}):t}))});if("APP/TRANSFORMATIONS/HIDE"===i.type)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id===i.t.id?m(m({},t),{},{shown:!1}):t}))});if("APP/TRANSFORMATIONS/TOGGLE"===i.type)return m(m({},o),{},{transformations:o.transformations.map((function(t){return t.id===i.t.id?m(m({},t),{},{shown:!t.shown}):t}))});if(i.type===w){var a=p(o.transformations),u=f(a.splice(i.oldIndex,1),1)[0];a.splice(i.newIndex,0,u),a=a.map((function(t,e){return m(m({},t),{},{id:e})}));var s=Object.values(o.transformationNodesMap),l=f(s.splice(i.oldIndex,1),1)[0];return s.splice(i.newIndex,0,l),s=s.reduce((function(t,e,n){return t[e]=Object.values(s)[n],t}),{}),m(m({},o),{},{transformations:a,transformationNodesMap:s})}if(i.type===C)return m(m({},o),{},{currentSort:i.s});if(i.type===E)return m(m({},o),{},{currentSort:i.s});if(i.type===I)return m(m({},o),{},{transformationNodesMap:i.nodesRes.reduce((function(t,e,n){return t[i.t[n].id]=e.map((function(t){return m(m({},t),{},{recursive:t.recursive.map((function(t){return m(m({},t),{},{loading:!1,shownRecursion:!1,isExpandableV:!1,isCollapsibleV:!1,isExpandVAllTheWay:!1,showMini:!1})})),loading:!1,shownRecursion:!1,isExpandableV:!1,isCollapsibleV:!1,isExpandVAllTheWay:!1,showMini:!1})})),t}),{})});if(i.type===j)return null===o.transformationNodesMap?m(m({},o),{},{transformationNodesMap:o.transformations.map((function(t){return(0,c.Sy)()}))}):m(m({},o),{},{transformationNodesMap:Object.keys(o.transformationNodesMap).reduce((function(t,e){return t[e]=(0,c.Sy)(o.transformationNodesMap[e]),t}),{})});if(i.type===q)return m(m({},o),{},{clingraphGraphics:i.g.map((function(t,e){t.loading=!1,t.showMini=!1;var n=Math.max.apply(Math,p(Object.keys(o.transformationNodesMap).map((function(t){return parseInt(t,10)}))));return t.space_multiplier=o.transformationNodesMap[n][e].space_multiplier,t}))});if(i.type===Z)return null===o.clingraphGraphics?m({},o):m(m({},o),{},{clingraphGraphics:(0,c.oz)(o.clingraphGraphics)});if(i.type===G)return m(m({},o),{},{clingraphGraphics:o.clingraphGraphics.map((function(t){return t.uuid===i.uuid?m(m({},t),{},{showMini:i.v}):t}))});if(i.type===_)return m(m({},o),{},{transformationDropIndices:i.t});if(i.type===x)return null!==i.tid?m(m({},o),{},{transformations:o.transformations.map((function(t){var e,n,r;return t.id===i.tid&&(t.isExpandableV=null===(e=o.transformationNodesMap[i.tid])||void 0===e?void 0:e.some((function(t){return t.isExpandableV})),t.isCollapsibleV=null===(n=o.transformationNodesMap[i.tid])||void 0===n?void 0:n.some((function(t){return t.isCollapsibleV})),t.allNodesShowMini=null===(r=o.transformationNodesMap[i.tid])||void 0===r?void 0:r.every((function(t){return t.showMini}))),t}))}):o;if(i.type===k)return m(m({},o),{},{edges:i.e});if(i.type===B)return m(m({},o),{},{edges:[]});if(i.type===R){var d=p(o.shownRecursion);d.includes(i.n)?d=d.filter((function(t){return t!==i.n})):d.push(i.n);var h=Object.keys(o.transformationNodesMap).reduce((function(t,e){return t[e]=o.transformationNodesMap[e].map((function(t){return t.uuid===i.n?m(m({},t),{},{shownRecursion:!t.shownRecursion}):t})),t}),{});return m(m({},o),{},{transformationNodesMap:h,shownRecursion:d})}return i.type===D?m(m({},o),{},{shownRecursion:[]}):m({},o)},Q=function(t){var e=t.children,n=f((0,i.y_)(),2)[1],r=(0,a.rV)().backendURL,u=f(o().useReducer(K,g),2),s=u[0],c=u[1],l=o().useRef(r),d=o().useRef(n),h=function(t,e){(function(t,e,n){return fetch("".concat(n("graph/edges")),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({shownRecursion:t,usingClingraph:e})}).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))})(t,e,l.current).catch((function(t){d.current((0,i.x2)("Failed to get edges: ".concat(t)))})).then((function(t){c({type:k,e:t})}))},y=function(t){(function(t){return fetch("".concat(t("graph/sorts"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))})(l.current).catch((function(t){d.current((0,i.x2)("Failed to get transformations: ".concat(t)))})).then((function(e){c({type:A}),c({type:b,ts:e}),function(t){c(P()),c({type:Z});var e=t.map((function(t){return{id:t.id,hash:t.hash}})),n=e.map((function(t){return function(t,e){return fetch("".concat(e("graph/children"),"/").concat(t)).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))}(t.hash,l.current)}));return n.push(function(t){return fetch("".concat(t("graph/facts"))).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))}(l.current)),e.push({id:-1}),n.push(function(t){return fetch("".concat(t("clingraph/children"))).then((function(t){if(!t.ok)throw new Error("".concat(t.status," ").concat(t.statusText));return t.json()}))}(l.current)),Promise.all(n)}(e).catch((function(t){d.current((0,i.x2)("Failed to get nodes: ".concat(t)))})).then((function(n){var r=n.slice(0,n.length-1),o=n[n.length-1],i=[].concat(p(e.map((function(t){return{id:t.id}}))),[{id:-1}]);c(function(t,e){return{type:I,nodesRes:t,t:e}}(r,i)),c({type:q,g:o}),h(t,o.length>0)}))}))},m=o().useRef(y);return o().useEffect((function(){var t=!0;return function(t){return fetch("".concat(t("graph/current"))).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(l.current).catch((function(t){d.current((0,i.x2)("Failed to get dependency sorts: ".concat(t)))})).then((function(e){t&&c({type:C,s:e})})),m.current([]),function(){t=!1}}),[]),o().createElement(X.Provider,{value:{state:s,dispatch:c,setSortAndFetchGraph:function(t,e){c({type:B}),c(P()),c(function(t,e){return{type:w,oldIndex:t,newIndex:e}}(t,e)),c({type:D}),function(t,e,n){return fetch("".concat(t("graph/sorts")),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({moved_transformation:{old_index:e,new_index:n}})}).then((function(t){if(t.ok)return t.json();throw new Error(t.statusText)}))}(l.current,t,e).catch((function(t){d.current((0,i.x2)("Failed to set new current graph: ".concat(t)))})).then((function(t){var e;t&&t.hash&&c((e=t.hash,{type:E,s:e})),y(s.shownRecursion,s.clingraphGraphics.length)}))},reloadEdges:h}},e)},J=function(){return o().useContext(X)};Q.propTypes={children:s().element}},4800:(t,e,n)=>{"use strict";n.d(e,{KA:()=>f,QT:()=>i,Uk:()=>h,WY:()=>y,b6:()=>p,ex:()=>a,f8:()=>l,jK:()=>u,q7:()=>d,vG:()=>c});var r=n(9064),o=n.n(r),i=o().exact({_type:o().oneOf(["Function"]),arguments:o().array,name:o().string,positive:o().bool}),a=o().exact({_type:o().oneOf(["SymbolIdentifier"]),symbol:i,has_reason:o().bool,uuid:o().string}),u=o().exact({_type:o().oneOf(["Signature"]),name:o().string,args:o().number}),s=o().exact({_type:o().oneOf(["RuleContainer"]),ast:o().arrayOf(o().string),str_:o().arrayOf(o().string)}),c=o().exact({_type:o().oneOf(["RuleWrapper"]),rule:o().string,hash:o().string}),l=o().exact({_type:o().oneOf(["Transformation"]),id:o().number,rules:s,adjacent_sort_indices:o().exact({lower_bound:o().number,upper_bound:o().number}),hash:o().string}),f=o().exact({_type:o().oneOf(["Transformation"]),id:o().number,rules:o().arrayOf(c),adjacent_sort_indices:o().exact({lower_bound:o().number,upper_bound:o().number}),hash:o().string,shown:o().bool,isExpandableV:o().bool,isCollapsibleV:o().bool,allNodesShowMini:o().bool}),p=(o().exact({_type:o().oneOf(["Graph"]),_graph:o().object}),o().exact({_type:o().oneOf(["Node"]),atoms:o().array,diff:o().array,rule_nr:o().number,reason:o().object,reason_rules:o().object,recursive:o().oneOfType([o().bool,o().array]),space_multiplier:o().number,uuid:o().string,loading:o().bool,shownRecursion:o().bool,isExpandableV:o().bool,isCollapsibleV:o().bool,isExpandVAllTheWay:o().bool,showMini:o().bool})),d=o().exact({_type:o().oneOf(["ClingraphNode"]),uuid:o().string,loading:o().bool,space_multiplier:o().number,showMini:o().bool}),h=(o().exact({_type:o().oneOf(["Box"]),uuid:o().string}),o().exact({primary:o().string,light:o().string,dark:o().string,warn:o().string,error:o().string,infoBackground:o().string,rowShading:o().arrayOf(o().string),explanationHighlights:o().arrayOf(o().string)})),y=o().exact({scale:o().number,translation:o().shape({x:o().number,y:o().number})})},4781:(t,e,n)=>{"use strict";n.d(e,{Q2:()=>d,Sy:()=>l,_5:()=>c,_d:()=>p,jZ:()=>s,oz:()=>f});var r=n(4586);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?"".concat(t.name,"(").concat(e,")"):"".concat(t.name);case"SymbolIdentifier":return s(t.symbol);case"String":return'"'.concat(t.string,'"');default:throw new TypeError("Unimplemented type ".concat(t._type))}}function c(t){return t.join(" ")}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(t.length>0)return t.map((function(t,e){return u(u({},t),{},{loading:!0})}));for(var e=[],n=Math.floor(2*Math.random())+1,o=Math.floor(20*Math.random())+3,i=0;i0&&void 0!==arguments[0]?arguments[0]:[];if(t.length>0)return t.map((function(t,e){return u(u({},t),{},{uuid:"".concat(t.uuid),loading:!0})}));for(var e=[],n=Math.floor(2*Math.random())+1,o=0;o=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return u=t.done,t},e:function(t){s=!0,a=t},f:function(){try{u||null==n.return||n.return()}finally{if(s)throw a}}}}(t.children);try{for(r.s();!(n=r.n()).done;){var o=p(n.value,e);if(o)return o}}catch(t){r.e(t)}finally{r.f()}return null}function d(t){return t*parseFloat(getComputedStyle(document.documentElement).fontSize)}},1564:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".box_border {\n border-radius: 1px 1px 1px 1px;\n border: 2px solid;\n margin: 25px 5px 15px 5px;\n position: relative;\n}\n\n\n.highlighted_box {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 2px #333);\n}\n","",{version:3,sources:["webpack://./src/lib/components/box.css"],names:[],mappings:"AAAA;IACI,8BAA8B;IAC9B,iBAAiB;IACjB,yBAAyB;IACzB,kBAAkB;AACtB;;;AAGA;IACI,2BAA2B;IAC3B,iCAAiC;AACrC",sourcesContent:[".box_border {\n border-radius: 1px 1px 1px 1px;\n border: 2px solid;\n margin: 25px 5px 15px 5px;\n position: relative;\n}\n\n\n.highlighted_box {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 2px #333);\n}\n"],sourceRoot:""}]);const u=a},3869:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".boxrow_container {\n justify-content: space-around;\n background: transparent;\n box-sizing: border-box;\n position: relative;\n z-index: 3;\n}\n\n.boxrow_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}","",{version:3,sources:["webpack://./src/lib/components/boxrow.css"],names:[],mappings:"AAAA;IACI,6BAA6B;IAC7B,uBAAuB;IACvB,sBAAsB;IACtB,kBAAkB;IAClB,UAAU;AACd;;AAEA;IACI,aAAa;IACb,6BAA6B;IAC7B,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;AACpB",sourcesContent:[".boxrow_container {\n justify-content: space-around;\n background: transparent;\n box-sizing: border-box;\n position: relative;\n z-index: 3;\n}\n\n.boxrow_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}"],sourceRoot:""}]);const u=a},8061:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,":root {\n --detail-open-width: 20%;\n}\n\n.detail {\n float: right;\n height: 100vh;\n box-shadow: -1px -1px 2px 1px rgba(0, 0, 0, .2);\n font-family: monospace;\n transition: width 0.2s;\n width: 0;\n position: fixed;\n z-index: 20;\n top: 0;\n right: 0;\n overflow-y: auto;\n}\n\n.detail-open {\n width: var(--detail-open-width);\n}\n\n@media screen and (max-height: 450px) {\n .detail-column {\n padding-top: 15px;\n }\n}\n\n.detail_atom_view_heading {\n font-family: monospace, sans-serif;\n overflow: hidden;\n font-size: 11pt;\n text-align: left;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n\n\n.detail_atom_view_content {\n width: fit-content;\n padding: 5px;\n margin: 5px;\n border-radius: 0.7em;\n}\n\n.detail_atom_view_content_container {\n display: flex;\n flex-wrap: wrap;\n}\n\n.closeButton {\n font-size: 24pt;\n cursor: pointer;\n}\n","",{version:3,sources:["webpack://./src/lib/components/detail.css"],names:[],mappings:"AAAA;IACI,wBAAwB;AAC5B;;AAEA;IACI,YAAY;IACZ,aAAa;IACb,+CAA+C;IAC/C,sBAAsB;IACtB,sBAAsB;IACtB,QAAQ;IACR,eAAe;IACf,WAAW;IACX,MAAM;IACN,QAAQ;IACR,gBAAgB;AACpB;;AAEA;IACI,+BAA+B;AACnC;;AAEA;IACI;QACI,iBAAiB;IACrB;AACJ;;AAEA;IACI,kCAAkC;IAClC,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,SAAS;IACT,UAAU;IACV,eAAe;AACnB;;;AAGA;IACI,kBAAkB;IAClB,YAAY;IACZ,WAAW;IACX,oBAAoB;AACxB;;AAEA;IACI,aAAa;IACb,eAAe;AACnB;;AAEA;IACI,eAAe;IACf,eAAe;AACnB",sourcesContent:[":root {\n --detail-open-width: 20%;\n}\n\n.detail {\n float: right;\n height: 100vh;\n box-shadow: -1px -1px 2px 1px rgba(0, 0, 0, .2);\n font-family: monospace;\n transition: width 0.2s;\n width: 0;\n position: fixed;\n z-index: 20;\n top: 0;\n right: 0;\n overflow-y: auto;\n}\n\n.detail-open {\n width: var(--detail-open-width);\n}\n\n@media screen and (max-height: 450px) {\n .detail-column {\n padding-top: 15px;\n }\n}\n\n.detail_atom_view_heading {\n font-family: monospace, sans-serif;\n overflow: hidden;\n font-size: 11pt;\n text-align: left;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n\n\n.detail_atom_view_content {\n width: fit-content;\n padding: 5px;\n margin: 5px;\n border-radius: 0.7em;\n}\n\n.detail_atom_view_content_container {\n display: flex;\n flex-wrap: wrap;\n}\n\n.closeButton {\n font-size: 24pt;\n cursor: pointer;\n}\n"],sourceRoot:""}]);const u=a},9397:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".dragHandle {\n visibility: hidden;\n cursor: move;\n padding-left: 10px;\n width: 20px;\n height: 16px;\n position: absolute;\n z-index: 8;\n margin-top: -5px;\n}\n\n.row_container:hover .dragHandle {\n visibility: visible;\n}","",{version:3,sources:["webpack://./src/lib/components/draghandle.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,UAAU;IACV,gBAAgB;AACpB;;AAEA;IACI,mBAAmB;AACvB",sourcesContent:[".dragHandle {\n visibility: hidden;\n cursor: move;\n padding-left: 10px;\n width: 20px;\n height: 16px;\n position: absolute;\n z-index: 8;\n margin-top: -5px;\n}\n\n.row_container:hover .dragHandle {\n visibility: visible;\n}"],sourceRoot:""}]);const u=a},4057:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".facts_banner{\n padding-top: 0;\n}","",{version:3,sources:["webpack://./src/lib/components/facts.css"],names:[],mappings:"AAAA;IACI,cAAc;AAClB",sourcesContent:[".facts_banner{\n padding-top: 0;\n}"],sourceRoot:""}]);const u=a},5551:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,'body {\n margin: 0;\n flex-flow: column;\n overflow: hidden;\n}\n\n.content {\n height: 100vh;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.graph {\n height: 100vh;\n width: 100vw;\n overflow: auto;\n}\n\n.noselect {\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Old versions of Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n /* Non-prefixed version, currently\n supported by Chrome, Edge, Opera and Firefox */\n}\n\n.user_message {\n width: fit-content;\n width: -moz-fit-content;\n padding: 10px;\n margin: 10px;\n border-radius: 5px 5px 5px 5px;\n font-family: sans-serif;\n filter: drop-shadow(.1em .1em .14em #3333338c);\n}\n\n.user_message_list {\n position: fixed;\n left: 0;\n top: 0;\n z-index: 99;\n}\n\n.alert-shown {\n opacity: 1;\n transition: all 250ms linear;\n}\n\n.alert-hidden {\n opacity: 0;\n transition: all 250ms linear 2s;\n}\n\n.txt-elem {\n font-family: "Monaco", monospace;\n font-size: 12pt;\n}',"",{version:3,sources:["webpack://./src/lib/components/main.css"],names:[],mappings:"AAAA;IACI,SAAS;IACT,iBAAiB;IACjB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,YAAY;IACZ,cAAc;AAClB;;AAEA;IACI,2BAA2B,EAAE,eAAe;IAC5C,yBAAyB,EAAE,WAAW;IACtC,wBAAwB,EAAE,mBAAmB;IAC7C,sBAAsB,EAAE,4BAA4B;IACpD,qBAAqB,EAAE,2BAA2B;IAClD,iBAAiB;IACjB;mFAC+E;AACnF;;AAEA;IACI,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,YAAY;IACZ,8BAA8B;IAC9B,uBAAuB;IACvB,8CAA8C;AAClD;;AAEA;IACI,eAAe;IACf,OAAO;IACP,MAAM;IACN,WAAW;AACf;;AAEA;IACI,UAAU;IACV,4BAA4B;AAChC;;AAEA;IACI,UAAU;IACV,+BAA+B;AACnC;;AAEA;IACI,gCAAgC;IAChC,eAAe;AACnB",sourcesContent:['body {\n margin: 0;\n flex-flow: column;\n overflow: hidden;\n}\n\n.content {\n height: 100vh;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.graph {\n height: 100vh;\n width: 100vw;\n overflow: auto;\n}\n\n.noselect {\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Old versions of Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n /* Non-prefixed version, currently\n supported by Chrome, Edge, Opera and Firefox */\n}\n\n.user_message {\n width: fit-content;\n width: -moz-fit-content;\n padding: 10px;\n margin: 10px;\n border-radius: 5px 5px 5px 5px;\n font-family: sans-serif;\n filter: drop-shadow(.1em .1em .14em #3333338c);\n}\n\n.user_message_list {\n position: fixed;\n left: 0;\n top: 0;\n z-index: 99;\n}\n\n.alert-shown {\n opacity: 1;\n transition: all 250ms linear;\n}\n\n.alert-hidden {\n opacity: 0;\n transition: all 250ms linear 2s;\n}\n\n.txt-elem {\n font-family: "Monaco", monospace;\n font-size: 12pt;\n}'],sourceRoot:""}]);const u=a},2273:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".set_container {\n width: fit-content;\n position: relative;\n line-height: 18pt;\n min-height: 18pt;\n cursor: pointer;\n}\n\n.node_border {\n border-radius: 0.7em;\n border: 1pt solid;\n margin: 12pt 3% 12pt 3%;\n position: relative;\n height: max-content;\n overflow: hidden;\n}\n\n.mouse_over_shadow:hover {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.highlighted_node {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.bauchbinde {\n bottom: 0;\n left: 0;\n right: 0;\n /* padding-top: 1em; */\n /* margin-top: 1em; */\n background-color: transparent;\n /* cursor: pointer; */\n}\n\n.bauchbinde_text {\n position: relative;\n text-align: center;\n overflow: hidden;\n}\n\n.set_too_high {\n /* overflow-y: hidden; */\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 2.5em;\n min-height: 2.5em;\n}\n\n.set_value {\n width: fit-content;\n margin: .38em 1em .5em 1em;\n\n position: relative;\n flex: 0 0 auto;\n display: flex;\n flex-flow: row wrap;\n justify-content: center;\n align-items: center;\n}\n\n\n\n.mini {\n text-align: center;\n vertical-align: middle;\n width: fit-content;\n height: fit-content;\n /* font-size: 12pt; */\n min-width: .57em;\n cursor: pointer;\n min-height: .57em;\n}\n\n.recursion_button{\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.recursion_button:hover {\n box-shadow: 0 .28em .57em 0 rgba(0, 0, 0, 0.2), 0 .43em .71em 0 rgba(0, 0, 0, 0.2);\n transition: .3s ease-in-out;\n -moz-transition: .3s ease-in-out;\n -webkit-transition: .3s ease-in-out;\n}\n\n.recursion_button_text{\n cursor: pointer;\n font-size: 1pt;\n font-weight: bold;\n border-radius: 0em .57em 0em .28em;\n padding: 1px;\n vertical-align: middle;\n text-align: center;\n width: auto;\n}\n\n@keyframes loading {\n 0% {\n background-position: -200em 0;\n }\n\n 100% {\n background-position: calc(200em + 100%) 0;\n }\n}\n\n.loading {\n background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);\n background-size: 200em 100%;\n border-radius: 0.8em;\n animation: loading 1.5s infinite;\n}\n\n.hidden {\n visibility: hidden\n}\n\n.rotate_icon {\n transform: rotate(180deg);\n}","",{version:3,sources:["webpack://./src/lib/components/node.css"],names:[],mappings:"AAAA;IACI,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,eAAe;AACnB;;AAEA;IACI,oBAAoB;IACpB,iBAAiB;IACjB,uBAAuB;IACvB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;AACpB;;AAEA;IACI,2BAA2B;IAC3B,mCAAmC;AACvC;;AAEA;IACI,2BAA2B;IAC3B,mCAAmC;AACvC;;AAEA;IACI,SAAS;IACT,OAAO;IACP,QAAQ;IACR,sBAAsB;IACtB,qBAAqB;IACrB,6BAA6B;IAC7B,qBAAqB;AACzB;;AAEA;IACI,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,wBAAwB;IACxB,aAAa;IACb,uBAAuB;IACvB,mBAAmB;IACnB,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,kBAAkB;IAClB,0BAA0B;;IAE1B,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,uBAAuB;IACvB,mBAAmB;AACvB;;;;AAIA;IACI,kBAAkB;IAClB,sBAAsB;IACtB,kBAAkB;IAClB,mBAAmB;IACnB,qBAAqB;IACrB,gBAAgB;IAChB,eAAe;IACf,iBAAiB;AACrB;;AAEA;IACI,kBAAkB;IAClB,QAAQ;IACR,MAAM;AACV;;AAEA;IACI,kFAAkF;IAClF,2BAA2B;IAC3B,gCAAgC;IAChC,mCAAmC;AACvC;;AAEA;IACI,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,kCAAkC;IAClC,YAAY;IACZ,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;AACf;;AAEA;IACI;QACI,6BAA6B;IACjC;;IAEA;QACI,yCAAyC;IAC7C;AACJ;;AAEA;IACI,yEAAyE;IACzE,2BAA2B;IAC3B,oBAAoB;IACpB,gCAAgC;AACpC;;AAEA;IACI;AACJ;;AAEA;IACI,yBAAyB;AAC7B",sourcesContent:[".set_container {\n width: fit-content;\n position: relative;\n line-height: 18pt;\n min-height: 18pt;\n cursor: pointer;\n}\n\n.node_border {\n border-radius: 0.7em;\n border: 1pt solid;\n margin: 12pt 3% 12pt 3%;\n position: relative;\n height: max-content;\n overflow: hidden;\n}\n\n.mouse_over_shadow:hover {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.highlighted_node {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.bauchbinde {\n bottom: 0;\n left: 0;\n right: 0;\n /* padding-top: 1em; */\n /* margin-top: 1em; */\n background-color: transparent;\n /* cursor: pointer; */\n}\n\n.bauchbinde_text {\n position: relative;\n text-align: center;\n overflow: hidden;\n}\n\n.set_too_high {\n /* overflow-y: hidden; */\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 2.5em;\n min-height: 2.5em;\n}\n\n.set_value {\n width: fit-content;\n margin: .38em 1em .5em 1em;\n\n position: relative;\n flex: 0 0 auto;\n display: flex;\n flex-flow: row wrap;\n justify-content: center;\n align-items: center;\n}\n\n\n\n.mini {\n text-align: center;\n vertical-align: middle;\n width: fit-content;\n height: fit-content;\n /* font-size: 12pt; */\n min-width: .57em;\n cursor: pointer;\n min-height: .57em;\n}\n\n.recursion_button{\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.recursion_button:hover {\n box-shadow: 0 .28em .57em 0 rgba(0, 0, 0, 0.2), 0 .43em .71em 0 rgba(0, 0, 0, 0.2);\n transition: .3s ease-in-out;\n -moz-transition: .3s ease-in-out;\n -webkit-transition: .3s ease-in-out;\n}\n\n.recursion_button_text{\n cursor: pointer;\n font-size: 1pt;\n font-weight: bold;\n border-radius: 0em .57em 0em .28em;\n padding: 1px;\n vertical-align: middle;\n text-align: center;\n width: auto;\n}\n\n@keyframes loading {\n 0% {\n background-position: -200em 0;\n }\n\n 100% {\n background-position: calc(200em + 100%) 0;\n }\n}\n\n.loading {\n background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);\n background-size: 200em 100%;\n border-radius: 0.8em;\n animation: loading 1.5s infinite;\n}\n\n.hidden {\n visibility: hidden\n}\n\n.rotate_icon {\n transform: rotate(180deg);\n}"],sourceRoot:""}]);const u=a},1052:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,"\n.row_header {\n border-radius: 0 8px 8px 0;\n width: fit-content;\n max-width: 95%;\n position: relative;\n padding: 8px 8px 8px 16px;\n z-index: 8;\n}\n\n.row_header_bar {\n border-bottom: solid 1px #333333;\n border-radius: 0 5px 0 0;\n background-color: whitesmoke;\n}\n\n.rule_highlight_dot {\n display: inline-block;\n width: 9px;\n height: 9px;\n border-radius: 50%;\n position: absolute;\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.rule_highlight_dot.fade-in {\n animation-name: animate-fade-in;\n}\n\n@keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.rule_highlight_dot.fade-out {\n animation-name: animate-fade-out;\n animation-fill-mode: forwards;\n}\n\n@keyframes animate-fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n visibility: hidden;\n display:none;\n }\n}\n\n.rule_text {\n white-space: pre-wrap;\n padding: 4px 0;\n position: relative;\n width: fit-content;\n border-radius: 7px;\n transition: background-color 1.0s ease;\n}\n\n.row_toggle {\n font-size: 10pt;\n cursor: pointer;\n padding-left: 10px;\n padding-right: 10px;\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_toggle:hover {\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}\n\n.branch_space {\n display: flex;\n justify-content: center;\n overflow: hidden;\n max-width: 75%;\n}\n\n.row_container {\n justify-content: space-around;\n background: transparent;\n padding-top: 1em;\n /* overflow-y: hidden; */\n}\n\n.faded {\n opacity: 0.6;\n filter: grayscale(100%);\n}\n\n","",{version:3,sources:["webpack://./src/lib/components/row.css"],names:[],mappings:";AACA;IACI,0BAA0B;IAC1B,kBAAkB;IAClB,cAAc;IACd,kBAAkB;IAClB,yBAAyB;IACzB,UAAU;AACd;;AAEA;IACI,gCAAgC;IAChC,wBAAwB;IACxB,4BAA4B;AAChC;;AAEA;IACI,qBAAqB;IACrB,UAAU;IACV,WAAW;IACX,kBAAkB;IAClB,kBAAkB;IAClB,UAAU;IACV,QAAQ;IACR,2BAA2B;AAC/B;;AAEA;IACI,+BAA+B;AACnC;;AAEA;IACI;QACI,UAAU;IACd;;IAEA;QACI,UAAU;IACd;AACJ;;AAEA;IACI,gCAAgC;IAChC,6BAA6B;AACjC;;AAEA;IACI;QACI,UAAU;IACd;;IAEA;QACI,UAAU;QACV,kBAAkB;QAClB,YAAY;IAChB;AACJ;;AAEA;IACI,qBAAqB;IACrB,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,sCAAsC;AAC1C;;AAEA;IACI,eAAe;IACf,eAAe;IACf,kBAAkB;IAClB,mBAAmB;IACnB,mCAAmC;IACnC,wCAAwC;IACxC,2CAA2C;AAC/C;;AAEA;IACI,mCAAmC;IACnC,wCAAwC;IACxC,2CAA2C;AAC/C;;AAEA;IACI,aAAa;IACb,6BAA6B;IAC7B,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,uBAAuB;IACvB,gBAAgB;IAChB,cAAc;AAClB;;AAEA;IACI,6BAA6B;IAC7B,uBAAuB;IACvB,gBAAgB;IAChB,wBAAwB;AAC5B;;AAEA;IACI,YAAY;IACZ,uBAAuB;AAC3B",sourcesContent:["\n.row_header {\n border-radius: 0 8px 8px 0;\n width: fit-content;\n max-width: 95%;\n position: relative;\n padding: 8px 8px 8px 16px;\n z-index: 8;\n}\n\n.row_header_bar {\n border-bottom: solid 1px #333333;\n border-radius: 0 5px 0 0;\n background-color: whitesmoke;\n}\n\n.rule_highlight_dot {\n display: inline-block;\n width: 9px;\n height: 9px;\n border-radius: 50%;\n position: absolute;\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.rule_highlight_dot.fade-in {\n animation-name: animate-fade-in;\n}\n\n@keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.rule_highlight_dot.fade-out {\n animation-name: animate-fade-out;\n animation-fill-mode: forwards;\n}\n\n@keyframes animate-fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n visibility: hidden;\n display:none;\n }\n}\n\n.rule_text {\n white-space: pre-wrap;\n padding: 4px 0;\n position: relative;\n width: fit-content;\n border-radius: 7px;\n transition: background-color 1.0s ease;\n}\n\n.row_toggle {\n font-size: 10pt;\n cursor: pointer;\n padding-left: 10px;\n padding-right: 10px;\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_toggle:hover {\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}\n\n.branch_space {\n display: flex;\n justify-content: center;\n overflow: hidden;\n max-width: 75%;\n}\n\n.row_container {\n justify-content: space-around;\n background: transparent;\n padding-top: 1em;\n /* overflow-y: hidden; */\n}\n\n.faded {\n opacity: 0.6;\n filter: grayscale(100%);\n}\n\n"],sourceRoot:""}]);const u=a},9935:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,"/* ===== SEARCH BOX ===== */\n.search {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 18;\n min-width: 200px;\n}\n\n.search_row {\n list-style-type: none;\n font-family: monospace;\n cursor: pointer;\n width: 200px;\n}\n\n.search_row.active {\n background-color: #6554C0;\n}\n\n.search_result_list {\n position: static;\n list-style: none;\n margin-left: 0;\n padding-left: 1.2em;\n margin-bottom: 1px;\n border-radius: 0 5px 0 5px;\n filter: drop-shadow(0 0 1px #333);\n max-width: 500px;\n overflow: hidden;\n min-width: 200px;\n width: fit-content;\n width: -moz-fit-content;\n\n}\n\n.filter {\n cursor: pointer;\n font-family: monospace;\n border-radius: 500px;\n left: 0;\n padding-left: 20px;\n opacity: 0.8;\n width: 200px;\n}\n\n.active_filters_list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.close {\n color: black;\n float: right;\n padding-right: 5px;\n}\n\n.close:hover {\n opacity: 1;\n}\n\nform {\n padding-top: 0;\n}\n","",{version:3,sources:["webpack://./src/lib/components/search.css"],names:[],mappings:"AAAA,2BAA2B;AAC3B;IACI,eAAe;IACf,SAAS;IACT,OAAO;IACP,WAAW;IACX,gBAAgB;AACpB;;AAEA;IACI,qBAAqB;IACrB,sBAAsB;IACtB,eAAe;IACf,YAAY;AAChB;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,kBAAkB;IAClB,0BAA0B;IAC1B,iCAAiC;IACjC,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;;AAE3B;;AAEA;IACI,eAAe;IACf,sBAAsB;IACtB,oBAAoB;IACpB,OAAO;IACP,kBAAkB;IAClB,YAAY;IACZ,YAAY;AAChB;;AAEA;IACI,gBAAgB;IAChB,SAAS;IACT,UAAU;AACd;;AAEA;IACI,YAAY;IACZ,YAAY;IACZ,kBAAkB;AACtB;;AAEA;IACI,UAAU;AACd;;AAEA;IACI,cAAc;AAClB",sourcesContent:["/* ===== SEARCH BOX ===== */\n.search {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 18;\n min-width: 200px;\n}\n\n.search_row {\n list-style-type: none;\n font-family: monospace;\n cursor: pointer;\n width: 200px;\n}\n\n.search_row.active {\n background-color: #6554C0;\n}\n\n.search_result_list {\n position: static;\n list-style: none;\n margin-left: 0;\n padding-left: 1.2em;\n margin-bottom: 1px;\n border-radius: 0 5px 0 5px;\n filter: drop-shadow(0 0 1px #333);\n max-width: 500px;\n overflow: hidden;\n min-width: 200px;\n width: fit-content;\n width: -moz-fit-content;\n\n}\n\n.filter {\n cursor: pointer;\n font-family: monospace;\n border-radius: 500px;\n left: 0;\n padding-left: 20px;\n opacity: 0.8;\n width: 200px;\n}\n\n.active_filters_list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.close {\n color: black;\n float: right;\n padding-right: 5px;\n}\n\n.close:hover {\n opacity: 1;\n}\n\nform {\n padding-top: 0;\n}\n"],sourceRoot:""}]);const u=a},1098:(t,e,n)=>{"use strict";n.d(e,{Z:()=>u});var r=n(7537),o=n.n(r),i=n(3645),a=n.n(i)()(o());a.push([t.id,".symbol {\n margin: 1px 1px;\n display: flex;\n border-radius: 7px;\n /* translate: 1px -3px; */\n}\n\n.mark_symbol {\n min-width: 0;\n min-height: 0;\n width: fit-content;\n ;\n width: -moz-fit-content;\n display: flex;\n border-radius: 7px;\n font-style: bold, italic;\n}","",{version:3,sources:["webpack://./src/lib/components/symbol.css"],names:[],mappings:"AAAA;IACI,eAAe;IACf,aAAa;IACb,kBAAkB;IAClB,yBAAyB;AAC7B;;AAEA;IACI,YAAY;IACZ,aAAa;IACb,kBAAkB;;IAElB,uBAAuB;IACvB,aAAa;IACb,kBAAkB;IAClB,wBAAwB;AAC5B",sourcesContent:[".symbol {\n margin: 1px 1px;\n display: flex;\n border-radius: 7px;\n /* translate: 1px -3px; */\n}\n\n.mark_symbol {\n min-width: 0;\n min-height: 0;\n width: fit-content;\n ;\n width: -moz-fit-content;\n display: flex;\n border-radius: 7px;\n font-style: bold, italic;\n}"],sourceRoot:""}]);const u=a},3645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n})).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var u=0;u0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},7537:t=>{"use strict";t.exports=function(t){var e=t[1],n=t[3];if(!n)return e;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),o="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),i="/*# ".concat(o," */");return[e].concat([i]).join("\n")}return[e].join("\n")}},7145:(t,e)=>{"use strict";function n(t){return"object"!=typeof t||"toString"in t?t:Object.prototype.toString.call(t).slice(8,-1)}Object.defineProperty(e,"__esModule",{value:!0});var r="object"==typeof process&&!0;function o(t,e){if(!t){if(r)throw new Error("Invariant failed");throw new Error(e())}}e.invariant=o;var i=Object.prototype.hasOwnProperty,a=Array.prototype.splice,u=Object.prototype.toString;function s(t){return u.call(t).slice(8,-1)}var c=Object.assign||function(t,e){return l(e).forEach((function(n){i.call(e,n)&&(t[n]=e[n])})),t},l="function"==typeof Object.getOwnPropertySymbols?function(t){return Object.keys(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.keys(t)};function f(t){return Array.isArray(t)?c(t.constructor(t.length),t):"Map"===s(t)?new Map(t):"Set"===s(t)?new Set(t):t&&"object"==typeof t?c(Object.create(Object.getPrototypeOf(t)),t):t}var p=function(){function t(){this.commands=c({},d),this.update=this.update.bind(this),this.update.extend=this.extend=this.extend.bind(this),this.update.isEquals=function(t,e){return t===e},this.update.newContext=function(){return(new t).update}}return Object.defineProperty(t.prototype,"isEquals",{get:function(){return this.update.isEquals},set:function(t){this.update.isEquals=t},enumerable:!0,configurable:!0}),t.prototype.extend=function(t,e){this.commands[t]=e},t.prototype.update=function(t,e){var n=this,r="function"==typeof e?{$apply:e}:e;Array.isArray(t)&&Array.isArray(r)||o(!Array.isArray(r),(function(){return"update(): You provided an invalid spec to update(). The spec may not contain an array except as the value of $set, $push, $unshift, $splice or any custom command allowing an array value."})),o("object"==typeof r&&null!==r,(function(){return"update(): You provided an invalid spec to update(). The spec and every included key path must be plain objects containing one of the following commands: "+Object.keys(n.commands).join(", ")+"."}));var a=t;return l(r).forEach((function(e){if(i.call(n.commands,e)){var o=t===a;a=n.commands[e](r[e],a,r,t),o&&n.isEquals(a,t)&&(a=t)}else{var u="Map"===s(t)?n.update(t.get(e),r[e]):n.update(t[e],r[e]),c="Map"===s(a)?a.get(e):a[e];n.isEquals(u,c)&&(void 0!==u||i.call(t,e))||(a===t&&(a=f(t)),"Map"===s(a)?a.set(e,u):a[e]=u)}})),a},t}();e.Context=p;var d={$push:function(t,e,n){return y(e,n,"$push"),t.length?e.concat(t):e},$unshift:function(t,e,n){return y(e,n,"$unshift"),t.length?t.concat(e):e},$splice:function(t,e,r,i){return function(t,e){o(Array.isArray(t),(function(){return"Expected $splice target to be an array; got "+n(t)})),v(e.$splice)}(e,r),t.forEach((function(t){v(t),e===i&&t.length&&(e=f(i)),a.apply(e,t)})),e},$set:function(t,e,n){return function(t){o(1===Object.keys(t).length,(function(){return"Cannot have more than one key in an object with $set"}))}(n),t},$toggle:function(t,e){m(t,"$toggle");var n=t.length?f(e):e;return t.forEach((function(t){n[t]=!e[t]})),n},$unset:function(t,e,n,r){return m(t,"$unset"),t.forEach((function(t){Object.hasOwnProperty.call(e,t)&&(e===r&&(e=f(r)),delete e[t])})),e},$add:function(t,e,n,r){return g(e,"$add"),m(t,"$add"),"Map"===s(e)?t.forEach((function(t){var n=t[0],o=t[1];e===r&&e.get(n)!==o&&(e=f(r)),e.set(n,o)})):t.forEach((function(t){e!==r||e.has(t)||(e=f(r)),e.add(t)})),e},$remove:function(t,e,n,r){return g(e,"$remove"),m(t,"$remove"),t.forEach((function(t){e===r&&e.has(t)&&(e=f(r)),e.delete(t)})),e},$merge:function(t,e,r,i){var a,u;return a=e,o((u=t)&&"object"==typeof u,(function(){return"update(): $merge expects a spec of type 'object'; got "+n(u)})),o(a&&"object"==typeof a,(function(){return"update(): $merge expects a target of type 'object'; got "+n(a)})),l(t).forEach((function(n){t[n]!==e[n]&&(e===i&&(e=f(i)),e[n]=t[n])})),e},$apply:function(t,e){var r;return o("function"==typeof(r=t),(function(){return"update(): expected spec of $apply to be a function; got "+n(r)+"."})),t(e)}},h=new p;function y(t,e,r){o(Array.isArray(t),(function(){return"update(): expected target of "+n(r)+" to be an array; got "+n(t)+"."})),m(e[r],r)}function m(t,e){o(Array.isArray(t),(function(){return"update(): expected spec of "+n(e)+" to be an array; got "+n(t)+". Did you forget to wrap your parameter in an array?"}))}function v(t){o(Array.isArray(t),(function(){return"update(): expected spec of $splice to be an array of arrays; got "+n(t)+". Did you forget to wrap your parameters in an array?"}))}function g(t,e){var r=s(t);o("Map"===r||"Set"===r,(function(){return"update(): "+n(e)+" expects a target of type Set or Map; got "+n(r)}))}e.isEquals=h.update.isEquals,e.extend=h.extend,e.default=h.update,e.default.default=t.exports=c(e.default,e)},1296:(t,e,n)=>{var r=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,c="object"==typeof self&&self&&self.Object===Object&&self,l=s||c||Function("return this")(),f=Object.prototype.toString,p=Math.max,d=Math.min,h=function(){return l.Date.now()};function y(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function m(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(y(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=y(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=i.test(t);return n||a.test(t)?u(t.slice(2),n?2:8):o.test(t)?NaN:+t}t.exports=function(t,e,n){var r,o,i,a,u,s,c=0,l=!1,f=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=r,i=o;return r=o=void 0,c=e,a=t.apply(i,n)}function b(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-c>=i}function A(){var t=h();if(b(t))return w(t);u=setTimeout(A,function(t){var n=e-(t-s);return f?d(n,i-(t-c)):n}(t))}function w(t){return u=void 0,v&&r?g(t):(r=o=void 0,a)}function _(){var t=h(),n=b(t);if(r=arguments,o=this,s=t,n){if(void 0===u)return function(t){return c=t,u=setTimeout(A,e),l?g(t):a}(s);if(f)return u=setTimeout(A,e),g(s)}return void 0===u&&(u=setTimeout(A,e)),a}return e=m(e)||0,y(n)&&(l=!!n.leading,i=(f="maxWait"in n)?p(m(n.maxWait)||0,e):i,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==u&&clearTimeout(u),c=0,r=s=o=u=void 0},_.flush=function(){return void 0===u?a:w(h())},_}},2705:(t,e,n)=>{var r=n(5639).Symbol;t.exports=r},4239:(t,e,n)=>{var r=n(2705),o=n(9607),i=n(2333),a=r?r.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)}},7561:(t,e,n)=>{var r=n(7990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},1957:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},9607:(t,e,n)=>{var r=n(2705),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=a.call(t);return r&&(e?t[u]=n:delete t[u]),o}},2333:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},5639:(t,e,n)=>{var r=n(1957),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},7990:t=>{var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},3279:(t,e,n)=>{var r=n(3218),o=n(7771),i=n(4841),a=Math.max,u=Math.min;t.exports=function(t,e,n){var s,c,l,f,p,d,h=0,y=!1,m=!1,v=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=s,r=c;return s=c=void 0,h=e,f=t.apply(r,n)}function b(t){var n=t-d;return void 0===d||n>=e||n<0||m&&t-h>=l}function A(){var t=o();if(b(t))return w(t);p=setTimeout(A,function(t){var n=e-(t-d);return m?u(n,l-(t-h)):n}(t))}function w(t){return p=void 0,v&&s?g(t):(s=c=void 0,f)}function _(){var t=o(),n=b(t);if(s=arguments,c=this,d=t,n){if(void 0===p)return function(t){return h=t,p=setTimeout(A,e),y?g(t):f}(d);if(m)return clearTimeout(p),p=setTimeout(A,e),g(d)}return void 0===p&&(p=setTimeout(A,e)),f}return e=i(e)||0,r(n)&&(y=!!n.leading,l=(m="maxWait"in n)?a(i(n.maxWait)||0,e):l,v="trailing"in n?!!n.trailing:v),_.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=d=c=p=void 0},_.flush=function(){return void 0===p?f:w(o())},_}},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}},3448:(t,e,n)=>{var r=n(4239),o=n(7005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},6486:function(t,e,n){var r;t=n.nmd(t),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",u="__lodash_placeholder__",s=32,c=128,l=1/0,f=9007199254740991,p=NaN,d=4294967295,h=[["ary",c],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",s],["partialRight",64],["rearg",256]],y="[object Arguments]",m="[object Array]",v="[object Boolean]",g="[object Date]",b="[object Error]",A="[object Function]",w="[object GeneratorFunction]",_="[object Map]",x="[object Number]",S="[object Object]",O="[object Promise]",C="[object RegExp]",E="[object Set]",I="[object String]",j="[object Symbol]",P="[object WeakMap]",k="[object ArrayBuffer]",B="[object DataView]",T="[object Float32Array]",M="[object Float64Array]",R="[object Int8Array]",D="[object Int16Array]",N="[object Int32Array]",z="[object Uint8Array]",L="[object Uint8ClampedArray]",F="[object Uint16Array]",W="[object Uint32Array]",U=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,V=/(__e\(.*?\)|\b__t\)) \+\n'';/g,H=/&(?:amp|lt|gt|quot|#39);/g,q=/[&<>"']/g,Z=RegExp(H.source),G=RegExp(q.source),Y=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,K=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,J=/^\w*$/,tt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,et=/[\\^$.*+?()[\]{}|]/g,nt=RegExp(et.source),rt=/^\s+/,ot=/\s/,it=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,at=/\{\n\/\* \[wrapped with (.+)\] \*/,ut=/,? & /,st=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ct=/[()=,{}\[\]\/\s]/,lt=/\\(\\)?/g,ft=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pt=/\w*$/,dt=/^[-+]0x[0-9a-f]+$/i,ht=/^0b[01]+$/i,yt=/^\[object .+?Constructor\]$/,mt=/^0o[0-7]+$/i,vt=/^(?:0|[1-9]\d*)$/,gt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,bt=/($^)/,At=/['\n\r\u2028\u2029\\]/g,wt="\\ud800-\\udfff",_t="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xt="\\u2700-\\u27bf",St="a-z\\xdf-\\xf6\\xf8-\\xff",Ot="A-Z\\xc0-\\xd6\\xd8-\\xde",Ct="\\ufe0e\\ufe0f",Et="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",It="["+wt+"]",jt="["+Et+"]",Pt="["+_t+"]",kt="\\d+",Bt="["+xt+"]",Tt="["+St+"]",Mt="[^"+wt+Et+kt+xt+St+Ot+"]",Rt="\\ud83c[\\udffb-\\udfff]",Dt="[^"+wt+"]",Nt="(?:\\ud83c[\\udde6-\\uddff]){2}",zt="[\\ud800-\\udbff][\\udc00-\\udfff]",Lt="["+Ot+"]",Ft="\\u200d",Wt="(?:"+Tt+"|"+Mt+")",Ut="(?:"+Lt+"|"+Mt+")",$t="(?:['’](?:d|ll|m|re|s|t|ve))?",Vt="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ht="(?:"+Pt+"|"+Rt+")?",qt="["+Ct+"]?",Zt=qt+Ht+"(?:"+Ft+"(?:"+[Dt,Nt,zt].join("|")+")"+qt+Ht+")*",Gt="(?:"+[Bt,Nt,zt].join("|")+")"+Zt,Yt="(?:"+[Dt+Pt+"?",Pt,Nt,zt,It].join("|")+")",Xt=RegExp("['’]","g"),Kt=RegExp(Pt,"g"),Qt=RegExp(Rt+"(?="+Rt+")|"+Yt+Zt,"g"),Jt=RegExp([Lt+"?"+Tt+"+"+$t+"(?="+[jt,Lt,"$"].join("|")+")",Ut+"+"+Vt+"(?="+[jt,Lt+Wt,"$"].join("|")+")",Lt+"?"+Wt+"+"+$t,Lt+"+"+Vt,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kt,Gt].join("|"),"g"),te=RegExp("["+Ft+wt+_t+Ct+"]"),ee=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ne=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],re=-1,oe={};oe[T]=oe[M]=oe[R]=oe[D]=oe[N]=oe[z]=oe[L]=oe[F]=oe[W]=!0,oe[y]=oe[m]=oe[k]=oe[v]=oe[B]=oe[g]=oe[b]=oe[A]=oe[_]=oe[x]=oe[S]=oe[C]=oe[E]=oe[I]=oe[P]=!1;var ie={};ie[y]=ie[m]=ie[k]=ie[B]=ie[v]=ie[g]=ie[T]=ie[M]=ie[R]=ie[D]=ie[N]=ie[_]=ie[x]=ie[S]=ie[C]=ie[E]=ie[I]=ie[j]=ie[z]=ie[L]=ie[F]=ie[W]=!0,ie[b]=ie[A]=ie[P]=!1;var ae={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ue=parseFloat,se=parseInt,ce="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,le="object"==typeof self&&self&&self.Object===Object&&self,fe=ce||le||Function("return this")(),pe=e&&!e.nodeType&&e,de=pe&&t&&!t.nodeType&&t,he=de&&de.exports===pe,ye=he&&ce.process,me=function(){try{return de&&de.require&&de.require("util").types||ye&&ye.binding&&ye.binding("util")}catch(t){}}(),ve=me&&me.isArrayBuffer,ge=me&&me.isDate,be=me&&me.isMap,Ae=me&&me.isRegExp,we=me&&me.isSet,_e=me&&me.isTypedArray;function xe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Se(t,e,n,r){for(var o=-1,i=null==t?0:t.length;++o-1}function Pe(t,e,n){for(var r=-1,o=null==t?0:t.length;++r-1;);return n}function Je(t,e){for(var n=t.length;n--&&Le(e,t[n],0)>-1;);return n}var tn=Ve({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),en=Ve({"&":"&","<":"<",">":">",'"':""","'":"'"});function nn(t){return"\\"+ae[t]}function rn(t){return te.test(t)}function on(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}function an(t,e){return function(n){return t(e(n))}}function un(t,e){for(var n=-1,r=t.length,o=0,i=[];++n",""":'"',"'":"'"}),hn=function t(e){var n,r=(e=null==e?fe:hn.defaults(fe.Object(),e,hn.pick(fe,ne))).Array,ot=e.Date,wt=e.Error,_t=e.Function,xt=e.Math,St=e.Object,Ot=e.RegExp,Ct=e.String,Et=e.TypeError,It=r.prototype,jt=_t.prototype,Pt=St.prototype,kt=e["__core-js_shared__"],Bt=jt.toString,Tt=Pt.hasOwnProperty,Mt=0,Rt=(n=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",Dt=Pt.toString,Nt=Bt.call(St),zt=fe._,Lt=Ot("^"+Bt.call(Tt).replace(et,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ft=he?e.Buffer:o,Wt=e.Symbol,Ut=e.Uint8Array,$t=Ft?Ft.allocUnsafe:o,Vt=an(St.getPrototypeOf,St),Ht=St.create,qt=Pt.propertyIsEnumerable,Zt=It.splice,Gt=Wt?Wt.isConcatSpreadable:o,Yt=Wt?Wt.iterator:o,Qt=Wt?Wt.toStringTag:o,te=function(){try{var t=ci(St,"defineProperty");return t({},"",{}),t}catch(t){}}(),ae=e.clearTimeout!==fe.clearTimeout&&e.clearTimeout,ce=ot&&ot.now!==fe.Date.now&&ot.now,le=e.setTimeout!==fe.setTimeout&&e.setTimeout,pe=xt.ceil,de=xt.floor,ye=St.getOwnPropertySymbols,me=Ft?Ft.isBuffer:o,De=e.isFinite,Ve=It.join,yn=an(St.keys,St),mn=xt.max,vn=xt.min,gn=ot.now,bn=e.parseInt,An=xt.random,wn=It.reverse,_n=ci(e,"DataView"),xn=ci(e,"Map"),Sn=ci(e,"Promise"),On=ci(e,"Set"),Cn=ci(e,"WeakMap"),En=ci(St,"create"),In=Cn&&new Cn,jn={},Pn=Ni(_n),kn=Ni(xn),Bn=Ni(Sn),Tn=Ni(On),Mn=Ni(Cn),Rn=Wt?Wt.prototype:o,Dn=Rn?Rn.valueOf:o,Nn=Rn?Rn.toString:o;function zn(t){if(tu(t)&&!$a(t)&&!(t instanceof Un)){if(t instanceof Wn)return t;if(Tt.call(t,"__wrapped__"))return zi(t)}return new Wn(t)}var Ln=function(){function t(){}return function(e){if(!Ja(e))return{};if(Ht)return Ht(e);t.prototype=e;var n=new t;return t.prototype=o,n}}();function Fn(){}function Wn(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=o}function Un(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=d,this.__views__=[]}function $n(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=e?t:e)),t}function ar(t,e,n,r,i,a){var u,s=1&e,c=2&e,l=4&e;if(n&&(u=i?n(t,r,i,a):n(t)),u!==o)return u;if(!Ja(t))return t;var f=$a(t);if(f){if(u=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Tt.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(t),!s)return Eo(t,u)}else{var p=pi(t),d=p==A||p==w;if(Za(t))return wo(t,s);if(p==S||p==y||d&&!i){if(u=c||d?{}:hi(t),!s)return c?function(t,e){return Io(t,fi(t),e)}(t,function(t,e){return t&&Io(e,ku(e),t)}(u,t)):function(t,e){return Io(t,li(t),e)}(t,nr(u,t))}else{if(!ie[p])return i?t:{};u=function(t,e,n){var r,o=t.constructor;switch(e){case k:return _o(t);case v:case g:return new o(+t);case B:return function(t,e){var n=e?_o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case T:case M:case R:case D:case N:case z:case L:case F:case W:return xo(t,n);case _:return new o;case x:case I:return new o(t);case C:return function(t){var e=new t.constructor(t.source,pt.exec(t));return e.lastIndex=t.lastIndex,e}(t);case E:return new o;case j:return r=t,Dn?St(Dn.call(r)):{}}}(t,p,s)}}a||(a=new Zn);var h=a.get(t);if(h)return h;a.set(t,u),iu(t)?t.forEach((function(r){u.add(ar(r,e,n,r,t,a))})):eu(t)&&t.forEach((function(r,o){u.set(o,ar(r,e,n,o,t,a))}));var m=f?o:(l?c?ni:ei:c?ku:Pu)(t);return Oe(m||t,(function(r,o){m&&(r=t[o=r]),Jn(u,o,ar(r,e,n,o,t,a))})),u}function ur(t,e,n){var r=n.length;if(null==t)return!r;for(t=St(t);r--;){var i=n[r],a=e[i],u=t[i];if(u===o&&!(i in t)||!a(u))return!1}return!0}function sr(t,e,n){if("function"!=typeof t)throw new Et(i);return Ii((function(){t.apply(o,n)}),e)}function cr(t,e,n,r){var o=-1,i=je,a=!0,u=t.length,s=[],c=e.length;if(!u)return s;n&&(e=ke(e,Ye(n))),r?(i=Pe,a=!1):e.length>=200&&(i=Ke,a=!1,e=new qn(e));t:for(;++o-1},Vn.prototype.set=function(t,e){var n=this.__data__,r=tr(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},Hn.prototype.clear=function(){this.size=0,this.__data__={hash:new $n,map:new(xn||Vn),string:new $n}},Hn.prototype.delete=function(t){var e=ui(this,t).delete(t);return this.size-=e?1:0,e},Hn.prototype.get=function(t){return ui(this,t).get(t)},Hn.prototype.has=function(t){return ui(this,t).has(t)},Hn.prototype.set=function(t,e){var n=ui(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},qn.prototype.add=qn.prototype.push=function(t){return this.__data__.set(t,a),this},qn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Zn.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Zn.prototype.get=function(t){return this.__data__.get(t)},Zn.prototype.has=function(t){return this.__data__.has(t)},Zn.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!xn||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new Hn(r)}return n.set(t,e),this.size=n.size,this};var lr=ko(gr),fr=ko(br,!0);function pr(t,e){var n=!0;return lr(t,(function(t,r,o){return n=!!e(t,r,o)})),n}function dr(t,e,n){for(var r=-1,i=t.length;++r0&&n(u)?e>1?yr(u,e-1,n,r,o):Be(o,u):r||(o[o.length]=u)}return o}var mr=Bo(),vr=Bo(!0);function gr(t,e){return t&&mr(t,e,Pu)}function br(t,e){return t&&vr(t,e,Pu)}function Ar(t,e){return Ie(e,(function(e){return Xa(t[e])}))}function wr(t,e){for(var n=0,r=(e=vo(e,t)).length;null!=t&&ne}function Or(t,e){return null!=t&&Tt.call(t,e)}function Cr(t,e){return null!=t&&e in St(t)}function Er(t,e,n){for(var i=n?Pe:je,a=t[0].length,u=t.length,s=u,c=r(u),l=1/0,f=[];s--;){var p=t[s];s&&e&&(p=ke(p,Ye(e))),l=vn(p.length,l),c[s]=!n&&(e||a>=120&&p.length>=120)?new qn(s&&p):o}p=t[0];var d=-1,h=c[0];t:for(;++d=u?s:s*("desc"==n[r]?-1:1)}return t.index-e.index}(t,e,n)}));r--;)t[r]=t[r].value;return t}(o)}function Ur(t,e,n){for(var r=-1,o=e.length,i={};++r-1;)u!==t&&Zt.call(u,s,1),Zt.call(t,s,1);return t}function Vr(t,e){for(var n=t?e.length:0,r=n-1;n--;){var o=e[n];if(n==r||o!==i){var i=o;mi(o)?Zt.call(t,o,1):so(t,o)}}return t}function Hr(t,e){return t+de(An()*(e-t+1))}function qr(t,e){var n="";if(!t||e<1||e>f)return n;do{e%2&&(n+=t),(e=de(e/2))&&(t+=t)}while(e);return n}function Zr(t,e){return ji(Si(t,e,ns),t+"")}function Gr(t){return Yn(Lu(t))}function Yr(t,e){var n=Lu(t);return Bi(n,ir(e,0,n.length))}function Xr(t,e,n,r){if(!Ja(t))return t;for(var i=-1,a=(e=vo(e,t)).length,u=a-1,s=t;null!=s&&++ii?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var a=r(i);++o>>1,a=t[i];null!==a&&!uu(a)&&(n?a<=e:a=200){var c=e?null:Zo(t);if(c)return sn(c);a=!1,o=Ke,s=new qn}else s=e?[]:u;t:for(;++r=r?t:to(t,e,n)}var Ao=ae||function(t){return fe.clearTimeout(t)};function wo(t,e){if(e)return t.slice();var n=t.length,r=$t?$t(n):new t.constructor(n);return t.copy(r),r}function _o(t){var e=new t.constructor(t.byteLength);return new Ut(e).set(new Ut(t)),e}function xo(t,e){var n=e?_o(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function So(t,e){if(t!==e){var n=t!==o,r=null===t,i=t==t,a=uu(t),u=e!==o,s=null===e,c=e==e,l=uu(e);if(!s&&!l&&!a&&t>e||a&&u&&c&&!s&&!l||r&&u&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&t1?n[i-1]:o,u=i>2?n[2]:o;for(a=t.length>3&&"function"==typeof a?(i--,a):o,u&&vi(n[0],n[1],u)&&(a=i<3?o:a,i=1),e=St(e);++r-1?i[a?e[u]:u]:o}}function No(t){return ti((function(e){var n=e.length,r=n,a=Wn.prototype.thru;for(t&&e.reverse();r--;){var u=e[r];if("function"!=typeof u)throw new Et(i);if(a&&!s&&"wrapper"==oi(u))var s=new Wn([],!0)}for(r=s?r:n;++r1&&A.reverse(),d&&fs))return!1;var l=a.get(t),f=a.get(e);if(l&&f)return l==e&&f==t;var p=-1,d=!0,h=2&n?new qn:o;for(a.set(t,e),a.set(e,t);++p-1&&t%1==0&&t1?"& ":"")+e[r],e=e.join(n>2?", ":" "),t.replace(it,"{\n/* [wrapped with "+e+"] */\n")}(r,function(t,e){return Oe(h,(function(n){var r="_."+n[0];e&n[1]&&!je(t,r)&&t.push(r)})),t.sort()}(function(t){var e=t.match(at);return e?e[1].split(ut):[]}(r),n)))}function ki(t){var e=0,n=0;return function(){var r=gn(),i=16-(r-n);if(n=r,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(o,arguments)}}function Bi(t,e){var n=-1,r=t.length,i=r-1;for(e=e===o?r:e;++n1?t[e-1]:o;return n="function"==typeof n?(t.pop(),n):o,oa(t,n)}));function fa(t){var e=zn(t);return e.__chain__=!0,e}function pa(t,e){return e(t)}var da=ti((function(t){var e=t.length,n=e?t[0]:0,r=this.__wrapped__,i=function(e){return or(e,t)};return!(e>1||this.__actions__.length)&&r instanceof Un&&mi(n)?((r=r.slice(n,+n+(e?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Wn(r,this.__chain__).thru((function(t){return e&&!t.length&&t.push(o),t}))):this.thru(i)})),ha=jo((function(t,e,n){Tt.call(t,n)?++t[n]:rr(t,n,1)})),ya=Do(Ui),ma=Do($i);function va(t,e){return($a(t)?Oe:lr)(t,ai(e,3))}function ga(t,e){return($a(t)?Ce:fr)(t,ai(e,3))}var ba=jo((function(t,e,n){Tt.call(t,n)?t[n].push(e):rr(t,n,[e])})),Aa=Zr((function(t,e,n){var o=-1,i="function"==typeof e,a=Ha(t)?r(t.length):[];return lr(t,(function(t){a[++o]=i?xe(e,t,n):Ir(t,e,n)})),a})),wa=jo((function(t,e,n){rr(t,n,e)}));function _a(t,e){return($a(t)?ke:Dr)(t,ai(e,3))}var xa=jo((function(t,e,n){t[n?0:1].push(e)}),(function(){return[[],[]]})),Sa=Zr((function(t,e){if(null==t)return[];var n=e.length;return n>1&&vi(t,e[0],e[1])?e=[]:n>2&&vi(e[0],e[1],e[2])&&(e=[e[0]]),Wr(t,yr(e,1),[])})),Oa=ce||function(){return fe.Date.now()};function Ca(t,e,n){return e=n?o:e,e=t&&null==e?t.length:e,Yo(t,c,o,o,o,o,e)}function Ea(t,e){var n;if("function"!=typeof e)throw new Et(i);return t=du(t),function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=o),n}}var Ia=Zr((function(t,e,n){var r=1;if(n.length){var o=un(n,ii(Ia));r|=s}return Yo(t,r,e,n,o)})),ja=Zr((function(t,e,n){var r=3;if(n.length){var o=un(n,ii(ja));r|=s}return Yo(e,r,t,n,o)}));function Pa(t,e,n){var r,a,u,s,c,l,f=0,p=!1,d=!1,h=!0;if("function"!=typeof t)throw new Et(i);function y(e){var n=r,i=a;return r=a=o,f=e,s=t.apply(i,n)}function m(t){var n=t-l;return l===o||n>=e||n<0||d&&t-f>=u}function v(){var t=Oa();if(m(t))return g(t);c=Ii(v,function(t){var n=e-(t-l);return d?vn(n,u-(t-f)):n}(t))}function g(t){return c=o,h&&r?y(t):(r=a=o,s)}function b(){var t=Oa(),n=m(t);if(r=arguments,a=this,l=t,n){if(c===o)return function(t){return f=t,c=Ii(v,e),p?y(t):s}(l);if(d)return Ao(c),c=Ii(v,e),y(l)}return c===o&&(c=Ii(v,e)),s}return e=yu(e)||0,Ja(n)&&(p=!!n.leading,u=(d="maxWait"in n)?mn(yu(n.maxWait)||0,e):u,h="trailing"in n?!!n.trailing:h),b.cancel=function(){c!==o&&Ao(c),f=0,r=l=a=c=o},b.flush=function(){return c===o?s:g(Oa())},b}var ka=Zr((function(t,e){return sr(t,1,e)})),Ba=Zr((function(t,e,n){return sr(t,yu(e)||0,n)}));function Ta(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new Et(i);var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Ta.Cache||Hn),n}function Ma(t){if("function"!=typeof t)throw new Et(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}Ta.Cache=Hn;var Ra=go((function(t,e){var n=(e=1==e.length&&$a(e[0])?ke(e[0],Ye(ai())):ke(yr(e,1),Ye(ai()))).length;return Zr((function(r){for(var o=-1,i=vn(r.length,n);++o=e})),Ua=jr(function(){return arguments}())?jr:function(t){return tu(t)&&Tt.call(t,"callee")&&!qt.call(t,"callee")},$a=r.isArray,Va=ve?Ye(ve):function(t){return tu(t)&&xr(t)==k};function Ha(t){return null!=t&&Qa(t.length)&&!Xa(t)}function qa(t){return tu(t)&&Ha(t)}var Za=me||ys,Ga=ge?Ye(ge):function(t){return tu(t)&&xr(t)==g};function Ya(t){if(!tu(t))return!1;var e=xr(t);return e==b||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!ru(t)}function Xa(t){if(!Ja(t))return!1;var e=xr(t);return e==A||e==w||"[object AsyncFunction]"==e||"[object Proxy]"==e}function Ka(t){return"number"==typeof t&&t==du(t)}function Qa(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=f}function Ja(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function tu(t){return null!=t&&"object"==typeof t}var eu=be?Ye(be):function(t){return tu(t)&&pi(t)==_};function nu(t){return"number"==typeof t||tu(t)&&xr(t)==x}function ru(t){if(!tu(t)||xr(t)!=S)return!1;var e=Vt(t);if(null===e)return!0;var n=Tt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Bt.call(n)==Nt}var ou=Ae?Ye(Ae):function(t){return tu(t)&&xr(t)==C},iu=we?Ye(we):function(t){return tu(t)&&pi(t)==E};function au(t){return"string"==typeof t||!$a(t)&&tu(t)&&xr(t)==I}function uu(t){return"symbol"==typeof t||tu(t)&&xr(t)==j}var su=_e?Ye(_e):function(t){return tu(t)&&Qa(t.length)&&!!oe[xr(t)]},cu=Vo(Rr),lu=Vo((function(t,e){return t<=e}));function fu(t){if(!t)return[];if(Ha(t))return au(t)?fn(t):Eo(t);if(Yt&&t[Yt])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Yt]());var e=pi(t);return(e==_?on:e==E?sn:Lu)(t)}function pu(t){return t?(t=yu(t))===l||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}function du(t){var e=pu(t),n=e%1;return e==e?n?e-n:e:0}function hu(t){return t?ir(du(t),0,d):0}function yu(t){if("number"==typeof t)return t;if(uu(t))return p;if(Ja(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Ja(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Ge(t);var n=ht.test(t);return n||mt.test(t)?se(t.slice(2),n?2:8):dt.test(t)?p:+t}function mu(t){return Io(t,ku(t))}function vu(t){return null==t?"":ao(t)}var gu=Po((function(t,e){if(wi(e)||Ha(e))Io(e,Pu(e),t);else for(var n in e)Tt.call(e,n)&&Jn(t,n,e[n])})),bu=Po((function(t,e){Io(e,ku(e),t)})),Au=Po((function(t,e,n,r){Io(e,ku(e),t,r)})),wu=Po((function(t,e,n,r){Io(e,Pu(e),t,r)})),_u=ti(or),xu=Zr((function(t,e){t=St(t);var n=-1,r=e.length,i=r>2?e[2]:o;for(i&&vi(e[0],e[1],i)&&(r=1);++n1),e})),Io(t,ni(t),n),r&&(n=ar(n,7,Qo));for(var o=e.length;o--;)so(n,e[o]);return n})),Ru=ti((function(t,e){return null==t?{}:function(t,e){return Ur(t,e,(function(e,n){return Cu(t,n)}))}(t,e)}));function Du(t,e){if(null==t)return{};var n=ke(ni(t),(function(t){return[t]}));return e=ai(e),Ur(t,n,(function(t,n){return e(t,n[0])}))}var Nu=Go(Pu),zu=Go(ku);function Lu(t){return null==t?[]:Xe(t,Pu(t))}var Fu=Mo((function(t,e,n){return e=e.toLowerCase(),t+(n?Wu(e):e)}));function Wu(t){return Yu(vu(t).toLowerCase())}function Uu(t){return(t=vu(t))&&t.replace(gt,tn).replace(Kt,"")}var $u=Mo((function(t,e,n){return t+(n?"-":"")+e.toLowerCase()})),Vu=Mo((function(t,e,n){return t+(n?" ":"")+e.toLowerCase()})),Hu=To("toLowerCase"),qu=Mo((function(t,e,n){return t+(n?"_":"")+e.toLowerCase()})),Zu=Mo((function(t,e,n){return t+(n?" ":"")+Yu(e)})),Gu=Mo((function(t,e,n){return t+(n?" ":"")+e.toUpperCase()})),Yu=To("toUpperCase");function Xu(t,e,n){return t=vu(t),(e=n?o:e)===o?function(t){return ee.test(t)}(t)?function(t){return t.match(Jt)||[]}(t):function(t){return t.match(st)||[]}(t):t.match(e)||[]}var Ku=Zr((function(t,e){try{return xe(t,o,e)}catch(t){return Ya(t)?t:new wt(t)}})),Qu=ti((function(t,e){return Oe(e,(function(e){e=Di(e),rr(t,e,Ia(t[e],t))})),t}));function Ju(t){return function(){return t}}var ts=No(),es=No(!0);function ns(t){return t}function rs(t){return Tr("function"==typeof t?t:ar(t,1))}var os=Zr((function(t,e){return function(n){return Ir(n,t,e)}})),is=Zr((function(t,e){return function(n){return Ir(t,n,e)}}));function as(t,e,n){var r=Pu(e),o=Ar(e,r);null!=n||Ja(e)&&(o.length||!r.length)||(n=e,e=t,t=this,o=Ar(e,Pu(e)));var i=!(Ja(n)&&"chain"in n&&!n.chain),a=Xa(t);return Oe(o,(function(n){var r=e[n];t[n]=r,a&&(t.prototype[n]=function(){var e=this.__chain__;if(i||e){var n=t(this.__wrapped__);return(n.__actions__=Eo(this.__actions__)).push({func:r,args:arguments,thisArg:t}),n.__chain__=e,n}return r.apply(t,Be([this.value()],arguments))})})),t}function us(){}var ss=Wo(ke),cs=Wo(Ee),ls=Wo(Re);function fs(t){return gi(t)?$e(Di(t)):function(t){return function(e){return wr(e,t)}}(t)}var ps=$o(),ds=$o(!0);function hs(){return[]}function ys(){return!1}var ms,vs=Fo((function(t,e){return t+e}),0),gs=qo("ceil"),bs=Fo((function(t,e){return t/e}),1),As=qo("floor"),ws=Fo((function(t,e){return t*e}),1),_s=qo("round"),xs=Fo((function(t,e){return t-e}),0);return zn.after=function(t,e){if("function"!=typeof e)throw new Et(i);return t=du(t),function(){if(--t<1)return e.apply(this,arguments)}},zn.ary=Ca,zn.assign=gu,zn.assignIn=bu,zn.assignInWith=Au,zn.assignWith=wu,zn.at=_u,zn.before=Ea,zn.bind=Ia,zn.bindAll=Qu,zn.bindKey=ja,zn.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return $a(t)?t:[t]},zn.chain=fa,zn.chunk=function(t,e,n){e=(n?vi(t,e,n):e===o)?1:mn(du(e),0);var i=null==t?0:t.length;if(!i||e<1)return[];for(var a=0,u=0,s=r(pe(i/e));ai?0:i+n),(r=r===o||r>i?i:du(r))<0&&(r+=i),r=n>r?0:hu(r);n>>0)?(t=vu(t))&&("string"==typeof e||null!=e&&!ou(e))&&!(e=ao(e))&&rn(t)?bo(fn(t),0,n):t.split(e,n):[]},zn.spread=function(t,e){if("function"!=typeof t)throw new Et(i);return e=null==e?0:mn(du(e),0),Zr((function(n){var r=n[e],o=bo(n,0,e);return r&&Be(o,r),xe(t,this,o)}))},zn.tail=function(t){var e=null==t?0:t.length;return e?to(t,1,e):[]},zn.take=function(t,e,n){return t&&t.length?to(t,0,(e=n||e===o?1:du(e))<0?0:e):[]},zn.takeRight=function(t,e,n){var r=null==t?0:t.length;return r?to(t,(e=r-(e=n||e===o?1:du(e)))<0?0:e,r):[]},zn.takeRightWhile=function(t,e){return t&&t.length?lo(t,ai(e,3),!1,!0):[]},zn.takeWhile=function(t,e){return t&&t.length?lo(t,ai(e,3)):[]},zn.tap=function(t,e){return e(t),t},zn.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new Et(i);return Ja(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Pa(t,e,{leading:r,maxWait:e,trailing:o})},zn.thru=pa,zn.toArray=fu,zn.toPairs=Nu,zn.toPairsIn=zu,zn.toPath=function(t){return $a(t)?ke(t,Di):uu(t)?[t]:Eo(Ri(vu(t)))},zn.toPlainObject=mu,zn.transform=function(t,e,n){var r=$a(t),o=r||Za(t)||su(t);if(e=ai(e,4),null==n){var i=t&&t.constructor;n=o?r?new i:[]:Ja(t)&&Xa(i)?Ln(Vt(t)):{}}return(o?Oe:gr)(t,(function(t,r,o){return e(n,t,r,o)})),n},zn.unary=function(t){return Ca(t,1)},zn.union=ta,zn.unionBy=ea,zn.unionWith=na,zn.uniq=function(t){return t&&t.length?uo(t):[]},zn.uniqBy=function(t,e){return t&&t.length?uo(t,ai(e,2)):[]},zn.uniqWith=function(t,e){return e="function"==typeof e?e:o,t&&t.length?uo(t,o,e):[]},zn.unset=function(t,e){return null==t||so(t,e)},zn.unzip=ra,zn.unzipWith=oa,zn.update=function(t,e,n){return null==t?t:co(t,e,mo(n))},zn.updateWith=function(t,e,n,r){return r="function"==typeof r?r:o,null==t?t:co(t,e,mo(n),r)},zn.values=Lu,zn.valuesIn=function(t){return null==t?[]:Xe(t,ku(t))},zn.without=ia,zn.words=Xu,zn.wrap=function(t,e){return Da(mo(e),t)},zn.xor=aa,zn.xorBy=ua,zn.xorWith=sa,zn.zip=ca,zn.zipObject=function(t,e){return ho(t||[],e||[],Jn)},zn.zipObjectDeep=function(t,e){return ho(t||[],e||[],Xr)},zn.zipWith=la,zn.entries=Nu,zn.entriesIn=zu,zn.extend=bu,zn.extendWith=Au,as(zn,zn),zn.add=vs,zn.attempt=Ku,zn.camelCase=Fu,zn.capitalize=Wu,zn.ceil=gs,zn.clamp=function(t,e,n){return n===o&&(n=e,e=o),n!==o&&(n=(n=yu(n))==n?n:0),e!==o&&(e=(e=yu(e))==e?e:0),ir(yu(t),e,n)},zn.clone=function(t){return ar(t,4)},zn.cloneDeep=function(t){return ar(t,5)},zn.cloneDeepWith=function(t,e){return ar(t,5,e="function"==typeof e?e:o)},zn.cloneWith=function(t,e){return ar(t,4,e="function"==typeof e?e:o)},zn.conformsTo=function(t,e){return null==e||ur(t,e,Pu(e))},zn.deburr=Uu,zn.defaultTo=function(t,e){return null==t||t!=t?e:t},zn.divide=bs,zn.endsWith=function(t,e,n){t=vu(t),e=ao(e);var r=t.length,i=n=n===o?r:ir(du(n),0,r);return(n-=e.length)>=0&&t.slice(n,i)==e},zn.eq=La,zn.escape=function(t){return(t=vu(t))&&G.test(t)?t.replace(q,en):t},zn.escapeRegExp=function(t){return(t=vu(t))&&nt.test(t)?t.replace(et,"\\$&"):t},zn.every=function(t,e,n){var r=$a(t)?Ee:pr;return n&&vi(t,e,n)&&(e=o),r(t,ai(e,3))},zn.find=ya,zn.findIndex=Ui,zn.findKey=function(t,e){return Ne(t,ai(e,3),gr)},zn.findLast=ma,zn.findLastIndex=$i,zn.findLastKey=function(t,e){return Ne(t,ai(e,3),br)},zn.floor=As,zn.forEach=va,zn.forEachRight=ga,zn.forIn=function(t,e){return null==t?t:mr(t,ai(e,3),ku)},zn.forInRight=function(t,e){return null==t?t:vr(t,ai(e,3),ku)},zn.forOwn=function(t,e){return t&&gr(t,ai(e,3))},zn.forOwnRight=function(t,e){return t&&br(t,ai(e,3))},zn.get=Ou,zn.gt=Fa,zn.gte=Wa,zn.has=function(t,e){return null!=t&&di(t,e,Or)},zn.hasIn=Cu,zn.head=Hi,zn.identity=ns,zn.includes=function(t,e,n,r){t=Ha(t)?t:Lu(t),n=n&&!r?du(n):0;var o=t.length;return n<0&&(n=mn(o+n,0)),au(t)?n<=o&&t.indexOf(e,n)>-1:!!o&&Le(t,e,n)>-1},zn.indexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var o=null==n?0:du(n);return o<0&&(o=mn(r+o,0)),Le(t,e,o)},zn.inRange=function(t,e,n){return e=pu(e),n===o?(n=e,e=0):n=pu(n),function(t,e,n){return t>=vn(e,n)&&t=-9007199254740991&&t<=f},zn.isSet=iu,zn.isString=au,zn.isSymbol=uu,zn.isTypedArray=su,zn.isUndefined=function(t){return t===o},zn.isWeakMap=function(t){return tu(t)&&pi(t)==P},zn.isWeakSet=function(t){return tu(t)&&"[object WeakSet]"==xr(t)},zn.join=function(t,e){return null==t?"":Ve.call(t,e)},zn.kebabCase=$u,zn.last=Yi,zn.lastIndexOf=function(t,e,n){var r=null==t?0:t.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=du(n))<0?mn(r+i,0):vn(i,r-1)),e==e?function(t,e,n){for(var r=n+1;r--;)if(t[r]===e)return r;return r}(t,e,i):ze(t,We,i,!0)},zn.lowerCase=Vu,zn.lowerFirst=Hu,zn.lt=cu,zn.lte=lu,zn.max=function(t){return t&&t.length?dr(t,ns,Sr):o},zn.maxBy=function(t,e){return t&&t.length?dr(t,ai(e,2),Sr):o},zn.mean=function(t){return Ue(t,ns)},zn.meanBy=function(t,e){return Ue(t,ai(e,2))},zn.min=function(t){return t&&t.length?dr(t,ns,Rr):o},zn.minBy=function(t,e){return t&&t.length?dr(t,ai(e,2),Rr):o},zn.stubArray=hs,zn.stubFalse=ys,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=ws,zn.nth=function(t,e){return t&&t.length?Fr(t,du(e)):o},zn.noConflict=function(){return fe._===this&&(fe._=zt),this},zn.noop=us,zn.now=Oa,zn.pad=function(t,e,n){t=vu(t);var r=(e=du(e))?ln(t):0;if(!e||r>=e)return t;var o=(e-r)/2;return Uo(de(o),n)+t+Uo(pe(o),n)},zn.padEnd=function(t,e,n){t=vu(t);var r=(e=du(e))?ln(t):0;return e&&re){var r=t;t=e,e=r}if(n||t%1||e%1){var i=An();return vn(t+i*(e-t+ue("1e-"+((i+"").length-1))),e)}return Hr(t,e)},zn.reduce=function(t,e,n){var r=$a(t)?Te:He,o=arguments.length<3;return r(t,ai(e,4),n,o,lr)},zn.reduceRight=function(t,e,n){var r=$a(t)?Me:He,o=arguments.length<3;return r(t,ai(e,4),n,o,fr)},zn.repeat=function(t,e,n){return e=(n?vi(t,e,n):e===o)?1:du(e),qr(vu(t),e)},zn.replace=function(){var t=arguments,e=vu(t[0]);return t.length<3?e:e.replace(t[1],t[2])},zn.result=function(t,e,n){var r=-1,i=(e=vo(e,t)).length;for(i||(i=1,t=o);++rf)return[];var n=d,r=vn(t,d);e=ai(e),t-=d;for(var o=Ze(r,e);++n=a)return t;var s=n-ln(r);if(s<1)return r;var c=u?bo(u,0,s).join(""):t.slice(0,s);if(i===o)return c+r;if(u&&(s+=c.length-s),ou(i)){if(t.slice(s).search(i)){var l,f=c;for(i.global||(i=Ot(i.source,vu(pt.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var p=l.index;c=c.slice(0,p===o?s:p)}}else if(t.indexOf(ao(i),s)!=s){var d=c.lastIndexOf(i);d>-1&&(c=c.slice(0,d))}return c+r},zn.unescape=function(t){return(t=vu(t))&&Z.test(t)?t.replace(H,dn):t},zn.uniqueId=function(t){var e=++Mt;return vu(t)+e},zn.upperCase=Gu,zn.upperFirst=Yu,zn.each=va,zn.eachRight=ga,zn.first=Hi,as(zn,(ms={},gr(zn,(function(t,e){Tt.call(zn.prototype,e)||(ms[e]=t)})),ms),{chain:!1}),zn.VERSION="4.17.21",Oe(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(t){zn[t].placeholder=zn})),Oe(["drop","take"],(function(t,e){Un.prototype[t]=function(n){n=n===o?1:mn(du(n),0);var r=this.__filtered__&&!e?new Un(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,d),type:t+(r.__dir__<0?"Right":"")}),r},Un.prototype[t+"Right"]=function(e){return this.reverse()[t](e).reverse()}})),Oe(["filter","map","takeWhile"],(function(t,e){var n=e+1,r=1==n||3==n;Un.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:ai(t,3),type:n}),e.__filtered__=e.__filtered__||r,e}})),Oe(["head","last"],(function(t,e){var n="take"+(e?"Right":"");Un.prototype[t]=function(){return this[n](1).value()[0]}})),Oe(["initial","tail"],(function(t,e){var n="drop"+(e?"":"Right");Un.prototype[t]=function(){return this.__filtered__?new Un(this):this[n](1)}})),Un.prototype.compact=function(){return this.filter(ns)},Un.prototype.find=function(t){return this.filter(t).head()},Un.prototype.findLast=function(t){return this.reverse().find(t)},Un.prototype.invokeMap=Zr((function(t,e){return"function"==typeof t?new Un(this):this.map((function(n){return Ir(n,t,e)}))})),Un.prototype.reject=function(t){return this.filter(Ma(ai(t)))},Un.prototype.slice=function(t,e){t=du(t);var n=this;return n.__filtered__&&(t>0||e<0)?new Un(n):(t<0?n=n.takeRight(-t):t&&(n=n.drop(t)),e!==o&&(n=(e=du(e))<0?n.dropRight(-e):n.take(e-t)),n)},Un.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Un.prototype.toArray=function(){return this.take(d)},gr(Un.prototype,(function(t,e){var n=/^(?:filter|find|map|reject)|While$/.test(e),r=/^(?:head|last)$/.test(e),i=zn[r?"take"+("last"==e?"Right":""):e],a=r||/^find/.test(e);i&&(zn.prototype[e]=function(){var e=this.__wrapped__,u=r?[1]:arguments,s=e instanceof Un,c=u[0],l=s||$a(e),f=function(t){var e=i.apply(zn,Be([t],u));return r&&p?e[0]:e};l&&n&&"function"==typeof c&&1!=c.length&&(s=l=!1);var p=this.__chain__,d=!!this.__actions__.length,h=a&&!p,y=s&&!d;if(!a&&l){e=y?e:new Un(this);var m=t.apply(e,u);return m.__actions__.push({func:pa,args:[f],thisArg:o}),new Wn(m,p)}return h&&y?t.apply(this,u):(m=this.thru(f),h?r?m.value()[0]:m.value():m)})})),Oe(["pop","push","shift","sort","splice","unshift"],(function(t){var e=It[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",r=/^(?:pop|shift)$/.test(t);zn.prototype[t]=function(){var t=arguments;if(r&&!this.__chain__){var o=this.value();return e.apply($a(o)?o:[],t)}return this[n]((function(n){return e.apply($a(n)?n:[],t)}))}})),gr(Un.prototype,(function(t,e){var n=zn[e];if(n){var r=n.name+"";Tt.call(jn,r)||(jn[r]=[]),jn[r].push({name:e,func:n})}})),jn[zo(o,2).name]=[{name:"wrapper",func:o}],Un.prototype.clone=function(){var t=new Un(this.__wrapped__);return t.__actions__=Eo(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=Eo(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=Eo(this.__views__),t},Un.prototype.reverse=function(){if(this.__filtered__){var t=new Un(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},Un.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=$a(t),r=e<0,o=n?t.length:0,i=function(t,e,n){for(var r=-1,o=n.length;++r=this.__values__.length;return{done:t,value:t?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(t){for(var e,n=this;n instanceof Fn;){var r=zi(n);r.__index__=0,r.__values__=o,e?i.__wrapped__=r:e=r;var i=r;n=n.__wrapped__}return i.__wrapped__=t,e},zn.prototype.reverse=function(){var t=this.__wrapped__;if(t instanceof Un){var e=t;return this.__actions__.length&&(e=new Un(this)),(e=e.reverse()).__actions__.push({func:pa,args:[Ji],thisArg:o}),new Wn(e,this.__chain__)}return this.thru(Ji)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return fo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Yt&&(zn.prototype[Yt]=function(){return this}),zn}();fe._=hn,(r=function(){return hn}.call(e,n,e,t))===o||(t.exports=r)}.call(this)},7771:(t,e,n)=>{var r=n(5639);t.exports=function(){return r.Date.now()}},4841:(t,e,n)=>{var r=n(7561),o=n(3218),i=n(3448),a=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,s=/^0o[0-7]+$/i,c=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return NaN;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||s.test(t)?c(t.slice(2),n?2:8):a.test(t)?NaN:+t}},75:function(t){(function(){var e,n,r;"undefined"!=typeof performance&&null!==performance&&performance.now?t.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(t.exports=function(){return(e()-r)/1e6},n=process.hrtime,r=(e=function(){var t;return 1e9*(t=n())[0]+t[1]})()):Date.now?(t.exports=function(){return Date.now()-r},r=Date.now()):(t.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},4087:(t,e,n)=>{for(var r=n(1407),o="undefined"==typeof window?n.g:window,i=["moz","webkit"],a="AnimationFrame",u=o["request"+a],s=o["cancel"+a]||o["cancelRequest"+a],c=0;!u&&c{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(6115)),s=r(n(1655)),c=r(n(4993)),l=r(n(3808)),f=r(n(8416)),p=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(9196)),d=r(n(679));function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}var y=function(t){(0,s.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,l.default)(e);if(n){var o=(0,l.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,c.default)(this,t)});function o(){var t;(0,i.default)(this,o);for(var e=arguments.length,n=new Array(e),a=0;a{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(1655)),s=r(n(4993)),c=r(n(3808));function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(l=function(t){return t?n:e})(t)}var f=function(t){(0,u.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,c.default)(e);if(n){var o=(0,c.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,s.default)(this,t)});function o(){return(0,i.default)(this,o),r.apply(this,arguments)}return(0,a.default)(o,[{key:"componentDidUpdate",value:function(){this.props.cb()}},{key:"render",value:function(){return null}}]),o}(function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=l(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(9196)).Component);e.default=f,t.exports=e.default,t.exports.default=e.default},679:(t,e,n)=>{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(6115)),s=r(n(1655)),c=r(n(4993)),l=r(n(3808)),f=r(n(8416)),p=function(t,e){if(t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=d(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}(n(9196));function d(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(d=function(t){return t?n:e})(t)}var h=function(t){(0,s.default)(o,t);var e,n,r=(e=o,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,r=(0,l.default)(e);if(n){var o=(0,l.default)(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return(0,c.default)(this,t)});function o(){var t;(0,i.default)(this,o);for(var e=arguments.length,n=new Array(e),a=0;a{"use strict";var r=n(4836),o=n(8698);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=r(n(6690)),a=r(n(9728)),u=r(n(6115)),s=r(n(1655)),c=r(n(4993)),l=r(n(3808)),f=r(n(8416)),p=A(n(9196)),d=A(n(9064)),h=n(7727),y=r(n(7145)),m=r(n(6536)),v=r(n(133)),g=r(n(9302));function b(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(b=function(t){return t?n:e})(t)}function A(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==o(t)&&"function"!=typeof t)return{default:t};var n=b(e);if(n&&n.has(t))return n.get(t);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var u=i?Object.getOwnPropertyDescriptor(t,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=t[a]}return r.default=t,n&&n.set(t,r),r}function w(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function _(t){for(var e=1;e0&&m0&&v0?1:a<0?-1:0,s=i;if(0!==u)for(var c=this._getKeyFn(),l=Math.abs(a),f=i+u;f=0;f+=u){var p=this._getItemHeight(c(t[f])).drag;if(l

3&&void 0!==arguments[3]?arguments[3]:this.props.list;if(e{"use strict";n.d(e,{w_:()=>l});var r=n(9196),o=n.n(r),i={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},a=o().createContext&&o().createContext(i),u=function(){return u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n{var r;self,r=function(t,e){return(()=>{"use strict";var n={229:e=>{e.exports=t},297:t=>{t.exports=e}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={exports:{}};return n[t](i,i.exports,o),i.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return(()=>{o.r(i),o.d(i,{default:()=>w,SteppedLineTo:()=>_,Line:()=>x,SteppedLine:()=>S});var t=o(229),e=o.n(t),n=o(297),r=o.n(n);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n2)throw new Error('LinkTo anchor format is " "');var n,r,o=(r=2,function(t){if(Array.isArray(t))return t}(n=e)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(n,r)||function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=o[0],a=o[1];return Object.assign({},b,i?this.parseAnchorText(i)||{x:this.parseAnchorPercent(i)}:{},a?this.parseAnchorText(a)||{y:this.parseAnchorPercent(a)}:{})}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"detect",value:function(){var t=this.props,e=t.from,n=t.to,r=t.within,o=void 0===r?"":r,i=this.findElement(e),a=this.findElement(n);if(!i||!a)return!1;var u=this.fromAnchor,s=this.toAnchor,c=i.getBoundingClientRect(),l=a.getBoundingClientRect(),f=window.pageXOffset,p=window.pageYOffset;if(o){var d=this.findElement(o),h=d.getBoundingClientRect();f-=h.left+(window.pageXOffset||document.documentElement.scrollLeft)-d.scrollLeft,p-=h.top+(window.pageYOffset||document.documentElement.scrollTop)-d.scrollTop}var y=c.left+c.width*u.x+f,m=l.left+l.width*s.x+f;return{x0:y,y0:c.top+c.height*u.y+p,x1:m,y1:l.top+l.height*s.y+p}}},{key:"render",value:function(){var t=this.detect();return t?r().createElement(x,l({},t,this.props)):null}}]),n}(n.Component);w.propTypes=s({from:e().string.isRequired,to:e().string.isRequired,within:e().string,fromAnchor:e().string,toAnchor:e().string,delay:e().oneOfType([e().number,e().bool])},A);var _=function(t){y(n,t);var e=v(n);function n(){return p(this,n),e.apply(this,arguments)}return h(n,[{key:"render",value:function(){var t=this.detect();return t?r().createElement(S,l({},t,this.props)):null}}]),n}(w),x=function(t){y(n,t);var e=v(n);function n(){return p(this,n),e.apply(this,arguments)}return h(n,[{key:"componentDidMount",value:function(){this.within.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.within.removeChild(this.el)}},{key:"findElement",value:function(t){return document.getElementsByClassName(t)[0]}},{key:"render",value:function(){var t=this,e=this.props,n=e.x0,o=e.y0,i=e.x1,a=e.y1,u=e.within,s=void 0===u?"":u;this.within=s?this.findElement(s):document.body;var c=a-o,f=i-n,p=180*Math.atan2(c,f)/Math.PI,d=Math.sqrt(f*f+c*c),h={position:"absolute",top:"".concat(o,"px"),left:"".concat(n,"px"),width:"".concat(d,"px"),zIndex:Number.isFinite(this.props.zIndex)?String(this.props.zIndex):"1",transform:"rotate(".concat(p,"deg)"),transformOrigin:"0 0"},y={borderTopColor:this.props.borderColor||"#f00",borderTopStyle:this.props.borderStyle||"solid",borderTopWidth:this.props.borderWidth||1},m={className:this.props.className,style:Object.assign({},y,h)};return r().createElement("div",{className:"react-lineto-placeholder"},r().createElement("div",l({ref:function(e){t.el=e}},m)))}}]),n}(n.PureComponent);x.propTypes=s({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired},A);var S=function(t){y(n,t);var e=v(n);function n(){return p(this,n),e.apply(this,arguments)}return h(n,[{key:"render",value:function(){return"h"===this.props.orientation?this.renderHorizontal():this.renderVertical()}},{key:"renderVertical",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=n-t;if(Math.abs(i)<=1)return r().createElement(x,l({},this.props,{x0:t,y0:e,x1:t,y1:o}));if(0===i)return r().createElement(x,this.props);var a=this.props.borderWidth||1,u=Math.round((e+o)/2),s=i>0?a:0,c=Math.min(t,n)-s,f=Math.max(t,n);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(x,l({},this.props,{x0:t,y0:e,x1:t,y1:u})),r().createElement(x,l({},this.props,{x0:n,y0:o,x1:n,y1:u})),r().createElement(x,l({},this.props,{x0:c,y0:u,x1:f,y1:u})))}},{key:"renderHorizontal",value:function(){var t=Math.round(this.props.x0),e=Math.round(this.props.y0),n=Math.round(this.props.x1),o=Math.round(this.props.y1),i=o-e;if(Math.abs(i)<=1)return r().createElement(x,l({},this.props,{x0:t,y0:e,x1:n,y1:e}));if(0===i)return r().createElement(x,this.props);var a=this.props.borderWidth||1,u=Math.round((t+n)/2),s=i<0?a:0,c=Math.min(e,o)-s,f=Math.max(e,o);return r().createElement("div",{className:"react-steppedlineto"},r().createElement(x,l({},this.props,{x0:t,y0:e,x1:u,y1:e})),r().createElement(x,l({},this.props,{x0:n,y0:o,x1:u,y1:o})),r().createElement(x,l({},this.props,{x0:u,y0:c,x1:u,y1:f})))}}]),n}(n.PureComponent);S.propTypes=s({x0:e().number.isRequired,y0:e().number.isRequired,x1:e().number.isRequired,y1:e().number.isRequired,orientation:e().oneOf(["h","v"])},A)})(),i})()},t.exports=r(n(9064),n(9196))},7166:function(t,e,n){var r;r=function(t,e){return function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(e,n){e.exports=t},function(t,n){t.exports=e},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n.n(r),i=n(0),a=n.n(i);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function s(t,e){for(var n=0;n=f},n)),o.a.createElement("div",null,o.a.createElement("button",{ref:function(e){t.minusNode=e},onClick:g,onTouchEnd:g,className:[i||"",u||""].join(" "),type:"button",style:i||u?void 0:y,disabled:h||c<=l},r)))}}])&&s(n.prototype,r),e}(r.Component);f.propTypes={onClickPlus:a.a.func.isRequired,onClickMinus:a.a.func.isRequired,plusBtnContents:a.a.node,minusBtnContents:a.a.node,btnClass:a.a.string,plusBtnClass:a.a.string,minusBtnClass:a.a.string,controlsClass:a.a.string,scale:a.a.number,minScale:a.a.number,maxScale:a.a.number,disableZoom:a.a.bool},f.defaultProps={plusBtnContents:"+",minusBtnContents:"-",disableZoom:!1};var p=f;function d(t,e,n){return Math.max(t,Math.min(e,n))}function h(t,e){return{x:(t.x+e.x)/2,y:(t.y+e.y)/2}}function y(t){return{x:t.clientX,y:t.clientY}}function m(t,e){return n=y(t),r=y(e),o=n.x-r.x,i=n.y-r.y,Math.sqrt(Math.pow(o,2)+Math.pow(i,2));var n,r,o,i}var v=!1;try{var g={get passive(){v=!0}};window.addEventListener("test",g,g),window.removeEventListener("test",g,g)}catch(t){v=!1}function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function A(){return A=Object.assign||function(t){for(var e=1;e1&&!r?this.scaleFromMultiTouch(t):1===t.touches.length&&this.startPointerInfo&&!n&&this.onDrag(t.touches[0])}}},{key:"onDrag",value:function(t){var e=this,n=this.startPointerInfo,r=n.translation,o=n.pointers[0],i=t.clientX-o.clientX,a=t.clientY-o.clientY,u={x:r.x+i,y:r.y+a},s=Math.abs(i)>1||Math.abs(a)>1;this.setState({shouldPreventTouchEndDefault:s},(function(){e.props.onChange({scale:e.props.value.scale,translation:e.clampTranslation(u)})}))}},{key:"onWheel",value:function(t){if(!this.props.disableZoom){t.preventDefault(),t.stopPropagation();var e=Math.pow(2,.002*t.deltaY),n=d(this.props.minScale,this.props.value.scale+(1-e),this.props.maxScale),r=this.clientPosToTranslatedPos({x:t.clientX,y:t.clientY});this.scaleFromPoint(n,r)}}},{key:"setPointerState",value:function(t){t&&0!==t.length?this.startPointerInfo={pointers:t,scale:this.props.value.scale,translation:this.props.value.translation}:this.startPointerInfo=void 0}},{key:"clampTranslation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,n=t.x,r=t.y,o=e.translationBounds,i=o.xMax,a=o.xMin,u=o.yMax,s=o.yMin;return s=null!=s?s:-1/0,u=null!=u?u:1/0,{x:d(a=null!=a?a:-1/0,n,i=null!=i?i:1/0),y:d(s,r,u)}}},{key:"translatedOrigin",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.value.translation,e=this.getContainerBoundingClientRect();return{x:e.left+t.x,y:e.top+t.y}}},{key:"clientPosToTranslatedPos",value:function(t){var e=t.x,n=t.y,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.value.translation,o=this.translatedOrigin(r);return{x:e-o.x,y:n-o.y}}},{key:"scaleFromPoint",value:function(t,e){var n=this.props.value,r=n.translation,o=n.scale,i=t/(0!=o?o:1),a=P(e.x,i),u=P(e.y,i),s={x:r.x-a,y:r.y-u};this.props.onChange({scale:t,translation:this.clampTranslation(s)})}},{key:"scaleFromMultiTouch",value:function(t){var e=this.startPointerInfo.pointers,n=t.touches,r=m(e[0],e[1]),o=m(n[0],n[1])/r,i=this.startPointerInfo.scale,a=i+(o-1)*i,u=d(this.props.minScale,a,this.props.maxScale),s=h(y(e[0]),y(e[1])),c=h(y(n[0]),y(n[1])),l=c.x-s.x,f=c.y-s.y,p=u/i,v=this.clientPosToTranslatedPos(s,this.startPointerInfo.translation),g=P(v.x,p),b=P(v.y,p),A={x:this.startPointerInfo.translation.x-g+l,y:this.startPointerInfo.translation.y-b+f};this.props.onChange({scale:u,translation:this.clampTranslation(A)})}},{key:"discreteScaleStepSize",value:function(){var t=this.props,e=t.minScale,n=t.maxScale;return Math.abs(n-e)/10}},{key:"changeScale",value:function(t){var e=this.props.value.scale+t,n=this.props,r=d(n.minScale,e,n.maxScale),o=this.getContainerBoundingClientRect(),i=o.left+o.width/2,a=o.top+o.height/2,u=this.clientPosToTranslatedPos({x:i,y:a});this.scaleFromPoint(r,u)}},{key:"getContainerNode",value:function(){return this.containerNode}},{key:"getContainerBoundingClientRect",value:function(){return this.getContainerNode().getBoundingClientRect()}},{key:"renderControls",value:function(){var t=this,e=this.discreteScaleStepSize();return o.a.createElement(p,{onClickPlus:function(){return t.changeScale(e)},onClickMinus:function(){return t.changeScale(-e)},plusBtnContents:this.props.plusBtnContents,minusBtnContents:this.props.minusBtnContents,btnClass:this.props.btnClass,plusBtnClass:this.props.plusBtnClass,minusBtnClass:this.props.minusBtnClass,controlsClass:this.props.controlsClass,scale:this.props.value.scale,minScale:this.props.minScale,maxScale:this.props.maxScale,disableZoom:this.props.disableZoom})}},{key:"render",value:function(){var t=this,e=this.props,n=e.showControls,r=e.children,i=this.props.value.scale,a=this.clampTranslation(this.props.value.translation),u=function(e){t.state.shouldPreventTouchEndDefault&&(e.preventDefault(),t.setState({shouldPreventTouchEndDefault:!1}))};return o.a.createElement("div",{ref:function(e){t.containerNode=e},style:{height:"100%",width:"100%",position:"relative",touchAction:"none"},onClickCapture:u,onTouchEndCapture:u},r?r({translation:a,scale:i}):void 0,n?this.renderControls():void 0)}}]),e}(r.Component),T=function(t){function e(t){var n;_(this,e),n=x(this,S(e).call(this,t));var r=e.isControlled(t);return n.state=r?{lastKnownValueFromProps:t.value}:{value:t.defaultValue||{scale:1,translation:{x:0,y:0}},lastKnownValueFromProps:void 0},n}return I(e,t),E(e,null,[{key:"propTypes",get:function(){return{children:a.a.func,value:a.a.shape({scale:a.a.number.isRequired,translation:k.isRequired}),defaultValue:a.a.shape({scale:a.a.number.isRequired,translation:k.isRequired}),disableZoom:a.a.bool,disablePan:a.a.bool,onChange:a.a.func,translationBounds:a.a.shape({xMin:a.a.number,xMax:a.a.number,yMin:a.a.number,yMax:a.a.number}),minScale:a.a.number,maxScale:a.a.number,showControls:a.a.bool,plusBtnContents:a.a.node,minusBtnContents:a.a.node,btnClass:a.a.string,plusBtnClass:a.a.string,minusBtnClass:a.a.string,controlsClass:a.a.string}}}]),E(e,[{key:"innerProps",value:function(){var t=this.props;return t.value,t.defaultValue,t.onChange,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,["value","defaultValue","onChange"])}},{key:"getValue",value:function(){return e.isControlled(this.props)?this.props.value:this.state.value}},{key:"render",value:function(){var t=this,n=this.props,r=n.onChange,i=n.children,a=e.isControlled(this.props),u=a?this.props.value:this.state.value;return o.a.createElement(B,A({onChange:function(e){a?r(e):t.setState({value:e})},value:u},this.innerProps()),i)}}],[{key:"getDerivedStateFromProps",value:function(t,n){var r=e.isControlled(t),o=n.lastKnownValueFromProps&&e.isControlled({value:n.lastKnownValueFromProps});return!o&&r?{value:void 0,lastKnownValueFromProps:t.value}:o&&!r?{value:n.lastKnownValueFromProps,lastKnownValueFromProps:void 0}:o&&r?{lastKnownValueFromProps:t.value}:o||r?void 0:null}},{key:"isControlled",value:function(t){return null!=t.value}}]),e}(r.Component),M=function(t){return o.a.createElement(T,t,(function(e){var n=e.translation,r=e.scale,i="translate(".concat(n.x,"px, ").concat(n.y,"px) scale(").concat(r,")");return o.a.createElement("div",{style:{height:"100%",width:"100%",position:"relative",overflow:"hidden",touchAction:"none",msTouchAction:"none",cursor:"all-scroll",WebkitUserSelect:"none",MozUserSelect:"none",msUserSelect:"none"}},o.a.createElement("div",{style:{display:"inline-block",transform:i,transformOrigin:"0 0 "}},t.children))}))};n.d(e,"MapInteractionCSS",(function(){return M})),n.d(e,"MapInteraction",(function(){return T})),e.default=T}])},t.exports=r(n(9064),n(9196))},9144:(t,e,n)=>{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),u={},l={},p={},d={};for(var y in e)if(Object.prototype.hasOwnProperty.call(e,y)){var m=e[y];if("number"==typeof m)p[y]=m,d[y]=0,u[y]=m,l[y]=0;else{for(var v=o.state.lastIdealStyle[y],g=o.state.lastIdealVelocity[y],b=0;b{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e10*h&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var i=(o.accumulatedTime-Math.floor(o.accumulatedTime/h)*h)/h,a=Math.floor(o.accumulatedTime/h),u=[],l=[],p=[],d=[],y=0;y{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e10*y&&(o.accumulatedTime=0),0===o.accumulatedTime)return o.animationID=null,void o.startAnimationIfNecessary();for(var a=(o.accumulatedTime-Math.floor(o.accumulatedTime/y)*y)/y,u=Math.floor(o.accumulatedTime/y),c=v(o.props.willEnter,o.props.willLeave,o.props.didLeave,o.state.mergedPropsStyles,n,o.state.currentStyles,o.state.currentVelocities,o.state.lastIdealStyles,o.state.lastIdealVelocities),f=c[0],d=c[1],h=c[2],g=c[3],b=c[4],A=0;A{"use strict";e.__esModule=!0,e.default=function(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=0);return e},t.exports=e.default},8505:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e,n){for(var r={},o=0;or[l])return-1;if(o>i[l]&&sr[l])return 1;if(a>i[l]&&u{"use strict";e.__esModule=!0,e.default={noWobble:{stiffness:170,damping:26},gentle:{stiffness:120,damping:14},wobbly:{stiffness:180,damping:12},stiff:{stiffness:210,damping:20}},t.exports=e.default},7727:(t,e,n)=>{"use strict";function r(t){return t&&t.__esModule?t.default:t}e.__esModule=!0;var o=n(9144);e.Motion=r(o);var i=n(6506);e.StaggeredMotion=r(i);var a=n(921);e.TransitionMotion=r(a);var u=n(124);e.spring=r(u);var s=n(2392);e.presets=r(s);var c=n(9483);e.stripStyle=r(c);var l=n(9566);e.reorderKeys=r(l)},9566:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(){},t.exports=e.default},7739:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e,n){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(0!==n[r])return!1;var o="number"==typeof e[r]?e[r]:e[r].val;if(t[r]!==o)return!1}return!0},t.exports=e.default},124:(t,e,n)=>{"use strict";e.__esModule=!0;var r=Object.assign||function(t){for(var e=1;e{"use strict";e.__esModule=!0,e.default=function(t,e,r,o,i,a,u){var s=r+(-i*(e-o)+-a*r)*t,c=e+s*t;return Math.abs(s){"use strict";e.__esModule=!0,e.default=function(t){var e={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]="number"==typeof t[n]?t[n]:t[n].val);return e},t.exports=e.default},6536:(t,e,n)=>{"use strict";var r=n(4836);Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(n(6690)),i=r(n(9728)),a=r(n(8416)),u=function(){function t(){(0,o.default)(this,t),(0,a.default)(this,"map",new Map),(0,a.default)(this,"_refFns",new Map)}return(0,i.default)(t,[{key:"ref",value:function(t){var e=this,n=this._refFns.get(t);return n||function n(r){null==r?(e._refFns.delete(t),e.map.delete(t)):(e._refFns.set(t,n),e.map.set(t,r))}}}]),t}();e.default=u},1420:function(t,e,n){var r;r=function(t,e,n){return function(){"use strict";var r={"./src/Xarrow/utils/buzzier.js":function(t,e,n){n.r(e),n.d(e,{bzFunction:function(){return r},buzzierMinSols:function(){return o}});var r=function(t,e,n,r){return function(o){return Math.pow(1-o,3)*t+3*Math.pow(1-o,2)*o*e+3*(1-o)*Math.pow(o,2)*n+Math.pow(o,3)*r}},o=function(t,e,n,o){var i=r(t,e,n,o),a=-6*t+12*e-6*n,u=Math.pow(-6*t+12*e-6*n,2)-4*(3*e-3*t)*(-3*t+9*e-9*n+3*o),s=2*(-3*t+9*e-9*n+3*o);return[i((a+Math.sqrt(u))/s),i((a-Math.sqrt(u))/s)]}},"./src/Xarrow/Xarrow.tsx":function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0?"translate(-100% , -50%)":"translate(-0% , -50%)",width:"max-content",position:"absolute",left:Z.cx0+Z.labelEndPos.x,top:Z.cy0+Z.labelEndPos.y+_+5}},g.end):null,L?c.default.createElement(c.default.Fragment,null,u(u([],Z.startPoints),Z.endPoints).map((function(t,e){return c.default.createElement("div",{key:e,style:{background:"gray",opacity:.5,borderRadius:"50%",transform:"translate(-50%, -50%)",height:5,width:5,position:"absolute",left:t.x-Z.mainDivPos.x,top:t.y-Z.mainDivPos.y}})}))):null):null)});h.propTypes=p.default,e.default=h},"./src/Xarrow/anchors.ts":function(t,e,n){t=n.nmd(t),Object.defineProperty(e,"__esModule",{value:!0}),e.calcAnchors=void 0,e.calcAnchors=function(t,e){return t.map((function(t){var n,r,o=(n=e.right-e.x,r=e.bottom-e.y,{middle:{x:.5*n,y:.5*r},left:{x:0,y:.5*r},right:{x:n,y:.5*r},top:{x:.5*n,y:0},bottom:{x:.5*n,y:r}})[t.position],i=o.x,a=o.y;return{x:e.x+i+t.offset.x,y:e.y+a+t.offset.y,anchor:t}}))},n.c[n.s]},"./src/Xarrow/propTypes.ts":function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n("prop-types")),i=n("./src/constants.tsx"),a=o.default.oneOf(i.cAnchorEdge),u=o.default.exact({position:a.isRequired,offset:o.default.exact({x:o.default.number,y:o.default.number}).isRequired}),s=o.default.oneOfType([a,u]),c=o.default.oneOfType([s,o.default.arrayOf(s)]),l=o.default.oneOfType([o.default.string,o.default.exact({current:o.default.any})]),f=o.default.oneOfType([o.default.element,o.default.string]),p=o.default.exact({start:f,middle:f,end:f}),d=o.default.oneOf(Object.keys(i.arrowShapes)),h=o.default.any,y=o.default.oneOfType([d,o.default.exact({svgElem:h,offsetForward:o.default.number}).isRequired]),m={start:l.isRequired,end:l.isRequired,startAnchor:c,endAnchor:c,labels:o.default.oneOfType([f,p]),color:o.default.string,lineColor:o.default.string,showHead:o.default.bool,headColor:o.default.string,headSize:o.default.number,tailSize:o.default.number,tailColor:o.default.string,strokeWidth:o.default.number,showTail:o.default.bool,path:o.default.oneOf(i.cPaths),showXarrow:o.default.bool,curveness:o.default.number,gridBreak:o.default.string,dashness:o.default.oneOfType([o.default.bool,o.default.object]),headShape:y,tailShape:y,animateDrawing:o.default.oneOfType([o.default.bool,o.default.number]),zIndex:o.default.number,passProps:o.default.object,arrowBodyProps:o.default.object,arrowHeadProps:o.default.object,arrowTailProps:o.default.object,SVGcanvasProps:o.default.object,divContainerProps:o.default.object,_extendSVGcanvas:o.default.number,_debug:o.default.bool,_cpx1Offset:o.default.number,_cpy1Offset:o.default.number,_cpx2Offset:o.default.number,_cpy2Offset:o.default.number};e.default=m},"./src/Xarrow/useXarrowProps.ts":function(t,e,n){var r=this&&this.__assign||function(){return r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n0&&(e=e.filter((function(t){return"auto"!==t.position}))).push.apply(e,n.flatMap((function(t){return["left","right","top","bottom"].map((function(e){return r(r({},t),{position:e})}))}))),e.map((function(t){if("object"==typeof t){var e=t;return e.position||(e.position="auto"),e.offset||(e.offset={x:0,y:0}),e.offset.y||(e.offset.y=0),e.offset.x||(e.offset.x=0),e}return t}))},d=function(t){return"string"==typeof t&&(t in f.arrowShapes?t=f.arrowShapes[t]:(console.warn("'"+t+"' is not supported arrow shape. the supported arrow shapes is one of "+f.cArrowShapes+".\n reverting to default shape."),t=f.arrowShapes.arrow1)),void 0===(null==t?void 0:t.offsetForward)&&(t.offsetForward=.25),void 0===(null==t?void 0:t.svgElem)&&(t.svgElem="path"),t},h=function(t,e){return e&&(e.current=!0),t},y=function(t){return t},m=function(t,e,n){return h(t,n)},v=function(t,e,n){return h(Number(t),n)},g={start:function(t){return c.getElementByPropGiven(t)},end:function(t){return c.getElementByPropGiven(t)},startAnchor:function(t,e,n){return h(p(t),n)},endAnchor:function(t,e,n){return h(p(t),n)},labels:function(t){return function(t){var e={start:null,middle:null,end:null};if(t)if("string"==typeof t||s.default.isValidElement(t))e.middle=t;else for(var n in t)e[n]=t[n];return e}(t)},color:y,lineColor:function(t,e){return t||e.color},headColor:function(t,e){return t||e.color},tailColor:function(t,e){return t||e.color},strokeWidth:v,showHead:m,headSize:v,showTail:m,tailSize:v,path:m,curveness:v,gridBreak:function(t,e,n){return h((r=t,(o=c.xStr2absRelative(r))||(o={relative:.5,abs:0}),o),n);var r,o},dashness:function(t,e){return r=e,i=0,a=0,"object"==typeof(n=t)?(i=n.strokeLen||2*r.strokeWidth,a=n.strokeLen?n.nonStrokeLen:r.strokeWidth,o=n.animation?n.animation:null):"boolean"==typeof n&&n&&(i=2*r.strokeWidth,a=r.strokeWidth,o=null),{strokeLen:i,nonStrokeLen:a,animation:o,animDirection:1};var n,r,o,i,a},headShape:function(t){return d(t)},tailShape:function(t){return d(t)},showXarrow:y,animateDrawing:y,zIndex:function(t){return Number(t)},passProps:y,arrowBodyProps:m,arrowHeadProps:m,arrowTailProps:m,SVGcanvasProps:m,divContainerProps:m,divContainerStyle:m,SVGcanvasStyle:m,_extendSVGcanvas:m,_debug:m,_cpx1Offset:m,_cpy1Offset:m,_cpx2Offset:m,_cpy2Offset:m},b={};for(var A in g)b[A]=[A];for(var w=0,_=["lineColor","headColor","tailColor"];w<_.length;w++)b[A=_[w]].push("color");var x={start:null,end:null,startAnchor:"auto",endAnchor:"auto",labels:null,color:"CornflowerBlue",lineColor:null,headColor:null,tailColor:null,strokeWidth:4,showHead:!0,headSize:6,showTail:!1,tailSize:6,path:"smooth",curveness:.8,gridBreak:"50%",dashness:!1,headShape:"arrow1",tailShape:"arrow1",showXarrow:!0,animateDrawing:!1,zIndex:0,passProps:{},arrowBodyProps:{},arrowHeadProps:{},arrowTailProps:{},SVGcanvasProps:{},divContainerProps:{},divContainerStyle:{},SVGcanvasStyle:{},_extendSVGcanvas:0,_debug:!1,_cpx1Offset:0,_cpy1Offset:0,_cpx2Offset:0,_cpy2Offset:0},S={};S=function(t,e){for(var n,r=0,o=Object.entries(t);r0?1:-1,tt=X>0?1:-1,et=[x.offsetForward,S.offsetForward],nt=et[0],rt=et[1],ot=v*y,it=b*y,at=0,ut=0,st=0,ct=0,lt=ot*nt,ft=it*rt,pt=Number(w);u.cPaths.includes(A)||(A="smooth"),"straight"===A&&(pt=0,A="smooth");var dt=y+y*(v>b?v:b)/2,ht=dt,yt=dt,mt=dt,vt=dt;yt+=Number(O),ht+=Number(O),mt+=Number(O),vt+=Number(O);var gt=0,bt=K,At=0,wt=Q;if(Y<0&&(gt=(n=[bt,gt])[0],bt=n[1]),X<0&&(At=(r=[wt,At])[0],wt=r[1]),0===pt){var _t=Math.atan(Q/K);m&&(bt-=ot*(1-nt)*J*Math.cos(_t),wt-=ot*(1-nt)*tt*Math.sin(_t),_t*=tt,J<0&&(_t=(Math.PI-_t*J)*J),at=Math.cos(_t)*lt-Math.sin(_t)*ot/2,ut=Math.cos(_t)*ot/2+Math.sin(_t)*lt,R=180*_t/Math.PI);var xt=Math.atan(Q/K);g&&(gt+=it*(1-rt)*J*Math.cos(xt),At+=it*(1-rt)*tt*Math.sin(xt),xt*=-tt,J>0&&(xt=(Math.PI-xt*J)*J),st=Math.cos(xt)*ft-Math.sin(xt)*it/2,ct=Math.cos(xt)*it/2+Math.sin(xt)*ft,D=180*xt/Math.PI)}else"middle"===$&&($=K>Q?J?"left":"right":tt?"top":"bottom"),m&&(["left","right"].includes($)?(at+=lt*J,bt-=ot*(1-nt)*J,ut+=ot*J/2,"left"===$?(R=0,J<0&&(R+=180)):(R=180,J>0&&(R+=180))):["top","bottom"].includes($)&&(at+=ot*-tt/2,wt-=ot*tt-(ut+=lt*tt),"top"===$?(R=270,tt>0&&(R+=180)):(R=90,tt<0&&(R+=180))));g&&0!==pt&&(["left","right"].includes(U)?(gt+=it*J+(st+=ft*-J),ct+=-it*J/2,"left"===U?(D=180,J<0&&(D+=180)):(D=0,J>0&&(D+=180))):["top","bottom"].includes(U)&&(At+=it*tt+(ct+=ft*-tt),st+=it*tt/2,"top"===U?(D=90,tt>0&&(D+=180)):(D=270,tt<0&&(D+=180))));var St={x:at,y:ut},Ot={x:st,y:ct},Ct=gt,Et=At,It=bt,jt=wt,Pt={};"smooth"===A?Pt={hh:function(){Ct+=K*pt*J,It-=K*pt*J},vv:function(){Et+=Q*pt*tt,jt-=Q*pt*tt},hv:function(){Ct+=K*pt*J,jt-=Q*pt*tt},vh:function(){Et+=Q*pt*tt,It-=K*pt*J}}:"grid"===A&&(Pt={hh:function(){Ct+=(K*_.relative+_.abs)*J,It-=(K*(1-_.relative)-_.abs)*J,m&&(Ct-=ot*(1-nt)/2*J,It+=ot*(1-nt)/2*J),g&&(Ct-=it*(1-rt)/2*J,It+=it*(1-rt)/2*J)},vv:function(){Et+=(Q*_.relative+_.abs)*tt,jt-=(Q*(1-_.relative)-_.abs)*tt,m&&(Et-=ot*(1-nt)/2*tt,jt+=ot*(1-nt)/2*tt),g&&(Et-=it*(1-rt)/2*tt,jt+=it*(1-rt)/2*tt)},hv:function(){Ct=bt},vh:function(){Et=wt}});var kt="";["left","right"].includes(U)?kt+="h":["bottom","top"].includes(U)?kt+="v":"middle"===U&&(kt+="m"),["left","right"].includes($)?kt+="h":["bottom","top"].includes($)?kt+="v":"middle"===$&&(kt+="m"),Pt[kt=K>Q?kt.replace(/m/g,"h"):kt.replace(/m/g,"v")](),Ct+=C,Et+=E,It+=I,jt+=j;var Bt=s.buzzierMinSols(gt,Ct,It,bt),Tt=Bt[0],Mt=Bt[1],Rt=s.buzzierMinSols(At,Et,jt,wt),Dt=Rt[0],Nt=Rt[1];Tt<0&&(yt+=-Tt),Mt>K&&(ht+=Mt-K),Dt<0&&(mt+=-Dt),Nt>Q&&(vt+=Nt-Q),"grid"===A&&(yt+=dt,ht+=dt,mt+=dt,vt+=dt),gt+=yt,bt+=yt,At+=mt,wt+=mt,Ct+=yt,It+=yt,Et+=mt,jt+=mt;var zt=K+yt+ht,Lt=Q+mt+vt;Z-=yt,G-=mt;var Ft,Wt=s.bzFunction(gt,Ct,It,bt),Ut=s.bzFunction(At,Et,jt,wt),$t={x:Wt(.01),y:Ut(.01)},Vt={x:Wt(.5),y:Ut(.5)},Ht={x:Wt(.99),y:Ut(.99)};return"grid"===A?Ft="M "+gt+" "+At+" L "+Ct+" "+Et+" L "+It+" "+jt+" "+bt+" "+wt:"smooth"===A&&(Ft="M "+gt+" "+At+" C "+Ct+" "+Et+", "+It+" "+jt+", "+bt+" "+wt),{cx0:Z,cy0:G,x1:gt,x2:bt,y1:At,y2:wt,cw:zt,ch:Lt,cpx1:Ct,cpy1:Et,cpx2:It,cpy2:jt,dx:Y,dy:X,absDx:K,absDy:Q,headOrient:R,tailOrient:D,labelStartPos:$t,labelMiddlePos:Vt,labelEndPos:Ht,excLeft:yt,excRight:ht,excUp:mt,excDown:vt,headOffset:lt,arrowHeadOffset:St,arrowTailOffset:Ot,startPoints:N,endPoints:z,mainDivPos:q,xSign:J,ySign:tt,lineLength:null!==(l=null===(c=M.current)||void 0===c?void 0:c.getTotalLength())&&void 0!==l?l:0,fHeadSize:ot,fTailSize:it,arrowPath:Ft}}},"./src/Xarrow/utils/index.ts":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.getSvgPos=e.getElemPos=e.getShortestLine=e.xStr2absRelative=e.factorDpathStr=e.getElementByPropGiven=void 0,e.getElementByPropGiven=function(t){return"string"==typeof t?document.getElementById(t):null==t?void 0:t.current},e.factorDpathStr=function(t,e){var n=t.split(/(\d+(?:\.\d+)?)/);return(n=n.map((function(t){return Number(t)?(Number(t)*e).toString():t}))).join("")},e.xStr2absRelative=function(t){if("string"!=typeof t)return{abs:0,relative:.5};var e=t.split("%"),n=0,r=0;if(1==e.length){var o=parseFloat(e[0]);if(!isNaN(o))return{abs:n=o,relative:0}}else if(2==e.length){var i=[parseFloat(e[0]),parseFloat(e[1])],a=i[0],u=i[1];if(isNaN(a)||(r=a/100),isNaN(u)||(n=u),!isNaN(a)||!isNaN(u))return{abs:n,relative:r}}},e.getShortestLine=function(t,e){var n,r=1/0,o=1/0;return t.forEach((function(t){e.forEach((function(e){var i,a;i=t,a=e,(o=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2))){t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(e),s=0;s{"use strict";var e=[];function n(t){for(var n=-1,r=0;r{"use strict";var e={};t.exports=function(t,n){var r=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},9216:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:(t,e,n)=>{"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:t=>{"use strict";t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:t=>{"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},4586:(t,e,n)=>{"use strict";var r;n.d(e,{Z:()=>l});var o=new Uint8Array(16);function i(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var u=[],s=0;s<256;++s)u.push((s+256).toString(16).substr(1));const c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(u[t[e+0]]+u[t[e+1]]+u[t[e+2]]+u[t[e+3]]+"-"+u[t[e+4]]+u[t[e+5]]+"-"+u[t[e+6]]+u[t[e+7]]+"-"+u[t[e+8]]+u[t[e+9]]+"-"+u[t[e+10]]+u[t[e+11]]+u[t[e+12]]+u[t[e+13]]+u[t[e+14]]+u[t[e+15]]).toLowerCase();if(!function(t){return"string"==typeof t&&a.test(t)}(n))throw TypeError("Stringified UUID is invalid");return n},l=function(t,e,n){var r=(t=t||{}).random||(t.rng||i)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var o=0;o<16;++o)e[n+o]=r[o];return e}return c(r)}},9064:t=>{"use strict";t.exports=window.PropTypes},9196:t=>{"use strict";t.exports=window.React},6115:t=>{t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},6690:t=>{t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},9728:(t,e,n)=>{var r=n(4062);function o(t,e){for(var n=0;n{var r=n(4062);t.exports=function(t,e,n){return(e=r(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},t.exports.__esModule=!0,t.exports.default=t.exports},3808:t=>{function e(n){return t.exports=e=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},1655:(t,e,n)=>{var r=n(6015);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&r(t,e)},t.exports.__esModule=!0,t.exports.default=t.exports},4836:t=>{t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},4993:(t,e,n)=>{var r=n(8698).default,o=n(6115);t.exports=function(t,e){if(e&&("object"===r(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},6015:t=>{function e(n,r){return t.exports=e=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n,r)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},5036:(t,e,n)=>{var r=n(8698).default;t.exports=function(t,e){if("object"!==r(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,e||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},4062:(t,e,n)=>{var r=n(8698).default,o=n(5036);t.exports=function(t){var e=o(t,"string");return"symbol"===r(e)?e:String(e)},t.exports.__esModule=!0,t.exports.default=t.exports},8698:t=>{function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}},r={};function o(t){var e=r[t];if(void 0!==e)return e.exports;var i=r[t]={id:t,loaded:!1,exports:{}};return n[t].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.m=n,o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,n)=>(o.f[n](t,e),e)),[])),o.u=t=>({530:"async-Settings",569:"async-IconWrapper"}[t]+".js"),o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="viasp_dash:",o.l=(n,r,i,a)=>{if(t[n])t[n].push(r);else{var u,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l{u.onerror=u.onload=null,clearTimeout(d);var o=t[n];if(delete t[n],u.parentNode&&u.parentNode.removeChild(u),o&&o.forEach((t=>t(r))),e)return e(r)},d=setTimeout(p.bind(null,void 0,{type:"timeout",target:u}),12e4);u.onerror=p.bind(null,u.onerror),u.onload=p.bind(null,u.onload),s&&document.head.appendChild(u)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!t;)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})();var i,a=function(){var t=document.currentScript;if(!t){for(var e=document.getElementsByTagName("script"),n=[],r=0;r{var t={179:0};o.f.j=(e,n)=>{var r=o.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,o)=>r=t[e]=[n,o]));n.push(r[2]=i);var a=o.p+o.u(e),u=new Error;o.l(a,(n=>{if(o.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;u.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",u.name="ChunkLoadError",u.type=i,u.request=a,r[1](u)}}),"chunk-"+e,e)}};var e=(e,n)=>{var r,i,[a,u,s]=n,c=0;if(a.some((e=>0!==t[e]))){for(r in u)o.o(u,r)&&(o.m[r]=u[r]);s&&s(o)}for(e&&e(n);c{"use strict";o.r(s),o.d(s,{ViaspDash:()=>qi});var t=o(9196),e=o.n(t),n=o(9064),r=o.n(n),i=o(4800),a=o(3379),u=o.n(a),c=o(7795),l=o.n(c),f=o(569),p=o.n(f),d=o(3565),h=o.n(d),y=o(9216),m=o.n(y),v=o(4589),g=o.n(v),b=o(2273),A={};A.styleTagTransform=g(),A.setAttributes=h(),A.insert=p().bind(null,"head"),A.domAPI=l(),A.insertStyleElement=m(),u()(b.Z,A),b.Z&&b.Z.locals&&b.Z.locals;var w=o(4781),_=o(1098),x={};x.styleTagTransform=g(),x.setAttributes=h(),x.insert=p().bind(null,"head"),x.domAPI=l(),x.insertStyleElement=m(),u()(_.Z,x),_.Z&&_.Z.locals&&_.Z.locals;var S=o(4078);function O(t,e){if(t){if("string"==typeof t)return C(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C(t,e):void 0}}function C(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0){d+=" mark_symbol";var b=function(t){return function(t){if(Array.isArray(t))return C(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||O(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.")}()}(new Set(g.map((function(t){return m[t].color})).reverse())).map((function(t,e,n){var r=e/n.length*100,o=(e+1)/n.length*100;return"".concat(t," ").concat(r,"%, ").concat(t," ").concat(o,"%")})).join(", ");h={background:"linear-gradient(-45deg, ".concat(b,")")}}return f=0===f.length?"":f,i.has_reason&&c&&(h=v(m,i.uuid)),e().createElement("span",{className:d,id:i.uuid+p,style:h,onClick:function(t){return u(t,i)},onMouseEnter:function(){return l(!0)},onMouseLeave:function(){return l(!1)}},f)}function I(t){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},I(t)}function j(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:B,e=arguments.length>1?arguments[1]:void 0;return e.type===M?k(k({},t),{},{shownNodes:t.shownNodes.concat(e.node)}):e.type===T?k(k({},t),{},{shownNodes:t.shownNodes.filter((function(t){return t!==e.node}))}):k({},t)},z=e().createContext([]),L=function(){return e().useContext(z)},F=function(t){var n,r,o=t.children,i=(n=e().useReducer(N,B),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(n,r)||function(t,e){if(t){if("string"==typeof t)return j(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?j(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1];return e().createElement(z.Provider,{value:{globalState:a,dispatch:u}},o)};F.propTypes={children:r().element};var W=o(7217);function U(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:J,e=arguments.length>1?arguments[1]:void 0;return"FILTERS/SIGNATURE/ADD"===e.type?Q(Q({},t),{},{activeFilters:t.activeFilters.concat(e.signature)}):e.type===tt?Q(Q({},t),{},{activeFilters:t.activeFilters.filter((function(t){return t!==e.filter}))}):Q({},t)},nt=e().createContext([]),rt=function(){return e().useContext(nt)},ot=function(t){var n,r,o=t.children,i=(n=e().useReducer(et,J),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(n,r)||function(t,e){if(t){if("string"==typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?X(t,e):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],u=i[1];return e().createElement(nt.Provider,{value:[a,u]},o)};function it(t){return"string"==typeof t&&"%"===t[t.length-1]&&function(t){const e=parseFloat(t);return!isNaN(e)&&isFinite(e)}(t.substring(0,t.length-1))}function at(t,e){0===e&&(null==t?void 0:t.style)&&(t.style.display="none")}ot.propTypes={children:r().element};const ut={animating:"rah-animating",animatingUp:"rah-animating--up",animatingDown:"rah-animating--down",animatingToHeightZero:"rah-animating--to-height-zero",animatingToHeightAuto:"rah-animating--to-height-auto",animatingToHeightSpecific:"rah-animating--to-height-specific",static:"rah-static",staticHeightZero:"rah-static--height-zero",staticHeightAuto:"rah-static--height-auto",staticHeightSpecific:"rah-static--height-specific"};function st(t,e){return[t.static,0===e&&t.staticHeightZero,"number"==typeof e&&e>0?t.staticHeightSpecific:null,"auto"===e&&t.staticHeightAuto].filter((t=>t)).join(" ")}const ct=["animateOpacity","animationStateClasses","applyInlineTransitions","children","className","contentClassName","contentRef","delay","duration","easing","height","onHeightAnimationEnd","onHeightAnimationStart","style"],lt=t.forwardRef(((e,n)=>{const{animateOpacity:r=!1,animationStateClasses:o={},applyInlineTransitions:i=!0,children:a,className:u="",contentClassName:s,delay:c=0,duration:l=500,easing:f="ease",height:p,onHeightAnimationEnd:d,onHeightAnimationStart:h,style:y,contentRef:m}=e,v=Object.assign({},e);ct.forEach((t=>{delete v[t]}));const g=(0,t.useRef)(p),b=(0,t.useRef)(null),A=(0,t.useRef)(),w=(0,t.useRef)(),_=(0,t.useRef)(Object.assign(Object.assign({},ut),o)),x="undefined"!=typeof window,S=(0,t.useRef)(!(!x||!window.matchMedia)&&window.matchMedia("(prefers-reduced-motion)").matches),O=S.current?0:c,C=S.current?0:l;let E=p,I="visible";"number"==typeof p?(E=p<0?0:p,I="hidden"):it(E)&&(E="0%"===p?0:p,I="hidden");const[j,P]=(0,t.useState)(E),[k,B]=(0,t.useState)(I),[T,M]=(0,t.useState)(!1),[R,D]=(0,t.useState)(st(_.current,p));(0,t.useEffect)((()=>{at(b.current,j)}),[]),(0,t.useEffect)((()=>{if(p!==g.current&&b.current){!function(t,e){0===e&&(null==t?void 0:t.style)&&(t.style.display="")}(b.current,g.current),b.current.style.overflow="hidden";const t=b.current.offsetHeight;b.current.style.overflow="";const e=C+O;let n,r,o,i="hidden";const a="auto"===g.current;"number"==typeof p?(n=p<0?0:p,r=n):it(p)?(n="0%"===p?0:p,r=n):(n=t,r="auto",i=void 0),a&&(r=n,n=t);const u=[_.current.animating,("auto"===g.current||pg.current)&&_.current.animatingDown,0===r&&_.current.animatingToHeightZero,"auto"===r&&_.current.animatingToHeightAuto,"number"==typeof r&&r>0?_.current.animatingToHeightSpecific:null].filter((t=>t)).join(" "),s=st(_.current,r);P(n),B("hidden"),M(!a),D(u),clearTimeout(w.current),clearTimeout(A.current),a?(o=!0,w.current=setTimeout((()=>{P(r),B(i),M(o),null==h||h(r)}),50),A.current=setTimeout((()=>{M(!1),D(s),at(b.current,r),null==d||d(r)}),e)):(null==h||h(n),w.current=setTimeout((()=>{P(r),B(i),M(!1),D(s),"auto"!==p&&at(b.current,n),null==d||d(n)}),e))}return g.current=p,()=>{clearTimeout(w.current),clearTimeout(A.current)}}),[p]);const N=Object.assign(Object.assign({},y),{height:j,overflow:k||(null==y?void 0:y.overflow)});T&&i&&(N.transition=`height ${C}ms ${f} ${O}ms`,(null==y?void 0:y.transition)&&(N.transition=`${y.transition}, ${N.transition}`),N.WebkitTransition=N.transition);const z={};r&&(z.transition=`opacity ${C}ms ${f} ${O}ms`,z.WebkitTransition=z.transition,0===j&&(z.opacity=0));const L=void 0!==v["aria-hidden"]?v["aria-hidden"]:0===p;return t.createElement("div",Object.assign({},v,{"aria-hidden":L,className:`${R} ${u}`,style:N,ref:n}),t.createElement("div",{className:s,style:z,ref:t=>{b.current=t,m&&(m.current=t)}},a))})),ft=lt;function pt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt?e.activeTargets.push(n):e.skippedTargets.push(n))}))}))},$t=[],Vt=0,Ht={attributes:!0,characterData:!0,childList:!0,subtree:!0},qt=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Zt=function(t){return void 0===t&&(t=0),Date.now()+t},Gt=!1,Yt=new(function(){function t(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return t.prototype.run=function(t){var e=this;if(void 0===t&&(t=250),!Gt){Gt=!0;var n,r=Zt(t);n=function(){var n=!1;try{n=function(){var t,e=0;for(Ut(e);At.some((function(t){return t.activeTargets.length>0}));)e=Wt(),Ut(e);return At.some((function(t){return t.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?t=new ErrorEvent("error",{message:wt}):((t=document.createEvent("Event")).initEvent("error",!1,!1),t.message=wt),window.dispatchEvent(t)),e>0}()}finally{if(Gt=!1,t=r-Zt(),!Vt)return;n?e.run(1e3):t>0?e.run(t):e.start()}},function(t){if(!_t){var e=0,n=document.createTextNode("");new MutationObserver((function(){return $t.splice(0).forEach((function(t){return t()}))})).observe(n,{characterData:!0}),_t=function(){n.textContent="".concat(e?e--:e++)}}$t.push(t),_t()}((function(){requestAnimationFrame(n)}))}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,Ht)};document.body?e():jt.addEventListener("DOMContentLoaded",e)},t.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),qt.forEach((function(e){return jt.addEventListener(e,t.listener,!0)})))},t.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),qt.forEach((function(e){return jt.removeEventListener(e,t.listener,!0)})),this.stopped=!0)},t}()),Xt=function(t){!Vt&&t>0&&Yt.start(),!(Vt+=t)&&Yt.stop()},Kt=function(){function t(t,e){this.target=t,this.observedBox=e||vt.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var t,e=zt(this.target,this.observedBox,!0);return t=this.target,Ct(t)||function(t){switch(t.tagName){case"INPUT":if("image"!==t.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(t)||"inline"!==getComputedStyle(t).display||(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Qt=function(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e},Jt=new WeakMap,te=function(t,e){for(var n=0;n=0&&(o&&At.splice(At.indexOf(n),1),n.observationTargets.splice(r,1),Xt(-1))},t.disconnect=function(t){var e=this,n=Jt.get(t);n.observationTargets.slice().forEach((function(n){return e.unobserve(t,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},t}(),ne=function(){function t(t){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof t)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ee.connect(this,t)}return t.prototype.observe=function(t,e){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!It(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ee.observe(this,t,e)},t.prototype.unobserve=function(t){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!It(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ee.unobserve(this,t)},t.prototype.disconnect=function(){ee.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const re=e()["undefined"!=typeof document&&void 0!==document.createElement?"useLayoutEffect":"useEffect"],oe="undefined"!=typeof window&&"ResizeObserver"in window?window.ResizeObserver:ne;function ie(){}let ae;const ue=function(e,n){const r=ae||(ae=function(){let t=!1,e=[];const n=new Map,r=new oe(((r,o)=>{e=e.concat(r),t||window.requestAnimationFrame((function(){const r=new Set;for(let t=0;tn(e[t],o)))}e=[],t=!1})),t=!0}));return{observer:r,subscribe(t,e){var o;r.observe(t);const i=null!==(o=n.get(t))&&void 0!==o?o:[];i.push(e),n.set(t,i)},unsubscribe(t,e){var o;const i=null!==(o=n.get(t))&&void 0!==o?o:[];if(1===i.length)return r.unobserve(t),void n.delete(t);const a=i.indexOf(e);-1!==a&&i.splice(a,1),n.set(t,i)}}}()),o=(e=>{const n=t.useRef(e);return t.useEffect((()=>{n.current=e})),n})(n);return re((()=>{let t=!1;const n=e&&"current"in e?e.current:e;if(!n)return ie;function i(e,n){t||o.current(e,n)}return r.subscribe(n,i),()=>{t=!0,r.unsubscribe(n,i)}}),[e,r,o]),r.observer};var se=o(1296),ce=o.n(se),le=o(3927),fe=o(3279),pe=o.n(fe);function de(t){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},de(t)}function he(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function ye(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,[e].map(ve))}))}}),[n]),ue(t,(function(t){return a(n.current,t)}))};function be(t){return function(t){if(Array.isArray(t))return _e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||we(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 Ae(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||we(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function we(t,e){if(t){if("string"==typeof t)return _e(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(t,e):void 0}}function _e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nle.cp})))){var a=Math.max.apply(Math,be(e.map((function(t){return t.fittingHeight}))));i(a),v((0,q.KT)(s,o.uuid,r>a))}else i(Math.min(le.cp,r)),v((0,q.KT)(s,o.uuid,r>le.cp));v((0,q.Cf)(s))}),[n,p,i,A,_,o.loading,v,o.uuid,o.isExpandVAllTheWay,s]);e().useEffect((function(){var t;x(),t=function(){g.current&&x()},setTimeout((function(){requestAnimationFrame(t)}))}),[x,p,r,o.isExpandVAllTheWay,l]),ue(b,x);var O=n.filter((function(t){return A(t)})).map((function(t){return e().createElement(E,{key:JSON.stringify(t),symbolIdentifier:t,isSubnode:u,handleClick:w})}));return e().createElement("div",{className:"set_container ".concat(!0===o.loading?"hidden":""),style:{color:c.dark},ref:b},e().createElement("span",{className:"set_value"},O.length>0?O:""))}function Oe(n){var r=n.node,o=(0,q.oA)(),i=o.state,a=o.dispatch,u=o.reloadEdges,s=(0,W.oF)();return e().createElement("div",{className:"recursion_button",onClick:function(t){t.stopPropagation(),a((0,q.Qx)(r.uuid));var e=Object.values(i.transformationNodesMap).flat().filter((function(t){return t.shownRecursion})).map((function(t){return t.uuid}));r.shownRecursion?e.splice(e.indexOf(r.uuid),1):e.push(r.uuid),u(e,i.clingraphGraphics.length>0)}},0===r.recursive.length?null:e().createElement("div",{className:"recursion_button_text",style:{backgroundColor:s.primary,color:s.light}},e().createElement(t.Suspense,{fallback:e().createElement("div",null,"R")},e().createElement(gt,{icon:"clockwiseVerticalArrows",width:"9",height:"9"}))))}function Ce(t,e,n,r,o){if(null!=t&&t.current){var i=t.current,a=(0,w._d)(i,"set_too_high"),u=(0,w._d)(i,"node_border"),s=!!a&&a.scrollWidth>u.offsetWidth-le.PM;n<=i.offsetWidth-le.PM&&o(!1),!e&&s&&(r(i.offsetWidth),o(!0)),null!==n||s||o(!1)}}function Ee(t){var n=t.node,r=t.isSubnode,o=t.branchSpace,i=t.transformationId,a=Ae(e().useState(null),2),u=a[0],s=a[1],c=(0,W.oF)(),l=L().dispatch,f=(0,q.oA)().dispatch,p=function(t){var n=Ae(V(),1)[0],r=Ae(e().useState("txt-elem node_border mouse_over_shadow ".concat(t.uuid," ").concat(n===t.uuid?"highlighted_node":null)),2),o=r[0],i=r[1];return e().useEffect((function(){n===t.uuid&&console.log("highlighted node",t.uuid),i("txt-elem node_border mouse_over_shadow ".concat(t.uuid," ").concat(n===t.uuid?"highlighted_node":null))}),[t.uuid,n]),o}(n),d=Ae(e().useState(le.n1),2),h=d[0],y=d[1],m=yt().animationState,v=((0,G.J)().setShownDetail,e().useRef(l)),g=e().useRef(n.uuid),b=e().useRef(null);ge(b,g),e().useEffect((function(){var t=v.current,e=g.current;return t(D(e)),function(){t(R(e))}}),[]),e().useEffect((function(){f((0,q.Z3)(i,n.uuid,h>le.cp))}),[h,f,n.uuid,i]);var A=e().useCallback((function(){Ce(o,n.showMini,u,s,(function(t){f((0,q.Wp)(i,n.uuid,t)),f((0,q.Cf)(i))}))}),[o,u,m.graph_zoom,n.showMini]),w=e().useMemo((function(){return ce()(A,le.Oq)}),[A]);e().useEffect((function(){A()}),[A,n.showMini]),ue(document.getElementById("content"),w);var _="".concat(n.uuid,"_animate_height");return e().createElement("div",{className:p,style:{backgroundColor:c.light,color:c.primary},id:n.uuid,onClick:function(t){t.stopPropagation()}},n.showMini?e().createElement("div",{style:{backgroundColor:c.primary,color:c.primary},className:"mini"}):e().createElement(ft,{id:_,duration:500,height:h,ref:b,contentClassName:"set_too_high ".concat(!0===n.loading?"loading":null)},e().createElement(Se,{node:n,setHeight:y,parentID:_,isSubnode:r,transformationId:i}),e().createElement(Oe,{node:n})))}function Ie(t){var n=t.node,r=t.branchSpace,o=t.transformationId,i=Ae(e().useState(),2),a=i[0],u=i[1],s=(0,W.oF)(),c=L().dispatch,l="node_border ".concat(n.uuid),f=(0,G.J)().setShownDetail,p=(0,q.oA)().dispatch,d=yt().animationState,h=e().useRef(c),y=e().useRef(n.uuid),m=function(t){f(t.uuid)};e().useEffect((function(){var t=h.current,e=y.current;return t(D(e)),function(){t(R(e))}}),[]);var v=e().useCallback((function(){Ce(r,n.showMini,a,u,(function(t){return p((0,q.Wp)(o,n.uuid,t))}))}),[r,n.showMini,a,d.graph_zoom]),g=e().useMemo((function(){return ce()(v,le.Oq)}),[v]);return e().useEffect((function(){v()}),[v,n]),ue(document.getElementById("content"),g),e().createElement("div",{className:l,style:{color:s.primary},id:n.uuid,onClick:function(t){t.stopPropagation(),m(n)}},n.showMini?e().createElement("div",{style:{backgroundColor:s.primary,color:s.primary},className:"mini"}):e().createElement(e().Fragment,null,e().createElement(Oe,{node:n}),n.recursive.map((function(t){return e().createElement(Ee,{key:t.uuid,node:t,notifyClick:m,isSubnode:!0,transformationId:o})}))))}Se.propTypes={node:i.b6,setHeight:r().func,parentID:r().string,isSubnode:r().bool,transformationId:r().oneOfType([r().number,r().string])},Oe.propTypes={node:i.b6},Ee.propTypes={node:i.b6,isSubnode:r().bool,branchSpace:r().object,transformationId:r().oneOfType([r().number,r().string])},Ie.propTypes={node:i.b6,branchSpace:r().object,transformationId:r().oneOfType([r().number,r().string])};const je={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Pe=function(t){var e,n,r=[],o=1;if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),je[t])r=je[t].slice(),n="rgb";else if("transparent"===t)o=0,n="rgb",r=[0,0,0];else if("#"===t[0]){var i=t.slice(1),a=i.length;o=1,a<=4?(r=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===a&&(o=parseInt(i[3]+i[3],16)/255)):(r=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===a&&(o=parseInt(i[6]+i[7],16)/255)),r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0),n="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var u=e[1],s="cmyk"===(n=u.replace(/a$/,""))?4:"gray"===n?1:3;r=e[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===n&&(n=r.shift()),r=r.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===n?255*t:"h"===n[0]?100*t:"l"!==n[0]||e?"lab"===n?125*t:"lch"===n?e<2?150*t:360*t:"o"!==n[0]||e?"oklab"===n?.4*t:"oklch"===n?e<2?.4*t:360*t:t:t:100*t;if("h"===n[e]||2===e&&"h"===n[n.length-1]){if(void 0!==ke[t])return ke[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)})),o=r.length>s?r.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(r=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),n=t.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:n,values:r,alpha:o}};var ke={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const Be={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},Te={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,n,r,o,i,a=t[0]/360,u=t[1]/100,s=t[2]/100,c=0;if(0===u)return[i=255*s,i,i];for(e=2*s-(n=s<.5?s*(1+u):s+u-s*u),o=[0,0,0];c<3;)(r=a+1/3*-(c-1))<0?r++:r>1&&r--,i=6*r<1?e+6*(n-e)*r:2*r<1?n:3*r<2?e+(n-e)*(2/3-r)*6:e,o[c++]=255*i;return o}};function Me(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return Re(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Re(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Re(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n/g,">").replace(/\n/g,"
")}}),s[r]&&i?s[r].map((function(t,n){return e().createElement("span",{key:"".concat(r,"_").concat(t.color,"_").concat(n),className:"rule_highlight_dot \n ".concat(t.markedForInsertion?"fade-in":"","\n ").concat(t.markedForDeletion?"fade-out":"","\n "),style:{backgroundColor:t.color,marginLeft:"".concat(le.I$+n*le.I$,"px"),animationDuration:"".concat(le.qH,"ms")},onAnimationEnd:function(e){e.target.className.includes("fade-out")&&l(r,t.color,s),e.target.className.includes("fade-in")&&c(r,t.color,s)}})})):null)}function Fe(t){var n=t.ruleWrappers,r=(0,W.oF)();return e().createElement("div",{style:{backgroundColor:r.primary,color:r.light,borderColor:r.primary},className:"txt-elem row_header"},n.map((function(t){return e().createElement(Le,{key:t.hash,ruleWrapper:t,multipleRules:n.length>1})})))}ze.styleTagTransform=g(),ze.setAttributes=h(),ze.insert=p().bind(null,"head"),ze.domAPI=l(),ze.insertStyleElement=m(),u()(Ne.Z,ze),Ne.Z&&Ne.Z.locals&&Ne.Z.locals,Le.propTypes={ruleWrapper:i.vG,multipleRules:r().bool},Fe.propTypes={ruleWrappers:r().arrayOf(i.vG)};var We=o(9397),Ue={};function $e(t){return $e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$e(t)}function Ve(){return Ve=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.itemSelected&&this.context.state.transformationDropIndices!==this.props.item.adjacent_sort_indices&&t.itemSelected!==this.props.itemSelected&&this.context.dispatch((0,q.O7)(this.props.item.adjacent_sort_indices)),this.props.itemSelectedle.cP&&null===this.intervalId&&(this.intervalId=setInterval((function(){var t=n.rowRef.current;null!==t&&n.setAnimationState((function(e){return Qe(Qe({},e),{},nn({},n.props.item.id,Qe(Qe({},e[n.props.item.id]),{},{width:t.clientWidth,height:t.clientHeight,top:t.offsetTop,left:t.offsetLeft})))}))}),le.Wn)),this.props.itemSelected0&&t.shownRecursion?e().createElement("div",{className:"branch_space",key:t.uuid,style:{flex:"0 0 ".concat(r,"%")},ref:g.current[n]},e().createElement(Ie,{key:t.uuid,node:t,branchSpace:g.current[n],transformationId:o.id})):e().createElement("div",{className:"branch_space",key:t.uuid,style:{flex:"0 0 ".concat(r,"%")},ref:g.current[n]},e().createElement(Ee,{key:t.uuid,node:t,isSubnode:!1,branchSpace:g.current[n],transformationId:o.id}))}))):null,o.allNodesShowMini||!o.isExpandableV&&!o.isCollapsibleV?null:e().createElement(De,{transformationId:o.id,nodes:f}))}nn(on,"contextType",q.vi),on.propTypes={item:i.KA,itemSelected:r().number,anySelected:r().number,dragHandleProps:r().object,commonProps:r().shape({transform:i.WY})},an.propTypes={transformation:i.KA,dragHandleProps:r().object,itemSelected:r().number,transform:i.WY};var un=o(1564),sn={};sn.styleTagTransform=g(),sn.setAttributes=h(),sn.insert=p().bind(null,"head"),sn.domAPI=l(),sn.insertStyleElement=m(),u()(un.Z,sn),un.Z&&un.Z.locals&&un.Z.locals;var cn=o(6486);function ln(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return fn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?fn(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&e>a.offsetWidth-le.PM;r<=a.offsetWidth-le.PM&&i(!1),!n&&u&&(o(a.offsetWidth),i(!0)),null!==r||u||i(!1)}}(r,f.width,n.showMini,i,a,(function(t){d((0,q.WK)(n.uuid,t))}))}),[r,i,h.graph_zoom,n.showMini]),m=e().useMemo((function(){return(0,cn.debounce)(y,le.Oq)}),[y]);return e().useEffect((function(){y()}),[y,n.showMini]),ue(document.getElementById("content"),m),e().createElement("div",{className:c,style:{backgroundColor:u.primary,color:u.primary},id:n.uuid},n.showMini?e().createElement("div",{style:{backgroundColor:u.primary,color:u.primary},className:"mini"}):e().createElement("div",{style:{backgroundColor:u.primary,color:u.primary}},n.loading?e().createElement("div",{className:"loading",style:f}):e().createElement("img",{src:"".concat(s("clingraph"),"/").concat(n.uuid),alt:"Clingraph"})))}pn.propTypes={node:i.q7,branchSpace:r().object};var dn=o(3869),hn={};function yn(t){return yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yn(t)}function mn(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function vn(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?Vn(er,--Jn):0,Kn--,10===tr&&(Kn=1,Xn--),tr}function ar(){return tr=Jn2||lr(tr)>3?"":" "}function dr(t,e){for(;--e&&ar()&&!(tr<48||tr>102||tr>57&&tr<65||tr>70&&tr<97););return cr(t,sr()+(e<6&&32==ur()&&32==ar()))}function hr(t){for(;ar();)switch(tr){case t:return Jn;case 34:case 39:34!==t&&39!==t&&hr(tr);break;case 40:41===t&&hr(t);break;case 92:ar()}return Jn}function yr(t,e){for(;ar()&&t+tr!==57&&(t+tr!==84||47!==ur()););return"/*"+cr(e,Jn-1)+"*"+zn(47===t?t:ar())}function mr(t){for(;!lr(ur());)ar();return cr(t,Jn)}function vr(t,e){for(var n="",r=0;r6)switch(Vn(t,e+1)){case 109:if(45!==Vn(t,e+4))break;case 102:return Un(t,/(.+:)(.+)-([^]+)/,"$1"+Pn+"$2-$3$1"+jn+(108==Vn(t,e+3)?"$3":"$2-$3"))+t;case 115:return~$n(t,"stretch")?br(Un(t,"stretch","fill-available"),e,n)+t:t}break;case 5152:case 5920:return Un(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(e,n,r,o,i,a,u){return In+n+":"+r+u+(o?In+n+"-span:"+(i?a:+a-+r)+u:"")+t}));case 4949:if(121===Vn(t,e+6))return Un(t,":",":"+Pn)+t;break;case 6444:switch(Vn(t,45===Vn(t,14)?18:11)){case 120:return Un(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Pn+(45===Vn(t,14)?"inline-":"")+"box$3$1"+Pn+"$2$3$1"+In+"$2box$3")+t;case 100:return Un(t,":",":"+In)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Un(t,"scroll-","scroll-snap-")+t}return t}function Ar(t,e,n,r){if(t.length>-1&&!t.return)switch(t.type){case Tn:return void(t.return=br(t.value,t.length,n));case Rn:return vr([rr(t,{value:Un(t.value,"@","@"+Pn)})],r);case Bn:if(t.length)return function(t,e){return t.map(e).join("")}(n=t.props,(function(e){switch(Wn(e,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":or(rr(t,{props:[Un(e,/:(read-\w+)/,":"+jn+"$1")]})),or(rr(t,{props:[e]})),Ln(t,{props:Yn(n,r)});break;case"::placeholder":or(rr(t,{props:[Un(e,/:(plac\w+)/,":"+Pn+"input-$1")]})),or(rr(t,{props:[Un(e,/:(plac\w+)/,":"+jn+"$1")]})),or(rr(t,{props:[Un(e,/:(plac\w+)/,In+"input-$1")]})),or(rr(t,{props:[e]})),Ln(t,{props:Yn(n,r)})}return""}))}}function wr(t){return function(t){return er="",t}(_r("",null,null,null,[""],t=function(t){return Xn=Kn=1,Qn=qn(er=t),Jn=0,[]}(t),0,[0],t))}function _r(t,e,n,r,o,i,a,u,s){for(var c=0,l=0,f=a,p=0,d=0,h=0,y=1,m=1,v=1,g=0,b="",A=o,w=i,_=r,x=b;m;)switch(h=g,g=ar()){case 40:if(108!=h&&58==Vn(x,f-1)){-1!=$n(x+=Un(fr(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:x+=fr(g);break;case 9:case 10:case 13:case 32:x+=pr(h);break;case 92:x+=dr(sr()-1,7);continue;case 47:switch(ur()){case 42:case 47:Gn(Sr(yr(ar(),sr()),e,n,s),s);break;default:x+="/"}break;case 123*y:u[c++]=qn(x)*v;case 125*y:case 59:case 0:switch(g){case 0:case 125:m=0;case 59+l:-1==v&&(x=Un(x,/\f/g,"")),d>0&&qn(x)-f&&Gn(d>32?Or(x+";",r,n,f-1,s):Or(Un(x," ","")+";",r,n,f-2,s),s);break;case 59:x+=";";default:if(Gn(_=xr(x,e,n,c,l,o,u,b,A=[],w=[],f,i),i),123===g)if(0===l)_r(x,e,_,_,A,i,f,u,w);else switch(99===p&&110===Vn(x,3)?100:p){case 100:case 108:case 109:case 115:_r(t,_,_,r&&Gn(xr(t,_,_,0,0,o,u,b,o,A=[],f,w),w),o,w,f,u,r?A:w);break;default:_r(x,_,_,_,[""],w,0,u,w)}}c=l=d=0,y=v=1,b=x="",f=a;break;case 58:f=1+qn(x),d=h;default:if(y<1)if(123==g)--y;else if(125==g&&0==y++&&125==ir())continue;switch(x+=zn(g),g*y){case 38:v=l>0?1:(x+="\f",-1);break;case 44:u[c++]=(qn(x)-1)*v,v=1;break;case 64:45===ur()&&(x+=fr(ar())),p=ur(),l=f=qn(b=x+=mr(sr())),g++;break;case 45:45===h&&2==qn(x)&&(y=0)}}return i}function xr(t,e,n,r,o,i,a,u,s,c,l,f){for(var p=o-1,d=0===o?i:[""],h=Zn(d),y=0,m=0,v=0;y0?d[g]+" "+b:Un(b,/&\f/g,d[g])))&&(s[v++]=A);return nr(t,e,n,0===o?Bn:u,s,c,l,f)}function Sr(t,e,n,r){return nr(t,e,n,kn,zn(tr),Hn(t,2,-2),0,r)}function Or(t,e,n,r,o){return nr(t,e,n,Tn,Hn(t,0,r),Hn(t,r+1,-1),r,o)}var Cr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Er="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Ir="undefined"!=typeof window&&"HTMLElement"in window,jr=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY&&"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY),Pr=(new Set,Object.freeze([])),kr=Object.freeze({});var Br=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Tr=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Mr=/(^-|-$)/g;function Rr(t){return t.replace(Tr,"-").replace(Mr,"")}var Dr=/(a)(d)/gi,Nr=function(t){return String.fromCharCode(t+(t>25?39:97))};function zr(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=Nr(e%52)+n;return(Nr(e%52)+n).replace(Dr,"$1-$2")}var Lr,Fr=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},Wr=function(t){return Fr(5381,t)};function Ur(t){return"string"==typeof t&&!0}var $r="function"==typeof Symbol&&Symbol.for,Vr=$r?Symbol.for("react.memo"):60115,Hr=$r?Symbol.for("react.forward_ref"):60112,qr={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Zr={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Gr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Yr=((Lr={})[Hr]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Lr[Vr]=Gr,Lr);function Xr(t){return("type"in(e=t)&&e.type.$$typeof)===Vr?Gr:"$$typeof"in t?Yr[t.$$typeof]:qr;var e}var Kr=Object.defineProperty,Qr=Object.getOwnPropertyNames,Jr=Object.getOwnPropertySymbols,to=Object.getOwnPropertyDescriptor,eo=Object.getPrototypeOf,no=Object.prototype;function ro(t,e,n){if("string"!=typeof e){if(no){var r=eo(e);r&&r!==no&&ro(t,r,n)}var o=Qr(e);Jr&&(o=o.concat(Jr(e)));for(var i=Xr(t),a=Xr(e),u=0;u0?" Args: ".concat(e.join(", ")):""))}var po=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return t.prototype.indexOfGroup=function(t){for(var e=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;t>=o;)if((o<<=1)<0)throw fo(16,"".concat(t));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],r=this.indexOfGroup(t),o=r+n,i=r;i=0){var n=document.createTextNode(e);return this.element.insertBefore(n,this.nodes[t]||null),this.length++,!0}return!1},t.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},t.prototype.getRule=function(t){return t0&&(s+="".concat(t,","))})),r+="".concat(a).concat(u,'{content:"').concat(s,'"}').concat("/*!sc*/\n")},i=0;i0?".".concat(e):t},l=s.slice();l.push((function(t){t.type===Bn&&t.value.includes("&")&&(t.props[0]=t.props[0].replace(ko,n).replace(r,c))})),a.prefix&&l.push(Ar),l.push(gr);var f=function(t,o,i,u){void 0===o&&(o=""),void 0===i&&(i=""),void 0===u&&(u="&"),e=u,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=t.replace(Bo,""),c=wr(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(c=To(c,a.namespace));var f,p,d,h=[];return vr(c,(f=l.concat((d=function(t){return h.push(t)},function(t){t.root||(t=t.return)&&d(t)})),p=Zn(f),function(t,e,n,r){for(var o="",i=0;i="A"&&t<="Z"};function $o(t){for(var e="",n=0;n>>0);if(!e.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);e.insertRules(this.componentId,i,a)}r=ao(r,i),this.staticRulesId=i}else{for(var u=Fr(this.baseHash,n.hash),s="",c=0;c>>0);e.hasNameForId(this.componentId,p)||e.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=ao(r,p)}}return r},t}(),Xo=e().createContext(void 0);Xo.Consumer;var Ko={};function Qo(n,r,o){var i=io(n),a=n,u=!Ur(n),s=r.attrs,c=void 0===s?Pr:s,l=r.componentId,f=void 0===l?function(t,e){var n="string"!=typeof t?"sc":Rr(t);Ko[n]=(Ko[n]||0)+1;var r="".concat(n,"-").concat(function(t){return zr(Wr(t)>>>0)}("6.1.0"+n+Ko[n]));return e?"".concat(e,"-").concat(r):r}(r.displayName,r.parentComponentId):l,p=(void 0===r.displayName&&function(t){Ur(t)?"styled.".concat(t):"Styled(".concat(function(t){return t.displayName||t.name||"Component"}(t),")")}(n),r.displayName&&r.componentId?"".concat(Rr(r.displayName),"-").concat(r.componentId):r.componentId||f),d=i&&a.attrs?a.attrs.concat(c).filter(Boolean):c,h=r.shouldForwardProp;if(i&&a.shouldForwardProp){var y=a.shouldForwardProp;if(r.shouldForwardProp){var m=r.shouldForwardProp;h=function(t,e){return y(t,e)&&m(t,e)}}else h=y}var v=new Yo(o,p,i?a.componentStyle:void 0),g=e().forwardRef((function(n,r){return function(n,r,o){var i=n.attrs,a=n.componentStyle,u=n.defaultProps,s=n.foldedComponentIds,c=n.styledComponentId,l=n.target,f=e().useContext(Xo),p=Lo(),d=n.shouldForwardProp||p.shouldForwardProp,h=function(t,e,n){for(var r,o=Sn(Sn({},e),{className:void 0,theme:n}),i=0;i2&&Po.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,r)}}(),function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString(),n=xo(),r=uo([n&&'nonce="'.concat(n,'"'),"".concat(Er,'="true"'),"".concat("data-styled-version",'="').concat("6.1.0",'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(t.sealed)throw fo(2);return t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)throw fo(2);var r=((n={})[Er]="",n["data-styled-version"]="6.1.0",n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),o=xo();return o&&(r.nonce=o),[e().createElement("style",Sn({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new Po({isServer:!0}),this.sealed=!1}t.prototype.collectStyles=function(t){if(this.sealed)throw fo(2);return e().createElement(Fo,{sheet:this.instance},t)},t.prototype.interleaveWithNodeStream=function(t){throw fo(3)}}(),"__sc-".concat(Er,"__");var ai,ui,si=ii.span(ri||(ai=["\n &:before {\n color: ",";\n position: absolute;\n left: 0;\n content: '","';\n};\n"],ui||(ui=ai.slice(0)),ri=Object.freeze(Object.defineProperties(ai,{raw:{value:Object.freeze(ui)}}))),(function(t){return t.color}),(function(t){return t.content}));function ci(t){var n=t.value,r=(0,Z.rV)().state,o=(0,W.oF)(),i="UNKNOWN FILTER",a="?",u="#123123";return"Node"===n._type&&(a="{}",u=o.primary,i=(0,w.jZ)(r.show_all?n.atoms:n.diff)),"Signature"===n._type&&(a=" /",u=o.primary,i="".concat(n.name,"/").concat(n.args)),"Transformation"===n._type&&(a=":-",u=o.primary,i=(0,w._5)(n.rules)),e().createElement(si,{color:u,content:a},i)}function li(t){var n=t.onClose,r=(0,W.oF)();return e().createElement("span",{style:{color:r.light},className:"close",onClick:n},"X")}ci.propTypes={value:r().oneOfType([i.jK,i.f8,i.b6])},r().oneOfType([i.jK,i.f8,i.b6]),r().bool,r().func,li.propTypes={onClose:r().func},r().oneOfType([i.f8,i.b6,i.jK]);var fi=o(4057),pi={};function di(t){return di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(t)}function hi(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function yi(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0?i:null)}Ci.propTypes={id:r().string};var Ei=o(1569),Ii=o(4405);function ji(t){return(0,Ii.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM11 15V17H13V15H11ZM11 7V13H13V7H11Z"}}]})(t)}function Pi(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,u=[],s=!0,c=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(u.push(r.value),u.length!==e);s=!0);}catch(t){c=!0,o=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,e)||function(t,e){if(t){if("string"==typeof t)return ki(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ki(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ki(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n0,m=e().useRef(null);return e().createElement("div",{className:"graph_container",ref:m},e().createElement(gi,{transform:o}),e().createElement(t.Suspense,{fallback:e().createElement("div",null,"Loading...")},e().createElement(bt,null)),e().createElement(Di(),{ref:d,itemKey:"hash",template:on,list:u,onMoveEnd:function(t,e,n,r){c.lower_bound<=r&&r<=c.upper_bound&&(h(),f(n,r)),l((0,q.O7)(null))},container:function(){return r.current},autoScrollRegionSize:200,padding:0,unsetZIndex:!0,commonProps:{transform:o}}),y?e().createElement(bn,{transform:o}):null,0===p.length?null:e().createElement(Ci,null),0===u.length?null:e().createElement(wi,null))}function Hi(t){var n=t.notifyDash,r=(0,Z.rV)().backendURL,o=Ui((0,Ei.y_)(),2)[1],i=(e().useRef(r),e().useRef(o),yt().setAnimationState),a=e().useRef(i),u=Ui(e().useState(!1),2),s=u[0],c=u[1],l=Ui(e().useState({scale:1,translation:{xMin:0,xMax:0}}),2),f=l[0],p=l[1],d=Ui(e().useState({translation:{x:0,y:0},scale:1}),2),h=d[0],y=d[1],m=e().useRef(null);e().useEffect((function(){var t=a.current;return t((function(t){return Wi(Wi({},t),{},{graph_zoom:{translation:{x:0,y:0},scale:1}})})),function(){t((function(t){return t.graph_zoom,function(t,e){if(null==t)return{};var n,r,o=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(t,Li)}))}}),[]),e().useEffect((function(){var t=function(t){console.log(t.key),t.key===le.mZ&&c(!0)},e=function(t){t.key===le.mZ&&c(!1)};return window.addEventListener("keydown",t),window.addEventListener("keyup",e),function(){window.removeEventListener("keydown",t),window.removeEventListener("keyup",e)}}),[]);var v=(0,G.J)().shownDetail,g=e().useRef(null),b=e().useCallback((function(){null===v&&null!==g.current&&y((function(t){var e=m.current.clientWidth*t.scale,n=m.current.clientWidth-t.translation.x-e;return n<=0?Wi({},t):t.scale<1?{scale:1,translation:Wi(Wi({},t),{},{x:0})}:Wi(Wi({},t),{},{translation:Wi(Wi({},t.translation),{},{x:t.translation.x+n})})})),null!==v&&null===g.current&&y((function(t){var e=m.current.clientWidth*t.scale-m.current.clientWidth+t.translation.x;return 1===t.scale||e>=le.Jk*m.current.clientWidth?Wi({},t):Wi(Wi({},t),{},{translation:Wi(Wi({},t.translation),{},{x:t.translation.x-le.Ft*m.current.clientWidth-e})})})),g.current=v}),[y,v]);e().useEffect((function(){b()}),[v,b]);var A=e().useCallback((function(){y((function(t){var e=m.current.clientWidth,n=null===v?0:le.Ft*e,r=e*t.scale;return f.translation.xMin+t.translation.x>=le.Jk*e?Wi({},t):Wi(Wi({},t),{},{translation:Wi(Wi({},t.translation),{},{x:e-r-n})})}))}),[v,f]),w=e().useMemo((function(){return ce()(A,le.aO)}),[A]);ue(m,w);var _=Ui(e().useState(0),2),x=_[0],S=_[1];return e().useEffect((function(){var t=m.current,e=function(t){S(t.target.scrollTop)};return t&&t.addEventListener("scroll",e),function(){t&&t.removeEventListener("scroll",e)}}),[m]),e().useEffect((function(){i((function(t){return Wi(Wi({},t),{},{graph_zoom:Wi(Wi({},t.graph_zoom),{},{translation:{x:h.translation.x,y:x}})})}))}),[h,x,i]),e().createElement(e().Fragment,null,e().createElement("div",{className:"content",id:"content",ref:m},e().createElement("div",{style:{position:"absolute",top:0,left:0,width:"100%",height:"100%"}},e().createElement(Ni.MapInteraction,{minScale:f.scale,value:h,onChange:function(t){return function(t){var e=t.scale;if(s){var n=Wi({},t.translation),r=e,o=m.current.clientWidth,i=o*r,a=null===v?0:le.Ft*o;p({scale:null===v?1:1-le.Ft,translation:{xMax:0,xMin:o-i-a}}),y((function(){return n.xf.translation.xMax&&(n.x=f.translation.xMax),r {\n\tif(inProgress[url]) { inProgress[url].push(done); return; }\n\tvar script, needAttach;\n\tif(key !== undefined) {\n\t\tvar scripts = document.getElementsByTagName(\"script\");\n\t\tfor(var i = 0; i < scripts.length; i++) {\n\t\t\tvar s = scripts[i];\n\t\t\tif(s.getAttribute(\"src\") == url || s.getAttribute(\"data-webpack\") == dataWebpackPrefix + key) { script = s; break; }\n\t\t}\n\t}\n\tif(!script) {\n\t\tneedAttach = true;\n\t\tscript = document.createElement('script');\n\n\t\tscript.charset = 'utf-8';\n\t\tscript.timeout = 120;\n\t\tif (__webpack_require__.nc) {\n\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n\t\t}\n\t\tscript.setAttribute(\"data-webpack\", dataWebpackPrefix + key);\n\n\t\tscript.src = url;\n\t}\n\tinProgress[url] = [done];\n\tvar onScriptComplete = (prev, event) => {\n\t\t// avoid mem leaks in IE.\n\t\tscript.onerror = script.onload = null;\n\t\tclearTimeout(timeout);\n\t\tvar doneFns = inProgress[url];\n\t\tdelete inProgress[url];\n\t\tscript.parentNode && script.parentNode.removeChild(script);\n\t\tdoneFns && doneFns.forEach((fn) => (fn(event)));\n\t\tif(prev) return prev(event);\n\t}\n\tvar timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);\n\tscript.onerror = onScriptComplete.bind(null, script.onerror);\n\tscript.onload = onScriptComplete.bind(null, script.onload);\n\tneedAttach && document.head.appendChild(script);\n};","\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!./detail.css\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!./detail.css\";\n export default content && content.locals ? content.locals : undefined;\n","import React from 'react';\nimport {make_atoms_string} from \"../utils/index\";\nimport './detail.css';\nimport PropTypes from \"prop-types\";\nimport {showError, useMessages} from '../contexts/UserMessages';\nimport {useColorPalette} from \"../contexts/ColorPalette\";\nimport { useShownDetail } from \"../contexts/ShownDetail\";\nimport {useSettings} from \"../contexts/Settings\";\nimport {SIGNATURE, SYMBOL} from \"../types/propTypes\";\nimport {IoChevronDown, IoChevronForward, IoCloseSharp} from \"react-icons/io5\";\n\n\nfunction DetailSymbolPill(props) {\n const {symbol} = props;\n const colorPalette = useColorPalette();\n return {make_atoms_string(symbol)}\n\n}\n\nDetailSymbolPill.propTypes = {\n /**\n * The symbol to display.\n */\n symbol: SYMBOL\n}\n\n\nfunction DetailForSignature(props) {\n const {signature, symbols} = props;\n const [showChildren, setShowChildren] = React.useState(true);\n const openCloseSymbol = showChildren ? : \n return

\n
\n

setShowChildren(!showChildren)}>{openCloseSymbol} {signature.name}/{signature.args}

\n
\n
\n {showChildren ? symbols.map(symbol => ) : null}
\n
\n}\n\nDetailForSignature.propTypes =\n {\n /**\n * The signature to display in the header\n */\n signature: SIGNATURE,\n /**\n * The atoms that should be shown for this exact signature\n */\n symbols: PropTypes.arrayOf(SYMBOL)\n }\n\nfunction loadDataForDetail(backendURL, uuid) {\n return fetch(`${backendURL('detail')}/${uuid}`)\n .then((r) => {\n if (!r.ok) {\n throw new Error(\n `${r.status} ${r.statusText}`\n );\n }\n return r.json();\n });\n}\n\nfunction CloseButton(props) {\n const {onClick} = props;\n return \n}\n\nCloseButton.propTypes =\n {\n /**\n * The function to be called when the button is clicked.\n */\n onClick: PropTypes.func\n }\n\nexport function Detail() {\n const [data, setData] = React.useState(null);\n const [type, setType] = React.useState(\"Model\");\n const {backendURL} = useSettings();\n const [, message_dispatch] = useMessages();\n const backendURLRef = React.useRef(backendURL);\n const messageDispatchRef = React.useRef(message_dispatch);\n const colorPalette = useColorPalette();\n const { shownDetail: shows, setShownDetail } = useShownDetail();\n const clearDetail = () => setShownDetail(null);\n\n React.useEffect(() => {\n let mounted = true;\n if (shows !== null) {\n loadDataForDetail(backendURLRef.current, shows)\n .then(items => {\n if (mounted) {\n setData(items[1])\n setType(items[0])\n\n }\n })\n .catch((error) => { \n messageDispatchRef.current(\n showError(`Failed to get stable model data ${error}`))\n });\n }\n return () => { mounted = false };\n }, [shows])\n\n return
\n

{type}

\n {data===null ? \n
Loading..
:\n data.map((resp) =>\n )}\n
\n}\n\nDetail.propTypes = {}\n\nexport function getDetailOpenWidthRatio() {\n return parseFloat(\n getComputedStyle(document.documentElement).getPropertyValue(\n '--detail-open-width'\n )\n ) / 100;\n}","import { getDetailOpenWidthRatio } from \"../components/Detail.react\";\nexport const DEBOUNCETIMEOUT = 150;\nexport const ZOOMTOGGLEBUTTON = 'Shift'\nexport const SMALLERDEBOUNCETIMEOUT = 50;\nexport const detailClosedShiftThreshold = 0.2;\nexport const detailOpenShiftThreshold = 0.05;\nexport const detailOpenWidthRatio = getDetailOpenWidthRatio();\nexport const rowAnimationIntervalInMs = 30;\nexport const rowAnimationPickupThreshold = 0.01;\n","/* eslint-disable no-magic-numbers */\nimport { emToPixel } from '../utils';\nexport const opacityMultiplier = 0.8;\nexport const hSpacing = emToPixel(0.7);\nexport const ruleHighlightDuration = 3000;\nexport const ruleHighlightFadeDuration = 1000;","/* eslint-disable no-magic-numbers */\nimport {emToPixel} from '../utils';\nexport const minimumNodeHeight = emToPixel(2.5);\nexport const standardNodeHeight = emToPixel(5.7);\nexport const overflowThreshold = emToPixel(0.1);\n","export const KEY_DOWN = 40;\nexport const KEY_UP = 38;\nexport const KEY_ENTER = 13;\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { COLORPALETTE } from \"../types/propTypes\";\n\nexport const ColorPaletteContext = React.createContext([]);\n\nexport const useColorPalette = () => React.useContext(ColorPaletteContext);\nexport const ColorPaletteProvider = ({children, colorPalette}) => {\n return (\n \n {children}\n \n );\n}\n\nColorPaletteProvider.propTypes = {\n /**\n * The subtree that requires access to this context.\n */\n children: PropTypes.element,\n /**\n * The color palette to update the color palette with\n */\n colorPalette: COLORPALETTE\n};\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport { useSettings } from \"./Settings\";\nimport { useColorPalette } from \"../contexts/ColorPalette\";\nimport { useMessages, showError } from \"./UserMessages\";\nimport * as Constants from \"../constants\";\n\nfunction fetchReasonOf(backendURL, sourceId, nodeId) {\n return fetch(`${backendURL(\"graph/reason\")}`, {\n method: \"POST\",\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\"sourceid\": sourceId, \"nodeid\": nodeId})\n }).then(r => {\n if (!r.ok) {\n throw new Error(`${r.status} ${r.statusText}`);\n }\n return r.json()\n });\n}\nconst defaultHighlightedSymbol = [];\nconst defaultHighlightedRule = []; \n// HighlightedRule { rule_hash: string, color: string, source_id: string }\n\nconst HighlightedSymbolContext = React.createContext(defaultHighlightedSymbol);\n\nexport const useHighlightedSymbol = () => React.useContext(HighlightedSymbolContext);\nexport const HighlightedSymbolProvider = ({ children }) => {\n const [highlightedSymbol, setHighlightedSymbol] = React.useState(\n defaultHighlightedSymbol\n );\n const [highlightedRule, setHighlightedRule] = React.useState(\n defaultHighlightedRule\n );\n const [backgroundHighlightColor, setBackgroundHighlightColor] = React.useState({});\n const [ruleDotHighlightColor, setRuleDotHighlightColor] =\n React.useState({});\n const colorPalette = useColorPalette();\n const colorArray = colorPalette.explanationHighlights;\n const [, message_dispatch] = useMessages();\n const messageDispatchRef = React.useRef(message_dispatch);\n\n const {backendURL} = useSettings();\n const backendUrlRef = React.useRef(backendURL);\n\n const getNextColor = React.useCallback(\n (currentHighlightedSymbol) => {\n const colorCounter = {};\n colorArray.forEach((i) => (colorCounter[i] = 0));\n\n const distinctExplanationsColors = currentHighlightedSymbol.reduce(\n (acc, item) => {\n const key = `${item.src}-${item.color}`;\n if (!acc.some((i) => `${i.src}-${i.color}` === key)) {\n acc.push(item);\n }\n return acc;\n },\n []\n );\n distinctExplanationsColors.forEach((item) => {\n colorCounter[item.color] = colorCounter[item.color] + 1;\n });\n\n let leastOccurences = Infinity;\n let leastOccuringColor = '';\n colorArray.forEach((color) => {\n if (colorCounter[color] < leastOccurences) {\n leastOccurences = colorCounter[color];\n leastOccuringColor = color;\n }\n });\n return leastOccuringColor;\n },\n [colorArray]\n );\n\n const toggleHighlightedSymbol = React.useCallback(\n (arrows, currentHighlightedSymbol) => {\n var arrowsSrcTgt = [];\n var arrowsColors = [];\n currentHighlightedSymbol.forEach((item) => {\n arrowsSrcTgt.push(\n JSON.stringify({\n src: item.src,\n tgt: item.tgt,\n srcNode: item.srcNode,\n })\n );\n arrowsColors.push(item.color);\n });\n var c = `${getNextColor(currentHighlightedSymbol)}`;\n\n arrows.forEach((a) => {\n var value = JSON.stringify(a);\n var index = arrowsSrcTgt.indexOf(value);\n if (index === -1) {\n arrowsSrcTgt.push(JSON.stringify(a));\n arrowsColors.push(c);\n } else {\n arrowsSrcTgt.splice(index, 1);\n c = arrowsColors.splice(index, 1)[0];\n }\n });\n setHighlightedSymbol(\n arrowsSrcTgt.map((item, i) => {\n var obj = JSON.parse(item);\n obj.color = arrowsColors[i];\n return obj;\n })\n );\n return c;\n },\n [setHighlightedSymbol, getNextColor]\n );\n\n const toggleHighlightedRule = React.useCallback(\n (\n source_id,\n rule_hash,\n color,\n currentHighlightedRule,\n currentBackgroundHighlightColors,\n currentRuleDotHighlightColor\n ) => {\n var rulesSrcColor = [];\n var backgroundHighlightColor = currentBackgroundHighlightColors;\n var ruleDotHighlightColor = currentRuleDotHighlightColor;\n currentHighlightedRule.forEach((item) => {\n rulesSrcColor.push(\n JSON.stringify({\n rule_hash: item.rule_hash,\n color: item.color,\n source_id: item.source_id,\n })\n );\n });\n\n var value = JSON.stringify({rule_hash, color, source_id});\n var index = rulesSrcColor.indexOf(value);\n if (index === -1) {\n rulesSrcColor.push(value);\n backgroundHighlightColor[rule_hash] = color;\n\n var new_ruleDotHighlightColorObject = {\n color: color, \n markedForDeletion: false,\n markedForInsertion: true\n };\n if (\n ruleDotHighlightColor[rule_hash] &&\n ruleDotHighlightColor[rule_hash].length >= 0\n ) {\n ruleDotHighlightColor[rule_hash].push(new_ruleDotHighlightColorObject);\n } else {\n ruleDotHighlightColor[rule_hash] = [new_ruleDotHighlightColorObject];\n }\n } else {\n rulesSrcColor.splice(index, 1);\n if (backgroundHighlightColor[rule_hash]) {\n delete backgroundHighlightColor[rule_hash];\n }\n if (ruleDotHighlightColor[rule_hash]) {\n ruleDotHighlightColor[rule_hash] = ruleDotHighlightColor[\n rule_hash\n ].map((item) => {\n if (item.color === color) {\n item.markedForDeletion = true;\n item.markedForInsertion = false;\n }\n return item;\n });\n }\n }\n setHighlightedRule(rulesSrcColor.map((item) => JSON.parse(item)));\n setRuleDotHighlightColor(ruleDotHighlightColor);\n setBackgroundHighlightColor(backgroundHighlightColor);\n setTimeout(() => {\n setBackgroundHighlightColor((prev) => {\n var new_backgroundHighlightColor = {...prev};\n if (new_backgroundHighlightColor[rule_hash]) {\n delete new_backgroundHighlightColor[rule_hash];\n }\n return new_backgroundHighlightColor;\n });\n }, Constants.ruleHighlightDuration);\n },\n [setHighlightedRule, setBackgroundHighlightColor, setRuleDotHighlightColor]\n );\n\n const getNextHoverColor = React.useCallback(\n (currentHighlightedSymbol, symbol) => {\n const searchSymbolSourceIndex = currentHighlightedSymbol\n .map((item) => item.src)\n .indexOf(symbol);\n if (searchSymbolSourceIndex !== -1) {\n return {\n backgroundColor:\n currentHighlightedSymbol[searchSymbolSourceIndex].color,\n };\n }\n const g = getNextColor(currentHighlightedSymbol);\n return {backgroundColor: g};\n },\n [getNextColor]\n );\n\n const toggleReasonOf = React.useCallback(\n (\n sourceid,\n nodeId,\n currentHighlightedSymbol,\n currentHighlightedRule,\n currentBackgroundHighlightColors,\n currentRuleDotHighlightColor\n ) => {\n fetchReasonOf(backendUrlRef.current, sourceid, nodeId)\n .then((res) => {\n const reasons = res.symbols;\n const rule_hash = res.rule;\n\n var new_color = null;\n if (reasons.every((tgt) => tgt !== null)) {\n new_color = toggleHighlightedSymbol(\n reasons,\n currentHighlightedSymbol\n );\n }\n if (rule_hash !== '') {\n toggleHighlightedRule(\n sourceid,\n rule_hash,\n new_color,\n currentHighlightedRule,\n currentBackgroundHighlightColors,\n currentRuleDotHighlightColor\n );\n }\n })\n .catch((error) => {\n messageDispatchRef.current(\n showError(`Failed to get reason: ${error}`)\n );\n });\n },\n [messageDispatchRef, toggleHighlightedSymbol, toggleHighlightedRule]\n );\n\n const clearHighlightedSymbol = React.useCallback(() => {\n setHighlightedSymbol([]);\n setHighlightedRule([]);\n setBackgroundHighlightColor({});\n setRuleDotHighlightColor({});\n }, [setHighlightedSymbol, setHighlightedRule, setBackgroundHighlightColor]);\n\n const unmarkInsertedSymbolHighlightDot = React.useCallback(\n (hash, ruleDotHighlightColor, currentRuleDotHighlightColor) => {\n if (currentRuleDotHighlightColor[hash]) {\n currentRuleDotHighlightColor[hash] =\n currentRuleDotHighlightColor[hash].map((item) => {\n if (\n item.color === ruleDotHighlightColor &&\n item.markedForInsertion\n ) {\n item.markedForInsertion = false;\n }\n return item;\n });\n }\n setRuleDotHighlightColor(currentRuleDotHighlightColor);\n },\n [setRuleDotHighlightColor]\n );\n\n const removeDeletedSymbolHighlightDot = React.useCallback(\n (hash, ruleDotHighlightColor, currentRuleDotHighlightColor) => {\n if (currentRuleDotHighlightColor[hash]) {\n currentRuleDotHighlightColor[hash] =\n currentRuleDotHighlightColor[hash].filter(item => (\n !(item.color === ruleDotHighlightColor && item.markedForDeletion)\n ));\n }\n setRuleDotHighlightColor(currentRuleDotHighlightColor);\n },\n [setRuleDotHighlightColor]\n );\n\n return (\n \n {children}\n \n );\n}\n\nHighlightedSymbolProvider.propTypes = {\n /**\n * The subtree that requires access to this context.\n */\n children: PropTypes.element,\n}\n","// https://www.thisdot.co/blog/creating-a-global-state-with-react-hooks\nimport React from \"react\"\nimport PropTypes from \"prop-types\";\n\nexport const DEFAULT_BACKEND_URL = \"http://localhost:5050\";\n// REDUCER STUFF\nconst TOGGLE_SHOW = \"APP/SETTINGS/TOGGLE_SHOW\"\nconst SET_BACKEND_URL = \"APP/SETTINGS/BACKEND_URL/SET\"\n\nexport const toggleShowAll = () => ({type: TOGGLE_SHOW})\nexport const setBackendURL = (url) => ({type: SET_BACKEND_URL, backend_url: url})\nconst reducer = (state, action) => {\n switch (action.type) {\n case TOGGLE_SHOW:\n return {\n ...state,\n show_all: !state.show_all\n }\n case SET_BACKEND_URL:\n window.sessionStorage.setItem(\"backend_url\", action.backend_url);\n return {\n ...state,\n backend_url: action.backend_url\n }\n\n default:\n return state\n }\n}\n\nexport function initSettings(initialArgs) {\n return initialArgs\n}\n\n// PROVIDER STUFF\nexport const Settings = React.createContext({\n state: initSettings(),\n dispatch: () => null\n})\n\n\nexport const useSettings = () => {\n\n const [state, dispatch] = React.useContext(Settings)\n const backend_url = window.sessionStorage.getItem(\"backend_url\") || DEFAULT_BACKEND_URL\n state.backend_url = backend_url\n\n function backendURL(route) {\n return `${backend_url}/${route}`\n }\n\n return {state, dispatch, backendURL}\n}\nexport const SettingsProvider = ({children, backendURL}) => {\n const [state, dispatch] = React.useReducer(reducer, {show_all: false, backend_url: backendURL}, initSettings);\n window.sessionStorage.setItem(\"backend_url\", state.backend_url);\n\n return (\n \n {children}\n \n )\n}\n\nSettingsProvider.propTypes = {\n /**\n * The subtree that requires access to this context.\n */\n children: PropTypes.element,\n /**\n * The backendURL viASP that provides the graph\n */\n backendURL: PropTypes.string\n}\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst defaultShownDetail = null;\n\nconst ShownDetailContext = React.createContext(defaultShownDetail);\n\nexport const useShownDetail = () => React.useContext(ShownDetailContext);\nexport const ShownDetailProvider = ({ children }) => {\n const [shownDetail, setShownDetail] = React.useState(defaultShownDetail);\n\n return {children}\n}\n\nShownDetailProvider.propTypes = {\n /**\n * The subtree that requires access to this context.\n */\n children: PropTypes.element,\n}\n","import React from \"react\";\nimport PropTypes from \"prop-types\";\nimport {useSettings} from \"./Settings\";\n\nexport const initialState = {activeMessages: []}\nexport const ERROR = 'APP/MESSAGES/ERROR';\nexport const WARN = 'APP/MESSAGES/WARN';\nexport const showError = (message) => ({type: ERROR, text: message})\nexport const showWarn = (message) => ({type: WARN, text: message})\nexport const messageReducer = (state = initialState, action) => {\n if (action.type === ERROR) {\n return {\n ...state,\n activeMessages: state.activeMessages.concat({text: action.text, level: \"error\"})\n }\n }\n if (action.type === WARN) {\n return {\n ...state,\n activeMessages: state.activeMessages.concat({text: action.text, level: \"warn\"})\n }\n }\n return {...state}\n}\n\nfunction fetchWarnings(backendURL) {\n return fetch(`${backendURL(\"control/warnings\")}`).then(r => {\n if (r.ok) {\n return r.json()\n }\n throw new Error(r.statusText);\n });\n}\n\nfunction unpackMessageFromBackend(message) {\n if (message.reason.value === \"FAILURE\") {\n return {\n \"type\": ERROR,\n text: `The program contains a rule that will cause false behaviour! Remove/Rephrase the following rule: ${message.ast}`\n }\n }\n if (message.reason.value === \"relaxer\") {\n return {\n type: WARN,\n text: message.message,\n }\n }\n return {\n type: WARN,\n text: `The program contains a rule that is not supported! The graph shown might be faulty! ${message.ast}`,\n };\n}\n\nconst UserMessagesContext = React.createContext([]);\nexport const useMessages = () => React.useContext(UserMessagesContext);\nexport const UserMessagesProvider = ({children}) => {\n\n const [state, dispatch] = React.useReducer(messageReducer, initialState);\n const {backendURL} = useSettings();\n const backendUrlRef = React.useRef(backendURL);\n React.useEffect(() => {\n let mounted = true;\n fetchWarnings(backendUrlRef.current)\n .catch((error) => {\n showError(`Failed to get transformations: ${error}`);\n })\n .then((items) => {\n if (mounted) {\n items\n .map((e) => unpackMessageFromBackend(e))\n .map((e) => dispatch(e));\n }\n });\n return () => (mounted = false);\n }, []);\n\n return {children}\n}\n\nUserMessagesProvider.propTypes = {\n /**\n * The subtree that requires access to this context.\n */\n children: PropTypes.element\n}\n","import React from 'react';\nimport {showError, useMessages} from './UserMessages';\nimport {useSettings} from './Settings';\nimport PropTypes from 'prop-types';\nimport {make_default_nodes, make_default_clingraph_nodes} from '../utils/index';\n\nfunction postCurrentSort(backendURL, oldIndex, newIndex) {\n return fetch(`${backendURL('graph/sorts')}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n moved_transformation: {\n old_index: oldIndex,\n new_index: newIndex,\n },\n }),\n }).then((r) => {\n if (r.ok) {\n return r.json();\n }\n throw new Error(r.statusText);\n });\n}\n\nfunction fetchTransformations(backendURL) {\n return fetch(`${backendURL('graph/sorts')}`).then((r) => {\n if (r.ok) {\n return r.json();\n }\n throw new Error(r.statusText);\n });\n}\n\nfunction fetchSortHash(backendURL) {\n return fetch(`${backendURL('graph/current')}`).then((r) => {\n if (r.ok) {\n return r.json();\n }\n throw new Error(r.statusText);\n });\n}\n\nfunction loadFacts(backendURL) {\n return fetch(`${backendURL('graph/facts')}`).then((r) => {\n if (!r.ok) {\n throw new Error(`${r.status} ${r.statusText}`);\n }\n return r.json();\n });\n}\n\nfunction loadNodeData(hash, backendURL) {\n return fetch(`${backendURL('graph/children')}/${hash}`).then((r) => {\n if (!r.ok) {\n throw new Error(`${r.status} ${r.statusText}`);\n }\n return r.json();\n });\n}\n\nfunction loadClingraphChildren(backendURL) {\n return fetch(`${backendURL('clingraph/children')}`).then((r) => {\n if (!r.ok) {\n throw new Error(`${r.status} ${r.statusText}`);\n }\n return r.json();\n });\n}\n\nfunction loadEdges(shownRecursion, usingClingraph, backendURL) {\n return fetch(`${backendURL('graph/edges')}`, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify({\n shownRecursion: shownRecursion,\n usingClingraph: usingClingraph,\n }),\n }).then((r) => {\n if (!r.ok) {\n throw new Error(`${r.status} ${r.statusText}`);\n }\n return r.json();\n });\n}\n\nconst initialState = {\n transformations: [],\n edges: [],\n /** an object mapping transformation ids to a List of Nodes */\n transformationDropIndices: null, \n currentSort: '',\n transformationNodesMap: null,\n clingraphGraphics: [],\n shownRecursion: [],\n};\n\n/**\n * Manage Transformation Set\n * */\nconst ADD_TRANSFORMATION = 'APP/TRANSFORMATIONS/ADD';\nconst ADD_TRANSFORMATION_SET = 'APP/TRANSFORMATIONS/ADDSET';\nconst CLEAR_TRANSFORMATIONS = 'APP/TRANSFORMATIONS/CLEAR';\nconst REORDER_TRANSFORMATION = 'APP/TRANSFORMATIONS/REORDER';\nconst SET_TRANSFORMATION_DROP_INDICES =\n 'APP/TRANSFORMATIONS/SETTRANSFORMATIONDROPINDICES';\nconst CHECK_TRANSFORMATION_EXPANDABLE_COLLAPSIBLE = 'APP/TRANSFORMATIONS/CHECKTRANSFORMATIONEXPANDABLECOLLAPSIBLE';\nconst addTransformation = (t) => ({type: ADD_TRANSFORMATION, t});\nconst addTransformationSet = (ts) => ({type: ADD_TRANSFORMATION_SET, ts});\nconst clearTransformations = (t) => ({type: CLEAR_TRANSFORMATIONS});\nconst reorderTransformation = (oldIndex, newIndex) => ({\n type: REORDER_TRANSFORMATION,\n oldIndex,\n newIndex,\n});\nconst setTransformationDropIndices = (t) => ({\n type: SET_TRANSFORMATION_DROP_INDICES,\n t,\n});\nconst checkTransformationExpandableCollapsible = (tid) => ({type: CHECK_TRANSFORMATION_EXPANDABLE_COLLAPSIBLE, tid});\n/**\n * Manage Sorts \n * */\nconst ADD_SORT = 'APP/SORT/ADD';\nconst SET_CURRENT_SORT = 'APP/TRANSFORMATIONS/SETCURRENTSORT';\nconst addSort = (s) => ({type: ADD_SORT, s});\nconst setCurrentSort = (s) => ({type: SET_CURRENT_SORT, s});\n/**\n * Manage Nodes\n*/\nconst SET_NODES = 'APP/NODES/SET';\nconst CLEAR_NODES = 'APP/NODES/CLEAR';\nconst setNodes = (nodesRes, t) => ({type: SET_NODES, nodesRes, t});\nconst clearNodes = () => ({type: CLEAR_NODES});\n/**\n * Manage Edges\n*/\nconst SET_EDGES = 'APP/EDGES/SET';\nconst CLEAR_EDGES = 'APP/EDGES/CLEAR';\nconst setEdges = (e) => ({type: SET_EDGES, e});\nconst clearEdges = () => ({type: CLEAR_EDGES});\n/**\n * Manage Shown Transformations\n * */\nconst HIDE_TRANSFORMATION = 'APP/TRANSFORMATIONS/HIDE';\nconst SHOW_TRANSFORMATION = 'APP/TRANSFORMATIONS/SHOW';\nconst TOGGLE_TRANSFORMATION = 'APP/TRANSFORMATIONS/TOGGLE';\nconst SHOW_ONLY_TRANSFORMATION = 'APP/TRANSFORMATIONS/ONLY';\nconst hideTransformation = (t) => ({type: HIDE_TRANSFORMATION, t});\nconst showTransformation = (t) => ({type: SHOW_TRANSFORMATION, t});\nconst toggleTransformation = (t) => ({type: TOGGLE_TRANSFORMATION, t});\nconst showOnlyTransformation = (t) => ({type: SHOW_ONLY_TRANSFORMATION, t});\n/**\n * Manage Shown Recursion\n */\nconst TOGGLE_SHOWN_RECURSION = 'APP/TRANSFORMATIONS/RECURSION/TOGGLE';\nconst CLEAR_SHOWN_RECURSION = 'APP/TRANSFORMATIONS/RECURSION/CLEAR';\nconst toggleShownRecursion = (n) => ({type: TOGGLE_SHOWN_RECURSION, n});\nconst clearShownRecursion = () => ({type: CLEAR_SHOWN_RECURSION});\n/**\n * Manage Node Expansion (vertical overflow)\n * */\nconst SET_NODE_IS_EXPANDABLE_V = 'APP/NODE/OVERFLOWV/SETEXPANDABLE';\nconst SET_NODE_IS_COLLAPSIBLE_V = 'APP/NODE/OVERFLOWV/SETCOLLAPSIBLE';\nconst SET_NODE_IS_EXPAND_ALL_THE_WAY = 'APP/NODE/OVERFLOWV/SETEXPANDALLTHEWAY';\nconst setNodeIsExpandableV = (tid, uuid, v) => ({type: SET_NODE_IS_EXPANDABLE_V, tid, uuid, v});\nconst setNodeIsCollapsibleV = (tid, uuid, v) => ({type: SET_NODE_IS_COLLAPSIBLE_V, tid, uuid, v});\nconst setNodeIsExpandAllTheWay = (tid, uuid, v) => ({type: SET_NODE_IS_EXPAND_ALL_THE_WAY, tid, uuid, v});\n/**\n * Manage Node Overflow Horizontal\n */\nconst SET_NODE_SHOW_MINI = 'APP/NODE/OVERFLOWH/SETSHOWMINI';\nconst setNodeShowMini = (tid, uuid, v) => ({type: SET_NODE_SHOW_MINI, tid, uuid, v});\n/**\n * Manage Clingraph\n*/\nconst SET_CLINGRAPH_GRAPHICS = 'APP/CLINGRAPH/SETGRAPHICS';\nconst CLEAR_CLINGRAPH_GRAHICS = 'APP/CLINGRAPH/CLEAR';\nconst SET_CLINGRAPH_SHOW_MINI = 'APP/CLINGRAPH/OVERFLOWH/SETSHOWMINI';\nconst setClingraphGraphics = (g) => ({type: SET_CLINGRAPH_GRAPHICS, g});\nconst clearClingraphGraphics = () => ({type: CLEAR_CLINGRAPH_GRAHICS});\nconst setClingraphShowMini = (uuid, v) => ({type: SET_CLINGRAPH_SHOW_MINI, uuid, v});\n\nconst TransformationContext = React.createContext();\n\nconst transformationReducer = (state = initialState, action) => {\n if (action.type === ADD_TRANSFORMATION) {\n return {\n ...state,\n transformations: state.transformations.concat({\n ...action.t,\n rules: action.t.rules.str_.map((r) => ({_type: \"RuleWrapper\", rule: r, highlight: false})),\n shown: true,\n isExpandableV: false,\n isCollapsibleV: false,\n allNodesShowMini: false,\n }),\n };\n }\n if (action.type === ADD_TRANSFORMATION_SET) {\n return {\n ...state,\n transformations: action.ts.map((t) => ({\n ...t,\n rules: t.rules.str_.map((r,i) => ({_type: \"RuleWrapper\", rule: r, hash: t.rules.hash[i]})),\n shown: true,\n isExpandableV: false,\n isCollapsibleV: false,\n allNodesShowMini: false,\n })),\n };\n }\n if (action.type === SET_NODE_IS_EXPANDABLE_V) {\n return state.transformationNodesMap && action.tid !== null ? {\n ...state,\n transformationNodesMap: {\n ...state.transformationNodesMap, \n [action.tid]: state.transformationNodesMap[action.tid]?.map((node) => {\n if (node.uuid === action.uuid) {\n return {\n ...node,\n isExpandableV: action.v,\n };\n }\n if (node.recursive) {\n return {\n ...node,\n recursive: node.recursive.map((subnode) => {\n if (subnode.uuid === action.uuid) {\n return {\n ...subnode,\n isExpandableV: action.v,\n }\n }\n return subnode\n }),\n }\n }\n return node;\n })\n }\n } : state\n }\n if (action.type === SET_NODE_IS_COLLAPSIBLE_V) {\n return state.transformationNodesMap && action.tid !== null ? {\n ...state,\n transformationNodesMap: {\n ...state.transformationNodesMap, \n [action.tid]: state.transformationNodesMap[action.tid]?.map((node) => {\n if (node.uuid === action.uuid) {\n return {\n ...node,\n isCollapsibleV: action.v,\n };\n }\n if (node.recursive) {\n return {\n ...node,\n recursive: node.recursive.map((subnode) => {\n if (subnode.uuid === action.uuid) {\n return {\n ...subnode,\n isCollapsibleV: action.v,\n }\n }\n return subnode\n }),\n }\n }\n return node;\n })\n }\n } : state\n }\n if (action.type === SET_NODE_IS_EXPAND_ALL_THE_WAY) {\n return state.transformationNodesMap && action.tid !== null ? {\n ...state,\n transformationNodesMap: {\n ...state.transformationNodesMap, \n [action.tid]: state.transformationNodesMap[action.tid]?.map((node) => {\n if (node.uuid === action.uuid) {\n return {\n ...node,\n isExpandVAllTheWay: action.v,\n };\n }\n if (node.recursive) {\n return {\n ...node,\n recursive: node.recursive.map((subnode) => {\n if (subnode.uuid === action.uuid) {\n return {\n ...subnode,\n isExpandVAllTheWay: action.v,\n }\n }\n return subnode\n }),\n }\n }\n return node;\n })\n }\n } : state\n }\n if (action.type === SET_NODE_SHOW_MINI) {\n return state.transformationNodesMap && action.tid !== null ? {\n ...state,\n transformationNodesMap: {\n ...state.transformationNodesMap, \n [action.tid]: state.transformationNodesMap[action.tid]?.map((node) => {\n if (node.uuid === action.uuid) {\n return {\n ...node,\n showMini: action.v,\n };\n }\n if (node.recursive) {\n return {\n ...node,\n recursive: node.recursive.map((subnode) => {\n if (subnode.uuid === action.uuid) {\n return {\n ...subnode,\n showMini: action.v,\n }\n }\n return subnode\n }),\n }\n }\n return node;\n })\n }\n } : state\n } \n if (action.type === CLEAR_TRANSFORMATIONS) {\n return {\n ...state,\n transformations: [],\n };\n }\n if (action.type === SHOW_ONLY_TRANSFORMATION) {\n return {\n ...state,\n transformations: state.transformations.map((container) =>\n container.id !== action.t.id\n ? {\n ...container,\n shown: false,\n }\n : {\n ...container,\n shown: true,\n }\n ),\n };\n }\n if (action.type === SHOW_TRANSFORMATION) {\n return {\n ...state,\n transformations: state.transformations.map((container) =>\n container.id === action.t.id\n ? {\n ...container,\n shown: true,\n }\n : container\n ),\n };\n }\n if (action.type === HIDE_TRANSFORMATION) {\n return {\n ...state,\n transformations: state.transformations.map((container) =>\n container.id === action.t.id\n ? {\n ...container,\n shown: false,\n }\n : container\n ),\n };\n }\n if (action.type === TOGGLE_TRANSFORMATION) {\n return {\n ...state,\n transformations: state.transformations.map((container) =>\n container.id === action.t.id\n ? {\n ...container,\n shown: !container.shown,\n }\n : container\n ),\n };\n }\n if (action.type === REORDER_TRANSFORMATION) {\n let transformations = [...state.transformations];\n const [removed] = transformations.splice(action.oldIndex, 1);\n transformations.splice(action.newIndex, 0, removed);\n transformations = transformations.map((container, i) => {\n return {\n ...container,\n id: i\n };\n });\n\n let nodesMap = Object.values(state.transformationNodesMap);\n const [removedNodes] = nodesMap.splice(action.oldIndex, 1);\n nodesMap.splice(action.newIndex, 0, removedNodes);\n nodesMap = nodesMap.reduce((obj, key, i) => {\n obj[key] = Object.values(nodesMap)[i];\n return obj;\n }, {});\n return {\n ...state,\n transformations: transformations,\n transformationNodesMap: nodesMap,\n };\n }\n if (action.type === ADD_SORT) {\n return {\n ...state,\n currentSort: action.s,\n };\n }\n if (action.type === SET_CURRENT_SORT) {\n return {\n ...state,\n currentSort: action.s,\n };\n }\n if (action.type === SET_NODES) {\n return {\n ...state,\n transformationNodesMap: action.nodesRes.reduce(\n (map, items, i) => {\n map[action.t[i].id] = items.map(\n (node) => {\n return {\n ...node,\n recursive: node.recursive.map((n) => ({\n ...n,\n loading: false,\n shownRecursion: false,\n isExpandableV: false,\n isCollapsibleV: false,\n isExpandVAllTheWay: false, \n showMini: false,\n })),\n loading: false,\n shownRecursion: false,\n isExpandableV: false,\n isCollapsibleV: false,\n isExpandVAllTheWay: false,\n showMini: false,\n };\n }\n );\n return map;\n },\n {}\n ),\n };\n }\n if (action.type === CLEAR_NODES) {\n if (state.transformationNodesMap === null) {\n return {\n ...state,\n transformationNodesMap: state.transformations.map((n) => {\n return make_default_nodes();\n }),\n };\n }\n return {\n ...state,\n transformationNodesMap: Object.keys(\n state.transformationNodesMap\n ).reduce((obj, key) => {\n obj[key] = make_default_nodes(\n state.transformationNodesMap[key]\n );\n return obj;\n }, {}),\n };\n }\n if (action.type === SET_CLINGRAPH_GRAPHICS) {\n return {\n ...state,\n clingraphGraphics: action.g.map((n,i) => {\n n.loading = false;\n n.showMini = false;\n const last_transformation_index = Math.max(...Object.keys(state.transformationNodesMap).map(k => parseInt(k, 10)))\n n.space_multiplier = state.transformationNodesMap[last_transformation_index][i].space_multiplier;\n return n;\n }),\n };\n }\n if (action.type === CLEAR_CLINGRAPH_GRAHICS) {\n if (state.clingraphGraphics === null) {\n return {\n ...state,\n };\n }\n return {\n ...state,\n clingraphGraphics: make_default_clingraph_nodes(\n state.clingraphGraphics\n ),\n };\n }\n if (action.type === SET_CLINGRAPH_SHOW_MINI) {\n return {\n ...state,\n clingraphGraphics: state.clingraphGraphics.map((node) => {\n if (node.uuid === action.uuid) {\n return {\n ...node,\n showMini: action.v,\n };\n }\n return node;\n }),\n };\n }\n if (action.type === SET_TRANSFORMATION_DROP_INDICES) {\n return {\n ...state,\n transformationDropIndices: action.t,\n };\n }\n if (action.type === CHECK_TRANSFORMATION_EXPANDABLE_COLLAPSIBLE) {\n return action.tid !== null ? {\n ...state,\n transformations: state.transformations.map((container) => {\n if (container.id === action.tid) {\n container.isExpandableV = state.transformationNodesMap[action.tid]?.some((node) => node.isExpandableV);\n container.isCollapsibleV = state.transformationNodesMap[action.tid]?.some((node) => node.isCollapsibleV);\n container.allNodesShowMini = state.transformationNodesMap[action.tid]?.every((node) => node.showMini);\n }\n return container;\n }),\n } : state;\n }\n if (action.type === SET_EDGES) {\n return {\n ...state,\n edges: action.e,\n };\n }\n if (action.type === CLEAR_EDGES) {\n return {\n ...state,\n edges: [],\n };\n }\n if (action.type === TOGGLE_SHOWN_RECURSION) {\n let shownRecursion = [...state.shownRecursion];\n if (shownRecursion.includes(action.n)) {\n shownRecursion = shownRecursion.filter((n) => n !== action.n);\n } else {\n shownRecursion.push(action.n);\n }\n\n const transformationNodesMap = Object.keys(state.transformationNodesMap)\n .reduce((obj, key) => {\n obj[key] = state.transformationNodesMap[key].map((node) => {\n if (node.uuid === action.n) {\n return {\n ...node,\n shownRecursion: !node.shownRecursion,\n };\n }\n return node;\n });\n return obj;\n }, {});\n return {\n ...state,\n transformationNodesMap: transformationNodesMap,\n shownRecursion: shownRecursion,\n };\n }\n if (action.type === CLEAR_SHOWN_RECURSION) {\n return {\n ...state,\n shownRecursion: [],\n };\n }\n return {...state};\n};\n\nconst TransformationProvider = ({children}) => {\n const [, message_dispatch] = useMessages();\n const {backendURL} = useSettings();\n const [state, dispatch] = React.useReducer(\n transformationReducer,\n initialState\n );\n const backendUrlRef = React.useRef(backendURL);\n const messageDispatchRef = React.useRef(message_dispatch);\n\n const loadTransformationNodesMap = (items) => {\n dispatch(clearNodes());\n dispatch(clearClingraphGraphics());\n const transformations = items.map((t) => ({id: t.id, hash: t.hash}));\n const promises = transformations.map((t) =>\n loadNodeData(t.hash, backendUrlRef.current)\n );\n\n // load facts\n promises.push(loadFacts(backendUrlRef.current));\n transformations.push({id: -1});\n // load clingraph\n promises.push(loadClingraphChildren(backendUrlRef.current));\n\n // Wait for all promises to resolve\n return Promise.all(promises);\n };\n\n const reloadEdges = (shownRecursion, usingClingraph) => {\n loadEdges(\n shownRecursion,\n usingClingraph,\n backendUrlRef.current\n )\n .catch((error) => {\n messageDispatchRef.current(\n showError(`Failed to get edges: ${error}`)\n );\n })\n .then((items) => {\n dispatch(setEdges(items));\n });\n }\n\n\n const fetchGraph = (shownRecursion) => {\n fetchTransformations(backendUrlRef.current)\n .catch((error) => {\n messageDispatchRef.current(\n showError(`Failed to get transformations: ${error}`)\n );\n })\n .then((items) => {\n dispatch(clearTransformations());\n dispatch(addTransformationSet(items));\n loadTransformationNodesMap(items)\n .catch((error) => {\n messageDispatchRef.current(\n showError(`Failed to get nodes: ${error}`)\n );\n })\n .then((allItems) => {\n const nodesRes = allItems.slice(0, allItems.length - 1);\n const clingraphNodes = allItems[allItems.length - 1];\n\n const transformations = [\n ...items.map((t) => ({id: t.id})),\n {id: -1},\n ];\n\n dispatch(setNodes(nodesRes, transformations));\n dispatch(setClingraphGraphics(clingraphNodes));\n reloadEdges(shownRecursion, clingraphNodes.length > 0);\n });\n });\n };\n const fetchGraphRef = React.useRef(fetchGraph);\n\n const setSortAndFetchGraph = (oldIndex, newIndex) => {\n dispatch(clearEdges())\n dispatch(clearNodes())\n dispatch(reorderTransformation(oldIndex, newIndex));\n dispatch(clearShownRecursion());\n postCurrentSort(backendUrlRef.current, oldIndex, newIndex)\n .catch((error) => {\n messageDispatchRef.current(\n showError(`Failed to set new current graph: ${error}`)\n );\n })\n .then((r) => {\n if (r && r.hash) {\n dispatch(setCurrentSort(r.hash));\n }\n fetchGraph(\n state.shownRecursion,\n state.clingraphGraphics.length > 0\n );\n });\n };\n\n React.useEffect(() => {\n let mounted = true;\n fetchSortHash(backendUrlRef.current)\n .catch((error) => {\n messageDispatchRef.current(\n showError(`Failed to get dependency sorts: ${error}`)\n );\n })\n .then((hash) => {\n if (mounted) {\n dispatch(addSort(hash));\n }\n });\n fetchGraphRef.current([]);\n return () => {\n mounted = false;\n };\n }, []);\n\n return (\n \n {children}\n \n );\n};\n\nconst useTransformations = () => React.useContext(TransformationContext);\n\nTransformationProvider.propTypes = {\n /**\n * The subtree that requires access to this context.\n */\n children: PropTypes.element,\n};\nexport {\n TransformationProvider,\n TransformationContext,\n useTransformations,\n toggleTransformation,\n showOnlyTransformation,\n reorderTransformation,\n setTransformationDropIndices,\n toggleShownRecursion,\n setNodeIsExpandableV,\n setNodeIsCollapsibleV,\n setNodeIsExpandAllTheWay,\n setNodeShowMini,\n setClingraphShowMini,\n checkTransformationExpandableCollapsible,\n};\n","import PropTypes from \"prop-types\";\n\nexport const SYMBOL = PropTypes.exact({\n _type: PropTypes.oneOf(['Function']),\n arguments: PropTypes.array,\n name: PropTypes.string,\n positive: PropTypes.bool\n})\n\nexport const SYMBOLIDENTIFIER = PropTypes.exact({\n _type: PropTypes.oneOf(['SymbolIdentifier']),\n symbol: SYMBOL,\n has_reason: PropTypes.bool,\n uuid: PropTypes.string\n})\n\nexport const SIGNATURE = PropTypes.exact({\n _type: PropTypes.oneOf(['Signature']),\n name: PropTypes.string,\n args: PropTypes.number\n})\nexport const RULECONTAINER = PropTypes.exact({\n _type: PropTypes.oneOf(['RuleContainer']),\n ast: PropTypes.arrayOf(PropTypes.string),\n str_: PropTypes.arrayOf(PropTypes.string)\n})\nexport const RULEWRAPPER = PropTypes.exact({\n _type: PropTypes.oneOf(['RuleWrapper']),\n rule: PropTypes.string,\n hash: PropTypes.string\n})\nexport const TRANSFORMATION = PropTypes.exact({\n _type: PropTypes.oneOf(['Transformation']),\n id: PropTypes.number,\n rules: RULECONTAINER,\n adjacent_sort_indices: PropTypes.exact({\n lower_bound: PropTypes.number,\n upper_bound: PropTypes.number\n }),\n hash: PropTypes.string\n})\nexport const TRANSFORMATIONWRAPPER = PropTypes.exact({\n _type: PropTypes.oneOf(['Transformation']),\n id: PropTypes.number,\n rules: PropTypes.arrayOf(RULEWRAPPER),\n adjacent_sort_indices: PropTypes.exact({\n lower_bound: PropTypes.number,\n upper_bound: PropTypes.number,\n }),\n hash: PropTypes.string,\n shown: PropTypes.bool,\n isExpandableV: PropTypes.bool,\n isCollapsibleV: PropTypes.bool,\n allNodesShowMini: PropTypes.bool,\n});\nexport const GRAPH = PropTypes.exact({\n _type: PropTypes.oneOf(['Graph']),\n _graph: PropTypes.object\n})\nexport const NODE = PropTypes.exact({\n _type: PropTypes.oneOf(['Node']),\n atoms: PropTypes.array,\n diff: PropTypes.array,\n rule_nr: PropTypes.number,\n reason: PropTypes.object, \n reason_rules: PropTypes.object,\n recursive: PropTypes.oneOfType([PropTypes.bool, PropTypes.array]),\n space_multiplier: PropTypes.number,\n uuid: PropTypes.string,\n loading: PropTypes.bool,\n shownRecursion: PropTypes.bool,\n isExpandableV: PropTypes.bool,\n isCollapsibleV: PropTypes.bool,\n isExpandVAllTheWay: PropTypes.bool,\n showMini: PropTypes.bool,\n})\nexport const CLINGRAPHNODE = PropTypes.exact({\n _type: PropTypes.oneOf(['ClingraphNode']),\n uuid: PropTypes.string,\n loading: PropTypes.bool,\n space_multiplier: PropTypes.number,\n showMini: PropTypes.bool,\n});\nexport const BOX = PropTypes.exact({\n _type: PropTypes.oneOf(['Box']),\n uuid: PropTypes.string\n})\nexport const COLORPALETTE = PropTypes.exact({\n primary: PropTypes.string,\n light: PropTypes.string,\n dark: PropTypes.string,\n warn: PropTypes.string,\n error: PropTypes.string,\n infoBackground: PropTypes.string,\n rowShading: PropTypes.arrayOf(PropTypes.string),\n explanationHighlights: PropTypes.arrayOf(PropTypes.string),\n})\nexport const MAPZOOMSTATE = PropTypes.exact({\n scale: PropTypes.number,\n translation: PropTypes.shape({ x: PropTypes.number, y: PropTypes.number }),\n})","import {v4 as uuidv4} from 'uuid';\n\nexport function make_atoms_string(atoms) {\n if (Array.isArray(atoms)) {\n return atoms.map(make_atoms_string).join(' ');\n }\n switch (atoms._type) {\n case 'Number':\n return atoms.number.toString();\n case 'Function': {\n const args = atoms.arguments.map(make_atoms_string).join(',');\n return args.length > 0 ? `${atoms.name}(${args})` : `${atoms.name}`;\n }\n case 'SymbolIdentifier':\n return make_atoms_string(atoms.symbol);\n case 'String':\n return `\"${atoms.string}\"`;\n default:\n throw new TypeError(`Unimplemented type ${atoms._type}`);\n }\n}\n\nexport function make_rules_string(rule) {\n // TODO: This is pretty bad. Adjust types for this.\n return rule.join(' ');\n}\n\n\nexport function make_default_nodes(oldNodes = []) {\n if (oldNodes.length > 0) {\n return oldNodes.map((node, i) => {\n return {\n ...node,\n loading: true,\n };\n });\n }\n\n const nodeSymbolUpperBound = 20;\n const nodes = [];\n const count = Math.floor(Math.random() * 2) + 1;\n const symbolCount = Math.floor(Math.random() * nodeSymbolUpperBound) + 3;\n for (let i = 0; i < count; i++) {\n const diff = Array.from({length: symbolCount}, (_, i) => {\n return {\n _type: 'SymbolIdentifier',\n symbol: {\n _type: 'Function',\n arguments: [],\n name: `a(${i})`,\n positive: true,\n },\n has_reason: false,\n uuid: `${uuidv4()}-loading-${i}`,\n };\n });\n nodes.push({\n _type: 'Node',\n recursive: [],\n uuid: `${uuidv4()}-loading-${i}`,\n atoms: diff,\n diff: diff,\n rule_nr: 0,\n reason: {},\n space_multiplier: 0.5,\n loading: true,\n });\n }\n return nodes;\n}\n\nexport function make_default_clingraph_nodes(oldNodes = []) {\n if (oldNodes.length > 0) {\n return oldNodes.map((node, i) => {\n return {\n ...node,\n uuid: `${node.uuid}`,\n loading: true,\n };\n });\n }\n\n const nodes = [];\n const count = Math.floor(Math.random() * 2) + 1;\n for (let i = 0; i < count; i++) {\n nodes.push({\n _type: 'ClingraphNode',\n uuid: `${uuidv4()}-loading-${i}`,\n loading: true,\n });\n }\n return nodes;\n}\n\nexport function findChildByClass(element, className) {\n if (element.classList.contains(className)) {\n return element;\n }\n\n for (const child of element.children) {\n const found = findChildByClass(child, className);\n if (found) {\n return found;\n }\n }\n\n return null;\n}\n\nexport function emToPixel(em) {\n return em * parseFloat(getComputedStyle(document.documentElement).fontSize);\n}","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.box_border {\n border-radius: 1px 1px 1px 1px;\n border: 2px solid;\n margin: 25px 5px 15px 5px;\n position: relative;\n}\n\n\n.highlighted_box {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 2px #333);\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/box.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,8BAA8B;IAC9B,iBAAiB;IACjB,yBAAyB;IACzB,kBAAkB;AACtB;;;AAGA;IACI,2BAA2B;IAC3B,iCAAiC;AACrC\",\"sourcesContent\":[\".box_border {\\n border-radius: 1px 1px 1px 1px;\\n border: 2px solid;\\n margin: 25px 5px 15px 5px;\\n position: relative;\\n}\\n\\n\\n.highlighted_box {\\n transition: drop-shadow .1s;\\n filter: drop-shadow(0 0 2px #333);\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.boxrow_container {\n justify-content: space-around;\n background: transparent;\n box-sizing: border-box;\n position: relative;\n z-index: 3;\n}\n\n.boxrow_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/boxrow.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,6BAA6B;IAC7B,uBAAuB;IACvB,sBAAsB;IACtB,kBAAkB;IAClB,UAAU;AACd;;AAEA;IACI,aAAa;IACb,6BAA6B;IAC7B,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;AACpB\",\"sourcesContent\":[\".boxrow_container {\\n justify-content: space-around;\\n background: transparent;\\n box-sizing: border-box;\\n position: relative;\\n z-index: 3;\\n}\\n\\n.boxrow_row {\\n display: flex;\\n justify-content: space-around;\\n align-content: center;\\n background: transparent;\\n overflow: hidden;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `:root {\n --detail-open-width: 20%;\n}\n\n.detail {\n float: right;\n height: 100vh;\n box-shadow: -1px -1px 2px 1px rgba(0, 0, 0, .2);\n font-family: monospace;\n transition: width 0.2s;\n width: 0;\n position: fixed;\n z-index: 20;\n top: 0;\n right: 0;\n overflow-y: auto;\n}\n\n.detail-open {\n width: var(--detail-open-width);\n}\n\n@media screen and (max-height: 450px) {\n .detail-column {\n padding-top: 15px;\n }\n}\n\n.detail_atom_view_heading {\n font-family: monospace, sans-serif;\n overflow: hidden;\n font-size: 11pt;\n text-align: left;\n margin: 0;\n padding: 0;\n cursor: pointer;\n}\n\n\n.detail_atom_view_content {\n width: fit-content;\n padding: 5px;\n margin: 5px;\n border-radius: 0.7em;\n}\n\n.detail_atom_view_content_container {\n display: flex;\n flex-wrap: wrap;\n}\n\n.closeButton {\n font-size: 24pt;\n cursor: pointer;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/detail.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,wBAAwB;AAC5B;;AAEA;IACI,YAAY;IACZ,aAAa;IACb,+CAA+C;IAC/C,sBAAsB;IACtB,sBAAsB;IACtB,QAAQ;IACR,eAAe;IACf,WAAW;IACX,MAAM;IACN,QAAQ;IACR,gBAAgB;AACpB;;AAEA;IACI,+BAA+B;AACnC;;AAEA;IACI;QACI,iBAAiB;IACrB;AACJ;;AAEA;IACI,kCAAkC;IAClC,gBAAgB;IAChB,eAAe;IACf,gBAAgB;IAChB,SAAS;IACT,UAAU;IACV,eAAe;AACnB;;;AAGA;IACI,kBAAkB;IAClB,YAAY;IACZ,WAAW;IACX,oBAAoB;AACxB;;AAEA;IACI,aAAa;IACb,eAAe;AACnB;;AAEA;IACI,eAAe;IACf,eAAe;AACnB\",\"sourcesContent\":[\":root {\\n --detail-open-width: 20%;\\n}\\n\\n.detail {\\n float: right;\\n height: 100vh;\\n box-shadow: -1px -1px 2px 1px rgba(0, 0, 0, .2);\\n font-family: monospace;\\n transition: width 0.2s;\\n width: 0;\\n position: fixed;\\n z-index: 20;\\n top: 0;\\n right: 0;\\n overflow-y: auto;\\n}\\n\\n.detail-open {\\n width: var(--detail-open-width);\\n}\\n\\n@media screen and (max-height: 450px) {\\n .detail-column {\\n padding-top: 15px;\\n }\\n}\\n\\n.detail_atom_view_heading {\\n font-family: monospace, sans-serif;\\n overflow: hidden;\\n font-size: 11pt;\\n text-align: left;\\n margin: 0;\\n padding: 0;\\n cursor: pointer;\\n}\\n\\n\\n.detail_atom_view_content {\\n width: fit-content;\\n padding: 5px;\\n margin: 5px;\\n border-radius: 0.7em;\\n}\\n\\n.detail_atom_view_content_container {\\n display: flex;\\n flex-wrap: wrap;\\n}\\n\\n.closeButton {\\n font-size: 24pt;\\n cursor: pointer;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.dragHandle {\n visibility: hidden;\n cursor: move;\n padding-left: 10px;\n width: 20px;\n height: 16px;\n position: absolute;\n z-index: 8;\n margin-top: -5px;\n}\n\n.row_container:hover .dragHandle {\n visibility: visible;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/draghandle.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;IAClB,WAAW;IACX,YAAY;IACZ,kBAAkB;IAClB,UAAU;IACV,gBAAgB;AACpB;;AAEA;IACI,mBAAmB;AACvB\",\"sourcesContent\":[\".dragHandle {\\n visibility: hidden;\\n cursor: move;\\n padding-left: 10px;\\n width: 20px;\\n height: 16px;\\n position: absolute;\\n z-index: 8;\\n margin-top: -5px;\\n}\\n\\n.row_container:hover .dragHandle {\\n visibility: visible;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.facts_banner{\n padding-top: 0;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/facts.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,cAAc;AAClB\",\"sourcesContent\":[\".facts_banner{\\n padding-top: 0;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `body {\n margin: 0;\n flex-flow: column;\n overflow: hidden;\n}\n\n.content {\n height: 100vh;\n overflow-x: hidden;\n overflow-y: auto;\n}\n\n.graph {\n height: 100vh;\n width: 100vw;\n overflow: auto;\n}\n\n.noselect {\n -webkit-touch-callout: none; /* iOS Safari */\n -webkit-user-select: none; /* Safari */\n -khtml-user-select: none; /* Konqueror HTML */\n -moz-user-select: none; /* Old versions of Firefox */\n -ms-user-select: none; /* Internet Explorer/Edge */\n user-select: none;\n /* Non-prefixed version, currently\n supported by Chrome, Edge, Opera and Firefox */\n}\n\n.user_message {\n width: fit-content;\n width: -moz-fit-content;\n padding: 10px;\n margin: 10px;\n border-radius: 5px 5px 5px 5px;\n font-family: sans-serif;\n filter: drop-shadow(.1em .1em .14em #3333338c);\n}\n\n.user_message_list {\n position: fixed;\n left: 0;\n top: 0;\n z-index: 99;\n}\n\n.alert-shown {\n opacity: 1;\n transition: all 250ms linear;\n}\n\n.alert-hidden {\n opacity: 0;\n transition: all 250ms linear 2s;\n}\n\n.txt-elem {\n font-family: \"Monaco\", monospace;\n font-size: 12pt;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/main.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,SAAS;IACT,iBAAiB;IACjB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,YAAY;IACZ,cAAc;AAClB;;AAEA;IACI,2BAA2B,EAAE,eAAe;IAC5C,yBAAyB,EAAE,WAAW;IACtC,wBAAwB,EAAE,mBAAmB;IAC7C,sBAAsB,EAAE,4BAA4B;IACpD,qBAAqB,EAAE,2BAA2B;IAClD,iBAAiB;IACjB;mFAC+E;AACnF;;AAEA;IACI,kBAAkB;IAClB,uBAAuB;IACvB,aAAa;IACb,YAAY;IACZ,8BAA8B;IAC9B,uBAAuB;IACvB,8CAA8C;AAClD;;AAEA;IACI,eAAe;IACf,OAAO;IACP,MAAM;IACN,WAAW;AACf;;AAEA;IACI,UAAU;IACV,4BAA4B;AAChC;;AAEA;IACI,UAAU;IACV,+BAA+B;AACnC;;AAEA;IACI,gCAAgC;IAChC,eAAe;AACnB\",\"sourcesContent\":[\"body {\\n margin: 0;\\n flex-flow: column;\\n overflow: hidden;\\n}\\n\\n.content {\\n height: 100vh;\\n overflow-x: hidden;\\n overflow-y: auto;\\n}\\n\\n.graph {\\n height: 100vh;\\n width: 100vw;\\n overflow: auto;\\n}\\n\\n.noselect {\\n -webkit-touch-callout: none; /* iOS Safari */\\n -webkit-user-select: none; /* Safari */\\n -khtml-user-select: none; /* Konqueror HTML */\\n -moz-user-select: none; /* Old versions of Firefox */\\n -ms-user-select: none; /* Internet Explorer/Edge */\\n user-select: none;\\n /* Non-prefixed version, currently\\n supported by Chrome, Edge, Opera and Firefox */\\n}\\n\\n.user_message {\\n width: fit-content;\\n width: -moz-fit-content;\\n padding: 10px;\\n margin: 10px;\\n border-radius: 5px 5px 5px 5px;\\n font-family: sans-serif;\\n filter: drop-shadow(.1em .1em .14em #3333338c);\\n}\\n\\n.user_message_list {\\n position: fixed;\\n left: 0;\\n top: 0;\\n z-index: 99;\\n}\\n\\n.alert-shown {\\n opacity: 1;\\n transition: all 250ms linear;\\n}\\n\\n.alert-hidden {\\n opacity: 0;\\n transition: all 250ms linear 2s;\\n}\\n\\n.txt-elem {\\n font-family: \\\"Monaco\\\", monospace;\\n font-size: 12pt;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.set_container {\n width: fit-content;\n position: relative;\n line-height: 18pt;\n min-height: 18pt;\n cursor: pointer;\n}\n\n.node_border {\n border-radius: 0.7em;\n border: 1pt solid;\n margin: 12pt 3% 12pt 3%;\n position: relative;\n height: max-content;\n overflow: hidden;\n}\n\n.mouse_over_shadow:hover {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.highlighted_node {\n transition: drop-shadow .1s;\n filter: drop-shadow(0 0 .14em #333);\n}\n\n.bauchbinde {\n bottom: 0;\n left: 0;\n right: 0;\n /* padding-top: 1em; */\n /* margin-top: 1em; */\n background-color: transparent;\n /* cursor: pointer; */\n}\n\n.bauchbinde_text {\n position: relative;\n text-align: center;\n overflow: hidden;\n}\n\n.set_too_high {\n /* overflow-y: hidden; */\n display: flex;\n justify-content: center;\n align-items: center;\n min-width: 2.5em;\n min-height: 2.5em;\n}\n\n.set_value {\n width: fit-content;\n margin: .38em 1em .5em 1em;\n\n position: relative;\n flex: 0 0 auto;\n display: flex;\n flex-flow: row wrap;\n justify-content: center;\n align-items: center;\n}\n\n\n\n.mini {\n text-align: center;\n vertical-align: middle;\n width: fit-content;\n height: fit-content;\n /* font-size: 12pt; */\n min-width: .57em;\n cursor: pointer;\n min-height: .57em;\n}\n\n.recursion_button{\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.recursion_button:hover {\n box-shadow: 0 .28em .57em 0 rgba(0, 0, 0, 0.2), 0 .43em .71em 0 rgba(0, 0, 0, 0.2);\n transition: .3s ease-in-out;\n -moz-transition: .3s ease-in-out;\n -webkit-transition: .3s ease-in-out;\n}\n\n.recursion_button_text{\n cursor: pointer;\n font-size: 1pt;\n font-weight: bold;\n border-radius: 0em .57em 0em .28em;\n padding: 1px;\n vertical-align: middle;\n text-align: center;\n width: auto;\n}\n\n@keyframes loading {\n 0% {\n background-position: -200em 0;\n }\n\n 100% {\n background-position: calc(200em + 100%) 0;\n }\n}\n\n.loading {\n background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);\n background-size: 200em 100%;\n border-radius: 0.8em;\n animation: loading 1.5s infinite;\n}\n\n.hidden {\n visibility: hidden\n}\n\n.rotate_icon {\n transform: rotate(180deg);\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/node.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,kBAAkB;IAClB,kBAAkB;IAClB,iBAAiB;IACjB,gBAAgB;IAChB,eAAe;AACnB;;AAEA;IACI,oBAAoB;IACpB,iBAAiB;IACjB,uBAAuB;IACvB,kBAAkB;IAClB,mBAAmB;IACnB,gBAAgB;AACpB;;AAEA;IACI,2BAA2B;IAC3B,mCAAmC;AACvC;;AAEA;IACI,2BAA2B;IAC3B,mCAAmC;AACvC;;AAEA;IACI,SAAS;IACT,OAAO;IACP,QAAQ;IACR,sBAAsB;IACtB,qBAAqB;IACrB,6BAA6B;IAC7B,qBAAqB;AACzB;;AAEA;IACI,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,wBAAwB;IACxB,aAAa;IACb,uBAAuB;IACvB,mBAAmB;IACnB,gBAAgB;IAChB,iBAAiB;AACrB;;AAEA;IACI,kBAAkB;IAClB,0BAA0B;;IAE1B,kBAAkB;IAClB,cAAc;IACd,aAAa;IACb,mBAAmB;IACnB,uBAAuB;IACvB,mBAAmB;AACvB;;;;AAIA;IACI,kBAAkB;IAClB,sBAAsB;IACtB,kBAAkB;IAClB,mBAAmB;IACnB,qBAAqB;IACrB,gBAAgB;IAChB,eAAe;IACf,iBAAiB;AACrB;;AAEA;IACI,kBAAkB;IAClB,QAAQ;IACR,MAAM;AACV;;AAEA;IACI,kFAAkF;IAClF,2BAA2B;IAC3B,gCAAgC;IAChC,mCAAmC;AACvC;;AAEA;IACI,eAAe;IACf,cAAc;IACd,iBAAiB;IACjB,kCAAkC;IAClC,YAAY;IACZ,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;AACf;;AAEA;IACI;QACI,6BAA6B;IACjC;;IAEA;QACI,yCAAyC;IAC7C;AACJ;;AAEA;IACI,yEAAyE;IACzE,2BAA2B;IAC3B,oBAAoB;IACpB,gCAAgC;AACpC;;AAEA;IACI;AACJ;;AAEA;IACI,yBAAyB;AAC7B\",\"sourcesContent\":[\".set_container {\\n width: fit-content;\\n position: relative;\\n line-height: 18pt;\\n min-height: 18pt;\\n cursor: pointer;\\n}\\n\\n.node_border {\\n border-radius: 0.7em;\\n border: 1pt solid;\\n margin: 12pt 3% 12pt 3%;\\n position: relative;\\n height: max-content;\\n overflow: hidden;\\n}\\n\\n.mouse_over_shadow:hover {\\n transition: drop-shadow .1s;\\n filter: drop-shadow(0 0 .14em #333);\\n}\\n\\n.highlighted_node {\\n transition: drop-shadow .1s;\\n filter: drop-shadow(0 0 .14em #333);\\n}\\n\\n.bauchbinde {\\n bottom: 0;\\n left: 0;\\n right: 0;\\n /* padding-top: 1em; */\\n /* margin-top: 1em; */\\n background-color: transparent;\\n /* cursor: pointer; */\\n}\\n\\n.bauchbinde_text {\\n position: relative;\\n text-align: center;\\n overflow: hidden;\\n}\\n\\n.set_too_high {\\n /* overflow-y: hidden; */\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n min-width: 2.5em;\\n min-height: 2.5em;\\n}\\n\\n.set_value {\\n width: fit-content;\\n margin: .38em 1em .5em 1em;\\n\\n position: relative;\\n flex: 0 0 auto;\\n display: flex;\\n flex-flow: row wrap;\\n justify-content: center;\\n align-items: center;\\n}\\n\\n\\n\\n.mini {\\n text-align: center;\\n vertical-align: middle;\\n width: fit-content;\\n height: fit-content;\\n /* font-size: 12pt; */\\n min-width: .57em;\\n cursor: pointer;\\n min-height: .57em;\\n}\\n\\n.recursion_button{\\n position: absolute;\\n right: 0;\\n top: 0;\\n}\\n\\n.recursion_button:hover {\\n box-shadow: 0 .28em .57em 0 rgba(0, 0, 0, 0.2), 0 .43em .71em 0 rgba(0, 0, 0, 0.2);\\n transition: .3s ease-in-out;\\n -moz-transition: .3s ease-in-out;\\n -webkit-transition: .3s ease-in-out;\\n}\\n\\n.recursion_button_text{\\n cursor: pointer;\\n font-size: 1pt;\\n font-weight: bold;\\n border-radius: 0em .57em 0em .28em;\\n padding: 1px;\\n vertical-align: middle;\\n text-align: center;\\n width: auto;\\n}\\n\\n@keyframes loading {\\n 0% {\\n background-position: -200em 0;\\n }\\n\\n 100% {\\n background-position: calc(200em + 100%) 0;\\n }\\n}\\n\\n.loading {\\n background: linear-gradient(90deg, #ffffff 25%, #e0e0e0 50%, #ffffff 75%);\\n background-size: 200em 100%;\\n border-radius: 0.8em;\\n animation: loading 1.5s infinite;\\n}\\n\\n.hidden {\\n visibility: hidden\\n}\\n\\n.rotate_icon {\\n transform: rotate(180deg);\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `\n.row_header {\n border-radius: 0 8px 8px 0;\n width: fit-content;\n max-width: 95%;\n position: relative;\n padding: 8px 8px 8px 16px;\n z-index: 8;\n}\n\n.row_header_bar {\n border-bottom: solid 1px #333333;\n border-radius: 0 5px 0 0;\n background-color: whitesmoke;\n}\n\n.rule_highlight_dot {\n display: inline-block;\n width: 9px;\n height: 9px;\n border-radius: 50%;\n position: absolute;\n left: 100%;\n top: 50%;\n transform: translateY(-50%);\n}\n\n.rule_highlight_dot.fade-in {\n animation-name: animate-fade-in;\n}\n\n@keyframes animate-fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n.rule_highlight_dot.fade-out {\n animation-name: animate-fade-out;\n animation-fill-mode: forwards;\n}\n\n@keyframes animate-fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n visibility: hidden;\n display:none;\n }\n}\n\n.rule_text {\n white-space: pre-wrap;\n padding: 4px 0;\n position: relative;\n width: fit-content;\n border-radius: 7px;\n transition: background-color 1.0s ease;\n}\n\n.row_toggle {\n font-size: 10pt;\n cursor: pointer;\n padding-left: 10px;\n padding-right: 10px;\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_toggle:hover {\n transition: opacity .5s ease-in-out;\n -moz-transition: opacity .5s ease-in-out;\n -webkit-transition: opacity .5s ease-in-out;\n}\n\n.row_row {\n display: flex;\n justify-content: space-around;\n align-content: center;\n background: transparent;\n overflow: hidden;\n}\n\n.branch_space {\n display: flex;\n justify-content: center;\n overflow: hidden;\n max-width: 75%;\n}\n\n.row_container {\n justify-content: space-around;\n background: transparent;\n padding-top: 1em;\n /* overflow-y: hidden; */\n}\n\n.faded {\n opacity: 0.6;\n filter: grayscale(100%);\n}\n\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/row.css\"],\"names\":[],\"mappings\":\";AACA;IACI,0BAA0B;IAC1B,kBAAkB;IAClB,cAAc;IACd,kBAAkB;IAClB,yBAAyB;IACzB,UAAU;AACd;;AAEA;IACI,gCAAgC;IAChC,wBAAwB;IACxB,4BAA4B;AAChC;;AAEA;IACI,qBAAqB;IACrB,UAAU;IACV,WAAW;IACX,kBAAkB;IAClB,kBAAkB;IAClB,UAAU;IACV,QAAQ;IACR,2BAA2B;AAC/B;;AAEA;IACI,+BAA+B;AACnC;;AAEA;IACI;QACI,UAAU;IACd;;IAEA;QACI,UAAU;IACd;AACJ;;AAEA;IACI,gCAAgC;IAChC,6BAA6B;AACjC;;AAEA;IACI;QACI,UAAU;IACd;;IAEA;QACI,UAAU;QACV,kBAAkB;QAClB,YAAY;IAChB;AACJ;;AAEA;IACI,qBAAqB;IACrB,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,kBAAkB;IAClB,sCAAsC;AAC1C;;AAEA;IACI,eAAe;IACf,eAAe;IACf,kBAAkB;IAClB,mBAAmB;IACnB,mCAAmC;IACnC,wCAAwC;IACxC,2CAA2C;AAC/C;;AAEA;IACI,mCAAmC;IACnC,wCAAwC;IACxC,2CAA2C;AAC/C;;AAEA;IACI,aAAa;IACb,6BAA6B;IAC7B,qBAAqB;IACrB,uBAAuB;IACvB,gBAAgB;AACpB;;AAEA;IACI,aAAa;IACb,uBAAuB;IACvB,gBAAgB;IAChB,cAAc;AAClB;;AAEA;IACI,6BAA6B;IAC7B,uBAAuB;IACvB,gBAAgB;IAChB,wBAAwB;AAC5B;;AAEA;IACI,YAAY;IACZ,uBAAuB;AAC3B\",\"sourcesContent\":[\"\\n.row_header {\\n border-radius: 0 8px 8px 0;\\n width: fit-content;\\n max-width: 95%;\\n position: relative;\\n padding: 8px 8px 8px 16px;\\n z-index: 8;\\n}\\n\\n.row_header_bar {\\n border-bottom: solid 1px #333333;\\n border-radius: 0 5px 0 0;\\n background-color: whitesmoke;\\n}\\n\\n.rule_highlight_dot {\\n display: inline-block;\\n width: 9px;\\n height: 9px;\\n border-radius: 50%;\\n position: absolute;\\n left: 100%;\\n top: 50%;\\n transform: translateY(-50%);\\n}\\n\\n.rule_highlight_dot.fade-in {\\n animation-name: animate-fade-in;\\n}\\n\\n@keyframes animate-fade-in {\\n 0% {\\n opacity: 0;\\n }\\n\\n 100% {\\n opacity: 1;\\n }\\n}\\n\\n.rule_highlight_dot.fade-out {\\n animation-name: animate-fade-out;\\n animation-fill-mode: forwards;\\n}\\n\\n@keyframes animate-fade-out {\\n 0% {\\n opacity: 1;\\n }\\n\\n 100% {\\n opacity: 0;\\n visibility: hidden;\\n display:none;\\n }\\n}\\n\\n.rule_text {\\n white-space: pre-wrap;\\n padding: 4px 0;\\n position: relative;\\n width: fit-content;\\n border-radius: 7px;\\n transition: background-color 1.0s ease;\\n}\\n\\n.row_toggle {\\n font-size: 10pt;\\n cursor: pointer;\\n padding-left: 10px;\\n padding-right: 10px;\\n transition: opacity .5s ease-in-out;\\n -moz-transition: opacity .5s ease-in-out;\\n -webkit-transition: opacity .5s ease-in-out;\\n}\\n\\n.row_toggle:hover {\\n transition: opacity .5s ease-in-out;\\n -moz-transition: opacity .5s ease-in-out;\\n -webkit-transition: opacity .5s ease-in-out;\\n}\\n\\n.row_row {\\n display: flex;\\n justify-content: space-around;\\n align-content: center;\\n background: transparent;\\n overflow: hidden;\\n}\\n\\n.branch_space {\\n display: flex;\\n justify-content: center;\\n overflow: hidden;\\n max-width: 75%;\\n}\\n\\n.row_container {\\n justify-content: space-around;\\n background: transparent;\\n padding-top: 1em;\\n /* overflow-y: hidden; */\\n}\\n\\n.faded {\\n opacity: 0.6;\\n filter: grayscale(100%);\\n}\\n\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `/* ===== SEARCH BOX ===== */\n.search {\n position: fixed;\n bottom: 0;\n left: 0;\n z-index: 18;\n min-width: 200px;\n}\n\n.search_row {\n list-style-type: none;\n font-family: monospace;\n cursor: pointer;\n width: 200px;\n}\n\n.search_row.active {\n background-color: #6554C0;\n}\n\n.search_result_list {\n position: static;\n list-style: none;\n margin-left: 0;\n padding-left: 1.2em;\n margin-bottom: 1px;\n border-radius: 0 5px 0 5px;\n filter: drop-shadow(0 0 1px #333);\n max-width: 500px;\n overflow: hidden;\n min-width: 200px;\n width: fit-content;\n width: -moz-fit-content;\n\n}\n\n.filter {\n cursor: pointer;\n font-family: monospace;\n border-radius: 500px;\n left: 0;\n padding-left: 20px;\n opacity: 0.8;\n width: 200px;\n}\n\n.active_filters_list {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.close {\n color: black;\n float: right;\n padding-right: 5px;\n}\n\n.close:hover {\n opacity: 1;\n}\n\nform {\n padding-top: 0;\n}\n`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/search.css\"],\"names\":[],\"mappings\":\"AAAA,2BAA2B;AAC3B;IACI,eAAe;IACf,SAAS;IACT,OAAO;IACP,WAAW;IACX,gBAAgB;AACpB;;AAEA;IACI,qBAAqB;IACrB,sBAAsB;IACtB,eAAe;IACf,YAAY;AAChB;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,gBAAgB;IAChB,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,kBAAkB;IAClB,0BAA0B;IAC1B,iCAAiC;IACjC,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,kBAAkB;IAClB,uBAAuB;;AAE3B;;AAEA;IACI,eAAe;IACf,sBAAsB;IACtB,oBAAoB;IACpB,OAAO;IACP,kBAAkB;IAClB,YAAY;IACZ,YAAY;AAChB;;AAEA;IACI,gBAAgB;IAChB,SAAS;IACT,UAAU;AACd;;AAEA;IACI,YAAY;IACZ,YAAY;IACZ,kBAAkB;AACtB;;AAEA;IACI,UAAU;AACd;;AAEA;IACI,cAAc;AAClB\",\"sourcesContent\":[\"/* ===== SEARCH BOX ===== */\\n.search {\\n position: fixed;\\n bottom: 0;\\n left: 0;\\n z-index: 18;\\n min-width: 200px;\\n}\\n\\n.search_row {\\n list-style-type: none;\\n font-family: monospace;\\n cursor: pointer;\\n width: 200px;\\n}\\n\\n.search_row.active {\\n background-color: #6554C0;\\n}\\n\\n.search_result_list {\\n position: static;\\n list-style: none;\\n margin-left: 0;\\n padding-left: 1.2em;\\n margin-bottom: 1px;\\n border-radius: 0 5px 0 5px;\\n filter: drop-shadow(0 0 1px #333);\\n max-width: 500px;\\n overflow: hidden;\\n min-width: 200px;\\n width: fit-content;\\n width: -moz-fit-content;\\n\\n}\\n\\n.filter {\\n cursor: pointer;\\n font-family: monospace;\\n border-radius: 500px;\\n left: 0;\\n padding-left: 20px;\\n opacity: 0.8;\\n width: 200px;\\n}\\n\\n.active_filters_list {\\n list-style: none;\\n margin: 0;\\n padding: 0;\\n}\\n\\n.close {\\n color: black;\\n float: right;\\n padding-right: 5px;\\n}\\n\\n.close:hover {\\n opacity: 1;\\n}\\n\\nform {\\n padding-top: 0;\\n}\\n\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, `.symbol {\n margin: 1px 1px;\n display: flex;\n border-radius: 7px;\n /* translate: 1px -3px; */\n}\n\n.mark_symbol {\n min-width: 0;\n min-height: 0;\n width: fit-content;\n ;\n width: -moz-fit-content;\n display: flex;\n border-radius: 7px;\n font-style: bold, italic;\n}`, \"\",{\"version\":3,\"sources\":[\"webpack://./src/lib/components/symbol.css\"],\"names\":[],\"mappings\":\"AAAA;IACI,eAAe;IACf,aAAa;IACb,kBAAkB;IAClB,yBAAyB;AAC7B;;AAEA;IACI,YAAY;IACZ,aAAa;IACb,kBAAkB;;IAElB,uBAAuB;IACvB,aAAa;IACb,kBAAkB;IAClB,wBAAwB;AAC5B\",\"sourcesContent\":[\".symbol {\\n margin: 1px 1px;\\n display: flex;\\n border-radius: 7px;\\n /* translate: 1px -3px; */\\n}\\n\\n.mark_symbol {\\n min-width: 0;\\n min-height: 0;\\n width: fit-content;\\n ;\\n width: -moz-fit-content;\\n display: flex;\\n border-radius: 7px;\\n font-style: bold, italic;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = [];\n\n // return the list of modules as css string\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n content += cssWithMappingToString(item);\n if (needLayer) {\n content += \"}\";\n }\n if (item[2]) {\n content += \"}\";\n }\n if (item[4]) {\n content += \"}\";\n }\n return content;\n }).join(\"\");\n };\n\n // import a list of modules into the list\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n var alreadyImportedModules = {};\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n list.push(item);\n }\n };\n return list;\n};","\"use strict\";\n\nmodule.exports = function (item) {\n var content = item[1];\n var cssMapping = item[3];\n if (!cssMapping) {\n return content;\n }\n if (typeof btoa === \"function\") {\n var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));\n var data = \"sourceMappingURL=data:application/json;charset=utf-8;base64,\".concat(base64);\n var sourceMapping = \"/*# \".concat(data, \" */\");\n return [content].concat([sourceMapping]).join(\"\\n\");\n }\n return [content].join(\"\\n\");\n};","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nfunction stringifiable(obj) {\n // Safely stringify Object.create(null)\n /* istanbul ignore next */\n return typeof obj === 'object' && !('toString' in obj) ?\n Object.prototype.toString.call(obj).slice(8, -1) :\n obj;\n}\nvar isProduction = typeof process === 'object' && process.env.NODE_ENV === 'production';\nfunction invariant(condition, message) {\n if (!condition) {\n /* istanbul ignore next */\n if (isProduction) {\n throw new Error('Invariant failed');\n }\n throw new Error(message());\n }\n}\nexports.invariant = invariant;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar splice = Array.prototype.splice;\nvar toString = Object.prototype.toString;\nfunction type(obj) {\n return toString.call(obj).slice(8, -1);\n}\nvar assign = Object.assign || /* istanbul ignore next */ (function (target, source) {\n getAllKeys(source).forEach(function (key) {\n if (hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n });\n return target;\n});\nvar getAllKeys = typeof Object.getOwnPropertySymbols === 'function'\n ? function (obj) { return Object.keys(obj).concat(Object.getOwnPropertySymbols(obj)); }\n /* istanbul ignore next */\n : function (obj) { return Object.keys(obj); };\nfunction copy(object) {\n return Array.isArray(object)\n ? assign(object.constructor(object.length), object)\n : (type(object) === 'Map')\n ? new Map(object)\n : (type(object) === 'Set')\n ? new Set(object)\n : (object && typeof object === 'object')\n ? assign(Object.create(Object.getPrototypeOf(object)), object)\n /* istanbul ignore next */\n : object;\n}\nvar Context = /** @class */ (function () {\n function Context() {\n this.commands = assign({}, defaultCommands);\n this.update = this.update.bind(this);\n // Deprecated: update.extend, update.isEquals and update.newContext\n this.update.extend = this.extend = this.extend.bind(this);\n this.update.isEquals = function (x, y) { return x === y; };\n this.update.newContext = function () { return new Context().update; };\n }\n Object.defineProperty(Context.prototype, \"isEquals\", {\n get: function () {\n return this.update.isEquals;\n },\n set: function (value) {\n this.update.isEquals = value;\n },\n enumerable: true,\n configurable: true\n });\n Context.prototype.extend = function (directive, fn) {\n this.commands[directive] = fn;\n };\n Context.prototype.update = function (object, $spec) {\n var _this = this;\n var spec = (typeof $spec === 'function') ? { $apply: $spec } : $spec;\n if (!(Array.isArray(object) && Array.isArray(spec))) {\n invariant(!Array.isArray(spec), function () { return \"update(): You provided an invalid spec to update(). The spec may \" +\n \"not contain an array except as the value of $set, $push, $unshift, \" +\n \"$splice or any custom command allowing an array value.\"; });\n }\n invariant(typeof spec === 'object' && spec !== null, function () { return \"update(): You provided an invalid spec to update(). The spec and \" +\n \"every included key path must be plain objects containing one of the \" +\n (\"following commands: \" + Object.keys(_this.commands).join(', ') + \".\"); });\n var nextObject = object;\n getAllKeys(spec).forEach(function (key) {\n if (hasOwnProperty.call(_this.commands, key)) {\n var objectWasNextObject = object === nextObject;\n nextObject = _this.commands[key](spec[key], nextObject, spec, object);\n if (objectWasNextObject && _this.isEquals(nextObject, object)) {\n nextObject = object;\n }\n }\n else {\n var nextValueForKey = type(object) === 'Map'\n ? _this.update(object.get(key), spec[key])\n : _this.update(object[key], spec[key]);\n var nextObjectValue = type(nextObject) === 'Map'\n ? nextObject.get(key)\n : nextObject[key];\n if (!_this.isEquals(nextValueForKey, nextObjectValue)\n || typeof nextValueForKey === 'undefined'\n && !hasOwnProperty.call(object, key)) {\n if (nextObject === object) {\n nextObject = copy(object);\n }\n if (type(nextObject) === 'Map') {\n nextObject.set(key, nextValueForKey);\n }\n else {\n nextObject[key] = nextValueForKey;\n }\n }\n }\n });\n return nextObject;\n };\n return Context;\n}());\nexports.Context = Context;\nvar defaultCommands = {\n $push: function (value, nextObject, spec) {\n invariantPushAndUnshift(nextObject, spec, '$push');\n return value.length ? nextObject.concat(value) : nextObject;\n },\n $unshift: function (value, nextObject, spec) {\n invariantPushAndUnshift(nextObject, spec, '$unshift');\n return value.length ? value.concat(nextObject) : nextObject;\n },\n $splice: function (value, nextObject, spec, originalObject) {\n invariantSplices(nextObject, spec);\n value.forEach(function (args) {\n invariantSplice(args);\n if (nextObject === originalObject && args.length) {\n nextObject = copy(originalObject);\n }\n splice.apply(nextObject, args);\n });\n return nextObject;\n },\n $set: function (value, _nextObject, spec) {\n invariantSet(spec);\n return value;\n },\n $toggle: function (targets, nextObject) {\n invariantSpecArray(targets, '$toggle');\n var nextObjectCopy = targets.length ? copy(nextObject) : nextObject;\n targets.forEach(function (target) {\n nextObjectCopy[target] = !nextObject[target];\n });\n return nextObjectCopy;\n },\n $unset: function (value, nextObject, _spec, originalObject) {\n invariantSpecArray(value, '$unset');\n value.forEach(function (key) {\n if (Object.hasOwnProperty.call(nextObject, key)) {\n if (nextObject === originalObject) {\n nextObject = copy(originalObject);\n }\n delete nextObject[key];\n }\n });\n return nextObject;\n },\n $add: function (values, nextObject, _spec, originalObject) {\n invariantMapOrSet(nextObject, '$add');\n invariantSpecArray(values, '$add');\n if (type(nextObject) === 'Map') {\n values.forEach(function (_a) {\n var key = _a[0], value = _a[1];\n if (nextObject === originalObject && nextObject.get(key) !== value) {\n nextObject = copy(originalObject);\n }\n nextObject.set(key, value);\n });\n }\n else {\n values.forEach(function (value) {\n if (nextObject === originalObject && !nextObject.has(value)) {\n nextObject = copy(originalObject);\n }\n nextObject.add(value);\n });\n }\n return nextObject;\n },\n $remove: function (value, nextObject, _spec, originalObject) {\n invariantMapOrSet(nextObject, '$remove');\n invariantSpecArray(value, '$remove');\n value.forEach(function (key) {\n if (nextObject === originalObject && nextObject.has(key)) {\n nextObject = copy(originalObject);\n }\n nextObject.delete(key);\n });\n return nextObject;\n },\n $merge: function (value, nextObject, _spec, originalObject) {\n invariantMerge(nextObject, value);\n getAllKeys(value).forEach(function (key) {\n if (value[key] !== nextObject[key]) {\n if (nextObject === originalObject) {\n nextObject = copy(originalObject);\n }\n nextObject[key] = value[key];\n }\n });\n return nextObject;\n },\n $apply: function (value, original) {\n invariantApply(value);\n return value(original);\n },\n};\nvar defaultContext = new Context();\nexports.isEquals = defaultContext.update.isEquals;\nexports.extend = defaultContext.extend;\nexports.default = defaultContext.update;\n// @ts-ignore\nexports.default.default = module.exports = assign(exports.default, exports);\n// invariants\nfunction invariantPushAndUnshift(value, spec, command) {\n invariant(Array.isArray(value), function () { return \"update(): expected target of \" + stringifiable(command) + \" to be an array; got \" + stringifiable(value) + \".\"; });\n invariantSpecArray(spec[command], command);\n}\nfunction invariantSpecArray(spec, command) {\n invariant(Array.isArray(spec), function () { return \"update(): expected spec of \" + stringifiable(command) + \" to be an array; got \" + stringifiable(spec) + \". \" +\n \"Did you forget to wrap your parameter in an array?\"; });\n}\nfunction invariantSplices(value, spec) {\n invariant(Array.isArray(value), function () { return \"Expected $splice target to be an array; got \" + stringifiable(value); });\n invariantSplice(spec.$splice);\n}\nfunction invariantSplice(value) {\n invariant(Array.isArray(value), function () { return \"update(): expected spec of $splice to be an array of arrays; got \" + stringifiable(value) + \". \" +\n \"Did you forget to wrap your parameters in an array?\"; });\n}\nfunction invariantApply(fn) {\n invariant(typeof fn === 'function', function () { return \"update(): expected spec of $apply to be a function; got \" + stringifiable(fn) + \".\"; });\n}\nfunction invariantSet(spec) {\n invariant(Object.keys(spec).length === 1, function () { return \"Cannot have more than one key in an object with $set\"; });\n}\nfunction invariantMerge(target, specValue) {\n invariant(specValue && typeof specValue === 'object', function () { return \"update(): $merge expects a spec of type 'object'; got \" + stringifiable(specValue); });\n invariant(target && typeof target === 'object', function () { return \"update(): $merge expects a target of type 'object'; got \" + stringifiable(target); });\n}\nfunction invariantMapOrSet(target, command) {\n var typeOfTarget = type(target);\n invariant(typeOfTarget === 'Map' || typeOfTarget === 'Set', function () { return \"update(): \" + stringifiable(command) + \" expects a target of type Set or Map; got \" + stringifiable(typeOfTarget); });\n}\n","/**\n * lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n","var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n","var baseGetTag = require('./_baseGetTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n","/**\n * @license\n * Lodash \n * Copyright OpenJS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n;(function() {\n\n /** Used as a safe reference for `undefined` in pre-ES5 environments. */\n var undefined;\n\n /** Used as the semantic version number. */\n var VERSION = '4.17.21';\n\n /** Used as the size to enable large array optimizations. */\n var LARGE_ARRAY_SIZE = 200;\n\n /** Error message constants. */\n var CORE_ERROR_TEXT = 'Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',\n FUNC_ERROR_TEXT = 'Expected a function',\n INVALID_TEMPL_VAR_ERROR_TEXT = 'Invalid `variable` option passed into `_.template`';\n\n /** Used to stand-in for `undefined` hash values. */\n var HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n /** Used as the maximum memoize cache size. */\n var MAX_MEMOIZE_SIZE = 500;\n\n /** Used as the internal argument placeholder. */\n var PLACEHOLDER = '__lodash_placeholder__';\n\n /** Used to compose bitmasks for cloning. */\n var CLONE_DEEP_FLAG = 1,\n CLONE_FLAT_FLAG = 2,\n CLONE_SYMBOLS_FLAG = 4;\n\n /** Used to compose bitmasks for value comparisons. */\n var COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n /** Used to compose bitmasks for function metadata. */\n var WRAP_BIND_FLAG = 1,\n WRAP_BIND_KEY_FLAG = 2,\n WRAP_CURRY_BOUND_FLAG = 4,\n WRAP_CURRY_FLAG = 8,\n WRAP_CURRY_RIGHT_FLAG = 16,\n WRAP_PARTIAL_FLAG = 32,\n WRAP_PARTIAL_RIGHT_FLAG = 64,\n WRAP_ARY_FLAG = 128,\n WRAP_REARG_FLAG = 256,\n WRAP_FLIP_FLAG = 512;\n\n /** Used as default options for `_.truncate`. */\n var DEFAULT_TRUNC_LENGTH = 30,\n DEFAULT_TRUNC_OMISSION = '...';\n\n /** Used to detect hot functions by number of calls within a span of milliseconds. */\n var HOT_COUNT = 800,\n HOT_SPAN = 16;\n\n /** Used to indicate the type of lazy iteratees. */\n var LAZY_FILTER_FLAG = 1,\n LAZY_MAP_FLAG = 2,\n LAZY_WHILE_FLAG = 3;\n\n /** Used as references for various `Number` constants. */\n var INFINITY = 1 / 0,\n MAX_SAFE_INTEGER = 9007199254740991,\n MAX_INTEGER = 1.7976931348623157e+308,\n NAN = 0 / 0;\n\n /** Used as references for the maximum length and index of an array. */\n var MAX_ARRAY_LENGTH = 4294967295,\n MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1,\n HALF_MAX_ARRAY_LENGTH = MAX_ARRAY_LENGTH >>> 1;\n\n /** Used to associate wrap methods with their bit flags. */\n var wrapFlags = [\n ['ary', WRAP_ARY_FLAG],\n ['bind', WRAP_BIND_FLAG],\n ['bindKey', WRAP_BIND_KEY_FLAG],\n ['curry', WRAP_CURRY_FLAG],\n ['curryRight', WRAP_CURRY_RIGHT_FLAG],\n ['flip', WRAP_FLIP_FLAG],\n ['partial', WRAP_PARTIAL_FLAG],\n ['partialRight', WRAP_PARTIAL_RIGHT_FLAG],\n ['rearg', WRAP_REARG_FLAG]\n ];\n\n /** `Object#toString` result references. */\n var argsTag = '[object Arguments]',\n arrayTag = '[object Array]',\n asyncTag = '[object AsyncFunction]',\n boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n domExcTag = '[object DOMException]',\n errorTag = '[object Error]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n nullTag = '[object Null]',\n objectTag = '[object Object]',\n promiseTag = '[object Promise]',\n proxyTag = '[object Proxy]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]',\n undefinedTag = '[object Undefined]',\n weakMapTag = '[object WeakMap]',\n weakSetTag = '[object WeakSet]';\n\n var arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]',\n float32Tag = '[object Float32Array]',\n float64Tag = '[object Float64Array]',\n int8Tag = '[object Int8Array]',\n int16Tag = '[object Int16Array]',\n int32Tag = '[object Int32Array]',\n uint8Tag = '[object Uint8Array]',\n uint8ClampedTag = '[object Uint8ClampedArray]',\n uint16Tag = '[object Uint16Array]',\n uint32Tag = '[object Uint32Array]';\n\n /** Used to match empty string literals in compiled template source. */\n var reEmptyStringLeading = /\\b__p \\+= '';/g,\n reEmptyStringMiddle = /\\b(__p \\+=) '' \\+/g,\n reEmptyStringTrailing = /(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g;\n\n /** Used to match HTML entities and HTML characters. */\n var reEscapedHtml = /&(?:amp|lt|gt|quot|#39);/g,\n reUnescapedHtml = /[&<>\"']/g,\n reHasEscapedHtml = RegExp(reEscapedHtml.source),\n reHasUnescapedHtml = RegExp(reUnescapedHtml.source);\n\n /** Used to match template delimiters. */\n var reEscape = /<%-([\\s\\S]+?)%>/g,\n reEvaluate = /<%([\\s\\S]+?)%>/g,\n reInterpolate = /<%=([\\s\\S]+?)%>/g;\n\n /** Used to match property names within property paths. */\n var reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/,\n rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n /**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\n var reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g,\n reHasRegExpChar = RegExp(reRegExpChar.source);\n\n /** Used to match leading whitespace. */\n var reTrimStart = /^\\s+/;\n\n /** Used to match a single whitespace character. */\n var reWhitespace = /\\s/;\n\n /** Used to match wrap detail comments. */\n var reWrapComment = /\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,\n reWrapDetails = /\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,\n reSplitDetails = /,? & /;\n\n /** Used to match words composed of alphanumeric characters. */\n var reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n /**\n * Used to validate the `validate` option in `_.template` variable.\n *\n * Forbids characters which could potentially change the meaning of the function argument definition:\n * - \"(),\" (modification of function parameters)\n * - \"=\" (default value)\n * - \"[]{}\" (destructuring of function parameters)\n * - \"/\" (beginning of a comment)\n * - whitespace\n */\n var reForbiddenIdentifierChars = /[()=,{}\\[\\]\\/\\s]/;\n\n /** Used to match backslashes in property paths. */\n var reEscapeChar = /\\\\(\\\\)?/g;\n\n /**\n * Used to match\n * [ES template delimiters](http://ecma-international.org/ecma-262/7.0/#sec-template-literal-lexical-components).\n */\n var reEsTemplate = /\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g;\n\n /** Used to match `RegExp` flags from their coerced string values. */\n var reFlags = /\\w*$/;\n\n /** Used to detect bad signed hexadecimal string values. */\n var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n /** Used to detect binary string values. */\n var reIsBinary = /^0b[01]+$/i;\n\n /** Used to detect host constructors (Safari). */\n var reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n /** Used to detect octal string values. */\n var reIsOctal = /^0o[0-7]+$/i;\n\n /** Used to detect unsigned integer values. */\n var reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n /** Used to match Latin Unicode letters (excluding mathematical operators). */\n var reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n /** Used to ensure capturing order of template delimiters. */\n var reNoMatch = /($^)/;\n\n /** Used to match unescaped characters in compiled string literals. */\n var reUnescapedString = /['\\n\\r\\u2028\\u2029\\\\]/g;\n\n /** Used to compose unicode character classes. */\n var rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n /** Used to compose unicode capture groups. */\n var rsApos = \"['\\u2019]\",\n rsAstral = '[' + rsAstralRange + ']',\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n /** Used to compose unicode regexes. */\n var rsMiscLower = '(?:' + rsLower + '|' + rsMisc + ')',\n rsMiscUpper = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptContrLower = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptContrUpper = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsOrdLower = '\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])',\n rsOrdUpper = '\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq,\n rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')';\n\n /** Used to match apostrophes. */\n var reApos = RegExp(rsApos, 'g');\n\n /**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\n var reComboMark = RegExp(rsCombo, 'g');\n\n /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */\n var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g');\n\n /** Used to match complex or compound words. */\n var reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptContrLower + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsMiscUpper + '+' + rsOptContrUpper + '(?=' + [rsBreak, rsUpper + rsMiscLower, '$'].join('|') + ')',\n rsUpper + '?' + rsMiscLower + '+' + rsOptContrLower,\n rsUpper + '+' + rsOptContrUpper,\n rsOrdUpper,\n rsOrdLower,\n rsDigits,\n rsEmoji\n ].join('|'), 'g');\n\n /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\n var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n /** Used to detect strings that need a more robust regexp to match words. */\n var reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n /** Used to assign default `context` object properties. */\n var contextProps = [\n 'Array', 'Buffer', 'DataView', 'Date', 'Error', 'Float32Array', 'Float64Array',\n 'Function', 'Int8Array', 'Int16Array', 'Int32Array', 'Map', 'Math', 'Object',\n 'Promise', 'RegExp', 'Set', 'String', 'Symbol', 'TypeError', 'Uint8Array',\n 'Uint8ClampedArray', 'Uint16Array', 'Uint32Array', 'WeakMap',\n '_', 'clearTimeout', 'isFinite', 'parseInt', 'setTimeout'\n ];\n\n /** Used to make template sourceURLs easier to identify. */\n var templateCounter = -1;\n\n /** Used to identify `toStringTag` values of typed arrays. */\n var typedArrayTags = {};\n typedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\n typedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\n typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\n typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\n typedArrayTags[uint32Tag] = true;\n typedArrayTags[argsTag] = typedArrayTags[arrayTag] =\n typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\n typedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\n typedArrayTags[errorTag] = typedArrayTags[funcTag] =\n typedArrayTags[mapTag] = typedArrayTags[numberTag] =\n typedArrayTags[objectTag] = typedArrayTags[regexpTag] =\n typedArrayTags[setTag] = typedArrayTags[stringTag] =\n typedArrayTags[weakMapTag] = false;\n\n /** Used to identify `toStringTag` values supported by `_.clone`. */\n var cloneableTags = {};\n cloneableTags[argsTag] = cloneableTags[arrayTag] =\n cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] =\n cloneableTags[boolTag] = cloneableTags[dateTag] =\n cloneableTags[float32Tag] = cloneableTags[float64Tag] =\n cloneableTags[int8Tag] = cloneableTags[int16Tag] =\n cloneableTags[int32Tag] = cloneableTags[mapTag] =\n cloneableTags[numberTag] = cloneableTags[objectTag] =\n cloneableTags[regexpTag] = cloneableTags[setTag] =\n cloneableTags[stringTag] = cloneableTags[symbolTag] =\n cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] =\n cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;\n cloneableTags[errorTag] = cloneableTags[funcTag] =\n cloneableTags[weakMapTag] = false;\n\n /** Used to map Latin Unicode letters to basic Latin letters. */\n var deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 's'\n };\n\n /** Used to map characters to HTML entities. */\n var htmlEscapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": '''\n };\n\n /** Used to map HTML entities to characters. */\n var htmlUnescapes = {\n '&': '&',\n '<': '<',\n '>': '>',\n '"': '\"',\n ''': \"'\"\n };\n\n /** Used to escape characters for inclusion in compiled string literals. */\n var stringEscapes = {\n '\\\\': '\\\\',\n \"'\": \"'\",\n '\\n': 'n',\n '\\r': 'r',\n '\\u2028': 'u2028',\n '\\u2029': 'u2029'\n };\n\n /** Built-in method references without a dependency on `root`. */\n var freeParseFloat = parseFloat,\n freeParseInt = parseInt;\n\n /** Detect free variable `global` from Node.js. */\n var freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n /** Detect free variable `self`. */\n var freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n /** Used as a reference to the global object. */\n var root = freeGlobal || freeSelf || Function('return this')();\n\n /** Detect free variable `exports`. */\n var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n /** Detect free variable `module`. */\n var freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n /** Detect the popular CommonJS extension `module.exports`. */\n var moduleExports = freeModule && freeModule.exports === freeExports;\n\n /** Detect free variable `process` from Node.js. */\n var freeProcess = moduleExports && freeGlobal.process;\n\n /** Used to access faster Node.js helpers. */\n var nodeUtil = (function() {\n try {\n // Use `util.types` for Node.js 10+.\n var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n if (types) {\n return types;\n }\n\n // Legacy `process.binding('util')` for Node.js < 10.\n return freeProcess && freeProcess.binding && freeProcess.binding('util');\n } catch (e) {}\n }());\n\n /* Node.js helper references. */\n var nodeIsArrayBuffer = nodeUtil && nodeUtil.isArrayBuffer,\n nodeIsDate = nodeUtil && nodeUtil.isDate,\n nodeIsMap = nodeUtil && nodeUtil.isMap,\n nodeIsRegExp = nodeUtil && nodeUtil.isRegExp,\n nodeIsSet = nodeUtil && nodeUtil.isSet,\n nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * A faster alternative to `Function#apply`, this function invokes `func`\n * with the `this` binding of `thisArg` and the arguments of `args`.\n *\n * @private\n * @param {Function} func The function to invoke.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} args The arguments to invoke `func` with.\n * @returns {*} Returns the result of `func`.\n */\n function apply(func, thisArg, args) {\n switch (args.length) {\n case 0: return func.call(thisArg);\n case 1: return func.call(thisArg, args[0]);\n case 2: return func.call(thisArg, args[0], args[1]);\n case 3: return func.call(thisArg, args[0], args[1], args[2]);\n }\n return func.apply(thisArg, args);\n }\n\n /**\n * A specialized version of `baseAggregator` for arrays.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function arrayAggregator(array, setter, iteratee, accumulator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n var value = array[index];\n setter(accumulator, value, iteratee(value), array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.forEachRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\n function arrayEachRight(array, iteratee) {\n var length = array == null ? 0 : array.length;\n\n while (length--) {\n if (iteratee(array[length], length, array) === false) {\n break;\n }\n }\n return array;\n }\n\n /**\n * A specialized version of `_.every` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n */\n function arrayEvery(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (!predicate(array[index], index, array)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function arrayFilter(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n }\n\n /**\n * This function is like `arrayIncludes` except that it accepts a comparator.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\n function arrayIncludesWith(array, value, comparator) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (comparator(value, array[index])) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n }\n\n /**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\n function arrayPush(array, values) {\n var index = -1,\n length = values.length,\n offset = array.length;\n\n while (++index < length) {\n array[offset + index] = values[index];\n }\n return array;\n }\n\n /**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.reduceRight` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the last element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\n function arrayReduceRight(array, iteratee, accumulator, initAccum) {\n var length = array == null ? 0 : array.length;\n if (initAccum && length) {\n accumulator = array[--length];\n }\n while (length--) {\n accumulator = iteratee(accumulator, array[length], length, array);\n }\n return accumulator;\n }\n\n /**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function arraySome(array, predicate) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (predicate(array[index], index, array)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Gets the size of an ASCII `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n var asciiSize = baseProperty('length');\n\n /**\n * Converts an ASCII `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function asciiToArray(string) {\n return string.split('');\n }\n\n /**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function asciiWords(string) {\n return string.match(reAsciiWord) || [];\n }\n\n /**\n * The base implementation of methods like `_.findKey` and `_.findLastKey`,\n * without support for iteratee shorthands, which iterates over `collection`\n * using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the found element or its key, else `undefined`.\n */\n function baseFindKey(collection, predicate, eachFunc) {\n var result;\n eachFunc(collection, function(value, key, collection) {\n if (predicate(value, key, collection)) {\n result = key;\n return false;\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseFindIndex(array, predicate, fromIndex, fromRight) {\n var length = array.length,\n index = fromIndex + (fromRight ? 1 : -1);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (predicate(array[index], index, array)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.indexOf` without `fromIndex` bounds checks.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOf(array, value, fromIndex) {\n return value === value\n ? strictIndexOf(array, value, fromIndex)\n : baseFindIndex(array, baseIsNaN, fromIndex);\n }\n\n /**\n * This function is like `baseIndexOf` except that it accepts a comparator.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @param {Function} comparator The comparator invoked per element.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function baseIndexOfWith(array, value, fromIndex, comparator) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (comparator(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * The base implementation of `_.isNaN` without support for number objects.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n */\n function baseIsNaN(value) {\n return value !== value;\n }\n\n /**\n * The base implementation of `_.mean` and `_.meanBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the mean.\n */\n function baseMean(array, iteratee) {\n var length = array == null ? 0 : array.length;\n return length ? (baseSum(array, iteratee) / length) : NAN;\n }\n\n /**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function baseProperty(key) {\n return function(object) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n }\n\n /**\n * The base implementation of `_.reduce` and `_.reduceRight`, without support\n * for iteratee shorthands, which iterates over `collection` using `eachFunc`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} accumulator The initial value.\n * @param {boolean} initAccum Specify using the first or last element of\n * `collection` as the initial value.\n * @param {Function} eachFunc The function to iterate over `collection`.\n * @returns {*} Returns the accumulated value.\n */\n function baseReduce(collection, iteratee, accumulator, initAccum, eachFunc) {\n eachFunc(collection, function(value, index, collection) {\n accumulator = initAccum\n ? (initAccum = false, value)\n : iteratee(accumulator, value, index, collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.sortBy` which uses `comparer` to define the\n * sort order of `array` and replaces criteria objects with their corresponding\n * values.\n *\n * @private\n * @param {Array} array The array to sort.\n * @param {Function} comparer The function to define sort order.\n * @returns {Array} Returns `array`.\n */\n function baseSortBy(array, comparer) {\n var length = array.length;\n\n array.sort(comparer);\n while (length--) {\n array[length] = array[length].value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.sum` and `_.sumBy` without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {number} Returns the sum.\n */\n function baseSum(array, iteratee) {\n var result,\n index = -1,\n length = array.length;\n\n while (++index < length) {\n var current = iteratee(array[index]);\n if (current !== undefined) {\n result = result === undefined ? current : (result + current);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\n function baseTimes(n, iteratee) {\n var index = -1,\n result = Array(n);\n\n while (++index < n) {\n result[index] = iteratee(index);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array\n * of key-value pairs for `object` corresponding to the property names of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the key-value pairs.\n */\n function baseToPairs(object, props) {\n return arrayMap(props, function(key) {\n return [key, object[key]];\n });\n }\n\n /**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\n function baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n }\n\n /**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\n function baseUnary(func) {\n return function(value) {\n return func(value);\n };\n }\n\n /**\n * The base implementation of `_.values` and `_.valuesIn` which creates an\n * array of `object` property values corresponding to the property names\n * of `props`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} props The property names to get values for.\n * @returns {Object} Returns the array of property values.\n */\n function baseValues(object, props) {\n return arrayMap(props, function(key) {\n return object[key];\n });\n }\n\n /**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function cacheHas(cache, key) {\n return cache.has(key);\n }\n\n /**\n * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the first unmatched string symbol.\n */\n function charsStartIndex(strSymbols, chrSymbols) {\n var index = -1,\n length = strSymbols.length;\n\n while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol\n * that is not found in the character symbols.\n *\n * @private\n * @param {Array} strSymbols The string symbols to inspect.\n * @param {Array} chrSymbols The character symbols to find.\n * @returns {number} Returns the index of the last unmatched string symbol.\n */\n function charsEndIndex(strSymbols, chrSymbols) {\n var index = strSymbols.length;\n\n while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {}\n return index;\n }\n\n /**\n * Gets the number of `placeholder` occurrences in `array`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} placeholder The placeholder to search for.\n * @returns {number} Returns the placeholder count.\n */\n function countHolders(array, placeholder) {\n var length = array.length,\n result = 0;\n\n while (length--) {\n if (array[length] === placeholder) {\n ++result;\n }\n }\n return result;\n }\n\n /**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\n var deburrLetter = basePropertyOf(deburredLetters);\n\n /**\n * Used by `_.escape` to convert characters to HTML entities.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n var escapeHtmlChar = basePropertyOf(htmlEscapes);\n\n /**\n * Used by `_.template` to escape characters for inclusion in compiled string literals.\n *\n * @private\n * @param {string} chr The matched character to escape.\n * @returns {string} Returns the escaped character.\n */\n function escapeStringChar(chr) {\n return '\\\\' + stringEscapes[chr];\n }\n\n /**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function getValue(object, key) {\n return object == null ? undefined : object[key];\n }\n\n /**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\n function hasUnicode(string) {\n return reHasUnicode.test(string);\n }\n\n /**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\n function hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n }\n\n /**\n * Converts `iterator` to an array.\n *\n * @private\n * @param {Object} iterator The iterator to convert.\n * @returns {Array} Returns the converted array.\n */\n function iteratorToArray(iterator) {\n var data,\n result = [];\n\n while (!(data = iterator.next()).done) {\n result.push(data.value);\n }\n return result;\n }\n\n /**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\n function mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n }\n\n /**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\n function overArg(func, transform) {\n return function(arg) {\n return func(transform(arg));\n };\n }\n\n /**\n * Replaces all `placeholder` elements in `array` with an internal placeholder\n * and returns an array of their indexes.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {*} placeholder The placeholder to replace.\n * @returns {Array} Returns the new array of placeholder indexes.\n */\n function replaceHolders(array, placeholder) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value === placeholder || value === PLACEHOLDER) {\n array[index] = PLACEHOLDER;\n result[resIndex++] = index;\n }\n }\n return result;\n }\n\n /**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\n function setToArray(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = value;\n });\n return result;\n }\n\n /**\n * Converts `set` to its value-value pairs.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the value-value pairs.\n */\n function setToPairs(set) {\n var index = -1,\n result = Array(set.size);\n\n set.forEach(function(value) {\n result[++index] = [value, value];\n });\n return result;\n }\n\n /**\n * A specialized version of `_.indexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictIndexOf(array, value, fromIndex) {\n var index = fromIndex - 1,\n length = array.length;\n\n while (++index < length) {\n if (array[index] === value) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * A specialized version of `_.lastIndexOf` which performs strict equality\n * comparisons of values, i.e. `===`.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} fromIndex The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function strictLastIndexOf(array, value, fromIndex) {\n var index = fromIndex + 1;\n while (index--) {\n if (array[index] === value) {\n return index;\n }\n }\n return index;\n }\n\n /**\n * Gets the number of symbols in `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the string size.\n */\n function stringSize(string) {\n return hasUnicode(string)\n ? unicodeSize(string)\n : asciiSize(string);\n }\n\n /**\n * Converts `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function stringToArray(string) {\n return hasUnicode(string)\n ? unicodeToArray(string)\n : asciiToArray(string);\n }\n\n /**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\n function trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n }\n\n /**\n * Used by `_.unescape` to convert HTML entities to characters.\n *\n * @private\n * @param {string} chr The matched character to unescape.\n * @returns {string} Returns the unescaped character.\n */\n var unescapeHtmlChar = basePropertyOf(htmlUnescapes);\n\n /**\n * Gets the size of a Unicode `string`.\n *\n * @private\n * @param {string} string The string inspect.\n * @returns {number} Returns the string size.\n */\n function unicodeSize(string) {\n var result = reUnicode.lastIndex = 0;\n while (reUnicode.test(string)) {\n ++result;\n }\n return result;\n }\n\n /**\n * Converts a Unicode `string` to an array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the converted array.\n */\n function unicodeToArray(string) {\n return string.match(reUnicode) || [];\n }\n\n /**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\n function unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n }\n\n /*--------------------------------------------------------------------------*/\n\n /**\n * Create a new pristine `lodash` function using the `context` object.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Util\n * @param {Object} [context=root] The context object.\n * @returns {Function} Returns a new `lodash` function.\n * @example\n *\n * _.mixin({ 'foo': _.constant('foo') });\n *\n * var lodash = _.runInContext();\n * lodash.mixin({ 'bar': lodash.constant('bar') });\n *\n * _.isFunction(_.foo);\n * // => true\n * _.isFunction(_.bar);\n * // => false\n *\n * lodash.isFunction(lodash.foo);\n * // => false\n * lodash.isFunction(lodash.bar);\n * // => true\n *\n * // Create a suped-up `defer` in Node.js.\n * var defer = _.runInContext({ 'setTimeout': setImmediate }).defer;\n */\n var runInContext = (function runInContext(context) {\n context = context == null ? root : _.defaults(root.Object(), context, _.pick(root, contextProps));\n\n /** Built-in constructor references. */\n var Array = context.Array,\n Date = context.Date,\n Error = context.Error,\n Function = context.Function,\n Math = context.Math,\n Object = context.Object,\n RegExp = context.RegExp,\n String = context.String,\n TypeError = context.TypeError;\n\n /** Used for built-in method references. */\n var arrayProto = Array.prototype,\n funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n /** Used to detect overreaching core-js shims. */\n var coreJsData = context['__core-js_shared__'];\n\n /** Used to resolve the decompiled source of functions. */\n var funcToString = funcProto.toString;\n\n /** Used to check objects for own properties. */\n var hasOwnProperty = objectProto.hasOwnProperty;\n\n /** Used to generate unique IDs. */\n var idCounter = 0;\n\n /** Used to detect methods masquerading as native. */\n var maskSrcKey = (function() {\n var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n return uid ? ('Symbol(src)_1.' + uid) : '';\n }());\n\n /**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\n var nativeObjectToString = objectProto.toString;\n\n /** Used to infer the `Object` constructor. */\n var objectCtorString = funcToString.call(Object);\n\n /** Used to restore the original `_` reference in `_.noConflict`. */\n var oldDash = root._;\n\n /** Used to detect if a method is native. */\n var reIsNative = RegExp('^' +\n funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n );\n\n /** Built-in value references. */\n var Buffer = moduleExports ? context.Buffer : undefined,\n Symbol = context.Symbol,\n Uint8Array = context.Uint8Array,\n allocUnsafe = Buffer ? Buffer.allocUnsafe : undefined,\n getPrototype = overArg(Object.getPrototypeOf, Object),\n objectCreate = Object.create,\n propertyIsEnumerable = objectProto.propertyIsEnumerable,\n splice = arrayProto.splice,\n spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined,\n symIterator = Symbol ? Symbol.iterator : undefined,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n var defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n }());\n\n /** Mocked built-ins. */\n var ctxClearTimeout = context.clearTimeout !== root.clearTimeout && context.clearTimeout,\n ctxNow = Date && Date.now !== root.Date.now && Date.now,\n ctxSetTimeout = context.setTimeout !== root.setTimeout && context.setTimeout;\n\n /* Built-in method references for those with the same name as other `lodash` methods. */\n var nativeCeil = Math.ceil,\n nativeFloor = Math.floor,\n nativeGetSymbols = Object.getOwnPropertySymbols,\n nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined,\n nativeIsFinite = context.isFinite,\n nativeJoin = arrayProto.join,\n nativeKeys = overArg(Object.keys, Object),\n nativeMax = Math.max,\n nativeMin = Math.min,\n nativeNow = Date.now,\n nativeParseInt = context.parseInt,\n nativeRandom = Math.random,\n nativeReverse = arrayProto.reverse;\n\n /* Built-in method references that are verified to be native. */\n var DataView = getNative(context, 'DataView'),\n Map = getNative(context, 'Map'),\n Promise = getNative(context, 'Promise'),\n Set = getNative(context, 'Set'),\n WeakMap = getNative(context, 'WeakMap'),\n nativeCreate = getNative(Object, 'create');\n\n /** Used to store function metadata. */\n var metaMap = WeakMap && new WeakMap;\n\n /** Used to lookup unminified function names. */\n var realNames = {};\n\n /** Used to detect maps, sets, and weakmaps. */\n var dataViewCtorString = toSource(DataView),\n mapCtorString = toSource(Map),\n promiseCtorString = toSource(Promise),\n setCtorString = toSource(Set),\n weakMapCtorString = toSource(WeakMap);\n\n /** Used to convert symbols to primitives and strings. */\n var symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` object which wraps `value` to enable implicit method\n * chain sequences. Methods that operate on and return arrays, collections,\n * and functions can be chained together. Methods that retrieve a single value\n * or may return a primitive value will automatically end the chain sequence\n * and return the unwrapped value. Otherwise, the value must be unwrapped\n * with `_#value`.\n *\n * Explicit chain sequences, which must be unwrapped with `_#value`, may be\n * enabled using `_.chain`.\n *\n * The execution of chained methods is lazy, that is, it's deferred until\n * `_#value` is implicitly or explicitly called.\n *\n * Lazy evaluation allows several methods to support shortcut fusion.\n * Shortcut fusion is an optimization to merge iteratee calls; this avoids\n * the creation of intermediate arrays and can greatly reduce the number of\n * iteratee executions. Sections of a chain sequence qualify for shortcut\n * fusion if the section is applied to an array and iteratees accept only\n * one argument. The heuristic for whether a section qualifies for shortcut\n * fusion is subject to change.\n *\n * Chaining is supported in custom builds as long as the `_#value` method is\n * directly or indirectly included in the build.\n *\n * In addition to lodash methods, wrappers have `Array` and `String` methods.\n *\n * The wrapper `Array` methods are:\n * `concat`, `join`, `pop`, `push`, `shift`, `sort`, `splice`, and `unshift`\n *\n * The wrapper `String` methods are:\n * `replace` and `split`\n *\n * The wrapper methods that support shortcut fusion are:\n * `at`, `compact`, `drop`, `dropRight`, `dropWhile`, `filter`, `find`,\n * `findLast`, `head`, `initial`, `last`, `map`, `reject`, `reverse`, `slice`,\n * `tail`, `take`, `takeRight`, `takeRightWhile`, `takeWhile`, and `toArray`\n *\n * The chainable wrapper methods are:\n * `after`, `ary`, `assign`, `assignIn`, `assignInWith`, `assignWith`, `at`,\n * `before`, `bind`, `bindAll`, `bindKey`, `castArray`, `chain`, `chunk`,\n * `commit`, `compact`, `concat`, `conforms`, `constant`, `countBy`, `create`,\n * `curry`, `debounce`, `defaults`, `defaultsDeep`, `defer`, `delay`,\n * `difference`, `differenceBy`, `differenceWith`, `drop`, `dropRight`,\n * `dropRightWhile`, `dropWhile`, `extend`, `extendWith`, `fill`, `filter`,\n * `flatMap`, `flatMapDeep`, `flatMapDepth`, `flatten`, `flattenDeep`,\n * `flattenDepth`, `flip`, `flow`, `flowRight`, `fromPairs`, `functions`,\n * `functionsIn`, `groupBy`, `initial`, `intersection`, `intersectionBy`,\n * `intersectionWith`, `invert`, `invertBy`, `invokeMap`, `iteratee`, `keyBy`,\n * `keys`, `keysIn`, `map`, `mapKeys`, `mapValues`, `matches`, `matchesProperty`,\n * `memoize`, `merge`, `mergeWith`, `method`, `methodOf`, `mixin`, `negate`,\n * `nthArg`, `omit`, `omitBy`, `once`, `orderBy`, `over`, `overArgs`,\n * `overEvery`, `overSome`, `partial`, `partialRight`, `partition`, `pick`,\n * `pickBy`, `plant`, `property`, `propertyOf`, `pull`, `pullAll`, `pullAllBy`,\n * `pullAllWith`, `pullAt`, `push`, `range`, `rangeRight`, `rearg`, `reject`,\n * `remove`, `rest`, `reverse`, `sampleSize`, `set`, `setWith`, `shuffle`,\n * `slice`, `sort`, `sortBy`, `splice`, `spread`, `tail`, `take`, `takeRight`,\n * `takeRightWhile`, `takeWhile`, `tap`, `throttle`, `thru`, `toArray`,\n * `toPairs`, `toPairsIn`, `toPath`, `toPlainObject`, `transform`, `unary`,\n * `union`, `unionBy`, `unionWith`, `uniq`, `uniqBy`, `uniqWith`, `unset`,\n * `unshift`, `unzip`, `unzipWith`, `update`, `updateWith`, `values`,\n * `valuesIn`, `without`, `wrap`, `xor`, `xorBy`, `xorWith`, `zip`,\n * `zipObject`, `zipObjectDeep`, and `zipWith`\n *\n * The wrapper methods that are **not** chainable by default are:\n * `add`, `attempt`, `camelCase`, `capitalize`, `ceil`, `clamp`, `clone`,\n * `cloneDeep`, `cloneDeepWith`, `cloneWith`, `conformsTo`, `deburr`,\n * `defaultTo`, `divide`, `each`, `eachRight`, `endsWith`, `eq`, `escape`,\n * `escapeRegExp`, `every`, `find`, `findIndex`, `findKey`, `findLast`,\n * `findLastIndex`, `findLastKey`, `first`, `floor`, `forEach`, `forEachRight`,\n * `forIn`, `forInRight`, `forOwn`, `forOwnRight`, `get`, `gt`, `gte`, `has`,\n * `hasIn`, `head`, `identity`, `includes`, `indexOf`, `inRange`, `invoke`,\n * `isArguments`, `isArray`, `isArrayBuffer`, `isArrayLike`, `isArrayLikeObject`,\n * `isBoolean`, `isBuffer`, `isDate`, `isElement`, `isEmpty`, `isEqual`,\n * `isEqualWith`, `isError`, `isFinite`, `isFunction`, `isInteger`, `isLength`,\n * `isMap`, `isMatch`, `isMatchWith`, `isNaN`, `isNative`, `isNil`, `isNull`,\n * `isNumber`, `isObject`, `isObjectLike`, `isPlainObject`, `isRegExp`,\n * `isSafeInteger`, `isSet`, `isString`, `isUndefined`, `isTypedArray`,\n * `isWeakMap`, `isWeakSet`, `join`, `kebabCase`, `last`, `lastIndexOf`,\n * `lowerCase`, `lowerFirst`, `lt`, `lte`, `max`, `maxBy`, `mean`, `meanBy`,\n * `min`, `minBy`, `multiply`, `noConflict`, `noop`, `now`, `nth`, `pad`,\n * `padEnd`, `padStart`, `parseInt`, `pop`, `random`, `reduce`, `reduceRight`,\n * `repeat`, `result`, `round`, `runInContext`, `sample`, `shift`, `size`,\n * `snakeCase`, `some`, `sortedIndex`, `sortedIndexBy`, `sortedLastIndex`,\n * `sortedLastIndexBy`, `startCase`, `startsWith`, `stubArray`, `stubFalse`,\n * `stubObject`, `stubString`, `stubTrue`, `subtract`, `sum`, `sumBy`,\n * `template`, `times`, `toFinite`, `toInteger`, `toJSON`, `toLength`,\n * `toLower`, `toNumber`, `toSafeInteger`, `toString`, `toUpper`, `trim`,\n * `trimEnd`, `trimStart`, `truncate`, `unescape`, `uniqueId`, `upperCase`,\n * `upperFirst`, `value`, and `words`\n *\n * @name _\n * @constructor\n * @category Seq\n * @param {*} value The value to wrap in a `lodash` instance.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2, 3]);\n *\n * // Returns an unwrapped value.\n * wrapped.reduce(_.add);\n * // => 6\n *\n * // Returns a wrapped value.\n * var squares = wrapped.map(square);\n *\n * _.isArray(squares);\n * // => false\n *\n * _.isArray(squares.value());\n * // => true\n */\n function lodash(value) {\n if (isObjectLike(value) && !isArray(value) && !(value instanceof LazyWrapper)) {\n if (value instanceof LodashWrapper) {\n return value;\n }\n if (hasOwnProperty.call(value, '__wrapped__')) {\n return wrapperClone(value);\n }\n }\n return new LodashWrapper(value);\n }\n\n /**\n * The base implementation of `_.create` without support for assigning\n * properties to the created object.\n *\n * @private\n * @param {Object} proto The object to inherit from.\n * @returns {Object} Returns the new object.\n */\n var baseCreate = (function() {\n function object() {}\n return function(proto) {\n if (!isObject(proto)) {\n return {};\n }\n if (objectCreate) {\n return objectCreate(proto);\n }\n object.prototype = proto;\n var result = new object;\n object.prototype = undefined;\n return result;\n };\n }());\n\n /**\n * The function whose prototype chain sequence wrappers inherit from.\n *\n * @private\n */\n function baseLodash() {\n // No operation performed.\n }\n\n /**\n * The base constructor for creating `lodash` wrapper objects.\n *\n * @private\n * @param {*} value The value to wrap.\n * @param {boolean} [chainAll] Enable explicit method chain sequences.\n */\n function LodashWrapper(value, chainAll) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__chain__ = !!chainAll;\n this.__index__ = 0;\n this.__values__ = undefined;\n }\n\n /**\n * By default, the template delimiters used by lodash are like those in\n * embedded Ruby (ERB) as well as ES2015 template strings. Change the\n * following template settings to use alternative delimiters.\n *\n * @static\n * @memberOf _\n * @type {Object}\n */\n lodash.templateSettings = {\n\n /**\n * Used to detect `data` property values to be HTML-escaped.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'escape': reEscape,\n\n /**\n * Used to detect code to be evaluated.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'evaluate': reEvaluate,\n\n /**\n * Used to detect `data` property values to inject.\n *\n * @memberOf _.templateSettings\n * @type {RegExp}\n */\n 'interpolate': reInterpolate,\n\n /**\n * Used to reference the data object in the template text.\n *\n * @memberOf _.templateSettings\n * @type {string}\n */\n 'variable': '',\n\n /**\n * Used to import variables into the compiled template.\n *\n * @memberOf _.templateSettings\n * @type {Object}\n */\n 'imports': {\n\n /**\n * A reference to the `lodash` function.\n *\n * @memberOf _.templateSettings.imports\n * @type {Function}\n */\n '_': lodash\n }\n };\n\n // Ensure wrappers are instances of `baseLodash`.\n lodash.prototype = baseLodash.prototype;\n lodash.prototype.constructor = lodash;\n\n LodashWrapper.prototype = baseCreate(baseLodash.prototype);\n LodashWrapper.prototype.constructor = LodashWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a lazy wrapper object which wraps `value` to enable lazy evaluation.\n *\n * @private\n * @constructor\n * @param {*} value The value to wrap.\n */\n function LazyWrapper(value) {\n this.__wrapped__ = value;\n this.__actions__ = [];\n this.__dir__ = 1;\n this.__filtered__ = false;\n this.__iteratees__ = [];\n this.__takeCount__ = MAX_ARRAY_LENGTH;\n this.__views__ = [];\n }\n\n /**\n * Creates a clone of the lazy wrapper object.\n *\n * @private\n * @name clone\n * @memberOf LazyWrapper\n * @returns {Object} Returns the cloned `LazyWrapper` object.\n */\n function lazyClone() {\n var result = new LazyWrapper(this.__wrapped__);\n result.__actions__ = copyArray(this.__actions__);\n result.__dir__ = this.__dir__;\n result.__filtered__ = this.__filtered__;\n result.__iteratees__ = copyArray(this.__iteratees__);\n result.__takeCount__ = this.__takeCount__;\n result.__views__ = copyArray(this.__views__);\n return result;\n }\n\n /**\n * Reverses the direction of lazy iteration.\n *\n * @private\n * @name reverse\n * @memberOf LazyWrapper\n * @returns {Object} Returns the new reversed `LazyWrapper` object.\n */\n function lazyReverse() {\n if (this.__filtered__) {\n var result = new LazyWrapper(this);\n result.__dir__ = -1;\n result.__filtered__ = true;\n } else {\n result = this.clone();\n result.__dir__ *= -1;\n }\n return result;\n }\n\n /**\n * Extracts the unwrapped value from its lazy wrapper.\n *\n * @private\n * @name value\n * @memberOf LazyWrapper\n * @returns {*} Returns the unwrapped value.\n */\n function lazyValue() {\n var array = this.__wrapped__.value(),\n dir = this.__dir__,\n isArr = isArray(array),\n isRight = dir < 0,\n arrLength = isArr ? array.length : 0,\n view = getView(0, arrLength, this.__views__),\n start = view.start,\n end = view.end,\n length = end - start,\n index = isRight ? end : (start - 1),\n iteratees = this.__iteratees__,\n iterLength = iteratees.length,\n resIndex = 0,\n takeCount = nativeMin(length, this.__takeCount__);\n\n if (!isArr || (!isRight && arrLength == length && takeCount == length)) {\n return baseWrapperValue(array, this.__actions__);\n }\n var result = [];\n\n outer:\n while (length-- && resIndex < takeCount) {\n index += dir;\n\n var iterIndex = -1,\n value = array[index];\n\n while (++iterIndex < iterLength) {\n var data = iteratees[iterIndex],\n iteratee = data.iteratee,\n type = data.type,\n computed = iteratee(value);\n\n if (type == LAZY_MAP_FLAG) {\n value = computed;\n } else if (!computed) {\n if (type == LAZY_FILTER_FLAG) {\n continue outer;\n } else {\n break outer;\n }\n }\n }\n result[resIndex++] = value;\n }\n return result;\n }\n\n // Ensure `LazyWrapper` is an instance of `baseLodash`.\n LazyWrapper.prototype = baseCreate(baseLodash.prototype);\n LazyWrapper.prototype.constructor = LazyWrapper;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Hash(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\n function hashClear() {\n this.__data__ = nativeCreate ? nativeCreate(null) : {};\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function hashDelete(key) {\n var result = this.has(key) && delete this.__data__[key];\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function hashGet(key) {\n var data = this.__data__;\n if (nativeCreate) {\n var result = data[key];\n return result === HASH_UNDEFINED ? undefined : result;\n }\n return hasOwnProperty.call(data, key) ? data[key] : undefined;\n }\n\n /**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n }\n\n /**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\n function hashSet(key, value) {\n var data = this.__data__;\n this.size += this.has(key) ? 0 : 1;\n data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n return this;\n }\n\n // Add methods to `Hash`.\n Hash.prototype.clear = hashClear;\n Hash.prototype['delete'] = hashDelete;\n Hash.prototype.get = hashGet;\n Hash.prototype.has = hashHas;\n Hash.prototype.set = hashSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function ListCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\n function listCacheClear() {\n this.__data__ = [];\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function listCacheDelete(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n return false;\n }\n var lastIndex = data.length - 1;\n if (index == lastIndex) {\n data.pop();\n } else {\n splice.call(data, index, 1);\n }\n --this.size;\n return true;\n }\n\n /**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function listCacheGet(key) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n return index < 0 ? undefined : data[index][1];\n }\n\n /**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function listCacheHas(key) {\n return assocIndexOf(this.__data__, key) > -1;\n }\n\n /**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\n function listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n }\n\n // Add methods to `ListCache`.\n ListCache.prototype.clear = listCacheClear;\n ListCache.prototype['delete'] = listCacheDelete;\n ListCache.prototype.get = listCacheGet;\n ListCache.prototype.has = listCacheHas;\n ListCache.prototype.set = listCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n }\n\n /**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\n function mapCacheClear() {\n this.size = 0;\n this.__data__ = {\n 'hash': new Hash,\n 'map': new (Map || ListCache),\n 'string': new Hash\n };\n }\n\n /**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function mapCacheDelete(key) {\n var result = getMapData(this, key)['delete'](key);\n this.size -= result ? 1 : 0;\n return result;\n }\n\n /**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function mapCacheGet(key) {\n return getMapData(this, key).get(key);\n }\n\n /**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function mapCacheHas(key) {\n return getMapData(this, key).has(key);\n }\n\n /**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\n function mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n }\n\n // Add methods to `MapCache`.\n MapCache.prototype.clear = mapCacheClear;\n MapCache.prototype['delete'] = mapCacheDelete;\n MapCache.prototype.get = mapCacheGet;\n MapCache.prototype.has = mapCacheHas;\n MapCache.prototype.set = mapCacheSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\n function SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n }\n\n /**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\n function setCacheAdd(value) {\n this.__data__.set(value, HASH_UNDEFINED);\n return this;\n }\n\n /**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\n function setCacheHas(value) {\n return this.__data__.has(value);\n }\n\n // Add methods to `SetCache`.\n SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\n SetCache.prototype.has = setCacheHas;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\n function Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n }\n\n /**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\n function stackClear() {\n this.__data__ = new ListCache;\n this.size = 0;\n }\n\n /**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\n function stackDelete(key) {\n var data = this.__data__,\n result = data['delete'](key);\n\n this.size = data.size;\n return result;\n }\n\n /**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\n function stackGet(key) {\n return this.__data__.get(key);\n }\n\n /**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\n function stackHas(key) {\n return this.__data__.has(key);\n }\n\n /**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\n function stackSet(key, value) {\n var data = this.__data__;\n if (data instanceof ListCache) {\n var pairs = data.__data__;\n if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n pairs.push([key, value]);\n this.size = ++data.size;\n return this;\n }\n data = this.__data__ = new MapCache(pairs);\n }\n data.set(key, value);\n this.size = data.size;\n return this;\n }\n\n // Add methods to `Stack`.\n Stack.prototype.clear = stackClear;\n Stack.prototype['delete'] = stackDelete;\n Stack.prototype.get = stackGet;\n Stack.prototype.has = stackHas;\n Stack.prototype.set = stackSet;\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\n function arrayLikeKeys(value, inherited) {\n var isArr = isArray(value),\n isArg = !isArr && isArguments(value),\n isBuff = !isArr && !isArg && isBuffer(value),\n isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n skipIndexes = isArr || isArg || isBuff || isType,\n result = skipIndexes ? baseTimes(value.length, String) : [],\n length = result.length;\n\n for (var key in value) {\n if ((inherited || hasOwnProperty.call(value, key)) &&\n !(skipIndexes && (\n // Safari 9 has enumerable `arguments.length` in strict mode.\n key == 'length' ||\n // Node.js 0.10 has enumerable non-index properties on buffers.\n (isBuff && (key == 'offset' || key == 'parent')) ||\n // PhantomJS 2 has enumerable non-index properties on typed arrays.\n (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n // Skip index properties.\n isIndex(key, length)\n ))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `_.sample` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @returns {*} Returns the random element.\n */\n function arraySample(array) {\n var length = array.length;\n return length ? array[baseRandom(0, length - 1)] : undefined;\n }\n\n /**\n * A specialized version of `_.sampleSize` for arrays.\n *\n * @private\n * @param {Array} array The array to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function arraySampleSize(array, n) {\n return shuffleSelf(copyArray(array), baseClamp(n, 0, array.length));\n }\n\n /**\n * A specialized version of `_.shuffle` for arrays.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function arrayShuffle(array) {\n return shuffleSelf(copyArray(array));\n }\n\n /**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Assigns `value` to `key` of `object` if the existing value is not equivalent\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function assignValue(object, key, value) {\n var objValue = object[key];\n if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n }\n\n /**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\n function assocIndexOf(array, key) {\n var length = array.length;\n while (length--) {\n if (eq(array[length][0], key)) {\n return length;\n }\n }\n return -1;\n }\n\n /**\n * Aggregates elements of `collection` on `accumulator` with keys transformed\n * by `iteratee` and values set by `setter`.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform keys.\n * @param {Object} accumulator The initial aggregated object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseAggregator(collection, setter, iteratee, accumulator) {\n baseEach(collection, function(value, key, collection) {\n setter(accumulator, value, iteratee(value), collection);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.assign` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssign(object, source) {\n return object && copyObject(source, keys(source), object);\n }\n\n /**\n * The base implementation of `_.assignIn` without support for multiple sources\n * or `customizer` functions.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @returns {Object} Returns `object`.\n */\n function baseAssignIn(object, source) {\n return object && copyObject(source, keysIn(source), object);\n }\n\n /**\n * The base implementation of `assignValue` and `assignMergeValue` without\n * value checks.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\n function baseAssignValue(object, key, value) {\n if (key == '__proto__' && defineProperty) {\n defineProperty(object, key, {\n 'configurable': true,\n 'enumerable': true,\n 'value': value,\n 'writable': true\n });\n } else {\n object[key] = value;\n }\n }\n\n /**\n * The base implementation of `_.at` without support for individual paths.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {string[]} paths The property paths to pick.\n * @returns {Array} Returns the picked elements.\n */\n function baseAt(object, paths) {\n var index = -1,\n length = paths.length,\n result = Array(length),\n skip = object == null;\n\n while (++index < length) {\n result[index] = skip ? undefined : get(object, paths[index]);\n }\n return result;\n }\n\n /**\n * The base implementation of `_.clamp` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n */\n function baseClamp(number, lower, upper) {\n if (number === number) {\n if (upper !== undefined) {\n number = number <= upper ? number : upper;\n }\n if (lower !== undefined) {\n number = number >= lower ? number : lower;\n }\n }\n return number;\n }\n\n /**\n * The base implementation of `_.clone` and `_.cloneDeep` which tracks\n * traversed objects.\n *\n * @private\n * @param {*} value The value to clone.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Deep clone\n * 2 - Flatten inherited properties\n * 4 - Clone symbols\n * @param {Function} [customizer] The function to customize cloning.\n * @param {string} [key] The key of `value`.\n * @param {Object} [object] The parent object of `value`.\n * @param {Object} [stack] Tracks traversed objects and their clone counterparts.\n * @returns {*} Returns the cloned value.\n */\n function baseClone(value, bitmask, customizer, key, object, stack) {\n var result,\n isDeep = bitmask & CLONE_DEEP_FLAG,\n isFlat = bitmask & CLONE_FLAT_FLAG,\n isFull = bitmask & CLONE_SYMBOLS_FLAG;\n\n if (customizer) {\n result = object ? customizer(value, key, object, stack) : customizer(value);\n }\n if (result !== undefined) {\n return result;\n }\n if (!isObject(value)) {\n return value;\n }\n var isArr = isArray(value);\n if (isArr) {\n result = initCloneArray(value);\n if (!isDeep) {\n return copyArray(value, result);\n }\n } else {\n var tag = getTag(value),\n isFunc = tag == funcTag || tag == genTag;\n\n if (isBuffer(value)) {\n return cloneBuffer(value, isDeep);\n }\n if (tag == objectTag || tag == argsTag || (isFunc && !object)) {\n result = (isFlat || isFunc) ? {} : initCloneObject(value);\n if (!isDeep) {\n return isFlat\n ? copySymbolsIn(value, baseAssignIn(result, value))\n : copySymbols(value, baseAssign(result, value));\n }\n } else {\n if (!cloneableTags[tag]) {\n return object ? value : {};\n }\n result = initCloneByTag(value, tag, isDeep);\n }\n }\n // Check for circular references and return its corresponding clone.\n stack || (stack = new Stack);\n var stacked = stack.get(value);\n if (stacked) {\n return stacked;\n }\n stack.set(value, result);\n\n if (isSet(value)) {\n value.forEach(function(subValue) {\n result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));\n });\n } else if (isMap(value)) {\n value.forEach(function(subValue, key) {\n result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n }\n\n var keysFunc = isFull\n ? (isFlat ? getAllKeysIn : getAllKeys)\n : (isFlat ? keysIn : keys);\n\n var props = isArr ? undefined : keysFunc(value);\n arrayEach(props || value, function(subValue, key) {\n if (props) {\n key = subValue;\n subValue = value[key];\n }\n // Recursively populate clone (susceptible to call stack limits).\n assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));\n });\n return result;\n }\n\n /**\n * The base implementation of `_.conforms` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property predicates to conform to.\n * @returns {Function} Returns the new spec function.\n */\n function baseConforms(source) {\n var props = keys(source);\n return function(object) {\n return baseConformsTo(object, source, props);\n };\n }\n\n /**\n * The base implementation of `_.conformsTo` which accepts `props` to check.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n */\n function baseConformsTo(object, source, props) {\n var length = props.length;\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (length--) {\n var key = props[length],\n predicate = source[key],\n value = object[key];\n\n if ((value === undefined && !(key in object)) || !predicate(value)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.delay` and `_.defer` which accepts `args`\n * to provide to `func`.\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {Array} args The arguments to provide to `func`.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n function baseDelay(func, wait, args) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return setTimeout(function() { func.apply(undefined, args); }, wait);\n }\n\n /**\n * The base implementation of methods like `_.difference` without support\n * for excluding multiple arrays or iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Array} values The values to exclude.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n */\n function baseDifference(array, values, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n isCommon = true,\n length = array.length,\n result = [],\n valuesLength = values.length;\n\n if (!length) {\n return result;\n }\n if (iteratee) {\n values = arrayMap(values, baseUnary(iteratee));\n }\n if (comparator) {\n includes = arrayIncludesWith;\n isCommon = false;\n }\n else if (values.length >= LARGE_ARRAY_SIZE) {\n includes = cacheHas;\n isCommon = false;\n values = new SetCache(values);\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee == null ? value : iteratee(value);\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var valuesIndex = valuesLength;\n while (valuesIndex--) {\n if (values[valuesIndex] === computed) {\n continue outer;\n }\n }\n result.push(value);\n }\n else if (!includes(values, computed, comparator)) {\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEach = createBaseEach(baseForOwn);\n\n /**\n * The base implementation of `_.forEachRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\n var baseEachRight = createBaseEach(baseForOwnRight, true);\n\n /**\n * The base implementation of `_.every` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`\n */\n function baseEvery(collection, predicate) {\n var result = true;\n baseEach(collection, function(value, index, collection) {\n result = !!predicate(value, index, collection);\n return result;\n });\n return result;\n }\n\n /**\n * The base implementation of methods like `_.max` and `_.min` which accepts a\n * `comparator` to determine the extremum value.\n *\n * @private\n * @param {Array} array The array to iterate over.\n * @param {Function} iteratee The iteratee invoked per iteration.\n * @param {Function} comparator The comparator used to compare values.\n * @returns {*} Returns the extremum value.\n */\n function baseExtremum(array, iteratee, comparator) {\n var index = -1,\n length = array.length;\n\n while (++index < length) {\n var value = array[index],\n current = iteratee(value);\n\n if (current != null && (computed === undefined\n ? (current === current && !isSymbol(current))\n : comparator(current, computed)\n )) {\n var computed = current,\n result = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.fill` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n */\n function baseFill(array, value, start, end) {\n var length = array.length;\n\n start = toInteger(start);\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = (end === undefined || end > length) ? length : toInteger(end);\n if (end < 0) {\n end += length;\n }\n end = start > end ? 0 : toLength(end);\n while (start < end) {\n array[start++] = value;\n }\n return array;\n }\n\n /**\n * The base implementation of `_.filter` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\n function baseFilter(collection, predicate) {\n var result = [];\n baseEach(collection, function(value, index, collection) {\n if (predicate(value, index, collection)) {\n result.push(value);\n }\n });\n return result;\n }\n\n /**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\n function baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseFor = createBaseFor();\n\n /**\n * This function is like `baseFor` except that it iterates over properties\n * in the opposite order.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\n var baseForRight = createBaseFor(true);\n\n /**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwn(object, iteratee) {\n return object && baseFor(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.forOwnRight` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\n function baseForOwnRight(object, iteratee) {\n return object && baseForRight(object, iteratee, keys);\n }\n\n /**\n * The base implementation of `_.functions` which creates an array of\n * `object` function property names filtered from `props`.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Array} props The property names to filter.\n * @returns {Array} Returns the function names.\n */\n function baseFunctions(object, props) {\n return arrayFilter(props, function(key) {\n return isFunction(object[key]);\n });\n }\n\n /**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\n function baseGet(object, path) {\n path = castPath(path, object);\n\n var index = 0,\n length = path.length;\n\n while (object != null && index < length) {\n object = object[toKey(path[index++])];\n }\n return (index && index == length) ? object : undefined;\n }\n\n /**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function baseGetAllKeys(object, keysFunc, symbolsFunc) {\n var result = keysFunc(object);\n return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n }\n\n /**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n function baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n }\n\n /**\n * The base implementation of `_.gt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n */\n function baseGt(value, other) {\n return value > other;\n }\n\n /**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n }\n\n /**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\n function baseHasIn(object, key) {\n return object != null && key in Object(object);\n }\n\n /**\n * The base implementation of `_.inRange` which doesn't coerce arguments.\n *\n * @private\n * @param {number} number The number to check.\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n */\n function baseInRange(number, start, end) {\n return number >= nativeMin(start, end) && number < nativeMax(start, end);\n }\n\n /**\n * The base implementation of methods like `_.intersection`, without support\n * for iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of shared values.\n */\n function baseIntersection(arrays, iteratee, comparator) {\n var includes = comparator ? arrayIncludesWith : arrayIncludes,\n length = arrays[0].length,\n othLength = arrays.length,\n othIndex = othLength,\n caches = Array(othLength),\n maxLength = Infinity,\n result = [];\n\n while (othIndex--) {\n var array = arrays[othIndex];\n if (othIndex && iteratee) {\n array = arrayMap(array, baseUnary(iteratee));\n }\n maxLength = nativeMin(array.length, maxLength);\n caches[othIndex] = !comparator && (iteratee || (length >= 120 && array.length >= 120))\n ? new SetCache(othIndex && array)\n : undefined;\n }\n array = arrays[0];\n\n var index = -1,\n seen = caches[0];\n\n outer:\n while (++index < length && result.length < maxLength) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (!(seen\n ? cacheHas(seen, computed)\n : includes(result, computed, comparator)\n )) {\n othIndex = othLength;\n while (--othIndex) {\n var cache = caches[othIndex];\n if (!(cache\n ? cacheHas(cache, computed)\n : includes(arrays[othIndex], computed, comparator))\n ) {\n continue outer;\n }\n }\n if (seen) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.invert` and `_.invertBy` which inverts\n * `object` with values transformed by `iteratee` and set by `setter`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} setter The function to set `accumulator` values.\n * @param {Function} iteratee The iteratee to transform values.\n * @param {Object} accumulator The initial inverted object.\n * @returns {Function} Returns `accumulator`.\n */\n function baseInverter(object, setter, iteratee, accumulator) {\n baseForOwn(object, function(value, key, object) {\n setter(accumulator, iteratee(value), key, object);\n });\n return accumulator;\n }\n\n /**\n * The base implementation of `_.invoke` without support for individual\n * method arguments.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {Array} args The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n */\n function baseInvoke(object, path, args) {\n path = castPath(path, object);\n object = parent(object, path);\n var func = object == null ? object : object[toKey(last(path))];\n return func == null ? undefined : apply(func, object, args);\n }\n\n /**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\n function baseIsArguments(value) {\n return isObjectLike(value) && baseGetTag(value) == argsTag;\n }\n\n /**\n * The base implementation of `_.isArrayBuffer` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n */\n function baseIsArrayBuffer(value) {\n return isObjectLike(value) && baseGetTag(value) == arrayBufferTag;\n }\n\n /**\n * The base implementation of `_.isDate` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n */\n function baseIsDate(value) {\n return isObjectLike(value) && baseGetTag(value) == dateTag;\n }\n\n /**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\n function baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n }\n\n /**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n var objIsArr = isArray(object),\n othIsArr = isArray(other),\n objTag = objIsArr ? arrayTag : getTag(object),\n othTag = othIsArr ? arrayTag : getTag(other);\n\n objTag = objTag == argsTag ? objectTag : objTag;\n othTag = othTag == argsTag ? objectTag : othTag;\n\n var objIsObj = objTag == objectTag,\n othIsObj = othTag == objectTag,\n isSameTag = objTag == othTag;\n\n if (isSameTag && isBuffer(object)) {\n if (!isBuffer(other)) {\n return false;\n }\n objIsArr = true;\n objIsObj = false;\n }\n if (isSameTag && !objIsObj) {\n stack || (stack = new Stack);\n return (objIsArr || isTypedArray(object))\n ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n }\n if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n if (objIsWrapped || othIsWrapped) {\n var objUnwrapped = objIsWrapped ? object.value() : object,\n othUnwrapped = othIsWrapped ? other.value() : other;\n\n stack || (stack = new Stack);\n return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n }\n }\n if (!isSameTag) {\n return false;\n }\n stack || (stack = new Stack);\n return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n }\n\n /**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\n function baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n }\n\n /**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\n function baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n }\n\n /**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n */\n function baseIsNative(value) {\n if (!isObject(value) || isMasked(value)) {\n return false;\n }\n var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n return pattern.test(toSource(value));\n }\n\n /**\n * The base implementation of `_.isRegExp` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n */\n function baseIsRegExp(value) {\n return isObjectLike(value) && baseGetTag(value) == regexpTag;\n }\n\n /**\n * The base implementation of `_.isSet` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n */\n function baseIsSet(value) {\n return isObjectLike(value) && getTag(value) == setTag;\n }\n\n /**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\n function baseIsTypedArray(value) {\n return isObjectLike(value) &&\n isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n }\n\n /**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\n function baseIteratee(value) {\n // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n if (typeof value == 'function') {\n return value;\n }\n if (value == null) {\n return identity;\n }\n if (typeof value == 'object') {\n return isArray(value)\n ? baseMatchesProperty(value[0], value[1])\n : baseMatches(value);\n }\n return property(value);\n }\n\n /**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeys(object) {\n if (!isPrototype(object)) {\n return nativeKeys(object);\n }\n var result = [];\n for (var key in Object(object)) {\n if (hasOwnProperty.call(object, key) && key != 'constructor') {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function baseKeysIn(object) {\n if (!isObject(object)) {\n return nativeKeysIn(object);\n }\n var isProto = isPrototype(object),\n result = [];\n\n for (var key in object) {\n if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.lt` which doesn't coerce arguments.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n */\n function baseLt(value, other) {\n return value < other;\n }\n\n /**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\n function baseMap(collection, iteratee) {\n var index = -1,\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value, key, collection) {\n result[++index] = iteratee(value, key, collection);\n });\n return result;\n }\n\n /**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatches(source) {\n var matchData = getMatchData(source);\n if (matchData.length == 1 && matchData[0][2]) {\n return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n }\n return function(object) {\n return object === source || baseIsMatch(object, source, matchData);\n };\n }\n\n /**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n }\n\n /**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n }\n\n /**\n * A specialized version of `baseMerge` for arrays and objects which performs\n * deep merges and tracks traversed objects enabling objects with circular\n * references to be merged.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {string} key The key of the value to merge.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} mergeFunc The function to merge values.\n * @param {Function} [customizer] The function to customize assigned values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\n function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {\n var objValue = safeGet(object, key),\n srcValue = safeGet(source, key),\n stacked = stack.get(srcValue);\n\n if (stacked) {\n assignMergeValue(object, key, stacked);\n return;\n }\n var newValue = customizer\n ? customizer(objValue, srcValue, (key + ''), object, source, stack)\n : undefined;\n\n var isCommon = newValue === undefined;\n\n if (isCommon) {\n var isArr = isArray(srcValue),\n isBuff = !isArr && isBuffer(srcValue),\n isTyped = !isArr && !isBuff && isTypedArray(srcValue);\n\n newValue = srcValue;\n if (isArr || isBuff || isTyped) {\n if (isArray(objValue)) {\n newValue = objValue;\n }\n else if (isArrayLikeObject(objValue)) {\n newValue = copyArray(objValue);\n }\n else if (isBuff) {\n isCommon = false;\n newValue = cloneBuffer(srcValue, true);\n }\n else if (isTyped) {\n isCommon = false;\n newValue = cloneTypedArray(srcValue, true);\n }\n else {\n newValue = [];\n }\n }\n else if (isPlainObject(srcValue) || isArguments(srcValue)) {\n newValue = objValue;\n if (isArguments(objValue)) {\n newValue = toPlainObject(objValue);\n }\n else if (!isObject(objValue) || isFunction(objValue)) {\n newValue = initCloneObject(srcValue);\n }\n }\n else {\n isCommon = false;\n }\n }\n if (isCommon) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, newValue);\n mergeFunc(newValue, srcValue, srcIndex, customizer, stack);\n stack['delete'](srcValue);\n }\n assignMergeValue(object, key, newValue);\n }\n\n /**\n * The base implementation of `_.nth` which doesn't coerce arguments.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {number} n The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n */\n function baseNth(array, n) {\n var length = array.length;\n if (!length) {\n return;\n }\n n += n < 0 ? length : 0;\n return isIndex(n, length) ? array[n] : undefined;\n }\n\n /**\n * The base implementation of `_.orderBy` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.\n * @param {string[]} orders The sort orders of `iteratees`.\n * @returns {Array} Returns the new sorted array.\n */\n function baseOrderBy(collection, iteratees, orders) {\n if (iteratees.length) {\n iteratees = arrayMap(iteratees, function(iteratee) {\n if (isArray(iteratee)) {\n return function(value) {\n return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);\n }\n }\n return iteratee;\n });\n } else {\n iteratees = [identity];\n }\n\n var index = -1;\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n\n var result = baseMap(collection, function(value, key, collection) {\n var criteria = arrayMap(iteratees, function(iteratee) {\n return iteratee(value);\n });\n return { 'criteria': criteria, 'index': ++index, 'value': value };\n });\n\n return baseSortBy(result, function(object, other) {\n return compareMultiple(object, other, orders);\n });\n }\n\n /**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\n function basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n }\n\n /**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\n function basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n }\n\n /**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\n function basePropertyDeep(path) {\n return function(object) {\n return baseGet(object, path);\n };\n }\n\n /**\n * The base implementation of `_.pullAllBy` without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n */\n function basePullAll(array, values, iteratee, comparator) {\n var indexOf = comparator ? baseIndexOfWith : baseIndexOf,\n index = -1,\n length = values.length,\n seen = array;\n\n if (array === values) {\n values = copyArray(values);\n }\n if (iteratee) {\n seen = arrayMap(array, baseUnary(iteratee));\n }\n while (++index < length) {\n var fromIndex = 0,\n value = values[index],\n computed = iteratee ? iteratee(value) : value;\n\n while ((fromIndex = indexOf(seen, computed, fromIndex, comparator)) > -1) {\n if (seen !== array) {\n splice.call(seen, fromIndex, 1);\n }\n splice.call(array, fromIndex, 1);\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.pullAt` without support for individual\n * indexes or capturing the removed elements.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {number[]} indexes The indexes of elements to remove.\n * @returns {Array} Returns `array`.\n */\n function basePullAt(array, indexes) {\n var length = array ? indexes.length : 0,\n lastIndex = length - 1;\n\n while (length--) {\n var index = indexes[length];\n if (length == lastIndex || index !== previous) {\n var previous = index;\n if (isIndex(index)) {\n splice.call(array, index, 1);\n } else {\n baseUnset(array, index);\n }\n }\n }\n return array;\n }\n\n /**\n * The base implementation of `_.random` without support for returning\n * floating-point numbers.\n *\n * @private\n * @param {number} lower The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the random number.\n */\n function baseRandom(lower, upper) {\n return lower + nativeFloor(nativeRandom() * (upper - lower + 1));\n }\n\n /**\n * The base implementation of `_.range` and `_.rangeRight` which doesn't\n * coerce arguments.\n *\n * @private\n * @param {number} start The start of the range.\n * @param {number} end The end of the range.\n * @param {number} step The value to increment or decrement by.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the range of numbers.\n */\n function baseRange(start, end, step, fromRight) {\n var index = -1,\n length = nativeMax(nativeCeil((end - start) / (step || 1)), 0),\n result = Array(length);\n\n while (length--) {\n result[fromRight ? length : ++index] = start;\n start += step;\n }\n return result;\n }\n\n /**\n * The base implementation of `_.repeat` which doesn't coerce arguments.\n *\n * @private\n * @param {string} string The string to repeat.\n * @param {number} n The number of times to repeat the string.\n * @returns {string} Returns the repeated string.\n */\n function baseRepeat(string, n) {\n var result = '';\n if (!string || n < 1 || n > MAX_SAFE_INTEGER) {\n return result;\n }\n // Leverage the exponentiation by squaring algorithm for a faster repeat.\n // See https://en.wikipedia.org/wiki/Exponentiation_by_squaring for more details.\n do {\n if (n % 2) {\n result += string;\n }\n n = nativeFloor(n / 2);\n if (n) {\n string += string;\n }\n } while (n);\n\n return result;\n }\n\n /**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\n function baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n }\n\n /**\n * The base implementation of `_.sample`.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n */\n function baseSample(collection) {\n return arraySample(values(collection));\n }\n\n /**\n * The base implementation of `_.sampleSize` without param guards.\n *\n * @private\n * @param {Array|Object} collection The collection to sample.\n * @param {number} n The number of elements to sample.\n * @returns {Array} Returns the random elements.\n */\n function baseSampleSize(collection, n) {\n var array = values(collection);\n return shuffleSelf(array, baseClamp(n, 0, array.length));\n }\n\n /**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n }\n\n /**\n * The base implementation of `setData` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var baseSetData = !metaMap ? identity : function(func, data) {\n metaMap.set(func, data);\n return func;\n };\n\n /**\n * The base implementation of `setToString` without support for hot loop shorting.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var baseSetToString = !defineProperty ? identity : function(func, string) {\n return defineProperty(func, 'toString', {\n 'configurable': true,\n 'enumerable': false,\n 'value': constant(string),\n 'writable': true\n });\n };\n\n /**\n * The base implementation of `_.shuffle`.\n *\n * @private\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n */\n function baseShuffle(collection) {\n return shuffleSelf(values(collection));\n }\n\n /**\n * The base implementation of `_.slice` without an iteratee call guard.\n *\n * @private\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseSlice(array, start, end) {\n var index = -1,\n length = array.length;\n\n if (start < 0) {\n start = -start > length ? 0 : (length + start);\n }\n end = end > length ? length : end;\n if (end < 0) {\n end += length;\n }\n length = start > end ? 0 : ((end - start) >>> 0);\n start >>>= 0;\n\n var result = Array(length);\n while (++index < length) {\n result[index] = array[index + start];\n }\n return result;\n }\n\n /**\n * The base implementation of `_.some` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n */\n function baseSome(collection, predicate) {\n var result;\n\n baseEach(collection, function(value, index, collection) {\n result = predicate(value, index, collection);\n return !result;\n });\n return !!result;\n }\n\n /**\n * The base implementation of `_.sortedIndex` and `_.sortedLastIndex` which\n * performs a binary search of `array` to determine the index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndex(array, value, retHighest) {\n var low = 0,\n high = array == null ? low : array.length;\n\n if (typeof value == 'number' && value === value && high <= HALF_MAX_ARRAY_LENGTH) {\n while (low < high) {\n var mid = (low + high) >>> 1,\n computed = array[mid];\n\n if (computed !== null && !isSymbol(computed) &&\n (retHighest ? (computed <= value) : (computed < value))) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return high;\n }\n return baseSortedIndexBy(array, value, identity, retHighest);\n }\n\n /**\n * The base implementation of `_.sortedIndexBy` and `_.sortedLastIndexBy`\n * which invokes `iteratee` for `value` and each element of `array` to compute\n * their sort ranking. The iteratee is invoked with one argument; (value).\n *\n * @private\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} iteratee The iteratee invoked per element.\n * @param {boolean} [retHighest] Specify returning the highest qualified index.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n */\n function baseSortedIndexBy(array, value, iteratee, retHighest) {\n var low = 0,\n high = array == null ? 0 : array.length;\n if (high === 0) {\n return 0;\n }\n\n value = iteratee(value);\n var valIsNaN = value !== value,\n valIsNull = value === null,\n valIsSymbol = isSymbol(value),\n valIsUndefined = value === undefined;\n\n while (low < high) {\n var mid = nativeFloor((low + high) / 2),\n computed = iteratee(array[mid]),\n othIsDefined = computed !== undefined,\n othIsNull = computed === null,\n othIsReflexive = computed === computed,\n othIsSymbol = isSymbol(computed);\n\n if (valIsNaN) {\n var setLow = retHighest || othIsReflexive;\n } else if (valIsUndefined) {\n setLow = othIsReflexive && (retHighest || othIsDefined);\n } else if (valIsNull) {\n setLow = othIsReflexive && othIsDefined && (retHighest || !othIsNull);\n } else if (valIsSymbol) {\n setLow = othIsReflexive && othIsDefined && !othIsNull && (retHighest || !othIsSymbol);\n } else if (othIsNull || othIsSymbol) {\n setLow = false;\n } else {\n setLow = retHighest ? (computed <= value) : (computed < value);\n }\n if (setLow) {\n low = mid + 1;\n } else {\n high = mid;\n }\n }\n return nativeMin(high, MAX_ARRAY_INDEX);\n }\n\n /**\n * The base implementation of `_.sortedUniq` and `_.sortedUniqBy` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseSortedUniq(array, iteratee) {\n var index = -1,\n length = array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n if (!index || !eq(computed, seen)) {\n var seen = computed;\n result[resIndex++] = value === 0 ? 0 : value;\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.toNumber` which doesn't ensure correct\n * conversions of binary, hexadecimal, or octal string values.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n */\n function baseToNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n return +value;\n }\n\n /**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\n function baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * The base implementation of `_.uniqBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n */\n function baseUniq(array, iteratee, comparator) {\n var index = -1,\n includes = arrayIncludes,\n length = array.length,\n isCommon = true,\n result = [],\n seen = result;\n\n if (comparator) {\n isCommon = false;\n includes = arrayIncludesWith;\n }\n else if (length >= LARGE_ARRAY_SIZE) {\n var set = iteratee ? null : createSet(array);\n if (set) {\n return setToArray(set);\n }\n isCommon = false;\n includes = cacheHas;\n seen = new SetCache;\n }\n else {\n seen = iteratee ? [] : result;\n }\n outer:\n while (++index < length) {\n var value = array[index],\n computed = iteratee ? iteratee(value) : value;\n\n value = (comparator || value !== 0) ? value : 0;\n if (isCommon && computed === computed) {\n var seenIndex = seen.length;\n while (seenIndex--) {\n if (seen[seenIndex] === computed) {\n continue outer;\n }\n }\n if (iteratee) {\n seen.push(computed);\n }\n result.push(value);\n }\n else if (!includes(seen, computed, comparator)) {\n if (seen !== result) {\n seen.push(computed);\n }\n result.push(value);\n }\n }\n return result;\n }\n\n /**\n * The base implementation of `_.unset`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The property path to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n */\n function baseUnset(object, path) {\n path = castPath(path, object);\n object = parent(object, path);\n return object == null || delete object[toKey(last(path))];\n }\n\n /**\n * The base implementation of `_.update`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to update.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\n function baseUpdate(object, path, updater, customizer) {\n return baseSet(object, path, updater(baseGet(object, path)), customizer);\n }\n\n /**\n * The base implementation of methods like `_.dropWhile` and `_.takeWhile`\n * without support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to query.\n * @param {Function} predicate The function invoked per iteration.\n * @param {boolean} [isDrop] Specify dropping elements instead of taking them.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Array} Returns the slice of `array`.\n */\n function baseWhile(array, predicate, isDrop, fromRight) {\n var length = array.length,\n index = fromRight ? length : -1;\n\n while ((fromRight ? index-- : ++index < length) &&\n predicate(array[index], index, array)) {}\n\n return isDrop\n ? baseSlice(array, (fromRight ? 0 : index), (fromRight ? index + 1 : length))\n : baseSlice(array, (fromRight ? index + 1 : 0), (fromRight ? length : index));\n }\n\n /**\n * The base implementation of `wrapperValue` which returns the result of\n * performing a sequence of actions on the unwrapped `value`, where each\n * successive action is supplied the return value of the previous.\n *\n * @private\n * @param {*} value The unwrapped value.\n * @param {Array} actions Actions to perform to resolve the unwrapped value.\n * @returns {*} Returns the resolved value.\n */\n function baseWrapperValue(value, actions) {\n var result = value;\n if (result instanceof LazyWrapper) {\n result = result.value();\n }\n return arrayReduce(actions, function(result, action) {\n return action.func.apply(action.thisArg, arrayPush([result], action.args));\n }, result);\n }\n\n /**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\n function baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n }\n\n /**\n * This base implementation of `_.zipObject` which assigns values using `assignFunc`.\n *\n * @private\n * @param {Array} props The property identifiers.\n * @param {Array} values The property values.\n * @param {Function} assignFunc The function to assign values.\n * @returns {Object} Returns the new object.\n */\n function baseZipObject(props, values, assignFunc) {\n var index = -1,\n length = props.length,\n valsLength = values.length,\n result = {};\n\n while (++index < length) {\n var value = index < valsLength ? values[index] : undefined;\n assignFunc(result, props[index], value);\n }\n return result;\n }\n\n /**\n * Casts `value` to an empty array if it's not an array like object.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Array|Object} Returns the cast array-like object.\n */\n function castArrayLikeObject(value) {\n return isArrayLikeObject(value) ? value : [];\n }\n\n /**\n * Casts `value` to `identity` if it's not a function.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {Function} Returns cast function.\n */\n function castFunction(value) {\n return typeof value == 'function' ? value : identity;\n }\n\n /**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\n function castPath(value, object) {\n if (isArray(value)) {\n return value;\n }\n return isKey(value, object) ? [value] : stringToPath(toString(value));\n }\n\n /**\n * A `baseRest` alias which can be replaced with `identity` by module\n * replacement plugins.\n *\n * @private\n * @type {Function}\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n var castRest = baseRest;\n\n /**\n * Casts `array` to a slice if it's needed.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {number} start The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the cast slice.\n */\n function castSlice(array, start, end) {\n var length = array.length;\n end = end === undefined ? length : end;\n return (!start && end >= length) ? array : baseSlice(array, start, end);\n }\n\n /**\n * A simple wrapper around the global [`clearTimeout`](https://mdn.io/clearTimeout).\n *\n * @private\n * @param {number|Object} id The timer id or timeout object of the timer to clear.\n */\n var clearTimeout = ctxClearTimeout || function(id) {\n return root.clearTimeout(id);\n };\n\n /**\n * Creates a clone of `buffer`.\n *\n * @private\n * @param {Buffer} buffer The buffer to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Buffer} Returns the cloned buffer.\n */\n function cloneBuffer(buffer, isDeep) {\n if (isDeep) {\n return buffer.slice();\n }\n var length = buffer.length,\n result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);\n\n buffer.copy(result);\n return result;\n }\n\n /**\n * Creates a clone of `arrayBuffer`.\n *\n * @private\n * @param {ArrayBuffer} arrayBuffer The array buffer to clone.\n * @returns {ArrayBuffer} Returns the cloned array buffer.\n */\n function cloneArrayBuffer(arrayBuffer) {\n var result = new arrayBuffer.constructor(arrayBuffer.byteLength);\n new Uint8Array(result).set(new Uint8Array(arrayBuffer));\n return result;\n }\n\n /**\n * Creates a clone of `dataView`.\n *\n * @private\n * @param {Object} dataView The data view to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned data view.\n */\n function cloneDataView(dataView, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;\n return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);\n }\n\n /**\n * Creates a clone of `regexp`.\n *\n * @private\n * @param {Object} regexp The regexp to clone.\n * @returns {Object} Returns the cloned regexp.\n */\n function cloneRegExp(regexp) {\n var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));\n result.lastIndex = regexp.lastIndex;\n return result;\n }\n\n /**\n * Creates a clone of the `symbol` object.\n *\n * @private\n * @param {Object} symbol The symbol object to clone.\n * @returns {Object} Returns the cloned symbol object.\n */\n function cloneSymbol(symbol) {\n return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};\n }\n\n /**\n * Creates a clone of `typedArray`.\n *\n * @private\n * @param {Object} typedArray The typed array to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the cloned typed array.\n */\n function cloneTypedArray(typedArray, isDeep) {\n var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;\n return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);\n }\n\n /**\n * Compares values to sort them in ascending order.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {number} Returns the sort order indicator for `value`.\n */\n function compareAscending(value, other) {\n if (value !== other) {\n var valIsDefined = value !== undefined,\n valIsNull = value === null,\n valIsReflexive = value === value,\n valIsSymbol = isSymbol(value);\n\n var othIsDefined = other !== undefined,\n othIsNull = other === null,\n othIsReflexive = other === other,\n othIsSymbol = isSymbol(other);\n\n if ((!othIsNull && !othIsSymbol && !valIsSymbol && value > other) ||\n (valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol) ||\n (valIsNull && othIsDefined && othIsReflexive) ||\n (!valIsDefined && othIsReflexive) ||\n !valIsReflexive) {\n return 1;\n }\n if ((!valIsNull && !valIsSymbol && !othIsSymbol && value < other) ||\n (othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol) ||\n (othIsNull && valIsDefined && valIsReflexive) ||\n (!othIsDefined && valIsReflexive) ||\n !othIsReflexive) {\n return -1;\n }\n }\n return 0;\n }\n\n /**\n * Used by `_.orderBy` to compare multiple properties of a value to another\n * and stable sort them.\n *\n * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,\n * specify an order of \"desc\" for descending or \"asc\" for ascending sort order\n * of corresponding values.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {boolean[]|string[]} orders The order to sort by for each property.\n * @returns {number} Returns the sort order indicator for `object`.\n */\n function compareMultiple(object, other, orders) {\n var index = -1,\n objCriteria = object.criteria,\n othCriteria = other.criteria,\n length = objCriteria.length,\n ordersLength = orders.length;\n\n while (++index < length) {\n var result = compareAscending(objCriteria[index], othCriteria[index]);\n if (result) {\n if (index >= ordersLength) {\n return result;\n }\n var order = orders[index];\n return result * (order == 'desc' ? -1 : 1);\n }\n }\n // Fixes an `Array#sort` bug in the JS engine embedded in Adobe applications\n // that causes it, under certain circumstances, to provide the same value for\n // `object` and `other`. See https://github.com/jashkenas/underscore/pull/1247\n // for more details.\n //\n // This also ensures a stable sort in V8 and other engines.\n // See https://bugs.chromium.org/p/v8/issues/detail?id=90 for more details.\n return object.index - other.index;\n }\n\n /**\n * Creates an array that is the composition of partially applied arguments,\n * placeholders, and provided arguments into a single array of arguments.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to prepend to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgs(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersLength = holders.length,\n leftIndex = -1,\n leftLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(leftLength + rangeLength),\n isUncurried = !isCurried;\n\n while (++leftIndex < leftLength) {\n result[leftIndex] = partials[leftIndex];\n }\n while (++argsIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[holders[argsIndex]] = args[argsIndex];\n }\n }\n while (rangeLength--) {\n result[leftIndex++] = args[argsIndex++];\n }\n return result;\n }\n\n /**\n * This function is like `composeArgs` except that the arguments composition\n * is tailored for `_.partialRight`.\n *\n * @private\n * @param {Array} args The provided arguments.\n * @param {Array} partials The arguments to append to those provided.\n * @param {Array} holders The `partials` placeholder indexes.\n * @params {boolean} [isCurried] Specify composing for a curried function.\n * @returns {Array} Returns the new array of composed arguments.\n */\n function composeArgsRight(args, partials, holders, isCurried) {\n var argsIndex = -1,\n argsLength = args.length,\n holdersIndex = -1,\n holdersLength = holders.length,\n rightIndex = -1,\n rightLength = partials.length,\n rangeLength = nativeMax(argsLength - holdersLength, 0),\n result = Array(rangeLength + rightLength),\n isUncurried = !isCurried;\n\n while (++argsIndex < rangeLength) {\n result[argsIndex] = args[argsIndex];\n }\n var offset = argsIndex;\n while (++rightIndex < rightLength) {\n result[offset + rightIndex] = partials[rightIndex];\n }\n while (++holdersIndex < holdersLength) {\n if (isUncurried || argsIndex < argsLength) {\n result[offset + holders[holdersIndex]] = args[argsIndex++];\n }\n }\n return result;\n }\n\n /**\n * Copies the values of `source` to `array`.\n *\n * @private\n * @param {Array} source The array to copy values from.\n * @param {Array} [array=[]] The array to copy values to.\n * @returns {Array} Returns `array`.\n */\n function copyArray(source, array) {\n var index = -1,\n length = source.length;\n\n array || (array = Array(length));\n while (++index < length) {\n array[index] = source[index];\n }\n return array;\n }\n\n /**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\n function copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n }\n\n /**\n * Copies own symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbols(source, object) {\n return copyObject(source, getSymbols(source), object);\n }\n\n /**\n * Copies own and inherited symbols of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy symbols from.\n * @param {Object} [object={}] The object to copy symbols to.\n * @returns {Object} Returns `object`.\n */\n function copySymbolsIn(source, object) {\n return copyObject(source, getSymbolsIn(source), object);\n }\n\n /**\n * Creates a function like `_.groupBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} [initializer] The accumulator object initializer.\n * @returns {Function} Returns the new aggregator function.\n */\n function createAggregator(setter, initializer) {\n return function(collection, iteratee) {\n var func = isArray(collection) ? arrayAggregator : baseAggregator,\n accumulator = initializer ? initializer() : {};\n\n return func(collection, setter, getIteratee(iteratee, 2), accumulator);\n };\n }\n\n /**\n * Creates a function like `_.assign`.\n *\n * @private\n * @param {Function} assigner The function to assign values.\n * @returns {Function} Returns the new assigner function.\n */\n function createAssigner(assigner) {\n return baseRest(function(object, sources) {\n var index = -1,\n length = sources.length,\n customizer = length > 1 ? sources[length - 1] : undefined,\n guard = length > 2 ? sources[2] : undefined;\n\n customizer = (assigner.length > 3 && typeof customizer == 'function')\n ? (length--, customizer)\n : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n customizer = length < 3 ? undefined : customizer;\n length = 1;\n }\n object = Object(object);\n while (++index < length) {\n var source = sources[index];\n if (source) {\n assigner(object, source, index, customizer);\n }\n }\n return object;\n });\n }\n\n /**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseEach(eachFunc, fromRight) {\n return function(collection, iteratee) {\n if (collection == null) {\n return collection;\n }\n if (!isArrayLike(collection)) {\n return eachFunc(collection, iteratee);\n }\n var length = collection.length,\n index = fromRight ? length : -1,\n iterable = Object(collection);\n\n while ((fromRight ? index-- : ++index < length)) {\n if (iteratee(iterable[index], index, iterable) === false) {\n break;\n }\n }\n return collection;\n };\n }\n\n /**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\n function createBaseFor(fromRight) {\n return function(object, iteratee, keysFunc) {\n var index = -1,\n iterable = Object(object),\n props = keysFunc(object),\n length = props.length;\n\n while (length--) {\n var key = props[fromRight ? length : ++index];\n if (iteratee(iterable[key], key, iterable) === false) {\n break;\n }\n }\n return object;\n };\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the optional `this`\n * binding of `thisArg`.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createBind(func, bitmask, thisArg) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return fn.apply(isBind ? thisArg : this, arguments);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.lowerFirst`.\n *\n * @private\n * @param {string} methodName The name of the `String` case method to use.\n * @returns {Function} Returns the new case function.\n */\n function createCaseFirst(methodName) {\n return function(string) {\n string = toString(string);\n\n var strSymbols = hasUnicode(string)\n ? stringToArray(string)\n : undefined;\n\n var chr = strSymbols\n ? strSymbols[0]\n : string.charAt(0);\n\n var trailing = strSymbols\n ? castSlice(strSymbols, 1).join('')\n : string.slice(1);\n\n return chr[methodName]() + trailing;\n };\n }\n\n /**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\n function createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n }\n\n /**\n * Creates a function that produces an instance of `Ctor` regardless of\n * whether it was invoked as part of a `new` expression or by `call` or `apply`.\n *\n * @private\n * @param {Function} Ctor The constructor to wrap.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCtor(Ctor) {\n return function() {\n // Use a `switch` statement to work with class constructors. See\n // http://ecma-international.org/ecma-262/7.0/#sec-ecmascript-function-objects-call-thisargument-argumentslist\n // for more details.\n var args = arguments;\n switch (args.length) {\n case 0: return new Ctor;\n case 1: return new Ctor(args[0]);\n case 2: return new Ctor(args[0], args[1]);\n case 3: return new Ctor(args[0], args[1], args[2]);\n case 4: return new Ctor(args[0], args[1], args[2], args[3]);\n case 5: return new Ctor(args[0], args[1], args[2], args[3], args[4]);\n case 6: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5]);\n case 7: return new Ctor(args[0], args[1], args[2], args[3], args[4], args[5], args[6]);\n }\n var thisBinding = baseCreate(Ctor.prototype),\n result = Ctor.apply(thisBinding, args);\n\n // Mimic the constructor's `return` behavior.\n // See https://es5.github.io/#x13.2.2 for more details.\n return isObject(result) ? result : thisBinding;\n };\n }\n\n /**\n * Creates a function that wraps `func` to enable currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {number} arity The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createCurry(func, bitmask, arity) {\n var Ctor = createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length,\n placeholder = getHolder(wrapper);\n\n while (index--) {\n args[index] = arguments[index];\n }\n var holders = (length < 3 && args[0] !== placeholder && args[length - 1] !== placeholder)\n ? []\n : replaceHolders(args, placeholder);\n\n length -= holders.length;\n if (length < arity) {\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, undefined,\n args, holders, undefined, undefined, arity - length);\n }\n var fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n return apply(fn, this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\n function createFind(findIndexFunc) {\n return function(collection, predicate, fromIndex) {\n var iterable = Object(collection);\n if (!isArrayLike(collection)) {\n var iteratee = getIteratee(predicate, 3);\n collection = keys(collection);\n predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n }\n var index = findIndexFunc(collection, predicate, fromIndex);\n return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n };\n }\n\n /**\n * Creates a `_.flow` or `_.flowRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new flow function.\n */\n function createFlow(fromRight) {\n return flatRest(function(funcs) {\n var length = funcs.length,\n index = length,\n prereq = LodashWrapper.prototype.thru;\n\n if (fromRight) {\n funcs.reverse();\n }\n while (index--) {\n var func = funcs[index];\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (prereq && !wrapper && getFuncName(func) == 'wrapper') {\n var wrapper = new LodashWrapper([], true);\n }\n }\n index = wrapper ? index : length;\n while (++index < length) {\n func = funcs[index];\n\n var funcName = getFuncName(func),\n data = funcName == 'wrapper' ? getData(func) : undefined;\n\n if (data && isLaziable(data[0]) &&\n data[1] == (WRAP_ARY_FLAG | WRAP_CURRY_FLAG | WRAP_PARTIAL_FLAG | WRAP_REARG_FLAG) &&\n !data[4].length && data[9] == 1\n ) {\n wrapper = wrapper[getFuncName(data[0])].apply(wrapper, data[3]);\n } else {\n wrapper = (func.length == 1 && isLaziable(func))\n ? wrapper[funcName]()\n : wrapper.thru(func);\n }\n }\n return function() {\n var args = arguments,\n value = args[0];\n\n if (wrapper && args.length == 1 && isArray(value)) {\n return wrapper.plant(value).value();\n }\n var index = 0,\n result = length ? funcs[index].apply(this, args) : value;\n\n while (++index < length) {\n result = funcs[index].call(this, result);\n }\n return result;\n };\n });\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with optional `this`\n * binding of `thisArg`, partial application, and currying.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [partialsRight] The arguments to append to those provided\n * to the new function.\n * @param {Array} [holdersRight] The `partialsRight` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createHybrid(func, bitmask, thisArg, partials, holders, partialsRight, holdersRight, argPos, ary, arity) {\n var isAry = bitmask & WRAP_ARY_FLAG,\n isBind = bitmask & WRAP_BIND_FLAG,\n isBindKey = bitmask & WRAP_BIND_KEY_FLAG,\n isCurried = bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG),\n isFlip = bitmask & WRAP_FLIP_FLAG,\n Ctor = isBindKey ? undefined : createCtor(func);\n\n function wrapper() {\n var length = arguments.length,\n args = Array(length),\n index = length;\n\n while (index--) {\n args[index] = arguments[index];\n }\n if (isCurried) {\n var placeholder = getHolder(wrapper),\n holdersCount = countHolders(args, placeholder);\n }\n if (partials) {\n args = composeArgs(args, partials, holders, isCurried);\n }\n if (partialsRight) {\n args = composeArgsRight(args, partialsRight, holdersRight, isCurried);\n }\n length -= holdersCount;\n if (isCurried && length < arity) {\n var newHolders = replaceHolders(args, placeholder);\n return createRecurry(\n func, bitmask, createHybrid, wrapper.placeholder, thisArg,\n args, newHolders, argPos, ary, arity - length\n );\n }\n var thisBinding = isBind ? thisArg : this,\n fn = isBindKey ? thisBinding[func] : func;\n\n length = args.length;\n if (argPos) {\n args = reorder(args, argPos);\n } else if (isFlip && length > 1) {\n args.reverse();\n }\n if (isAry && ary < length) {\n args.length = ary;\n }\n if (this && this !== root && this instanceof wrapper) {\n fn = Ctor || createCtor(fn);\n }\n return fn.apply(thisBinding, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a function like `_.invertBy`.\n *\n * @private\n * @param {Function} setter The function to set accumulator values.\n * @param {Function} toIteratee The function to resolve iteratees.\n * @returns {Function} Returns the new inverter function.\n */\n function createInverter(setter, toIteratee) {\n return function(object, iteratee) {\n return baseInverter(object, setter, toIteratee(iteratee), {});\n };\n }\n\n /**\n * Creates a function that performs a mathematical operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @param {number} [defaultValue] The value used for `undefined` arguments.\n * @returns {Function} Returns the new mathematical operation function.\n */\n function createMathOperation(operator, defaultValue) {\n return function(value, other) {\n var result;\n if (value === undefined && other === undefined) {\n return defaultValue;\n }\n if (value !== undefined) {\n result = value;\n }\n if (other !== undefined) {\n if (result === undefined) {\n return other;\n }\n if (typeof value == 'string' || typeof other == 'string') {\n value = baseToString(value);\n other = baseToString(other);\n } else {\n value = baseToNumber(value);\n other = baseToNumber(other);\n }\n result = operator(value, other);\n }\n return result;\n };\n }\n\n /**\n * Creates a function like `_.over`.\n *\n * @private\n * @param {Function} arrayFunc The function to iterate over iteratees.\n * @returns {Function} Returns the new over function.\n */\n function createOver(arrayFunc) {\n return flatRest(function(iteratees) {\n iteratees = arrayMap(iteratees, baseUnary(getIteratee()));\n return baseRest(function(args) {\n var thisArg = this;\n return arrayFunc(iteratees, function(iteratee) {\n return apply(iteratee, thisArg, args);\n });\n });\n });\n }\n\n /**\n * Creates the padding for `string` based on `length`. The `chars` string\n * is truncated if the number of characters exceeds `length`.\n *\n * @private\n * @param {number} length The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padding for `string`.\n */\n function createPadding(length, chars) {\n chars = chars === undefined ? ' ' : baseToString(chars);\n\n var charsLength = chars.length;\n if (charsLength < 2) {\n return charsLength ? baseRepeat(chars, length) : chars;\n }\n var result = baseRepeat(chars, nativeCeil(length / stringSize(chars)));\n return hasUnicode(chars)\n ? castSlice(stringToArray(result), 0, length).join('')\n : result.slice(0, length);\n }\n\n /**\n * Creates a function that wraps `func` to invoke it with the `this` binding\n * of `thisArg` and `partials` prepended to the arguments it receives.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {Array} partials The arguments to prepend to those provided to\n * the new function.\n * @returns {Function} Returns the new wrapped function.\n */\n function createPartial(func, bitmask, thisArg, partials) {\n var isBind = bitmask & WRAP_BIND_FLAG,\n Ctor = createCtor(func);\n\n function wrapper() {\n var argsIndex = -1,\n argsLength = arguments.length,\n leftIndex = -1,\n leftLength = partials.length,\n args = Array(leftLength + argsLength),\n fn = (this && this !== root && this instanceof wrapper) ? Ctor : func;\n\n while (++leftIndex < leftLength) {\n args[leftIndex] = partials[leftIndex];\n }\n while (argsLength--) {\n args[leftIndex++] = arguments[++argsIndex];\n }\n return apply(fn, isBind ? thisArg : this, args);\n }\n return wrapper;\n }\n\n /**\n * Creates a `_.range` or `_.rangeRight` function.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new range function.\n */\n function createRange(fromRight) {\n return function(start, end, step) {\n if (step && typeof step != 'number' && isIterateeCall(start, end, step)) {\n end = step = undefined;\n }\n // Ensure the sign of `-0` is preserved.\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n step = step === undefined ? (start < end ? 1 : -1) : toFinite(step);\n return baseRange(start, end, step, fromRight);\n };\n }\n\n /**\n * Creates a function that performs a relational operation on two values.\n *\n * @private\n * @param {Function} operator The function to perform the operation.\n * @returns {Function} Returns the new relational operation function.\n */\n function createRelationalOperation(operator) {\n return function(value, other) {\n if (!(typeof value == 'string' && typeof other == 'string')) {\n value = toNumber(value);\n other = toNumber(other);\n }\n return operator(value, other);\n };\n }\n\n /**\n * Creates a function that wraps `func` to continue currying.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @param {Function} wrapFunc The function to create the `func` wrapper.\n * @param {*} placeholder The placeholder value.\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to prepend to those provided to\n * the new function.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createRecurry(func, bitmask, wrapFunc, placeholder, thisArg, partials, holders, argPos, ary, arity) {\n var isCurry = bitmask & WRAP_CURRY_FLAG,\n newHolders = isCurry ? holders : undefined,\n newHoldersRight = isCurry ? undefined : holders,\n newPartials = isCurry ? partials : undefined,\n newPartialsRight = isCurry ? undefined : partials;\n\n bitmask |= (isCurry ? WRAP_PARTIAL_FLAG : WRAP_PARTIAL_RIGHT_FLAG);\n bitmask &= ~(isCurry ? WRAP_PARTIAL_RIGHT_FLAG : WRAP_PARTIAL_FLAG);\n\n if (!(bitmask & WRAP_CURRY_BOUND_FLAG)) {\n bitmask &= ~(WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG);\n }\n var newData = [\n func, bitmask, thisArg, newPartials, newHolders, newPartialsRight,\n newHoldersRight, argPos, ary, arity\n ];\n\n var result = wrapFunc.apply(undefined, newData);\n if (isLaziable(func)) {\n setData(result, newData);\n }\n result.placeholder = placeholder;\n return setWrapToString(result, func, bitmask);\n }\n\n /**\n * Creates a function like `_.round`.\n *\n * @private\n * @param {string} methodName The name of the `Math` method to use when rounding.\n * @returns {Function} Returns the new round function.\n */\n function createRound(methodName) {\n var func = Math[methodName];\n return function(number, precision) {\n number = toNumber(number);\n precision = precision == null ? 0 : nativeMin(toInteger(precision), 292);\n if (precision && nativeIsFinite(number)) {\n // Shift with exponential notation to avoid floating-point issues.\n // See [MDN](https://mdn.io/round#Examples) for more details.\n var pair = (toString(number) + 'e').split('e'),\n value = func(pair[0] + 'e' + (+pair[1] + precision));\n\n pair = (toString(value) + 'e').split('e');\n return +(pair[0] + 'e' + (+pair[1] - precision));\n }\n return func(number);\n };\n }\n\n /**\n * Creates a set object of `values`.\n *\n * @private\n * @param {Array} values The values to add to the set.\n * @returns {Object} Returns the new set.\n */\n var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) {\n return new Set(values);\n };\n\n /**\n * Creates a `_.toPairs` or `_.toPairsIn` function.\n *\n * @private\n * @param {Function} keysFunc The function to get the keys of a given object.\n * @returns {Function} Returns the new pairs function.\n */\n function createToPairs(keysFunc) {\n return function(object) {\n var tag = getTag(object);\n if (tag == mapTag) {\n return mapToArray(object);\n }\n if (tag == setTag) {\n return setToPairs(object);\n }\n return baseToPairs(object, keysFunc(object));\n };\n }\n\n /**\n * Creates a function that either curries or invokes `func` with optional\n * `this` binding and partially applied arguments.\n *\n * @private\n * @param {Function|string} func The function or method name to wrap.\n * @param {number} bitmask The bitmask flags.\n * 1 - `_.bind`\n * 2 - `_.bindKey`\n * 4 - `_.curry` or `_.curryRight` of a bound function\n * 8 - `_.curry`\n * 16 - `_.curryRight`\n * 32 - `_.partial`\n * 64 - `_.partialRight`\n * 128 - `_.rearg`\n * 256 - `_.ary`\n * 512 - `_.flip`\n * @param {*} [thisArg] The `this` binding of `func`.\n * @param {Array} [partials] The arguments to be partially applied.\n * @param {Array} [holders] The `partials` placeholder indexes.\n * @param {Array} [argPos] The argument positions of the new function.\n * @param {number} [ary] The arity cap of `func`.\n * @param {number} [arity] The arity of `func`.\n * @returns {Function} Returns the new wrapped function.\n */\n function createWrap(func, bitmask, thisArg, partials, holders, argPos, ary, arity) {\n var isBindKey = bitmask & WRAP_BIND_KEY_FLAG;\n if (!isBindKey && typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var length = partials ? partials.length : 0;\n if (!length) {\n bitmask &= ~(WRAP_PARTIAL_FLAG | WRAP_PARTIAL_RIGHT_FLAG);\n partials = holders = undefined;\n }\n ary = ary === undefined ? ary : nativeMax(toInteger(ary), 0);\n arity = arity === undefined ? arity : toInteger(arity);\n length -= holders ? holders.length : 0;\n\n if (bitmask & WRAP_PARTIAL_RIGHT_FLAG) {\n var partialsRight = partials,\n holdersRight = holders;\n\n partials = holders = undefined;\n }\n var data = isBindKey ? undefined : getData(func);\n\n var newData = [\n func, bitmask, thisArg, partials, holders, partialsRight, holdersRight,\n argPos, ary, arity\n ];\n\n if (data) {\n mergeData(newData, data);\n }\n func = newData[0];\n bitmask = newData[1];\n thisArg = newData[2];\n partials = newData[3];\n holders = newData[4];\n arity = newData[9] = newData[9] === undefined\n ? (isBindKey ? 0 : func.length)\n : nativeMax(newData[9] - length, 0);\n\n if (!arity && bitmask & (WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG)) {\n bitmask &= ~(WRAP_CURRY_FLAG | WRAP_CURRY_RIGHT_FLAG);\n }\n if (!bitmask || bitmask == WRAP_BIND_FLAG) {\n var result = createBind(func, bitmask, thisArg);\n } else if (bitmask == WRAP_CURRY_FLAG || bitmask == WRAP_CURRY_RIGHT_FLAG) {\n result = createCurry(func, bitmask, arity);\n } else if ((bitmask == WRAP_PARTIAL_FLAG || bitmask == (WRAP_BIND_FLAG | WRAP_PARTIAL_FLAG)) && !holders.length) {\n result = createPartial(func, bitmask, thisArg, partials);\n } else {\n result = createHybrid.apply(undefined, newData);\n }\n var setter = data ? baseSetData : setData;\n return setWrapToString(setter(result, newData), func, bitmask);\n }\n\n /**\n * Used by `_.defaults` to customize its `_.assignIn` use to assign properties\n * of source objects to the destination object for all destination properties\n * that resolve to `undefined`.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to assign.\n * @param {Object} object The parent object of `objValue`.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsAssignIn(objValue, srcValue, key, object) {\n if (objValue === undefined ||\n (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n return srcValue;\n }\n return objValue;\n }\n\n /**\n * Used by `_.defaultsDeep` to customize its `_.merge` use to merge source\n * objects into destination objects that are passed thru.\n *\n * @private\n * @param {*} objValue The destination value.\n * @param {*} srcValue The source value.\n * @param {string} key The key of the property to merge.\n * @param {Object} object The parent object of `objValue`.\n * @param {Object} source The parent object of `srcValue`.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n * @returns {*} Returns the value to assign.\n */\n function customDefaultsMerge(objValue, srcValue, key, object, source, stack) {\n if (isObject(objValue) && isObject(srcValue)) {\n // Recursively merge objects and arrays (susceptible to call stack limits).\n stack.set(srcValue, objValue);\n baseMerge(objValue, srcValue, undefined, customDefaultsMerge, stack);\n stack['delete'](srcValue);\n }\n return objValue;\n }\n\n /**\n * Used by `_.omit` to customize its `_.cloneDeep` use to only clone plain\n * objects.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {string} key The key of the property to inspect.\n * @returns {*} Returns the uncloned value or `undefined` to defer cloning to `_.cloneDeep`.\n */\n function customOmitClone(value) {\n return isPlainObject(value) ? undefined : value;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\n function equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n }\n\n /**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\n function equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n objProps = getAllKeys(object),\n objLength = objProps.length,\n othProps = getAllKeys(other),\n othLength = othProps.length;\n\n if (objLength != othLength && !isPartial) {\n return false;\n }\n var index = objLength;\n while (index--) {\n var key = objProps[index];\n if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n return false;\n }\n }\n // Check that cyclic values are equal.\n var objStacked = stack.get(object);\n var othStacked = stack.get(other);\n if (objStacked && othStacked) {\n return objStacked == other && othStacked == object;\n }\n var result = true;\n stack.set(object, other);\n stack.set(other, object);\n\n var skipCtor = isPartial;\n while (++index < objLength) {\n key = objProps[index];\n var objValue = object[key],\n othValue = other[key];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, objValue, key, other, object, stack)\n : customizer(objValue, othValue, key, object, other, stack);\n }\n // Recursively compare objects (susceptible to call stack limits).\n if (!(compared === undefined\n ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n : compared\n )) {\n result = false;\n break;\n }\n skipCtor || (skipCtor = key == 'constructor');\n }\n if (result && !skipCtor) {\n var objCtor = object.constructor,\n othCtor = other.constructor;\n\n // Non `Object` object instances with different constructors are not equal.\n if (objCtor != othCtor &&\n ('constructor' in object && 'constructor' in other) &&\n !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n result = false;\n }\n }\n stack['delete'](object);\n stack['delete'](other);\n return result;\n }\n\n /**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\n function flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n }\n\n /**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeys(object) {\n return baseGetAllKeys(object, keys, getSymbols);\n }\n\n /**\n * Creates an array of own and inherited enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\n function getAllKeysIn(object) {\n return baseGetAllKeys(object, keysIn, getSymbolsIn);\n }\n\n /**\n * Gets metadata for `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {*} Returns the metadata for `func`.\n */\n var getData = !metaMap ? noop : function(func) {\n return metaMap.get(func);\n };\n\n /**\n * Gets the name of `func`.\n *\n * @private\n * @param {Function} func The function to query.\n * @returns {string} Returns the function name.\n */\n function getFuncName(func) {\n var result = (func.name + ''),\n array = realNames[result],\n length = hasOwnProperty.call(realNames, result) ? array.length : 0;\n\n while (length--) {\n var data = array[length],\n otherFunc = data.func;\n if (otherFunc == null || otherFunc == func) {\n return data.name;\n }\n }\n return result;\n }\n\n /**\n * Gets the argument placeholder value for `func`.\n *\n * @private\n * @param {Function} func The function to inspect.\n * @returns {*} Returns the placeholder value.\n */\n function getHolder(func) {\n var object = hasOwnProperty.call(lodash, 'placeholder') ? lodash : func;\n return object.placeholder;\n }\n\n /**\n * Gets the appropriate \"iteratee\" function. If `_.iteratee` is customized,\n * this function returns the custom method, otherwise it returns `baseIteratee`.\n * If arguments are provided, the chosen function is invoked with them and\n * its result is returned.\n *\n * @private\n * @param {*} [value] The value to convert to an iteratee.\n * @param {number} [arity] The arity of the created iteratee.\n * @returns {Function} Returns the chosen function or its result.\n */\n function getIteratee() {\n var result = lodash.iteratee || iteratee;\n result = result === iteratee ? baseIteratee : result;\n return arguments.length ? result(arguments[0], arguments[1]) : result;\n }\n\n /**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\n function getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n }\n\n /**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\n function getMatchData(object) {\n var result = keys(object),\n length = result.length;\n\n while (length--) {\n var key = result[length],\n value = object[key];\n\n result[length] = [key, value, isStrictComparable(value)];\n }\n return result;\n }\n\n /**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\n function getNative(object, key) {\n var value = getValue(object, key);\n return baseIsNative(value) ? value : undefined;\n }\n\n /**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\n function getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n }\n\n /**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n if (object == null) {\n return [];\n }\n object = Object(object);\n return arrayFilter(nativeGetSymbols(object), function(symbol) {\n return propertyIsEnumerable.call(object, symbol);\n });\n };\n\n /**\n * Creates an array of the own and inherited enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\n var getSymbolsIn = !nativeGetSymbols ? stubArray : function(object) {\n var result = [];\n while (object) {\n arrayPush(result, getSymbols(object));\n object = getPrototype(object);\n }\n return result;\n };\n\n /**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\n var getTag = baseGetTag;\n\n // Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\n if ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n (Map && getTag(new Map) != mapTag) ||\n (Promise && getTag(Promise.resolve()) != promiseTag) ||\n (Set && getTag(new Set) != setTag) ||\n (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n getTag = function(value) {\n var result = baseGetTag(value),\n Ctor = result == objectTag ? value.constructor : undefined,\n ctorString = Ctor ? toSource(Ctor) : '';\n\n if (ctorString) {\n switch (ctorString) {\n case dataViewCtorString: return dataViewTag;\n case mapCtorString: return mapTag;\n case promiseCtorString: return promiseTag;\n case setCtorString: return setTag;\n case weakMapCtorString: return weakMapTag;\n }\n }\n return result;\n };\n }\n\n /**\n * Gets the view, applying any `transforms` to the `start` and `end` positions.\n *\n * @private\n * @param {number} start The start of the view.\n * @param {number} end The end of the view.\n * @param {Array} transforms The transformations to apply to the view.\n * @returns {Object} Returns an object containing the `start` and `end`\n * positions of the view.\n */\n function getView(start, end, transforms) {\n var index = -1,\n length = transforms.length;\n\n while (++index < length) {\n var data = transforms[index],\n size = data.size;\n\n switch (data.type) {\n case 'drop': start += size; break;\n case 'dropRight': end -= size; break;\n case 'take': end = nativeMin(end, start + size); break;\n case 'takeRight': start = nativeMax(start, end - size); break;\n }\n }\n return { 'start': start, 'end': end };\n }\n\n /**\n * Extracts wrapper details from the `source` body comment.\n *\n * @private\n * @param {string} source The source to inspect.\n * @returns {Array} Returns the wrapper details.\n */\n function getWrapDetails(source) {\n var match = source.match(reWrapDetails);\n return match ? match[1].split(reSplitDetails) : [];\n }\n\n /**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\n function hasPath(object, path, hasFunc) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n result = false;\n\n while (++index < length) {\n var key = toKey(path[index]);\n if (!(result = object != null && hasFunc(object, key))) {\n break;\n }\n object = object[key];\n }\n if (result || ++index != length) {\n return result;\n }\n length = object == null ? 0 : object.length;\n return !!length && isLength(length) && isIndex(key, length) &&\n (isArray(object) || isArguments(object));\n }\n\n /**\n * Initializes an array clone.\n *\n * @private\n * @param {Array} array The array to clone.\n * @returns {Array} Returns the initialized clone.\n */\n function initCloneArray(array) {\n var length = array.length,\n result = new array.constructor(length);\n\n // Add properties assigned by `RegExp#exec`.\n if (length && typeof array[0] == 'string' && hasOwnProperty.call(array, 'index')) {\n result.index = array.index;\n result.input = array.input;\n }\n return result;\n }\n\n /**\n * Initializes an object clone.\n *\n * @private\n * @param {Object} object The object to clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneObject(object) {\n return (typeof object.constructor == 'function' && !isPrototype(object))\n ? baseCreate(getPrototype(object))\n : {};\n }\n\n /**\n * Initializes an object clone based on its `toStringTag`.\n *\n * **Note:** This function only supports cloning values with tags of\n * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.\n *\n * @private\n * @param {Object} object The object to clone.\n * @param {string} tag The `toStringTag` of the object to clone.\n * @param {boolean} [isDeep] Specify a deep clone.\n * @returns {Object} Returns the initialized clone.\n */\n function initCloneByTag(object, tag, isDeep) {\n var Ctor = object.constructor;\n switch (tag) {\n case arrayBufferTag:\n return cloneArrayBuffer(object);\n\n case boolTag:\n case dateTag:\n return new Ctor(+object);\n\n case dataViewTag:\n return cloneDataView(object, isDeep);\n\n case float32Tag: case float64Tag:\n case int8Tag: case int16Tag: case int32Tag:\n case uint8Tag: case uint8ClampedTag: case uint16Tag: case uint32Tag:\n return cloneTypedArray(object, isDeep);\n\n case mapTag:\n return new Ctor;\n\n case numberTag:\n case stringTag:\n return new Ctor(object);\n\n case regexpTag:\n return cloneRegExp(object);\n\n case setTag:\n return new Ctor;\n\n case symbolTag:\n return cloneSymbol(object);\n }\n }\n\n /**\n * Inserts wrapper `details` in a comment at the top of the `source` body.\n *\n * @private\n * @param {string} source The source to modify.\n * @returns {Array} details The details to insert.\n * @returns {string} Returns the modified source.\n */\n function insertWrapDetails(source, details) {\n var length = details.length;\n if (!length) {\n return source;\n }\n var lastIndex = length - 1;\n details[lastIndex] = (length > 1 ? '& ' : '') + details[lastIndex];\n details = details.join(length > 2 ? ', ' : ' ');\n return source.replace(reWrapComment, '{\\n/* [wrapped with ' + details + '] */\\n');\n }\n\n /**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\n function isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n }\n\n /**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\n function isIndex(value, length) {\n var type = typeof value;\n length = length == null ? MAX_SAFE_INTEGER : length;\n\n return !!length &&\n (type == 'number' ||\n (type != 'symbol' && reIsUint.test(value))) &&\n (value > -1 && value % 1 == 0 && value < length);\n }\n\n /**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\n function isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n }\n\n /**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\n function isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n }\n\n /**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\n function isKeyable(value) {\n var type = typeof value;\n return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n ? (value !== '__proto__')\n : (value === null);\n }\n\n /**\n * Checks if `func` has a lazy counterpart.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` has a lazy counterpart,\n * else `false`.\n */\n function isLaziable(func) {\n var funcName = getFuncName(func),\n other = lodash[funcName];\n\n if (typeof other != 'function' || !(funcName in LazyWrapper.prototype)) {\n return false;\n }\n if (func === other) {\n return true;\n }\n var data = getData(other);\n return !!data && func === data[0];\n }\n\n /**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\n function isMasked(func) {\n return !!maskSrcKey && (maskSrcKey in func);\n }\n\n /**\n * Checks if `func` is capable of being masked.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `func` is maskable, else `false`.\n */\n var isMaskable = coreJsData ? isFunction : stubFalse;\n\n /**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\n function isPrototype(value) {\n var Ctor = value && value.constructor,\n proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n return value === proto;\n }\n\n /**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n * equality comparisons, else `false`.\n */\n function isStrictComparable(value) {\n return value === value && !isObject(value);\n }\n\n /**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\n function matchesStrictComparable(key, srcValue) {\n return function(object) {\n if (object == null) {\n return false;\n }\n return object[key] === srcValue &&\n (srcValue !== undefined || (key in Object(object)));\n };\n }\n\n /**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\n function memoizeCapped(func) {\n var result = memoize(func, function(key) {\n if (cache.size === MAX_MEMOIZE_SIZE) {\n cache.clear();\n }\n return key;\n });\n\n var cache = result.cache;\n return result;\n }\n\n /**\n * Merges the function metadata of `source` into `data`.\n *\n * Merging metadata reduces the number of wrappers used to invoke a function.\n * This is possible because methods like `_.bind`, `_.curry`, and `_.partial`\n * may be applied regardless of execution order. Methods like `_.ary` and\n * `_.rearg` modify function arguments, making the order in which they are\n * executed important, preventing the merging of metadata. However, we make\n * an exception for a safe combined case where curried functions have `_.ary`\n * and or `_.rearg` applied.\n *\n * @private\n * @param {Array} data The destination metadata.\n * @param {Array} source The source metadata.\n * @returns {Array} Returns `data`.\n */\n function mergeData(data, source) {\n var bitmask = data[1],\n srcBitmask = source[1],\n newBitmask = bitmask | srcBitmask,\n isCommon = newBitmask < (WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG | WRAP_ARY_FLAG);\n\n var isCombo =\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_CURRY_FLAG)) ||\n ((srcBitmask == WRAP_ARY_FLAG) && (bitmask == WRAP_REARG_FLAG) && (data[7].length <= source[8])) ||\n ((srcBitmask == (WRAP_ARY_FLAG | WRAP_REARG_FLAG)) && (source[7].length <= source[8]) && (bitmask == WRAP_CURRY_FLAG));\n\n // Exit early if metadata can't be merged.\n if (!(isCommon || isCombo)) {\n return data;\n }\n // Use source `thisArg` if available.\n if (srcBitmask & WRAP_BIND_FLAG) {\n data[2] = source[2];\n // Set when currying a bound function.\n newBitmask |= bitmask & WRAP_BIND_FLAG ? 0 : WRAP_CURRY_BOUND_FLAG;\n }\n // Compose partial arguments.\n var value = source[3];\n if (value) {\n var partials = data[3];\n data[3] = partials ? composeArgs(partials, value, source[4]) : value;\n data[4] = partials ? replaceHolders(data[3], PLACEHOLDER) : source[4];\n }\n // Compose partial right arguments.\n value = source[5];\n if (value) {\n partials = data[5];\n data[5] = partials ? composeArgsRight(partials, value, source[6]) : value;\n data[6] = partials ? replaceHolders(data[5], PLACEHOLDER) : source[6];\n }\n // Use source `argPos` if available.\n value = source[7];\n if (value) {\n data[7] = value;\n }\n // Use source `ary` if it's smaller.\n if (srcBitmask & WRAP_ARY_FLAG) {\n data[8] = data[8] == null ? source[8] : nativeMin(data[8], source[8]);\n }\n // Use source `arity` if one is not provided.\n if (data[9] == null) {\n data[9] = source[9];\n }\n // Use source `func` and merge bitmasks.\n data[0] = source[0];\n data[1] = newBitmask;\n\n return data;\n }\n\n /**\n * This function is like\n * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * except that it includes inherited enumerable properties.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\n function nativeKeysIn(object) {\n var result = [];\n if (object != null) {\n for (var key in Object(object)) {\n result.push(key);\n }\n }\n return result;\n }\n\n /**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\n function objectToString(value) {\n return nativeObjectToString.call(value);\n }\n\n /**\n * A specialized version of `baseRest` which transforms the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @param {Function} transform The rest array transform.\n * @returns {Function} Returns the new function.\n */\n function overRest(func, start, transform) {\n start = nativeMax(start === undefined ? (func.length - 1) : start, 0);\n return function() {\n var args = arguments,\n index = -1,\n length = nativeMax(args.length - start, 0),\n array = Array(length);\n\n while (++index < length) {\n array[index] = args[start + index];\n }\n index = -1;\n var otherArgs = Array(start + 1);\n while (++index < start) {\n otherArgs[index] = args[index];\n }\n otherArgs[start] = transform(array);\n return apply(func, this, otherArgs);\n };\n }\n\n /**\n * Gets the parent value at `path` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array} path The path to get the parent value of.\n * @returns {*} Returns the parent value.\n */\n function parent(object, path) {\n return path.length < 2 ? object : baseGet(object, baseSlice(path, 0, -1));\n }\n\n /**\n * Reorder `array` according to the specified indexes where the element at\n * the first index is assigned as the first element, the element at\n * the second index is assigned as the second element, and so on.\n *\n * @private\n * @param {Array} array The array to reorder.\n * @param {Array} indexes The arranged array indexes.\n * @returns {Array} Returns `array`.\n */\n function reorder(array, indexes) {\n var arrLength = array.length,\n length = nativeMin(indexes.length, arrLength),\n oldArray = copyArray(array);\n\n while (length--) {\n var index = indexes[length];\n array[length] = isIndex(index, arrLength) ? oldArray[index] : undefined;\n }\n return array;\n }\n\n /**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\n function safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n }\n\n /**\n * Sets metadata for `func`.\n *\n * **Note:** If this function becomes hot, i.e. is invoked a lot in a short\n * period of time, it will trip its breaker and transition to an identity\n * function to avoid garbage collection pauses in V8. See\n * [V8 issue 2070](https://bugs.chromium.org/p/v8/issues/detail?id=2070)\n * for more details.\n *\n * @private\n * @param {Function} func The function to associate metadata with.\n * @param {*} data The metadata.\n * @returns {Function} Returns `func`.\n */\n var setData = shortOut(baseSetData);\n\n /**\n * A simple wrapper around the global [`setTimeout`](https://mdn.io/setTimeout).\n *\n * @private\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @returns {number|Object} Returns the timer id or timeout object.\n */\n var setTimeout = ctxSetTimeout || function(func, wait) {\n return root.setTimeout(func, wait);\n };\n\n /**\n * Sets the `toString` method of `func` to return `string`.\n *\n * @private\n * @param {Function} func The function to modify.\n * @param {Function} string The `toString` result.\n * @returns {Function} Returns `func`.\n */\n var setToString = shortOut(baseSetToString);\n\n /**\n * Sets the `toString` method of `wrapper` to mimic the source of `reference`\n * with wrapper details in a comment at the top of the source body.\n *\n * @private\n * @param {Function} wrapper The function to modify.\n * @param {Function} reference The reference function.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Function} Returns `wrapper`.\n */\n function setWrapToString(wrapper, reference, bitmask) {\n var source = (reference + '');\n return setToString(wrapper, insertWrapDetails(source, updateWrapDetails(getWrapDetails(source), bitmask)));\n }\n\n /**\n * Creates a function that'll short out and invoke `identity` instead\n * of `func` when it's called `HOT_COUNT` or more times in `HOT_SPAN`\n * milliseconds.\n *\n * @private\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new shortable function.\n */\n function shortOut(func) {\n var count = 0,\n lastCalled = 0;\n\n return function() {\n var stamp = nativeNow(),\n remaining = HOT_SPAN - (stamp - lastCalled);\n\n lastCalled = stamp;\n if (remaining > 0) {\n if (++count >= HOT_COUNT) {\n return arguments[0];\n }\n } else {\n count = 0;\n }\n return func.apply(undefined, arguments);\n };\n }\n\n /**\n * A specialized version of `_.shuffle` which mutates and sets the size of `array`.\n *\n * @private\n * @param {Array} array The array to shuffle.\n * @param {number} [size=array.length] The size of `array`.\n * @returns {Array} Returns `array`.\n */\n function shuffleSelf(array, size) {\n var index = -1,\n length = array.length,\n lastIndex = length - 1;\n\n size = size === undefined ? length : size;\n while (++index < size) {\n var rand = baseRandom(index, lastIndex),\n value = array[rand];\n\n array[rand] = array[index];\n array[index] = value;\n }\n array.length = size;\n return array;\n }\n\n /**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\n var stringToPath = memoizeCapped(function(string) {\n var result = [];\n if (string.charCodeAt(0) === 46 /* . */) {\n result.push('');\n }\n string.replace(rePropName, function(match, number, quote, subString) {\n result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n });\n return result;\n });\n\n /**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\n function toKey(value) {\n if (typeof value == 'string' || isSymbol(value)) {\n return value;\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n }\n\n /**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\n function toSource(func) {\n if (func != null) {\n try {\n return funcToString.call(func);\n } catch (e) {}\n try {\n return (func + '');\n } catch (e) {}\n }\n return '';\n }\n\n /**\n * Updates wrapper `details` based on `bitmask` flags.\n *\n * @private\n * @returns {Array} details The details to modify.\n * @param {number} bitmask The bitmask flags. See `createWrap` for more details.\n * @returns {Array} Returns `details`.\n */\n function updateWrapDetails(details, bitmask) {\n arrayEach(wrapFlags, function(pair) {\n var value = '_.' + pair[0];\n if ((bitmask & pair[1]) && !arrayIncludes(details, value)) {\n details.push(value);\n }\n });\n return details.sort();\n }\n\n /**\n * Creates a clone of `wrapper`.\n *\n * @private\n * @param {Object} wrapper The wrapper to clone.\n * @returns {Object} Returns the cloned wrapper.\n */\n function wrapperClone(wrapper) {\n if (wrapper instanceof LazyWrapper) {\n return wrapper.clone();\n }\n var result = new LodashWrapper(wrapper.__wrapped__, wrapper.__chain__);\n result.__actions__ = copyArray(wrapper.__actions__);\n result.__index__ = wrapper.__index__;\n result.__values__ = wrapper.__values__;\n return result;\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an array of elements split into groups the length of `size`.\n * If `array` can't be split evenly, the final chunk will be the remaining\n * elements.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to process.\n * @param {number} [size=1] The length of each chunk\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the new array of chunks.\n * @example\n *\n * _.chunk(['a', 'b', 'c', 'd'], 2);\n * // => [['a', 'b'], ['c', 'd']]\n *\n * _.chunk(['a', 'b', 'c', 'd'], 3);\n * // => [['a', 'b', 'c'], ['d']]\n */\n function chunk(array, size, guard) {\n if ((guard ? isIterateeCall(array, size, guard) : size === undefined)) {\n size = 1;\n } else {\n size = nativeMax(toInteger(size), 0);\n }\n var length = array == null ? 0 : array.length;\n if (!length || size < 1) {\n return [];\n }\n var index = 0,\n resIndex = 0,\n result = Array(nativeCeil(length / size));\n\n while (index < length) {\n result[resIndex++] = baseSlice(array, index, (index += size));\n }\n return result;\n }\n\n /**\n * Creates an array with all falsey values removed. The values `false`, `null`,\n * `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to compact.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.compact([0, 1, false, 2, '', 3]);\n * // => [1, 2, 3]\n */\n function compact(array) {\n var index = -1,\n length = array == null ? 0 : array.length,\n resIndex = 0,\n result = [];\n\n while (++index < length) {\n var value = array[index];\n if (value) {\n result[resIndex++] = value;\n }\n }\n return result;\n }\n\n /**\n * Creates a new array concatenating `array` with any additional arrays\n * and/or values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to concatenate.\n * @param {...*} [values] The values to concatenate.\n * @returns {Array} Returns the new concatenated array.\n * @example\n *\n * var array = [1];\n * var other = _.concat(array, 2, [3], [[4]]);\n *\n * console.log(other);\n * // => [1, 2, 3, [4]]\n *\n * console.log(array);\n * // => [1]\n */\n function concat() {\n var length = arguments.length;\n if (!length) {\n return [];\n }\n var args = Array(length - 1),\n array = arguments[0],\n index = length;\n\n while (index--) {\n args[index - 1] = arguments[index];\n }\n return arrayPush(isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));\n }\n\n /**\n * Creates an array of `array` values not included in the other given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * **Note:** Unlike `_.pullAll`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.without, _.xor\n * @example\n *\n * _.difference([2, 1], [2, 3]);\n * // => [1]\n */\n var difference = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `iteratee` which\n * is invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * **Note:** Unlike `_.pullAllBy`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.differenceBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.differenceBy([{ 'x': 2 }, { 'x': 1 }], [{ 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var differenceBy = baseRest(function(array, values) {\n var iteratee = last(values);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.difference` except that it accepts `comparator`\n * which is invoked to compare elements of `array` to `values`. The order and\n * references of result values are determined by the first array. The comparator\n * is invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.pullAllWith`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...Array} [values] The values to exclude.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n *\n * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }]\n */\n var differenceWith = baseRest(function(array, values) {\n var comparator = last(values);\n if (isArrayLikeObject(comparator)) {\n comparator = undefined;\n }\n return isArrayLikeObject(array)\n ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true), undefined, comparator)\n : [];\n });\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.drop([1, 2, 3]);\n * // => [2, 3]\n *\n * _.drop([1, 2, 3], 2);\n * // => [3]\n *\n * _.drop([1, 2, 3], 5);\n * // => []\n *\n * _.drop([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function drop(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with `n` elements dropped from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to drop.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.dropRight([1, 2, 3]);\n * // => [1, 2]\n *\n * _.dropRight([1, 2, 3], 2);\n * // => [1]\n *\n * _.dropRight([1, 2, 3], 5);\n * // => []\n *\n * _.dropRight([1, 2, 3], 0);\n * // => [1, 2, 3]\n */\n function dropRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the end.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.dropRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropRightWhile(users, ['active', false]);\n * // => objects for ['barney']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropRightWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` excluding elements dropped from the beginning.\n * Elements are dropped until `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.dropWhile(users, function(o) { return !o.active; });\n * // => objects for ['pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.dropWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.dropWhile(users, ['active', false]);\n * // => objects for ['pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.dropWhile(users, 'active');\n * // => objects for ['barney', 'fred', 'pebbles']\n */\n function dropWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), true)\n : [];\n }\n\n /**\n * Fills elements of `array` with `value` from `start` up to, but not\n * including, `end`.\n *\n * **Note:** This method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Array\n * @param {Array} array The array to fill.\n * @param {*} value The value to fill `array` with.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.fill(array, 'a');\n * console.log(array);\n * // => ['a', 'a', 'a']\n *\n * _.fill(Array(3), 2);\n * // => [2, 2, 2]\n *\n * _.fill([4, 6, 8, 10], '*', 1, 3);\n * // => [4, '*', '*', 10]\n */\n function fill(array, value, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {\n start = 0;\n end = length;\n }\n return baseFill(array, value, start, end);\n }\n\n /**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\n function findIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index);\n }\n\n /**\n * This method is like `_.findIndex` except that it iterates over elements\n * of `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.findLastIndex(users, function(o) { return o.user == 'pebbles'; });\n * // => 2\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastIndex(users, { 'user': 'barney', 'active': true });\n * // => 0\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastIndex(users, ['active', false]);\n * // => 2\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastIndex(users, 'active');\n * // => 0\n */\n function findLastIndex(array, predicate, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length - 1;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = fromIndex < 0\n ? nativeMax(length + index, 0)\n : nativeMin(index, length - 1);\n }\n return baseFindIndex(array, getIteratee(predicate, 3), index, true);\n }\n\n /**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\n function flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n }\n\n /**\n * Recursively flattens `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flattenDeep([1, [2, [3, [4]], 5]]);\n * // => [1, 2, 3, 4, 5]\n */\n function flattenDeep(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, INFINITY) : [];\n }\n\n /**\n * Recursively flatten `array` up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * var array = [1, [2, [3, [4]], 5]];\n *\n * _.flattenDepth(array, 1);\n * // => [1, 2, [3, [4]], 5]\n *\n * _.flattenDepth(array, 2);\n * // => [1, 2, 3, [4], 5]\n */\n function flattenDepth(array, depth) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(array, depth);\n }\n\n /**\n * The inverse of `_.toPairs`; this method returns an object composed\n * from key-value `pairs`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} pairs The key-value pairs.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.fromPairs([['a', 1], ['b', 2]]);\n * // => { 'a': 1, 'b': 2 }\n */\n function fromPairs(pairs) {\n var index = -1,\n length = pairs == null ? 0 : pairs.length,\n result = {};\n\n while (++index < length) {\n var pair = pairs[index];\n result[pair[0]] = pair[1];\n }\n return result;\n }\n\n /**\n * Gets the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias first\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the first element of `array`.\n * @example\n *\n * _.head([1, 2, 3]);\n * // => 1\n *\n * _.head([]);\n * // => undefined\n */\n function head(array) {\n return (array && array.length) ? array[0] : undefined;\n }\n\n /**\n * Gets the index at which the first occurrence of `value` is found in `array`\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. If `fromIndex` is negative, it's used as the\n * offset from the end of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.indexOf([1, 2, 1, 2], 2);\n * // => 1\n *\n * // Search from the `fromIndex`.\n * _.indexOf([1, 2, 1, 2], 2, 2);\n * // => 3\n */\n function indexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = fromIndex == null ? 0 : toInteger(fromIndex);\n if (index < 0) {\n index = nativeMax(length + index, 0);\n }\n return baseIndexOf(array, value, index);\n }\n\n /**\n * Gets all but the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.initial([1, 2, 3]);\n * // => [1, 2]\n */\n function initial(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 0, -1) : [];\n }\n\n /**\n * Creates an array of unique values that are included in all given arrays\n * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons. The order and references of result values are\n * determined by the first array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersection([2, 1], [2, 3]);\n * // => [2]\n */\n var intersection = baseRest(function(arrays) {\n var mapped = arrayMap(arrays, castArrayLikeObject);\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped)\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `iteratee`\n * which is invoked for each element of each `arrays` to generate the criterion\n * by which they're compared. The order and references of result values are\n * determined by the first array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * _.intersectionBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [2.1]\n *\n * // The `_.property` iteratee shorthand.\n * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }]\n */\n var intersectionBy = baseRest(function(arrays) {\n var iteratee = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n if (iteratee === last(mapped)) {\n iteratee = undefined;\n } else {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, getIteratee(iteratee, 2))\n : [];\n });\n\n /**\n * This method is like `_.intersection` except that it accepts `comparator`\n * which is invoked to compare elements of `arrays`. The order and references\n * of result values are determined by the first array. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of intersecting values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.intersectionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }]\n */\n var intersectionWith = baseRest(function(arrays) {\n var comparator = last(arrays),\n mapped = arrayMap(arrays, castArrayLikeObject);\n\n comparator = typeof comparator == 'function' ? comparator : undefined;\n if (comparator) {\n mapped.pop();\n }\n return (mapped.length && mapped[0] === arrays[0])\n ? baseIntersection(mapped, undefined, comparator)\n : [];\n });\n\n /**\n * Converts all elements in `array` into a string separated by `separator`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to convert.\n * @param {string} [separator=','] The element separator.\n * @returns {string} Returns the joined string.\n * @example\n *\n * _.join(['a', 'b', 'c'], '~');\n * // => 'a~b~c'\n */\n function join(array, separator) {\n return array == null ? '' : nativeJoin.call(array, separator);\n }\n\n /**\n * Gets the last element of `array`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {*} Returns the last element of `array`.\n * @example\n *\n * _.last([1, 2, 3]);\n * // => 3\n */\n function last(array) {\n var length = array == null ? 0 : array.length;\n return length ? array[length - 1] : undefined;\n }\n\n /**\n * This method is like `_.indexOf` except that it iterates over elements of\n * `array` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=array.length-1] The index to search from.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.lastIndexOf([1, 2, 1, 2], 2);\n * // => 3\n *\n * // Search from the `fromIndex`.\n * _.lastIndexOf([1, 2, 1, 2], 2, 2);\n * // => 1\n */\n function lastIndexOf(array, value, fromIndex) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return -1;\n }\n var index = length;\n if (fromIndex !== undefined) {\n index = toInteger(fromIndex);\n index = index < 0 ? nativeMax(length + index, 0) : nativeMin(index, length - 1);\n }\n return value === value\n ? strictLastIndexOf(array, value, index)\n : baseFindIndex(array, baseIsNaN, index, true);\n }\n\n /**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth\n * element from the end is returned.\n *\n * @static\n * @memberOf _\n * @since 4.11.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=0] The index of the element to return.\n * @returns {*} Returns the nth element of `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n *\n * _.nth(array, 1);\n * // => 'b'\n *\n * _.nth(array, -2);\n * // => 'c';\n */\n function nth(array, n) {\n return (array && array.length) ? baseNth(array, toInteger(n)) : undefined;\n }\n\n /**\n * Removes all given values from `array` using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.without`, this method mutates `array`. Use `_.remove`\n * to remove elements from an array by predicate.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...*} [values] The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pull(array, 'a', 'c');\n * console.log(array);\n * // => ['b', 'b']\n */\n var pull = baseRest(pullAll);\n\n /**\n * This method is like `_.pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `_.difference`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = ['a', 'b', 'c', 'a', 'b', 'c'];\n *\n * _.pullAll(array, ['a', 'c']);\n * console.log(array);\n * // => ['b', 'b']\n */\n function pullAll(array, values) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values)\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `iteratee` which is\n * invoked for each element of `array` and `values` to generate the criterion\n * by which they're compared. The iteratee is invoked with one argument: (value).\n *\n * **Note:** Unlike `_.differenceBy`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }];\n *\n * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x');\n * console.log(array);\n * // => [{ 'x': 2 }]\n */\n function pullAllBy(array, values, iteratee) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, getIteratee(iteratee, 2))\n : array;\n }\n\n /**\n * This method is like `_.pullAll` except that it accepts `comparator` which\n * is invoked to compare elements of `array` to `values`. The comparator is\n * invoked with two arguments: (arrVal, othVal).\n *\n * **Note:** Unlike `_.differenceWith`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Array} values The values to remove.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }];\n *\n * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual);\n * console.log(array);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }]\n */\n function pullAllWith(array, values, comparator) {\n return (array && array.length && values && values.length)\n ? basePullAll(array, values, undefined, comparator)\n : array;\n }\n\n /**\n * Removes elements from `array` corresponding to `indexes` and returns an\n * array of removed elements.\n *\n * **Note:** Unlike `_.at`, this method mutates `array`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {...(number|number[])} [indexes] The indexes of elements to remove.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = ['a', 'b', 'c', 'd'];\n * var pulled = _.pullAt(array, [1, 3]);\n *\n * console.log(array);\n * // => ['a', 'c']\n *\n * console.log(pulled);\n * // => ['b', 'd']\n */\n var pullAt = flatRest(function(array, indexes) {\n var length = array == null ? 0 : array.length,\n result = baseAt(array, indexes);\n\n basePullAt(array, arrayMap(indexes, function(index) {\n return isIndex(index, length) ? +index : index;\n }).sort(compareAscending));\n\n return result;\n });\n\n /**\n * Removes all elements from `array` that `predicate` returns truthy for\n * and returns an array of the removed elements. The predicate is invoked\n * with three arguments: (value, index, array).\n *\n * **Note:** Unlike `_.filter`, this method mutates `array`. Use `_.pull`\n * to pull elements from an array by value.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new array of removed elements.\n * @example\n *\n * var array = [1, 2, 3, 4];\n * var evens = _.remove(array, function(n) {\n * return n % 2 == 0;\n * });\n *\n * console.log(array);\n * // => [1, 3]\n *\n * console.log(evens);\n * // => [2, 4]\n */\n function remove(array, predicate) {\n var result = [];\n if (!(array && array.length)) {\n return result;\n }\n var index = -1,\n indexes = [],\n length = array.length;\n\n predicate = getIteratee(predicate, 3);\n while (++index < length) {\n var value = array[index];\n if (predicate(value, index, array)) {\n result.push(value);\n indexes.push(index);\n }\n }\n basePullAt(array, indexes);\n return result;\n }\n\n /**\n * Reverses `array` so that the first element becomes the last, the second\n * element becomes the second to last, and so on.\n *\n * **Note:** This method mutates `array` and is based on\n * [`Array#reverse`](https://mdn.io/Array/reverse).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to modify.\n * @returns {Array} Returns `array`.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _.reverse(array);\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function reverse(array) {\n return array == null ? array : nativeReverse.call(array);\n }\n\n /**\n * Creates a slice of `array` from `start` up to, but not including, `end`.\n *\n * **Note:** This method is used instead of\n * [`Array#slice`](https://mdn.io/Array/slice) to ensure dense arrays are\n * returned.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to slice.\n * @param {number} [start=0] The start position.\n * @param {number} [end=array.length] The end position.\n * @returns {Array} Returns the slice of `array`.\n */\n function slice(array, start, end) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n if (end && typeof end != 'number' && isIterateeCall(array, start, end)) {\n start = 0;\n end = length;\n }\n else {\n start = start == null ? 0 : toInteger(start);\n end = end === undefined ? length : toInteger(end);\n }\n return baseSlice(array, start, end);\n }\n\n /**\n * Uses a binary search to determine the lowest index at which `value`\n * should be inserted into `array` in order to maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedIndex([30, 50], 40);\n * // => 1\n */\n function sortedIndex(array, value) {\n return baseSortedIndex(array, value);\n }\n\n /**\n * This method is like `_.sortedIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedIndexBy(objects, { 'x': 4 }, 'x');\n * // => 0\n */\n function sortedIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2));\n }\n\n /**\n * This method is like `_.indexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedIndexOf([4, 5, 5, 5, 6], 5);\n * // => 1\n */\n function sortedIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value);\n if (index < length && eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.sortedIndex` except that it returns the highest\n * index at which `value` should be inserted into `array` in order to\n * maintain its sort order.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * _.sortedLastIndex([4, 5, 5, 5, 6], 5);\n * // => 4\n */\n function sortedLastIndex(array, value) {\n return baseSortedIndex(array, value, true);\n }\n\n /**\n * This method is like `_.sortedLastIndex` except that it accepts `iteratee`\n * which is invoked for `value` and each element of `array` to compute their\n * sort ranking. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The sorted array to inspect.\n * @param {*} value The value to evaluate.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {number} Returns the index at which `value` should be inserted\n * into `array`.\n * @example\n *\n * var objects = [{ 'x': 4 }, { 'x': 5 }];\n *\n * _.sortedLastIndexBy(objects, { 'x': 4 }, function(o) { return o.x; });\n * // => 1\n *\n * // The `_.property` iteratee shorthand.\n * _.sortedLastIndexBy(objects, { 'x': 4 }, 'x');\n * // => 1\n */\n function sortedLastIndexBy(array, value, iteratee) {\n return baseSortedIndexBy(array, value, getIteratee(iteratee, 2), true);\n }\n\n /**\n * This method is like `_.lastIndexOf` except that it performs a binary\n * search on a sorted `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {*} value The value to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n * @example\n *\n * _.sortedLastIndexOf([4, 5, 5, 5, 6], 5);\n * // => 3\n */\n function sortedLastIndexOf(array, value) {\n var length = array == null ? 0 : array.length;\n if (length) {\n var index = baseSortedIndex(array, value, true) - 1;\n if (eq(array[index], value)) {\n return index;\n }\n }\n return -1;\n }\n\n /**\n * This method is like `_.uniq` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniq([1, 1, 2]);\n * // => [1, 2]\n */\n function sortedUniq(array) {\n return (array && array.length)\n ? baseSortedUniq(array)\n : [];\n }\n\n /**\n * This method is like `_.uniqBy` except that it's designed and optimized\n * for sorted arrays.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor);\n * // => [1.1, 2.3]\n */\n function sortedUniqBy(array, iteratee) {\n return (array && array.length)\n ? baseSortedUniq(array, getIteratee(iteratee, 2))\n : [];\n }\n\n /**\n * Gets all but the first element of `array`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.tail([1, 2, 3]);\n * // => [2, 3]\n */\n function tail(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseSlice(array, 1, length) : [];\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the beginning.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.take([1, 2, 3]);\n * // => [1]\n *\n * _.take([1, 2, 3], 2);\n * // => [1, 2]\n *\n * _.take([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.take([1, 2, 3], 0);\n * // => []\n */\n function take(array, n, guard) {\n if (!(array && array.length)) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n return baseSlice(array, 0, n < 0 ? 0 : n);\n }\n\n /**\n * Creates a slice of `array` with `n` elements taken from the end.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {number} [n=1] The number of elements to take.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * _.takeRight([1, 2, 3]);\n * // => [3]\n *\n * _.takeRight([1, 2, 3], 2);\n * // => [2, 3]\n *\n * _.takeRight([1, 2, 3], 5);\n * // => [1, 2, 3]\n *\n * _.takeRight([1, 2, 3], 0);\n * // => []\n */\n function takeRight(array, n, guard) {\n var length = array == null ? 0 : array.length;\n if (!length) {\n return [];\n }\n n = (guard || n === undefined) ? 1 : toInteger(n);\n n = length - n;\n return baseSlice(array, n < 0 ? 0 : n, length);\n }\n\n /**\n * Creates a slice of `array` with elements taken from the end. Elements are\n * taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': false }\n * ];\n *\n * _.takeRightWhile(users, function(o) { return !o.active; });\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeRightWhile(users, { 'user': 'pebbles', 'active': false });\n * // => objects for ['pebbles']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeRightWhile(users, ['active', false]);\n * // => objects for ['fred', 'pebbles']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeRightWhile(users, 'active');\n * // => []\n */\n function takeRightWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3), false, true)\n : [];\n }\n\n /**\n * Creates a slice of `array` with elements taken from the beginning. Elements\n * are taken until `predicate` returns falsey. The predicate is invoked with\n * three arguments: (value, index, array).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Array\n * @param {Array} array The array to query.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the slice of `array`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'active': false },\n * { 'user': 'fred', 'active': false },\n * { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.takeWhile(users, function(o) { return !o.active; });\n * // => objects for ['barney', 'fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.takeWhile(users, { 'user': 'barney', 'active': false });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.takeWhile(users, ['active', false]);\n * // => objects for ['barney', 'fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.takeWhile(users, 'active');\n * // => []\n */\n function takeWhile(array, predicate) {\n return (array && array.length)\n ? baseWhile(array, getIteratee(predicate, 3))\n : [];\n }\n\n /**\n * Creates an array of unique values, in order, from all given arrays using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.union([2], [1, 2]);\n * // => [2, 1]\n */\n var union = baseRest(function(arrays) {\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true));\n });\n\n /**\n * This method is like `_.union` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which uniqueness is computed. Result values are chosen from the first\n * array in which the value occurs. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * _.unionBy([2.1], [1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.unionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n var unionBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.union` except that it accepts `comparator` which\n * is invoked to compare elements of `arrays`. Result values are chosen from\n * the first array in which the value occurs. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of combined values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.unionWith(objects, others, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var unionWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true), undefined, comparator);\n });\n\n /**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\n function uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `iteratee` which is\n * invoked for each element in `array` to generate the criterion by which\n * uniqueness is computed. The order of result values is determined by the\n * order they occur in the array. The iteratee is invoked with one argument:\n * (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniqBy([2.1, 1.2, 2.3], Math.floor);\n * // => [2.1, 1.2]\n *\n * // The `_.property` iteratee shorthand.\n * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 1 }, { 'x': 2 }]\n */\n function uniqBy(array, iteratee) {\n return (array && array.length) ? baseUniq(array, getIteratee(iteratee, 2)) : [];\n }\n\n /**\n * This method is like `_.uniq` except that it accepts `comparator` which\n * is invoked to compare elements of `array`. The order of result values is\n * determined by the order they occur in the array.The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.uniqWith(objects, _.isEqual);\n * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]\n */\n function uniqWith(array, comparator) {\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return (array && array.length) ? baseUniq(array, undefined, comparator) : [];\n }\n\n /**\n * This method is like `_.zip` except that it accepts an array of grouped\n * elements and creates an array regrouping the elements to their pre-zip\n * configuration.\n *\n * @static\n * @memberOf _\n * @since 1.2.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n *\n * _.unzip(zipped);\n * // => [['a', 'b'], [1, 2], [true, false]]\n */\n function unzip(array) {\n if (!(array && array.length)) {\n return [];\n }\n var length = 0;\n array = arrayFilter(array, function(group) {\n if (isArrayLikeObject(group)) {\n length = nativeMax(group.length, length);\n return true;\n }\n });\n return baseTimes(length, function(index) {\n return arrayMap(array, baseProperty(index));\n });\n }\n\n /**\n * This method is like `_.unzip` except that it accepts `iteratee` to specify\n * how regrouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {Array} array The array of grouped elements to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * regrouped values.\n * @returns {Array} Returns the new array of regrouped elements.\n * @example\n *\n * var zipped = _.zip([1, 2], [10, 20], [100, 200]);\n * // => [[1, 10, 100], [2, 20, 200]]\n *\n * _.unzipWith(zipped, _.add);\n * // => [3, 30, 300]\n */\n function unzipWith(array, iteratee) {\n if (!(array && array.length)) {\n return [];\n }\n var result = unzip(array);\n if (iteratee == null) {\n return result;\n }\n return arrayMap(result, function(group) {\n return apply(iteratee, undefined, group);\n });\n }\n\n /**\n * Creates an array excluding all given values using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons.\n *\n * **Note:** Unlike `_.pull`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {...*} [values] The values to exclude.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.xor\n * @example\n *\n * _.without([2, 1, 2, 3], 1, 2);\n * // => [3]\n */\n var without = baseRest(function(array, values) {\n return isArrayLikeObject(array)\n ? baseDifference(array, values)\n : [];\n });\n\n /**\n * Creates an array of unique values that is the\n * [symmetric difference](https://en.wikipedia.org/wiki/Symmetric_difference)\n * of the given arrays. The order of result values is determined by the order\n * they occur in the arrays.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @returns {Array} Returns the new array of filtered values.\n * @see _.difference, _.without\n * @example\n *\n * _.xor([2, 1], [2, 3]);\n * // => [1, 3]\n */\n var xor = baseRest(function(arrays) {\n return baseXor(arrayFilter(arrays, isArrayLikeObject));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `iteratee` which is\n * invoked for each element of each `arrays` to generate the criterion by\n * which by which they're compared. The order of result values is determined\n * by the order they occur in the arrays. The iteratee is invoked with one\n * argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * _.xorBy([2.1, 1.2], [2.3, 3.4], Math.floor);\n * // => [1.2, 3.4]\n *\n * // The `_.property` iteratee shorthand.\n * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x');\n * // => [{ 'x': 2 }]\n */\n var xorBy = baseRest(function(arrays) {\n var iteratee = last(arrays);\n if (isArrayLikeObject(iteratee)) {\n iteratee = undefined;\n }\n return baseXor(arrayFilter(arrays, isArrayLikeObject), getIteratee(iteratee, 2));\n });\n\n /**\n * This method is like `_.xor` except that it accepts `comparator` which is\n * invoked to compare elements of `arrays`. The order of result values is\n * determined by the order they occur in the arrays. The comparator is invoked\n * with two arguments: (arrVal, othVal).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Array\n * @param {...Array} [arrays] The arrays to inspect.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of filtered values.\n * @example\n *\n * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }];\n * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }];\n *\n * _.xorWith(objects, others, _.isEqual);\n * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }]\n */\n var xorWith = baseRest(function(arrays) {\n var comparator = last(arrays);\n comparator = typeof comparator == 'function' ? comparator : undefined;\n return baseXor(arrayFilter(arrays, isArrayLikeObject), undefined, comparator);\n });\n\n /**\n * Creates an array of grouped elements, the first of which contains the\n * first elements of the given arrays, the second of which contains the\n * second elements of the given arrays, and so on.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zip(['a', 'b'], [1, 2], [true, false]);\n * // => [['a', 1, true], ['b', 2, false]]\n */\n var zip = baseRest(unzip);\n\n /**\n * This method is like `_.fromPairs` except that it accepts two arrays,\n * one of property identifiers and one of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 0.4.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObject(['a', 'b'], [1, 2]);\n * // => { 'a': 1, 'b': 2 }\n */\n function zipObject(props, values) {\n return baseZipObject(props || [], values || [], assignValue);\n }\n\n /**\n * This method is like `_.zipObject` except that it supports property paths.\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Array\n * @param {Array} [props=[]] The property identifiers.\n * @param {Array} [values=[]] The property values.\n * @returns {Object} Returns the new object.\n * @example\n *\n * _.zipObjectDeep(['a.b[0].c', 'a.b[1].d'], [1, 2]);\n * // => { 'a': { 'b': [{ 'c': 1 }, { 'd': 2 }] } }\n */\n function zipObjectDeep(props, values) {\n return baseZipObject(props || [], values || [], baseSet);\n }\n\n /**\n * This method is like `_.zip` except that it accepts `iteratee` to specify\n * how grouped values should be combined. The iteratee is invoked with the\n * elements of each group: (...group).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Array\n * @param {...Array} [arrays] The arrays to process.\n * @param {Function} [iteratee=_.identity] The function to combine\n * grouped values.\n * @returns {Array} Returns the new array of grouped elements.\n * @example\n *\n * _.zipWith([1, 2], [10, 20], [100, 200], function(a, b, c) {\n * return a + b + c;\n * });\n * // => [111, 222]\n */\n var zipWith = baseRest(function(arrays) {\n var length = arrays.length,\n iteratee = length > 1 ? arrays[length - 1] : undefined;\n\n iteratee = typeof iteratee == 'function' ? (arrays.pop(), iteratee) : undefined;\n return unzipWith(arrays, iteratee);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates a `lodash` wrapper instance that wraps `value` with explicit method\n * chain sequences enabled. The result of such sequences must be unwrapped\n * with `_#value`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Seq\n * @param {*} value The value to wrap.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'pebbles', 'age': 1 }\n * ];\n *\n * var youngest = _\n * .chain(users)\n * .sortBy('age')\n * .map(function(o) {\n * return o.user + ' is ' + o.age;\n * })\n * .head()\n * .value();\n * // => 'pebbles is 1'\n */\n function chain(value) {\n var result = lodash(value);\n result.__chain__ = true;\n return result;\n }\n\n /**\n * This method invokes `interceptor` and returns `value`. The interceptor\n * is invoked with one argument; (value). The purpose of this method is to\n * \"tap into\" a method chain sequence in order to modify intermediate results.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns `value`.\n * @example\n *\n * _([1, 2, 3])\n * .tap(function(array) {\n * // Mutate input array.\n * array.pop();\n * })\n * .reverse()\n * .value();\n * // => [2, 1]\n */\n function tap(value, interceptor) {\n interceptor(value);\n return value;\n }\n\n /**\n * This method is like `_.tap` except that it returns the result of `interceptor`.\n * The purpose of this method is to \"pass thru\" values replacing intermediate\n * results in a method chain sequence.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Seq\n * @param {*} value The value to provide to `interceptor`.\n * @param {Function} interceptor The function to invoke.\n * @returns {*} Returns the result of `interceptor`.\n * @example\n *\n * _(' abc ')\n * .chain()\n * .trim()\n * .thru(function(value) {\n * return [value];\n * })\n * .value();\n * // => ['abc']\n */\n function thru(value, interceptor) {\n return interceptor(value);\n }\n\n /**\n * This method is the wrapper version of `_.at`.\n *\n * @name at\n * @memberOf _\n * @since 1.0.0\n * @category Seq\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _(object).at(['a[0].b.c', 'a[1]']).value();\n * // => [3, 4]\n */\n var wrapperAt = flatRest(function(paths) {\n var length = paths.length,\n start = length ? paths[0] : 0,\n value = this.__wrapped__,\n interceptor = function(object) { return baseAt(object, paths); };\n\n if (length > 1 || this.__actions__.length ||\n !(value instanceof LazyWrapper) || !isIndex(start)) {\n return this.thru(interceptor);\n }\n value = value.slice(start, +start + (length ? 1 : 0));\n value.__actions__.push({\n 'func': thru,\n 'args': [interceptor],\n 'thisArg': undefined\n });\n return new LodashWrapper(value, this.__chain__).thru(function(array) {\n if (length && !array.length) {\n array.push(undefined);\n }\n return array;\n });\n });\n\n /**\n * Creates a `lodash` wrapper instance with explicit method chain sequences enabled.\n *\n * @name chain\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 40 }\n * ];\n *\n * // A sequence without explicit chaining.\n * _(users).head();\n * // => { 'user': 'barney', 'age': 36 }\n *\n * // A sequence with explicit chaining.\n * _(users)\n * .chain()\n * .head()\n * .pick('user')\n * .value();\n * // => { 'user': 'barney' }\n */\n function wrapperChain() {\n return chain(this);\n }\n\n /**\n * Executes the chain sequence and returns the wrapped result.\n *\n * @name commit\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2];\n * var wrapped = _(array).push(3);\n *\n * console.log(array);\n * // => [1, 2]\n *\n * wrapped = wrapped.commit();\n * console.log(array);\n * // => [1, 2, 3]\n *\n * wrapped.last();\n * // => 3\n *\n * console.log(array);\n * // => [1, 2, 3]\n */\n function wrapperCommit() {\n return new LodashWrapper(this.value(), this.__chain__);\n }\n\n /**\n * Gets the next value on a wrapped object following the\n * [iterator protocol](https://mdn.io/iteration_protocols#iterator).\n *\n * @name next\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the next iterator value.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 1 }\n *\n * wrapped.next();\n * // => { 'done': false, 'value': 2 }\n *\n * wrapped.next();\n * // => { 'done': true, 'value': undefined }\n */\n function wrapperNext() {\n if (this.__values__ === undefined) {\n this.__values__ = toArray(this.value());\n }\n var done = this.__index__ >= this.__values__.length,\n value = done ? undefined : this.__values__[this.__index__++];\n\n return { 'done': done, 'value': value };\n }\n\n /**\n * Enables the wrapper to be iterable.\n *\n * @name Symbol.iterator\n * @memberOf _\n * @since 4.0.0\n * @category Seq\n * @returns {Object} Returns the wrapper object.\n * @example\n *\n * var wrapped = _([1, 2]);\n *\n * wrapped[Symbol.iterator]() === wrapped;\n * // => true\n *\n * Array.from(wrapped);\n * // => [1, 2]\n */\n function wrapperToIterator() {\n return this;\n }\n\n /**\n * Creates a clone of the chain sequence planting `value` as the wrapped value.\n *\n * @name plant\n * @memberOf _\n * @since 3.2.0\n * @category Seq\n * @param {*} value The value to plant.\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var wrapped = _([1, 2]).map(square);\n * var other = wrapped.plant([3, 4]);\n *\n * other.value();\n * // => [9, 16]\n *\n * wrapped.value();\n * // => [1, 4]\n */\n function wrapperPlant(value) {\n var result,\n parent = this;\n\n while (parent instanceof baseLodash) {\n var clone = wrapperClone(parent);\n clone.__index__ = 0;\n clone.__values__ = undefined;\n if (result) {\n previous.__wrapped__ = clone;\n } else {\n result = clone;\n }\n var previous = clone;\n parent = parent.__wrapped__;\n }\n previous.__wrapped__ = value;\n return result;\n }\n\n /**\n * This method is the wrapper version of `_.reverse`.\n *\n * **Note:** This method mutates the wrapped array.\n *\n * @name reverse\n * @memberOf _\n * @since 0.1.0\n * @category Seq\n * @returns {Object} Returns the new `lodash` wrapper instance.\n * @example\n *\n * var array = [1, 2, 3];\n *\n * _(array).reverse().value()\n * // => [3, 2, 1]\n *\n * console.log(array);\n * // => [3, 2, 1]\n */\n function wrapperReverse() {\n var value = this.__wrapped__;\n if (value instanceof LazyWrapper) {\n var wrapped = value;\n if (this.__actions__.length) {\n wrapped = new LazyWrapper(this);\n }\n wrapped = wrapped.reverse();\n wrapped.__actions__.push({\n 'func': thru,\n 'args': [reverse],\n 'thisArg': undefined\n });\n return new LodashWrapper(wrapped, this.__chain__);\n }\n return this.thru(reverse);\n }\n\n /**\n * Executes the chain sequence to resolve the unwrapped value.\n *\n * @name value\n * @memberOf _\n * @since 0.1.0\n * @alias toJSON, valueOf\n * @category Seq\n * @returns {*} Returns the resolved unwrapped value.\n * @example\n *\n * _([1, 2, 3]).value();\n * // => [1, 2, 3]\n */\n function wrapperValue() {\n return baseWrapperValue(this.__wrapped__, this.__actions__);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the number of times the key was returned by `iteratee`. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.countBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': 1, '6': 2 }\n *\n * // The `_.property` iteratee shorthand.\n * _.countBy(['one', 'two', 'three'], 'length');\n * // => { '3': 2, '5': 1 }\n */\n var countBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n ++result[key];\n } else {\n baseAssignValue(result, key, 1);\n }\n });\n\n /**\n * Checks if `predicate` returns truthy for **all** elements of `collection`.\n * Iteration is stopped once `predicate` returns falsey. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * **Note:** This method returns `true` for\n * [empty collections](https://en.wikipedia.org/wiki/Empty_set) because\n * [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of\n * elements of empty collections.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if all elements pass the predicate check,\n * else `false`.\n * @example\n *\n * _.every([true, 1, null, 'yes'], Boolean);\n * // => false\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.every(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.every(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.every(users, 'active');\n * // => false\n */\n function every(collection, predicate, guard) {\n var func = isArray(collection) ? arrayEvery : baseEvery;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning an array of all elements\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * **Note:** Unlike `_.remove`, this method returns a new array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.reject\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false }\n * ];\n *\n * _.filter(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.filter(users, { 'age': 36, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.filter(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.filter(users, 'active');\n * // => objects for ['barney']\n *\n * // Combining several predicates using `_.overEvery` or `_.overSome`.\n * _.filter(users, _.overSome([{ 'age': 36 }, ['age', 40]]));\n * // => objects for ['fred', 'barney']\n */\n function filter(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': true },\n * { 'user': 'fred', 'age': 40, 'active': false },\n * { 'user': 'pebbles', 'age': 1, 'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\n var find = createFind(findIndex);\n\n /**\n * This method is like `_.find` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=collection.length-1] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * _.findLast([1, 2, 3, 4], function(n) {\n * return n % 2 == 1;\n * });\n * // => 3\n */\n var findLast = createFind(findLastIndex);\n\n /**\n * Creates a flattened array of values by running each element in `collection`\n * thru `iteratee` and flattening the mapped results. The iteratee is invoked\n * with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [n, n];\n * }\n *\n * _.flatMap([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMap(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), 1);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDeep([1, 2], duplicate);\n * // => [1, 1, 2, 2]\n */\n function flatMapDeep(collection, iteratee) {\n return baseFlatten(map(collection, iteratee), INFINITY);\n }\n\n /**\n * This method is like `_.flatMap` except that it recursively flattens the\n * mapped results up to `depth` times.\n *\n * @static\n * @memberOf _\n * @since 4.7.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {number} [depth=1] The maximum recursion depth.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * function duplicate(n) {\n * return [[[n, n]]];\n * }\n *\n * _.flatMapDepth([1, 2], duplicate, 2);\n * // => [[1, 1], [2, 2]]\n */\n function flatMapDepth(collection, iteratee, depth) {\n depth = depth === undefined ? 1 : toInteger(depth);\n return baseFlatten(map(collection, iteratee), depth);\n }\n\n /**\n * Iterates over elements of `collection` and invokes `iteratee` for each element.\n * The iteratee is invoked with three arguments: (value, index|key, collection).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * **Note:** As with other \"Collections\" methods, objects with a \"length\"\n * property are iterated like arrays. To avoid this behavior use `_.forIn`\n * or `_.forOwn` for object iteration.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @alias each\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEachRight\n * @example\n *\n * _.forEach([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `1` then `2`.\n *\n * _.forEach({ 'a': 1, 'b': 2 }, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forEach(collection, iteratee) {\n var func = isArray(collection) ? arrayEach : baseEach;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forEach` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @alias eachRight\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n * @see _.forEach\n * @example\n *\n * _.forEachRight([1, 2], function(value) {\n * console.log(value);\n * });\n * // => Logs `2` then `1`.\n */\n function forEachRight(collection, iteratee) {\n var func = isArray(collection) ? arrayEachRight : baseEachRight;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The order of grouped values\n * is determined by the order they occur in `collection`. The corresponding\n * value of each key is an array of elements responsible for generating the\n * key. The iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * _.groupBy([6.1, 4.2, 6.3], Math.floor);\n * // => { '4': [4.2], '6': [6.1, 6.3] }\n *\n * // The `_.property` iteratee shorthand.\n * _.groupBy(['one', 'two', 'three'], 'length');\n * // => { '3': ['one', 'two'], '5': ['three'] }\n */\n var groupBy = createAggregator(function(result, value, key) {\n if (hasOwnProperty.call(result, key)) {\n result[key].push(value);\n } else {\n baseAssignValue(result, key, [value]);\n }\n });\n\n /**\n * Checks if `value` is in `collection`. If `collection` is a string, it's\n * checked for a substring of `value`, otherwise\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * is used for equality comparisons. If `fromIndex` is negative, it's used as\n * the offset from the end of `collection`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @param {*} value The value to search for.\n * @param {number} [fromIndex=0] The index to search from.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {boolean} Returns `true` if `value` is found, else `false`.\n * @example\n *\n * _.includes([1, 2, 3], 1);\n * // => true\n *\n * _.includes([1, 2, 3], 1, 2);\n * // => false\n *\n * _.includes({ 'a': 1, 'b': 2 }, 1);\n * // => true\n *\n * _.includes('abcd', 'bc');\n * // => true\n */\n function includes(collection, value, fromIndex, guard) {\n collection = isArrayLike(collection) ? collection : values(collection);\n fromIndex = (fromIndex && !guard) ? toInteger(fromIndex) : 0;\n\n var length = collection.length;\n if (fromIndex < 0) {\n fromIndex = nativeMax(length + fromIndex, 0);\n }\n return isString(collection)\n ? (fromIndex <= length && collection.indexOf(value, fromIndex) > -1)\n : (!!length && baseIndexOf(collection, value, fromIndex) > -1);\n }\n\n /**\n * Invokes the method at `path` of each element in `collection`, returning\n * an array of the results of each invoked method. Any additional arguments\n * are provided to each invoked method. If `path` is a function, it's invoked\n * for, and `this` bound to, each element in `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array|Function|string} path The path of the method to invoke or\n * the function invoked per iteration.\n * @param {...*} [args] The arguments to invoke each method with.\n * @returns {Array} Returns the array of results.\n * @example\n *\n * _.invokeMap([[5, 1, 7], [3, 2, 1]], 'sort');\n * // => [[1, 5, 7], [1, 2, 3]]\n *\n * _.invokeMap([123, 456], String.prototype.split, '');\n * // => [['1', '2', '3'], ['4', '5', '6']]\n */\n var invokeMap = baseRest(function(collection, path, args) {\n var index = -1,\n isFunc = typeof path == 'function',\n result = isArrayLike(collection) ? Array(collection.length) : [];\n\n baseEach(collection, function(value) {\n result[++index] = isFunc ? apply(path, value, args) : baseInvoke(value, path, args);\n });\n return result;\n });\n\n /**\n * Creates an object composed of keys generated from the results of running\n * each element of `collection` thru `iteratee`. The corresponding value of\n * each key is the last element responsible for generating the key. The\n * iteratee is invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The iteratee to transform keys.\n * @returns {Object} Returns the composed aggregate object.\n * @example\n *\n * var array = [\n * { 'dir': 'left', 'code': 97 },\n * { 'dir': 'right', 'code': 100 }\n * ];\n *\n * _.keyBy(array, function(o) {\n * return String.fromCharCode(o.code);\n * });\n * // => { 'a': { 'dir': 'left', 'code': 97 }, 'd': { 'dir': 'right', 'code': 100 } }\n *\n * _.keyBy(array, 'dir');\n * // => { 'left': { 'dir': 'left', 'code': 97 }, 'right': { 'dir': 'right', 'code': 100 } }\n */\n var keyBy = createAggregator(function(result, value, key) {\n baseAssignValue(result, key, value);\n });\n\n /**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n * { 'user': 'barney' },\n * { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\n function map(collection, iteratee) {\n var func = isArray(collection) ? arrayMap : baseMap;\n return func(collection, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.sortBy` except that it allows specifying the sort\n * orders of the iteratees to sort by. If `orders` is unspecified, all values\n * are sorted in ascending order. Otherwise, specify an order of \"desc\" for\n * descending or \"asc\" for ascending sort order of corresponding values.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Array[]|Function[]|Object[]|string[]} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @param {string[]} [orders] The sort orders of `iteratees`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.reduce`.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 34 },\n * { 'user': 'fred', 'age': 40 },\n * { 'user': 'barney', 'age': 36 }\n * ];\n *\n * // Sort by `user` in ascending order and by `age` in descending order.\n * _.orderBy(users, ['user', 'age'], ['asc', 'desc']);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 40]]\n */\n function orderBy(collection, iteratees, orders, guard) {\n if (collection == null) {\n return [];\n }\n if (!isArray(iteratees)) {\n iteratees = iteratees == null ? [] : [iteratees];\n }\n orders = guard ? undefined : orders;\n if (!isArray(orders)) {\n orders = orders == null ? [] : [orders];\n }\n return baseOrderBy(collection, iteratees, orders);\n }\n\n /**\n * Creates an array of elements split into two groups, the first of which\n * contains elements `predicate` returns truthy for, the second of which\n * contains elements `predicate` returns falsey for. The predicate is\n * invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the array of grouped elements.\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true },\n * { 'user': 'pebbles', 'age': 1, 'active': false }\n * ];\n *\n * _.partition(users, function(o) { return o.active; });\n * // => objects for [['fred'], ['barney', 'pebbles']]\n *\n * // The `_.matches` iteratee shorthand.\n * _.partition(users, { 'age': 1, 'active': false });\n * // => objects for [['pebbles'], ['barney', 'fred']]\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.partition(users, ['active', false]);\n * // => objects for [['barney', 'pebbles'], ['fred']]\n *\n * // The `_.property` iteratee shorthand.\n * _.partition(users, 'active');\n * // => objects for [['fred'], ['barney', 'pebbles']]\n */\n var partition = createAggregator(function(result, value, key) {\n result[key ? 0 : 1].push(value);\n }, function() { return [[], []]; });\n\n /**\n * Reduces `collection` to a value which is the accumulated result of running\n * each element in `collection` thru `iteratee`, where each successive\n * invocation is supplied the return value of the previous. If `accumulator`\n * is not given, the first element of `collection` is used as the initial\n * value. The iteratee is invoked with four arguments:\n * (accumulator, value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.reduce`, `_.reduceRight`, and `_.transform`.\n *\n * The guarded methods are:\n * `assign`, `defaults`, `defaultsDeep`, `includes`, `merge`, `orderBy`,\n * and `sortBy`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduceRight\n * @example\n *\n * _.reduce([1, 2], function(sum, n) {\n * return sum + n;\n * }, 0);\n * // => 3\n *\n * _.reduce({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * return result;\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] } (iteration order is not guaranteed)\n */\n function reduce(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduce : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEach);\n }\n\n /**\n * This method is like `_.reduce` except that it iterates over elements of\n * `collection` from right to left.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @returns {*} Returns the accumulated value.\n * @see _.reduce\n * @example\n *\n * var array = [[0, 1], [2, 3], [4, 5]];\n *\n * _.reduceRight(array, function(flattened, other) {\n * return flattened.concat(other);\n * }, []);\n * // => [4, 5, 2, 3, 0, 1]\n */\n function reduceRight(collection, iteratee, accumulator) {\n var func = isArray(collection) ? arrayReduceRight : baseReduce,\n initAccum = arguments.length < 3;\n\n return func(collection, getIteratee(iteratee, 4), accumulator, initAccum, baseEachRight);\n }\n\n /**\n * The opposite of `_.filter`; this method returns the elements of `collection`\n * that `predicate` does **not** return truthy for.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n * @see _.filter\n * @example\n *\n * var users = [\n * { 'user': 'barney', 'age': 36, 'active': false },\n * { 'user': 'fred', 'age': 40, 'active': true }\n * ];\n *\n * _.reject(users, function(o) { return !o.active; });\n * // => objects for ['fred']\n *\n * // The `_.matches` iteratee shorthand.\n * _.reject(users, { 'age': 40, 'active': true });\n * // => objects for ['barney']\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.reject(users, ['active', false]);\n * // => objects for ['fred']\n *\n * // The `_.property` iteratee shorthand.\n * _.reject(users, 'active');\n * // => objects for ['barney']\n */\n function reject(collection, predicate) {\n var func = isArray(collection) ? arrayFilter : baseFilter;\n return func(collection, negate(getIteratee(predicate, 3)));\n }\n\n /**\n * Gets a random element from `collection`.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @returns {*} Returns the random element.\n * @example\n *\n * _.sample([1, 2, 3, 4]);\n * // => 2\n */\n function sample(collection) {\n var func = isArray(collection) ? arraySample : baseSample;\n return func(collection);\n }\n\n /**\n * Gets `n` random elements at unique keys from `collection` up to the\n * size of `collection`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Collection\n * @param {Array|Object} collection The collection to sample.\n * @param {number} [n=1] The number of elements to sample.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the random elements.\n * @example\n *\n * _.sampleSize([1, 2, 3], 2);\n * // => [3, 1]\n *\n * _.sampleSize([1, 2, 3], 4);\n * // => [2, 3, 1]\n */\n function sampleSize(collection, n, guard) {\n if ((guard ? isIterateeCall(collection, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n var func = isArray(collection) ? arraySampleSize : baseSampleSize;\n return func(collection, n);\n }\n\n /**\n * Creates an array of shuffled values, using a version of the\n * [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher-Yates_shuffle).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to shuffle.\n * @returns {Array} Returns the new shuffled array.\n * @example\n *\n * _.shuffle([1, 2, 3, 4]);\n * // => [4, 1, 3, 2]\n */\n function shuffle(collection) {\n var func = isArray(collection) ? arrayShuffle : baseShuffle;\n return func(collection);\n }\n\n /**\n * Gets the size of `collection` by returning its length for array-like\n * values or the number of own enumerable string keyed properties for objects.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object|string} collection The collection to inspect.\n * @returns {number} Returns the collection size.\n * @example\n *\n * _.size([1, 2, 3]);\n * // => 3\n *\n * _.size({ 'a': 1, 'b': 2 });\n * // => 2\n *\n * _.size('pebbles');\n * // => 7\n */\n function size(collection) {\n if (collection == null) {\n return 0;\n }\n if (isArrayLike(collection)) {\n return isString(collection) ? stringSize(collection) : collection.length;\n }\n var tag = getTag(collection);\n if (tag == mapTag || tag == setTag) {\n return collection.size;\n }\n return baseKeys(collection).length;\n }\n\n /**\n * Checks if `predicate` returns truthy for **any** element of `collection`.\n * Iteration is stopped once `predicate` returns truthy. The predicate is\n * invoked with three arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n * else `false`.\n * @example\n *\n * _.some([null, 0, 'yes', false], Boolean);\n * // => true\n *\n * var users = [\n * { 'user': 'barney', 'active': true },\n * { 'user': 'fred', 'active': false }\n * ];\n *\n * // The `_.matches` iteratee shorthand.\n * _.some(users, { 'user': 'barney', 'active': false });\n * // => false\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.some(users, ['active', false]);\n * // => true\n *\n * // The `_.property` iteratee shorthand.\n * _.some(users, 'active');\n * // => true\n */\n function some(collection, predicate, guard) {\n var func = isArray(collection) ? arraySome : baseSome;\n if (guard && isIterateeCall(collection, predicate, guard)) {\n predicate = undefined;\n }\n return func(collection, getIteratee(predicate, 3));\n }\n\n /**\n * Creates an array of elements, sorted in ascending order by the results of\n * running each element in a collection thru each iteratee. This method\n * performs a stable sort, that is, it preserves the original sort order of\n * equal elements. The iteratees are invoked with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {...(Function|Function[])} [iteratees=[_.identity]]\n * The iteratees to sort by.\n * @returns {Array} Returns the new sorted array.\n * @example\n *\n * var users = [\n * { 'user': 'fred', 'age': 48 },\n * { 'user': 'barney', 'age': 36 },\n * { 'user': 'fred', 'age': 30 },\n * { 'user': 'barney', 'age': 34 }\n * ];\n *\n * _.sortBy(users, [function(o) { return o.user; }]);\n * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]\n *\n * _.sortBy(users, ['user', 'age']);\n * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]\n */\n var sortBy = baseRest(function(collection, iteratees) {\n if (collection == null) {\n return [];\n }\n var length = iteratees.length;\n if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) {\n iteratees = [];\n } else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) {\n iteratees = [iteratees[0]];\n }\n return baseOrderBy(collection, baseFlatten(iteratees, 1), []);\n });\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\n var now = ctxNow || function() {\n return root.Date.now();\n };\n\n /*------------------------------------------------------------------------*/\n\n /**\n * The opposite of `_.before`; this method creates a function that invokes\n * `func` once it's called `n` or more times.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {number} n The number of calls before `func` is invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var saves = ['profile', 'settings'];\n *\n * var done = _.after(saves.length, function() {\n * console.log('done saving!');\n * });\n *\n * _.forEach(saves, function(type) {\n * asyncSave({ 'type': type, 'complete': done });\n * });\n * // => Logs 'done saving!' after the two async saves have completed.\n */\n function after(n, func) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n < 1) {\n return func.apply(this, arguments);\n }\n };\n }\n\n /**\n * Creates a function that invokes `func`, with up to `n` arguments,\n * ignoring any additional arguments.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @param {number} [n=func.length] The arity cap.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.ary(parseInt, 1));\n * // => [6, 8, 10]\n */\n function ary(func, n, guard) {\n n = guard ? undefined : n;\n n = (func && n == null) ? func.length : n;\n return createWrap(func, WRAP_ARY_FLAG, undefined, undefined, undefined, undefined, n);\n }\n\n /**\n * Creates a function that invokes `func`, with the `this` binding and arguments\n * of the created function, while it's called less than `n` times. Subsequent\n * calls to the created function return the result of the last `func` invocation.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {number} n The number of calls at which `func` is no longer invoked.\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * jQuery(element).on('click', _.before(5, addContactToList));\n * // => Allows adding up to 4 contacts to the list.\n */\n function before(n, func) {\n var result;\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n n = toInteger(n);\n return function() {\n if (--n > 0) {\n result = func.apply(this, arguments);\n }\n if (n <= 1) {\n func = undefined;\n }\n return result;\n };\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of `thisArg`\n * and `partials` prepended to the arguments it receives.\n *\n * The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for partially applied arguments.\n *\n * **Note:** Unlike native `Function#bind`, this method doesn't set the \"length\"\n * property of bound functions.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to bind.\n * @param {*} thisArg The `this` binding of `func`.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * function greet(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n *\n * var object = { 'user': 'fred' };\n *\n * var bound = _.bind(greet, object, 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bind(greet, object, _, '!');\n * bound('hi');\n * // => 'hi fred!'\n */\n var bind = baseRest(function(func, thisArg, partials) {\n var bitmask = WRAP_BIND_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bind));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(func, bitmask, thisArg, partials, holders);\n });\n\n /**\n * Creates a function that invokes the method at `object[key]` with `partials`\n * prepended to the arguments it receives.\n *\n * This method differs from `_.bind` by allowing bound functions to reference\n * methods that may be redefined or don't yet exist. See\n * [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)\n * for more details.\n *\n * The `_.bindKey.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Function\n * @param {Object} object The object to invoke the method on.\n * @param {string} key The key of the method.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new bound function.\n * @example\n *\n * var object = {\n * 'user': 'fred',\n * 'greet': function(greeting, punctuation) {\n * return greeting + ' ' + this.user + punctuation;\n * }\n * };\n *\n * var bound = _.bindKey(object, 'greet', 'hi');\n * bound('!');\n * // => 'hi fred!'\n *\n * object.greet = function(greeting, punctuation) {\n * return greeting + 'ya ' + this.user + punctuation;\n * };\n *\n * bound('!');\n * // => 'hiya fred!'\n *\n * // Bound with placeholders.\n * var bound = _.bindKey(object, 'greet', _, '!');\n * bound('hi');\n * // => 'hiya fred!'\n */\n var bindKey = baseRest(function(object, key, partials) {\n var bitmask = WRAP_BIND_FLAG | WRAP_BIND_KEY_FLAG;\n if (partials.length) {\n var holders = replaceHolders(partials, getHolder(bindKey));\n bitmask |= WRAP_PARTIAL_FLAG;\n }\n return createWrap(key, bitmask, object, partials, holders);\n });\n\n /**\n * Creates a function that accepts arguments of `func` and either invokes\n * `func` returning its result, if at least `arity` number of arguments have\n * been provided, or returns a function that accepts the remaining `func`\n * arguments, and so on. The arity of `func` may be specified if `func.length`\n * is not sufficient.\n *\n * The `_.curry.placeholder` value, which defaults to `_` in monolithic builds,\n * may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curry(abc);\n *\n * curried(1)(2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2)(3);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(1)(_, 3)(2);\n * // => [1, 2, 3]\n */\n function curry(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curry.placeholder;\n return result;\n }\n\n /**\n * This method is like `_.curry` except that arguments are applied to `func`\n * in the manner of `_.partialRight` instead of `_.partial`.\n *\n * The `_.curryRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for provided arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of curried functions.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to curry.\n * @param {number} [arity=func.length] The arity of `func`.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the new curried function.\n * @example\n *\n * var abc = function(a, b, c) {\n * return [a, b, c];\n * };\n *\n * var curried = _.curryRight(abc);\n *\n * curried(3)(2)(1);\n * // => [1, 2, 3]\n *\n * curried(2, 3)(1);\n * // => [1, 2, 3]\n *\n * curried(1, 2, 3);\n * // => [1, 2, 3]\n *\n * // Curried with placeholders.\n * curried(3)(1, _)(2);\n * // => [1, 2, 3]\n */\n function curryRight(func, arity, guard) {\n arity = guard ? undefined : arity;\n var result = createWrap(func, WRAP_CURRY_RIGHT_FLAG, undefined, undefined, undefined, undefined, undefined, arity);\n result.placeholder = curryRight.placeholder;\n return result;\n }\n\n /**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\n function debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n }\n\n /**\n * Defers invoking the `func` until the current call stack has cleared. Any\n * additional arguments are provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to defer.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.defer(function(text) {\n * console.log(text);\n * }, 'deferred');\n * // => Logs 'deferred' after one millisecond.\n */\n var defer = baseRest(function(func, args) {\n return baseDelay(func, 1, args);\n });\n\n /**\n * Invokes `func` after `wait` milliseconds. Any additional arguments are\n * provided to `func` when it's invoked.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to delay.\n * @param {number} wait The number of milliseconds to delay invocation.\n * @param {...*} [args] The arguments to invoke `func` with.\n * @returns {number} Returns the timer id.\n * @example\n *\n * _.delay(function(text) {\n * console.log(text);\n * }, 1000, 'later');\n * // => Logs 'later' after one second.\n */\n var delay = baseRest(function(func, wait, args) {\n return baseDelay(func, toNumber(wait) || 0, args);\n });\n\n /**\n * Creates a function that invokes `func` with arguments reversed.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to flip arguments for.\n * @returns {Function} Returns the new flipped function.\n * @example\n *\n * var flipped = _.flip(function() {\n * return _.toArray(arguments);\n * });\n *\n * flipped('a', 'b', 'c', 'd');\n * // => ['d', 'c', 'b', 'a']\n */\n function flip(func) {\n return createWrap(func, WRAP_FLIP_FLAG);\n }\n\n /**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\n function memoize(func, resolver) {\n if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n var memoized = function() {\n var args = arguments,\n key = resolver ? resolver.apply(this, args) : args[0],\n cache = memoized.cache;\n\n if (cache.has(key)) {\n return cache.get(key);\n }\n var result = func.apply(this, args);\n memoized.cache = cache.set(key, result) || cache;\n return result;\n };\n memoized.cache = new (memoize.Cache || MapCache);\n return memoized;\n }\n\n // Expose `MapCache`.\n memoize.Cache = MapCache;\n\n /**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\n function negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n }\n\n /**\n * Creates a function that is restricted to invoking `func` once. Repeat calls\n * to the function return the value of the first invocation. The `func` is\n * invoked with the `this` binding and arguments of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to restrict.\n * @returns {Function} Returns the new restricted function.\n * @example\n *\n * var initialize = _.once(createApplication);\n * initialize();\n * initialize();\n * // => `createApplication` is invoked once\n */\n function once(func) {\n return before(2, func);\n }\n\n /**\n * Creates a function that invokes `func` with its arguments transformed.\n *\n * @static\n * @since 4.0.0\n * @memberOf _\n * @category Function\n * @param {Function} func The function to wrap.\n * @param {...(Function|Function[])} [transforms=[_.identity]]\n * The argument transforms.\n * @returns {Function} Returns the new function.\n * @example\n *\n * function doubled(n) {\n * return n * 2;\n * }\n *\n * function square(n) {\n * return n * n;\n * }\n *\n * var func = _.overArgs(function(x, y) {\n * return [x, y];\n * }, [square, doubled]);\n *\n * func(9, 3);\n * // => [81, 6]\n *\n * func(10, 5);\n * // => [100, 10]\n */\n var overArgs = castRest(function(func, transforms) {\n transforms = (transforms.length == 1 && isArray(transforms[0]))\n ? arrayMap(transforms[0], baseUnary(getIteratee()))\n : arrayMap(baseFlatten(transforms, 1), baseUnary(getIteratee()));\n\n var funcsLength = transforms.length;\n return baseRest(function(args) {\n var index = -1,\n length = nativeMin(args.length, funcsLength);\n\n while (++index < length) {\n args[index] = transforms[index].call(this, args[index]);\n }\n return apply(func, this, args);\n });\n });\n\n /**\n * Creates a function that invokes `func` with `partials` prepended to the\n * arguments it receives. This method is like `_.bind` except it does **not**\n * alter the `this` binding.\n *\n * The `_.partial.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 0.2.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var sayHelloTo = _.partial(greet, 'hello');\n * sayHelloTo('fred');\n * // => 'hello fred'\n *\n * // Partially applied with placeholders.\n * var greetFred = _.partial(greet, _, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n */\n var partial = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partial));\n return createWrap(func, WRAP_PARTIAL_FLAG, undefined, partials, holders);\n });\n\n /**\n * This method is like `_.partial` except that partially applied arguments\n * are appended to the arguments it receives.\n *\n * The `_.partialRight.placeholder` value, which defaults to `_` in monolithic\n * builds, may be used as a placeholder for partially applied arguments.\n *\n * **Note:** This method doesn't set the \"length\" property of partially\n * applied functions.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Function\n * @param {Function} func The function to partially apply arguments to.\n * @param {...*} [partials] The arguments to be partially applied.\n * @returns {Function} Returns the new partially applied function.\n * @example\n *\n * function greet(greeting, name) {\n * return greeting + ' ' + name;\n * }\n *\n * var greetFred = _.partialRight(greet, 'fred');\n * greetFred('hi');\n * // => 'hi fred'\n *\n * // Partially applied with placeholders.\n * var sayHelloTo = _.partialRight(greet, 'hello', _);\n * sayHelloTo('fred');\n * // => 'hello fred'\n */\n var partialRight = baseRest(function(func, partials) {\n var holders = replaceHolders(partials, getHolder(partialRight));\n return createWrap(func, WRAP_PARTIAL_RIGHT_FLAG, undefined, partials, holders);\n });\n\n /**\n * Creates a function that invokes `func` with arguments arranged according\n * to the specified `indexes` where the argument value at the first index is\n * provided as the first argument, the argument value at the second index is\n * provided as the second argument, and so on.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} func The function to rearrange arguments for.\n * @param {...(number|number[])} indexes The arranged argument indexes.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var rearged = _.rearg(function(a, b, c) {\n * return [a, b, c];\n * }, [2, 0, 1]);\n *\n * rearged('b', 'c', 'a')\n * // => ['a', 'b', 'c']\n */\n var rearg = flatRest(function(func, indexes) {\n return createWrap(func, WRAP_REARG_FLAG, undefined, undefined, undefined, indexes);\n });\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * created function and arguments from `start` and beyond provided as\n * an array.\n *\n * **Note:** This method is based on the\n * [rest parameter](https://mdn.io/rest_parameters).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.rest(function(what, names) {\n * return what + ' ' + _.initial(names).join(', ') +\n * (_.size(names) > 1 ? ', & ' : '') + _.last(names);\n * });\n *\n * say('hello', 'fred', 'barney', 'pebbles');\n * // => 'hello fred, barney, & pebbles'\n */\n function rest(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start === undefined ? start : toInteger(start);\n return baseRest(func, start);\n }\n\n /**\n * Creates a function that invokes `func` with the `this` binding of the\n * create function and an array of arguments much like\n * [`Function#apply`](http://www.ecma-international.org/ecma-262/7.0/#sec-function.prototype.apply).\n *\n * **Note:** This method is based on the\n * [spread operator](https://mdn.io/spread_operator).\n *\n * @static\n * @memberOf _\n * @since 3.2.0\n * @category Function\n * @param {Function} func The function to spread arguments over.\n * @param {number} [start=0] The start position of the spread.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var say = _.spread(function(who, what) {\n * return who + ' says ' + what;\n * });\n *\n * say(['fred', 'hello']);\n * // => 'fred says hello'\n *\n * var numbers = Promise.all([\n * Promise.resolve(40),\n * Promise.resolve(36)\n * ]);\n *\n * numbers.then(_.spread(function(x, y) {\n * return x + y;\n * }));\n * // => a Promise of 76\n */\n function spread(func, start) {\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n start = start == null ? 0 : nativeMax(toInteger(start), 0);\n return baseRest(function(args) {\n var array = args[start],\n otherArgs = castSlice(args, 0, start);\n\n if (array) {\n arrayPush(otherArgs, array);\n }\n return apply(func, this, otherArgs);\n });\n }\n\n /**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\n function throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n }\n\n /**\n * Creates a function that accepts up to one argument, ignoring any\n * additional arguments.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Function\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n * @example\n *\n * _.map(['6', '8', '10'], _.unary(parseInt));\n * // => [6, 8, 10]\n */\n function unary(func) {\n return ary(func, 1);\n }\n\n /**\n * Creates a function that provides `value` to `wrapper` as its first\n * argument. Any additional arguments provided to the function are appended\n * to those provided to the `wrapper`. The wrapper is invoked with the `this`\n * binding of the created function.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {*} value The value to wrap.\n * @param {Function} [wrapper=identity] The wrapper function.\n * @returns {Function} Returns the new function.\n * @example\n *\n * var p = _.wrap(_.escape, function(func, text) {\n * return '

' + func(text) + '

';\n * });\n *\n * p('fred, barney, & pebbles');\n * // => '

fred, barney, & pebbles

'\n */\n function wrap(value, wrapper) {\n return partial(castFunction(wrapper), value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Casts `value` as an array if it's not one.\n *\n * @static\n * @memberOf _\n * @since 4.4.0\n * @category Lang\n * @param {*} value The value to inspect.\n * @returns {Array} Returns the cast array.\n * @example\n *\n * _.castArray(1);\n * // => [1]\n *\n * _.castArray({ 'a': 1 });\n * // => [{ 'a': 1 }]\n *\n * _.castArray('abc');\n * // => ['abc']\n *\n * _.castArray(null);\n * // => [null]\n *\n * _.castArray(undefined);\n * // => [undefined]\n *\n * _.castArray();\n * // => []\n *\n * var array = [1, 2, 3];\n * console.log(_.castArray(array) === array);\n * // => true\n */\n function castArray() {\n if (!arguments.length) {\n return [];\n }\n var value = arguments[0];\n return isArray(value) ? value : [value];\n }\n\n /**\n * Creates a shallow clone of `value`.\n *\n * **Note:** This method is loosely based on the\n * [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)\n * and supports cloning arrays, array buffers, booleans, date objects, maps,\n * numbers, `Object` objects, regexes, sets, strings, symbols, and typed\n * arrays. The own enumerable properties of `arguments` objects are cloned\n * as plain objects. An empty object is returned for uncloneable values such\n * as error objects, functions, DOM nodes, and WeakMaps.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to clone.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeep\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var shallow = _.clone(objects);\n * console.log(shallow[0] === objects[0]);\n * // => true\n */\n function clone(value) {\n return baseClone(value, CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.clone` except that it accepts `customizer` which\n * is invoked to produce the cloned value. If `customizer` returns `undefined`,\n * cloning is handled by the method instead. The `customizer` is invoked with\n * up to four arguments; (value [, index|key, object, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the cloned value.\n * @see _.cloneDeepWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(false);\n * }\n * }\n *\n * var el = _.cloneWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 0\n */\n function cloneWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * This method is like `_.clone` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @returns {*} Returns the deep cloned value.\n * @see _.clone\n * @example\n *\n * var objects = [{ 'a': 1 }, { 'b': 2 }];\n *\n * var deep = _.cloneDeep(objects);\n * console.log(deep[0] === objects[0]);\n * // => false\n */\n function cloneDeep(value) {\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);\n }\n\n /**\n * This method is like `_.cloneWith` except that it recursively clones `value`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to recursively clone.\n * @param {Function} [customizer] The function to customize cloning.\n * @returns {*} Returns the deep cloned value.\n * @see _.cloneWith\n * @example\n *\n * function customizer(value) {\n * if (_.isElement(value)) {\n * return value.cloneNode(true);\n * }\n * }\n *\n * var el = _.cloneDeepWith(document.body, customizer);\n *\n * console.log(el === document.body);\n * // => false\n * console.log(el.nodeName);\n * // => 'BODY'\n * console.log(el.childNodes.length);\n * // => 20\n */\n function cloneDeepWith(value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG, customizer);\n }\n\n /**\n * Checks if `object` conforms to `source` by invoking the predicate\n * properties of `source` with the corresponding property values of `object`.\n *\n * **Note:** This method is equivalent to `_.conforms` when `source` is\n * partially applied.\n *\n * @static\n * @memberOf _\n * @since 4.14.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property predicates to conform to.\n * @returns {boolean} Returns `true` if `object` conforms, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 1; } });\n * // => true\n *\n * _.conformsTo(object, { 'b': function(n) { return n > 2; } });\n * // => false\n */\n function conformsTo(object, source) {\n return source == null || baseConformsTo(object, source, keys(source));\n }\n\n /**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\n function eq(value, other) {\n return value === other || (value !== value && other !== other);\n }\n\n /**\n * Checks if `value` is greater than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than `other`,\n * else `false`.\n * @see _.lt\n * @example\n *\n * _.gt(3, 1);\n * // => true\n *\n * _.gt(3, 3);\n * // => false\n *\n * _.gt(1, 3);\n * // => false\n */\n var gt = createRelationalOperation(baseGt);\n\n /**\n * Checks if `value` is greater than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is greater than or equal to\n * `other`, else `false`.\n * @see _.lte\n * @example\n *\n * _.gte(3, 1);\n * // => true\n *\n * _.gte(3, 3);\n * // => true\n *\n * _.gte(1, 3);\n * // => false\n */\n var gte = createRelationalOperation(function(value, other) {\n return value >= other;\n });\n\n /**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n * else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\n var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n !propertyIsEnumerable.call(value, 'callee');\n };\n\n /**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\n var isArray = Array.isArray;\n\n /**\n * Checks if `value` is classified as an `ArrayBuffer` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array buffer, else `false`.\n * @example\n *\n * _.isArrayBuffer(new ArrayBuffer(2));\n * // => true\n *\n * _.isArrayBuffer(new Array(2));\n * // => false\n */\n var isArrayBuffer = nodeIsArrayBuffer ? baseUnary(nodeIsArrayBuffer) : baseIsArrayBuffer;\n\n /**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\n function isArrayLike(value) {\n return value != null && isLength(value.length) && !isFunction(value);\n }\n\n /**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\n function isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n }\n\n /**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\n function isBoolean(value) {\n return value === true || value === false ||\n (isObjectLike(value) && baseGetTag(value) == boolTag);\n }\n\n /**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\n var isBuffer = nativeIsBuffer || stubFalse;\n\n /**\n * Checks if `value` is classified as a `Date` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a date object, else `false`.\n * @example\n *\n * _.isDate(new Date);\n * // => true\n *\n * _.isDate('Mon April 23 2012');\n * // => false\n */\n var isDate = nodeIsDate ? baseUnary(nodeIsDate) : baseIsDate;\n\n /**\n * Checks if `value` is likely a DOM element.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a DOM element, else `false`.\n * @example\n *\n * _.isElement(document.body);\n * // => true\n *\n * _.isElement('');\n * // => false\n */\n function isElement(value) {\n return isObjectLike(value) && value.nodeType === 1 && !isPlainObject(value);\n }\n\n /**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\n function isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Performs a deep comparison between two values to determine if they are\n * equivalent.\n *\n * **Note:** This method supports comparing arrays, array buffers, booleans,\n * date objects, error objects, maps, numbers, `Object` objects, regexes,\n * sets, strings, symbols, and typed arrays. `Object` objects are compared\n * by their own, not inherited, enumerable properties. Functions and DOM\n * nodes are compared by strict equality, i.e. `===`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.isEqual(object, other);\n * // => true\n *\n * object === other;\n * // => false\n */\n function isEqual(value, other) {\n return baseIsEqual(value, other);\n }\n\n /**\n * This method is like `_.isEqual` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with up to\n * six arguments: (objValue, othValue [, index|key, object, other, stack]).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, othValue) {\n * if (isGreeting(objValue) && isGreeting(othValue)) {\n * return true;\n * }\n * }\n *\n * var array = ['hello', 'goodbye'];\n * var other = ['hi', 'goodbye'];\n *\n * _.isEqualWith(array, other, customizer);\n * // => true\n */\n function isEqualWith(value, other, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n var result = customizer ? customizer(value, other) : undefined;\n return result === undefined ? baseIsEqual(value, other, undefined, customizer) : !!result;\n }\n\n /**\n * Checks if `value` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,\n * `SyntaxError`, `TypeError`, or `URIError` object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an error object, else `false`.\n * @example\n *\n * _.isError(new Error);\n * // => true\n *\n * _.isError(Error);\n * // => false\n */\n function isError(value) {\n if (!isObjectLike(value)) {\n return false;\n }\n var tag = baseGetTag(value);\n return tag == errorTag || tag == domExcTag ||\n (typeof value.message == 'string' && typeof value.name == 'string' && !isPlainObject(value));\n }\n\n /**\n * Checks if `value` is a finite primitive number.\n *\n * **Note:** This method is based on\n * [`Number.isFinite`](https://mdn.io/Number/isFinite).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.\n * @example\n *\n * _.isFinite(3);\n * // => true\n *\n * _.isFinite(Number.MIN_VALUE);\n * // => true\n *\n * _.isFinite(Infinity);\n * // => false\n *\n * _.isFinite('3');\n * // => false\n */\n function isFinite(value) {\n return typeof value == 'number' && nativeIsFinite(value);\n }\n\n /**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\n function isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n }\n\n /**\n * Checks if `value` is an integer.\n *\n * **Note:** This method is based on\n * [`Number.isInteger`](https://mdn.io/Number/isInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an integer, else `false`.\n * @example\n *\n * _.isInteger(3);\n * // => true\n *\n * _.isInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isInteger(Infinity);\n * // => false\n *\n * _.isInteger('3');\n * // => false\n */\n function isInteger(value) {\n return typeof value == 'number' && value == toInteger(value);\n }\n\n /**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\n function isLength(value) {\n return typeof value == 'number' &&\n value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\n function isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n }\n\n /**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\n function isObjectLike(value) {\n return value != null && typeof value == 'object';\n }\n\n /**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\n var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\n /**\n * Performs a partial deep comparison between `object` and `source` to\n * determine if `object` contains equivalent property values.\n *\n * **Note:** This method is equivalent to `_.matches` when `source` is\n * partially applied.\n *\n * Partial comparisons will match empty array and empty object `source`\n * values against any array or object value, respectively. See `_.isEqual`\n * for a list of supported value comparisons.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n *\n * _.isMatch(object, { 'b': 2 });\n * // => true\n *\n * _.isMatch(object, { 'b': 1 });\n * // => false\n */\n function isMatch(object, source) {\n return object === source || baseIsMatch(object, source, getMatchData(source));\n }\n\n /**\n * This method is like `_.isMatch` except that it accepts `customizer` which\n * is invoked to compare values. If `customizer` returns `undefined`, comparisons\n * are handled by the method instead. The `customizer` is invoked with five\n * arguments: (objValue, srcValue, index|key, object, source).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n * @example\n *\n * function isGreeting(value) {\n * return /^h(?:i|ello)$/.test(value);\n * }\n *\n * function customizer(objValue, srcValue) {\n * if (isGreeting(objValue) && isGreeting(srcValue)) {\n * return true;\n * }\n * }\n *\n * var object = { 'greeting': 'hello' };\n * var source = { 'greeting': 'hi' };\n *\n * _.isMatchWith(object, source, customizer);\n * // => true\n */\n function isMatchWith(object, source, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return baseIsMatch(object, source, getMatchData(source), customizer);\n }\n\n /**\n * Checks if `value` is `NaN`.\n *\n * **Note:** This method is based on\n * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as\n * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for\n * `undefined` and other non-number values.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.\n * @example\n *\n * _.isNaN(NaN);\n * // => true\n *\n * _.isNaN(new Number(NaN));\n * // => true\n *\n * isNaN(undefined);\n * // => true\n *\n * _.isNaN(undefined);\n * // => false\n */\n function isNaN(value) {\n // An `NaN` primitive is the only value that is not equal to itself.\n // Perform the `toStringTag` check first to avoid errors with some\n // ActiveX objects in IE.\n return isNumber(value) && value != +value;\n }\n\n /**\n * Checks if `value` is a pristine native function.\n *\n * **Note:** This method can't reliably detect native functions in the presence\n * of the core-js package because core-js circumvents this kind of detection.\n * Despite multiple requests, the core-js maintainer has made it clear: any\n * attempt to fix the detection will be obstructed. As a result, we're left\n * with little choice but to throw an error. Unfortunately, this also affects\n * packages, like [babel-polyfill](https://www.npmjs.com/package/babel-polyfill),\n * which rely on core-js.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n * else `false`.\n * @example\n *\n * _.isNative(Array.prototype.push);\n * // => true\n *\n * _.isNative(_);\n * // => false\n */\n function isNative(value) {\n if (isMaskable(value)) {\n throw new Error(CORE_ERROR_TEXT);\n }\n return baseIsNative(value);\n }\n\n /**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\n function isNull(value) {\n return value === null;\n }\n\n /**\n * Checks if `value` is `null` or `undefined`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is nullish, else `false`.\n * @example\n *\n * _.isNil(null);\n * // => true\n *\n * _.isNil(void 0);\n * // => true\n *\n * _.isNil(NaN);\n * // => false\n */\n function isNil(value) {\n return value == null;\n }\n\n /**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\n function isNumber(value) {\n return typeof value == 'number' ||\n (isObjectLike(value) && baseGetTag(value) == numberTag);\n }\n\n /**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\n function isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n }\n\n /**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a regexp, else `false`.\n * @example\n *\n * _.isRegExp(/abc/);\n * // => true\n *\n * _.isRegExp('/abc/');\n * // => false\n */\n var isRegExp = nodeIsRegExp ? baseUnary(nodeIsRegExp) : baseIsRegExp;\n\n /**\n * Checks if `value` is a safe integer. An integer is safe if it's an IEEE-754\n * double precision number which isn't the result of a rounded unsafe integer.\n *\n * **Note:** This method is based on\n * [`Number.isSafeInteger`](https://mdn.io/Number/isSafeInteger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a safe integer, else `false`.\n * @example\n *\n * _.isSafeInteger(3);\n * // => true\n *\n * _.isSafeInteger(Number.MIN_VALUE);\n * // => false\n *\n * _.isSafeInteger(Infinity);\n * // => false\n *\n * _.isSafeInteger('3');\n * // => false\n */\n function isSafeInteger(value) {\n return isInteger(value) && value >= -MAX_SAFE_INTEGER && value <= MAX_SAFE_INTEGER;\n }\n\n /**\n * Checks if `value` is classified as a `Set` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a set, else `false`.\n * @example\n *\n * _.isSet(new Set);\n * // => true\n *\n * _.isSet(new WeakSet);\n * // => false\n */\n var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;\n\n /**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\n function isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n }\n\n /**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\n function isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n }\n\n /**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\n var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\n /**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\n function isUndefined(value) {\n return value === undefined;\n }\n\n /**\n * Checks if `value` is classified as a `WeakMap` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak map, else `false`.\n * @example\n *\n * _.isWeakMap(new WeakMap);\n * // => true\n *\n * _.isWeakMap(new Map);\n * // => false\n */\n function isWeakMap(value) {\n return isObjectLike(value) && getTag(value) == weakMapTag;\n }\n\n /**\n * Checks if `value` is classified as a `WeakSet` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a weak set, else `false`.\n * @example\n *\n * _.isWeakSet(new WeakSet);\n * // => true\n *\n * _.isWeakSet(new Set);\n * // => false\n */\n function isWeakSet(value) {\n return isObjectLike(value) && baseGetTag(value) == weakSetTag;\n }\n\n /**\n * Checks if `value` is less than `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than `other`,\n * else `false`.\n * @see _.gt\n * @example\n *\n * _.lt(1, 3);\n * // => true\n *\n * _.lt(3, 3);\n * // => false\n *\n * _.lt(3, 1);\n * // => false\n */\n var lt = createRelationalOperation(baseLt);\n\n /**\n * Checks if `value` is less than or equal to `other`.\n *\n * @static\n * @memberOf _\n * @since 3.9.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if `value` is less than or equal to\n * `other`, else `false`.\n * @see _.gte\n * @example\n *\n * _.lte(1, 3);\n * // => true\n *\n * _.lte(3, 3);\n * // => true\n *\n * _.lte(3, 1);\n * // => false\n */\n var lte = createRelationalOperation(function(value, other) {\n return value <= other;\n });\n\n /**\n * Converts `value` to an array.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Array} Returns the converted array.\n * @example\n *\n * _.toArray({ 'a': 1, 'b': 2 });\n * // => [1, 2]\n *\n * _.toArray('abc');\n * // => ['a', 'b', 'c']\n *\n * _.toArray(1);\n * // => []\n *\n * _.toArray(null);\n * // => []\n */\n function toArray(value) {\n if (!value) {\n return [];\n }\n if (isArrayLike(value)) {\n return isString(value) ? stringToArray(value) : copyArray(value);\n }\n if (symIterator && value[symIterator]) {\n return iteratorToArray(value[symIterator]());\n }\n var tag = getTag(value),\n func = tag == mapTag ? mapToArray : (tag == setTag ? setToArray : values);\n\n return func(value);\n }\n\n /**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\n function toFinite(value) {\n if (!value) {\n return value === 0 ? value : 0;\n }\n value = toNumber(value);\n if (value === INFINITY || value === -INFINITY) {\n var sign = (value < 0 ? -1 : 1);\n return sign * MAX_INTEGER;\n }\n return value === value ? value : 0;\n }\n\n /**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\n function toInteger(value) {\n var result = toFinite(value),\n remainder = result % 1;\n\n return result === result ? (remainder ? result - remainder : result) : 0;\n }\n\n /**\n * Converts `value` to an integer suitable for use as the length of an\n * array-like object.\n *\n * **Note:** This method is based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toLength(3.2);\n * // => 3\n *\n * _.toLength(Number.MIN_VALUE);\n * // => 0\n *\n * _.toLength(Infinity);\n * // => 4294967295\n *\n * _.toLength('3.2');\n * // => 3\n */\n function toLength(value) {\n return value ? baseClamp(toInteger(value), 0, MAX_ARRAY_LENGTH) : 0;\n }\n\n /**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\n function toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n }\n\n /**\n * Converts `value` to a plain object flattening inherited enumerable string\n * keyed properties of `value` to own properties of the plain object.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {Object} Returns the converted plain object.\n * @example\n *\n * function Foo() {\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.assign({ 'a': 1 }, new Foo);\n * // => { 'a': 1, 'b': 2 }\n *\n * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));\n * // => { 'a': 1, 'b': 2, 'c': 3 }\n */\n function toPlainObject(value) {\n return copyObject(value, keysIn(value));\n }\n\n /**\n * Converts `value` to a safe integer. A safe integer can be compared and\n * represented correctly.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toSafeInteger(3.2);\n * // => 3\n *\n * _.toSafeInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toSafeInteger(Infinity);\n * // => 9007199254740991\n *\n * _.toSafeInteger('3.2');\n * // => 3\n */\n function toSafeInteger(value) {\n return value\n ? baseClamp(toInteger(value), -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER)\n : (value === 0 ? value : 0);\n }\n\n /**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\n function toString(value) {\n return value == null ? '' : baseToString(value);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Assigns own enumerable string keyed properties of source objects to the\n * destination object. Source objects are applied from left to right.\n * Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object` and is loosely based on\n * [`Object.assign`](https://mdn.io/Object/assign).\n *\n * @static\n * @memberOf _\n * @since 0.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assignIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assign({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'c': 3 }\n */\n var assign = createAssigner(function(object, source) {\n if (isPrototype(source) || isArrayLike(source)) {\n copyObject(source, keys(source), object);\n return;\n }\n for (var key in source) {\n if (hasOwnProperty.call(source, key)) {\n assignValue(object, key, source[key]);\n }\n }\n });\n\n /**\n * This method is like `_.assign` except that it iterates over own and\n * inherited source properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extend\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.assign\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * function Bar() {\n * this.c = 3;\n * }\n *\n * Foo.prototype.b = 2;\n * Bar.prototype.d = 4;\n *\n * _.assignIn({ 'a': 0 }, new Foo, new Bar);\n * // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }\n */\n var assignIn = createAssigner(function(object, source) {\n copyObject(source, keysIn(source), object);\n });\n\n /**\n * This method is like `_.assignIn` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias extendWith\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignInWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignInWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keysIn(source), object, customizer);\n });\n\n /**\n * This method is like `_.assign` except that it accepts `customizer`\n * which is invoked to produce the assigned values. If `customizer` returns\n * `undefined`, assignment is handled by the method instead. The `customizer`\n * is invoked with five arguments: (objValue, srcValue, key, object, source).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @see _.assignInWith\n * @example\n *\n * function customizer(objValue, srcValue) {\n * return _.isUndefined(objValue) ? srcValue : objValue;\n * }\n *\n * var defaults = _.partialRight(_.assignWith, customizer);\n *\n * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var assignWith = createAssigner(function(object, source, srcIndex, customizer) {\n copyObject(source, keys(source), object, customizer);\n });\n\n /**\n * Creates an array of values corresponding to `paths` of `object`.\n *\n * @static\n * @memberOf _\n * @since 1.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Array} Returns the picked values.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };\n *\n * _.at(object, ['a[0].b.c', 'a[1]']);\n * // => [3, 4]\n */\n var at = flatRest(baseAt);\n\n /**\n * Creates an object that inherits from the `prototype` object. If a\n * `properties` object is given, its own enumerable string keyed properties\n * are assigned to the created object.\n *\n * @static\n * @memberOf _\n * @since 2.3.0\n * @category Object\n * @param {Object} prototype The object to inherit from.\n * @param {Object} [properties] The properties to assign to the object.\n * @returns {Object} Returns the new object.\n * @example\n *\n * function Shape() {\n * this.x = 0;\n * this.y = 0;\n * }\n *\n * function Circle() {\n * Shape.call(this);\n * }\n *\n * Circle.prototype = _.create(Shape.prototype, {\n * 'constructor': Circle\n * });\n *\n * var circle = new Circle;\n * circle instanceof Circle;\n * // => true\n *\n * circle instanceof Shape;\n * // => true\n */\n function create(prototype, properties) {\n var result = baseCreate(prototype);\n return properties == null ? result : baseAssign(result, properties);\n }\n\n /**\n * Assigns own and inherited enumerable string keyed properties of source\n * objects to the destination object for all destination properties that\n * resolve to `undefined`. Source objects are applied from left to right.\n * Once a property is set, additional values of the same property are ignored.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaultsDeep\n * @example\n *\n * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });\n * // => { 'a': 1, 'b': 2 }\n */\n var defaults = baseRest(function(object, sources) {\n object = Object(object);\n\n var index = -1;\n var length = sources.length;\n var guard = length > 2 ? sources[2] : undefined;\n\n if (guard && isIterateeCall(sources[0], sources[1], guard)) {\n length = 1;\n }\n\n while (++index < length) {\n var source = sources[index];\n var props = keysIn(source);\n var propsIndex = -1;\n var propsLength = props.length;\n\n while (++propsIndex < propsLength) {\n var key = props[propsIndex];\n var value = object[key];\n\n if (value === undefined ||\n (eq(value, objectProto[key]) && !hasOwnProperty.call(object, key))) {\n object[key] = source[key];\n }\n }\n }\n\n return object;\n });\n\n /**\n * This method is like `_.defaults` except that it recursively assigns\n * default properties.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.10.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @see _.defaults\n * @example\n *\n * _.defaultsDeep({ 'a': { 'b': 2 } }, { 'a': { 'b': 1, 'c': 3 } });\n * // => { 'a': { 'b': 2, 'c': 3 } }\n */\n var defaultsDeep = baseRest(function(args) {\n args.push(undefined, customDefaultsMerge);\n return apply(mergeWith, undefined, args);\n });\n\n /**\n * This method is like `_.find` except that it returns the key of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findKey(users, function(o) { return o.age < 40; });\n * // => 'barney' (iteration order is not guaranteed)\n *\n * // The `_.matches` iteratee shorthand.\n * _.findKey(users, { 'age': 1, 'active': true });\n * // => 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findKey(users, 'active');\n * // => 'barney'\n */\n function findKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwn);\n }\n\n /**\n * This method is like `_.findKey` except that it iterates over elements of\n * a collection in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @returns {string|undefined} Returns the key of the matched element,\n * else `undefined`.\n * @example\n *\n * var users = {\n * 'barney': { 'age': 36, 'active': true },\n * 'fred': { 'age': 40, 'active': false },\n * 'pebbles': { 'age': 1, 'active': true }\n * };\n *\n * _.findLastKey(users, function(o) { return o.age < 40; });\n * // => returns 'pebbles' assuming `_.findKey` returns 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.findLastKey(users, { 'age': 36, 'active': true });\n * // => 'barney'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findLastKey(users, ['active', false]);\n * // => 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.findLastKey(users, 'active');\n * // => 'pebbles'\n */\n function findLastKey(object, predicate) {\n return baseFindKey(object, getIteratee(predicate, 3), baseForOwnRight);\n }\n\n /**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\n function forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * This method is like `_.forIn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forIn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forInRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'c', 'b', then 'a' assuming `_.forIn` logs 'a', 'b', then 'c'.\n */\n function forInRight(object, iteratee) {\n return object == null\n ? object\n : baseForRight(object, getIteratee(iteratee, 3), keysIn);\n }\n\n /**\n * Iterates over own enumerable string keyed properties of an object and\n * invokes `iteratee` for each property. The iteratee is invoked with three\n * arguments: (value, key, object). Iteratee functions may exit iteration\n * early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwnRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a' then 'b' (iteration order is not guaranteed).\n */\n function forOwn(object, iteratee) {\n return object && baseForOwn(object, getIteratee(iteratee, 3));\n }\n\n /**\n * This method is like `_.forOwn` except that it iterates over properties of\n * `object` in the opposite order.\n *\n * @static\n * @memberOf _\n * @since 2.0.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forOwn\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forOwnRight(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'b' then 'a' assuming `_.forOwn` logs 'a' then 'b'.\n */\n function forOwnRight(object, iteratee) {\n return object && baseForOwnRight(object, getIteratee(iteratee, 3));\n }\n\n /**\n * Creates an array of function property names from own enumerable properties\n * of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functionsIn\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functions(new Foo);\n * // => ['a', 'b']\n */\n function functions(object) {\n return object == null ? [] : baseFunctions(object, keys(object));\n }\n\n /**\n * Creates an array of function property names from own and inherited\n * enumerable properties of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to inspect.\n * @returns {Array} Returns the function names.\n * @see _.functions\n * @example\n *\n * function Foo() {\n * this.a = _.constant('a');\n * this.b = _.constant('b');\n * }\n *\n * Foo.prototype.c = _.constant('c');\n *\n * _.functionsIn(new Foo);\n * // => ['a', 'b', 'c']\n */\n function functionsIn(object) {\n return object == null ? [] : baseFunctions(object, keysIn(object));\n }\n\n /**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\n function get(object, path, defaultValue) {\n var result = object == null ? undefined : baseGet(object, path);\n return result === undefined ? defaultValue : result;\n }\n\n /**\n * Checks if `path` is a direct property of `object`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = { 'a': { 'b': 2 } };\n * var other = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.has(object, 'a');\n * // => true\n *\n * _.has(object, 'a.b');\n * // => true\n *\n * _.has(object, ['a', 'b']);\n * // => true\n *\n * _.has(other, 'a');\n * // => false\n */\n function has(object, path) {\n return object != null && hasPath(object, path, baseHas);\n }\n\n /**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\n function hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n }\n\n /**\n * Creates an object composed of the inverted keys and values of `object`.\n * If `object` contains duplicate values, subsequent values overwrite\n * property assignments of previous values.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Object\n * @param {Object} object The object to invert.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invert(object);\n * // => { '1': 'c', '2': 'b' }\n */\n var invert = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n result[value] = key;\n }, constant(identity));\n\n /**\n * This method is like `_.invert` except that the inverted object is generated\n * from the results of running each element of `object` thru `iteratee`. The\n * corresponding inverted value of each inverted key is an array of keys\n * responsible for generating the inverted value. The iteratee is invoked\n * with one argument: (value).\n *\n * @static\n * @memberOf _\n * @since 4.1.0\n * @category Object\n * @param {Object} object The object to invert.\n * @param {Function} [iteratee=_.identity] The iteratee invoked per element.\n * @returns {Object} Returns the new inverted object.\n * @example\n *\n * var object = { 'a': 1, 'b': 2, 'c': 1 };\n *\n * _.invertBy(object);\n * // => { '1': ['a', 'c'], '2': ['b'] }\n *\n * _.invertBy(object, function(value) {\n * return 'group' + value;\n * });\n * // => { 'group1': ['a', 'c'], 'group2': ['b'] }\n */\n var invertBy = createInverter(function(result, value, key) {\n if (value != null &&\n typeof value.toString != 'function') {\n value = nativeObjectToString.call(value);\n }\n\n if (hasOwnProperty.call(result, value)) {\n result[value].push(key);\n } else {\n result[value] = [key];\n }\n }, getIteratee);\n\n /**\n * Invokes the method at `path` of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the method to invoke.\n * @param {...*} [args] The arguments to invoke the method with.\n * @returns {*} Returns the result of the invoked method.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': [1, 2, 3, 4] } }] };\n *\n * _.invoke(object, 'a[0].b.c.slice', 1, 3);\n * // => [2, 3]\n */\n var invoke = baseRest(baseInvoke);\n\n /**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\n function keys(object) {\n return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n }\n\n /**\n * Creates an array of the own and inherited enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keysIn(new Foo);\n * // => ['a', 'b', 'c'] (iteration order is not guaranteed)\n */\n function keysIn(object) {\n return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);\n }\n\n /**\n * The opposite of `_.mapValues`; this method creates an object with the\n * same values as `object` and keys generated by running each own enumerable\n * string keyed property of `object` thru `iteratee`. The iteratee is invoked\n * with three arguments: (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 3.8.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapValues\n * @example\n *\n * _.mapKeys({ 'a': 1, 'b': 2 }, function(value, key) {\n * return key + value;\n * });\n * // => { 'a1': 1, 'b2': 2 }\n */\n function mapKeys(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, iteratee(value, key, object), value);\n });\n return result;\n }\n\n /**\n * Creates an object with the same keys as `object` and values generated\n * by running each own enumerable string keyed property of `object` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, key, object).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns the new mapped object.\n * @see _.mapKeys\n * @example\n *\n * var users = {\n * 'fred': { 'user': 'fred', 'age': 40 },\n * 'pebbles': { 'user': 'pebbles', 'age': 1 }\n * };\n *\n * _.mapValues(users, function(o) { return o.age; });\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n *\n * // The `_.property` iteratee shorthand.\n * _.mapValues(users, 'age');\n * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)\n */\n function mapValues(object, iteratee) {\n var result = {};\n iteratee = getIteratee(iteratee, 3);\n\n baseForOwn(object, function(value, key, object) {\n baseAssignValue(result, key, iteratee(value, key, object));\n });\n return result;\n }\n\n /**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\n var merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n });\n\n /**\n * This method is like `_.merge` except that it accepts `customizer` which\n * is invoked to produce the merged values of the destination and source\n * properties. If `customizer` returns `undefined`, merging is handled by the\n * method instead. The `customizer` is invoked with six arguments:\n * (objValue, srcValue, key, object, source, stack).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} sources The source objects.\n * @param {Function} customizer The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * function customizer(objValue, srcValue) {\n * if (_.isArray(objValue)) {\n * return objValue.concat(srcValue);\n * }\n * }\n *\n * var object = { 'a': [1], 'b': [2] };\n * var other = { 'a': [3], 'b': [4] };\n *\n * _.mergeWith(object, other, customizer);\n * // => { 'a': [1, 3], 'b': [2, 4] }\n */\n var mergeWith = createAssigner(function(object, source, srcIndex, customizer) {\n baseMerge(object, source, srcIndex, customizer);\n });\n\n /**\n * The opposite of `_.pick`; this method creates an object composed of the\n * own and inherited enumerable property paths of `object` that are not omitted.\n *\n * **Note:** This method is considerably slower than `_.pick`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to omit.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omit(object, ['a', 'c']);\n * // => { 'b': '2' }\n */\n var omit = flatRest(function(object, paths) {\n var result = {};\n if (object == null) {\n return result;\n }\n var isDeep = false;\n paths = arrayMap(paths, function(path) {\n path = castPath(path, object);\n isDeep || (isDeep = path.length > 1);\n return path;\n });\n copyObject(object, getAllKeysIn(object), result);\n if (isDeep) {\n result = baseClone(result, CLONE_DEEP_FLAG | CLONE_FLAT_FLAG | CLONE_SYMBOLS_FLAG, customOmitClone);\n }\n var length = paths.length;\n while (length--) {\n baseUnset(result, paths[length]);\n }\n return result;\n });\n\n /**\n * The opposite of `_.pickBy`; this method creates an object composed of\n * the own and inherited enumerable string keyed properties of `object` that\n * `predicate` doesn't return truthy for. The predicate is invoked with two\n * arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.omitBy(object, _.isNumber);\n * // => { 'b': '2' }\n */\n function omitBy(object, predicate) {\n return pickBy(object, negate(getIteratee(predicate)));\n }\n\n /**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\n var pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n });\n\n /**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\n function pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = getIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n }\n\n /**\n * This method is like `_.get` except that if the resolved value is a\n * function it's invoked with the `this` binding of its parent object and\n * its result is returned.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to resolve.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c1': 3, 'c2': _.constant(4) } }] };\n *\n * _.result(object, 'a[0].b.c1');\n * // => 3\n *\n * _.result(object, 'a[0].b.c2');\n * // => 4\n *\n * _.result(object, 'a[0].b.c3', 'default');\n * // => 'default'\n *\n * _.result(object, 'a[0].b.c3', _.constant('default'));\n * // => 'default'\n */\n function result(object, path, defaultValue) {\n path = castPath(path, object);\n\n var index = -1,\n length = path.length;\n\n // Ensure the loop is entered when path is empty.\n if (!length) {\n length = 1;\n object = undefined;\n }\n while (++index < length) {\n var value = object == null ? undefined : object[toKey(path[index])];\n if (value === undefined) {\n index = length;\n value = defaultValue;\n }\n object = isFunction(value) ? value.call(object) : value;\n }\n return object;\n }\n\n /**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist,\n * it's created. Arrays are created for missing index properties while objects\n * are created for all other missing properties. Use `_.setWith` to customize\n * `path` creation.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.set(object, 'a[0].b.c', 4);\n * console.log(object.a[0].b.c);\n * // => 4\n *\n * _.set(object, ['x', '0', 'y', 'z'], 5);\n * console.log(object.x[0].y.z);\n * // => 5\n */\n function set(object, path, value) {\n return object == null ? object : baseSet(object, path, value);\n }\n\n /**\n * This method is like `_.set` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.setWith(object, '[0][1]', 'a', Object);\n * // => { '0': { '1': 'a' } }\n */\n function setWith(object, path, value, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseSet(object, path, value, customizer);\n }\n\n /**\n * Creates an array of own enumerable string keyed-value pairs for `object`\n * which can be consumed by `_.fromPairs`. If `object` is a map or set, its\n * entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entries\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairs(new Foo);\n * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed)\n */\n var toPairs = createToPairs(keys);\n\n /**\n * Creates an array of own and inherited enumerable string keyed-value pairs\n * for `object` which can be consumed by `_.fromPairs`. If `object` is a map\n * or set, its entries are returned.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @alias entriesIn\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the key-value pairs.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.toPairsIn(new Foo);\n * // => [['a', 1], ['b', 2], ['c', 3]] (iteration order is not guaranteed)\n */\n var toPairsIn = createToPairs(keysIn);\n\n /**\n * An alternative to `_.reduce`; this method transforms `object` to a new\n * `accumulator` object which is the result of running each of its own\n * enumerable string keyed properties thru `iteratee`, with each invocation\n * potentially mutating the `accumulator` object. If `accumulator` is not\n * provided, a new object with the same `[[Prototype]]` will be used. The\n * iteratee is invoked with four arguments: (accumulator, value, key, object).\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 1.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @param {*} [accumulator] The custom accumulator value.\n * @returns {*} Returns the accumulated value.\n * @example\n *\n * _.transform([2, 3, 4], function(result, n) {\n * result.push(n *= n);\n * return n % 2 == 0;\n * }, []);\n * // => [4, 9]\n *\n * _.transform({ 'a': 1, 'b': 2, 'c': 1 }, function(result, value, key) {\n * (result[value] || (result[value] = [])).push(key);\n * }, {});\n * // => { '1': ['a', 'c'], '2': ['b'] }\n */\n function transform(object, iteratee, accumulator) {\n var isArr = isArray(object),\n isArrLike = isArr || isBuffer(object) || isTypedArray(object);\n\n iteratee = getIteratee(iteratee, 4);\n if (accumulator == null) {\n var Ctor = object && object.constructor;\n if (isArrLike) {\n accumulator = isArr ? new Ctor : [];\n }\n else if (isObject(object)) {\n accumulator = isFunction(Ctor) ? baseCreate(getPrototype(object)) : {};\n }\n else {\n accumulator = {};\n }\n }\n (isArrLike ? arrayEach : baseForOwn)(object, function(value, index, object) {\n return iteratee(accumulator, value, index, object);\n });\n return accumulator;\n }\n\n /**\n * Removes the property at `path` of `object`.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to unset.\n * @returns {boolean} Returns `true` if the property is deleted, else `false`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 7 } }] };\n * _.unset(object, 'a[0].b.c');\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n *\n * _.unset(object, ['a', '0', 'b', 'c']);\n * // => true\n *\n * console.log(object);\n * // => { 'a': [{ 'b': {} }] };\n */\n function unset(object, path) {\n return object == null ? true : baseUnset(object, path);\n }\n\n /**\n * This method is like `_.set` except that accepts `updater` to produce the\n * value to set. Use `_.updateWith` to customize `path` creation. The `updater`\n * is invoked with one argument: (value).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.update(object, 'a[0].b.c', function(n) { return n * n; });\n * console.log(object.a[0].b.c);\n * // => 9\n *\n * _.update(object, 'x[0].y.z', function(n) { return n ? n + 1 : 0; });\n * console.log(object.x[0].y.z);\n * // => 0\n */\n function update(object, path, updater) {\n return object == null ? object : baseUpdate(object, path, castFunction(updater));\n }\n\n /**\n * This method is like `_.update` except that it accepts `customizer` which is\n * invoked to produce the objects of `path`. If `customizer` returns `undefined`\n * path creation is handled by the method instead. The `customizer` is invoked\n * with three arguments: (nsValue, key, nsObject).\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 4.6.0\n * @category Object\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {Function} updater The function to produce the updated value.\n * @param {Function} [customizer] The function to customize assigned values.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {};\n *\n * _.updateWith(object, '[0][1]', _.constant('a'), Object);\n * // => { '0': { '1': 'a' } }\n */\n function updateWith(object, path, updater, customizer) {\n customizer = typeof customizer == 'function' ? customizer : undefined;\n return object == null ? object : baseUpdate(object, path, castFunction(updater), customizer);\n }\n\n /**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.values(new Foo);\n * // => [1, 2] (iteration order is not guaranteed)\n *\n * _.values('hi');\n * // => ['h', 'i']\n */\n function values(object) {\n return object == null ? [] : baseValues(object, keys(object));\n }\n\n /**\n * Creates an array of the own and inherited enumerable string keyed property\n * values of `object`.\n *\n * **Note:** Non-object values are coerced to objects.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property values.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.valuesIn(new Foo);\n * // => [1, 2, 3] (iteration order is not guaranteed)\n */\n function valuesIn(object) {\n return object == null ? [] : baseValues(object, keysIn(object));\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Clamps `number` within the inclusive `lower` and `upper` bounds.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Number\n * @param {number} number The number to clamp.\n * @param {number} [lower] The lower bound.\n * @param {number} upper The upper bound.\n * @returns {number} Returns the clamped number.\n * @example\n *\n * _.clamp(-10, -5, 5);\n * // => -5\n *\n * _.clamp(10, -5, 5);\n * // => 5\n */\n function clamp(number, lower, upper) {\n if (upper === undefined) {\n upper = lower;\n lower = undefined;\n }\n if (upper !== undefined) {\n upper = toNumber(upper);\n upper = upper === upper ? upper : 0;\n }\n if (lower !== undefined) {\n lower = toNumber(lower);\n lower = lower === lower ? lower : 0;\n }\n return baseClamp(toNumber(number), lower, upper);\n }\n\n /**\n * Checks if `n` is between `start` and up to, but not including, `end`. If\n * `end` is not specified, it's set to `start` with `start` then set to `0`.\n * If `start` is greater than `end` the params are swapped to support\n * negative ranges.\n *\n * @static\n * @memberOf _\n * @since 3.3.0\n * @category Number\n * @param {number} number The number to check.\n * @param {number} [start=0] The start of the range.\n * @param {number} end The end of the range.\n * @returns {boolean} Returns `true` if `number` is in the range, else `false`.\n * @see _.range, _.rangeRight\n * @example\n *\n * _.inRange(3, 2, 4);\n * // => true\n *\n * _.inRange(4, 8);\n * // => true\n *\n * _.inRange(4, 2);\n * // => false\n *\n * _.inRange(2, 2);\n * // => false\n *\n * _.inRange(1.2, 2);\n * // => true\n *\n * _.inRange(5.2, 4);\n * // => false\n *\n * _.inRange(-3, -2, -6);\n * // => true\n */\n function inRange(number, start, end) {\n start = toFinite(start);\n if (end === undefined) {\n end = start;\n start = 0;\n } else {\n end = toFinite(end);\n }\n number = toNumber(number);\n return baseInRange(number, start, end);\n }\n\n /**\n * Produces a random number between the inclusive `lower` and `upper` bounds.\n * If only one argument is provided a number between `0` and the given number\n * is returned. If `floating` is `true`, or either `lower` or `upper` are\n * floats, a floating-point number is returned instead of an integer.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving\n * floating-point values which can produce unexpected results.\n *\n * @static\n * @memberOf _\n * @since 0.7.0\n * @category Number\n * @param {number} [lower=0] The lower bound.\n * @param {number} [upper=1] The upper bound.\n * @param {boolean} [floating] Specify returning a floating-point number.\n * @returns {number} Returns the random number.\n * @example\n *\n * _.random(0, 5);\n * // => an integer between 0 and 5\n *\n * _.random(5);\n * // => also an integer between 0 and 5\n *\n * _.random(5, true);\n * // => a floating-point number between 0 and 5\n *\n * _.random(1.2, 5.2);\n * // => a floating-point number between 1.2 and 5.2\n */\n function random(lower, upper, floating) {\n if (floating && typeof floating != 'boolean' && isIterateeCall(lower, upper, floating)) {\n upper = floating = undefined;\n }\n if (floating === undefined) {\n if (typeof upper == 'boolean') {\n floating = upper;\n upper = undefined;\n }\n else if (typeof lower == 'boolean') {\n floating = lower;\n lower = undefined;\n }\n }\n if (lower === undefined && upper === undefined) {\n lower = 0;\n upper = 1;\n }\n else {\n lower = toFinite(lower);\n if (upper === undefined) {\n upper = lower;\n lower = 0;\n } else {\n upper = toFinite(upper);\n }\n }\n if (lower > upper) {\n var temp = lower;\n lower = upper;\n upper = temp;\n }\n if (floating || lower % 1 || upper % 1) {\n var rand = nativeRandom();\n return nativeMin(lower + (rand * (upper - lower + freeParseFloat('1e-' + ((rand + '').length - 1)))), upper);\n }\n return baseRandom(lower, upper);\n }\n\n /*------------------------------------------------------------------------*/\n\n /**\n * Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the camel cased string.\n * @example\n *\n * _.camelCase('Foo Bar');\n * // => 'fooBar'\n *\n * _.camelCase('--foo-bar--');\n * // => 'fooBar'\n *\n * _.camelCase('__FOO_BAR__');\n * // => 'fooBar'\n */\n var camelCase = createCompounder(function(result, word, index) {\n word = word.toLowerCase();\n return result + (index ? capitalize(word) : word);\n });\n\n /**\n * Converts the first character of `string` to upper case and the remaining\n * to lower case.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to capitalize.\n * @returns {string} Returns the capitalized string.\n * @example\n *\n * _.capitalize('FRED');\n * // => 'Fred'\n */\n function capitalize(string) {\n return upperFirst(toString(string).toLowerCase());\n }\n\n /**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\n function deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n }\n\n /**\n * Checks if `string` ends with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=string.length] The position to search up to.\n * @returns {boolean} Returns `true` if `string` ends with `target`,\n * else `false`.\n * @example\n *\n * _.endsWith('abc', 'c');\n * // => true\n *\n * _.endsWith('abc', 'b');\n * // => false\n *\n * _.endsWith('abc', 'b', 2);\n * // => true\n */\n function endsWith(string, target, position) {\n string = toString(string);\n target = baseToString(target);\n\n var length = string.length;\n position = position === undefined\n ? length\n : baseClamp(toInteger(position), 0, length);\n\n var end = position;\n position -= target.length;\n return position >= 0 && string.slice(position, end) == target;\n }\n\n /**\n * Converts the characters \"&\", \"<\", \">\", '\"', and \"'\" in `string` to their\n * corresponding HTML entities.\n *\n * **Note:** No other characters are escaped. To escape additional\n * characters use a third-party library like [_he_](https://mths.be/he).\n *\n * Though the \">\" character is escaped for symmetry, characters like\n * \">\" and \"/\" don't need escaping in HTML and have no special meaning\n * unless they're part of a tag or unquoted attribute value. See\n * [Mathias Bynens's article](https://mathiasbynens.be/notes/ambiguous-ampersands)\n * (under \"semi-related fun fact\") for more details.\n *\n * When working with HTML you should always\n * [quote attribute values](http://wonko.com/post/html-escaping) to reduce\n * XSS vectors.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escape('fred, barney, & pebbles');\n * // => 'fred, barney, & pebbles'\n */\n function escape(string) {\n string = toString(string);\n return (string && reHasUnescapedHtml.test(string))\n ? string.replace(reUnescapedHtml, escapeHtmlChar)\n : string;\n }\n\n /**\n * Escapes the `RegExp` special characters \"^\", \"$\", \"\\\", \".\", \"*\", \"+\",\n * \"?\", \"(\", \")\", \"[\", \"]\", \"{\", \"}\", and \"|\" in `string`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to escape.\n * @returns {string} Returns the escaped string.\n * @example\n *\n * _.escapeRegExp('[lodash](https://lodash.com/)');\n * // => '\\[lodash\\]\\(https://lodash\\.com/\\)'\n */\n function escapeRegExp(string) {\n string = toString(string);\n return (string && reHasRegExpChar.test(string))\n ? string.replace(reRegExpChar, '\\\\$&')\n : string;\n }\n\n /**\n * Converts `string` to\n * [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the kebab cased string.\n * @example\n *\n * _.kebabCase('Foo Bar');\n * // => 'foo-bar'\n *\n * _.kebabCase('fooBar');\n * // => 'foo-bar'\n *\n * _.kebabCase('__FOO_BAR__');\n * // => 'foo-bar'\n */\n var kebabCase = createCompounder(function(result, word, index) {\n return result + (index ? '-' : '') + word.toLowerCase();\n });\n\n /**\n * Converts `string`, as space separated words, to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the lower cased string.\n * @example\n *\n * _.lowerCase('--Foo-Bar--');\n * // => 'foo bar'\n *\n * _.lowerCase('fooBar');\n * // => 'foo bar'\n *\n * _.lowerCase('__FOO_BAR__');\n * // => 'foo bar'\n */\n var lowerCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + word.toLowerCase();\n });\n\n /**\n * Converts the first character of `string` to lower case.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.lowerFirst('Fred');\n * // => 'fred'\n *\n * _.lowerFirst('FRED');\n * // => 'fRED'\n */\n var lowerFirst = createCaseFirst('toLowerCase');\n\n /**\n * Pads `string` on the left and right sides if it's shorter than `length`.\n * Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.pad('abc', 8);\n * // => ' abc '\n *\n * _.pad('abc', 8, '_-');\n * // => '_-abc_-_'\n *\n * _.pad('abc', 3);\n * // => 'abc'\n */\n function pad(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n if (!length || strLength >= length) {\n return string;\n }\n var mid = (length - strLength) / 2;\n return (\n createPadding(nativeFloor(mid), chars) +\n string +\n createPadding(nativeCeil(mid), chars)\n );\n }\n\n /**\n * Pads `string` on the right side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padEnd('abc', 6);\n * // => 'abc '\n *\n * _.padEnd('abc', 6, '_-');\n * // => 'abc_-_'\n *\n * _.padEnd('abc', 3);\n * // => 'abc'\n */\n function padEnd(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (string + createPadding(length - strLength, chars))\n : string;\n }\n\n /**\n * Pads `string` on the left side if it's shorter than `length`. Padding\n * characters are truncated if they exceed `length`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to pad.\n * @param {number} [length=0] The padding length.\n * @param {string} [chars=' '] The string used as padding.\n * @returns {string} Returns the padded string.\n * @example\n *\n * _.padStart('abc', 6);\n * // => ' abc'\n *\n * _.padStart('abc', 6, '_-');\n * // => '_-_abc'\n *\n * _.padStart('abc', 3);\n * // => 'abc'\n */\n function padStart(string, length, chars) {\n string = toString(string);\n length = toInteger(length);\n\n var strLength = length ? stringSize(string) : 0;\n return (length && strLength < length)\n ? (createPadding(length - strLength, chars) + string)\n : string;\n }\n\n /**\n * Converts `string` to an integer of the specified radix. If `radix` is\n * `undefined` or `0`, a `radix` of `10` is used unless `value` is a\n * hexadecimal, in which case a `radix` of `16` is used.\n *\n * **Note:** This method aligns with the\n * [ES5 implementation](https://es5.github.io/#x15.1.2.2) of `parseInt`.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category String\n * @param {string} string The string to convert.\n * @param {number} [radix=10] The radix to interpret `value` by.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.parseInt('08');\n * // => 8\n *\n * _.map(['6', '08', '10'], _.parseInt);\n * // => [6, 8, 10]\n */\n function parseInt(string, radix, guard) {\n if (guard || radix == null) {\n radix = 0;\n } else if (radix) {\n radix = +radix;\n }\n return nativeParseInt(toString(string).replace(reTrimStart, ''), radix || 0);\n }\n\n /**\n * Repeats the given string `n` times.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to repeat.\n * @param {number} [n=1] The number of times to repeat the string.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {string} Returns the repeated string.\n * @example\n *\n * _.repeat('*', 3);\n * // => '***'\n *\n * _.repeat('abc', 2);\n * // => 'abcabc'\n *\n * _.repeat('abc', 0);\n * // => ''\n */\n function repeat(string, n, guard) {\n if ((guard ? isIterateeCall(string, n, guard) : n === undefined)) {\n n = 1;\n } else {\n n = toInteger(n);\n }\n return baseRepeat(toString(string), n);\n }\n\n /**\n * Replaces matches for `pattern` in `string` with `replacement`.\n *\n * **Note:** This method is based on\n * [`String#replace`](https://mdn.io/String/replace).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to modify.\n * @param {RegExp|string} pattern The pattern to replace.\n * @param {Function|string} replacement The match replacement.\n * @returns {string} Returns the modified string.\n * @example\n *\n * _.replace('Hi Fred', 'Fred', 'Barney');\n * // => 'Hi Barney'\n */\n function replace() {\n var args = arguments,\n string = toString(args[0]);\n\n return args.length < 3 ? string : string.replace(args[1], args[2]);\n }\n\n /**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\n var snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n });\n\n /**\n * Splits `string` by `separator`.\n *\n * **Note:** This method is based on\n * [`String#split`](https://mdn.io/String/split).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category String\n * @param {string} [string=''] The string to split.\n * @param {RegExp|string} separator The separator pattern to split by.\n * @param {number} [limit] The length to truncate results to.\n * @returns {Array} Returns the string segments.\n * @example\n *\n * _.split('a-b-c', '-', 2);\n * // => ['a', 'b']\n */\n function split(string, separator, limit) {\n if (limit && typeof limit != 'number' && isIterateeCall(string, separator, limit)) {\n separator = limit = undefined;\n }\n limit = limit === undefined ? MAX_ARRAY_LENGTH : limit >>> 0;\n if (!limit) {\n return [];\n }\n string = toString(string);\n if (string && (\n typeof separator == 'string' ||\n (separator != null && !isRegExp(separator))\n )) {\n separator = baseToString(separator);\n if (!separator && hasUnicode(string)) {\n return castSlice(stringToArray(string), 0, limit);\n }\n }\n return string.split(separator, limit);\n }\n\n /**\n * Converts `string` to\n * [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * @static\n * @memberOf _\n * @since 3.1.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the start cased string.\n * @example\n *\n * _.startCase('--foo-bar--');\n * // => 'Foo Bar'\n *\n * _.startCase('fooBar');\n * // => 'Foo Bar'\n *\n * _.startCase('__FOO_BAR__');\n * // => 'FOO BAR'\n */\n var startCase = createCompounder(function(result, word, index) {\n return result + (index ? ' ' : '') + upperFirst(word);\n });\n\n /**\n * Checks if `string` starts with the given target string.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {string} [target] The string to search for.\n * @param {number} [position=0] The position to search from.\n * @returns {boolean} Returns `true` if `string` starts with `target`,\n * else `false`.\n * @example\n *\n * _.startsWith('abc', 'a');\n * // => true\n *\n * _.startsWith('abc', 'b');\n * // => false\n *\n * _.startsWith('abc', 'b', 1);\n * // => true\n */\n function startsWith(string, target, position) {\n string = toString(string);\n position = position == null\n ? 0\n : baseClamp(toInteger(position), 0, string.length);\n\n target = baseToString(target);\n return string.slice(position, position + target.length) == target;\n }\n\n /**\n * Creates a compiled template function that can interpolate data properties\n * in \"interpolate\" delimiters, HTML-escape interpolated data properties in\n * \"escape\" delimiters, and execute JavaScript in \"evaluate\" delimiters. Data\n * properties may be accessed as free variables in the template. If a setting\n * object is given, it takes precedence over `_.templateSettings` values.\n *\n * **Note:** In the development build `_.template` utilizes\n * [sourceURLs](http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/#toc-sourceurl)\n * for easier debugging.\n *\n * For more information on precompiling templates see\n * [lodash's custom builds documentation](https://lodash.com/custom-builds).\n *\n * For more information on Chrome extension sandboxes see\n * [Chrome's extensions documentation](https://developer.chrome.com/extensions/sandboxingEval).\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category String\n * @param {string} [string=''] The template string.\n * @param {Object} [options={}] The options object.\n * @param {RegExp} [options.escape=_.templateSettings.escape]\n * The HTML \"escape\" delimiter.\n * @param {RegExp} [options.evaluate=_.templateSettings.evaluate]\n * The \"evaluate\" delimiter.\n * @param {Object} [options.imports=_.templateSettings.imports]\n * An object to import into the template as free variables.\n * @param {RegExp} [options.interpolate=_.templateSettings.interpolate]\n * The \"interpolate\" delimiter.\n * @param {string} [options.sourceURL='lodash.templateSources[n]']\n * The sourceURL of the compiled template.\n * @param {string} [options.variable='obj']\n * The data object variable name.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Function} Returns the compiled template function.\n * @example\n *\n * // Use the \"interpolate\" delimiter to create a compiled template.\n * var compiled = _.template('hello <%= user %>!');\n * compiled({ 'user': 'fred' });\n * // => 'hello fred!'\n *\n * // Use the HTML \"escape\" delimiter to escape data property values.\n * var compiled = _.template('<%- value %>');\n * compiled({ 'value': '