UNPKG

@publidata/utils-fontawesome

Version:
1 lines 78.9 kB
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("axios")):"function"==typeof define&&define.amd?define(["axios"],t):"object"==typeof exports?exports["Utils-fontawesome"]=t(require("axios")):(e.Publidata=e.Publidata||{},e.Publidata["Utils-fontawesome"]=t(e.axios))}(this,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=14)}([function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return a})),n.d(t,"b",(function(){return c}));class r{constructor(e,t,n){this.start=e.start,this.end=t.end,this.startToken=e,this.endToken=t,this.source=n}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}}class i{constructor(e,t,n,r,i,s){this.kind=e,this.start=t,this.end=n,this.line=r,this.column=i,this.value=s,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}}const s={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","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:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},o=new Set(Object.keys(s));function a(e){const t=null==e?void 0:e.kind;return"string"==typeof t&&o.has(t)}var c;!function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"}(c||(c={}))},function(e,t,n){"use strict";function r(e){return 9===e||32===e}function i(e){return e>=48&&e<=57}function s(e){return e>=97&&e<=122||e>=65&&e<=90}function o(e){return s(e)||95===e}function a(e){return s(e)||i(e)||95===e}n.d(t,"d",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a}))},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));function r(e){return i(e,[])}function i(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return function(e,t){if(null===e)return"null";if(t.includes(e))return"[Circular]";const n=[...t,e];if(function(e){return"function"==typeof e.toJSON}(e)){const t=e.toJSON();if(t!==e)return"string"==typeof t?t:i(t,n)}else if(Array.isArray(e))return function(e,t){if(0===e.length)return"[]";if(t.length>2)return"[Array]";const n=Math.min(10,e.length),r=e.length-n,s=[];for(let r=0;r<n;++r)s.push(i(e[r],t));1===r?s.push("... 1 more item"):r>1&&s.push(`... ${r} more items`);return"["+s.join(", ")+"]"}(e,n);return function(e,t){const n=Object.entries(e);if(0===n.length)return"{}";if(t.length>2)return"["+function(e){const t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if("Object"===t&&"function"==typeof e.constructor){const t=e.constructor.name;if("string"==typeof t&&""!==t)return t}return t}(e)+"]";return"{ "+n.map(([e,n])=>e+": "+i(n,t)).join(", ")+" }"}(e,n)}(e,t);default:return String(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));var r=n(2);function i(e){var t;let n=Number.MAX_SAFE_INTEGER,r=null,i=-1;for(let t=0;t<e.length;++t){var o;const a=e[t],c=s(a);c!==a.length&&(r=null!==(o=r)&&void 0!==o?o:t,i=t,0!==t&&c<n&&(n=c))}return e.map((e,t)=>0===t?e:e.slice(n)).slice(null!==(t=r)&&void 0!==t?t:0,i+1)}function s(e){let t=0;for(;t<e.length&&Object(r.d)(e.charCodeAt(t));)++t;return t}function o(e,t){const n=e.replace(/"""/g,'\\"""'),i=n.split(/\r\n|[\n\r]/g),s=1===i.length,o=i.length>1&&i.slice(1).every(e=>0===e.length||Object(r.d)(e.charCodeAt(0))),a=n.endsWith('\\"""'),c=e.endsWith('"')&&!a,u=e.endsWith("\\"),l=c||u,p=!(null!=t&&t.minimize)&&(!s||e.length>70||l||o||a);let h="";const d=s&&Object(r.d)(e.charCodeAt(0));return(p&&!d||o)&&(h+="\n"),h+=n,(p||l)&&(h+="\n"),'"""'+h+'"""'}},function(e,t,n){"use strict";e.exports=function(e){var t=e.uri,n=e.name,r=e.type;this.uri=t,this.name=n,this.type=r}},function(e,t,n){"use strict";var r=n(6);e.exports=function(e){return"undefined"!=typeof File&&e instanceof File||"undefined"!=typeof Blob&&e instanceof Blob||e instanceof r}},function(e,t,n){function r(){var e=a(['\n {\n me {\n kit(token: "','") {\n name\n token\n version\n licenseSelected\n technologySelected\n iconUploads {\n name\n path\n width\n height\n version\n unicode\n }\n }\n }\n }']);return r=function(){return e},e}function i(){var e=a(["\n {\n me {\n kits {\n name\n token\n version\n licenseSelected\n technologySelected\n }\n }\n }\n "]);return i=function(){return e},e}function s(){var e=a(['\n {\n release(version: "6.x") {\n ',"\n }\n }\n "]);return s=function(){return e},e}function o(){var e=a(['\n {\n release(version: "6.x") {\n icon(name: "','") {\n id\n svgs(\n filter: {\n familyStyles: [\n { family: CLASSIC, style: '," }\n ]\n }\n ) {\n html\n }\n }\n }\n }\n "]);return o=function(){return e},e}function a(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){var n=t.get(e);if(!n)throw new TypeError("attempted to get private field on non-instance");return n.get?n.get.call(e):n.value}function l(e,t,n){var r=t.get(e);if(!r)throw new TypeError("attempted to set private field on non-instance");if(r.set)r.set.call(e,n);else{if(!r.writable)throw new TypeError("attempted to set read only private field");r.value=n}return n}var p=n(15),h=n(16),{GraphQLClient:d,gql:f}=n(9),{FA_API_BASE_URL:v}=n(23);var y=new WeakMap,m=new WeakMap,E=new WeakMap;e.exports=class{constructor(e){if(y.set(this,{writable:!0,value:void 0}),m.set(this,{writable:!0,value:!1}),E.set(this,{writable:!0,value:null}),c(this,"_client",new d(v)),c(this,"_cache",new h(500)),"string"!=typeof e)throw new Error("Invalid token provided");l(this,y,e)}get cache(){return{get:this._cache.get}}_connect(){return u(this,m)?Promise.resolve():(u(this,E)||l(this,E,new Promise((e,t)=>{u(this,y)?p.post("".concat(v,"/token"),{},{headers:{Authorization:"Bearer ".concat(u(this,y))}}).then(n=>{var r;200===n.status?(this._client.setHeaders({Authorization:"Bearer ".concat(null===(r=n.data)||void 0===r?void 0:r.access_token)}),l(this,m,!0),l(this,E,null),e()):(l(this,E,null),t(Error("Invalid token provided")))}).catch(e=>{l(this,E,null),t(e)}):(l(this,E,null),t(Error("No token provided")))})),u(this,E))}_queryWithToken(e){return this._connect().then(()=>this._client.request(e).catch(t=>{var n,r,i,s;if(401===(null===(n=t.response)||void 0===n?void 0:n.status)||"unauthorized"===(null===(r=t.response)||void 0===r||null===(i=r.errors)||void 0===i||null===(s=i[0])||void 0===s?void 0:s.message))return l(this,m,!1),this._connect().then(()=>this._client.request(e));throw t}))}getIcon(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"fas",n=f(o(),e,{fas:"SOLID",far:"REGULAR",fab:"BRAND"}[t]);return this._queryWithToken(n).then(e=>{var t,n,r;return null===(t=e.release)||void 0===t||null===(n=t.icon)||void 0===n||null===(r=n.svgs)||void 0===r?void 0:r[0]})}getIcons(e){if(!e||!e.length)return Promise.resolve([]);var t={fas:"SOLID",far:"REGULAR",fab:"BRAND"},n=e.map((e,n)=>{var r=t[e.prefix||"fas"];return"\n icon".concat(n,': icon(name: "').concat(e.iconName,'") {\n id\n svgs(\n filter: {\n familyStyles: [\n { family: CLASSIC, style: ').concat(r," }\n ]\n }\n ) {\n html\n }\n }")}).join("\n"),r=f(s(),n);return this._queryWithToken(r).then(t=>e.map((e,n)=>{var r,i,s;return null===(r=t.release)||void 0===r||null===(i=r["icon".concat(n)])||void 0===i||null===(s=i.svgs)||void 0===s?void 0:s[0]}))}kits(){var e=f(i());return this._queryWithToken(e)}kit(e){if(!e)throw new Error("No token provided to .kit($token)");var t=f(r(),e);return this._queryWithToken(t)}kitIcons(e,t){if(!e)throw new Error("No token provided to .kitIcons($token, $[icons])");var n="kitIcons-".concat(e,"-").concat(null==t?void 0:t.join("-"));return new Promise((r,i)=>{var s=this._cache.get(n);if(s)return r(s);if(t){var o=t.map(e=>this._cache.get(e));if(o.every(Boolean))return r(o)}this.kit(e).then(e=>{t&&(e.me.kit.iconUploads=e.me.kit.iconUploads.filter(e=>t.includes(e.name)));var i=e.me.kit.iconUploads.map(e=>({key:"".concat(e.name),value:e}));this._cache.put(n,e.me.kit.iconUploads),this._cache.putAll(i),r(e.me.kit.iconUploads)}).catch(i)})}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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}).apply(this,arguments)},i=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(t,e,n);return s(t,e),t},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},c=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}},u=this&&this.__rest||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&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n},l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=t.gql=t.resolveRequestDocument=t.batchRequests=t.request=t.rawRequest=t.GraphQLClient=t.ClientError=void 0;var p=o(n(17)),h=p,d=n(26),f=n(27),v=l(n(18)),y=n(11),m=n(21),E=n(12);Object.defineProperty(t,"ClientError",{enumerable:!0,get:function(){return E.ClientError}});var b=function(e){var t={};return e&&("undefined"!=typeof Headers&&e instanceof Headers||h&&h.Headers&&e instanceof h.Headers?t=function(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}(e):Array.isArray(e)?e.forEach((function(e){var n=e[0],r=e[1];t[n]=r})):t=e),t},T=function(e){return e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim()},_=function(e){var t=e.url,n=e.query,i=e.variables,s=e.operationName,o=e.headers,u=e.fetch,l=e.fetchOptions,p=e.middleware;return a(void 0,void 0,void 0,(function(){var e,a;return c(this,(function(c){switch(c.label){case 0:return e=v.default(n,i,s,l.jsonSerializer),a=r({method:"POST",headers:r(r({},"string"==typeof e?{"Content-Type":"application/json"}:{}),o),body:e},l),p?[4,Promise.resolve(p(a))]:[3,2];case 1:a=c.sent(),c.label=2;case 2:return[4,u(t,a)];case 3:return[2,c.sent()]}}))}))},O=function(e){var t=e.url,n=e.query,i=e.variables,s=e.operationName,o=e.headers,u=e.fetch,l=e.fetchOptions,p=e.middleware;return a(void 0,void 0,void 0,(function(){var e,a;return c(this,(function(c){switch(c.label){case 0:return e=function(e){var t=e.query,n=e.variables,r=e.operationName,i=e.jsonSerializer;if(!Array.isArray(t)){var s=["query="+encodeURIComponent(T(t))];return n&&s.push("variables="+encodeURIComponent(i.stringify(n))),r&&s.push("operationName="+encodeURIComponent(r)),s.join("&")}if(void 0!==n&&!Array.isArray(n))throw new Error("Cannot create query with given variable type, array expected");var o=t.reduce((function(e,t,r){return e.push({query:T(t),variables:n?i.stringify(n[r]):void 0}),e}),[]);return"query="+encodeURIComponent(i.stringify(o))}({query:n,variables:i,operationName:s,jsonSerializer:l.jsonSerializer}),a=r({method:"GET",headers:o},l),p?[4,Promise.resolve(p(a))]:[3,2];case 1:a=c.sent(),c.label=2;case 2:return[4,u(t+"?"+e,a)];case 3:return[2,c.sent()]}}))}))},g=function(){function e(e,t){void 0===t&&(t={}),this.url=e,this.options=t}return e.prototype.rawRequest=function(e,t,n){return a(this,void 0,void 0,(function(){var i,s,o,a,l,h,d,f,v,y,E,T;return c(this,(function(c){return i=m.parseRawRequestArgs(e,t,n),s=this.options,o=s.headers,a=s.fetch,l=void 0===a?p.default:a,h=s.method,d=void 0===h?"POST":h,f=s.requestMiddleware,v=s.responseMiddleware,y=u(s,["headers","fetch","method","requestMiddleware","responseMiddleware"]),E=this.url,void 0!==i.signal&&(y.signal=i.signal),T=k(i.query).operationName,[2,N({url:E,query:i.query,variables:i.variables,headers:r(r({},b(w(o))),b(i.requestHeaders)),operationName:T,fetch:l,method:d,fetchOptions:y,middleware:f}).then((function(e){return v&&v(e),e})).catch((function(e){throw v&&v(e),e}))]}))}))},e.prototype.request=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=t[0],s=t[1],o=m.parseRequestArgs(e,i,s),a=this.options,c=a.headers,l=a.fetch,h=void 0===l?p.default:l,d=a.method,f=void 0===d?"POST":d,v=a.requestMiddleware,y=a.responseMiddleware,E=u(a,["headers","fetch","method","requestMiddleware","responseMiddleware"]),T=this.url;void 0!==o.signal&&(E.signal=o.signal);var _=k(o.document),O=_.query,g=_.operationName;return N({url:T,query:O,variables:o.variables,headers:r(r({},b(w(c))),b(o.requestHeaders)),operationName:g,fetch:h,method:f,fetchOptions:E,middleware:v}).then((function(e){return y&&y(e),e.data})).catch((function(e){throw y&&y(e),e}))},e.prototype.batchRequests=function(e,t){var n=m.parseBatchRequestArgs(e,t),i=this.options,s=i.headers,o=i.fetch,a=void 0===o?p.default:o,c=i.method,l=void 0===c?"POST":c,h=i.requestMiddleware,d=i.responseMiddleware,f=u(i,["headers","fetch","method","requestMiddleware","responseMiddleware"]),v=this.url;return void 0!==n.signal&&(f.signal=n.signal),N({url:v,query:n.documents.map((function(e){return k(e.document).query})),variables:n.documents.map((function(e){return e.variables})),headers:r(r({},b(w(s))),b(n.requestHeaders)),operationName:void 0,fetch:a,method:l,fetchOptions:f,middleware:h}).then((function(e){return d&&d(e),e.data})).catch((function(e){throw d&&d(e),e}))},e.prototype.setHeaders=function(e){return this.options.headers=e,this},e.prototype.setHeader=function(e,t){var n,r=this.options.headers;return r?r[e]=t:this.options.headers=((n={})[e]=t,n),this},e.prototype.setEndpoint=function(e){return this.url=e,this},e}();function N(e){var t=e.url,n=e.query,i=e.variables,s=e.headers,o=e.operationName,l=e.fetch,p=e.method,h=void 0===p?"POST":p,d=e.fetchOptions,f=e.middleware;return a(this,void 0,void 0,(function(){var e,a,p,v,y,m,b,T,g,N,x;return c(this,(function(c){switch(c.label){case 0:return e="POST"===h.toUpperCase()?_:O,a=Array.isArray(n),[4,e({url:t,query:n,variables:i,operationName:o,headers:s,fetch:l,fetchOptions:d,middleware:f})];case 1:return[4,A(p=c.sent(),d.jsonSerializer)];case 2:if(v=c.sent(),y=a&&Array.isArray(v)?!v.some((function(e){return!e.data})):!!v.data,m=!v.errors||"all"===d.errorPolicy||"ignore"===d.errorPolicy,p.ok&&m&&y)return b=p.headers,T=p.status,v.errors,g=u(v,["errors"]),N="ignore"===d.errorPolicy?g:v,[2,r(r({},a?{data:N}:N),{headers:b,status:T})];throw x="string"==typeof v?{error:v}:v,new E.ClientError(r(r({},x),{status:p.status,headers:p.headers}),{query:n,variables:i})}}))}))}function x(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return a(this,void 0,void 0,(function(){var i,s,o;return c(this,(function(a){return i=n[0],s=n[1],o=m.parseRequestExtendedArgs(e,t,i,s),[2,new g(o.url).request(r({},o))]}))}))}function A(e,t){return void 0===t&&(t=y.defaultJsonSerializer),a(this,void 0,void 0,(function(){var n,r,i;return c(this,(function(s){switch(s.label){case 0:return e.headers.forEach((function(e,t){"content-type"===t.toLowerCase()&&(n=e)})),n&&n.toLowerCase().startsWith("application/json")?(i=(r=t).parse,[4,e.text()]):[3,2];case 1:return[2,i.apply(r,[s.sent()])];case 2:return[2,e.text()]}}))}))}function I(e){var t,n=void 0,r=e.definitions.filter((function(e){return"OperationDefinition"===e.kind}));return 1===r.length&&(n=null===(t=r[0].name)||void 0===t?void 0:t.value),n}function k(e){if("string"==typeof e){var t=void 0;try{t=I(d.parse(e))}catch(e){}return{query:e,operationName:t}}var n=I(e);return{query:f.print(e),operationName:n}}function w(e){return"function"==typeof e?e():e}t.GraphQLClient=g,t.rawRequest=function(e,t,n,i){return a(this,void 0,void 0,(function(){var s;return c(this,(function(o){return s=m.parseRawRequestExtendedArgs(e,t,n,i),[2,new g(s.url).rawRequest(r({},s))]}))}))},t.request=x,t.batchRequests=function(e,t,n){return a(this,void 0,void 0,(function(){var i;return c(this,(function(s){return i=m.parseBatchRequestsExtendedArgs(e,t,n),[2,new g(i.url).batchRequests(r({},i))]}))}))},t.default=x,t.resolveRequestDocument=k,t.gql=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return e.reduce((function(e,n,r){return""+e+n+(r in t?t[r]:"")}),"")};var D=n(22);Object.defineProperty(t,"GraphQLWebSocketClient",{enumerable:!0,get:function(){return D.GraphQLWebSocketClient}})},function(e,t,n){"use strict";var r=n(7);e.exports=function e(t,n,i){var s;void 0===n&&(n=""),void 0===i&&(i=r);var o=new Map;function a(e,t){var n=o.get(t);n?n.push.apply(n,e):o.set(t,e)}if(i(t))s=null,a([n],t);else{var c=n?n+".":"";if("undefined"!=typeof FileList&&t instanceof FileList)s=Array.prototype.map.call(t,(function(e,t){return a([""+c+t],e),null}));else if(Array.isArray(t))s=t.map((function(t,n){var r=e(t,""+c+n,i);return r.files.forEach(a),r.clone}));else if(t&&t.constructor===Object)for(var u in s={},t){var l=e(t[u],""+c+u,i);l.files.forEach(a),s[u]=l.clone}else s=t}return{clone:s,files:o}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultJsonSerializer=void 0,t.defaultJsonSerializer={parse:JSON.parse,stringify:JSON.stringify}},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");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}),t.ClientError=void 0;var s=function(e){function t(n,r){var i=this,s=t.extractMessage(n)+": "+JSON.stringify({response:n,request:r});return i=e.call(this,s)||this,Object.setPrototypeOf(i,t.prototype),i.response=n,i.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(i,t),i}return i(t,e),t.extractMessage=function(e){try{return e.errors[0].message}catch(t){return"GraphQL Error (Code: "+e.status+")"}},t}(Error);t.ClientError=s},function(e,t,n){var r=n(25);e.exports={isFaKit:e=>new RegExp(/\b(^fa-?k(it)?)\b/i).test(e),isValidFa:e=>{var t=e.split(" ")[0],n=Object.keys(r).includes(t),i=e.split(" ")[1],s=new RegExp(/^fa-([a-z]|[0-9]){1,}/g).test(i);return n&&s}}},function(e,t,n){var r=n(8),i=n(24),{isFaKit:s,isValidFa:o}=n(13);e.exports={isFaKit:s,isValidFa:o,FontAwesomeApi:r,FontAwesomeUtils:i}},function(t,n){t.exports=e},function(e,t){e.exports=class{constructor(e){this._cache=new Map,this.capacity=e}get(e){return this._cache.get(e)}put(e,t){if("string"!=typeof e)throw new Error("Key must be a string");this._cache.delete(e),this._cache.size===this.capacity?(this._cache.delete(this._cache.keys().next().value),this._cache.set(e,t)):this._cache.set(e,t)}putAll(e){if(!Array.isArray(e))throw new Error("keyValues must be an array");if(e.length>this.capacity)throw new Error("keyValues is longer than the capacity of the cache");e.forEach(e=>this.put(e.key,e.value))}reset(){this._cache.clear()}}},function(e,t){var n="undefined"!=typeof self?self:this,r=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,i="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),s="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]"],c=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function u(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 l(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 r&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?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 d(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function v(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function m(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:s&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o&&i&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(e)||c(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):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):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=d(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?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(v)}),this.text=function(){var e,t,n,r=d(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(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)},s&&(this.formData=function(){return this.text().then(T)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=u(e),t=l(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[u(e)]},h.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},h.prototype.set=function(e,t){this.map[u(e)]=l(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),p(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),p(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),p(e)},r&&(h.prototype[Symbol.iterator]=h.prototype.entries);var E=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,i=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),E.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,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 T(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 _(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 h(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},m.call(b.prototype),m.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];_.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function g(e,n){return new Promise((function(r,s){var o=new b(e,n);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function c(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new h,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)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new _(i,n))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&i&&(a.responseType="blob"),o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",c),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",c)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}g.polyfill=!0,e.fetch||(e.fetch=g,e.Headers=h,e.Request=b,e.Response=_),t.Headers=h,t.Request=b,t.Response=_,t.fetch=g,Object.defineProperty(t,"__esModule",{value:!0})}({})}(r),r.fetch.ponyfill=!0,delete r.fetch.polyfill;var i=r;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),s=r(n(20)),o=n(11),a=function(e){return i.isExtractableFile(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe};t.default=function(e,t,n,r){void 0===r&&(r=o.defaultJsonSerializer);var c=i.extractFiles({query:e,variables:t,operationName:n},"",a),u=c.clone,l=c.files;if(0===l.size){if(!Array.isArray(e))return r.stringify(u);if(void 0!==t&&!Array.isArray(t))throw new Error("Cannot create request body with given variable type, array expected");var p=e.reduce((function(e,n,r){return e.push({query:n,variables:t?t[r]:void 0}),e}),[]);return r.stringify(p)}var h=new("undefined"==typeof FormData?s.default:FormData);h.append("operations",r.stringify(u));var d={},f=0;return l.forEach((function(e){d[++f]=e})),h.append("map",r.stringify(d)),f=0,l.forEach((function(e,t){h.append(""+ ++f,t)})),h}},function(e,t,n){"use strict";n.r(t);var r=n(6);n.d(t,"ReactNativeFile",(function(){return r}));var i=n(10);n.d(t,"extractFiles",(function(){return i}));var s=n(7);n.d(t,"isExtractableFile",(function(){return s}))},function(e,t){e.exports="object"==typeof self?self.FormData:window.FormData},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parseBatchRequestsExtendedArgs=t.parseRawRequestExtendedArgs=t.parseRequestExtendedArgs=t.parseBatchRequestArgs=t.parseRawRequestArgs=t.parseRequestArgs=void 0,t.parseRequestArgs=function(e,t,n){return e.document?e:{document:e,variables:t,requestHeaders:n,signal:void 0}},t.parseRawRequestArgs=function(e,t,n){return e.query?e:{query:e,variables:t,requestHeaders:n,signal:void 0}},t.parseBatchRequestArgs=function(e,t){return e.documents?e:{documents:e,requestHeaders:t,signal:void 0}},t.parseRequestExtendedArgs=function(e,t,n,r){return e.document?e:{url:e,document:t,variables:n,requestHeaders:r,signal:void 0}},t.parseRawRequestExtendedArgs=function(e,t,n,r){return e.query?e:{url:e,query:t,variables:n,requestHeaders:r,signal:void 0}},t.parseBatchRequestsExtendedArgs=function(e,t,n){return e.documents?e:{url:e,documents:t,requestHeaders:n,signal:void 0}}},function(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=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}).apply(this,arguments)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(e){s=[6,e],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,a])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.GraphQLWebSocketClient=void 0;var o=n(12),a=n(9),c=function(){function e(e,t,n){this._type=e,this._payload=t,this._id=n}return Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"payload",{get:function(){return this._payload},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"text",{get:function(){var e={type:this.type};return null!=this.id&&null!=this.id&&(e.id=this.id),null!=this.payload&&null!=this.payload&&(e.payload=this.payload),JSON.stringify(e)},enumerable:!1,configurable:!0}),e.parse=function(t,n){var r=JSON.parse(t),i=r.type,s=r.payload,o=r.id;return new e(i,n(s),o)},e}(),u=function(){function e(e,t){var n=this,a=t.onInit,u=t.onAcknowledged,h=t.onPing,d=t.onPong;this.socketState={acknowledged:!1,lastRequestId:0,subscriptions:{}},this.socket=e,e.onopen=function(t){return i(n,void 0,void 0,(function(){var t,n,r,i;return s(this,(function(s){switch(s.label){case 0:return this.socketState.acknowledged=!1,this.socketState.subscriptions={},n=(t=e).send,r=l,a?[4,a()]:[3,2];case 1:return i=s.sent(),[3,3];case 2:i=null,s.label=3;case 3:return n.apply(t,[r.apply(void 0,[i]).text]),[2]}}))}))},e.onclose=function(e){n.socketState.acknowledged=!1,n.socketState.subscriptions={}},e.onerror=function(e){console.error(e)},e.onmessage=function(t){try{var i=function(e,t){void 0===t&&(t=function(e){return e});return c.parse(e,t)}(t.data);switch(i.type){case"connection_ack":return void(n.socketState.acknowledged?console.warn("Duplicate CONNECTION_ACK message ignored"):(n.socketState.acknowledged=!0,u&&u(i.payload)));case"ping":return void(h?h(i.payload).then((function(t){return e.send(p(t).text)})):e.send(p(null).text));case"pong":return void(d&&d(i.payload))}if(!n.socketState.acknowledged)return;if(void 0===i.id||null===i.id||!n.socketState.subscriptions[i.id])return;var s=n.socketState.subscriptions[i.id],a=s.query,l=s.variables,f=s.subscriber;switch(i.type){case"next":return!i.payload.errors&&i.payload.data&&f.next&&f.next(i.payload.data),void(i.payload.errors&&f.error&&f.error(new o.ClientError(r(r({},i.payload),{status:200}),{query:a,variables:l})));case"error":return void(f.error&&f.error(new o.ClientError({errors:i.payload,status:200},{query:a,variables:l})));case"complete":return f.complete&&f.complete(),void delete n.socketState.subscriptions[i.id]}}catch(t){console.error(t),e.close(1006)}e.close(4400,"Unknown graphql-ws message.")}}return e.prototype.makeSubscribe=function(e,t,n,r){var i,s,o=this,a=(this.socketState.lastRequestId++).toString();return this.socketState.subscriptions[a]={query:e,variables:n,subscriber:r},this.socket.send((i=a,s={query:e,operationName:t,variables:n},new c("subscribe",s,i)).text),function(){o.socket.send(function(e){return new c("complete",void 0,e)}(a).text),delete o.socketState.subscriptions[a]}},e.prototype.rawRequest=function(e,t){var n=this;return new Promise((function(r,i){var s;n.rawSubscribe(e,{next:function(e,t){return s={data:e,extensions:t}},error:i,complete:function(){return r(s)}},t)}))},e.prototype.request=function(e,t){var n=this;return new Promise((function(r,i){var s;n.subscribe(e,{next:function(e){return s=e},error:i,complete:function(){return r(s)}},t)}))},e.prototype.subscribe=function(e,t,n){var r=a.resolveRequestDocument(e),i=r.query,s=r.operationName;return this.makeSubscribe(i,s,n,t)},e.prototype.rawSubscribe=function(e,t,n){return this.makeSubscribe(e,void 0,n,t)},e.prototype.ping=function(e){this.socket.send(function(e){return new c("ping",e,void 0)}(e).text)},e.prototype.close=function(){this.socket.close(1e3)},e.PROTOCOL="graphql-transport-ws",e}();function l(e){return new c("connection_init",e)}function p(e){return new c("pong",e,void 0)}t.GraphQLWebSocketClient=u},function(e,t){e.exports={FA_TOKEN:"bb1d754461",FA_VERSION:"6.2.1",FA_API_BASE_URL:"https://api.fontawesome.com"}},function(e,t,n){function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=n(8),{isValidFa:s,isFaKit:o}=n(13);class a{constructor(e,t){r(this,"api",void 0),this._kit=t,this._token=e,this._token&&(this.api=new i(this._token))}setToken(e){this._token=e,this.api=new i(this._token)}setKit(e){this._kit=e}clearCache(){a._cache.clear()}toSvg(e){return new Promise((t,n)=>{if(!s(e))return n(Error("Invalid FontAwesome object"));if(a._cache.has(e))return t(a._cache.get(e));var r=e.replace("fa-","").split(" ")[1];if(this._token||n(Error("FontAwesome token not set")),!o(e))return this.api.getIcon(r).then(n=>{var r=null==n?void 0:n.html;r&&a._cache.set(e,r),t(r)});this._kit||n(Error("FontAwesome kit not set")),this.api.kitIcons(this._kit,[r]).then(i=>{i.length||n(Error("Invalid FontAwesome custom icon"));var s=c(i[0]);s||console.log("Error while converting to svg, this icon is invalid : ".concat(r," for kit ").concat(this._kit)),s&&a._cache.set(e,s),t(s)})})}toSvgs(e){return new Promise((t,n)=>{Array.isArray(e)||n(Error("Invalid FontAwesome array"));var r=e.filter(s),i=r.filter(o),u=r.filter(e=>!o(e)),l=e=>e.svg;this._token||n(Error("FontAwesome token not set"));var p=[],h=[];u.forEach(e=>{a._cache.has(e)?p.push({fa:e,svg:a._cache.get(e)}):h.push(e)});var d=h.map(e=>{var[t,n]=e.replace("fa-","").split(" ");return{prefix:t,iconName:n}}),f=d.length>0?this.api.getIcons(d).then(e=>{var t=e.map((e,t)=>{var n=h[t],r=null==e?void 0:e.html;return r&&a._cache.set(n,r),{fa:n,svg:r}});return[...p,...t.filter(l)]}):Promise.resolve(p);if(!i.length)return f.then(t);this._kit||n(Error("FontAwesome kit not set"));var v=[],y=[],m=[];if(i.forEach(e=>{var t;a._cache.has(e)?v.push({fa:e,svg:a._cache.get(e)}):(y.push(e),m.push(null==e||null===(t=e.replace("fa-",""))||void 0===t?void 0:t.split(" ")[1]))}),!m.length)return f.then(e=>{t([...e,...v])});Promise.all([f,this.api.kitIcons(this._kit,m)]).then(e=>{var[n,r]=e,i=r.map((e,t)=>{var n="fak fa-".concat(e.name),r=c(e);return r||console.log("Error while converting to svg, this icon is invalid : ".concat(m[t]," for kit ").concat(this._kit)),r&&a._cache.set(n,r),{fa:n,svg:r}}).filter(l),s=[...n,...v,...i];t(s)})})}}r(a,"_kit",void 0),r(a,"_token",void 0),r(a,"_cache",new Map);var c=e=>{if(!e)return null;var{height:t,width:n,path:r}=e;return'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '.concat(n," ").concat(t,'"><path d="').concat(r,'"></path></svg>')};e.exports=new a},function(e){e.exports=JSON.parse('{"fa":"solid","fas":"solid","fa-solid":"solid","far":"regular","fa-regular":"regular","fal":"light","fa-light":"light","fat":"thin","fa-thin":"thin","fad":"duotone","fa-duotone":"duotone","fab":"brands","fa-brands":"brands","fak":"kit","fa-kit":"kit"}')},function(e,t,n){"use strict";function r(e,t){if(!Boolean(e))throw new Error(null!=t?t:"Unexpected invariant triggered.")}n.r(t),n.d(t,"parse",(function(){return U})),n.d(t,"parseValue",(function(){return q})),n.d(t,"parseConstValue",(function(){return V})),n.d(t,"parseType",(function(){return K})),n.d(t,"Parser",(function(){return G}));const i=/\r\n|[\n\r]/g;function s(e,t){let n=0,s=1;for(const o of e.body.matchAll(i)){if("number"==typeof o.index||r(!1),o.index>=t)break;n=o.index+o[0].length,s+=1}return{line:s,column:t+1-n}}function o(e,t){const n=e.locationOffset.column-1,r="".padStart(n)+e.body,i=t.line-1,s=e.locationOffset.line-1,o=t.line+s,c=1===t.line?n:0,u=t.column+c,l=`${e.name}:${o}:${u}\n`,p=r.split(/\r\n|[\n\r]/g),h=p[i];if(h.length>120){const e=Math.floor(u/80),t=u%80,n=[];for(let e=0;e<h.length;e+=80)n.push(h.slice(e,e+80));return l+a([[o+" |",n[0]],...n.slice(1,e+1).map(e=>["|",e]),["|","^".padStart(t)],["|",n[e+1]]])}return l+a([[o-1+" |",p[i-1]],[o+" |",h],["|","^".padStart(u)],[o+1+" |",p[i+1]]])}function a(e){const t=e.filter(([e,t])=>void 0!==t),n=Math.max(...t.map(([e])=>e.length));return t.map(([e,t])=>e.padStart(n)+(t?" "+t:"")).join("\n")}class c extends Error{constructor(e,...t){var n,r,i;const{nodes:o,source:a,positions:l,path:p,originalError:h,extensions:d}=function(e){const t=e[0];return null==t||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}(t);super(e),this.name="GraphQLError",this.path=null!=p?p:void 0,this.originalError=null!=h?h:void 0,this.nodes=u(Array.isArray(o)?o:o?[o]:void 0);const f=u(null===(n=this.nodes)||void 0===n?void 0:n.map(e=>e.loc).filter(e=>null!=e));this.source=null!=a?a:null==f||null===(r=f[0])||void 0===r?void 0:r.source,this.positions=null!=l?l:null==f?void 0:f.map(e=>e.start),this.locations=l&&a?l.map(e=>s(a,e)):null==f?void 0:f.map(e=>s(e.source,e.start));const v="object"==typeof(y=null==h?void 0:h.extensions)&&null!==y?null==h?void 0:h.extensions:void 0;var y;this.extensions=null!==(i=null!=d?d:v)&&void 0!==i?i:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),null!=h&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,c):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let e=this.message;if(this.nodes)for(const n of this.nodes)n.loc&&(e+="\n\n"+o((t=n.loc).source,s(t.source,t.start)));else if(this.source&&this.locations)for(const t of this.locations)e+="\n\n"+o(this.source,t);var t;return e}toJSON(){const e={message:this.message};return null!=this.locations&&(e.locations=this.locations),null!=this.path&&(e.path=this.path),null!=this.extensions&&Object.keys(this.extensions).length>0&&(e.extensions=this.extensions),e}}function u(e){return void 0===e||0===e.length?void 0:e}function l(e,t,n){return new c("Syntax Error: "+n,{source:e,positions:[t]})}var p,h=n(1);!function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"}(p||(p={}));var d,f=n(0),v=n(5),y=n(2);!function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"}(d||(d={}));class m{constructor(e){const t=new h.d(d.SOF,0,0,0,0);this.source=e,this.lastToken=t,this.token=t,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let e=this.token;if(e.kind!==d.EOF)do{if(e.next)e=e.next;else{const t=N(this,e.end);e.next=t,t.prev=e,e=t}}while(e.kind===d.COMMENT);return e}}function E(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function b(e,t){return T(e.charCodeAt(t))&&_(e.charCodeAt(t+1))}function T(e){return e>=55296&&e<=56319}function _(e){return e>=56320&&e<=57343}function O(e,t){const n=e.source.body.codePointAt(t);if(void 0===n)return d.EOF;if(n>=32&&n<=126){const e=String.fromCodePoint(n);return'"'===e?"'\"'":`"${e}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function g(e,t,n,r,i){const s=e.line,o=1+n-e.lineStart;return new h.d(t,n,r,s,o,i)}function N(e,t){const n=e.source.body,r=n.length;let i=t;for(;i<r;){const t=n.charCodeAt(i);switch(t){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++e.line,e.lineStart=i;continue;case 13:10===n.charCodeAt(i+1)?i+=2:++i,++e.lin