D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
psa
/
admin
/
htdocs
/
modules
/
catalog
/
javascript
/
Filename :
main.js
back
Copy
define(["plesk-ui-library"],(e=>(()=>{var t={7171:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ApolloClient:()=>lt,ApolloError:()=>Re,HTTPBatchedNetworkInterface:()=>D,HTTPFetchNetworkInterface:()=>x,IntrospectionFragmentMatcher:()=>Be,NetworkStatus:()=>Ce,ObservableQuery:()=>Ue,addTypenameToDocument:()=>O,createApolloReducer:()=>_e,createApolloStore:()=>Te,createBatchingNetworkInterface:()=>q,createFragmentMap:()=>y,createNetworkInterface:()=>F,default:()=>st,getFragmentDefinitions:()=>m,getMutationDefinition:()=>d,getQueryDefinition:()=>v,printAST:()=>r.y,readQueryFromStore:()=>de,toIdValue:()=>s,writeQueryToStore:()=>Y});n(6603);var r=n(3230);function i(e,t,n,r){if(function(e){return"IntValue"===e.kind}(n)||function(e){return"FloatValue"===e.kind}(n))e[t.value]=Number(n.value);else if(function(e){return"BooleanValue"===e.kind}(n)||function(e){return"StringValue"===e.kind}(n))e[t.value]=n.value;else if(function(e){return"ObjectValue"===e.kind}(n)){var o={};n.fields.map((function(e){return i(o,e.name,e.value,r)})),e[t.value]=o}else if(function(e){return"Variable"===e.kind}(n)){var a=(r||{})[n.name.value];e[t.value]=a}else if(function(e){return"ListValue"===e.kind}(n))e[t.value]=n.values.map((function(e){var n={};return i(n,t,e,r),n[t.value]}));else{if(!function(e){return"EnumValue"===e.kind}(n))throw new Error('The inline argument "'+t.value+'" of kind "'+n.kind+'" is not supported.\n Use variables instead of inline arguments to overcome this limitation.');e[t.value]=n.value}}function o(e,t,n){if(n&&n.connection&&n.connection.key){if(n.connection.filter&&n.connection.filter.length>0){var r=n.connection.filter?n.connection.filter:[];r.sort();var i=t,o={};return r.forEach((function(e){o[e]=i[e]})),n.connection.key+"("+JSON.stringify(o)+")"}return n.connection.key}return t?e+"("+JSON.stringify(t)+")":e}function a(e){return e.errors&&e.errors.length}function l(e){return null!=e&&"object"==typeof e&&"id"===e.type}function s(e,t){return void 0===t&&(t=!1),{type:"id",id:e,generated:t}}function u(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.forEach((function(t){null!=t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}var c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function d(e){f(e);var t=null;if(e.definitions.forEach((function(e){"OperationDefinition"===e.kind&&"mutation"===e.operation&&(t=e)})),!t)throw new Error("Must contain a mutation definition.");return t}function f(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');var t=!1;e.definitions.forEach((function(e){switch(e.kind){case"FragmentDefinition":break;case"OperationDefinition":if(t)throw new Error("Queries must have exactly one operation definition.");t=!0;break;default:throw new Error('Schema type definitions not allowed in queries. Found: "'+e.kind+'"')}}))}function p(e){var t=null;return e.definitions.forEach((function(e){"OperationDefinition"===e.kind&&e.name&&(t=e.name.value)})),t}function m(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))}function v(e){f(e);var t=null;if(e.definitions.map((function(e){"OperationDefinition"===e.kind&&"query"===e.operation&&(t=e)})),!t)throw new Error("Must contain a query definition.");return t}function h(e){f(e);var t=null;if(e.definitions.map((function(e){"OperationDefinition"===e.kind&&(t=e)})),!t)throw new Error("Must contain a query definition.");return t}function y(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t}function g(e,t){var n=t,r=[];if(e.definitions.forEach((function(e){if("OperationDefinition"===e.kind)throw new Error("Found a "+e.operation+" operation"+(e.name?" named '"+e.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");"FragmentDefinition"===e.kind&&r.push(e)})),void 0===n){if(1!==r.length)throw new Error("Found "+r.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.");n=r[0].name.value}return c({},e,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:n}}]}}].concat(e.definitions)})}function b(e){if(e.variableDefinitions&&e.variableDefinitions.length){var t=e.variableDefinitions.filter((function(e){return e.defaultValue})).map((function(e){var t=e.variable,n=e.defaultValue,r={};return i(r,t.name,n),r}));return u.apply(void 0,[{}].concat(t))}return{}}function k(e){if(Array.isArray(e))return e.map((function(e){return k(e)}));if(null!==e&&"object"==typeof e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=k(e[n]));return t}return e}var w={kind:"Field",name:{kind:"Name",value:"__typename"}};function S(e,t){if(void 0===t&&(t=!1),e.selections){if(!t)e.selections.some((function(e){return"Field"===e.kind&&"__typename"===e.name.value}))||e.selections.push(w);e.selections.forEach((function(e){"Field"===e.kind?0!==e.name.value.lastIndexOf("__",0)&&e.selectionSet&&S(e.selectionSet):"InlineFragment"===e.kind&&e.selectionSet&&S(e.selectionSet)}))}}function E(e){e.selections&&(e.selections.forEach((function(e){"Field"===e.kind&&e&&e.directives&&(e.directives=e.directives.filter((function(e){var t="connection"===e.name.value;return t&&(e.arguments&&e.arguments.some((function(e){return"key"===e.name.value}))||console.warn("Removing an @connection directive even though it does not have a key. You may want to use the key parameter to specify a store key.")),!t})))})),e.selections.forEach((function(e){"Field"===e.kind?e.selectionSet&&E(e.selectionSet):"InlineFragment"===e.kind&&e.selectionSet&&E(e.selectionSet)})))}function O(e){f(e);var t=k(e);return t.definitions.forEach((function(e){var t="OperationDefinition"===e.kind;S(e.selectionSet,t)})),t}function N(e){f(e);var t=k(e);return t.definitions.forEach((function(e){E(e.selectionSet)})),t}var P,_=(P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}P(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),T=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function I(e){return T({},e,{query:(0,r.y)(e.query)})}var j=function(){function e(e,t){if(void 0===t&&(t={}),!e)throw new Error("A remote endpoint is required for a network layer");if("string"!=typeof e)throw new Error("Remote endpoint must be a string");this._uri=e,this._opts=T({},t),this._middlewares=[],this._afterwares=[]}return e.prototype.query=function(e){return new Promise((function(e,t){t(new Error("BaseNetworkInterface should not be used directly"))}))},e}(),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return _(t,e),t.prototype.applyMiddlewares=function(e){var t=this;return new Promise((function(n,r){var i,o,a,l=e.request,s=e.options;i=t._middlewares.slice(),o=t,(a=function(e){if(e)r(e);else if(i.length>0){var t=i.shift();t&&t.applyMiddleware.apply(o,[{request:l,options:s},a])}else n({request:l,options:s})})()}))},t.prototype.applyAfterwares=function(e){var t=this,n=e.response,r=e.options;return new Promise((function(e,i){var o,a,l,s={response:n,options:r};o=t._afterwares.slice(),a=t,(l=function(){if(o.length>0){var t=o.shift();t&&t.applyAfterware.apply(a,[s,l])}else e(s)})()}))},t.prototype.fetchFromRemoteEndpoint=function(e){var t=e.request,n=e.options;return fetch(this._uri,T({},this._opts,{body:JSON.stringify(I(t)),method:"POST"},n,{headers:T({Accept:"*/*","Content-Type":"application/json"},n.headers)}))},t.prototype.query=function(e){var t=this,n=T({},this._opts);return this.applyMiddlewares({request:e,options:n}).then((function(e){return e.request.query&&(e.request.query=N(e.request.query)),e})).then((function(e){return t.fetchFromRemoteEndpoint.call(t,e)})).then((function(e){return t.applyAfterwares({response:e,options:n})})).then((function(e){var t=e.response,n=t;return n.json().catch((function(e){var r=new Error("Network request failed with status "+t.status+' - "'+t.statusText+'"');throw r.response=n,r.parseError=e,r}))})).then((function(t){if(t.hasOwnProperty("data")||t.hasOwnProperty("errors"))return t;throw new Error("Server response was missing for query '"+e.debugName+"'.")}))},t.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyMiddleware)throw new Error("Middleware must implement the applyMiddleware function");t._middlewares.push(e)})),this},t.prototype.useAfter=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyAfterware)throw new Error("Afterware must implement the applyAfterware function");t._afterwares.push(e)})),this},t}(j);function F(e,t){if(void 0===t&&(t={}),!e)throw new Error("You must pass an options argument to createNetworkInterface.");var n,r;return"string"==typeof e?(console.warn('Passing the URI as the first argument to createNetworkInterface is deprecated as of Apollo Client 0.5. Please pass it as the "uri" property of the network interface options.'),r=t.opts,n=e):(r=e.opts,n=e.uri),new x(n,r)}var C=function(){function e(e){var t=e.batchInterval,n=e.batchMax,r=void 0===n?0:n,i=e.batchFetchFunction;this.queuedRequests=[],this.queuedRequests=[],this.batchInterval=t,this.batchMax=r,this.batchFetchFunction=i}return e.prototype.enqueueRequest=function(e){var t={request:e};return this.queuedRequests.push(t),t.promise=new Promise((function(e,n){t.resolve=e,t.reject=n})),1===this.queuedRequests.length&&this.scheduleQueueConsumption(),this.queuedRequests.length===this.batchMax&&this.consumeQueue(),t.promise},e.prototype.consumeQueue=function(){var e=this.queuedRequests.map((function(e){return e.request})),t=[],n=[],r=[];return this.queuedRequests.forEach((function(e,i){t.push(e.promise),n.push(e.resolve),r.push(e.reject)})),this.queuedRequests=[],this.batchFetchFunction(e).then((function(e){e.forEach((function(e,t){n[t](e)}))})).catch((function(e){r.forEach((function(t,n){r[n](e)}))})),t},e.prototype.scheduleQueueConsumption=function(){var e=this;setTimeout((function(){e.queuedRequests.length&&e.consumeQueue()}),this.batchInterval)},e}(),R=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},D=function(e){function t(t){var n=t.uri,r=t.batchInterval,i=void 0===r?10:r,o=t.batchMax,a=void 0===o?0:o,l=t.fetchOpts,s=e.call(this,n,l)||this;if("number"!=typeof i)throw new Error("batchInterval must be a number, got "+i);if("number"!=typeof a)throw new Error("batchMax must be a number, got "+a);return s.batcher=new C({batchInterval:i,batchMax:a,batchFetchFunction:s.batchQuery.bind(s)}),s}return R(t,e),t.prototype.query=function(e){return this.batcher.enqueueRequest(e)},t.prototype.batchQuery=function(e){var t=this,n=A({},this._opts),r=this.applyBatchMiddlewares({requests:e,options:n});return new Promise((function(e,n){r.then((function(r){return r.requests.forEach((function(e){e.query&&(e.query=N(e.query))})),t.batchedFetchFromRemoteEndpoint(r).then((function(e){var n=e;return n.ok?e.json():t.applyBatchAfterwares({responses:[n],options:r.options}).then((function(){var e=new Error("Network request failed with status "+n.status+' - "'+n.statusText+'"');throw e.response=n,e}))})).then((function(i){if("function"!=typeof i.map)throw new Error("BatchingNetworkInterface: server response is not an array");t.applyBatchAfterwares({responses:i,options:r.options}).then((function(t){e(t.responses)})).catch((function(e){n(e)}))}))})).catch((function(e){n(e)}))}))},t.prototype.applyBatchMiddlewares=function(e){var t=this,n=e.requests,r=e.options;return new Promise((function(e,i){var o,a,l;o=t._middlewares.slice(),a=t,(l=function(){if(o.length>0){var t=o.shift();t&&t.applyBatchMiddleware.apply(a,[{requests:n,options:r},l])}else e({requests:n,options:r})})()}))},t.prototype.applyBatchAfterwares=function(e){var t=this,n=e.responses,r=e.options;return new Promise((function(e,i){var o,a,l,s={responses:n,options:r};o=t._afterwares.slice(),a=t,(l=function(){if(o.length>0){var t=o.shift();t&&t.applyBatchAfterware.apply(a,[s,l])}else e(s)})()}))},t.prototype.use=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyBatchMiddleware)throw new Error("Batch middleware must implement the applyBatchMiddleware function");t._middlewares.push(e)})),this},t.prototype.useAfter=function(e){var t=this;return e.map((function(e){if("function"!=typeof e.applyBatchAfterware)throw new Error("Batch afterware must implement the applyBatchAfterware function");t._afterwares.push(e)})),this},t.prototype.batchedFetchFromRemoteEndpoint=function(e){var t={};u(t,e.options);var n=e.requests.map((function(e){return I(e)}));return fetch(this._uri,A({},this._opts,{body:JSON.stringify(n),method:"POST"},t,{headers:A({Accept:"*/*","Content-Type":"application/json"},t.headers)}))},t}(j);function q(e){if(!e)throw new Error("You must pass an options argument to createNetworkInterface.");return new D({uri:e.uri,batchInterval:e.batchInterval,batchMax:e.batchMax,fetchOpts:e.opts||{}})}var M=n(1725);function L(e){return"APOLLO_QUERY_RESULT"===e.type}function U(e){return"APOLLO_MUTATION_RESULT"===e.type}function V(e){return"APOLLO_SUBSCRIPTION_RESULT"===e.type}function Q(e){return("undefined"!=typeof process?"production":"development")===e}function B(){return!0===Q("production")}function $(){return!0===Q("test")}var W=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},z=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="WriteError",t}return W(t,e),t}(Error);function G(e,t){var n=new z("Error writing result to store for query "+(t.loc&&t.loc.source&&t.loc.source.body));return n.message+="/n"+e.message,n.stack=e.stack,n}function Y(e){var t=e.result,n=e.query,r=e.store,i=void 0===r?{}:r,o=e.variables,a=e.dataIdFromObject,l=e.fragmentMap,s=void 0===l?{}:l,c=e.fragmentMatcherFunction,d=v(n);o=u({},b(d),o);try{return J({dataId:"ROOT_QUERY",result:t,selectionSet:d.selectionSet,context:{store:i,processedData:{},variables:o,dataIdFromObject:a,fragmentMap:s,fragmentMatcherFunction:c}})}catch(e){throw G(e,n)}}function H(e){var t=e.dataId,n=e.result,r=e.document,i=e.store,o=void 0===i?{}:i,a=e.variables,l=e.dataIdFromObject,s=e.fragmentMatcherFunction,c=h(r),d=c.selectionSet,f=y(m(r));a=u({},b(c),a);try{return J({result:n,dataId:t,selectionSet:d,context:{store:o,processedData:{},variables:a,dataIdFromObject:l,fragmentMap:f,fragmentMatcherFunction:s}})}catch(e){throw G(e,r)}}function J(e){var t=e.result,n=e.dataId,r=e.selectionSet,a=e.context,s=a.variables,u=a.store,c=(a.dataIdFromObject,a.fragmentMap);return r.selections.forEach((function(e){var r,u=function(e,t){if(void 0===t&&(t={}),!e.directives)return!0;var n=!0;return e.directives.forEach((function(e){if("skip"===e.name.value||"include"===e.name.value){var r=e.arguments||[],i=e.name.value;if(1!==r.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=r[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var a=r[0].value,l=!1;if(a&&"BooleanValue"===a.kind)l=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a bool ean value.");if(void 0===(l=t[a.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}"skip"===i&&(l=!l),l||(n=!1)}})),n}(e,s);if(function(e){return"Field"===e.kind}(e)){var d=(r=e).alias?r.alias.value:r.name.value,f=t[d];u&&(void 0!==f?function(e){var t,n=e.field,r=e.value,a=e.dataId,s=e.context,u=s.variables,c=s.dataIdFromObject,d=s.store,f=(s.fragmentMap,function(e,t){var n=null;e.directives&&(n={},e.directives.forEach((function(e){n[e.name.value]={},e.arguments&&e.arguments.forEach((function(r){var o=r.name,a=r.value;return i(n[e.name.value],o,a,t)}))})));var r=null;return e.arguments&&e.arguments.length&&(r={},e.arguments.forEach((function(e){var n=e.name,o=e.value;return i(r,n,o,t)}))),o(e.name.value,r,n)}(n,u)),p=!1,m="";if(n.selectionSet&&null!==r)if(Array.isArray(r)){t=te(r,a+"."+f,n.selectionSet,s)}else{var v=a+"."+f,h=!0;if(X(v)||(v="$"+v),c){var y=c(r);if(y&&X(y))throw new Error('IDs returned by dataIdFromObject cannot begin with the "$" character.');y&&(v=y,h=!1)}if(ee(v,n,s.processedData)||J({dataId:v,result:r,selectionSet:n.selectionSet,context:s}),t={type:"id",id:v,generated:h},d[a]&&d[a][f]!==t){var g=d[a][f];if(l(t)&&t.generated&&l(g)&&!g.generated)throw new Error("Store error: the application attempted to write an object with no provided id but the store already contains an id of "+g.id+" for this object.");l(g)&&g.generated&&(m=g.id,p=!0)}}else t=null!=r&&"object"==typeof r?{type:"json",json:r}:r;var b,k=K({},d[a],((b={})[f]=t,b));p&&Z(m,t.id,d);d[a]&&t===d[a][f]||(d[a]=k)}({dataId:n,value:f,field:e,context:a}):a.fragmentMatcherFunction&&(B()||console.warn("Missing field "+d+" in "+JSON.stringify(t,null,2).substring(0,100))))}else{var p=void 0;if(function(e){return"InlineFragment"===e.kind}(e))p=e;else if(!(p=(c||{})[e.name.value]))throw new Error("No fragment named "+e.name.value+".");var m=!0;if(a.fragmentMatcherFunction&&p.typeCondition){var v={store:{self:t},returnPartialData:!1,hasMissingField:!1,customResolvers:{}};m=a.fragmentMatcherFunction({type:"id",id:"self",generated:!1},p.typeCondition.name.value,v),v.returnPartialData&&console.error("WARNING: heuristic fragment matching going on!")}u&&m&&J({result:t,selectionSet:p.selectionSet,dataId:n,context:a})}})),u}function X(e){return"$"===e[0]}function Z(e,t,n){var r=n[e],i=n[t];Object.keys(r).forEach((function(o){var a=r[o],s=i[o];l(a)&&X(a.id)&&l(s)&&Z(a.id,s.id,n),delete n[e],n[t]=K({},r,i)}))}function ee(e,t,n){if(!n)return!1;if(n[e]){if(n[e].indexOf(t)>=0)return!0;n[e].push(t)}else n[e]=[t];return!1}function te(e,t,n,r){return e.map((function(e,i){if(null===e)return null;var o=t+"."+i;if(Array.isArray(e))return te(e,o,n,r);var a=!0;if(r.dataIdFromObject){var l=r.dataIdFromObject(e);l&&(o=l,a=!1)}return ee(o,n,r.processedData)||J({dataId:o,result:e,selectionSet:n,context:r}),{type:"id",id:o,generated:a}}))}var ne=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},re=[];function ie(e){if(0===e.optimistic.length)return e.data;var t=e.optimistic.map((function(e){return e.data}));return u.apply(void 0,[{},e.data].concat(t))}function oe(e,t,n,r){if(void 0===e&&(e=re),function(e){return"APOLLO_MUTATION_INIT"===e.type}(t)&&t.optimisticResponse){var i={type:"APOLLO_MUTATION_RESULT",result:{data:"function"==typeof t.optimisticResponse?t.optimisticResponse(t.variables):t.optimisticResponse},document:t.mutation,operationName:t.operationName,variables:t.variables,mutationId:t.mutationId,extraReducers:t.extraReducers,updateQueries:t.updateQueries,update:t.update},o={action:i,data:ae(ie(ne({},n,{optimistic:e})),i,n.queries,n.mutations,r),mutationId:t.mutationId};return e.concat([o])}return(function(e){return"APOLLO_MUTATION_ERROR"===e.type}(t)||U(t))&&e.some((function(e){return e.mutationId===t.mutationId}))?function(e,t,n,r){void 0===t&&(t=re);var i=u({},n.data),o=t.filter((function(t){return!e(t)})).map((function(e){var t=ae(i,e.action,n.queries,n.mutations,r);return u(i,t),ne({},e,{data:t})}));return o}((function(e){return e.mutationId===t.mutationId}),e,n,r):e}function ae(e,t,n,r,i){var o=Ee(e,t,i),a={};return Object.keys(o).forEach((function(t){o[t]!==e[t]&&(a[t]=o[t])})),a}var le=n(7106);function se(e,t){if(e===t)return!0;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(null!=e&&"object"==typeof e&&null!=t&&"object"==typeof t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(!Object.prototype.hasOwnProperty.call(t,n))return!1;if(!se(e[n],t[n]))return!1}for(var n in t)if(!Object.prototype.hasOwnProperty.call(e,n))return!1;return!0}return!1}var ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ce="undefined"!=typeof Symbol?Symbol("id"):"@@id";function de(e){return pe(ue({},e,{returnPartialData:!1})).result}var fe=function(e,t,n,r,i){var a=i.resultKey,s=i.directives;!function(e){if(!l(e))throw new Error("Encountered a sub-selection on the query, but the store doesn't have an object reference. This should never happen during normal use unless you have custom code that is directly manipulating the store; please file an issue.")}(t);var u,c=t.id,d=r.store[c],f=o(e,n,s),p=(d||{})[f];if(void 0===p){if(r.customResolvers&&d&&(d.__typename||"ROOT_QUERY"===c)){var m=d.__typename||"Query",v=r.customResolvers[m];if(v){var h=v[e];h&&(p=h(d,n))}}if(void 0===p){if(!r.returnPartialData)throw new Error("Can't find field "+f+" on object ("+c+") "+JSON.stringify(d,null,2)+".");return r.hasMissingField=!0,p}}return null!=(u=p)&&"object"==typeof u&&"json"===u.type?t.previousResult&&se(t.previousResult[a],p.json)?t.previousResult[a]:p.json:(t.previousResult&&(p=me(p,t.previousResult[a])),p)};function pe(e){var t=e.store,n=e.query,r=e.variables,i=e.previousResult,o=e.returnPartialData,a=void 0===o||o,l=e.rootId,s=void 0===l?"ROOT_QUERY":l,c=e.fragmentMatcherFunction,d=e.config;r=u({},b(v(n)),r);var f={store:t,returnPartialData:a,customResolvers:d&&d.customResolvers||{},hasMissingField:!1},p={type:"id",id:s,previousResult:i};return{result:(0,le.Ay)(fe,n,p,f,r,{fragmentMatcher:c,resultMapper:ve}),isMissing:f.hasMissingField}}function me(e,t){if(l(e))return ue({},e,{previousResult:t});if(Array.isArray(e)){var n={};return Array.isArray(t)&&t.forEach((function(e){e&&e[ce]&&(n[e[ce]]=e)})),e.map((function(e,r){var i=t&&t[r];return l(e)&&(i=n[e.id]||i),me(e,i)}))}return e}function ve(e,t){if(t.previousResult){var n=Object.keys(e);if(Object.keys(t.previousResult).reduce((function(e,t){return e&&n.indexOf(t)>-1}),!0)&&n.reduce((function(n,r){return n&&he(e[r],t.previousResult[r])}),!0))return t.previousResult}return Object.defineProperty(e,ce,{enumerable:!1,configurable:!1,writable:!1,value:t.id}),e}function he(e,t){return e===t||!(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)&&e.reduce((function(e,n,r){return e&&he(n,t[r])}),!0)}var ye=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ge=function(){function e(e,t,n,r){this.store=e,this.reduxRootSelector=t,this.reducerConfig=r,this.fragmentMatcher=n}return e.prototype.readQuery=function(e){var t=e.query,n=e.variables;return this.reducerConfig.addTypename&&(t=O(t)),de({rootId:"ROOT_QUERY",store:ie(this.reduxRootSelector(this.store.getState())),query:t,variables:n,fragmentMatcherFunction:this.fragmentMatcher.match,config:this.reducerConfig})},e.prototype.readFragment=function(e){var t=e.id,n=e.fragment,r=e.fragmentName,i=e.variables,o=g(n,r),a=ie(this.reduxRootSelector(this.store.getState()));return void 0===a[t]?null:(this.reducerConfig.addTypename&&(o=O(o)),de({rootId:t,store:a,query:o,variables:i,fragmentMatcherFunction:this.fragmentMatcher.match,config:this.reducerConfig}))},e.prototype.writeQuery=function(e){var t=e.data,n=e.query,r=e.variables;this.reducerConfig.addTypename&&(n=O(n)),this.store.dispatch({type:"APOLLO_WRITE",writes:[{rootId:"ROOT_QUERY",result:t,document:n,operationName:p(n),variables:r||{}}]})},e.prototype.writeFragment=function(e){var t=e.data,n=e.id,r=e.fragment,i=e.fragmentName,o=e.variables,a=g(r,i);this.reducerConfig.addTypename&&(a=O(a)),this.store.dispatch({type:"APOLLO_WRITE",writes:[{rootId:n,result:t,document:a,operationName:p(a),variables:o||{}}]})},e}(),be=function(){function e(e,t){this.data=ye({},e),this.reducerConfig=t,this.writes=[],this.isFinished=!1}return e.prototype.finish=function(){this.assertNotFinished();var e=this.writes;return this.writes=[],this.isFinished=!0,e},e.prototype.readQuery=function(e){var t=e.query,n=e.variables;return this.assertNotFinished(),this.reducerConfig.addTypename&&(t=O(t)),de({rootId:"ROOT_QUERY",store:this.data,query:t,variables:n,config:this.reducerConfig,fragmentMatcherFunction:this.reducerConfig.fragmentMatcher})},e.prototype.readFragment=function(e){var t=e.id,n=e.fragment,r=e.fragmentName,i=e.variables;if(this.assertNotFinished(),!n)throw new Error("fragment option is required. Please pass a GraphQL fragment to readFragment.");var o=this.data,a=g(n,r);return this.reducerConfig.addTypename&&(a=O(a)),void 0===o[t]?null:de({rootId:t,store:o,query:a,variables:i,config:this.reducerConfig,fragmentMatcherFunction:this.reducerConfig.fragmentMatcher})},e.prototype.writeQuery=function(e){var t=e.data,n=e.query,r=e.variables;this.assertNotFinished(),this.reducerConfig.addTypename&&(n=O(n)),this.applyWrite({rootId:"ROOT_QUERY",result:t,document:n,operationName:p(n),variables:r||{}})},e.prototype.writeFragment=function(e){var t=e.data,n=e.id,r=e.fragment,i=e.fragmentName,o=e.variables;if(this.assertNotFinished(),!r)throw new Error("fragment option is required. Please pass a GraphQL fragment to writeFragment.");var a=g(r,i);this.reducerConfig.addTypename&&(a=O(a)),this.applyWrite({rootId:n,result:t,document:a,operationName:p(a),variables:o||{}})},e.prototype.assertNotFinished=function(){if(this.isFinished)throw new Error("Cannot call transaction methods after the transaction has finished.")},e.prototype.applyWrite=function(e){H({result:e.result,dataId:e.rootId,document:e.document,variables:e.variables,store:this.data,dataIdFromObject:this.reducerConfig.dataIdFromObject||function(){return null},fragmentMatcherFunction:this.reducerConfig.fragmentMatcher}),this.writes.push(e)},e}(),ke=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function we(e){try{return e()}catch(e){console.error&&console.error(e)}}var Se=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function Ee(e,t,n){void 0===e&&(e={});var r=t;if(L(t)){if(t.fetchMoreForQueryId)return e;if(!a(t.result)){var i=Se({},e),o=H({result:t.result.data,dataId:"ROOT_QUERY",document:t.document,variables:t.variables,store:i,dataIdFromObject:n.dataIdFromObject,fragmentMatcherFunction:n.fragmentMatcher});return t.extraReducers&&t.extraReducers.forEach((function(e){o=e(o,r)})),o}}else if(V(t)){if(!a(t.result)){i=Se({},e);var l=H({result:t.result.data,dataId:"ROOT_SUBSCRIPTION",document:t.document,variables:t.variables,store:i,dataIdFromObject:n.dataIdFromObject,fragmentMatcherFunction:n.fragmentMatcher});return t.extraReducers&&t.extraReducers.forEach((function(e){l=e(l,r)})),l}}else if(U(r)){if(!r.result.errors){i=Se({},e);var s=H({result:r.result.data,dataId:"ROOT_MUTATION",document:r.document,variables:r.variables,store:i,dataIdFromObject:n.dataIdFromObject,fragmentMatcherFunction:n.fragmentMatcher}),u=r.updateQueries;if(u&&Object.keys(u).filter((function(e){return u[e]})).forEach((function(t){var i=u[t],o=i.query,a=i.reducer,l=pe({store:e,query:o.document,variables:o.variables,returnPartialData:!0,fragmentMatcherFunction:n.fragmentMatcher,config:n}),c=l.result;if(!l.isMissing){var d=we((function(){return a(c,{mutationResult:r.result,queryName:p(o.document),queryVariables:o.variables})}));d&&(s=H({result:d,dataId:"ROOT_QUERY",document:o.document,variables:o.variables,store:s,dataIdFromObject:n.dataIdFromObject,fragmentMatcherFunction:n.fragmentMatcher}))}})),r.update){var c=r.update,d=new be(s,n);we((function(){return c(d,r.result)}));var f=d.finish();s=Ee(s,{type:"APOLLO_WRITE",writes:f},n)}return r.extraReducers&&r.extraReducers.forEach((function(e){s=e(s,r)})),s}}else{if(function(e){return"APOLLO_UPDATE_QUERY_RESULT"===e.type}(r))return function(e,t,n){var r=t.variables,i=t.document;return H({result:t.newResult,dataId:"ROOT_QUERY",variables:r,document:i,store:ke({},e),dataIdFromObject:n.dataIdFromObject,fragmentMatcherFunction:n.fragmentMatcher})}(e,r,n);if(function(e){return"APOLLO_STORE_RESET"===e.type}(t))return{};if(function(e){return"APOLLO_WRITE"===e.type}(t))return t.writes.reduce((function(e,t){return H({result:t.result,dataId:t.rootId,document:t.document,variables:t.variables,store:e,dataIdFromObject:n.dataIdFromObject,fragmentMatcherFunction:n.fragmentMatcher})}),Se({},e))}return e}var Oe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ne=function(e){return function(e){return function(t){try{return e(t)}catch(e){throw console.error("Caught an exception!",e),console.error(e.stack),e}}}},Pe=function(e,t){var n={error:e};return L(t)?n.queryId=t.queryId:V(t)?n.subscriptionId=t.subscriptionId:U(t)&&(n.mutationId=t.mutationId),n};function _e(e){return function(t,n){void 0===t&&(t={});try{var r={data:Ee(t.data,n,e),optimistic:[],reducerError:null};return r.optimistic=oe(t.optimistic,n,r,e),t.data===r.data&&t.optimistic===r.optimistic&&t.reducerError===r.reducerError?t:r}catch(e){return Oe({},t,{reducerError:Pe(e,n)})}}}function Te(e){var t=void 0===e?{}:e,n=t.reduxRootKey,r=void 0===n?"apollo":n,i=t.initialState,o=t.config,a=void 0===o?{}:o,l=t.reportCrashes,s=void 0===l||l,u=t.logger,c=[],d=[];if(s&&d.push(Ne),u&&d.push(u),d.length>0&&c.push(M.applyMiddleware.apply(void 0,d)),"undefined"!=typeof window){var f=window;f.devToolsExtension&&c.push(f.devToolsExtension())}var p,m=M.compose;if(i&&i[r]&&i[r].queries)throw new Error("Apollo initial state may not contain queries, only data");if(i&&i[r]&&i[r].mutations)throw new Error("Apollo initial state may not contain mutations, only data");return(0,M.createStore)((0,M.combineReducers)(((p={})[r]=_e(a),p)),i,m.apply(void 0,c))}var Ie=n(1158);var je=function(){function e(e){this.subscriberFunction=e}return e.prototype[Ie.A]=function(){return this},e.prototype.subscribe=function(e){var t=this.subscriberFunction(e);return void 0!==t.unsubscribe?t:{unsubscribe:t}},e}(),xe=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();var Fe,Ce,Re=function(e){function t(t){var n,r,i=t.graphQLErrors,o=t.networkError,a=t.errorMessage,l=t.extraInfo,s=e.call(this,a)||this;return s.graphQLErrors=i||[],s.networkError=o||null,s.message=a||(n=s,r="",Array.isArray(n.graphQLErrors)&&0!==n.graphQLErrors.length&&n.graphQLErrors.forEach((function(e){var t=e?e.message:"Error message not found.";r+="GraphQL error: "+t+"\n"})),n.networkError&&(r+="Network error: "+n.networkError.message+"\n"),r=r.replace(/\n$/,"")),s.extraInfo=l,s}return xe(t,e),t}(Error);function Ae(e){return Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){!e.hasOwnProperty(t)||null===e[t]||"object"!=typeof e[t]&&"function"!=typeof e[t]||Object.isFrozen(e[t])||Ae(e[t])})),e}function De(e){return!0===Q("development")||$()?Ae(e):e}function qe(e){return e<7}!function(e){e[e.normal=1]="normal",e[e.refetch=2]="refetch",e[e.poll=3]="poll"}(Fe||(Fe={})),function(e){e[e.loading=1]="loading",e[e.setVariables=2]="setVariables",e[e.fetchMore=3]="fetchMore",e[e.refetch=4]="refetch",e[e.poll=6]="poll",e[e.ready=7]="ready",e[e.error=8]="error"}(Ce||(Ce={}));var Me=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Le=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ue=function(e){function t(t){var n=t.scheduler,r=t.options,i=t.shouldSubscribe,o=void 0===i||i,a=this,l=n.queryManager,s=l.generateQueryId();return(a=e.call(this,(function(e){return a.onSubscribe(e)}))||this).isCurrentlyPolling=!1,a.options=r,a.variables=a.options.variables||{},a.scheduler=n,a.queryManager=l,a.queryId=s,a.shouldSubscribe=o,a.observers=[],a.subscriptionHandles=[],a}return Me(t,e),t.prototype.result=function(){var e=this;return new Promise((function(t,n){var r=null,i={next:function(n){t(n),0===e.observers.filter((function(e){return e!==i})).length&&e.queryManager.removeQuery(e.queryId),setTimeout((function(){r.unsubscribe()}),0)},error:function(e){n(e)}};r=e.subscribe(i)}))},t.prototype.currentResult=function(){var e=this.queryManager.getCurrentQueryResult(this,!0),t=e.data,n=e.partial,r=this.queryManager.queryStore.get(this.queryId);if(r&&(r.graphQLErrors&&r.graphQLErrors.length>0||r.networkError)){var i=new Re({graphQLErrors:r.graphQLErrors,networkError:r.networkError});return{data:{},loading:!1,networkStatus:r.networkStatus,error:i}}var o,a=!r||r.networkStatus===Ce.loading,l="network-only"===this.options.fetchPolicy&&a||n&&"cache-only"!==this.options.fetchPolicy,s={data:t,loading:qe(o=r?r.networkStatus:l?Ce.loading:Ce.ready),networkStatus:o};if(!n){this.lastResult=Le({},s,{stale:!1})}return Le({},s,{partial:n})},t.prototype.getLastResult=function(){return this.lastResult},t.prototype.refetch=function(e){if(this.variables=Le({},this.variables,e),"cache-only"===this.options.fetchPolicy)return Promise.reject(new Error("cache-only fetchPolicy option should not be used together with query refetch."));this.options.variables=Le({},this.options.variables,this.variables);var t=Le({},this.options,{fetchPolicy:"network-only"});return this.queryManager.fetchQuery(this.queryId,t,Fe.refetch).then((function(e){return De(e)}))},t.prototype.fetchMore=function(e){var t=this;if(!e.updateQuery)throw new Error("updateQuery option is required. This function defines how to update the query data with the new results.");return Promise.resolve().then((function(){var n=t.queryManager.generateQueryId(),r=null;if(e.query)r=e;else{var i=Le({},t.variables,e.variables);r=Le({},t.options,e,{variables:i})}return r=Le({},r,{query:r.query,fetchPolicy:"network-only"}),t.queryManager.fetchQuery(n,r,Fe.normal,t.queryId)})).then((function(n){var r=n.data,i=e.updateQuery;return t.updateQuery((function(e,t){var n=t.variables;return i(e,{fetchMoreResult:r,queryVariables:n})})),n}))},t.prototype.subscribeToMore=function(e){var t=this,n=this.queryManager.startGraphQLSubscription({query:e.document,variables:e.variables}).subscribe({next:function(n){if(e.updateQuery){var r=e.updateQuery;t.updateQuery((function(e,t){var i=t.variables;return r(e,{subscriptionData:{data:n},variables:i})}))}},error:function(t){e.onError?e.onError(t):console.error("Unhandled GraphQL subscription error",t)}});return this.subscriptionHandles.push(n),function(){var e=t.subscriptionHandles.indexOf(n);e>=0&&(t.subscriptionHandles.splice(e,1),n.unsubscribe())}},t.prototype.setOptions=function(e){var t=this.options;this.options=Le({},this.options,e),e.pollInterval?this.startPolling(e.pollInterval):0===e.pollInterval&&this.stopPolling();var n="network-only"!==t.fetchPolicy&&"network-only"===e.fetchPolicy||"cache-only"===t.fetchPolicy&&"cache-only"!==e.fetchPolicy||"standby"===t.fetchPolicy&&"standby"!==e.fetchPolicy||!1;return this.setVariables(this.options.variables,n,e.fetchResults)},t.prototype.setVariables=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!0);var r=Le({},this.variables,e);return se(r,this.variables)&&!t?0!==this.observers.length&&n?this.result():new Promise((function(e){return e()})):(this.variables=r,this.options.variables=r,0===this.observers.length?new Promise((function(e){return e()})):this.queryManager.fetchQuery(this.queryId,Le({},this.options,{variables:this.variables})).then((function(e){return De(e)})))},t.prototype.updateQuery=function(e){var t=this.queryManager.getQueryWithPreviousResult(this.queryId),n=t.previousResult,r=t.variables,i=t.document,o=we((function(){return e(n,{variables:r})}));o&&this.queryManager.store.dispatch({type:"APOLLO_UPDATE_QUERY_RESULT",newResult:o,variables:r,document:i,operationName:p(i)})},t.prototype.stopPolling=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.options.pollInterval=void 0,this.isCurrentlyPolling=!1)},t.prototype.startPolling=function(e){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.options.pollInterval=e,this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)},t.prototype.onSubscribe=function(e){var t=this;return this.observers.push(e),e.next&&this.lastResult&&e.next(this.lastResult),e.error&&this.lastError&&e.error(this.lastError),1===this.observers.length&&this.setUpQuery(),{unsubscribe:function(){t.observers.some((function(t){return t===e}))&&(t.observers=t.observers.filter((function(t){return t!==e})),0===t.observers.length&&t.tearDownQuery())}}},t.prototype.setUpQuery=function(){var e=this;if(this.shouldSubscribe&&this.queryManager.addObservableQuery(this.queryId,this),this.options.pollInterval){if("cache-first"===this.options.fetchPolicy||"cache-only"===this.options.fetchPolicy)throw new Error("Queries that specify the cache-first and cache-only fetchPolicies cannot also be polling queries.");this.isCurrentlyPolling=!0,this.scheduler.startPollingQuery(this.options,this.queryId)}var t={next:function(t){e.lastResult=t,e.observers.forEach((function(e){e.next&&e.next(t)}))},error:function(t){e.observers.forEach((function(e){e.error?e.error(t):console.error("Unhandled error",t.message,t.stack)})),e.lastError=t}};this.queryManager.startQuery(this.queryId,this.options,this.queryManager.queryListenerForObserver(this.queryId,this.options,t))},t.prototype.tearDownQuery=function(){this.isCurrentlyPolling&&(this.scheduler.stopPollingQuery(this.queryId),this.isCurrentlyPolling=!1),this.subscriptionHandles.forEach((function(e){return e.unsubscribe()})),this.subscriptionHandles=[],this.queryManager.stopQuery(this.queryId),this.shouldSubscribe&&this.queryManager.removeObservableQuery(this.queryId),this.observers=[]},t}(je),Ve=n(4528),Qe=Object.create({});var Be=function(){function e(e){e&&e.introspectionQueryResultData?(this.possibleTypesMap=this.parseIntrospectionResult(e.introspectionQueryResultData),this.isReady=!0):this.isReady=!1,this.match=this.match.bind(this)}return e.prototype.match=function(e,t,n){if(!this.isReady)throw new Error("FragmentMatcher.match() was called before FragmentMatcher.init()");var r=n.store[e.id];if(!r)return!1;if(!r.__typename)throw new Error("Cannot match fragment because __typename property is missing: "+JSON.stringify(r));if(r.__typename===t)return!0;var i=this.possibleTypesMap[t];return!!(i&&i.indexOf(r.__typename)>-1)},e.prototype.parseIntrospectionResult=function(e){var t={};return e.__schema.types.forEach((function(e){"UNION"!==e.kind&&"INTERFACE"!==e.kind||(t[e.name]=e.possibleTypes.map((function(e){return e.name})))})),t},e}(),$e=!1,We=function(){function e(){}return e.prototype.ensureReady=function(){return Promise.resolve()},e.prototype.canBypassInit=function(){return!0},e.prototype.match=function(e,t,n){var r,i,o=n.store[e.id];return!!o&&(o.__typename?(o.__typename===t||(r="You are using the simple (heuristic) fragment matcher, but your queries contain union or interface types.\n Apollo Client will not be able to able to accurately map fragments.To make this error go away, use the IntrospectionFragmentMatcher as described in the docs: http://dev.apollodata.com/react/initialization.html#fragment-matcher",void 0===(i="error")&&(i="warn"),B()||Qe[r]||($()||(Qe[r]=!0),"error"===i?console.error(r):console.warn(r)),n.returnPartialData=!0),!0):($e||(console.warn("You're using fragments in your queries, but either don't have the addTypename:\n true option set in Apollo Client, or you are trying to write a fragment to the store without the __typename.\n Please turn on the addTypename option and include __typename when writing fragments so that Apollo Client\n can accurately match fragments."),console.warn("Could not find __typename on Fragment ",t,o),console.warn("DEPRECATION WARNING: using fragments without __typename is unsupported behavior and will be removed in future versions of Apollo client. You should fix this and set addTypename to true now."),$()||($e=!0)),n.returnPartialData=!0,!0))},e}(),Ke=function(){function e(e){this.networkInterface=e,this.inFlightRequestPromises={}}return e.prototype.query=function(e,t){var n=this;if(void 0===t&&(t=!0),!t)return this.networkInterface.query(e);var r=this.getKey(e);return this.inFlightRequestPromises[r]||(this.inFlightRequestPromises[r]=this.networkInterface.query(e)),this.inFlightRequestPromises[r].then((function(e){return delete n.inFlightRequestPromises[r],e})).catch((function(e){throw delete n.inFlightRequestPromises[r],e}))},e.prototype.getKey=function(e){return(0,r.y)(e.query)+"|"+JSON.stringify(e.variables)+"|"+e.operationName},e}(),ze=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ge=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initQuery=function(e){var t=this.store[e.queryId];if(t&&t.queryString!==e.queryString)throw new Error("Internal Error: may not update existing query string in store");var n,r=!1,i=null;e.storePreviousVariables&&t&&t.networkStatus!==Ce.loading&&(se(t.variables,e.variables)||(r=!0,i=t.variables)),n=r?Ce.setVariables:e.isPoll?Ce.poll:e.isRefetch?Ce.refetch:Ce.loading,this.store[e.queryId]={queryString:e.queryString,document:e.document,variables:e.variables,previousVariables:i,networkError:null,graphQLErrors:[],networkStatus:n,metadata:e.metadata},"string"==typeof e.fetchMoreForQueryId&&(this.store[e.fetchMoreForQueryId].networkStatus=Ce.fetchMore)},e.prototype.markQueryResult=function(e,t,n){this.store[e]&&(this.store[e].networkError=null,this.store[e].graphQLErrors=t.errors&&t.errors.length?t.errors:[],this.store[e].previousVariables=null,this.store[e].networkStatus=Ce.ready,"string"==typeof n&&(this.store[n].networkStatus=Ce.ready))},e.prototype.markQueryError=function(e,t,n){this.store[e]&&(this.store[e].networkError=t,this.store[e].networkStatus=Ce.error,"string"==typeof n&&this.markQueryError(n,t,void 0))},e.prototype.markQueryResultClient=function(e,t){this.store[e]&&(this.store[e].networkError=null,this.store[e].previousVariables=null,this.store[e].networkStatus=t?Ce.ready:Ce.loading)},e.prototype.stopQuery=function(e){delete this.store[e]},e.prototype.reset=function(e){var t=this;this.store=Object.keys(this.store).filter((function(t){return e.indexOf(t)>-1})).reduce((function(e,n){return e[n]=ze({},t.store[n],{networkStatus:Ce.loading}),e}),{})},e}();var Ye=function(){function e(){this.store={}}return e.prototype.getStore=function(){return this.store},e.prototype.get=function(e){return this.store[e]},e.prototype.initMutation=function(e,t,n){this.store[e]={mutationString:t,variables:n||{},loading:!0,error:null}},e.prototype.markMutationError=function(e,t){this.store[e].loading=!1,this.store[e].error=t},e.prototype.markMutationResult=function(e){this.store[e].loading=!1,this.store[e].error=null},e.prototype.reset=function(){this.store={}},e}(),He=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Je=function(){function e(e){var t=e.queryManager;this.queryManager=t,this.pollingTimers={},this.inFlightQueries={},this.registeredQueries={},this.intervalQueries={}}return e.prototype.checkInFlight=function(e){var t=this.queryManager.queryStore.get(e);return t&&t.networkStatus!==Ce.ready&&t.networkStatus!==Ce.error},e.prototype.fetchQuery=function(e,t,n){var r=this;return new Promise((function(i,o){r.queryManager.fetchQuery(e,t,n).then((function(e){i(e)})).catch((function(e){o(e)}))}))},e.prototype.startPollingQuery=function(e,t,n){if(!e.pollInterval)throw new Error("Attempted to start a polling query without a polling interval.");return this.queryManager.ssrMode||(this.registeredQueries[t]=e,n&&this.queryManager.addQueryListener(t,n),this.addQueryOnInterval(t,e)),t},e.prototype.stopPollingQuery=function(e){delete this.registeredQueries[e]},e.prototype.fetchQueriesOnInterval=function(e){var t=this;this.intervalQueries[e]=this.intervalQueries[e].filter((function(e){if(!t.registeredQueries.hasOwnProperty(e))return!1;if(t.checkInFlight(e))return!0;var n=t.registeredQueries[e],r=He({},n);return r.fetchPolicy="network-only",t.fetchQuery(e,r,Fe.poll),!0})),0===this.intervalQueries[e].length&&(clearInterval(this.pollingTimers[e]),delete this.intervalQueries[e])},e.prototype.addQueryOnInterval=function(e,t){var n=this,r=t.pollInterval;if(!r)throw new Error("A poll interval is required to start polling query with id '"+e+"'.");this.intervalQueries.hasOwnProperty(r.toString())&&this.intervalQueries[r].length>0?this.intervalQueries[r].push(e):(this.intervalQueries[r]=[e],this.pollingTimers[r]=setInterval((function(){n.fetchQueriesOnInterval(r)}),r))},e.prototype.registerPollingQuery=function(e){if(!e.pollInterval)throw new Error("Attempted to register a non-polling query with the scheduler.");return new Ue({scheduler:this,options:e})},e}(),Xe=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ze=function(){function e(e){var t,n=e.networkInterface,r=e.store,i=e.reduxRootSelector,o=e.reducerConfig,a=void 0===o?{}:o,l=e.fragmentMatcher,s=e.addTypename,u=void 0===s||s,c=e.queryDeduplication,d=void 0!==c&&c,f=e.ssrMode,p=void 0!==f&&f,m=this;(this.mutationStore=new Ye,this.queryStore=new Ge,this.idCounter=1,this.lastRequestId={},this.disableBroadcasting=!1,this.networkInterface=n,this.deduplicator=new Ke(n),this.store=r,this.reduxRootSelector=i,this.reducerConfig=a,this.pollingTimers={},this.queryListeners={},this.queryDocuments={},this.addTypename=u,this.queryDeduplication=d,this.ssrMode=p,this.fragmentMatcher=void 0===l?new We:l,this.scheduler=new Je({queryManager:this}),this.fetchQueryPromises={},this.observableQueries={},this.queryIdsByName={},this.store.subscribe)&&this.store.subscribe((function(){var e=t||{},n=Object.keys(e).length;se(e,t=m.getApolloState())&&n||m.broadcastQueries()}))}return e.prototype.broadcastNewStore=function(e){this.broadcastQueries()},e.prototype.mutate=function(e){var t=this,n=e.mutation,i=e.variables,o=e.optimisticResponse,a=e.updateQueries,l=e.refetchQueries,s=void 0===l?[]:l,c=e.update;if(!n)throw new Error("mutation option is required. You must specify your GraphQL document in the mutation option.");var f=this.generateQueryId();this.addTypename&&(n=O(n)),i=u({},b(d(n)),i);var m=(0,r.y)(n),v={query:n,variables:i,operationName:p(n)};this.queryDocuments[f]=n;var h=function(){var e={};return a&&Object.keys(a).forEach((function(n){return(t.queryIdsByName[n]||[]).forEach((function(r){e[r]={reducer:a[n],query:t.queryStore.get(r)}}))})),e};return this.store.dispatch({type:"APOLLO_MUTATION_INIT",mutationString:m,mutation:n,variables:i||{},operationName:p(n),mutationId:f,optimisticResponse:o,extraReducers:this.getExtraReducers(),updateQueries:h(),update:c}),this.mutationStore.initMutation(f,m,i),new Promise((function(e,r){t.networkInterface.query(v).then((function(o){if(o.errors){var a=new Re({graphQLErrors:o.errors});return t.store.dispatch({type:"APOLLO_MUTATION_ERROR",error:a,mutationId:f}),t.mutationStore.markMutationError(f,a),delete t.queryDocuments[f],void r(a)}t.store.dispatch({type:"APOLLO_MUTATION_RESULT",result:o,mutationId:f,document:n,operationName:p(n),variables:i||{},extraReducers:t.getExtraReducers(),updateQueries:h(),update:c}),t.mutationStore.markMutationResult(f);var l=t.getApolloState().reducerError;l&&l.mutationId===f?r(l.error):("string"==typeof s[0]?s.forEach((function(e){t.refetchQueryByName(e)})):s.forEach((function(e){t.query({query:e.query,variables:e.variables,fetchPolicy:"network-only"})})),delete t.queryDocuments[f],e(o))})).catch((function(e){t.store.dispatch({type:"APOLLO_MUTATION_ERROR",error:e,mutationId:f}),delete t.queryDocuments[f],r(new Re({networkError:e}))}))}))},e.prototype.fetchQuery=function(t,n,i,o){var a,l=this,s=n.variables,u=void 0===s?{}:s,c=n.metadata,d=void 0===c?null:c,f=n.fetchPolicy,m=void 0===f?"cache-first":f,v=this.transformQueryDocument(n).queryDoc,h=(0,r.y)(v),y="network-only"===m;if(i!==Fe.refetch&&"network-only"!==m){var g=pe({query:v,store:this.reduxRootSelector(this.store.getState()).data,variables:u,returnPartialData:!0,fragmentMatcherFunction:this.fragmentMatcher.match,config:this.reducerConfig});y=g.isMissing||"cache-and-network"===m,a=g.result}var b=y&&"cache-only"!==m&&"standby"!==m,k=this.generateRequestId();if(this.queryDocuments[t]=v,this.queryStore.initQuery({queryId:t,queryString:h,document:v,storePreviousVariables:b,variables:u,isPoll:i===Fe.poll,isRefetch:i===Fe.refetch,metadata:d,fetchMoreForQueryId:o}),this.broadcastQueries(),e.EMIT_REDUX_ACTIONS&&this.store.dispatch({type:"APOLLO_QUERY_INIT",queryString:h,document:v,operationName:p(v),variables:u,fetchPolicy:m,queryId:t,requestId:k,storePreviousVariables:b,isPoll:i===Fe.poll,isRefetch:i===Fe.refetch,fetchMoreForQueryId:o,metadata:d}),this.lastRequestId[t]=k,(!b||"cache-and-network"===m)&&(this.queryStore.markQueryResultClient(t,!b),this.broadcastQueries(),e.EMIT_REDUX_ACTIONS&&this.store.dispatch({type:"APOLLO_QUERY_RESULT_CLIENT",result:{data:a},variables:u,document:v,operationName:p(v),complete:!b,queryId:t,requestId:k})),b){var w=this.fetchRequest({requestId:k,queryId:t,document:v,options:n,fetchMoreForQueryId:o}).catch((function(n){throw n.hasOwnProperty("graphQLErrors")?n:(k>=(l.lastRequestId[t]||1)&&(e.EMIT_REDUX_ACTIONS&&l.store.dispatch({type:"APOLLO_QUERY_ERROR",error:n,queryId:t,requestId:k,fetchMoreForQueryId:o}),l.queryStore.markQueryError(t,n,o),l.broadcastQueries()),l.removeFetchQueryPromise(k),new Re({networkError:n}))}));if("cache-and-network"!==m)return w}return Promise.resolve({data:a})},e.prototype.queryListenerForObserver=function(e,t,n){var r=this,i=!1;return function(o){if(o){o=r.queryStore.get(e);var a=r.observableQueries[e],l=a?a.observableQuery:null,s=l?l.options.fetchPolicy:t.fetchPolicy;if("standby"!==s){var u=l?l.getLastResult():null,c=o.previousVariables||"cache-only"===s||"cache-and-network"===s,d=u&&o.networkStatus!==u.networkStatus;if(!qe(o.networkStatus)||d&&t.notifyOnNetworkStatusChange||c)if(o.graphQLErrors&&o.graphQLErrors.length>0||o.networkError){var f=new Re({graphQLErrors:o.graphQLErrors,networkError:o.networkError});if(i=!0,n.error)try{n.error(f)}catch(e){setTimeout((function(){throw e}),0)}else setTimeout((function(){throw f}),0),B()||console.info("An unhandled error was thrown because no error handler is registered for the query "+o.queryString)}else try{var p=pe({store:r.getDataWithOptimisticResults(),query:r.queryDocuments[e],variables:o.previousVariables||o.variables,config:r.reducerConfig,fragmentMatcherFunction:r.fragmentMatcher.match,previousResult:u&&u.data}),m=p.result,v=p.isMissing,h=void 0;if(h=v&&"cache-only"!==s?{data:u&&u.data,loading:qe(o.networkStatus),networkStatus:o.networkStatus,stale:!0}:{data:m,loading:qe(o.networkStatus),networkStatus:o.networkStatus,stale:!1},n.next)if(!(u&&h&&u.networkStatus===h.networkStatus&&u.stale===h.stale&&u.data===h.data)||i)try{n.next(De(h))}catch(e){setTimeout((function(){throw e}),0)}i=!1}catch(e){return i=!0,void(n.error&&n.error(new Re({networkError:e})))}}}}},e.prototype.watchQuery=function(e,t){if(void 0===t&&(t=!0),e.returnPartialData)throw new Error("returnPartialData option is no longer supported since Apollo Client 1.0.");if(e.forceFetch)throw new Error("forceFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if(e.noFetch)throw new Error("noFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if("standby"===e.fetchPolicy)throw new Error('client.watchQuery cannot be called with fetchPolicy set to "standby"');var n=v(e.query);if(n.variableDefinitions&&n.variableDefinitions.length){var r=b(n);e.variables=u({},r,e.variables)}void 0===e.notifyOnNetworkStatusChange&&(e.notifyOnNetworkStatusChange=!1);var i=Xe({},e);return new Ue({scheduler:this.scheduler,options:i,shouldSubscribe:t})},e.prototype.query=function(e){var t=this;if(!e.query)throw new Error("query option is required. You must specify your GraphQL document in the query option.");if("Document"!==e.query.kind)throw new Error('You must wrap the query string in a "gql" tag.');if(e.returnPartialData)throw new Error("returnPartialData option only supported on watchQuery.");if(e.pollInterval)throw new Error("pollInterval option only supported on watchQuery.");if(e.forceFetch)throw new Error("forceFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if(e.noFetch)throw new Error("noFetch option is no longer supported since Apollo Client 1.0. Use fetchPolicy instead.");if(void 0!==e.notifyOnNetworkStatusChange)throw new Error('Cannot call "query" with "notifyOnNetworkStatusChange" option. Only "watchQuery" has that option.');e.notifyOnNetworkStatusChange=!1;var n=this.idCounter,r=new Promise((function(i,o){return t.addFetchQueryPromise(n,r,i,o),t.watchQuery(e,!1).result().then((function(e){t.removeFetchQueryPromise(n),i(e)})).catch((function(e){t.removeFetchQueryPromise(n),o(e)}))}));return r},e.prototype.generateQueryId=function(){var e=this.idCounter.toString();return this.idCounter++,e},e.prototype.stopQueryInStore=function(t){this.queryStore.stopQuery(t),this.broadcastQueries(),e.EMIT_REDUX_ACTIONS&&this.store.dispatch({type:"APOLLO_QUERY_STOP",queryId:t})},e.prototype.getApolloState=function(){return this.reduxRootSelector(this.store.getState())},e.prototype.selectApolloState=function(e){return this.reduxRootSelector(e.getState())},e.prototype.getInitialState=function(){return{data:this.getApolloState().data}},e.prototype.getDataWithOptimisticResults=function(){return ie(this.getApolloState())},e.prototype.addQueryListener=function(e,t){this.queryListeners[e]=this.queryListeners[e]||[],this.queryListeners[e].push(t)},e.prototype.addFetchQueryPromise=function(e,t,n,r){this.fetchQueryPromises[e.toString()]={promise:t,resolve:n,reject:r}},e.prototype.removeFetchQueryPromise=function(e){delete this.fetchQueryPromises[e.toString()]},e.prototype.addObservableQuery=function(e,t){this.observableQueries[e]={observableQuery:t};var n=v(t.options.query);if(n.name&&n.name.value){var r=n.name.value;this.queryIdsByName[r]=this.queryIdsByName[r]||[],this.queryIdsByName[r].push(t.queryId)}},e.prototype.removeObservableQuery=function(e){var t=this.observableQueries[e].observableQuery,n=v(t.options.query),r=n.name?n.name.value:null;delete this.observableQueries[e],r&&(this.queryIdsByName[r]=this.queryIdsByName[r].filter((function(e){return!(t.queryId===e)})))},e.prototype.resetStore=function(){var e=this;Object.keys(this.fetchQueryPromises).forEach((function(t){(0,e.fetchQueryPromises[t].reject)(new Error("Store reset while query was in flight."))})),this.queryStore.reset(Object.keys(this.observableQueries)),this.store.dispatch({type:"APOLLO_STORE_RESET",observableQueryIds:Object.keys(this.observableQueries)}),this.mutationStore.reset();var t=[];return Object.keys(this.observableQueries).forEach((function(n){e.queryStore.get(n);var r=e.observableQueries[n].observableQuery.options.fetchPolicy;"cache-only"!==r&&"standby"!==r&&t.push(e.observableQueries[n].observableQuery.refetch())})),Promise.all(t)},e.prototype.startQuery=function(e,t,n){return this.addQueryListener(e,n),this.fetchQuery(e,t).catch((function(e){})),e},e.prototype.startGraphQLSubscription=function(e){var t=this,n=e.query,r=n;this.addTypename&&(r=O(r));var i,o=u({},b(h(n)),e.variables),a={query:r,variables:o,operationName:p(r)},l=[];return new je((function(e){if(l.push(e),1===l.length){i=t.networkInterface.subscribe(a,(function(e,n){e?l.forEach((function(t){t.error&&t.error(e)})):(t.store.dispatch({type:"APOLLO_SUBSCRIPTION_RESULT",document:r,operationName:p(r),result:{data:n},variables:o,subscriptionId:i,extraReducers:t.getExtraReducers()}),l.forEach((function(e){e.next&&e.next(n)})))}))}return{unsubscribe:function(){0===(l=l.filter((function(t){return t!==e}))).length&&t.networkInterface.unsubscribe(i)},_networkSubscriptionId:i}}))},e.prototype.removeQuery=function(e){delete this.queryListeners[e],delete this.queryDocuments[e]},e.prototype.stopQuery=function(e){this.removeQuery(e),this.stopQueryInStore(e)},e.prototype.getCurrentQueryResult=function(e,t){void 0===t&&(t=!1);var n=this.getQueryParts(e),r=n.variables,i=n.document,o=e.getLastResult(),a=(e.options,{store:t?this.getDataWithOptimisticResults():this.getApolloState().data,query:i,variables:r,config:this.reducerConfig,previousResult:o?o.data:void 0,fragmentMatcherFunction:this.fragmentMatcher.match});try{return De({data:de(a),partial:!1})}catch(e){return De({data:{},partial:!0})}},e.prototype.getQueryWithPreviousResult=function(e,t){var n;if(void 0===t&&(t=!1),"string"==typeof e){if(!this.observableQueries[e])throw new Error("ObservableQuery with this id doesn't exist: "+e);n=this.observableQueries[e].observableQuery}else n=e;var r=this.getQueryParts(n),i=r.variables,o=r.document;return{previousResult:this.getCurrentQueryResult(n,t).data,variables:i,document:o}},e.prototype.getQueryParts=function(e){var t=e.options,n=e.options.query;return this.addTypename&&(n=O(n)),{variables:t.variables,document:n}},e.prototype.transformQueryDocument=function(e){var t=e.query;return this.addTypename&&(t=O(t)),{queryDoc:t}},e.prototype.getExtraReducers=function(){var e=this;return Object.keys(this.observableQueries).map((function(t){var n=e.observableQueries[t].observableQuery,r=n.options;return r.reducer?function(e,t,n,r){return function(i,o){var a,l=pe({store:i,query:t,variables:n,returnPartialData:!0,fragmentMatcherFunction:r.fragmentMatcher,config:r}),s=l.result;if(l.isMissing)return i;try{a=e(s,o,n)}catch(e){throw console.warn("Unhandled error in result reducer",e),e}return s!==a?H({dataId:"ROOT_QUERY",result:a,store:i,document:t,variables:n,dataIdFromObject:r.dataIdFromObject,fragmentMatcherFunction:r.fragmentMatcher}):i}}(r.reducer,e.addTypename?O(r.query):r.query,n.variables||{},e.reducerConfig):null})).filter((function(e){return null!==e}))},e.prototype.fetchRequest=function(e){var t=this,n=e.requestId,r=e.queryId,i=e.document,o=e.options,a=e.fetchMoreForQueryId,l=o.variables,s={query:i,variables:l,operationName:p(i)},u=new Promise((function(e,o){t.addFetchQueryPromise(n,u,e,o),t.deduplicator.query(s,t.queryDeduplication).then((function(e){var o=t.getExtraReducers();if(n>=(t.lastRequestId[r]||1)){t.disableBroadcasting=!0,t.store.dispatch({type:"APOLLO_QUERY_RESULT",document:i,variables:l||{},operationName:p(i),result:e,queryId:r,requestId:n,fetchMoreForQueryId:a,extraReducers:o}),t.disableBroadcasting=!1;var s=t.getApolloState().reducerError;s&&s.queryId===r||(t.queryStore.markQueryResult(r,e,a),t.broadcastQueries())}if(t.removeFetchQueryPromise(n),e.errors)throw new Re({graphQLErrors:e.errors});return e})).then((function(o){var s;if(a)s=o.data;else try{s=de({store:t.getApolloState().data,variables:l,query:i,config:t.reducerConfig,fragmentMatcherFunction:t.fragmentMatcher.match})}catch(e){}var u=t.getApolloState().reducerError;return u&&u.queryId===r?Promise.reject(u.error):(t.removeFetchQueryPromise(n),e({data:s,loading:!1,networkStatus:Ce.ready,stale:!1}),Promise.resolve())})).catch((function(e){o(e)}))}));return u},e.prototype.refetchQueryByName=function(e){var t=this,n=this.queryIdsByName[e];return void 0===n?void console.warn("Warning: unknown query with name "+e+" asked to refetch"):Promise.all(n.map((function(e){return t.observableQueries[e].observableQuery.refetch()})))},e.prototype.broadcastQueries=function(){var e=this;this.disableBroadcasting||Object.keys(this.queryListeners).forEach((function(t){var n=e.queryListeners[t];n&&n.forEach((function(n){n&&n(e.queryStore.get(t))}))}))},e.prototype.generateRequestId=function(){var e=this.idCounter;return this.idCounter++,e},e.EMIT_REDUX_ACTIONS=!0,e}(),et=n(4579),tt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},nt="apollo";function rt(e){return e[nt]}function it(e){if(e.__typename){if(void 0!==e.id)return e.__typename+":"+e.id;if(void 0!==e._id)return e.__typename+":"+e._id}return null}var ot=!1,at=function(){function e(e){void 0===e&&(e={});var t=this;this.middleware=function(){return function(e){return t.setStore(e),function(n){return function(r){var i=t.queryManager.selectApolloState(e),o=n(r);return t.queryManager.selectApolloState(e)!==i&&t.queryManager.broadcastNewStore(e.getState()),t.devToolsHookCb&&t.devToolsHookCb({action:r,state:{queries:t.queryManager.queryStore.getStore(),mutations:t.queryManager.mutationStore.getStore()},dataWithOptimisticResults:t.queryManager.getDataWithOptimisticResults()}),o}}}};var n=e.dataIdFromObject,r=e.networkInterface,i=e.reduxRootSelector,a=e.initialState,l=e.ssrMode,s=void 0!==l&&l,u=e.ssrForceFetchDelay,c=void 0===u?0:u,d=e.addTypename,f=void 0===d||d,p=e.customResolvers,m=e.connectToDevTools,v=e.fragmentMatcher,h=e.queryDeduplication,y=void 0===h||h;if("function"==typeof i)this.reduxRootSelector=i;else if(void 0!==i)throw new Error('"reduxRootSelector" must be a function.');this.fragmentMatcher=void 0===v?new We:v;var g;if(r instanceof Ve.ApolloLink){var b=0;this.networkInterface={query:(g=function(e){return(0,Ve.execute)(r,e)},function(e){return new Promise((function(t,n){var r=!1,i=g(e).subscribe({next:function(e){r?console.warn("Apollo Client does not support multiple results from an Observable"):(t(e),r=!0)},error:n,complete:function(){return i.unsubscribe()}})}))}),subscribe:function(e,n){t.subscriptionMap||(t.subscriptionMap=new Map);var i=(0,Ve.execute)(r,e).subscribe({next:function(e){return n(void 0,e)},error:function(e){return n([e])},complete:n}),o=b.toString();return t.subscriptionMap.set(o,i),b++,o},unsubscribe:function(e){if(t.subscriptionMap){var n=t.subscriptionMap.get(e);n&&n.unsubscribe()}}}}else this.networkInterface=r||F({uri:"/graphql"});this.initialState=a||{},this.addTypename=f,this.disableNetworkFetches=s||c>0,this.dataId=n=n||it,this.dataIdFromObject=this.dataId,this.fieldWithArgs=o,this.queryDeduplication=y,this.ssrMode=s,c&&setTimeout((function(){return t.disableNetworkFetches=!1}),c),this.reducerConfig={dataIdFromObject:n,customResolvers:p,addTypename:f,fragmentMatcher:this.fragmentMatcher.match},this.watchQuery=this.watchQuery.bind(this),this.query=this.query.bind(this),this.mutate=this.mutate.bind(this),this.setStore=this.setStore.bind(this),this.resetStore=this.resetStore.bind(this);var k=!B()&&"undefined"!=typeof window&&!window.__APOLLO_CLIENT__;(void 0===m?k:m)&&(window.__APOLLO_CLIENT__=this),ot||B()||(ot=!0,"undefined"!=typeof window&&window.document&&window.top===window.self&&void 0===window.__APOLLO_DEVTOOLS_GLOBAL_HOOK__&&navigator.userAgent.indexOf("Chrome")>-1&&console.debug("Download the Apollo DevTools for a better development experience: https://chrome.google.com/webstore/detail/apollo-client-developer-t/jdkknkkbebbapilgoeccciglkfbmbnfm")),this.version=et.r}return e.prototype.watchQuery=function(e){return this.initStore(),this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=tt({},e,{fetchPolicy:"cache-first"})),this.queryManager.watchQuery(e)},e.prototype.query=function(e){if(this.initStore(),"cache-and-network"===e.fetchPolicy)throw new Error("cache-and-network fetchPolicy can only be used with watchQuery");return this.disableNetworkFetches&&"network-only"===e.fetchPolicy&&(e=tt({},e,{fetchPolicy:"cache-first"})),this.queryManager.query(e)},e.prototype.mutate=function(e){return this.initStore(),this.queryManager.mutate(e)},e.prototype.subscribe=function(e){return this.initStore(),this.queryManager.startGraphQLSubscription(e)},e.prototype.readQuery=function(e){return this.initProxy().readQuery(e)},e.prototype.readFragment=function(e){return this.initProxy().readFragment(e)},e.prototype.writeQuery=function(e){return this.initProxy().writeQuery(e)},e.prototype.writeFragment=function(e){return this.initProxy().writeFragment(e)},e.prototype.reducer=function(){return _e(this.reducerConfig)},e.prototype.__actionHookForDevTools=function(e){this.devToolsHookCb=e},e.prototype.initStore=function(){var e=this;if(!this.store){if(this.reduxRootSelector)throw new Error('Cannot initialize the store because "reduxRootSelector" is provided. reduxRootSelector should only be used when the store is created outside of the client. This may lead to unexpected results when querying the store internally. Please remove that option from ApolloClient constructor.');this.setStore(Te({reduxRootKey:nt,initialState:this.initialState,config:this.reducerConfig,logger:function(t){return function(t){return function(n){var r=t(n);return e.devToolsHookCb&&e.devToolsHookCb({action:n,state:{queries:e.queryManager.queryStore.getStore(),mutations:e.queryManager.mutationStore.getStore()},dataWithOptimisticResults:e.queryManager.getDataWithOptimisticResults()}),r}}}}))}},e.prototype.resetStore=function(){return this.queryManager?this.queryManager.resetStore():null},e.prototype.getInitialState=function(){return this.initStore(),this.queryManager.getInitialState()},e.prototype.setStore=function(e){var t;if(void 0===(t=this.reduxRootSelector?this.reduxRootSelector:rt)(e.getState()))throw new Error('Existing store does not use apolloReducer. Please make sure the store is properly configured and "reduxRootSelector" is correctly specified.');this.store=e,this.queryManager=new Ze({networkInterface:this.networkInterface,reduxRootSelector:t,store:e,addTypename:this.addTypename,reducerConfig:this.reducerConfig,queryDeduplication:this.queryDeduplication,fragmentMatcher:this.fragmentMatcher,ssrMode:this.ssrMode})},e.prototype.initProxy=function(){return this.proxy||(this.initStore(),this.proxy=new ge(this.store,this.reduxRootSelector||rt,this.fragmentMatcher,this.reducerConfig)),this.proxy},e}();const lt=at,st=at},4579:(e,t)=>{t.r="1.9.3"},4528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8962);t.execute=r.execute,t.ApolloLink=r.ApolloLink;var i=n(6325);t.makePromise=i.makePromise;var o=n(8679);t.Observable=o.default,function(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(8679)),t.default=r.ApolloLink},8962:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),o=this&&this.__assign||Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};Object.defineProperty(t,"__esModule",{value:!0});var a=n(6325),l=n(1967),s=n(8679),u=function(){function e(){}return e.from=function(t){return 0===t.length?e.empty():t.map(a.toLink).reduce((function(e,t){return e.concat(t)}))},e.empty=function(){return new c((function(e,t){return s.default.of()}))},e.passthrough=function(){return new c((function(e,t){return t?t(e):s.default.of()}))},e.split=function(t,n,r){void 0===r&&(r=e.passthrough());var i=a.validateLink(a.toLink(n)),o=a.validateLink(a.toLink(r));return a.isTerminating(i)&&a.isTerminating(o)?new c((function(e){return t(e)?i.request(e)||s.default.of():o.request(e)||s.default.of()})):new c((function(e,n){return t(e)?i.request(e,n)||s.default.of():o.request(e,n)||s.default.of()}))},e.prototype.split=function(t,n,r){return void 0===r&&(r=e.passthrough()),this.concat(e.split(t,n,r))},e.prototype.concat=function(e){var t=this;if(a.validateLink(this),a.isTerminating(this))return console.warn(new a.LinkError("You are calling concat on a terminating link, which will have no effect",this)),this;var n=a.validateLink(a.toLink(e));return a.isTerminating(n)?new c((function(e){return t.request(e,(function(e){return n.request(e)||s.default.of()}))||s.default.of()})):new c((function(e,r){return t.request(e,(function(e){return n.request(e,r)||s.default.of()}))||s.default.of()}))},e}();t.ApolloLink=u,t.execute=function(e,t){var n=o({},t);return a.validateOperation(n),n.context||(n.context={}),n.variables||(n.variables={}),n.query||(console.warn("query should either be a string or GraphQL AST"),n.query={}),e.request(function(e){var t;t="string"==typeof e.query?o({},e,{query:l.default(e.query)}):o({},e);if(t.query&&t.query.definitions){if(!t.operationName){var n=["query","mutation","subscription"],r=t.query.definitions.filter((function(e){return"OperationDefinition"===e.kind&&n.indexOf(e.operation)>=0}));t.operationName=(i=r[0])&&i.name&&"Name"===i.name.kind&&i.name.value||""}}else t.operationName||(t.operationName="");var i;return t}(n))||s.default.of()};var c=function(e){function t(t){var n=e.call(this)||this;return n.f=t,n.request=t,n}return i(t,e),t.prototype.request=function(e,t){throw Error("should be overridden")},t}(u);t.FunctionLink=c},6325:function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var o=n(8962);t.validateLink=function(e){if(e instanceof o.ApolloLink&&"function"==typeof e.request)return e;throw new a("Link does not extend ApolloLink and implement request",e)},t.validateOperation=function(e){for(var t=["query","operationName","variables","context"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(t.indexOf(i)<0)throw new Error("illegal argument: "+i)}return e};var a=function(e){function t(t,n){var r=e.call(this,t)||this;return r.link=n,r}return i(t,e),t}(Error);t.LinkError=a,t.toLink=function(e){return"function"==typeof e?new o.FunctionLink(e):e},t.isTerminating=function(e){return e.request.length<=1},t.makePromise=function(e){var t=!1;return new Promise((function(n,r){e.subscribe({next:function(e){t?console.warn("Promise Wrapper does not support multiple results from Observable"):(t=!0,n(e))},error:r})}))}},253:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>o});var r=n(2280),i={};for(const e in r)"default"!==e&&(i[e]=()=>r[e]);n.d(t,i);const o=r},4501:(e,t)=>{"use strict";const n=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,r=/^[\u0021-\u003A\u003C-\u007E]*$/,i=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,o=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,l=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function s(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function u(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function c(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(t){return e}}},7050:(e,t,n)=>{"use strict";var r=n(514);t.getDirectiveInfoFromField=function(e,t){if(e.directives&&e.directives.length){var n={};return e.directives.forEach((function(e){n[e.name.value]=r.argumentsObjectFromField(e,t)})),n}return null},t.shouldInclude=function(e,t){if(void 0===t&&(t={}),!e.directives)return!0;var n=!0;return e.directives.some((function(e){if("skip"===e.name.value||"include"===e.name.value){var r=e.arguments,i=e.name.value;if(1!==r.length)throw new Error("Incorrect number of arguments for the @"+i+" directive.");var o=e.arguments[0];if(!o.name||"if"!==o.name.value)throw new Error("Invalid argument for the @"+i+" directive.");var a=e.arguments[0].value,l=!1;if(a&&"BooleanValue"===a.kind)l=a.value;else{if("Variable"!==a.kind)throw new Error("Argument for the @"+i+" directive must be a variable or a bool ean value.");if(void 0===(l=t[a.name.value]))throw new Error("Invalid variable referenced in @"+i+" directive.")}return"skip"===i&&(l=!l),!l&&(n=!1,!0)}})),n}},192:(e,t)=>{"use strict";t.getFragmentDefinitions=function(e){return e.definitions.filter((function(e){return"FragmentDefinition"===e.kind}))},t.createFragmentMap=function(e){void 0===e&&(e=[]);var t={};return e.forEach((function(e){t[e.name.value]=e})),t},t.getMainDefinition=function(e){var t;!function(e){if("Document"!==e.kind)throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-client/core.html#gql');if(e.definitions.filter((function(e){return"OperationDefinition"===e.kind})).length>1)throw new Error("Queries must have exactly one operation definition.")}(e);for(var n=0,r=e.definitions;n<r.length;n++){var i=r[n];if("OperationDefinition"===i.kind){var o=i.operation;if("query"===o||"mutation"===o||"subscription"===o)return i}"FragmentDefinition"!==i.kind||t||(t=i)}if(t)return t;throw new Error("Expected a parsed GraphQL query with a query, mutation, subscription, or a fragment.")}},6771:(e,t,n)=>{"use strict";var r=n(192),i=n(7050),o=n(514);function a(e,t,n){var r=n.fragmentMap,u=n.contextValue,c=n.variableValues,d={};return e.selections.forEach((function(e){if(i.shouldInclude(e,c))if(o.isField(e)){var f=function(e,t,n){var r=n.variableValues,s=n.contextValue,u=n.resolver,c=e.name.value,d=o.argumentsObjectFromField(e,r),f={isLeaf:!e.selectionSet,resultKey:o.resultKeyNameFromField(e),directives:i.getDirectiveInfoFromField(e,r)},p=u(c,t,d,s,f);if(!e.selectionSet)return p;if(null==p)return p;if(Array.isArray(p))return l(e,p,n);return a(e.selectionSet,p,n)}(e,t,n),p=o.resultKeyNameFromField(e);void 0!==f&&(void 0===d[p]?d[p]=f:s(d[p],f))}else{var m=void 0;if(o.isInlineFragment(e))m=e;else if(!(m=r[e.name.value]))throw new Error("No fragment named "+e.name.value);var v=m.typeCondition.name.value;if(n.fragmentMatcher(t,v,u)){var h=a(m.selectionSet,t,n);s(d,h)}}})),n.resultMapper?n.resultMapper(d,t):d}function l(e,t,n){return t.map((function(t){return null===t?null:Array.isArray(t)?l(e,t,n):a(e.selectionSet,t,n)}))}function s(e,t){if(null===t||"object"!=typeof t)return t;Object.keys(e).forEach((function(n){t.hasOwnProperty(n)&&s(e[n],t[n])})),Object.keys(t).forEach((function(n){e.hasOwnProperty(n)||(e[n]=t[n])}))}t.graphql=function(e,t,n,i,o,l){void 0===l&&(l={});var s=r.getMainDefinition(t),u=r.getFragmentDefinitions(t),c={fragmentMap:r.createFragmentMap(u),contextValue:i,variableValues:o,resultMapper:l.resultMapper,resolver:e,fragmentMatcher:l.fragmentMatcher||function(){return!0}};return a(s.selectionSet,n,c)}},7106:(e,t,n)=>{"use strict";var r=n(2710);r.filter,r.check,r.propType;var i=n(6771);t.Ay=i.graphql},514:(e,t)=>{"use strict";var n={StringValue:!0,BooleanValue:!0,EnumValue:!0};var r={IntValue:!0,FloatValue:!0};function i(e,t,o,a){if(void 0===a&&(a={}),function(e){return r[e.kind]}(o))e[t.value]=Number(o.value);else if(function(e){return!!n[e.kind]}(o))e[t.value]=o.value;else if(function(e){return"ObjectValue"===e.kind}(o)){var l={};o.fields.map((function(e){return i(l,e.name,e.value,a)})),e[t.value]=l}else if(function(e){return"Variable"===e.kind}(o)){var s=a[o.name.value];e[t.value]=s}else{if(!function(e){return"ListValue"===e.kind}(o))throw new Error('The inline argument "'+t.value+'" of kind "'+o.kind+'" is not supported. Use variables instead of inline arguments to overcome this limitation.');e[t.value]=o.values.map((function(e){var n={};return i(n,t,e,a),n[t.value]}))}}t.argumentsObjectFromField=function(e,t){if(e.arguments&&e.arguments.length){var n={};return e.arguments.forEach((function(e){var r=e.name,o=e.value;return i(n,r,o,t)})),n}return null},t.resultKeyNameFromField=function(e){return e.alias?e.alias.value:e.name.value},t.isField=function(e){return"Field"===e.kind},t.isInlineFragment=function(e){return"InlineFragment"===e.kind},t.graphQLResultHasError=function(e){return e.errors&&e.errors.length}},2710:(e,t,n)=>{"use strict";var r=n(6771);function i(e,t){r.graphql((function(e,t,n,r,i){if(!{}.hasOwnProperty.call(t,i.resultKey))throw new Error(i.resultKey+" missing on "+t);return t[i.resultKey]}),e,t,{},{},{fragmentMatcher:function(){return!1}})}t.filter=function(e,t){return r.graphql((function(e,t,n,r,i){return t[i.resultKey]}),e,t)},t.check=i;function o(e){this.message=e,this.stack=""}o.prototype=Error.prototype;var a={prop:"prop",context:"context",childContext:"child context"};t.propType=function(e){return function(e){function t(t,n,r,i,l,s){if(i=i||"<<anonymous>>",s=s||r,null==n[r]){var u=a[l];return t?null===n[r]?new o("The "+u+" `"+s+"` is marked as required in `"+i+"`, but its value is `null`."):new o("The "+u+" `"+s+"` is marked as required in `"+i+"`, but its value is `undefined`."):null}return e(n,r,i,l,s)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}((function(t,n){var r=t[n];try{return i(e,r),null}catch(e){return e}}))}},5246:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"uuid"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"large"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vendor"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"status"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"help_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"support_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"download_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"fake"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"description"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"extended_description"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"md"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"plain"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"screenshots"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"screenshot"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"changelog"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"md"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"plain"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"title"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"average"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"votes"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"instance"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"entry_point"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"is_active"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"purchased"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"keyNumber"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"orderAction"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"source"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"productId"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"licensingType"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}],loc:{start:0,end:1150}};t.loc.source={body:"query ($code: ID) {\n packages(code: $code) {\n code\n uuid\n name\n icon(size: large)\n version\n release\n vendor\n status\n help_url\n support_url\n buy_url\n download_url\n url\n fake\n description\n extended_description {\n md\n plain\n }\n screenshots {\n thumbnail\n screenshot\n }\n changelog {\n md\n plain\n }\n categories {\n code\n title\n }\n rating {\n average\n votes\n }\n instance {\n code\n version\n release\n entry_point\n is_active\n }\n license_info {\n purchased\n keyNumber\n orderAction\n source\n app\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n productId\n licensingType\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},4997:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"title"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"countPackages"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"3"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"medium"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"fake"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"average"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"votes"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"origin"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}]}}],loc:{start:0,end:649}};t.loc.source={body:"{\n categories {\n code\n title\n countPackages\n packages(limit: 3) {\n code\n name\n icon(size: medium)\n buy_url\n version\n release\n fake\n rating {\n average\n votes\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n }\n license_info {\n app\n origin\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},697:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"medium"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"fake"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"average"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"votes"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"origin"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}]}}],loc:{start:0,end:635}};t.loc.source={body:"query ($code: ID!) {\n categories(code: $code) {\n code\n packages {\n code\n name\n icon(size: medium)\n buy_url\n version\n release\n fake\n rating {\n average\n votes\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n }\n license_info {\n app\n origin\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},3432:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"ChangeExtensionStatus"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},defaultValue:null},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"changeExtensionStatus"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}},{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"is_active"},arguments:[],directives:[],selectionSet:null}]}}]}}],loc:{start:0,end:158}};t.loc.source={body:"mutation ChangeExtensionStatus($code: ID!, $value: Boolean!) {\n changeExtensionStatus(code: $code, value: $value) {\n code\n is_active\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.ChangeExtensionStatus=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=r[t]||new Set,a=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var s=l;l=new Set,s.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){l.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"ChangeExtensionStatus")},1815:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"checkUpdates"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"uuid"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"medium"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"status"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"instance"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}]}}],loc:{start:0,end:314}};t.loc.source={body:"mutation {\n checkUpdates {\n packages {\n code\n uuid\n icon(size: medium)\n name\n version\n release\n status\n instance {\n code\n version\n release\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},2994:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"purchased"},value:{kind:"BooleanValue",value:!0}},{kind:"Argument",name:{kind:"Name",value:"fake"},value:{kind:"BooleanValue",value:!1}},{kind:"Argument",name:{kind:"Name",value:"new"},value:{kind:"BooleanValue",value:!0}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"EnumValue",value:"absent"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null}]}}]}}],loc:{start:0,end:95}};t.loc.source={body:"{\n packages(purchased: true, fake: false, new: true, status: absent) {\n code\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},6328:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"EnumValue",value:"different"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null}]}}]}}],loc:{start:0,end:57}};t.loc.source={body:"{\n packages(status: different) {\n code\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},5486:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"CustomizeExtensions"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"codes"}},type:{kind:"NonNullType",type:{kind:"ListType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"customizeExtensions"},arguments:[{kind:"Argument",name:{kind:"Name",value:"codes"},value:{kind:"Variable",name:{kind:"Name",value:"codes"}}}],directives:[],selectionSet:null}]}}],loc:{start:0,end:91}};t.loc.source={body:"mutation CustomizeExtensions($codes: [String]!) {\n customizeExtensions(codes: $codes)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.CustomizeExtensions=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=r[t]||new Set,a=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var s=l;l=new Set,s.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){l.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"CustomizeExtensions")},6175:e=>{var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"PackageInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Package"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"large"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"average"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"votes"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"title"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"origin"},arguments:[],directives:[],selectionSet:null}]}}]}},{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"featured"},name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"featured"},value:{kind:"BooleanValue",value:!0}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"EnumValue",value:"absent"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"status"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"promo"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"image"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"text"},arguments:[],directives:[],selectionSet:null}]}}]}},{kind:"Field",alias:{kind:"Name",value:"mostPopular"},name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"featured"},value:{kind:"BooleanValue",value:!1}},{kind:"Argument",name:{kind:"Name",value:"fake"},value:{kind:"BooleanValue",value:!1}},{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"EnumValue",value:"absent"}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"12"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PackageInfo"},directives:[]}]}},{kind:"Field",alias:{kind:"Name",value:"newAndUpdated"},name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"featured"},value:{kind:"BooleanValue",value:!1}},{kind:"Argument",name:{kind:"Name",value:"statuses"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"absent"},{kind:"EnumValue",value:"different"}]}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"EnumValue",value:"updated_at"}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"24"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PackageInfo"},directives:[]}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[{kind:"Argument",name:{kind:"Name",value:"featured"},value:{kind:"BooleanValue",value:!0}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"title"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"description"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"color"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"featured"},arguments:[],directives:[],selectionSet:null}]}}]}}],loc:{start:0,end:944}};t.loc.source={body:"fragment PackageInfo on Package {\n code\n name\n icon(size: large)\n buy_url\n rating {\n average\n votes\n }\n categories {\n code\n title\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n }\n license_info {\n app\n origin\n }\n}\n\nquery {\n featured: packages(featured: true, status: absent) {\n code\n name\n status\n promo {\n image\n text\n }\n }\n mostPopular: packages(featured: false, fake: false, status: absent, limit: 12) {\n ...PackageInfo\n }\n newAndUpdated: packages(featured: false, statuses: [absent, different], sortBy: updated_at, limit: 24) {\n ...PackageInfo\n }\n categories(featured: true) {\n code\n title\n description\n color\n icon\n featured\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},5867:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"instances"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"entry_point"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"is_active"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"large"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"package"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"purchased"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"keyNumber"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"orderAction"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"source"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"productId"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"deprecated"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}],loc:{start:0,end:659}};t.loc.source={body:"query {\n instances {\n code\n name\n entry_point\n is_active\n version\n release\n icon(size: large)\n package {\n code\n buy_url\n license_info {\n purchased\n keyNumber\n orderAction\n source\n app\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n productId\n }\n deprecated\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},8724:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NamedType",name:{kind:"Name",value:"ID"}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"instances"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vendor"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"help_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"support_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"entry_point"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"is_active"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"is_legacy"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"description"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"extended_description"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"md"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"plain"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"large"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"title"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"changelog"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"md"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"plain"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"screenshots"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"thumbnail"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"screenshot"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"deprecated"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"package"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"uuid"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"status"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"download_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"fake"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"average"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"votes"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"purchased"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"keyNumber"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"orderAction"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"source"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"productId"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"licensingType"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}]}}],loc:{start:0,end:1307}};t.loc.source={body:"query ($code: ID) {\n instances(code: $code) {\n code\n name\n vendor\n help_url\n support_url\n entry_point\n is_active\n is_legacy\n version\n release\n url\n description\n extended_description {\n md\n plain\n }\n icon(size: large)\n categories {\n code\n title\n }\n changelog {\n md\n plain\n }\n screenshots {\n thumbnail\n screenshot\n }\n deprecated\n package {\n code\n uuid\n status\n buy_url\n download_url\n url\n version\n release\n fake\n rating {\n average\n votes\n }\n license_info {\n purchased\n keyNumber\n orderAction\n source\n app\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n productId\n licensingType\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},2697:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"LoadVote"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"uuid"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"getVote"},arguments:[{kind:"Argument",name:{kind:"Name",value:"uuid"},value:{kind:"Variable",name:{kind:"Name",value:"uuid"}}}],directives:[],selectionSet:null}]}}],loc:{start:0,end:56}};t.loc.source={body:"query LoadVote($uuid: ID!) {\n getVote(uuid: $uuid)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.LoadVote=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=r[t]||new Set,a=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var s=l;l=new Set,s.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){l.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"LoadVote")},13:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"fake"},value:{kind:"BooleanValue",value:!1}},{kind:"Argument",name:{kind:"Name",value:"statuses"},value:{kind:"EnumValue",value:"absent"}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"20"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"large"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"average"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"votes"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"title"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"origin"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}],loc:{start:0,end:527}};t.loc.source={body:"query {\n packages(fake: false, statuses: absent, limit: 20) {\n code\n name\n icon(size: large)\n buy_url\n rating {\n average\n votes\n }\n categories {\n code\n title\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n }\n license_info {\n app\n origin\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},1903:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"statuses"},value:{kind:"ListValue",values:[{kind:"EnumValue",value:"absent"},{kind:"EnumValue",value:"different"},{kind:"EnumValue",value:"same"}]}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"EnumValue",value:"updated_at"}},{kind:"Argument",name:{kind:"Name",value:"limit"},value:{kind:"IntValue",value:"20"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"large"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"buy_url"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"updated_at"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"rating"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"average"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"votes"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"categories"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"title"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"prices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"price"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"gross"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"net"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"vat"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"billingPeriod"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"currency"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"app"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"origin"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}],loc:{start:0,end:572}};t.loc.source={body:"query {\n packages(statuses: [absent, different, same], sortBy: updated_at, limit: 20) {\n code\n name\n icon(size: large)\n buy_url\n updated_at\n rating {\n average\n votes\n }\n categories {\n code\n title\n }\n prices {\n price {\n gross\n net\n vat\n }\n billingPeriod\n name\n currency\n }\n license_info {\n app\n origin\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},2369:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"purchased"},value:{kind:"BooleanValue",value:!0}},{kind:"Argument",name:{kind:"Name",value:"fake"},value:{kind:"BooleanValue",value:!1}},{kind:"Argument",name:{kind:"Name",value:"sortBy"},value:{kind:"EnumValue",value:"purchased_at"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"uuid"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"medium"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"status"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"license_info"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"new"},arguments:[],directives:[],selectionSet:null}]}},{kind:"Field",alias:null,name:{kind:"Name",value:"current_version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"current_release"},arguments:[],directives:[],selectionSet:null}]}}]}}],loc:{start:0,end:293}};t.loc.source={body:"query {\n packages(purchased: true, fake: false, sortBy: purchased_at) {\n code\n uuid\n name\n icon(size: medium)\n version\n release\n status\n license_info {\n new\n }\n current_version\n current_release\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},9918:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveExtension"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"code"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"removeExtension"},arguments:[{kind:"Argument",name:{kind:"Name",value:"code"},value:{kind:"Variable",name:{kind:"Name",value:"code"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null}]}}]}}],loc:{start:0,end:95}};t.loc.source={body:"mutation RemoveExtension($code: ID!) {\n removeExtension(code: $code) {\n code\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.RemoveExtension=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=r[t]||new Set,a=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var s=l;l=new Set,s.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){l.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"RemoveExtension")},5621:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RemoveVote"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"uuid"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"removeVote"},arguments:[{kind:"Argument",name:{kind:"Name",value:"uuid"},value:{kind:"Variable",name:{kind:"Name",value:"uuid"}}}],directives:[],selectionSet:null}]}}],loc:{start:0,end:64}};t.loc.source={body:"mutation RemoveVote($uuid: ID!) {\n removeVote(uuid: $uuid)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.RemoveVote=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=r[t]||new Set,a=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var s=l;l=new Set,s.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){l.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"RemoveVote")},8959:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"packages"},arguments:[{kind:"Argument",name:{kind:"Name",value:"status"},value:{kind:"EnumValue",value:"different"}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"uuid"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"icon"},arguments:[{kind:"Argument",name:{kind:"Name",value:"size"},value:{kind:"EnumValue",value:"medium"}}],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"name"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"status"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"instance"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"code"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:null},{kind:"Field",alias:null,name:{kind:"Name",value:"release"},arguments:[],directives:[],selectionSet:null}]}}]}}]}}],loc:{start:0,end:249}};t.loc.source={body:"query {\n packages(status: different) {\n code\n uuid\n icon(size: medium)\n name\n version\n release\n status\n instance {\n code\n version\n release\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t},8877:e=>{var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"VoteForExtension"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"uuid"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},defaultValue:null},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"rating"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},defaultValue:null}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:null,name:{kind:"Name",value:"voteForExtension"},arguments:[{kind:"Argument",name:{kind:"Name",value:"uuid"},value:{kind:"Variable",name:{kind:"Name",value:"uuid"}}},{kind:"Argument",name:{kind:"Name",value:"rating"},value:{kind:"Variable",name:{kind:"Name",value:"rating"}}}],directives:[],selectionSet:null}]}}],loc:{start:0,end:108}};t.loc.source={body:"mutation VoteForExtension($uuid: ID!, $rating: Int!) {\n voteForExtension(uuid: $uuid, rating: $rating)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var r=e.type;"NamedType"===r.kind&&t.add(r.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var r={};function i(e,t){for(var n=0;n<e.definitions.length;n++){var r=e.definitions[n];if(r.name&&r.name.value==t)return r}}t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),r[e.name.value]=t}})),e.exports=t,e.exports.VoteForExtension=function(e,t){var n={kind:e.kind,definitions:[i(e,t)]};e.hasOwnProperty("loc")&&(n.loc=e.loc);var o=r[t]||new Set,a=new Set,l=new Set;for(o.forEach((function(e){l.add(e)}));l.size>0;){var s=l;l=new Set,s.forEach((function(e){a.has(e)||(a.add(e),(r[e]||new Set).forEach((function(e){l.add(e)})))}))}return a.forEach((function(t){var r=i(e,t);r&&n.definitions.push(r)})),n}(t,"VoteForExtension")},1967:(e,t,n)=>{var r=n(2275).parse;function i(e){return e.replace(/[\s,]+/g," ").trim()}var o={},a={};var l=!0;function s(e,t){var n=Object.prototype.toString.call(e);if("[object Array]"===n)return e.map((function(e){return s(e,t)}));if("[object Object]"!==n)throw new Error("Unexpected input.");t&&e.loc&&delete e.loc,e.loc&&(delete e.loc.startToken,delete e.loc.endToken);var r,i,o,a=Object.keys(e);for(r in a)a.hasOwnProperty(r)&&(i=e[a[r]],"[object Object]"!==(o=Object.prototype.toString.call(i))&&"[object Array]"!==o||(e[a[r]]=s(i,!0)));return e}var u=!1;function c(e){var t=i(e);if(o[t])return o[t];var n=r(e,{experimentalFragmentVariables:u});if(!n||"Document"!==n.kind)throw new Error("Not a valid GraphQL document.");return n=s(n=function(e){for(var t,n={},r=[],o=0;o<e.definitions.length;o++){var s=e.definitions[o];if("FragmentDefinition"===s.kind){var u=s.name.value,c=i((t=s.loc).source.body.substring(t.start,t.end));a.hasOwnProperty(u)&&!a[u][c]?(l&&console.warn("Warning: fragment with name "+u+" already exists.\ngraphql-tag enforces all fragment names across your application to be unique; read more about\nthis in the docs: http://dev.apollodata.com/core/fragments.html#unique-names"),a[u][c]=!0):a.hasOwnProperty(u)||(a[u]={},a[u][c]=!0),n[c]||(n[c]=!0,r.push(s))}else r.push(s)}return e.definitions=r,e}(n),!1),o[t]=n,n}function d(){for(var e=Array.prototype.slice.call(arguments),t=e[0],n="string"==typeof t?t:t[0],r=1;r<e.length;r++)e[r]&&e[r].kind&&"Document"===e[r].kind?n+=e[r].loc.source.body:n+=e[r],n+=t[r];return c(n)}d.default=d,d.resetCaches=function(){o={},a={}},d.disableFragmentWarnings=function(){l=!1},d.enableExperimentalFragmentVariables=function(){u=!0},d.disableExperimentalFragmentVariables=function(){u=!1},e.exports=d},4897:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLError=i;var r=n(4251);function i(e,t,n,o,a,l){var s=n;if(!s&&t&&t.length>0){var u=t[0];s=u&&u.loc&&u.loc.source}var c=o;!c&&t&&(c=t.filter((function(e){return Boolean(e.loc)})).map((function(e){return e.loc.start}))),c&&0===c.length&&(c=void 0);var d=void 0,f=s;f&&c&&(d=c.map((function(e){return(0,r.getLocation)(f,e)}))),Object.defineProperties(this,{message:{value:e,enumerable:!0,writable:!0},locations:{value:d||void 0,enumerable:!0},path:{value:a||void 0,enumerable:!0},nodes:{value:t||void 0},source:{value:s||void 0},positions:{value:c||void 0},originalError:{value:l}}),l&&l.stack?Object.defineProperty(this,"stack",{value:l.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,i):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}i.prototype=Object.create(Error.prototype,{constructor:{value:i},name:{value:"GraphQLError"}})},8217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatError=function(e){return e||(0,o.default)(0,"Received null or undefined error."),{message:e.message,locations:e.locations,path:e.path}};var r,i=n(1880),o=(r=i)&&r.__esModule?r:{default:r}},5838:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4897);Object.defineProperty(t,"GraphQLError",{enumerable:!0,get:function(){return r.GraphQLError}});var i=n(629);Object.defineProperty(t,"syntaxError",{enumerable:!0,get:function(){return i.syntaxError}});var o=n(9972);Object.defineProperty(t,"locatedError",{enumerable:!0,get:function(){return o.locatedError}});var a=n(8217);Object.defineProperty(t,"formatError",{enumerable:!0,get:function(){return a.formatError}})},9972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.locatedError=function(e,t,n){if(e&&e.path)return e;var i=e?e.message||String(e):"An unknown error occurred.";return new r.GraphQLError(i,e&&e.nodes||t,e&&e.source,e&&e.positions,n,e)};var r=n(4897)},629:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.syntaxError=function(e,t,n){var s=(0,r.getLocation)(e,t),u=s.line+e.locationOffset.line-1,c=o(e,s),d=s.column+c;return new i.GraphQLError("Syntax Error "+e.name+" ("+u+":"+d+") "+n+"\n\n"+function(e,t){var n=t.line,r=e.locationOffset.line-1,i=o(e,t),s=n+r,u=(s-1).toString(),c=s.toString(),d=(s+1).toString(),f=d.length,p=e.body.split(/\r\n|[\n\r]/g);return p[0]=a(e.locationOffset.column-1)+p[0],(n>=2?l(f,u)+": "+p[n-2]+"\n":"")+l(f,c)+": "+p[n-1]+"\n"+a(2+f+t.column-1+i)+"^\n"+(n<p.length?l(f,d)+": "+p[n]+"\n":"")}(e,s),void 0,e,[t])};var r=n(4251),i=n(4897);function o(e,t){return 1===t.line?e.locationOffset.column-1:0}function a(e){return Array(e+1).join(" ")}function l(e,t){return a(e-t.length)+t}},1880:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(!e)throw new Error(t)}},2057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.NAME="Name",t.DOCUMENT="Document",t.OPERATION_DEFINITION="OperationDefinition",t.VARIABLE_DEFINITION="VariableDefinition",t.VARIABLE="Variable",t.SELECTION_SET="SelectionSet",t.FIELD="Field",t.ARGUMENT="Argument",t.FRAGMENT_SPREAD="FragmentSpread",t.INLINE_FRAGMENT="InlineFragment",t.FRAGMENT_DEFINITION="FragmentDefinition",t.INT="IntValue",t.FLOAT="FloatValue",t.STRING="StringValue",t.BOOLEAN="BooleanValue",t.NULL="NullValue",t.ENUM="EnumValue",t.LIST="ListValue",t.OBJECT="ObjectValue",t.OBJECT_FIELD="ObjectField",t.DIRECTIVE="Directive",t.NAMED_TYPE="NamedType",t.LIST_TYPE="ListType",t.NON_NULL_TYPE="NonNullType",t.SCHEMA_DEFINITION="SchemaDefinition",t.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",t.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",t.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",t.FIELD_DEFINITION="FieldDefinition",t.INPUT_VALUE_DEFINITION="InputValueDefinition",t.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",t.UNION_TYPE_DEFINITION="UnionTypeDefinition",t.ENUM_TYPE_DEFINITION="EnumTypeDefinition",t.ENUM_VALUE_DEFINITION="EnumValueDefinition",t.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",t.TYPE_EXTENSION_DEFINITION="TypeExtensionDefinition",t.DIRECTIVE_DEFINITION="DirectiveDefinition"},4524:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenKind=void 0,t.createLexer=function(e,t){var n=new _(o,0,0,0,0,null);return{source:e,options:t,lastToken:n,token:n,line:1,lineStart:0,advance:i}},t.getTokenDesc=function(e){var t=e.value;return t?e.kind+' "'+t+'"':e.kind};var r=n(5838);function i(){var e=this.lastToken=this.token;if(e.kind!==a){do{e=e.next=I(this,e)}while(e.kind===O);this.token=e}return e}var o="<SOF>",a="<EOF>",l="!",s="$",u="(",c=")",d="...",f=":",p="=",m="@",v="[",h="]",y="{",g="|",b="}",k="Name",w="Int",S="Float",E="String",O="Comment";t.TokenKind={SOF:o,EOF:a,BANG:l,DOLLAR:s,PAREN_L:u,PAREN_R:c,SPREAD:d,COLON:f,EQUALS:p,AT:m,BRACKET_L:v,BRACKET_R:h,BRACE_L:y,PIPE:g,BRACE_R:b,NAME:k,INT:w,FLOAT:S,STRING:E,COMMENT:O};var N=String.prototype.charCodeAt,P=String.prototype.slice;function _(e,t,n,r,i,o,a){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=a,this.prev=o,this.next=null}function T(e){return isNaN(e)?a:e<127?JSON.stringify(String.fromCharCode(e)):'"\\u'+("00"+e.toString(16).toUpperCase()).slice(-4)+'"'}function I(e,t){var n=e.source,i=n.body,o=i.length,I=function(e,t,n){var r=e.length,i=t;for(;i<r;){var o=N.call(e,i);if(9===o||32===o||44===o||65279===o)++i;else if(10===o)++i,++n.line,n.lineStart=i;else{if(13!==o)break;10===N.call(e,i+1)?i+=2:++i,++n.line,n.lineStart=i}}return i}(i,t.end,e),F=e.line,C=1+I-e.lineStart;if(I>=o)return new _(a,o,o,F,C,t);var R=N.call(i,I);if(R<32&&9!==R&&10!==R&&13!==R)throw(0,r.syntaxError)(n,I,"Cannot contain the invalid character "+T(R)+".");switch(R){case 33:return new _(l,I,I+1,F,C,t);case 35:return function(e,t,n,r,i){var o=e.body,a=void 0,l=t;do{a=N.call(o,++l)}while(null!==a&&(a>31||9===a));return new _(O,t,l,n,r,i,P.call(o,t+1,l))}(n,I,F,C,t);case 36:return new _(s,I,I+1,F,C,t);case 40:return new _(u,I,I+1,F,C,t);case 41:return new _(c,I,I+1,F,C,t);case 46:if(46===N.call(i,I+1)&&46===N.call(i,I+2))return new _(d,I,I+3,F,C,t);break;case 58:return new _(f,I,I+1,F,C,t);case 61:return new _(p,I,I+1,F,C,t);case 64:return new _(m,I,I+1,F,C,t);case 91:return new _(v,I,I+1,F,C,t);case 93:return new _(h,I,I+1,F,C,t);case 123:return new _(y,I,I+1,F,C,t);case 124:return new _(g,I,I+1,F,C,t);case 125:return new _(b,I,I+1,F,C,t);case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(e,t,n,r,i){var o=e.body,a=o.length,l=t+1,s=0;for(;l!==a&&null!==(s=N.call(o,l))&&(95===s||s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122);)++l;return new _(k,t,l,n,r,i,P.call(o,t,l))}(n,I,F,C,t);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(e,t,n,i,o,a){var l=e.body,s=n,u=t,c=!1;45===s&&(s=N.call(l,++u));if(48===s){if((s=N.call(l,++u))>=48&&s<=57)throw(0,r.syntaxError)(e,u,"Invalid number, unexpected digit after 0: "+T(s)+".")}else u=j(e,u,s),s=N.call(l,u);46===s&&(c=!0,s=N.call(l,++u),u=j(e,u,s),s=N.call(l,u));69!==s&&101!==s||(c=!0,43!==(s=N.call(l,++u))&&45!==s||(s=N.call(l,++u)),u=j(e,u,s));return new _(c?S:w,t,u,i,o,a,P.call(l,t,u))}(n,I,R,F,C,t);case 34:return function(e,t,n,i,o){var a=e.body,l=t+1,s=l,u=0,c="";for(;l<a.length&&null!==(u=N.call(a,l))&&10!==u&&13!==u&&34!==u;){if(u<32&&9!==u)throw(0,r.syntaxError)(e,l,"Invalid character within String: "+T(u)+".");if(++l,92===u){switch(c+=P.call(a,s,l-1),u=N.call(a,l)){case 34:c+='"';break;case 47:c+="/";break;case 92:c+="\\";break;case 98:c+="\b";break;case 102:c+="\f";break;case 110:c+="\n";break;case 114:c+="\r";break;case 116:c+="\t";break;case 117:var d=x(N.call(a,l+1),N.call(a,l+2),N.call(a,l+3),N.call(a,l+4));if(d<0)throw(0,r.syntaxError)(e,l,"Invalid character escape sequence: \\u"+a.slice(l+1,l+5)+".");c+=String.fromCharCode(d),l+=4;break;default:throw(0,r.syntaxError)(e,l,"Invalid character escape sequence: \\"+String.fromCharCode(u)+".")}s=++l}}if(34!==u)throw(0,r.syntaxError)(e,l,"Unterminated string.");return c+=P.call(a,s,l),new _(E,t,l+1,n,i,o,c)}(n,I,F,C,t)}throw(0,r.syntaxError)(n,I,function(e){if(39===e)return"Unexpected single quote character ('), did you mean to use a double quote (\")?";return"Cannot parse the unexpected character "+T(e)+"."}(R))}function j(e,t,n){var i=e.body,o=t,a=n;if(a>=48&&a<=57){do{a=N.call(i,++o)}while(a>=48&&a<=57);return o}throw(0,r.syntaxError)(e,o,"Invalid number, expected digit but got: "+T(a)+".")}function x(e,t,n,r){return F(e)<<12|F(t)<<8|F(n)<<4|F(r)}function F(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:-1}_.prototype.toJSON=_.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},4251:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLocation=function(e,t){var n=/\r\n|[\n\r]/g,r=1,i=t+1,o=void 0;for(;(o=n.exec(e.body))&&o.index<t;)r+=1,i=t+1-(o.index+o[0].length);return{line:r,column:i}}},2275:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e,t){var n="string"==typeof e?new r.Source(e):e;if(!(n instanceof r.Source))throw new TypeError("Must provide Source. Received: "+String(n));return function(e){var t=e.token;q(e,o.TokenKind.SOF);var n=[];do{n.push(s(e))}while(!D(e,o.TokenKind.EOF));return{kind:a.DOCUMENT,definitions:n,loc:C(e,t)}}((0,o.createLexer)(n,t||{}))},t.parseValue=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});q(i,o.TokenKind.SOF);var a=b(i,!1);return q(i,o.TokenKind.EOF),a},t.parseType=function(e,t){var n="string"==typeof e?new r.Source(e):e,i=(0,o.createLexer)(n,t||{});q(i,o.TokenKind.SOF);var a=N(i);return q(i,o.TokenKind.EOF),a},t.parseConstValue=k,t.parseTypeReference=N,t.parseNamedType=P;var r=n(6241),i=n(5838),o=n(4524),a=n(2057);function l(e){var t=q(e,o.TokenKind.NAME);return{kind:a.NAME,value:t.value,loc:C(e,t)}}function s(e){if(A(e,o.TokenKind.BRACE_L))return u(e);if(A(e,o.TokenKind.NAME))switch(e.token.value){case"query":case"mutation":case"subscription":return u(e);case"fragment":return function(e){var t=e.token;return M(e,"fragment"),{kind:a.FRAGMENT_DEFINITION,name:g(e),typeCondition:(M(e,"on"),P(e)),directives:E(e),selectionSet:m(e),loc:C(e,t)}}(e);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"extend":case"directive":return function(e){if(A(e,o.TokenKind.NAME))switch(e.token.value){case"schema":return function(e){var t=e.token;M(e,"schema");var n=E(e),r=V(e,o.TokenKind.BRACE_L,_,o.TokenKind.BRACE_R);return{kind:a.SCHEMA_DEFINITION,directives:n,operationTypes:r,loc:C(e,t)}}(e);case"scalar":return function(e){var t=e.token;M(e,"scalar");var n=l(e),r=E(e);return{kind:a.SCALAR_TYPE_DEFINITION,name:n,directives:r,loc:C(e,t)}}(e);case"type":return T(e);case"interface":return function(e){var t=e.token;M(e,"interface");var n=l(e),r=E(e),i=U(e,o.TokenKind.BRACE_L,I,o.TokenKind.BRACE_R);return{kind:a.INTERFACE_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:C(e,t)}}(e);case"union":return function(e){var t=e.token;M(e,"union");var n=l(e),r=E(e);q(e,o.TokenKind.EQUALS);var i=function(e){D(e,o.TokenKind.PIPE);var t=[];do{t.push(P(e))}while(D(e,o.TokenKind.PIPE));return t}(e);return{kind:a.UNION_TYPE_DEFINITION,name:n,directives:r,types:i,loc:C(e,t)}}(e);case"enum":return function(e){var t=e.token;M(e,"enum");var n=l(e),r=E(e),i=V(e,o.TokenKind.BRACE_L,F,o.TokenKind.BRACE_R);return{kind:a.ENUM_TYPE_DEFINITION,name:n,directives:r,values:i,loc:C(e,t)}}(e);case"input":return function(e){var t=e.token;M(e,"input");var n=l(e),r=E(e),i=U(e,o.TokenKind.BRACE_L,x,o.TokenKind.BRACE_R);return{kind:a.INPUT_OBJECT_TYPE_DEFINITION,name:n,directives:r,fields:i,loc:C(e,t)}}(e);case"extend":return function(e){var t=e.token;M(e,"extend");var n=T(e);return{kind:a.TYPE_EXTENSION_DEFINITION,definition:n,loc:C(e,t)}}(e);case"directive":return function(e){var t=e.token;M(e,"directive"),q(e,o.TokenKind.AT);var n=l(e),r=j(e);M(e,"on");var i=function(e){D(e,o.TokenKind.PIPE);var t=[];do{t.push(l(e))}while(D(e,o.TokenKind.PIPE));return t}(e);return{kind:a.DIRECTIVE_DEFINITION,name:n,arguments:r,locations:i,loc:C(e,t)}}(e)}throw L(e)}(e)}throw L(e)}function u(e){var t=e.token;if(A(e,o.TokenKind.BRACE_L))return{kind:a.OPERATION_DEFINITION,operation:"query",name:null,variableDefinitions:null,directives:[],selectionSet:m(e),loc:C(e,t)};var n=c(e),r=void 0;return A(e,o.TokenKind.NAME)&&(r=l(e)),{kind:a.OPERATION_DEFINITION,operation:n,name:r,variableDefinitions:d(e),directives:E(e),selectionSet:m(e),loc:C(e,t)}}function c(e){var t=q(e,o.TokenKind.NAME);switch(t.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw L(e,t)}function d(e){return A(e,o.TokenKind.PAREN_L)?V(e,o.TokenKind.PAREN_L,f,o.TokenKind.PAREN_R):[]}function f(e){var t=e.token;return{kind:a.VARIABLE_DEFINITION,variable:p(e),type:(q(e,o.TokenKind.COLON),N(e)),defaultValue:D(e,o.TokenKind.EQUALS)?b(e,!0):null,loc:C(e,t)}}function p(e){var t=e.token;return q(e,o.TokenKind.DOLLAR),{kind:a.VARIABLE,name:l(e),loc:C(e,t)}}function m(e){var t=e.token;return{kind:a.SELECTION_SET,selections:V(e,o.TokenKind.BRACE_L,v,o.TokenKind.BRACE_R),loc:C(e,t)}}function v(e){return A(e,o.TokenKind.SPREAD)?function(e){var t=e.token;if(q(e,o.TokenKind.SPREAD),A(e,o.TokenKind.NAME)&&"on"!==e.token.value)return{kind:a.FRAGMENT_SPREAD,name:g(e),directives:E(e),loc:C(e,t)};var n=null;"on"===e.token.value&&(e.advance(),n=P(e));return{kind:a.INLINE_FRAGMENT,typeCondition:n,directives:E(e),selectionSet:m(e),loc:C(e,t)}}(e):function(e){var t=e.token,n=l(e),r=void 0,i=void 0;D(e,o.TokenKind.COLON)?(r=n,i=l(e)):(r=null,i=n);return{kind:a.FIELD,alias:r,name:i,arguments:h(e),directives:E(e),selectionSet:A(e,o.TokenKind.BRACE_L)?m(e):null,loc:C(e,t)}}(e)}function h(e){return A(e,o.TokenKind.PAREN_L)?V(e,o.TokenKind.PAREN_L,y,o.TokenKind.PAREN_R):[]}function y(e){var t=e.token;return{kind:a.ARGUMENT,name:l(e),value:(q(e,o.TokenKind.COLON),b(e,!1)),loc:C(e,t)}}function g(e){if("on"===e.token.value)throw L(e);return l(e)}function b(e,t){var n=e.token;switch(n.kind){case o.TokenKind.BRACKET_L:return function(e,t){var n=e.token,r=t?k:w;return{kind:a.LIST,values:U(e,o.TokenKind.BRACKET_L,r,o.TokenKind.BRACKET_R),loc:C(e,n)}}(e,t);case o.TokenKind.BRACE_L:return function(e,t){var n=e.token;q(e,o.TokenKind.BRACE_L);var r=[];for(;!D(e,o.TokenKind.BRACE_R);)r.push(S(e,t));return{kind:a.OBJECT,fields:r,loc:C(e,n)}}(e,t);case o.TokenKind.INT:return e.advance(),{kind:a.INT,value:n.value,loc:C(e,n)};case o.TokenKind.FLOAT:return e.advance(),{kind:a.FLOAT,value:n.value,loc:C(e,n)};case o.TokenKind.STRING:return e.advance(),{kind:a.STRING,value:n.value,loc:C(e,n)};case o.TokenKind.NAME:return"true"===n.value||"false"===n.value?(e.advance(),{kind:a.BOOLEAN,value:"true"===n.value,loc:C(e,n)}):"null"===n.value?(e.advance(),{kind:a.NULL,loc:C(e,n)}):(e.advance(),{kind:a.ENUM,value:n.value,loc:C(e,n)});case o.TokenKind.DOLLAR:if(!t)return p(e)}throw L(e)}function k(e){return b(e,!0)}function w(e){return b(e,!1)}function S(e,t){var n=e.token;return{kind:a.OBJECT_FIELD,name:l(e),value:(q(e,o.TokenKind.COLON),b(e,t)),loc:C(e,n)}}function E(e){for(var t=[];A(e,o.TokenKind.AT);)t.push(O(e));return t}function O(e){var t=e.token;return q(e,o.TokenKind.AT),{kind:a.DIRECTIVE,name:l(e),arguments:h(e),loc:C(e,t)}}function N(e){var t=e.token,n=void 0;return D(e,o.TokenKind.BRACKET_L)?(n=N(e),q(e,o.TokenKind.BRACKET_R),n={kind:a.LIST_TYPE,type:n,loc:C(e,t)}):n=P(e),D(e,o.TokenKind.BANG)?{kind:a.NON_NULL_TYPE,type:n,loc:C(e,t)}:n}function P(e){var t=e.token;return{kind:a.NAMED_TYPE,name:l(e),loc:C(e,t)}}function _(e){var t=e.token,n=c(e);q(e,o.TokenKind.COLON);var r=P(e);return{kind:a.OPERATION_TYPE_DEFINITION,operation:n,type:r,loc:C(e,t)}}function T(e){var t=e.token;M(e,"type");var n=l(e),r=function(e){var t=[];if("implements"===e.token.value){e.advance();do{t.push(P(e))}while(A(e,o.TokenKind.NAME))}return t}(e),i=E(e),s=U(e,o.TokenKind.BRACE_L,I,o.TokenKind.BRACE_R);return{kind:a.OBJECT_TYPE_DEFINITION,name:n,interfaces:r,directives:i,fields:s,loc:C(e,t)}}function I(e){var t=e.token,n=l(e),r=j(e);q(e,o.TokenKind.COLON);var i=N(e),s=E(e);return{kind:a.FIELD_DEFINITION,name:n,arguments:r,type:i,directives:s,loc:C(e,t)}}function j(e){return A(e,o.TokenKind.PAREN_L)?V(e,o.TokenKind.PAREN_L,x,o.TokenKind.PAREN_R):[]}function x(e){var t=e.token,n=l(e);q(e,o.TokenKind.COLON);var r=N(e),i=null;D(e,o.TokenKind.EQUALS)&&(i=k(e));var s=E(e);return{kind:a.INPUT_VALUE_DEFINITION,name:n,type:r,defaultValue:i,directives:s,loc:C(e,t)}}function F(e){var t=e.token,n=l(e),r=E(e);return{kind:a.ENUM_VALUE_DEFINITION,name:n,directives:r,loc:C(e,t)}}function C(e,t){if(!e.options.noLocation)return new R(t,e.lastToken,e.source)}function R(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}function A(e,t){return e.token.kind===t}function D(e,t){var n=e.token.kind===t;return n&&e.advance(),n}function q(e,t){var n=e.token;if(n.kind===t)return e.advance(),n;throw(0,i.syntaxError)(e.source,n.start,"Expected "+t+", found "+(0,o.getTokenDesc)(n))}function M(e,t){var n=e.token;if(n.kind===o.TokenKind.NAME&&n.value===t)return e.advance(),n;throw(0,i.syntaxError)(e.source,n.start,'Expected "'+t+'", found '+(0,o.getTokenDesc)(n))}function L(e,t){var n=t||e.token;return(0,i.syntaxError)(e.source,n.start,"Unexpected "+(0,o.getTokenDesc)(n))}function U(e,t,n,r){q(e,t);for(var i=[];!D(e,r);)i.push(n(e));return i}function V(e,t,n,r){q(e,t);for(var i=[n(e)];!D(e,r);)i.push(n(e));return i}R.prototype.toJSON=R.prototype.inspect=function(){return{start:this.start,end:this.end}}},3230:(e,t,n)=>{"use strict";t.y=function(e){return(0,r.visit)(e,{leave:i})};var r=n(8048);var i={Name:function(e){return e.value},Variable:function(e){return"$"+e.name},Document:function(e){return o(e.definitions,"\n\n")+"\n"},OperationDefinition:function(e){var t=e.operation,n=e.name,r=l("(",o(e.variableDefinitions,", "),")"),i=o(e.directives," "),a=e.selectionSet;return n||i||r||"query"!==t?o([t,o([n,r]),i,a]," "):a},VariableDefinition:function(e){return e.variable+": "+e.type+l(" = ",e.defaultValue)},SelectionSet:function(e){return a(e.selections)},Field:function(e){var t=e.alias,n=e.name,r=e.arguments,i=e.directives,a=e.selectionSet;return o([l("",t,": ")+n+l("(",o(r,", "),")"),o(i," "),a]," ")},Argument:function(e){return e.name+": "+e.value},FragmentSpread:function(e){return"..."+e.name+l(" ",o(e.directives," "))},InlineFragment:function(e){var t=e.typeCondition,n=e.directives,r=e.selectionSet;return o(["...",l("on ",t),o(n," "),r]," ")},FragmentDefinition:function(e){var t=e.name,n=e.typeCondition,r=e.directives,i=e.selectionSet;return"fragment "+t+" on "+n+" "+l("",o(r," ")," ")+i},IntValue:function(e){return e.value},FloatValue:function(e){return e.value},StringValue:function(e){var t=e.value;return JSON.stringify(t)},BooleanValue:function(e){var t=e.value;return JSON.stringify(t)},NullValue:function(){return"null"},EnumValue:function(e){return e.value},ListValue:function(e){return"["+o(e.values,", ")+"]"},ObjectValue:function(e){return"{"+o(e.fields,", ")+"}"},ObjectField:function(e){return e.name+": "+e.value},Directive:function(e){return"@"+e.name+l("(",o(e.arguments,", "),")")},NamedType:function(e){return e.name},ListType:function(e){return"["+e.type+"]"},NonNullType:function(e){return e.type+"!"},SchemaDefinition:function(e){var t=e.directives,n=e.operationTypes;return o(["schema",o(t," "),a(n)]," ")},OperationTypeDefinition:function(e){return e.operation+": "+e.type},ScalarTypeDefinition:function(e){return o(["scalar",e.name,o(e.directives," ")]," ")},ObjectTypeDefinition:function(e){var t=e.name,n=e.interfaces,r=e.directives,i=e.fields;return o(["type",t,l("implements ",o(n,", ")),o(r," "),a(i)]," ")},FieldDefinition:function(e){var t=e.name,n=e.arguments,r=e.type,i=e.directives;return t+l("(",o(n,", "),")")+": "+r+l(" ",o(i," "))},InputValueDefinition:function(e){var t=e.name,n=e.type,r=e.defaultValue,i=e.directives;return o([t+": "+n,l("= ",r),o(i," ")]," ")},InterfaceTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["interface",t,o(n," "),a(r)]," ")},UnionTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.types;return o(["union",t,o(n," "),"= "+o(r," | ")]," ")},EnumTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.values;return o(["enum",t,o(n," "),a(r)]," ")},EnumValueDefinition:function(e){return o([e.name,o(e.directives," ")]," ")},InputObjectTypeDefinition:function(e){var t=e.name,n=e.directives,r=e.fields;return o(["input",t,o(n," "),a(r)]," ")},TypeExtensionDefinition:function(e){return"extend "+e.definition},DirectiveDefinition:function(e){var t=e.name,n=e.arguments,r=e.locations;return"directive @"+t+l("(",o(n,", "),")")+" on "+o(r," | ")}};function o(e,t){return e?e.filter((function(e){return e})).join(t||""):""}function a(e){return e&&0!==e.length?((t="{\n"+o(e,"\n"))&&t.replace(/\n/g,"\n "))+"\n}":"{}";var t}function l(e,t,n){return t?e+t+(n||""):""}},6241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Source=void 0;var r,i=n(1880),o=(r=i)&&r.__esModule?r:{default:r};t.Source=function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.body=t,this.name=n||"GraphQL request",this.locationOffset=r||{line:1,column:1},this.locationOffset.line>0||(0,o.default)(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||(0,o.default)(0,"column in locationOffset is 1-indexed and must be positive")}},8048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.visit=function(e,t,a){var l=a||n,s=void 0,u=Array.isArray(e),c=[e],d=-1,f=[],p=void 0,m=[],v=[],h=e;do{var y=++d===c.length,g=void 0,b=void 0,k=y&&0!==f.length;if(y){if(g=0===v.length?void 0:m.pop(),b=p,p=v.pop(),k){if(u)b=b.slice();else{var w={};for(var S in b)b.hasOwnProperty(S)&&(w[S]=b[S]);b=w}for(var E=0,O=0;O<f.length;O++){var N=f[O][0],P=f[O][1];u&&(N-=E),u&&null===P?(b.splice(N,1),E++):b[N]=P}}d=s.index,c=s.keys,f=s.edits,u=s.inArray,s=s.prev}else{if(g=p?u?d:c[d]:void 0,null==(b=p?p[g]:h))continue;p&&m.push(g)}var _=void 0;if(!Array.isArray(b)){if(!i(b))throw new Error("Invalid AST Node: "+JSON.stringify(b));var T=o(t,b.kind,y);if(T){if((_=T.call(t,b,g,p,m,v))===r)break;if(!1===_){if(!y){m.pop();continue}}else if(void 0!==_&&(f.push([g,_]),!y)){if(!i(_)){m.pop();continue}b=_}}}void 0===_&&k&&f.push([g,b]),y||(s={inArray:u,index:d,keys:c,edits:f,prev:s},c=(u=Array.isArray(b))?b:l[b.kind]||[],d=-1,f=[],p&&v.push(p),p=b)}while(void 0!==s);0!==f.length&&(h=f[f.length-1][1]);return h},t.visitInParallel=function(e){var t=new Array(e.length);return{enter:function(n){for(var i=0;i<e.length;i++)if(!t[i]){var a=o(e[i],n.kind,!1);if(a){var l=a.apply(e[i],arguments);if(!1===l)t[i]=n;else if(l===r)t[i]=r;else if(void 0!==l)return l}}},leave:function(n){for(var i=0;i<e.length;i++)if(t[i])t[i]===n&&(t[i]=null);else{var a=o(e[i],n.kind,!0);if(a){var l=a.apply(e[i],arguments);if(l===r)t[i]=r;else if(void 0!==l&&!1!==l)return l}}}}},t.visitWithTypeInfo=function(e,t){return{enter:function(n){e.enter(n);var r=o(t,n.kind,!1);if(r){var a=r.apply(t,arguments);return void 0!==a&&(e.leave(n),i(a)&&e.enter(a)),a}},leave:function(n){var r=o(t,n.kind,!0),i=void 0;return r&&(i=r.apply(t,arguments)),e.leave(n),i}}},t.getVisitFn=o;var n=t.QueryDocumentKeys={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["name","directives"],ObjectTypeDefinition:["name","interfaces","directives","fields"],FieldDefinition:["name","arguments","type","directives"],InputValueDefinition:["name","type","defaultValue","directives"],InterfaceTypeDefinition:["name","directives","fields"],UnionTypeDefinition:["name","directives","types"],EnumTypeDefinition:["name","directives","values"],EnumValueDefinition:["name","directives"],InputObjectTypeDefinition:["name","directives","fields"],TypeExtensionDefinition:["definition"],DirectiveDefinition:["name","arguments","locations"]},r=t.BREAK={};function i(e){return e&&"string"==typeof e.kind}function o(e,t,n){var r=e[t];if(r){if(!n&&"function"==typeof r)return r;var i=n?r.leave:r.enter;if("function"==typeof i)return i}else{var o=n?e.leave:e.enter;if(o){if("function"==typeof o)return o;var a=o[t];if("function"==typeof a)return a}}}},5985:e=>{"use strict";var t={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r=Object.defineProperty,i=Object.getOwnPropertyNames,o=Object.getOwnPropertySymbols,a=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,s=l&&l(Object);e.exports=function e(u,c,d){if("string"!=typeof c){if(s){var f=l(c);f&&f!==s&&e(u,f,d)}var p=i(c);o&&(p=p.concat(o(c)));for(var m=0;m<p.length;++m){var v=p[m];if(!(t[v]||n[v]||d&&d[v])){var h=a(c,v);try{r(u,v,h)}catch(e){}}}return u}return u}},8958:e=>{"use strict";e.exports=function(e,t,n,r,i,o,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,l],c=0;(s=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},8914:(e,t,n)=>{var r=9007199254740991,i="[object Arguments]",o="[object Function]",a="[object GeneratorFunction]",l="[object Symbol]",s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,u="object"==typeof self&&self&&self.Object===Object&&self,c=s||u||Function("return this")();function d(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var f=Object.prototype,p=f.hasOwnProperty,m=f.toString,v=c.Symbol,h=f.propertyIsEnumerable,y=v?v.isConcatSpreadable:void 0,g=Math.max;function b(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=k),i||(i=[]);++o<a;){var l=e[o];t>0&&n(l)?t>1?b(l,t-1,n,r,i):d(i,l):r||(i[i.length]=l)}return i}function k(e){return S(e)||function(e){return function(e){return E(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?m.call(e):"";return t==o||t==a}(e)}(e)}(e)&&p.call(e,"callee")&&(!h.call(e,"callee")||m.call(e)==i)}(e)||!!(y&&e&&e[y])}function w(e){if("string"==typeof e||function(e){return"symbol"==typeof e||E(e)&&m.call(e)==l}(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}var S=Array.isArray;function E(e){return!!e&&"object"==typeof e}var O,N,P=(O=function(e,t){return null==e?{}:function(e,t){return function(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],l=e[a];n(l,a)&&(o[a]=l)}return o}(e=Object(e),t,(function(t,n){return n in e}))}(e,function(e,t){for(var n=-1,r=e?e.length:0,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}(b(t,1),w))},N=g(void 0===N?O.length-1:N,0),function(){for(var e=arguments,t=-1,n=g(e.length-N,0),r=Array(n);++t<n;)r[t]=e[N+t];t=-1;for(var i=Array(N+1);++t<N;)i[t]=e[t];return i[N]=r,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(O,this,i)});e.exports=P},1513:e=>{"use strict"; /* object-assign (c) Sindre Sorhus @license MIT */var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var o,a,l=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s<arguments.length;s++){for(var u in o=Object(arguments[s]))n.call(o,u)&&(l[u]=o[u]);if(t){a=t(o);for(var c=0;c<a.length;c++)r.call(o,a[c])&&(l[a[c]]=o[a[c]])}}return l}},6999:(e,t,n)=>{"use strict";var r=n(6848);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},9067:(e,t,n)=>{e.exports=n(6999)()},6848:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},5248:(e,t,n)=>{"use strict";var r=n(1975);function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},1702:(e,t,n)=>{e.exports=n(5248)()},1975:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3992:function(e,t,n){!function(e,t,r,i,o,a){"use strict";a=a&&a.hasOwnProperty("default")?a.default:a;var l,s=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n},c=function(){function e(){this.observableQueries=[]}return e.prototype.recycle=function(e){e.setOptions({fetchPolicy:"standby",pollInterval:0,fetchResults:!1}),this.observableQueries.push({observableQuery:e,subscription:e.subscribe({})})},e.prototype.reuse=function(e){if(this.observableQueries.length<=0)return null;var t=this.observableQueries.pop(),n=t.observableQuery;t.subscription.unsubscribe(),e.ssr,e.skip,e.client;var r=u(e,["ssr","skip","client"]);return n.setOptions(s({},r,{pollInterval:e.pollInterval,fetchPolicy:e.fetchPolicy})),n},e}(),d=(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}l(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),f=function(e){function n(t){var n=e.call(this,t)||this;return n.recyclers=new WeakMap,n.getQueryRecycler=n.getQueryRecycler.bind(n),n}return d(n,e),n.prototype.componentWillReceiveProps=function(e,t){this.context.client!==t.client&&(this.recyclers=new WeakMap)},n.prototype.getQueryRecycler=function(e){return this.recyclers.has(e)||this.recyclers.set(e,new c),this.recyclers.get(e)},n.prototype.getChildContext=function(){return{getQueryRecycler:this.getQueryRecycler}},n.prototype.render=function(){return t.Children.only(this.props.children)},n.propTypes={children:r.element.isRequired},n.contextTypes={client:r.object},n.childContextTypes={getQueryRecycler:r.func.isRequired},n}(t.Component),p=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),m=n(8958),v=function(e){function n(t,n){var r=e.call(this,t,n)||this;return m(t.client,'ApolloClient was not passed a client instance. Make sure you pass in your client via the "client" prop.'),t.store||"function"!=typeof t.client.initStore||t.client.initStore(),r}return p(n,e),n.prototype.componentWillReceiveProps=function(e){e.client===this.props.client||e.store||"function"!=typeof e.client.initStore||e.client.initStore()},n.prototype.getChildContext=function(){return{store:this.props.store||this.context.store,client:this.props.client}},n.prototype.render=function(){return t.createElement(f,null,t.Children.only(this.props.children))},n.propTypes={store:r.shape({subscribe:r.func.isRequired,dispatch:r.func.isRequired,getState:r.func.isRequired}),client:r.object.isRequired,children:r.element.isRequired},n.childContextTypes={store:r.object,client:r.object.isRequired},n.contextTypes={store:r.object},n}(t.Component);function h(e,t){if(!e||!t)return!1;if(e===t)return!0;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<n.length;o++)if(!i.call(t,n[o])||e[n[o]]!==t[n[o]])return!1;return!0}var y,g=n(8958);function b(e){var t,n;g(!!e&&!!e.kind,"Argument of "+e+" passed to parser was not a valid GraphQL DocumentNode. You may need to use 'graphql-tag' or another method to convert your operation into a document");var r=e.definitions.filter((function(e){return"FragmentDefinition"===e.kind})),i=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"query"===e.operation})),o=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"mutation"===e.operation})),a=e.definitions.filter((function(e){return"OperationDefinition"===e.kind&&"subscription"===e.operation}));g(!r.length||i.length||o.length||a.length,"Passing only a fragment to 'graphql' is not yet supported. You must include a query, subscription or mutation as well"),g(i.length+o.length+a.length<=1,"react-apollo only supports a query, subscription, or a mutation per HOC. "+e+" had "+i.length+" queries, "+a.length+" subscriptions and "+o.length+" mutations. You can use 'compose' to join multiple operation types to a component"),n=i.length?y.Query:y.Mutation,i.length||o.length||(n=y.Subscription);var l=i.length?i:o.length?o:a;g(1===l.length,"react-apollo only supports one defintion per HOC. "+e+" had "+l.length+" definitions. You can use 'compose' to join multiple operation types to a component");var s=l[0];return t=s.variableDefinitions||[],{name:s.name&&"Name"===s.name.kind?s.name.value:"data",type:n,variables:t}}!function(e){e[e.Query=0]="Query",e[e.Mutation=1]="Mutation",e[e.Subscription=2]="Subscription"}(y||(y={}));var k=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),w=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S=n(8914),E=n(8958),O=n(1513),N=n(5985),P=function(e){return{}},_=function(e){return e},T=function(e){return!1};function I(e){var t=S(e,"variables","refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore");return Object.keys(t).forEach((function(n){"function"==typeof t[n]&&(t[n]=t[n].bind(e))})),t}function j(e){return e.displayName||e.name||"Component"}var x=0;function F(e,n){void 0===n&&(n={});var i=n.options,o=void 0===i?P:i,a=n.skip,l=void 0===a?T:a,s=n.alias,u=void 0===s?"Apollo":s,c=o;"function"!=typeof c&&(c=function(){return o});var d=l;"function"!=typeof d&&(d=function(){return l});var f=n.props,p=b(e),m=x++;function v(i){var o=u+"("+j(i)+")",a=function(a){function l(e,t){var n=a.call(this,e,t)||this;return n.previousData={},n.version=m,n.type=p.type,n.dataForChildViaMutation=n.dataForChildViaMutation.bind(n),n.setWrappedInstance=n.setWrappedInstance.bind(n),n}return k(l,a),l.prototype.componentWillMount=function(){this.shouldSkip(this.props)||this.setInitialProps()},l.prototype.componentDidMount=function(){if(this.hasMounted=!0,this.type!==y.Mutation&&!this.shouldSkip(this.props)&&(this.subscribeToQuery(),this.refetcherQueue)){var e=this.refetcherQueue,t=e.args,n=e.resolve,r=e.reject;this.queryObservable.refetch(t).then(n).catch(r)}},l.prototype.componentWillReceiveProps=function(e,t){var r=c(e).client;if(!h(this.props,e)||this.client!==r&&this.client!==t.client){if(this.shouldRerender=!0,this.client!==r&&this.client!==t.client)return this.client=r||t.client,this.unsubscribeFromQuery(),this.queryObservable=null,this.previousData={},this.updateQuery(e),void(this.shouldSkip(e)||this.subscribeToQuery());if(this.type!==y.Mutation)return this.type===y.Subscription&&n.shouldResubscribe&&n.shouldResubscribe(this.props,e)?(this.unsubscribeFromQuery(),delete this.queryObservable,this.updateQuery(e),void this.subscribeToQuery()):void(this.shouldSkip(e)?this.shouldSkip(this.props)||this.unsubscribeFromQuery():(this.updateQuery(e),this.subscribeToQuery()))}},l.prototype.componentWillUnmount=function(){if(this.type===y.Query){if(this.queryObservable){var e=this.getQueryRecycler();e&&(e.recycle(this.queryObservable),delete this.queryObservable)}this.unsubscribeFromQuery()}this.type===y.Subscription&&this.unsubscribeFromQuery(),this.hasMounted=!1},l.prototype.getQueryRecycler=function(){return this.context.getQueryRecycler&&this.context.getQueryRecycler(l)},l.prototype.getClient=function(e){if(this.client)return this.client;var t=c(e).client;return this.client=t||this.context.client,E(!!this.client,'Could not find "client" in the context of "'+o+'". Wrap the root component in an <ApolloProvider>'),this.client},l.prototype.calculateOptions=function(e,t){void 0===e&&(e=this.props);var n=c(e);if(t&&t.variables&&(t.variables=O({},n.variables,t.variables)),t&&(n=O({},n,t)),n.variables||!p.variables.length)return n;for(var r={},a=0,l=p.variables;a<l.length;a++){var s=l[a],u=s.variable,d=s.type;u.name&&u.name.value&&(void 0===e[u.name.value]?"NonNullType"===d.kind?E(void 0!==e[u.name.value],"The operation '"+p.name+"' wrapping '"+j(i)+"' is expecting a variable: '"+u.name.value+"' but it was not found in the props passed to '"+o+"'"):r[u.name.value]=null:r[u.name.value]=e[u.name.value])}return n=w({},n,{variables:r})},l.prototype.calculateResultProps=function(e){var t=this.type===y.Mutation?"mutate":"data";n.name&&(t=n.name);var r,i,o=((r={})[t]=e,r.ownProps=this.props,r);return f?f(o):((i={})[t]=_(e),i)},l.prototype.setInitialProps=function(){if(this.type!==y.Mutation){var e=this.calculateOptions(this.props);this.createQuery(e)}},l.prototype.createQuery=function(t,n){if(void 0===n&&(n=this.props),this.type===y.Subscription)this.queryObservable=this.getClient(n).subscribe(O({query:e},t));else{var r=this.getQueryRecycler(),i=null;r&&(i=r.reuse(t)),this.queryObservable=null===i?this.getClient(n).watchQuery(O({query:e,metadata:{reactComponent:{displayName:o}}},t)):i}},l.prototype.updateQuery=function(e){var t=this.calculateOptions(e);this.queryObservable||this.createQuery(t,e),this.queryObservable._setOptionsNoResult?this.queryObservable._setOptionsNoResult(t):this.queryObservable.setOptions&&this.queryObservable.setOptions(t).catch((function(e){return null}))},l.prototype.fetchData=function(){if(this.shouldSkip())return!1;if(p.type===y.Mutation||p.type===y.Subscription)return!1;var t=this.calculateOptions();if(!1===t.ssr)return!1;"network-only"!==t.fetchPolicy&&"cache-and-network"!==t.fetchPolicy||(t.fetchPolicy="cache-first");var n=this.getClient(this.props).watchQuery(O({query:e},t));return!!n.currentResult().loading&&n.result()},l.prototype.subscribeToQuery=function(){var e=this;if(!this.querySubscription){var t=function(t){e.type===y.Subscription&&(e.lastSubscriptionData=t,t={data:t});var n=Object.keys(I(t.data));E(0===n.length,"the result of the '"+o+"' operation contains keys that conflict with the return object."+n.map((function(e){return"'"+e+"'"})).join(", ")+" not allowed."),e.forceRenderChildren()},n=function(e){if(e.hasOwnProperty("graphQLErrors"))return t({error:e});throw e};this.querySubscription=this.queryObservable.subscribe({next:t,error:n})}},l.prototype.unsubscribeFromQuery=function(){this.querySubscription&&(this.querySubscription.unsubscribe(),delete this.querySubscription)},l.prototype.shouldSkip=function(e){return void 0===e&&(e=this.props),d(e)||c(e).skip},l.prototype.forceRenderChildren=function(){this.shouldRerender=!0,this.hasMounted&&this.forceUpdate()},l.prototype.getWrappedInstance=function(){return E(n.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.wrappedInstance},l.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},l.prototype.dataForChildViaMutation=function(t){var n=this.calculateOptions(this.props,t);return void 0===n.variables&&delete n.variables,n.mutation=e,this.getClient(this.props).mutate(n)},l.prototype.dataForChild=function(){var e=this;if(this.type===y.Mutation)return this.dataForChildViaMutation;var t=this.calculateOptions(this.props),n={};if(O(n,I(this.queryObservable)),this.type===y.Subscription)O(n,{loading:!this.lastSubscriptionData,variables:t.variables},this.lastSubscriptionData);else{var r=this.queryObservable.currentResult(),i=r.loading,o=r.error,a=r.networkStatus;O(n,{loading:i,networkStatus:a});var l=setTimeout((function(){o&&console.error("Unhandled (in react-apollo)",o.stack||o)}),10);Object.defineProperty(n,"error",{configurable:!0,enumerable:!0,get:function(){return clearTimeout(l),o}}),i?O(n,this.previousData,r.data):o?O(n,(this.queryObservable.getLastResult()||{}).data):(O(n,r.data),this.previousData=r.data),this.querySubscription||(n.refetch=function(t){return new Promise((function(n,r){e.refetcherQueue={resolve:n,reject:r,args:t}}))})}return n},l.prototype.render=function(){if(this.shouldSkip())return n.withRef?t.createElement(i,O({},this.props,{ref:this.setWrappedInstance})):t.createElement(i,this.props);var e=this,r=e.shouldRerender,o=e.renderedElement,a=e.props;if(this.shouldRerender=!1,!r&&o&&o.type===i)return o;var l=this.dataForChild(),s=this.calculateResultProps(l),u=O({},a,s);return n.withRef&&(u.ref=this.setWrappedInstance),this.renderedElement=t.createElement(i,u),this.renderedElement},l.displayName=o,l.WrappedComponent=i,l.contextTypes={client:r.object,getQueryRecycler:r.func},l}(t.Component);return N(a,i,{})}return v}var C=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=n(8958),A=n(1513),D=n(5985);function q(e){return e.displayName||e.name||"Component"}function M(e,n){void 0===n&&(n={});var i="withApollo("+q(e)+")",o=function(o){function a(e,t){var n=o.call(this,e,t)||this;return n.client=t.client,n.setWrappedInstance=n.setWrappedInstance.bind(n),R(!!n.client,'Could not find "client" in the context of "'+i+'". Wrap the root component in an <ApolloProvider>'),n}return C(a,o),a.prototype.getWrappedInstance=function(){return R(n.withRef,"To access the wrapped instance, you need to specify { withRef: true } in the options"),this.wrappedInstance},a.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},a.prototype.render=function(){var r=A({},this.props);return r.client=this.client,n.withRef&&(r.ref=this.setWrappedInstance),t.createElement(e,r)},a.displayName=i,a.WrappedComponent=e,a.contextTypes={client:r.object.isRequired},a}(t.Component);return D(o,e,{})}e.ApolloProvider=v,e.graphql=F,e.withApollo=M,e.compose=i.compose,e.gql=a,Object.keys(o).forEach((function(t){e[t]=o[t]})),Object.defineProperty(e,"__esModule",{value:!0})}(t,n(253),n(1702),n(1725),n(7171),n(1967))},8681:(e,t,n)=>{"use strict";var r=n(1524),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||i}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var i=p(n);i&&i!==m&&e(t,i,r)}var a=c(n);d&&(a=a.concat(d(n)));for(var l=s(t),v=s(n),h=0;h<a.length;++h){var y=a[h];if(!(o[y]||r&&r[y]||v&&v[y]||l&&l[y])){var g=f(n,y);try{u(t,y,g)}catch(e){}}}}return t}},4104:(e,t)=>{"use strict"; /** @license React v16.13.1 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,d=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,h=n?Symbol.for("react.lazy"):60116,y=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,k=n?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case d:case o:case l:case a:case p:return e;default:switch(e=e&&e.$$typeof){case u:case f:case h:case v:case s:return e;default:return t}}case i:return t}}}function S(e){return w(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=s,t.Element=r,t.ForwardRef=f,t.Fragment=o,t.Lazy=h,t.Memo=v,t.Portal=i,t.Profiler=l,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return S(e)||w(e)===c},t.isConcurrentMode=S,t.isContextConsumer=function(e){return w(e)===u},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return w(e)===f},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===h},t.isMemo=function(e){return w(e)===v},t.isPortal=function(e){return w(e)===i},t.isProfiler=function(e){return w(e)===l},t.isStrictMode=function(e){return w(e)===a},t.isSuspense=function(e){return w(e)===p},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===d||e===l||e===a||e===p||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===v||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===g||e.$$typeof===b||e.$$typeof===k||e.$$typeof===y)},t.typeOf=w},1524:(e,t,n)=>{"use strict";e.exports=n(4104)},1725:(e,t,n)=>{"use strict";n.r(t),n.d(t,{applyMiddleware:()=>F,bindActionCreators:()=>I,combineReducers:()=>_,compose:()=>j,createStore:()=>N});const r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;var i="object"==typeof self&&self&&self.Object===Object&&self;const o=(r||i||Function("return this")()).Symbol;var a=Object.prototype,l=a.hasOwnProperty,s=a.toString,u=o?o.toStringTag:void 0;const c=function(e){var t=l.call(e,u),n=e[u];try{e[u]=void 0;var r=!0}catch(e){}var i=s.call(e);return r&&(t?e[u]=n:delete e[u]),i};var d=Object.prototype.toString;const f=function(e){return d.call(e)};var p=o?o.toStringTag:void 0;const m=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":p&&p in Object(e)?c(e):f(e)};const v=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);const h=function(e){return null!=e&&"object"==typeof e};var y=Function.prototype,g=Object.prototype,b=y.toString,k=g.hasOwnProperty,w=b.call(Object);const S=function(e){if(!h(e)||"[object Object]"!=m(e))return!1;var t=v(e);if(null===t)return!0;var n=k.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==w};var E=n(1158),O={INIT:"@@redux/INIT"};function N(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(N)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var i=e,o=t,a=[],l=a,s=!1;function u(){l===a&&(l=a.slice())}function c(){return o}function d(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return u(),l.push(e),function(){if(t){t=!1,u();var n=l.indexOf(e);l.splice(n,1)}}}function f(e){if(!S(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(s)throw new Error("Reducers may not dispatch actions.");try{s=!0,o=i(o,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}return f({type:O.INIT}),(r={dispatch:f,subscribe:d,getState:c,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,f({type:O.INIT})}})[E.A]=function(){var e,t=d;return(e={subscribe:function(e){if("object"!=typeof e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(c())}return n(),{unsubscribe:t(n)}}})[E.A]=function(){return this},e},r}function P(e,t){var n=t&&t.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function _(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var i=t[r];0,"function"==typeof e[i]&&(n[i]=e[i])}var o=Object.keys(n);var a=void 0;try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:O.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+O.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(n)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,i={},l=0;l<o.length;l++){var s=o[l],u=n[s],c=e[s],d=u(c,t);if(void 0===d){var f=P(s,t);throw new Error(f)}i[s]=d,r=r||d!==c}return r?i:e}}function T(e,t){return function(){return t(e.apply(void 0,arguments))}}function I(e,t){if("function"==typeof e)return T(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(e),r={},i=0;i<n.length;i++){var o=n[i],a=e[o];"function"==typeof a&&(r[o]=T(a,t))}return r}function j(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function F(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(n,r,i){var o,a=e(n,r,i),l=a.dispatch,s={getState:a.getState,dispatch:function(e){return l(e)}};return o=t.map((function(e){return e(s)})),l=j.apply(void 0,o)(a.dispatch),x({},a,{dispatch:l})}}}},1158:(e,t,n)=>{"use strict";n.d(t,{A:()=>r}),e=n.hmd(e);const r=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:e)},6603:function(){!function(e){"use strict";if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,o="ArrayBuffer"in e;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=function(e){return e&&DataView.prototype.isPrototypeOf(e)},s=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};m.prototype.append=function(e,t){e=d(e),t=f(t);var n=this.map[e];this.map[e]=n?n+","+t:t},m.prototype.delete=function(e){delete this.map[d(e)]},m.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},m.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},m.prototype.set=function(e,t){this.map[d(e)]=f(t)},m.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},m.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},m.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},m.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},n&&(m.prototype[Symbol.iterator]=m.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];k.prototype.clone=function(){return new k(this,{body:this._bodyInit})},b.call(k.prototype),b.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new m(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];S.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})},e.Headers=m,e.Request=k,e.Response=S,e.fetch=function(e,t){return new Promise((function(n,i){var o=new k(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new m,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;n(new S(i,r))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===o._bodyInit?null:o._bodyInit)}))},e.fetch.polyfill=!0}function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function f(e){return"string"!=typeof e&&(e=String(e)),e}function p(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function m(e){this.map={},e instanceof m?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function v(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function g(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(i&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(o&&r&&l(e))this._bodyArrayBuffer=g(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!o||!ArrayBuffer.prototype.isPrototypeOf(e)&&!s(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=g(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=v(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?v(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,r=v(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}function k(e,t){var n,r,i=(t=t||{}).body;if(e instanceof k){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new m(e.headers)),this.method=e.method,this.mode=e.mode,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new m(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),u.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function S(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new m(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},8679:(e,t)=>{"use strict";function n(e){var t=e._cleanup;t&&(e._cleanup=void 0,t())}function r(e){return void 0===e._observer}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){if(Object(e)!==e)throw new TypeError("Observer must be an object");if(this._cleanup=void 0,this._observer=e,e.start&&e.start(this),!r(this)){var i,a=new o(this);try{var l=t(a);if(null!=l){if("function"==typeof l.unsubscribe)i=l,l=function(){i.unsubscribe()};else if("function"!=typeof l)throw new TypeError(l+" is not a function");this._cleanup=l}}catch(e){return void(a.error&&a.error(e))}r(this)&&n(this)}}return Object.defineProperty(e.prototype,"closed",{get:function(){return r(this)},enumerable:!0,configurable:!0}),e.prototype.unsubscribe=function(){var e;r(e=this)||(e._observer=void 0,n(e))},e}();t.Subscription=i;var o=function(){function e(e){this._subscription=e}return Object.defineProperty(e.prototype,"closed",{get:function(){return r(this._subscription)},enumerable:!0,configurable:!0}),e.prototype.next=function(e){var t=this._subscription;if(!r(t)){var n=t._observer;n.next&&n.next(e)}},e.prototype.error=function(e){var t=this._subscription;if(r(t))throw e;var i=t._observer;t._observer=void 0;try{if(!i.error)throw e;i.error(e)}catch(e){try{n(t)}finally{throw e}}n(t)},e.prototype.complete=function(){var e=this._subscription;if(!r(e)){var t=e._observer;e._observer=void 0;try{t.complete&&t.complete()}catch(t){try{n(e)}finally{throw t}}n(e)}},e}();t.SubscriptionObserver=o;var a=function(){function e(e){if("function"!=typeof e)throw new TypeError("Observable initializer must be a function");this._subscriber=e}return e.from=function(t){if(t.subscribe)return new e((function(e){return t.subscribe(e)}));if(Array.isArray(t))return new e((function(e){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete&&e.complete()}));throw new TypeError(t+" is not observable")},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new e((function(e){for(var n=0;n<t.length;++n)if(e.next(t[n]),e.closed)return;e.complete&&e.complete()}))},e.prototype.subscribe=function(e,t,n){return new i("function"==typeof e?{next:e,error:t,complete:n}:e,this._subscriber)},e.prototype.forEach=function(e){var t=this;return new Promise((function(n,r){if("function"!=typeof e)return Promise.reject(new TypeError(e+" is not a function"));t.subscribe({start:function(e){this._subscription=e},next:function(t){var n=this._subscription;if(!n.closed)try{return void e(t)}catch(e){r(e),n.unsubscribe()}},error:r,complete:n})}))},e.prototype.map=function(t){var n=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new e((function(e){return n.subscribe({next:function(n){if(!e.closed){var r;try{r=t(n)}catch(t){return void e.error(t)}e.next(r)}},error:function(t){e.error(t)},complete:function(){e.complete()}})}))},e.prototype.filter=function(t){var n=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new e((function(e){n.subscribe({next:function(n){if(!e.closed){try{if(!t(n))return}catch(t){return void(e.error&&e.error(t))}e.next(n)}},error:function(t){e.error(t)},complete:function(){e.complete()}})}))},e.prototype.reduce=function(t,n){var r=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");var i=arguments.length>1,o=!1,a=arguments[1];return new e((function(e){r.subscribe({next:function(n){if(!e.closed){var r=!o;if(o=!0,!r||i)try{a=t(a,n)}catch(t){return void e.error(t)}else a=n}},error:function(t){e.error(t)},complete:function(){o||i?(e.next(a),e.complete()):e.error(new TypeError("Cannot reduce an empty sequence"))}})}))},e.prototype.flatMap=function(t){var n=this;if("function"!=typeof t)throw new TypeError(t+" is not a function");return new e((function(r){var i=!1,o=[],a=n.subscribe({next:function(n){var i;if(t)try{i=t(n)}catch(e){return void r.error(e)}e.from(i).subscribe({start:function(e){o.push(this._subscription=e)},next:function(e){r.next(e)},error:function(e){r.error(e)},complete:function(){var e=o.indexOf(this._subscription);e>=0&&o.splice(e,1),l()}})},error:function(e){r.error(e)},complete:function(){i=!0,l()}});function l(){i&&0===o.length&&r.complete()}return function(){o.forEach((function(e){return e.unsubscribe()})),a.unsubscribe()}}))},e}();t.default=a},7238:(e,t,n)=>{var r={"./CatalogPackage.graphql":5246,"./Categories.graphql":4997,"./Category.graphql":697,"./ChangeExtensionStatus.graphql":3432,"./CheckUpdates.graphql":1815,"./CountNewPurchases.graphql":2994,"./CountUpdates.graphql":6328,"./CustomizeExtensions.graphql":5486,"./Featured.graphql":6175,"./Installed.graphql":5867,"./InstalledExtension.graphql":8724,"./LoadVote.graphql":2697,"./MostPopular.graphql":13,"./NewAndUpdated.graphql":1903,"./Purchases.graphql":2369,"./RemoveExtension.graphql":9918,"./RemoveVote.graphql":5621,"./Updates.graphql":8959,"./VoteForExtension.graphql":8877};function i(e){var t=o(e);return n(t)}function o(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}i.keys=function(){return Object.keys(r)},i.resolve=o,e.exports=i,i.id=7238},2280:t=>{"use strict";t.exports=e},3373:(e,t)=>{var n; /*! Copyright (c) 2018 Jed Watson. Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,o(n)))}return e}function o(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return i.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(o.exports,o,o.exports,r),o.loaded=!0,o.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{"use strict";r.r(i),r.d(i,{default:()=>Bc});var e=r(2280),t=r(3992),n=r(1725);function o(e){return o="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},o(e)}var a=["promise","types"];function l(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 s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=o(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=o(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==o(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return d(e,t);var n={}.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)?d(e,t):void 0}}(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 d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const f=function(e){var t=function(t,n,r){return new Promise((function(i,o){new Ajax.Request(e+n,{method:t,parameters:r,onSuccess:function(e){var t=e.responseJSON;"error"===t.status&&t.redirect?window.location.replace(t.redirect):i(t)},onFailure:function(e){var t=e.responseText;o(t)}})}))},n={get:function(e,n){return t("get",e,n)},post:function(e,n){return t("post",e,n)}};return function(){return function(e){return function(t){var r=t.promise,i=t.types,o=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,a);if(!r)return e(t);var l=c(i,3),u=l[0],d=l[1],f=l[2];e(s(s({},o),{},{type:u}));var p=r(n);return p.then((function(t){return d?e(s(s({},o),{},{result:t,type:d})):function(){}}),(function(t){return f?e(s(s({},o),{},{error:t,type:f})):function(){}})),p}}}};function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function m(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,p(e,t)}var v=r(253),h=r(9067),y=r.n(h),g=y().shape({trySubscribe:y().func.isRequired,tryUnsubscribe:y().func.isRequired,notifyNestedSubs:y().func.isRequired,isSubscribed:y().func.isRequired}),b=y().shape({subscribe:y().func.isRequired,dispatch:y().func.isRequired,getState:y().func.isRequired});v.default.forwardRef;!function(e){var t;void 0===e&&(e="store");var n=e+"Subscription",r=function(t){m(i,t);var r=i.prototype;function i(n,r){var i;return(i=t.call(this,n,r)||this)[e]=n.store,i}return r.getChildContext=function(){var t;return(t={})[e]=this[e],t[n]=null,t},r.render=function(){return v.Children.only(this.props.children)},i}(v.Component);r.propTypes={store:b.isRequired,children:y().element.isRequired},r.childContextTypes=((t={})[e]=b.isRequired,t[n]=g,t)}();function k(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(null,arguments)}function S(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}var E=r(8681),O=r.n(E),N=r(8958),P=r.n(N),_=r(1524),T=null,I={notify:function(){}};var j=function(){function e(e,t,n){this.store=e,this.parentSub=t,this.onStateChange=n,this.unsubscribe=null,this.listeners=I}var t=e.prototype;return t.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},t.notifyNestedSubs=function(){this.listeners.notify()},t.isSubscribed=function(){return Boolean(this.unsubscribe)},t.trySubscribe=function(){var e,t;this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=(e=[],t=[],{clear:function(){t=T,e=T},notify:function(){for(var n=e=t,r=0;r<n.length;r++)n[r]()},get:function(){return t},subscribe:function(n){var r=!0;return t===e&&(t=e.slice()),t.push(n),function(){r&&e!==T&&(r=!1,t===e&&(t=e.slice()),t.splice(t.indexOf(n),1))}}}))},t.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=I)},e}(),x=void 0!==v.default.forwardRef,F=0,C={};function R(){}function A(e,t){var n,r;void 0===t&&(t={});var i=t,o=i.getDisplayName,a=void 0===o?function(e){return"ConnectAdvanced("+e+")"}:o,l=i.methodName,s=void 0===l?"connectAdvanced":l,u=i.renderCountProp,c=void 0===u?void 0:u,d=i.shouldHandleStateChanges,f=void 0===d||d,p=i.storeKey,h=void 0===p?"store":p,y=i.withRef,E=void 0!==y&&y,N=S(i,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),T=h+"Subscription",I=F++,A=((n={})[h]=b,n[T]=g,n),D=((r={})[T]=g,r);return function(t){P()((0,_.isValidElementType)(t),"You must pass a component to the function returned by "+s+". Instead received "+JSON.stringify(t));var n=t.displayName||t.name||"Component",r=a(n),i=w({},N,{getDisplayName:a,methodName:s,renderCountProp:c,shouldHandleStateChanges:f,storeKey:h,withRef:E,displayName:r,wrappedComponentName:n,WrappedComponent:t}),o=function(n){function o(e,t){var i;return(i=n.call(this,e,t)||this).version=I,i.state={},i.renderCount=0,i.store=e[h]||t[h],i.propsMode=Boolean(e[h]),i.setWrappedInstance=i.setWrappedInstance.bind(k(k(i))),P()(i.store,'Could not find "'+h+'" in either the context or props of "'+r+'". Either wrap the root component in a <Provider>, or explicitly pass "'+h+'" as a prop to "'+r+'".'),i.initSelector(),i.initSubscription(),i}m(o,n);var a=o.prototype;return a.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[T]=t||this.context[T],e},a.componentDidMount=function(){f&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},a.componentWillReceiveProps=function(e){this.selector.run(e)},a.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},a.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=R,this.store=null,this.selector.run=R,this.selector.shouldComponentUpdate=!1},a.getWrappedInstance=function(){return P()(E,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+s+"() call."),this.wrappedInstance},a.setWrappedInstance=function(e){this.wrappedInstance=e},a.initSelector=function(){var t=e(this.store.dispatch,i);this.selector=function(e,t){var n={run:function(r){try{var i=e(t.getState(),r);(i!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=i,n.error=null)}catch(e){n.shouldComponentUpdate=!0,n.error=e}}};return n}(t,this.store),this.selector.run(this.props)},a.initSubscription=function(){if(f){var e=(this.propsMode?this.props:this.context)[T];this.subscription=new j(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},a.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(C)):this.notifyNestedSubs()},a.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},a.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},a.addExtraProps=function(e){if(!(E||c||this.propsMode&&this.subscription))return e;var t=w({},e);return E&&(t.ref=this.setWrappedInstance),c&&(t[c]=this.renderCount++),this.propsMode&&this.subscription&&(t[T]=this.subscription),t},a.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return(0,v.createElement)(t,this.addExtraProps(e.props))},o}(v.Component);return x&&(o.prototype.UNSAFE_componentWillReceiveProps=o.prototype.componentWillReceiveProps,delete o.prototype.componentWillReceiveProps),o.WrappedComponent=t,o.displayName=r,o.childContextTypes=D,o.contextTypes=A,o.propTypes=A,O()(o,t)}}var D=Object.prototype.hasOwnProperty;function q(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function M(e,t){if(q(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++)if(!D.call(t,n[i])||!q(e[n[i]],t[n[i]]))return!1;return!0}function L(e){return function(t,n){var r=e(t,n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function U(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function V(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=U(e);var i=r(t,n);return"function"==typeof i&&(r.mapToProps=i,r.dependsOnOwnProps=U(i),i=r(t,n)),i},r}}const Q=[function(e){return"function"==typeof e?V(e):void 0},function(e){return e?void 0:L((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?L((function(t){return(0,n.bindActionCreators)(e,t)})):void 0}];const B=[function(e){return"function"==typeof e?V(e):void 0},function(e){return e?void 0:L((function(){return{}}))}];function $(e,t,n){return w({},n,e,t)}const W=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,i=n.pure,o=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?i&&o(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return $}}];function K(e,t,n,r){return function(i,o){return n(e(i,o),t(r,o),o)}}function z(e,t,n,r,i){var o,a,l,s,u,c=i.areStatesEqual,d=i.areOwnPropsEqual,f=i.areStatePropsEqual,p=!1;function m(i,p){var m,v,h=!d(p,a),y=!c(i,o);return o=i,a=p,h&&y?(l=e(o,a),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):h?(e.dependsOnOwnProps&&(l=e(o,a)),t.dependsOnOwnProps&&(s=t(r,a)),u=n(l,s,a)):y?(m=e(o,a),v=!f(m,l),l=m,v&&(u=n(l,s,a)),u):u}return function(i,c){return p?m(i,c):(l=e(o=i,a=c),s=t(r,a),u=n(l,s,a),p=!0,u)}}function G(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,i=t.initMergeProps,o=S(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),a=n(e,o),l=r(e,o),s=i(e,o);return(o.pure?z:K)(a,l,s,e,o)}function Y(e,t,n){for(var r=t.length-1;r>=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function H(e,t){return e===t}const J=(ee=(Z=void 0===X?{}:X).connectHOC,te=void 0===ee?A:ee,ne=Z.mapStateToPropsFactories,re=void 0===ne?B:ne,ie=Z.mapDispatchToPropsFactories,oe=void 0===ie?Q:ie,ae=Z.mergePropsFactories,le=void 0===ae?W:ae,se=Z.selectorFactory,ue=void 0===se?G:se,function(e,t,n,r){void 0===r&&(r={});var i=r,o=i.pure,a=void 0===o||o,l=i.areStatesEqual,s=void 0===l?H:l,u=i.areOwnPropsEqual,c=void 0===u?M:u,d=i.areStatePropsEqual,f=void 0===d?M:d,p=i.areMergedPropsEqual,m=void 0===p?M:p,v=S(i,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),h=Y(e,re,"mapStateToProps"),y=Y(t,oe,"mapDispatchToProps"),g=Y(n,le,"mergeProps");return te(ue,w({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:h,initMapDispatchToProps:y,initMergeProps:g,pure:a,areStatesEqual:s,areOwnPropsEqual:c,areStatePropsEqual:f,areMergedPropsEqual:m},v))});var X,Z,ee,te,ne,re,ie,oe,ae,le,se,ue;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},ce(e)}function de(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 fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?de(Object(n),!0).forEach((function(t){pe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):de(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var me="lists/SORT_CHANGE",ve="lists/SELECTION_CHANGE",he={};const ye=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:fe({},he),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case me:var n=t.sortColumn,r=t.sortDirection,i=e[t.id]||{};return fe(fe({},e),{},pe({},t.id,fe(fe({},i),{},{sortColumn:n,sortDirection:r})));case ve:var o=t.selection,a=e[t.id]||{};return fe(fe({},e),{},pe({},t.id,fe(fe({},a),{},{selection:o})));default:return e}};var ge;function be(e){return be="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},be(e)}function ke(e){return function(e){if(Array.isArray(e))return we(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return we(e,t);var n={}.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)?we(e,t):void 0}}(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 we(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Se(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 Ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Se(Object(n),!0).forEach((function(t){Oe(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Se(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Oe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=be(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=be(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==be(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne="long-tasks/FETCH_SUCCESS",Pe="long-tasks/PROGRESS_START",_e={items:[]};const Te=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ee({},_e),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Pe:Jsw.getComponent("asyncProgressBarWrapper").progressDialog(t.result);var n=t.items||[];return Ee(Ee({},e),{},{items:[].concat(ke(n),[t.result])});case Ne:var r=t.items;return Ee(Ee({},e),{},{items:r});default:return e}};var Ie=function(e){return{type:Ne,items:e}},je=function(e,t){return e.items.filter((function(e){var t=e.type,n=e.status;return"ext-catalog-install"===t&&"error"!==n&&"done"!==n})).some((function(e){var n=e.steps;return Object.keys(n).filter((function(e){return e===t})).some((function(e){return"done"!==n[e].status&&"error"!==n[e].status}))}))},xe=function(e,t){return e.items.filter((function(e){var t=e.type,n=e.status;return"ext-catalog-retrieve-keys"===t&&"error"!==n&&"done"!==n})).some((function(e){var n=e.additionalData;return n&&n.code===t}))},Fe=function(e,t){var n=e.items.find((function(e){var n=e.type,r=e.additionalData;return"ext-catalog-retrieve-and-install"===n&&r.code===t}));return n&&n.steps?n.steps:null};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},Ce(e)}function Re(e){return function(e){if(Array.isArray(e))return Ae(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ae(e,t);var n={}.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)?Ae(e,t):void 0}}(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){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function De(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 qe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?De(Object(n),!0).forEach((function(t){Me(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):De(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Me(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ce(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Le="status/ADD",Ue="status/CLEAR",Ve={messages:[]},Qe=e.Toaster.create();const Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:qe({},Ve),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(t.type){case Le:return Qe.add(t.message),qe(qe({},e),{},{messages:[].concat(Re(e.messages),[t.message])});case Ue:return Qe.clear(),qe(qe({},e),{},{messages:[]});default:return e}};var $e=function(e){return{type:Le,message:e}},We=function(){return{type:Ue}};function Ke(e){return Ke="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},Ke(e)}function ze(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 Ge(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ze(Object(n),!0).forEach((function(t){Ye(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ze(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ye(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ke(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ke(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He="extension/catalog/START_UPDATE",Je="extension/catalog/CHECK_UPDATES",Xe="extension/catalog/CHECK_UPDATES_SUCCESS",Ze={checkingUpdates:!1,catalogIsEnabled:!0,catalogError:null,requestExtensionUrl:null,buyInfo:{}};var et=function(e,t){var n={};return"string"==typeof e?n.uuid=e:(n["uuid[]"]=e,void 0!==t&&(n.redirect=t)),{types:["extension/catalog/START_INSTALL",Pe],promise:function(e){return e.post("/install-from-catalog",n)},uuid:e,redirect:t}},tt=function(e){return{types:[He,Pe],promise:function(t){return t.post("/update-extensions","string"==typeof e?{uuid:e}:{"uuid[]":e})},uuid:e}},nt=function(){return{type:Xe}};function rt(e){return rt="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},rt(e)}function it(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 ot(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?it(Object(n),!0).forEach((function(t){at(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):it(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function at(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=rt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==rt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lt="extension/installed/RUN_OPERATION",st="extension/installed/RUN_OPERATION_SUCCESS",ut={currentOperation:null};const ct=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot(ot({},ut),e),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(n.type){case lt:var r=n.currentOperation;return ot(ot({},t),{},{currentOperation:r});case st:return ot(ot({},t),{},{currentOperation:null});default:return t}}};var dt=function(e){return{type:lt,currentOperation:e}},ft=function(){return{type:st}};function pt(e){return pt="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},pt(e)}function mt(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 vt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mt(Object(n),!0).forEach((function(t){ht(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ht(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=pt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=pt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yt="extension/settings/SWITCH_AUTO_UPDATE",gt="extension/settings/SWITCH_AUTO_UPDATE_SUCCESS",bt="extension/settings/HIDE_VAT_POPOVER",kt={autoUpdate:!0,isDemoMode:!1,switchingAutoUpdate:!1,vatShowPopover:"none"};const wt=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vt(vt({},kt),e),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(n.type){case yt:var r=n.autoUpdate;return vt(vt({},t),{},{autoUpdate:r,switchingAutoUpdate:!0});case gt:return vt(vt({},t),{},{switchingAutoUpdate:!1});case bt:return vt(vt({},t),{},{vatShowPopover:"none"});default:return t}}};var St=[me,ve,Ne,Pe,Le,Ue,"extension/catalog/START_UPDATE_SUCCESS",Xe,st,yt];const Et=function(e){return function(){return function(t){return function(n){if(-1!==St.indexOf(n.type)||-1!==n.type.indexOf("APOLLO_"))return t(n);var r={};switch(n.type){case gt:r.state=n.autoUpdate?"ON":"OFF";break;case He:r.selected=Array.isArray(n.uuid)?n.uuid.length:1}return e.dispatchAction(n.type,r),t(n)}}}};function Ot(e){return Ot="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},Ot(e)}function Nt(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 Pt(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ot(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ot(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ot(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _t=function(e,t,r){var i=[r.middleware(),f(e.baseUrl)];Jsw&&Jsw.UAT&&i.push(Et(Jsw.UAT));var o=n.applyMiddleware.apply(void 0,i)(n.createStore)((0,n.combineReducers)(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nt(Object(n),!0).forEach((function(t){Pt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t)),function(){var e={};try{e=JSON.parse(Jsw.Cookie.get("lists-state"))||{}}catch(e){}return{lists:e}}());return o.subscribe((function(){return e=o.getState(),void Jsw.Cookie.set("lists-state",JSON.stringify(e.lists,(function(e,t){if("selection"!==e)return t})));var e})),o};r(4501);var Tt="popstate";function It(e={}){return Dt((function(e,t){let{pathname:n,search:r,hash:i}=e.location;return Ct("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){return"string"==typeof t?t:Rt(t)}),null,e)}function jt(e,t){if(!1===e||null==e)throw new Error(t)}function xt(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(e){}}}function Ft(e,t){return{usr:e.state,key:e.key,idx:t}}function Ct(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?At(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Rt({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function At(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Dt(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,l="POP",s=null,u=c();function c(){return(a.state||{idx:null}).idx}function d(){l="POP";let e=c(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:Rt(e);return n=n.replace(/ $/,"%20"),jt(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}null==u&&(u=0,a.replaceState({...a.state,idx:u},""));let p={get action(){return l},get location(){return e(i,a)},listen(e){if(s)throw new Error("A history only accepts one active listener");return i.addEventListener(Tt,d),s=e,()=>{i.removeEventListener(Tt,d),s=null}},createHref:e=>t(i,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l="PUSH";let r=Ct(p.location,e,t);n&&n(r,e),u=c()+1;let d=Ft(r,u),f=p.createHref(r);try{a.pushState(d,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;i.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l="REPLACE";let r=Ct(p.location,e,t);n&&n(r,e),u=c();let i=Ft(r,u),d=p.createHref(r);a.replaceState(i,"",d),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>a.go(e)};return p}function qt(e,t,n="/"){return Mt(e,t,n,!1)}function Mt(e,t,n,r){let i=Xt(("string"==typeof t?At(t):t).pathname||"/",n);if(null==i)return null;let o=Lt(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let a=null;for(let e=0;null==a&&e<o.length;++e){let t=Jt(i);a=Yt(o[e],t,r)}return a}function Lt(e,t=[],n=[],r=""){let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(jt(a.relativePath.startsWith(r),`Absolute route path "${a.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),a.relativePath=a.relativePath.slice(r.length));let l=rn([r,a.relativePath]),s=n.concat(a);e.children&&e.children.length>0&&(jt(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),Lt(e.children,t,s,l)),(null!=e.path||e.index)&&t.push({path:l,score:Gt(l,e.index),routesMeta:s})};return e.forEach(((e,t)=>{if(""!==e.path&&e.path?.includes("?"))for(let n of Ut(e.path))i(e,t,n);else i(e,t)})),t}function Ut(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=Ut(r.join("/")),l=[];return l.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&l.push(...a),l.map((t=>e.startsWith("/")&&""===t?"/":t))}var Vt=/^:[\w-]+$/,Qt=3,Bt=2,$t=1,Wt=10,Kt=-2,zt=e=>"*"===e;function Gt(e,t){let n=e.split("/"),r=n.length;return n.some(zt)&&(r+=Kt),t&&(r+=Bt),n.filter((e=>!zt(e))).reduce(((e,t)=>e+(Vt.test(t)?Qt:""===t?$t:Wt)),r)}function Yt(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",a=[];for(let e=0;e<r.length;++e){let l=r[e],s=e===r.length-1,u="/"===o?t:t.slice(o.length)||"/",c=Ht({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&n&&!r[r.length-1].route.index&&(c=Ht({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(i,c.params),a.push({params:i,pathname:rn([o,c.pathname]),pathnameBase:on(rn([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=rn([o,c.pathnameBase]))}return a}function Ht(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){xt("*"===e||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce(((e,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=l[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=l[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function Jt(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return xt(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Xt(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Zt(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function en(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function tn(e){let t=en(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function nn(e,t,n,r=!1){let i;"string"==typeof e?i=At(e):(i={...e},jt(!i.pathname||!i.pathname.includes("?"),Zt("?","pathname","search",i)),jt(!i.pathname||!i.pathname.includes("#"),Zt("#","pathname","hash",i)),jt(!i.search||!i.search.includes("#"),Zt("#","search","hash",i)));let o,a=""===e||""===i.pathname,l=a?"/":i.pathname;if(null==l)o=n;else{let e=t.length-1;if(!r&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=function(e,t="/"){let{pathname:n,search:r="",hash:i=""}="string"==typeof e?At(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:an(r),hash:ln(i)}}(i,o),u=l&&"/"!==l&&l.endsWith("/"),c=(a||"."===l)&&n.endsWith("/");return s.pathname.endsWith("/")||!u&&!c||(s.pathname+="/"),s}var rn=e=>e.join("/").replace(/\/\/+/g,"/"),on=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),an=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",ln=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";function sn(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}var un=["POST","PUT","PATCH","DELETE"],cn=(new Set(un),["GET",...un]);new Set(cn),Symbol("ResetLoaderData");var dn=v.createContext(null);dn.displayName="DataRouter";var fn=v.createContext(null);fn.displayName="DataRouterState";var pn=v.createContext({isTransitioning:!1});pn.displayName="ViewTransition";var mn=v.createContext(new Map);mn.displayName="Fetchers";var vn=v.createContext(null);vn.displayName="Await";var hn=v.createContext(null);hn.displayName="Navigation";var yn=v.createContext(null);yn.displayName="Location";var gn=v.createContext({outlet:null,matches:[],isDataRoute:!1});gn.displayName="Route";var bn=v.createContext(null);bn.displayName="RouteError";function kn(){return null!=v.useContext(yn)}function wn(){return jt(kn(),"useLocation() may be used only in the context of a <Router> component."),v.useContext(yn).location}var Sn="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function En(e){v.useContext(hn).static||v.useLayoutEffect(e)}function On(){let{isDataRoute:e}=v.useContext(gn);return e?function(){let{router:e}=An("useNavigate"),t=qn("useNavigate"),n=v.useRef(!1);return En((()=>{n.current=!0})),v.useCallback((async(r,i={})=>{xt(n.current,Sn),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))}),[e,t])}():function(){jt(kn(),"useNavigate() may be used only in the context of a <Router> component.");let e=v.useContext(dn),{basename:t,navigator:n}=v.useContext(hn),{matches:r}=v.useContext(gn),{pathname:i}=wn(),o=JSON.stringify(tn(r)),a=v.useRef(!1);return En((()=>{a.current=!0})),v.useCallback(((r,l={})=>{if(xt(a.current,Sn),!a.current)return;if("number"==typeof r)return void n.go(r);let s=nn(r,JSON.parse(o),i,"path"===l.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:rn([t,s.pathname])),(l.replace?n.replace:n.push)(s,l.state,l)}),[t,n,o,i,e])}()}var Nn=v.createContext(null);function Pn(){let{matches:e}=v.useContext(gn),t=e[e.length-1];return t?t.params:{}}function _n(e,{relative:t}={}){let{matches:n}=v.useContext(gn),{pathname:r}=wn(),i=JSON.stringify(tn(n));return v.useMemo((()=>nn(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function Tn(e,t,n,r){jt(kn(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=v.useContext(hn),{matches:o}=v.useContext(gn),a=o[o.length-1],l=a?a.params:{},s=a?a.pathname:"/",u=a?a.pathnameBase:"/",c=a&&a.route;{let e=c&&c.path||"";Un(s,!c||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let d,f=wn();if(t){let e="string"==typeof t?At(t):t;jt("/"===u||e.pathname?.startsWith(u),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${u}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=f;let p=d.pathname||"/",m=p;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+p.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=qt(e,{pathname:m});xt(c||null!=h,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),xt(null==h||void 0!==h[h.length-1].route.element||void 0!==h[h.length-1].route.Component||void 0!==h[h.length-1].route.lazy,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=Cn(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},l,e.params),pathname:rn([u,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:rn([u,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&y?v.createElement(yn.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...d},navigationType:"POP"}},y):y}function In(){let e=Mn(),t=sn(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=v.createElement(v.Fragment,null,v.createElement("p",null,"💿 Hey developer 👋"),v.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",v.createElement("code",{style:o},"ErrorBoundary")," or"," ",v.createElement("code",{style:o},"errorElement")," prop on your route.")),v.createElement(v.Fragment,null,v.createElement("h2",null,"Unexpected Application Error!"),v.createElement("h3",{style:{fontStyle:"italic"}},t),n?v.createElement("pre",{style:i},n):null,a)}var jn=v.createElement(In,null),xn=class extends v.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?v.createElement(gn.Provider,{value:this.props.routeContext},v.createElement(bn.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function Fn({routeContext:e,match:t,children:n}){let r=v.useContext(dn);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),v.createElement(gn.Provider,{value:e},n)}function Cn(e,t=[],n=null,r=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let i=e,o=n?.errors;if(null!=o){let e=i.findIndex((e=>e.route.id&&void 0!==o?.[e.route.id]));jt(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`),i=i.slice(0,Math.min(i.length,e+1))}let a=!1,l=-1;if(n)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(l=e),t.route.id){let{loaderData:e,errors:r}=n,o=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!r||void 0===r[t.route.id]);if(t.route.lazy||o){a=!0,i=l>=0?i.slice(0,l+1):[i[0]];break}}}return i.reduceRight(((e,r,s)=>{let u,c=!1,d=null,f=null;n&&(u=o&&r.route.id?o[r.route.id]:void 0,d=r.route.errorElement||jn,a&&(l<0&&0===s?(Un("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),c=!0,f=null):l===s&&(c=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,s+1)),m=()=>{let t;return t=u?d:c?f:r.route.Component?v.createElement(r.route.Component,null):r.route.element?r.route.element:e,v.createElement(Fn,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===s)?v.createElement(xn,{location:n.location,revalidation:n.revalidation,component:d,error:u,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}function Rn(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function An(e){let t=v.useContext(dn);return jt(t,Rn(e)),t}function Dn(e){let t=v.useContext(fn);return jt(t,Rn(e)),t}function qn(e){let t=function(e){let t=v.useContext(gn);return jt(t,Rn(e)),t}(e),n=t.matches[t.matches.length-1];return jt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Mn(){let e=v.useContext(bn),t=Dn("useRouteError"),n=qn("useRouteError");return void 0!==e?e:t.errors?.[n]}var Ln={};function Un(e,t,n){t||Ln[e]||(Ln[e]=!0,xt(!1,n))}v.memo((function({routes:e,future:t,state:n}){return Tn(e,void 0,n,t)}));function Vn({to:e,replace:t,state:n,relative:r}){jt(kn(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=v.useContext(hn);xt(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=v.useContext(gn),{pathname:a}=wn(),l=On(),s=nn(e,tn(o),a,"path"===r),u=JSON.stringify(s);return v.useEffect((()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})}),[l,u,r,t,n]),null}function Qn(e){return function(e){let t=v.useContext(gn).outlet;return t?v.createElement(Nn.Provider,{value:e},t):t}(e.context)}function Bn(e){jt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function $n({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){jt(!kn(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=v.useMemo((()=>({basename:a,navigator:i,static:o,future:{}})),[a,i,o]);"string"==typeof n&&(n=At(n));let{pathname:s="/",search:u="",hash:c="",state:d=null,key:f="default"}=n,p=v.useMemo((()=>{let e=Xt(s,a);return null==e?null:{location:{pathname:e,search:u,hash:c,state:d,key:f},navigationType:r}}),[a,s,u,c,d,f,r]);return xt(null!=p,`<Router basename="${a}"> is not able to match the URL "${s}${u}${c}" because it does not start with the basename, so the <Router> won't render anything.`),null==p?null:v.createElement(hn.Provider,{value:l},v.createElement(yn.Provider,{children:t,value:p}))}function Wn({children:e,location:t}){return Tn(Kn(e),t)}v.Component;function Kn(e,t=[]){let n=[];return v.Children.forEach(e,((e,r)=>{if(!v.isValidElement(e))return;let i=[...t,r];if(e.type===v.Fragment)return void n.push.apply(n,Kn(e.props.children,i));jt(e.type===Bn,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),jt(!e.props.index||!e.props.children,"An index route cannot have child routes.");let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.hasErrorBoundary||null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=Kn(e.props.children,i)),n.push(o)})),n}var zn="get",Gn="application/x-www-form-urlencoded";function Yn(e){return null!=e&&"string"==typeof e.tagName}var Hn=null;var Jn=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Xn(e){return null==e||Jn.has(e)?e:(xt(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gn}"`),null)}function Zn(e,t){let n,r,i,o,a;if(Yn(l=e)&&"form"===l.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?Xt(a,t):null,n=e.getAttribute("method")||zn,i=Xn(e.getAttribute("enctype"))||Gn,o=new FormData(e)}else if(function(e){return Yn(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Yn(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||a.getAttribute("action");if(r=l?Xt(l,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||zn,i=Xn(e.getAttribute("formenctype"))||Xn(a.getAttribute("enctype"))||Gn,o=new FormData(a,e),!function(){if(null===Hn)try{new FormData(document.createElement("form"),0),Hn=!1}catch(e){Hn=!0}return Hn}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Yn(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=zn,r=null,i=Gn,a=e}var l;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function er(e,t){if(!1===e||null==e)throw new Error(t)}async function tr(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}function nr(e){return null!=e&&"string"==typeof e.page}function rr(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}function ir(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,l=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith("*")&&n[t].params["*"]!==e.params["*"];return"assets"===o?t.filter(((e,t)=>a(e,t)||l(e,t))):"data"===o?t.filter(((t,o)=>{let s=r.routes[t.route.id];if(!s||!s.hasLoader)return!1;if(a(t,o)||l(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function or(e){return[...new Set(e)]}function ar(e,t){let n=new Set,r=new Set(t);return e.reduce(((e,i)=>{if(t&&!nr(i)&&"script"===i.as&&i.href&&r.has(i.href))return e;let o=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(i));return n.has(o)||(n.add(o),e.push({key:o,link:i})),e}),[])}function lr(e){return{__html:e}}Symbol("SingleFetchRedirect");function sr(e){let t="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===t.pathname?t.pathname="_root.data":t.pathname=`${t.pathname.replace(/\/$/,"")}.data`,t}v.Component;function ur({error:e,isOutsideRemixApp:t}){console.error(e);let n,r=v.createElement("script",{dangerouslySetInnerHTML:{__html:'\n console.log(\n "💿 Hey developer 👋. You can provide a way better UX than this when your app throws errors. Check out https://remix.run/guides/errors for more information."\n );\n '}});if(sn(e))return v.createElement(cr,{title:"Unhandled Thrown Response!"},v.createElement("h1",{style:{fontSize:"24px"}},e.status," ",e.statusText),r);if(e instanceof Error)0;else{let t=null==e?"Unknown Error":"object"==typeof e&&"toString"in e?e.toString():JSON.stringify(e);new Error(t)}return v.createElement(cr,{title:"Application Error!",isOutsideRemixApp:t},v.createElement("h1",{style:{fontSize:"24px"}},"Application Error"),v.createElement("pre",{style:{padding:"2rem",background:"hsla(10, 50%, 50%, 0.1)",color:"red",overflow:"auto"}},n.stack),r)}function cr({title:e,renderScripts:t,isOutsideRemixApp:n,children:r}){let{routeModules:i}=vr();return i.root?.Layout&&!n?r:v.createElement("html",{lang:"en"},v.createElement("head",null,v.createElement("meta",{charSet:"utf-8"}),v.createElement("meta",{name:"viewport",content:"width=device-width,initial-scale=1,viewport-fit=cover"}),v.createElement("title",null,e)),v.createElement("body",null,v.createElement("main",{style:{fontFamily:"system-ui, sans-serif",padding:"2rem"}},r,t?v.createElement(Sr,null):null)))}function dr(e){return!e}function fr(){let e=v.useContext(dn);return er(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function pr(){let e=v.useContext(fn);return er(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mr=v.createContext(void 0);function vr(){let e=v.useContext(mr);return er(e,"You must render this element inside a <HydratedRouter> element"),e}function hr(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function yr(e,t,n){if(n&&!wr)return[e[0]];if(t){let n=e.findIndex((e=>void 0!==t[e.route.id]));return e.slice(0,n+1)}return e}function gr({page:e,...t}){let{router:n}=fr(),r=v.useMemo((()=>qt(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?v.createElement(kr,{page:e,matches:r,...t}):null}function br(e){let{manifest:t,routeModules:n}=vr(),[r,i]=v.useState([]);return v.useEffect((()=>{let r=!1;return async function(e,t,n){let r=await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await tr(r,n);return e.links?e.links():[]}return[]})));return ar(r.flat(1).filter(rr).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}function kr({page:e,matches:t,...n}){let r=wn(),{manifest:i,routeModules:o}=vr(),{loaderData:a,matches:l}=pr(),s=v.useMemo((()=>ir(e,t,l,i,r,"data")),[e,t,l,i,r]),u=v.useMemo((()=>ir(e,t,l,i,r,"assets")),[e,t,l,i,r]),c=v.useMemo((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach((e=>{let t=i.routes[e.route.id];t&&t.hasLoader&&(!s.some((t=>t.route.id===e.route.id))&&e.route.id in a&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))})),0===n.size)return[];let u=sr(e);return l&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[a,r,i,s,t,e,o]),d=v.useMemo((()=>function(e,t){return or(e.map((e=>{let n=t.routes[e.route.id];if(!n)return[];let r=[n.module];return n.imports&&(r=r.concat(n.imports)),r})).flat(1))}(u,i)),[u,i]),f=br(u);return v.createElement(v.Fragment,null,c.map((e=>v.createElement("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),d.map((e=>v.createElement("link",{key:e,rel:"modulepreload",href:e,...n}))),f.map((({key:e,link:t})=>v.createElement("link",{key:e,...t}))))}mr.displayName="FrameworkContext";var wr=!1;function Sr(e){let{manifest:t,serverHandoffString:n,isSpaMode:r,renderMeta:i}=vr(),{router:o,static:a,staticContext:l}=fr(),{matches:s}=pr(),u=dr(r);i&&(i.didRenderScripts=!0);let c=yr(s,null,r);v.useEffect((()=>{0}),[]);let d=v.useMemo((()=>{let r=l?`window.__reactRouterContext = ${n};window.__reactRouterContext.stream = new ReadableStream({start(controller){window.__reactRouterContext.streamController = controller;}}).pipeThrough(new TextEncoderStream());`:" ",i=a?`${t.hmr?.runtime?`import ${JSON.stringify(t.hmr.runtime)};`:""}${u?"":`import ${JSON.stringify(t.url)}`};\n${c.map(((e,n)=>`import * as route${n} from ${JSON.stringify(t.routes[e.route.id].module)};`)).join("\n")}\n ${u?`window.__reactRouterManifest = ${JSON.stringify(function(e,t){let n=new Set(t.state.matches.map((e=>e.route.id))),r=t.state.location.pathname.split("/").filter(Boolean),i=["/"];for(r.pop();r.length>0;)i.push(`/${r.join("/")}`),r.pop();i.forEach((e=>{let r=qt(t.routes,e,t.basename);r&&r.forEach((e=>n.add(e.route.id)))}));let o=[...n].reduce(((t,n)=>Object.assign(t,{[n]:e.routes[n]})),{});return{...e,routes:o}}(t,o),null,2)};`:""}\n window.__reactRouterRouteModules = {${c.map(((e,t)=>`${JSON.stringify(e.route.id)}:route${t}`)).join(",")}};\n\nimport(${JSON.stringify(t.entry.module)});`:" ";return v.createElement(v.Fragment,null,v.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:lr(r),type:void 0}),v.createElement("script",{...e,suppressHydrationWarning:!0,dangerouslySetInnerHTML:lr(i),type:"module",async:!0}))}),[]),f=c.map((e=>{let n=t.routes[e.route.id];return n?(n.imports||[]).concat([n.module]):[]})).flat(1),p=wr?[]:t.entry.imports.concat(f);return wr?null:v.createElement(v.Fragment,null,u?null:v.createElement("link",{rel:"modulepreload",href:t.url,crossOrigin:e.crossOrigin}),v.createElement("link",{rel:"modulepreload",href:t.entry.module,crossOrigin:e.crossOrigin}),[...new Set(m)].map((t=>v.createElement("link",{key:t,rel:"modulepreload",href:t,crossOrigin:e.crossOrigin}))),d);var m}function Er(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}var Or="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{Or&&(window.__reactRouterVersion="7.1.3")}catch(e){}function Nr({basename:e,children:t,window:n}){let r=v.useRef();null==r.current&&(r.current=It({window:n,v5Compat:!0}));let i=r.current,[o,a]=v.useState({action:i.action,location:i.location}),l=v.useCallback((e=>{v.startTransition((()=>a(e)))}),[a]);return v.useLayoutEffect((()=>i.listen(l)),[i,l]),v.createElement($n,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var Pr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_r=v.forwardRef((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,state:a,target:l,to:s,preventScrollReset:u,viewTransition:c,...d},f){let p,{basename:m}=v.useContext(hn),h="string"==typeof s&&Pr.test(s),y=!1;if("string"==typeof s&&h&&(p=s,Or))try{let e=new URL(window.location.href),t=s.startsWith("//")?new URL(e.protocol+s):new URL(s),n=Xt(t.pathname,m);t.origin===e.origin&&null!=n?s=n+t.search+t.hash:y=!0}catch(e){xt(!1,`<Link to="${s}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=function(e,{relative:t}={}){jt(kn(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=v.useContext(hn),{hash:i,pathname:o,search:a}=_n(e,{relative:t}),l=o;return"/"!==n&&(l="/"===o?n:rn([n,o])),r.createHref({pathname:l,search:a,hash:i})}(s,{relative:r}),[b,k,w]=function(e,t){let n=v.useContext(mr),[r,i]=v.useState(!1),[o,a]=v.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:c,onTouchStart:d}=t,f=v.useRef(null);v.useEffect((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}}),[e]),v.useEffect((()=>{if(r){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let p=()=>{i(!0)},m=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,f,{}]:[o,f,{onFocus:hr(l,p),onBlur:hr(s,m),onMouseEnter:hr(u,p),onMouseLeave:hr(c,m),onTouchStart:hr(d,p)}]:[!1,f,{}]}(n,d),S=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a}={}){let l=On(),s=wn(),u=_n(e,{relative:o});return v.useCallback((c=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(c,t)){c.preventDefault();let t=void 0!==n?n:Rt(s)===Rt(u);l(e,{replace:t,state:r,preventScrollReset:i,relative:o,viewTransition:a})}}),[s,l,u,n,r,t,e,i,o,a])}(s,{replace:o,state:a,target:l,preventScrollReset:u,relative:r,viewTransition:c});let E=v.createElement("a",{...d,...w,href:p||g,onClick:y||i?e:function(t){e&&e(t),t.defaultPrevented||S(t)},ref:Er(f,k),target:l,"data-discover":h||"render"!==t?void 0:"true"});return b&&!h?v.createElement(v.Fragment,null,E,v.createElement(gr,{page:g})):E}));_r.displayName="Link",v.forwardRef((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:l,...s},u){let c=_n(o,{relative:s.relative}),d=wn(),f=v.useContext(fn),{navigator:p,basename:m}=v.useContext(hn),h=null!=f&&function(e,t={}){let n=v.useContext(pn);jt(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=jr("useViewTransitionState"),i=_n(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Xt(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Xt(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Ht(i.pathname,a)||null!=Ht(i.pathname,o)}(c)&&!0===a,y=p.encodeLocation?p.encodeLocation(c).pathname:c.pathname,g=d.pathname,b=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(g=g.toLowerCase(),b=b?b.toLowerCase():null,y=y.toLowerCase()),b&&m&&(b=Xt(b,m)||b);const k="/"!==y&&y.endsWith("/")?y.length-1:y.length;let w,S=g===y||!r&&g.startsWith(y)&&"/"===g.charAt(k),E=null!=b&&(b===y||!r&&b.startsWith(y)&&"/"===b.charAt(y.length)),O={isActive:S,isPending:E,isTransitioning:h},N=S?e:void 0;w="function"==typeof n?n(O):[n,S?"active":null,E?"pending":null,h?"transitioning":null].filter(Boolean).join(" ");let P="function"==typeof i?i(O):i;return v.createElement(_r,{...s,"aria-current":N,className:w,ref:u,style:P,to:o,viewTransition:a},"function"==typeof l?l(O):l)})).displayName="NavLink";var Tr=v.forwardRef((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=zn,action:l,onSubmit:s,relative:u,preventScrollReset:c,viewTransition:d,...f},p)=>{let m=Cr(),h=function(e,{relative:t}={}){let{basename:n}=v.useContext(hn),r=v.useContext(gn);jt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={..._n(e||".",{relative:t})},a=wn();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:rn([n,o.pathname]));return Rt(o)}(l,{relative:u}),y="get"===a.toLowerCase()?"get":"post",g="string"==typeof l&&Pr.test(l);return v.createElement("form",{ref:p,method:y,action:h,onSubmit:r?s:e=>{if(s&&s(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,l=r?.getAttribute("formmethod")||a;m(r||e.currentTarget,{fetcherKey:t,method:l,navigate:n,replace:i,state:o,relative:u,preventScrollReset:c,viewTransition:d})},...f,"data-discover":g||"render"!==e?void 0:"true"})}));function Ir(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function jr(e){let t=v.useContext(dn);return jt(t,Ir(e)),t}Tr.displayName="Form";var xr=0,Fr=()=>`__${String(++xr)}__`;function Cr(){let{router:e}=jr("useSubmit"),{basename:t}=v.useContext(hn),n=qn("useRouteId");return v.useCallback((async(r,i={})=>{let{action:o,method:a,encType:l,formData:s,body:u}=Zn(r,t);if(!1===i.navigate){let t=i.fetcherKey||Fr();await e.fetch(t,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||a,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:s,body:u,formMethod:i.method||a,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})}),[e,t,n])}new TextEncoder;var Rr=r(3373),Ar=r.n(Rr);function Dr(e){return function(e){if(Array.isArray(e))return qr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return qr(e,t);var n={}.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)?qr(e,t):void 0}}(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 qr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Mr=["symantec","spamexperts-extension"],Lr=["offer-adv-modsecurity-rules","offer-power-pack","offer-business-feature-pack","offer-server-site-security-pack","offer-developer-pack","offer-hosting-pack","offer-web-presence-builder","offer-wordpress-feature-pack","offer-complete-backup-solution","offer-language-pack","wp-toolkit-smart-updates"],Ur=["sftp-backup","s3-backup","google-drive-backup","digitalocean-spaces-backup","one-drive-backup","base-kit","offer-cloud-linux"],Vr={"bitninja-linux-agent":1,kolab:6,mygoodclient:1,"wp-toolkit-smart-updates":1},Qr={ar:"ar","en-US":"en","de-DE":"de","ja-JP":"ja","fr-FR":"fr","nl-NL":"nl","it-IT":"it","es-ES":"es","pt-BR":"pb","da-DK":"da","sv-SE":"sv","nb-NO":"no","ru-RU":"ru","pl-PL":"pl","fi-FI":"fi","tr-TR":"tr","pt-PT":"pt","zh-TW":"zg","zh-CH":"zh","cs-CZ":"cz","el-GR":"el","hu-HU":"hu","ko-KR":"ko","th-TH":"th","ro-RO":"ro","he-IL":"he","id-ID":"id"},Br=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:", ";return e.reduce((function(e,n){return null===e?[n]:[].concat(Dr(e),[t,n])}),null)},$r=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Object.keys(t).map((function(e){return"".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t[e]))})).join("&")},Wr=function(e,t){return 0===e.indexOf(t)},Kr=function(e,t,n){var r=n.shopUrl,i=n.defaultBuyUrlPrefix,o=n.buyUrlNewWindow,a=n.buyUrlCoupon,l=n.pleskKeyId,s=n.retrieveActionPath;if(Wr(e,i)){if(e=r?$r(r,{kn:l,"extension-id":t}):$r(e,{kn:l}),!o){var u=$r("".concat(window.location.protocol,"//").concat(window.location.host).concat(s),{uri:window.location.pathname,code:t});e=$r(e,{r:u})}if(a&&(e=$r(e,{coupon:a})),Jsw&&Jsw.UAT&&Jsw.UAT.getConfig&&Jsw.UAT.getConfig()){var c=Jsw.UAT.getConfig(),d=c.instanceId,f=c.accountId,p=c.sessionId;e=$r(e,{ux:"".concat(d,".").concat(f,".").concat(p)})}}else o=!0;return{buyUrl:e,buyUrlNewWindow:o,defaultBuyUrlPrefix:i}},zr=function(e){return"plesk-ext-catalog-".concat(e)},Gr=r(253);function Yr(e){return Yr="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},Yr(e)}var Hr=["to","children"];function Jr(){return Jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jr.apply(null,arguments)}function Xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zr(r.key),r)}}function Zr(e){var t=function(e,t){if("object"!=Yr(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Yr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yr(t)?t:t+""}function ei(e,t,n){return t=ni(t),function(e,t){if(t&&("object"==Yr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ti()?Reflect.construct(t,n||[],ni(e).constructor):t.apply(e,n))}function ti(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ti=function(){return!!e})()}function ni(e){return ni=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ni(e)}function ri(e,t){return ri=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ri(e,t)}var ii=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ei(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ri(e,t)}(t,e),n=t,r=[{key:"render",value:function(){var e=this.props,t=e.to,n=e.children,r=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,Hr);return Gr.createElement(_r,Jr({to:"/".concat(t)},r),n)}}],r&&Xr(n.prototype,r),i&&Xr(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(v.Component);ii.propTypes={to:y().string,children:y().any};const oi=ii;var ai=r(253),li=function(e){return Math.ceil(e/2)/10},si=function(t){var n=t.loading,r=t.title,i=t.switcher,o=t.className,a=t.headingModifier,l=t.onColumnsChange,s=t.children;return ai.createElement("div",{className:o},ai.createElement("h3",{className:Ar()("section-title",a)},r," ",i),n?ai.createElement("span",{className:"s-btn sb-waiting"},ai.createElement(e.Translate,{className:"text-muted",content:"wait"})):ai.createElement(e.ItemList,{minColumnWidth:220,onColumnsChange:l,gap:"md"},s))};si.propTypes={loading:y().bool,title:y().any,switcher:y().any,className:y().string,headingModifier:y().string,onColumnsChange:y().func,children:y().any};var ui=function(t){var n=t.prefixCls,r=void 0===n?zr("category"):n,i=t.icon,o=t.buy_url,a=t.className,l=t.iconSize,s=void 0===l?"md":l,u=t.name,c=t.version,d=t.release,f=t.code,p=t.categories,m=t.rating,v=t.prices,h=t.license_info,y=t.userLocale,g=void 0===y?"en-US":y,b=t.showPricesVAT,k=void 0!==b&&b,w=On(),S=o&&v?function(e,t){var n=e.filter((function(e){return"1m"===e.billingPeriod}));if(0===n.length&&(n=e.filter((function(e){return"1y"===e.billingPeriod})),0===n.length))return null;n.sort((function(e,t){return e.price.gross-t.price.gross}));var r=0;if(t&&t.origin&&"bundled"===t.origin)return null;if(t&&t.app){var i=1,o=!1;n.forEach((function(e){o||(e.name===t.app&&(r=i,o=!0),i++)}))}return r>=n.length?null:n[r]}(v,h):null;return ai.createElement(e.Item,{className:a,"data-type":"catalog-category-item","data-id":f,onClick:function(){return w("/catalog/package/".concat(f))},hoverable:!0,icon:{src:i,size:s,alt:u,"data-type":"media-figure"},title:u},c&&d?ai.createElement("div",{className:"text-body--small text-color--muted-light"},ai.createElement(e.Translate,{content:"packageVersionList",params:{version:"".concat(c,"-").concat(d)}})):null,p?ai.createElement("div",{className:"text-body--small text-color--muted-light"},Br(p.map((function(t){var n=t.code,r=t.title;return ai.createElement(oi,{to:"catalog/category/".concat(n),className:"ui-link--muted","data-type":"item-category","data-id":n,key:n,onClick:function(e){return e.stopPropagation()}},ai.createElement(e.Translate,{content:"categories.".concat(n),fallback:r}))})))):null,m?ai.createElement("div",{className:"text-nowrap line-height--reset"},ai.createElement(e.Rating,{small:!0,value:li(m.average)}),ai.createElement("span",{className:"text-color--muted text-body--xxx-small"}," (".concat(m.votes,")"))):null,S?ai.createElement("div",{className:"".concat(r,"__price")},ai.createElement("div",{className:"text-body--small ".concat(r,"__price_text")},ai.createElement("span",null,new Intl.NumberFormat(g,{style:"currency",currency:S.currency,minimumFractionDigits:2,maximumFractionDigits:2}).format(k?S.price.gross:S.price.net))),k?ai.createElement("div",{className:"".concat(r,"__price_vat")},ai.createElement("span",null,ai.createElement(e.Translate,{content:"includingVAT"}))):null):null)};ui.propTypes={prefixCls:y().string,icon:y().string,buy_url:y().string,className:y().string,iconSize:y().string,name:y().string,version:y().string,release:y().string,code:y().string,categories:y().array,rating:y().object,prices:y().array,license_info:y().object,userLocale:y().string,showPricesVAT:y().bool};const ci=si;si.Package=J((function(e){var t=e.extension.settings;return{userLocale:t.userLocale,showPricesVAT:t.showPricesVAT}}))(ui);var di=r(253);function fi(e){return fi="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},fi(e)}function pi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,bi(r.key),r)}}function mi(e,t,n){return t=hi(t),function(e,t){if(t&&("object"==fi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vi()?Reflect.construct(t,n||[],hi(e).constructor):t.apply(e,n))}function vi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vi=function(){return!!e})()}function hi(e){return hi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},hi(e)}function yi(e,t){return yi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yi(e,t)}function gi(e,t,n){return(t=bi(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bi(e){var t=function(e,t){if("object"!=fi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=fi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==fi(t)?t:t+""}var ki=function(t){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return gi(e=mi(this,n,[].concat(r)),"state",{mostPopularLimit:12,newAndUpdatedLimit:12,featuredCategoriesLimit:void 0}),gi(e,"handleMostPopularColumnsChange",(function(t){e.setState({mostPopularLimit:t>1?2*Math.min(t,6):3})})),gi(e,"handleNewAndUpdatedColumnsChange",(function(t){e.setState({newAndUpdatedLimit:t>1?2*Math.min(t,6):3})})),gi(e,"handleFeaturedCategoriesColumnsChange",(function(t){e.setState({featuredCategoriesLimit:Math.min(t,6)})})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yi(e,t)}(n,t),r=n,i=[{key:"render",value:function(){if(this.props.loading)return di.createElement("span",{className:"s-btn sb-waiting"},di.createElement(e.Translate,{className:"text-muted",content:"wait"}));var t=this.props,n=t.prefixCls,r=void 0===n?zr("catalog-featured"):n,i=t.featured,o=t.mostPopular,a=t.newAndUpdated,l=t.categories,s=t.onPackageSelect,u=t.ratingIsEnabled,c=t.ratingMinVotes,d=this.state,f=d.mostPopularLimit,p=d.newAndUpdatedLimit,m=d.featuredCategoriesLimit,v=o.slice(0,f),h=a.filter((function(e){var t=e.code;return!v.some((function(e){return e.code===t}))})).slice(0,p),y=l.filter((function(e){return e.featured})).slice(0,m);return di.createElement("div",{className:r},i.length?di.createElement(e.Carousel,null,i.map((function(e){var t=e.code,n=e.name,i=e.promo,o=i.image,a=i.text;return di.createElement("figure",{className:"".concat(r,"__slide"),key:t},di.createElement("img",{src:o,alt:n,width:"320"}),di.createElement(oi,{className:Ar()("".concat(r,"__overlay"),"".concat(r,"__overlay--cover"),"".concat(r,"__action")),to:"catalog/package/".concat(t)}),di.createElement("figcaption",{className:Ar()("".concat(r,"__overlay"),"".concat(r,"__overlay--bottom"),"".concat(r,"--color-inverse"))},a))}))):null,di.createElement(e.Grid,{minColumnWidth:280,maxColumnsNumber:h.length?2:1,gap:"xl"},v.length?di.createElement(e.GridCol,{className:"flex flex--column"},di.createElement(ci,{title:di.createElement(oi,{className:"section-title__link",to:"catalog/most-popular"},di.createElement(e.Translate,{content:"catalogBlockMostPopularTitle"})),className:"flex--grow",headingModifier:"section-title--divider",onColumnsChange:this.handleMostPopularColumnsChange},v.map((function(e){var t=e.icon,n=e.buy_url,r=e.name,i=e.code,o=e.categories,a=e.rating,l=e.prices,d=e.license_info;return di.createElement(ci.Package,{key:i,iconSize:"xl",buy_url:n,code:i,icon:t,name:r,categories:o,rating:u&&a.votes>=c?a:null,prices:l,license_info:d,onClick:s})}))),di.createElement(oi,{className:"ui-link--muted",to:"catalog/most-popular"},di.createElement(e.Translate,{content:"catalogBlockMostPopularMoreLink"}))):null,h.length?di.createElement(e.GridCol,{className:"flex flex--column"},di.createElement(ci,{title:di.createElement(oi,{className:"section-title__link",to:"catalog/new-and-updated"},di.createElement(e.Translate,{content:"catalogBlockNewAndUpdatedTitle"})),className:"flex--grow",headingModifier:"section-title--divider",onColumnsChange:this.handleNewAndUpdatedColumnsChange},h.map((function(e){var t=e.icon,n=e.buy_url,r=e.name,i=e.code,o=e.categories,a=e.rating,l=e.prices,d=e.license_info;return di.createElement(ci.Package,{key:i,iconSize:"xl",code:i,icon:t,buy_url:n,name:r,categories:o,rating:u&&a&&a.votes>=c?a:null,prices:l,license_info:d,onClick:s})}))),di.createElement(oi,{className:"ui-link--muted",to:"catalog/new-and-updated"},di.createElement(e.Translate,{content:"catalogBlockNewAndUpdatedMoreLink"}))):null),y.length?di.createElement("div",null,di.createElement("h3",{className:"section-title section-title--divider"},di.createElement(oi,{className:"section-title__link",to:"catalog/category"},di.createElement(e.Translate,{content:"catalogBlockFeaturedCategoriesTitle"}))),di.createElement(e.Grid,{className:"".concat(r,"__categories"),minColumnWidth:320,maxColumnsNumber:y.length,gap:"md",onColumnsChange:this.handleFeaturedCategoriesColumnsChange},y.map((function(t){var n=t.code,i=t.title,o=t.description,a=t.color,l=t.icon;return di.createElement(e.GridCol,{key:n},di.createElement(oi,{to:"catalog/category/".concat(n),className:Ar()("media","media--large","".concat(r,"__categories-item")),style:{backgroundColor:a}},di.createElement("figure",{className:"media__figure"},di.createElement(e.Icon,{size:"xxl"},di.createElement("img",{src:l,alt:i}))),di.createElement("div",{className:"media__body"},di.createElement("h4",{className:"media__title"},di.createElement(e.Translate,{content:"categories.".concat(n),fallback:i})),di.createElement("p",null,di.createElement(e.Translate,{content:"categoriesDescription.".concat(n),fallback:o})))))}))),di.createElement(oi,{className:"ui-link--muted",to:"catalog/category"},di.createElement(e.Translate,{content:"catalogBlockFeaturedCategoriesTitleMoreLink"}))):null)}}],i&&pi(r.prototype,i),o&&pi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);ki.propTypes={prefixCls:y().string,featured:y().array.isRequired,mostPopular:y().array.isRequired,newAndUpdated:y().array.isRequired,categories:y().array.isRequired,loading:y().bool,onPackageSelect:y().func,ratingIsEnabled:y().bool,ratingMinVotes:y().number};const wi=ki;var Si=r(253),Ei=function(t){var n=t.prefixCls,r=void 0===n?zr("category"):n,i=t.code,o=t.title,a=t.packages,l=t.countPackages,s=t.ratingIsEnabled,u=t.ratingMinVotes;return Si.createElement("div",{className:r,"data-type":"catalog-categories-node","data-id":i},Si.createElement("h4",{className:"".concat(r,"__title")},Si.createElement(oi,{className:"".concat(r,"__title-link"),to:"catalog/category/".concat(i),"data-type":"catalog-categories-title"},Si.createElement(e.Translate,{content:"categories.".concat(i),fallback:o}))),Si.createElement(e.ItemList,{gap:"xs"},a.map((function(e){var t=e.icon,n=e.buy_url,r=e.code,i=e.name,o=e.rating,a=e.version,l=e.release,c=e.fake,d=e.prices,f=e.license_info;return Si.createElement(ci.Package,{key:r,iconSize:"md",code:r,icon:t,buy_url:n,name:i,version:!c&&a,release:!c&&l,rating:s&&o.votes>=u?o:null,prices:d,license_info:f})}))),l>a.length?Si.createElement("div",{className:"".concat(r,"__bottom")},Si.createElement(oi,{to:"catalog/category/".concat(i),className:"ui-link--muted","data-type":"catalog-categories-all-link"},Si.createElement(e.Translate,{content:"viewAll"}))):null)};Ei.propTypes={prefixCls:y().string,code:y().string,title:y().string,packages:y().array,countPackages:y().number,ratingIsEnabled:y().bool,ratingMinVotes:y().string};const Oi=Ei;var Ni=r(253);function Pi(e){return Pi="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},Pi(e)}function _i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ci(r.key),r)}}function Ti(e,t,n){return t=ji(t),function(e,t){if(t&&("object"==Pi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ii()?Reflect.construct(t,n||[],ji(e).constructor):t.apply(e,n))}function Ii(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ii=function(){return!!e})()}function ji(e){return ji=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ji(e)}function xi(e,t){return xi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xi(e,t)}function Fi(e,t,n){return(t=Ci(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ci(e){var t=function(e,t){if("object"!=Pi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pi(t)?t:t+""}var Ri=function(e){var t=e.figure,n=e.body;return Ni.createElement("div",{className:"media media--large media--center"},Ni.createElement("figure",{className:"media__figure"},t),Ni.createElement("div",{className:"media__body"},n))};Ri.propTypes={figure:y().node.isRequired,body:y().node.isRequired};var Ai=function(t){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Fi(e=Ti(this,n,[].concat(r)),"state",{collapsed:!0}),Fi(e,"handleToggle",(function(){e.setState((function(e){return{collapsed:!e.collapsed}}))})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xi(e,t)}(n,t),r=n,i=[{key:"render",value:function(){var t=this,n=this.props,r=n.prefixCls,i=void 0===r?zr("category-switcher"):r,o=n.categories,a=n.currentCategory,l=Ni.createElement(e.Menu,{className:"".concat(i,"__menu")},Ni.createElement("li",{className:"".concat(i,"__menu-content")},Ni.createElement("div",{className:"".concat(i,"__header")},Ni.createElement(Ri,{figure:Ni.createElement(oi,{to:"catalog/category"},Ni.createElement(e.Icon,{size:"md"},Ni.createElement("img",{src:"/modules/catalog/images/extensions-categories-2fa2de7.png",alt:""}))),body:Ni.createElement(oi,{to:"catalog/category"},Ni.createElement(e.Translate,{content:"allCategories"}))})),Ni.createElement("div",{className:"".concat(i,"__title")},Ni.createElement(Ri,{figure:Ni.createElement(e.Icon,{size:"md"},Ni.createElement("img",{src:"/modules/catalog/images/select-category-78e2300.png",alt:""})),body:Ni.createElement(e.Translate,{content:"selectCategory"})})),Ni.createElement("ul",{className:"".concat(i,"__categories")},o.map((function(n){var r=n.code,o=n.title,l=Ni.createElement(e.Translate,{content:"categories.".concat(r),fallback:o});return a!==r&&(l=Ni.createElement(oi,{to:"catalog/category/".concat(r),onClick:t.handleToggle},l)),Ni.createElement("li",{className:"".concat(i,"__category"),key:r},l)})))));return Ni.createElement(e.Dropdown,{menu:l,className:i},Ni.createElement(e.Button,{caret:!0,className:"".concat(i,"__button")}))}}],i&&_i(r.prototype,i),o&&_i(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);Ai.propTypes={prefixCls:y().string,categories:y().array,currentCategory:y().string};const Di=Ai;var qi=r(253);function Mi(e){return Mi="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},Mi(e)}function Li(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ui(r.key),r)}}function Ui(e){var t=function(e,t){if("object"!=Mi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Mi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Mi(t)?t:t+""}function Vi(e,t,n){return t=Bi(t),function(e,t){if(t&&("object"==Mi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Qi()?Reflect.construct(t,n||[],Bi(e).constructor):t.apply(e,n))}function Qi(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Qi=function(){return!!e})()}function Bi(e){return Bi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bi(e)}function $i(e,t){return $i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$i(e,t)}var Wi=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Vi(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$i(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){window.Cleverbridge.init("plesk-ext-catalog-upsell-button__cbOrderForm",{debug:!1,storeDomain:"store.plesk.com",showLoadAnimation:"true",iframe:{mode:"embed",width:"100%",height:"100%",style:"border: 0;"}}),window.Cleverbridge.on("pageload",(function(){window.Cleverbridge.setHeight(this.getContentHeight()+50)}));var e=this.props.onPurchase;window.Cleverbridge.on("purchasecomplete",(function(){e()})),window.Cleverbridge.handleCTAClick(this.props.checkoutLink)}},{key:"componentWillUnmount",value:function(){window.Cleverbridge.reset()}},{key:"render",value:function(){var e=this.props.divPrefixCls;return qi.createElement("div",{id:"".concat(e,"__cbOrderForm")})}}])&&Li(n.prototype,r),i&&Li(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r,i}(v.Component);Wi.propTypes={checkoutLink:y().string,divPrefixCls:y().string,onPurchase:y().func};const Ki=Wi;var zi=r(253);function Gi(e){return Gi="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},Gi(e)}function Yi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,to(r.key),r)}}function Hi(e,t,n){return t=Xi(t),function(e,t){if(t&&("object"==Gi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ji()?Reflect.construct(t,n||[],Xi(e).constructor):t.apply(e,n))}function Ji(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ji=function(){return!!e})()}function Xi(e){return Xi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Xi(e)}function Zi(e,t){return Zi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Zi(e,t)}function eo(e,t,n){return(t=to(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function to(e){var t=function(e,t){if("object"!=Gi(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Gi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gi(t)?t:t+""}var no=zr("preferences"),ro=function(t){function n(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return eo(t=Hi(this,n,[].concat(i)),"state",{showPricesVAT:t.props.showPricesVAT,country:t.props.country,optionsDrawerIsOpen:!1,errors:{}}),eo(t,"handleSubmit",(function(n){var r=window.location.pathname;t.setState({showPricesVAT:"true"===n.showPricesVAT,country:n.country}),"true"!==n.showPricesVAT||"XX"!==n.country?(new Ajax.Request("/modules/catalog/index.php/vat-preferences-form",{method:"post",parameters:n,on403:function(){t.toaster.add({intent:"error",message:zi.createElement(e.Translate,{content:"vatApplyPermissionDenied"})})},onSuccess:function(){t.toaster.add({intent:"success",message:zi.createElement(e.Translate,{content:"vatApplied"})}),window.location=r},onFailure:function(){t.toaster.add({intent:"error",message:zi.createElement(e.Translate,{content:"vatApplyFailed"})})}}),t.setState({optionsDrawerIsOpen:!1})):t.setState({errors:{country:{countryNotSelected:zi.createElement(e.Translate,{content:"vatCountryNotSpecified"})}}})})),eo(t,"renderInitScreenCompliment",(function(){return t.props.initScreen?zi.createElement("div",null,zi.createElement("h3",null,zi.createElement(e.Translate,{content:"vatInitScreenTitle"})),zi.createElement(e.Translate,{content:"vatInitScreenDescription"})):null})),eo(t,"renderVatPreferencesSection",(function(){var n=t.state,r=n.showPricesVAT,i=n.country,o=t.props.countries;return zi.createElement(e.Section,{title:zi.createElement(e.Translate,{className:"".concat(no,"__section-title"),content:"vatInitScreenQuestion"})},zi.createElement(e.FormFieldRadioButtons,{name:"showPricesVAT",value:r?"true":"false",options:[{value:"false",label:zi.createElement(e.Translate,{content:"vatInitScreenBusinessCustomer"}),description:zi.createElement(e.Translate,{content:"vatInitScreenBusinessDescription"})},{value:"true",label:zi.createElement(e.Translate,{content:"vatInitScreenPrivateCustomer"}),description:zi.createElement(e.Translate,{content:"vatInitScreenPrivateDescription"}),indentFields:[zi.createElement(e.FormField,{name:"country",label:zi.createElement(e.Translate,{content:"vatInitScreenSelectLabel"}),required:!0,description:zi.createElement(e.Translate,{content:"vatInitScreenSelectDescription"}),value:i,key:"country"},(function(e){var t=e.getName,n=e.getValue,r=e.setValue;return zi.createElement("select",{name:t(),value:n(),onChange:function(e){return r(e.target.value)}},Object.keys(o).map((function(e){return zi.createElement("option",{value:e,key:e},o[e])})))}))]}]}))})),eo(t,"renderSimpleForm",(function(){var n=t.state,r=n.country,i=n.showPricesVAT;return zi.createElement(e.Form,{name:"ExtensionCatalogPreferencesForm",className:"".concat(no,"__simple-form"),onSubmit:t.handleSubmit,applyButton:!1,submitButton:{arrow:"forward",children:zi.createElement(e.Translate,{content:"saveAndProceed"})},cancelButton:!1,vertical:!0,values:{showPricesVAT:i?"true":"false",country:r}},t.renderVatPreferencesSection())})),eo(t,"renderButtonWithDrawer",(function(){var n=t.state,r=n.country,i=n.showPricesVAT,o=n.errors;return zi.createElement("div",null,zi.createElement(e.Action,{icon:"sliders",onClick:function(){return t.setState({optionsDrawerIsOpen:!0})}}),zi.createElement(e.Drawer,{"data-type":"settings-drawer",title:zi.createElement(e.Translate,{content:"settingsDrawTitle"}),isOpen:t.state.optionsDrawerIsOpen,onClose:function(){return t.setState({optionsDrawerIsOpen:!1})},form:{onSubmit:function(e){t.handleSubmit(e)},values:{showPricesVAT:i?"true":"false",country:r},vertical:!0,applyButton:!1,errors:o}},t.renderVatPreferencesSection()))})),eo(t,"renderCatalogPreferencesForm",(function(){return t.props.initScreen?t.renderSimpleForm():t.renderButtonWithDrawer()})),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zi(e,t)}(n,t),r=n,(i=[{key:"render",value:function(){var t=this;return zi.createElement("div",null,zi.createElement(e.Toaster,{ref:function(e){return t.toaster=e}}),this.renderInitScreenCompliment(),this.renderCatalogPreferencesForm())}}])&&Yi(r.prototype,i),o&&Yi(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);ro.propTypes={countries:y().object,country:y().string,initScreen:y().bool,showPricesVAT:y().bool};const io=ro;var oo=r(253),ao=["onSearch","onPackageSelect","onCategorySelect"];function lo(e){return lo="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},lo(e)}function so(){return so=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},so.apply(null,arguments)}function uo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return co(e,t);var n={}.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)?co(e,t):void 0}}(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 co(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,go(r.key),r)}}function po(e,t,n){return t=vo(t),function(e,t){if(t&&("object"==lo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,mo()?Reflect.construct(t,n||[],vo(e).constructor):t.apply(e,n))}function mo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(mo=function(){return!!e})()}function vo(e){return vo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vo(e)}function ho(e,t){return ho=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ho(e,t)}function yo(e,t,n){return(t=go(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function go(e){var t=function(e,t){if("object"!=lo(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lo(t)?t:t+""}var bo=function(t){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return yo(e=po(this,n,[].concat(r)),"state",{value:"",loading:!1,results:[]}),yo(e,"requestId",0),yo(e,"timeout",null),yo(e,"deferredSelect",!1),yo(e,"handleTyping",(function(t,n){e.deferredSelect=!1,e.timeout&&(clearTimeout(e.timeout),e.timeout=null),t!==e.state.value&&(e.requestId++,e.timeout=setTimeout((function(){return e.search(e.requestId,t,n)}),300))})),yo(e,"handleItemSelect",(function(t,n){var r=e.state,i=r.results,o=r.loading,a=e.props,l=a.onPackageSelect,s=a.onCategorySelect,u=uo(i.filter((function(e){return e.code===t})),1)[0];e.deferredSelect=o,u&&!e.deferredSelect&&("catalog"===u.type?l(u.code):"category"===u.type&&s(u.code),n(),e.setState({value:"",results:[]}))})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ho(e,t)}(n,t),r=n,i=[{key:"search",value:function(e,t,n){var r=this,i=this.props.onSearch;this.timeout&&(this.timeout=null),t?(this.setState({value:t,loading:!0}),i(t).then((function(t){var i=t.data.search;e===r.requestId&&(r.setState({loading:!1,results:i}),r.deferredSelect&&i&&i.length&&r.handleItemSelect(i[0].code,n))}))):this.setState({value:"",results:[],loading:!1})}},{key:"renderResults",value:function(){var t=this.state,n=t.results,r=t.value,i=t.loading;return r&&0===n.length&&!i?oo.createElement(e.Menu,null,oo.createElement(e.MenuBaseItem,null,oo.createElement(e.Translate,{content:"filterResultsNotFound"}))):n.length>0?oo.createElement(e.Menu,null,n.map((function(t){var n=t.code,r=t.name,i=t.icon,o=t.type;return oo.createElement(e.MenuItem,{key:n,icon:i?oo.createElement(e.Icon,{src:i}):null},r,"category"===o?oo.createElement(e.Translate,{content:"searchResultsCategory"}):null)}))):null}},{key:"render",value:function(){var t=this.state.loading,n=this.props,r=(n.onSearch,n.onPackageSelect,n.onCategorySelect,function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(n,ao));return oo.createElement(e.SearchBar,so({onSearch:null,onTyping:this.handleTyping,onItemSelect:this.handleItemSelect,results:this.renderResults(),loading:t,inputProps:{"data-type":"extension-filter-input"},"data-type":"extension-filter-search-bar"},r))}}],i&&fo(r.prototype,i),o&&fo(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);bo.propTypes={onSearch:y().func.isRequired,onPackageSelect:y().func.isRequired,onCategorySelect:y().func.isRequired};const ko=bo;var wo=r(253);function So(e){return So="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},So(e)}function Eo(e){return function(e){if(Array.isArray(e))return Oo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Oo(e,t);var n={}.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)?Oo(e,t):void 0}}(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 Oo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xo(r.key),r)}}function Po(e,t,n){return t=To(t),function(e,t){if(t&&("object"==So(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_o()?Reflect.construct(t,n||[],To(e).constructor):t.apply(e,n))}function _o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_o=function(){return!!e})()}function To(e){return To=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},To(e)}function Io(e,t){return Io=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Io(e,t)}function jo(e,t,n){return(t=xo(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xo(e){var t=function(e,t){if("object"!=So(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=So(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==So(t)?t:t+""}var Fo=function(t){function n(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),jo(t=Po(this,n,[e]),"state",{showPopup:!1,myRating:null,rateMode:!1,tmpRating:null,loading:!1}),jo(t,"handleTogglePopup",(function(e){if(t.state.showPopup)t.setState({showPopup:!1});else{t.popupOffset=(e.target.offsetWidth-t.popupWidth)/2;var n=setTimeout((function(){t.setState({showPopup:!0,loading:!0})}),200);t.props.onVoteLoad(t.props.uuid).then((function(e){var r=e.data.getVote;clearTimeout(n),t.setState({myRating:r,showPopup:!0,loading:!1})}))}})),jo(t,"toggleMode",(function(e){t.popupToggleDelayed||t.setState({rateMode:e})})),t.popupToggleDelayed=!1,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Io(e,t)}(n,t),r=n,(i=[{key:"vote",value:function(e,t){var n=this;t&&document.getElementById(t.htmlFor).classList.add("checked");var r=+e;this.popupToggleDelayed=!0,setTimeout((function(){n.setState({showPopup:!1,rateMode:!1,myRating:r}),n.popupToggleDelayed=!1,n.props.onVote(n.props.uuid,r,n.context.locale.lmsg("ratingVoted",{score:n.getRatingText(r)}))}),400)}},{key:"removeVote",value:function(){this.props.onRemoveVote(this.props.uuid,this.context.locale.lmsg("ratingRemoved")),this.setState({showPopup:!1,rateMode:!1,myRating:null})}},{key:"getRatingText",value:function(e){return this.context.locale.lmsg("ratingValue".concat(e/20))}},{key:"onStarMouseOver",value:function(e){this.setState({tmpRating:e})}},{key:"generateId",value:function(){return 1e6*Math.random()|0}},{key:"normalizeRating",value:function(e){return Math.ceil(e/2)/10}},{key:"render",value:function(){var t=this,n=this.props,r=n.rating,i=n.isInstalled,o=n.ratingMinVotes,a=n.fake,l=this.generateId(),s=i||a,u=void 0===e.Rating.defaultProps?"pul-rating":e.Rating.defaultProps.baseClassName,c=zr("extension-overview"),d=[wo.createElement("div",{className:"popup-box__spotlight",key:"spotlight"},this.state.rateMode?wo.createElement("p",null,wo.createElement(e.Translate,{content:"ratingClickToRatingMessage",params:{text:this.getRatingText(this.state.tmpRating)}})):this.state.myRating>0?wo.createElement("p",null,wo.createElement(e.Translate,{content:"ratingRatedMessage",params:{text:this.getRatingText(this.state.myRating)}})):wo.createElement("p",null,wo.createElement(e.Translate,{content:"ratingInstalledMessage"})),wo.createElement("div",{className:Ar()(u,"".concat(u,"--stars")),onMouseEnter:function(){return t.toggleMode(!0)},onMouseLeave:function(){return t.toggleMode(!1)}},wo.createElement("div",{className:"".concat(u,"__rates")},[100,80,60,40,20].reduce((function(e,n){var r=!t.state.rateMode&&n===t.state.myRating||t.state.rateMode&&n===t.state.tmpRating;return[].concat(Eo(e),[wo.createElement("input",{key:"rating-".concat(n,"-").concat(r),id:"rating-".concat(n,"-").concat(r,"-").concat(l),type:"radio",defaultChecked:r,name:"rating-option",value:n}),wo.createElement("label",{key:"rating-".concat(n),htmlFor:"rating-".concat(n,"-").concat(r,"-").concat(l),className:"".concat(u,"__indicator"),onMouseOver:function(){return t.onStarMouseOver(n)},onClick:function(e){return t.vote(n,e.target)}})])}),[])))),wo.createElement("p",{key:"popover-footer"},this.state.myRating>0?wo.createElement("a",{"data-id":"extension-link-rate-remove",onClick:function(){return t.removeVote()}},wo.createElement(e.Translate,{content:"ratingRemoveButton"})):0===r.votes?wo.createElement(e.Translate,{content:"ratingNotEnoughMessage"}):null)];return wo.createElement("div",null,r.votes>=o?[wo.createElement("div",{className:"".concat(c,"__details-item--rating-stars"),"data-type":"extension-rating-stars",key:"rating-stars"},wo.createElement(e.Rating,{value:this.normalizeRating(r.average)}),wo.createElement("span",{className:"text-color--muted text-body--x-small"}," (".concat(r.votes,")")))]:wo.createElement("span",{className:"s-btn text-wrap"},wo.createElement(e.Icon,{src:"/modules/catalog/images/popular-fbd4adc.png"})," ",wo.createElement(e.Translate,{content:s?"ratingNotRatedMessage":"ratingNotInstalledMessage"})),wo.createElement(e.Popover,{target:wo.createElement("a",{className:"toggler","data-id":"extension-link-rate",onClick:this.handleTogglePopup},wo.createElement(e.Translate,{content:"ratingRateLabel"})),visible:this.state.showPopup,title:wo.createElement(e.Translate,{content:"ratingRateMessage"}),className:"".concat(c,"__popover"),onClose:this.handleTogglePopup,"data-type":"extension-popover"},this.state.loading?wo.createElement(e.ContentLoader,{text:wo.createElement(e.Translate,{content:"wait"})}):wo.createElement("div",{style:{"text-align":"center"}},s?d:wo.createElement(e.Translate,{content:"ratingInstallRequiredMessage"}))))}}])&&No(r.prototype,i),o&&No(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);Fo.propTypes={uuid:y().string,rating:y().object,onVoteLoad:y().func,onVote:y().func,onRemoveVote:y().func,isInstalled:y().bool,ratingMinVotes:y().string,fake:y().bool},Fo.contextType=e.LocaleContext;const Co=Fo,Ro="/modules/catalog/images/disable-e2675c5.png",Ao="/modules/catalog/images/info-da41409.png";var Do=r(253),qo=["children","prefixCls","installing","onInstall","uuid"];function Mo(){return Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mo.apply(null,arguments)}var Lo=function(t){var n=t.children,r=t.prefixCls,i=t.installing,o=t.onInstall,a=t.uuid,l=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,qo);return Do.createElement(e.Button,Mo({icon:"arrow-down-tray",intent:"primary",className:"".concat(r,"__details-price--action-button"),state:i?"loading":null,onClick:!i&&function(){return o(a)}},l),i?Do.createElement(e.Translate,{content:"wait"}):n)};Lo.propTypes={children:y().any,prefixCls:y().string,installing:y().bool,onInstall:y().func,uuid:y().string};const Uo=Lo,Vo="/modules/catalog/images/indicator-ec13272.gif";var Qo=r(253),Bo=zr("extension-overview-alert"),$o=function(t){var n=t.icon,r=t.children,i=t.className;return Qo.createElement(e.Alert,{intent:"info",className:(0,e.classNames)(Bo,i)},n,Qo.createElement("div",{className:"".concat(Bo,"__message")},r))};$o.propTypes={icon:y().any,children:y().any,className:y().any};var Wo=function(t){var n=t.licenseInfo,r=t.retrievingKeys,i=n||{},o=i.purchased,a=i.keyNumber,l=i.orderAction,s=i.source;return r?Qo.createElement($o,{icon:Qo.createElement(e.Icon,{key:"icon",src:Vo,className:"".concat(Bo,"__icon")})},Qo.createElement(e.Translate,{content:"wait"})):"adjust"===l?(s&&({ekn:a,a:"adjust"}.source=s),Qo.createElement($o,{className:"".concat(Bo,"--responsive")},Qo.createElement(e.Translate,{content:"licenseAdjust"}))):"upgrade"===l?(s&&({ekn:a,a:"upgrade"}.source=s),Qo.createElement($o,{className:"".concat(Bo,"--responsive")},Qo.createElement(e.Translate,{content:"licenseUpgrade"}))):l?Qo.createElement($o,{className:"".concat(Bo,"--responsive")},Qo.createElement(e.Translate,{content:"licenseBuyMore"})):o?Qo.createElement($o,{icon:Qo.createElement(e.Icon,{src:"/modules/catalog/images/license-installed-d172334.png",className:"".concat(Bo,"__icon")})},Qo.createElement(e.Translate,{content:"licensePurchased"})):Qo.createElement($o,{className:"".concat(Bo,"--responsive")},Qo.createElement(e.Translate,{content:"licenseBuy"}))};Wo.propTypes={licenseInfo:y().object,retrievingKeys:y().bool};const Ko=Wo;var zo=r(253),Go=function(e){var t=e.prefixCls,n=e.className,r=e.title,i=void 0===r?null:r,o=e.children;return zo.createElement("div",{className:Ar()("".concat(t,"__section"),n)},i&&zo.createElement("h4",{"data-type":"extension-overview-title",className:"".concat(t,"__section-title")},i),o)};Go.propTypes={prefixCls:y().string,className:y().string,title:y().any,children:y().any};const Yo=Go;var Ho=r(253),Jo=zr("extension-overview-actions"),Xo=function(t){var n,r,i,o,a,l=t.data,s=t.currentOperation,u=t.onStatus,c=t.onRemove,d=On(),f=(0,e.useTranslate)(),p=function(e){u(l,e,f)},m=function(){y("ENABLE"),p(!0)},v=function(){var e=l.name;Jsw.messageBox.show({type:Jsw.messageBox.TYPE_YESNO,buttonTitles:{yes:f("messageBoxButtonYesDisable"),no:f("messageBoxButtonNo"),wait:f("messageBoxButtonWait")},text:f("confirmOnDisable",{name:e}),subtype:"toggle",onYesClick:function(){y("DISABLE"),p(!1)}})},h=function(){var e=l.name;Jsw.messageBox.show({type:Jsw.messageBox.TYPE_YESNO,buttonTitles:{yes:f("messageBoxButtonYesRemove"),no:f("messageBoxButtonNo"),wait:f("messageBoxButtonWait")},text:f("confirmOnDelete",{name:e}),subtype:"delete",onYesClick:function(){y("REMOVE"),c(l,f,d)}})},y=function(e){Jsw&&Jsw.UAT&&Jsw.UAT.dispatchAction(e,{uuid:l.uuid,version:l.version,release:l.release})};return Ho.createElement("div",{className:Jo},(n=l.is_active,r=l.is_legacy,i=[],o="status"===s?"loading":null,a="remove"===s?"loading":null,n&&!r&&i.push(Ho.createElement(e.Button,{icon:"circle-diagonal",tooltip:f("disableTooltip"),"data-type":"disable-button",onClick:v,key:"disable-button",state:o})),n||r||i.push(Ho.createElement(e.Button,{icon:"check-mark-circle",tooltip:f("enableTooltip"),"data-type":"enable-button",onClick:m,key:"enable-button",state:o})),i.push(" "),i.push(Ho.createElement(e.Button,{icon:"recycle",tooltip:f("removeTooltip"),"data-type":"remove-button",onClick:h,key:"remove-button",state:a})),i))};Xo.propTypes={data:y().object.isRequired,onStatus:y().func.isRequired,onRemove:y().func.isRequired,currentOperation:y().string};const Zo=Xo;var ea=r(253),ta=["autoinplace"];function na(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ra(e,t);var n={}.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)?ra(e,t):void 0}}(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 ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ia=zr("upsell-button"),oa=function(t){var n=t.autoinplace,r=void 0!==n&&n,i=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,ta),o=na((0,v.useState)(r),2),a=o[0],l=o[1],s=na((0,v.useState)(!1),2),u=s[0],c=s[1],d=(0,e.useTranslate)(),f=Pn().coupon,p=function(){return Lr.includes(I)},m=function(e){if(Jsw&&Jsw.UAT){var t={code:i.extensionCode};Jsw.UAT.dispatchAction(e,t)}},h=function(){var e=i.buyInfo.retrieveActionPath;new Ajax.Request(e,{method:"post",parameters:{code:i.extensionCode}})},y=function(){var e=i.buyInfo.retrieveAndInstallActionPath;new Ajax.Request(e,{method:"post",parameters:{code:i.extensionCode}})},g=i.price,b=i.planTitle,k=i.buyUrl,w=i.currency,S=void 0===w?"USD":w,E=i.country,O=void 0===E?"US":E,N=i.productId,P=i.defaultBuyUrlPrefix,_=i.buyUrlNewWindow,T=i.licenseInfo,I=i.extensionCode,j=i.className,x=i.extensionName,F=i.extensionIcon,C=i.userLocale,R=void 0===C?"en-US":C,A=i.email,D=i.embeddedPurchases,q=void 0!==D&&D,M=i.period,L=T||{},U=L.purchased,V=L.keyNumber,Q=L.orderAction,B=L.source;if(U&&!Q)return null;var $={currency:S,country:O};N&&($.productId=N),I in Vr&&($["x-duration"]=Vr[I]);var W=q&&N&&!Q&&Wr(k,P)&&!Mr.includes(I)&&!Ur.includes(I)&&void 0!==window.Cleverbridge;W&&($.cfg="base_iframe_or",$.email=A,"string"==typeof R&&($.language=R in Qr?Qr[R]:"en"),$["x-pselection"]="hide",r&&f&&($.coupon=f));var K="shopping-cart",z=Q&&"upgrade"!==Q||_?"_blank":null;"upgrade"===Q?($.ekn=V,$.a="upgrade",B&&($.source=B),K="arrow-up-in"):"adjust"===Q?($.ekn=V,$.a="adjust",B&&($.source=B),K="arrow-up-in"):$.a="buy";var G,Y=$r(k,$),H=function(){var t=!i.isInstalled&&!Lr.includes(i.extensionCode),n=function(e){return"started"===e?"running":["not_started","running","done","warning","error","canceled"].indexOf(e)>=0?e:"not_started"},r=[{title:ea.createElement(e.Translate,{content:"upsellDrawerRetrieving"}),status:"not_started"}];if(t&&r.push({title:ea.createElement(e.Translate,{content:"upsellDrawerInstalling"}),status:"not_started"}),!u)return r;if(p())return r[0].status=n(i.retrieveStatus),r;var o=i.retrieveAndInstallSteps;return o?(r[0].status=n(o.retrieve.status),t&&(r[1].status=n(o.install.status)),r):r}(),J=0===H.filter((function(e){return"done"!==e.status})).length,X=J?ea.createElement(e.Translate,{content:"upsellDrawerDoneTitle"}):ea.createElement(e.Translate,{content:"upsellDrawerProgressTitle"});return ea.createElement("div",{className:ia},ea.createElement(e.Button,{component:"a",intent:"primary",icon:K,className:(0,e.classNames)(j,ia),href:!W&&Y,target:z,"data-type":"upsell-button",onClick:function(e){e.stopPropagation(),W&&l(!0),m("CLICK_EXT_BUY")},tooltip:d((G=Q,G?"adjust"===G?"licenseAdjust":"upgrade"===G?"licenseUpgrade":"licenseBuyMore":"licenseBuy"))},ea.createElement(e.Translate,{content:function(e){return"adjust"===e?"buttonAdjust":e?"buttonUpgrade":"buttonBuy"}(Q)}),ea.createElement("span",{className:"".concat(ia,"__price-text")},function(e,t,n){return e?new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:2}).format(e):null}(g,S,R))),W?ea.createElement(e.Drawer,{"data-type":"upsell-drawer",title:ea.createElement(e.Translate,{content:"upsellDrawerTitle"}),size:"md",isOpen:a,onClose:function(e){if(e&&e.stopPropagation(),l(!1),window.Cleverbridge.reset(),J){var t=p()?"/modules/catalog/index.php/purchases":"/modules/catalog/index.php/installed/".concat(I);window.location.replace(t)}},progress:u?{title:X,steps:H,autoCloseTimeout:0}:null},ea.createElement(vs,{icon:F,title:x,plan:b,period:M}),ea.createElement(Ki,{divPrefixCls:ia,checkoutLink:Y,onPurchase:function(){u||(c(!0),m("INLINE_PURCHASED"),p()?h():y())}})):null)};oa.propTypes={className:y().string,email:y().string,extensionCode:y().string,extensionIcon:y().string,extensionName:y().string,licenseInfo:y().shape({purchased:y().bool,keyNumber:y().number,orderAction:y().string,source:y().string}),buyInfo:y().shape({retrieveActionPath:y().string,retrieveAndInstallActionPath:y().string}),buyUrl:y().string,buyUrlNewWindow:y().bool,defaultBuyUrlPrefix:y().string,userLocale:y().string,price:y().string,currency:y().string,country:y().string,productId:y().number,planTitle:y().string,embeddedPurchases:y().bool,isInstalled:y().bool,retrieveStatus:y().string,retrieveAndInstallSteps:y().shape({retrieve:y().shape({status:y().string}),install:y().shape({status:y().string})}),period:y().string,autoinplace:y().bool};const aa=oa;const la=J((function(e,t){var n,r,i,o=e.longTasks,a=e.extension,l=a.catalog.buyInfo,s=a.settings,u=s.userLocale,c=s.country,d=s.email,f=s.embeddedPurchases,p=t.extensionCode;return{buyInfo:l,email:d,userLocale:u,country:c,embeddedPurchases:f,retrieveStatus:(n=o,r=p,i=n.items.find((function(e){var t=e.type,n=e.additionalData;return"ext-catalog-retrieve-keys"===t&&n.code===r})),i&&i.status?i.status:null),retrieveAndInstallSteps:Fe(o,p)}}))(aa);var sa=r(253);function ua(e){return ua="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},ua(e)}function ca(){return ca=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ca.apply(null,arguments)}function da(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ha(r.key),r)}}function fa(e,t,n){return t=ma(t),function(e,t){if(t&&("object"==ua(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,pa()?Reflect.construct(t,n||[],ma(e).constructor):t.apply(e,n))}function pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pa=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ma(e)}function va(e,t){return va=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},va(e,t)}function ha(e){var t=function(e,t){if("object"!=ua(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ua(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ua(t)?t:t+""}var ya={productId:"free",price:{gross:null,net:null,vat:null},name:null},ga={productId:"none",price:{gross:null,net:null,vat:null},name:null},ba=function(t){function n(){var e,t,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return e=fa(this,n,[].concat(a)),t=e,r="state",i=e.props.autoinplace?e.getNewState(e.getCheckedFirstOffer.bind(e)):e.getNewState(),(r=ha(r))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&va(e,t)}(n,t),r=n,i=[{key:"getNewState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getChecked.bind(this),t=this.props,n=t.licenseInfo,r=t.isInstalled,i=t.buyUrl,o=t.download_url,a=this.getPreparedPrices();if(!a)return!r&&i&&o?{billingPeriod:"none",selectedPrice:{none:{gross:"free",net:"free",vat:"free"}},checked:{none:"free"},selectedPlan:{none:null}}:null;var l=n||{},s=l.orderAction,u=l.purchased;if(!s&&u)return null;var c=a["1m"].length>0?e(a,"1m"):null,d=a["1y"].length>0?e(a,"1y"):null;return{billingPeriod:c?"1m":"1y",selectedPrice:{"1m":c?c.price:null,"1y":d?d.price:null},checked:{"1m":c?c.productId:null,"1y":d?d.productId:null},selectedPlan:{"1m":c?c.name:null,"1y":d?d.name:null}}}},{key:"getPreparedPrices",value:function(){var e=this.props.prices;if(!e||e.length<1)return null;var t={"1m":e.filter((function(e){return"1m"===e.billingPeriod})).sort((function(e,t){return e.price.gross-t.price.gross})),"1y":e.filter((function(e){return"1y"===e.billingPeriod})).sort((function(e,t){return e.price.gross-t.price.gross}))};return 0===t["1m"].length&&0===t["1y"].length?null:t}},{key:"getOfferListUserCanBuy",value:function(e,t){var n=this.props.licenseInfo,r=!1,i=e[t].filter((function(e){return!!r||(n&&n.app===e.name&&(r=!0),!1)}));return r?i:e[t]}},{key:"getCheckedFirstOffer",value:function(e,t){var n=this.getOfferListUserCanBuy(e,t);return n.length>0?{productId:n[0].productId,price:n[0].price,name:n[0].name}:ga}},{key:"getChecked",value:function(e,t){return null===e||0===e[t].length?this.showFreeRadioButton()?ya:ga:this.showFreeRadioButton()?ya:this.getCheckedFirstOffer(e,t)}},{key:"showFreeRadioButton",value:function(){var e=this.props,t=e.isInstalled,n=e.buyUrl,r=e.download_url;return!t&&n&&r}},{key:"formatPrice",value:function(e,t){return e&&e.length>0?new Intl.NumberFormat(t,{style:"currency",currency:e[0].currency,minimumFractionDigits:2,maximumFractionDigits:2}):null}},{key:"pricesRadioButtons",value:function(){var t=this,n=this.getPreparedPrices();if(!n)return null;var r=this.props.licenseInfo||{},i=r.orderAction,o=r.purchased;if(!i&&o)return null;var a=this.state;a&&a.billingPeriod in n||(a=this.getNewState(),this.setState(a));var l=this.props,s=l.prefixCls,u=l.prices,c=l.userLocale,d=l.licenseInfo,f=l.showPricesVAT,p=this.formatPrice(u,c),m=[],v=null;return n[a.billingPeriod].forEach((function(n){var r=p?p.format(f?n.price.gross:n.price.net):null;if(d&&d.app===n.name)return m.length=0,void(t.showFreeRadioButton()?v=sa.createElement("span",null,n.name," ",sa.createElement(e.Text,{bold:!0},r)," — ",sa.createElement(e.Translate,{content:"offerInUse"})):m.push(sa.createElement(e.Paragraph,{className:"".concat(s,"__details-price")},n.name," ",sa.createElement(e.Text,{bold:!0},r)," — ",sa.createElement(e.Translate,{content:"offerInUse"}))));m.push(sa.createElement(e.Paragraph,{className:"".concat(s,"__details-price")},sa.createElement("label",null,sa.createElement("input",{type:"radio",name:"price",value:n.productId,checked:a.checked[a.billingPeriod]===n.productId,onClick:function(){return t.setState((function(e){var t=e.selectedPrice,r=e.checked,i=e.selectedPlan;return r[a.billingPeriod]=n.productId,t[a.billingPeriod]=n.price,i[a.billingPeriod]=n.name,{selectedPrice:t,checked:r,selectedPlan:i}}))}})," ",n.name," ",sa.createElement(e.Text,{bold:!0},r))))})),this.showFreeRadioButton()&&m.unshift(sa.createElement(e.Paragraph,{className:"".concat(s,"__details-price")},sa.createElement("label",null,sa.createElement("input",{type:"radio",name:"price",value:"free",checked:"free"===a.checked[a.billingPeriod],onClick:function(){return t.setState((function(e){var t=e.selectedPrice,n=e.checked,r=e.selectedPlan;return n[a.billingPeriod]="free",t[a.billingPeriod]=null,r[a.billingPeriod]=null,{selectedPrice:t,checked:n,selectedPlan:r}}))}})," ",v||sa.createElement(e.Translate,{content:"offerIsFree"})))),m}},{key:"renderPriceVatInfo",value:function(){var t=this.props,n=t.prefixCls,r=t.prices,i=t.userLocale,o=t.country,a=t.countries,l=t.showPricesVAT,s=this.state;if(!r||0===r.length)return null;if(!l)return null;if(0===parseFloat(s.selectedPrice[s.billingPeriod].vat))return null;var u=this.formatPrice(r,i),c=u.format(s.selectedPrice[s.billingPeriod].net),d=u.format(s.selectedPrice[s.billingPeriod].vat);return sa.createElement("div",{className:"".concat(n,"__price_vat")},sa.createElement("span",null,sa.createElement(e.Translate,{content:"vatPriceSummary",params:{net:c,vat:d,country:a[o]}})))}},{key:"render",value:function(){var t=this,n=this.props,r=n.code,i=n.prefixCls,o=n.prices,a=n.download_url,l=n.buyUrl,s=n.buyInfo,u=n.licenseInfo,c=n.installing,d=n.onInstall,f=n.uuid,p=n.isInstalled,m=n.showPricesVAT,v=n.icon,h=n.extensionName,y=n.autoinplace,g=this.getPreparedPrices(),b=o&&o.some((function(e){return"paygr"===e.licensingType})),k=u||{},w=k.orderAction,S=k.purchased,E=l&&(b||!g),O=!p&&(!l||(!g||(!w||"adjust"===w)&&S)&&a),N=l&&!b;if(E||O)return sa.createElement("div",{"data-type":"extension-overview-actions"},E&&sa.createElement(la,ca({className:"".concat(i,"__details-price--action-button"),extensionCode:r,uuid:f,isInstalled:p},Kr(l,r,s),{licenseInfo:u,autoinplace:y})),O&&sa.createElement(Uo,{"data-type":"install-button",prefixCls:i,installing:c,onInstall:d,uuid:f},sa.createElement(e.Translate,{content:"buttonInstall"})));if(!g||!w&&S)return null;var P=this.state;P&&P.billingPeriod in g||(P=this.getNewState(),this.setState(P));var _=function(e){return e in g&&g[e].length>0},T=[];_("1m")&&T.push({value:"1m",title:sa.createElement(e.Translate,{content:"pricesMonthly"})}),_("1y")&&T.push({value:"1y",title:sa.createElement(e.Translate,{content:"pricesYearly"})});var I=this.pricesRadioButtons();return sa.createElement("div",{"data-type":"extension-overview-actions"},N?sa.createElement(e.SegmentedControl,{buttons:T,selected:P.billingPeriod,onChange:function(e){return t.setState({billingPeriod:e})}}):null,N?sa.createElement(e.Cuttable,null,I):null,"free"===P.checked[P.billingPeriod]?a&&sa.createElement(Uo,{"data-type":"install-button",prefixCls:i,installing:c,onInstall:d,uuid:f},sa.createElement(e.Translate,{content:"buttonInstall"})):l?sa.createElement("div",{className:Ar()("".concat(i,"__details-price--action-button"),"".concat(i,"__price"))},sa.createElement(la,ca({uuid:f,isInstalled:p,licenseInfo:u,autoinplace:y,extensionName:h,extensionCode:r,extensionIcon:v,productId:P.checked[P.billingPeriod]&&"buy"!==P.checked[P.billingPeriod]?P.checked[P.billingPeriod]:void 0,planTitle:P.selectedPlan[P.billingPeriod],fullPriceInfo:o&&o.length>0?P.selectedPrice[P.billingPeriod]:null,price:o&&o.length>0?m?P.selectedPrice[P.billingPeriod].gross:P.selectedPrice[P.billingPeriod].net:null,currency:o&&o.length>0?o[0].currency:void 0,period:P.billingPeriod},Kr(l,r,s))),this.renderPriceVatInfo()):null)}}],i&&da(r.prototype,i),o&&da(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);ba.propTypes={code:y().string,extensionName:y().string,icon:y().string,prefixCls:y().string.isRequired,prices:y().array,userLocale:y().string,country:y().string,countries:y().object,isInstalled:y().bool,download_url:y().string,buyUrl:y().string,buyInfo:y().string,licenseInfo:y().object,installing:y().bool,onInstall:y().func,uuid:y().string,showPricesVAT:y().bool,autoinplace:y().bool},ba.defaultProps={autoinplace:!1,userLocale:"en-US",country:"US",showPricesVAT:!1};const ka=J((function(e){var t=e.extension.settings;return{userLocale:t.userLocale,country:t.country,countries:t.countries,showPricesVAT:t.showPricesVAT}}))(ba);var wa=r(253),Sa=zr("extension-overview-alert"),Ea=function(t){var n=t.icon,r=t.children,i=t.className;return wa.createElement(e.Alert,{intent:"warning",className:(0,e.classNames)(Sa,i)},n,wa.createElement("div",{className:"".concat(Sa,"__message")},r))};Ea.propTypes={icon:y().any,children:y().any,className:y().any};const Oa=function(){return wa.createElement(Ea,{className:"".concat(Sa,"--responsive")},wa.createElement(e.Translate,{content:"deprecated"}))};var Na=r(253);function Pa(e){return Pa="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},Pa(e)}var _a=["installing","onUpdate","translate","children"];function Ta(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Pa(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Pa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Pa(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ia(){return Ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ia.apply(null,arguments)}var ja=function(t){var n=t.installing,r=t.onUpdate,i=t.translate,o=t.children,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,_a);return Na.createElement(e.Button,Ia({icon:"upload",intent:"primary",state:n?"loading":null,onClick:!n&&r},a),n?i("wait"):o)};ja.propTypes={installing:y().bool.isRequired,onUpdate:y().func.isRequired,translate:y().func.isRequired,children:y().any.isRequired};var xa=function(t){var n=t.prefixCls,r=t.data,i=t.onInstall,o=t.onUpdate,a=t.catalogIsEnabled,l=t.ratingIsEnabled,s=t.ratingMinVotes,u=t.onVote,c=t.onVoteLoad,d=t.onRemoveVote,f=t.buyInfo,p=t.isExtensionOverview,m=void 0!==p&&p,v=t.onStatus,h=t.onRemove,y=t.currentOperation,g=t.autoinplace,b=void 0!==g&&g,k=r.code,w=r.uuid,S=r.icon,E=r.name,O=r.vendor,N=r.status,P=r.help_url,_=r.support_url,T=r.buy_url,I=r.download_url,j=r.url,x=r.categories,F=r.entry_point,C=r.is_active,R=r.installing,A=r.retrievingKeys,D=r.version,q=r.release,M=r.current_version,L=r.current_release,U=r.new_version,V=r.new_release,Q=r.rating,B=r.fake,$=r.license_info,W=r.prices,K=r.deprecated,z=(0,e.useTranslate)(),G="different"===N&&I,Y=zr("extension-overview-alert"),H=Na.createElement(e.ToolbarGroup,{title:"Open"},C&&F&&(m||!G)&&Na.createElement(e.Button,{component:"a",href:F,icon:"arrow-right-in","data-type":"goto-button"},Na.createElement(e.Translate,{content:"buttonOpen"})),G&&!m?Na.createElement(ja,{"data-type":"upgrade-button",installing:R,translate:z,onUpdate:function(){return o(w)}},Na.createElement(e.Translate,{content:"buttonUpdate"})):null,!1===C&&m&&Na.createElement("span",{className:"s-btn"},Na.createElement(e.Icon,{src:Ro})," ",Na.createElement(e.Translate,{content:"disabled"}))),J=Na.createElement(e.ToolbarGroup,{title:"More"},m&&Na.createElement(Zo,{data:r,currentOperation:y,onStatus:v,onRemove:h}));return Na.createElement(Yo,{className:Ar()("".concat(n,"__section--info"),Ta({},"".concat(n,"__section--package-info"),!m)),prefixCls:n},Na.createElement(e.Media,{image:Na.createElement(e.Icon,{src:S,alt:E,size:"xl"}),imageSpacing:"xl","data-type":"extension-overview-details"},Na.createElement("h3",{className:"".concat(n,"__section-title--info"),"data-type":"extension-name"},E),Na.createElement("div",{className:"".concat(n,"__details")},Na.createElement("div",{className:"".concat(n,"__details-block")},Na.createElement("div",{className:"".concat(n,"__details-table")},B?null:Na.createElement("div",{className:"".concat(n,"__details--row")},Na.createElement("div",{className:"".concat(n,"__details--cell")},Na.createElement(e.Translate,{content:"packageVersion"})),Na.createElement("div",{className:"".concat(n,"__details--cell"),"data-type":"extension-version"},"".concat(D,"-").concat(q))),x&&x.length?Na.createElement("div",{className:"".concat(n,"__details--row")},Na.createElement("div",{className:"".concat(n,"__details--cell")},Na.createElement(e.Translate,{content:"packageCategories"})),Na.createElement("div",{className:"".concat(n,"__details--cell"),"data-type":"extension-categories"},Br(x.map((function(t){var n=t.code,r=t.title,i=Na.createElement(e.Translate,{content:"categories.".concat(n),fallback:r});return a?Na.createElement(oi,{key:n,to:"catalog/category/".concat(n)},i):i}))))):null,l&&Q?Na.createElement("div",{className:"".concat(n,"__details--row")},Na.createElement("div",{className:"".concat(n,"__details--cell")},Na.createElement(e.Translate,{content:"packageRating"})),Na.createElement("div",{className:"".concat(n,"__details--cell")},Na.createElement(Co,{ratingIsEnabled:l,ratingMinVotes:s,rating:Q,uuid:w,onVote:u,onVoteLoad:c,onRemoveVote:d,fake:B,isInstalled:"absent"!==N}))):null,O?Na.createElement("div",{className:"".concat(n,"__details--row"),"data-type":"extension-vendor"},Na.createElement("div",{className:"".concat(n,"__details--cell")},Na.createElement(e.Translate,{content:"packageVendor"})),Na.createElement("div",{className:"".concat(n,"__details--cell")},j?Na.createElement("a",{href:j,"data-type":"extension-vendor-link",target:"_blank",rel:"noopener noreferrer"},O):O)):null),P?Na.createElement("div",{className:"".concat(n,"__details-item")},Na.createElement("a",{href:P,"data-type":"extension-help-link",target:"_blank",rel:"noopener noreferrer"},Na.createElement(e.Translate,{content:"packageHelpUrlDescription"}))):null,_?Na.createElement("div",{className:"".concat(n,"__details-item")},Na.createElement("a",{href:_,"data-type":"extension-support-link",target:"_blank",rel:"noopener noreferrer"},Na.createElement(e.Translate,{content:"packageSupportUrlDescription"}))):null,Na.createElement("div",{className:Ar()("".concat(n,"__details-item"),"".concat(n,"__details-item--actions")),"data-type":"extension-overview-actions"},Na.createElement(e.Toolbar,null,H,J))),Na.createElement("div",{className:"".concat(n,"__details-block")},Na.createElement(ka,{code:k,prices:W,prefixCls:n,buyUrl:T,buyInfo:f,licenseInfo:$,download_url:I,extensionName:E,autoinplace:b,isInstalled:"absent"!==N,installing:R,onInstall:i,uuid:w,icon:S})))),G&&(m?Na.createElement(e.Alert,{intent:"warning",className:Ar()(Y,"".concat(Y,"--responsive"))},Na.createElement(Uo,{icon:"upload",intent:"primary",className:"".concat(Y,"__button"),"data-type":"upgrade-button",prefixCls:n,installing:R,onInstall:i,uuid:w},z("buttonUpdate")),Na.createElement(e.Translate,{className:"".concat(Y,"__message"),content:"updateExtensionMessage",params:{version:"".concat(U,"-").concat(V),actions:Na.createElement(oi,{className:"s-btn",to:"catalog/package/".concat(k)},Na.createElement(e.Icon,{src:Ao})," ",Na.createElement(e.Translate,{content:"updateFullDetails"}))}})):Na.createElement(e.Alert,{intent:"warning",className:Y},Na.createElement(e.Translate,{content:"updatePackageMessage",className:"".concat(Y,"__message"),params:{version:"".concat(M,"-").concat(L),actions:Na.createElement("span",null,Na.createElement(oi,{className:"s-btn",to:"installed/".concat(k)},Na.createElement(e.Icon,{src:Ao})," ",Na.createElement(e.Translate,{content:"updateDetails"}))," | ",Na.createElement("a",{className:"s-btn",href:F},Na.createElement(e.Icon,{src:"/modules/catalog/images/open-054a22a.svg"})," ",Na.createElement(e.Translate,{content:"openExtension"})))}}))),K&&Na.createElement(Oa,null),T&&Na.createElement(Ko,Ia({licenseInfo:$},Kr(T,k,f),{retrievingKeys:A})))};xa.propTypes={prefixCls:y().string.isRequired,data:y().object,onInstall:y().func,onUpdate:y().func,catalogIsEnabled:y().bool,ratingIsEnabled:y().bool,ratingMinVotes:y().string,onVote:y().func,onVoteLoad:y().func,onRemoveVote:y().func,buyInfo:y().object,isExtensionOverview:y().bool,onStatus:y().func,onRemove:y().func,currentOperation:y().string,deprecated:y().bool,autoinplace:y().bool};const Fa=xa;var Ca=r(253);function Ra(e){return Ra="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},Ra(e)}function Aa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Da(r.key),r)}}function Da(e){var t=function(e,t){if("object"!=Ra(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Ra(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ra(t)?t:t+""}function qa(e,t,n){return t=La(t),function(e,t){if(t&&("object"==Ra(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ma()?Reflect.construct(t,n||[],La(e).constructor):t.apply(e,n))}function Ma(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ma=function(){return!!e})()}function La(e){return La=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},La(e)}function Ua(e,t){return Ua=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ua(e,t)}var Va=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),qa(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ua(e,t)}(n,t),r=n,(i=[{key:"componentDidMount",value:function(){if(this.props.rich.md)for(var t=(0,e.findDOMNode)(this).querySelectorAll("a"),n=0;n<t.length;n++)t[n].target="_blank"}},{key:"render",value:function(){var t=this.props,n=t.rich,r=void 0===n?{}:n,i=r.md,o=r.plain,a=t.fallback,l=t["data-type"];return i?Ca.createElement(e.Markdown,null,i):o?Ca.createElement(e.Plaintext,null,o):a?Ca.createElement("p",{"data-type":l},a):null}}])&&Aa(r.prototype,i),o&&Aa(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);Va.propTypes={rich:y().object,fallback:y().any,"data-type":y().string};const Qa=Va;var Ba=r(253),$a=function(t){var n=t.prefixCls,r=t.data,i=r.extended_description,o=r.description,a=(0,e.useTranslate)();return Ba.createElement(Yo,{className:"".concat(n,"__section--description"),title:a("packageDescription"),prefixCls:n},Ba.createElement("div",{className:"".concat(n,"__section-body")},Ba.createElement(Qa,{rich:i||{},fallback:o,"data-type":"extension-description"})))};$a.propTypes={prefixCls:y().string,data:y().object};const Wa=$a;var Ka=r(253),za=zr("extension-overview"),Ga=function(t){var n=t.changelog;return Ka.createElement(Yo,{className:"".concat(za,"__section--changelog"),title:Ka.createElement(e.Translate,{content:"packageChangelog"}),prefixCls:za},Ka.createElement("div",{className:"".concat(za,"__section-body")},Ka.createElement(e.Cuttable,null,Ka.createElement(Qa,{rich:n}))))};Ga.propTypes={changelog:y().object.isRequired};const Ya=Ga;var Ha=r(253),Ja=zr("extension-overview"),Xa=function(e){var t=e.title,n=e.screenshots;return Ha.createElement(Yo,{className:"".concat(Ja,"__section--screenshots"),prefixCls:Ja},Ha.createElement("div",{className:"".concat(Ja,"__screenshots")},n.map((function(e,r){var i=e.thumbnail;return Ha.createElement("a",{key:r,onClick:function(){new Jsw.PopupSlider({title:t,slides:n.map((function(e){var t=e.screenshot;return'<img class="slider-image" src="'.concat(t.escapeHTML(),'">')})),current:r})}},Ha.createElement("img",{src:i}))}))))};Xa.propTypes={title:y().string.isRequired,screenshots:y().array.isRequired};const Za=Xa;var el=r(253),tl=["loading","error","data"];function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nl.apply(null,arguments)}var rl=zr("extension-overview"),il=function(t){var n=t.loading,r=void 0!==n&&n,i=t.error,o=t.data,a=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(t,tl),l=On(),s=Pn();if((0,v.useEffect)((function(){i&&setTimeout((function(){l("/")}),0)}),[i,l]),i)return null;if(r)return el.createElement("span",{className:"s-btn sb-waiting"},el.createElement(e.Translate,{className:"text-muted",content:"wait"}));var u=o||{},c=u.name,d=u.changelog,f=u.screenshots,p="buy"===s.autoinplace;return el.createElement("div",{className:rl},el.createElement(Fa,nl({data:o,loading:r},a,{prefixCls:rl,autoinplace:p})),el.createElement("div",{className:"".concat(rl,"__sections")},f&&f.length?el.createElement(Za,{title:c,screenshots:f}):null,el.createElement("div",{className:"".concat(rl,"__sections-group")},el.createElement(Wa,nl({data:o,loading:r},a,{prefixCls:rl})),d&&(d.md||d.plain)?el.createElement(Ya,{changelog:d}):null)))};il.propTypes={loading:y().bool,error:y().any,data:y().object};const ol=il;var al=r(253);function ll(e){return ll="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},ll(e)}function sl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ul(r.key),r)}}function ul(e){var t=function(e,t){if("object"!=ll(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=ll(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ll(t)?t:t+""}function cl(e,t,n){return t=fl(t),function(e,t){if(t&&("object"==ll(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dl()?Reflect.construct(t,n||[],fl(e).constructor):t.apply(e,n))}function dl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(dl=function(){return!!e})()}function fl(e){return fl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fl(e)}function pl(e,t){return pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pl(e,t)}var ml=zr("header"),vl=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),cl(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pl(e,t)}(n,t),r=n,(i=[{key:"renderExtensionCatalogPreferencesButton",value:function(){var t=this.props,n=t.hideVatPopover,r=t.showVatSettingsButton,i=t.vatShowPopover;if(!r)return null;var o="AfterSave"===i||"WithoutInitScreen"===i,a="vatPopoverTitle".concat(i),l="vatPopoverText".concat(i);return al.createElement("div",null,al.createElement("div",{className:"".concat(ml,"__heading__toolbar")},al.createElement(e.Popover,{title:al.createElement(e.Translate,{content:a}),target:al.createElement(io,this.props),placement:"bottom-right",visible:o,onClose:n},al.createElement(e.Paragraph,null,al.createElement(e.Translate,{content:l})),al.createElement(e.Button,{className:"".concat(ml,"__popover_button"),intent:"primary",onClick:n},al.createElement(e.Translate,{content:"vatPopoverOkButton"})))))}},{key:"render",value:function(){return al.createElement("div",{className:"".concat(ml,"__heading")},al.createElement("div",{className:"".concat(ml,"__heading__title")},al.createElement("h2",null,al.createElement(e.Translate,{content:"title"}))),this.renderExtensionCatalogPreferencesButton())}}])&&sl(r.prototype,i),o&&sl(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);vl.propTypes={hideVatPopover:y().func,vatShowPopover:y().string,showVatSettingsButton:y().bool};const hl=vl;var yl=r(253),gl=["children"],bl=["className","disabled","onClick","tooltip"];function kl(e){return kl="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},kl(e)}function wl(){return wl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wl.apply(null,arguments)}function Sl(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function El(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Il(r.key),r)}}function Ol(e,t,n){return t=Pl(t),function(e,t){if(t&&("object"==kl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Nl()?Reflect.construct(t,n||[],Pl(e).constructor):t.apply(e,n))}function Nl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Nl=function(){return!!e})()}function Pl(e){return Pl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Pl(e)}function _l(e,t){return _l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_l(e,t)}function Tl(e,t,n){return(t=Il(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Il(e){var t=function(e,t){if("object"!=kl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kl(t)?t:t+""}var jl=function(t){function n(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return Tl(e=Ol(this,n,[].concat(r)),"state",{responsiveOpen:!1}),Tl(e,"handleToggleToolbar",(function(){var t=e.state.responsiveOpen;e.setState({responsiveOpen:!t})})),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_l(e,t)}(n,t),r=n,(i=[{key:"render",value:function(){var t=this,n=this.props,r=n.children,i=Sl(n,gl),o=this.state.responsiveOpen;return yl.createElement(e.AutoClosable,{onClose:function(){return t.setState({responsiveOpen:!1})}},yl.createElement("div",{className:Ar()("actions-box",o&&"r-actions-active r-actions-active-toolbar")},yl.createElement("div",{className:"r-actions"},yl.createElement("ul",{className:"r-actions-list"},yl.createElement("li",{className:Ar()("r-actions-item","r-actions-toolbar",o&&"r-actions-item-active"),onClick:this.handleToggleToolbar},yl.createElement("span",null)))),yl.createElement("div",wl({className:"objects-toolbar"},i),r)))}}])&&El(r.prototype,i),o&&El(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);jl.propTypes={children:y().any};var xl=function(t){var n=t.className,r=t.disabled,i=void 0!==r&&r,o=t.onClick,a=t.tooltip,l=void 0===a?void 0:a,s=Sl(t,bl),u=yl.createElement("a",wl({className:Ar()("s-btn",n,i&&"disabled"),onClick:!i&&o},s));return l&&(u=yl.createElement(e.Tooltip,{title:l},u)),u};xl.propTypes={className:y().string.isRequired,disabled:y().bool,onClick:y().func.isRequired,tooltip:y().node};const Fl=jl;jl.Button=xl,jl.Separator=function(){return yl.createElement("span",{className:"separator"})};var Cl=r(253);function Rl(){return Rl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rl.apply(null,arguments)}function Al(e){return function(e){if(Array.isArray(e))return Dl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Dl(e,t);var n={}.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)?Dl(e,t):void 0}}(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 Dl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ql=zr("installed"),Ml=function(t){var n=t.loading,r=t.extensions,i=t.buyInfo,o=t.showPricesVAT,a=void 0!==o&&o,l=t.isDemoMode,s=t.addStatusMessage,u=t.uploadUrl,c=On(),d=(0,e.useTranslate)(),f=function(t){return t.is_active&&t.entry_point?Cl.createElement(e.Button,{component:"a",className:"".concat(ql,"__item-action"),intent:"secondary",href:t.entry_point,icon:Cl.createElement(e.Icon,{src:"/modules/catalog/images/open-in-browser-a3af024.png"}),"data-type":"item-goto-link",onClick:function(e){return e.stopPropagation()}},Cl.createElement(e.Translate,{content:"buttonOpen"})):null},p=function(e){var t=e.package;if(!t||!t.buy_url)return null;var n=function(e){if(!e.prices||0===e.prices.length)return null;var t=[],n=Al(e.prices).filter((function(e){return"1m"===e.billingPeriod}));return 0===n.length&&(n=Al(e.prices).filter((function(e){return"1y"===e.billingPeriod}))),n.sort((function(e,t){return e.price.gross-t.price.gross})),n.forEach((function(n){e.license_info&&e.license_info.app===n.name?t.length=0:t.push(n)})),0===t.length?null:t[0]}(t);return Cl.createElement(la,Rl({className:Ar()("".concat(ql,"__item-action"),"alert__button"),extensionCode:t.code,extensionName:e.name,extensionIcon:e.icon,isInstalled:!0,licenseInfo:t.license_info,productId:n&&n.productId,planTitle:n&&n.name,price:n&&(a?n.price.gross:n.price.net),fullPriceInfo:n&&n.price,currency:n&&n.currency||void 0,period:n&&n.billingPeriod},Kr(t.buy_url,t.code,i)))};return Cl.createElement("div",{className:ql},Cl.createElement(Fl,{"data-type":"extension-installed-actions"},u?Cl.createElement(Fl.Button,{className:"sb-upload","data-type":"upload-button",onClick:function(){l?s({intent:"danger",message:d("errorUploadExtensionInDemoMode")}):new Jsw.AjaxPopupForm({cls:"popup-panel",title:d("popupUploadTitle"),url:u,locale:{waitMsg:d("wait")}})},tooltip:d("buttonUploadTitle")},Cl.createElement(e.Translate,{content:"buttonUpload"})):null,Cl.createElement(Fl.Button,{className:Ar()("sb-customize-order","".concat(ql,"__customize-button")),onClick:function(){c("/installed/customize")},tooltip:d("buttonCustomizeTitle")},Cl.createElement(e.Translate,{content:"buttonCustomize"}))),n?Cl.createElement("span",{className:"s-btn sb-waiting"},Cl.createElement(e.Translate,{className:"text-muted",content:"wait"})):void 0!==r&&r.length?Cl.createElement(e.ItemList,{minColumnWidth:280,gap:"md","data-type":"extension-installed-list"},r.map((function(t){return Cl.createElement(e.Item,{key:t.code,icon:{src:t.icon,size:"xl",alt:t.name},"data-type":"item","data-id":t.code,title:Cl.createElement(oi,{to:"installed/".concat(t.code),"data-type":"item-name",className:"".concat(ql,"__item-name"),onClick:function(e){return e.stopPropagation()}},t.name),onClick:function(){return c("/installed/".concat(t.code))}},Cl.createElement("div",{className:"".concat(ql,"__item-version"),"data-type":"item-version"},Cl.createElement(e.Translate,{content:"packageVersion"}),": ",t.version,"-",t.release),Cl.createElement("div",{className:"".concat(ql,"__item-actions")},!t.is_active&&Cl.createElement("span",{className:Ar()("".concat(ql,"__item-action"),"s-btn")},Cl.createElement(e.Icon,{src:Ro}),Cl.createElement(e.Translate,{content:"disabled"})),f(t),p(t)))}))):Cl.createElement(e.Translate,{content:"noExtension"}))};Ml.propTypes={extensions:y().array,loading:y().bool,isDemoMode:y().bool,addStatusMessage:y().func,uploadUrl:y().string,buyInfo:y().object,showPricesVAT:y().bool};const Ll=J((function(e){var t=e.extension.settings;return{userLocale:t.userLocale,showPricesVAT:t.showPricesVAT}}))(Ml);var Ul=r(253);function Vl(e){return Vl="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},Vl(e)}function Ql(e){return function(e){if(Array.isArray(e))return Bl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Bl(e,t);var n={}.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)?Bl(e,t):void 0}}(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 Bl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function $l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yl(r.key),r)}}function Wl(e,t,n){return t=zl(t),function(e,t){if(t&&("object"==Vl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Kl()?Reflect.construct(t,n||[],zl(e).constructor):t.apply(e,n))}function Kl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Kl=function(){return!!e})()}function zl(e){return zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zl(e)}function Gl(e,t){return Gl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gl(e,t)}function Yl(e){var t=function(e,t){if("object"!=Vl(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Vl(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vl(t)?t:t+""}var Hl=zr("installed-customize"),Jl=function(t){function n(){var e,t,r,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var o=arguments.length,a=new Array(o),l=0;l<o;l++)a[l]=arguments[l];return e=Wl(this,n,[].concat(a)),t=e,i=function(t){var n=t.oldIndex,r=t.newIndex,i=e.props,o=i.extensions,a=i.onSave,l=Ql(o);n!==r&&(l.splice(r,0,l.splice(n,1)[0]),a(l))},(r=Yl(r="handleReorderEnd"))in t?Object.defineProperty(t,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[r]=i,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gl(e,t)}(n,t),r=n,(i=[{key:"render",value:function(){var t=this.props.extensions;return Ul.createElement("div",null,Ul.createElement(e.Alert,{intent:"warning",className:"".concat(Hl,"__alert")},Ul.createElement(e.Translate,{content:"customizeMessage"}),Ul.createElement(e.Button,{component:oi,to:"installed",intent:"primary",className:"".concat(Hl,"__button--done")},Ul.createElement(e.Translate,{content:"buttonDone"}))),Ul.createElement(e.ItemList,{minColumnWidth:280,reorderable:!0,gap:"md",onReorderEnd:this.handleReorderEnd,className:"".concat(Hl,"__list")},t.map((function(t){var n=t.code,r=t.icon,i=t.name;return Ul.createElement("div",{key:n,className:"".concat(Hl,"__item")},Ul.createElement(e.Icon,{src:r,size:"xl",alt:i,className:"".concat(Hl,"__item-icon")}),Ul.createElement("div",{className:"".concat(Hl,"__item-content")},i))}))))}}])&&$l(r.prototype,i),o&&$l(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);Jl.propTypes={extensions:y().array,onSave:y().func};const Xl=Jl;var Zl=r(253);function es(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ts(e,t);var n={}.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)?ts(e,t):void 0}}(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 ts(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var ns=zr("purchases"),rs=function(t){var n=t.loading,r=t.extensions,i=t.baseUrl,o=t.installing,a=t.onInstall,l=es((0,v.useState)(null),2),s=l[0],u=l[1],c=On(),d=function(t,n){return Zl.createElement("div",null,Zl.createElement("h3",{className:"".concat(ns,"__header")},t),Zl.createElement(e.ItemList,{minColumnWidth:280,gap:"md","data-type":"extension-purchases-list"},n.map(f)))},f=function(t){var n="".concat("absent"===t.status?"catalog/package":"installed","/").concat(t.code),r=t.code,i=t.icon,o=t.name,a=t.version,l=t.release,s=t.current_version||a,u=t.current_release||l;return Zl.createElement(e.Item,{className:"".concat(ns,"__extension-item"),key:r,icon:{src:i,size:"xl",alt:o},"data-type":"item","data-id":r,title:p(t,n),onClick:function(){return c("/".concat(n))}},Zl.createElement("div",{className:"".concat(ns,"__item-version")},Zl.createElement(e.Translate,{content:"packageVersion"}),": ",s,"-",u),Zl.createElement("div",{className:"".concat(ns,"__item-actions")},m(t)))},p=function(t,n){var r=t.status,i=t.name,o=t.license_info.new;return Zl.createElement(oi,{to:n,"data-type":"item-name",className:"".concat(ns,"__item-name"),onClick:function(e){return e.stopPropagation()}},o&&"absent"===r?Zl.createElement(e.Label,{intent:"info"},Zl.createElement(e.Translate,{content:"purchasesNewLabel"})):null," ",i)},m=function(t){return"absent"!==t.status?null:Zl.createElement(e.Button,{classNames:Ar()("".concat(ns,"__details-price--action-button"),"".concat(ns,"__item-action")),"data-type":"install-button",state:o?"loading":null,onClick:!o&&function(){return a(t.uuid)}},o?Zl.createElement(e.Translate,{content:"wait"}):Zl.createElement(e.Translate,{content:"purchasesInstallButton"}))},h=function(){var e=r.filter((function(e){return"absent"===e.status}));if(e&&e.length){var t=e.map((function(e){return e.uuid}));a(t)}};return function(){if(r){if(s)if(!r.reduce((function(e,t){return e||t.code in s&&t.status!==s[t.code]}),!1))return;var e=[];r.forEach((function(t){e[t.code]=t.status})),u(e);var t=r.filter((function(e){return"absent"===e.status})),n=r.filter((function(e){return"absent"!==e.status}));new Ajax.Request("".concat(i,"/purchases-show"),{parameters:{"waiting[]":t.map((function(e){return e.code})),"installed[]":n.map((function(e){return e.code}))}})}}(),Zl.createElement("div",{className:ns},function(){if(!r)return null;var t=r.filter((function(e){return"absent"===e.status}));return!t||t.length<1?null:Zl.createElement("div",{className:"".concat(ns,"__toolbar")},Zl.createElement(Fl,{"data-type":"extension-purchases-actions"},Zl.createElement(Fl.Button,{"data-type":"install-button",onClick:h},Zl.createElement(e.Translate,{content:"purchasesInstallAllButton"}))))}(),n?Zl.createElement("span",{className:"s-btn sb-waiting"},Zl.createElement(e.Translate,{className:"text-muted",content:"wait"})):function(){if(!r||!r.length)return Zl.createElement(e.Translate,{content:"noExtension"});var t=r.filter((function(e){return"absent"===e.status})),n=r.filter((function(e){return"absent"!==e.status}));return Zl.createElement("div",null,t.length>0?d(Zl.createElement(e.Translate,{content:"purchasesWaitingForInstallList"}),t):null,n.length>0?d(Zl.createElement(e.Translate,{content:"purchasesInstalledExtensionsList"}),n):null)}())};rs.propTypes={baseUrl:y().string,extensions:y().array,loading:y().bool,installing:y().bool,onInstall:y().func};const is=rs;var os=r(253);function as(e){return as="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},as(e)}function ls(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ss(r.key),r)}}function ss(e){var t=function(e,t){if("object"!=as(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=as(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==as(t)?t:t+""}function us(e,t,n){return t=ds(t),function(e,t){if(t&&("object"==as(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cs()?Reflect.construct(t,n||[],ds(e).constructor):t.apply(e,n))}function cs(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cs=function(){return!!e})()}function ds(e){return ds=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ds(e)}function fs(e,t){return fs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fs(e,t)}var ps=zr("purchase-overview"),ms=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),us(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fs(e,t)}(n,t),r=n,(i=[{key:"render",value:function(){var t=this.props,n=t.title,r=t.icon,i=t.plan,o=t.period,a="1m"===o?os.createElement(e.Translate,{content:"priceByMonth"}):"1y"===o?os.createElement(e.Translate,{content:"priceByYear"}):null;return os.createElement("div",null,os.createElement("div",{className:"".concat(ps,"__main")},os.createElement(e.Icon,{src:r,size:"xl"}),os.createElement("span",{className:"".concat(ps,"__extension-name")},n),os.createElement("div",{className:"".concat(ps,"__details")},os.createElement("div",{className:"".concat(ps,"__details--row")},os.createElement("div",{className:"".concat(ps,"__details--cell")},os.createElement(e.Translate,{content:"planLabel"})),os.createElement("div",{className:"".concat(ps,"__details--cell")},i,a?os.createElement("span",{className:"".concat(ps,"__details--cell-period")}," (",a,")"):null)))))}}])&&ls(r.prototype,i),o&&ls(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);ms.propTypes={icon:y().string,period:y().string,plan:y().string,title:y().string};const vs=ms,hs="/modules/catalog/images/symbols-24c719d.svg";var ys,gs=r(2994),bs=r.n(gs),ks=r(6328),ws=r.n(ks),Ss=r(253);var Es=function(t){var n=t.catalogIsEnabled,r=t.countUpdates,i=t.onSearch,o=t.countNewPurchases,a=t.vatShowInitScreen,l=void 0!==a&&a,s=On(),u=wn().pathname;if(l)return Ss.createElement(Mu,{initScreen:!0});for(var c,d=[{id:"catalog",icon:Ss.createElement(e.Icon,null,Ss.createElement("svg",null,Ss.createElement("use",{xlinkHref:"".concat(hs,"#catalog")}))),allowed:n},{id:"installed",icon:Ss.createElement(e.Icon,null,Ss.createElement("svg",null,Ss.createElement("use",{xlinkHref:"".concat(hs,"#extension")}))),allowed:!0},{id:"updates",icon:Ss.createElement(e.Icon,null,Ss.createElement("svg",null,Ss.createElement("use",{xlinkHref:"".concat(hs,"#update")}))),allowed:n,label:r?Ss.createElement(e.Label,{intent:"info"},r):null},{id:"purchases",icon:Ss.createElement(e.Icon,{name:"shopping-cart"}),allowed:n,label:o?Ss.createElement(e.Label,{intent:"info"},o):null}].filter((function(e){return e.allowed})),f=0;f<d.length;f++)if(u.startsWith("/".concat(d[f].id))){c=f+1;break}c||s("/".concat(d[0].id));var p=Ss.createElement(ko,{onPackageSelect:function(e){return s(n?"/catalog/package/".concat(e):"/installed/".concat(e))},onCategorySelect:function(e){return s("/catalog/category/".concat(e))},onSearch:i,minWidth:270,maxWidth:500});return Ss.createElement("div",null,Ss.createElement(Lu,null),Ss.createElement(e.Tabs,{active:c,search:p,monospaced:!0},d.map((function(t){var n=t.id,r=t.label,i=t.icon;return Ss.createElement(e.Tab,{key:"".concat(n,"-tab"),"data-id":"".concat(n,"-tab"),"data-type":"components-tab",icon:i,title:Ss.createElement(e.Translate,{content:"".concat(n,"Tab")}),description:Ss.createElement(e.Translate,{content:"".concat(n,"TabDescription")}),label:r,onActivate:function(){return s("/".concat(n))}},Ss.createElement(Qn,null))}))))};Es.propTypes={catalogIsEnabled:y().bool,countUpdates:y().number,onSearch:y().func,countNewPurchases:y().number,vatShowInitScreen:y().bool};var Os=(0,t.graphql)(ws(),{props:function(e){var n=e.ownProps.client,r=e.data,i=r.error,o=r.packages;return{error:i,countUpdates:(void 0===o?[]:o).length,onSearch:function(e){return n.query({query:(0,t.gql)(ys||(r=['\n {\n search(query: "','") {\n type\n code\n name\n icon\n }\n }\n '],i||(i=r.slice(0)),ys=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(i)}}))),encodeURIComponent(e))});var r,i}}}}),Ns=(0,t.graphql)(bs(),{props:function(e){var t=e.data,n=t.error,r=t.packages;return{error:n,countNewPurchases:(void 0===r?[]:r).length}}});const Ps=(0,t.compose)(J((function(e){var t=e.extension;return{catalogIsEnabled:t.catalog.catalogIsEnabled,vatShowInitScreen:t.settings.vatShowInitScreen}})),t.withApollo,Os,Ns)(Es);var _s=r(253),Ts=function(t){var n=t.catalogError,r=wn().pathname;if(n)return _s.createElement("div",{className:"msg-box msg-warning"},_s.createElement("div",{className:"msg-content"},n," ",_s.createElement("a",{onClick:function(){return location.reload()}},_s.createElement(e.Translate,{content:"retry"}))));return _s.createElement("div",null,_s.createElement(e.Subnav,null,["featured","most-popular","new-and-updated","category"].map((function(t){return _s.createElement(e.SubnavItem,{key:t,active:r.startsWith("/catalog/".concat(t))},_s.createElement(oi,{to:"catalog/".concat(t)},_s.createElement(e.Translate,{content:(n="catalog-section-".concat(t),n.replace(/(-)([a-z])/g,(function(e){return e[1].toUpperCase()})))})));var n}))),_s.createElement(Qn,null))};Ts.propTypes={catalogError:y().string};const Is=J((function(e){return{catalogError:e.extension.catalog.catalogError}}))(Ts);var js=r(6175),xs=r.n(js);function Fs(e){return Fs="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},Fs(e)}function Cs(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 Rs(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Fs(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fs(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fs(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var As=J((function(e){var t=e.extension.catalog;return{ratingIsEnabled:t.ratingIsEnabled,ratingMinVotes:t.ratingMinVotes}})),Ds=(0,t.graphql)(xs(),{props:function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cs(Object(n),!0).forEach((function(t){Rs(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cs(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e.data)}});const qs=(0,t.compose)(As,Ds)(wi);var Ms=r(13),Ls=r.n(Ms),Us=r(253),Vs=(0,t.graphql)(Ls(),{props:function(t){var n=t.ownProps,r=n.ratingIsEnabled,i=n.ratingMinVotes,o=t.data,a=o.loading,l=o.error,s=o.packages,u=void 0===s?[]:s;return{loading:a,error:l,packages:u,title:Us.createElement(e.Translate,{content:"catalogSectionMostPopularTitle"}),children:u.map((function(e){var t=e.icon,n=e.buy_url,o=e.name,a=e.code,l=e.categories,s=e.rating,u=e.prices,c=e.license_info;return Us.createElement(ci.Package,{key:a,code:a,icon:t,buy_url:n,name:o,categories:l,rating:r&&s.votes>=i?s:null,prices:u,license_info:c})}))}}});const Qs=(0,t.compose)(J((function(e){var t=e.extension.catalog;return{ratingIsEnabled:t.ratingIsEnabled,ratingMinVotes:t.ratingMinVotes}})),Vs)(ci);var Bs=r(1903),$s=r.n(Bs),Ws=r(253),Ks=(0,t.graphql)($s(),{props:function(t){var n=t.ownProps,r=n.ratingIsEnabled,i=n.ratingMinVotes,o=n.router,a=t.data,l=a.loading,s=a.error,u=a.packages,c=void 0===u?[]:u;return{loading:l,error:s,packages:c,title:Ws.createElement(e.Translate,{content:"catalogSectionNewAndUpdatedTitle"}),children:c.map((function(e){var t=e.icon,n=e.buy_url,a=e.name,l=e.code,s=e.categories,u=e.rating,c=e.prices,d=e.license_info;return Ws.createElement(ci.Package,{key:l,code:l,icon:t,buy_url:n,name:a,categories:s,rating:r&&u.votes>=i?u:null,prices:c,license_info:d,onClick:function(e){o.push("/catalog/package/".concat(e))}})}))}}});const zs=(0,t.compose)(J((function(e){var t=e.extension.catalog;return{ratingIsEnabled:t.ratingIsEnabled,ratingMinVotes:t.ratingMinVotes}})),Ks)(ci);var Gs=r(4997),Ys=r.n(Gs),Hs=r(253);function Js(){return Js=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Js.apply(null,arguments)}var Xs=function(e){return function(t){return Hs.createElement(e,Js({},t,{params:Pn()}))}},Zs=r(253);function eu(e){return eu="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},eu(e)}function tu(){return tu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tu.apply(null,arguments)}function nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ru(r.key),r)}}function ru(e){var t=function(e,t){if("object"!=eu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==eu(t)?t:t+""}function iu(e,t,n){return t=au(t),function(e,t){if(t&&("object"==eu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ou()?Reflect.construct(t,n||[],au(e).constructor):t.apply(e,n))}function ou(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ou=function(){return!!e})()}function au(e){return au=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},au(e)}function lu(e,t){return lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lu(e,t)}var su=function(t){function n(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),iu(this,n,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lu(e,t)}(n,t),r=n,(i=[{key:"addFooter",value:function(t){return Zs.createElement("div",null,t,Zs.createElement("hr",null),Zs.createElement("div",{className:"text-center"},Zs.createElement(e.Translate,{content:"requestExtension",params:{link:Zs.createElement("a",{href:this.props.requestExtensionUrl,target:"_blank",rel:"noopener noreferrer"},Zs.createElement(e.Translate,{content:"requestExtensionLinkText"}))}})))}},{key:"render",value:function(){var t=this;if(this.props.loading)return Zs.createElement("span",{className:"s-btn sb-waiting"},Zs.createElement(e.Translate,{className:"text-muted",content:"wait"}));var n=this.props,r=n.categories;return n.params.code?this.addFooter(Zs.createElement(Qn,{context:{categories:r}})):this.addFooter(Zs.createElement(e.Grid,{minColumnWidth:220,gap:"xl"},r.map((function(n){return Zs.createElement(e.GridCol,{key:n.code},Zs.createElement(Oi,tu({},n,{ratingIsEnabled:t.props.ratingIsEnabled,ratingMinVotes:t.props.ratingMinVotes})))}))))}}])&&nu(r.prototype,i),o&&nu(r,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,i,o}(v.Component);su.propTypes={loading:y().bool.isRequired,children:y().any,categories:y().array,requestExtensionUrl:y().string,ratingIsEnabled:y().bool,ratingMinVotes:y().string,params:y().object};var uu=J((function(e){var t=e.extension.catalog;return{requestExtensionUrl:t.requestExtensionUrl,ratingIsEnabled:t.ratingIsEnabled,ratingMinVotes:t.ratingMinVotes}})),cu=(0,t.graphql)(Ys(),{props:function(e){var t=e.data;return{loading:t.loading,error:t.error,categories:(t.categories||[]).filter((function(e){return e.packages.length>0}))}}});const du=(0,t.compose)(Xs,uu,cu)(su);var fu=r(697),pu=r.n(fu),mu=r(253);function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vu.apply(null,arguments)}var hu=r(253);function yu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,l=[],s=!0,u=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw i}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return gu(e,t);var n={}.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)?gu(e,t):void 0}}(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 gu(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var bu=(0,t.graphql)(pu(),{options:function(e){return{variables:{code:e.params.code}}},props:function(t){var n=t.ownProps,r=n.ratingIsEnabled,i=n.ratingMinVotes,o=n.params.code,a=n.outletContext.categories,l=t.data,s=l.loading,u=l.error,c=l.categories,d=yu(void 0===c?[{}]:c,1)[0].packages,f=void 0===d?[]:d,p=a.filter((function(e){return e.code===o}))[0];return{loading:s,error:u,title:hu.createElement(e.Translate,{content:"categories.".concat(o),fallback:p.title}),switcher:hu.createElement(Di,{categories:a,currentCategory:o}),children:f.map((function(e){var t=e.code,n=e.buy_url,o=e.icon,a=e.name,l=e.version,s=e.release,u=e.rating,c=e.fake,d=e.prices,f=e.license_info;return hu.createElement(ci.Package,{key:t,code:t,icon:o,buy_url:n,name:a,version:!c&&l,release:!c&&s,rating:r&&u.votes>=i?u:null,prices:d,license_info:f})}))}}});const ku=(0,t.compose)(Xs,(function(e){return function(t){return mu.createElement(e,vu({},t,{outletContext:v.useContext(Nn)}))}}),J((function(e){var t=e.extension.catalog;return{ratingIsEnabled:t.ratingIsEnabled,ratingMinVotes:t.ratingMinVotes}})),bu)(ci);var wu=r(5246),Su=r.n(wu),Eu=r(2697),Ou=r.n(Eu),Nu=r(8877),Pu=r.n(Nu),_u=r(5621),Tu=r.n(_u);function Iu(e){return Iu="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},Iu(e)}function ju(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 xu(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ju(Object(n),!0).forEach((function(t){Fu(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ju(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fu(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Iu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Iu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Iu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cu=(0,t.graphql)(Su(),{options:function(e){return{variables:{code:e.params.code}}},props:function(e){var t=e.ownProps,n=t.longTasks,r=t.client,i=e.data,o=i.loading,a=i.packages,l=i.error,s=a&&a[0]||{},u=s.instance||{};return{loading:o,error:l,data:xu(xu(xu({},u),s),{},{current_version:u.version,current_release:u.release,installing:je(n,s.uuid),retrievingKeys:xe(n,s.code)}),onVoteLoad:function(e){return r.query({query:Ou(),variables:{uuid:e}})}}}}),Ru=J((function(e){var t=e.longTasks,n=e.extension.catalog;return{longTasks:t,catalogIsEnabled:n.catalogIsEnabled,ratingIsEnabled:n.ratingIsEnabled,ratingMinVotes:n.ratingMinVotes,buyInfo:n.buyInfo}}),(function(e){return{dispatch:e,onInstall:function(t){e(et(t))},onUpdate:function(t){e(tt(t))}}})),Au=(0,t.graphql)(Pu(),{props:function(e){var t=e.ownProps.dispatch,n=e.mutate;return{onVote:function(e,r,i){n({variables:{uuid:e,rating:r},optimisticResponse:{voteForExtension:!0},update:function(t){var n=t.readQuery({query:Ou(),variables:{uuid:e}});n.getVote=r,t.writeQuery({query:Ou(),variables:{uuid:e},data:n})}}).then((function(){t(We()),t($e({intent:"success","data-type":"toast-success",message:i}))}))}}}}),Du=(0,t.graphql)(Tu(),{props:function(e){var t=e.ownProps.dispatch,n=e.mutate;return{onRemoveVote:function(e,r){n({variables:{uuid:e},optimisticResponse:{removeVote:!0},update:function(t){var n=t.readQuery({query:Ou(),variables:{uuid:e}});n.getVote=0,t.writeQuery({query:Ou(),variables:{uuid:e},data:n})}}).then((function(){t(We()),t($e({intent:"success","data-type":"toast-success",message:r}))}))}}}});const qu=(0,t.compose)(t.withApollo,Xs,Ru,Cu,Au,Du)(ol);io.propTypes={countries:y().object,country:y().string,showPricesVAT:y().bool},io.defaultProps={country:null,showPricesVAT:!1};const Mu=J((function(e){var t=e.extension.settings;return{userLocale:t.userLocale,country:t.vatCountry,countries:t.countries,showPricesVAT:t.showPricesVAT}}))(io);hl.propTypes={countries:y().object,country:y().string,vatShowPopover:y().string,showPricesVAT:y().bool,showVatSettingsButton:y().bool},hl.defaultProps={country:null,vatShowPopover:"WithoutInitScreen",showPricesVAT:!1,showVatSettingsButton:!0};const Lu=J((function(e){var t=e.extension.settings;return{country:t.country,countries:t.countries,userLocale:t.userLocale,vatShowPopover:t.vatShowPopover,showPricesVAT:t.showPricesVAT,showVatSettingsButton:t.showVatSettingsButton}}),(function(e){return{dispatch:e,hideVatPopover:function(){e({types:[bt],promise:function(e){return e.post("/hide-vat-popover")}})}}}))(hl);var Uu=r(5867),Vu=r.n(Uu),Qu=(0,t.graphql)(Vu(),{props:function(e){var t=e.data;return{loading:t.loading,extensions:t.instances}}});const Bu=(0,t.compose)(J((function(e){var t=e.extension,n=t.installed.uploadUrl,r=t.catalog,i=r.catalogIsEnabled,o=r.buyInfo;return{isDemoMode:t.settings.isDemoMode,uploadUrl:n,catalogIsEnabled:i,buyInfo:o}}),(function(e){return{addStatusMessage:function(t){return e($e(t))}}})),Qu)(Ll);var $u=r(8724),Wu=r.n($u),Ku=r(3432),zu=r.n(Ku),Gu=r(9918),Yu=r.n(Gu),Hu=r(2369),Ju=r.n(Hu);function Xu(e){return Xu="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},Xu(e)}function Zu(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 ec(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Zu(Object(n),!0).forEach((function(t){tc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zu(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tc(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Xu(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Xu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Xu(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nc=(0,t.graphql)(Wu(),{options:function(e){return{variables:{code:e.params.code}}},props:function(e){var t=e.ownProps,n=t.longTasks,r=t.client,i=e.data,o=i.loading,a=i.error,l=i.instances,s=l&&l[0]||{},u=s.package||{};return{loading:o,error:a,isExtensionOverview:!0,data:ec(ec(ec({},u),s),{},{new_version:u.version,new_release:u.release,installing:je(n,u.uuid),retrievingKeys:xe(n,u.code)}),onVoteLoad:function(e){return r.query({query:Ou(),variables:{uuid:e}})}}}}),rc=J((function(e){var t=e.longTasks,n=e.extension,r=n.installed.currentOperation,i=n.catalog;return{longTasks:t,catalogIsEnabled:i.catalogIsEnabled,ratingIsEnabled:i.ratingIsEnabled,ratingMinVotes:i.ratingMinVotes,buyInfo:i.buyInfo,currentOperation:r}}),(function(e){return{dispatch:e,onInstall:function(t){e(et(t))},onUpdate:function(t){e(tt(t))}}})),ic=(0,t.graphql)(Yu(),{props:function(e){var t=e.ownProps.dispatch,n=e.mutate;return{onRemove:function(e,r,i){var o=e.code,a=e.name,l=window.location.href;t(We()),t(dt("remove")),n({variables:{code:o},update:function(e){var t=e.readQuery({query:Vu()});t.instances=t.instances.filter((function(e){return e.code!==o})),e.writeQuery({query:Vu(),data:t});try{var n=e.readQuery({query:Ju()});n.packages=n.packages.map((function(e){return e.code===o?Object.assign(e,{status:"absent",license_info:Object.assign(e.license_info,{new:!1})}):e})),e.writeQuery({query:Ju(),data:n})}catch(e){}}}).then((function(){t(ft()),l===window.location.href&&i("/installed"),t($e({intent:"success",message:r("infoModuleDeleted")}))})).catch((function(e){t($e({intent:"warning",message:r("errorModulesDeleted",{name:a,reason:e})})),t(ft())}))}}}}),oc=(0,t.graphql)(zu(),{props:function(e){var t=e.ownProps.dispatch,n=e.mutate;return{onStatus:function(e,r,i){var o=e.code,a=e.name;t(We()),t(dt("status")),n({variables:{code:o,value:r}}).then((function(){t($e({intent:"success",message:i(r?"infoModuleEnabled":"infoModuleDisabled")})),t(ft())})).catch((function(){t($e({intent:"warning",message:i("warningModuleStatusNotChanged",{module:a})})),t(ft())}))}}}});const ac=(0,t.compose)(t.withApollo,Xs,rc,nc,ic,oc,Au,Du)(ol);var lc=r(5486),sc=r.n(lc),uc=(0,t.graphql)(Vu(),{props:function(e){return{extensions:e.data.instances}}}),cc=(0,t.graphql)(sc(),{props:function(e){var t=e.mutate;return{onSave:function(e){var n=e.map((function(e){return e.code}));t({variables:{codes:n},optimisticResponse:{__typename:"Mutation",customizeExtensions:!0},update:function(t){var n=t.readQuery({query:Vu()});n.instances=e,t.writeQuery({query:Vu(),data:n})}})}}}});const dc=(0,t.compose)(uc,cc)(Xl);var fc=(0,t.graphql)(Ju(),{props:function(e){var t=e.ownProps.longTasks,n=e.data,r=n.loading,i=n.packages,o=!!i&&i.reduce((function(e,n){return e||je(t,n.uuid)}),!1);return{loading:r,extensions:i,installing:o}}});const pc=(0,t.compose)(J((function(e){var t=e.longTasks,n=e.extension,r=n.catalog,i=r.baseUrl,o=r.buyInfo,a=r.catalogIsEnabled;return{baseUrl:i,longTasks:t,isDemoMode:n.settings.isDemoMode,catalogIsEnabled:a,buyInfo:o}}),(function(e){return{addStatusMessage:function(t){return e($e(t))},onInstall:function(t){return e(et(t,"index.php/purchases"))}}})),fc)(is);var mc,vc=r(8959),hc=r.n(vc),yc=r(1815),gc=r.n(yc),bc=r(253);function kc(e){return kc="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},kc(e)}function wc(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 Sc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wc(Object(n),!0).forEach((function(t){xc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ec(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Fc(r.key),r)}}function Nc(e,t,n){return t&&Oc(e.prototype,t),n&&Oc(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pc(e,t,n){return t=Tc(t),function(e,t){if(t&&("object"==kc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_c()?Reflect.construct(t,n||[],Tc(e).constructor):t.apply(e,n))}function _c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_c=function(){return!!e})()}function Tc(e){return Tc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Tc(e)}function Ic(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jc(e,t)}function jc(e,t){return jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jc(e,t)}function xc(e,t,n){return(t=Fc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fc(e){var t=function(e,t){if("object"!=kc(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=kc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kc(t)?t:t+""}var Cc=function(t){function n(){var e;Ec(this,n);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return xc(e=Pc(this,n,[].concat(r)),"handleUpdate",(function(){var t=e.props.selection;e.props.onSelectionChange([]),e.props.onStartUpdate(t)})),xc(e,"handleCheckUpdates",(function(){var t=e.context.locale;e.props.onCheckUpdates(t)})),xc(e,"handleSwitchAutoUpdate",(function(t){var n=e.context.locale;e.props.onSwitchAutoUpdate(t,n)})),e}return Ic(n,t),Nc(n,[{key:"renderList",value:function(){var t=this;if(!this.props.updates.length)return bc.createElement(e.ExtendedStatusMessage,{intent:"success","data-type":"no-extension-updates",image:bc.createElement("img",{src:"/modules/catalog/images/extensions-uptodate-61ab511.png",alt:""})},bc.createElement(e.ExtendedStatusMessageTitle,null,bc.createElement(e.Translate,{content:"noUpdatesTitle"})),bc.createElement(e.ExtendedStatusMessageDescription,null,bc.createElement(e.Translate,{content:"noUpdatesDescription"})));var n=[{key:"name",title:bc.createElement(e.Translate,{content:"packageName"}),sortable:!0,style:{minWidth:"150px"},render:function(t){var n=t.icon,r=t.code,i=t.name,o=t.instance,a=t.version,l=t.release,s=t.installing;return bc.createElement(oi,{to:"installed/".concat(r),className:"media media--inline"},bc.createElement("figure",{className:"media__figure"},bc.createElement(e.Icon,{size:"md"},bc.createElement("img",{src:n,alt:i}))),bc.createElement("div",{className:"media__body"},bc.createElement("div",{className:"ui-link media__ui-link","data-type":"item-name","data-id":r},i),bc.createElement("div",{className:"text-body--small text-color--muted-light","data-type":"item-version","data-id":r},s?bc.createElement(e.Translate,{content:"updatingTo",params:{version:"".concat(a,"-").concat(l)}}):bc.createElement(e.Translate,{content:"packageVersionList",params:{version:"".concat(o.version,"-").concat(o.release)}}))))}},{key:"changelog",title:bc.createElement(e.Translate,{content:"updateChangeLog"}),style:{width:"50%"},render:function(e){var n=e.code,r=e.version,i=e.release;return bc.createElement("div",null,bc.createElement("span",{"data-type":"item-new-version","data-id":n},"".concat(r,"-").concat(i)),bc.createElement(Rc,{code:n,client:t.props.client}))}},{key:"details",className:"cell-shrink",render:function(t){var n=t.code;return bc.createElement(oi,{className:"s-btn",to:"catalog/package/".concat(n),"data-type":"item-update-details","data-id":n},bc.createElement(e.Icon,{src:Ao}),bc.createElement(e.Translate,{content:"updateFullDetails"}))}}];return bc.createElement(e.List,{columns:n,"data-type":"extension-updates-list",rowKey:"uuid",data:this.props.updates,sortColumn:this.props.sortColumn,sortDirection:this.props.sortDirection,onSortChange:this.props.onSortChange,selection:this.props.selection,onSelectionChange:this.props.onSelectionChange})}},{key:"render",value:function(){var t=this.props.loading,n=this.context.locale;return bc.createElement("div",null,bc.createElement(Fl,{"data-type":"extension-updates-actions"},bc.createElement(Fl.Button,{"data-type":"update-button",className:"sb-update",disabled:!this.props.selection.length,onClick:this.handleUpdate,tooltip:n.lmsg("buttonUpdateTitle")},bc.createElement(e.Translate,{content:"buttonUpdate"})),bc.createElement(Fl.Separator,null),bc.createElement(Fl.Button,{"data-type":"check-updates-button",className:this.props.checkingUpdates?"sb-waiting":"sb-scan",disabled:this.props.checkingUpdates,onClick:this.handleCheckUpdates,tooltip:n.lmsg("buttonCheckUpdatesTitle")},bc.createElement(e.Translate,{content:"buttonCheckUpdates"})),bc.createElement(Fl.Separator,null),bc.createElement(e.Switch,{checked:this.props.autoUpdate,disabled:this.props.switchingAutoUpdate,onChange:this.handleSwitchAutoUpdate,tooltip:n.lmsg("switchAutoUpdatesTitle")},bc.createElement(e.Translate,{content:"switchAutoUpdates"}))),t?bc.createElement("span",{className:"s-btn sb-waiting"},bc.createElement(e.Translate,{className:"text-muted",content:"wait"})):this.renderList())}}])}(v.Component);Cc.propTypes={loading:y().bool,updates:y().array.isRequired,autoUpdate:y().bool,selection:y().array,checkingUpdates:y().bool,switchingAutoUpdate:y().bool,client:y().object.isRequired,sortColumn:y().string,sortDirection:y().string,onSortChange:y().func,onSelectionChange:y().func,onStartUpdate:y().func,onCheckUpdates:y().func,onSwitchAutoUpdate:y().func},Cc.defaultProps={loading:!1,checkingUpdates:!1},Cc.contextType=e.LocaleContext;var Rc=function(n){function r(){var e;Ec(this,r);for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return xc(e=Pc(this,r,[].concat(i)),"state",{expanded:!1,changelog:null}),xc(e,"handleShow",(function(){var n,r;(e.setState({expanded:!0}),e.state.changelog)||e.props.client.query({query:(0,t.gql)(mc||(n=['\n {\n packages(code: "','") {\n changelog {\n md\n plain\n }\n }\n }\n '],r||(r=n.slice(0)),mc=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(r)}}))),e.props.code)}).then((function(t){var n=t.data;e.setState({changelog:n.packages[0].changelog})}))})),e}return Ic(r,n),Nc(r,[{key:"render",value:function(){return this.state.expanded?this.state.changelog?bc.createElement("div",{className:zr("markdown--compact")},bc.createElement(e.Cuttable,{collapsed:!1},bc.createElement(Qa,{rich:this.state.changelog||{},fallback:bc.createElement(e.Translate,{className:"text-color--muted",content:"noChangeLog"})}))):bc.createElement("div",null,bc.createElement("span",{className:"s-btn"},bc.createElement(e.Icon,{src:Vo})," ",bc.createElement(e.Translate,{className:"text-muted",content:"wait"}))):bc.createElement("div",null,bc.createElement("a",{onClick:this.handleShow},bc.createElement(e.Translate,{content:"showChangelog"})))}}])}(v.Component);Rc.propTypes={code:y().string.isRequired,client:y().object.isRequired};var Ac=(0,t.graphql)(hc(),{props:function(e){var t=e.ownProps.longTasks,n=e.data;return{loading:n.loading,error:n.error,updates:(n.packages||[]).map((function(e){var n=je(t,e.uuid);return Sc(Sc({},e),{},{disabled:n,installing:n})}))}}}),Dc=(0,t.graphql)(gc(),{props:function(e){var t=e.ownProps.dispatch,n=e.mutate;return{onCheckUpdates:function(e){t(We()),t({type:Je}),n({update:function(e,t){var n=t.data.checkUpdates.packages,r=e.readQuery({query:hc()});r.packages=n,e.writeQuery({query:hc(),data:r})}}).then((function(){t(nt()),t(We()),t($e({intent:"success",message:e.lmsg("checkUpdatesDone")}))})).catch((function(e){t(nt()),t(We()),t($e({intent:"danger",message:e.message}))}))}}}});const qc=(0,t.compose)(t.withApollo,J((function(e){var t=e.longTasks,n=e.extension,r=n.catalog.checkingUpdates,i=n.settings;return{longTasks:t,autoUpdate:i.autoUpdate,switchingAutoUpdate:i.switchingAutoUpdate,checkingUpdates:r}}),(function(e){return{dispatch:e,onStartUpdate:function(t){e(tt(t))},onSwitchAutoUpdate:function(t,n){e(function(e){return{types:[yt,gt],promise:function(t){return t.post("/auto-updates",{enable:e})},autoUpdate:e}}(t)).then((function(){e(We()),e($e({intent:"success",message:n.lmsg(t?"autoUpdatesEnabled":"autoUpdatesDisabled")}))}))}}})),Ac,Dc,function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return J((function(n){var r=n.lists[e]||{};return fe(fe({sortDirection:"ASC",selection:[]},t),r)}),(function(t){return{onSortChange:function(n){t(fe({type:me,id:e},n))},onSelectionChange:function(n){t({type:ve,id:e,selection:n})}}}))}("extension-updates",{sortColumn:"name"}))(Cc);var Mc=r(253),Lc=function(e){var t=e.baseUrl;return Mc.createElement(Nr,{basename:t},Mc.createElement(Wn,null,Mc.createElement(Bn,{element:Mc.createElement(Ps,null)},Mc.createElement(Bn,{path:"catalog",element:Mc.createElement(Is,null)},Mc.createElement(Bn,{index:!0,element:Mc.createElement(Vn,{to:"/featured",replace:!0})}),Mc.createElement(Bn,{path:"featured",element:Mc.createElement(qs,null)}),Mc.createElement(Bn,{path:"most-popular",element:Mc.createElement(Qs,null)}),Mc.createElement(Bn,{path:"new-and-updated",element:Mc.createElement(zs,null)}),Mc.createElement(Bn,{path:"category",element:Mc.createElement(du,null)},Mc.createElement(Bn,{path:":code",element:Mc.createElement(ku,null)})),Mc.createElement(Bn,{path:"package/:code",element:Mc.createElement(qu,null)}),Mc.createElement(Bn,{path:"package/:code/:autoinplace",element:Mc.createElement(qu,null)}),Mc.createElement(Bn,{path:"package/:code/:autoinplace/coupon/:coupon",element:Mc.createElement(qu,null)})),Mc.createElement(Bn,{path:"installed"},Mc.createElement(Bn,{index:!0,element:Mc.createElement(Bu,null)}),Mc.createElement(Bn,{path:"customize",element:Mc.createElement(dc,null)}),Mc.createElement(Bn,{path:":code",element:Mc.createElement(ac,null)})),Mc.createElement(Bn,{path:"updates",element:Mc.createElement(qc,null)}),Mc.createElement(Bn,{path:"purchases",element:Mc.createElement(pc,null)})),Mc.createElement(Bn,{path:"*",element:Mc.createElement(Vn,{to:"/catalog/featured",replace:!0})})))};Lc.propTypes={baseUrl:y().string.isRequired};const Uc=Lc;Jsw.onReady((function(){var e=[],t="pleskcatalogiddqd";Event.observe(document,"keypress",(function(n){var r=n.key;e.push(r),e.length>17&&e.shift(),17===e.length&&t===e.join("")&&new Ajax.Request("/modules/catalog/index.php/toggle-extension-upload",{onSuccess:function(){window.location.reload(!0)}})}))}));var Vc=r(253),Qc=["locale","graphqlQueries"];const Bc=function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=i.locale,a=i.graphqlQueries,l=void 0===a?[]:a,s=function(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(i,Qc),u=document.getElementById("main"),c=document.createElement("div");u.appendChild(c);var d={};window.fetch&&!window.fetch.polyfill&&(d["X-Forgery-Protection-Token"]=document.getElementById("forgery_protection_token").content);var f=(0,t.createNetworkInterface)({uri:"".concat(s.baseUrl,"/graphql"),opts:{credentials:"same-origin",headers:d}});window.Ajax&&(f.use([{applyMiddleware:function(e,t){window.Ajax.activeRequestCount++,t()}}]),f.useAfter([{applyAfterware:function(e,t){window.Ajax.activeRequestCount--,t()}}]));var p=new t.ApolloClient({networkInterface:f,dataIdFromObject:function(e){switch(e.__typename){case"Category":case"Package":case"PackageInstance":return e.code?"".concat(e.__typename,"-").concat(e.code):null}return e.id&&e.__typename?e.__typename+e.id:null}}),m=_t(s,function(e,t){var r,i=e.baseUrl,o=e.autoUpdate,a=e.catalogIsEnabled,l=e.catalogError,s=e.ratingIsEnabled,u=e.ratingMinVotes,c=e.isDemoMode,d=e.buyInfo,f=e.requestExtensionUrl,p=e.uploadEnabled,m=e.userLocale,v=e.country,h=e.email,y=e.vatCountry,g=e.countries,b=e.vatShowInitScreen,k=e.vatShowPopover,w=e.showPricesVAT,S=e.showVatSettingsButton,E=e.embeddedPurchases;return{apollo:t.reducer(),status:Be,lists:ye,longTasks:Te,extension:(0,n.combineReducers)({catalog:(r={baseUrl:i,ratingIsEnabled:s,ratingMinVotes:u,catalogIsEnabled:a,catalogError:l,buyInfo:d,requestExtensionUrl:f},function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ge(Ge({},Ze),r);switch((arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).type){case Je:return Ge(Ge({},e),{},{checkingUpdates:!0});case Xe:return Ge(Ge({},e),{},{checkingUpdates:!1});default:return e}}),installed:ct({uploadUrl:p?"".concat(i,"/add"):null}),settings:wt({autoUpdate:o,isDemoMode:c,userLocale:m,country:v,email:h,vatCountry:y,countries:g,vatShowInitScreen:b,vatShowPopover:k,showPricesVAT:w,showVatSettingsButton:S,embeddedPurchases:E})})}}(s,p),p);l.forEach((function(e){var t=e.name,n=e.variables,i=e.data,o=r(7238)("./".concat(t));p.writeQuery({query:o,variables:n,data:i})})),function(e,n){var r=function(e){return e.map((function(e){return e.initialConfig||e}))},i=Jsw.getComponent("asyncProgressBarWrapper");i&&e.dispatch(Ie(r(i.getItems()))),Jsw.Task.ProgressBar.prototype.setItems=Jsw.Task.ProgressBar.prototype.setItems.wrap((function($super,i){for(var o,a,l=function(e,t){return e[t.id]=t,e},s=r(i),u=e.getState().longTasks.items.reduce(l,{}),c=s.reduce(l,{}),d=Object.keys(c),f=0,p=d.length;f<p;++f){var m=d[f],v=c[m];"done"===v.status&&u[m]&&"done"!==u[m].status&&"ext-catalog-retrieve-keys"===v.type&&v.additionalData.success&&n.writeQuery({query:(0,t.gql)(ge||(o=["\n query ($code: ID!) {\n packages(code: $code) {\n code\n license_info {\n purchased\n keyNumber\n orderAction\n source\n }\n }\n }\n "],a=void 0,a||(a=o.slice(0)),ge=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(a)}})))),variables:{code:v.additionalData.code},data:{packages:[{__typename:"Package",code:v.additionalData.code,license_info:null}]}})}e.dispatch(Ie(s)),$super(i)}))}(m,p),(0,e.render)(Vc.createElement(t.ApolloProvider,{store:m,client:p},Vc.createElement(e.LocaleProvider,{messages:o},Vc.createElement(Uc,{baseUrl:s.baseUrl}))),c)}})(),i})()));