Files
font2pic/frontend/dist/assets/hb-C3piUv6a.js

2 lines
12 KiB
JavaScript

import{g as Ze,a as we}from"./_commonjsHelpers-DsqdWQfm.js";function xe(b,k){for(var l=0;l<k.length;l++){const i=k[l];if(typeof i!="string"&&!Array.isArray(i)){for(const o in i)if(o!=="default"&&!(o in b)){const c=Object.getOwnPropertyDescriptor(i,o);c&&Object.defineProperty(b,o,c.get?c:{enumerable:!0,get:()=>i[o]})}}}return Object.freeze(Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}))}var H={exports:{}};const Ee={},e_=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"})),__=Ze(e_);var ie;function t_(){return ie||(ie=1,(function(b,k){var l=(()=>{var i=typeof document<"u"?document.currentScript?.src:void 0;return async function(o={}){var c,_=o,oe=typeof window=="object",P=typeof WorkerGlobalScope<"u",$=typeof process=="object"&&process.versions?.node&&process.type!="renderer",M=(e,t)=>{throw t};typeof __filename<"u"?i=__filename:P&&(i=self.location.href);var R="";function ce(e){return _.locateFile?_.locateFile(e,R):R+e}var W,A;if($){var z=__;R=__dirname+"/",A=e=>{e=S(e)?new URL(e):e;var t=z.readFileSync(e);return t},W=async(e,t=!0)=>{e=S(e)?new URL(e):e;var n=z.readFileSync(e,t?void 0:"utf8");return n},process.argv.length>1&&process.argv[1].replace(/\\/g,"/"),process.argv.slice(2),M=(e,t)=>{throw process.exitCode=e,t}}else if(oe||P){try{R=new URL(".",i).href}catch{}P&&(A=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),W=async e=>{if(S(e))return new Promise((n,a)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{if(r.status==200||r.status==0&&r.response){n(r.response);return}a(r.status)},r.onerror=a,r.send(null)});var t=await fetch(e,{credentials:"same-origin"});if(t.ok)return t.arrayBuffer();throw new Error(t.status+" : "+t.url)}}console.log.bind(console);var y=console.error.bind(console),v,T=!1,I,S=e=>e.startsWith("file://"),D,L,g,C,q=!1;function V(){var e=g.buffer;_.HEAP8=new Int8Array(e),_.HEAPU8=C=new Uint8Array(e),_.HEAPU16=new Uint16Array(e),_.HEAP32=new Int32Array(e),_.HEAPU32=new Uint32Array(e),_.HEAPF32=new Float32Array(e),new BigInt64Array(e),new BigUint64Array(e)}function se(){if(_.preRun)for(typeof _.preRun=="function"&&(_.preRun=[_.preRun]);_.preRun.length;)Ie(_.preRun.shift());K(Q)}function he(){q=!0,u.__wasm_call_ctors()}function be(){if(_.postRun)for(typeof _.postRun=="function"&&(_.postRun=[_.postRun]);_.postRun.length;)Te(_.postRun.shift());K(G)}var s=0,d=null;function le(e){s++,_.monitorRunDependencies?.(s)}function ge(e){if(s--,_.monitorRunDependencies?.(s),s==0&&d){var t=d;d=null,t()}}function X(e){_.onAbort?.(e),e="Aborted("+e+")",y(e),T=!0,e+=". Build with -sASSERTIONS for more info.";var t=new WebAssembly.RuntimeError(e);throw L?.(t),t}var B;function ye(){return ce("hb.wasm")}function ve(e){if(e==B&&v)return new Uint8Array(v);if(A)return A(e);throw"both async and sync fetching of the wasm failed"}async function de(e){if(!v)try{var t=await W(e);return new Uint8Array(t)}catch{}return ve(e)}async function pe(e,t){try{var n=await de(e),a=await WebAssembly.instantiate(n,t);return a}catch(r){y(`failed to asynchronously prepare wasm: ${r}`),X(r)}}async function me(e,t,n){if(!e&&!S(t)&&!$)try{var a=fetch(t,{credentials:"same-origin"}),r=await WebAssembly.instantiateStreaming(a,n);return r}catch(f){y(`wasm streaming compile failed: ${f}`),y("falling back to ArrayBuffer instantiation")}return pe(t,n)}function Re(){return{env:fe,wasi_snapshot_preview1:fe}}async function Ae(){function e(f,N){return u=f.exports,_.wasmExports=u,g=u.memory,_.wasmMemory=g,V(),m=u.__indirect_function_table,Ge(u),ge(),u}le();function t(f){return e(f.instance)}var n=Re();if(_.instantiateWasm)return new Promise((f,N)=>{_.instantiateWasm(n,(Ye,r_)=>{f(e(Ye))})});B??=ye();var a=await me(v,B,n),r=t(a);return r}class J{name="ExitStatus";constructor(t){this.message=`Program terminated with exit(${t})`,this.status=t}}var K=e=>{for(;e.length>0;)e.shift()(_)},G=[],Te=e=>G.push(e),Q=[],Ie=e=>Q.push(e),U=!0,Se=e=>ne(e),ke=()=>ae(),Pe=()=>X(""),Y=0,Me=()=>{U=!1,Y=0},p={},Z=e=>{if(e instanceof J||e=="unwind")return I;M(1,e)},w=()=>U||Y>0,x=e=>{I=e,w()||(_.onExit?.(e),T=!0),M(e,new J(e))},We=(e,t)=>{I=e,x(e)},Be=We,Ue=()=>{if(!w())try{Be(I)}catch(e){Z(e)}},Oe=e=>{if(!T)try{e(),Ue()}catch(t){Z(t)}},je=()=>performance.now(),Fe=(e,t)=>{if(p[e]&&(clearTimeout(p[e].id),delete p[e]),!t)return 0;var n=setTimeout(()=>{delete p[e],Oe(()=>te(e,je()))},t);return p[e]={id:n,timeout_ms:t},0},Ne=()=>2147483648,He=(e,t)=>Math.ceil(e/t)*t,$e=e=>{var t=g.buffer.byteLength,n=(e-t+65535)/65536|0;try{return g.grow(n),V(),1}catch{}},ze=e=>{var t=C.length;e>>>=0;var n=Ne();if(e>n)return!1;for(var a=1;a<=4;a*=2){var r=t*(1+.2/a);r=Math.min(r,e+100663296);var f=Math.min(n,He(Math.max(e,r),65536)),N=$e(f);if(N)return!0}return!1},E=e=>{const t=e.length;return[t%128|128,t>>7,...e]},De={i:127,p:127,j:126,f:125,d:124,e:111},ee=e=>E(Array.from(e,t=>{var n=De[t];return n})),Le=(e,t)=>{var n=Uint8Array.of(0,97,115,109,1,0,0,0,1,...E([1,96,...ee(t.slice(1)),...ee(t[0]==="v"?"":t[0])]),2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0),a=new WebAssembly.Module(n),r=new WebAssembly.Instance(a,{e:{f:e}}),f=r.exports.f;return f},m,_e=e=>m.get(e),Ce=(e,t)=>{if(h)for(var n=e;n<e+t;n++){var a=_e(n);a&&h.set(a,n)}},h,qe=e=>(h||(h=new WeakMap,Ce(0,m.length)),h.get(e)||0),O=[],Ve=()=>O.length?O.pop():m.grow(1),j=(e,t)=>m.set(e,t),Xe=(e,t)=>{var n=qe(e);if(n)return n;var a=Ve();try{j(a,e)}catch(f){if(!(f instanceof TypeError))throw f;var r=Le(e,t);j(a,r)}return h.set(e,a),a},Je=e=>{h.delete(_e(e)),j(e,null),O.push(e)},Ke=e=>re(e);_.noExitRuntime&&(U=_.noExitRuntime),_.print&&_.print,_.printErr&&(y=_.printErr),_.wasmBinary&&(v=_.wasmBinary),_.arguments&&_.arguments,_.thisProgram&&_.thisProgram,_.wasmMemory=g,_.wasmExports=u,_.stackSave=ke,_.stackRestore=Se,_.stackAlloc=Ke,_.addFunction=Xe,_.removeFunction=Je;var te,ne,re,ae;function Ge(e){_._hb_blob_create=e.hb_blob_create,_._hb_blob_destroy=e.hb_blob_destroy,_._hb_blob_get_length=e.hb_blob_get_length,_._hb_blob_get_data=e.hb_blob_get_data,_._hb_buffer_serialize=e.hb_buffer_serialize,_._hb_buffer_create=e.hb_buffer_create,_._hb_buffer_reset=e.hb_buffer_reset,_._hb_buffer_reference=e.hb_buffer_reference,_._hb_buffer_destroy=e.hb_buffer_destroy,_._hb_buffer_get_content_type=e.hb_buffer_get_content_type,_._hb_buffer_set_direction=e.hb_buffer_set_direction,_._hb_buffer_set_script=e.hb_buffer_set_script,_._hb_buffer_set_language=e.hb_buffer_set_language,_._hb_buffer_set_flags=e.hb_buffer_set_flags,_._hb_buffer_set_cluster_level=e.hb_buffer_set_cluster_level,_._hb_buffer_clear_contents=e.hb_buffer_clear_contents,_._hb_buffer_get_length=e.hb_buffer_get_length,_._hb_buffer_get_glyph_infos=e.hb_buffer_get_glyph_infos,_._hb_buffer_get_glyph_positions=e.hb_buffer_get_glyph_positions,_._hb_glyph_info_get_glyph_flags=e.hb_glyph_info_get_glyph_flags,_._hb_buffer_guess_segment_properties=e.hb_buffer_guess_segment_properties,_._hb_buffer_add_utf8=e.hb_buffer_add_utf8,_._hb_buffer_add_utf16=e.hb_buffer_add_utf16,_._hb_buffer_add_codepoints=e.hb_buffer_add_codepoints,_._hb_buffer_set_message_func=e.hb_buffer_set_message_func,_._hb_language_from_string=e.hb_language_from_string,_._hb_language_to_string=e.hb_language_to_string,_._hb_script_from_string=e.hb_script_from_string,_._hb_version=e.hb_version,_._hb_version_string=e.hb_version_string,_._hb_feature_from_string=e.hb_feature_from_string,_._malloc=e.malloc,_._free=e.free,_._hb_draw_funcs_set_move_to_func=e.hb_draw_funcs_set_move_to_func,_._hb_draw_funcs_set_line_to_func=e.hb_draw_funcs_set_line_to_func,_._hb_draw_funcs_set_quadratic_to_func=e.hb_draw_funcs_set_quadratic_to_func,_._hb_draw_funcs_set_cubic_to_func=e.hb_draw_funcs_set_cubic_to_func,_._hb_draw_funcs_set_close_path_func=e.hb_draw_funcs_set_close_path_func,_._hb_draw_funcs_create=e.hb_draw_funcs_create,_._hb_draw_funcs_destroy=e.hb_draw_funcs_destroy,_._hb_face_create=e.hb_face_create,_._hb_face_destroy=e.hb_face_destroy,_._hb_face_reference_table=e.hb_face_reference_table,_._hb_face_get_upem=e.hb_face_get_upem,_._hb_face_collect_unicodes=e.hb_face_collect_unicodes,_._hb_font_funcs_create=e.hb_font_funcs_create,_._hb_font_funcs_destroy=e.hb_font_funcs_destroy,_._hb_font_funcs_set_font_h_extents_func=e.hb_font_funcs_set_font_h_extents_func,_._hb_font_funcs_set_font_v_extents_func=e.hb_font_funcs_set_font_v_extents_func,_._hb_font_funcs_set_nominal_glyph_func=e.hb_font_funcs_set_nominal_glyph_func,_._hb_font_funcs_set_nominal_glyphs_func=e.hb_font_funcs_set_nominal_glyphs_func,_._hb_font_funcs_set_variation_glyph_func=e.hb_font_funcs_set_variation_glyph_func,_._hb_font_funcs_set_glyph_h_advance_func=e.hb_font_funcs_set_glyph_h_advance_func,_._hb_font_funcs_set_glyph_v_advance_func=e.hb_font_funcs_set_glyph_v_advance_func,_._hb_font_funcs_set_glyph_h_advances_func=e.hb_font_funcs_set_glyph_h_advances_func,_._hb_font_funcs_set_glyph_v_advances_func=e.hb_font_funcs_set_glyph_v_advances_func,_._hb_font_funcs_set_glyph_h_origin_func=e.hb_font_funcs_set_glyph_h_origin_func,_._hb_font_funcs_set_glyph_v_origin_func=e.hb_font_funcs_set_glyph_v_origin_func,_._hb_font_funcs_set_glyph_h_kerning_func=e.hb_font_funcs_set_glyph_h_kerning_func,_._hb_font_funcs_set_glyph_extents_func=e.hb_font_funcs_set_glyph_extents_func,_._hb_font_funcs_set_glyph_name_func=e.hb_font_funcs_set_glyph_name_func,_._hb_font_funcs_set_glyph_from_name_func=e.hb_font_funcs_set_glyph_from_name_func,_._hb_font_get_h_extents=e.hb_font_get_h_extents,_._hb_font_get_v_extents=e.hb_font_get_v_extents,_._hb_font_get_glyph_h_advance=e.hb_font_get_glyph_h_advance,_._hb_font_get_glyph_v_advance=e.hb_font_get_glyph_v_advance,_._hb_font_get_glyph_h_origin=e.hb_font_get_glyph_h_origin,_._hb_font_get_glyph_v_origin=e.hb_font_get_glyph_v_origin,_._hb_font_get_glyph_extents=e.hb_font_get_glyph_extents,_._hb_font_get_glyph_from_name=e.hb_font_get_glyph_from_name,_._hb_font_draw_glyph=e.hb_font_draw_glyph,_._hb_font_glyph_to_string=e.hb_font_glyph_to_string,_._hb_font_create=e.hb_font_create,_._hb_font_set_variations=e.hb_font_set_variations,_._hb_font_create_sub_font=e.hb_font_create_sub_font,_._hb_font_reference=e.hb_font_reference,_._hb_font_destroy=e.hb_font_destroy,_._hb_font_set_funcs=e.hb_font_set_funcs,_._hb_font_set_scale=e.hb_font_set_scale,_._hb_ot_layout_table_get_script_tags=e.hb_ot_layout_table_get_script_tags,_._hb_ot_layout_table_get_feature_tags=e.hb_ot_layout_table_get_feature_tags,_._hb_ot_layout_script_get_language_tags=e.hb_ot_layout_script_get_language_tags,_._hb_ot_layout_language_get_feature_tags=e.hb_ot_layout_language_get_feature_tags,_._hb_ot_layout_feature_get_name_ids=e.hb_ot_layout_feature_get_name_ids,_._hb_ot_name_list_names=e.hb_ot_name_list_names,_._hb_ot_name_get_utf16=e.hb_ot_name_get_utf16,_._hb_set_create=e.hb_set_create,_._hb_set_destroy=e.hb_set_destroy,_._hb_ot_tag_to_script=e.hb_ot_tag_to_script,_._hb_ot_tag_to_language=e.hb_ot_tag_to_language,_._hb_ot_var_get_axis_infos=e.hb_ot_var_get_axis_infos,_._hb_set_get_population=e.hb_set_get_population,_._hb_set_next_many=e.hb_set_next_many,_._hb_shape=e.hb_shape,te=e._emscripten_timeout,ne=e._emscripten_stack_restore,re=e._emscripten_stack_alloc,ae=e.emscripten_stack_get_current}var fe={_abort_js:Pe,_emscripten_runtime_keepalive_clear:Me,_setitimer_js:Fe,emscripten_resize_heap:ze,proc_exit:x},u=await Ae();function F(){if(s>0){d=F;return}if(se(),s>0){d=F;return}function e(){_.calledRun=!0,!T&&(he(),D?.(_),_.onRuntimeInitialized?.(),be())}_.setStatus?(_.setStatus("Running..."),setTimeout(()=>{setTimeout(()=>_.setStatus(""),1),e()},1)):e()}function Qe(){if(_.preInit)for(typeof _.preInit=="function"&&(_.preInit=[_.preInit]);_.preInit.length>0;)_.preInit.shift()()}return Qe(),F(),q?c=_:c=new Promise((e,t)=>{D=e,L=t}),c}})();b.exports=l,b.exports.default=l})(H)),H.exports}var ue=t_();const n_=we(ue),f_=xe({__proto__:null,default:n_},[ue]);export{f_ as h};