@keadex/mina-react
Version:
React library to render C4 Model diagrams created with Keadex Mina.
1 lines • 44.6 kB
JavaScript
var e,_,t,n,r={196:(e,_,t)=>{var n=t(457);e.exports=t.v(_,e.id,"aae8a7aecb6a258bd2b6",{"./mina_react_bg.js":{__wbg_log_c222819a41e063d3:n.pR9,__wbg_info_3daf2e093e091b66:n.ZrD,__wbg_warn_4ca3906c248c47c4:n.jwJ,__wbg_debug_3cb59063b29f58c1:n.F$t,__wbg_error_524f506f44df1645:n.pWA,__wbindgen_string_new:n.ycJ,__wbindgen_string_get:n.qNE,__wbindgen_bigint_get_as_i64:n.DMD,__wbindgen_memory:n.Py0,__wbindgen_throw:n.Qnr,__wbindgen_debug_string:n.rl,__wbg_new_5e0be73521bc8c17:n.aIY,__wbg_new_78feb108b6472713:n.M2,__wbindgen_number_new:n.QRK,__wbg_new_405e22f390576ce2:n.va5,__wbg_newnoargs_105ed471475aaf50:n.VrZ,__wbg_new_a12002a7f91c75be:n.vVD,__wbg_stringify_f7ed6987935b4a24:n.Y6F,__wbindgen_is_function:n.PRY,__wbindgen_is_string:n.GuA,__wbindgen_is_object:n.qvD,__wbg_next_25feadfc0913fea9:n.yqB,__wbg_buffer_609cc3eee51ed158:n.FHK,__wbg_byteLength_e674b853d9c77e1d:n.x6W,__wbg_byteOffset_fd862df290ef848d:n.cyg,__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a:n.hI8,__wbg_length_a446193dc22c12f8:n.eIr,__wbg_set_65595bdd868b3009:n.HBq,__wbg_newwithlength_a381634e90c276d4:n.HtP,__wbg_buffer_09165b52af8c5237:n._Ue,__wbg_subarray_aa9065fa9dc5df96:n.TOc,__wbg_done_769e5ede4b31c67b:n.Xb8,__wbg_value_cd1ffa7b1ab794f1:n.LMq,__wbg_next_c3ab0d59847b3b5c:n.tER,__wbg_instanceof_Error_4d54113b22d20306:n.fcg,__wbg_instanceof_Uint8Array_17156bcf118086a9:n.SJf,__wbg_instanceof_ArrayBuffer_e14585432e3737fc:n.gGA,__wbg_set_8fc6bf8a5b1071d1:n.iAh,__wbg_get_b9b93047fe3cf45b:n.RKz,__wbg_set_37837023f3d740e8:n.p8e,__wbg_length_e2d2a49132c1b256:n.Ry,__wbg_push_737cfc8c1432c2c6:n.tZf,__wbg_isArray_a1eab7e0d067391b:n.uod,__wbg_new_c68d7209be747379:n.wd3,__wbg_message_97a2af9b89d693a3:n.oGe,__wbg_isSafeInteger_343e2beeeece1bb0:n.Yb6,__wbg_entries_3265d4158b33e5dc:n.gHg,__wbg_iterator_9a24c88df860dc65:n.eW0,__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0:n.w6e,__wbindgen_is_undefined:n.vUM,__wbg_call_672a4d21634d4a24:n.wHY,__wbg_static_accessor_SELF_37c5d418e4bf5819:n.fb$,__wbg_static_accessor_GLOBAL_88a902d13a557d07:n.ii7,__wbg_static_accessor_WINDOW_5de37043a91a9c40:n.x0C,__wbg_new_23a2665fac83c611:n.c6u,__wbg_then_44b73946d2fb3e7d:n.GQG,__wbg_then_48b406749878a531:n.xV_,__wbg_resolve_4851785c9c5f573d:n.wJz,__wbg_call_7cccdd69e0791ae2:n.w9h,__wbg_next_6574e1a8a62d1055:n.Dn4,__wbindgen_number_get:n.sWe,__wbg_get_67b2ba62fc30de12:n.dzD,__wbg_instanceof_FileSystemFileHandle_d3d037cf85ee546c:n.KA3,__wbg_createWritable_b4ed240dc879905e:n.kPb,__wbg_getFile_2607bc0123c724e0:n.ycy,__wbg_setkeepexistingdata_ee7c8cb466e9477f:n.aKt,__wbg_component_unwrap:n.dT0,__wbindgen_jsval_loose_eq:n.U8c,__wbindgen_boolean_get:n.NhE,__wbindgen_as_number:n.qmw,__wbindgen_error_new:n.RjG,__wbg_getwithrefkey_2d7fdfea9645a25b:n.A2U,__wbg_set_2873a5cee2324875:n.v1k,__wbg_String_1b2069caba3b9783:n.JF5,__wbindgen_bigint_from_u64:n.Qg3,__wbg_point_new:n.nA9,__wbg_diagramelementspec_new:n.Dr_,__wbg_shape_new:n._cl,__wbg_person_new:n.c1W,__wbg_softwaresystem_new:n.dM0,__wbg_boundary_new:n.HCo,__wbg_container_new:n.e57,__wbg_component_new:n.WJm,__wbg_deploymentnode_new:n.ezj,__wbg_relationship_new:n.NpJ,__wbg_minaerror_new:n.EkI,__wbg_new_8a6f238a6ece86ea:n.$Pc,__wbg_stack_0ed75d68575b0f3c:n.x$X,__wbg_error_7534b8e9a36f1ab4:n.WYM,__wbg_queueMicrotask_97d92b4fcc8a61c5:n._mt,__wbg_queueMicrotask_d3219def82552485:n.k2R,__wbindgen_cb_drop:n.LCp,__wbg_person_unwrap:n.Xv$,__wbg_container_unwrap:n.xB8,__wbg_new_e25e5aab09ff45db:n.RG9,__wbg_abort_775ef1d17fc65868:n.gMQ,__wbg_signal_aaf9ad74119f20a4:n.CF8,__wbg_seek_3f0f8d7591f648d7:n.Zk3,__wbg_write_397d977609afc729:n.Vob,__wbg_instanceof_Window_def73ea0955fc569:n.vF0,__wbg_get_79e1d7592116244e:n.X_o,__wbg_set_d9a72c1550e3f2b5:n.pdH,__wbg_enqueue_bb16ba72f537dc9e:n.QHd,__wbg_close_304cc1fef3466669:n.oaw,__wbg_close_24caca68e93b9c03:n.jeC,__wbg_setcreate_139bad94b2874fb5:n.kF0,__wbg_setrecursive_536113a081d6177a:n.ugc,__wbg_postMessage_83a8d58d3fcb6c13:n.A2$,__wbg_instanceof_File_a4e2256bf71955a9:n.gjJ,__wbg_lastModified_7a9e61b3961224b8:n.gvw,__wbg_has_a5ea9117f258a0ec:n.HSm,__wbg_fetch_4465c2b10f21a927:n.o0R,__wbg_fetch_509096533071c657:n.gRe,__wbg_newwithstrandinit_06c535e0a867c635:n.heb,__wbg_byobRequest_77d9adf63337edfb:n.JpR,__wbg_close_5ce03e29be453811:n.sQY,__wbg_append_299d5d48292c0495:n.cVx,__wbg_append_b44785ebeb668479:n.d_N,__wbg_append_b2d1fc16de2a0e81:n.WqA,__wbg_new_9fd39a253424609a:n.z09,__wbg_respond_1f279fa9f8edcb1c:n.dSQ,__wbg_view_fd8a56e8983f448d:n.NgT,__wbg_instanceof_FileSystemDirectoryHandle_0906fc139d75557b:n.Cjr,__wbg_removeEntry_9f6bc325e3383e59:n.m_N,__wbg_removeEntry_a424e90dff229b19:n.lkn,__wbg_getFileHandle_5fb877d1ecc74d52:n.Wkh,__wbg_getDirectoryHandle_c48a138373d79b3d:n.kTu,__wbg_entries_19efe296f7d36df9:n.RCF,__wbg_setcreate_4ca762e23d9f78da:n.N9Q,__wbg_settype_39ed370d3edd403c:n.a4S,__wbg_name_e4a115def9e2bbaa:n.Yeo,__wbg_arrayBuffer_f18c144cd0125f07:n.RGi,__wbg_newwithu8arraysequenceandoptions_068570c487f69127:n.qe7,__wbg_size_3808d41635a9c259:n.$CF,__wbg_text_1f39a8afe3c70a99:n.CFe,__wbg_crypto_ed58b8e10a292839:n.ilI,__wbg_process_5c1d670bc53614b8:n.Evb,__wbg_versions_c71aa1626a93e0a1:n.ooJ,__wbg_node_02999533c4ea02e3:n.OtZ,__wbg_require_79b1e9274cde3c87:n.Ltb,__wbg_msCrypto_0a36e2ec3a343d26:n.HOd,__wbg_randomFillSync_ab2cfe79ebbf2740:n.NNx,__wbg_getRandomValues_bcb4912f16000dc4:n.FGp,__wbg_relationship_unwrap:n.KM7,__wbg_instanceof_Response_f2cc20d9f7dfd644:n.Hzn,__wbg_arrayBuffer_d1b44c4390db422f:n._iy,__wbg_url_ae10c34ca209681d:n.Tp3,__wbg_status_f6360336ca686bf0:n.kK3,__wbg_headers_9cb51cfd2ac780a4:n.Moj,__wbg_setmethod_3c5280fe5d890842:n._hX,__wbg_setsignal_75b21ef3a81de905:n.l0x,__wbg_setcredentials_c3a22f1cd105a2c6:n.uw1,__wbg_setheaders_834c0bdb6a8949ad:n.rk2,__wbg_setbody_5923b78a95eedf29:n.Nhd,__wbg_setmode_5dc300b865044b65:n.BFX,__wbg_new_018dcc2d6c8c2f6a:n.RR8,__wbg_append_8c7dd8d641a5f01b:n.Tbm,__wbg_localStorage_1406c99c39728187:n.x8V,__wbg_softwaresystem_unwrap:n.qre,__wbg_shape_unwrap:n.D7n,__wbg_deploymentnode_unwrap:n._Zx,__wbg_point_unwrap:n._QJ,__wbg_boundary_unwrap:n.Wq,__wbg_diagramelementspec_unwrap:n.W3f,__wbindgen_jsval_eq:n.BGI,__wbindgen_in:n.zEy,__wbindgen_is_bigint:n.YkQ,__wbindgen_closure_wrapper1249:n.nJO,__wbindgen_init_externref_table:n.bLn}})},457:(e,_,t)=>{let n;function r(e){n=e}t.d(_,{$CF:()=>Ft,$Pc:()=>j_,A2$:()=>L_,A2U:()=>Ve,BFX:()=>lt,BGI:()=>rn,CF8:()=>Rt,CFe:()=>Et,Cjr:()=>n_,D7n:()=>vt,DMD:()=>$t,Dn4:()=>M_,Dr_:()=>Ee,EkI:()=>y_,Evb:()=>$_,F$t:()=>De,FGp:()=>Qe,FHK:()=>le,GQG:()=>Ht,GuA:()=>tn,HBq:()=>ot,HCo:()=>ue,HOd:()=>h_,HSm:()=>Xe,HtP:()=>q_,Hzn:()=>o_,JD7:()=>j,JF5:()=>ie,JpR:()=>pe,KA3:()=>r_,KM7:()=>V_,LCp:()=>Qt,LMq:()=>Wt,Llp:()=>x,Ltb:()=>et,M2:()=>x_,Moj:()=>Ze,N9Q:()=>bt,NNx:()=>Y_,NgT:()=>Gt,NhE:()=>Pt,Nhd:()=>gt,NpJ:()=>K_,OtZ:()=>C_,Oxg:()=>F,PRY:()=>en,Py0:()=>sn,QHd:()=>Me,QRK:()=>gn,Qg3:()=>Lt,Qnr:()=>wn,RCF:()=>We,RG9:()=>A_,RGi:()=>we,RKz:()=>Ke,RR8:()=>v_,RjG:()=>Kt,Ry:()=>d_,SJf:()=>s_,TOc:()=>qt,Tbm:()=>ae,Tp3:()=>Mt,U8c:()=>on,Vob:()=>Bt,VrZ:()=>D_,W3f:()=>He,WJm:()=>xe,WYM:()=>Ne,Wkh:()=>$e,Wq:()=>de,WqA:()=>ge,X_o:()=>Ye,Xb8:()=>Je,Xv$:()=>N_,Y6F:()=>It,Yb6:()=>c_,Yeo:()=>m_,YkQ:()=>Zt,Zk3:()=>nt,ZrD:()=>e_,_Cc:()=>k,_QJ:()=>U_,_Ue:()=>fe,_Zx:()=>qe,_cl:()=>mt,_hX:()=>ft,_iy:()=>be,_mt:()=>Q_,a4S:()=>ht,aIY:()=>z_,aKt:()=>dt,bLn:()=>Xt,c1W:()=>G_,c6u:()=>R_,cVx:()=>se,cyg:()=>he,dM0:()=>zt,dSQ:()=>tt,dT0:()=>je,d_N:()=>ce,dzD:()=>Te,e57:()=>ke,eIr:()=>u_,eW0:()=>b_,ezj:()=>Ie,fb$:()=>St,fcg:()=>t_,gGA:()=>__,gHg:()=>Ce,gMQ:()=>oe,gRe:()=>Ue,gjJ:()=>i_,gvw:()=>w_,hI8:()=>I_,heb:()=>E_,iAh:()=>st,ii7:()=>kt,ilI:()=>Ae,jeC:()=>Re,jwJ:()=>Nt,k2R:()=>T_,kF0:()=>ct,kK3:()=>Dt,kPb:()=>Se,kTu:()=>Le,l0x:()=>yt,lIU:()=>r,lkn:()=>Z_,m_N:()=>X_,nA9:()=>B_,nJO:()=>Tt,o0R:()=>Be,oGe:()=>p_,oaw:()=>Fe,ooJ:()=>Ct,p8e:()=>it,pR9:()=>l_,pWA:()=>Ge,pdH:()=>at,qNE:()=>cn,qe7:()=>H_,qmw:()=>Ut,qre:()=>xt,qvD:()=>_n,rk2:()=>ut,rl:()=>Yt,sQY:()=>ze,sWe:()=>an,tER:()=>W_,tZf:()=>P_,ugc:()=>pt,uod:()=>g_,uw1:()=>wt,v1k:()=>rt,vF0:()=>a_,vUM:()=>nn,vVD:()=>O_,va5:()=>F_,w6e:()=>Ot,w9h:()=>ve,wHY:()=>me,wJz:()=>_t,wd3:()=>S_,x$X:()=>jt,x0C:()=>At,x6W:()=>ye,x8V:()=>f_,xB8:()=>Oe,xV_:()=>Jt,ycJ:()=>bn,ycy:()=>Pe,yqB:()=>J_,z09:()=>k_,zEy:()=>Vt}),e=t.hmd(e);let i=0,o=null;function s(){return null!==o&&0!==o.byteLength||(o=new Uint8Array(n.memory.buffer)),o}let a=new("undefined"==typeof TextEncoder?(0,e.require)("util").TextEncoder:TextEncoder)("utf-8");const g="function"==typeof a.encodeInto?function(e,_){return a.encodeInto(e,_)}:function(e,_){const t=a.encode(e);return _.set(t),{read:e.length,written:t.length}};function c(e,_,t){if(void 0===t){const t=a.encode(e),n=_(t.length,1)>>>0;return s().subarray(n,n+t.length).set(t),i=t.length,n}let n=e.length,r=_(n,1)>>>0;const o=s();let c=0;for(;c<n;c++){const _=e.charCodeAt(c);if(_>127)break;o[r+c]=_}if(c!==n){0!==c&&(e=e.slice(c)),r=t(r,n,n=c+3*e.length,1)>>>0;const _=s().subarray(r+c,r+n);c+=g(e,_).written,r=t(r,n,c,1)>>>0}return i=c,r}let b=null;function w(){return(null===b||!0===b.buffer.detached||void 0===b.buffer.detached&&b.buffer!==n.memory.buffer)&&(b=new DataView(n.memory.buffer)),b}let u=new("undefined"==typeof TextDecoder?(0,e.require)("util").TextDecoder:TextDecoder)("utf-8",{ignoreBOM:!0,fatal:!0});function d(e,_){return e>>>=0,u.decode(s().subarray(e,e+_))}function f(e){const _=n.__externref_table_alloc();return n.__wbindgen_export_4.set(_,e),_}function l(e,_){try{return e.apply(this,_)}catch(e){const _=f(e);n.__wbindgen_exn_store(_)}}function p(e){return null==e}u.decode();const y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>{n.__wbindgen_export_6.get(e.dtor)(e.a,e.b)}));function h(e){const _=typeof e;if("number"==_||"boolean"==_||null==e)return`${e}`;if("string"==_)return`"${e}"`;if("symbol"==_){const _=e.description;return null==_?"Symbol":`Symbol(${_})`}if("function"==_){const _=e.name;return"string"==typeof _&&_.length>0?`Function(${_})`:"Function"}if(Array.isArray(e)){const _=e.length;let t="[";_>0&&(t+=h(e[0]));for(let n=1;n<_;n++)t+=", "+h(e[n]);return t+="]",t}const t=/\[object ([^\]]+)\]/.exec(toString.call(e));let n;if(!(t&&t.length>1))return toString.call(e);if(n=t[1],"Object"==n)try{return"Object("+JSON.stringify(e)+")"}catch(e){return"Object"}return e instanceof Error?`${e.name}: ${e.message}\n${e.stack}`:n}function m(e,_){e>>>=0;const t=w(),r=[];for(let i=e;i<e+4*_;i+=4)r.push(n.__wbindgen_export_4.get(t.getUint32(i,!0)));return n.__externref_drop_slice(e,_),r}function v(e,_){const t=_(4*e.length,4)>>>0;for(let _=0;_<e.length;_++){const n=f(e[_]);w().setUint32(t+4*_,n,!0)}return i=e.length,t}function R(e,_){if(!(e instanceof _))throw new Error(`expected instance of ${_.name}`)}function F(e,_,t,r){return n.open_remote_diagram(e,_,t,r)}function z(e){const _=n.__wbindgen_export_4.get(e);return n.__externref_table_dealloc(e),_}function x(e,_){let t,r;try{const a=c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),g=i,b=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=i,u=n.diagram_plantuml_url_from_diagram_url(a,g,b,w);var o=u[0],s=u[1];if(u[3])throw o=0,s=0,z(u[2]);return t=o,r=s,d(o,s)}finally{n.__wbindgen_free(t,r,1)}}function j(e,_){let t,r;try{const a=c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),g=i,b=c(_,n.__wbindgen_malloc,n.__wbindgen_realloc),w=i,u=n.diagram_spec_url_from_diagram_url(a,g,b,w);var o=u[0],s=u[1];if(u[3])throw o=0,s=0,z(u[2]);return t=o,r=s,d(o,s)}finally{n.__wbindgen_free(t,r,1)}}function k(e){let _,t;try{const r=c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),o=i,s=n.project_settings_url(r,o);return _=s[0],t=s[1],d(s[0],s[1])}finally{n.__wbindgen_free(_,t,1)}}function O(e,_,t){n.closure138_externref_shim(e,_,t)}const S=["omit","same-origin","include"],A=["same-origin","no-cors","cors","navigate"];"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_aisettings_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_addelementtag_free(e>>>0,1)));const D="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_baseelement_free(e>>>0,1)));class I{static __wrap(e){e>>>=0;const _=Object.create(I.prototype);return _.__wbg_ptr=e,D.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,D.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_baseelement_free(e,0)}get alias(){const e=n.__wbg_get_baseelement_alias(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set alias(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_alias(this.__wbg_ptr,_,t)}get label(){const e=n.__wbg_get_baseelement_label(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set label(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_label(this.__wbg_ptr,_,t)}get description(){const e=n.__wbg_get_baseelement_description(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set description(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_description(this.__wbg_ptr,_,t)}get sprite(){const e=n.__wbg_get_baseelement_sprite(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set sprite(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_sprite(this.__wbg_ptr,_,t)}get tags(){const e=n.__wbg_get_baseelement_tags(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set tags(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_tags(this.__wbg_ptr,_,t)}get link(){const e=n.__wbg_get_baseelement_link(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set link(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_link(this.__wbg_ptr,_,t)}get uuid(){const e=n.__wbg_get_baseelement_uuid(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set uuid(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_uuid(this.__wbg_ptr,_,t)}get notes(){const e=n.__wbg_get_baseelement_notes(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set notes(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_baseelement_notes(this.__wbg_ptr,_,t)}}const q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_boundary_free(e>>>0,1)));class E{static __wrap(e){e>>>=0;const _=Object.create(E.prototype);return _.__wbg_ptr=e,q.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof E?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_boundary_free(e,0)}get base_data(){const e=n.__wbg_get_boundary_base_data(this.__wbg_ptr);return I.__wrap(e)}set base_data(e){R(e,I);var _=e.__destroy_into_raw();n.__wbg_set_boundary_base_data(this.__wbg_ptr,_)}get boundary_type(){return n.__wbg_get_boundary_boundary_type(this.__wbg_ptr)}set boundary_type(e){n.__wbg_set_boundary_boundary_type(this.__wbg_ptr,p(e)?0:f(e))}get boundary_custom_type(){const e=n.__wbg_get_boundary_boundary_custom_type(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set boundary_custom_type(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_addelementtag_legend_sprite(this.__wbg_ptr,_,t)}get sub_elements(){const e=n.__wbg_get_boundary_sub_elements(this.__wbg_ptr);var _=m(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),_}set sub_elements(e){const _=v(e,n.__wbindgen_malloc),t=i;n.__wbg_set_boundary_sub_elements(this.__wbg_ptr,_,t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_c4elements_free(e>>>0,1)));const H="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_component_free(e>>>0,1)));class J{static __wrap(e){e>>>=0;const _=Object.create(J.prototype);return _.__wbg_ptr=e,H.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof J?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,H.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_component_free(e,0)}get base_data(){const e=n.__wbg_get_component_base_data(this.__wbg_ptr);return I.__wrap(e)}set base_data(e){R(e,I);var _=e.__destroy_into_raw();n.__wbg_set_component_base_data(this.__wbg_ptr,_)}get technology(){const e=n.__wbg_get_component_technology(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set technology(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_component_technology(this.__wbg_ptr,_,t)}get component_type(){return n.__wbg_get_component_component_type(this.__wbg_ptr)}set component_type(e){n.__wbg_set_component_component_type(this.__wbg_ptr,p(e)?0:f(e))}}const M="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_container_free(e>>>0,1)));class W{static __wrap(e){e>>>=0;const _=Object.create(W.prototype);return _.__wbg_ptr=e,M.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof W?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,M.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_container_free(e,0)}get base_data(){const e=n.__wbg_get_container_base_data(this.__wbg_ptr);return I.__wrap(e)}set base_data(e){R(e,I);var _=e.__destroy_into_raw();n.__wbg_set_container_base_data(this.__wbg_ptr,_)}get technology(){const e=n.__wbg_get_container_technology(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set technology(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_container_technology(this.__wbg_ptr,_,t)}get container_type(){return n.__wbg_get_container_container_type(this.__wbg_ptr)}set container_type(e){n.__wbg_set_container_container_type(this.__wbg_ptr,p(e)?0:f(e))}}const C="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_deploymentnode_free(e>>>0,1)));class G{static __wrap(e){e>>>=0;const _=Object.create(G.prototype);return _.__wbg_ptr=e,C.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof G?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,C.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_deploymentnode_free(e,0)}get base_data(){const e=n.__wbg_get_boundary_base_data(this.__wbg_ptr);return I.__wrap(e)}set base_data(e){R(e,I);var _=e.__destroy_into_raw();n.__wbg_set_boundary_base_data(this.__wbg_ptr,_)}get deploymeny_node_custom_type(){const e=n.__wbg_get_deploymentnode_deploymeny_node_custom_type(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set deploymeny_node_custom_type(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_addelementtag_legend_sprite(this.__wbg_ptr,_,t)}get deployment_node_type(){return n.__wbg_get_deploymentnode_deployment_node_type(this.__wbg_ptr)}set deployment_node_type(e){n.__wbg_set_deploymentnode_deployment_node_type(this.__wbg_ptr,p(e)?0:f(e))}get sub_elements(){const e=n.__wbg_get_deploymentnode_sub_elements(this.__wbg_ptr);var _=m(e[0],e[1]).slice();return n.__wbindgen_free(e[0],4*e[1],4),_}set sub_elements(e){const _=v(e,n.__wbindgen_malloc),t=i;n.__wbg_set_boundary_sub_elements(this.__wbg_ptr,_,t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_diagram_free(e>>>0,1)));const N="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_diagramelementspec_free(e>>>0,1)));class B{static __wrap(e){e>>>=0;const _=Object.create(B.prototype);return _.__wbg_ptr=e,N.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof B?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_diagramelementspec_free(e,0)}get alias(){const e=n.__wbg_get_diagramelementspec_alias(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set alias(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_diagramelementspec_alias(this.__wbg_ptr,_,t)}get from(){const e=n.__wbg_get_diagramelementspec_from(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set from(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_diagramelementspec_from(this.__wbg_ptr,_,t)}get to(){const e=n.__wbg_get_diagramelementspec_to(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set to(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_diagramelementspec_to(this.__wbg_ptr,_,t)}get shapes(){const e=n.__wbg_get_diagramelementspec_shapes(this.__wbg_ptr);let _;return 0!==e[0]&&(_=m(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),_}set shapes(e){var _=p(e)?0:v(e,n.__wbindgen_malloc),t=i;n.__wbg_set_diagramelementspec_shapes(this.__wbg_ptr,_,t)}get element_type(){return n.__wbg_get_diagramelementspec_element_type(this.__wbg_ptr)}set element_type(e){n.__wbg_set_diagramelementspec_element_type(this.__wbg_ptr,p(e)?0:f(e))}get position(){const e=n.__wbg_get_diagramelementspec_position(this.__wbg_ptr);return 0===e?void 0:K.__wrap(e)}set position(e){let _=0;p(e)||(R(e,K),_=e.__destroy_into_raw()),n.__wbg_set_diagramelementspec_position(this.__wbg_ptr,_)}get size(){const e=n.__wbg_get_diagramelementspec_size(this.__wbg_ptr);return 0===e?void 0:te.__wrap(e)}set size(e){let _=0;p(e)||(R(e,te),_=e.__destroy_into_raw()),n.__wbg_set_diagramelementspec_size(this.__wbg_ptr,_)}get inner_specs(){const e=n.__wbg_get_diagramelementspec_inner_specs(this.__wbg_ptr);let _;return 0!==e[0]&&(_=m(e[0],e[1]).slice(),n.__wbindgen_free(e[0],4*e[1],4)),_}set inner_specs(e){var _=p(e)?0:v(e,n.__wbindgen_malloc),t=i;n.__wbg_set_diagramelementspec_inner_specs(this.__wbg_ptr,_,t)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_diagramplantuml_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_diagramspec_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_diagramsthemesettings_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_elementdata_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_hookpayload_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_intounderlyingbytesource_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_intounderlyingsink_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_intounderlyingsource_free(e>>>0,1)));const U="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_minaerror_free(e>>>0,1)));class L{static __wrap(e){e>>>=0;const _=Object.create(L.prototype);return _.__wbg_ptr=e,U.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,U.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_minaerror_free(e,0)}get code(){return n.__wbg_get_minaerror_code(this.__wbg_ptr)}set code(e){n.__wbg_set_minaerror_code(this.__wbg_ptr,e)}get msg(){let e,_;try{const t=n.__wbg_get_minaerror_msg(this.__wbg_ptr);return e=t[0],_=t[1],d(t[0],t[1])}finally{n.__wbindgen_free(e,_,1)}}set msg(e){const _=c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_minaerror_msg(this.__wbg_ptr,_,t)}}const $="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_person_free(e>>>0,1)));class P{static __wrap(e){e>>>=0;const _=Object.create(P.prototype);return _.__wbg_ptr=e,$.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof P?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,$.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_person_free(e,0)}get base_data(){const e=n.__wbg_get_container_base_data(this.__wbg_ptr);return I.__wrap(e)}set base_data(e){R(e,I);var _=e.__destroy_into_raw();n.__wbg_set_container_base_data(this.__wbg_ptr,_)}get person_type(){return n.__wbg_get_person_person_type(this.__wbg_ptr)}set person_type(e){n.__wbg_set_person_person_type(this.__wbg_ptr,p(e)?0:f(e))}}const Q="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_point_free(e>>>0,1)));class T{static __wrap(e){e>>>=0;const _=Object.create(T.prototype);return _.__wbg_ptr=e,Q.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof T?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Q.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_point_free(e,0)}get x(){return n.__wbg_get_point_x(this.__wbg_ptr)}set x(e){n.__wbg_set_point_x(this.__wbg_ptr,e)}get y(){return n.__wbg_get_point_y(this.__wbg_ptr)}set y(e){n.__wbg_set_point_y(this.__wbg_ptr,e)}}const Y="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_position_free(e>>>0,1)));class K{static __wrap(e){e>>>=0;const _=Object.create(K.prototype);return _.__wbg_ptr=e,Y.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_position_free(e,0)}get left(){const e=n.__wbg_get_position_left(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set left(e){n.__wbg_set_position_left(this.__wbg_ptr,!p(e),p(e)?0:e)}get top(){const e=n.__wbg_get_position_top(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set top(e){n.__wbg_set_position_top(this.__wbg_ptr,!p(e),p(e)?0:e)}get z_index(){const e=n.__wbg_get_position_z_index(this.__wbg_ptr);return 4294967297===e?void 0:e}set z_index(e){n.__wbg_set_position_z_index(this.__wbg_ptr,p(e)?4294967297:0|e)}get angle(){const e=n.__wbg_get_position_angle(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set angle(e){n.__wbg_set_position_angle(this.__wbg_ptr,!p(e),p(e)?0:e)}}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_project_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_projectlibrary_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_projectsettings_free(e>>>0,1)));const V="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_relationship_free(e>>>0,1)));class X{static __wrap(e){e>>>=0;const _=Object.create(X.prototype);return _.__wbg_ptr=e,V.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof X?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_relationship_free(e,0)}get base_data(){const e=n.__wbg_get_container_base_data(this.__wbg_ptr);return I.__wrap(e)}set base_data(e){R(e,I);var _=e.__destroy_into_raw();n.__wbg_set_container_base_data(this.__wbg_ptr,_)}get from(){const e=n.__wbg_get_relationship_from(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set from(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_container_technology(this.__wbg_ptr,_,t)}get to(){const e=n.__wbg_get_relationship_to(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set to(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_relationship_to(this.__wbg_ptr,_,t)}get technology(){const e=n.__wbg_get_relationship_technology(this.__wbg_ptr);let _;return 0!==e[0]&&(_=d(e[0],e[1]).slice(),n.__wbindgen_free(e[0],1*e[1],1)),_}set technology(e){var _=p(e)?0:c(e,n.__wbindgen_malloc,n.__wbindgen_realloc),t=i;n.__wbg_set_relationship_technology(this.__wbg_ptr,_,t)}get relationship_type(){return n.__wbg_get_relationship_relationship_type(this.__wbg_ptr)}set relationship_type(e){n.__wbg_set_relationship_relationship_type(this.__wbg_ptr,p(e)?0:f(e))}}const Z="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_shape_free(e>>>0,1)));class ee{static __wrap(e){e>>>=0;const _=Object.create(ee.prototype);return _.__wbg_ptr=e,Z.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof ee?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,Z.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_shape_free(e,0)}get shape_type(){return n.__wbg_get_shape_shape_type(this.__wbg_ptr)}set shape_type(e){n.__wbg_set_shape_shape_type(this.__wbg_ptr,p(e)?0:f(e))}get position(){const e=n.__wbg_get_shape_position(this.__wbg_ptr);return 0===e?void 0:K.__wrap(e)}set position(e){let _=0;p(e)||(R(e,K),_=e.__destroy_into_raw()),n.__wbg_set_shape_position(this.__wbg_ptr,_)}get size(){const e=n.__wbg_get_shape_size(this.__wbg_ptr);return 0===e?void 0:te.__wrap(e)}set size(e){let _=0;p(e)||(R(e,te),_=e.__destroy_into_raw()),n.__wbg_set_shape_size(this.__wbg_ptr,_)}}const _e="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_size_free(e>>>0,1)));class te{static __wrap(e){e>>>=0;const _=Object.create(te.prototype);return _.__wbg_ptr=e,_e.register(_,_.__wbg_ptr,_),_}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,_e.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_size_free(e,0)}get width(){const e=n.__wbg_get_size_width(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set width(e){n.__wbg_set_size_width(this.__wbg_ptr,!p(e),p(e)?0:e)}get height(){const e=n.__wbg_get_size_height(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set height(e){n.__wbg_set_size_height(this.__wbg_ptr,!p(e),p(e)?0:e)}get scale_x(){const e=n.__wbg_get_size_scale_x(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set scale_x(e){n.__wbg_set_size_scale_x(this.__wbg_ptr,!p(e),p(e)?0:e)}get scale_y(){const e=n.__wbg_get_size_scale_y(this.__wbg_ptr);return 0===e[0]?void 0:e[1]}set scale_y(e){n.__wbg_set_size_scale_y(this.__wbg_ptr,!p(e),p(e)?0:e)}}const ne="undefined"==typeof FinalizationRegistry?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry((e=>n.__wbg_softwaresystem_free(e>>>0,1)));class re{static __wrap(e){e>>>=0;const _=Object.create(re.prototype);return _.__wbg_ptr=e,ne.register(_,_.__wbg_ptr,_),_}static __unwrap(e){return e instanceof re?e.__destroy_into_raw():0}__destroy_into_raw(){const e=this.__wbg_ptr;return this.__wbg_ptr=0,ne.unregister(this),e}free(){const e=this.__destroy_into_raw();n.__wbg_softwaresystem_free(e,0)}get base_data(){const e=n.__wbg_get_component_base_data(this.__wbg_ptr);return I.__wrap(e)}set base_data(e){R(e,I);var _=e.__destroy_into_raw();n.__wbg_set_component_base_data(this.__wbg_ptr,_)}get system_type(){return n.__wbg_get_softwaresystem_system_type(this.__wbg_ptr)}set system_type(e){n.__wbg_set_softwaresystem_system_type(this.__wbg_ptr,p(e)?0:f(e))}}function ie(e,_){const t=c(String(_),n.__wbindgen_malloc,n.__wbindgen_realloc),r=i;w().setInt32(e+4,r,!0),w().setInt32(e+0,t,!0)}function oe(e){e.abort()}function se(){return l((function(e,_,t,n,r){e.append(d(_,t),d(n,r))}),arguments)}function ae(){return l((function(e,_,t,n,r){e.append(d(_,t),d(n,r))}),arguments)}function ge(){return l((function(e,_,t,n,r,i){e.append(d(_,t),n,d(r,i))}),arguments)}function ce(){return l((function(e,_,t,n){e.append(d(_,t),n)}),arguments)}function be(){return l((function(e){return e.arrayBuffer()}),arguments)}function we(e){return e.arrayBuffer()}function ue(e){return E.__wrap(e)}function de(e){return E.__unwrap(e)}function fe(e){return e.buffer}function le(e){return e.buffer}function pe(e){const _=e.byobRequest;return p(_)?0:f(_)}function ye(e){return e.byteLength}function he(e){return e.byteOffset}function me(){return l((function(e,_){return e.call(_)}),arguments)}function ve(){return l((function(e,_,t){return e.call(_,t)}),arguments)}function Re(e){return e.close()}function Fe(){return l((function(e){e.close()}),arguments)}function ze(){return l((function(e){e.close()}),arguments)}function xe(e){return J.__wrap(e)}function je(e){return J.__unwrap(e)}function ke(e){return W.__wrap(e)}function Oe(e){return W.__unwrap(e)}function Se(e,_){return e.createWritable(_)}function Ae(e){return e.crypto}function De(e){console.debug(e)}function Ie(e){return G.__wrap(e)}function qe(e){return G.__unwrap(e)}function Ee(e){return B.__wrap(e)}function He(e){return B.__unwrap(e)}function Je(e){return e.done}function Me(){return l((function(e,_){e.enqueue(_)}),arguments)}function We(e){return e.entries()}function Ce(e){return Object.entries(e)}function Ge(e){console.error(e)}function Ne(e,_){let t,r;try{t=e,r=_,console.error(d(e,_))}finally{n.__wbindgen_free(t,r,1)}}function Be(e){return fetch(e)}function Ue(e,_){return e.fetch(_)}function Le(e,_,t,n){return e.getDirectoryHandle(d(_,t),n)}function $e(e,_,t,n){return e.getFileHandle(d(_,t),n)}function Pe(e){return e.getFile()}function Qe(){return l((function(e,_){e.getRandomValues(_)}),arguments)}function Te(){return l((function(e,_){return Reflect.get(e,_)}),arguments)}function Ye(){return l((function(e,_,t,r){const o=_[d(t,r)];var s=p(o)?0:c(o,n.__wbindgen_malloc,n.__wbindgen_realloc),a=i;w().setInt32(e+4,a,!0),w().setInt32(e+0,s,!0)}),arguments)}function Ke(e,_){return e[_>>>0]}function Ve(e,_){return e[_]}function Xe(){return l((function(e,_){return Reflect.has(e,_)}),arguments)}function Ze(e){return e.headers}function e_(e){console.info(e)}function __(e){let _;try{_=e instanceof ArrayBuffer}catch(e){_=!1}return _}function t_(e){let _;try{_=e instanceof Error}catch(e){_=!1}return _}function n_(e){let _;try{_=e instanceof FileSystemDirectoryHandle}catch(e){_=!1}return _}function r_(e){let _;try{_=e instanceof FileSystemFileHandle}catch(e){_=!1}return _}function i_(e){let _;try{_=e instanceof File}catch(e){_=!1}return _}function o_(e){let _;try{_=e instanceof Response}catch(e){_=!1}return _}function s_(e){let _;try{_=e instanceof Uint8Array}catch(e){_=!1}return _}function a_(e){let _;try{_=e instanceof Window}catch(e){_=!1}return _}function g_(e){return Array.isArray(e)}function c_(e){return Number.isSafeInteger(e)}function b_(){return Symbol.iterator}function w_(e){return e.lastModified}function u_(e){return e.length}function d_(e){return e.length}function f_(){return l((function(e){const _=e.localStorage;return p(_)?0:f(_)}),arguments)}function l_(e){console.log(e)}function p_(e){return e.message}function y_(e){return L.__wrap(e)}function h_(e){return e.msCrypto}function m_(e,_){const t=c(_.name,n.__wbindgen_malloc,n.__wbindgen_realloc),r=i;w().setInt32(e+4,r,!0),w().setInt32(e+0,t,!0)}function v_(){return l((function(){return new Headers}),arguments)}function R_(e,_){try{var t={a:e,b:_};const r=new Promise(((e,_)=>{const r=t.a;t.a=0;try{return function(e,_,t,r){n.closure72_externref_shim(e,_,t,r)}(r,t.b,e,_)}finally{t.a=r}}));return r}finally{t.a=t.b=0}}function F_(){return new Object}function z_(){return new Map}function x_(){return new Array}function j_(){return new Error}function k_(){return l((function(){return new FormData}),arguments)}function O_(e){return new Uint8Array(e)}function S_(e,_){return new Error(d(e,_))}function A_(){return l((function(){return new AbortController}),arguments)}function D_(e,_){return new Function(d(e,_))}function I_(e,_,t){return new Uint8Array(e,_>>>0,t>>>0)}function q_(e){return new Uint8Array(e>>>0)}function E_(){return l((function(e,_,t){return new Request(d(e,_),t)}),arguments)}function H_(){return l((function(e,_){return new Blob(e,_)}),arguments)}function J_(e){return e.next}function M_(){return l((function(e){return e.next()}),arguments)}function W_(){return l((function(e){return e.next()}),arguments)}function C_(e){return e.node}function G_(e){return P.__wrap(e)}function N_(e){return P.__unwrap(e)}function B_(e){return T.__wrap(e)}function U_(e){return T.__unwrap(e)}function L_(){return l((function(e,_){e.postMessage(_)}),arguments)}function $_(e){return e.process}function P_(e,_){return e.push(_)}function Q_(e){queueMicrotask(e)}function T_(e){return e.queueMicrotask}function Y_(){return l((function(e,_){e.randomFillSync(_)}),arguments)}function K_(e){return X.__wrap(e)}function V_(e){return X.__unwrap(e)}function X_(e,_,t){return e.removeEntry(d(_,t))}function Z_(e,_,t,n){return e.removeEntry(d(_,t),n)}function et(){return l((function(){return e.require}),arguments)}function _t(e){return Promise.resolve(e)}function tt(){return l((function(e,_){e.respond(_>>>0)}),arguments)}function nt(){return l((function(e,_){return e.seek(_)}),arguments)}function rt(e,_,t){e[_]=t}function it(e,_,t){e[_>>>0]=t}function ot(e,_,t){e.set(_,t>>>0)}function st(e,_,t){return e.set(_,t)}function at(){return l((function(e,_,t,n,r){e[d(_,t)]=d(n,r)}),arguments)}function gt(e,_){e.body=_}function ct(e,_){e.create=0!==_}function bt(e,_){e.create=0!==_}function wt(e,_){e.credentials=S[_]}function ut(e,_){e.headers=_}function dt(e,_){e.keepExistingData=0!==_}function ft(e,_,t){e.method=d(_,t)}function lt(e,_){e.mode=A[_]}function pt(e,_){e.recursive=0!==_}function yt(e,_){e.signal=_}function ht(e,_,t){e.type=d(_,t)}function mt(e){return ee.__wrap(e)}function vt(e){return ee.__unwrap(e)}function Rt(e){return e.signal}function Ft(e){return e.size}function zt(e){return re.__wrap(e)}function xt(e){return re.__unwrap(e)}function jt(e,_){const t=c(_.stack,n.__wbindgen_malloc,n.__wbindgen_realloc),r=i;w().setInt32(e+4,r,!0),w().setInt32(e+0,t,!0)}function kt(){const e="undefined"==typeof global?null:global;return p(e)?0:f(e)}function Ot(){const e="undefined"==typeof globalThis?null:globalThis;return p(e)?0:f(e)}function St(){const e="undefined"==typeof self?null:self;return p(e)?0:f(e)}function At(){const e="undefined"==typeof window?null:window;return p(e)?0:f(e)}function Dt(e){return e.status}function It(){return l((function(e){return JSON.stringify(e)}),arguments)}function qt(e,_,t){return e.subarray(_>>>0,t>>>0)}function Et(e){return e.text()}function Ht(e,_){return e.then(_)}function Jt(e,_,t){return e.then(_,t)}function Mt(e,_){const t=c(_.url,n.__wbindgen_malloc,n.__wbindgen_realloc),r=i;w().setInt32(e+4,r,!0),w().setInt32(e+0,t,!0)}function Wt(e){return e.value}function Ct(e){return e.versions}function Gt(e){const _=e.view;return p(_)?0:f(_)}function Nt(e){console.warn(e)}function Bt(){return l((function(e,_){return e.write(_)}),arguments)}function Ut(e){return+e}function Lt(e){return BigInt.asUintN(64,e)}function $t(e,_){const t="bigint"==typeof _?_:void 0;w().setBigInt64(e+8,p(t)?BigInt(0):t,!0),w().setInt32(e+0,!p(t),!0)}function Pt(e){return"boolean"==typeof e?e?1:0:2}function Qt(e){const _=e.original;return 1==_.cnt--&&(_.a=0,!0)}function Tt(e,_,t){const r=function(e,_,t,r){const i={a:e,b:_,cnt:1,dtor:139},o=(...e)=>{i.cnt++;const _=i.a;i.a=0;try{return r(_,i.b,...e)}finally{0==--i.cnt?(n.__wbindgen_export_6.get(i.dtor)(_,i.b),y.unregister(i)):i.a=_}};return o.original=i,y.register(o,i,i),o}(e,_,0,O);return r}function Yt(e,_){const t=c(h(_),n.__wbindgen_malloc,n.__wbindgen_realloc),r=i;w().setInt32(e+4,r,!0),w().setInt32(e+0,t,!0)}function Kt(e,_){return new Error(d(e,_))}function Vt(e,_){return e in _}function Xt(){const e=n.__wbindgen_export_4,_=e.grow(4);e.set(0,void 0),e.set(_+0,void 0),e.set(_+1,null),e.set(_+2,!0),e.set(_+3,!1)}function Zt(e){return"bigint"==typeof e}function en(e){return"function"==typeof e}function _n(e){return"object"==typeof e&&null!==e}function tn(e){return"string"==typeof e}function nn(e){return void 0===e}function rn(e,_){return e===_}function on(e,_){return e==_}function sn(){return n.memory}function an(e,_){const t="number"==typeof _?_:void 0;w().setFloat64(e+8,p(t)?0:t,!0),w().setInt32(e+0,!p(t),!0)}function gn(e){return e}function cn(e,_){const t="string"==typeof _?_:void 0;var r=p(t)?0:c(t,n.__wbindgen_malloc,n.__wbindgen_realloc),o=i;w().setInt32(e+4,o,!0),w().setInt32(e+0,r,!0)}function bn(e,_){return d(e,_)}function wn(e,_){throw new Error(d(e,_))}"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_themessettings_free(e>>>0,1))),"undefined"==typeof FinalizationRegistry||new FinalizationRegistry((e=>n.__wbg_usersettings_free(e>>>0,1)))},507:(e,_,t)=>{t.a(e,(async(e,n)=>{try{t.d(_,{Ay:()=>g,RC:()=>a,Y$:()=>o,wS:()=>s});var r=t(519),i=e([r]);async function o(e,_){if(_){const t="https://keadex.dev/api/download-gh-raw-file",n={headers:{"Keadex-Gh-Url":e}};return _&&(n.headers["Keadex-Gh-Authorization"]=_),await fetch(t,n)}return await fetch(e)}async function s(e,_,t){let n,i,s;try{n=(0,r._Cc)(e),i=(0,r.Llp)(e,_),s=(0,r.JD7)(e,_)}catch(e){throw console.error(e),new Error("Invalid URL: the provided URL is an invalid Mina project or diagram.")}if(n&&i&&s){let e,_,r;try{const a=await o(n,t),g=await o(i,t),c=await o(s,t);if(a.ok&&g.ok&&c.ok)return e=await a.text(),_=await g.text(),r=await c.text(),{projectSettingsJson:e,plantuml:_,spec:r};throw new Error}catch(e){throw console.error(e),new Error("Diagram or project settings not found. Please verify the URLs provided, or, if linking to a private repository, ensure the GitHub token is configured.")}}}async function a(e,_,t){try{const i=await s(e,_,t);var n;if(i)return{diagram:await(0,r.Oxg)(e,_,i.plantuml,i.spec),diagramsThemeSettings:null==(n=JSON.parse(i.projectSettingsJson).themes_settings)?void 0:n.diagrams_theme_settings}}catch(e){console.error(e)}}r=(i.then?(await i)():i)[0];const g={fetchGhRawFile:o,downloadDiagramData:s,openRemoteProjectDiagram:a};n()}catch(c){n(c)}}))},519:(e,_,t)=>{t.a(e,(async(e,n)=>{try{t.d(_,{JD7:()=>i.JD7,Llp:()=>i.Llp,Oxg:()=>i.Oxg,_Cc:()=>i._Cc});var r=t(196),i=t(457),o=e([r]);r=(o.then?(await o)():o)[0],(0,i.lIU)(r),r.__wbindgen_start(),n()}catch(e){n(e)}}))}},i={};function o(e){var _=i[e];if(void 0!==_)return _.exports;var t=i[e]={id:e,loaded:!1,exports:{}};return r[e](t,t.exports,o),t.loaded=!0,t.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",_="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",t="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",n=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},o.a=(r,i,o)=>{var s;o&&((s=[]).d=-1);var a,g,c,b=new Set,w=r.exports,u=new Promise(((e,_)=>{c=_,g=e}));u[_]=w,u[e]=e=>(s&&e(s),b.forEach(e),u.catch((e=>{}))),r.exports=u,i((r=>{var i;a=(r=>r.map((r=>{if(null!==r&&"object"==typeof r){if(r[e])return r;if(r.then){var i=[];i.d=0,r.then((e=>{o[_]=e,n(i)}),(e=>{o[t]=e,n(i)}));var o={};return o[e]=e=>e(i),o}}var s={};return s[e]=e=>{},s[_]=r,s})))(r);var o=()=>a.map((e=>{if(e[t])throw e[t];return e[_]})),g=new Promise((_=>{(i=()=>_(o)).r=0;var t=e=>e!==s&&!b.has(e)&&(b.add(e),e&&!e.d&&(i.r++,e.push(i)));a.map((_=>_[e](t)))}));return i.r?g:o()}),(e=>(e?c(u[t]=e):g(w),n(s)))),s&&s.d<0&&(s.d=0)},o.d=(e,_)=>{for(var t in _)o.o(_,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:_[t]})},o.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),o.o=(e,_)=>Object.prototype.hasOwnProperty.call(e,_),o.v=(e,_,t,n)=>Promise.all([import("fs"),import("url")]).then((([{readFile:e},{URL:_}])=>new Promise(((n,r)=>{e(new _(t+".module.wasm",import.meta.url),((e,_)=>{if(e)return r(e);n({arrayBuffer:()=>_})}))})))).then((e=>e.arrayBuffer())).then((e=>WebAssembly.instantiate(e,n))).then((_=>Object.assign(e,_.instance.exports)));var s=o(507),a=(s=await s).Ay,g=s.wS,c=s.Y$,b=s.RC;export{a as default,g as downloadDiagramData,c as fetchGhRawFile,b as openRemoteProjectDiagram};