@omnsight/osint-entity-components 0.2.6 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -9,10 +9,10 @@ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.
9
9
 
10
10
  `);f=i.pop()??``;for(let n of i){let r=n.split(`
11
11
  `),i=[],a;for(let t of r)if(t.startsWith(`data:`))i.push(t.replace(/^data:\s*/,``));else if(t.startsWith(`event:`))a=t.replace(/^event:\s*/,``);else if(t.startsWith(`id:`))h=t.replace(/^id:\s*/,``);else if(t.startsWith(`retry:`)){let n=Number.parseInt(t.replace(/^retry:\s*/,``),10);Number.isNaN(n)||(e=n)}let l,u=!1;if(i.length){let e=i.join(`
12
- `);try{l=JSON.parse(e),u=!0}catch{l=e}}u&&(c&&(yield t(c(l))),s&&(l=yield t(s(l)))),o?.({data:l,event:a,id:h,retry:e}),i.length&&(yield yield t(l))}}}finally{r.removeEventListener(`abort`,g),d.releaseLock()}break}catch(r){if(a?.(r),u!==void 0&&n>=u)break;yield t(g(Math.min(e*2**(n-1),d??3e4)))}}})}()}}})),ef=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeObjectParam=e.serializePrimitiveParam=e.serializeArrayParam=e.separatorObjectExplode=e.separatorArrayNoExplode=e.separatorArrayExplode=void 0,e.separatorArrayExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.separatorArrayNoExplode=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},e.separatorObjectExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.serializeArrayParam=({allowReserved:t,explode:n,name:r,style:i,value:a})=>{if(!n){let n=(t?a:a.map(e=>encodeURIComponent(e))).join((0,e.separatorArrayNoExplode)(i));switch(i){case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;case`simple`:return n;default:return`${r}=${n}`}}let o=(0,e.separatorArrayExplode)(i),s=a.map(n=>i===`label`||i===`simple`?t?n:encodeURIComponent(n):(0,e.serializePrimitiveParam)({allowReserved:t,name:r,value:n})).join(o);return i===`label`||i===`matrix`?o+s:s},e.serializePrimitiveParam=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},e.serializeObjectParam=({allowReserved:t,explode:n,name:r,style:i,value:a,valueOnly:o})=>{if(a instanceof Date)return o?a.toISOString():`${r}=${a.toISOString()}`;if(i!==`deepObject`&&!n){let e=[];Object.entries(a).forEach(([n,r])=>{e=[...e,n,t?r:encodeURIComponent(r)]});let n=e.join(`,`);switch(i){case`form`:return`${r}=${n}`;case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;default:return n}}let s=(0,e.separatorObjectExplode)(i),c=Object.entries(a).map(([n,a])=>(0,e.serializePrimitiveParam)({allowReserved:t,name:i===`deepObject`?`${r}[${n}]`:n,value:a})).join(s);return i===`label`||i===`matrix`?s+c:c}})),tf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getUrl=e.defaultPathSerializer=e.PATH_PARAM_RE=void 0,e.getValidRequestBody=n;var t=ef();e.PATH_PARAM_RE=/\{[^{}]+\}/g,e.defaultPathSerializer=({path:n,url:r})=>{let i=r,a=r.match(e.PATH_PARAM_RE);if(a)for(let e of a){let r=!1,a=e.substring(1,e.length-1),o=`simple`;a.endsWith(`*`)&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(`.`)?(a=a.substring(1),o=`label`):a.startsWith(`;`)&&(a=a.substring(1),o=`matrix`);let s=n[a];if(s==null)continue;if(Array.isArray(s)){i=i.replace(e,(0,t.serializeArrayParam)({explode:r,name:a,style:o,value:s}));continue}if(typeof s==`object`){i=i.replace(e,(0,t.serializeObjectParam)({explode:r,name:a,style:o,value:s,valueOnly:!0}));continue}if(o===`matrix`){i=i.replace(e,`;${(0,t.serializePrimitiveParam)({name:a,value:s})}`);continue}let c=encodeURIComponent(o===`label`?`.${s}`:s);i=i.replace(e,c)}return i},e.getUrl=({baseUrl:t,path:n,query:r,querySerializer:i,url:a})=>{let o=a.startsWith(`/`)?a:`/${a}`,s=(t??``)+o;n&&(s=(0,e.defaultPathSerializer)({path:n,url:s}));let c=r?i(r):``;return c.startsWith(`?`)&&(c=c.substring(1)),c&&(s+=`?${c}`),s};function n(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}})),nf=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.getAuthToken=void 0,e.getAuthToken=(e,n)=>t(void 0,void 0,void 0,function*(){let t=typeof n==`function`?yield n(e):n;if(t)return e.scheme===`bearer`?`Bearer ${t}`:e.scheme===`basic`?`Basic ${btoa(t)}`:t})})),rf=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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};Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.mergeHeaders=e.axiosHeadersKeywords=e.mergeConfigs=e.buildUrl=e.setAuthParams=e.createQuerySerializer=void 0;var r=nf(),i=ef(),a=tf();e.createQuerySerializer=(e={})=>{var{parameters:t={}}=e,r=n(e,[`parameters`]);return e=>{let n=[];if(e&&typeof e==`object`)for(let a in e){let o=e[a];if(o==null)continue;let s=t[a]||r;if(Array.isArray(o)){let e=(0,i.serializeArrayParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`form`,value:o},s.array));e&&n.push(e)}else if(typeof o==`object`){let e=(0,i.serializeObjectParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`deepObject`,value:o},s.object));e&&n.push(e)}else{let e=(0,i.serializePrimitiveParam)({allowReserved:s.allowReserved,name:a,value:o});e&&n.push(e)}}return n.join(`&`)}};var o=(e,t)=>t?t in e.headers||e.query?.[t]?!0:`Cookie`in e.headers&&e.headers.Cookie&&typeof e.headers.Cookie==`string`?e.headers.Cookie.includes(`${t}=`):!1:!1;e.setAuthParams=e=>t(void 0,void 0,void 0,function*(){var{security:t}=e,i=n(e,[`security`]);for(let e of t){if(o(i,e.name))continue;let t=yield(0,r.getAuthToken)(e,i.auth);if(!t)continue;let n=e.name??`Authorization`;switch(e.in){case`query`:i.query||={},i.query[n]=t;break;case`cookie`:{let e=`${n}=${t}`;`Cookie`in i.headers&&i.headers.Cookie?i.headers.Cookie=`${i.headers.Cookie}; ${e}`:i.headers.Cookie=e;break}default:i.headers[n]=t;break}}}),e.buildUrl=t=>{let n=t.axios?.defaults?.baseURL,r=t.baseURL&&typeof t.baseURL==`string`?t.baseURL:n;return(0,a.getUrl)({baseUrl:r,path:t.path,query:t.paramsSerializer?void 0:t.query,querySerializer:typeof t.querySerializer==`function`?t.querySerializer:(0,e.createQuerySerializer)(t.querySerializer),url:t.url})},e.mergeConfigs=(t,n)=>{let r=Object.assign(Object.assign({},t),n);return r.headers=(0,e.mergeHeaders)(t.headers,n.headers),r},e.axiosHeadersKeywords=[`common`,`delete`,`get`,`head`,`patch`,`post`,`put`],e.mergeHeaders=(...t)=>{let n={};for(let r of t){if(!r||typeof r!=`object`)continue;let t=Object.entries(r);for(let[r,i]of t)if(e.axiosHeadersKeywords.includes(r)&&typeof i==`object`)n[r]=Object.assign(Object.assign({},n[r]),i);else if(i===null)delete n[r];else if(Array.isArray(i))for(let e of i)n[r]=[...n[r]??[],e];else i!==void 0&&(n[r]=typeof i==`object`?JSON.stringify(i):i)}return n},e.createConfig=(e={})=>Object.assign({},e)})),af=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.createClient=void 0;var i=r(Qd()),a=$d(),o=tf(),s=rf();e.createClient=(e={})=>{let r=(0,s.mergeConfigs)((0,s.createConfig)(),e),c;if(r.axios&&!(`Axios`in r.axios))c=r.axios;else{let{auth:e}=r,t=n(r,[`auth`]);c=i.default.create(t)}let l=()=>Object.assign({},r),u=e=>(r=(0,s.mergeConfigs)(r,e),c.defaults=Object.assign(Object.assign(Object.assign({},c.defaults),r),{headers:(0,s.mergeHeaders)(c.defaults.headers,r.headers)}),l()),d=e=>t(void 0,void 0,void 0,function*(){let t=Object.assign(Object.assign(Object.assign({},r),e),{axios:e.axios??r.axios??c,headers:(0,s.mergeHeaders)(r.headers,e.headers)});return t.security&&(yield(0,s.setAuthParams)(Object.assign(Object.assign({},t),{security:t.security}))),t.requestValidator&&(yield t.requestValidator(t)),t.body!==void 0&&t.bodySerializer&&(t.body=t.bodySerializer(t.body)),{opts:t,url:(0,s.buildUrl)(t)}}),f=e=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(e);try{let e=t.axios,{auth:i}=t,a=n(t,[`auth`]),s=yield e(Object.assign(Object.assign({},a),{baseURL:``,data:(0,o.getValidRequestBody)(t),headers:t.headers,params:t.paramsSerializer?t.query:void 0,url:r})),{data:c}=s;return t.responseType===`json`&&(t.responseValidator&&(yield t.responseValidator(c)),t.responseTransformer&&(c=yield t.responseTransformer(c))),Object.assign(Object.assign({},s),{data:c??{}})}catch(e){let n=e;if(t.throwOnError)throw n;return n.error=n.response?.data??{},n}}),p=e=>t=>f(Object.assign(Object.assign({},t),{method:e})),m=e=>n=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(n);return(0,a.createSseClient)(Object.assign(Object.assign({},t),{body:t.body,headers:t.headers,method:e,serializedBody:(0,o.getValidRequestBody)(t),signal:t.signal,url:r}))});return{buildUrl:e=>(0,s.buildUrl)(Object.assign(Object.assign({axios:c},r),e)),connect:p(`CONNECT`),delete:p(`DELETE`),get:p(`GET`),getConfig:l,head:p(`HEAD`),instance:c,options:p(`OPTIONS`),patch:p(`PATCH`),post:p(`POST`),put:p(`PUT`),request:f,setConfig:u,sse:{connect:m(`CONNECT`),delete:m(`DELETE`),get:m(`GET`),head:m(`HEAD`),options:m(`OPTIONS`),patch:m(`PATCH`),post:m(`POST`),put:m(`PUT`),trace:m(`TRACE`)},trace:p(`TRACE`)}}})),of=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.createClient=e.serializeQueryKeyValue=e.buildClientParams=e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=Yd();Object.defineProperty(e,`formDataBodySerializer`,{enumerable:!0,get:function(){return t.formDataBodySerializer}}),Object.defineProperty(e,`jsonBodySerializer`,{enumerable:!0,get:function(){return t.jsonBodySerializer}}),Object.defineProperty(e,`urlSearchParamsBodySerializer`,{enumerable:!0,get:function(){return t.urlSearchParamsBodySerializer}});var n=Xd();Object.defineProperty(e,`buildClientParams`,{enumerable:!0,get:function(){return n.buildClientParams}});var r=Zd();Object.defineProperty(e,`serializeQueryKeyValue`,{enumerable:!0,get:function(){return r.serializeQueryKeyValue}});var i=af();Object.defineProperty(e,`createClient`,{enumerable:!0,get:function(){return i.createClient}});var a=rf();Object.defineProperty(e,`createConfig`,{enumerable:!0,get:function(){return a.createConfig}})})),sf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.client=void 0;var t=of();e.client=(0,t.createClient)((0,t.createConfig)())})),cf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.healthCheck=e.deleteEntity=e.updateViewPermissions=e.updateRelationPermissions=e.updateSourcePermissions=e.updateWebsitePermissions=e.updateEventPermissions=e.updateOrganizationPermissions=e.updatePersonPermissions=e.queryViews=e.updateView=e.getView=e.deleteView=e.connectEntityToView=e.getViewEntities=e.updateRelation=e.getRelation=e.deleteRelation=e.updateSource=e.getSource=e.updateWebsite=e.getWebsite=e.updateEvent=e.getEvent=e.updateOrganization=e.getOrganization=e.updatePerson=e.getPerson=e.createView=e.createRelation=e.createSource=e.createWebsite=e.createEvent=e.createOrganization=e.createPerson=void 0;var t=sf();e.createPerson=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/person`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createOrganization=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/organization`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createEvent=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/event`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createWebsite=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/website`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createSource=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/source`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createRelation=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/relation`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createView=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/view`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getPerson=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/person/{id}`},e)),e.updatePerson=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/person/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getOrganization=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/organization/{id}`},e)),e.updateOrganization=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/organization/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getEvent=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/event/{id}`},e)),e.updateEvent=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/event/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getWebsite=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/website/{id}`},e)),e.updateWebsite=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/website/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getSource=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/source/{id}`},e)),e.updateSource=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/source/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteRelation=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/relation/{id}`},e)),e.getRelation=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/relation/{id}`},e)),e.updateRelation=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/relation/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getViewEntities=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/view/{id}/entities`},e)),e.connectEntityToView=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}/entities`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteView=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/view/{id}`},e)),e.getView=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/view/{id}`},e)),e.updateView=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.queryViews=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/views`},e)),e.updatePersonPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/person/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateOrganizationPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/organization/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateEventPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/event/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateWebsitePermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/website/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateSourcePermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/source/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateRelationPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/relation/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateViewPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteEntity=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/entity/{id}`},e)),e.healthCheck=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/health/osint/crud`},e))}));o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateWebsitePermissions=e.updateWebsite=e.updateViewPermissions=e.updateView=e.updateSourcePermissions=e.updateSource=e.updateRelationPermissions=e.updateRelation=e.updatePersonPermissions=e.updatePerson=e.updateOrganizationPermissions=e.updateOrganization=e.updateEventPermissions=e.updateEvent=e.queryViews=e.healthCheck=e.getWebsite=e.getViewEntities=e.getView=e.getSource=e.getRelation=e.getPerson=e.getOrganization=e.getEvent=e.deleteView=e.deleteRelation=e.deleteEntity=e.createWebsite=e.createView=e.createSource=e.createRelation=e.createPerson=e.createOrganization=e.createEvent=e.connectEntityToView=void 0;var t=cf();Object.defineProperty(e,`connectEntityToView`,{enumerable:!0,get:function(){return t.connectEntityToView}}),Object.defineProperty(e,`createEvent`,{enumerable:!0,get:function(){return t.createEvent}}),Object.defineProperty(e,`createOrganization`,{enumerable:!0,get:function(){return t.createOrganization}}),Object.defineProperty(e,`createPerson`,{enumerable:!0,get:function(){return t.createPerson}}),Object.defineProperty(e,`createRelation`,{enumerable:!0,get:function(){return t.createRelation}}),Object.defineProperty(e,`createSource`,{enumerable:!0,get:function(){return t.createSource}}),Object.defineProperty(e,`createView`,{enumerable:!0,get:function(){return t.createView}}),Object.defineProperty(e,`createWebsite`,{enumerable:!0,get:function(){return t.createWebsite}}),Object.defineProperty(e,`deleteEntity`,{enumerable:!0,get:function(){return t.deleteEntity}}),Object.defineProperty(e,`deleteRelation`,{enumerable:!0,get:function(){return t.deleteRelation}}),Object.defineProperty(e,`deleteView`,{enumerable:!0,get:function(){return t.deleteView}}),Object.defineProperty(e,`getEvent`,{enumerable:!0,get:function(){return t.getEvent}}),Object.defineProperty(e,`getOrganization`,{enumerable:!0,get:function(){return t.getOrganization}}),Object.defineProperty(e,`getPerson`,{enumerable:!0,get:function(){return t.getPerson}}),Object.defineProperty(e,`getRelation`,{enumerable:!0,get:function(){return t.getRelation}}),Object.defineProperty(e,`getSource`,{enumerable:!0,get:function(){return t.getSource}}),Object.defineProperty(e,`getView`,{enumerable:!0,get:function(){return t.getView}}),Object.defineProperty(e,`getViewEntities`,{enumerable:!0,get:function(){return t.getViewEntities}}),Object.defineProperty(e,`getWebsite`,{enumerable:!0,get:function(){return t.getWebsite}}),Object.defineProperty(e,`healthCheck`,{enumerable:!0,get:function(){return t.healthCheck}}),Object.defineProperty(e,`queryViews`,{enumerable:!0,get:function(){return t.queryViews}}),Object.defineProperty(e,`updateEvent`,{enumerable:!0,get:function(){return t.updateEvent}}),Object.defineProperty(e,`updateEventPermissions`,{enumerable:!0,get:function(){return t.updateEventPermissions}}),Object.defineProperty(e,`updateOrganization`,{enumerable:!0,get:function(){return t.updateOrganization}}),Object.defineProperty(e,`updateOrganizationPermissions`,{enumerable:!0,get:function(){return t.updateOrganizationPermissions}}),Object.defineProperty(e,`updatePerson`,{enumerable:!0,get:function(){return t.updatePerson}}),Object.defineProperty(e,`updatePersonPermissions`,{enumerable:!0,get:function(){return t.updatePersonPermissions}}),Object.defineProperty(e,`updateRelation`,{enumerable:!0,get:function(){return t.updateRelation}}),Object.defineProperty(e,`updateRelationPermissions`,{enumerable:!0,get:function(){return t.updateRelationPermissions}}),Object.defineProperty(e,`updateSource`,{enumerable:!0,get:function(){return t.updateSource}}),Object.defineProperty(e,`updateSourcePermissions`,{enumerable:!0,get:function(){return t.updateSourcePermissions}}),Object.defineProperty(e,`updateView`,{enumerable:!0,get:function(){return t.updateView}}),Object.defineProperty(e,`updateViewPermissions`,{enumerable:!0,get:function(){return t.updateViewPermissions}}),Object.defineProperty(e,`updateWebsite`,{enumerable:!0,get:function(){return t.updateWebsite}}),Object.defineProperty(e,`updateWebsitePermissions`,{enumerable:!0,get:function(){return t.updateWebsitePermissions}})}))();var lf=[{value:`announcement`,label:`announcement`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M18.5 10H22v2h-3.5zm.05-1.17 1.5-1 1.5-1L21 6l-.55-.83-1.5 1-1.5 1L18 8zm0 4.34L18 14l-.55.83 1.5 1 1.5 1L21 16l.55-.83-1.5-1zM15 8.18V4c0-.37-.2-.71-.53-.88s-.72-.15-1.03.05L7.69 7h-1.7c-2.21 0-4 1.79-4 4 0 1.52.86 2.82 2.1 3.5l1.94 6.77 1.92-.55-1.64-5.73h1.37l5.75 3.83c.17.11.36.17.55.17.16 0 .32-.04.47-.12.33-.17.53-.51.53-.88v-4.18c1.16-.41 2-1.51 2-2.82s-.84-2.4-2-2.82Zm-2 7.95-4.45-2.96A1 1 0 0 0 8 13H6c-1.1 0-2-.9-2-2s.9-2 2-2h2c.2 0 .39-.06.55-.17L13 5.87z`})})},{value:`conversation`,label:`conversation`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,children:[(0,u.jsx)(`path`,{d:`m12.593 23.258-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z`}),(0,u.jsx)(`path`,{fill:`currentColor`,d:`M6.857 2.445C8 3.278 8.89 4.415 9.65 5.503l.442.644.417.615a1.504 1.504 0 0 1-.256 1.986l-1.951 1.449a.48.48 0 0 0-.142.616c.442.803 1.228 1.999 2.128 2.899s2.153 1.738 3.012 2.23a.483.483 0 0 0 .644-.162l1.27-1.933a1.503 1.503 0 0 1 2.056-.332l.663.459c1.239.86 2.57 1.837 3.588 3.14a1.47 1.47 0 0 1 .189 1.484c-.837 1.953-2.955 3.616-5.158 3.535l-.3-.017-.233-.02-.258-.03-.281-.038-.305-.05-.16-.03-.336-.072-.176-.04-.366-.094-.385-.11-.402-.13c-1.846-.626-4.189-1.856-6.593-4.26s-3.633-4.746-4.259-6.592l-.13-.402-.11-.385-.094-.366-.078-.346a12 12 0 0 1-.063-.326l-.05-.305-.04-.281-.029-.258-.02-.233-.016-.3c-.081-2.196 1.6-4.329 3.544-5.162a1.47 1.47 0 0 1 1.445.159m8.135 3.595.116.013a3.5 3.5 0 0 1 2.858 2.96 1 1 0 0 1-1.958.393l-.023-.115a1.5 1.5 0 0 0-1.07-1.233l-.155-.035a1 1 0 0 1 .232-1.983M15 3a6 6 0 0 1 6 6 1 1 0 0 1-1.993.117L19 9a4 4 0 0 0-3.738-3.991L15 5a1 1 0 1 1 0-2`})]})})},{value:`trade`,label:`trade`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M3.005 3.003h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1v-16a1 1 0 0 1 1-1m9 6h-4v2h9l-5-5zm-5 4 5 5v-3h4v-2z`})})},{value:`oil`,label:`oil`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M21 13v-2h-2V5h2V3H3v2h2v6H3v2h2v6H3v2h18v-2h-2v-6zm-9 3c-1.66 0-3-1.32-3-2.95 0-1.3.52-1.67 3-4.55 2.47 2.86 3 3.24 3 4.55 0 1.63-1.34 2.95-3 2.95`})})},{value:`exchange`,label:`exchange`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,children:[(0,u.jsx)(`path`,{d:`M20 13V8h-5`}),(0,u.jsx)(`path`,{d:`m20 8-5 5c-.883.883-1.324 1.324-1.865 1.373q-.135.012-.27 0c-.541-.05-.982-.49-1.865-1.373s-1.324-1.324-1.865-1.373a1.5 1.5 0 0 0-.27 0c-.541.05-.982.49-1.865 1.373l-3 3`})]})})},{value:`supplychain-risk`,label:`supplychain-risk`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 32 32`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M28.457 3.54a5.26 5.26 0 0 0-7.44 0L18.04 6.518a5.27 5.27 0 0 0-1.301 5.293l2.484-2.484c.329-.329.722-.55 1.14-.666l2.886-2.887a2.104 2.104 0 1 1 2.976 2.977l-2.585 2.585a2.58 2.58 0 0 1-.753 1.654l-2.365 2.364a5.26 5.26 0 0 0 4.959-1.393l2.976-2.977a5.26 5.26 0 0 0 0-7.442`}),(0,u.jsx)(`path`,{d:`m22.18 12.282-3.927 3.926-.003.002c-.47.469-1.355.343-1.974-.28-.62-.623-.74-1.507-.27-1.976l.038-.035 3.886-3.886a1.59 1.59 0 0 1 2.25 0 1.59 1.59 0 0 1 0 2.249M11.782 16.73a5.26 5.26 0 0 0-5.266 1.31L3.54 21.018a5.263 5.263 0 0 0 7.44 7.442l2.977-2.976a5.26 5.26 0 0 0 1.388-4.989L12.85 22.99a2.58 2.58 0 0 1-1.612.747l-2.49 2.49a2.11 2.11 0 0 1-2.976 0 2.11 2.11 0 0 1 0-2.977l2.737-2.737a2.6 2.6 0 0 1 .678-1.186z`}),(0,u.jsx)(`path`,{d:`M9.894 20.034a1.59 1.59 0 0 0 0 2.249 1.595 1.595 0 0 0 2.249 0l3.231-3.232.052-.047c.471-.469.35-1.354-.27-1.977-.619-.623-1.503-.748-1.974-.28l-.042.045-.003-.002zM12.01 4.762a1 1 0 1 0-1.94.487l.96 2.964a1 1 0 1 0 1.94-.487zm-7.717.487a.996.996 0 0 1 1.414 0l4 4.02a1.01 1.01 0 0 1 0 1.421.996.996 0 0 1-1.414 0l-4-4.02a1.01 1.01 0 0 1 0-1.421m-.018 5.774a1.006 1.006 0 0 0-.55 1.933l3.5 1.005a1.006 1.006 0 0 0 .55-1.933zm24.686 9.263a1 1 0 0 1-1.236.69l-3.5-1.004a1.006 1.006 0 0 1 .55-1.933l3.5 1.005c.53.152.838.709.686 1.242m-2.668 6.465a.996.996 0 0 0 1.414 0 1.01 1.01 0 0 0 0-1.421l-4-4.02a.996.996 0 0 0-1.414 0 1.01 1.01 0 0 0 0 1.42zm-5.09 1.219a1 1 0 0 1-1.213-.732l-.96-2.964a1 1 0 1 1 1.94-.488l.96 2.965a1.005 1.005 0 0 1-.727 1.219`})]})},{value:`ship`,label:`ship`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 64 64`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M25.755 34.964h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451m5.365 0h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451M20 29.04h1.327v2.722H20zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.367 0h1.326v2.722h-1.326zm3.363 0h1.327v2.722h-1.327zm3.365 0h1.327v2.722h-1.327zM13.604 13.073a7 7 0 0 1-.882-.88l-.348-.431-.542.09c-.929.157-1.818.15-2.7-.121a5.6 5.6 0 0 1-1.315-.605c-.443-.262-.856-.597-1.288-.984.056.591.309 1.139.634 1.649.344.495.788.954 1.332 1.284.932.594 2.081.771 3.149.66.303.299.613.534.967.759.487.308 1.03.534 1.597.663 1.138.254 2.363.009 3.186-.686-1.073-.027-1.963-.237-2.722-.668a6.4 6.4 0 0 1-1.068-.73m11.543 3.474a2.9 2.9 0 0 1-.761-.484 3.2 3.2 0 0 1-.53-.604 3.7 3.7 0 0 1-.361-.659l-.288-.771-.782.173c-.75.165-1.463.257-2.158.16-.693-.091-1.417-.401-2.113-1.055-.023.983.674 1.954 1.638 2.434.744.37 1.566.459 2.338.385.123.178.258.339.416.503.332.329.744.596 1.191.741.907.298 1.848.084 2.465-.458-.4-.122-.752-.216-1.055-.365`}),(0,u.jsx)(`path`,{d:`M56.561 51.763c.12-3.085.999-4.501 2.327-6.646l.32-.517c2.471-4.02 3.308-7.156 2.486-9.325-.564-1.493-1.703-1.989-2.018-2.101-1.518-.654-3.778-1.002-6.539-1.002-1.209 0-3.064.078-5.445.402v-5.809h-3.649v-2.674h-8.006l-2.777-5.6c-.109-.047-.223-.081-.334-.123a3.2 3.2 0 0 0-1.767-2.534 5.03 5.03 0 0 0-3.091-4.452 5.83 5.83 0 0 0-5.444-3.752q-.665.001-1.31.152a6.72 6.72 0 0 0-4.742-2.177C15.187 3.391 12.739 2 10.106 2 5.892 2 2.463 5.456 2.463 9.704c0 4.246 3.428 7.702 7.643 7.702a7.5 7.5 0 0 0 1.525-.157 6.66 6.66 0 0 0 4.734 1.959 6.66 6.66 0 0 0 3.058-.739c.938.62 2.03.958 3.168.965a4.9 4.9 0 0 0 2.449 1.433l-.402 3.227H20.88l-4.46 1.53v2.87l-2.737 1.257v5.185h2.683v2.225l-6.259 3.153v6.14c-3.893 1.11-6.329 1.449-6.378 1.455l-.803.106v3.753H2V62h59.077V51.767H56.56zM23.21 17.979c-.193.026-.385.06-.585.06a4.44 4.44 0 0 1-3.101-1.268 5.32 5.32 0 0 1-3.159 1.042 5.34 5.34 0 0 1-4.264-2.134 6.2 6.2 0 0 1-1.995.332c-3.457 0-6.258-2.823-6.258-6.307s2.801-6.309 6.258-6.309c2.51 0 4.668 1.491 5.666 3.64a5.35 5.35 0 0 1 5.059 2.376 4.4 4.4 0 0 1 1.794-.384c2.113 0 3.872 1.481 4.34 3.467a3.594 3.594 0 0 1 2.813 3.517c0 .318-.053.62-.131.914.045-.003.087-.013.131-.013.711 0 1.318.421 1.607 1.025a9 9 0 0 0-1.607-.153c-1.414 0-3.281.341-4.471.932l-.094.755a3.6 3.6 0 0 1-2.003-1.492m-5.056 9.717h28.615v5.018a47 47 0 0 0-2.218.391H18.154zm15.234 8.781a73 73 0 0 0-7.457 3.506 82 82 0 0 1-5.094 2.521v-8.469h19.787a63 63 0 0 0-3.764 1.151.44.44 0 0 0-.375-.222h-2.683a.45.45 0 0 0-.446.451v.901q.001.086.032.161M17.26 40.261c0-.248.184-.535.405-.642l1.873-.88c.223-.106.404.011.404.259v2.043a.7.7 0 0 1-.418.608l-1.845.694c-.231.087-.42-.045-.42-.293zm-3.13 1.471c0-.248.184-.537.406-.642l1.426-.67c.222-.105.404.012.404.26v1.706a.7.7 0 0 1-.418.608l-1.397.526c-.23.086-.42-.046-.42-.294v-1.494zM11 43.202c0-.248.184-.535.406-.64l1.426-.671c.222-.105.404.012.404.26v1.414a.7.7 0 0 1-.418.608l-1.397.525c-.23.086-.42-.045-.42-.293v-1.203zm-6.229 6.424c2.654-.458 11.47-2.302 22.031-8.003 12.682-6.85 22.642-7.589 26.336-7.589 2.496 0 4.57.307 5.84.864l.107.038c.005.002.59.22.885 1.001.096.252.174.612.178 1.094a6.5 6.5 0 0 0-1.75-1.079c-5.538-1.563-18.201-.427-32.242 7.156C16.114 48.53 7.52 49.816 4.771 50.103zm49.813 6.507c-3.188.634-16.266 3.075-28.256 3.075-6.394 0-11.487-.687-15.141-2.04-1.406-.521-3.584-1.54-6.416-4.384v-1.779c2.787-.285 11.582-1.581 21.806-7.102 13.619-7.354 26.186-8.55 31.494-7.112.564.229 1.369.665 1.961 1.384-.238 1.25-.895 3.008-2.395 5.446l-.314.511c-1.379 2.223-2.468 3.98-2.606 7.546a98 98 0 0 0-.133 4.455`})]})},{value:`truck`,label:`truck`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M4 4a2 2 0 0 0-2 2v9a1 1 0 0 0 1 1h.535a3.5 3.5 0 1 0 6.93 0h3.07a3.5 3.5 0 1 0 6.93 0H21a1 1 0 0 0 1-1v-4a1 1 0 0 0-.106-.447l-2-4A1 1 0 0 0 19 6h-5a2 2 0 0 0-2-2zm14.192 11.59.016.02a1.5 1.5 0 1 1-.016-.021Zm-10 0 .016.02a1.5 1.5 0 1 1-.016-.021Zm5.806-5.572v-2.02h4.396l1 2.02z`,clipRule:`evenodd`})})},{value:`train`,label:`train`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M384 32h-64a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16h-64c-16 0-32 16-32 32v288c0 23.92 160 80 160 80s160-56.74 160-80V64c0-16-16-32-32-32M256 352a48 48 0 1 1 48-48 48 48 0 0 1-48 48m112-152a8 8 0 0 1-8 8H152a8 8 0 0 1-8-8v-80a8 8 0 0 1 8-8h208a8 8 0 0 1 8 8Z`}),(0,u.jsx)(`path`,{d:`m314 432 15.32 16H182.58L198 432l-32-13-76.62 77h45.2l16-16h210.74l16 16h45.3l-76.36-77.75z`})]})},{value:`crime`,label:`crime`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20.24 6.76c-1.84-1.85-4.59-2.23-6.82-1.17l-.96-.96a.996.996 0 0 0-1.41 0l-.08.09C10.83 3.75 10 3 9 3c-1.1 0-2 .9-2 2 0 .09 0 .18.03.26C6.42 5.61 6 6.25 6 7c0 .46.16.87.42 1.21A.97.97 0 0 0 6 9v1.35c-2.33.82-4 3.04-4 5.65 0 3.31 2.69 6 6 6s6-2.69 6-6a5.99 5.99 0 0 0-4-5.65V9a.97.97 0 0 0-.42-.79c.26-.34.42-.75.42-1.21 0-.09 0-.18-.03-.26.18-.1.33-.24.46-.36C11.36 6.88 12 7.86 12 9v.08c.13.07.25.17.38.25.19-.42.45-.83.79-1.16a4.01 4.01 0 0 1 5.66 0 4.01 4.01 0 0 1 0 5.66c-.8.8-1.83 1.17-2.9 1.17.07.32.07.66.07 1s-.03.67-.07 1c1.57 0 3.12-.57 4.31-1.76a5.98 5.98 0 0 0 0-8.48M9 4c.55 0 1 .45 1 1 0 .33-.17.61-.42.79C9.22 5.31 8.65 5 8 5c0-.55.45-1 1-1M7.42 6.21c.36.48.93.79 1.58.79 0 .55-.45 1-1 1s-1-.45-1-1c0-.33.17-.61.42-.79M12 16c0 2.21-1.79 4-4 4s-4-1.79-4-4 1.79-4 4-4 4 1.79 4 4`})})},{value:`shot`,label:`shot`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`m79.238 115.768-28.51 67.863h406.15l-.273-67.862h-263.83v55.605h-15v-55.605h-16.68v55.605H146.1v-55.605h-17.434v55.605h-15v-55.605H79.238zm387.834 15.96v40.66h18.688v-40.66zM56.768 198.63l20.566 32.015L28.894 406.5l101.68 7.174 21.54-97.996h115.74l14.664-80.252 174.55-3.873-.13-32.922H56.767zm206.672 37.22-11.17 61.142h-96.05l12.98-59.05 12.53-.278-2.224 35.5 14.262 13.576 1.003-33.65 24.69-16.264 43.98-.976z`})})},{value:`bomb`,label:`bomb`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M288.625 19.625C252.95 45.54 233.16 81.95 226.655 126.938l41.095 23.687c9.348-5.82 17.33-12.415 24.22-19.656 4.383 22.757 20.633 45.578 39.874 56.686l65.5 37.813c24.465 14.124 54.433 9.697 73.812-8.907l7.97 4.593 17.312-30-7.938-4.594c6.426-26.087-4.752-54.28-29.22-68.406l-65.5-37.812c-19.76-11.41-48.63-13.89-70.78-5.53 2.947-10.077 5.108-20.605 6.688-31.47l-41.063-23.72zm12.313 174.97c-49.957 19.17-84.558 55.62-106.313 106.31l40.688 40.72c12.79-3.888 24.24-9.11 34.593-15.438-2 28.05 9.847 59.878 28.906 78.938l64.907 64.906c24.242 24.245 60.782 28.477 89.342 12.75l7.875 7.876 29.72-29.72-7.844-7.873c15.736-28.564 11.465-65.097-12.782-89.344l-64.905-64.908c-19.58-19.58-52.628-31.56-81.22-28.718 6.62-10.884 12.457-22.543 17.72-34.78l-40.688-40.72zm-182.157.655c-35.453-.015-68.357 12.318-99 35.22l12.72 47.468c11.113 2.584 21.805 3.602 32.156 3.343-13.452 19.88-18.267 48.465-12.312 70.69l20.28 75.686c7.576 28.27 32.77 46.972 60.595 47.53l2.468 9.19 34.656-9.282-2.47-9.188c23.81-14.4 36.262-43.205 28.69-71.47l-20.25-75.686c-6.117-22.822-25.445-45.77-47.783-55.875 9.534-5.22 18.83-11.36 27.94-18.156l-12.72-47.44c-8.458-1.34-16.787-2.027-24.97-2.03`})})},{value:`missile`,label:`missile`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M490.74 21.411c-8.947.782-20.72 3.22-33.566 7.781-16.386 5.82-34.345 14.758-50.969 25.893l26.783 36.525c15.712-12.52 29.853-26.925 40.428-40.757 8.265-10.811 14.055-21.243 17.324-29.442m-99.265 44.026L57.609 310.24l8.28 11.291 83.062-60.906 10.643 14.516-83.063 60.906 8.28 11.29 333.865-244.806zm-18.252 92.746L203.164 282.876l13.924 7.15L375.855 173.61zm-48.602 75.316-35.775 26.234c3.899 3.046 8.821 4.856 14.213 4.856 12.809 0 23-10.191 23-23 0-2.855-.51-5.579-1.438-8.09m-255.267 7.527L21.26 260.67l25.705 35.057 65.54-48.057zm226.705 40.948v30.615h14v-30.615a41 41 0 0 1-7 .615c-2.386 0-4.723-.219-7-.615m-135.065 31.822-65.54 48.058 25.706 35.06 33.194-39.964zm-117.9 7.09-11.291 8.279 27.2 37.096 11.29-8.28zm236.965 9.703v78h46v-78zm-18 54.336-61.426 71.664h23.709l37.717-44.004zm82 0v27.66l37.716 44.004h23.71zm-192 89.664v16h94v-16zm208 0v16h94v-16z`})})},{value:`plane`,label:`plane`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20.56 3.91c.59.59.59 1.54 0 2.12l-3.89 3.89 2.12 9.19-1.41 1.42-3.88-7.43L9.6 17l.36 2.47-1.07 1.06-1.76-3.18-3.19-1.77L5 14.5l2.5.37L11.37 11 3.94 7.09l1.42-1.41 9.19 2.12 3.89-3.89c.56-.58 1.56-.58 2.12 0`})})},{value:`naval`,label:`naval`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`m496.616 372.639 70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361M192 128h256v87.531l-118.208-37.995a32 32 0 0 0-19.584 0L192 215.531z`})})},{value:`tank`,label:`tank`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20 12H4v-1h2l1-5h5l1 5h7zm-6.78-5 .4 2H22V7zM22 16a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3 3 3 0 0 1 3-3h14a3 3 0 0 1 3 3M6 16a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1m7 0a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1m7 0a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1`})})},{value:`infantry`,label:`infantry`,icon:({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 32 32`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M30 12.46c-.019-.762-.624-1.368-1.367-1.45a20 20 0 0 0-1.6.104c-1.016.106-2.044.284-2.714.515-.615.212-1.87.775-3.484 1.527-.91.424-1.92.902-2.978 1.402-.81.383-1.647.779-2.488 1.174-1.937.91-3.889 1.811-5.537 2.521-1.63.702-3.017 1.241-3.798 1.394-.964.189-2.438.357-3.563.408q-.152.44-.341.865c-.09.18-.13.38-.13.6A1.5 1.5 0 0 0 3.5 23c2.813 0 4.099-.576 6.607-1.701l.153-.069 12.7-5.72.614-.278C25.373 14.416 26.288 14 28.49 14c.85 0 1.53-.69 1.51-1.54`}),(0,u.jsx)(`path`,{d:`m26.93 10.12.26-.026C25.413 5.364 20.848 2 15.5 2 8.65 2 3 7.67 3 14.5v2.56a8.7 8.7 0 0 1-.234 1.978c1.006-.063 2.24-.209 3.075-.372.657-.129 1.942-.62 3.595-1.331 1.633-.703 3.572-1.6 5.508-2.508.835-.392 1.671-.788 2.48-1.17l.002-.001c1.061-.502 2.077-.982 2.987-1.406 1.596-.744 2.904-1.333 3.58-1.566.78-.27 1.898-.456 2.937-.564M18.836 26l-.6-2.1H13.26L14 26z`}),(0,u.jsx)(`path`,{d:`M17.685 21.9h.575c.882 0 1.678.592 1.921 1.445l.599 2.095a1.99 1.99 0 0 1-.324 1.765c-.264.348-.636.6-1.05.718l.364 1.277c.12.4-.18.8-.6.8h-3.61a.75.75 0 0 1-.72-.54L14.424 28H14a2.02 2.02 0 0 1-1.886-1.319l-.004-.01-.748-2.121-.004-.013a2.01 2.01 0 0 1 .275-1.807 2.04 2.04 0 0 1 1.073-.75l-.19-.669 4.43-1.996zM18.86 27h.017a1.02 1.02 0 0 0 .783-.4 1 1 0 0 0 .16-.88l-.6-2.1a1.01 1.01 0 0 0-.96-.72h-5a1.03 1.03 0 0 0-.82.42 1 1 0 0 0-.13.91l.74 2.1q.015.042.035.083c.169.354.525.587.915.587z`})]})},{value:`intelligence`,label:`intelligence`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M17 13a4 4 0 0 1 0 8c-2.142 0-4-1.79-4-4h-2a4 4 0 1 1-.535-2h3.07A4 4 0 0 1 17 13M2 12v-2h2V7a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3h2v2z`})})}],uf=({event:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=lf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Bd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},df=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=lf.map(e=>({...e,label:i(`event.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(uf,{event:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},ff=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},pf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(df,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(ff,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),mf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 14 14`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M6.58.39a.5.5 0 0 0-.5.5v1.62H4.1c-.188-.49-.627-.757-1.272-.757-.88 0-1.375.495-1.375 1.375s.495 1.376 1.375 1.376c.64 0 1.077-.263 1.267-.745H6.08v.969H4.912a.625.625 0 0 0 0 1.25h1.167v.632H2.731c-.193-.474-.627-.732-1.262-.732-.88 0-1.375.495-1.375 1.375S.589 8.63 1.469 8.63c.651 0 1.091-.271 1.276-.769H6.08v2.851h-.817V9.297a.625.625 0 0 0-.625-.625H3.52a.625.625 0 1 0 0 1.25h.492v.79h-.72c-.19-.484-.627-.748-1.268-.748-.88 0-1.376.495-1.376 1.376s.495 1.375 1.376 1.375c.644 0 1.082-.266 1.27-.754H6.08v1.148a.5.5 0 0 0 .5.5h3.75a2 2 0 0 0 2-2V9.848q.16-.013.31-.045a1.9 1.9 0 0 0 .709-.32c.514-.36.646-.998.505-1.516-.428-1.566-.937-3.207-1.78-4.557a8 8 0 0 0-.383-.56C10.585 1.378 8.987.39 6.58.39m4.13 6.11a.625.625 0 0 0-1.25 0v.165a.625.625 0 0 0 1.25 0z`,clipRule:`evenodd`})}),hf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M17.504 7.501H7.5v10.003h10.003z`}),(0,u.jsx)(`path`,{d:`M21.505 5.5v-2h-2v-2h-2.001v2h-2v-2h-2.001v2h-2v-2H9.501v2h-2v-2H5.5v2h-2v2h-2v2.001h2v2h-2v2.001h2v2h-2v2.001h2v2h-2v2.001h2v2h2v2.001h2.001v-2h2v2h2.001v-2h2v2h2.001v-2h2v2h2.001v-2h2v-2h2.001v-2.001h-2v-2h2v-2.001h-2v-2h2V9.501h-2v-2h2V5.5zm-2 14.004H5.5V5.501h14.003z`})]}),gf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M5.998 3a7 7 0 0 1 6.913 5.895A6.48 6.48 0 0 1 17.498 7h4.5v2.5a6.5 6.5 0 0 1-6.5 6.5h-2.5v5h-2v-8h-2a7 7 0 0 1-7-7V3zm14 6h-2.5a4.5 4.5 0 0 0-4.5 4.5v.5h2.5a4.5 4.5 0 0 0 4.5-4.5zm-14-4h-2v1a5 5 0 0 0 5 5h2v-1a5 5 0 0 0-5-5`})}),_f=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M4 18v2h4v-2zm0-4v2h10v-2zm6 4v2h4v-2zm6-4v2h4v-2zm0 4v2h4v-2zM2 22V8l5 4V8l5 4V8l5 4 1-10h3l1 10v10z`})}),vf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 16 16`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M6.002 4a1.998 1.998 0 1 1 3.996 0 1.998 1.998 0 0 1-3.996 0M8 3.002a.998.998 0 1 0 0 1.996.998.998 0 0 0 0-1.996M11 4.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m1.5-.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1m-9-1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M3 4.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0M4.268 7A2 2 0 0 0 4 8H2v2.5a1.5 1.5 0 0 0 2.096 1.377c.074.331.19.647.34.942A2.5 2.5 0 0 1 1 10.5V8a1 1 0 0 1 1-1zm7.296 5.819A2.5 2.5 0 0 0 15 10.5V8a1 1 0 0 0-1-1h-2.268c.17.294.268.635.268 1h2v2.5a1.5 1.5 0 0 1-2.096 1.377 4 4 0 0 1-.34.942M6 6.999a1 1 0 0 0-1 1V11a3 3 0 1 0 6 0V8a1 1 0 0 0-1-1zm0 1h4V11a2 2 0 1 1-4 0z`})}),yf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,children:[(0,u.jsx)(`path`,{d:`m12.593 23.258-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z`}),(0,u.jsx)(`path`,{fill:`currentColor`,d:`M21 7a1 1 0 0 1 .117 1.993L21 9v10a1 1 0 0 1 .117 1.993L21 21H3a1 1 0 0 1-.117-1.993L3 19V9a1 1 0 0 1-.117-1.993L3 7zm-2 2H5v10h2v-7a1 1 0 1 1 2 0v7h2v-7a1 1 0 1 1 2 0v7h2v-7a1 1 0 1 1 2 0v7h2zm-1-5a1 1 0 1 1 0 2H6a1 1 0 0 1 0-2z`})]})}),bf=[{value:`company`,label:`company`,icon:Rd},{value:`government`,label:`government`,icon:yf},{value:`military`,label:`military`,icon:vf},{value:`manufacturing`,label:`manufacturing`,icon:_f},{value:`agriculture`,label:`agriculture`,icon:gf},{value:`semi-conductor`,label:`semi-conductor`,icon:hf},{value:`technology`,label:`technology`,icon:mf}],xf=({organization:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=bf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Rd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Sf=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=bf.map(e=>({...e,label:i(`organization.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(xf,{organization:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},Cf=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},wf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Sf,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Cf,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Tf=[{value:`professional`,label:`professional`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M12 3c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4m4 10.54c0 1.06-.28 3.53-2.19 6.29L13 15l.94-1.88c-.62-.07-1.27-.12-1.94-.12s-1.32.05-1.94.12L11 15l-.81 4.83C8.28 17.07 8 14.6 8 13.54c-2.39.7-4 1.96-4 3.46v4h16v-4c0-1.5-1.6-2.76-4-3.46`})})},{value:`gov-official`,label:`gov-official`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M16 14.5c0 1.1-.3 3.5-2.2 6.3L13 16l.9-1.9c-.6 0-1.2-.1-1.9-.1s-1.3.1-1.9.1L11 16l-.8 4.8C8.3 18.1 8 15.6 8 14.5c-2.4.7-4 2-4 3.5v4h16v-4c0-1.5-1.6-2.8-4-3.5M6 4.5C6 3.1 8.7 2 12 2s6 1.1 6 2.5c0 .4-.2.7-.5 1-.9-.9-3-1.5-5.5-1.5s-4.6.6-5.5 1.5c-.3-.3-.5-.6-.5-1m9.9 2.9c.1.2.1.4.1.6 0 2.2-1.8 4-4 4s-4-1.8-4-4c0-.2 0-.4.1-.6 1 .4 2.4.6 3.9.6s2.9-.2 3.9-.6m.7-1.3c-1.1.5-2.7.9-4.6.9s-3.5-.4-4.6-.9C8.1 5.5 9.8 5 12 5s3.9.5 4.6 1.1`})})},{value:`school-personel`,label:`school-personel`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M16 8c0 2.21-1.79 4-4 4s-4-1.79-4-4l.11-.94L5 5.5 12 2l7 3.5v5h-1V6l-2.11 1.06zm-4 6c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4`})})}],Ef=({person:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=Tf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Jd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Df=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=Tf.map(e=>({...e,label:i(`person.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(Ef,{person:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},Of=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},kf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Df,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Of,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Af=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M14.25 2.5a.25.25 0 0 0-.25-.25H7A2.75 2.75 0 0 0 4.25 5v14A2.75 2.75 0 0 0 7 21.75h10A2.75 2.75 0 0 0 19.75 19V9.147a.25.25 0 0 0-.25-.25H15a.75.75 0 0 1-.75-.75zm.75 9.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5z`,clipRule:`evenodd`}),(0,u.jsx)(`path`,{d:`M15.75 2.824c0-.184.193-.301.336-.186q.182.147.323.342l3.013 4.197c.068.096-.006.22-.124.22H16a.25.25 0 0 1-.25-.25z`})]}),jf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M8 6h9v2H8z`}),(0,u.jsx)(`path`,{d:`M20 2H6C4.35 2 3 3.35 3 5v14c0 1.65 1.35 3 3 3h15v-2H6c-.55 0-1-.45-1-1s.45-1 1-1h14c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-6 14H6c-.35 0-.69.07-1 .18V5c0-.55.45-1 1-1h13v12z`})]}),Mf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeMiterlimit:10,strokeWidth:.5,d:`M19.2 7.3c-1.9-.4-3.3-2-3.4-3.9v-.3h-3.1v12.5c0 1.5-1.2 2.6-2.6 2.6-.8 0-1.6-.4-2.1-1h0c-1-1.2-.8-2.9.4-3.8.6-.4 1.1-.4 1.8-.4V9.8c-3.2-.4-5.5 1.8-6 4.9-.2 1.8.3 3.5 1.6 4.8 2.2 2.3 5.9 2.3 8.2.1 1.1-1.1 1.7-2.6 1.7-4.1V9.2c1.3.9 2.8 1.4 4.4 1.4V7.4c-.3 0-.6 0-.9-.1`})}),Nf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M14 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm3 2h-2v6h2z`,clipRule:`evenodd`}),(0,u.jsx)(`path`,{d:`M6 7a1 1 0 0 0 0 2h4a1 1 0 1 0 0-2zm0 4a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2zm-1 5a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M4 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm16 2H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1`,clipRule:`evenodd`})]}),Pf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeMiterlimit:10,children:[(0,u.jsx)(`path`,{d:`M2.5 23.5h19l2-2v-20h-19v20zm0 0-2-2v-13h2v11`}),(0,u.jsx)(`path`,{d:`M13.5 4.5h-6v7h6zm3 1h4m-4 3h4m-4 3h4m-13 3h13m-13 3h13m-13 3h13`})]})}),Ff=[{value:`news`,label:`news`,icon:Pf},{value:`website`,label:`website`,icon:Nf},{value:`social-media`,label:`social-media`,icon:Mf},{value:`book`,label:`book`,icon:jf},{value:`paper`,label:`paper`,icon:Af}],If=({source:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#ababab`),i=Ff.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Hd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Lf=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=Ff.map(e=>({...e,label:i(`source.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(If,{source:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},Rf=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#ababab`,`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#7950f2`],error:n})},zf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Lf,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Rf,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Bf=[{value:`company`,label:`company`,icon:Rd},{value:`government`,label:`government`,icon:yf},{value:`news`,label:`news`,icon:Pf},{value:`forum`,label:`forum`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M17 12V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v14l4-4h10a1 1 0 0 0 1-1m4-6h-2v9H6v2a1 1 0 0 0 1 1h11l4 4V7a1 1 0 0 0-1-1`})})}],Vf=({website:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=Bf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Wd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Hf=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=Bf.map(e=>({...e,label:i(`website.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(Vf,{website:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},Uf=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},Wf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Hf,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Uf,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Gf=({event:e,background:t,withBorder:n=!0,action:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{p:`xs`,bg:t,withBorder:n,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.title||i(`event.title`)}),e.happened_at&&(0,u.jsx)(wc,{c:`dimmed`,children:new Date(e.happened_at*1e3).toLocaleString()}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`event.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),r]})})},Kf=({person:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`person.name`)}),e.role&&(0,u.jsx)(wc,{c:`dimmed`,children:e.role||i(`person.role`)}),e.aliases&&(0,u.jsxs)(wc,{truncate:`end`,children:[i(`person.aliases`),`: `,e.aliases.join(`, `)]}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},qf=({organization:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`organization.name`)}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Jf=({website:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.title||i(`website.title`)}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`website.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Yf=({source:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`source.name`)}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`source.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Xf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=(e,t,n)=>{typeof n==`string`||n instanceof Blob?e.append(t,n):n instanceof Date?e.append(t,n.toISOString()):e.append(t,JSON.stringify(n))},n=(e,t,n)=>{typeof n==`string`?e.append(t,n):e.append(t,JSON.stringify(n))};e.formDataBodySerializer={bodySerializer:e=>{let n=new FormData;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>t(n,e,r)):t(n,e,r))}),n}},e.jsonBodySerializer={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},e.urlSearchParamsBodySerializer={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>n(t,e,r)):n(t,e,r))}),t.toString()}}})),Zf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildClientParams=void 0;var t=Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`}),n=(e,t)=>{t||=new Map;for(let r of e)`in`in r?r.key&&t.set(r.key,{in:r.in,map:r.map}):`key`in r?t.set(r.key,{map:r.map}):r.args&&n(r.args,t);return t},r=e=>{for(let[t,n]of Object.entries(e))n&&typeof n==`object`&&!Array.isArray(n)&&!Object.keys(n).length&&delete e[t]};e.buildClientParams=(e,i)=>{let a={body:{},headers:{},path:{},query:{}},o=n(i),s;for(let[n,r]of e.entries())if(i[n]&&(s=i[n]),s)if(`in`in s)if(s.key){let e=o.get(s.key),t=e.map||s.key;e.in&&(a[e.in][t]=r)}else a.body=r;else for(let[e,n]of Object.entries(r??{})){let r=o.get(e);if(r)if(r.in){let t=r.map||e;a[r.in][t]=n}else a[r.map]=n;else{let r=t.find(([t])=>e.startsWith(t));if(r){let[t,i]=r;a[i][e.slice(t.length)]=n}else if(`allowExtra`in s&&s.allowExtra){for(let[t,r]of Object.entries(s.allowExtra))if(r){a[t][e]=n;break}}}}return r(a),a}})),Qf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeQueryKeyValue=e.stringifyToJsonValue=e.queryKeyJsonReplacer=void 0,e.queryKeyJsonReplacer=(e,t)=>{if(!(t===void 0||typeof t==`function`||typeof t==`symbol`))return typeof t==`bigint`?t.toString():t instanceof Date?t.toISOString():t},e.stringifyToJsonValue=t=>{try{let n=JSON.stringify(t,e.queryKeyJsonReplacer);return n===void 0?void 0:JSON.parse(n)}catch{return}};var t=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},n=e=>{let t=Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t)),n={};for(let[e,r]of t){let t=n[e];if(t===void 0){n[e]=r;continue}Array.isArray(t)?t.push(r):n[e]=[t,r]}return n};e.serializeQueryKeyValue=r=>{if(r===null)return null;if(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)return r;if(!(r===void 0||typeof r==`function`||typeof r==`symbol`)){if(typeof r==`bigint`)return r.toString();if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return(0,e.stringifyToJsonValue)(r);if(typeof URLSearchParams<`u`&&r instanceof URLSearchParams)return n(r);if(t(r))return(0,e.stringifyToJsonValue)(r)}}})),$f=o((e=>{var t=e&&e.__await||function(e){return this instanceof t?(this.v=e,this):new t(e)},n=e&&e.__asyncGenerator||function(e,n,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,n||[]),a,o=[];return a=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),c(`next`),c(`throw`),c(`return`,s),a[Symbol.asyncIterator]=function(){return this},a;function s(e){return function(t){return Promise.resolve(t).then(e,f)}}function c(e,t){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||l(e,t)})},t&&(a[e]=t(a[e])))}function l(e,t){try{u(i[e](t))}catch(e){p(o[0][3],e)}}function u(e){e.value instanceof t?Promise.resolve(e.value.v).then(d,f):p(o[0][2],e)}function d(e){l(`next`,e)}function f(e){l(`throw`,e)}function p(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}},r=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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};Object.defineProperty(e,`__esModule`,{value:!0}),e.createSseClient=void 0,e.createSseClient=e=>{var{onRequest:i,onSseError:a,onSseEvent:o,responseTransformer:s,responseValidator:c,sseDefaultRetryDelay:l,sseMaxRetryAttempts:u,sseMaxRetryDelay:d,sseSleepFn:f,url:p}=e,m=r(e,[`onRequest`,`onSseError`,`onSseEvent`,`responseTransformer`,`responseValidator`,`sseDefaultRetryDelay`,`sseMaxRetryAttempts`,`sseMaxRetryDelay`,`sseSleepFn`,`url`]);let h,g=f??(e=>new Promise(t=>setTimeout(t,e)));return{stream:function(){return n(this,arguments,function*(){let e=l??3e3,n=0,r=m.signal??new AbortController().signal;for(;!r.aborted;){n++;let l=m.headers instanceof Headers?m.headers:new Headers(m.headers);h!==void 0&&l.set(`Last-Event-ID`,h);try{let n=Object.assign(Object.assign({redirect:`follow`},m),{body:m.serializedBody,headers:l,signal:r}),a=new Request(p,n);i&&(a=yield t(i(p,n)));let u=yield t((m.fetch??globalThis.fetch)(a));if(!u.ok)throw Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw Error(`No body in SSE response`);let d=u.body.pipeThrough(new TextDecoderStream).getReader(),f=``,g=()=>{try{d.cancel()}catch{}};r.addEventListener(`abort`,g);try{for(;;){let{done:n,value:r}=yield t(d.read());if(n)break;f+=r,f=f.replace(/\r\n/g,`
12
+ `);try{l=JSON.parse(e),u=!0}catch{l=e}}u&&(c&&(yield t(c(l))),s&&(l=yield t(s(l)))),o?.({data:l,event:a,id:h,retry:e}),i.length&&(yield yield t(l))}}}finally{r.removeEventListener(`abort`,g),d.releaseLock()}break}catch(r){if(a?.(r),u!==void 0&&n>=u)break;yield t(g(Math.min(e*2**(n-1),d??3e4)))}}})}()}}})),ef=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeObjectParam=e.serializePrimitiveParam=e.serializeArrayParam=e.separatorObjectExplode=e.separatorArrayNoExplode=e.separatorArrayExplode=void 0,e.separatorArrayExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.separatorArrayNoExplode=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},e.separatorObjectExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.serializeArrayParam=({allowReserved:t,explode:n,name:r,style:i,value:a})=>{if(!n){let n=(t?a:a.map(e=>encodeURIComponent(e))).join((0,e.separatorArrayNoExplode)(i));switch(i){case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;case`simple`:return n;default:return`${r}=${n}`}}let o=(0,e.separatorArrayExplode)(i),s=a.map(n=>i===`label`||i===`simple`?t?n:encodeURIComponent(n):(0,e.serializePrimitiveParam)({allowReserved:t,name:r,value:n})).join(o);return i===`label`||i===`matrix`?o+s:s},e.serializePrimitiveParam=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},e.serializeObjectParam=({allowReserved:t,explode:n,name:r,style:i,value:a,valueOnly:o})=>{if(a instanceof Date)return o?a.toISOString():`${r}=${a.toISOString()}`;if(i!==`deepObject`&&!n){let e=[];Object.entries(a).forEach(([n,r])=>{e=[...e,n,t?r:encodeURIComponent(r)]});let n=e.join(`,`);switch(i){case`form`:return`${r}=${n}`;case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;default:return n}}let s=(0,e.separatorObjectExplode)(i),c=Object.entries(a).map(([n,a])=>(0,e.serializePrimitiveParam)({allowReserved:t,name:i===`deepObject`?`${r}[${n}]`:n,value:a})).join(s);return i===`label`||i===`matrix`?s+c:c}})),tf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getUrl=e.defaultPathSerializer=e.PATH_PARAM_RE=void 0,e.getValidRequestBody=n;var t=ef();e.PATH_PARAM_RE=/\{[^{}]+\}/g,e.defaultPathSerializer=({path:n,url:r})=>{let i=r,a=r.match(e.PATH_PARAM_RE);if(a)for(let e of a){let r=!1,a=e.substring(1,e.length-1),o=`simple`;a.endsWith(`*`)&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(`.`)?(a=a.substring(1),o=`label`):a.startsWith(`;`)&&(a=a.substring(1),o=`matrix`);let s=n[a];if(s==null)continue;if(Array.isArray(s)){i=i.replace(e,(0,t.serializeArrayParam)({explode:r,name:a,style:o,value:s}));continue}if(typeof s==`object`){i=i.replace(e,(0,t.serializeObjectParam)({explode:r,name:a,style:o,value:s,valueOnly:!0}));continue}if(o===`matrix`){i=i.replace(e,`;${(0,t.serializePrimitiveParam)({name:a,value:s})}`);continue}let c=encodeURIComponent(o===`label`?`.${s}`:s);i=i.replace(e,c)}return i},e.getUrl=({baseUrl:t,path:n,query:r,querySerializer:i,url:a})=>{let o=a.startsWith(`/`)?a:`/${a}`,s=(t??``)+o;n&&(s=(0,e.defaultPathSerializer)({path:n,url:s}));let c=r?i(r):``;return c.startsWith(`?`)&&(c=c.substring(1)),c&&(s+=`?${c}`),s};function n(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}})),nf=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.getAuthToken=void 0,e.getAuthToken=(e,n)=>t(void 0,void 0,void 0,function*(){let t=typeof n==`function`?yield n(e):n;if(t)return e.scheme===`bearer`?`Bearer ${t}`:e.scheme===`basic`?`Basic ${btoa(t)}`:t})})),rf=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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};Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.mergeHeaders=e.axiosHeadersKeywords=e.mergeConfigs=e.buildUrl=e.setAuthParams=e.createQuerySerializer=void 0;var r=nf(),i=ef(),a=tf();e.createQuerySerializer=(e={})=>{var{parameters:t={}}=e,r=n(e,[`parameters`]);return e=>{let n=[];if(e&&typeof e==`object`)for(let a in e){let o=e[a];if(o==null)continue;let s=t[a]||r;if(Array.isArray(o)){let e=(0,i.serializeArrayParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`form`,value:o},s.array));e&&n.push(e)}else if(typeof o==`object`){let e=(0,i.serializeObjectParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`deepObject`,value:o},s.object));e&&n.push(e)}else{let e=(0,i.serializePrimitiveParam)({allowReserved:s.allowReserved,name:a,value:o});e&&n.push(e)}}return n.join(`&`)}};var o=(e,t)=>t?t in e.headers||e.query?.[t]?!0:`Cookie`in e.headers&&e.headers.Cookie&&typeof e.headers.Cookie==`string`?e.headers.Cookie.includes(`${t}=`):!1:!1;e.setAuthParams=e=>t(void 0,void 0,void 0,function*(){var{security:t}=e,i=n(e,[`security`]);for(let e of t){if(o(i,e.name))continue;let t=yield(0,r.getAuthToken)(e,i.auth);if(!t)continue;let n=e.name??`Authorization`;switch(e.in){case`query`:i.query||={},i.query[n]=t;break;case`cookie`:{let e=`${n}=${t}`;`Cookie`in i.headers&&i.headers.Cookie?i.headers.Cookie=`${i.headers.Cookie}; ${e}`:i.headers.Cookie=e;break}default:i.headers[n]=t;break}}}),e.buildUrl=t=>{let n=t.axios?.defaults?.baseURL,r=t.baseURL&&typeof t.baseURL==`string`?t.baseURL:n;return(0,a.getUrl)({baseUrl:r,path:t.path,query:t.paramsSerializer?void 0:t.query,querySerializer:typeof t.querySerializer==`function`?t.querySerializer:(0,e.createQuerySerializer)(t.querySerializer),url:t.url})},e.mergeConfigs=(t,n)=>{let r=Object.assign(Object.assign({},t),n);return r.headers=(0,e.mergeHeaders)(t.headers,n.headers),r},e.axiosHeadersKeywords=[`common`,`delete`,`get`,`head`,`patch`,`post`,`put`],e.mergeHeaders=(...t)=>{let n={};for(let r of t){if(!r||typeof r!=`object`)continue;let t=Object.entries(r);for(let[r,i]of t)if(e.axiosHeadersKeywords.includes(r)&&typeof i==`object`)n[r]=Object.assign(Object.assign({},n[r]),i);else if(i===null)delete n[r];else if(Array.isArray(i))for(let e of i)n[r]=[...n[r]??[],e];else i!==void 0&&(n[r]=typeof i==`object`?JSON.stringify(i):i)}return n},e.createConfig=(e={})=>Object.assign({},e)})),af=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.createClient=void 0;var i=r(Qd()),a=$d(),o=tf(),s=rf();e.createClient=(e={})=>{let r=(0,s.mergeConfigs)((0,s.createConfig)(),e),c;if(r.axios&&!(`Axios`in r.axios))c=r.axios;else{let{auth:e}=r,t=n(r,[`auth`]);c=i.default.create(t)}let l=()=>Object.assign({},r),u=e=>(r=(0,s.mergeConfigs)(r,e),c.defaults=Object.assign(Object.assign(Object.assign({},c.defaults),r),{headers:(0,s.mergeHeaders)(c.defaults.headers,r.headers)}),l()),d=e=>t(void 0,void 0,void 0,function*(){let t=Object.assign(Object.assign(Object.assign({},r),e),{axios:e.axios??r.axios??c,headers:(0,s.mergeHeaders)(r.headers,e.headers)});return t.security&&(yield(0,s.setAuthParams)(Object.assign(Object.assign({},t),{security:t.security}))),t.requestValidator&&(yield t.requestValidator(t)),t.body!==void 0&&t.bodySerializer&&(t.body=t.bodySerializer(t.body)),{opts:t,url:(0,s.buildUrl)(t)}}),f=e=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(e);try{let e=t.axios,{auth:i}=t,a=n(t,[`auth`]),s=yield e(Object.assign(Object.assign({},a),{baseURL:``,data:(0,o.getValidRequestBody)(t),headers:t.headers,params:t.paramsSerializer?t.query:void 0,url:r})),{data:c}=s;return t.responseType===`json`&&(t.responseValidator&&(yield t.responseValidator(c)),t.responseTransformer&&(c=yield t.responseTransformer(c))),Object.assign(Object.assign({},s),{data:c??{}})}catch(e){let n=e;if(t.throwOnError)throw n;return n.error=n.response?.data??{},n}}),p=e=>t=>f(Object.assign(Object.assign({},t),{method:e})),m=e=>n=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(n);return(0,a.createSseClient)(Object.assign(Object.assign({},t),{body:t.body,headers:t.headers,method:e,serializedBody:(0,o.getValidRequestBody)(t),signal:t.signal,url:r}))});return{buildUrl:e=>(0,s.buildUrl)(Object.assign(Object.assign({axios:c},r),e)),connect:p(`CONNECT`),delete:p(`DELETE`),get:p(`GET`),getConfig:l,head:p(`HEAD`),instance:c,options:p(`OPTIONS`),patch:p(`PATCH`),post:p(`POST`),put:p(`PUT`),request:f,setConfig:u,sse:{connect:m(`CONNECT`),delete:m(`DELETE`),get:m(`GET`),head:m(`HEAD`),options:m(`OPTIONS`),patch:m(`PATCH`),post:m(`POST`),put:m(`PUT`),trace:m(`TRACE`)},trace:p(`TRACE`)}}})),of=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.createClient=e.serializeQueryKeyValue=e.buildClientParams=e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=Yd();Object.defineProperty(e,`formDataBodySerializer`,{enumerable:!0,get:function(){return t.formDataBodySerializer}}),Object.defineProperty(e,`jsonBodySerializer`,{enumerable:!0,get:function(){return t.jsonBodySerializer}}),Object.defineProperty(e,`urlSearchParamsBodySerializer`,{enumerable:!0,get:function(){return t.urlSearchParamsBodySerializer}});var n=Xd();Object.defineProperty(e,`buildClientParams`,{enumerable:!0,get:function(){return n.buildClientParams}});var r=Zd();Object.defineProperty(e,`serializeQueryKeyValue`,{enumerable:!0,get:function(){return r.serializeQueryKeyValue}});var i=af();Object.defineProperty(e,`createClient`,{enumerable:!0,get:function(){return i.createClient}});var a=rf();Object.defineProperty(e,`createConfig`,{enumerable:!0,get:function(){return a.createConfig}})})),sf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.client=void 0;var t=of();e.client=(0,t.createClient)((0,t.createConfig)())})),cf=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.healthCheck=e.deleteEntity=e.updateViewPermissions=e.updateRelationPermissions=e.updateSourcePermissions=e.updateWebsitePermissions=e.updateEventPermissions=e.updateOrganizationPermissions=e.updatePersonPermissions=e.queryViews=e.updateView=e.getView=e.deleteView=e.connectEntityToView=e.getViewEntities=e.updateRelation=e.getRelation=e.deleteRelation=e.updateSource=e.getSource=e.updateWebsite=e.getWebsite=e.updateEvent=e.getEvent=e.updateOrganization=e.getOrganization=e.updatePerson=e.getPerson=e.createView=e.createRelation=e.createSource=e.createWebsite=e.createEvent=e.createOrganization=e.createPerson=void 0;var t=sf();e.createPerson=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/person`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createOrganization=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/organization`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createEvent=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/event`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createWebsite=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/website`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createSource=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/source`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createRelation=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/relation`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.createView=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/view`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getPerson=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/person/{id}`},e)),e.updatePerson=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/person/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getOrganization=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/organization/{id}`},e)),e.updateOrganization=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/organization/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getEvent=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/event/{id}`},e)),e.updateEvent=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/event/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getWebsite=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/website/{id}`},e)),e.updateWebsite=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/website/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getSource=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/source/{id}`},e)),e.updateSource=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/source/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteRelation=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/relation/{id}`},e)),e.getRelation=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/relation/{id}`},e)),e.updateRelation=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/relation/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getViewEntities=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/view/{id}/entities`},e)),e.connectEntityToView=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}/entities`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteView=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/view/{id}`},e)),e.getView=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/view/{id}`},e)),e.updateView=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.queryViews=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/views`},e)),e.updatePersonPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/person/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateOrganizationPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/organization/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateEventPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/event/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateWebsitePermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/website/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateSourcePermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/source/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateRelationPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/relation/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.updateViewPermissions=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/view/{id}/permissions`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteEntity=e=>(e.client??t.client).delete(Object.assign({responseType:`json`,url:`/entity/{id}`},e)),e.healthCheck=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/health/osint/crud`},e))}));o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateWebsitePermissions=e.updateWebsite=e.updateViewPermissions=e.updateView=e.updateSourcePermissions=e.updateSource=e.updateRelationPermissions=e.updateRelation=e.updatePersonPermissions=e.updatePerson=e.updateOrganizationPermissions=e.updateOrganization=e.updateEventPermissions=e.updateEvent=e.queryViews=e.healthCheck=e.getWebsite=e.getViewEntities=e.getView=e.getSource=e.getRelation=e.getPerson=e.getOrganization=e.getEvent=e.deleteView=e.deleteRelation=e.deleteEntity=e.createWebsite=e.createView=e.createSource=e.createRelation=e.createPerson=e.createOrganization=e.createEvent=e.connectEntityToView=void 0;var t=cf();Object.defineProperty(e,`connectEntityToView`,{enumerable:!0,get:function(){return t.connectEntityToView}}),Object.defineProperty(e,`createEvent`,{enumerable:!0,get:function(){return t.createEvent}}),Object.defineProperty(e,`createOrganization`,{enumerable:!0,get:function(){return t.createOrganization}}),Object.defineProperty(e,`createPerson`,{enumerable:!0,get:function(){return t.createPerson}}),Object.defineProperty(e,`createRelation`,{enumerable:!0,get:function(){return t.createRelation}}),Object.defineProperty(e,`createSource`,{enumerable:!0,get:function(){return t.createSource}}),Object.defineProperty(e,`createView`,{enumerable:!0,get:function(){return t.createView}}),Object.defineProperty(e,`createWebsite`,{enumerable:!0,get:function(){return t.createWebsite}}),Object.defineProperty(e,`deleteEntity`,{enumerable:!0,get:function(){return t.deleteEntity}}),Object.defineProperty(e,`deleteRelation`,{enumerable:!0,get:function(){return t.deleteRelation}}),Object.defineProperty(e,`deleteView`,{enumerable:!0,get:function(){return t.deleteView}}),Object.defineProperty(e,`getEvent`,{enumerable:!0,get:function(){return t.getEvent}}),Object.defineProperty(e,`getOrganization`,{enumerable:!0,get:function(){return t.getOrganization}}),Object.defineProperty(e,`getPerson`,{enumerable:!0,get:function(){return t.getPerson}}),Object.defineProperty(e,`getRelation`,{enumerable:!0,get:function(){return t.getRelation}}),Object.defineProperty(e,`getSource`,{enumerable:!0,get:function(){return t.getSource}}),Object.defineProperty(e,`getView`,{enumerable:!0,get:function(){return t.getView}}),Object.defineProperty(e,`getViewEntities`,{enumerable:!0,get:function(){return t.getViewEntities}}),Object.defineProperty(e,`getWebsite`,{enumerable:!0,get:function(){return t.getWebsite}}),Object.defineProperty(e,`healthCheck`,{enumerable:!0,get:function(){return t.healthCheck}}),Object.defineProperty(e,`queryViews`,{enumerable:!0,get:function(){return t.queryViews}}),Object.defineProperty(e,`updateEvent`,{enumerable:!0,get:function(){return t.updateEvent}}),Object.defineProperty(e,`updateEventPermissions`,{enumerable:!0,get:function(){return t.updateEventPermissions}}),Object.defineProperty(e,`updateOrganization`,{enumerable:!0,get:function(){return t.updateOrganization}}),Object.defineProperty(e,`updateOrganizationPermissions`,{enumerable:!0,get:function(){return t.updateOrganizationPermissions}}),Object.defineProperty(e,`updatePerson`,{enumerable:!0,get:function(){return t.updatePerson}}),Object.defineProperty(e,`updatePersonPermissions`,{enumerable:!0,get:function(){return t.updatePersonPermissions}}),Object.defineProperty(e,`updateRelation`,{enumerable:!0,get:function(){return t.updateRelation}}),Object.defineProperty(e,`updateRelationPermissions`,{enumerable:!0,get:function(){return t.updateRelationPermissions}}),Object.defineProperty(e,`updateSource`,{enumerable:!0,get:function(){return t.updateSource}}),Object.defineProperty(e,`updateSourcePermissions`,{enumerable:!0,get:function(){return t.updateSourcePermissions}}),Object.defineProperty(e,`updateView`,{enumerable:!0,get:function(){return t.updateView}}),Object.defineProperty(e,`updateViewPermissions`,{enumerable:!0,get:function(){return t.updateViewPermissions}}),Object.defineProperty(e,`updateWebsite`,{enumerable:!0,get:function(){return t.updateWebsite}}),Object.defineProperty(e,`updateWebsitePermissions`,{enumerable:!0,get:function(){return t.updateWebsitePermissions}})}))();var lf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`m17.502 12.033-4.241-2.458 2.138-5.131A1.003 1.003 0 0 0 14.505 3a1 1 0 0 0-.622.214l-.07.06-7.5 7.1a1.002 1.002 0 0 0 .185 1.592l4.242 2.46-2.163 5.19a.999.999 0 0 0 1.611 1.11l7.5-7.102a1.002 1.002 0 0 0-.186-1.591`})}),uf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M14 23.2v-2q2.925 0 4.963-2.037T21 14.2h2q0 1.875-.712 3.513t-1.925 2.85-2.85 1.925T14 23.2m0-4v-2q1.25 0 2.125-.875T17 14.2h2q0 2.075-1.463 3.538T14 19.2m-8.45 3.375q-.375 0-.75-.15T4.125 22l-3.55-3.55q-.275-.3-.425-.675t-.15-.75q0-.4.15-.763t.425-.637L3.75 12.45q.575-.575 1.425-.587t1.425.562l1.25 1.25.7-.7-1.25-1.25q-.575-.575-.575-1.4t.575-1.4L8.725 7.5q.575-.575 1.413-.575t1.412.575l1.25 1.25.7-.7-1.25-1.25q-.575-.575-.575-1.412t.575-1.413L15.425.8q.3-.3.675-.45t.75-.15.738.15.662.45l3.55 3.55q.3.275.438.638t.137.762q0 .375-.137.75t-.438.675l-3.175 3.175q-.575.575-1.412.575T15.8 10.35L14.55 9.1l-.7.7 1.25 1.25q.575.575.563 1.413t-.588 1.412l-1.4 1.4q-.575.575-1.412.575t-1.413-.575l-1.25-1.25-.7.7 1.25 1.25q.575.575.563 1.425t-.588 1.425L6.95 22q-.275.275-.638.425t-.762.15m0-1.975 1.05-1.05L3.05 16 2 17.05zm2.125-2.125 1.05-1.05-3.55-3.55-1.05 1.05zm9.55-9.55 1.05-1.05-3.55-3.55-1.05 1.05zM19.35 6.8l1.05-1.05-3.55-3.55-1.05 1.05z`})}),df=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M5 19q0-1.644.91-2.93.91-1.285 2.361-1.787l-.423-3.667H4.981V6H2.019V5h6.923v1H5.981v3.616h1.738l-.103-1h8.75l-.104 1h1.719V6h-2.962V5h6.948v1h-2.961v4.616h-2.848l-.424 3.667q1.453.502 2.36 1.787Q19 17.356 19 19h-1q0-1.65-1.117-2.825T14.135 15H9.846q-1.611 0-2.729 1.175T6 19z`})}),ff=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M15 2.013H9V9H2v6h7v6.987h6V15h7V9h-7z`})}),pf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 48 48`,width:e,height:e,...t,children:(0,u.jsx)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:4,children:(0,u.jsx)(`path`,{d:`M4 9v31h40V9h-8v7h-8V9h-8v7h-8V9zM4 24h40M4 32h40M24 24v8M16 32v8M16 16v8M32 32v8M32 16v8`})})}),mf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M255.98 160V16c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v146.93c5.02-1.78 10.34-2.93 15.97-2.93zm128 95.99c-.01-35.34-28.66-63.99-63.99-63.99H207.85c-8.78 0-15.9 7.07-15.9 15.85v.56c0 26.27 21.3 47.59 47.57 47.59h35.26c9.68 0 13.2 3.58 13.2 8v16.2c0 4.29-3.59 7.78-7.88 8-44.52 2.28-64.16 24.71-96.05 72.55l-6.31 9.47a7.994 7.994 0 0 1-11.09 2.22l-13.31-8.88a7.994 7.994 0 0 1-2.22-11.09l6.31-9.47c15.73-23.6 30.2-43.26 47.31-58.08-17.27-5.51-31.4-18.12-38.87-34.45-6.59 3.41-13.96 5.52-21.87 5.52h-32c-12.34 0-23.49-4.81-32-12.48C71.48 251.19 60.33 256 48 256H16c-5.64 0-10.97-1.15-16-2.95v77.93c0 33.95 13.48 66.5 37.49 90.51L63.99 448v64h255.98v-63.96l35.91-35.92A96.04 96.04 0 0 0 384 344.21zm-32.01-90.09V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v112h32c11.28 0 21.94 2.31 32 5.9M16 224h32c8.84 0 16-7.16 16-16V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v128c0 8.84 7.16 16 16 16m95.99 0h32c8.84 0 16-7.16 16-16V48c0-8.84-7.16-16-16-16h-32c-8.84 0-16 7.16-16 16v160c0 8.84 7.16 16 16 16`})}),hf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`circle`,{cx:17,cy:4,r:2}),(0,u.jsx)(`path`,{d:`M15.777 10.969a2.01 2.01 0 0 0 2.148.83l3.316-.829-.483-1.94-3.316.829-1.379-2.067a2 2 0 0 0-1.272-.854l-3.846-.77a2 2 0 0 0-2.181 1.067l-1.658 3.316 1.789.895 1.658-3.317 1.967.394L7.434 17H3v2h4.434c.698 0 1.355-.372 1.715-.971l1.918-3.196 5.169 1.034 1.816 5.449 1.896-.633-1.815-5.448a2.01 2.01 0 0 0-1.506-1.33l-3.039-.607 1.772-2.954z`})]}),gf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 256 256`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M217 34.8a15.94 15.94 0 0 0-14.82-1.71c-14.03 5.46-42.36 14.62-74.18 14.62s-60.16-9.16-74.21-14.62A16 16 0 0 0 32 48v55.77c0 35.84 9.65 69.65 27.18 95.18 18.16 26.46 42.6 41 68.82 41s50.66-14.57 68.82-41c17.53-25.51 27.18-59.32 27.18-95.16V48a16 16 0 0 0-7-13.2M78 133.33a8 8 0 1 1-12-10.67C71.75 116.28 82.18 112 92 112s20.25 4.28 26 10.66a8 8 0 1 1-12 10.67c-2.68-3-8.85-5.33-14-5.33s-11.36 2.34-14 5.33m90.49 47.86a52.9 52.9 0 0 1-80.9 0 8 8 0 1 1 12.13-10.39 36.89 36.89 0 0 0 56.56 0 8 8 0 0 1 12.17 10.39ZM189.34 134a8 8 0 0 1-11.3-.63c-2.68-3-8.85-5.33-14-5.33s-11.36 2.34-14 5.33A8 8 0 1 1 138 122.66c5.71-6.38 16.14-10.66 26-10.66s20.25 4.28 26 10.66a8 8 0 0 1-.66 11.34`})}),_f=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeWidth:1.5,children:[(0,u.jsx)(`path`,{d:`m12.147 18.28 1.184-5.8a.6.6 0 0 1 .588-.48h6.162a.6.6 0 0 1 .588.48l1.184 5.8a.6.6 0 0 1-.588.72h-8.53a.6.6 0 0 1-.588-.72Z`}),(0,u.jsx)(`path`,{d:`m7.147 11.28 1.184-5.8A.6.6 0 0 1 8.918 5h6.164a.6.6 0 0 1 .587.48l1.184 5.8a.6.6 0 0 1-.588.72h-8.53a.6.6 0 0 1-.588-.72Z`}),(0,u.jsx)(`path`,{d:`m2.147 18.28 1.184-5.8a.6.6 0 0 1 .587-.48h6.163a.6.6 0 0 1 .588.48l1.184 5.8a.6.6 0 0 1-.588.72h-8.53a.6.6 0 0 1-.588-.72Z`})]})}),vf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 80 80`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M42.356 29.901 39.38 32.88l-2.29 2.29a2.954 2.954 0 1 1-4.138-4.216l6.806-6.555q.165-.158.34-.299a8 8 0 0 1 2.26 5.802m15.37 21.518-1.36 1.855A7.9 7.9 0 0 1 50 56.5l-1.113 1.113a6.44 6.44 0 0 1-8.678.394L39 57l-.702.702a7.846 7.846 0 0 1-11.096 0l-7.53-7.53A4 4 0 0 0 16.843 49H4V27h12.343a4 4 0 0 0 2.829-1.172l3.485-3.485A8 8 0 0 1 28.314 20h4.372c.877 0 1.739.144 2.554.419l-6.45 6.212A8.954 8.954 0 1 0 41.33 39.41l.418-.417 15.91 12.374.067.051`,clipRule:`evenodd`}),(0,u.jsx)(`path`,{d:`M63.657 27H76v22H59.5l-18-14-2.29 2.29a5.954 5.954 0 1 1-8.34-8.498l6.806-6.555A8 8 0 0 1 43.226 20h8.46a8 8 0 0 1 5.657 2.343l3.485 3.485A4 4 0 0 0 63.657 27`})]}),yf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 48 48`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:4,children:[(0,u.jsx)(`path`,{d:`m19 16 5 6 5-6`}),(0,u.jsx)(`path`,{d:`M9 14s7.5-11.5 20.5-7S42 24.5 42 24.5M39 34s-6 11-19.5 7.5S6 24 6 24M42 8v16M6 24v16M18 28h12M18 22h12M24 22v12`})]})}),bf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 32 32`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M14.534 9.266h.007c.228 0 .446-.09.599-.247L19.83 4.2a.713.713 0 0 0-.058-1.06.85.85 0 0 0-1.14.054L14.55 7.387l-1.174-1.246a.85.85 0 0 0-1.14-.07.714.714 0 0 0-.075 1.058l1.771 1.881a.84.84 0 0 0 .602.256m10.269 16.611c0 .78.68 1.413 1.521 1.413s1.522-.633 1.522-1.413v-7.915c0-.78-.681-1.413-1.522-1.413-.84 0-1.522.632-1.522 1.413z`}),(0,u.jsx)(`path`,{d:`M11.962 1.5c-.933 0-1.847.647-1.847 1.625V5H4.288C2.543 5 1 6.33 1 8.125V29a2 2 0 0 0 2 2h26a2 2 0 0 0 2-2V8.125C31 6.33 29.457 5 27.712 5h-5.759V3.125c0-.978-.914-1.625-1.846-1.625zm-.847 1.625c0-.265.291-.625.846-.625h8.146c.556 0 .846.36.846.625V10.5h-9.838zM21.953 7h5.759C28.494 7 29 7.572 29 8.125v5.846H3V8.125C3 7.572 3.506 7 4.288 7h5.827v2.582c-.526.167-.906.63-.906 1.176 0 .686.6 1.242 1.338 1.242h10.906c.74 0 1.338-.556 1.338-1.242 0-.521-.347-.968-.838-1.152zM3 16h26v13H3z`})]}),xf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:2,d:`M4 8a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm3 8v4m.5-4 9-9m-3 9L20 9.5m-16 4L10.5 7m6.5 9v4M5 20h4m6 0h4M17 7V5M7 7V5`})}),Sf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 16 16`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinejoin:`round`,d:`M7 14.5H3.5v-13h9V7M5 6.5h4m-4-2h6m-.5 7v-2m3 2a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm-3 1.25h.005v.005H10.5zm.25 0a.25.25 0 1 1-.5 0 .25.25 0 0 1 .5 0Z`})}),Cf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`m19.94 7.68-.03-.09a.8.8 0 0 0-.2-.29l-5-5a1 1 0 0 0-.3-.2l-.09-.03a.9.9 0 0 0-.27-.05c-.02 0-.04-.01-.05-.01H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-12s-.01-.04-.01-.06c0-.09-.02-.17-.05-.26ZM6 20V4h7v4c0 .55.45 1 1 1h4v11z`}),(0,u.jsx)(`path`,{d:`M8 12h2v6H8zm3-2h2v8h-2zm3 4h2v4h-2z`})]}),wf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M12 2a3 3 0 0 0-3 3 3 3 0 0 0 2 2.83V9H8v2h3v8.92c-.74-.13-1.5-.34-2.21-.65-.74-.32-1.39-.71-1.97-1.18s-1.04-.98-1.38-1.54L7 15l-4-3v3c0 .97.27 1.88.82 2.72A8.2 8.2 0 0 0 6 19.95c.87.64 1.84 1.14 2.88 1.5 1.05.36 2.09.55 3.12.55s2.07-.2 3.12-.56c1.04-.36 2.01-.86 2.88-1.49.92-.64 1.63-1.38 2.18-2.23.55-.84.82-1.75.82-2.72v-3l-4 3 1.56 1.55c-.34.56-.8 1.07-1.38 1.54s-1.23.86-1.97 1.18c-.71.31-1.47.52-2.21.65V11h3V9h-3V7.82A3 3 0 0 0 15 5a3 3 0 0 0-3-3m0 2a1 1 0 0 1 1 1 1 1 0 0 1-1 1 1 1 0 0 1-1-1 1 1 0 0 1 1-1`})}),Tf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M6.76 12.59h11.48A2.77 2.77 0 0 0 21 9.82V2.76A2.77 2.77 0 0 0 18.24 0H6.76A2.77 2.77 0 0 0 4 2.76v7.06a2.77 2.77 0 0 0 2.76 2.77M6 2.76A.76.76 0 0 1 6.76 2h11.48a.76.76 0 0 1 .76.76v7.06a.77.77 0 0 1-.76.77h-1.76a.25.25 0 0 1-.18-.08 5.3 5.3 0 0 0-2.16-1.29A.25.25 0 0 1 14 9a.27.27 0 0 1 .12-.25 2.84 2.84 0 1 0-2.93 0 .24.24 0 0 1 .13.24.26.26 0 0 1-.18.21A5.3 5.3 0 0 0 9 10.51a.25.25 0 0 1-.18.08H6.76A.77.77 0 0 1 6 9.82Zm17.39 20.43a5.17 5.17 0 0 0-2.54-1.71.28.28 0 0 1-.18-.21.25.25 0 0 1 .12-.24 2.86 2.86 0 1 0-2.93 0 .26.26 0 0 1-.05.46 4.9 4.9 0 0 0-1.91 1.08.27.27 0 0 1-.34 0 5.2 5.2 0 0 0-2-1.1.28.28 0 0 1-.18-.21.25.25 0 0 1 .12-.24 2.86 2.86 0 1 0-2.93 0 .26.26 0 0 1 0 .46 5 5 0 0 0-2 1.18.26.26 0 0 1-.35 0 5 5 0 0 0-2-1.19.25.25 0 0 1-.22-.19.25.25 0 0 1 .11-.28 2.85 2.85 0 1 0-2.93 0 .24.24 0 0 1 .12.24.25.25 0 0 1-.17.21 5.16 5.16 0 0 0-2.52 1.7.51.51 0 0 0-.06.53A.5.5 0 0 0 1 24h22a.5.5 0 0 0 .45-.28.51.51 0 0 0-.06-.53`})}),Ef=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M17 13a4 4 0 0 1 0 8c-2.142 0-4-1.79-4-4h-2a4 4 0 1 1-.535-2h3.07A4 4 0 0 1 17 13M2 12v-2h2V7a4 4 0 0 1 4-4h8a4 4 0 0 1 4 4v3h2v2z`})}),Df=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 32 32`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M30 12.46c-.019-.762-.624-1.368-1.367-1.45a20 20 0 0 0-1.6.104c-1.016.106-2.044.284-2.714.515-.615.212-1.87.775-3.484 1.527-.91.424-1.92.902-2.978 1.402-.81.383-1.647.779-2.488 1.174-1.937.91-3.889 1.811-5.537 2.521-1.63.702-3.017 1.241-3.798 1.394-.964.189-2.438.357-3.563.408q-.152.44-.341.865c-.09.18-.13.38-.13.6A1.5 1.5 0 0 0 3.5 23c2.813 0 4.099-.576 6.607-1.701l.153-.069 12.7-5.72.614-.278C25.373 14.416 26.288 14 28.49 14c.85 0 1.53-.69 1.51-1.54`}),(0,u.jsx)(`path`,{d:`m26.93 10.12.26-.026C25.413 5.364 20.848 2 15.5 2 8.65 2 3 7.67 3 14.5v2.56a8.7 8.7 0 0 1-.234 1.978c1.006-.063 2.24-.209 3.075-.372.657-.129 1.942-.62 3.595-1.331 1.633-.703 3.572-1.6 5.508-2.508.835-.392 1.671-.788 2.48-1.17l.002-.001c1.061-.502 2.077-.982 2.987-1.406 1.596-.744 2.904-1.333 3.58-1.566.78-.27 1.898-.456 2.937-.564M18.836 26l-.6-2.1H13.26L14 26z`}),(0,u.jsx)(`path`,{d:`M17.685 21.9h.575c.882 0 1.678.592 1.921 1.445l.599 2.095a1.99 1.99 0 0 1-.324 1.765c-.264.348-.636.6-1.05.718l.364 1.277c.12.4-.18.8-.6.8h-3.61a.75.75 0 0 1-.72-.54L14.424 28H14a2.02 2.02 0 0 1-1.886-1.319l-.004-.01-.748-2.121-.004-.013a2.01 2.01 0 0 1 .275-1.807 2.04 2.04 0 0 1 1.073-.75l-.19-.669 4.43-1.996zM18.86 27h.017a1.02 1.02 0 0 0 .783-.4 1 1 0 0 0 .16-.88l-.6-2.1a1.01 1.01 0 0 0-.96-.72h-5a1.03 1.03 0 0 0-.82.42 1 1 0 0 0-.13.91l.74 2.1q.015.042.035.083c.169.354.525.587.915.587z`})]}),Of=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20 12H4v-1h2l1-5h5l1 5h7zm-6.78-5 .4 2H22V7zM22 16a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3 3 3 0 0 1 3-3h14a3 3 0 0 1 3 3M6 16a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1m7 0a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1m7 0a1 1 0 0 0-1-1 1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1`})}),kf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`m496.616 372.639 70.012-70.012c16.899-16.9 9.942-45.771-12.836-53.092L512 236.102V96c0-17.673-14.327-32-32-32h-64V24c0-13.255-10.745-24-24-24H248c-13.255 0-24 10.745-24 24v40h-64c-17.673 0-32 14.327-32 32v140.102l-41.792 13.433c-22.753 7.313-29.754 36.173-12.836 53.092l70.012 70.012C125.828 416.287 85.587 448 24 448c-13.255 0-24 10.745-24 24v16c0 13.255 10.745 24 24 24 61.023 0 107.499-20.61 143.258-59.396C181.677 487.432 216.021 512 256 512h128c39.979 0 74.323-24.568 88.742-59.396C508.495 491.384 554.968 512 616 512c13.255 0 24-10.745 24-24v-16c0-13.255-10.745-24-24-24-60.817 0-101.542-31.001-119.384-75.361M192 128h256v87.531l-118.208-37.995a32 32 0 0 0-19.584 0L192 215.531z`})}),Af=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20.56 3.91c.59.59.59 1.54 0 2.12l-3.89 3.89 2.12 9.19-1.41 1.42-3.88-7.43L9.6 17l.36 2.47-1.07 1.06-1.76-3.18-3.19-1.77L5 14.5l2.5.37L11.37 11 3.94 7.09l1.42-1.41 9.19 2.12 3.89-3.89c.56-.58 1.56-.58 2.12 0`})}),jf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M490.74 21.411c-8.947.782-20.72 3.22-33.566 7.781-16.386 5.82-34.345 14.758-50.969 25.893l26.783 36.525c15.712-12.52 29.853-26.925 40.428-40.757 8.265-10.811 14.055-21.243 17.324-29.442m-99.265 44.026L57.609 310.24l8.28 11.291 83.062-60.906 10.643 14.516-83.063 60.906 8.28 11.29 333.865-244.806zm-18.252 92.746L203.164 282.876l13.924 7.15L375.855 173.61zm-48.602 75.316-35.775 26.234c3.899 3.046 8.821 4.856 14.213 4.856 12.809 0 23-10.191 23-23 0-2.855-.51-5.579-1.438-8.09m-255.267 7.527L21.26 260.67l25.705 35.057 65.54-48.057zm226.705 40.948v30.615h14v-30.615a41 41 0 0 1-7 .615c-2.386 0-4.723-.219-7-.615m-135.065 31.822-65.54 48.058 25.706 35.06 33.194-39.964zm-117.9 7.09-11.291 8.279 27.2 37.096 11.29-8.28zm236.965 9.703v78h46v-78zm-18 54.336-61.426 71.664h23.709l37.717-44.004zm82 0v27.66l37.716 44.004h23.71zm-192 89.664v16h94v-16zm208 0v16h94v-16z`})}),Mf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M288.625 19.625C252.95 45.54 233.16 81.95 226.655 126.938l41.095 23.687c9.348-5.82 17.33-12.415 24.22-19.656 4.383 22.757 20.633 45.578 39.874 56.686l65.5 37.813c24.465 14.124 54.433 9.697 73.812-8.907l7.97 4.593 17.312-30-7.938-4.594c6.426-26.087-4.752-54.28-29.22-68.406l-65.5-37.812c-19.76-11.41-48.63-13.89-70.78-5.53 2.947-10.077 5.108-20.605 6.688-31.47l-41.063-23.72zm12.313 174.97c-49.957 19.17-84.558 55.62-106.313 106.31l40.688 40.72c12.79-3.888 24.24-9.11 34.593-15.438-2 28.05 9.847 59.878 28.906 78.938l64.907 64.906c24.242 24.245 60.782 28.477 89.342 12.75l7.875 7.876 29.72-29.72-7.844-7.873c15.736-28.564 11.465-65.097-12.782-89.344l-64.905-64.908c-19.58-19.58-52.628-31.56-81.22-28.718 6.62-10.884 12.457-22.543 17.72-34.78l-40.688-40.72zm-182.157.655c-35.453-.015-68.357 12.318-99 35.22l12.72 47.468c11.113 2.584 21.805 3.602 32.156 3.343-13.452 19.88-18.267 48.465-12.312 70.69l20.28 75.686c7.576 28.27 32.77 46.972 60.595 47.53l2.468 9.19 34.656-9.282-2.47-9.188c23.81-14.4 36.262-43.205 28.69-71.47l-20.25-75.686c-6.117-22.822-25.445-45.77-47.783-55.875 9.534-5.22 18.83-11.36 27.94-18.156l-12.72-47.44c-8.458-1.34-16.787-2.027-24.97-2.03`})}),Nf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`m79.238 115.768-28.51 67.863h406.15l-.273-67.862h-263.83v55.605h-15v-55.605h-16.68v55.605H146.1v-55.605h-17.434v55.605h-15v-55.605H79.238zm387.834 15.96v40.66h18.688v-40.66zM56.768 198.63l20.566 32.015L28.894 406.5l101.68 7.174 21.54-97.996h115.74l14.664-80.252 174.55-3.873-.13-32.922H56.767zm206.672 37.22-11.17 61.142h-96.05l12.98-59.05 12.53-.278-2.224 35.5 14.262 13.576 1.003-33.65 24.69-16.264 43.98-.976z`})}),Pf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M20.24 6.76c-1.84-1.85-4.59-2.23-6.82-1.17l-.96-.96a.996.996 0 0 0-1.41 0l-.08.09C10.83 3.75 10 3 9 3c-1.1 0-2 .9-2 2 0 .09 0 .18.03.26C6.42 5.61 6 6.25 6 7c0 .46.16.87.42 1.21A.97.97 0 0 0 6 9v1.35c-2.33.82-4 3.04-4 5.65 0 3.31 2.69 6 6 6s6-2.69 6-6a5.99 5.99 0 0 0-4-5.65V9a.97.97 0 0 0-.42-.79c.26-.34.42-.75.42-1.21 0-.09 0-.18-.03-.26.18-.1.33-.24.46-.36C11.36 6.88 12 7.86 12 9v.08c.13.07.25.17.38.25.19-.42.45-.83.79-1.16a4.01 4.01 0 0 1 5.66 0 4.01 4.01 0 0 1 0 5.66c-.8.8-1.83 1.17-2.9 1.17.07.32.07.66.07 1s-.03.67-.07 1c1.57 0 3.12-.57 4.31-1.76a5.98 5.98 0 0 0 0-8.48M9 4c.55 0 1 .45 1 1 0 .33-.17.61-.42.79C9.22 5.31 8.65 5 8 5c0-.55.45-1 1-1M7.42 6.21c.36.48.93.79 1.58.79 0 .55-.45 1-1 1s-1-.45-1-1c0-.33.17-.61.42-.79M12 16c0 2.21-1.79 4-4 4s-4-1.79-4-4 1.79-4 4-4 4 1.79 4 4`})}),Ff=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 512 512`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M384 32h-64a16 16 0 0 0-16-16h-96a16 16 0 0 0-16 16h-64c-16 0-32 16-32 32v288c0 23.92 160 80 160 80s160-56.74 160-80V64c0-16-16-32-32-32M256 352a48 48 0 1 1 48-48 48 48 0 0 1-48 48m112-152a8 8 0 0 1-8 8H152a8 8 0 0 1-8-8v-80a8 8 0 0 1 8-8h208a8 8 0 0 1 8 8Z`}),(0,u.jsx)(`path`,{d:`m314 432 15.32 16H182.58L198 432l-32-13-76.62 77h45.2l16-16h210.74l16 16h45.3l-76.36-77.75z`})]}),If=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M4 4a2 2 0 0 0-2 2v9a1 1 0 0 0 1 1h.535a3.5 3.5 0 1 0 6.93 0h3.07a3.5 3.5 0 1 0 6.93 0H21a1 1 0 0 0 1-1v-4a1 1 0 0 0-.106-.447l-2-4A1 1 0 0 0 19 6h-5a2 2 0 0 0-2-2zm14.192 11.59.016.02a1.5 1.5 0 1 1-.016-.021Zm-10 0 .016.02a1.5 1.5 0 1 1-.016-.021Zm5.806-5.572v-2.02h4.396l1 2.02z`,clipRule:`evenodd`})}),Lf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 64 64`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M25.755 34.964h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451m5.365 0h-2.683a.45.45 0 0 0-.447.451v.901c0 .248.2.448.447.448h2.683c.245 0 .447-.2.447-.448v-.901a.45.45 0 0 0-.447-.451M20 29.04h1.327v2.722H20zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.366 0h1.326v2.722h-1.326zm3.363 0h1.328v2.722h-1.328zm3.367 0h1.326v2.722h-1.326zm3.363 0h1.327v2.722h-1.327zm3.365 0h1.327v2.722h-1.327zM13.604 13.073a7 7 0 0 1-.882-.88l-.348-.431-.542.09c-.929.157-1.818.15-2.7-.121a5.6 5.6 0 0 1-1.315-.605c-.443-.262-.856-.597-1.288-.984.056.591.309 1.139.634 1.649.344.495.788.954 1.332 1.284.932.594 2.081.771 3.149.66.303.299.613.534.967.759.487.308 1.03.534 1.597.663 1.138.254 2.363.009 3.186-.686-1.073-.027-1.963-.237-2.722-.668a6.4 6.4 0 0 1-1.068-.73m11.543 3.474a2.9 2.9 0 0 1-.761-.484 3.2 3.2 0 0 1-.53-.604 3.7 3.7 0 0 1-.361-.659l-.288-.771-.782.173c-.75.165-1.463.257-2.158.16-.693-.091-1.417-.401-2.113-1.055-.023.983.674 1.954 1.638 2.434.744.37 1.566.459 2.338.385.123.178.258.339.416.503.332.329.744.596 1.191.741.907.298 1.848.084 2.465-.458-.4-.122-.752-.216-1.055-.365`}),(0,u.jsx)(`path`,{d:`M56.561 51.763c.12-3.085.999-4.501 2.327-6.646l.32-.517c2.471-4.02 3.308-7.156 2.486-9.325-.564-1.493-1.703-1.989-2.018-2.101-1.518-.654-3.778-1.002-6.539-1.002-1.209 0-3.064.078-5.445.402v-5.809h-3.649v-2.674h-8.006l-2.777-5.6c-.109-.047-.223-.081-.334-.123a3.2 3.2 0 0 0-1.767-2.534 5.03 5.03 0 0 0-3.091-4.452 5.83 5.83 0 0 0-5.444-3.752q-.665.001-1.31.152a6.72 6.72 0 0 0-4.742-2.177C15.187 3.391 12.739 2 10.106 2 5.892 2 2.463 5.456 2.463 9.704c0 4.246 3.428 7.702 7.643 7.702a7.5 7.5 0 0 0 1.525-.157 6.66 6.66 0 0 0 4.734 1.959 6.66 6.66 0 0 0 3.058-.739c.938.62 2.03.958 3.168.965a4.9 4.9 0 0 0 2.449 1.433l-.402 3.227H20.88l-4.46 1.53v2.87l-2.737 1.257v5.185h2.683v2.225l-6.259 3.153v6.14c-3.893 1.11-6.329 1.449-6.378 1.455l-.803.106v3.753H2V62h59.077V51.767H56.56zM23.21 17.979c-.193.026-.385.06-.585.06a4.44 4.44 0 0 1-3.101-1.268 5.32 5.32 0 0 1-3.159 1.042 5.34 5.34 0 0 1-4.264-2.134 6.2 6.2 0 0 1-1.995.332c-3.457 0-6.258-2.823-6.258-6.307s2.801-6.309 6.258-6.309c2.51 0 4.668 1.491 5.666 3.64a5.35 5.35 0 0 1 5.059 2.376 4.4 4.4 0 0 1 1.794-.384c2.113 0 3.872 1.481 4.34 3.467a3.594 3.594 0 0 1 2.813 3.517c0 .318-.053.62-.131.914.045-.003.087-.013.131-.013.711 0 1.318.421 1.607 1.025a9 9 0 0 0-1.607-.153c-1.414 0-3.281.341-4.471.932l-.094.755a3.6 3.6 0 0 1-2.003-1.492m-5.056 9.717h28.615v5.018a47 47 0 0 0-2.218.391H18.154zm15.234 8.781a73 73 0 0 0-7.457 3.506 82 82 0 0 1-5.094 2.521v-8.469h19.787a63 63 0 0 0-3.764 1.151.44.44 0 0 0-.375-.222h-2.683a.45.45 0 0 0-.446.451v.901q.001.086.032.161M17.26 40.261c0-.248.184-.535.405-.642l1.873-.88c.223-.106.404.011.404.259v2.043a.7.7 0 0 1-.418.608l-1.845.694c-.231.087-.42-.045-.42-.293zm-3.13 1.471c0-.248.184-.537.406-.642l1.426-.67c.222-.105.404.012.404.26v1.706a.7.7 0 0 1-.418.608l-1.397.526c-.23.086-.42-.046-.42-.294v-1.494zM11 43.202c0-.248.184-.535.406-.64l1.426-.671c.222-.105.404.012.404.26v1.414a.7.7 0 0 1-.418.608l-1.397.525c-.23.086-.42-.045-.42-.293v-1.203zm-6.229 6.424c2.654-.458 11.47-2.302 22.031-8.003 12.682-6.85 22.642-7.589 26.336-7.589 2.496 0 4.57.307 5.84.864l.107.038c.005.002.59.22.885 1.001.096.252.174.612.178 1.094a6.5 6.5 0 0 0-1.75-1.079c-5.538-1.563-18.201-.427-32.242 7.156C16.114 48.53 7.52 49.816 4.771 50.103zm49.813 6.507c-3.188.634-16.266 3.075-28.256 3.075-6.394 0-11.487-.687-15.141-2.04-1.406-.521-3.584-1.54-6.416-4.384v-1.779c2.787-.285 11.582-1.581 21.806-7.102 13.619-7.354 26.186-8.55 31.494-7.112.564.229 1.369.665 1.961 1.384-.238 1.25-.895 3.008-2.395 5.446l-.314.511c-1.379 2.223-2.468 3.98-2.606 7.546a98 98 0 0 0-.133 4.455`})]}),Rf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 32 32`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M28.457 3.54a5.26 5.26 0 0 0-7.44 0L18.04 6.518a5.27 5.27 0 0 0-1.301 5.293l2.484-2.484c.329-.329.722-.55 1.14-.666l2.886-2.887a2.104 2.104 0 1 1 2.976 2.977l-2.585 2.585a2.58 2.58 0 0 1-.753 1.654l-2.365 2.364a5.26 5.26 0 0 0 4.959-1.393l2.976-2.977a5.26 5.26 0 0 0 0-7.442`}),(0,u.jsx)(`path`,{d:`m22.18 12.282-3.927 3.926-.003.002c-.47.469-1.355.343-1.974-.28-.62-.623-.74-1.507-.27-1.976l.038-.035 3.886-3.886a1.59 1.59 0 0 1 2.25 0 1.59 1.59 0 0 1 0 2.249M11.782 16.73a5.26 5.26 0 0 0-5.266 1.31L3.54 21.018a5.263 5.263 0 0 0 7.44 7.442l2.977-2.976a5.26 5.26 0 0 0 1.388-4.989L12.85 22.99a2.58 2.58 0 0 1-1.612.747l-2.49 2.49a2.11 2.11 0 0 1-2.976 0 2.11 2.11 0 0 1 0-2.977l2.737-2.737a2.6 2.6 0 0 1 .678-1.186z`}),(0,u.jsx)(`path`,{d:`M9.894 20.034a1.59 1.59 0 0 0 0 2.249 1.595 1.595 0 0 0 2.249 0l3.231-3.232.052-.047c.471-.469.35-1.354-.27-1.977-.619-.623-1.503-.748-1.974-.28l-.042.045-.003-.002zM12.01 4.762a1 1 0 1 0-1.94.487l.96 2.964a1 1 0 1 0 1.94-.487zm-7.717.487a.996.996 0 0 1 1.414 0l4 4.02a1.01 1.01 0 0 1 0 1.421.996.996 0 0 1-1.414 0l-4-4.02a1.01 1.01 0 0 1 0-1.421m-.018 5.774a1.006 1.006 0 0 0-.55 1.933l3.5 1.005a1.006 1.006 0 0 0 .55-1.933zm24.686 9.263a1 1 0 0 1-1.236.69l-3.5-1.004a1.006 1.006 0 0 1 .55-1.933l3.5 1.005c.53.152.838.709.686 1.242m-2.668 6.465a.996.996 0 0 0 1.414 0 1.01 1.01 0 0 0 0-1.421l-4-4.02a.996.996 0 0 0-1.414 0 1.01 1.01 0 0 0 0 1.42zm-5.09 1.219a1 1 0 0 1-1.213-.732l-.96-2.964a1 1 0 1 1 1.94-.488l.96 2.965a1.005 1.005 0 0 1-.727 1.219`})]}),zf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:1.5,children:[(0,u.jsx)(`path`,{d:`M20 13V8h-5`}),(0,u.jsx)(`path`,{d:`m20 8-5 5c-.883.883-1.324 1.324-1.865 1.373q-.135.012-.27 0c-.541-.05-.982-.49-1.865-1.373s-1.324-1.324-1.865-1.373a1.5 1.5 0 0 0-.27 0c-.541.05-.982.49-1.865 1.373l-3 3`})]})}),Bf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M21 13v-2h-2V5h2V3H3v2h2v6H3v2h2v6H3v2h18v-2h-2v-6zm-9 3c-1.66 0-3-1.32-3-2.95 0-1.3.52-1.67 3-4.55 2.47 2.86 3 3.24 3 4.55 0 1.63-1.34 2.95-3 2.95`})}),Vf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M3.005 3.003h18a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1h-18a1 1 0 0 1-1-1v-16a1 1 0 0 1 1-1m9 6h-4v2h9l-5-5zm-5 4 5 5v-3h4v-2z`})}),Hf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,children:[(0,u.jsx)(`path`,{d:`m12.593 23.258-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z`}),(0,u.jsx)(`path`,{fill:`currentColor`,d:`M6.857 2.445C8 3.278 8.89 4.415 9.65 5.503l.442.644.417.615a1.504 1.504 0 0 1-.256 1.986l-1.951 1.449a.48.48 0 0 0-.142.616c.442.803 1.228 1.999 2.128 2.899s2.153 1.738 3.012 2.23a.483.483 0 0 0 .644-.162l1.27-1.933a1.503 1.503 0 0 1 2.056-.332l.663.459c1.239.86 2.57 1.837 3.588 3.14a1.47 1.47 0 0 1 .189 1.484c-.837 1.953-2.955 3.616-5.158 3.535l-.3-.017-.233-.02-.258-.03-.281-.038-.305-.05-.16-.03-.336-.072-.176-.04-.366-.094-.385-.11-.402-.13c-1.846-.626-4.189-1.856-6.593-4.26s-3.633-4.746-4.259-6.592l-.13-.402-.11-.385-.094-.366-.078-.346a12 12 0 0 1-.063-.326l-.05-.305-.04-.281-.029-.258-.02-.233-.016-.3c-.081-2.196 1.6-4.329 3.544-5.162a1.47 1.47 0 0 1 1.445.159m8.135 3.595.116.013a3.5 3.5 0 0 1 2.858 2.96 1 1 0 0 1-1.958.393l-.023-.115a1.5 1.5 0 0 0-1.07-1.233l-.155-.035a1 1 0 0 1 .232-1.983M15 3a6 6 0 0 1 6 6 1 1 0 0 1-1.993.117L19 9a4 4 0 0 0-3.738-3.991L15 5a1 1 0 1 1 0-2`})]})}),Uf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M18.5 10H22v2h-3.5zm.05-1.17 1.5-1 1.5-1L21 6l-.55-.83-1.5 1-1.5 1L18 8zm0 4.34L18 14l-.55.83 1.5 1 1.5 1L21 16l.55-.83-1.5-1zM15 8.18V4c0-.37-.2-.71-.53-.88s-.72-.15-1.03.05L7.69 7h-1.7c-2.21 0-4 1.79-4 4 0 1.52.86 2.82 2.1 3.5l1.94 6.77 1.92-.55-1.64-5.73h1.37l5.75 3.83c.17.11.36.17.55.17.16 0 .32-.04.47-.12.33-.17.53-.51.53-.88v-4.18c1.16-.41 2-1.51 2-2.82s-.84-2.4-2-2.82Zm-2 7.95-4.45-2.96A1 1 0 0 0 8 13H6c-1.1 0-2-.9-2-2s.9-2 2-2h2c.2 0 .39-.06.55-.17L13 5.87z`})}),Wf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M4 18v2h4v-2zm0-4v2h10v-2zm6 4v2h4v-2zm6-4v2h4v-2zm0 4v2h4v-2zM2 22V8l5 4V8l5 4V8l5 4 1-10h3l1 10v10z`})}),Gf=[{value:`announcement`,label:`announcement`,icon:Uf},{value:`conference`,label:`conference`,icon:Tf},{value:`conversation`,label:`conversation`,icon:Hf},{value:`policy`,label:`policy`,icon:Sf},{value:`border`,label:`border`,icon:xf},{value:`report`,label:`report`,icon:Cf},{value:`election`,label:`election`,icon:bf},{value:`trade`,label:`trade`,icon:Vf},{value:`currency`,label:`currency`,icon:yf},{value:`exchange`,label:`exchange`,icon:zf},{value:`acquisition`,label:`acquisition`,icon:vf},{value:`oil`,label:`oil`,icon:Bf},{value:`commodity`,label:`commodity`,icon:_f},{value:`manufacturing`,label:`manufacturing`,icon:Wf},{value:`supplychain-risk`,label:`supplychain-risk`,icon:Rf},{value:`electricity`,label:`electricity`,icon:lf},{value:`harbor`,label:`harbor`,icon:wf},{value:`ship`,label:`ship`,icon:Lf},{value:`truck`,label:`truck`,icon:If},{value:`train`,label:`train`,icon:Ff},{value:`crime`,label:`crime`,icon:Pf},{value:`cyber`,label:`cyber`,icon:gf},{value:`shot`,label:`shot`,icon:Nf},{value:`evacuation`,label:`evacuation`,icon:hf},{value:`civil-unrest`,label:`civil-unrest`,icon:mf},{value:`defense`,label:`defense`,icon:pf},{value:`medical`,label:`medical`,icon:ff},{value:`bomb`,label:`bomb`,icon:Mf},{value:`missile`,label:`missile`,icon:jf},{value:`plane`,label:`plane`,icon:Af},{value:`drone`,label:`drone`,icon:df},{value:`naval`,label:`naval`,icon:kf},{value:`tank`,label:`tank`,icon:Of},{value:`infantry`,label:`infantry`,icon:Df},{value:`intelligence`,label:`intelligence`,icon:Ef},{value:`satellite`,label:`satellite`,icon:uf}],Kf=({event:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=Gf.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Bd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},qf=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=Gf.map(e=>({...e,label:i(`event.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(Kf,{event:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},Jf=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},Yf=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(qf,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(Jf,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Xf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 14 14`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M6.58.39a.5.5 0 0 0-.5.5v1.62H4.1c-.188-.49-.627-.757-1.272-.757-.88 0-1.375.495-1.375 1.375s.495 1.376 1.375 1.376c.64 0 1.077-.263 1.267-.745H6.08v.969H4.912a.625.625 0 0 0 0 1.25h1.167v.632H2.731c-.193-.474-.627-.732-1.262-.732-.88 0-1.375.495-1.375 1.375S.589 8.63 1.469 8.63c.651 0 1.091-.271 1.276-.769H6.08v2.851h-.817V9.297a.625.625 0 0 0-.625-.625H3.52a.625.625 0 1 0 0 1.25h.492v.79h-.72c-.19-.484-.627-.748-1.268-.748-.88 0-1.376.495-1.376 1.376s.495 1.375 1.376 1.375c.644 0 1.082-.266 1.27-.754H6.08v1.148a.5.5 0 0 0 .5.5h3.75a2 2 0 0 0 2-2V9.848q.16-.013.31-.045a1.9 1.9 0 0 0 .709-.32c.514-.36.646-.998.505-1.516-.428-1.566-.937-3.207-1.78-4.557a8 8 0 0 0-.383-.56C10.585 1.378 8.987.39 6.58.39m4.13 6.11a.625.625 0 0 0-1.25 0v.165a.625.625 0 0 0 1.25 0z`,clipRule:`evenodd`})}),Zf=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M17.504 7.501H7.5v10.003h10.003z`}),(0,u.jsx)(`path`,{d:`M21.505 5.5v-2h-2v-2h-2.001v2h-2v-2h-2.001v2h-2v-2H9.501v2h-2v-2H5.5v2h-2v2h-2v2.001h2v2h-2v2.001h2v2h-2v2.001h2v2h-2v2.001h2v2h2v2.001h2.001v-2h2v2h2.001v-2h2v2h2.001v-2h2v2h2.001v-2h2v-2h2.001v-2.001h-2v-2h2v-2.001h-2v-2h2V9.501h-2v-2h2V5.5zm-2 14.004H5.5V5.501h14.003z`})]}),Qf=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M5.998 3a7 7 0 0 1 6.913 5.895A6.48 6.48 0 0 1 17.498 7h4.5v2.5a6.5 6.5 0 0 1-6.5 6.5h-2.5v5h-2v-8h-2a7 7 0 0 1-7-7V3zm14 6h-2.5a4.5 4.5 0 0 0-4.5 4.5v.5h2.5a4.5 4.5 0 0 0 4.5-4.5zm-14-4h-2v1a5 5 0 0 0 5 5h2v-1a5 5 0 0 0-5-5`})}),$f=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 16 16`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M6.002 4a1.998 1.998 0 1 1 3.996 0 1.998 1.998 0 0 1-3.996 0M8 3.002a.998.998 0 1 0 0 1.996.998.998 0 0 0 0-1.996M11 4.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m1.5-.5a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1m-9-1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M3 4.5a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0M4.268 7A2 2 0 0 0 4 8H2v2.5a1.5 1.5 0 0 0 2.096 1.377c.074.331.19.647.34.942A2.5 2.5 0 0 1 1 10.5V8a1 1 0 0 1 1-1zm7.296 5.819A2.5 2.5 0 0 0 15 10.5V8a1 1 0 0 0-1-1h-2.268c.17.294.268.635.268 1h2v2.5a1.5 1.5 0 0 1-2.096 1.377 4 4 0 0 1-.34.942M6 6.999a1 1 0 0 0-1 1V11a3 3 0 1 0 6 0V8a1 1 0 0 0-1-1zm0 1h4V11a2 2 0 1 1-4 0z`})}),ep=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,children:[(0,u.jsx)(`path`,{d:`m12.593 23.258-.011.002-.071.035-.02.004-.014-.004-.071-.035q-.016-.005-.024.005l-.004.01-.017.428.005.02.01.013.104.074.015.004.012-.004.104-.074.012-.016.004-.017-.017-.427q-.004-.016-.017-.018m.265-.113-.013.002-.185.093-.01.01-.003.011.018.43.005.012.008.007.201.093q.019.005.029-.008l.004-.014-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014-.034.614q.001.018.017.024l.015-.002.201-.093.01-.008.004-.011.017-.43-.003-.012-.01-.01z`}),(0,u.jsx)(`path`,{fill:`currentColor`,d:`M21 7a1 1 0 0 1 .117 1.993L21 9v10a1 1 0 0 1 .117 1.993L21 21H3a1 1 0 0 1-.117-1.993L3 19V9a1 1 0 0 1-.117-1.993L3 7zm-2 2H5v10h2v-7a1 1 0 1 1 2 0v7h2v-7a1 1 0 1 1 2 0v7h2v-7a1 1 0 1 1 2 0v7h2zm-1-5a1 1 0 1 1 0 2H6a1 1 0 0 1 0-2z`})]})}),tp=[{value:`company`,label:`company`,icon:Rd},{value:`government`,label:`government`,icon:ep},{value:`military`,label:`military`,icon:$f},{value:`manufacturing`,label:`manufacturing`,icon:Wf},{value:`agriculture`,label:`agriculture`,icon:Qf},{value:`semi-conductor`,label:`semi-conductor`,icon:Zf},{value:`technology`,label:`technology`,icon:Xf}],np=({organization:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=tp.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Rd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},rp=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=tp.map(e=>({...e,label:i(`organization.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(np,{organization:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},ip=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},ap=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(rp,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(ip,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),op=[{value:`professional`,label:`professional`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M12 3c2.21 0 4 1.79 4 4s-1.79 4-4 4-4-1.79-4-4 1.79-4 4-4m4 10.54c0 1.06-.28 3.53-2.19 6.29L13 15l.94-1.88c-.62-.07-1.27-.12-1.94-.12s-1.32.05-1.94.12L11 15l-.81 4.83C8.28 17.07 8 14.6 8 13.54c-2.39.7-4 1.96-4 3.46v4h16v-4c0-1.5-1.6-2.76-4-3.46`})})},{value:`gov-official`,label:`gov-official`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M16 14.5c0 1.1-.3 3.5-2.2 6.3L13 16l.9-1.9c-.6 0-1.2-.1-1.9-.1s-1.3.1-1.9.1L11 16l-.8 4.8C8.3 18.1 8 15.6 8 14.5c-2.4.7-4 2-4 3.5v4h16v-4c0-1.5-1.6-2.8-4-3.5M6 4.5C6 3.1 8.7 2 12 2s6 1.1 6 2.5c0 .4-.2.7-.5 1-.9-.9-3-1.5-5.5-1.5s-4.6.6-5.5 1.5c-.3-.3-.5-.6-.5-1m9.9 2.9c.1.2.1.4.1.6 0 2.2-1.8 4-4 4s-4-1.8-4-4c0-.2 0-.4.1-.6 1 .4 2.4.6 3.9.6s2.9-.2 3.9-.6m.7-1.3c-1.1.5-2.7.9-4.6.9s-3.5-.4-4.6-.9C8.1 5.5 9.8 5 12 5s3.9.5 4.6 1.1`})})},{value:`school-personel`,label:`school-personel`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M16 8c0 2.21-1.79 4-4 4s-4-1.79-4-4l.11-.94L5 5.5 12 2l7 3.5v5h-1V6l-2.11 1.06zm-4 6c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4`})})}],sp=({person:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=op.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Jd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},cp=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=op.map(e=>({...e,label:i(`person.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(sp,{person:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},lp=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},up=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(cp,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(lp,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),dp=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M14.25 2.5a.25.25 0 0 0-.25-.25H7A2.75 2.75 0 0 0 4.25 5v14A2.75 2.75 0 0 0 7 21.75h10A2.75 2.75 0 0 0 19.75 19V9.147a.25.25 0 0 0-.25-.25H15a.75.75 0 0 1-.75-.75zm.75 9.75a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5zm0 4a.75.75 0 0 1 0 1.5H9a.75.75 0 0 1 0-1.5z`,clipRule:`evenodd`}),(0,u.jsx)(`path`,{d:`M15.75 2.824c0-.184.193-.301.336-.186q.182.147.323.342l3.013 4.197c.068.096-.006.22-.124.22H16a.25.25 0 0 1-.25-.25z`})]}),fp=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{d:`M8 6h9v2H8z`}),(0,u.jsx)(`path`,{d:`M20 2H6C4.35 2 3 3.35 3 5v14c0 1.65 1.35 3 3 3h15v-2H6c-.55 0-1-.45-1-1s.45-1 1-1h14c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1m-6 14H6c-.35 0-.69.07-1 .18V5c0-.55.45-1 1-1h13v12z`})]}),pp=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeMiterlimit:10,strokeWidth:.5,d:`M19.2 7.3c-1.9-.4-3.3-2-3.4-3.9v-.3h-3.1v12.5c0 1.5-1.2 2.6-2.6 2.6-.8 0-1.6-.4-2.1-1h0c-1-1.2-.8-2.9.4-3.8.6-.4 1.1-.4 1.8-.4V9.8c-3.2-.4-5.5 1.8-6 4.9-.2 1.8.3 3.5 1.6 4.8 2.2 2.3 5.9 2.3 8.2.1 1.1-1.1 1.7-2.6 1.7-4.1V9.2c1.3.9 2.8 1.4 4.4 1.4V7.4c-.3 0-.6 0-.9-.1`})}),mp=({size:e=24,...t})=>(0,u.jsxs)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:[(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M14 7a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1zm3 2h-2v6h2z`,clipRule:`evenodd`}),(0,u.jsx)(`path`,{d:`M6 7a1 1 0 0 0 0 2h4a1 1 0 1 0 0-2zm0 4a1 1 0 1 0 0 2h4a1 1 0 1 0 0-2zm-1 5a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1`}),(0,u.jsx)(`path`,{fillRule:`evenodd`,d:`M4 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3h16a3 3 0 0 0 3-3V6a3 3 0 0 0-3-3zm16 2H4a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1`,clipRule:`evenodd`})]}),hp=({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsxs)(`g`,{fill:`none`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeMiterlimit:10,children:[(0,u.jsx)(`path`,{d:`M2.5 23.5h19l2-2v-20h-19v20zm0 0-2-2v-13h2v11`}),(0,u.jsx)(`path`,{d:`M13.5 4.5h-6v7h6zm3 1h4m-4 3h4m-4 3h4m-13 3h13m-13 3h13m-13 3h13`})]})}),gp=[{value:`news`,label:`news`,icon:hp},{value:`website`,label:`website`,icon:mp},{value:`social-media`,label:`social-media`,icon:pp},{value:`book`,label:`book`,icon:fp},{value:`paper`,label:`paper`,icon:dp}],_p=({source:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#ababab`),i=gp.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Hd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},vp=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=gp.map(e=>({...e,label:i(`source.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(_p,{source:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},yp=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#ababab`,`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#7950f2`],error:n})},bp=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(vp,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(yp,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),xp=[{value:`company`,label:`company`,icon:Rd},{value:`government`,label:`government`,icon:ep},{value:`news`,label:`news`,icon:hp},{value:`forum`,label:`forum`,icon:({size:e=24,...t})=>(0,u.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,fill:`currentColor`,viewBox:`0 0 24 24`,width:e,height:e,...t,children:(0,u.jsx)(`path`,{d:`M17 12V3a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v14l4-4h10a1 1 0 0 0 1-1m4-6h-2v9H6v2a1 1 0 0 0 1 1h11l4 4V7a1 1 0 0 0-1-1`})})}],Sp=({website:e,size:t=`md`,...n})=>{let r=String((e.attributes||{}).icon_color||`#0089ff`),i=xp.find(t=>t.value===e.type);return(0,u.jsx)(Qu,{variant:`filled`,size:t,radius:`xl`,color:r,children:(0,u.jsx)(i&&i.icon?i.icon:Wd,{style:{width:`70%`,height:`70%`,color:`white`},...n})})},Cp=({data:e,value:t,onChange:n,error:r})=>{let{t:i}=Ad(),a=xp.map(e=>({...e,label:i(`website.type.${e.label}`)}));return(0,u.jsx)(Gu,{leftSection:(0,u.jsx)(Sp,{website:e}),value:t,placeholder:i(`input.icon`),onChange:n,data:a,error:r})},wp=({value:e,onChange:t,error:n})=>{let{t:r}=Ad();return(0,u.jsx)(_u,{value:e,placeholder:r(`input.color`),onChange:t,swatches:[`#0089ff`,`#ff0000`,`#00ba21`,`#c18c17`,`#be4bdb`,`#ababab`,`#7950f2`],error:n})},Tp=({value:e,onChange:t})=>(0,u.jsxs)(Q,{children:[(0,u.jsx)(Cp,{data:e,value:e.type,onChange:n=>{t({...e,type:n||void 0})}}),(0,u.jsx)(wp,{value:e.attributes?.icon_color,onChange:n=>{t({...e,attributes:{...e.attributes||{},icon_color:n}})}})]}),Ep=({event:e,background:t,withBorder:n=!0,action:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{p:`xs`,bg:t,withBorder:n,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.title||i(`event.title`)}),e.happened_at&&(0,u.jsx)(wc,{c:`dimmed`,children:new Date(e.happened_at*1e3).toLocaleString()}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`event.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),r]})})},Dp=({person:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`person.name`)}),e.role&&(0,u.jsx)(wc,{c:`dimmed`,children:e.role||i(`person.role`)}),e.aliases&&(0,u.jsxs)(wc,{truncate:`end`,children:[i(`person.aliases`),`: `,e.aliases.join(`, `)]}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Op=({organization:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`organization.name`)}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},kp=({website:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.title||i(`website.title`)}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`website.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},Ap=({source:e,withBorder:t=!0,action:n,background:r})=>{let{t:i}=Ad();return(0,u.jsx)(Vo,{withBorder:t,p:`xs`,bg:r,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`source.name`)}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`source.description`)})}),e.tags&&(0,u.jsx)(Q,{gap:`xs`,mt:`xs`,children:e.tags.map(e=>(0,u.jsx)(Dl,{children:e},e))})]}),n]})})},jp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=(e,t,n)=>{typeof n==`string`||n instanceof Blob?e.append(t,n):n instanceof Date?e.append(t,n.toISOString()):e.append(t,JSON.stringify(n))},n=(e,t,n)=>{typeof n==`string`?e.append(t,n):e.append(t,JSON.stringify(n))};e.formDataBodySerializer={bodySerializer:e=>{let n=new FormData;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>t(n,e,r)):t(n,e,r))}),n}},e.jsonBodySerializer={bodySerializer:e=>JSON.stringify(e,(e,t)=>typeof t==`bigint`?t.toString():t)},e.urlSearchParamsBodySerializer={bodySerializer:e=>{let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{r!=null&&(Array.isArray(r)?r.forEach(r=>n(t,e,r)):n(t,e,r))}),t.toString()}}})),Mp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.buildClientParams=void 0;var t=Object.entries({$body_:`body`,$headers_:`headers`,$path_:`path`,$query_:`query`}),n=(e,t)=>{t||=new Map;for(let r of e)`in`in r?r.key&&t.set(r.key,{in:r.in,map:r.map}):`key`in r?t.set(r.key,{map:r.map}):r.args&&n(r.args,t);return t},r=e=>{for(let[t,n]of Object.entries(e))n&&typeof n==`object`&&!Array.isArray(n)&&!Object.keys(n).length&&delete e[t]};e.buildClientParams=(e,i)=>{let a={body:{},headers:{},path:{},query:{}},o=n(i),s;for(let[n,r]of e.entries())if(i[n]&&(s=i[n]),s)if(`in`in s)if(s.key){let e=o.get(s.key),t=e.map||s.key;e.in&&(a[e.in][t]=r)}else a.body=r;else for(let[e,n]of Object.entries(r??{})){let r=o.get(e);if(r)if(r.in){let t=r.map||e;a[r.in][t]=n}else a[r.map]=n;else{let r=t.find(([t])=>e.startsWith(t));if(r){let[t,i]=r;a[i][e.slice(t.length)]=n}else if(`allowExtra`in s&&s.allowExtra){for(let[t,r]of Object.entries(s.allowExtra))if(r){a[t][e]=n;break}}}}return r(a),a}})),Np=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeQueryKeyValue=e.stringifyToJsonValue=e.queryKeyJsonReplacer=void 0,e.queryKeyJsonReplacer=(e,t)=>{if(!(t===void 0||typeof t==`function`||typeof t==`symbol`))return typeof t==`bigint`?t.toString():t instanceof Date?t.toISOString():t},e.stringifyToJsonValue=t=>{try{let n=JSON.stringify(t,e.queryKeyJsonReplacer);return n===void 0?void 0:JSON.parse(n)}catch{return}};var t=e=>{if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===Object.prototype||t===null},n=e=>{let t=Array.from(e.entries()).sort(([e],[t])=>e.localeCompare(t)),n={};for(let[e,r]of t){let t=n[e];if(t===void 0){n[e]=r;continue}Array.isArray(t)?t.push(r):n[e]=[t,r]}return n};e.serializeQueryKeyValue=r=>{if(r===null)return null;if(typeof r==`string`||typeof r==`number`||typeof r==`boolean`)return r;if(!(r===void 0||typeof r==`function`||typeof r==`symbol`)){if(typeof r==`bigint`)return r.toString();if(r instanceof Date)return r.toISOString();if(Array.isArray(r))return(0,e.stringifyToJsonValue)(r);if(typeof URLSearchParams<`u`&&r instanceof URLSearchParams)return n(r);if(t(r))return(0,e.stringifyToJsonValue)(r)}}})),Pp=o((e=>{var t=e&&e.__await||function(e){return this instanceof t?(this.v=e,this):new t(e)},n=e&&e.__asyncGenerator||function(e,n,r){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var i=r.apply(e,n||[]),a,o=[];return a=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),c(`next`),c(`throw`),c(`return`,s),a[Symbol.asyncIterator]=function(){return this},a;function s(e){return function(t){return Promise.resolve(t).then(e,f)}}function c(e,t){i[e]&&(a[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||l(e,t)})},t&&(a[e]=t(a[e])))}function l(e,t){try{u(i[e](t))}catch(e){p(o[0][3],e)}}function u(e){e.value instanceof t?Promise.resolve(e.value.v).then(d,f):p(o[0][2],e)}function d(e){l(`next`,e)}function f(e){l(`throw`,e)}function p(e,t){e(t),o.shift(),o.length&&l(o[0][0],o[0][1])}},r=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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};Object.defineProperty(e,`__esModule`,{value:!0}),e.createSseClient=void 0,e.createSseClient=e=>{var{onRequest:i,onSseError:a,onSseEvent:o,responseTransformer:s,responseValidator:c,sseDefaultRetryDelay:l,sseMaxRetryAttempts:u,sseMaxRetryDelay:d,sseSleepFn:f,url:p}=e,m=r(e,[`onRequest`,`onSseError`,`onSseEvent`,`responseTransformer`,`responseValidator`,`sseDefaultRetryDelay`,`sseMaxRetryAttempts`,`sseMaxRetryDelay`,`sseSleepFn`,`url`]);let h,g=f??(e=>new Promise(t=>setTimeout(t,e)));return{stream:function(){return n(this,arguments,function*(){let e=l??3e3,n=0,r=m.signal??new AbortController().signal;for(;!r.aborted;){n++;let l=m.headers instanceof Headers?m.headers:new Headers(m.headers);h!==void 0&&l.set(`Last-Event-ID`,h);try{let n=Object.assign(Object.assign({redirect:`follow`},m),{body:m.serializedBody,headers:l,signal:r}),a=new Request(p,n);i&&(a=yield t(i(p,n)));let u=yield t((m.fetch??globalThis.fetch)(a));if(!u.ok)throw Error(`SSE failed: ${u.status} ${u.statusText}`);if(!u.body)throw Error(`No body in SSE response`);let d=u.body.pipeThrough(new TextDecoderStream).getReader(),f=``,g=()=>{try{d.cancel()}catch{}};r.addEventListener(`abort`,g);try{for(;;){let{done:n,value:r}=yield t(d.read());if(n)break;f+=r,f=f.replace(/\r\n/g,`
13
13
  `).replace(/\r/g,`
14
14
  `);let i=f.split(`
15
15
 
16
16
  `);f=i.pop()??``;for(let n of i){let r=n.split(`
17
17
  `),i=[],a;for(let t of r)if(t.startsWith(`data:`))i.push(t.replace(/^data:\s*/,``));else if(t.startsWith(`event:`))a=t.replace(/^event:\s*/,``);else if(t.startsWith(`id:`))h=t.replace(/^id:\s*/,``);else if(t.startsWith(`retry:`)){let n=Number.parseInt(t.replace(/^retry:\s*/,``),10);Number.isNaN(n)||(e=n)}let l,u=!1;if(i.length){let e=i.join(`
18
- `);try{l=JSON.parse(e),u=!0}catch{l=e}}u&&(c&&(yield t(c(l))),s&&(l=yield t(s(l)))),o?.({data:l,event:a,id:h,retry:e}),i.length&&(yield yield t(l))}}}finally{r.removeEventListener(`abort`,g),d.releaseLock()}break}catch(r){if(a?.(r),u!==void 0&&n>=u)break;yield t(g(Math.min(e*2**(n-1),d??3e4)))}}})}()}}})),ep=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeObjectParam=e.serializePrimitiveParam=e.serializeArrayParam=e.separatorObjectExplode=e.separatorArrayNoExplode=e.separatorArrayExplode=void 0,e.separatorArrayExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.separatorArrayNoExplode=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},e.separatorObjectExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.serializeArrayParam=({allowReserved:t,explode:n,name:r,style:i,value:a})=>{if(!n){let n=(t?a:a.map(e=>encodeURIComponent(e))).join((0,e.separatorArrayNoExplode)(i));switch(i){case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;case`simple`:return n;default:return`${r}=${n}`}}let o=(0,e.separatorArrayExplode)(i),s=a.map(n=>i===`label`||i===`simple`?t?n:encodeURIComponent(n):(0,e.serializePrimitiveParam)({allowReserved:t,name:r,value:n})).join(o);return i===`label`||i===`matrix`?o+s:s},e.serializePrimitiveParam=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},e.serializeObjectParam=({allowReserved:t,explode:n,name:r,style:i,value:a,valueOnly:o})=>{if(a instanceof Date)return o?a.toISOString():`${r}=${a.toISOString()}`;if(i!==`deepObject`&&!n){let e=[];Object.entries(a).forEach(([n,r])=>{e=[...e,n,t?r:encodeURIComponent(r)]});let n=e.join(`,`);switch(i){case`form`:return`${r}=${n}`;case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;default:return n}}let s=(0,e.separatorObjectExplode)(i),c=Object.entries(a).map(([n,a])=>(0,e.serializePrimitiveParam)({allowReserved:t,name:i===`deepObject`?`${r}[${n}]`:n,value:a})).join(s);return i===`label`||i===`matrix`?s+c:c}})),tp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getUrl=e.defaultPathSerializer=e.PATH_PARAM_RE=void 0,e.getValidRequestBody=n;var t=ep();e.PATH_PARAM_RE=/\{[^{}]+\}/g,e.defaultPathSerializer=({path:n,url:r})=>{let i=r,a=r.match(e.PATH_PARAM_RE);if(a)for(let e of a){let r=!1,a=e.substring(1,e.length-1),o=`simple`;a.endsWith(`*`)&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(`.`)?(a=a.substring(1),o=`label`):a.startsWith(`;`)&&(a=a.substring(1),o=`matrix`);let s=n[a];if(s==null)continue;if(Array.isArray(s)){i=i.replace(e,(0,t.serializeArrayParam)({explode:r,name:a,style:o,value:s}));continue}if(typeof s==`object`){i=i.replace(e,(0,t.serializeObjectParam)({explode:r,name:a,style:o,value:s,valueOnly:!0}));continue}if(o===`matrix`){i=i.replace(e,`;${(0,t.serializePrimitiveParam)({name:a,value:s})}`);continue}let c=encodeURIComponent(o===`label`?`.${s}`:s);i=i.replace(e,c)}return i},e.getUrl=({baseUrl:t,path:n,query:r,querySerializer:i,url:a})=>{let o=a.startsWith(`/`)?a:`/${a}`,s=(t??``)+o;n&&(s=(0,e.defaultPathSerializer)({path:n,url:s}));let c=r?i(r):``;return c.startsWith(`?`)&&(c=c.substring(1)),c&&(s+=`?${c}`),s};function n(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}})),np=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.getAuthToken=void 0,e.getAuthToken=(e,n)=>t(void 0,void 0,void 0,function*(){let t=typeof n==`function`?yield n(e):n;if(t)return e.scheme===`bearer`?`Bearer ${t}`:e.scheme===`basic`?`Basic ${btoa(t)}`:t})})),rp=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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};Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.mergeHeaders=e.axiosHeadersKeywords=e.mergeConfigs=e.buildUrl=e.setAuthParams=e.createQuerySerializer=void 0;var r=np(),i=ep(),a=tp();e.createQuerySerializer=(e={})=>{var{parameters:t={}}=e,r=n(e,[`parameters`]);return e=>{let n=[];if(e&&typeof e==`object`)for(let a in e){let o=e[a];if(o==null)continue;let s=t[a]||r;if(Array.isArray(o)){let e=(0,i.serializeArrayParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`form`,value:o},s.array));e&&n.push(e)}else if(typeof o==`object`){let e=(0,i.serializeObjectParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`deepObject`,value:o},s.object));e&&n.push(e)}else{let e=(0,i.serializePrimitiveParam)({allowReserved:s.allowReserved,name:a,value:o});e&&n.push(e)}}return n.join(`&`)}};var o=(e,t)=>t?t in e.headers||e.query?.[t]?!0:`Cookie`in e.headers&&e.headers.Cookie&&typeof e.headers.Cookie==`string`?e.headers.Cookie.includes(`${t}=`):!1:!1;e.setAuthParams=e=>t(void 0,void 0,void 0,function*(){var{security:t}=e,i=n(e,[`security`]);for(let e of t){if(o(i,e.name))continue;let t=yield(0,r.getAuthToken)(e,i.auth);if(!t)continue;let n=e.name??`Authorization`;switch(e.in){case`query`:i.query||={},i.query[n]=t;break;case`cookie`:{let e=`${n}=${t}`;`Cookie`in i.headers&&i.headers.Cookie?i.headers.Cookie=`${i.headers.Cookie}; ${e}`:i.headers.Cookie=e;break}default:i.headers[n]=t;break}}}),e.buildUrl=t=>{let n=t.axios?.defaults?.baseURL,r=t.baseURL&&typeof t.baseURL==`string`?t.baseURL:n;return(0,a.getUrl)({baseUrl:r,path:t.path,query:t.paramsSerializer?void 0:t.query,querySerializer:typeof t.querySerializer==`function`?t.querySerializer:(0,e.createQuerySerializer)(t.querySerializer),url:t.url})},e.mergeConfigs=(t,n)=>{let r=Object.assign(Object.assign({},t),n);return r.headers=(0,e.mergeHeaders)(t.headers,n.headers),r},e.axiosHeadersKeywords=[`common`,`delete`,`get`,`head`,`patch`,`post`,`put`],e.mergeHeaders=(...t)=>{let n={};for(let r of t){if(!r||typeof r!=`object`)continue;let t=Object.entries(r);for(let[r,i]of t)if(e.axiosHeadersKeywords.includes(r)&&typeof i==`object`)n[r]=Object.assign(Object.assign({},n[r]),i);else if(i===null)delete n[r];else if(Array.isArray(i))for(let e of i)n[r]=[...n[r]??[],e];else i!==void 0&&(n[r]=typeof i==`object`?JSON.stringify(i):i)}return n},e.createConfig=(e={})=>Object.assign({},e)})),ip=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.createClient=void 0;var i=r(Qd()),a=$f(),o=tp(),s=rp();e.createClient=(e={})=>{let r=(0,s.mergeConfigs)((0,s.createConfig)(),e),c;if(r.axios&&!(`Axios`in r.axios))c=r.axios;else{let{auth:e}=r,t=n(r,[`auth`]);c=i.default.create(t)}let l=()=>Object.assign({},r),u=e=>(r=(0,s.mergeConfigs)(r,e),c.defaults=Object.assign(Object.assign(Object.assign({},c.defaults),r),{headers:(0,s.mergeHeaders)(c.defaults.headers,r.headers)}),l()),d=e=>t(void 0,void 0,void 0,function*(){let t=Object.assign(Object.assign(Object.assign({},r),e),{axios:e.axios??r.axios??c,headers:(0,s.mergeHeaders)(r.headers,e.headers)});return t.security&&(yield(0,s.setAuthParams)(Object.assign(Object.assign({},t),{security:t.security}))),t.requestValidator&&(yield t.requestValidator(t)),t.body!==void 0&&t.bodySerializer&&(t.body=t.bodySerializer(t.body)),{opts:t,url:(0,s.buildUrl)(t)}}),f=e=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(e);try{let e=t.axios,{auth:i}=t,a=n(t,[`auth`]),s=yield e(Object.assign(Object.assign({},a),{baseURL:``,data:(0,o.getValidRequestBody)(t),headers:t.headers,params:t.paramsSerializer?t.query:void 0,url:r})),{data:c}=s;return t.responseType===`json`&&(t.responseValidator&&(yield t.responseValidator(c)),t.responseTransformer&&(c=yield t.responseTransformer(c))),Object.assign(Object.assign({},s),{data:c??{}})}catch(e){let n=e;if(t.throwOnError)throw n;return n.error=n.response?.data??{},n}}),p=e=>t=>f(Object.assign(Object.assign({},t),{method:e})),m=e=>n=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(n);return(0,a.createSseClient)(Object.assign(Object.assign({},t),{body:t.body,headers:t.headers,method:e,serializedBody:(0,o.getValidRequestBody)(t),signal:t.signal,url:r}))});return{buildUrl:e=>(0,s.buildUrl)(Object.assign(Object.assign({axios:c},r),e)),connect:p(`CONNECT`),delete:p(`DELETE`),get:p(`GET`),getConfig:l,head:p(`HEAD`),instance:c,options:p(`OPTIONS`),patch:p(`PATCH`),post:p(`POST`),put:p(`PUT`),request:f,setConfig:u,sse:{connect:m(`CONNECT`),delete:m(`DELETE`),get:m(`GET`),head:m(`HEAD`),options:m(`OPTIONS`),patch:m(`PATCH`),post:m(`POST`),put:m(`PUT`),trace:m(`TRACE`)},trace:p(`TRACE`)}}})),ap=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.createClient=e.serializeQueryKeyValue=e.buildClientParams=e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=Xf();Object.defineProperty(e,`formDataBodySerializer`,{enumerable:!0,get:function(){return t.formDataBodySerializer}}),Object.defineProperty(e,`jsonBodySerializer`,{enumerable:!0,get:function(){return t.jsonBodySerializer}}),Object.defineProperty(e,`urlSearchParamsBodySerializer`,{enumerable:!0,get:function(){return t.urlSearchParamsBodySerializer}});var n=Zf();Object.defineProperty(e,`buildClientParams`,{enumerable:!0,get:function(){return n.buildClientParams}});var r=Qf();Object.defineProperty(e,`serializeQueryKeyValue`,{enumerable:!0,get:function(){return r.serializeQueryKeyValue}});var i=ip();Object.defineProperty(e,`createClient`,{enumerable:!0,get:function(){return i.createClient}});var a=rp();Object.defineProperty(e,`createConfig`,{enumerable:!0,get:function(){return a.createConfig}})})),op=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.client=void 0;var t=ap();e.client=(0,t.createClient)((0,t.createConfig)())})),sp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createMonitorTrigger=e.getMonitorTrigger=e.deleteMonitorTrigger=e.updateMonitoringSource=e.getMonitoringSource=e.deleteMonitoringSource=e.getMonitoringSourceViews=e.createMonitoringSource=e.getMonitoringSourcesByUser=e.healthCheck=void 0;var t=op();e.healthCheck=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/health/monitoring`},e)),e.getMonitoringSourcesByUser=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources`},e)),e.createMonitoringSource=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/monitoring-sources`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getMonitoringSourceViews=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}/views`},e)),e.deleteMonitoringSource=e=>(e.client??t.client).delete(Object.assign({url:`/monitoring-sources/{id}`},e)),e.getMonitoringSource=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}`},e)),e.updateMonitoringSource=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteMonitorTrigger=e=>(e?.client??t.client).delete(Object.assign({url:`/monitor-triggers`},e)),e.getMonitorTrigger=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/monitor-triggers`},e)),e.createMonitorTrigger=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/monitor-triggers`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)}))}));o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateMonitoringSource=e.healthCheck=e.getMonitorTrigger=e.getMonitoringSourceViews=e.getMonitoringSourcesByUser=e.getMonitoringSource=e.deleteMonitorTrigger=e.deleteMonitoringSource=e.createMonitorTrigger=e.createMonitoringSource=void 0;var t=sp();Object.defineProperty(e,`createMonitoringSource`,{enumerable:!0,get:function(){return t.createMonitoringSource}}),Object.defineProperty(e,`createMonitorTrigger`,{enumerable:!0,get:function(){return t.createMonitorTrigger}}),Object.defineProperty(e,`deleteMonitoringSource`,{enumerable:!0,get:function(){return t.deleteMonitoringSource}}),Object.defineProperty(e,`deleteMonitorTrigger`,{enumerable:!0,get:function(){return t.deleteMonitorTrigger}}),Object.defineProperty(e,`getMonitoringSource`,{enumerable:!0,get:function(){return t.getMonitoringSource}}),Object.defineProperty(e,`getMonitoringSourcesByUser`,{enumerable:!0,get:function(){return t.getMonitoringSourcesByUser}}),Object.defineProperty(e,`getMonitoringSourceViews`,{enumerable:!0,get:function(){return t.getMonitoringSourceViews}}),Object.defineProperty(e,`getMonitorTrigger`,{enumerable:!0,get:function(){return t.getMonitorTrigger}}),Object.defineProperty(e,`healthCheck`,{enumerable:!0,get:function(){return t.healthCheck}}),Object.defineProperty(e,`updateMonitoringSource`,{enumerable:!0,get:function(){return t.updateMonitoringSource}})}))();var cp=({monitoringSource:e,background:t,withBorder:n=!0,action:r})=>{let{t:i}=Ad(),a=e.reliability||0,o=a<50?`red`:a<80?`yellow`:`green`;return(0,u.jsx)(Vo,{p:`xs`,bg:t,withBorder:n,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`monitoringSource.name`)}),e.reliability&&(0,u.jsx)(Uu,{size:36,thickness:3,roundCaps:!0,sections:[{value:a,color:o}],label:(0,u.jsx)(wc,{c:o,fw:700,ta:`center`,size:`xs`,style:{fontSize:9},children:`${a}%`})})]}),e.type&&(0,u.jsx)(wc,{c:`dimmed`,children:e.type||i(`monitoringSource.type`)}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`monitoringSource.description`)})})]}),r]})})},lp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Gf,{event:e,withBorder:!1,background:`transparent`})}),up=({data:e,relation:t,renderTooltip:n=lp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(uf,{event:e})})},e._id),dp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(qf,{organization:e,withBorder:!1,background:`transparent`})}),fp=({data:e,relation:t,renderTooltip:n=dp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{alt:e.name||``,className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(xf,{organization:e})})},e._id),pp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Kf,{person:e,withBorder:!1,background:`transparent`})}),mp=({data:e,relation:t,renderTooltip:n=pp})=>(0,u.jsx)(Fu,{label:n(e,t),position:`top`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{alt:e.name||``,className:`entity-avatar`,radius:`xl`,size:`md`,children:(0,u.jsx)(Ef,{person:e})})},e._id),hp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Yf,{source:e,withBorder:!1,background:`transparent`})}),gp=({data:e,relation:t,renderTooltip:n=hp})=>(0,u.jsx)(Fu,{label:n(e,t),position:`left`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(If,{source:e})})},e._id),_p=({data:e,relation:t,renderTooltip:n=hp})=>(0,u.jsxs)(Q,{wrap:`nowrap`,gap:0,children:[(0,u.jsx)(Fu,{label:n(e,t),openDelay:500,withArrow:!0,multiline:!0,children:(0,u.jsx)(wc,{size:`sm`,fw:500,truncate:`end`,children:e.name||e.url})}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),vp=({data:e,relation:t,renderTooltip:n=hp})=>e.url?(0,u.jsx)(Fu,{label:n(e,t),position:`left`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})},e._id):null,yp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Jf,{website:e,withBorder:!1,background:`transparent`})}),bp=({data:e,relation:t,renderTooltip:n=yp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(Vf,{website:e})})},e._id);exports.AvatarDropdown=od,exports.AvatarRowList=jd,exports.AvatarSpan=Fd,exports.EmptyAvatar=Pd,exports.EventAvatar=up,exports.EventCard=Gf,exports.EventColorSelector=ff,exports.EventIcon=uf,exports.EventIconSelect=pf,exports.EventIconSelector=df,exports.MonitoringSourceCard=cp,exports.OrganizationAvatar=fp,exports.OrganizationCard=qf,exports.OrganizationColorSelector=Cf,exports.OrganizationIcon=xf,exports.OrganizationIconSelect=wf,exports.OrganizationIconSelector=Sf,exports.PersonAvatar=mp,exports.PersonCard=Kf,exports.PersonColorSelector=Of,exports.PersonIcon=Ef,exports.PersonIconSelect=kf,exports.PersonIconSelector=Df,exports.RelationTooltip=Id,exports.SourceAvatar=gp,exports.SourceAvatarRow=_p,exports.SourceCard=Yf,exports.SourceColorSelector=Rf,exports.SourceIcon=If,exports.SourceIconSelect=zf,exports.SourceIconSelector=Lf,exports.SourceLink=vp,exports.WebsiteAvatar=bp,exports.WebsiteCard=Jf,exports.WebsiteColorSelector=Uf,exports.WebsiteIcon=Vf,exports.WebsiteIconSelect=Wf,exports.WebsiteIconSelector=Hf;
18
+ `);try{l=JSON.parse(e),u=!0}catch{l=e}}u&&(c&&(yield t(c(l))),s&&(l=yield t(s(l)))),o?.({data:l,event:a,id:h,retry:e}),i.length&&(yield yield t(l))}}}finally{r.removeEventListener(`abort`,g),d.releaseLock()}break}catch(r){if(a?.(r),u!==void 0&&n>=u)break;yield t(g(Math.min(e*2**(n-1),d??3e4)))}}})}()}}})),Fp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.serializeObjectParam=e.serializePrimitiveParam=e.serializeArrayParam=e.separatorObjectExplode=e.separatorArrayNoExplode=e.separatorArrayExplode=void 0,e.separatorArrayExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.separatorArrayNoExplode=e=>{switch(e){case`form`:return`,`;case`pipeDelimited`:return`|`;case`spaceDelimited`:return`%20`;default:return`,`}},e.separatorObjectExplode=e=>{switch(e){case`label`:return`.`;case`matrix`:return`;`;case`simple`:return`,`;default:return`&`}},e.serializeArrayParam=({allowReserved:t,explode:n,name:r,style:i,value:a})=>{if(!n){let n=(t?a:a.map(e=>encodeURIComponent(e))).join((0,e.separatorArrayNoExplode)(i));switch(i){case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;case`simple`:return n;default:return`${r}=${n}`}}let o=(0,e.separatorArrayExplode)(i),s=a.map(n=>i===`label`||i===`simple`?t?n:encodeURIComponent(n):(0,e.serializePrimitiveParam)({allowReserved:t,name:r,value:n})).join(o);return i===`label`||i===`matrix`?o+s:s},e.serializePrimitiveParam=({allowReserved:e,name:t,value:n})=>{if(n==null)return``;if(typeof n==`object`)throw Error("Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.");return`${t}=${e?n:encodeURIComponent(n)}`},e.serializeObjectParam=({allowReserved:t,explode:n,name:r,style:i,value:a,valueOnly:o})=>{if(a instanceof Date)return o?a.toISOString():`${r}=${a.toISOString()}`;if(i!==`deepObject`&&!n){let e=[];Object.entries(a).forEach(([n,r])=>{e=[...e,n,t?r:encodeURIComponent(r)]});let n=e.join(`,`);switch(i){case`form`:return`${r}=${n}`;case`label`:return`.${n}`;case`matrix`:return`;${r}=${n}`;default:return n}}let s=(0,e.separatorObjectExplode)(i),c=Object.entries(a).map(([n,a])=>(0,e.serializePrimitiveParam)({allowReserved:t,name:i===`deepObject`?`${r}[${n}]`:n,value:a})).join(s);return i===`label`||i===`matrix`?s+c:c}})),Ip=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.getUrl=e.defaultPathSerializer=e.PATH_PARAM_RE=void 0,e.getValidRequestBody=n;var t=Fp();e.PATH_PARAM_RE=/\{[^{}]+\}/g,e.defaultPathSerializer=({path:n,url:r})=>{let i=r,a=r.match(e.PATH_PARAM_RE);if(a)for(let e of a){let r=!1,a=e.substring(1,e.length-1),o=`simple`;a.endsWith(`*`)&&(r=!0,a=a.substring(0,a.length-1)),a.startsWith(`.`)?(a=a.substring(1),o=`label`):a.startsWith(`;`)&&(a=a.substring(1),o=`matrix`);let s=n[a];if(s==null)continue;if(Array.isArray(s)){i=i.replace(e,(0,t.serializeArrayParam)({explode:r,name:a,style:o,value:s}));continue}if(typeof s==`object`){i=i.replace(e,(0,t.serializeObjectParam)({explode:r,name:a,style:o,value:s,valueOnly:!0}));continue}if(o===`matrix`){i=i.replace(e,`;${(0,t.serializePrimitiveParam)({name:a,value:s})}`);continue}let c=encodeURIComponent(o===`label`?`.${s}`:s);i=i.replace(e,c)}return i},e.getUrl=({baseUrl:t,path:n,query:r,querySerializer:i,url:a})=>{let o=a.startsWith(`/`)?a:`/${a}`,s=(t??``)+o;n&&(s=(0,e.defaultPathSerializer)({path:n,url:s}));let c=r?i(r):``;return c.startsWith(`?`)&&(c=c.substring(1)),c&&(s+=`?${c}`),s};function n(e){let t=e.body!==void 0;if(t&&e.bodySerializer)return`serializedBody`in e?e.serializedBody!==void 0&&e.serializedBody!==``?e.serializedBody:null:e.body===``?null:e.body;if(t)return e.body}})),Lp=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};Object.defineProperty(e,`__esModule`,{value:!0}),e.getAuthToken=void 0,e.getAuthToken=(e,n)=>t(void 0,void 0,void 0,function*(){let t=typeof n==`function`?yield n(e):n;if(t)return e.scheme===`bearer`?`Bearer ${t}`:e.scheme===`basic`?`Basic ${btoa(t)}`:t})})),Rp=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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};Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.mergeHeaders=e.axiosHeadersKeywords=e.mergeConfigs=e.buildUrl=e.setAuthParams=e.createQuerySerializer=void 0;var r=Lp(),i=Fp(),a=Ip();e.createQuerySerializer=(e={})=>{var{parameters:t={}}=e,r=n(e,[`parameters`]);return e=>{let n=[];if(e&&typeof e==`object`)for(let a in e){let o=e[a];if(o==null)continue;let s=t[a]||r;if(Array.isArray(o)){let e=(0,i.serializeArrayParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`form`,value:o},s.array));e&&n.push(e)}else if(typeof o==`object`){let e=(0,i.serializeObjectParam)(Object.assign({allowReserved:s.allowReserved,explode:!0,name:a,style:`deepObject`,value:o},s.object));e&&n.push(e)}else{let e=(0,i.serializePrimitiveParam)({allowReserved:s.allowReserved,name:a,value:o});e&&n.push(e)}}return n.join(`&`)}};var o=(e,t)=>t?t in e.headers||e.query?.[t]?!0:`Cookie`in e.headers&&e.headers.Cookie&&typeof e.headers.Cookie==`string`?e.headers.Cookie.includes(`${t}=`):!1:!1;e.setAuthParams=e=>t(void 0,void 0,void 0,function*(){var{security:t}=e,i=n(e,[`security`]);for(let e of t){if(o(i,e.name))continue;let t=yield(0,r.getAuthToken)(e,i.auth);if(!t)continue;let n=e.name??`Authorization`;switch(e.in){case`query`:i.query||={},i.query[n]=t;break;case`cookie`:{let e=`${n}=${t}`;`Cookie`in i.headers&&i.headers.Cookie?i.headers.Cookie=`${i.headers.Cookie}; ${e}`:i.headers.Cookie=e;break}default:i.headers[n]=t;break}}}),e.buildUrl=t=>{let n=t.axios?.defaults?.baseURL,r=t.baseURL&&typeof t.baseURL==`string`?t.baseURL:n;return(0,a.getUrl)({baseUrl:r,path:t.path,query:t.paramsSerializer?void 0:t.query,querySerializer:typeof t.querySerializer==`function`?t.querySerializer:(0,e.createQuerySerializer)(t.querySerializer),url:t.url})},e.mergeConfigs=(t,n)=>{let r=Object.assign(Object.assign({},t),n);return r.headers=(0,e.mergeHeaders)(t.headers,n.headers),r},e.axiosHeadersKeywords=[`common`,`delete`,`get`,`head`,`patch`,`post`,`put`],e.mergeHeaders=(...t)=>{let n={};for(let r of t){if(!r||typeof r!=`object`)continue;let t=Object.entries(r);for(let[r,i]of t)if(e.axiosHeadersKeywords.includes(r)&&typeof i==`object`)n[r]=Object.assign(Object.assign({},n[r]),i);else if(i===null)delete n[r];else if(Array.isArray(i))for(let e of i)n[r]=[...n[r]??[],e];else i!==void 0&&(n[r]=typeof i==`object`?JSON.stringify(i):i)}return n},e.createConfig=(e={})=>Object.assign({},e)})),zp=o((e=>{var t=e&&e.__awaiter||function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},n=e&&e.__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(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,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},r=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,`__esModule`,{value:!0}),e.createClient=void 0;var i=r(Qd()),a=Pp(),o=Ip(),s=Rp();e.createClient=(e={})=>{let r=(0,s.mergeConfigs)((0,s.createConfig)(),e),c;if(r.axios&&!(`Axios`in r.axios))c=r.axios;else{let{auth:e}=r,t=n(r,[`auth`]);c=i.default.create(t)}let l=()=>Object.assign({},r),u=e=>(r=(0,s.mergeConfigs)(r,e),c.defaults=Object.assign(Object.assign(Object.assign({},c.defaults),r),{headers:(0,s.mergeHeaders)(c.defaults.headers,r.headers)}),l()),d=e=>t(void 0,void 0,void 0,function*(){let t=Object.assign(Object.assign(Object.assign({},r),e),{axios:e.axios??r.axios??c,headers:(0,s.mergeHeaders)(r.headers,e.headers)});return t.security&&(yield(0,s.setAuthParams)(Object.assign(Object.assign({},t),{security:t.security}))),t.requestValidator&&(yield t.requestValidator(t)),t.body!==void 0&&t.bodySerializer&&(t.body=t.bodySerializer(t.body)),{opts:t,url:(0,s.buildUrl)(t)}}),f=e=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(e);try{let e=t.axios,{auth:i}=t,a=n(t,[`auth`]),s=yield e(Object.assign(Object.assign({},a),{baseURL:``,data:(0,o.getValidRequestBody)(t),headers:t.headers,params:t.paramsSerializer?t.query:void 0,url:r})),{data:c}=s;return t.responseType===`json`&&(t.responseValidator&&(yield t.responseValidator(c)),t.responseTransformer&&(c=yield t.responseTransformer(c))),Object.assign(Object.assign({},s),{data:c??{}})}catch(e){let n=e;if(t.throwOnError)throw n;return n.error=n.response?.data??{},n}}),p=e=>t=>f(Object.assign(Object.assign({},t),{method:e})),m=e=>n=>t(void 0,void 0,void 0,function*(){let{opts:t,url:r}=yield d(n);return(0,a.createSseClient)(Object.assign(Object.assign({},t),{body:t.body,headers:t.headers,method:e,serializedBody:(0,o.getValidRequestBody)(t),signal:t.signal,url:r}))});return{buildUrl:e=>(0,s.buildUrl)(Object.assign(Object.assign({axios:c},r),e)),connect:p(`CONNECT`),delete:p(`DELETE`),get:p(`GET`),getConfig:l,head:p(`HEAD`),instance:c,options:p(`OPTIONS`),patch:p(`PATCH`),post:p(`POST`),put:p(`PUT`),request:f,setConfig:u,sse:{connect:m(`CONNECT`),delete:m(`DELETE`),get:m(`GET`),head:m(`HEAD`),options:m(`OPTIONS`),patch:m(`PATCH`),post:m(`POST`),put:m(`PUT`),trace:m(`TRACE`)},trace:p(`TRACE`)}}})),Bp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createConfig=e.createClient=e.serializeQueryKeyValue=e.buildClientParams=e.urlSearchParamsBodySerializer=e.jsonBodySerializer=e.formDataBodySerializer=void 0;var t=jp();Object.defineProperty(e,`formDataBodySerializer`,{enumerable:!0,get:function(){return t.formDataBodySerializer}}),Object.defineProperty(e,`jsonBodySerializer`,{enumerable:!0,get:function(){return t.jsonBodySerializer}}),Object.defineProperty(e,`urlSearchParamsBodySerializer`,{enumerable:!0,get:function(){return t.urlSearchParamsBodySerializer}});var n=Mp();Object.defineProperty(e,`buildClientParams`,{enumerable:!0,get:function(){return n.buildClientParams}});var r=Np();Object.defineProperty(e,`serializeQueryKeyValue`,{enumerable:!0,get:function(){return r.serializeQueryKeyValue}});var i=zp();Object.defineProperty(e,`createClient`,{enumerable:!0,get:function(){return i.createClient}});var a=Rp();Object.defineProperty(e,`createConfig`,{enumerable:!0,get:function(){return a.createConfig}})})),Vp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.client=void 0;var t=Bp();e.client=(0,t.createClient)((0,t.createConfig)())})),Hp=o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.createMonitorTrigger=e.getMonitorTrigger=e.deleteMonitorTrigger=e.updateMonitoringSource=e.getMonitoringSource=e.deleteMonitoringSource=e.getMonitoringSourceViews=e.createMonitoringSource=e.getMonitoringSourcesByUser=e.healthCheck=void 0;var t=Vp();e.healthCheck=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/health/monitoring`},e)),e.getMonitoringSourcesByUser=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources`},e)),e.createMonitoringSource=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/monitoring-sources`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.getMonitoringSourceViews=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}/views`},e)),e.deleteMonitoringSource=e=>(e.client??t.client).delete(Object.assign({url:`/monitoring-sources/{id}`},e)),e.getMonitoringSource=e=>(e.client??t.client).get(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}`},e)),e.updateMonitoringSource=e=>(e.client??t.client).put(Object.assign(Object.assign({responseType:`json`,url:`/monitoring-sources/{id}`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)})),e.deleteMonitorTrigger=e=>(e?.client??t.client).delete(Object.assign({url:`/monitor-triggers`},e)),e.getMonitorTrigger=e=>(e?.client??t.client).get(Object.assign({responseType:`json`,url:`/monitor-triggers`},e)),e.createMonitorTrigger=e=>(e.client??t.client).post(Object.assign(Object.assign({responseType:`json`,url:`/monitor-triggers`},e),{headers:Object.assign({"Content-Type":`application/json`},e.headers)}))}));o((e=>{Object.defineProperty(e,`__esModule`,{value:!0}),e.updateMonitoringSource=e.healthCheck=e.getMonitorTrigger=e.getMonitoringSourceViews=e.getMonitoringSourcesByUser=e.getMonitoringSource=e.deleteMonitorTrigger=e.deleteMonitoringSource=e.createMonitorTrigger=e.createMonitoringSource=void 0;var t=Hp();Object.defineProperty(e,`createMonitoringSource`,{enumerable:!0,get:function(){return t.createMonitoringSource}}),Object.defineProperty(e,`createMonitorTrigger`,{enumerable:!0,get:function(){return t.createMonitorTrigger}}),Object.defineProperty(e,`deleteMonitoringSource`,{enumerable:!0,get:function(){return t.deleteMonitoringSource}}),Object.defineProperty(e,`deleteMonitorTrigger`,{enumerable:!0,get:function(){return t.deleteMonitorTrigger}}),Object.defineProperty(e,`getMonitoringSource`,{enumerable:!0,get:function(){return t.getMonitoringSource}}),Object.defineProperty(e,`getMonitoringSourcesByUser`,{enumerable:!0,get:function(){return t.getMonitoringSourcesByUser}}),Object.defineProperty(e,`getMonitoringSourceViews`,{enumerable:!0,get:function(){return t.getMonitoringSourceViews}}),Object.defineProperty(e,`getMonitorTrigger`,{enumerable:!0,get:function(){return t.getMonitorTrigger}}),Object.defineProperty(e,`healthCheck`,{enumerable:!0,get:function(){return t.healthCheck}}),Object.defineProperty(e,`updateMonitoringSource`,{enumerable:!0,get:function(){return t.updateMonitoringSource}})}))();var Up=({monitoringSource:e,background:t,withBorder:n=!0,action:r})=>{let{t:i}=Ad(),a=e.reliability||0,o=a<50?`red`:a<80?`yellow`:`green`;return(0,u.jsx)(Vo,{p:`xs`,bg:t,withBorder:n,children:(0,u.jsxs)(Q,{justify:`space-between`,wrap:`nowrap`,align:`flex-start`,children:[(0,u.jsxs)(Yu,{gap:0,children:[(0,u.jsxs)(Q,{children:[(0,u.jsx)(ad,{order:2,children:e.name||i(`monitoringSource.name`)}),e.reliability&&(0,u.jsx)(Uu,{size:36,thickness:3,roundCaps:!0,sections:[{value:a,color:o}],label:(0,u.jsx)(wc,{c:o,fw:700,ta:`center`,size:`xs`,style:{fontSize:9},children:`${a}%`})})]}),e.type&&(0,u.jsx)(wc,{c:`dimmed`,children:e.type||i(`monitoringSource.type`)}),(0,u.jsx)(Mo,{h:50,type:`auto`,offsetScrollbars:!0,children:(0,u.jsx)(wc,{children:e.description||i(`monitoringSource.description`)})})]}),r]})})},Wp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Ep,{event:e,withBorder:!1,background:`transparent`})}),Gp=({data:e,relation:t,renderTooltip:n=Wp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(Kf,{event:e})})},e._id),Kp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Op,{organization:e,withBorder:!1,background:`transparent`})}),qp=({data:e,relation:t,renderTooltip:n=Kp})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{alt:e.name||``,className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(np,{organization:e})})},e._id),Jp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Dp,{person:e,withBorder:!1,background:`transparent`})}),Yp=({data:e,relation:t,renderTooltip:n=Jp})=>(0,u.jsx)(Fu,{label:n(e,t),position:`top`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{alt:e.name||``,className:`entity-avatar`,radius:`xl`,size:`md`,children:(0,u.jsx)(sp,{person:e})})},e._id),Xp=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(Ap,{source:e,withBorder:!1,background:`transparent`})}),Zp=({data:e,relation:t,renderTooltip:n=Xp})=>(0,u.jsx)(Fu,{label:n(e,t),position:`left`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(_p,{source:e})})},e._id),Qp=({data:e,relation:t,renderTooltip:n=Xp})=>(0,u.jsxs)(Q,{wrap:`nowrap`,gap:0,children:[(0,u.jsx)(Fu,{label:n(e,t),openDelay:500,withArrow:!0,multiline:!0,children:(0,u.jsx)(wc,{size:`sm`,fw:500,truncate:`end`,children:e.name||e.url})}),e.url&&(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})]}),$p=({data:e,relation:t,renderTooltip:n=Xp})=>e.url?(0,u.jsx)(Fu,{label:n(e,t),position:`left`,withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(Rs,{variant:`subtle`,size:`sm`,component:`a`,href:e.url,target:`_blank`,children:(0,u.jsx)(Kd,{})})},e._id):null,em=(e,t)=>(0,u.jsx)(Id,{relation:t,children:(0,u.jsx)(kp,{website:e,withBorder:!1,background:`transparent`})}),tm=({data:e,relation:t,renderTooltip:n=em})=>(0,u.jsx)(Fu,{label:n(e,t),withArrow:!0,withinPortal:!0,multiline:!0,children:(0,u.jsx)(wl,{className:`entity-avatar`,size:`md`,radius:`xl`,children:(0,u.jsx)(Sp,{website:e})})},e._id);exports.AvatarDropdown=od,exports.AvatarRowList=jd,exports.AvatarSpan=Fd,exports.EmptyAvatar=Pd,exports.EventAvatar=Gp,exports.EventCard=Ep,exports.EventColorSelector=Jf,exports.EventIcon=Kf,exports.EventIconSelect=Yf,exports.EventIconSelector=qf,exports.IconMdiAnchor=wf,exports.MonitoringSourceCard=Up,exports.OrganizationAvatar=qp,exports.OrganizationCard=Op,exports.OrganizationColorSelector=ip,exports.OrganizationIcon=np,exports.OrganizationIconSelect=ap,exports.OrganizationIconSelector=rp,exports.PersonAvatar=Yp,exports.PersonCard=Dp,exports.PersonColorSelector=lp,exports.PersonIcon=sp,exports.PersonIconSelect=up,exports.PersonIconSelector=cp,exports.RelationTooltip=Id,exports.SourceAvatar=Zp,exports.SourceAvatarRow=Qp,exports.SourceCard=Ap,exports.SourceColorSelector=yp,exports.SourceIcon=_p,exports.SourceIconSelect=bp,exports.SourceIconSelector=vp,exports.SourceLink=$p,exports.WebsiteAvatar=tm,exports.WebsiteCard=kp,exports.WebsiteColorSelector=wp,exports.WebsiteIcon=Sp,exports.WebsiteIconSelect=Tp,exports.WebsiteIconSelector=Cp;