1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5405],{48312:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/",function(){return r(42603)}])},13233:function(t,e,r){"use strict";var n=r(82729),i=r(68806),s=r(37887);function o(){let t=(0,n._)(["\n query {\n me {\n id\n email\n name\n roles\n login\n tableSettings\n chartsSettings\n passwordIsSet\n account {\n id\n name\n paidBefore\n tariff {\n id\n name\n description\n oneMonthPrice\n threeMonthPrice\n sixMonthPrice\n yearPrice\n usersQuantity\n wbAccountsQuantity\n ordersQuantity\n advantages\n errors\n }\n }\n accounts {\n id\n name\n }\n }\n }\n"]);return o=function(){return t},t}let u=(0,i.Ps)(o());e.Z=()=>{let{loading:t,error:e,data:r,refetch:n}=(0,s.a)(u),i=(null==r?void 0:r.me)||void 0;return{loading:t,error:e,user:i,reFetch:n}}},42603:function(t,e,r){"use strict";r.r(e);var n=r(85893),i=r(11163),s=r.n(i),o=r(13233);e.default=()=>{let{loading:t,user:e}=(0,o.Z)();return t||(e?s().push("/tables"):s().push("/auth")),(0,n.jsx)(n.Fragment,{})}},66252:function(t,e,r){"use strict";r.d(e,{x:function(){return o}});var n=r(78287),i=r(67294),s=r(85317);function o(t){var e=i.useContext((0,s.K)()),r=t||e.client;return(0,n.kG)(!!r,47),r}},37887:function(t,e,r){"use strict";r.d(e,{A:function(){return m},a:function(){return Q}});var n=r(97582),i=r(78287),s=r(67294),o=r.t(s,2),u=r(30320),a=!1,l=o.useSyncExternalStore||function(t,e,r){var n=e();!1===globalThis.__DEV__||a||n===e()||(a=!0,!1!==globalThis.__DEV__&&i.kG.error(56));var o=s.useState({inst:{value:n,getSnapshot:e}}),l=o[0].inst,h=o[1];return u.JC?s.useLayoutEffect(function(){Object.assign(l,{value:n,getSnapshot:e}),c(l)&&h({inst:l})},[t,n,e]):Object.assign(l,{value:n,getSnapshot:e}),s.useEffect(function(){return c(l)&&h({inst:l}),t(function(){c(l)&&h({inst:l})})},[t]),n};function c(t){var e=t.value,r=t.getSnapshot;try{return e!==r()}catch(t){return!0}}var h=r(30020),p=r(14012),d=r(85317),f=r(30990),y=r(1644),b=r(14692),v=r(66252),g=r(48702),O=r(53712),k=r(21436),P=Object.prototype.hasOwnProperty;function Q(t,e){return void 0===e&&(e=Object.create(null)),m((0,v.x)(e.client),t).useQuery(e)}function m(t,e){var r=s.useRef();r.current&&t===r.current.client&&e===r.current.query||(r.current=new w(t,e,r.current));var n=r.current;return n.forceUpdateState=s.useReducer(function(t){return t+1},0)[1],n}var w=function(){function t(t,e,r){var n=this;this.client=t,this.query=e,this.forceUpdate=function(){return n.forceUpdateState()},this.ssrDisabledResult=(0,g.J)({loading:!0,data:void 0,error:void 0,networkStatus:y.Ie.loading}),this.skipStandbyResult=(0,g.J)({loading:!1,data:void 0,error:void 0,networkStatus:y.Ie.ready}),this.toQueryResultCache=new(u.mr?WeakMap:Map),(0,b.Vp)(e,b.n_.Query);var i=r&&r.result,s=i&&i.data;s&&(this.previousData=s)}return t.prototype.forceUpdateState=function(){!1!==globalThis.__DEV__&&i.kG.warn(48)},t.prototype.executeQuery=function(t){var e,r=this;t.query&&Object.assign(this,{query:t.query}),this.watchQueryOptions=this.createWatchQueryOptions(this.queryHookOptions=t);var n=this.observable.reobserveAsConcast(this.getObsQueryOptions());return this.previousData=(null===(e=this.result)||void 0===e?void 0:e.data)||this.previousData,this.result=void 0,this.forceUpdate(),new Promise(function(t){var e;n.subscribe({next:function(t){e=t},error:function(){t(r.toQueryResult(r.observable.getCurrentResult()))},complete:function(){t(r.toQueryResult(e))}})})},t.prototype.useQuery=function(t){var e=this;this.renderPromises=s.useContext((0,d.K)()).renderPromises,this.useOptions(t);var r=this.useObservableQuery(),n=l(s.useCallback(function(t){if(e.renderPromises)return function(){};e.forceUpdate=t;var n=function(){var t=e.result,n=r.getCurrentResult();t&&t.loading===n.loading&&t.networkStatus===n.networkStatus&&(0,h.D)(t.data,n.data)||e.setResult(n)},i=function(t){if(s.unsubscribe(),s=r.resubscribeAfterError(n,i),!P.call(t,"graphQLErrors"))throw t;var o=e.result;(!o||o&&o.loading||!(0,h.D)(t,o.error))&&e.setResult({data:o&&o.data,error:t,loading:!1,networkStatus:y.Ie.error})},s=r.subscribe(n,i);return function(){setTimeout(function(){return s.unsubscribe()}),e.forceUpdate=function(){return e.forceUpdateState()}}},[r,this.renderPromises,this.client.disableNetworkFetches]),function(){return e.getCurrentResult()},function(){return e.getCurrentResult()});return this.unsafeHandlePartialRefetch(n),this.toQueryResult(n)},t.prototype.useOptions=function(e){var r,n=this.createWatchQueryOptions(this.queryHookOptions=e),i=this.watchQueryOptions;!(0,h.D)(n,i)&&(this.watchQueryOptions=n,i&&this.observable&&(this.observable.reobserve(this.getObsQueryOptions()),this.previousData=(null===(r=this.result)||void 0===r?void 0:r.data)||this.previousData,this.result=void 0)),this.onCompleted=e.onCompleted||t.prototype.onCompleted,this.onError=e.onError||t.prototype.onError,(this.renderPromises||this.client.disableNetworkFetches)&&!1===this.queryHookOptions.ssr&&!this.queryHookOptions.skip?this.result=this.ssrDisabledResult:this.queryHookOptions.skip||"standby"===this.watchQueryOptions.fetchPolicy?this.result=this.skipStandbyResult:(this.result===this.ssrDisabledResult||this.result===this.skipStandbyResult)&&(this.result=void 0)},t.prototype.getObsQueryOptions=function(){var t=[],e=this.client.defaultOptions.watchQuery;return e&&t.push(e),this.queryHookOptions.defaultOptions&&t.push(this.queryHookOptions.defaultOptions),t.push((0,O.o)(this.observable&&this.observable.options,this.watchQueryOptions)),t.reduce(p.J)},t.prototype.createWatchQueryOptions=function(t){void 0===t&&(t={});var e,r=t.skip,i=Object.assign((t.ssr,t.onCompleted,t.onError,t.defaultOptions,(0,n._T)(t,["skip","ssr","onCompleted","onError","defaultOptions"])),{query:this.query});if(this.renderPromises&&("network-only"===i.fetchPolicy||"cache-and-network"===i.fetchPolicy)&&(i.fetchPolicy="cache-first"),i.variables||(i.variables={}),r){var s=i.fetchPolicy,o=void 0===s?this.getDefaultFetchPolicy():s,u=i.initialFetchPolicy;Object.assign(i,{initialFetchPolicy:void 0===u?o:u,fetchPolicy:"standby"})}else i.fetchPolicy||(i.fetchPolicy=(null===(e=this.observable)||void 0===e?void 0:e.options.initialFetchPolicy)||this.getDefaultFetchPolicy());return i},t.prototype.getDefaultFetchPolicy=function(){var t,e;return(null===(t=this.queryHookOptions.defaultOptions)||void 0===t?void 0:t.fetchPolicy)||(null===(e=this.client.defaultOptions.watchQuery)||void 0===e?void 0:e.fetchPolicy)||"cac
1he-first"},t.prototype.onCompleted=function(t){},t.prototype.onError=function(t){},t.prototype.useObservableQuery=function(){var t=this.observable=this.renderPromises&&this.renderPromises.getSSRObservable(this.watchQueryOptions)||this.observable||this.client.watchQuery(this.getObsQueryOptions());this.obsQueryFields=s.useMemo(function(){return{refetch:t.refetch.bind(t),reobserve:t.reobserve.bind(t),fetchMore:t.fetchMore.bind(t),updateQuery:t.updateQuery.bind(t),startPolling:t.startPolling.bind(t),stopPolling:t.stopPolling.bind(t),subscribeToMore:t.subscribeToMore.bind(t)}},[t]);var e=!(!1===this.queryHookOptions.ssr||this.queryHookOptions.skip);return this.renderPromises&&e&&(this.renderPromises.registerSSRObservable(t),t.getCurrentResult().loading&&this.renderPromises.addObservableQueryPromise(t)),t},t.prototype.setResult=function(t){var e=this.result;e&&e.data&&(this.previousData=e.data),this.result=t,this.forceUpdate(),this.handleErrorOrCompleted(t,e)},t.prototype.handleErrorOrCompleted=function(t,e){var r=this;if(!t.loading){var n=this.toApolloError(t);Promise.resolve().then(function(){n?r.onError(n):t.data&&(null==e?void 0:e.networkStatus)!==t.networkStatus&&t.networkStatus===y.Ie.ready&&r.onCompleted(t.data)}).catch(function(t){!1!==globalThis.__DEV__&&i.kG.warn(t)})}},t.prototype.toApolloError=function(t){return(0,k.O)(t.errors)?new f.cA({graphQLErrors:t.errors}):t.error},t.prototype.getCurrentResult=function(){return this.result||this.handleErrorOrCompleted(this.result=this.observable.getCurrentResult()),this.result},t.prototype.toQueryResult=function(t){var e=this.toQueryResultCache.get(t);if(e)return e;var r=t.data,i=(t.partial,(0,n._T)(t,["data","partial"]));return this.toQueryResultCache.set(t,e=(0,n.pi)((0,n.pi)((0,n.pi)({data:r},i),this.obsQueryFields),{client:this.client,observable:this.observable,variables:this.observable.variables,called:!this.queryHookOptions.skip,previousData:this.previousData})),!e.error&&(0,k.O)(t.errors)&&(e.error=new f.cA({graphQLErrors:t.errors})),e},t.prototype.unsafeHandlePartialRefetch=function(t){t.partial&&this.queryHookOptions.partialRefetch&&!t.loading&&(!t.data||0===Object.keys(t.data).length)&&"cache-only"!==this.observable.options.fetchPolicy&&(Object.assign(t,{loading:!0,networkStatus:y.Ie.refetch}),this.observable.refetch())},t}()},14692:function(t,e,r){"use strict";r.d(e,{Vp:function(){return a},n_:function(){return i}});var n,i,s=r(78287);(n=i||(i={}))[n.Query=0]="Query",n[n.Mutation=1]="Mutation",n[n.Subscription=2]="Subscription";var o=new Map;function u(t){var e;switch(t){case i.Query:e="Query";break;case i.Mutation:e="Mutation";break;case i.Subscription:e="Subscription"}return e}function a(t,e){var r=function(t){var e,r,n=o.get(t);if(n)return n;(0,s.kG)(!!t&&!!t.kind,57,t);for(var u=[],a=[],l=[],c=[],h=0,p=t.definitions;h<p.length;h++){var d=p[h];if("FragmentDefinition"===d.kind){u.push(d);continue}if("OperationDefinition"===d.kind)switch(d.operation){case"query":a.push(d);break;case"mutation":l.push(d);break;case"subscription":c.push(d)}}(0,s.kG)(!u.length||a.length||l.length||c.length,58),(0,s.kG)(a.length+l.length+c.length<=1,59,t,a.length,c.length,l.length),r=a.length?i.Query:i.Mutation,a.length||l.length||(r=i.Subscription);var f=a.length?a:l.length?l:c;(0,s.kG)(1===f.length,60,t,f.length);var y=f[0];e=y.variableDefinitions||[];var b={name:y.name&&"Name"===y.name.kind?y.name.value:"data",type:r,variables:e};return o.set(t,b),b}(t),n=u(e),a=u(r.type);(0,s.kG)(r.type===e,61,n,n,a)}}},function(t){t.O(0,[9774,2888,179],function(){return t(t.s=48312)}),_N_E=t.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.