effector-inspector
Advanced tools
Comparing version 0.3.0 to 0.4.0
@@ -1,2 +0,2 @@ | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=require("forest")},function(e,t){e.exports=require("effector")},function(e,t){e.exports=require("foliage")},function(e,t,n){"use strict";n.r(t),n.d(t,"createInspector",(function(){return nt})),n.d(t,"addStore",(function(){return rt})),n.d(t,"addEvent",(function(){return ot})),n.d(t,"addEffect",(function(){return it}));var r=n(1),o=n(0),i=n(2);function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function a(){var e=I(["\n padding: 0 0.5rem;\n margin: 0 0.5rem;\n border: 1px solid rgba(0, 0, 0, 0.4);\n border-radius: 0.2rem;\n"]);return a=function(){return e},e}function u(){var e=I(["\n padding: 0 0.5rem;\n"]);return u=function(){return e},e}function l(){var e=I([""]);return l=function(){return e},e}function f(){var e=I(["\n display: flex;\n padding: 1rem;\n"]);return f=function(){return e},e}function s(){var e=I(["\n color: orangered;\n"]);return s=function(){return e},e}function d(){var e=I([""]);return d=function(){return e},e}function p(){var e=I(["\n color: olive;\n"]);return p=function(){return e},e}function b(){var e=I(["\n color: blue;\n font-weight: bold;\n"]);return b=function(){return e},e}function m(){var e=I(["\n color: green;\n"]);return m=function(){return e},e}function y(){var e=I(["\n color: blue;\n"]);return y=function(){return e},e}function v(){var e=I(["\n color: mediumvioletred;\n font-style: italic;\n"]);return v=function(){return e},e}function j(){var e=I(["\n display: inline-block;\n\n [data-opened='true'] > & {\n display: block;\n padding-left: 8px;\n }\n\n &[data-hidden='folded'] {\n display: none;\n\n [data-opened='true'] > & {\n display: block;\n }\n }\n\n &[data-hidden='expanded'] {\n display: inline-block;\n\n [data-opened='true'] > & {\n display: none;\n }\n }\n\n &:not(:last-child)::after {\n content: ', ';\n }\n"]);return j=function(){return e},e}function O(){var e=I(["\n background-color: transparent;\n border: 1px solid rgba(0, 0, 0, 0.4);\n padding: 0.2rem 0.4rem;\n margin: 0;\n font-family: hasklig, monofur, monospace;\n border-radius: 6px;\n margin-left: 1rem;\n"]);return O=function(){return e},e}function g(){var e=I(["\n margin: 0 0;\n font-family: hasklig, monofur, monospace;\n"]);return g=function(){return e},e}function h(){var e=I(["\n display: flex;\n margin: 0 0;\n color: darkred;\n font-family: hasklig, monofur, monospace;\n"]);return h=function(){return e},e}function x(){var e=I(["\n display: flex;\n padding: 0.5rem 1rem;\n margin: 0 0;\n"]);return x=function(){return e},e}function w(){var e=I(["\n list-style-type: none;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n"]);return w=function(){return e},e}function S(){var e=I(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow-y: auto;\n"]);return S=function(){return e},e}function k(){var e=I(["\n padding: 0.5rem 1rem;\n cursor: pointer;\n border-radius: inherit;\n border-top-right-radius: 0;\n\n &:hover {\n box-shadow: inset 0 -2px 0 0 mediumvioletred;\n }\n\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &[data-active='true'] {\n background: linear-gradient(rgba(199, 21, 133, 0), rgba(199, 21, 133, 0.1));\n }\n"]);return k=function(){return e},e}function A(){var e=I(["\n background-color: white;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n display: flex;\n font-size: 1.2rem;\n font-weight: bold;\n line-height: 2rem;\n position: sticky;\n left: 0;\n right: 0;\n top: 0;\n"]);return A=function(){return e},e}function E(){var e=I(["\n display: flex;\n flex-flow: column;\n position: relative;\n width: 100%;\n border-radius: inherit;\n"]);return E=function(){return e},e}function P(){var e=I(["\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 14.5px 5.2px -10px rgba(0, 0, 0, 0.038),\n 0 23.9px 16.6px -10px rgba(0, 0, 0, 0.057),\n 0 64px 118px -10px rgba(0, 0, 0, 0.08), 0 0 10px -3px rgba(0, 0, 0, 0.08);\n display: flex;\n flex-direction: row;\n bottom: 3rem;\n right: 3rem;\n top: 3rem;\n position: fixed;\n z-index: 1000;\n user-select: none;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'PT Sans', Helvetica, Arial, sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.5;\n width: 100%;\n max-width: 46rem;\n\n & > * + * {\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n\n @media screen and (max-width: 700px) {\n max-width: 30rem;\n }\n"]);return P=function(){return e},e}function I(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var T=i.styled.div(P()),z=i.styled.section(E()),D=i.styled.div(A()),$=i.styled.div(k()),M=i.styled.div(S()),C=i.styled.ul(w()),q=i.styled.li(x()),U=i.styled.pre(h()),F=i.styled.pre(g()),_=i.styled.button(O()),N=i.styled.span(j()),B=i.styled.span(v()),L=i.styled.span(y()),R=i.styled.span(m()),W=i.styled.span(b()),J={boolean:B,date:i.styled.span(p()),keyword:W,number:L,string:R,symbol:i.styled.span(d()),regexp:i.styled.span(s())},H=i.styled.div(f()),K=i.styled.input(l()),V=i.styled.label(u()),G=i.styled.input(a()),Q=function(e){var t=e.title,n=c(e,["title"]);V((function(){K((function(){Object(o.spec)({attr:{type:"checkbox"}}),Object(o.spec)(n)})),Object(o.spec)({text:t})}))},X=Math.pow(983020,3);function Y(e,t){var n,r;return null!==(n=null!==(r=localStorage.getItem("".concat(X,"-").concat(e)))&&void 0!==r?r:t)&&void 0!==n?n:""}function Z(e,t){return localStorage.setItem("".concat(X,"-").concat(e),t),t}function ee(e){return{read:function(t){return Y(e,t)},write:function(t){return Z(e,t)}}}function te(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 i,c=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var re=ee("last-tab");function oe(e){var t=Object.keys(e),n=t[0],o=re.read(n),i=t.includes(o)?o:n,c=Object(r.createEvent)({loc:{file:"/src/tabs.ts",line:10,column:22},name:"changeTab",sid:"-z2hzvl"}),a=Object(r.restore)(c,i,{loc:{file:"/src/tabs.ts",line:11,column:17},name:"$tab",sid:"16xfb8"});a.watch(re.write),z((function(){D((function(){var n,r=te(t);try{var o=function(){var t=n.value,r=e[t];$({text:r.title,data:{active:a.map((function(e){return e===t}))},handler:{click:c.prepend((function(){return t}))}})};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}));var n,r=te(t);try{var o=function(){var t=n.value,r=e[t];M({visible:a.map((function(e){return e===t})),fn:function(){r.fn({changeTab:c})}})};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}))}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||ae(e,t)||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 ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ae(e)||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(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var le=/\[object ([\w\s]+)\]/;function fe(e){var t=Object.prototype.toString.call(e),n=le.exec(t);return n?n[1]:"unknown"}function se(e){var t=Object(o.rec)((function(e){var n=e.state;Object(o.variant)({source:n.map((function(e){return{type:fe(e)}})),key:"type",cases:{String:function(){return J.string({text:['"',n,'"']})},Number:function(){return J.number({text:n})},BigInt:function(){return J.number({text:[n,"n"],attr:{title:"BigInt"}})},Boolean:function(){return J.boolean({text:n})},Null:function(){return J.keyword({text:"null"})},Undefined:function(){return J.keyword({text:"undefined"})},Symbol:function(){return J.symbol({text:n})},RegExp:function(){var e=n.map((function(e){return e.source})),t=n.map((function(e){return e.flags}));J.regexp({text:["/",e,"/",t]})},Function:function(){var e={title:n.map((function(e){return e.toString()}))};Object(o.h)("span",{text:"function",attr:e}),J.keyword({text:n.map((function(e){return e.name?" ".concat(e.name):""})),attr:e}),Object(o.h)("span",{text:"()",attr:e})},AsyncFunction:function(){var e={title:n.map((function(e){return e.toString()}))};Object(o.h)("span",{text:"async function",attr:e}),J.keyword({text:n.map((function(e){return e.name?" ".concat(e.name):""})),attr:e}),Object(o.h)("span",{text:"()",attr:e})},Window:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:48,column:38},name:"click",sid:"nc9du1"}),t=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:49,column:39},name:"opened",sid:"s6h3uu"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:t}}),Object(o.h)("span",{text:"Window {...",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.spec)({text:"}"})}))},Date:function(){J.date({text:n.map((function(e){var t;return null===(t=e.toISOString)||void 0===t?void 0:t.call(e)})),attr:{title:n}})},Array:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:68,column:38},name:"click",sid:"-ic23p1"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:69,column:39},name:"opened",sid:"-dhudo8"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:"[",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(n,(function(e){var n=e.store;return N((function(){return t({state:n})}))})),Object(o.spec)({text:"]"})}))},Arguments:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:83,column:38},name:"click",sid:"8nics2"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:84,column:39},name:"opened",sid:"dhq2sv"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:"Arguments [",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(n.map((function(e){return ce(e)})),(function(e){var n=e.store;return N((function(){return t({state:n})}))})),Object(o.spec)({text:"]"})}))},Set:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:98,column:38},name:"click",sid:"pp4qz2"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:99,column:39},name:"opened",sid:"ujcgzv"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:"Set [",fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(n.map((function(e){return ce(e.values())})),(function(e){var n=e.store;return N((function(){return t({state:n})}))})),Object(o.spec)({text:"]"})}))},Map:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:113,column:38},name:"click",sid:"-uewb2w"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:114,column:39},name:"opened",sid:"ydad3b"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",(function(){Object(o.spec)({text:"Map {"}),Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})})),Object(o.list)(n.map((function(e){return ce(e.entries())})),(function(n){var r=n.store,i=r.map((function(e){return ie(e,1)[0]})),c=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',i,'"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:" => "}),t({state:c})}))})),Object(o.spec)({text:"}"})}))},Error:function(){Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:139,column:38},name:"click",sid:"1s5zqc"}),i=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:140,column:39},name:"opened",sid:"5h6o7i"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:i}}),Object(o.h)("span",{text:[n.map((function(e){return e.name}))," {"],attr:{title:n.map((function(e){return e.constructor.name}))},fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),N((function(){Object(o.spec)({data:{hidden:"expanded"}}),J.string({text:['"message"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),t({state:n.map((function(e){return e.message}))})})),N((function(){Object(o.spec)({data:{hidden:"folded"}}),J.string({text:['"stack"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),t({state:n.map((function(e){return e.stack}))})})),Object(o.list)(n.map((function(e){return ce(Object.entries(e))})),(function(n){var r=n.store,i=r.map((function(e){return ie(e,1)[0]})),c=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',i,'"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),t({state:c})}))}))})),Object(o.h)("span",{text:"}"})},__:function(e){var i=e.store;Object(o.h)("span",(function(){var e=Object(r.createEvent)({loc:{file:"/src/object-view.ts",line:190,column:38},name:"click",sid:"ek11jn"}),c=Object(r.createStore)(!1,{loc:{file:"/src/object-view.ts",line:191,column:39},name:"opened",sid:"8b3nqq"}).on(e,(function(e){return!e}));Object(o.spec)({data:{opened:c}}),Object(o.h)("span",{text:[i.map((function(e){return e.type}))," {"],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.list)(n.map((function(e){return ce(Object.entries(e))})),(function(n){var r=n.store,i=r.map((function(e){return ie(e,1)[0]})),c=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',i,'"'],fn:function(){Object(o.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(o.h)("span",{text:": "}),t({state:c})}))}))})),Object(o.h)("span",{text:"}"})}}})}));t({state:e.value})}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||be(e,t)||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 pe(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||be(e)||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 be(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ye,ve=(ye="filter-kinds",{read:function(e){return JSON.parse(Y(ye,JSON.stringify(e)))},write:function(e){return Z(ye,JSON.stringify(e)),e}}),je=ee("filter-text");function Oe(e){var t=Object(r.createEvent)({loc:{file:"/src/logs.ts",line:10,column:23},name:"toggleKind",sid:"a40s1e"}),n=Object(r.createEvent)({loc:{file:"/src/logs.ts",line:11,column:26},name:"filterChanged",sid:"rus8aq"}),i=Object(r.createEvent)({loc:{file:"/src/logs.ts",line:12,column:25},name:"clearClicked",sid:"fqsv0g"}),c=Object(r.createStore)(ve.read(["event","store"]),{loc:{file:"/src/logs.ts",line:13,column:19},name:"$kinds",sid:"szzha3"}),a=Object(r.restore)(n,je.read(""),{loc:{file:"/src/logs.ts",line:14,column:24},name:"$filterText",sid:"-aznuxe"});c.on(t,(function(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):[].concat(pe(e),[t])})).watch(ve.write),a.watch(je.write),e.on(i,(function(){return[]})),H((function(){Object(o.h)("span",{text:"Show: "}),Q({title:"Event",attr:{checked:c.map((function(e){return e.includes("event")}))},handler:{click:t.prepend((function(){return"event"}))}}),Q({title:"Store",attr:{checked:c.map((function(e){return e.includes("store")}))},handler:{click:t.prepend((function(){return"store"}))}}),Q({title:"Effect",attr:{checked:c.map((function(e){return e.includes("effect")}))},handler:{click:t.prepend((function(){return"effect"}))}}),Object(o.h)("span",{text:"Filter:"}),G({attr:{value:a},handler:{change:n.prepend((function(e){var t,n;return null!==(t=null===(n=e.currentTarget)||void 0===n?void 0:n.value)&&void 0!==t?t:""}))}}),_({text:"Clear",handler:{click:i}})})),C((function(){Object(o.list)({source:e,key:"id",fields:["kind","name","payload","datetime"],fn:function(e){var t=de(e.fields,4),n=t[0],o=t[1],i=t[2],u=t[3],l=Object(r.combine)({"ɔ":[n,c,function(e,t){return t.includes(e)}],config:{loc:{file:"/src/logs.ts",line:54,column:37},name:"$kindMatched",sid:"-9wrr4d"}}),f=Object(r.combine)({"ɔ":[a,o,function(e,t){return t.includes(e)}],config:{loc:{file:"/src/logs.ts",line:55,column:37},name:"$textMatched",sid:"1kzb89"}}),s=Object(r.combine)({"ɔ":[l,f,function(e,t){return e&&t}],config:{loc:{file:"/src/logs.ts",line:56,column:33},name:"$visible",sid:"-kgb7m1"}});q({visible:s,fn:function(){var e=u.map((function(e){return e.toISOString()})),t=u.map((function(e){return e.toLocaleTimeString()}));U({text:[t," ▸ "],attr:{title:e}}),U({text:n}),U({text:[" «",o,"» "]}),F((function(){return se({value:i})}))}})}})}))}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return we(e,t)}(e,t)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=xe(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:t[0]},t[1])}))}));Object(o.list)({source:t,key:"name",fields:["name","value"],fn:function(e){var t=xe(e.fields,2),n=t[0],r=t[1];q((function(){U({text:[n,": "]}),F((function(){se({value:r})}))}))}})}))}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pe(e,t)}(e,t)||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 Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ie(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=Ee(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:t[0]},t[1])}))}));Object(o.list)({source:t,key:"name",fields:["name","lastTriggeredWith"],fn:function(e){var t=Ee(e.fields,1)[0];q((function(){U({text:[t," "]})}))}})}))}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $e(e,t)}(e,t)||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 $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Me(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=De(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({sid:t[0]},t[1])}))}));Object(o.list)({source:t,key:"sid",fields:["name","inFlight"],fn:function(e){var t=De(e.fields,2),n=t[0],r=t[1];q((function(){U({text:[n," "]}),F((function(){Object(o.h)("span",(function(){Object(o.h)("span",{text:[" {"]}),J.string({text:'"inFlight": '}),J.number({text:r}),Object(o.h)("span",{text:["}"]})}))}))}))}})}))}var Ce=Object(r.createStore)(!1,{loc:{file:"/src/view.ts",line:9,column:19},name:"$isVisible",sid:"-n4epn7"}),qe=Object(r.createEvent)({loc:{file:"/src/view.ts",line:10,column:22},name:"togglePressed",sid:"-6mw5g1"}),Ue=Object(r.createEvent)({loc:{file:"/src/view.ts",line:11,column:22},name:"showInspector",sid:"-y75g2u"});function Fe(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];o&&Ue(),console.info("%c[effector-inspector] %cPress %cCTRL+B %cto open Inspector","color: gray; font-size: 1rem;","color: currentColor; font-size: 1rem;","color: deepskyblue; font-family: monospace; font-size: 1rem;","color: currentColor; font-size: 1rem;"),T({visible:Ce,fn:function(){oe({stores:{title:"Stores",fn:function(){Se(e)}},effects:{title:"Effects",fn:function(){Me(n)}},events:{title:"Events",fn:function(){Ie(t)}},logs:{title:"Logs",fn:function(){Oe(r)}}})}})}document.addEventListener("keypress",(function(e){2===e.keyCode&&e.ctrlKey&&qe()})),Ce.on(qe,(function(e){return!e})).on(Ue,(function(){return!0}));function _e(e){return function(e){if(Array.isArray(e))return Ne(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ne(e,t)}(e)||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 Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Le(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Re(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Re(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var We=Object(r.createEvent)({loc:{file:"/src/index.ts",line:5,column:17},name:"storeAdd",sid:"-wopdia"}),Je=Object(r.createEvent)({loc:{file:"/src/index.ts",line:6,column:21},name:"storeUpdated",sid:"vmsjku"}),He=Object(r.createStore)({},{loc:{file:"/src/index.ts",line:7,column:16},name:"$stores",sid:"i7hdcj"}),Ke=Object(r.createEvent)({loc:{file:"/src/index.ts",line:8,column:17},name:"eventAdd",sid:"-or028u"}),Ve=Object(r.createEvent)({loc:{file:"/src/index.ts",line:9,column:23},name:"eventTriggered",sid:"86fn0c"}),Ge=Object(r.createStore)({},{loc:{file:"/src/index.ts",line:10,column:16},name:"$events",sid:"-bopi5k"}),Qe=Object(r.createEvent)({loc:{file:"/src/index.ts",line:11,column:18},name:"effectAdd",sid:"exj8si"}),Xe=Object(r.createEvent)({loc:{file:"/src/index.ts",line:12,column:24},name:"effectTriggered",sid:"-wmuqs0"}),Ye=Object(r.createStore)({},{loc:{file:"/src/index.ts",line:13,column:17},name:"$effects",sid:"-548kt"}),Ze=Object(r.createStore)([],{loc:{file:"/src/index.ts",line:14,column:14},name:"$logs",sid:"dr2ta8"});He.on(We,(function(e,t){return Le(Le({},e),{},Re({},t.name,{value:t.store.getState(),mapped:t.mapped}))})).on(Je,(function(e,t){var n=t.name,r=t.value;return e[n]=Le(Le({},e[n]),{},{value:r}),Le({},e)})),Ge.on(Ke,(function(e,t){return Le(Le({},e),{},Re({},t.name,{mapped:t.mapped,lastTriggeredWith:void 0}))})).on(Ve,(function(e,t){var n=t.name,r=t.params;return e[n]=Le(Le({},e[n]),{},{lastTriggeredWith:r}),Le({},e)})),Ye.on(Qe,(function(e,t){return Le(Le({},e),{},Re({},t.sid,{name:t.name,effect:t.effect,inFlight:t.effect.inFlight.getState()}))})).on(Xe,(function(e,t){var n=t.sid,r=e[n];return e[n]=Le(Le({},r),{},{inFlight:r.effect.inFlight.getState()}),Le({},e)}));var et=1e3,tt=Object(r.createEffect)({handler:function(e){var t=e.name,n=e.kind,r=e.payload;return{id:(++et).toString(36),kind:n,name:t,payload:r,datetime:new Date}}},{loc:{file:"/src/index.ts",line:60,column:23},name:"createRecordFx",sid:"-loxrq9"});function nt(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=document.createElement("div");return t.classList.add("effector-inspector"),document.body.append(t),Object(o.using)(t,(function(){return Fe(He,Ge,Ye,Ze,e.visible)})),Object(o.using)(t,i.StyledRoot),{root:t}}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name||ct(e);We({store:e,name:n,mapped:t.mapped||!1}),Object(r.forward)({"ɔ":{from:e.updates.map((function(e){return{name:n,value:e}})),to:Je},config:{loc:{file:"/src/index.ts",line:99,column:4},sid:"-7ozz2r"}})}function ot(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name||ct(e);Ke({event:e,name:n,mapped:t.mapped||!1}),Object(r.forward)({"ɔ":{from:e.map((function(e){return{name:n,params:e}})),to:Ve},config:{loc:{file:"/src/index.ts",line:107,column:4},sid:"-4vqu6z"}})}function it(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=ct(e),i=n.sid||e.sid||o;Qe({effect:e,name:o,sid:i,attached:null!==(t=n.attached)&&void 0!==t&&t}),Object(r.forward)({"ɔ":{from:[e,e.finally],to:Xe.prepend((function(){return{sid:i}}))},config:{loc:{file:"/src/index.ts",line:119,column:4},sid:"-4dlmm2"}});var c=e.map((function(e){return{kind:"effect",name:o,payload:e}})),a=e.done.map((function(e){return{kind:"effect",name:o+".done",payload:e}})),u=e.fail.map((function(e){return{kind:"effect",name:o+".fail",payload:e}}));Object(r.forward)({"ɔ":{from:[c,a,u],to:tt},config:{loc:{file:"/src/index.ts",line:138,column:4},sid:"-3g26f1"}})}function ct(e){return e.compositeName.path.join("/")}Object(r.forward)({"ɔ":{from:Ve,to:tt.prepend((function(e){return{kind:"event",name:e.name,payload:e.params}}))},config:{loc:{file:"/src/index.ts",line:71,column:0},sid:"-8rhkph"}}),Object(r.forward)({"ɔ":{from:Je,to:tt.prepend((function(e){return{kind:"store",name:e.name,payload:e.value}}))},config:{loc:{file:"/src/index.ts",line:79,column:0},sid:"-8n37yl"}}),Ze.on(tt.doneData,(function(e,t){return[t].concat(_e(e))}))}]); | ||
module.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t){e.exports=require("forest")},function(e,t){e.exports=require("effector")},function(e,t){e.exports=require("foliage")},function(e,t,n){"use strict";n.r(t),n.d(t,"createInspector",(function(){return ot})),n.d(t,"addStore",(function(){return it})),n.d(t,"addEvent",(function(){return ct})),n.d(t,"addEffect",(function(){return at}));var r,o,i,c,a,u,l,f,s,d,p,b,m,y,v,j,O,g,h,x,w,S,k=n(1),A=n(0),E=n(2);function P(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function I(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var T=E.styled.div(r||(r=I(["\n background-color: white;\n border-radius: 0.5rem;\n box-shadow: 0 14.5px 5.2px -10px rgba(0, 0, 0, 0.038),\n 0 23.9px 16.6px -10px rgba(0, 0, 0, 0.057),\n 0 64px 118px -10px rgba(0, 0, 0, 0.08), 0 0 10px -3px rgba(0, 0, 0, 0.08);\n display: flex;\n flex-direction: row;\n bottom: 3rem;\n right: 3rem;\n top: 3rem;\n position: fixed;\n z-index: 1000;\n user-select: none;\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,\n Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n 'PT Sans', Helvetica, Arial, sans-serif;\n -ms-text-size-adjust: 100%;\n -webkit-text-size-adjust: 100%;\n line-height: 1.5;\n width: 100%;\n max-width: 46rem;\n\n & > * + * {\n border-left: 1px solid rgba(0, 0, 0, 0.08);\n }\n\n @media screen and (max-width: 700px) {\n max-width: 30rem;\n }\n"]))),z=E.styled.section(o||(o=I(["\n display: flex;\n flex-flow: column;\n position: relative;\n width: 100%;\n border-radius: inherit;\n"]))),D=E.styled.div(i||(i=I(["\n background-color: white;\n border-bottom: 1px solid rgba(0, 0, 0, 0.08);\n border-radius: inherit;\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0;\n display: flex;\n font-size: 1.2rem;\n font-weight: bold;\n line-height: 2rem;\n position: sticky;\n left: 0;\n right: 0;\n top: 0;\n"]))),$=E.styled.div(c||(c=I(["\n padding: 0.5rem 1rem;\n cursor: pointer;\n border-radius: inherit;\n border-top-right-radius: 0;\n\n &:hover {\n box-shadow: inset 0 -2px 0 0 mediumvioletred;\n }\n\n &:not(:first-child) {\n border-top-left-radius: 0;\n }\n\n &[data-active='true'] {\n background: linear-gradient(rgba(199, 21, 133, 0), rgba(199, 21, 133, 0.1));\n }\n"]))),M=E.styled.div(a||(a=I(["\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow-y: auto;\n"]))),C=E.styled.ul(u||(u=I(["\n list-style-type: none;\n margin: 0 0;\n padding: 0 0;\n overflow-x: auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n"]))),q=E.styled.li(l||(l=I(["\n display: flex;\n padding: 0.5rem 1rem;\n margin: 0 0;\n"]))),U=E.styled.pre(f||(f=I(["\n display: flex;\n margin: 0 0;\n color: darkred;\n font-family: hasklig, monofur, monospace;\n"]))),F=E.styled.pre(s||(s=I(["\n margin: 0 0;\n font-family: hasklig, monofur, monospace;\n"]))),_=E.styled.button(d||(d=I(["\n background-color: transparent;\n border: 1px solid rgba(0, 0, 0, 0.4);\n padding: 0.2rem 0.4rem;\n margin: 0;\n font-family: hasklig, monofur, monospace;\n border-radius: 6px;\n margin-left: 1rem;\n"]))),N=E.styled.span(p||(p=I(["\n display: inline-block;\n\n [data-opened='true'] > & {\n display: block;\n padding-left: 8px;\n }\n\n &[data-hidden='folded'] {\n display: none;\n\n [data-opened='true'] > & {\n display: block;\n }\n }\n\n &[data-hidden='expanded'] {\n display: inline-block;\n\n [data-opened='true'] > & {\n display: none;\n }\n }\n\n &:not(:last-child)::after {\n content: ', ';\n }\n"]))),B=E.styled.span(b||(b=I(["\n color: mediumvioletred;\n font-style: italic;\n"]))),L=E.styled.span(m||(m=I(["\n color: blue;\n"]))),R=E.styled.span(y||(y=I(["\n color: green;\n"]))),W=E.styled.span(v||(v=I(["\n color: blue;\n font-weight: bold;\n"]))),J={boolean:B,date:E.styled.span(j||(j=I(["\n color: olive;\n"]))),keyword:W,number:L,string:R,symbol:E.styled.span(O||(O=I([""]))),regexp:E.styled.span(g||(g=I(["\n color: orangered;\n"])))},H=E.styled.div(h||(h=I(["\n display: flex;\n padding: 1rem;\n"]))),K=E.styled.input(x||(x=I([""]))),V=E.styled.label(w||(w=I(["\n padding: 0 0.5rem;\n"]))),G=E.styled.input(S||(S=I(["\n padding: 0 0.5rem;\n margin: 0 0.5rem;\n border: 1px solid rgba(0, 0, 0, 0.4);\n border-radius: 0.2rem;\n"]))),Q=function(e){var t=e.title,n=P(e,["title"]);V((function(){K((function(){Object(A.spec)({attr:{type:"checkbox"}}),Object(A.spec)(n)})),Object(A.spec)({text:t})}))},X=Math.pow(983020,3);function Y(e,t){var n,r;return null!==(n=null!==(r=localStorage.getItem("".concat(X,"-").concat(e)))&&void 0!==r?r:t)&&void 0!==n?n:""}function Z(e,t){return localStorage.setItem("".concat(X,"-").concat(e),t),t}function ee(e){return{read:function(t){return Y(e,t)},write:function(t){return Z(e,t)}}}function te(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return ne(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ne(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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 i,c=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return c=e.done,e},e:function(e){a=!0,i=e},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}function ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var re=ee("last-tab");function oe(e){var t=Object.keys(e),n=t[0],r=re.read(n),o=t.includes(r)?r:n,i=Object(k.createEvent)({loc:{file:"/src/tabs.ts",line:10,column:22},name:"changeTab",sid:"-z2hzvl"}),c=Object(k.restore)(i,o,{loc:{file:"/src/tabs.ts",line:11,column:17},name:"$tab",sid:"16xfb8"});c.watch(re.write),z((function(){D((function(){var n,r=te(t);try{var o=function(){var t=n.value,r=e[t];$({text:r.title,data:{active:c.map((function(e){return e===t}))},handler:{click:i.prepend((function(){return t}))}})};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}));var n,r=te(t);try{var o=function(){var t=n.value,r=e[t];M({visible:c.map((function(e){return e===t})),fn:function(){r.fn({changeTab:i})}})};for(r.s();!(n=r.n()).done;)o()}catch(e){r.e(e)}finally{r.f()}}))}function ie(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||ae(e,t)||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 ce(e){return function(e){if(Array.isArray(e))return ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||ae(e)||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(e,t){if(e){if("string"==typeof e)return ue(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ue(e,t):void 0}}function ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var le=/\[object ([\w\s]+)\]/;function fe(e){var t=Object.prototype.toString.call(e),n=le.exec(t);return n?n[1]:"unknown"}function se(e){var t=Object(A.rec)((function(e){var n=e.store;Object(A.variant)({source:n.map((function(e){return{type:fe(e)}})),key:"type",cases:{String:function(){return J.string({text:['"',n,'"']})},Number:function(){return J.number({text:n})},BigInt:function(){return J.number({text:[n,"n"],attr:{title:"BigInt"}})},Boolean:function(){return J.boolean({text:n})},Null:function(){return J.keyword({text:"null"})},Undefined:function(){return J.keyword({text:"undefined"})},Symbol:function(){return J.symbol({text:n})},RegExp:function(){var e=n.map((function(e){return e.source})),t=n.map((function(e){return e.flags}));J.regexp({text:["/",e,"/",t]})},Function:function(){var e={title:n.map((function(e){return e.toString()}))};Object(A.h)("span",{text:"function",attr:e}),J.keyword({text:n.map((function(e){return e.name?" ".concat(e.name):""})),attr:e}),Object(A.h)("span",{text:"()",attr:e})},AsyncFunction:function(){var e={title:n.map((function(e){return e.toString()}))};Object(A.h)("span",{text:"async function",attr:e}),J.keyword({text:n.map((function(e){return e.name?" ".concat(e.name):""})),attr:e}),Object(A.h)("span",{text:"()",attr:e})},Window:function(){Object(A.h)("span",(function(){var e=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:48,column:38},name:"click",sid:"nc9du1"}),t=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:49,column:39},name:"opened",sid:"s6h3uu"}).on(e,(function(e){return!e}));Object(A.spec)({data:{opened:t}}),Object(A.h)("span",{text:"Window {...",fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.spec)({text:"}"})}))},Date:function(){J.date({text:n.map((function(e){var t;return null===(t=e.toISOString)||void 0===t?void 0:t.call(e)})),attr:{title:n}})},Array:function(){Object(A.h)("span",(function(){var e=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:68,column:38},name:"click",sid:"-ic23p1"}),r=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:69,column:39},name:"opened",sid:"-dhudo8"}).on(e,(function(e){return!e}));Object(A.spec)({data:{opened:r}}),Object(A.h)("span",{text:"[",fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.list)(n,(function(e){var n=e.store;return N((function(){return t({store:n})}))})),Object(A.spec)({text:"]"})}))},Arguments:function(){Object(A.h)("span",(function(){var e=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:83,column:38},name:"click",sid:"8nics2"}),r=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:84,column:39},name:"opened",sid:"dhq2sv"}).on(e,(function(e){return!e}));Object(A.spec)({data:{opened:r}}),Object(A.h)("span",{text:"Arguments [",fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.list)(n.map((function(e){return ce(e)})),(function(e){var n=e.store;return N((function(){return t({store:n})}))})),Object(A.spec)({text:"]"})}))},Set:function(){Object(A.h)("span",(function(){var e=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:98,column:38},name:"click",sid:"pp4qz2"}),r=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:99,column:39},name:"opened",sid:"ujcgzv"}).on(e,(function(e){return!e}));Object(A.spec)({data:{opened:r}}),Object(A.h)("span",{text:"Set [",fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.list)(n.map((function(e){return ce(e.values())})),(function(e){var n=e.store;return N((function(){return t({store:n})}))})),Object(A.spec)({text:"]"})}))},Map:function(){Object(A.h)("span",(function(){var e=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:113,column:38},name:"click",sid:"-uewb2w"}),r=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:114,column:39},name:"opened",sid:"ydad3b"}).on(e,(function(e){return!e}));Object(A.spec)({data:{opened:r}}),Object(A.h)("span",(function(){Object(A.spec)({text:"Map {"}),Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})})),Object(A.list)(n.map((function(e){return ce(e.entries())})),(function(n){var r=n.store,o=r.map((function(e){return ie(e,1)[0]})),i=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',o,'"'],fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.h)("span",{text:" => "}),t({store:i})}))})),Object(A.spec)({text:"}"})}))},Error:function(){Object(A.h)("span",(function(){var e=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:139,column:38},name:"click",sid:"1s5zqc"}),r=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:140,column:39},name:"opened",sid:"5h6o7i"}).on(e,(function(e){return!e}));Object(A.spec)({data:{opened:r}}),Object(A.h)("span",{text:[n.map((function(e){return e.name}))," {"],attr:{title:n.map((function(e){return e.constructor.name}))},fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),N((function(){Object(A.spec)({data:{hidden:"expanded"}}),J.string({text:['"message"'],fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.h)("span",{text:": "}),t({store:n.map((function(e){return e.message}))})})),N((function(){Object(A.spec)({data:{hidden:"folded"}}),J.string({text:['"stack"'],fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.h)("span",{text:": "}),t({store:n.map((function(e){return e.stack}))})})),Object(A.list)(n.map((function(e){return ce(Object.entries(e))})),(function(n){var r=n.store,o=r.map((function(e){return ie(e,1)[0]})),i=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',o,'"'],fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.h)("span",{text:": "}),t({store:i})}))}))})),Object(A.h)("span",{text:"}"})},__:function(e){var r=e.store;Object(A.h)("span",(function(){var e=Object(k.createEvent)({loc:{file:"/src/object-view.ts",line:190,column:38},name:"click",sid:"ek11jn"}),o=Object(k.createStore)(!1,{loc:{file:"/src/object-view.ts",line:191,column:39},name:"opened",sid:"8b3nqq"}).on(e,(function(e){return!e}));Object(A.spec)({data:{opened:o}}),Object(A.h)("span",{text:[r.map((function(e){return e.type}))," {"],fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.list)(n.map((function(e){return ce(Object.entries(e))})),(function(n){var r=n.store,o=r.map((function(e){return ie(e,1)[0]})),i=r.map((function(e){return ie(e,2)[1]}));N((function(){J.string({text:['"',o,'"'],fn:function(){Object(A.handler)({passive:!0,capture:!0,stop:!0},{click:e})}}),Object(A.h)("span",{text:": "}),t({store:i})}))}))})),Object(A.h)("span",{text:"}"})}}})}));t({store:e.value})}function de(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||be(e,t)||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 pe(e){return function(e){if(Array.isArray(e))return me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||be(e)||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 be(e,t){if(e){if("string"==typeof e)return me(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?me(e,t):void 0}}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ye,ve=(ye="filter-kinds",{read:function(e){return JSON.parse(Y(ye,JSON.stringify(e)))},write:function(e){return Z(ye,JSON.stringify(e)),e}}),je=ee("filter-text");function Oe(e){var t=Object(k.createEvent)({loc:{file:"/src/logs.ts",line:10,column:23},name:"toggleKind",sid:"a40s1e"}),n=Object(k.createEvent)({loc:{file:"/src/logs.ts",line:11,column:26},name:"filterChanged",sid:"rus8aq"}),r=Object(k.createEvent)({loc:{file:"/src/logs.ts",line:12,column:25},name:"clearClicked",sid:"fqsv0g"}),o=Object(k.createStore)(ve.read(["event","store"]),{loc:{file:"/src/logs.ts",line:13,column:19},name:"$kinds",sid:"szzha3"}),i=Object(k.restore)(n,je.read(""),{loc:{file:"/src/logs.ts",line:14,column:24},name:"$filterText",sid:"-aznuxe"});o.on(t,(function(e,t){return e.includes(t)?e.filter((function(e){return e!==t})):[].concat(pe(e),[t])})).watch(ve.write),i.watch(je.write),e.on(r,(function(){return[]})),H((function(){Object(A.h)("span",{text:"Show: "}),Q({title:"Event",attr:{checked:o.map((function(e){return e.includes("event")}))},handler:{click:t.prepend((function(){return"event"}))}}),Q({title:"Store",attr:{checked:o.map((function(e){return e.includes("store")}))},handler:{click:t.prepend((function(){return"store"}))}}),Q({title:"Effect",attr:{checked:o.map((function(e){return e.includes("effect")}))},handler:{click:t.prepend((function(){return"effect"}))}}),Object(A.h)("span",{text:"Filter:"}),G({attr:{value:i},handler:{change:n.prepend((function(e){var t,n;return null!==(t=null===(n=e.currentTarget)||void 0===n?void 0:n.value)&&void 0!==t?t:""}))}}),_({text:"Clear",handler:{click:r}})})),C((function(){Object(A.list)({source:e,key:"id",fields:["kind","name","payload","datetime"],fn:function(e){var t=de(e.fields,4),n=t[0],r=t[1],c=t[2],a=t[3],u=Object(k.combine)({"ɔ":[n,o,function(e,t){return t.includes(e)}],config:{loc:{file:"/src/logs.ts",line:54,column:37},name:"$kindMatched",sid:"-9wrr4d"}}),l=Object(k.combine)({"ɔ":[i,r,function(e,t){return t.includes(e)}],config:{loc:{file:"/src/logs.ts",line:55,column:37},name:"$textMatched",sid:"1kzb89"}}),f=Object(k.combine)({"ɔ":[u,l,function(e,t){return e&&t}],config:{loc:{file:"/src/logs.ts",line:56,column:33},name:"$visible",sid:"-kgb7m1"}});q({visible:f,fn:function(){var e=a.map((function(e){return e.toISOString()})),t=a.map((function(e){return e.toLocaleTimeString()}));U({text:[t," ▸ "],attr:{title:e}}),U({text:n}),U({text:[" «",r,"» "]}),F((function(){return se({value:c})}))}})}})}))}function ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return we(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return we(e,t)}(e,t)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=xe(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ge(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ge(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:t[0]},t[1])}))}));Object(A.list)({source:t,key:"name",fields:["name","value"],fn:function(e){var t=xe(e.fields,2),n=t[0],r=t[1];q((function(){U({text:[n,": "]}),F((function(){se({value:r})}))}))}})}))}function ke(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ee(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pe(e,t)}(e,t)||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 Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ie(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=Ee(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ke(Object(n),!0).forEach((function(t){Ae(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ke(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({name:t[0]},t[1])}))}));Object(A.list)({source:t,key:"name",fields:["name","lastTriggeredWith"],fn:function(e){var t=Ee(e.fields,1)[0];q((function(){U({text:[t," "]})}))}})}))}function Te(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ze(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var c,a=e[Symbol.iterator]();!(r=(c=a.next()).done)&&(n.push(c.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $e(e,t)}(e,t)||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 $e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Me(e){C((function(){var t=e.map((function(e){return Object.entries(e).map((function(e){var t=De(e,2);return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Te(Object(n),!0).forEach((function(t){ze(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Te(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({sid:t[0]},t[1])}))}));Object(A.list)({source:t,key:"sid",fields:["name","inFlight"],fn:function(e){var t=De(e.fields,2),n=t[0],r=t[1];q((function(){U({text:[n," "]}),F((function(){Object(A.h)("span",(function(){Object(A.h)("span",{text:[" {"]}),J.string({text:'"inFlight": '}),J.number({text:r}),Object(A.h)("span",{text:["}"]})}))}))}))}})}))}function Ce(e){return(Ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var qe=Object(k.createStore)(!1,{loc:{file:"/src/view.ts",line:9,column:19},name:"$isVisible",sid:"-n4epn7"}),Ue=Object(k.createEvent)({loc:{file:"/src/view.ts",line:10,column:22},name:"togglePressed",sid:"-6mw5g1"}),Fe=Object(k.createEvent)({loc:{file:"/src/view.ts",line:11,column:22},name:"showInspector",sid:"-y75g2u"});function _e(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];o&&Fe(),console.info("%c[effector-inspector] %cPress %cCTRL+B %cto open Inspector","color: gray; font-size: 1rem;","color: currentColor; font-size: 1rem;","color: deepskyblue; font-family: monospace; font-size: 1rem;","color: currentColor; font-size: 1rem;"),T({visible:qe,fn:function(){oe({stores:{title:"Stores",fn:function(){Se(e)}},effects:{title:"Effects",fn:function(){Me(n)}},events:{title:"Events",fn:function(){Ie(t)}},logs:{title:"Logs",fn:function(){Oe(r)}}})}})}"object"===("undefined"==typeof document?"undefined":Ce(document))&&document.addEventListener("keypress",(function(e){2===e.keyCode&&e.ctrlKey&&Ue()})),qe.on(Ue,(function(e){return!e})).on(Fe,(function(){return!0}));function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Be(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e)||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 Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function We(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Re(Object(n),!0).forEach((function(t){Je(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Je(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=Object(k.createEvent)({loc:{file:"/src/index.ts",line:5,column:17},name:"storeAdd",sid:"-wopdia"}),Ke=Object(k.createEvent)({loc:{file:"/src/index.ts",line:6,column:21},name:"storeUpdated",sid:"vmsjku"}),Ve=Object(k.createStore)({},{loc:{file:"/src/index.ts",line:7,column:16},name:"$stores",sid:"i7hdcj"}),Ge=Object(k.createEvent)({loc:{file:"/src/index.ts",line:8,column:17},name:"eventAdd",sid:"-or028u"}),Qe=Object(k.createEvent)({loc:{file:"/src/index.ts",line:9,column:23},name:"eventTriggered",sid:"86fn0c"}),Xe=Object(k.createStore)({},{loc:{file:"/src/index.ts",line:10,column:16},name:"$events",sid:"-bopi5k"}),Ye=Object(k.createEvent)({loc:{file:"/src/index.ts",line:11,column:18},name:"effectAdd",sid:"exj8si"}),Ze=Object(k.createEvent)({loc:{file:"/src/index.ts",line:12,column:24},name:"effectTriggered",sid:"-wmuqs0"}),et=Object(k.createStore)({},{loc:{file:"/src/index.ts",line:13,column:17},name:"$effects",sid:"-548kt"}),tt=Object(k.createStore)([],{loc:{file:"/src/index.ts",line:14,column:14},name:"$logs",sid:"dr2ta8"});Ve.on(He,(function(e,t){return We(We({},e),{},Je({},t.name,{value:t.store.getState(),mapped:t.mapped}))})).on(Ke,(function(e,t){var n=t.name,r=t.value;return e[n]=We(We({},e[n]),{},{value:r}),We({},e)})),Xe.on(Ge,(function(e,t){return We(We({},e),{},Je({},t.name,{mapped:t.mapped,lastTriggeredWith:void 0}))})).on(Qe,(function(e,t){var n=t.name,r=t.params;return e[n]=We(We({},e[n]),{},{lastTriggeredWith:r}),We({},e)})),et.on(Ye,(function(e,t){return We(We({},e),{},Je({},t.sid,{name:t.name,effect:t.effect,inFlight:t.effect.inFlight.getState()}))})).on(Ze,(function(e,t){var n=t.sid,r=e[n];return e[n]=We(We({},r),{},{inFlight:r.effect.inFlight.getState()}),We({},e)}));var nt=1e3,rt=Object(k.createEffect)({handler:function(e){var t=e.name,n=e.kind,r=e.payload;return{id:(++nt).toString(36),kind:n,name:t,payload:r,datetime:new Date}}},{loc:{file:"/src/index.ts",line:60,column:23},name:"createRecordFx",sid:"-loxrq9"});function ot(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="object"===("undefined"==typeof document?"undefined":Ne(document))&&document.createElement("div");if(t)return t.classList.add("effector-inspector"),document.body.append(t),Object(A.using)(t,(function(){return _e(Ve,Xe,et,tt,e.visible)})),Object(A.using)(t,E.StyledRoot),{root:t}}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name||ut(e);He({store:e,name:n,mapped:t.mapped||!1}),Object(k.forward)({"ɔ":{from:e.updates.map((function(e){return{name:n,value:e}})),to:Ke},config:{loc:{file:"/src/index.ts",line:101,column:4},sid:"-4z1lr5"}})}function ct(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.name||ut(e);Ge({event:e,name:n,mapped:t.mapped||!1}),Object(k.forward)({"ɔ":{from:e.map((function(e){return{name:n,params:e}})),to:Qe},config:{loc:{file:"/src/index.ts",line:109,column:4},sid:"-4un909"}})}function at(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=ut(e),o=n.sid||e.sid||r;Ye({effect:e,name:r,sid:o,attached:null!==(t=n.attached)&&void 0!==t&&t}),Object(k.forward)({"ɔ":{from:[e,e.finally],to:Ze.prepend((function(){return{sid:o}}))},config:{loc:{file:"/src/index.ts",line:121,column:4},sid:"-40ycyr"}});var i=e.map((function(e){return{kind:"effect",name:r,payload:e}})),c=e.done.map((function(e){return{kind:"effect",name:r+".done",payload:e}})),a=e.fail.map((function(e){return{kind:"effect",name:r+".fail",payload:e}}));Object(k.forward)({"ɔ":{from:[i,c,a],to:rt},config:{loc:{file:"/src/index.ts",line:140,column:4},sid:"-33ewrq"}})}function ut(e){return e.compositeName.path.join("/")}Object(k.forward)({"ɔ":{from:Qe,to:rt.prepend((function(e){return{kind:"event",name:e.name,payload:e.params}}))},config:{loc:{file:"/src/index.ts",line:71,column:0},sid:"-8rhkph"}}),Object(k.forward)({"ɔ":{from:Ke,to:rt.prepend((function(e){return{kind:"store",name:e.name,payload:e.value}}))},config:{loc:{file:"/src/index.ts",line:79,column:0},sid:"-8n37yl"}}),tt.on(rt.doneData,(function(e,t){return[t].concat(Be(e))}))}]); | ||
//# sourceMappingURL=common.js.map |
import { Store, Event, Effect } from 'effector'; | ||
import { Inspector, Options } from './types.h'; | ||
export declare function createInspector(options?: Options): Inspector; | ||
export declare function createInspector(options?: Options): Inspector | undefined; | ||
export declare function addStore(store: Store<any>, options?: { | ||
@@ -5,0 +5,0 @@ mapped?: boolean; |
{ | ||
"name": "effector-inspector", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"main": "./dist/common.js", | ||
@@ -30,3 +30,3 @@ "types": "./dist/index.d.ts", | ||
"cz-conventional-changelog": "3.0.2", | ||
"effector": "^20.15.6", | ||
"effector": "^21.8.3", | ||
"eslint": "^6.6.0", | ||
@@ -42,3 +42,3 @@ "eslint-plugin-prettier": "^3.1.2", | ||
"ts-loader": "^8.0.1", | ||
"typescript": "^3.9.7", | ||
"typescript": "^4.1.5", | ||
"typescript-plugin-styled-components": "^1.4.4", | ||
@@ -57,5 +57,5 @@ "webpack": "^4.41.6", | ||
"dependencies": { | ||
"foliage": "^0.102.1", | ||
"forest": "^0.16.0" | ||
"foliage": "^0.106.0", | ||
"forest": "^0.19.6" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
881903
8690
1
+ Addedfoliage@0.106.0(transitive)
+ Addedforest@0.19.6(transitive)
- Removedeffector@20.17.2(transitive)
- Removedfoliage@0.102.1(transitive)
- Removedforest@0.16.9(transitive)
- Removedsymbol-observable@1.2.0(transitive)
Updatedfoliage@^0.106.0
Updatedforest@^0.19.6