(()=>{"use strict";var e={d:(t,i)=>{for(var n in i)e.o(i,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:i[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{controls_type:()=>ve,controls_typeLists:()=>Xe,lists_zip:()=>ye,lists_zip_container:()=>xe,lists_zip_item:()=>be,unpack_iterable_object:()=>Ve,variables_change:()=>Pe,variables_get:()=>fe,variables_global:()=>Ye,variables_set:()=>Fe});var i={};e.r(i),e.d(i,{base_setup:()=>Ue,controls_delay:()=>we,controls_end_program:()=>He,controls_except:()=>it,controls_finally:()=>nt,controls_flow_statements:()=>ze,controls_for:()=>qe,controls_forEach:()=>Ke,controls_for_range:()=>je,controls_if:()=>ke,controls_if_else:()=>et,controls_if_elseif:()=>Ze,controls_if_if:()=>$e,controls_lambda:()=>_t,controls_main:()=>Ge,controls_pass:()=>ot,controls_range:()=>We,controls_repeat_ext:()=>st,controls_thread:()=>pt,controls_try:()=>tt,controls_try_finally:()=>Qe,controls_whileUntil:()=>Je,datetime_fromtimestamp:()=>It,do_while:()=>at,garbage_collection:()=>ut,gene_unique_identifier:()=>Tt,get_mem_alloc:()=>rt,get_mem_free:()=>lt,get_unique_identifier:()=>dt});var n={};e.r(n),e.d(n,{base_map:()=>yt,generate_cartesian_product:()=>bt,math_arithmetic:()=>Ot,math_bit:()=>ct,math_constant:()=>mt,math_constant_mp:()=>Et,math_constrain:()=>Dt,math_dec:()=>Ct,math_degree_to_radian:()=>Bt,math_indexer_number:()=>Ft,math_map:()=>ft,math_max_min:()=>At,math_number:()=>ht,math_number_base_conversion:()=>Lt,math_radian_to_degree:()=>Vt,math_random:()=>Nt,math_random_seed:()=>Pt,math_round:()=>Yt,math_selfcalcu:()=>Rt,math_to_int:()=>St,math_trig:()=>gt,text_to_number:()=>vt,text_to_number_skulpt:()=>Xt,turn_to_int:()=>xt});var s={};e.r(s),e.d(s,{ascii_to_char:()=>Kt,char_to_ascii:()=>Jt,number_to_text:()=>Qt,os_system:()=>Oi,text:()=>Ut,text_bytes:()=>Ht,text_capital:()=>ni,text_center:()=>si,text_char:()=>kt,text_char_at:()=>jt,text_char_at2:()=>qt,text_char_at3:()=>Mi,text_compareTo:()=>Ti,text_compare_to:()=>ii,text_create_with_container:()=>li,text_create_with_item:()=>di,text_encode:()=>mi,text_equals_starts_ends:()=>ti,text_eval:()=>Ei,text_find:()=>_i,text_format:()=>ri,text_format_noreturn:()=>hi,text_join:()=>Wt,text_join_seq:()=>oi,text_length:()=>zt,text_random_char:()=>$t,text_replace:()=>pi,text_split:()=>ai,text_strip:()=>ui,text_substring:()=>ei,text_substring2:()=>Zt,text_substring3:()=>Ii,text_textarea:()=>wt});var _={};e.r(_),e.d(_,{ENUMERATE:()=>tn,content_in_lists:()=>sn,enumerate:()=>nn,list_many_input:()=>wi,list_tolist:()=>Ki,list_tolist2:()=>en,list_trig:()=>Bi,lists_2d_get_col_row_data:()=>Si,lists_2d_get_data_with_col_row:()=>Ci,lists_append_extend:()=>Fi,lists_change_to:()=>Ui,lists_change_to_general:()=>ki,lists_clear:()=>yi,lists_create_with:()=>Ai,lists_create_with2:()=>Ji,lists_create_with_container:()=>Ni,lists_create_with_item:()=>Di,lists_create_with_noreturn:()=>Hi,lists_create_with_text:()=>Li,lists_create_with_text2:()=>Qi,lists_del_general:()=>Wi,lists_find:()=>Vi,lists_getIndex3:()=>zi,lists_getSublist3:()=>qi,lists_get_index:()=>ci,lists_get_random_item:()=>Pi,lists_get_random_sublist:()=>Yi,lists_get_sublist:()=>gi,lists_insert_value:()=>vi,lists_insert_value2:()=>$i,lists_pop:()=>bi,lists_remove_at:()=>xi,lists_remove_at2:()=>Zi,lists_reverse:()=>Xi,lists_setIndex3:()=>ji,lists_set_index:()=>fi,lists_sort:()=>Gi});var o={};e.r(o),e.d(o,{dicts_add_change_del:()=>Rn,dicts_add_or_change:()=>dn,dicts_clear:()=>Mn,dicts_create_with:()=>on,dicts_create_with_container:()=>pn,dicts_create_with_item:()=>an,dicts_create_with_noreturn:()=>Cn,dicts_deldict:()=>On,dicts_delete:()=>In,dicts_get:()=>rn,dicts_get_default:()=>ln,dicts_items:()=>hn,dicts_keys:()=>un,dicts_length:()=>En,dicts_pop:()=>cn,dicts_setdefault:()=>gn,dicts_to_json:()=>An,dicts_to_json2:()=>Dn,dicts_to_to:()=>Nn,dicts_todict:()=>Sn,dicts_update:()=>Tn,dicts_values:()=>mn,json_to_dicts:()=>Ln});var p={};e.r(p),e.d(p,{logic_boolean:()=>Xn,logic_compare:()=>Fn,logic_compare_continous:()=>Pn,logic_is:()=>Vn,logic_is_in:()=>bn,logic_negate:()=>vn,logic_null:()=>yn,logic_operation:()=>Yn,logic_tobool:()=>Bn,logic_true_or_false:()=>xn});var a={};e.r(a),e.d(a,{sdcard_mount:()=>as,sdcard_use_spi_init:()=>ps,storage_can_write_ornot:()=>Qn,storage_change_dir:()=>_s,storage_close_file:()=>qn,storage_delete_file:()=>$n,storage_file_seek:()=>ts,storage_file_tell:()=>es,storage_file_write:()=>kn,storage_fileopen:()=>Un,storage_fileopen_new:()=>wn,storage_fileopen_new_encoding:()=>Hn,storage_get_a_line:()=>Jn,storage_get_contents:()=>Kn,storage_get_contents_without_para:()=>Wn,storage_get_current_dir:()=>is,storage_get_file_size:()=>Zn,storage_get_filename:()=>zn,storage_is_file:()=>os,storage_list_all_files:()=>jn,storage_make_dir:()=>ns,storage_open_file_with_os:()=>Gn,storage_rename:()=>ss});var u={};e.r(u),e.d(u,{procedures_callnoreturn:()=>Is,procedures_callreturn:()=>Ts,procedures_defnoreturn:()=>us,procedures_defreturn:()=>rs,procedures_ifreturn:()=>Ms,procedures_mutatorarg:()=>ds,procedures_mutatorcontainer:()=>ls,procedures_return:()=>hs});var r={};e.r(r),e.d(r,{tuple_change_to:()=>Ds,tuple_create_llm_params:()=>bs,tuple_create_with:()=>Es,tuple_create_with_container:()=>Os,tuple_create_with_item:()=>Rs,tuple_create_with_noreturn:()=>Ys,tuple_create_with_text2:()=>cs,tuple_create_with_text_return:()=>gs,tuple_del:()=>As,tuple_find:()=>fs,tuple_getIndex:()=>Cs,tuple_getSublist:()=>Ps,tuple_get_random_item:()=>Xs,tuple_get_sublist:()=>vs,tuple_input:()=>xs,tuple_join:()=>Ls,tuple_length:()=>Ss,tuple_max:()=>Ns,tuple_totuple:()=>ys,tuple_trig:()=>Fs});var l={};e.r(l),e.d(l,{set_add_discard:()=>Js,set_clear:()=>ks,set_create_with:()=>Bs,set_create_with_container:()=>Gs,set_create_with_item:()=>Us,set_create_with_text_return:()=>qs,set_length:()=>ws,set_operate:()=>Ws,set_operate_update:()=>Ks,set_pop:()=>Hs,set_sub:()=>Qs,set_toset:()=>js,set_update:()=>zs});var d={};e.r(d),e.d(d,{html_content:()=>i_,html_content_more:()=>n_,html_document:()=>Zs,html_form:()=>__,html_head_body:()=>t_,html_style:()=>s_,html_style_color:()=>p_,html_style_content:()=>o_,html_text:()=>a_,html_title:()=>e_});var I={};e.r(I),e.d(I,{attribute_access:()=>g_,function_call:()=>O_,function_call_container:()=>R_,function_call_item:()=>c_,raw_block:()=>l_,raw_empty:()=>I_,raw_expression:()=>d_,raw_table:()=>r_,text_comment:()=>T_,text_print_multiple:()=>h_,text_print_multiple_container:()=>m_,text_print_multiple_item:()=>E_,type_check:()=>M_});var T={};e.r(T),e.d(T,{controls_type:()=>N_,controls_typeLists:()=>D_,lists_zip:()=>f_,unpack_iterable_object:()=>F_,variables_change:()=>A_,variables_get:()=>C_,variables_global:()=>L_,variables_set:()=>S_});var M={};e.r(M),e.d(M,{Panic_with_status_code:()=>G_,base_setup:()=>Y_,controls_delay:()=>B_,controls_flow_statements:()=>V_,controls_for:()=>y_,controls_forEach:()=>W_,controls_for_range:()=>x_,controls_if:()=>v_,controls_interrupts:()=>H_,controls_lambda:()=>J_,controls_main:()=>P_,controls_millis:()=>U_,controls_nointerrupts:()=>k_,controls_pass:()=>z_,controls_range:()=>K_,controls_repeat:()=>no,controls_repeat_ext:()=>$_,controls_thread:()=>q_,controls_try_finally:()=>X_,controls_whileUntil:()=>b_,datetime_fromtimestamp:()=>so,do_while:()=>j_,garbage_collection:()=>Z_,gene_unique_identifier:()=>_o,get_mem_alloc:()=>eo,get_mem_free:()=>to,get_unique_identifier:()=>io,reset:()=>w_,time_sleep:()=>Q_});var h={};e.r(h),e.d(h,{base_map:()=>No,generate_cartesian_product:()=>fo,math_arithmetic:()=>ro,math_bit:()=>uo,math_constant:()=>po,math_constant_mp:()=>ao,math_constrain:()=>Ro,math_dec:()=>Mo,math_degree_to_radian:()=>Po,math_indexer_number:()=>Co,math_map:()=>Oo,math_max_min:()=>mo,math_number:()=>oo,math_number_base_conversion:()=>co,math_radian_to_degree:()=>Fo,math_random:()=>Eo,math_random_seed:()=>go,math_round:()=>So,math_selfcalcu:()=>lo,math_single:()=>Io,math_to_int:()=>ho,math_trig:()=>To,text_to_number:()=>Ao,text_to_number_skulpt:()=>Lo,turn_to_int:()=>Do});var m={};e.r(m),e.d(m,{ascii_to_char:()=>bo,char_to_ascii:()=>Vo,number_to_text:()=>Bo,os_system:()=>ap,text:()=>Yo,text_bytes:()=>Xo,text_capital:()=>Qo,text_center:()=>zo,text_char:()=>yo,text_char_at:()=>wo,text_char_at2:()=>Uo,text_char_at3:()=>_p,text_compareTo:()=>sp,text_compare_to:()=>Wo,text_encode:()=>op,text_equals_starts_ends:()=>ko,text_eval:()=>pp,text_find:()=>qo,text_format:()=>tp,text_format_noreturn:()=>ip,text_join:()=>xo,text_join_seq:()=>jo,text_length:()=>Go,text_random_char:()=>Ho,text_replace:()=>$o,text_split:()=>Zo,text_strip:()=>ep,text_substring:()=>Jo,text_substring2:()=>Ko,text_substring3:()=>np,text_textarea:()=>vo});var E={};e.r(E),e.d(E,{content_in_lists:()=>wp,enumerate:()=>Up,list_many_input:()=>Dp,list_tolist:()=>Bp,list_tolist2:()=>Gp,list_trig:()=>Ap,lists_2d_get_col_row_data:()=>lp,lists_2d_get_data_with_col_row:()=>rp,lists_append_extend:()=>hp,lists_change_to:()=>Np,lists_change_to_general:()=>Fp,lists_clear:()=>cp,lists_create_with:()=>dp,lists_create_with2:()=>Yp,lists_create_with_noreturn:()=>fp,lists_create_with_text:()=>Ip,lists_create_with_text2:()=>vp,lists_del_general:()=>Pp,lists_find:()=>gp,lists_getIndex3:()=>Xp,lists_getSublist3:()=>yp,lists_get_index:()=>Tp,lists_get_random_item:()=>mp,lists_get_random_sublist:()=>Ep,lists_get_sublist:()=>up,lists_insert_value:()=>Op,lists_insert_value2:()=>bp,lists_pop:()=>Sp,lists_remove_at:()=>Cp,lists_remove_at2:()=>Vp,lists_reverse:()=>Rp,lists_setIndex3:()=>xp,lists_set_index:()=>Mp,lists_sort:()=>Lp});var O={};e.r(O),e.d(O,{dicts_add_change_del:()=>ta,dicts_add_or_change:()=>Jp,dicts_clear:()=>qp,dicts_create_with:()=>Hp,dicts_create_with_noreturn:()=>sa,dicts_deldict:()=>ea,dicts_delete:()=>Qp,dicts_get:()=>Wp,dicts_get_default:()=>Kp,dicts_items:()=>jp,dicts_keys:()=>kp,dicts_length:()=>Zp,dicts_pop:()=>ia,dicts_setdefault:()=>na,dicts_to_json:()=>oa,dicts_to_json2:()=>ua,dicts_to_to:()=>aa,dicts_todict:()=>_a,dicts_update:()=>zp,dicts_values:()=>$p,json_to_dicts:()=>pa});var R={};e.r(R),e.d(R,{logic_boolean:()=>Ta,logic_compare:()=>ra,logic_compare_continous:()=>la,logic_is:()=>Ea,logic_is_in:()=>ma,logic_negate:()=>Ia,logic_null:()=>Ma,logic_operation:()=>da,logic_tobool:()=>Oa,logic_true_or_false:()=>ha});var c={};e.r(c),e.d(c,{sdcard_mount:()=>wa,sdcard_use_spi_init:()=>Ua,storage_can_write_ornot:()=>Da,storage_change_dir:()=>xa,storage_close_file:()=>Fa,storage_delete_file:()=>Ya,storage_file_seek:()=>ya,storage_file_tell:()=>Xa,storage_file_write:()=>Sa,storage_fileopen:()=>ca,storage_fileopen_new:()=>ga,storage_fileopen_new_encoding:()=>Ca,storage_get_a_line:()=>Na,storage_get_contents:()=>La,storage_get_contents_without_para:()=>Aa,storage_get_current_dir:()=>ba,storage_get_file_size:()=>va,storage_get_filename:()=>fa,storage_is_file:()=>Ga,storage_list_all_files:()=>Pa,storage_make_dir:()=>Va,storage_open_file_with_os:()=>Ra,storage_rename:()=>Ba});var g={};e.r(g),e.d(g,{procedures_callnoreturn:()=>Ka,procedures_callreturn:()=>Wa,procedures_defnoreturn:()=>ka,procedures_defreturn:()=>Ha,procedures_ifreturn:()=>Ja,procedures_return:()=>Qa});var C={};e.r(C),e.d(C,{tuple_change_to:()=>nu,tuple_create_llm_params:()=>du,tuple_create_with:()=>za,tuple_create_with_noreturn:()=>pu,tuple_create_with_text2:()=>qa,tuple_create_with_text_return:()=>ja,tuple_del:()=>eu,tuple_find:()=>su,tuple_getIndex:()=>$a,tuple_getSublist:()=>ou,tuple_get_random_item:()=>uu,tuple_get_sublist:()=>au,tuple_input:()=>lu,tuple_join:()=>tu,tuple_length:()=>Za,tuple_max:()=>iu,tuple_totuple:()=>ru,tuple_trig:()=>_u});var S={};e.r(S),e.d(S,{set_add_discard:()=>Ou,set_clear:()=>hu,set_create_with:()=>Iu,set_create_with_text_return:()=>gu,set_length:()=>Tu,set_operate:()=>mu,set_operate_update:()=>Eu,set_pop:()=>Mu,set_sub:()=>Ru,set_toset:()=>Cu,set_update:()=>cu});var A={};e.r(A),e.d(A,{html_content:()=>Nu,html_content_more:()=>Du,html_document:()=>Su,html_form:()=>Fu,html_head_body:()=>Lu,html_style:()=>fu,html_style_content:()=>Pu,html_text:()=>Yu,html_title:()=>Au});var L={};e.r(L),e.d(L,{attribute_access:()=>Bu,function_call:()=>Vu,raw_block:()=>vu,raw_empty:()=>yu,raw_expression:()=>Xu,raw_table:()=>xu,type_check:()=>bu});var N={};e.r(N),e.d(N,{PIN_init:()=>Kr,actuator_extern_get_led_bright:()=>tr,actuator_extern_get_led_state:()=>ir,actuator_extern_led_bright:()=>er,actuator_extern_led_brightness:()=>nr,actuator_ms32006_dcmotor:()=>dr,actuator_ms32006_init:()=>lr,actuator_ms32006_stepper:()=>Ir,actuator_neopixel_init:()=>Tr,actuator_neopixel_rgb:()=>Mr,actuator_neopixel_rgb_all:()=>hr,actuator_neopixel_rgb_show_all_chase:()=>Or,actuator_neopixel_rgb_show_all_rainbow:()=>Er,actuator_neopixel_write:()=>mr,actuator_use_uart_init:()=>Rr,backstage_esp32_music_play_list:()=>Qu,esp32_music_get_tempo_extern:()=>qu,esp32_music_pitch:()=>Wu,esp32_music_pitch_init:()=>ku,esp32_music_pitch_with_time:()=>Ku,esp32_music_play_list:()=>Ju,esp32_music_reset_extern:()=>ju,esp32_music_set_tempo_extern:()=>zu,esp32_music_stop:()=>$u,esp32_set_music_volume:()=>Zu,mixbot_actuator_extern_get_addr:()=>kr,mixbot_actuator_extern_set_addr:()=>Wr,mixbot_addr_extern:()=>Pr,parrot_PIN_init:()=>qr,parrot_move_speed:()=>jr,pin_led_bright:()=>Jr,player_insert_music:()=>Lr,player_play_music:()=>Ar,player_set_mode:()=>Sr,player_set_play:()=>gr,player_set_volume:()=>Cr,player_whether_stop:()=>cr,robot_led_extern:()=>yr,robot_led_extern_get_value:()=>xr,robot_motor_extern:()=>Yr,robot_motor_extern_get_speed:()=>vr,robot_servo_extern_absolute_run:()=>Gr,robot_servo_extern_get_status:()=>br,robot_servo_extern_relative_continue:()=>Hr,robot_servo_extern_relative_origin:()=>Ur,robot_servo_extern_relative_run:()=>wr,robot_servo_extern_stop:()=>Br,robot_servo_extern_stop_mode:()=>Vr,robot_traffic_light_extern:()=>Xr,servo_PIN_init:()=>Qr,servo_get_angle:()=>ur,servo_get_speed:()=>rr,servo_init:()=>sr,servo_move:()=>_r,servo_move_angle:()=>zr,servo_set_angle:()=>pr,servo_set_speed:()=>ar,servo_speed_360:()=>or,syn6288_builtin_voice:()=>fr,syn6288_get_voice:()=>Dr,syn6288_set_voice:()=>Nr,syn6288_tts_play:()=>Fr});var D={};e.r(D),e.d(D,{actuator_dc_motor:()=>Fl,actuator_dc_motor_stop:()=>Pl,actuator_get_led_bright:()=>il,actuator_get_led_state:()=>nl,actuator_led_bright:()=>tl,actuator_led_brightness:()=>sl,actuator_mixbot_buzzer_on_off:()=>xl,actuator_mixgo_nova_mic_get:()=>Ul,actuator_mixgo_nova_mic_set:()=>Gl,actuator_mixgo_nova_onboard_music_pitch:()=>Jl,actuator_mixgo_nova_onboard_music_stop:()=>Ql,actuator_mixgo_nova_play_audio:()=>Wl,actuator_mixgo_nova_play_online_audio:()=>Kl,actuator_mixgo_nova_record_audio:()=>kl,actuator_mixgo_nova_voice_get:()=>Hl,actuator_mixgo_nova_voice_set:()=>wl,actuator_mixgo_zero_led_color:()=>_l,actuator_onboard_neopixel_rgb:()=>ll,actuator_onboard_neopixel_rgb_all:()=>dl,actuator_onboard_neopixel_rgb_show_all_chase:()=>Tl,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>Il,actuator_onboard_neopixel_write:()=>Ml,actuator_rm_onboard_neopixel_rgb:()=>hl,actuator_rm_onboard_neopixel_rgb_all:()=>ml,actuator_rm_onboard_neopixel_rgb_show_all_chase:()=>El,actuator_stepper_keep:()=>Dl,actuator_stepper_stop:()=>fl,analog_ble_keyboard_init:()=>pd,analog_ble_keyboard_input:()=>rd,analog_ble_keyboard_mouse_init:()=>Ed,analog_ble_keyboard_mouse_input:()=>gd,analog_ble_keyboard_mouse_send_battery:()=>cd,analog_ble_keyboard_mouse_str:()=>Cd,analog_ble_keyboard_send_battery:()=>dd,analog_ble_keyboard_str:()=>ld,analog_ble_mouse_init:()=>Id,analog_ble_mouse_input:()=>hd,analog_ble_mouse_keyboard_input:()=>Sd,analog_ble_mouse_send_battery:()=>md,analog_keyboard_input:()=>$l,analog_keyboard_str:()=>od,analog_mouse_input:()=>sd,backstage_onboard_music_play_list:()=>Ll,bitbot_motor:()=>Bl,bitbot_move:()=>bl,bitbot_stop:()=>Vl,ble_keyboard_connect:()=>ud,ble_keyboard_get_mac:()=>ad,ble_keyboard_mouse_connect:()=>Rd,ble_keyboard_mouse_get_mac:()=>Od,ble_mouse_connect:()=>Md,ble_mouse_get_mac:()=>Td,cc_number:()=>rl,educore_ble_keyboard_input:()=>Xd,educore_ble_sensor_connected:()=>vd,educore_ble_sensor_init:()=>Yd,educore_buzzer:()=>Ad,educore_buzzer_play_tone:()=>Ld,educore_buzzer_play_tone_time:()=>Nd,educore_buzzer_stop:()=>Dd,educore_neopixel_clear:()=>Pd,educore_neopixel_rgb:()=>Fd,educore_rgb_light:()=>fd,esp32_music_get_tempo:()=>Rl,esp32_music_reset:()=>cl,esp32_music_set_tempo:()=>Ol,esp32_onboard_music_pitch:()=>gl,esp32_onboard_music_pitch_with_time:()=>Cl,esp32_onboard_music_play_list:()=>Al,esp32_onboard_music_stop:()=>Sl,general_key:()=>ed,general_key_tuple:()=>td,generalkey_container:()=>id,generalkey_create_with_item:()=>nd,get_keyboard_light:()=>yd,get_power_output:()=>ql,ledswitch:()=>el,mixbot_motor:()=>yl,mixbot_motor_status:()=>Yl,mixbot_move:()=>vl,mixbot_stop:()=>Xl,mouse_key:()=>_d,number:()=>Zr,record_audio:()=>bd,rm_actuator_get_led_bright:()=>pl,rm_actuator_get_led_state:()=>al,rm_actuator_led_bright:()=>ol,rm_actuator_led_brightness:()=>ul,rm_motor:()=>Nl,set_all_power_output:()=>jl,set_microphone_amplification:()=>xd,set_music_volume:()=>Vd,set_power_output:()=>zl,special_key:()=>Zl});var f={};e.r(f),e.d(f,{ai_sensor_20object:()=>EI,ai_sensor_ailocal_class:()=>pI,ai_sensor_ailocal_class_result:()=>aI,ai_sensor_ailocal_train:()=>oI,ai_sensor_asr_recognize:()=>II,ai_sensor_audio_play:()=>rI,ai_sensor_audio_record:()=>uI,ai_sensor_barcode:()=>Kd,ai_sensor_circle:()=>$d,ai_sensor_classifier_faces:()=>mI,ai_sensor_color:()=>iI,ai_sensor_color_chases:()=>_I,ai_sensor_color_chases_result:()=>sI,ai_sensor_config:()=>kd,ai_sensor_face:()=>hI,ai_sensor_find_20objects:()=>OI,ai_sensor_find_barcodes:()=>Jd,ai_sensor_find_circles:()=>Zd,ai_sensor_find_colors:()=>nI,ai_sensor_find_licenseplates:()=>MI,ai_sensor_find_lines:()=>jd,ai_sensor_find_qrcodes:()=>Hd,ai_sensor_find_rects:()=>tI,ai_sensor_find_tags:()=>zd,ai_sensor_licenseplate:()=>TI,ai_sensor_line:()=>qd,ai_sensor_qrcode:()=>Ud,ai_sensor_qrcode_lite:()=>wd,ai_sensor_rect:()=>eI,ai_sensor_rgb:()=>Wd,ai_sensor_tag:()=>Qd,ai_sensor_use_uart_init:()=>Gd,ai_sensor_yolo_recognize:()=>lI,ai_sensor_yolo_recognize_result:()=>dI});var F={};e.r(F),e.d(F,{MICROPYTHON_AI_Speech_asr:()=>gI,MICROPYTHON_AI_Speech_unit:()=>cI,MICROPYTHON_AI_client:()=>RI});var P={};e.r(P),e.d(P,{AI_CAMERA_INIT:()=>$I,AI_CAMERA_INIT_FACERECOGNIZE:()=>tT,AI_CAMERA_INIT_SIMPLE:()=>NT,AI_STOP_ACQUISITION:()=>ST,CAMERA_LOOGOUT:()=>UI,CI130X_BROADCAST_SANT:()=>vI,CI130X_BROADCAST_SYSTEM_TIME:()=>yI,CI130X_GET_THE_RECOGNIZED_CMD_SANT:()=>YI,CI130X_GET_WHETHER_IDENTIFY_SANT:()=>PI,CI130X_IDENTIFY_AND_SAVE_SANT:()=>FI,CI130X_OPEN_AND_CLOSE:()=>DI,CI130X_PLAY_SYSTEM_CMD_SANT:()=>fI,CI130X_SET_SYSTEM_CMD_SANT:()=>XI,CONVERT_IMAGE_TO_JPG:()=>kI,CREATE_CAMERA:()=>xI,CREATE_CAMERA_SIMPLE:()=>LT,DELETE_FACE_ALL:()=>MT,DELETE_FACE_FROM_DATABASE:()=>TT,GET_CAT_FACE_DETECTION_NUM:()=>RT,GET_COLOR_DETECTION_NUM:()=>OT,GET_FACE_DETECTION_NAME:()=>CT,GET_FACE_DETECTION_NUM:()=>gT,GET_HOW_MUCH_RECOGNITION:()=>_T,GET_HUMAN_DETECTION_NUM:()=>cT,GET_IMAGE_AND_SAVE:()=>VI,GET_IMAGE_FROM_NET:()=>GI,GET_NO_CAT_OR_FACE_RECOGNITION:()=>pT,GET_NO_FACE_RECOGNITION_INFO:()=>rT,GET_NO_RECOGNITION:()=>oT,GET_NO_XY_RECOGNITION:()=>aT,GET_NO_XY_RECOGNITION_FACE:()=>uT,GET_PICTURE_DATA_EXACT:()=>wI,GET_PICTURE_DATA_WHS:()=>WI,GET_PICTURE_RECOGNITION_DATA:()=>ET,GET_PICTURE_WIDTH_HEIGHT_DEVICE:()=>HI,GET_QR_CODE_RECOGNITION_DATA:()=>mT,GET_SCREEN_IMAGE:()=>jI,GET_SCREEN_IMAGE_SIZE:()=>qI,MIXIO_REPORT_IMAGE_DATA:()=>AT,MODEL_INIT_HEIGHT:()=>eT,MODEL_INIT_WIDTH:()=>ZI,MODEL_LOGOUT:()=>iT,MODEL_RUN:()=>nT,MODEL_WHETHER_RUN_SUCCEED:()=>sT,OPEN_IMAGE:()=>BI,PRINT_FACE_DATABASE:()=>hT,REGISTER_NEW_FACE:()=>IT,REGISTER_NEW_FACE_SIMPLE:()=>fT,Register_color_recognition:()=>dT,Register_color_recognition_fixed:()=>lT,Register_color_recognition_fixed_SIMPLE:()=>DT,SCREEN_DISPLAY_IMAGE:()=>QI,SCREEN_DISPLAY_IMAGE_LOCATION:()=>zI,SCREEN_SHOW_CAM_GRAPH_SHOOT:()=>KI,SCREEN_SHOW_CAM_GRAPH_SHOOT_LOCATION:()=>JI,SHOOT_AND_SAVE_PICTURE:()=>bI,VOICE_RECOGNITION_CONTROL:()=>NI,yesorno:()=>LI});var Y={};e.r(Y),e.d(Y,{mpython_blynk_app_data:()=>kT,mpython_blynk_app_notify:()=>bT,mpython_blynk_email:()=>GT,mpython_blynk_get_timers:()=>UT,mpython_blynk_on_connected:()=>XT,mpython_blynk_on_disconnected:()=>vT,mpython_blynk_run:()=>xT,mpython_blynk_sensor_data_to_app:()=>HT,mpython_blynk_set_property:()=>BT,mpython_blynk_setup:()=>WT,mpython_blynk_stop_timers:()=>VT,mpython_blynk_sync_virtual:()=>YT,mpython_blynk_terminal_widget_vpin:()=>PT,mpython_blynktimer:()=>wT,mpython_blynktimer_run:()=>yT});var v={};e.r(v),e.d(v,{communicate_bluetooth_central_init:()=>NM,communicate_bluetooth_connect:()=>PM,communicate_bluetooth_disconnect:()=>YM,communicate_bluetooth_handle:()=>bM,communicate_bluetooth_is_connected:()=>XM,communicate_bluetooth_mac:()=>FM,communicate_bluetooth_peripheral_init:()=>DM,communicate_bluetooth_recv:()=>yM,communicate_bluetooth_recv_only:()=>xM,communicate_bluetooth_scan:()=>fM,communicate_bluetooth_send:()=>vM,communicate_espnow_init:()=>VM,communicate_espnow_init_new:()=>BM,communicate_i2c_available:()=>uM,communicate_i2c_init:()=>zT,communicate_i2c_master_read:()=>aM,communicate_i2c_onboard:()=>JT,communicate_i2c_read:()=>qT,communicate_i2c_scan:()=>$T,communicate_i2c_write:()=>jT,communicate_ir_recv_init:()=>mM,communicate_ir_send_init:()=>gM,communicate_ow_init:()=>lM,communicate_ow_read:()=>IM,communicate_ow_reset:()=>hM,communicate_ow_scan:()=>dM,communicate_ow_select:()=>MM,communicate_ow_write:()=>TM,communicate_spi_buffer:()=>tM,communicate_spi_init:()=>ZT,communicate_spi_onboard:()=>QT,communicate_spi_read:()=>iM,communicate_spi_read_output:()=>nM,communicate_spi_readinto:()=>sM,communicate_spi_readinto_output:()=>_M,communicate_spi_set:()=>eM,communicate_spi_write:()=>oM,communicate_spi_write_readinto:()=>pM,espnow_radio_channel:()=>WM,espnow_radio_channel_new:()=>JM,espnow_radio_on_off:()=>QM,espnow_radio_rec:()=>qM,espnow_radio_recv:()=>$M,espnow_radio_recv_certain_msg:()=>ZM,espnow_radio_recv_certain_msg_new:()=>th,espnow_radio_recv_msg:()=>jM,espnow_radio_recv_new:()=>eh,espnow_radio_send:()=>zM,espnow_radio_txpower:()=>KM,i2c_available:()=>Ch,i2c_init:()=>uh,i2c_master_reader2:()=>gh,i2c_read:()=>rh,i2c_scan:()=>dh,i2c_slave_onreceive:()=>rM,i2c_write:()=>lh,internal_variable:()=>EM,ir_recv_timeout:()=>cM,ir_transmit_busy:()=>LM,ir_transmit_conventional_data:()=>CM,ir_transmit_raw_code:()=>AM,ir_transmit_study_code:()=>SM,ir_whether_recv:()=>RM,lora_init:()=>ih,lora_packet:()=>nh,lora_recv:()=>_h,lora_send:()=>sh,network_espnow_info:()=>UM,network_espnow_mac:()=>GM,network_espnow_recv:()=>wM,network_espnow_recv_handle:()=>kM,network_espnow_send:()=>HM,recv_fun:()=>OM,spi_buffer:()=>Mh,spi_init:()=>Ih,spi_read:()=>hh,spi_read_output:()=>mh,spi_readinto:()=>Eh,spi_readinto_output:()=>Oh,spi_set:()=>Th,spi_write:()=>Rh,spi_write_readinto:()=>ch,urequests_attribute:()=>ph,urequests_get:()=>oh,urequests_method:()=>ah});var X={};e.r(X),e.d(X,{display_animate:()=>tm,display_blink_rate:()=>jh,display_circle:()=>im,display_color_seclet:()=>Tm,display_draw_4strings:()=>Wh,display_fill:()=>em,display_get_screen_image:()=>qh,display_help:()=>sm,display_image_size:()=>Kh,display_lcd_use_i2c_init:()=>Rm,display_line:()=>Qh,display_line_arbitrarily:()=>zh,display_matrix_extern_bright_point:()=>bh,display_matrix_extern_bright_screen:()=>Bh,display_matrix_extern_clear:()=>Gh,display_matrix_extern_get_pixel:()=>xh,display_matrix_extern_get_screen_pixel:()=>Vh,display_matrix_extern_image_builtins:()=>Uh,display_matrix_extern_scroll_string:()=>Ph,display_matrix_extern_scroll_string_delay:()=>Yh,display_matrix_extern_shift:()=>yh,display_matrix_extern_show_frame_string:()=>vh,display_matrix_extern_show_frame_string_delay:()=>Xh,display_matrix_extern_show_image:()=>fh,display_matrix_extern_show_image_or_string_delay:()=>Fh,display_matrix_use_i2c_init:()=>Dh,display_oled_drawPixel:()=>om,display_oled_showBitmap:()=>_m,display_oled_use_i2c_init:()=>Am,display_onoff:()=>Zh,display_rect:()=>Jh,display_rgb_color:()=>$h,display_tm1650_power:()=>am,display_tm1650_set_brightness:()=>lm,display_tm1650_show_dot:()=>rm,display_tm1650_show_num:()=>um,display_tm_use_i2c_init:()=>pm,display_triangle:()=>nm,display_use_i2c_init:()=>kh,extern_oled_bright_point:()=>xm,extern_oled_clear:()=>bm,extern_oled_get_pixel:()=>ym,extern_oled_hvline:()=>Bm,extern_oled_line:()=>Gm,extern_oled_scroll_string:()=>Fm,extern_oled_scroll_string_delay:()=>Pm,extern_oled_shape_rect:()=>Vm,extern_oled_shift:()=>Xm,extern_oled_show_frame_string:()=>Ym,extern_oled_show_frame_string_delay:()=>vm,extern_oled_show_image:()=>Lm,extern_oled_show_image_or_string_delay:()=>fm,extern_oled_show_image_xy:()=>Nm,extern_oled_show_string:()=>Dm,lcd_backlight:()=>Cm,lcd_clear:()=>Sm,lcd_print_string:()=>gm,lcd_show_image_or_string_delay:()=>cm,matrix_extern_image_arithmetic:()=>wh,matrix_extern_image_invert:()=>Hh,tft_fill:()=>Em,tft_line_arbitrarily:()=>Om,tft_scroll_string_delay:()=>hm,tft_show_frame_string_delay:()=>mm,tft_show_image_or_string_delay:()=>Mm,tft_show_image_xy:()=>Im,tft_use_spi_init:()=>dm});var y={};e.r(y),e.d(y,{bitbot_display_bitmap_create:()=>XE,bitbot_display_image_create:()=>vE,display_available:()=>aE,display_bitmap_create:()=>jm,display_bright_point:()=>sE,display_bright_screen:()=>oE,display_clear:()=>pE,display_get_pixel:()=>nE,display_get_screen_pixel:()=>_E,display_image_builtins:()=>$m,display_image_builtins_all:()=>Zm,display_image_create:()=>qm,display_scroll_string:()=>km,display_scroll_string_delay:()=>Wm,display_scroll_way:()=>Km,display_shift:()=>iE,display_show_frame_string:()=>Qm,display_show_frame_string_delay:()=>zm,display_show_image:()=>wm,display_show_image_or_string_delay:()=>Hm,draw_pointer:()=>jE,image_arithmetic:()=>eE,image_invert:()=>tE,mixbot_display_bitmap_create:()=>DE,mixbot_display_bright_screen:()=>PE,mixbot_display_get_ambientbright:()=>FE,mixbot_display_get_screen_pixel:()=>fE,mixbot_display_image_create:()=>NE,mixbot_display_rotate:()=>YE,mixgo_display_bitmap_create:()=>TE,mixgo_display_image_create_new:()=>IE,mixgome_display_bitmap_create:()=>rE,mixgome_display_font:()=>ME,mixgome_display_image_create:()=>uE,mixgomini_display_bitmap_create:()=>dE,mixgomini_display_image_create:()=>lE,mpython_display_hvline:()=>SE,mpython_display_line:()=>AE,mpython_display_shape_rect:()=>CE,mpython_pbm_image:()=>LE,nova_draw_pointer:()=>$E,onboard_oled_bright_point:()=>gE,onboard_oled_scroll_string_delay:()=>RE,onboard_oled_show_frame_string_delay:()=>cE,onboard_oled_show_image:()=>hE,onboard_oled_show_image_or_string_delay:()=>OE,onboard_oled_show_image_xy:()=>mE,onboard_oled_show_string:()=>EE,onboard_tft_bright_point:()=>HE,onboard_tft_bright_screen:()=>pO,onboard_tft_clear:()=>aO,onboard_tft_clock_clear:()=>zE,onboard_tft_clock_draw:()=>QE,onboard_tft_clock_get_rtctime:()=>KE,onboard_tft_clock_init:()=>WE,onboard_tft_clock_set_time:()=>JE,onboard_tft_display_hvline:()=>GE,onboard_tft_display_line:()=>UE,onboard_tft_display_shape_circle:()=>qE,onboard_tft_display_shape_rect:()=>BE,onboard_tft_fill:()=>kE,onboard_tft_get_pixel:()=>wE,onboard_tft_get_screen_pixel:()=>oO,onboard_tft_scroll_string:()=>nO,onboard_tft_scroll_string_delay:()=>Jm,onboard_tft_shift:()=>_O,onboard_tft_show_frame_string:()=>sO,onboard_tft_show_frame_string_delay:()=>VE,onboard_tft_show_image:()=>iO,onboard_tft_show_image_or_string_delay:()=>bE,onboard_tft_show_image_xy:()=>yE,onboard_tft_show_image_xy_direct:()=>xE,onboard_tft_show_qrcode:()=>eO,onboard_tft_show_qrcode_details:()=>tO,onboard_tft_show_texts:()=>ZE});var x={};e.r(x),e.d(x,{factory_block:()=>LO,factory_block_return:()=>NO,factory_block_return_with_textarea:()=>fO,factory_block_with_textarea:()=>DO,factory_callMethod_noreturn:()=>SO,factory_callMethod_return:()=>AO,factory_create_with_container:()=>RO,factory_create_with_item:()=>cO,factory_declare:()=>CO,factory_from_import:()=>mO,factory_function_noreturn:()=>OO,factory_function_return:()=>gO,factory_import:()=>EO,folding_block:()=>FO});var b={};e.r(b),e.d(b,{controls_pin_attachInterrupt:()=>$O,inout_analog_atten:()=>GO,inout_analog_read:()=>BO,inout_analog_read_init:()=>KO,inout_analog_write:()=>xO,inout_analog_write_init:()=>WO,inout_analog_write_set:()=>bO,inout_analog_write_set_freq:()=>zO,inout_digital_init:()=>HO,inout_digital_read:()=>XO,inout_digital_write:()=>vO,inout_highlow:()=>YO,inout_pinMode:()=>QO,inout_pin_attachInterrupt:()=>wO,inout_pin_pressed:()=>UO,inout_pin_pressed_init:()=>JO,inout_pwm_analog_write:()=>yO,inout_pwm_analog_write_init:()=>kO,inout_pwm_analog_write_set_freq:()=>VO,pin_pressed:()=>jO,pin_pressed_init:()=>qO});var V={};e.r(V),e.d(V,{IOT_CONNECT_OLLAMA:()=>xR,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>CR,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>gR,IOT_EMQX_PING:()=>RR,IOT_FORMATTING:()=>ER,IOT_FORMAT_STRING:()=>OR,IOT_MIXIO_NTP:()=>cR,IOT_MIXIO_PUBLISH:()=>rR,IOT_MIXIO_PUBLISHEX:()=>lR,IOT_MIXIO_SUBSCRIBE:()=>dR,iot_checkonenet:()=>vR,iot_client_onboard:()=>AR,iot_connect_ollama:()=>yR,iot_connect_openai:()=>bR,iot_create_with_item:()=>aR,iot_http_client:()=>LR,iot_http_data:()=>NR,iot_mixio_check:()=>MR,iot_mixio_connect:()=>uR,iot_mixio_connect_only:()=>TR,iot_mixio_disconnect:()=>IR,iot_mixio_format_msg:()=>mR,iot_mixio_format_topic:()=>hR,iot_mixly_key:()=>SR,iot_mqtt_client:()=>DR,iot_mqtt_data:()=>fR,iot_onenet_check:()=>nR,iot_onenet_connect:()=>tR,iot_onenet_disconnect:()=>iR,iot_onenet_publish:()=>_R,iot_onenet_publish_dict:()=>sR,iot_onenetconnect:()=>PR,iot_onenetdisconnect:()=>YR,iot_publish:()=>XR,iot_publish_container:()=>oR,iot_publish_item:()=>pR,iot_tiny_web_db_count:()=>WR,iot_tiny_web_db_delete:()=>JR,iot_tiny_web_db_get:()=>kR,iot_tiny_web_db_init:()=>UR,iot_tiny_web_db_init_with_mqtt:()=>wR,iot_tiny_web_db_search:()=>KR,iot_tiny_web_db_update:()=>HR,iot_wifi_connect:()=>eR,iot_wificonnect:()=>FR,ollama_empty_history:()=>GR,use_ollama_llm_to_chat:()=>VR,use_ollama_llm_to_chat_return:()=>BR});var B={};e.r(B),e.d(B,{educore_mqtt_connect:()=>Nc,educore_mqtt_connect_success:()=>Pc,educore_mqtt_subscribe_message:()=>Dc,educore_mqtt_topic_publish:()=>Fc,educore_mqtt_topic_subscribe:()=>fc,educore_wifi_connect:()=>Lc,network_ap_connect:()=>sc,network_connect:()=>ZR,network_get_connect:()=>tc,network_get_wifi:()=>nc,network_init:()=>zR,network_is_active:()=>jR,network_open:()=>qR,network_scan:()=>$R,network_server:()=>_c,network_socket_accept:()=>rc,network_socket_bind:()=>pc,network_socket_close:()=>hc,network_socket_connect:()=>ac,network_socket_init:()=>oc,network_socket_listen:()=>uc,network_socket_readline:()=>lc,network_socket_receive:()=>dc,network_socket_receive_from:()=>Tc,network_socket_send:()=>Ic,network_socket_send_to:()=>Mc,network_stop:()=>ic,network_wifi_connect:()=>ec,ntptime_address:()=>cc,ntptime_time:()=>Rc,requests_attribute:()=>Ec,requests_attribute2:()=>Ac,requests_get:()=>mc,requests_get2:()=>Cc,requests_method:()=>Oc,requests_post:()=>Sc});var G={};e.r(G),e.d(G,{get_potential_num:()=>vc,nova_g1_motor:()=>Xc,nova_g1_spk_en:()=>xc,nova_g1_usb:()=>yc});var U={};e.r(U),e.d(U,{pe_g1_battery_left:()=>Bc,pe_g1_dc_motor:()=>Gc,pe_g1_dc_motor_speed:()=>Uc,pe_g1_servo_get_angle:()=>kc,pe_g1_servo_get_speed:()=>Wc,pe_g1_servo_set_angle:()=>wc,pe_g1_servo_set_speed:()=>Hc,pe_g1_use_i2c_init:()=>Vc});var w={};e.r(w),e.d(w,{CI130X_BROADCAST:()=>hg,CI130X_GET_THE_RECOGNIZED_CMD:()=>Mg,CI130X_GET_WHETHER_IDENTIFY:()=>Tg,CI130X_IDENTIFY_AND_SAVE:()=>Ig,CI130X_SET_SYSTEM_CMD:()=>mg,HCSR04:()=>_C,PS2_Button:()=>uC,PS2_Buttons:()=>lC,PS2_Buttons_new:()=>MC,PS2_State:()=>rC,PS2_init:()=>oC,PS2_init_new:()=>IC,PS2_stk:()=>dC,PS2_stk_new:()=>hC,PS2_vibration:()=>aC,PS2_vibration_new:()=>TC,camera_sensor_init:()=>KC,camera_sensor_result:()=>JC,column_tube_foot:()=>$C,define_keyboards:()=>ZC,educore_body_sensor:()=>xC,educore_button_sensor_extern:()=>GC,educore_camera_sensor:()=>WC,educore_infrared_sensor:()=>BC,educore_soilhum_sensor:()=>bC,educore_temp_sensor:()=>kC,educore_temphum_sensor:()=>VC,educore_ultrasonic_sensor:()=>wC,esp32_s2_weather_init:()=>tC,esp32_s2_weather_rain:()=>nC,esp32_s2_weather_wd:()=>iC,esp32_s2_weather_ws:()=>sC,extern_rfid_read:()=>Ug,extern_rfid_readcontent:()=>Hg,extern_rfid_readid:()=>wg,extern_rfid_status:()=>Kg,extern_rfid_write:()=>kg,extern_rfid_write_return:()=>Wg,get_keboards_value:()=>eS,gnss_get_data:()=>RC,gnss_have_data:()=>OC,init_init_rotary_encoder:()=>tS,init_matrix_keyboard:()=>qC,interaction_whether_to_interaction:()=>lg,interaction_whether_to_interaction_SANT:()=>dg,line_tube_foot:()=>jC,mixbot_sensor_extern_get_addr:()=>DC,mixbot_sensor_extern_set_addr:()=>fC,pm25_get_data:()=>EC,radar_set_DETECTION_THRESHOLD:()=>ug,radar_set_DETECTION_THRESHOLD_SANT:()=>rg,robot_button_extern_get_value:()=>gC,robot_color_extern_get_value:()=>NC,robot_infrared_extern_get_value:()=>SC,robot_infrared_extern_grey_get_value:()=>AC,robot_potentiometer_extern_get_value:()=>LC,robot_sonar_extern_get_value:()=>FC,robot_sonar_extern_led:()=>PC,robot_touch_extern_get_value:()=>CC,rotary_key:()=>iS,sensor_APDS9960_extern:()=>Og,sensor_DS18X20:()=>og,sensor_LTR308_extern:()=>Rg,sensor_LTR390UV_extern:()=>Cg,sensor_MAX30102_extern:()=>Eg,sensor_QMC5883L_extern:()=>Pg,sensor_VL530LX_extern:()=>Sg,sensor_adxl345_get_acceleration:()=>$c,sensor_aht11_extern:()=>Lg,sensor_bmp:()=>sg,sensor_compass_reset:()=>Bg,sensor_dht11:()=>eg,sensor_hp203_extern:()=>Ng,sensor_light_level:()=>Zc,sensor_lm35:()=>pg,sensor_ltr381_extern:()=>cg,sensor_mixgo_extern_button_attachInterrupt:()=>qc,sensor_mixgo_extern_button_get_presses:()=>zc,sensor_mixgo_extern_button_is_pressed:()=>Jc,sensor_mixgo_extern_button_was_pressed:()=>Qc,sensor_mixgo_extern_light:()=>tg,sensor_mixgo_extern_pin_near:()=>ng,sensor_mixgo_extern_sound:()=>ig,sensor_mixgoce_hot_wheel_degrees:()=>eC,sensor_mixgoce_hot_wheel_is_touched:()=>Zg,sensor_mpu9250_attachGestureInterrupt:()=>jc,sensor_mpu9250_calibrate_compass:()=>xg,sensor_mpu9250_field_strength:()=>Vg,sensor_mpu9250_gesture:()=>Yg,sensor_mpu9250_get_acceleration:()=>vg,sensor_mpu9250_get_gyro:()=>yg,sensor_mpu9250_get_magnetic:()=>Xg,sensor_mpu9250_temperature:()=>bg,sensor_ms5611_extern:()=>fg,sensor_ms5611_extern_altitude:()=>Fg,sensor_read_humiture:()=>UC,sensor_sht:()=>_g,sensor_shtc3_extern:()=>Ag,sensor_spl06_001_extern:()=>Dg,sensor_ucs12071_extern:()=>gg,sensor_use_i2c_init:()=>ag,sensor_use_spi_init:()=>Gg,sensor_use_uart_init:()=>mC,sensor_weather_solo_init:()=>YC,sensor_weather_solo_rain:()=>yC,sensor_weather_solo_wd:()=>vC,sensor_weather_solo_ws:()=>XC,sensor_weigh_init:()=>QC,tvoc_get_data:()=>cC,ultrasonic_sensor_read_distance:()=>HC,weather_data:()=>Jg,weather_have_data:()=>Qg,weather_set_label:()=>qg,weather_set_label_container:()=>jg,weather_set_label_item:()=>$g,weather_uart_mixio:()=>zg,weigh_sensor_get_weight:()=>zC});var H={};e.r(H),e.d(H,{HCSR04:()=>OS,RTC_set_date:()=>ES,RTC_set_time:()=>mS,bitbot_als_num:()=>DA,dht11:()=>yA,educore_button_sensor:()=>kA,educore_button_was_pressed:()=>WA,educore_gyroscope_sensor:()=>UA,educore_gyroscope_sensor_read:()=>wA,educore_gyroscope_sensor_shake:()=>HA,educore_light_sensor:()=>GA,educore_rfid_sensor:()=>KA,educore_rfid_sensor_scan:()=>JA,educore_rfid_sensor_scan_data:()=>QA,educore_voice_sensor:()=>VA,number1:()=>cS,number2:()=>gS,number3:()=>CS,number4:()=>SS,number5:()=>AS,number6:()=>LS,number7:()=>NS,onboard_RTC_get_time:()=>yS,onboard_RTC_get_time_str:()=>US,onboard_RTC_get_timestamp:()=>xS,onboard_RTC_get_timetuple_to_str:()=>wS,onboard_RTC_set_datetime:()=>BS,onboard_RTC_settime_string:()=>VS,onboard_RTC_timestamp_totuple:()=>bS,rfid_readcontent:()=>zS,rfid_readid:()=>QS,rfid_status:()=>$S,rfid_write:()=>qS,rfid_write_return:()=>jS,sensor_LTR308:()=>HS,sensor_aht11:()=>WS,sensor_bitbot_ALS:()=>NA,sensor_button_get_presses:()=>PA,sensor_button_is_pressed:()=>fA,sensor_button_was_pressed:()=>FA,sensor_distance_hrsc04:()=>hS,sensor_eulerangles:()=>eA,sensor_field_strength:()=>xA,sensor_get_acceleration:()=>ZS,sensor_get_temperature:()=>KS,sensor_get_the_coprocessor_version:()=>zA,sensor_hp203:()=>JS,sensor_light:()=>XA,sensor_mixbot_get_gyro:()=>LA,sensor_mixbot_patrol_calibrate:()=>CA,sensor_mixbot_patrol_value:()=>SA,sensor_mixbot_temperature:()=>AA,sensor_mixgo_LTR308:()=>vS,sensor_mixgo_button_attachInterrupt:()=>pS,sensor_mixgo_button_get_presses:()=>oS,sensor_mixgo_button_is_pressed:()=>sS,sensor_mixgo_button_was_pressed:()=>_S,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>lA,sensor_mixgo_cc_mmc5603_get_angle:()=>rA,sensor_mixgo_cc_mmc5603_get_magnetic:()=>uA,sensor_mixgo_light:()=>RS,sensor_mixgo_nova_LTR308:()=>YS,sensor_mixgo_nova_pin_near:()=>PS,sensor_mixgo_pin_near:()=>FS,sensor_mixgo_pin_near_double:()=>fS,sensor_mixgo_pin_near_single:()=>DS,sensor_mixgo_pin_pressed:()=>dS,sensor_mixgo_sant_color:()=>XS,sensor_mixgo_touch_slide:()=>MS,sensor_mixgocar42_button_attachInterrupt:()=>lS,sensor_mixgocar42_button_get_presses:()=>rS,sensor_mixgocar42_button_is_pressed:()=>aS,sensor_mixgocar42_button_was_pressed:()=>uS,sensor_mixgocar_battery_left:()=>gA,sensor_mixgocar_pin_near:()=>RA,sensor_mixgocar_pin_near_line:()=>OA,sensor_mixgocar_pin_near_state_change:()=>cA,sensor_mixgoce_pin_pressed:()=>IS,sensor_mixgoce_temperature:()=>IA,sensor_mixgome_temperature:()=>dA,sensor_mpython_pin_pressed:()=>TS,sensor_mpython_qmi8658_get_gyro:()=>TA,sensor_mpython_qmi8658_temperature:()=>MA,sensor_onboard_compass_reset:()=>aA,sensor_onboard_mpu9250_calibrate_compass:()=>_A,sensor_onboard_mpu9250_field_strength:()=>pA,sensor_onboard_mpu9250_gesture:()=>tA,sensor_onboard_mpu9250_get_acceleration:()=>iA,sensor_onboard_mpu9250_get_gyro:()=>sA,sensor_onboard_mpu9250_get_magnetic:()=>nA,sensor_onboard_mpu9250_temperature:()=>oA,sensor_pin_near:()=>vA,sensor_pin_pressed:()=>YA,sensor_read:()=>BA,sensor_rm_acc:()=>EA,sensor_rm_battery_left:()=>mA,sensor_rm_pin_near_double:()=>hA,sensor_rtc_init:()=>GS,sensor_sound:()=>kS,sensor_temperature:()=>bA,simulated_light_sensor:()=>qA});var k={};e.r(k),e.d(k,{serial_any:()=>oL,serial_begin:()=>lL,serial_print:()=>tL,serial_print_byte:()=>eL,serial_print_hex:()=>nL,serial_println:()=>iL,serial_read_from_ai:()=>RL,serial_readline:()=>pL,serial_readstr:()=>_L,serial_readstr_until:()=>aL,serial_receive_data_event:()=>sL,serial_send_to_ai:()=>OL,serial_softserial:()=>rL,serial_softserial_new:()=>uL,system_input:()=>dL,system_print:()=>IL,system_print_container:()=>mL,system_print_end:()=>ML,system_print_inline:()=>TL,system_print_item:()=>EL,system_print_many:()=>hL});var W={};e.r(W),e.d(W,{Panic_with_status_code:()=>SL,Timer_init:()=>VL,base_delay:()=>UL,controls_delay:()=>CL,controls_delay_new:()=>gL,controls_millis:()=>LL,controls_uname:()=>DL,raw_block:()=>NL,reset:()=>AL,set_system_timer:()=>vL,system_bitbot_shutdown:()=>bL,system_machine_reset:()=>xL,system_ticks_diff:()=>PL,system_timer:()=>FL,system_timer_init:()=>YL,system_wdt_feed:()=>yL,system_wdt_init:()=>XL,time_ticks_diff:()=>GL,timer:()=>fL,timer2:()=>BL});var K={};e.r(K),e.d(K,{Air_daily_content:()=>tN,Air_now_content:()=>QL,Geo_moon_content:()=>nN,Geo_sun_content:()=>iN,Life_suggestion_content:()=>qL,Location_search_content:()=>$L,Tide_daily_content:()=>jL,WEATHER_DAILY:()=>kL,WEATHER_HOUR:()=>WL,WEATHER_NOW:()=>HL,Weather_alarm_content:()=>zL,Weather_daily:()=>ZL,Weather_daily_content:()=>eN,Weather_now:()=>KL,Weather_now_content:()=>JL});var J={};e.r(J),e.d(J,{PIN_init:()=>_D,actuator_extern_get_led_bright:()=>AN,actuator_extern_get_led_state:()=>LN,actuator_extern_led_bright:()=>SN,actuator_extern_led_brightness:()=>NN,actuator_ms32006_dcmotor:()=>lN,actuator_ms32006_init:()=>rN,actuator_ms32006_stepper:()=>dN,actuator_neopixel_init:()=>DN,actuator_neopixel_rgb:()=>PN,actuator_neopixel_rgb_all:()=>fN,actuator_neopixel_rgb_show_all_chase:()=>YN,actuator_neopixel_rgb_show_all_rainbow:()=>vN,actuator_neopixel_write:()=>FN,actuator_use_uart_init:()=>XN,backstage_esp32_music_play_list:()=>cN,esp32_music_get_tempo_extern:()=>ON,esp32_music_pitch:()=>TN,esp32_music_pitch_init:()=>IN,esp32_music_pitch_with_time:()=>MN,esp32_music_play_list:()=>RN,esp32_music_reset_extern:()=>gN,esp32_music_set_tempo_extern:()=>EN,esp32_music_stop:()=>hN,esp32_set_music_volume:()=>mN,mixbot_actuator_extern_get_addr:()=>nD,mixbot_actuator_extern_set_addr:()=>sD,mixbot_addr_extern:()=>kN,parrot_PIN_init:()=>uD,parrot_move_speed:()=>rD,pin_led_bright:()=>oD,player_play_music:()=>BN,player_set_mode:()=>VN,player_set_play:()=>xN,player_set_volume:()=>bN,player_whether_stop:()=>yN,robot_led_extern:()=>QN,robot_led_extern_get_value:()=>zN,robot_motor_extern:()=>WN,robot_motor_extern_get_speed:()=>KN,robot_servo_extern_absolute_run:()=>ZN,robot_servo_extern_get_status:()=>qN,robot_servo_extern_relative_continue:()=>iD,robot_servo_extern_relative_origin:()=>eD,robot_servo_extern_relative_run:()=>tD,robot_servo_extern_stop:()=>$N,robot_servo_extern_stop_mode:()=>jN,robot_traffic_light_extern:()=>JN,servo_PIN_init:()=>pD,servo_get_angle:()=>aN,servo_get_speed:()=>uN,servo_init:()=>sN,servo_move:()=>CN,servo_move_angle:()=>aD,servo_set_angle:()=>oN,servo_set_speed:()=>pN,servo_speed_360:()=>_N,syn6288_builtin_voice:()=>wN,syn6288_get_voice:()=>UN,syn6288_set_voice:()=>GN,syn6288_tts_play:()=>HN});var Q={};e.r(Q),e.d(Q,{actuator_dc_motor:()=>BD,actuator_dc_motor_stop:()=>GD,actuator_get_led_bright:()=>gD,actuator_get_led_state:()=>CD,actuator_led_bright:()=>cD,actuator_led_brightness:()=>SD,actuator_mixbot_buzzer_on_off:()=>WD,actuator_mixgo_nova_mic_get:()=>qD,actuator_mixgo_nova_mic_set:()=>zD,actuator_mixgo_nova_onboard_music_pitch:()=>nf,actuator_mixgo_nova_onboard_music_stop:()=>sf,actuator_mixgo_nova_play_audio:()=>ef,actuator_mixgo_nova_play_online_audio:()=>tf,actuator_mixgo_nova_record_audio:()=>ZD,actuator_mixgo_nova_voice_get:()=>$D,actuator_mixgo_nova_voice_set:()=>jD,actuator_mixgo_zero_led_color:()=>AD,actuator_onboard_neopixel_rgb:()=>YD,actuator_onboard_neopixel_rgb_all:()=>vD,actuator_onboard_neopixel_rgb_show_all_chase:()=>XD,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>yD,actuator_onboard_neopixel_write:()=>PD,actuator_stepper_keep:()=>bD,actuator_stepper_stop:()=>VD,analog_ble_keyboard_init:()=>Mf,analog_ble_keyboard_input:()=>Ef,analog_ble_keyboard_mouse_init:()=>Lf,analog_ble_keyboard_mouse_input:()=>Ff,analog_ble_keyboard_mouse_send_battery:()=>ff,analog_ble_keyboard_mouse_str:()=>Pf,analog_ble_keyboard_send_battery:()=>Rf,analog_ble_keyboard_str:()=>Of,analog_ble_mouse_init:()=>cf,analog_ble_mouse_input:()=>Sf,analog_ble_mouse_keyboard_input:()=>Yf,analog_ble_mouse_send_battery:()=>Af,analog_keyboard_input:()=>af,analog_keyboard_str:()=>If,analog_mouse_input:()=>lf,backstage_onboard_music_play_list:()=>mD,bitbot_motor:()=>QD,bitbot_move:()=>KD,bitbot_stop:()=>JD,ble_keyboard_connect:()=>mf,ble_keyboard_get_mac:()=>hf,ble_keyboard_mouse_connect:()=>Df,ble_keyboard_mouse_get_mac:()=>Nf,ble_mouse_connect:()=>Cf,ble_mouse_get_mac:()=>gf,cc_number:()=>LD,educore_ble_keyboard_input:()=>wf,educore_ble_sensor_connected:()=>Uf,educore_ble_sensor_init:()=>Gf,educore_buzzer:()=>vf,educore_buzzer_play_tone:()=>Xf,educore_buzzer_play_tone_time:()=>yf,educore_buzzer_stop:()=>xf,educore_neopixel_clear:()=>Bf,educore_neopixel_rgb:()=>Vf,educore_rgb_light:()=>bf,esp32_music_get_tempo:()=>dD,esp32_music_reset:()=>ED,esp32_music_set_tempo:()=>lD,esp32_onboard_music_pitch:()=>ID,esp32_onboard_music_pitch_with_time:()=>TD,esp32_onboard_music_play_list:()=>hD,esp32_onboard_music_stop:()=>MD,general_key:()=>rf,general_key_tuple:()=>Tf,get_keyboard_light:()=>Hf,get_power_output:()=>of,ledswitch:()=>RD,mixbot_motor:()=>kD,mixbot_motor_status:()=>UD,mixbot_move:()=>wD,mixbot_stop:()=>HD,mouse_key:()=>df,number:()=>OD,record_audio:()=>Wf,rm_actuator_get_led_bright:()=>DD,rm_actuator_get_led_state:()=>fD,rm_actuator_led_bright:()=>ND,rm_actuator_led_brightness:()=>FD,rm_motor:()=>xD,set_all_power_output:()=>pf,set_microphone_amplification:()=>kf,set_music_volume:()=>Kf,set_power_output:()=>_f,special_key:()=>uf});var z={};e.r(z),e.d(z,{ai_sensor_20object:()=>AF,ai_sensor_ailocal_class:()=>TF,ai_sensor_ailocal_class_result:()=>MF,ai_sensor_ailocal_train:()=>IF,ai_sensor_asr_recognize:()=>RF,ai_sensor_audio_play:()=>mF,ai_sensor_audio_record:()=>hF,ai_sensor_barcode:()=>Zf,ai_sensor_circle:()=>_F,ai_sensor_classifier_faces:()=>SF,ai_sensor_color:()=>uF,ai_sensor_color_chases:()=>dF,ai_sensor_color_chases_result:()=>lF,ai_sensor_config:()=>zf,ai_sensor_face:()=>CF,ai_sensor_find_20objects:()=>LF,ai_sensor_find_barcodes:()=>eF,ai_sensor_find_circles:()=>oF,ai_sensor_find_colors:()=>rF,ai_sensor_find_licenseplates:()=>gF,ai_sensor_find_lines:()=>sF,ai_sensor_find_qrcodes:()=>$f,ai_sensor_find_rects:()=>aF,ai_sensor_find_tags:()=>iF,ai_sensor_licenseplate:()=>cF,ai_sensor_line:()=>nF,ai_sensor_qrcode:()=>jf,ai_sensor_qrcode_lite:()=>Qf,ai_sensor_rect:()=>pF,ai_sensor_rgb:()=>qf,ai_sensor_tag:()=>tF,ai_sensor_use_uart_init:()=>Jf,ai_sensor_yolo_recognize:()=>EF,ai_sensor_yolo_recognize_result:()=>OF});var q={};e.r(q),e.d(q,{AI_CAMERA_INIT:()=>ZF,AI_CAMERA_INIT_FACERECOGNIZE:()=>iP,AI_CAMERA_INIT_SIMPLE:()=>DP,AI_STOP_ACQUISITION:()=>AP,CAMERA_LOOGOUT:()=>wF,CI130X_BROADCAST_SANT:()=>vF,CI130X_BROADCAST_SYSTEM_TIME:()=>yF,CI130X_GET_THE_RECOGNIZED_CMD_SANT:()=>YF,CI130X_GET_WHETHER_IDENTIFY_SANT:()=>PF,CI130X_IDENTIFY_AND_SAVE_SANT:()=>FF,CI130X_OPEN_AND_CLOSE:()=>fF,CI130X_PLAY_SYSTEM_CMD_SANT:()=>xF,CI130X_SET_SYSTEM_CMD_SANT:()=>XF,CONVERT_IMAGE_TO_JPG:()=>WF,CREATE_CAMERA:()=>bF,CREATE_CAMERA_SIMPLE:()=>NP,DELETE_FACE_ALL:()=>MP,DELETE_FACE_FROM_DATABASE:()=>TP,GET_CAT_FACE_DETECTION_NUM:()=>RP,GET_COLOR_DETECTION_NUM:()=>OP,GET_FACE_DETECTION_NAME:()=>CP,GET_FACE_DETECTION_NUM:()=>gP,GET_HOW_MUCH_RECOGNITION:()=>oP,GET_HUMAN_DETECTION_NUM:()=>cP,GET_IMAGE_AND_SAVE:()=>BF,GET_IMAGE_FROM_NET:()=>UF,GET_NO_CAT_OR_FACE_RECOGNITION:()=>rP,GET_NO_FACE_RECOGNITION_INFO:()=>SP,GET_NO_RECOGNITION:()=>pP,GET_NO_XY_RECOGNITION:()=>aP,GET_NO_XY_RECOGNITION_FACE:()=>uP,GET_PICTURE_DATA_EXACT:()=>HF,GET_PICTURE_DATA_WHS:()=>KF,GET_PICTURE_RECOGNITION_DATA:()=>EP,GET_PICTURE_WIDTH_HEIGHT_DEVICE:()=>kF,GET_QR_CODE_RECOGNITION_DATA:()=>mP,GET_SCREEN_IMAGE:()=>jF,GET_SCREEN_IMAGE_SIZE:()=>$F,MIXIO_REPORT_IMAGE_DATA:()=>LP,MODEL_INIT_HEIGHT:()=>tP,MODEL_INIT_WIDTH:()=>eP,MODEL_LOGOUT:()=>nP,MODEL_RUN:()=>sP,MODEL_WHETHER_RUN_SUCCEED:()=>_P,OPEN_IMAGE:()=>GF,PRINT_FACE_DATABASE:()=>hP,REGISTER_NEW_FACE:()=>IP,REGISTER_NEW_FACE_SIMPLE:()=>FP,Register_color_recognition:()=>dP,Register_color_recognition_fixed:()=>lP,Register_color_recognition_fixed_SIMPLE:()=>fP,SCREEN_DISPLAY_IMAGE:()=>zF,SCREEN_DISPLAY_IMAGE_LOCATION:()=>qF,SCREEN_SHOW_CAM_GRAPH_SHOOT:()=>JF,SCREEN_SHOW_CAM_GRAPH_SHOOT_LOCATION:()=>QF,SHOOT_AND_SAVE_PICTURE:()=>VF,VOICE_RECOGNITION_CONTROL:()=>DF,yesorno:()=>NF});var j={};e.r(j),e.d(j,{MICROPYTHON_AI_Speech_asr:()=>vP,MICROPYTHON_AI_Speech_unit:()=>YP,MICROPYTHON_AI_client:()=>PP});var $={};e.r($),e.d($,{mpython_blynk_app_data:()=>WP,mpython_blynk_app_notify:()=>GP,mpython_blynk_email:()=>KP,mpython_blynk_get_timers:()=>wP,mpython_blynk_on_connected:()=>bP,mpython_blynk_on_disconnected:()=>xP,mpython_blynk_run:()=>BP,mpython_blynk_sensor_data_to_app:()=>kP,mpython_blynk_set_property:()=>JP,mpython_blynk_setup:()=>QP,mpython_blynk_stop_timers:()=>UP,mpython_blynk_sync_virtual:()=>yP,mpython_blynk_terminal_widget_vpin:()=>XP,mpython_blynktimer:()=>HP,mpython_blynktimer_run:()=>VP});var Z={};e.r(Z),e.d(Z,{communicate_bluetooth_central_init:()=>fY,communicate_bluetooth_connect:()=>YY,communicate_bluetooth_disconnect:()=>vY,communicate_bluetooth_handle:()=>BY,communicate_bluetooth_is_connected:()=>yY,communicate_bluetooth_mac:()=>XY,communicate_bluetooth_peripheral_init:()=>FY,communicate_bluetooth_recv:()=>VY,communicate_bluetooth_recv_only:()=>bY,communicate_bluetooth_scan:()=>PY,communicate_bluetooth_send:()=>xY,communicate_espnow_init:()=>GY,communicate_espnow_init_new:()=>UY,communicate_i2c_available:()=>iY,communicate_i2c_init:()=>jP,communicate_i2c_master_read:()=>tY,communicate_i2c_onboard:()=>zP,communicate_i2c_read:()=>$P,communicate_i2c_scan:()=>eY,communicate_i2c_write:()=>ZP,communicate_ir_recv_init:()=>OY,communicate_ir_send_init:()=>SY,communicate_ow_init:()=>IY,communicate_ow_read:()=>hY,communicate_ow_reset:()=>MY,communicate_ow_scan:()=>TY,communicate_ow_select:()=>EY,communicate_ow_write:()=>mY,communicate_spi_buffer:()=>oY,communicate_spi_init:()=>sY,communicate_spi_onboard:()=>qP,communicate_spi_read:()=>pY,communicate_spi_read_output:()=>aY,communicate_spi_readinto:()=>uY,communicate_spi_readinto_output:()=>rY,communicate_spi_set:()=>_Y,communicate_spi_write:()=>lY,communicate_spi_write_readinto:()=>dY,espnow_radio_channel:()=>JY,espnow_radio_channel_new:()=>zY,espnow_radio_on_off:()=>qY,espnow_radio_rec:()=>$Y,espnow_radio_recv:()=>ev,espnow_radio_recv_certain_msg:()=>tv,espnow_radio_recv_certain_msg_new:()=>nv,espnow_radio_recv_msg:()=>ZY,espnow_radio_recv_new:()=>iv,espnow_radio_send:()=>jY,espnow_radio_txpower:()=>QY,i2c_slave_onreceive:()=>nY,internal_variable:()=>RY,ir_recv_timeout:()=>CY,ir_transmit_busy:()=>DY,ir_transmit_conventional_data:()=>AY,ir_transmit_raw_code:()=>NY,ir_transmit_study_code:()=>LY,ir_whether_recv:()=>gY,lora_init:()=>sv,lora_packet:()=>_v,lora_recv:()=>pv,lora_send:()=>ov,network_espnow_info:()=>HY,network_espnow_mac:()=>wY,network_espnow_recv:()=>kY,network_espnow_recv_handle:()=>KY,network_espnow_send:()=>WY,recv_fun:()=>cY,urequests_attribute:()=>uv,urequests_get:()=>av,urequests_method:()=>rv});var ee={};e.r(ee),e.d(ee,{display_animate:()=>yv,display_circle:()=>xv,display_color_seclet:()=>Jv,display_draw_4strings:()=>Dv,display_fill:()=>Xv,display_lcd_use_i2c_init:()=>Zv,display_line:()=>Pv,display_line_arbitrarily:()=>fv,display_matrix_extern_bright_point:()=>cv,display_matrix_extern_bright_screen:()=>Cv,display_matrix_extern_clear:()=>Ev,display_matrix_extern_get_pixel:()=>Rv,display_matrix_extern_get_screen_pixel:()=>gv,display_matrix_extern_image_builtins:()=>Sv,display_matrix_extern_scroll_string:()=>hv,display_matrix_extern_scroll_string_delay:()=>mv,display_matrix_extern_shift:()=>Ov,display_matrix_extern_show_frame_string:()=>Tv,display_matrix_extern_show_frame_string_delay:()=>Mv,display_matrix_extern_show_image:()=>dv,display_matrix_extern_show_image_or_string_delay:()=>Iv,display_matrix_use_i2c_init:()=>lv,display_oled_drawPixel:()=>Bv,display_oled_showBitmap:()=>Vv,display_oled_use_i2c_init:()=>sX,display_onoff:()=>Yv,display_rect:()=>Fv,display_tm1650_power:()=>Uv,display_tm1650_set_brightness:()=>kv,display_tm1650_show_dot:()=>Hv,display_tm1650_show_num:()=>wv,display_tm_use_i2c_init:()=>Gv,display_triangle:()=>bv,display_use_i2c_init:()=>Nv,extern_oled_bright_point:()=>hX,extern_oled_clear:()=>IX,extern_oled_get_pixel:()=>MX,extern_oled_hvline:()=>EX,extern_oled_line:()=>OX,extern_oled_scroll_string:()=>lX,extern_oled_scroll_string_delay:()=>dX,extern_oled_shape_rect:()=>mX,extern_oled_shift:()=>TX,extern_oled_show_frame_string:()=>uX,extern_oled_show_frame_string_delay:()=>rX,extern_oled_show_image:()=>_X,extern_oled_show_image_or_string_delay:()=>aX,extern_oled_show_image_xy:()=>oX,extern_oled_show_string:()=>pX,image_shift:()=>vv,lcd_backlight:()=>iX,lcd_clear:()=>nX,lcd_print_string:()=>tX,lcd_show_image_or_string_delay:()=>eX,matrix_extern_image_arithmetic:()=>Av,matrix_extern_image_invert:()=>Lv,tft_fill:()=>jv,tft_line_arbitrarily:()=>$v,tft_scroll_string_delay:()=>qv,tft_show_frame_string_delay:()=>zv,tft_show_image_or_string_delay:()=>Qv,tft_show_image_xy:()=>Kv,tft_use_spi_init:()=>Wv});var te={};e.r(te),e.d(te,{bitbot_display_bitmap_create:()=>dy,bitbot_display_image_create:()=>ly,display_available:()=>vX,display_bitmap_create:()=>PX,display_bright_point:()=>VX,display_bright_screen:()=>GX,display_clear:()=>YX,display_get_pixel:()=>bX,display_get_screen_pixel:()=>BX,display_image_builtins:()=>DX,display_image_builtins_all:()=>fX,display_image_create:()=>FX,display_scroll_string:()=>SX,display_scroll_string_delay:()=>AX,display_scroll_way:()=>LX,display_shift:()=>xX,display_show_frame_string:()=>gX,display_show_frame_string_delay:()=>CX,display_show_image:()=>RX,display_show_image_or_string_delay:()=>cX,draw_pointer:()=>fy,image_arithmetic:()=>XX,image_invert:()=>yX,mixbot_display_bitmap_create:()=>oy,mixbot_display_bright_screen:()=>uy,mixbot_display_get_ambientbright:()=>ay,mixbot_display_get_screen_pixel:()=>py,mixbot_display_image_create:()=>_y,mixbot_display_rotate:()=>ry,mixgo_display_bitmap_create:()=>JX,mixgo_display_image_create_new:()=>KX,mixgome_display_bitmap_create:()=>wX,mixgome_display_font:()=>WX,mixgome_display_image_create:()=>UX,mixgomini_display_bitmap_create:()=>kX,mixgomini_display_image_create:()=>HX,mpython_display_hvline:()=>ny,mpython_display_line:()=>sy,mpython_display_shape_rect:()=>iy,mpython_pbm_image:()=>QX,nova_draw_pointer:()=>Fy,onboard_oled_bright_point:()=>ty,onboard_oled_scroll_string_delay:()=>ey,onboard_oled_show_frame_string_delay:()=>ZX,onboard_oled_show_image:()=>zX,onboard_oled_show_image_or_string_delay:()=>$X,onboard_oled_show_image_xy:()=>qX,onboard_oled_show_string:()=>jX,onboard_tft_bright_point:()=>cy,onboard_tft_bright_screen:()=>Vy,onboard_tft_clear:()=>By,onboard_tft_clock_clear:()=>Ny,onboard_tft_clock_draw:()=>Ly,onboard_tft_clock_get_rtctime:()=>Sy,onboard_tft_clock_init:()=>Cy,onboard_tft_clock_set_time:()=>Ay,onboard_tft_display_hvline:()=>Ey,onboard_tft_display_line:()=>Oy,onboard_tft_display_shape_circle:()=>Dy,onboard_tft_display_shape_rect:()=>my,onboard_tft_fill:()=>gy,onboard_tft_get_pixel:()=>Ry,onboard_tft_get_screen_pixel:()=>by,onboard_tft_scroll_string_delay:()=>NX,onboard_tft_shift:()=>xy,onboard_tft_show_frame_string:()=>yy,onboard_tft_show_frame_string_delay:()=>hy,onboard_tft_show_image:()=>Xy,onboard_tft_show_image_or_string_delay:()=>My,onboard_tft_show_image_xy:()=>Iy,onboard_tft_show_image_xy_direct:()=>Ty,onboard_tft_show_qrcode:()=>Yy,onboard_tft_show_qrcode_details:()=>vy,onboard_tft_show_texts:()=>Py});var ie={};e.r(ie),e.d(ie,{factory_block:()=>Jy,factory_block_return:()=>Qy,factory_block_return_with_textarea:()=>qy,factory_block_with_textarea:()=>zy,factory_callMethod_noreturn:()=>Wy,factory_callMethod_return:()=>Ky,factory_declare:()=>ky,factory_from_import:()=>Gy,factory_function_noreturn:()=>wy,factory_function_return:()=>Hy,factory_import:()=>Uy,folding_block:()=>jy});var ne={};e.r(ne),e.d(ne,{inout_analog_atten:()=>dx,inout_analog_read:()=>_x,inout_analog_read_init:()=>lx,inout_analog_write:()=>ix,inout_analog_write_init:()=>rx,inout_analog_write_set:()=>nx,inout_digital_init:()=>ax,inout_digital_read:()=>ex,inout_digital_write:()=>Zy,inout_highlow:()=>$y,inout_pin_attachInterrupt:()=>px,inout_pin_pressed:()=>ox,inout_pin_pressed_init:()=>Ix,inout_pwm_analog_write:()=>tx,inout_pwm_analog_write_init:()=>ux,inout_pwm_analog_write_set_freq:()=>sx});var se={};e.r(se),e.d(se,{IOT_CONNECT_OLLAMA:()=>wx,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>vx,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>Px,IOT_EMQX_PING:()=>Xx,IOT_FORMATTING:()=>fx,IOT_FORMAT_STRING:()=>Fx,IOT_MIXIO_NTP:()=>yx,IOT_MIXIO_PUBLISH:()=>cx,IOT_MIXIO_PUBLISHEX:()=>gx,IOT_MIXIO_SUBSCRIBE:()=>Cx,iot_client_onboard:()=>xx,iot_connect_ollama:()=>Ux,iot_connect_openai:()=>Hx,iot_http_client:()=>bx,iot_http_data:()=>Vx,iot_mixio_check:()=>Lx,iot_mixio_connect:()=>Rx,iot_mixio_connect_only:()=>Ax,iot_mixio_disconnect:()=>Sx,iot_mixio_format_msg:()=>Dx,iot_mixio_format_topic:()=>Nx,iot_mixly_key:()=>Yx,iot_mqtt_client:()=>Bx,iot_mqtt_data:()=>Gx,iot_onenet_check:()=>Ex,iot_onenet_connect:()=>Mx,iot_onenet_disconnect:()=>hx,iot_onenet_publish:()=>Ox,iot_onenet_publish_dict:()=>mx,iot_tiny_web_db_count:()=>jx,iot_tiny_web_db_delete:()=>Zx,iot_tiny_web_db_get:()=>qx,iot_tiny_web_db_init:()=>Jx,iot_tiny_web_db_init_with_mqtt:()=>Qx,iot_tiny_web_db_search:()=>$x,iot_tiny_web_db_update:()=>zx,iot_wifi_connect:()=>Tx,ollama_empty_history:()=>Kx,use_ollama_llm_to_chat:()=>kx,use_ollama_llm_to_chat_return:()=>Wx});var _e={};e.r(_e),e.d(_e,{educore_mqtt_connect:()=>Pb,educore_mqtt_connect_success:()=>yb,educore_mqtt_subscribe_message:()=>Yb,educore_mqtt_topic_publish:()=>Xb,educore_mqtt_topic_subscribe:()=>vb,educore_wifi_connect:()=>Fb,network_ap_connect:()=>ab,network_connect:()=>tb,network_get_connect:()=>nb,network_get_wifi:()=>pb,network_init:()=>eb,network_is_active:()=>ob,network_open:()=>_b,network_scan:()=>ub,network_server:()=>rb,network_socket_accept:()=>Mb,network_socket_bind:()=>db,network_socket_close:()=>cb,network_socket_connect:()=>Ib,network_socket_init:()=>lb,network_socket_listen:()=>Tb,network_socket_readline:()=>hb,network_socket_receive:()=>mb,network_socket_receive_from:()=>Ob,network_socket_send:()=>Eb,network_socket_send_to:()=>Rb,network_stop:()=>sb,network_wifi_connect:()=>ib,ntptime_address:()=>Lb,ntptime_time:()=>Ab,requests_attribute:()=>Cb,requests_attribute2:()=>Db,requests_get:()=>gb,requests_get2:()=>Nb,requests_method:()=>Sb,requests_post:()=>fb});var oe={};e.r(oe),e.d(oe,{get_potential_num:()=>xb,nova_g1_motor:()=>bb,nova_g1_spk_en:()=>Bb,nova_g1_usb:()=>Vb});var pe={};e.r(pe),e.d(pe,{pe_g1_battery_left:()=>Ub,pe_g1_dc_motor:()=>wb,pe_g1_dc_motor_speed:()=>Hb,pe_g1_servo_get_angle:()=>Kb,pe_g1_servo_get_speed:()=>Jb,pe_g1_servo_set_angle:()=>kb,pe_g1_servo_set_speed:()=>Wb,pe_g1_use_i2c_init:()=>Gb});var ae={};e.r(ae),e.d(ae,{CI130X_BROADCAST:()=>hV,CI130X_GET_THE_RECOGNIZED_CMD:()=>MV,CI130X_GET_WHETHER_IDENTIFY:()=>TV,CI130X_IDENTIFY_AND_SAVE:()=>IV,CI130X_SET_SYSTEM_CMD:()=>mV,HCSR04:()=>zV,PS2_Button:()=>$V,PS2_Buttons:()=>ZV,PS2_Buttons_new:()=>pB,PS2_State:()=>eB,PS2_init:()=>qV,PS2_init_new:()=>_B,PS2_stk:()=>tB,PS2_stk_new:()=>aB,PS2_vibration:()=>jV,PS2_vibration_new:()=>oB,RTC_get_time:()=>nB,RTC_set_date:()=>tV,RTC_set_datetime:()=>iB,RTC_set_time:()=>eV,camera_sensor_init:()=>BB,camera_sensor_result:()=>GB,column_tube_foot:()=>kB,define_keyboards:()=>WB,educore_body_sensor:()=>fB,educore_button_sensor_extern:()=>vB,educore_camera_sensor:()=>VB,educore_infrared_sensor:()=>YB,educore_soilhum_sensor:()=>FB,educore_temp_sensor:()=>bB,educore_temphum_sensor:()=>PB,educore_ultrasonic_sensor:()=>yB,esp32_s2_weather_init:()=>WV,esp32_s2_weather_rain:()=>JV,esp32_s2_weather_wd:()=>KV,esp32_s2_weather_ws:()=>QV,extern_rfid_read:()=>vV,extern_rfid_readcontent:()=>yV,extern_rfid_readid:()=>XV,extern_rfid_status:()=>VV,extern_rfid_write:()=>xV,extern_rfid_write_return:()=>bV,get_keboards_value:()=>JB,gnss_get_data:()=>lB,gnss_have_data:()=>dB,init_init_rotary_encoder:()=>QB,init_matrix_keyboard:()=>KB,interaction_whether_to_interaction:()=>lV,interaction_whether_to_interaction_SANT:()=>dV,line_tube_foot:()=>HB,mixbot_sensor_extern_get_addr:()=>gB,mixbot_sensor_extern_set_addr:()=>CB,pm25_get_data:()=>rB,radar_set_DETECTION_THRESHOLD:()=>uV,radar_set_DETECTION_THRESHOLD_SANT:()=>rV,robot_button_extern_get_value:()=>TB,robot_color_extern_get_value:()=>OB,robot_infrared_extern_get_value:()=>hB,robot_infrared_extern_grey_get_value:()=>mB,robot_potentiometer_extern_get_value:()=>EB,robot_sonar_extern_get_value:()=>RB,robot_sonar_extern_led:()=>cB,robot_touch_extern_get_value:()=>MB,rotary_key:()=>zB,sensor_APDS9960_extern:()=>OV,sensor_DS18X20:()=>DB,sensor_LTR308_extern:()=>RV,sensor_LTR390UV_extern:()=>NV,sensor_MAX30102_extern:()=>EV,sensor_QMC5883L_extern:()=>DV,sensor_VL530LX_extern:()=>PV,sensor_aht11_extern:()=>FV,sensor_bmp:()=>oV,sensor_dht11:()=>sB,sensor_distance_hrsc04:()=>Zb,sensor_hp203_extern:()=>cV,sensor_ltr381_extern:()=>AV,sensor_mixgo_extern_button_attachInterrupt:()=>jb,sensor_mixgo_extern_button_get_presses:()=>qb,sensor_mixgo_extern_button_is_pressed:()=>Qb,sensor_mixgo_extern_button_was_pressed:()=>zb,sensor_mixgo_extern_light:()=>iV,sensor_mixgo_extern_pin_near:()=>sV,sensor_mixgo_extern_sound:()=>nV,sensor_mixgoce_hot_wheel_degrees:()=>kV,sensor_mixgoce_hot_wheel_is_touched:()=>HV,sensor_mpu9250_attachGestureInterrupt:()=>$b,sensor_ms5611_extern:()=>CV,sensor_ms5611_extern_altitude:()=>SV,sensor_read_humiture:()=>XB,sensor_rtc_init:()=>_V,sensor_sht:()=>pV,sensor_shtc3_extern:()=>fV,sensor_spl06_001_extern:()=>gV,sensor_ucs12071_extern:()=>LV,sensor_use_i2c_init:()=>aV,sensor_use_spi_init:()=>YV,sensor_use_uart_init:()=>uB,sensor_weather_solo_init:()=>SB,sensor_weather_solo_rain:()=>NB,sensor_weather_solo_wd:()=>AB,sensor_weather_solo_ws:()=>LB,sensor_weigh_init:()=>UB,tvoc_get_data:()=>IB,ultrasonic_sensor_read_distance:()=>xB,weather_data:()=>BV,weather_have_data:()=>GV,weather_set_label:()=>wV,weather_uart_mixio:()=>UV,weigh_sensor_get_weight:()=>wB});var ue={};e.r(ue),e.d(ue,{HCSR04:()=>sG,bitbot_als_num:()=>LU,dht11:()=>XU,educore_button_sensor:()=>UU,educore_button_was_pressed:()=>wU,educore_gyroscope_sensor:()=>VU,educore_gyroscope_sensor_read:()=>BU,educore_gyroscope_sensor_shake:()=>GU,educore_light_sensor:()=>bU,educore_rfid_sensor:()=>HU,educore_rfid_sensor_scan:()=>kU,educore_rfid_sensor_scan_data:()=>WU,educore_voice_sensor:()=>yU,number1:()=>_G,number2:()=>oG,number3:()=>pG,number4:()=>aG,number5:()=>uG,number6:()=>rG,number7:()=>lG,onboard_RTC_get_time:()=>iU,onboard_RTC_get_time_str:()=>_U,onboard_RTC_get_timestamp:()=>nU,onboard_RTC_get_timetuple_to_str:()=>oU,onboard_RTC_set_datetime:()=>eU,onboard_RTC_settime_string:()=>tU,onboard_RTC_timestamp_totuple:()=>sU,rfid_readcontent:()=>NG,rfid_readid:()=>LG,rfid_status:()=>FG,rfid_write:()=>DG,rfid_write_return:()=>fG,sensor_LTR308:()=>cG,sensor_adxl345_get_acceleration:()=>BG,sensor_aht11:()=>SG,sensor_bitbot_ALS:()=>AU,sensor_button_get_presses:()=>fU,sensor_button_is_pressed:()=>NU,sensor_button_was_pressed:()=>DU,sensor_compass_reset:()=>WG,sensor_ds18x20:()=>OG,sensor_eulerangles:()=>YG,sensor_get_acceleration:()=>PG,sensor_get_temperature:()=>AG,sensor_get_the_coprocessor_version:()=>KU,sensor_hp203:()=>CG,sensor_light:()=>vU,sensor_lm35:()=>RG,sensor_mixbot_get_gyro:()=>SU,sensor_mixbot_patrol_calibrate:()=>cU,sensor_mixbot_patrol_value:()=>gU,sensor_mixbot_temperature:()=>CU,sensor_mixgo_LTR308:()=>hG,sensor_mixgo_button_attachInterrupt:()=>ZB,sensor_mixgo_button_get_presses:()=>$B,sensor_mixgo_button_is_pressed:()=>qB,sensor_mixgo_button_was_pressed:()=>jB,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>uU,sensor_mixgo_cc_mmc5603_get_angle:()=>aU,sensor_mixgo_cc_mmc5603_get_magnetic:()=>pU,sensor_mixgo_light:()=>YU,sensor_mixgo_nova_LTR308:()=>EG,sensor_mixgo_nova_pin_near:()=>MG,sensor_mixgo_pin_near:()=>TG,sensor_mixgo_pin_near_double:()=>IG,sensor_mixgo_pin_near_single:()=>dG,sensor_mixgo_pin_pressed:()=>bG,sensor_mixgo_sant_color:()=>mG,sensor_mixgo_touch_slide:()=>xG,sensor_mixgocar42_button_attachInterrupt:()=>nG,sensor_mixgocar42_button_get_presses:()=>iG,sensor_mixgocar42_button_is_pressed:()=>eG,sensor_mixgocar42_button_was_pressed:()=>tG,sensor_mixgocar_battery_left:()=>RU,sensor_mixgocar_pin_near:()=>EU,sensor_mixgocar_pin_near_line:()=>mU,sensor_mixgocar_pin_near_state_change:()=>OU,sensor_mixgoce_pin_pressed:()=>yG,sensor_mixgoce_temperature:()=>lU,sensor_mixgome_temperature:()=>rU,sensor_mpu9250_calibrate_compass:()=>wG,sensor_mpu9250_field_strength:()=>kG,sensor_mpu9250_gesture:()=>vG,sensor_mpu9250_get_acceleration:()=>XG,sensor_mpu9250_get_gyro:()=>UG,sensor_mpu9250_get_magnetic:()=>GG,sensor_mpu9250_temperature:()=>HG,sensor_mpython_pin_pressed:()=>VG,sensor_mpython_qmi8658_get_gyro:()=>dU,sensor_mpython_qmi8658_temperature:()=>IU,sensor_onboard_compass_reset:()=>ZG,sensor_onboard_mpu9250_calibrate_compass:()=>qG,sensor_onboard_mpu9250_field_strength:()=>$G,sensor_onboard_mpu9250_gesture:()=>KG,sensor_onboard_mpu9250_get_acceleration:()=>JG,sensor_onboard_mpu9250_get_gyro:()=>zG,sensor_onboard_mpu9250_get_magnetic:()=>QG,sensor_onboard_mpu9250_temperature:()=>jG,sensor_pin_near:()=>PU,sensor_pin_pressed:()=>FU,sensor_read:()=>xU,sensor_rm_acc:()=>hU,sensor_rm_battery_left:()=>MU,sensor_rm_pin_near_double:()=>TU,sensor_sound:()=>gG,simulated_light_sensor:()=>JU});var re={};e.r(re),e.d(re,{serial_any:()=>$U,serial_print:()=>QU,serial_print_byte:()=>zU,serial_print_hex:()=>jU,serial_println:()=>qU,serial_read_from_ai:()=>uw,serial_readline:()=>ew,serial_readstr:()=>ZU,serial_send_to_ai:()=>aw,serial_softserial:()=>tw,serial_softserial_new:()=>iw,system_input:()=>nw,system_print:()=>sw,system_print_end:()=>ow,system_print_inline:()=>_w,system_print_many:()=>pw});var le={};e.r(le),e.d(le,{Panic_with_status_code:()=>cw,Timer_init:()=>bw,base_delay:()=>Gw,controls_delay:()=>Lw,controls_delay_new:()=>Nw,controls_end_program:()=>Cw,controls_millis:()=>gw,controls_uname:()=>Aw,reset:()=>Sw,set_system_timer:()=>fw,system_bitbot_shutdown:()=>xw,system_device_name:()=>Ow,system_device_serial_number:()=>Rw,system_event_bus_source:()=>mw,system_event_bus_value:()=>Ew,system_machine_reset:()=>yw,system_on_event:()=>Tw,system_raise_event:()=>Iw,system_reset:()=>lw,system_run_in_background:()=>rw,system_ticks_diff:()=>Fw,system_timer:()=>Yw,system_timer_init:()=>Pw,system_timestamp:()=>Mw,system_value:()=>hw,system_wait:()=>dw,system_wdt_feed:()=>Xw,system_wdt_init:()=>vw,time_ticks_diff:()=>Bw,timer:()=>Dw,timer2:()=>Vw});var de={};e.r(de),e.d(de,{Air_daily_content:()=>Zw,Air_now_content:()=>Kw,Geo_moon_content:()=>tH,Geo_sun_content:()=>eH,Life_suggestion_content:()=>Qw,Location_search_content:()=>qw,Tide_daily_content:()=>zw,WEATHER_DAILY:()=>ww,WEATHER_HOUR:()=>Hw,WEATHER_NOW:()=>Uw,Weather_alarm_content:()=>Jw,Weather_daily:()=>jw,Weather_daily_content:()=>$w,Weather_now:()=>kw,Weather_now_content:()=>Ww});var Ie={};e.r(Ie),e.d(Ie,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>sH});var Te={};e.r(Te),e.d(Te,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>oH});var Me={};e.r(Me),e.d(Me,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>aH});var he={};e.r(he),e.d(he,{controls_pin_attachInterrupt:()=>DH,inout_analog_atten:()=>EH,inout_analog_write:()=>hH,inout_analog_write_init:()=>gH,inout_analog_write_set:()=>mH,inout_analog_write_set_freq:()=>SH,inout_digital_init:()=>cH,inout_digital_read:()=>MH,inout_digital_write:()=>TH,inout_highlow:()=>IH,inout_pinMode:()=>AH,inout_pin_attachInterrupt:()=>RH,inout_pin_pressed:()=>OH,inout_pin_pressed_init:()=>CH,pin_pressed:()=>NH,pin_pressed_init:()=>LH});var me={};e.r(me),e.d(me,{analog_input:()=>bH,analog_output:()=>BH,espnow_channel:()=>XH,haskylens_model:()=>yH,i2c_A_pin:()=>GH,i2c_B_pin:()=>UH,pins_analog:()=>KH,pins_analog_pin:()=>JH,pins_axis:()=>rk,pins_brightness:()=>lk,pins_builtinimg:()=>nk,pins_builtinimg_extern:()=>sk,pins_button:()=>qH,pins_buttonB:()=>jH,pins_dac:()=>QH,pins_dac_pin:()=>zH,pins_digital:()=>FH,pins_digital_dot:()=>Ok,pins_digital_pin:()=>PH,pins_exlcdh:()=>ak,pins_exlcdv:()=>uk,pins_imglist:()=>_k,pins_input_pin:()=>YH,pins_one_more:()=>Ek,pins_output_pin:()=>vH,pins_playlist:()=>ok,pins_playlist_extern:()=>pk,pins_pwm:()=>$H,pins_pwm_pin:()=>ZH,pins_radio_datarate:()=>mk,pins_radio_power:()=>hk,pins_serial:()=>ik,pins_tone_notes:()=>Mk,pins_touch:()=>tk,pins_touch_pin:()=>ek,pins_tts_bgmusic:()=>Tk,pins_tts_builtin_music:()=>Ik,pins_tts_voice:()=>dk,pwm_input:()=>xH,pwm_output:()=>VH,spi_A_pin:()=>wH,spi_B_pin:()=>HH,spi_C_pin:()=>kH,spi_D_pin:()=>WH,timer_id_pin:()=>Rk});var Ee={};e.r(Ee),e.d(Ee,{mini_g2_rfid_readcontent:()=>gk,mini_g2_rfid_readid:()=>ck,mini_g2_rfid_status:()=>Ak,mini_g2_rfid_write:()=>Ck,mini_g2_rfid_write_outcome:()=>Sk});var Oe={};e.r(Oe),e.d(Oe,{inout_analog_atten:()=>yk,inout_analog_write:()=>fk,inout_analog_write_init:()=>Xk,inout_analog_write_set:()=>Fk,inout_digital_init:()=>vk,inout_digital_read:()=>Dk,inout_digital_write:()=>Nk,inout_highlow:()=>Lk,inout_pin_attachInterrupt:()=>Yk,inout_pin_pressed:()=>Pk,inout_pin_pressed_init:()=>xk});var Re={};e.r(Re),e.d(Re,{analog_input:()=>Kk,analog_output:()=>Qk,espnow_channel:()=>kk,haskylens_model:()=>Wk,i2c_A_pin:()=>zk,i2c_B_pin:()=>qk,pins_analog:()=>iW,pins_analog_pin:()=>tW,pins_axis:()=>MW,pins_brightness:()=>EW,pins_builtinimg:()=>DW,pins_builtinimg_extern:()=>lW,pins_button:()=>Vk,pins_buttonB:()=>Bk,pins_dac:()=>oW,pins_dac_pin:()=>_W,pins_digital:()=>bk,pins_digital_dot:()=>LW,pins_digital_pin:()=>Gk,pins_exlcdh:()=>hW,pins_exlcdv:()=>mW,pins_imglist:()=>dW,pins_input_pin:()=>Uk,pins_interrupt:()=>uW,pins_one_more:()=>AW,pins_output_pin:()=>wk,pins_playlist:()=>IW,pins_playlist_extern:()=>TW,pins_pwm:()=>sW,pins_pwm_input:()=>Hk,pins_pwm_pin:()=>nW,pins_radio_datarate:()=>SW,pins_radio_power:()=>CW,pins_serial:()=>rW,pins_tone_notes:()=>gW,pins_touch:()=>aW,pins_touch_pin:()=>pW,pins_tts_bgmusic:()=>cW,pins_tts_builtin_music:()=>RW,pins_tts_voice:()=>OW,pwm_output:()=>Jk,spi_A_pin:()=>jk,spi_B_pin:()=>$k,spi_C_pin:()=>Zk,spi_D_pin:()=>eW,timer_id_pin:()=>NW});var ce={};e.r(ce),e.d(ce,{mini_g2_rfid_readcontent:()=>FW,mini_g2_rfid_readid:()=>fW,mini_g2_rfid_status:()=>vW,mini_g2_rfid_write:()=>PW,mini_g2_rfid_write_outcome:()=>YW});const ge=Blockly,Ce=Mixly,Se={NAME_TYPE:"VARIABLE",allVariables:function(e){var t;if(e.getDescendants)t=e.getDescendants();else{if(!e.getAllBlocks)throw"Not Block or Workspace: "+e;t=e.getAllBlocks()}for(var i=Object.create(null),n=0;n1&&(o+=n)):i=o}else i="i";return i}},Ae=Se; /** * @license * Visual Blocks Editor * * Copyright 2012 Google Inc. * https://developers.google.com/blockly/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ class Le{constructor(e,t){if(this.variablePrefix_=t||"",this.reservedDict_=Object.create(null),e)for(var i=e.split(","),n=0;n0;s--)t.getInputTargetBlock("IF"+s)&&t.getInputTargetBlock("IF"+s).previousConnection?i[s]=t.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),t.getInputTargetBlock("DO"+s)&&t.getInputTargetBlock("DO"+s).previousConnection?n[s]=t.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(e.getAttribute("elseif"),10),this.elseCount_=parseInt(e.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(ge.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+s).appendField(ge.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.CONTROLS_IF_MSG_ELSE);for(s=i.length-2;s>0;s--)i[s]&&i[s].reconnect(this,"IF"+s);for(s=n.length-2;s>0;s--)n[s]&&n[s].reconnect(this,"DO"+s)},decompose:function(e){var t=e.newBlock("controls_if_if");t.initSvg();for(var i=t.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=e.newBlock("controls_if_elseif");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=e.newBlock("controls_if_else");_.initSvg(),i.connect(_.previousConnection)}return t},compose:function(e){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var t=this.elseifCount_;t>0;t--)this.removeInput("IF"+t),this.removeInput("DO"+t);this.elseifCount_=0;for(var i=e.getInputTargetBlock("STACK"),n=[null],s=[null],_=null;i;){switch(i.type){case"controls_if_elseif":this.elseifCount_++,n.push(i.valueConnection_),s.push(i.statementConnection_);break;case"controls_if_else":this.elseCount_++,_=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,_)},saveConnections:function(e){for(var t=e.getInputTargetBlock("STACK"),i=1;t;){switch(t.type){case"controls_if_elseif":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);t.valueConnection_=n&&n.connection.targetConnection,t.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_if_else":s=this.getInput("ELSE");t.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}t=t.nextConnection&&t.nextConnection.targetBlock()}},rebuildShape_:function(){var e=[null],t=[null],i=null;this.getInput("ELSE")&&(i=this.getInput("ELSE").connection.targetConnection);for(var n=1;this.getInput("IF"+n);){var s=this.getInput("IF"+n),_=this.getInput("DO"+n);console.log(s.connection.targetConnection),e.push(s.connection.targetConnection),t.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(e,t,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var e=1;this.getInput("IF"+e);)this.removeInput("IF"+e),this.removeInput("DO"+e),e++;for(e=1;e<=this.elseifCount_;e++)this.appendValueInput("IF"+e).setCheck([Number,Boolean]).appendField(ge.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+e).appendField(ge.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.CONTROLS_IF_MSG_ELSE)},reconnectChildBlocks_:function(e,t,i){for(var n=1;n<=this.elseifCount_;n++)e[n]&&e[n].reconnect(this,"IF"+n),t[n]&&t[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},We={init:function(){this.setColour(Be),this.appendValueInput("FROM").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.PYTHON_RANGE).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.PYTHON_RANGE_STEP),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_RANGE_TOOLTIP)}},Ke={init:function(){this.setColour(Be),this.appendValueInput("LIST").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.CONTROLS_FOREACH_INPUT),this.appendValueInput("VAR").appendField(ge.Msg.CONTROLS_FOREACH_INPUT_ITEM),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip((function(){return ge.Msg.CONTROLS_FOR_TOOLTIP.replace("“%1”","")}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},Je={init:function(){this.setColour(Be),this.appendValueInput("BOOL").setCheck([Boolean,Number]).appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT).appendField(new ge.FieldDropdown(this.OPERATORS),"MODE"),this.appendStatementInput("DO").appendField(ge.Msg.LANG_CONTROLS_WHILEUNTIL_TITLE_REPEAT+ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return{WHILE:ge.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE,UNTIL:ge.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}[t]}))}},Qe={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_TRY),this.appendStatementInput("try"),this.appendValueInput("IF1").appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO1").appendField(""),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new ge.icons.MutatorIcon(["controls_except","controls_finally"],this)),this.setTooltip(ge.Msg.MIXLY_MIXPY_CONTROL_TRY_TOOLTIP),this.elseifCount_=1,this.elseCount_=0},mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;var e=document.createElement("mutation");return this.elseifCount_&&e.setAttribute("elseif",this.elseifCount_),this.elseCount_&&e.setAttribute("else",1),e},domToMutation:function(e){var t=this,i=[],n=[];this.elseCount_&&this.removeInput("ELSE");for(var s=this.elseifCount_;s>0;s--)t.getInputTargetBlock("IF"+s)&&t.getInputTargetBlock("IF"+s).previousConnection?i[s]=t.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),t.getInputTargetBlock("DO"+s)&&t.getInputTargetBlock("DO"+s).previousConnection?n[s]=t.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(e.getAttribute("elseif"),10),this.elseCount_=parseInt(e.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+s).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.MIXLY_PYTHON_FINALLY);for(s=i.length-2;s>0;s--)i[s]&&i[s].reconnect(this,"IF"+s);for(s=n.length-2;s>0;s--)n[s]&&n[s].reconnect(this,"DO"+s)},decompose:function(e){var t=e.newBlock("controls_try");t.initSvg();for(var i=t.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=e.newBlock("controls_except");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var _=e.newBlock("controls_finally");_.initSvg(),i.connect(_.previousConnection)}return t},compose:function(e){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var t=this.elseifCount_;t>0;t--)this.removeInput("IF"+t),this.removeInput("DO"+t);this.elseifCount_=0;for(var i=e.getInputTargetBlock("STACK"),n=[null],s=[null],_=null;i;){switch(i.type){case"controls_except":this.elseifCount_++,n.push(i.valueConnection_),s.push(i.statementConnection_);break;case"controls_finally":this.elseCount_++,_=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,_)},saveConnections:function(e){for(var t=e.getInputTargetBlock("STACK"),i=1;t;){switch(t.type){case"controls_except":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);t.valueConnection_=n&&n.connection.targetConnection,t.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_finally":s=this.getInput("ELSE");t.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}t=t.nextConnection&&t.nextConnection.targetBlock()}},rebuildShape_:function(){var e=[null],t=[null],i=null;this.getInput("ELSE")&&(i=this.getInput("ELSE").connection.targetConnection);for(var n=1;this.getInput("IF"+n);){var s=this.getInput("IF"+n),_=this.getInput("DO"+n);console.log(s.connection.targetConnection),e.push(s.connection.targetConnection),t.push(_.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(e,t,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var e=1;this.getInput("IF"+e);)this.removeInput("IF"+e),this.removeInput("DO"+e),e++;for(e=1;e<=this.elseifCount_;e++)this.appendValueInput("IF"+e).setCheck([Number,Boolean]).appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+e).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(ge.Msg.MIXLY_PYTHON_FINALLY)},reconnectChildBlocks_:function(e,t,i){for(var n=1;n<=this.elseifCount_;n++)e[n]&&e[n].reconnect(this,"IF"+n),t[n]&&t[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},ze={init:function(){this.setColour(Be);var e=new ge.FieldDropdown(this.OPERATORS);this.appendDummyInput().appendField(e,"FLOW").appendField(ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_INPUT_OFLOOP),this.setPreviousStatement(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_FLOW_STATEMENTS_TOOLTIP);var t=this;this.setTooltip((function(){var e=t.getFieldValue("FLOW");return{BREAK:ge.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK,CONTINUE:ge.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}[e]}))},onchange:function(){if(this.workspace){var e=!1,t=this;do{if("controls_repeat"==t.type||"controls_for"==t.type||"controls_forEach"==t.type||"controls_repeat_ext"==t.type||"controls_whileUntil"==t.type||"do_while"==t.type){e=!0;break}t=t.getSurroundParent()}while(t);e?this.setWarningText(null):this.setWarningText(ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_WARNING)}}},qe={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new ge.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){return ge.Msg.CONTROLS_FOR_TOOLTIP.replace("%1",e.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},je={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new ge.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){return ge.Msg.MIXLY_PYTHON_CONTROLS_FOR_RANGE_TOOLTIP.replace("%1",e.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}};Je.OPERATORS=[[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"WHILE"],[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"UNTIL"]],ze.OPERATORS=[[ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK,"BREAK"],[ge.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE,"CONTINUE"]];const $e={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.CONTROLS_IF_IF_TITLE_IF),this.appendStatementInput("STACK"),this.setTooltip(ge.Msg.CONTROLS_IF_IF_TOOLTIP),this.contextMenu=!1}},Ze={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.CONTROLS_IF_ELSEIF_TOOLTIP),this.contextMenu=!1}},et={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.CONTROLS_IF_ELSE_TITLE_ELSE),this.setPreviousStatement(!0),this.setTooltip(ge.Msg.CONTROLS_IF_ELSE_TOOLTIP),this.contextMenu=!1}},tt={init:function(){this.setColour(Be),this.appendDummyInput().appendField("try"),this.appendStatementInput("STACK"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.contextMenu=!1}},it={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_EXCEPT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.contextMenu=!1,this.setTooltip(ge.Msg.MIXLY_MIXPY_CONTROL_EXCEPT_TOOLTIP)}},nt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_FINALLY),this.setPreviousStatement(!0),this.contextMenu=!1,this.setTooltip(ge.Msg.MIXLY_MIXPY_CONTROL_FINALLY_TOOLTIP)}},st={init:function(){this.jsonInit({message0:ge.Msg.CONTROLS_REPEAT_TITLE,args0:[{type:"input_value",name:"TIMES"}],previousStatement:null,nextStatement:null,colour:Be,tooltip:ge.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:ge.Msg.CONTROLS_REPEAT_HELPURL}),this.appendStatementInput("DO")}},_t={init:function(){this.setColour(Be),this.appendValueInput("BOOL").appendField("lambda"),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_STAT),this.setOutput(!0)}},ot={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_PASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_PASS_TOOLTIP)}},pt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_CONTROLS_THREAD_START),this.appendValueInput("callback").appendField(ge.Msg.MIXLY_PYTHON_CONTROLS_THREAD_USE),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_CONTROLS_THREAD_TOOLTIP)}},at={init:function(){this.appendDummyInput().appendField(ge.Msg.CONTROLS_REPEAT_TITLE_REPEAT+ge.Msg.MIXLY_DO),this.appendStatementInput("input_data").setCheck(null),this.appendValueInput("select_data").setCheck(null).appendField(ge.Msg.CONTROLS_OPERATOR_UNTIL).appendField(new ge.FieldDropdown([[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"true"],[ge.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"false"]]),"type"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setColour(Be),this.setTooltip("do-while loop"),this.setHelpUrl("")}},ut={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_OP_GARBAGE_COLLECT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},rt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_MEM_ALLOC),this.setOutput(!0)}},lt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_MEM_FREE),this.setOutput(!0)}},dt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_DEVICE+"ID"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_GET_UNIQUE_IDEN)}},It={init:function(){this.setColour(Be),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_RTC_TIMESTAMP),this.appendDummyInput().appendField(ge.Msg.MIXLY_TIMESTAMP_TO_DATA),this.setInputsInline(!0),this.setOutput(!0,Number)}},Tt={init:function(){this.setColour(Be),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_UNIQUE_IDEN),this.setOutput(!0)}},Mt=230;ge.FieldTextInput.math_number_validator=function(e){return String(e)},ge.FieldTextInput.math_number_validator_include_blank=function(e){if(""===e)return"";return/^-?(0X|0x|0O|0o|0B|0b)?[a-fA-F0-9]{1,}(\.[a-fA-F0-9]+)?$/.test(e)?String(e):null};const ht={init:function(){this.setColour(Mt),this.appendDummyInput().appendField(new ge.FieldTextInput("0",ge.FieldTextInput.math_number_validator),"NUM"),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MATH_NUMBER_TOOLTIP)}},mt={init:function(){this.setColour(Mt);this.appendDummyInput("").appendField(ge.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new ge.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CONSTANT");return{pi:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_TOOLTIP,e:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_TOOLTIP}[t]}))}},Et={init:function(){this.setColour(Mt);this.appendDummyInput("").appendField(ge.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new ge.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CONSTANT");return{pi:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_MP_TOOLTIP,e:ge.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_MP_TOOLTIP}[t]}))}},Ot={init:function(){this.setColour(Mt),this.setOutput(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown([["+","ADD"],["-","MINUS"],["×","MULTIPLY"],["÷","DIVIDE"],["%","QUYU"],["//","ZHENGCHU"],["**","POWER"]]),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{ADD:ge.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:ge.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:ge.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[t]}))}},Rt={init:function(){this.setColour(Mt),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown([["+=","ADD"],["-=","MINUS"],["×=","MULTIPLY"],["÷=","DIVIDE"],["%=","QUYU"],["//=","ZHENGCHU"],["**=","POWER"]]),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{ADD:ge.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:ge.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:ge.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:ge.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:ge.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[t]}))}},ct={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("A").setCheck(Number),this.appendValueInput("B").setCheck(Number).appendField(new ge.FieldDropdown([["&","&"],["|","|"],[">>",">>"],["<<","<<"]]),"OP"),this.setInputsInline(!0),this.setTooltip("位运算")}},gt={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("NUM").setCheck(Number).appendField(new ge.FieldDropdown([["sin","SIN"],["cos","COS"],["tan","TAN"],["asin","ASIN"],["acos","ACOS"],["atan","ATAN"],["-","-"],["ln","LN"],["log10","LOG10"],["e^","EXP"],["10^","POW10"]]),"OP");var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{SIN:ge.Msg.MATH_TRIG_TOOLTIP_SIN,COS:ge.Msg.MATH_TRIG_TOOLTIP_COS,TAN:ge.Msg.MATH_TRIG_TOOLTIP_TAN,ASIN:ge.Msg.MATH_TRIG_TOOLTIP_ASIN,ACOS:ge.Msg.MATH_TRIG_TOOLTIP_ACOS,ATAN:ge.Msg.MATH_TRIG_TOOLTIP_ATAN,LN:ge.Msg.MATH_SINGLE_TOOLTIP_LN}[t]}))}},Ct={init:function(){var e=[[ge.Msg.MATH_BIN,"bin"],[ge.Msg.MATH_OCT,"oct"],[ge.Msg.MATH_HEX,"hex"]];this.setColour(Mt),this.setOutput(!0,String),this.appendValueInput("NUM").setCheck(Number).appendField(new ge.FieldDropdown(e),"OP");var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{bin:ge.Msg.MATH_DEC_TOOLTIP_BIN,oct:ge.Msg.MATH_DEC_TOOLTIP_OCT,hex:ge.Msg.MATH_DEC_TOOLTIP_HEX}[e]}))}},St={init:function(){var e=[[ge.Msg.LANG_MATH_TO_ROUND,"round"],[ge.Msg.LANG_MATH_TO_CEIL,"ceil"],[ge.Msg.LANG_MATH_TO_FLOOR,"floor"],[ge.Msg.MATH_ABS,"fabs"],[ge.Msg.MATH_SQRT,"sqrt"]];this.setColour(Mt),this.appendValueInput("A").setCheck(Number).appendField(new ge.FieldDropdown(e),"OP"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{sqrt:ge.Msg.MATH_SINGLE_TOOLTIP_ROOT,fabs:ge.Msg.MATH_SINGLE_TOOLTIP_ABS,sq:ge.Msg.MATH_SINGLE_TOOLTIP_SQ,round:ge.Msg.MATH_SINGLE_TOOLTIP_ROUND,ceil:ge.Msg.MATH_SINGLE_TOOLTIP_CEIL,floor:ge.Msg.MATH_SINGLE_TOOLTIP_FLOOR}[e]}))}},At={init:function(){var e=[[ge.Msg.MIXLY_MAX,"max"],[ge.Msg.MIXLY_MIN,"min"]];this.setColour(Mt),this.appendValueInput("A").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown(e),"OP").appendField("("),this.appendValueInput("B").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(","),this.appendDummyInput("").setAlign(ge.inputs.Align.RIGHT).appendField(")"),this.setInputsInline(!0),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{max:ge.Msg.MIXLY_TOOLTIP_MATH_MAX,min:ge.Msg.MIXLY_TOOLTIP_MATH_MIN}[e]}))}},Lt={init:function(){var e=[[ge.Msg.MATH_TWO,"two"],[ge.Msg.MATH_EIGHT,"eight"],[ge.Msg.MATH_TEN,"ten"],[ge.Msg.MATH_SIXTEEN,"sixteen"]];this.setColour(Mt),this.appendDummyInput("").appendField(ge.Msg.MATH_BA),this.appendValueInput("NUM").appendField(new ge.FieldDropdown(e),"OP").appendField(ge.Msg.MATH_JinZhi).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MATH_ZHW).appendField(new ge.FieldDropdown(e),"OP2").appendField(ge.Msg.MATH_JinZhi),this.setFieldValue("ten","OP2"),this.setOutput(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP"),i={two:ge.Msg.MATH_Before_two,eight:ge.Msg.MATH_Before_eight,ten:ge.Msg.MATH_Before_ten,sixteen:ge.Msg.MATH_Before_sixteen},n=t.getFieldValue("OP2"),s={two:ge.Msg.MATH_Behind_two,eight:ge.Msg.MATH_Behind_eight,ten:ge.Msg.MATH_Behind_ten,sixteen:ge.Msg.MATH_Behind_sixteen};return i[e]+s[n]}))}},Nt={init:function(){var e=[[ge.Msg.LANG_MATH_INT,"int"],[ge.Msg.LANG_MATH_FLOAT,"float"]];this.setColour(Mt),this.setOutput(!0,Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_RANDOM).appendField(new ge.FieldDropdown(e),"TYPE"),this.appendValueInput("FROM").setCheck(Number).appendField(ge.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LANG_MATH_RANDOM_INT_INPUT_TO),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TYPE"),i={int:ge.Msg.LANG_MATH_INT,float:ge.Msg.LANG_MATH_FLOAT_RANDOM};return ge.Msg.MATH_RANDOM_INT_TOOLTIP+i[e]}))}},Dt={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number).appendField(ge.Msg.LANG_MATH_CONSTRAIN_INPUT_CONSTRAIN),this.appendValueInput("LOW").setCheck(Number).appendField(ge.Msg.LANG_MATH_CONSTRAIN_INPUT_LOW),this.appendValueInput("HIGH").setCheck(Number).appendField(ge.Msg.LANG_MATH_CONSTRAIN_INPUT_HIGH),this.setInputsInline(!0),this.setTooltip(ge.Msg.MATH_CONSTRAIN_TOOLTIP)}},ft={init:function(){this.setColour(Mt),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_MAP).setCheck(Number),this.appendValueInput("fromLow",Number).appendField(ge.Msg.MIXLY_MAP_FROM).setCheck(Number),this.appendValueInput("fromHigh",Number).appendField(",").setCheck(Number),this.appendValueInput("toLow",Number).appendField(ge.Msg.MIXLY_MAP_TO).setCheck(Number),this.appendValueInput("toHigh",Number).appendField(",").setCheck(Number),this.appendDummyInput("").appendField("]"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_MATH_MAP)}},Ft={init:function(){this.setColour(Mt),this.appendDummyInput().appendField(new ge.FieldTextInput("0",ge.FieldTextInput.math_number_validator_include_blank),"NUM"),this.setOutput(!0),this.setTooltip(ge.Msg.MATH_NUMBER_TOOLTIP)}},Pt={init:function(){this.setColour(Mt),this.appendValueInput("NUM").setCheck(Number).appendField(ge.Msg.LANG_MATH_RANDOM_SEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_MATH_RANDOM_SEED)}},Yt={init:function(){this.setColour(Mt),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number),this.appendValueInput("VAR").setCheck(Number).appendField(ge.Msg.MATH_ROUND).appendField(ge.Msg.TEXT_KEEP),this.appendDummyInput().appendField(ge.Msg.TEXT_DECIMAL),this.setInputsInline(!0),this.setTooltip(ge.Msg.MATH_ROUND_NEW_TOOLTIP)}},vt={init:function(){var e=[[ge.Msg.MIXLY_TO_INT,"int"],[ge.Msg.MIXLY_TO_FLOAT,"float"],[ge.Msg.MIXLY_TO_BITES,"b"],[ge.Msg.LANG_MATH_BYTE+ge.Msg.MIXLY_TO_INT,"bti"]];this.setColour(Mt),this.appendValueInput("VAR").appendField(new ge.FieldDropdown(e),"TOWHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{int:ge.Msg.MIXLY_PYTHON_TOOLTIP_TOINT,float:ge.Msg.MIXLY_PYTHON_TOOLTIP_TOFLOAT,b:ge.Msg.MIXLY_TOOLTIP_TEXT_TOBYTE}[e]}))}},Xt={init:function(){var e=[[ge.Msg.MIXLY_TO_INT,"int"],[ge.Msg.MIXLY_TO_FLOAT,"float"]];this.setColour(Mt),this.appendValueInput("VAR").appendField(new ge.FieldDropdown(e),"TOWHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{int:ge.Msg.MIXLY_TOOLTIP_TEXT_TOINT,float:ge.Msg.MIXLY_TOOLTIP_TEXT_TOFLOAT}[e]}))}},yt=ft,xt={init:function(){this.setColour(Mt),this.appendValueInput("VAR").appendField(ge.Msg.LANG_MATH_BYTE+ge.Msg.MIXLY_TO_HEX),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TOHEX)}},bt={init:function(){this.setColour(Mt),this.itemCount_=1,this.setMutator(new ge.icons.MutatorIcon(["lists_create_with_item"],this)),this.appendDummyInput("DUMMY").appendField(ge.Msg.MIXLY_PRODUCT+ge.Msg.MIXLY_GENERATE_CARTESIAN_PRODUCT),this.appendValueInput("REPEAT").appendField(ge.Msg.MIXLY_EVERY_PER_ELEPER_ELEMENT),this.appendDummyInput().appendField(ge.Msg.CONTROLS_REPEAT_TITLE_TIMES),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0),this.setTooltip(ge.Msg.LISTS_CREATE_WITH_PYTHON_TOOLTIP),this.updateShape_()},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("lists_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n1&&"\\"===e.charAt(0)){var t=e.charAt(1);if("0"===t||"b"===t||"f"===t||"n"===t||"r"===t||"t"===t||"\\"===t||"'"===t)return String(e).substring(0,2);if("x"===t&&"0"===e.charAt(2)&&"B"===e.charAt(3))return String(e).substring(0,4)}return String(e).substring(0,1)};const kt={init:function(){this.setColour(Gt),this.appendDummyInput().appendField(this.newQuote_(!0)).appendField(new ge.FieldTextInput("",ge.FieldTextInput.char_validator),"TEXT").appendField(this.newQuote_(!1)),this.setOutput(!0,Number),this.setTooltip(ge.Msg.TEXT_CHAR_TOOLTIP)},newQuote_:function(e){if(1==e)var t="../../media/quote2.png";else t="../../media/quote3.png";return new ge.FieldImage(t,7,12,'"')}},Wt={init:function(){this.setColour(Gt),this.appendValueInput("A").setCheck([String,Number]),this.appendValueInput("B").setCheck([String,Number]).appendField(ge.Msg.MIXLY_TEXT_JOIN),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_JOIN)}},Kt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").setCheck(Number).appendField(ge.Msg.MIXLY_TOCHAR),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_TOCHAR)}},Jt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").setCheck(String).appendField(ge.Msg.MIXLY_TOASCII),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_TOASCII)}},Qt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_TOSTRING),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TOTEXT)}},zt={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_LENGTH),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_TEXT_LENGTH)}},qt={init:function(){this.WHERE_OPTIONS=[[ge.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[ge.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[ge.Msg.TEXT_GET_INDEX_RANDOM+1+ge.Msg.TEXT_CHARAT2,"RANDOM"]],this.setHelpUrl(ge.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number),this.appendDummyInput().appendField(ge.Msg.LISTS_GET_INDEX_GET,"MODE"),ge.Msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(ge.Msg.LISTS_GET_INDEX_TAIL),this.setInputsInline(!0),this.setOutput(!0),this.updateAt_(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=e.getFieldValue("WHERE"),n="";switch(t+" "+i){case"GET FROM_START":case"GET FROM_END":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM;break;case"GET RANDOM":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM;break;case"GET_REMOVE FROM_START":case"GET_REMOVE FROM_END":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM;break;case"GET_REMOVE RANDOM":n=ge.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM}return"FROM_START"!=i&&"FROM_END"!=i||(n+=" "+ge.Msg.LISTS_INDEX_FROM_START_TOOLTIP.replace("%1",ge.Msg.ONE_BASED_INDEXING?"#1":"#0")),n}));var t=this;this.setTooltip((function(){var e=t.getFieldValue("WHERE"),i={FROM_START:ge.Msg.LISTS_GET_INDEX_FROM_START,FROM_END:ge.Msg.LISTS_GET_INDEX_FROM_END,RANDOM:ge.Msg.TEXT_GET_INDEX_RANDOM};return ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_MICROBIT_TYPE_STRING+i[e]+"n"+ge.Msg.TEXT_CHARAT2}))},mutationToDom:function(){var e=document.createElement("mutation");e.setAttribute("statement",!this.outputConnection);var t=this.getInput("AT").type==ge.INPUT_VALUE;return e.setAttribute("at",t),e},domToMutation:function(e){var t="true"==e.getAttribute("statement");this.updateStatement_(t),e="false"!=e.getAttribute("at"),this.updateAt_(e)},updateStatement_:function(e){e!=!this.outputConnection&&(this.unplug(!0,!0),e?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(e){this.removeInput("AT"),this.removeInput("ORDINAL",!0),e?(this.appendValueInput("AT").setCheck(Number),ge.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL").appendField(ge.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT");var t=new ge.FieldDropdown(this.WHERE_OPTIONS,(function(t){var i="FROM_START"==t||"FROM_END"==t;if(i!=e){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(t,"WHERE"),null}}));this.getInput("AT").appendField(t,"WHERE"),ge.Msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}},jt={init:function(){this.setHelpUrl(ge.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number).appendField(ge.Msg.LISTS_GET_INDEX_GET+" "+ge.Msg.LISTS_GET_INDEX_FROM_START),this.appendDummyInput().appendField(ge.Msg.TEXT_CHARAT2),this.setOutput(!0),this.setTooltip(ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_MICROBIT_TYPE_STRING+ge.Msg.LISTS_GET_INDEX_FROM_START+"n"+ge.Msg.TEXT_CHARAT2)}},$t={init:function(){this.setHelpUrl(ge.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput().appendField(ge.Msg.TEXT_RANDOM_CHAR),this.setOutput(!0),this.setTooltip(ge.Msg.TEXT_RANDOM_CHAR_TOOLTIP)}},Zt={init:function(){this.WHERE_OPTIONS_1=[[ge.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[ge.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[ge.Msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]],this.WHERE_OPTIONS_2=[[ge.Msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[ge.Msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[ge.Msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]],this.setHelpUrl(ge.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput("AT1"),this.appendDummyInput("AT2"),this.setInputsInline(!0),this.setOutput(!0,"List"),this.updateAt_(1,!0),this.updateAt_(2,!0),this.setTooltip(ge.Msg._GET_TEXT_SUBLIST_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation"),t=this.getInput("AT1").type==ge.INPUT_VALUE;e.setAttribute("at1",t);var i=this.getInput("AT2").type==ge.INPUT_VALUE;return e.setAttribute("at2",i),e},domToMutation:function(e){var t="true"==e.getAttribute("at1"),i="true"==e.getAttribute("at2");this.updateAt_(1,t),this.updateAt_(2,i)},updateAt_:function(e,t){this.removeInput("AT"+e),this.removeInput("ORDINAL"+e,!0),t?(this.appendValueInput("AT"+e).setCheck(Number),ge.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL"+e).appendField(ge.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT"+e);var i=new ge.FieldDropdown(this["WHERE_OPTIONS_"+e],(function(i){var n="FROM_START"==i||"FROM_END"==i;if(n!=t){var s=this.sourceBlock_;return s.updateAt_(e,n),s.setFieldValue(i,"WHERE"+e),null}}));this.getInput("AT"+e).appendField(i,"WHERE"+e),1==e&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2"))}},ei={init:function(){this.setHelpUrl(ge.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT1").appendField(ge.Msg.LISTS_GET_INDEX_GET+" "+ge.Msg.LISTS_GET_INDEX_FROM_START),this.appendValueInput("AT2").appendField(ge.Msg.LISTS_GET_SUBLIST_END_FROM_START),this.appendDummyInput().appendField(ge.Msg.TEXT_CHARAT2),this.setInputsInline(!0),this.setOutput(!0,["List",String]),this.setTooltip(ge.Msg._GET_TEXT_SUBLIST_TOOLTIP)}},ti={init:function(){var e=[[ge.Msg.MIXLY_EQUALS,"==="],[ge.Msg.MIXLY_STARTSWITH,"startswith"],[ge.Msg.MIXLY_ENDSWITH,"endswith"]];this.setColour(Gt),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(new ge.FieldDropdown(e),"DOWHAT").setCheck(String),this.setOutput(!0,[Boolean,Number]),this.setInputsInline(!0)}},ii={init:function(){this.setColour(Gt),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(ge.Msg.MIXLY_COMPARETO).setCheck(String),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_COMPARETO_HELP)}},ni={init:function(){var e=[[ge.Msg.TEXT_UPPER,"upper"],[ge.Msg.TEXT_TITLE,"title"],[ge.Msg.TEXT_CAPITALIZE,"capitalize"],[ge.Msg.TEXT_SWAPCASE,"swapcase"],[ge.Msg.TEXT_LOWER,"lower"]];this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new ge.FieldDropdown(e),"CAPITAL").setCheck(String),this.setOutput(!0,String);var t=this;this.setTooltip((function(){var e=t.getFieldValue("CAPITAL");return{upper:ge.Msg.MIXLY_MIXPY_TEXT_UPPER_TOOLTIP,title:ge.Msg.MIXLY_MIXPY_TEXT_TITLE_TOOLTIP,swapcase:ge.Msg.MIXLY_MIXPY_TEXT_SWAPCASE_TOOLTIP,capitalize:ge.Msg.MIXLY_MIXPY_TEXT_CAPITALIZE_TOOLTIP,lower:ge.Msg.MIXLY_MIXPY_TEXT_LOWER_TOOLTIP}[e]}))}},si={init:function(){var e=[[ge.Msg.TEXT_LJUST,"ljust"],[ge.Msg.TEXT_CENTER,"center"],[ge.Msg.TEXT_RJUST,"rjust"]];this.setColour(Gt),this.appendValueInput("VAR").appendField(new ge.FieldDropdown(e),"CENTER").setCheck(String),this.appendValueInput("WID").appendField(ge.Msg.MIXLY_WIDTH).setCheck(Number),this.appendValueInput("Symbol").appendField(ge.Msg.MIXLY_RECT_Fill).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_CENTER_TOOLTIP)}},_i={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).setCheck(String),this.appendValueInput("STR").appendField(ge.Msg.MIXLY_MID+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER).setCheck(String),this.appendDummyInput().appendField(ge.Msg.MIXLY_LIST_INDEX),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_FIND_TOOLTIP)}},oi={init:function(){this.setColour(Gt),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_USE_STR).setCheck(String),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_SEQ).setCheck("List","Tuple","Set","Dict"),this.appendDummyInput().appendField(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_GET_STR),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_TOOLTIP)}},pi={init:function(){this.setColour(Gt),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("STR1").appendField(ge.Msg.MIXLY_MIXPY_REPLACE).setCheck(String),this.appendValueInput("STR2").appendField(ge.Msg.LISTS_SET_INDEX_INPUT_TO).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_REPLACE_TOOLTIP)}},ai={init:function(){this.setColour(Gt),this.appendValueInput("VAR"),this.appendValueInput("VAL").appendField(ge.Msg.LIST_SPLIT_AS),this.appendDummyInput("").appendField(ge.Msg.LIST_SPLIT),this.setOutput(!0,"List"),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_SPLIT_TOOLTIP),this.setInputsInline(!0)}},ui={init:function(){var e=[[ge.Msg.TEXT_TRIM_BOTH,"strip"],[ge.Msg.TEXT_TRIM_LEFT,"lstrip"],[ge.Msg.TEXT_TRIM_RIGHT,"rstrip"]];this.setColour(Gt),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(ge.Msg.TEXT_STRIM),this.appendDummyInput("").appendField(new ge.FieldDropdown(e),"TOWHAT"),this.appendDummyInput("").appendField(ge.Msg.TEXT_BLANK),this.setOutput(!0,String),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("TOWHAT");return{strip:ge.Msg.TEXT_TRIM_BOTH_TOOLTIP,lstrip:ge.Msg.TEXT_TRIM_LEFT_TOOLTIP,rstrip:ge.Msg.TEXT_TRIM_RIGHT_TOOLTIP}[e]}))}},ri={init:function(){this.setColour(Gt),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT),this.appendDummyInput("").appendField(new ge.FieldTextInput("str"),"VAR"),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new ge.icons.MutatorIcon(["text_create_with_item"],this)),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_MIXPY_TEXT_FORMAT_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("text_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nt?e[t]:0==t?'"key"':'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},pn={init:function(){this.setColour(_n),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},an={init:function(){this.setColour(_n),this.appendDummyInput().appendField(ge.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},un={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_KEYS),this.setTooltip(ge.Msg.DICTS_KEYS_TOOLTIP),this.setOutput(!0,"List")}},rn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(ge.Msg.DICTS_ADD_VALUE),this.setOutput(!0),this.setTooltip(ge.Msg.DICTS_GET_TOOLTIP)}},ln={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(ge.Msg.DICTS_ADD_VALUE),this.appendValueInput("VAR").appendField(ge.Msg.DICTS_DEFAULT_VALUE),this.setOutput(!0),this.setTooltip(ge.Msg.DICTS_GET_DEFAULT_TOOLTIP)}},dn={init:function(){this.setColour(_n),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_ADD),this.appendDummyInput(),this.appendValueInput("VAR").appendField(ge.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_ADD_OR_CHANGE_TOOLTIP)}},In={init:function(){this.setColour(_n),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_DELETE_IN),this.appendDummyInput("").appendField(ge.Msg.DICTS_DELETE_VALUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_DELETE_TOOLTIP)}},Tn={init:function(){this.setColour(_n),this.appendValueInput("DICT2").setCheck("Dict").appendField(ge.Msg.MAKE_DICT),this.appendValueInput("DICT").setCheck("Dict").appendField(ge.Msg.DICT_UPDATE),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MID),this.setTooltip(ge.Msg.DICTS_UPDATE_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Mn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_CLEAR),this.setTooltip(ge.Msg.DICTS_CLEAR_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},hn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_ITEMS),this.setTooltip(ge.Msg.DICTS_ITEMS_TOOLTIP),this.setOutput(!0,"List")}},mn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_VALUES),this.setTooltip(ge.Msg.DICTS_VALUES_TOOLTIP),this.setOutput(!0,"List")}},En={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_LENGTH),this.setTooltip(ge.Msg.DICT_LENGTH_TOOLTIP),this.setOutput(!0,Number)}},On={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.DICT_DELDICT),this.setTooltip(ge.Msg.DICTS_DEL_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Rn={init:function(){this.MODE=[[ge.Msg.DICTS_ADD_OR_CHANGE,"INSERT"],[ge.Msg.MIXLY_MICROBIT_JS_DELETE_VAR,"DELETE"]],this.setHelpUrl(ge.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("AT2"),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).appendField(ge.Msg.DICTS_ADD_VALUE),this.updateAt_(!0),this.setInputsInline(!0),this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t="";switch(e.getFieldValue("WHERE")){case"INSERT":t=ge.Msg.DICTS_ADD_TOOLTIP;break;case"DELETE":t=ge.Msg.DICTS_DELETE_TOOLTIP}return t}))},mutationToDom:function(){var e=document.createElement("mutation"),t=this.getInput("AT2").type==ge.INPUT_VALUE;return e.setAttribute("at2",t),e},domToMutation:function(e){var t="true"==e.getAttribute("at2");this.updateAt_(t)},updateAt_:function(e){this.removeInput("AT2"),this.removeInput("ORDINAL",!0),e?this.appendValueInput("AT2").setCheck(Number):this.appendDummyInput("AT2");var t=new ge.FieldDropdown(this.MODE,(function(t){var i="INSERT"==t;if(i!=e){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(t,"WHERE"),null}}));this.getInput("AT2").appendField(t,"WHERE")}},cn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.blockpy_DICT_POP),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(ge.Msg.DICTS_ADD_VALUE),this.setTooltip(ge.Msg.DICT_POP_TOOLTIP),this.setInputsInline(!0),this.setOutput(!0)}},gn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(ge.Msg.DICTS_SET_DEFAULT),this.appendDummyInput("").appendField(ge.Msg.DICTS_DEFAULT_VALUE),this.appendValueInput("VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_SETDEFAULT_TOOLTIP)}},Cn={init:function(){this.setColour(_n),this.appendDummyInput("").appendField(new ge.FieldLabel(ge.Msg.MIXLY_MICROBIT_TYPE_DICT),"TIP").appendField(" "),this.itemCount_=3,this.updateShape_(),this.setOutput(!0,"Dict"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setMutator(new ge.icons.MutatorIcon(["dicts_create_with_item"],this)),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("dicts_create_with_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nt?e[t]:0==t?'"key"':'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},Sn={init:function(){this.setColour(_n),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_TODICT),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TODICT)}},An={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TO_JSON),this.setTooltip(ge.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},Ln={init:function(){this.setColour(_n),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CONVERT_TO_JSON),this.setTooltip(ge.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},Nn={init:function(){this.setColour(_n),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("VAR1").appendField("key1"),this.appendValueInput("VAR2").appendField("index"),this.appendValueInput("VAR3").appendField("key2"),this.appendValueInput("VAR4").appendField("key3"),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},Dn={init:function(){this.setColour(_n),this.appendValueInput("DICT"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TO_JSON),this.setTooltip(ge.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},fn=210,Fn={init:function(){var e=ge.RTL?[["=","EQ"],["≠","NEQ"],[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["=","EQ"],["≠","NEQ"],["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown(e),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{EQ:ge.Msg.LOGIC_COMPARE_TOOLTIP_EQ,NEQ:ge.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,LT:ge.Msg.LOGIC_COMPARE_TOOLTIP_LT,LTE:ge.Msg.LOGIC_COMPARE_TOOLTIP_LTE,GT:ge.Msg.LOGIC_COMPARE_TOOLTIP_GT,GTE:ge.Msg.LOGIC_COMPARE_TOOLTIP_GTE}[e]})),this.prevBlocks_=[null,null]}},Pn={init:function(){var e=ge.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]],t=ge.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown(e),"OP1"),this.appendValueInput("C").appendField(new ge.FieldDropdown(t),"OP2"),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_LOGIC_COMPARE_CONTINOUS_TOOLTIP)}},Yn={init:function(){var e=[[ge.Msg.LOGIC_OPERATION_AND,"AND"],[ge.Msg.LOGIC_OPERATION_OR,"OR"],[ge.Msg.LOGIC_OPERATION_NOR,"NOR"],[ge.Msg.LOGIC_OPERATION_XOR,"XOR"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("A").setCheck([Boolean,Number]),this.appendValueInput("B").setCheck([Boolean,Number]).appendField(new ge.FieldDropdown(e),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{AND:ge.Msg.LOGIC_OPERATION_TOOLTIP_AND,OR:ge.Msg.LOGIC_OPERATION_TOOLTIP_OR,NOR:ge.Msg.LOGIC_OPERATION_TOOLTIP_NOR,XOR:ge.Msg.LOGIC_OPERATION_TOOLTIP_XOR}[e]}))}},vn={init:function(){this.setColour(fn),this.setOutput(!0,Boolean),this.appendValueInput("BOOL").setCheck([Number,Boolean]).appendField(ge.Msg.LOGIC_NEGATE_TITLE),this.setTooltip(ge.Msg.LOGIC_NEGATE_TOOLTIP)}},Xn={init:function(){var e=[[ge.Msg.LOGIC_BOOLEAN_TRUE,"TRUE"],[ge.Msg.LOGIC_BOOLEAN_FALSE,"FALSE"]];this.setColour(fn),this.setOutput(!0,Boolean),this.appendDummyInput().appendField(new ge.FieldDropdown(e),"BOOL"),this.setTooltip(ge.Msg.LOGIC_BOOLEAN_TOOLTIP)}},yn={init:function(){this.setColour(fn),this.setOutput(!0),this.appendDummyInput().appendField(ge.Msg.LOGIC_NULL),this.setTooltip(ge.Msg.LOGIC_NULL_TOOLTIP)}},xn={init:function(){this.setColour(fn),this.appendValueInput("A"),this.appendValueInput("B").appendField(ge.Msg.LOGIC_TERNARY_IF_TRUE),this.appendValueInput("C").appendField(ge.Msg.LOGIC_TERNARY_IF_FALSE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_LOGIT_TRUEORFALSE)}},bn={init:function(){var e=[[ge.Msg.TEXT_APPEND_TO,"in"],[ge.Msg.MIXLY_PYTHON_LOGIC_IS_NOT_IN,"not in"]];this.setColour(fn),this.appendValueInput("A"),this.appendValueInput("B").setCheck([String,"List"]).appendField(new ge.FieldDropdown(e),"BOOL"),this.appendDummyInput("").appendField(ge.Msg.MICROBIT_LOGIC_IS_IN),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.IN)}},Vn={init:function(){var e=[[ge.Msg.MIXLY_PYTHON_LOGIC_IS,"is"],[ge.Msg.MIXLY_PYTHON_LOGIC_IS_NOT,"is not"]];this.setColour(fn),this.appendValueInput("A"),this.appendValueInput("B").appendField(new ge.FieldDropdown(e),"BOOL"),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PYTHON_LOGIC_IS_TOOLTIP)}},Bn={init:function(){this.setColour(fn),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_TOBOOL),this.setOutput(!0,Boolean),this.setTooltip(ge.Msg.MIXLY_PYTHON_TOOLTIP_TOBOOL)}},Gn={init:function(){this.setColour(0),this.appendValueInput("fn").setCheck(String).appendField(ge.Msg.MIXLY_PYTHON_STORAGE_OPEN_FILE_WITH_OS+"(For Windows)"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Un={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"],[ge.Msg.MIXLY_ADD,"a"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_ADD,"ab"],[ge.Msg.MIXLY_R_W,"r+"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_R_W,"rb+"],[ge.Msg.MIXLY_W_R,"w+"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_W_R,"wb+"],[ge.Msg.MIXLY_A_R,"a+"],[ge.Msg.MATH_BIN+ge.Msg.MIXLY_A_R,"ab+"]]),"MODE"),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_AS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_USE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=ge.Msg.MIXLY_BELONG;return i+{r:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},wn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_USE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=ge.Msg.MIXLY_BELONG,o=ge.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s+o}))}},Hn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE);this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.appendDummyInput().appendField(ge.Msg.MIXPY_TEXT_ENCODE).appendField(new ge.FieldDropdown([["ANSI","ANSI"],["gbk","gbk"],["utf-8","utf-8"]]),"CODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_USE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,_=ge.Msg.MIXLY_BELONG,o=ge.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[t]+_+n+s+o}))}},kn={init:function(){this.setColour(0),this.appendValueInput("data").setCheck(String).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE+ge.Msg.MIXLY_MICROBIT_TYPE_STRING+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE)}},Wn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"read"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE,"readline"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES,"readlines"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String)}},Kn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,"read"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,"readline"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE,"readlines"]]),"MODE"),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER;return i+{read:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,readline:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,readlines:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE}[t]+"x"+n}))}},Jn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.setNextStatement(!0),this.appendValueInput("SIZE").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(ge.Msg.MICROBIT_PYTHON_TYPE)}},Qn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.HTML_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT1)}},zn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILENAME),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILENAME)}},qn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE)}},jn={init:function(){this.setColour(0),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES)}};ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE;const $n={init:function(){this.setColour(0),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE,"remove"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_DIRS,"removedirs"]]),"MODE"),this.appendValueInput("FILE").setCheck(String),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE)}},Zn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE)}},es={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_RETURN_FILE),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_PRESENT_LOCATION),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_TELL)}},ts={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,"start"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,"current"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END,"end"]]),"MODE"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION,n=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER,s=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET;return i+" "+{start:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,current:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,end:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END}[t]+s+"x"+n}))}},is={init:function(){this.setColour(0),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR)}},ns={init:function(){this.setColour(0),this.appendValueInput("PATH").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_SET),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,"mkdir"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MAKEDIRS,"makedirs"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1);var e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return ge.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH+"x"+ge.Msg.MIXLY_ESP32_SET+{mkdir:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,makedirs:ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[t]}))}},ss={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME),this.appendValueInput("NEWFILE").setCheck(String).appendField(ge.Msg.MIXLY_AS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME)}},_s={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR)}},os={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.HTML_FILE,"isfile"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_DIR,"isdir"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean);let e=this;this.setTooltip((function(){var t=e.getFieldValue("MODE");return ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH+"x"+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT+{isfile:ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,isdir:ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[t]}))}},ps={init:function(){this.setColour(0),this.appendValueInput("SPISUB").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(ge.Msg.MIXLY_SD_CARD),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},as={init:function(){this.setColour(0),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_SD_CARD),this.appendValueInput("DIR").setCheck(String).appendField(ge.Msg.MIXLY_SDCARD_MOUNT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip()}},us={init:function(){var e=ge.Procedures.findLegalName("",this),t=new ge.FieldTextInput(e,ge.Procedures.rename);t.setSpellcheck(!1),this.appendDummyInput().appendField(t,"NAME").appendField("","PARAMS"),this.setMutator(new ge.icons.MutatorIcon(["procedures_mutatorarg"],this)),(this.workspace.options.comments||this.workspace.options.parentWorkspace&&this.workspace.options.parentWorkspace.options.comments)&&ge.Msg.PROCEDURES_DEFNORETURN_COMMENT&&this.setCommentText(ge.Msg.PROCEDURES_DEFNORETURN_COMMENT),this.setStyle("procedure_blocks"),this.setTooltip(ge.Msg.PROCEDURES_DEFNORETURN_TOOLTIP),this.setHelpUrl(ge.Msg.PROCEDURES_DEFNORETURN_HELPURL),this.arguments_=[],this.argumentVarModels_=[],this.setStatements_(!0),this.statementConnection_=null},setStatements_:function(e){this.hasStatements_!==e&&(e?(this.appendStatementInput("STACK").appendField(ge.Msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK","RETURN")):this.removeInput("STACK",!0),this.hasStatements_=e)},updateParams_:function(){var e="";this.arguments_.length&&(e=ge.Msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", ")),ge.Events.disable();try{this.setFieldValue(e,"PARAMS")}finally{ge.Events.enable()}},mutationToDom:function(e){var t=ge.utils.xml.createElement("mutation");e&&t.setAttribute("name",this.getFieldValue("NAME"));for(var i=0;i"),this.appendValueInput("style").appendField(ge.Msg.MIXLY_AIP_ATTR).setAlign(ge.inputs.Align.RIGHT),this.appendStatementInput("DO").appendField(""),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},s_={init:function(){this.setColour($s),this.appendDummyInput().appendField(ge.Msg.HTML_STYLE),this.appendStatementInput("STYLE"),this.setOutput(!0)}},__={init:function(){this.setColour($s),this.appendDummyInput().appendField(ge.Msg.HTML_FORM_CONTENT).appendField(new ge.FieldDropdown([[ge.Msg.HTML_TEXT,"text"],[ge.Msg.HTML_EMAIL,"email"],[ge.Msg.HTML_NUMBER,"number"],[ge.Msg.HTML_PASSWORD,"password"],[ge.Msg.HTML_CHECKBOX,"checkbox"],[ge.Msg.HTML_RADIOBUTTON,"radiobutton"],[ge.Msg.HTML_BUTTON,"button"],[ge.Msg.HTML_COLOUR,"colour"],[ge.Msg.HTML_DATE,"date"],[ge.Msg.HTML_LOCALTIME,"local time"],[ge.Msg.HTML_FILE,"file"],[ge.Msg.HTML_HIDDEN,"hidden"],[ge.Msg.HTML_IMAGE,"image"],[ge.Msg.HTML_MONTH,"month"],[ge.Msg.HTML_RANGE,"range"],[ge.Msg.HTML_RESET,"reset"],[ge.Msg.HTML_SEARCH,"search"],[ge.Msg.HTML_SUBMIT,"submit"],[ge.Msg.HTML_TELEPHONENUMBER,"telephone number"],[ge.Msg.HTML_TIME,"time"],[ge.Msg.HTML_URL,"url"],[ge.Msg.HTML_WEEK,"week"]]),"LEVEL"),this.appendDummyInput().appendField(ge.Msg.HTML_NAME).appendField(new ge.FieldTextInput("car"),"NAME"),this.appendDummyInput().appendField(ge.Msg.HTML_VALUE).appendField(new ge.FieldTextInput("go"),"VALUE"),this.appendValueInput("style").appendField(ge.Msg.MIXLY_AIP_ATTR).setAlign(ge.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},o_={init:function(){this.setColour($s),this.appendDummyInput().appendField(new ge.FieldTextInput("property"),"KEY").appendField(":").appendField(new ge.FieldTextInput("value"),"VALUE"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},p_={init:function(){this.setColour($s),this.appendDummyInput().appendField(new ge.FieldTextInput("property"),"KEY").appendField(":").appendField(new ge.FieldColour("#ff0000"),"RGB_LED_COLOR"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},a_={init:function(){this.setColour($s),this.appendDummyInput().appendField(ge.Msg.HTML_TEXT).appendField(new ge.FieldTextInput("text"),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},u_=160,r_={init:function(){this.setColour(u_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Tabular Abstraction:"),this.appendDummyInput().appendField(new ge.FieldTable(""),"TEXT")}},l_={init:function(){this.setColour(u_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Code Block:"),this.appendDummyInput().appendField(new ge.FieldMultilineInput(""),"TEXT")}},d_={init:function(){this.setColour(u_),this.appendDummyInput().appendField("Code Expression:"),this.appendDummyInput().appendField(new ge.FieldMultilineInput(""),"TEXT"),this.setOutput(!0)}},I_={init:function(){this.setColour(u_),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("VALUE").appendField(""),this.setInputsInline(!1)}},T_={init:function(){this.setColour(u_),this.appendDummyInput().appendTitle("Comment:").appendTitle(new ge.FieldTextInput(""),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip("This comment will be ignored by Python")}},M_={init:function(){this.setColour(u_),this.appendValueInput("VALUE").appendField(ge.Msg.TYPE_CHECK),this.setInputsInline(!1),this.setOutput(!0,"Type")}},h_={init:function(){this.setColour(u_),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new ge.icons.MutatorIcon(["text_print_multiple_item"],this)),this.setTooltip(ge.Msg.TEXT_PRINT_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=ge.Block.obtain(e,"text_print_multiple_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n= stop:"," yield start"," start -= abs(step)"])};if(e=function(e,t,i){return"("+e+" <= "+t+") and "+a()+"("+e+", "+t+", "+i+") or "+u()+"("+e+", "+t+", "+i+")"},ge.isNumber(n)&&ge.isNumber(s)&&ge.isNumber(_))n=parseFloat(n),s=parseFloat(s),_=Math.abs(parseFloat(_)),0==n%1&&0==s%1&&0==_%1?(n<=s?(s++,e=0==n&&1==_?s:n+", "+s,1!=_&&(e+=", "+_)):e=n+", "+--s+", -"+_,e="range("+e+")"):(e=n",GTE:">="};const da=function(e,t){var i=this.getFieldValue("OP"),n="&&"==i?t.ORDER_LOGICAL_AND:t.ORDER_LOGICAL_OR,s=t.valueToCode(this,"A",n)||"False",_=t.valueToCode(this,"B",n)||"False";if("AND"==i)var o=s+" and "+_;else if("OR"==i)o=s+" or "+_;else if("NOR"==i)o="not("+s+"^"+_+")";else o=s+"^"+_;return[o,n]},Ia=function(e,t){var i=t.ORDER_UNARY_PREFIX;return["not "+(t.valueToCode(this,"BOOL",i)||"False"),i]},Ta=function(e,t){return["TRUE"==this.getFieldValue("BOOL")?"True":"False",t.ORDER_ATOMIC]},Ma=function(e,t){return["None",t.ORDER_ATOMIC]},ha=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"False";return["("+(t.valueToCode(this,"B",t.ORDER_ATOMIC)||"False")+" if "+i+" else "+(t.valueToCode(this,"C",t.ORDER_ATOMIC)||"False")+")",t.ORDER_ATOMIC]},ma=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"''",n=t.valueToCode(this,"B",t.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,t.ORDER_ATOMIC]},Ea=function(e,t){var i=t.valueToCode(this,"A",t.ORDER_ATOMIC)||"''",n=t.valueToCode(this,"B",t.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,t.ORDER_ATOMIC]},Oa=function(e,t){return["bool("+(t.valueToCode(this,"VAR",t.ORDER_ATOMIC)||"0")+")",t.ORDER_ATOMIC]},Ra=function(e,t){return t.definitions_.import_os="import os","os.startfile("+t.valueToCode(this,"fn",t.ORDER_ATOMIC)+")\n"},ca=function(e,t){return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+" = open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')\n"},ga=function(e,t){return["open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')",t.ORDER_ATOMIC]},Ca=function(e,t){return["open("+t.valueToCode(this,"FILENAME",t.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"', encoding=\""+this.getFieldValue("CODE")+'")',t.ORDER_ATOMIC]},Sa=function(e,t){var i=t.valueToCode(this,"data",t.ORDER_ATOMIC);return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".write("+i+")\n"},Aa=function(e,t){var i=this.getFieldValue("MODE");return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+"."+i+"()",t.ORDER_ATOMIC]},La=function(e,t){var i=this.getFieldValue("MODE");return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+"."+i+"("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Na=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".readline("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Da=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".writable()",t.ORDER_ATOMIC]},fa=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".name()",t.ORDER_ATOMIC]},Fa=function(e,t){return t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".close()\n"},Pa=function(e,t){t.definitions_.import_os="import os";return["os.listdir()",t.ORDER_ATOMIC]},Ya=function(e,t){return t.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")\n"},va=function(e,t){return t.definitions_.import_os="import os",["os.path.getsize("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Xa=function(e,t){return[t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".tell()",t.ORDER_ATOMIC]},ya=function(e,t){var i=this.getFieldValue("MODE"),n=0;return n="start"==i?0:"current"==i?1:2,t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+".seek("+t.valueToCode(this,"SIZE",t.ORDER_ATOMIC)+","+n+")\n"},xa=function(e,t){return t.definitions_.import_os="import os","os.chdir("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+")\n"},ba=function(e,t){t.definitions_.import_os="import os";return["os.getcwd()",t.ORDER_ATOMIC]},Va=function(e,t){return t.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+t.valueToCode(this,"PATH",t.ORDER_ATOMIC)+")\n"},Ba=function(e,t){return t.definitions_.import_os="import os","os.rename("+t.valueToCode(this,"FILE",t.ORDER_ATOMIC)+","+t.valueToCode(this,"NEWFILE",t.ORDER_ATOMIC)+")\n"},Ga=function(e,t){t.definitions_.import_os="import os";var i=t.valueToCode(this,"FILE",t.ORDER_ATOMIC);return["os."+this.getFieldValue("MODE")+"("+i+")",t.ORDER_ATOMIC]},Ua=function(e,t){return t.definitions_.import_os="import os",t.definitions_.import_sdcard="import sdcard",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+" = sdcard.SDCard("+t.valueToCode(this,"SPISUB",t.ORDER_ATOMIC)+","+t.valueToCode(this,"PINSUB",t.ORDER_ATOMIC)+")\n"},wa=function(e,t){return t.definitions_.import_os="import os",t.definitions_.import_sdcard="import sdcard","os.mount("+t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+","+t.valueToCode(this,"DIR",t.ORDER_ATOMIC)+")\n"},Ha=function(e,t){var i=t.variableDB_.getName(this.getFieldValue("NAME"),ge.Procedures.NAME_TYPE),n=(this.getInput("STACK")&&t.statementToCode(this,"STACK"))??" pass\n";t.INFINITE_LOOP_TRAP&&(n=t.INFINITE_LOOP_TRAP.replace(/%1/g,"'"+this.id+"'")+n);var s=t.valueToCode(this,"RETURN",t.ORDER_NONE)||"";s&&(s=" return "+s+"\n");for(var _=[],o=0;o\n\n\n\t\n"+t.statementToCode(this,"HEAD")+"\n\n"+t.statementToCode(this,"BODY")+"\n\n'''",t.ORDER_ATOMIC]},Au=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"\n"+i+"\n"},Lu=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");if("head"==n)var s="<"+n+'>\n\t\n'+i+"\n";else s="<"+n+">\n"+i+"\n";return s},Nu=function(e,t){var i=t.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"<"+n+">\n"+i+"\n"},Du=function(e,t){var i=t.statementToCode(this,"DO"),n=t.valueToCode(this,"style"),s=this.getFieldValue("LEVEL");return"<"+s+" "+n+" >\n"+i+"\n"},fu=function(e,t){return['style="'+t.statementToCode(this,"STYLE")+'"',t.ORDER_ATOMIC]},Fu=function(e,t){return'"},Pu=function(){return this.getFieldValue("KEY")+":"+this.getFieldValue("VALUE")+";"},Yu=function(){return this.getFieldValue("TEXT")+"\n"},vu=function(e){return e.getFieldValue("TEXT")+"\n"},Xu=function(e,t){return[e.getFieldValue("TEXT"),t.ORDER_ATOMIC]},yu=function(e,t){return(t.valueToCode(e,"VALUE",t.ORDER_ATOMIC)||"")+"\n"},xu=function(){return""},bu=function(e,t){return["type("+(t.valueToCode(e,"VALUE",t.ORDER_MEMBER)||"___")+")",t.ORDER_ATOMIC]},Vu=function(e,t){for(var i=e.getFieldValue("NAME"),n=e.hasReturn_,s=new Array(e.itemCount_),_=0;_0?t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+"while True:\n"+a.join("")+u.join("\n"):t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+u.join("\n")},wu.scrubNakedValue=function(e){return e+"\n"},wu.quote_=function(e){var t="'";return-1!==e.indexOf("'")&&(-1===e.indexOf('"')?t='"':e=e.replace(/'/g,"\\'")),t+e+t},wu.multiline_quote_=function(e){return"'''"+(e=e.replace(/'''/g,"\\'\\'\\'"))+"'''"},wu.scrub_=function(e,t,i){var n="";if(!e.outputConnection||!e.outputConnection.targetConnection){(_=e.getCommentText())&&(_=ge.utils.string.wrap(_,wu.COMMENT_WRAP-3),n+=wu.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const Hu="#74A55B",ku={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MIDI),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_RGB_PIN_COUNT)}},Wu={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Ku={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Ju={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Qu={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_BACKSTAGE+ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_BACKSTAGE+ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},zu={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendValueInput("TICKS").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(ge.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(ge.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},qu={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},ju={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_RESET)}},$u={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Zu={init:function(){this.setColour(Hu),this.appendValueInput("SUB"),this.appendValueInput("percent").appendField(ge.Msg.MIXLY_MUSIC_VOLUME_SET),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},er={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_SETONOFF)}},tr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},ir={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},nr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_EXTERN_LED_SETBRIGHT)}},sr={init:function(){this.setColour(Hu),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_SERVO),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},_r={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("DEGREE",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DEGREE_0_180),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_MOVE)}},or={init:function(){this.setColour(Hu),this.appendValueInput("VAR").appendField("360°"+ge.Msg.MIXLY_SERVO),this.appendValueInput("SPEED",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SETTING+ge.Msg.blockpy_turtle_rotate+ge.Msg.MIXLY_SPEED+" (-10~10)"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_360_TOOLTIP)}},pr={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).appendField("180°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_MOVE)}},ar={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).appendField("360°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},ur={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).appendField("180°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},rr={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).appendField("360°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},lr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField("初始化").setCheck("var"),this.appendDummyInput().appendField("电机驱动"),this.appendDummyInput().appendField("地址").appendField(new ge.FieldDropdown([["A","ms32006.ADDRESS_A"],["B","ms32006.ADDRESS_B"]]),"mode"),this.appendValueInput("SUB1").setCheck("var").setAlign(ge.inputs.Align.RIGHT).appendField("通信"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("初始化MS32006电机驱动,使用I2C通信")}},dr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField("直流电机").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"ms32006.MOT_CW"],[ge.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"],[ge.Msg.MOTOR_N,"ms32006.MOT_N"],[ge.Msg.MOTOR_P,"ms32006.MOT_P"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置直流电机的状态及转速(0-100)")}},Ir={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField("步进电机").setCheck("var"),this.appendDummyInput().appendField("选择").appendField(new ge.FieldDropdown([["A","ms32006.MOT_A"],["B","ms32006.MOT_B"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"ms32006.MOT_CW"],[ge.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField("转速"),this.appendValueInput("steps").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField("步数"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置步进电机的状态、转速、步数(0-2047)")}},Tr={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PIN),this.appendValueInput("LEDCOUNT").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_COUNT),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_RGB_PIN_COUNT)}},Mr={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("_LED_").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MP)}},hr={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},mr={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_WRI)}},Er={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Or={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.PYTHON_RANGE_STEP).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Rr={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"uart").appendField(new ge.FieldDropdown([["uart1","uart1"],["uart2","uart2"]]),"key"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new ge.FieldDropdown([["SYN6288"+ge.Msg.MIXLY_AipSpeech_synthesis,"SYN6288"],["NS9300"+ge.Msg.MIXLY_MUSIC_PLAYER,"NS9300"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},cr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_WHETHER).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_STOPPED,"0"],[ge.Msg.MIXLY_PLAYING,"1"],[ge.Msg.MIXLY_PAUSED,"2"]]),"key"),this.setInputsInline(!0),this.setOutput(!0)}},gr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_STAT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MP3_PLAY,"1"],[ge.Msg.MIXLY_MP3_PAUSE,"2"],[ge.Msg.MIXLY_STOP,"3"],[ge.Msg.MIXLY_MP3_PREV,"4"],[ge.Msg.MIXLY_MP3_NEXT,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Cr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendValueInput("volume").appendField(ge.Msg.MIXLY_MP3_VOL+ge.Msg.MIXLY_STAT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_PLAYER_SET_VOLUME_TOOLTIP)}},Sr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MODE+ge.Msg.MIXLY_STAT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MP3_LOOP_ALL,"0"],[ge.Msg.MIXLY_MP3_LOOP_ONE,"1"],[ge.Msg.MIXLY_PLAYER_DIRECTORY_LOOP,"2"],[ge.Msg.MIXLY_MP3_LOOP_RAM,"3"],[ge.Msg.MIXLY_PLAYER_SINGLE_STOP,"4"],[ge.Msg.MIXLY_PLAYER_SEQUENTIAL_PLAY,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Ar={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_START_MELODY,"play"],[ge.Msg.MIXLY_PLAYER_INSERT_MUSIC,"insert"]]),"key"),this.appendValueInput("song"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_PLAYER_PLAY_MUSIC_TOOTIP)}},Lr={},Nr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(ge.Msg.MIXLY_SET_VOLUME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Dr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_VOLUME),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},fr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(ge.Msg.MIXLY_PLAY_HINTS),this.appendDummyInput().appendField(ge.Msg.MIXLY_PROGRAM_BLOCK).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PLAY_HINTS_TOOLTIP)}},Fr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("data").setCheck(String).appendField(ge.Msg.MIXLY_AipSpeech_synthesis),this.appendValueInput("VOICE").setCheck(Number).appendField(ge.Msg.MIXLY_BACKGROUND_MUSIC),this.appendDummyInput().appendField(ge.Msg.MIXLY_PROGRAM_BLOCK).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_PLAY_TTS_TOOLTIP)}},Pr={init:function(){this.setColour(Hu),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.extern_addr),"PIN"),this.setOutput(!0,Number)}},Yr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},vr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},Xr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_TRAFFIC_LIGHT).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.LISTS_SET_INDEX_SET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_Turn_off_display,"0"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_RED_ON,"1"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_RED_BLINK,"2"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_ON,"3"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_BLINK,"4"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_ON,"5"],[ge.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_BLINK,"6"]]),"light"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},yr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_WHITE,"W"],[ge.Msg.COLOUR_RGB_RED,"R"],[ge.Msg.COLOUR_RGB_YELLOW,"Y"],[ge.Msg.COLOUR_RGB_GREEN,"G"],[ge.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("value").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_WHITE,"W"],[ge.Msg.COLOUR_RGB_RED,"R"],[ge.Msg.COLOUR_RGB_YELLOW,"Y"],[ge.Msg.COLOUR_RGB_GREEN,"G"],[ge.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.BRIGHTNESS),this.setOutput(!0,Number),this.setInputsInline(!0)}},br={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"[0]"],[ge.Msg.MIXLY_SPEED,"[1]"],[ge.Msg.MATH_SINGLE_OP_ABSOLUTE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[2]"],[ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[3]"],[ge.Msg.MIXLY_MIXBOT_SERVO_BLOCK_OR_NOT,"[4]"],[ge.Msg.MIXLY_MIXBOT_SERVO_FINISH_OR_NOT,"[5]"],[ge.Msg.MIXLY_ALL,""]]),"status"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Vr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_SET_STOP_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_KEEP,"0"],[ge.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_COAST,"1"],[ge.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_BRAKE,"2"]]),"status"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Br={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_STOP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Gr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MATH_SINGLE_OP_ABSOLUTE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MODE).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPEED+ge.Msg.MIXLY_MODE,"0"],[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER+ge.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"0"],[ge.Msg.MIXLY_MIXBOT_SERVO_NEAREST_PATH,"1"],[ge.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.appendValueInput("angle").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_SERVO_ABSOLUTE_ANGLE_TOOLTIP)}},Ur={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ORIGIN_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},wr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField("("+ge.Msg.MIXLY_MIXBOT_SERVO_LIKE_ENCODING_MOTOR+")").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MODE).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPEED+ge.Msg.MIXLY_MODE,"0"],[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER+ge.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField("%"),this.appendValueInput("angle").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ANGLE_TOOLTIP)}},Hr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.ME_GO_MOTOR_EXTERN+ge.Msg.MIXLY_SERVO_MOTOR).appendField(ge.Msg.MIXLY_RELATIVE+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+ge.Msg.MSG.run).appendField("("+ge.Msg.MIXLY_MIXBOT_SERVO_LIKE_ORDINARY_MOTOR+")").appendField(ge.Msg.PIN_NUMBERING).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LEFT,"0"],[ge.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MODE).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPEED+ge.Msg.MIXLY_MODE,"0"],[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER+ge.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"0"],[ge.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},kr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MOTOR,"ext_motor"],[ge.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[ge.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[ge.Msg.COLOUR_RGB_RED+"LED","R_LED"],[ge.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[ge.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[ge.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[ge.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_EXTERN_GET_ADDR),this.setOutput(!0),this.setInputsInline(!0)}},Wr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(ge.Msg.ME_GO_MOTOR_EXTERN).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MOTOR,"ext_motor"],[ge.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[ge.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[ge.Msg.COLOUR_RGB_RED+"LED","R_LED"],[ge.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[ge.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[ge.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[ge.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_EXTERN_SET_ADDR),this.appendValueInput("old").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE),this.appendValueInput("new").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_UPDATE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Kr={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_AT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Jr={init:function(){this.setColour(Hu),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("pin").appendField("LED"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Qr={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SERVO+ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_AT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},zr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_SERVO),this.appendValueInput("angle").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE),this.appendDummyInput().appendField(ge.Msg.DRAW_POINTER_ANGLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},qr={init:function(){this.setColour(Hu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_MOTOR+ge.Msg.MIXLY_SETUP+ge.Msg.MIXLY_AT).appendField(ge.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},jr={init:function(){this.setColour(Hu),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MOTOR),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+ge.Msg.MIXLY_SPEED),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},$r="#6C9858",Zr={init:function(){this.setColour($r),this.appendDummyInput("").appendField(new ge.FieldDropdown([["L1","1"],["L2","2"]]),"op"),this.setOutput(!0)}},el={init:function(){this.setColour($r),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_ON,"1"],[ge.Msg.MIXLY_ESP32_OFF,"0"],[ge.Msg.MIXLY_ESP32_TOGGLE,"-1"]]),"flag"),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_INOUT_HIGHLOW)}},tl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},il={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(ge.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETBRIGHT)}},nl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},sl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SETTING+ge.Msg.MIXLY_BUILDIN_LED+ge.Msg.MIXLY_BRIGHTNESS+"(0-100%)")}},_l={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(ge.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput("").appendField(ge.Msg.MIXLY_LCD_SETCOLOR).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_LIGHT_RED,"1"],[ge.Msg.MIXLY_LIGHT_GREEN,"2"],[ge.Msg.MIXLY_LIGHT_BLUE,"3"],[ge.Msg.MIXLY_LIGHT_YELLOW,"4"],[ge.Msg.MIXLY_LIGHT_CYAN,"5"],[ge.Msg.MIXLY_LIGHT_PURPLE,"6"],[ge.Msg.MIXLY_LIGHT_WHITE,"7"]]),"colorvalue"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},ol={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},pl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(ge.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},al={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(ge.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},ul={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETTING).appendField(ge.Msg.MIXLY_BUILDIN_LED).appendField(new ge.FieldDropdown([[ge.Msg.COLOUR_RGB_RED,"r"],[ge.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SETTING+ge.Msg.MIXLY_BUILDIN_LED+ge.Msg.MIXLY_BRIGHTNESS+"(0-10)")}},rl={init:function(){this.setColour($r),this.appendDummyInput("").appendField(new ge.FieldDropdown([["L1","20"],["L2","21"]]),"op"),this.setOutput(!0)}},ll={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(Ce.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgo_cc":case"micropython:esp32s2:mixgo_ce":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgo_me":default:this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},dl={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},Il={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Tl={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.PYTHON_RANGE_STEP).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Ml={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_WRI)}},hl={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(Ce.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgocc":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgome":default:this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(ge.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},ml={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},El={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(ge.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.PYTHON_RANGE_STEP).appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Ol={init:function(){this.setColour($r),this.appendValueInput("TICKS").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(ge.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(ge.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},Rl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},cl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_RESET)}},gl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Cl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Sl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Al={init:function(){this.setColour($r),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Ll={init:function(){this.setColour($r),this.appendValueInput("LIST").appendField(ge.Msg.MIXLY_BACKSTAGE+ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Nl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MOTOR_DC).appendField(new ge.FieldDropdown([["1","1"],["2","2"],["3","3"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"],[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Dl={init:function(){this.setColour($r),this.appendDummyInput().appendField("MixGo Car").appendField(new ge.FieldDropdown([[ge.Msg.blockpy_forward,"F"],[ge.Msg.blockpy_backward,"B"],[ge.Msg.blockpy_left,"L"],[ge.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},fl={init:function(){this.setColour($r),this.appendDummyInput("").appendField("MixGo Car").appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"VAR"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},Fl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MOTOR_DC).appendField(new ge.FieldDropdown([[ge.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[ge.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Pl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MOTOR_DC).appendField(new ge.FieldDropdown([[ge.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[ge.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_STOP).appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Yl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_MOTOR_STATUS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOTOR_STATUS_TOOLTIP)}},vl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(new ge.FieldDropdown([[ge.Msg.blockpy_forward,"F"],[ge.Msg.blockpy_backward,"B"],[ge.Msg.blockpy_left,"L"],[ge.Msg.blockpy_right,"R"]]),"VAR"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[ge.Msg.MIXLY_SPEED,"SPEED"],[ge.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},Xl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},yl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXBOT).appendField(ge.Msg.MIXLY_MOTOR).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"1"],[ge.Msg.TEXT_TRIM_RIGHT,"2"],[ge.Msg.TEXT_TRIM_BOTH,"0"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[ge.Msg.MIXLY_SPEED,"SPEED"],[ge.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},xl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_BUZZER),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_ON,"0"],[ge.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_OFF,"1"]]),"on_off"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},bl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.BITBOT).appendField(new ge.FieldDropdown([[ge.Msg.blockpy_forward,"F"],[ge.Msg.blockpy_backward,"B"],[ge.Msg.blockpy_left,"L"],[ge.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.BITBOT).appendField(new ge.FieldDropdown([[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Bl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.BITBOT).appendField(ge.Msg.MIXLY_MOTOR).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"0"],[ge.Msg.TEXT_TRIM_RIGHT,"1"]]),"wheel"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"],[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Gl={init:function(){this.setColour($r),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_MIXBOT_SOUND_SET_LOUDNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},Ul={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SOUND_LOUDNESS+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},wl={init:function(){this.setColour($r),this.appendValueInput("bright").appendField(ge.Msg.MIXLY_SETTING+ge.Msg.MIXLY_MIXBOT_BUZZER+ge.Msg.MIXLY_MP3_VOL),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_SETONOFF)}},Hl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_MIXBOT_BUZZER+ge.Msg.MIXLY_MP3_VOL+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_LED_GETONOFF)}},kl={init:function(){this.setColour($r),this.appendValueInput("PATH").appendField(ge.Msg.MIXLY_RECORD_AUDIO).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendValueInput("TIME").setCheck(Number).appendField(ge.Msg.MIXLY_GET_PRESSES_TIME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Wl={init:function(){this.setColour($r),this.appendValueInput("PATH").appendField(ge.Msg.MIXLY_PLAY_AUDIO).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Kl={init:function(){this.setColour($r),this.appendValueInput("PATH").appendField(ge.Msg.MIXLY_PLAY_ONLINE_AUDIO).appendField("URL"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Jl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(ge.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Ql={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},zl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.ME_GO_MOTOR_EXTERN).appendField(ge.Msg.PIN_NUMBERING);if("micropython:esp32c2:mixgo_mini"===Ce.Boards.getSelectedBoardKey())this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"]]),"index");else this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index");this.appendValueInput("duty").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.blynk_IOT_IR_POWER+ge.Msg.MIXLY_PINMODEOUT),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},ql={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.ME_GO_MOTOR_EXTERN).appendField(ge.Msg.PIN_NUMBERING);if("micropython:esp32c2:mixgo_mini"===Ce.Boards.getSelectedBoardKey())this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"]]),"index");else this.appendDummyInput().appendField(new ge.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index");this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.blynk_IOT_IR_POWER+ge.Msg.MIXLY_PINMODEOUT+ge.Msg.MIXLY_DUTY_RATIO),this.setOutput(!0,Number),this.setInputsInline(!0)}},jl={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.ME_GO_MOTOR_EXTERN).appendField(ge.Msg.MIXLY_ALL+ge.Msg.PIN_NUMBERING),this.appendValueInput("duty").setCheck(Number).setAlign(ge.ALIGN_RIGHT).appendField(ge.Msg.blynk_IOT_IR_POWER+ge.Msg.MIXLY_PINMODEOUT+ge.Msg.MIXLY_FREQUENCY),this.appendDummyInput().appendField("Hz"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},$l={init:function(){this.setColour($r),this.appendDummyInput().appendField(ge.Msg.ANALOG+ge.Msg.MIXLY_KEYBOARD_INPUT),this.appendValueInput("special"),this.appendValueInput("general"),this.appendDummyInput().appendField(ge.Msg.MIXLY_RELEASE).appendField(new ge.FieldDropdown([[ge.Msg.MICROPYTHON_DISPLAY_YES,"True"],[ge.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"release"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.ANALOG+ge.Msg.MIXLY_KEYBOARD_INPUT)}},Zl={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SPECIAL_KEY).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPECIAL_KEY0,"0x00"],[ge.Msg.MIXLY_SPECIAL_KEY1,"0x01"],[ge.Msg.MIXLY_SPECIAL_KEY2,"0x02"],[ge.Msg.MIXLY_SPECIAL_KEY4,"0x04"],[ge.Msg.MIXLY_SPECIAL_KEY8,"0x08"],[ge.Msg.MIXLY_SPECIAL_KEY16,"0x10"],[ge.Msg.MIXLY_SPECIAL_KEY32,"0x20"],[ge.Msg.MIXLY_SPECIAL_KEY64,"0x40"],[ge.Msg.MIXLY_SPECIAL_KEY128,"0x80"]]),"op"),this.setOutput(!0)}},ed={init:function(){this.setColour($r),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GENERAL_KEY).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_SPECIAL_KEY0,"0x00"],["A","0x04"],["B","0x05"],["C","0x06"],["D","0x07"],["E","0x08"],["F","0x09"],["G","0x0A"],["H","0x0B"],["I","0x0C"],["J","0x0D"],["K","0x0E"],["L","0x0F"],["M","0x10"],["N","0x11"],["O","0x12"],["P","0x13"],["Q","0x14"],["R","0x15"],["S","0x16"],["T","0x17"],["U","0x18"],["V","0x19"],["W","0x1A"],["X","0x1B"],["Y","0x1C"],["Z","0x1D"],["1 !","0x1E"],["2 @","0x1F"],["3 #","0x20"],["4 $","0x21"],["5 %","0x22"],["6 ^","0x23"],["7 &","0x24"],["8 *","0x25"],["9 (","0x26"],["0 )","0x27"],["ENTER","0x28"],["ESC","0x29"],["BACKSPACE","0x2A"],["TAB","0x2B"],["SPACE","0x2C"],["- _","0x2D"],["= +","0x2E"],["[ {","0x2F"],["] }","0x30"],["\\ |","0x31"],["; :","0x33"],["' \"","0x34"],["` ~","0x35"],[", <","0x36"],[". >","0x37"],["/ ?","0x38"],["CAPS_LOCK","0x39"],["F1","0x3A"],["F2","0x3B"],["F3","0x3C"],["F4","0x3D"],["F5","0x3E"],["F6","0x3F"],["F7","0x40"],["F8","0x41"],["F9","0x42"],["F10","0x43"],["F11","0x44"],["F12","0x45"],["PRINTSCREEN","0x46"],["SCROLL_LOCK","0x47"],["PAUSE","0x48"],["INSERT","0x49"],["HOME","0x4A"],["PAGE_UP","0x4B"],["DELETE","0x4C"],["END","0x4D"],["PAGE_DOWN","0x4E"],["RIGHT","0x4F"],["LEFT","0x50"],["DOWN","0x51"],["UP","0x52"],["NUM_LOCK","0x53"],["/","0x54"],["*","0x55"],["-","0x56"],["+","0x57"],["ENTER","0x58"],["1","0x59"],["2","0x5A"],["3","0x5B"],["4","0x5C"],["5","0x5D"],["6","0x5E"],["7","0x5F"],["8","0x60"],["9","0x61"],["0","0x62"],[".","0x63"]]),"op"),this.setOutput(!0)}},td={init:function(){this.setColour($r),this.itemCount_=2,this.updateShape_(),this.setOutput(!0),this.setMutator(new ge.icons.MutatorIcon(["generalkey_create_with_item"],this)),this.setTooltip(ge.Msg.GENERALKEY_TUPLE_CREATE_TOOLTIP)},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("generalkey_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;nnew Array(32).fill(0)))},$m={init:function(){this.jsonInit({colour:Um,args0:[{name:"image",options:[["HEART","HEART"],["HEART_SMALL","HEART_SMALL"],["HAPPY","HAPPY"],["SAD","SAD"],["SMILE","SMILE"],["SILLY","SILLY"],["FABULOUS","FABULOUS"],["SURPRISED","SURPRISED"],["ASLEEP","ASLEEP"],["ANGRY","ANGRY"],["CONFUSED","CONFUSED"],["NO","NO"],["YES","YES"]],type:"field_dropdown"}],output:["esp32_image","List"],helpUrl:"https://microbit-micropython.readthedocs.io/en/latest/image.html#attributes",tooltip:ge.Msg.MIXLY_MICROBIT_Built_in_image1,message0:ge.Msg.MIXLY_MICROBIT_Built_in_image})}},Zm={init:function(){this.setColour(Um),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new ge.FieldDropdown(Ce.Profile.default.builtinimg),"image"),this.setOutput(!0,["esp32_image","List"])}},eE={init:function(){this.setColour(Um),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(ge.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new ge.FieldDropdown(eE.OPERATORS),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{"+":ge.Msg.MIXLY_MICROBIT_image_add,"-":ge.Msg.MIXLY_MICROBIT_image_reduce}[t]}))},OPERATORS:[[ge.Msg.MICROBIT_DISPLAY_UNION,"add"],[ge.Msg.MICROBIT_DISPLAY_MINUS,"sub"]]},tE={init:function(){this.setColour(Um),this.appendValueInput("A").setCheck("esp32_image").appendField(ge.Msg.MIXLY_MICROBIT_Invert_image1),this.setInputsInline(!0),this.setOutput(!0,"esp32_image")}},iE={init:function(){this.setColour(Um),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_LET),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_LET2).appendField(new ge.FieldDropdown(iE.OPERATORS),"OP"),this.appendValueInput("val").appendField(ge.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_UNIT);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i=ge.Msg.DISPLAY_IMAGE_LET,n=ge.Msg.DISPLAY_IMAGE_LET2,s=ge.Msg.DISPLAY_IMAGE_LET3;return i+n+{shift_up:ge.Msg.MIXLY_UP,shift_down:ge.Msg.MIXLY_DOWN,shift_left:ge.Msg.MIXLY_LEFT,shift_right:ge.Msg.MIXLY_RIGHT}[t]+s}))},OPERATORS:[[ge.Msg.MIXLY_UP,"shift_up"],[ge.Msg.MIXLY_DOWN,"shift_down"],[ge.Msg.MIXLY_LEFT,"shift_left"],[ge.Msg.MIXLY_RIGHT,"shift_right"]]},nE={init:function(){this.setColour(Um),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_POINT),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},sE={init:function(){this.setColour(Um),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("STAT").setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},_E={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},oE={init:function(){this.setColour(Um),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},pE={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Clear_display);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Clear_display)}},aE={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.MIXLY_SHOW+ge.Msg.MIXLY_DISPLAY_MATRIX_WRITE_NOW),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},uE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<5;e++){let t=this.appendDummyInput();for(let i=0;i<8;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},rE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(rE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(8).fill(0)))},lE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<8;e++){let t=this.appendDummyInput();for(let i=0;i<12;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},dE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(dE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(12).fill(0)))},IE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<8;e++){let t=this.appendDummyInput();for(let i=0;i<16;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0,"esp32_image"),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},TE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(TE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(16).fill(0)))},ME={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.OLED_SET_FONT).appendField(new ge.FieldDropdown(ME.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[["4x5"+ge.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'4x5'"],["5x5"+ge.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'5x5'"],["5x8"+ge.Msg.MIXGO_ME_DISPLAY_VERTICAL,"'5x8'"]]},hE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING)}},mE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_NUMBER),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING)}},EE={init:function(){this.setColour(Um),this.appendValueInput("data").setCheck([String,"esp32_image","List","Tuple"]).appendField(ge.Msg.OLED_DRAWSTR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING)}},OE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(ge.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(ge.Msg.TEXT_CENTER).appendField(new ge.FieldDropdown([[ge.Msg.MICROPYTHON_DISPLAY_YES,"True"],[ge.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},RE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_STRING),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(ge.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SCROLL_IMAGE_OR_STRING_DELAY)}},cE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},gE={init:function(){this.setColour(Um),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("STAT").setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},CE={init:function(){this.jsonInit({colour:Um,args0:[{name:"state",options:[[ge.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[ge.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"shape",options:[[ge.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[ge.Msg.MPYTHON_DISPLAY_SOLID,"fill_rect"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"w",type:"input_value"},{name:"h",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:ge.Msg.MPYTHON_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},SE={init:function(){this.jsonInit({colour:Um,args0:[{name:"state",options:[[ge.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[ge.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"dir_h_v",options:[[ge.Msg.mpython_vertical,"0"],[ge.Msg.mpython_horizontal,"1"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"length",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:ge.Msg.MPYTHON_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},AE={init:function(){this.jsonInit({colour:Um,args0:[{name:"state",options:[[ge.Msg.mpython_display_hline_1,"1"],[ge.Msg.mpython_display_hline_0,"0"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x1",type:"input_value"},{name:"y1",type:"input_value"},{name:"x2",type:"input_value"},{name:"y2",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.mpython_display_line_TOOLTIP,message0:ge.Msg.mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},LE={init:function(){this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new ge.FieldDropdown(LE.IMAGES),"path"),this.setColour(Um),this.setOutput(!0)},IMAGES:[["Heart","expression_picture.Heart"],["Angry","expression_picture.Angry"],["Bored","expression_picture.Bored"],["Confused","expression_picture.Confused"],["Happy","expression_picture.Happy"],["Paper","expression_picture.Paper"],["Rock","expression_picture.Rock"],["Sad","expression_picture.Sad"],["Scissors","expression_picture.Scissors"],["Silly","expression_picture.Silly"],["Sleep","expression_picture.Sleep"],["Small_heart","expression_picture.Small_heart"],["Small_paper","expression_picture.Small_paper"],["Small_rock","expression_picture.Small_rock"],["Small_scissors","expression_picture.Small_scissors"],["Smile","expression_picture.Smile"],["Surprise","expression_picture.Surprise"],["Wonderful","expression_picture.Wonderful"],["Eyes_Angry","eye_picture.Eyes_Angry"],["Awake","eye_picture.Awake"],["Black_eye","eye_picture.Black_eye"],["Bottom_left","eye_picture.Bottom_left"],["Bottom_right","eye_picture.Bottom_right"],["Crazy_1","eye_picture.Crazy_1"],["Crazy_2","eye_picture.Crazy_2"],["Disappointed","eye_picture.Disappointed"],["Dizzy","eye_picture.Dizzy"],["Down","eye_picture.Down"],["Evil","eye_picture.Evil"],["Hurt","eye_picture.Hurt"],["Knocked_out","eye_picture.Knocked_out"],["Love","eye_picture.Love"],["Middle_left","eye_picture.Middle_left"],["Middle_right","eye_picture.Middle_right"],["Neutral","eye_picture.Neutral"],["Nuclear","eye_picture.Nuclear"],["Pinch_left","eye_picture.Pinch_left"],["Pinch_middle","eye_picture.Pinch_middle"],["Pinch_right","eye_picture.Pinch_right"],["Tear","eye_picture.Tear"],["Tired_left","eye_picture.Tired_left"],["Tired_middle","eye_picture.Tired_middle"],["Tired_right","eye_picture.Tired_right"],["Toxic","eye_picture.Toxic"],["Up","eye_picture.Up"],["Winking","eye_picture.Winking"],["Accept","informatio_picture.Accept"],["Backward","informatio_picture.Backward"],["Decline","informatio_picture.Decline"],["Forward","informatio_picture.Forward"],["Left","informatio_picture.Left"],["No_go","informatio_picture.No_go"],["Question_mark","informatio_picture.Question_mark"],["Right","informatio_picture.Right"],["Stop_1","informatio_picture.Stop_1"],["Stop_2","informatio_picture.Stop_2"],["Thumbs_down","informatio_picture.Thumbs_down"],["Thumbs_up","informatio_picture.Thumbs_up"],["Warning","informatio_picture.Warning"],["Bomb","object_picture.Bomb"],["Boom","object_picture.Boom"],["Fire","object_picture.Fire"],["Flowers","object_picture.Flowers"],["Forest","object_picture.Forest"],["Lightning","object_picture.Lightning"],["Light_off","object_picture.Light_off"],["Light_on","object_picture.Light_on"],["Night","object_picture.Night"],["Pirate","object_picture.Pirate"],["Snow","object_picture.Snow"],["Target","object_picture.Target"],["Bar_0","progres_picture.Bar_0"],["Bar_1","progres_picture.Bar_1"],["Bar_2","progres_picture.Bar_2"],["Bar_3","progres_picture.Bar_3"],["Bar_4","progres_picture.Bar_4"],["Dial_0","progres_picture.Dial_0"],["Dial_1","progres_picture.Dial_1"],["Dial_2","progres_picture.Dial_2"],["Dial_3","progres_picture.Dial_3"],["Dial_4","progres_picture.Dial_4"],["Dots_0","progres_picture.Dots_0"],["Dots_1","progres_picture.Dots_1"],["Dots_2","progres_picture.Dots_2"],["Dots_3","progres_picture.Dots_3"],["Hourglass_0","progres_picture.Hourglass_0"],["Hourglass_1","progres_picture.Hourglass_1"],["Hourglass_2","progres_picture.Hourglass_2"],["Timer_0","progres_picture.Timer_0"],["Timer_1","progres_picture.Timer_1"],["Timer_2","progres_picture.Timer_2"],["Timer_3","progres_picture.Timer_3"],["Timer_4","progres_picture.Timer_4"],["Water_level_0","progres_picture.Water_level_0"],["Water_level_1","progres_picture.Water_level_1"],["Water_level_2","progres_picture.Water_level_2"],["Water_level_3","progres_picture.Water_level_3"],["YES","informatio_picture.YES"],["NO","informatio_picture.NO"]]},NE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<5;e++){let t=this.appendDummyInput();for(let i=0;i<5;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},DE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(DE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(5).fill(0)))},fE={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},FE={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_AMBIENTBRIGHT),this.setInputsInline(!0),this.setOutput(!0,Number)}},PE={init:function(){this.setColour(Um),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},YE={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXBOT_SCREEN_ROTATE).appendField(new ge.FieldDropdown(YE.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[[ge.Msg.mixpy_PL_PIE_SHADOW_N,"0"],[ge.Msg.CLOCKWISE+"90"+ge.Msg.blockpy_setheading_degree,"1"],[ge.Msg.CLOCKWISE+"180"+ge.Msg.blockpy_setheading_degree,"2"],[ge.Msg.CLOCKWISE+"270"+ge.Msg.blockpy_setheading_degree,"3"]]},vE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let e=0;e<12;e++){let t=this.appendDummyInput();for(let i=0;i<12;i++)t.appendField(new ge.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),e+"-"+i)}this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},XE={init:function(){this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(ge.inputs.Align.CENTRE).appendField(new ge.FieldBitmap(XE.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Um),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:12},(()=>new Array(12).fill(0)))},yE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xE={init:function(){this.setColour(Um),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.OLED_BITMAP).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("direct").setCheck(String).appendField(ge.Msg.MIXLY_AipImageClassify_Image+ge.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},bE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(ge.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(ge.Msg.TEXT_CENTER).appendField(new ge.FieldDropdown([[ge.Msg.MICROPYTHON_DISPLAY_YES,"True"],[ge.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},VE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},BE={init:function(){this.jsonInit({colour:Um,args0:[{name:"shape",options:[[ge.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[ge.Msg.MPYTHON_DISPLAY_SOLID,"fill_rect"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"w",type:"input_value"},{name:"h",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:ge.Msg.ONBOARD_TFT_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},GE={init:function(){this.jsonInit({colour:Um,args0:[{name:"dir_h_v",options:[[ge.Msg.mpython_vertical,"0"],[ge.Msg.mpython_horizontal,"1"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"length",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:ge.Msg.ONBOARD_TFT_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},UE={init:function(){this.jsonInit({colour:Um,args0:[{type:"input_dummy"},{name:"x1",type:"input_value"},{name:"y1",type:"input_value"},{name:"x2",type:"input_value"},{name:"y2",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,tooltip:ge.Msg.mpython_display_line_TOOLTIP,message0:ge.Msg.onboard_mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},wE={init:function(){this.setColour(Um),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(ge.Msg.HTML_COLOUR),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},HE={init:function(){this.setColour(Um),this.appendValueInput("x").setCheck(Number).appendField(ge.Msg.MIXLY_LCD_SETCOLOR).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},kE={init:function(){this.setColour(Um),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_SCREEN_FILL);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},WE={init:function(){this.setColour(Um),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_INIT_CLOCK),this.appendDummyInput().appendField(ge.Msg.MIXLY_CENTER_POS),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.OLED_CIRCLE_RADIUS),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},KE={init:function(){this.setColour(Um),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.GET_RTCTIME),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},JE={init:function(){this.setColour(Um),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.SET_TIME),this.appendValueInput("h").setCheck(Number).appendField(ge.Msg.MIXLY_HOUR),this.appendValueInput("m").setCheck(Number).appendField(ge.Msg.MIXLY_MINUTE),this.appendValueInput("s").setCheck(Number).appendField(ge.Msg.MIXLY_SECOND),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},QE={init:function(){this.setColour(Um),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.DRAW_CLOCK),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},zE={init:function(){this.setColour(Um),this.appendValueInput("SUB"),this.appendDummyInput().appendField(ge.Msg.CLEAR_CLOCK),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_STM32_TFT_BACKGROUND_COLOR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},qE={init:function(){this.jsonInit({colour:Um,args0:[{name:"shape",options:[[ge.Msg.MPYTHON_DISPLAY_HOLLOW,"False"],[ge.Msg.MPYTHON_DISPLAY_SOLID,"True"]],type:"field_dropdown"},{type:"input_dummy"},{name:"x",type:"input_value"},{name:"y",type:"input_value"},{name:"r",type:"input_value"},{name:"VAR",type:"input_value"},{name:"boolean",type:"input_value"}],inputsInline:!0,helpUrl:ge.Msg.mpython_HELPURL,message0:ge.Msg.ONBOARD_TFT_DISPLAY_SHAPE_CIRCLE_MESSAGE0,nextStatement:null,previousStatement:null})}},jE={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.DRAW_POINTER).appendField(ge.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(ge.Msg.MIXLY_DRAW_POINTER_DU),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.DRAW_POINTER_TOOLTIP)}},$E={init:function(){this.setColour(Um),this.appendDummyInput().appendField(ge.Msg.DRAW_POINTER).appendField(ge.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(ge.Msg.MIXLY_DRAW_POINTER_DU),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.DRAW_POINTER_TOOLTIP)}},ZE={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.MIXLY_Display_long_text),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR);Ce.Boards.getSelectedBoardKey();"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},eO={init:function(){this.setColour(Um),this.appendValueInput("direct").appendField(ge.Msg.OLED_BITMAP).appendField(ge.Msg.MIXLY_QR_CODE),"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},tO={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP).appendField(ge.Msg.MIXLY_QR_CODE),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ERROR_RATE).appendField(new ge.FieldDropdown([["0","7%"],["1","15%"],["2","25%"],["3","30"]]),"correct"),this.appendValueInput("VAR").appendField(ge.Msg.HTML_COLOUR),"Python ESP32-S3"===Ce.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(ge.Msg.MIXLY_synchronize),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},iO={init:function(){this.setColour(Um),this.appendValueInput("data").appendField(ge.Msg.OLED_BITMAP),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.OLED_BITMAP_OR_STRING),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},nO={init:function(){km.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},sO={init:function(){Qm.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},_O={init:function(){iE.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},oO={init:function(){_E.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},pO={init:function(){oE.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},aO={init:function(){pE.init.call(this),this.appendDummyInput().appendField(`(${ge.Msg.MIXLY_DEPRECATED})`),this.setWarningText(ge.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},uO=180,rO={init:function(){this.setColour(uO),this.setOutput(!0),this.setInputsInline(!0),this.appendValueInput("img").appendField(ge.Msg.DISPLAY_IMAGE_LET).setCheck(["esp32_image","List",String]),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_LET2).appendField(new ge.FieldDropdown(rO.OPERATORS),"OP"),this.appendValueInput("val").appendField(ge.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.DISPLAY_IMAGE_UNIT);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i=ge.Msg.DISPLAY_IMAGE_LET,n=ge.Msg.DISPLAY_IMAGE_LET2,s=ge.Msg.DISPLAY_IMAGE_LET3;return i+n+{up:ge.Msg.MIXLY_UP,down:ge.Msg.MIXLY_DOWN,left:ge.Msg.MIXLY_LEFT,right:ge.Msg.MIXLY_RIGHT}[t]+s}))},OPERATORS:[[ge.Msg.MIXLY_UP,"up"],[ge.Msg.MIXLY_DOWN,"down"],[ge.Msg.MIXLY_LEFT,"left"],[ge.Msg.MIXLY_RIGHT,"right"]]},lO={init:function(){this.setColour(uO),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(ge.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new ge.FieldDropdown(lO.OPERATORS),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{"+":ge.Msg.MIXLY_MICROBIT_image_add,"-":ge.Msg.MIXLY_MICROBIT_image_reduce}[t]}))},OPERATORS:[[ge.Msg.MICROBIT_DISPLAY_UNION,"+"],[ge.Msg.MICROBIT_DISPLAY_MINUS,"-"]]},dO={init:function(){this.setColour(uO),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+ge.Msg.MIXLY_MICROBIT_IMAGE),this.appendValueInput("VAR").setCheck("esp32_image"),this.appendDummyInput("").appendField(new ge.FieldDropdown(dO.OPERATORS),"OP"),this.setInputsInline(!0),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+ge.Msg.MIXLY_MICROBIT_IMAGE+{height:ge.Msg.MIXLY_HEIGHT,width:ge.Msg.MIXLY_WIDTH}[t]}))},OPERATORS:[[ge.Msg.MIXLY_HEIGHT,"height"],[ge.Msg.MIXLY_WIDTH,"width"]]},IO={init:function(){this.setColour(uO),this.appendValueInput("VAR").appendField(ge.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RECT).appendField(new ge.FieldDropdown(IO.STATUS),"OP"),this.jsonInit({message0:ge.Msg.MIXLY_MICROBIT_SHOW_RECT,args0:[{check:Number,type:"input_value",name:"x"},{check:Number,type:"input_value",name:"y"},{check:Number,type:"input_value",name:"width"},{check:Number,type:"input_value",name:"height"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_OLED_RECT)},STATUS:[[ge.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[ge.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},TO={init:function(){this.setColour(uO),this.appendValueInput("VAR").appendField(ge.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE).appendField(new ge.FieldDropdown(TO.STATUS),"OP"),this.jsonInit({message0:ge.Msg.MIXLY_HANBIT_SHOW_CIRCLE,args0:[{check:Number,type:"input_value",name:"x"},{check:Number,type:"input_value",name:"y"},{check:Number,type:"input_value",name:"r"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE)},STATUS:[[ge.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[ge.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},MO={init:function(){this.setColour(uO),this.appendValueInput("VAR").appendField(ge.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_DISPLAY_DRAW+ge.Msg.MIXLY_HANBIT_DRAW_TRIANGLE).appendField(new ge.FieldDropdown(MO.STATUS),"OP"),this.jsonInit({message0:ge.Msg.MIXLY_HANBIT_SHOW_triangle,args0:[{check:Number,type:"input_value",name:"x0"},{check:Number,type:"input_value",name:"y0"},{check:Number,type:"input_value",name:"x1"},{check:Number,type:"input_value",name:"y1"},{check:Number,type:"input_value",name:"x2"},{check:Number,type:"input_value",name:"y2"},{type:"input_dummy"},{checked:!1,type:"field_checkbox",name:"fill"}]}),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(ge.Msg.MIXLY_DISPLAY_DRAW+ge.Msg.MIXLY_HANBIT_DRAW_TRIANGLE)},STATUS:[[ge.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[ge.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},hO="#777777",mO={init:function(){this.setColour(hO),this.appendDummyInput("").appendField("from ").appendField(new ge.FieldTextInput("ESP32"),"path").appendField(" import ").appendField(new ge.FieldTextInput("*"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},EO={init:function(){this.setColour(hO),this.appendDummyInput("").appendField("import ").appendField(new ge.FieldTextInput("module"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},OO={init:function(){this.setColour(hO),this.appendDummyInput("").appendField(new ge.FieldTextInput("my_function"),"NAME"),this.itemCount_=1,this.arguments_=["x"],this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new ge.icons.MutatorIcon(["factory_create_with_item"],this))},mutationToDom:function(){var e=document.createElement("mutation");e.setAttribute("items",this.itemCount_);for(var t=0;tt?e[t]:'"key'+(t+1)+'"'),"KEY"+t).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},oR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},pR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},aR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},uR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(ge.Msg.MIXLY_WIFI_USERNAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(ge.Msg.MIXLY_IOT_PASSWORD).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PROJECT").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_PROJECT).setAlign(ge.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},rR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(ge.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},lR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(ge.Msg.HTML_BODY),this.appendDummyInput().appendField(ge.Msg.MIXLY_Service_quality_display).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_AT_MOST_ONCE,"0"],[ge.Msg.MIXLY_AT_LEAST_ONCE,"1"]]),"quality"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},dR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_SUBSCRIBE+ge.Msg.MIXLY_MICROBIT_MSG).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(ge.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_SUBSCRIBE_TOOLTIP)}},IR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_DISCONNECT_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},TR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_EMQX_CONNECT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},MR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_CHECK_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},hR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(ge.Msg.MQTT_Topic),this.setInputsInline(!0),this.setOutput(!0)}},mR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_MSG),this.setInputsInline(!0),this.setOutput(!0)}},ER={init:function(){this.setColour(ZO),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_ESP32_IOT_MAP_FORMATING),this.setOutput(!0)}},OR={init:function(){this.setColour(ZO),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROPYTHON_FORMAT+"(Json)"),this.setOutput(!0)}},RR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(ge.Msg.MIXLY_EMQX_PING),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_EMQX_PING_TOOLTIP)}},cR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO").appendField(ge.Msg.MIXLY_GET_NTP),this.appendValueInput("addr").appendField(ge.Msg.blynk_SERVER_ADD),this.setInputsInline(!0),this.setOutput(!0)}},gR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+ge.Msg.MIXLY_MIXIO_SHARE_KEY).setAlign(ge.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},CR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"Mixly Key").setAlign(ge.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},SR={init:function(){this.VISITOR_ID=Ce.Config.BOARD.visitorId.str32.substring(0,8).toUpperCase(),this.setColour(ZO),this.appendDummyInput("").appendField(new ge.FieldTextInput(this.visitorId),"VISITOR_ID"),this.setOutput(!0,null)},onchange:function(){const e=this.getFieldValue("VISITOR_ID");this.VISITOR_ID!==e&&this.setFieldValue(this.VISITOR_ID,"VISITOR_ID")}},AR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MixIO").appendField(ge.Msg.MSG.catEthernet_clinet),this.setOutput(!0),this.setInputsInline(!0)}},LR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("HTTP"+ge.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(ge.Msg.DISPLAY_IMAGE_LET2),this.appendDummyInput().appendField(ge.Msg.MIXLY_REQUESTS_GET).appendField(ge.Msg.MIXLY_GET_CURRENT_TIME).appendField(ge.Msg.MIXLY_OPEN_DEBUG).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},NR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("HTTP"+ge.Msg.MIXLY_Client).appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_REQUESTS_LEN,"client_len"],[ge.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[ge.Msg.MIXLY_REQUESTS_MESSAGE,"text"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},DR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MQTT"+ge.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(ge.Msg.MIXLY_CONNECTTO),this.appendDummyInput().appendField(ge.Msg.MIXLY_INIT_SUBSCRIBE).appendField(ge.Msg.MQTT_Topic).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET_CURRENT_TIME,""]]),"key").appendField(ge.Msg.MIXLY_OPEN_DEBUG).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[ge.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},fR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("MQTT"+ge.Msg.MIXLY_Client).appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_REQUESTS_LEN,"client_len"],[ge.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[ge.Msg.MIXLY_REQUESTS_MESSAGE,"time_msg()"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},FR=eR,PR=tR,YR=iR,vR=nR,XR=_R,yR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CONNECT_OLLAMA),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(ge.Msg.MODEL_NAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(ge.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},xR=yR,bR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_CONNECT_OPENAI),this.appendValueInput("SERVER").appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(ge.Msg.MIXLY_API_PRIVATE_KEY).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(ge.Msg.MODEL_NAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(ge.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},VR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendValueInput("METHOD").appendField(ge.Msg.MIXLY_LLM_CONTENT_CALLBACK),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},BR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField(ge.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendDummyInput().appendField(ge.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0)}},GR={init:function(){this.setColour(ZO),this.appendDummyInput().appendField("Ollama "+ge.Msg.MIXLY_EMPTY_HISTORY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},UR={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${ge.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("ADDR").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_EMQX_SERVER),this.appendValueInput("USERNAME").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_EMQX_USERNAME),this.appendValueInput("PASSWORD").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_IOT_PASSWORD),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},wR={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${ge.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("MQTT").setAlign(ge.inputs.Align.RIGHT).appendField(`MixIO ${ge.Msg.MIXLY_Client}`),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},HR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_UPDATE_VARIABLE),this.appendValueInput("VALUE").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},kR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLE),this.appendDummyInput().appendField(ge.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setOutput(!0)}},WR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendDummyInput().appendField(ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_NUM),this.setInputsInline(!0),this.setOutput(!0)}},KR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB").appendField(ge.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARIABLES),this.appendValueInput("NO").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_START_NUMBER),this.appendValueInput("COUNT").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_VARIABLE_NUMBER),this.appendValueInput("TAG").setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARS),this.appendDummyInput().setAlign(ge.inputs.Align.RIGHT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_ALL,"both"],[ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_TAG,"tag"],[ge.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_VALUE,"value"]]),"DTYPE"),this.setInputsInline(!1),this.setOutput(!0)}},JR={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(ge.Msg.MIXLY_TINY_WEB_DB_DELETE_VARIABLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},QR=225,zR={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_INIT),this.appendDummyInput().appendField(ge.Msg.MIXLY_NETWORK_MODE).appendField(new ge.FieldDropdown([["STA","STA"],["AP","AP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_INIT_TOOLTIP)}},qR={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_NETWORK_WIFI_OPEN,"True"],[ge.Msg.MIXLY_NETWORK_WIFI_CLOSE,"False"]]),"op"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_FLAG),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("op"),i=ge.Msg.MIXLY_ESP32_NETWORK_OPEN_TOOLTIP;return{True:ge.Msg.MIXLY_NETWORK_WIFI_OPEN,False:ge.Msg.MIXLY_NETWORK_WIFI_CLOSE}[t]+i}))}},jR={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE)}},$R={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_SCAN),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip((function(){return ge.Msg.MIXLY_ESP32_NETWORK_SCAN_TOOLTIP+{0:"ssid",1:"bssid",2:"channel",3:"RSSI",4:"authmode",5:"hidden",all:ge.Msg.MIXLY_NETWORK_WIFI_SCAN_ATTRIBUTE}.all}))}},ZR={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_CONNECT),this.appendValueInput("id").setCheck(String).appendField(ge.Msg.HTML_NAME),this.appendValueInput("password").setCheck(String).appendField(ge.Msg.HTML_PASSWORD),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_CONNECT_TOOLTIP)}},ec={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_NETWORK_WIFI_CONNECT+ge.Msg.MIXLY_SYMBOL_QUESTION),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_WIFI_CONNECT_TOOLTIP)}},tc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_NETWORK_IP,"0"],[ge.Msg.MIXLY_ESP32_NETWORK_MASK,"1"],[ge.Msg.MIXLY_ESP32_NETWORK_GATEWAY,"2"],["DNS","3"]]),"mode"),this.setOutput(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("mode");return ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP+{0:ge.Msg.MIXLY_ESP32_NETWORK_IP,1:ge.Msg.MIXLY_ESP32_NETWORK_MASK,2:ge.Msg.MIXLY_ESP32_NETWORK_GATEWAY,3:"DNS"}[t]}))}},ic={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_STOP_CONNECT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_STOP_TOOLTIP)}},nc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_NETWORK_WIFI_ESSID,"essid"],[ge.Msg.MIXLY_NETWORK_WIFI_CHANNEL,"channel"]]),"op"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP)}},sc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXLY_HOTSPOT),this.appendValueInput("essid").setCheck(String).appendField(ge.Msg.MIXLY_NAME),this.appendValueInput("password").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_PASSWORD),this.appendValueInput("channel").setCheck(Number).appendField(ge.Msg.MIXLY_NETWORK_WIFI_CHANNEL),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_AP_CONNECT_TOOLTIP)}},_c={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_SERVER1),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_NETWORK_SERVER2),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},oc={init:function(){this.setColour(QR),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_INIT).setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_TYPE).appendField(new ge.FieldDropdown([["TCP","TCP"],["UDP","UDP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("mode");return ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_INIT_TOOLTIP+{TCP:"TCP",UDP:"UDP"}[t]}))}},pc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_BIND_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_BIND_TOOLTIP)}},ac={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_CONNECT_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_CONNECT_TOOLTIP)}},uc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendValueInput("queue").setCheck(Number).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_LISTEN).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_QUEUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_LISTEN_TOOLTIP)}},rc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_ACCEPT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_ACCEPT_TOOLTIP)}},lc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE_TOOLTIP)}},dc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_TOOLTIP)}},Ic={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("content").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TOOLTIP)}},Tc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("size").setCheck(Number).appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_FROM_TOOLTIP)}},Mc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("content").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.appendValueInput("address").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_TO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TO_TOOLTIP)}},hc={init:function(){this.setColour(QR),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_CLOSE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},mc={init:function(){this.setColour(QR),this.appendValueInput("DOMAIN").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(ge.Msg.blockpy_REQUESTS_GET).appendField(new ge.FieldTextInput("response"),"VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.blockpy_REQUESTS_GET_TOOLTIP)},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("VAR"))&&this.setTitleValue(t,"VAR")}},Ec={init:function(){this.appendValueInput("VAL"),this.setColour(QR),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown(Ec.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("DIR");return{clear:ge.Msg.MIXLY_TOOLTIP_TURTEL_CLEAR,reset:ge.Msg.MIXLY_TOOLTIP_TURTEL_RESET,home:ge.Msg.MIXLY_TOOLTIP_TURTEL_HOME}[t]}))},ATTR:[[ge.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_COOKIES,"cookies"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"]]},Oc={init:function(){this.appendValueInput("VAR").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.setColour(QR),this.appendDummyInput("").appendField(ge.Msg.blockpy_CONDUCT).appendField(new ge.FieldDropdown(Oc.METHOD),"DIR"),this.appendDummyInput("").appendField(ge.Msg.blockpy_REQUESTS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("DIR");return{forward:ge.Msg.MIXLY_TOOLTIP_TURTEL_FORWARD,backward:ge.Msg.MIXLY_TOOLTIP_TURTEL_BACKWARD}[t]}))},METHOD:[["post","post"],["put","put"],["delete","delete"],["head","head"],["option","option"]]},Rc={init:function(){this.setColour(QR),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET_NTP+"(NTP)"),this.appendValueInput("data").appendField(ge.Msg.blynk_SERVER_ADD),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},cc={init:function(){this.setColour(QR),this.appendDummyInput("").appendField(new ge.FieldDropdown([["ntp.aliyun.com","ntp.aliyun.com"],["ntp1.aliyun.com","ntp1.aliyun.com"],["ntp2.aliyun.com","ntp2.aliyun.com"],["ntp3.aliyun.com","ntp3.aliyun.com"],["ntp4.aliyun.com","ntp4.aliyun.com"],["ntp5.aliyun.com","ntp5.aliyun.com"],["ntp6.aliyun.com","ntp6.aliyun.com"],["ntp7.aliyun.com","ntp7.aliyun.com"],["time1.cloud.tencent.com","time1.cloud.tencent.com"],["time2.cloud.tencent.com","time2.cloud.tencent.com"],["time3.cloud.tencent.com","time3.cloud.tencent.com"],["time4.cloud.tencent.com","time4.cloud.tencent.com"],["time5.cloud.tencent.com","time5.cloud.tencent.com"]]),"op"),this.setOutput(!0)}},gc="#3288dd",Cc={init:function(){this.setColour(gc),this.appendValueInput("URL").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(ge.Msg.blockpy_CONDUCT).appendField(new ge.FieldDropdown([["get","get"],["head","head"],["delete","delete"]]),"TYPE").appendField(ge.Msg.blockpy_REQUESTS).appendField(ge.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},Sc={init:function(){this.setColour(gc),this.appendValueInput("URL").appendField(ge.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(ge.Msg.blockpy_CONDUCT).appendField(new ge.FieldDropdown([["post","post"],["put","put"],["patch","patch"]]),"TYPE").appendField(ge.Msg.blockpy_REQUESTS),this.appendValueInput("data").appendField(ge.Msg.blockpy_REQUESTS+ge.Msg.OLED_STRING),this.appendDummyInput("").appendField(ge.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},Ac={init:function(){this.appendValueInput("VAL"),this.setColour(gc),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown(Ac.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String)},ATTR:[[ge.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_JSON,"json()"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[ge.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"],[ge.Msg.MIXPY_TEXT_ENCODE,"encoding"]]},Lc={init:function(){this.setColour(gc),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_IOT_CONNECT_WIFI),this.appendValueInput("WIFINAME").setCheck(String).appendField(ge.Msg.HTML_NAME),this.appendValueInput("PASSWORD").setCheck(String).appendField(ge.Msg.HTML_PASSWORD),this.appendValueInput("TIMEOUT").setCheck(Number).appendField(ge.Msg.MIXLY_IR_TIMEOUT),this.appendDummyInput().appendField(ge.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_IOT_WIFI_CONNECT_TOOLTIP)}},Nc={init:function(){this.setColour(gc),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_IOT_EMQX_CONNECT_TOOLTIP),this.appendValueInput("SERVER").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_SERVER).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PORT").setCheck(Number).appendField(ge.Msg.MIXLY_EMQX_PORT).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("CLIENT_ID").setCheck(String).appendField(ge.Msg.MIXLY_EMQX_CLIENT_ID).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(ge.Msg.MIXLY_WIFI_USERNAME).setAlign(ge.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(ge.Msg.MIXLY_IOT_PASSWORD).setAlign(ge.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Dc={init:function(){this.setColour(gc),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_SUBSCRIBE+ge.Msg.MIXLY_MICROBIT_MSG).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MESSAGE").appendField(ge.Msg.blockpy_set_of),this.setInputsInline(!0),this.setOutput(!0)}},fc={init:function(){this.setColour(gc),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_SUBSCRIBE+ge.Msg.MIXLY_MICROBIT_MSG).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(ge.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Fc={init:function(){this.setColour(gc),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(ge.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(ge.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(ge.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Pc={init:function(){this.setColour(gc),this.appendDummyInput().appendField("mqtt"+ge.Msg.MIXLY_EMQX_IS_CONNECT),this.setInputsInline(!0),this.setOutput(!0)}},Yc=100,vc={init:function(){if("mixgo_nova"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Yc),this.appendDummyInput().appendField(e).appendField(ge.Msg.MIXLY_MIXGO_NOVA_POTENTIAL_NUM),this.setOutput(!0,Number),this.setInputsInline(!0)}},Xc={init:function(){if("mixgo_nova"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Yc),this.appendValueInput("PIN").appendField(e).appendField(ge.Msg.MOTOR_DC).appendField(ge.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"],[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},yc={init:function(){if("mixgo_nova"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Yc),this.appendValueInput("PIN").appendField(e).appendField(ge.Msg.SET_USB),this.appendValueInput("percent").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_POWER_SUPPLY),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xc={init:function(){if("mixgo_nova"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="Nova G1";this.setColour(Yc),this.appendDummyInput().appendField(e).appendField(ge.Msg.MIXLY_SPK_STATE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ON,"True"],[ge.Msg.MIXLY_OFF,"False"]]),"state"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},bc=100,Vc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("I2CSUB").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(t),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Bc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("SUB").appendField(t).setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MIXGO_CAR_BATTERY_LEFT),this.setOutput(!0,Number),this.setInputsInline(!0)}},Gc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("SUB").appendField(t).setCheck("var"),this.appendValueInput("PIN").appendField(ge.Msg.MOTOR_DC).appendField(ge.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Direction).appendField(new ge.FieldDropdown([[ge.Msg.CLOCKWISE,"CW"],[ge.Msg.ANTI_CLOCKWISE,"CCW"],[ge.Msg.MOTOR_P,"P"],[ge.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Uc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("SUB").appendField(t).setCheck("var"),this.appendValueInput("PIN").appendField(ge.Msg.MOTOR_DC).appendField(ge.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(ge.Msg.MIXLY_STEPPER_GET_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},wc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("SUB").appendField(t).setCheck("var"),this.appendValueInput("PIN").appendField("180°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_MOVE)}},Hc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("SUB").appendField(t).setCheck("var"),this.appendValueInput("PIN").appendField("360°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(ge.inputs.Align.RIGHT).appendField(ge.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},kc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("SUB").appendField(t).setCheck("var"),this.appendValueInput("PIN").appendField("180°"+ge.Msg.MIXLY_SERVO),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Wc={init:function(){var e=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==e)var t="CE G6";else if("mixgo_pe"==e)t="PE G1";this.setColour(bc),this.appendValueInput("SUB").appendField(t).setCheck("var"),this.appendValueInput("PIN").appendField("360°"+ge.Msg.MIXLY_SERVO).appendField(ge.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET+ge.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},Kc="#A58C5B",Jc={init:function(){this.setColour(Kc),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_IS_PRESSED),this.appendValueInput("STAT").appendField(ge.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SENOR_IS_PRESSED)}},Qc={init:function(){this.setColour(Kc),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_WAS_PRESSED),this.appendValueInput("STAT").appendField(ge.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_SENOR_WAS_PRESSED)}},zc={init:function(){this.setColour(Kc),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_PRESSES),this.appendValueInput("VAR").setCheck(Number).appendField(ge.Msg.MIXLY_GET_PRESSES_TIME),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.PROCEDURES_DEFRETURN_RETURN+ge.Msg.MIXLY_BUTTON+ge.Msg.MIXLY_GET_PRESSES)}},qc={init:function(){this.setColour(Kc),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_BUTTON).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[ge.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[ge.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_INOUT_ATTACHINTERRUPT)}},jc={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_shake,"shake"],[ge.Msg.MIXLY_UP,"up"],[ge.Msg.MIXLY_DOWN,"down"],[ge.Msg.MIXLY_LEFT,"left"],[ge.Msg.MIXLY_RIGHT,"right"],[ge.Msg.MIXLY_MICROBIT_face_up,"face up"],[ge.Msg.MIXLY_MICROBIT_face_down,"face down"],[ge.Msg.MIXLY_MICROBIT_freefall,"freefall"],["3g","3g"],["6g","6g"],["8g","8g"]]),"gesture"),this.appendStatementInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("gesture"),i=ge.Msg.MIXLY_MICROBIT_JS_CURRENT,n=ge.Msg.MSG.catSensor,s=ge.Msg.MIXLY_MICROBIT_JS_STATE,_=ge.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:ge.Msg.MIXLY_MICROBIT_shake,up:ge.Msg.MIXLY_UP,down:ge.Msg.MIXLY_DOWN,left:ge.Msg.MIXLY_LEFT,right:ge.Msg.MIXLY_RIGHT,"face up":ge.Msg.MIXLY_MICROBIT_face_up,"face down":ge.Msg.MIXLY_MICROBIT_face_down,freefall:ge.Msg.MIXLY_MICROBIT_freefall,"3g":"3g","6g":"6g","8g":"8g"}[t]+_}))}},$c={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_ADXL345).setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},Zc={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_LIGHT_LEVEL),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_SENSOR_LIGHT_LEVEL_TOOLTIP)}},eg={init:function(){this.setColour(Kc),this.appendValueInput("PIN",Number).appendField(new ge.FieldDropdown([["DHT11","DHT11"],["DHT22","DHT22"]]),"TYPE").appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(new ge.FieldDropdown(eg.METHOD),"WHAT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("WHAT");return{temperature:ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM,relative_humidity:ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_HUM,tempandhum:ge.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM_HUM}[t]}))},METHOD:[[ge.Msg.MIXLY_GETTEMPERATUE,"temperature"],[ge.Msg.MIXLY_GETHUMIDITY,"humidity"]]},tg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_LIGHT),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.ESP32_SENSOR_NIXGO_LIGHT_TOOLTIP)}},ig={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_SOUND),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.ESP32_SENSOR_NIXGO_SOUND_TOOLTIP)}},ng={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new ge.FieldDropdown([[ge.Msg.TEXT_TRIM_LEFT,"left"],[ge.Msg.TEXT_TRIM_RIGHT,"right"]]),"direction").appendField(ge.Msg.MIXLY_ESP32_NEAR),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("direction"),i=ge.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP,n=ge.Msg.MIXLY_ESP32_NEAR;return i+{left:ge.Msg.TEXT_TRIM_LEFT,right:ge.Msg.TEXT_TRIM_RIGHT}[t]+n}))}},sg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_ALTITUDE_SENSOR+" BMP280").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"get_BMP_temperature()"],[ge.Msg.MIXLY_GETPRESSURE,"get_BMP_pressure()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{"get_BMP_temperature()":ge.Msg.MIXLY_MICROBIT_SENSOR_BMP_temperature_TOOLTIP,"get_BMP_pressure()":ge.Msg.MIXLY_MICROBIT_SENSOR_BMP_press_TOOLTIP}[t]}))}},_g={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+" SHT20").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"get_SHT_temperature()"],[ge.Msg.MIXLY_GETHUMIDITY,"get_SHT_relative_humidity()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{"get_SHT_temperature()":ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,"get_SHT_relative_humidity()":ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},og={init:function(){this.setColour(Kc),this.appendValueInput("PIN",Number).appendField("DS18X20 "+ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_MICROBIT_SENSOR_DS18X20_TOOLTIP)}},pg={init:function(){this.setColour(Kc),this.appendDummyInput("").appendField("LM35"+ge.Msg.MIXLY_TEMP),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(ge.Msg.MIXLY_TOOLTIP_LM35)}},ag={init:function(){this.setColour(Kc),this.appendValueInput("I2CSUB").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_EXTERN_LIGHT+"(LTR308ALS)","LTR308"],[ge.Msg.MIXLY_COLOR_SENSOR+"(LTR381RGB)","LTR381RGB"],[ge.Msg.MIXLY_COLOR_SENSOR+"(UCS12071)","UCS12071"],[ge.Msg.MIXLY_EXTERN_LIGHTUV+"(LTR390UV)","LTR390UV"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(HP203X)","HP203X"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(SPL06_001)","SPL06_001"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(MS5611)","MS5611"],[ge.Msg.MIXLY_ALTITUDE_SENSOR+"(BMP280)","BMP280"],[ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHTC3)","SHTC3"],[ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(AHT21)","AHT21"],[ge.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHT20)","SHT20"],[ge.Msg.MIXLY_LASER_RANGE_SENSOR+"(VL53L0X)","VL53L0X"],[ge.Msg.MIXLY_GEOMAGNETIC_SENSOR+"(QMC5883L)","QMC5883L"],[ge.Msg.MIXLY_ESP32_MAX30102+"(MAX30102)","MAX30102"],[ge.Msg.HTML_COLOUR+"、"+ge.Msg.MIXLY_ENVIRONMENT_LIGHT+"、"+ge.Msg.MIXLY_NEXT+"、"+ge.Msg.MIXLY_ESP32_APDS9960+"(APDS9960)","APDS9960"],[ge.Msg.MIXLY_NINE_AXIS_SENSOR+"(MPU9250)","MPU9250"],[ge.Msg.MixGo_MPU9250+"(ADXL345)","ADXL345"],["RFID","RFID"],[ge.Msg.MIXLY_RADAR_SENSOR+"(CBR817)","CBR817"],[ge.Msg.MIXLY_AipSpeech_asr+"(CI130X)","CI130X"],[ge.Msg.MIXLY_TVOC_CO2_SENSOR+"(AGS10)","AGS10"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},ug={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(ge.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+ge.Msg.MIXLY_DELAY_TIME_RANGE)}},rg={init:function(){this.setColour(Kc),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RADAR).appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(ge.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+ge.Msg.MIXLY_DELAY_TIME_RANGE)}},lg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},dg={init:function(){this.setColour(Kc),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RADAR).appendField(ge.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},Ig={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_IDENTIFY_ONCE_AND_SAVE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Tg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_HELLO_XIAOZHI,"1"],[ge.Msg.MIXLY_XIAOZHIXIAOZHI,"2"],[ge.Msg.MIXLY_THE_FIRST,"3"],[ge.Msg.MIXLY_THE_SECOND,"4"],[ge.Msg.MIXLY_THE_THIRD,"5"],[ge.Msg.MIXLY_THE_FOURTH,"6"],[ge.Msg.MIXLY_THE_FIFTH,"7"],[ge.Msg.MIXLY_THE_SIXTH,"8"],[ge.Msg.MIXLY_THE_SEVENTH,"9"],[ge.Msg.MIXLY_THE_EIGHTH,"10"],[ge.Msg.MIXLY_THE_NINTH,"11"],[ge.Msg.MIXLY_THE_TENTH,"12"],[ge.Msg.MIXLY_THE_ELEVENTH,"13"],[ge.Msg.MIXLY_THE_TWELFTH,"14"],[ge.Msg.MIXLY_THE_13TH,"15"],[ge.Msg.MIXLY_THE_14TH,"16"],[ge.Msg.MIXLY_THE_15TH,"17"],[ge.Msg.MIXLY_THE_16TH,"18"],[ge.Msg.MIXLY_THE_17TH,"19"],[ge.Msg.MIXLY_THE_18TH,"20"],[ge.Msg.MIXLY_THE_19TH,"21"],[ge.Msg.MIXLY_THE_20TH,"22"],[ge.Msg.MIXLY_Turn_on_the_lights,"23"],[ge.Msg.MIXLY_Turn_off_the_lights,"24"],[ge.Msg.MIXLY_Turn_up_the_brightness,"25"],[ge.Msg.MIXLY_Turn_down_the_brightness,"26"],[ge.Msg.MIXLY_Set_it_to_red,"27"],[ge.Msg.MIXLY_Set_it_to_orange,"28"],[ge.Msg.MIXLY_Set_it_to_yellow,"29"],[ge.Msg.MIXLY_Set_it_to_green,"30"],[ge.Msg.MIXLY_Set_it_to_cyan,"31"],[ge.Msg.MIXLY_Set_it_to_blue,"32"],[ge.Msg.MIXLY_Set_it_to_purple,"33"],[ge.Msg.MIXLY_Set_it_to_white,"34"],[ge.Msg.MIXLY_Turn_on_the_fan,"35"],[ge.Msg.MIXLY_Turn_off_the_fan,"36"],[ge.Msg.MIXLY_First_gear,"37"],[ge.Msg.MIXLY_Wind_speed_second,"38"],[ge.Msg.MIXLY_Third_gear,"39"],[ge.Msg.MIXLY_Previous,"40"],[ge.Msg.MIXLY_Next_page,"41"],[ge.Msg.MIXLY_Show_smiley_face,"42"],[ge.Msg.MIXLY_Show_crying_face,"43"],[ge.Msg.MIXLY_Show_love,"44"],[ge.Msg.MIXLY_Close_display,"45"],[ge.Msg.MIXLY_Start_execution,"46"],[ge.Msg.MIXLY_FORWARD,"47"],[ge.Msg.MIXLY_BACKWARD,"48"],[ge.Msg.MIXLY_TURNLEFT,"49"],[ge.Msg.MIXLY_TURNRIGHT,"50"],[ge.Msg.MIXLY_STOP,"51"],[ge.Msg.MIXLY_Accelerate,"52"],[ge.Msg.MIXLY_retard,"53"],[ge.Msg.ROTATION_FORWARD,"54"],[ge.Msg.ROTATION_BACKWARD,"55"],[ge.Msg.MIXLY_Query_temperature,"56"],[ge.Msg.MIXLY_Query_humidity,"57"],[ge.Msg.MIXLY_Query_brightness,"58"],[ge.Msg.MIXLY_Query_sound,"59"],[ge.Msg.MIXLY_Query_time,"60"],[ge.Msg.MIXLY_Query_distance,"61"],[ge.Msg.MIXLY_Query_pressure,"62"],[ge.Msg.MIXLY_Query_key,"63"],[ge.Msg.MIXLY_Query_touch,"64"],[ge.Msg.MIXLY_Query_color,"65"]]),"cmd").appendField(ge.Msg.MIXLY_WHETHER+ge.Msg.MIXLY_BE_IDENTIFIED),this.setOutput(!0),this.setInputsInline(!0)}},Mg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RECOGNIZED_STATE,"status1"],[ge.Msg.MIXLY_WHETHER_BROADCAST,"status2"],[ge.Msg.MIXLY_THE_RECOGNIZED_CMD,"result"]]),"key"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_CI130X_GET_THE_RECOGNIZED_STATE_TOOLTIP)}},hg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MP3_PLAY).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[ge.Msg.MIXLY_WIND_SPEED,"154"],[ge.Msg.MIXLY_HYETAL,"155"],[ge.Msg.MIXLY_TEMPERATURE,"156"],[ge.Msg.MIXLY_Humidity,"157"],[ge.Msg.MIXLY_Altitude,"158"],[ge.Msg.MIXLY_SOUND,"159"],[ge.Msg.MIXLY_BRIGHTNESS,"160"],[ge.Msg.ME_GO_HALL_SENSOR_DISTANCE,"161"],[ge.Msg.MIXLY_SERVO,"162"],[ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"163"],[ge.Msg.MIXLY_BUTTON2,"164"],[ge.Msg.MIXLY_ESP32_TOUCH,"165"],[ge.Msg.MIXLY_PAY,"166"],[ge.Msg.MIXLY_CARSH_CHANGE,"167"],[ge.Msg.MIXLY_COUNTDOWN,"168"],[ge.Msg.MIXLY_TIMING,"169"],[ge.Msg.MIXLY_AT_THE_MOMENT,"170"],[ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE,"171"],[ge.Msg.MIXLY_FORWARD,"172"],[ge.Msg.MIXLY_BACKWARD,"173"],[ge.Msg.MIXLY_TURNLEFT,"174"],[ge.Msg.MIXLY_TURNRIGHT,"175"],[ge.Msg.MIXLY_STOP,"176"],[ge.Msg.MIXLY_Accelerate,"177"],[ge.Msg.MIXLY_retard,"178"],[ge.Msg.ROTATION_FORWARD,"179"],[ge.Msg.ROTATION_BACKWARD,"180"],[ge.Msg.TUPLE_JOIN,"181"],[ge.Msg.MIXLY_SHOW,"182"],[ge.Msg.MIXLY_LAMPLIGHT,"183"],[ge.Msg.MIXLY_ACCELERATION,"184"]]),"star"),this.appendValueInput("NUM").appendField(ge.Msg.MIXLY_NUMBER),this.appendDummyInput("").appendField(ge.Msg.MIXLY_UNIT).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[ge.Msg.MIXLY_YEAR,"117"],[ge.Msg.MIXLY_MONTH,"118"],[ge.Msg.MIXLY_DAY,"119"],[ge.Msg.MIXLY_HOUR,"120"],[ge.Msg.MIXLY_MINUTE,"121"],[ge.Msg.MIXLY_SECOND,"122"],[ge.Msg.MIXLY_WEEK2,"123"],[ge.Msg.MIXLY_RMB_UNIT,"124"],[ge.Msg.blockpy_setheading_degree,"125"],[ge.Msg.MIXLY_GEAR,"126"],[ge.Msg.MIXLY_LAYER,"127"],[ge.Msg.MIXLY_GRAM,"128"],[ge.Msg.MIXLY_METER,"129"],[ge.Msg.MIXLY_CENTIMETER,"130"],[ge.Msg.MIXLY_MILLIMETER,"131"],[ge.Msg.MIXLY_LUMEN,"132"],[ge.Msg.MIXLY_DECIBEL,"133"],[ge.Msg.MIXLY_hectopascal,"134"],[ge.Msg.MIXLY_PERCENT,"135"],[ge.Msg.MIXLY_CELSIUS,"136"],[ge.Msg.MIXLY_METER_PER_SEC,"137"],[ge.Msg.MIXLY_MICROBIT_Turn_on_display,"138"],[ge.Msg.MIXLY_MICROBIT_Turn_off_display,"139"],[ge.Msg.MIXLY_SUCCESS,"140"],[ge.Msg.MIXLY_FAILED,"141"],[ge.Msg.MIXLY_WRONG,"142"],[ge.Msg.MIXLY_GOOD,"143"],[ge.Msg.MIXLY_blockpy_set_add,"144"],[ge.Msg.MIXLY_DECREASE,"145"],[ge.Msg.COLOUR_RGB_RED,"146"],[ge.Msg.COLOUR_RGB_ORANGE,"147"],[ge.Msg.COLOUR_YELLOW,"148"],[ge.Msg.COLOUR_RGB_GREEN,"149"],[ge.Msg.COLOUR_CYAN,"150"],[ge.Msg.COLOUR_RGB_BLUE,"151"],[ge.Msg.COLOUR_RGB_PURPLE,"152"],[ge.Msg.COLOUR_RGB_WHITE,"153"]]),"end"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},mg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.LISTS_SET_INDEX_SET+ge.Msg.MIXLY_SYSTEM+ge.Msg.MIXLY_CMD).appendField(new ge.FieldDropdown([[ge.Msg.MILXY_ENTER_WAKE_UP,"1"],[ge.Msg.MIXLY_INCREASE_VOLUME,"202"],[ge.Msg.MIXLY_REDUCE_VOLUME,"203"],[ge.Msg.MIXLY_MAX_VOLUME,"204"],[ge.Msg.MIXLY_MINIMUM,"205"],[ge.Msg.MIXLY_OPEN_RESPONSE,"206"],[ge.Msg.MIXLY_CLOSE_RESPONSE,"207"],[ge.Msg.MIXLY_QUIT_WAKE_UP,"208"]]),"cmd"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Eg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_MAX30102+" MAX30102"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_MAX30102_IR,"[0]"],[ge.Msg.MIXLY_ESP32_MAX30102_RED,"[1]"],[ge.Msg.MIXLY_ESP32_MAX30102_IR+","+ge.Msg.MIXLY_ESP32_MAX30102_RED,""]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Og={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_APDS9960+" APDS9960"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_ESP32_APDS9960_COLOR,"color"],[ge.Msg.MIXLY_ESP32_APDS9960_GESTURE,"gesture"],[ge.Msg.MIXLY_ESP32_APDS9960_APPROACH,"proximity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Rg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_EXTERN_LIGHT+" LTR308ALS"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_LIGHT_INTENSITY),this.setOutput(!0,Number),this.setInputsInline(!0)}},cg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.HTML_COLOUR+ge.Msg.MSG.catSensor+" LTR381RGB").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET+ge.Msg.HTML_COLOUR,"[2]"],[ge.Msg.MIXLY_GET+ge.Msg.MIXLY_IR_STRENGTH,"[1]"],[ge.Msg.MIXLY_GET+ge.Msg.MIXLY_LIGHT_STRENGTH,"[0]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},gg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.HTML_COLOUR+ge.Msg.MSG.catSensor+" UCS12071").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET+"RGB"+ge.Msg.HTML_COLOUR,"0"],[ge.Msg.MIXLY_GET+ge.Msg.MIXLY_RGB_RAW,"1"],[ge.Msg.MIXLY_GET_ENV_LIGHT+ge.Msg.MIXLY_BRIGHTNESS,"2"],[ge.Msg.GET_IR_STRENGTH+ge.Msg.MIXLY_BRIGHTNESS,"3"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Cg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_EXTERN_LIGHTUV+" LTR390UV").setCheck("var"),this.appendDummyInput().appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GET_ENV_LIGHT,"E"],[ge.Msg.MIXLY_GET_ULTRAVIOLET,"U"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Sg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_LASER_RANGE+" VL53L0X"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GET_DISTANCE+"(mm)"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Ag={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_TEM_HUM+" SHTC3").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"temperature"],[ge.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{temperature:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,humidity:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},Lg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_TEM_HUM+" AHT21").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETTEMPERATUE,"temperature"],[ge.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key");return{temperature:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,relative_humidity:ge.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[t]}))}},Ng={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" HP203X").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETPRESSURE,"pressure()"],[ge.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[ge.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Dg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" SPL06_001").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETPRESSURE,"pressure()"],[ge.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[ge.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},fg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_GETPRESSURE,"pressure()"],[ge.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[ge.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Fg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_Altitude+ge.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendValueInput("VAR").appendField(ge.Msg.MIXLY_REF_TO_PRESSURE),this.appendDummyInput().appendField(ge.Msg.MIXLY_CAL_TO_ALTITUDE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Pg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MIXGOPE_FIELD+ge.Msg.MSG.catSensor+" QMC5883L").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"get_bearing()"],[ge.Msg.MIXLY_TEMPERATURE,"get_temp()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Yg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_shake,"shake"],[ge.Msg.MIXLY_UP,"up"],[ge.Msg.MIXLY_DOWN,"down"],[ge.Msg.MIXLY_LEFT,"left"],[ge.Msg.MIXLY_RIGHT,"right"],[ge.Msg.MIXLY_MICROBIT_face_up,"face up"],[ge.Msg.MIXLY_MICROBIT_face_down,"face down"]]),"gesture"),this.setOutput(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("gesture"),i=ge.Msg.MIXLY_MICROBIT_JS_CURRENT,n=ge.Msg.MSG.catSensor,s=ge.Msg.MIXLY_MICROBIT_JS_STATE,_=ge.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:ge.Msg.MIXLY_MICROBIT_shake,up:ge.Msg.MIXLY_UP,down:ge.Msg.MIXLY_DOWN,left:ge.Msg.MIXLY_LEFT,right:ge.Msg.MIXLY_RIGHT,"face up":ge.Msg.MIXLY_MICROBIT_face_up,"face down":ge.Msg.MIXLY_MICROBIT_face_down}[t]+_}))}},vg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},Xg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_GET+ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},yg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+ge.Msg.MIXLY_ESP32_SENOR_GYRO).appendField(new ge.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("key"),i=ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=ge.Msg.MIXLY_MICROBIT_Direction,s=ge.Msg.MIXLY_ESP32_SENOR_GYRO;return i+{x:"x",y:"y",z:"z","(x,y,z)":ge.Msg.MIXLY_MICROBIT_Shiliang_Direction}[t]+n+s}))}},xg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS)}},bg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_GETTEMPERATUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_GETTEMPERATUE)}},Vg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_GET_COMPASS).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,"strength"],[ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"heading"]]),"compass"),this.setOutput(!0,Number),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("compass");return ge.Msg.MIXLY_MICROBIT_JS_GET_COMPASS+{strength:ge.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,heading:ge.Msg.MIXLY_MICROBIT_JS_BY_ANGLE}[t]}))}},Bg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_Reset_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_MICROBIT_Reset_COMPASS)}},Gg={init:function(){this.setColour(Kc),this.appendValueInput("SPISUB").appendField(ge.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(ge.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP+ge.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new ge.FieldDropdown([["RFID","RFID"],["WS-LoRa","Weather"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setFieldValue("RFID","key")}},Ug={init:function(){this.setColour(Kc),this.appendDummyInput().appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RFID_READ_CARD_UID,"id"],[ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"content"],[ge.Msg.MIXLY_ALL,"ALL"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},wg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RFID_READ_CARD_UID),this.setOutput(!0,Number),this.setInputsInline(!0)}},Hg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},kg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Wg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.appendDummyInput().appendField(ge.Msg.RETURN_SUCCESS_OR_NOT),this.setInputsInline(!0),this.setOutput(!0,Boolean)}},Kg={init:function(){this.setColour(Kc),this.appendDummyInput().appendField("RFID"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RFID_SCAN_OK,"0"],[ge.Msg.MIXLY_RFID_SCAN_NOTAGERR,"1"],[ge.Msg.MIXLY_RFID_SCAN_ERROR,"2"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Jg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_JS_GET).appendField(new ge.FieldDropdown([["全部(元组)","data()[0]"],["全部(json)","data()[1]"],["全部(json,附带位置信息)","data()[2]"],["编号","data()[0][0]"],["电量","data()[0][1]"],["风速","data()[0][2]"],["阵风","data()[0][3]"],["风向","data()[0][4]"],["雨量","data()[0][5]"],["温度","data()[0][6]"],["湿度","data()[0][7]"],["光照","data()[0][8]"],["紫外线","data()[0][9]"],["大气压","data()[0][10]"],["信号强度","data()[0][11]"],["信噪比","data()[0][12]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip("返回气象数据元组 data= (设备id,电池状态,风速m/s,阵风m/s,风向°,雨量mm,温度℃,湿度%,光照Lux,UVI,大气压Pa,信号强度dB,信噪比dB)")}},Qg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SERIAL_AVAILABLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},zg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendValueInput("BASE").appendField("以主题"),this.appendDummyInput("").appendField("串口发送至MixIO"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},qg={init:function(){this.setColour(Kc),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.itemCount_=2,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new ge.icons.MutatorIcon(["weather_set_label_item"],this)),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip()},mutationToDom:function(){var e=document.createElement("mutation");return e.setAttribute("items",this.itemCount_),e},domToMutation:function(e){this.itemCount_=parseInt(e.getAttribute("items"),10),this.updateShape_()},decompose:function(e){var t=e.newBlock("weather_set_label_container");t.initSvg();for(var i=t.getInput("STACK").connection,n=0;n>6),i.push(128|63&_)):(2048<=_&&_<=55295||57344<=_&&_<=65535)&&(n+=3,i.push(224|15&_>>12),i.push(128|63&_>>6),i.push(128|63&_))}for(s=0;s>8,255&n].concat(i)}(e,!0),i="",n=0;n=0?"0x700000":["mixgo_sant"].indexOf(n)>=0?"0xE00000":"0x3A0000","32x12 Matrix"==o?(t.definitions_.import_matrix32x12="import matrix32x12",i=s+" = matrix32x12.Matrix("+_+", font_address="+p+")\n"):"16x8 Matrix"==o&&(t.definitions_.import_matrix16x8="import matrix16x8",i=s+" = matrix16x8.Matrix("+_+")\n"),i},dv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},Iv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},Tv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},Mv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},hv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},mv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", speed="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+")\n"},Ev=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},Ov=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("OP")+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")\n"},Rv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},cv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".pixel(int("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+"), int("+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+"), "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"+i+".show()\n"},gv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".get_brightness()",t.ORDER_ATOMIC]},Cv=function(e,t){return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".set_brightness("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+")\n"},Sv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("image"),t.ORDER_ATOMIC]},Av=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".map_"+e.getFieldValue("OP")+"("+t.valueToCode(e,"A",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"B",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Lv=function(e,t){return[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".map_invert("+t.valueToCode(e,"A",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Nv=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC);return t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+" = ssd1306.SSD1306_I2C("+t.valueToCode(this,"row",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"column",t.ORDER_ATOMIC)+", "+i+")\n"},Dv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_str("+(t.valueToCode(this,"Text_line1",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line2",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line3",t.ORDER_ASSIGNMENT)||"''")+", "+(t.valueToCode(this,"Text_line4",t.ORDER_ASSIGNMENT)||"''")+")\n"},fv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_line("+t.valueToCode(this,"x1",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"y1",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"x2",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"y2",t.ORDER_ATOMIC)+", 1)\n"},Fv=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"width",t.ORDER_ATOMIC),o=t.valueToCode(this,"height",t.ORDER_ATOMIC),p="TRUE"==this.getFieldValue("fill")?"True":"False",a=this.getFieldValue("OP");switch(p){case"True":return i+".show_fill_rect("+n+", "+s+", "+_+", "+o+", "+a+")\n";case"False":return i+".show_rect("+n+", "+s+", "+_+", "+o+", "+a+")\n"}},Pv=function(e,t){t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"length",t.ORDER_ATOMIC);return i+".show_"+this.getFieldValue("direction")+"("+n+", "+s+", "+_+", 1)\n"},Yv=function(e,t){return["ON"==this.getFieldValue("ONOFF")?"1":"0",t.ORDER_ATOMIC]},vv=function(e,t){t.definitions_.import_matrix="import matrix";var i=e.getFieldValue("OP");return[t.valueToCode(e,"img",t.ORDER_ATOMIC)+".shift_"+i+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Xv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return t.definitions_.import_ssd1306="import ssd1306",t.definitions_.import_machine="import machine",i+".show_fill("+this.getFieldValue("key")+")\n"},yv=function(e,t){return["matrix.Image."+this.getFieldValue("ANIMATION"),t.ORDER_ATOMIC]},xv=function(e,t){var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var n=t.valueToCode(this,"x",t.ORDER_ATOMIC),s=t.valueToCode(this,"y",t.ORDER_ATOMIC),_=t.valueToCode(this,"r",t.ORDER_ATOMIC),o="TRUE"==this.getFieldValue("fill")?"True":"False",p=this.getFieldValue("OP");switch(o){case"True":return i+".show_fill_circle("+n+", "+s+", "+_+", "+p+")\n";case"False":return i+".show_circle("+n+", "+s+", "+_+", "+p+")\n"}},bv=function(e,t){var i=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306";var n=t.valueToCode(this,"x0",t.ORDER_ATOMIC),s=t.valueToCode(this,"y0",t.ORDER_ATOMIC),_=t.valueToCode(this,"x1",t.ORDER_ATOMIC),o=t.valueToCode(this,"y1",t.ORDER_ATOMIC),p=t.valueToCode(this,"x2",t.ORDER_ATOMIC),a=t.valueToCode(this,"y2",t.ORDER_ATOMIC),u="TRUE"==this.getFieldValue("fill")?"True":"False",r=this.getFieldValue("OP");switch(u){case"True":return i+".show_fill_triangle("+n+", "+s+", "+_+", "+o+", "+p+", "+a+", "+r+")\n";case"False":return i+".show_triangle("+n+", "+s+", "+_+", "+o+", "+p+", "+a+", "+r+")\n"}},Vv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_bitmap("+t.valueToCode(this,"START_X",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"START_Y",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"bitmap_name",t.ORDER_ATOMIC)+","+t.valueToCode(this,"WIDTH",t.ORDER_ATOMIC)+","+t.valueToCode(this,"HEIGHT",t.ORDER_ATOMIC)+")\n"},Bv=function(e,t){return t.definitions_.import_machine="import machine",t.definitions_.import_ssd1306="import ssd1306",t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".show_pixel("+t.valueToCode(this,"POS_X",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"POS_Y",t.ORDER_ATOMIC)+")\n"},Gv=function(e,t){var i,n=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),s=t.valueToCode(this,"CLK",t.ORDER_ATOMIC),_=t.valueToCode(this,"DIO",t.ORDER_ATOMIC),o=this.getFieldValue("key");return"TM1650"==o?(t.definitions_.import_tm1650="import tm1650",i=n+" = tm1650."+o+"(clk="+s+",dio="+_+")\n"):"TM1637"==o&&(t.definitions_.import_tm1637="import tm1637",i=n+" = tm1637."+o+"(clk="+s+",dio="+_+")\n"),i},Uv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+"."+this.getFieldValue("STAT")+"()\n"},wv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".shownum("+t.valueToCode(this,"VALUE",t.ORDER_ATOMIC)+")\n"},Hv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".showDP("+t.valueToCode(this,"NO",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"},kv=function(e,t){return t.valueToCode(this,"VAR",t.ORDER_ATOMIC)+".intensity("+t.valueToCode(this,"VALUE",t.ORDER_ATOMIC)+")\n"},Wv=function(e,t){t.definitions_.import_st7789="import st7789";var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n="";n=["mpython","mixgo_pe","mixgo_nova"].indexOf(i)>=0?"0x700000":["mixgo_sant"].indexOf(i)>=0?"0xE00000":"0x3A0000";var s=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),_=t.valueToCode(this,"SPISUB",t.ORDER_ATOMIC),o=t.valueToCode(this,"PINCS",t.ORDER_ATOMIC),p=t.valueToCode(this,"PINDC",t.ORDER_ATOMIC);return s+" = st7789.ST7789("+_+", "+t.valueToCode(this,"WIDTH",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"HEIGHT",t.ORDER_ATOMIC)+", dc_pin="+p+", cs_pin="+o+", rotation="+this.getFieldValue("rotate")+", font_address="+n+")\n"},Kv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".image("+n+", x="+s+", y="+_+", size="+o+", color="+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=i+".image("+n+", x= "+s+",y="+_+", size="+o+", color=0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},Jv=function(e,t){var i="0x"+this.getFieldValue("COLOR").slice(1);return["0x"+((16252928&i)>>8|(64512&i)>>5|(255&i)>>3).toString(16),t.ORDER_ATOMIC]},Qv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),u=this.getFieldValue("center");if("0x"==a.slice(0,2))var r=i+".shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+u+", color="+a+")\n";else{const e=a.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r=i+".shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+u+", color=0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+")\n"}return r},zv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p=i+".frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const e=o.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p=i+".frame("+n+", size="+s+", delay="+_+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},qv=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u=i+".scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color="+a+")\n";else{const e=a.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u=i+".scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},jv=function(e,t){return t.definitions_.import_st7789="import st7789",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".fill(st7789."+this.getFieldValue("key")+")\n"},$v=function(e,t){t.definitions_.import_st7789="import st7789";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"x1",t.ORDER_ATOMIC),s=t.valueToCode(this,"y1",t.ORDER_ATOMIC),_=t.valueToCode(this,"x2",t.ORDER_ATOMIC),o=t.valueToCode(this,"y2",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".line("+n+", "+s+", "+_+", "+o+", color="+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=i+".line("+n+", "+s+", "+_+", "+o+", color=0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},Zv=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC),s=this.getFieldValue("key"),_=t.valueToCode(this,"ADDR",t.ORDER_ATOMIC);return t.definitions_.import_i2clcd="import i2clcd",i+" = i2clcd.LCD("+n+", lcd_width="+s+", i2c_addr="+_+")\n"},eX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", column="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", line="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+",center = "+this.getFieldValue("center")+")\n"},tX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".print("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", column="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", line="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},iX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".backlight("+this.getFieldValue("key")+")\n"},nX=function(e,t){return t.definitions_.import_i2clcd="import i2clcd",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".clear()\n"},sX=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(this,"I2CSUB",t.ORDER_ATOMIC),s=t.valueToCode(this,"ADDR",t.ORDER_ATOMIC),_=this.getFieldValue("driver"),o=Ce.Boards.getSelectedBoardKey().split(":")[2],p="";return p=["mpython","mixgo_pe","mixgo_nova"].indexOf(o)>=0?"0x700000":["mixgo_sant"].indexOf(o)>=0?"0xE00000":"0x3A0000",t.definitions_.import_oled128x64="import oled128x64",i+" = oled128x64.OLED("+n+", address="+s+", font_address="+p+", types="+_+")\n"},_X=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".image("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},oX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".image("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", x="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+")\n"},pX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},aX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".shows("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", x="+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},uX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},rX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".frame("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", delay="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+")\n"},lX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"},dX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", y="+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+", size="+t.valueToCode(this,"size",t.ORDER_ASSIGNMENT)+", speed="+t.valueToCode(this,"time",t.ORDER_ASSIGNMENT)+", space="+t.valueToCode(this,"space",t.ORDER_ASSIGNMENT)+")\n"},IX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},TX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+"."+e.getFieldValue("OP")+"("+t.valueToCode(e,"val",t.ORDER_ATOMIC)+")\n"},MX=function(e,t){return t.definitions_.import_oled128x64="import oled128x64",[t.valueToCode(this,"SUB",t.ORDER_ATOMIC)+".pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},hX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".pixel(int("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+"), int("+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+"), "+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"+i+".show()\n"},mX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"w",t.ORDER_ATOMIC),o=t.valueToCode(e,"h",t.ORDER_ATOMIC),p=e.getFieldValue("state");return i+"."+e.getFieldValue("shape")+"("+n+", "+s+", "+_+", "+o+", "+p+")\n"+i+".show()\n"},EX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC),n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"length",t.ORDER_ATOMIC),o=e.getFieldValue("state");return i+"."+("0"==e.getFieldValue("dir_h_v")?"v":"h")+"line("+n+", "+s+", "+_+", "+o+")\n"+i+".show()\n"},OX=function(e,t){t.definitions_.import_oled128x64="import oled128x64";var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return i+".line("+t.valueToCode(e,"x1",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"y1",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"x2",t.ORDER_ATOMIC)+", "+t.valueToCode(e,"y2",t.ORDER_ATOMIC)+", "+e.getFieldValue("state")+")\n"+i+".show()\n"},RX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT);if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var s="onboard_tft.image("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", color=0xffff,sync="+(t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True")+")\n"}else if("educore"==i){t.definitions_["import_"+i+"_oled"]="from "+i+" import oled";s="oled.print("+n+")\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.shows("+n+")\n"}return s},cX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),_=this.getFieldValue("center");if("mixgo_sant"==i||"mixgo_nova"==i||"mixgo_soar"==i)return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.shows("+n+", space="+s+", center="+_+",sync="+(t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True")+")\n";if("educore"==i){t.definitions_["import_"+i+"_oled"]="from "+i+" import oled"}return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.shows("+n+", space="+s+", center="+_+")\n"},gX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var s="onboard_oled.frame("+n+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";s="onboard_tft.frame("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.frame("+n+")\n"}return s},CX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var _="onboard_oled.frame("+(n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT))+", delay="+s+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";_="onboard_tft.frame("+n+", size=5 , delay="+s+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";_="onboard_matrix.frame("+n+", delay="+s+")\n"}return _},SX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var n="onboard_oled.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";n="onboard_tft.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.scroll("+t.valueToCode(this,"data",t.ORDER_ASSIGNMENT)+")\n"}return n},AX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){t.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var o="onboard_oled.scroll("+n+", speed="+s+", space="+_+")\n"}else if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";o="onboard_tft.scroll("+n+", y=0, size=5, speed="+s+", space="+_+", color=0xffff)\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";o="onboard_matrix.scroll("+n+", speed="+s+", space="+_+")\n"}return o},LX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.scroll_way("+this.getFieldValue("way")+")\n"},NX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u="onboard_tft.scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color="+a+")\n";else{const e=a.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.scroll("+n+", y="+s+", size="+_+", speed="+o+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},DX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix",["onboard_matrix."+e.getFieldValue("image"),t.ORDER_ATOMIC]},fX=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){const i=e.getFieldValue("image").split(".");if(2!==i.length)throw Error("pin value error");t.definitions_[`import_${i[0]}_${i[1]}`]=`from ${i[0]} import ${i[1]}`;var n=i[1]}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix."+e.getFieldValue("image")}return[n,t.ORDER_ATOMIC]},FX=function(e,t){var i={"#000000":"0","#ff0000":"1"};function n(e){let t="";if(e.length%2==1&&(e="0"+e),e.length<8){let t=8-e.length;for(let i=1;i<=t;i++)e="0"+e}for(let i=1;i<=e.length;i++)i%2==0&&i!==e.length?t=t+e[i-1]+",0x":t+=e[i-1];return"0x"+t}let s=[];for(let t=0;t<12;t++){let _="",o=0,p=0;for(let n=0;n<32;n++)n<8?p=7-n:n<16?p=23-n:n<24?p=39-n:n<32&&(p=55-n),o+=Number(i[e.getFieldValue(t+"-"+n)])*Math.pow(2,31-p);_+=n(o.toString(16)),s.unshift(_)}let _=[];for(let e=0;e>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Ty=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.picture("+t.valueToCode(this,"x",t.ORDER_ASSIGNMENT)+","+t.valueToCode(this,"y",t.ORDER_ASSIGNMENT)+","+t.valueToCode(this,"direct",t.ORDER_ASSIGNMENT)+")\n"},My=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"space",t.ORDER_ASSIGNMENT),a=this.getFieldValue("center"),u=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True",r=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==r.slice(0,2))var l="onboard_tft.shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+a+", color="+r+",sync="+u+")\n";else{const e=r.match(/\d+/g);var d="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");l="onboard_tft.shows("+n+", x="+s+", y="+_+", size="+o+", space="+p+", center="+a+", color=0x"+((16252928&d)>>8|(64512&d)>>5|(255&d)>>3).toString(16)+",sync="+u+")\n"}return l},hy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"time",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==o.slice(0,2))var p="onboard_tft.frame("+n+", size="+s+", delay="+_+", color="+o+")\n";else{const e=o.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p="onboard_tft.frame("+n+", size="+s+", delay="+_+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},my=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"w",t.ORDER_ATOMIC),o=t.valueToCode(e,"h",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=e.getFieldValue("shape"),u=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var r="onboard_tft."+a+"("+n+", "+s+", "+_+", "+o+", "+p+",sync="+u+")\n";else{const e=p.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r="onboard_tft."+a+"("+n+", "+s+", "+_+", "+o+", 0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+",sync="+u+")\n"}return r},Ey=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"length",t.ORDER_ATOMIC),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),p=e.getFieldValue("dir_h_v"),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+_+", "+o+",sync="+a+")\n";else{const e=o.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+_+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Oy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x1",t.ORDER_ATOMIC),s=t.valueToCode(e,"y1",t.ORDER_ATOMIC),_=t.valueToCode(e,"x2",t.ORDER_ATOMIC),o=t.valueToCode(e,"y2",t.ORDER_ATOMIC),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.line("+n+", "+s+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.line("+n+", "+s+", "+_+", "+o+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Ry=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft",["onboard_tft.pixel(int("+t.valueToCode(e,"x",t.ORDER_ATOMIC)+"), int("+t.valueToCode(e,"y",t.ORDER_ATOMIC)+"))",t.ORDER_ATOMIC]},cy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),o=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==_.slice(0,2))var p="onboard_tft.pixel(int("+n+"), int("+s+"), "+_+",sync="+o+")\n";else{const e=_.match(/\d+/g);var a="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");p="onboard_tft.pixel(int("+n+"), int("+s+"), 0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+",sync="+o+")\n"}return p},gy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"VAR",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==n.slice(0,2))var _="onboard_tft.fill("+n+",sync="+s+")\n";else{const e=n.match(/\d+/g);var o="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");_="onboard_tft.fill(0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+",sync="+s+")\n"}return _},Cy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=o+"=Clock("+n+", "+s+", "+_+", "+p+")\n";else{const e=p.match(/\d+/g);var u="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");a=o+"=Clock("+n+", "+s+", "+_+", 0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},Sy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".set_rtctime()\n"},Ay=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".set_time("+t.valueToCode(this,"h",t.ORDER_ASSIGNMENT)+", "+t.valueToCode(this,"m",t.ORDER_ASSIGNMENT)+", "+t.valueToCode(this,"s",t.ORDER_ASSIGNMENT)+")\n"},Ly=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];return t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT)+".draw_clock()\n"},Ny=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=t.valueToCode(this,"SUB",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==s.slice(0,2))var _=n+".clear("+s+")\n";else{const e=s.match(/\d+/g);var o="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");_=n+".clear(0x"+((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)+")\n"}return _},Dy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(e,"x",t.ORDER_ATOMIC),s=t.valueToCode(e,"y",t.ORDER_ATOMIC),_=t.valueToCode(e,"r",t.ORDER_ATOMIC),o=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),p=e.getFieldValue("shape"),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var u="onboard_tft.ellipse("+n+", "+s+", "+_+", "+_+", "+o+", "+p+",sync="+a+")\n";else{const e=o.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.ellipse("+n+", "+s+", "+_+", "+_+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+", "+p+",sync="+a+")\n"}return u},fy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===Ce.JSFuncs.getPlatform()){t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n="onboard_tft.pointern(angle="+t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT)+")\n"}else{t.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.pointern(angle="+t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT)+")\n"}return n},Fy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"angle",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"VAR",t.ORDER_ATOMIC);if("0x"==s.slice(0,2));else{const e=s.match(/\d+/g);var _="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");((16252928&_)>>8|(64512&_)>>5|(255&_)>>3).toString(16)}return"onboard_tft.pointern(angle="+n+")\n"},Py=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.texts("+n+", x="+s+", y="+_+", size="+o+", color="+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var r="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");u="onboard_tft.texts("+n+", x="+s+", y="+_+", size="+o+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Yy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"direct",t.ORDER_ATOMIC);t.valueToCode(this,"boolean",t.ORDER_ATOMIC);return"onboard_tft.qrcode("+n+")\n"},vy=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];t.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=t.valueToCode(this,"data",t.ORDER_ASSIGNMENT),s=t.valueToCode(this,"x",t.ORDER_ASSIGNMENT),_=t.valueToCode(this,"y",t.ORDER_ASSIGNMENT),o=t.valueToCode(this,"size",t.ORDER_ASSIGNMENT),p=t.valueToCode(this,"VAR",t.ORDER_ATOMIC),a=t.valueToCode(this,"boolean",t.ORDER_ATOMIC)||"True",u=this.getFieldValue("correct");if("0x"==p.slice(0,2))var r="onboard_tft.qrcode("+n+",x="+s+",y="+_+",size="+o+",correct="+u+",color="+p+",sync="+a+")\n";else{const e=p.match(/\d+/g);var l="0x"+((parseInt(e[0])<<16)+(parseInt(e[1])<<8)+parseInt(e[2])).toString(16).padStart(4,"0");r="onboard_tft.qrcode("+n+",x="+s+",y="+_+",size="+o+",correct="+u+",color=0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+",sync="+a+")\n"}return r},Xy=RX,yy=BX,xy=xX,by=BX,Vy=GX,By=YX,Gy=function(e,t){var i=this.getFieldValue("path"),n=this.getFieldValue("module");return t.definitions_["import_"+i+"_"+n]="from "+i+" import "+n,""},Uy=function(e,t){var i=this.getFieldValue("module");return t.definitions_["import_"+i]="import "+i,""},wy=function(e,t){for(var i=this.getFieldValue("NAME"),n=new Array(this.itemCount_),s=0;s {\n"+t.statementToCode(this,"do")+"})\n"},lw=function(){return"control.reset()\n"},dw=function(e,t){return"control.waitMicros("+(t.valueToCode(this,"data",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+")\n"},Iw=function(e,t){return"control.raiseEvent("+(t.valueToCode(this,"system_event_bus_source",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+", "+(t.valueToCode(this,"system_event_bus_value",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+")\n"},Tw=function(e,t){return"control.onEvent("+(t.valueToCode(this,"system_event_bus_source",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+", "+(t.valueToCode(this,"system_event_bus_value",t.ORDER_ATOMIC)||Ce.Profile.default.serial)+", () => {\n"+t.statementToCode(this,"do")+")\n"},Mw=function(e,t){return["control.eventTimestamp()",t.ORDER_ATOMIC]},hw=function(e,t){return["control.eventValue()",t.ORDER_ATOMIC]},mw=function(e,t){return[this.getFieldValue("key"),t.ORDER_ATOMIC]},Ew=function(e,t){return[this.getFieldValue("key"),t.ORDER_ATOMIC]},Ow=function(e,t){return["control.deviceName()",t.ORDER_ATOMIC]},Rw=function(e,t){return["control.deviceSerialNumber()",t.ORDER_ATOMIC]},cw=function(e,t){return"panic("+(t.valueToCode(this,"STATUS_CODE",t.ORDER_ATOMIC)||"1000")+")\n"},gw=function(e,t){switch(t.definitions_.import_time="import time",this.getFieldValue("Time")){case"ms":return["time.ticks_ms()",t.ORDER_ATOMIC];case"us":return["time.ticks_us()",t.ORDER_ATOMIC]}},Cw=function(){return"while True:\n pass\n"},Sw=function(e,t){return t.definitions_.import_mixgo="import mixgo","reset()\n"},Aw=function(e,t){return t.definitions_.import_os="import os","os.uname()"},Lw=function(e,t){t.definitions_.import_time="import time";var i=t.valueToCode(this,"DELAY_TIME",t.ORDER_ATOMIC)||"1000";switch(this.getFieldValue("Time")){case"s":return"time.sleep("+i+")\n";case"ms":return"time.sleep_ms("+i+")\n";case"us":return"time.sleep_us("+i+")\n"}},Nw=function(e,t){t.definitions_.import_time="import time";var i=t.valueToCode(this,"DELAY_TIME",t.ORDER_ATOMIC)||"1000";switch(this.getFieldValue("Time")){case"s":return"time.sleep("+i+")\n";case"ms":return"time.sleep_ms("+i+")\n";case"us":return"time.sleep_us("+i+")\n"}},Dw=function(e,t){return t.definitions_.import_mixgo="import mixgo",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+".init(period="+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=Timer."+(t.valueToCode(this,"mode",t.ORDER_NONE)||"None")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},fw=function(e,t){return t.definitions_.import_machine="import machine",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+" = machine.Timer("+(t.valueToCode(this,"PIN",t.ORDER_NONE)||"None")+",period = "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},Fw=function(e,t){return t.definitions_.import_time="import time",["time.ticks_diff("+(t.valueToCode(this,"END",t.ORDER_NONE)||"0")+", "+(t.valueToCode(this,"START",t.ORDER_NONE)||"0")+")",t.ORDER_ATOMIC]},Pw=function(e,t){var i=t.valueToCode(this,"SUB",t.ORDER_ATOMIC);return t.definitions_.import_machine="import machine",i+" = machine.Timer(0)\n"},Yw=function(e,t){return t.definitions_.import_machine="import machine",(t.valueToCode(this,"VAR",t.ORDER_NONE)||"None")+".init(period = "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(t.valueToCode(this,"callback",t.ORDER_NONE)||"None")+")\n"},vw=function(e,t){return t.definitions_.import_machine="import machine","wdt = machine.WDT(timeout= "+(t.valueToCode(this,"period",t.ORDER_NONE)||"0")+")\n"},Xw=function(e,t){t.definitions_.import_machine="import machine";return"wdt.feed()\n"},yw=function(e,t){t.definitions_.import_machine="import machine";return"machine.reset()\n"},xw=function(e,t){t.definitions_.import_bitbot_onboard_bot51="from bitbot import onboard_bot51";return"onboard_bot51.shutdown()\n"},bw=Pw,Vw=Yw,Bw=Fw,Gw=Lw,Uw=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},ww=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"day",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},Hw=function(e,t){return t.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api.weather_hourly("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"hour",t.ORDER_ATOMIC)+")",t.ORDER_ATOMIC]},kw=function(e,t){return t.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+")\n"},Ww=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Weather_now.analysis()";else n='Weather_now.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},Kw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Air_now.analysis()";else n='Air_now.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},Jw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Weather_alarm.analysis()";else n='Weather_alarm.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},Qw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Life_suggestion.analysis()";else n='Life_suggestion.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},zw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Tide_daily.analysis()";else n='Tide_daily.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},qw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content");if("none"==i)var n="Location_search.analysis()";else n='Location_search.analysis("'+i+'")';return[n,t.ORDER_ATOMIC]},jw=function(e,t){return t.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+t.valueToCode(this,"key",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"addr",t.ORDER_ATOMIC)+", "+t.valueToCode(this,"day",t.ORDER_ATOMIC)+")\n"},$w=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Weather_daily.analysis("+n+")";else s="Weather_daily.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},Zw=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Air_daily.analysis("+n+")";else s="Air_daily.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},eH=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Geo_sun.analysis("+n+")";else s="Geo_sun.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},tH=function(e,t){t.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=t.valueToCode(this,"day",t.ORDER_ATOMIC);if("none"==i)var s="Geo_moon.analysis("+n+")";else s="Geo_moon.analysis("+n+', "'+i+'")';return[s,t.ORDER_ATOMIC]},iH='
\r\n
{{-d.title}}
\r\n
\r\n {{# if (d.message) { }}\r\n

\r\n {{-d.message}}\r\n

\r\n {{# } }}\r\n
\r\n
',{XML:nH}=Ce,sH=nH.render(iH,{title:"烧录速度",message:"要选择烧录速度,请更改“Burn Speed”,此值将用于向设备烧录代码。如果在用较高的烧录速度时出现问题,请尝试减小此值,这可能是由于外部串行到USB芯片的限制。"}),{XML:_H}=Ce,oH=_H.render(iH,{title:"燒錄速度",message:"要選擇燒錄速度,請更改“Burn Speed”,此值將用於向設備燒錄程式碼。如果在用較高的燒錄速度時出現問題,請嘗試减小此值,這可能是由於外部串列到USB晶片的限制。"}),{XML:pH}=Ce,aH=pH.render(iH,{title:"Burn Speed",message:"To select the flashing speed, change the Burn Speed. This value will be used for flashing the code to the device. If you have issues while flashing the device at high speed, try to decrease this value. This could be due to the external serial-to-USB chip limitations."}),uH=new ge.Generator("Python");uH.INDENT=" ",uH.addReservedWords("False,None,True,and,as,assert,break,class,continue,def,del,elif,else,except,exec,finally,for,from,global,if,import,in,is,lambda,nonlocal,not,or,pass,print,raise,return,try,while,with,yield,NotImplemented,Ellipsis,__debug__,quit,exit,copyright,license,credits,ArithmeticError,AssertionError,AttributeError,BaseException,BlockingIOError,BrokenPipeError,BufferError,BytesWarning,ChildProcessError,ConnectionAbortedError,ConnectionError,ConnectionRefusedError,ConnectionResetError,DeprecationWarning,EOFError,Ellipsis,EnvironmentError,Exception,FileExistsError,FileNotFoundError,FloatingPointError,FutureWarning,GeneratorExit,IOError,ImportError,ImportWarning,IndentationError,IndexError,InterruptedError,IsADirectoryError,KeyError,KeyboardInterrupt,LookupError,MemoryError,ModuleNotFoundError,NameError,NotADirectoryError,NotImplemented,NotImplementedError,OSError,OverflowError,PendingDeprecationWarning,PermissionError,ProcessLookupError,RecursionError,ReferenceError,ResourceWarning,RuntimeError,RuntimeWarning,StandardError,StopAsyncIteration,StopIteration,SyntaxError,SyntaxWarning,SystemError,SystemExit,TabError,TimeoutError,TypeError,UnboundLocalError,UnicodeDecodeError,UnicodeEncodeError,UnicodeError,UnicodeTranslateError,UnicodeWarning,UserWarning,ValueError,Warning,ZeroDivisionError,_,__build_class__,__debug__,__doc__,__import__,__loader__,__name__,__package__,__spec__,abs,all,any,apply,ascii,basestring,bin,bool,buffer,bytearray,bytes,callable,chr,classmethod,cmp,coerce,compile,complex,copyright,credits,delattr,dict,dir,divmod,enumerate,eval,exec,execfile,exit,file,filter,float,format,frozenset,getattr,globals,hasattr,hash,help,hex,id,input,int,intern,isinstance,issubclass,iter,len,license,list,locals,long,map,max,memoryview,min,next,object,oct,open,ord,pow,print,property,quit,range,raw_input,reduce,reload,repr,reversed,round,set,setattr,slice,sorted,staticmethod,str,sum,super,tuple,type,unichr,unicode,vars,xrange,zip"),uH.ORDER_ATOMIC=0,uH.ORDER_COLLECTION=1,uH.ORDER_STRING_CONVERSION=1,uH.ORDER_UNARY_POSTFIX=1,uH.ORDER_UNARY_PREFIX=2,uH.ORDER_MEMBER=2.1,uH.ORDER_FUNCTION_CALL=2.2,uH.ORDER_EXPONENTIATION=3,uH.ORDER_UNARY_SIGN=4,uH.ORDER_BITWISE_NOT=4,uH.ORDER_MULTIPLICATIVE=5,uH.ORDER_ADDITIVE=6,uH.ORDER_BITWISE_SHIFT=7,uH.ORDER_BITWISE_AND=8,uH.ORDER_BITWISE_XOR=9,uH.ORDER_BITWISE_OR=10,uH.ORDER_RELATIONAL=11,uH.ORDER_EQUALITY=11,uH.ORDER_LOGICAL_NOT=12,uH.ORDER_LOGICAL_AND=13,uH.ORDER_LOGICAL_OR=14,uH.ORDER_ASSIGNMENT=14,uH.ORDER_CONDITIONAL=15,uH.ORDER_LAMBDA=16,uH.ORDER_NONE=99,uH.ORDER_OVERRIDES=[[uH.ORDER_FUNCTION_CALL,uH.ORDER_MEMBER],[uH.ORDER_FUNCTION_CALL,uH.ORDER_FUNCTION_CALL],[uH.ORDER_MEMBER,uH.ORDER_MEMBER],[uH.ORDER_MEMBER,uH.ORDER_FUNCTION_CALL]],uH.init=function(){uH.PASS=this.INDENT+"pass\n",uH.definitions_=Object.create(null),uH.functionNames_=Object.create(null),uH.setups_=Object.create(null),uH.loops_=Object.create(null),uH.codeEnd_=Object.create(null),uH.variableDB_?uH.variableDB_.reset():uH.variableDB_=new Ne(uH.RESERVED_WORDS_)},uH.finish=function(e){""!==e&&(e=(e=e.replace(/\n/g,"\n")).replace(/\n\s+$/,"\n"));var t=[],i=[],n=[];for(var s in this.definitions_){var _=this.definitions_[s];0===s.indexOf("import")?t.push(_):0===s.indexOf("var_declare")?i.push(_):n.push(_)}t.length&&t.push("\n"),i.length&&i.push("\n"),n.length&&n.push("\n");var o=[];for(var s in uH.functions_)o.push(uH.functions_[s]);o.length&&o.push("\n");var p=[];for(var s in uH.setups_)p.push(uH.setups_[s]);p.length&&p.push("\n");var a=[];for(var s in uH.loops_)a.push(uH.loops_[s]);var u=[];for(var s in uH.codeEnd_)u.push(uH.codeEnd_[s]);0!==u.length&&u.push("\n");let r="";return r=a.length>0?t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+"while True:\n"+a.join("")+u.join("\n"):t.join("\n")+i.join("\n")+n.join("\n")+o.join("\n")+p.join("")+e+u.join("\n"),r},uH.scrubNakedValue=function(e){return e+"\n"},uH.quote_=function(e){var t="'";return-1!==(e=e.replace(/\\/g,"\\\\").replace(/\n/g,"\\\n")).indexOf("'")&&(-1===e.indexOf('"')?t='"':e=e.replace(/'/g,"\\'")),t+e+t},uH.multiline_quote_=function(e){return"'''"+(e=e.replace(/'''/g,"\\'\\'\\'"))+"'''"},uH.scrub_=function(e,t,i){var n="";if(!e.outputConnection||!e.outputConnection.targetConnection){(_=e.getCommentText())&&(_=ge.utils.string.wrap(_,uH.COMMENT_WRAP-3),n+=uH.prefixLines(_+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const rH={};rH["元控青春"]={description:"MicroPython[ESP32C3 MixGo CE]",digital_pin:Ce.Profile.generate(["0-18","21","33-48"]),input_pin:Ce.Profile.generate(["0-18","21","33-48"]),output_pin:Ce.Profile.generate(["0-18","21","33-48"]),pwm_input:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_input:Ce.Profile.generate(["1-18"],"adc","adc"),pwm_output:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_output:Ce.Profile.generate(["1-18"],"adc","adc"),espnow_channel:Ce.Profile.generate(["1-13"]),haskylens_model:Ce.Profile.generate(["0-4"]),digital:Ce.Profile.generate(["0-18","21","33-48"],"pin","pin"),pwm_pin:Ce.Profile.generate(["0-18","21","33-48"]),pwm:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_pin:Ce.Profile.generate(["1-18"]),analog:Ce.Profile.generate(["1-18"],"adc","adc"),touch:Ce.Profile.generate(["1-14"],"tc","tc"),touch_pin:Ce.Profile.generate(["1-14"]),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:Ce.Profile.generate(["0-4"]),exlcdh:Ce.Profile.generate(["0-15"]),exlcdv:Ce.Profile.generate(["0-7"]),brightness:Ce.Profile.generate(["0-9"]),tts_voice:Ce.Profile.generate(["0-16"]),tts_builtin_music:Ce.Profile.generate(["0-47"]),tts_bgmusic:Ce.Profile.generate(["0-15"]),builtinimg:[["Heart","expression_picture.Heart"],["Angry","expression_picture.Angry"],["Bored","expression_picture.Bored"],["Confused","expression_picture.Confused"],["Happy","expression_picture.Happy"],["Paper","expression_picture.Paper"],["Rock","expression_picture.Rock"],["Sad","expression_picture.Sad"],["Scissors","expression_picture.Scissors"],["Silly","expression_picture.Silly"],["Sleep","expression_picture.Sleep"],["Small_heart","expression_picture.Small_heart"],["Small_paper","expression_picture.Small_paper"],["Small_rock","expression_picture.Small_rock"],["Small_scissors","expression_picture.Small_scissors"],["Smile","expression_picture.Smile"],["Surprise","expression_picture.Surprise"],["Wonderful","expression_picture.Wonderful"],["Eyes_Angry","eye_picture.Eyes_Angry"],["Awake","eye_picture.Awake"],["Black_eye","eye_picture.Black_eye"],["Bottom_left","eye_picture.Bottom_left"],["Bottom_right","eye_picture.Bottom_right"],["Crazy_1","eye_picture.Crazy_1"],["Crazy_2","eye_picture.Crazy_2"],["Disappointed","eye_picture.Disappointed"],["Dizzy","eye_picture.Dizzy"],["Down","eye_picture.Down"],["Evil","eye_picture.Evil"],["Hurt","eye_picture.Hurt"],["Knocked_out","eye_picture.Knocked_out"],["Love","eye_picture.Love"],["Middle_left","eye_picture.Middle_left"],["Middle_right","eye_picture.Middle_right"],["Neutral","eye_picture.Neutral"],["Nuclear","eye_picture.Nuclear"],["Pinch_left","eye_picture.Pinch_left"],["Pinch_middle","eye_picture.Pinch_middle"],["Pinch_right","eye_picture.Pinch_right"],["Tear","eye_picture.Tear"],["Tired_left","eye_picture.Tired_left"],["Tired_middle","eye_picture.Tired_middle"],["Tired_right","eye_picture.Tired_right"],["Toxic","eye_picture.Toxic"],["Up","eye_picture.Up"],["Winking","eye_picture.Winking"],["Accept","informatio_picture.Accept"],["Backward","informatio_picture.Backward"],["Decline","informatio_picture.Decline"],["Forward","informatio_picture.Forward"],["Left","informatio_picture.Left"],["No_go","informatio_picture.No_go"],["Question_mark","informatio_picture.Question_mark"],["Right","informatio_picture.Right"],["Stop_1","informatio_picture.Stop_1"],["Stop_2","informatio_picture.Stop_2"],["Thumbs_down","informatio_picture.Thumbs_down"],["Thumbs_up","informatio_picture.Thumbs_up"],["Warning","informatio_picture.Warning"],["Bomb","object_picture.Bomb"],["Boom","object_picture.Boom"],["DOOR_CLOSE","object_picture.DOOR_CLOSE"],["DOOR_OPEN","object_picture.DOOR_OPEN"],["DOOR_OPENING","object_picture.DOOR_OPENING"],["Fire","object_picture.Fire"],["Flowers","object_picture.Flowers"],["Forest","object_picture.Forest"],["Lightning","object_picture.Lightning"],["Light_off","object_picture.Light_off"],["Light_on","object_picture.Light_on"],["Night","object_picture.Night"],["Pirate","object_picture.Pirate"],["Snow","object_picture.Snow"],["Target","object_picture.Target"],["Bar_0","progres_picture.Bar_0"],["Bar_1","progres_picture.Bar_1"],["Bar_2","progres_picture.Bar_2"],["Bar_3","progres_picture.Bar_3"],["Bar_4","progres_picture.Bar_4"],["Dial_0","progres_picture.Dial_0"],["Dial_1","progres_picture.Dial_1"],["Dial_2","progres_picture.Dial_2"],["Dial_3","progres_picture.Dial_3"],["Dial_4","progres_picture.Dial_4"],["Dots_0","progres_picture.Dots_0"],["Dots_1","progres_picture.Dots_1"],["Dots_2","progres_picture.Dots_2"],["Dots_3","progres_picture.Dots_3"],["Hourglass_0","progres_picture.Hourglass_0"],["Hourglass_1","progres_picture.Hourglass_1"],["Hourglass_2","progres_picture.Hourglass_2"],["Timer_0","progres_picture.Timer_0"],["Timer_1","progres_picture.Timer_1"],["Timer_2","progres_picture.Timer_2"],["Timer_3","progres_picture.Timer_3"],["Timer_4","progres_picture.Timer_4"],["Water_level_0","progres_picture.Water_level_0"],["Water_level_1","progres_picture.Water_level_1"],["Water_level_2","progres_picture.Water_level_2"],["Water_level_3","progres_picture.Water_level_3"],["YES","informatio_picture.YES"],["NO","informatio_picture.NO"]],builtinimg_extern:[["HEART","matrix32x12.Matrix.HEART"],["HEART_SMALL","matrix32x12.Matrix.HEART_SMALL"],["HAPPY","matrix32x12.Matrix.HAPPY"],["SAD","matrix32x12.Matrix.SAD"],["SMILE","matrix32x12.Matrix.SMILE"],["SILLY","matrix32x12.Matrix.SILLY"],["FABULOUS","matrix32x12.Matrix.FABULOUS"],["SURPRISED","matrix32x12.Matrix.SURPRISED"],["ASLEEP","matrix32x12.Matrix.ASLEEP"],["ANGRY","matrix32x12.Matrix.ANGRY"],["CONFUSED","matrix32x12.Matrix.CONFUSED"],["NO","matrix32x12.Matrix.NO"],["YES","matrix32x12.Matrix.YES"],["LEFT_ARROW","matrix32x12.Matrix.LEFT_ARROW"],["RIGHT_ARROW","matrix32x12.Matrix.RIGHT_ARROW"],["DRESS","matrix32x12.Matrix.DRESS"],["TRANSFORMERS","matrix32x12.Matrix.TRANSFORMERS"],["SCISSORS","matrix32x12.Matrix.SCISSORS"],["EXIT","matrix32x12.Matrix.EXIT"],["TREE","matrix32x12.Matrix.TREE"],["PACMAN","matrix32x12.Matrix.PACMAN"],["TARGET","matrix32x12.Matrix.TARGET"],["TSHIRT","matrix32x12.Matrix.TSHIRT"],["ROLLERSKATE","matrix32x12.Matrix.ROLLERSKATE"],["DUCK","matrix32x12.Matrix.DUCK"],["HOUSE","matrix32x12.Matrix.HOUSE"],["TORTOISE","matrix32x12.Matrix.TORTOISE"],["BUTTERFLY","matrix32x12.Matrix.BUTTERFLY"],["STICKFIGURE","matrix32x12.Matrix.STICKFIGURE"],["GHOST","matrix32x12.Matrix.GHOST"],["PITCHFORK","matrix32x12.Matrix.PITCHFORK"],["onboard_music_QUAVERS","matrix32x12.Matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","matrix32x12.Matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","matrix32x12.Matrix.onboard_music_CROTCHET"],["COW","matrix32x12.Matrix.COW"],["RABBIT","matrix32x12.Matrix.RABBIT"],["SQUARE_SMALL","matrix32x12.Matrix.SQUARE_SMALL"],["SQUARE","matrix32x12.Matrix.SQUARE"],["DIAMOND_SMALL","matrix32x12.Matrix.DIAMOND_SMALL"],["DIAMOND","matrix32x12.Matrix.DIAMOND"],["CHESSBOARD","matrix32x12.Matrix.CHESSBOARD"],["TRIANGLE_LEFT","matrix32x12.Matrix.TRIANGLE_LEFT"],["TRIANGLE","matrix32x12.Matrix.TRIANGLE"],["SNAKE","matrix32x12.Matrix.SNAKE"],["UMBRELLA","matrix32x12.Matrix.UMBRELLA"],["SKULL","matrix32x12.Matrix.SKULL"],["GIRAFFE","matrix32x12.Matrix.GIRAFFE"],["SWORD","matrix32x12.Matrix.SWORD"]],imglist:[["ALL_CLOCKS","matrix.Image.ALL_CLOCKS"],["ALL_ARROWS","matrix.Image.ALL_ARROWS"]],playlist:[["DADADADUM","spk_midi.DADADADUM"],["ENTERTAINER","spk_midi.ENTERTAINER"],["PRELUDE","spk_midi.PRELUDE"],["ODE","spk_midi.ODE"],["NYAN","spk_midi.NYAN"],["RINGTONE","spk_midi.RINGTONE"],["FUNK","spk_midi.FUNK"],["BLUES","spk_midi.BLUES"],["BIRTHDAY","spk_midi.BIRTHDAY"],["WEDDING","spk_midi.WEDDING"],["FUNERAL","spk_midi.FUNERAL"],["PUNCHLINE","spk_midi.PUNCHLINE"],["PYTHON","spk_midi.PYTHON"],["BADDY","spk_midi.BADDY"],["CHASE","spk_midi.CHASE"],["BA_DING","spk_midi.BA_DING"],["WAWAWAWAA","spk_midi.WAWAWAWAA"],["JUMP_UP","spk_midi.JUMP_UP"],["JUMP_DOWN","spk_midi.JUMP_DOWN"],["POWER_UP","spk_midi.POWER_UP"],["POWER_DOWN","spk_midi.POWER_DOWN"]],playlist_extern:[["DADADADUM","DADADADUM"],["ENTERTAINER","ENTERTAINER"],["PRELUDE","PRELUDE"],["ODE","ODE"],["NYAN","NYAN"],["RINGTONE","RINGTONE"],["FUNK","FUNK"],["BLUES","BLUES"],["BIRTHDAY","BIRTHDAY"],["WEDDING","WEDDING"],["FUNERAL","FUNERAL"],["PUNCHLINE","PUNCHLINE"],["PYTHON","PYTHON"],["BADDY","BADDY"],["CHASE","CHASE"],["BA_DING","BA_DING"],["WAWAWAWAA","WAWAWAWAA"],["JUMP_UP","JUMP_UP"],["JUMP_DOWN","JUMP_DOWN"],["POWER_UP","POWER_UP"],["POWER_DOWN","POWER_DOWN"]],tone_notes:[["NOTE_C3","131"],["NOTE_D3","147"],["NOTE_E3","165"],["NOTE_F3","175"],["NOTE_G3","196"],["NOTE_A3","220"],["NOTE_B3","247"],["NOTE_C4","262"],["NOTE_D4","294"],["NOTE_E4","330"],["NOTE_F4","349"],["NOTE_G4","392"],["NOTE_A4","440"],["NOTE_B4","494"],["NOTE_C5","523"],["NOTE_D5","587"],["NOTE_E5","659"],["NOTE_F5","698"],["NOTE_G5","784"],["NOTE_A5","880"],["NOTE_B5","988"]],serial_pin:[["pin0","0"],["pin1","1"],["pin2","2"],["pin8","8"],["pin12","12"],["pin13","13"],["pin14","14"],["pin15","15"],["pin16","16"]],radio_power:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],radio_datarate:[["1Mbit","RATE_1MBIT"],["250Kbit","RATE_250KBIT"],["2Mbit","RATE_2MBIT"]],one_more:[["ONE_SHOT","ONE_SHOT"],["PERIODIC","PERIODIC"]],digital_dot:[["0","0"],["1","1"],["2","2"]]},rH["元控自强"]={description:"MicroPython[ESP32C3 MixGo CE]",digital_pin:Ce.Profile.generate(["0-18","21","33-48"]),input_pin:Ce.Profile.generate(["0-18","21","33-48"]),output_pin:Ce.Profile.generate(["0-18","21","33-48"]),pwm_input:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_input:Ce.Profile.generate(["1-18"],"adc","adc"),pwm_output:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_output:Ce.Profile.generate(["1-18"],"adc","adc"),espnow_channel:Ce.Profile.generate(["1-13"]),haskylens_model:Ce.Profile.generate(["0-4"]),digital:Ce.Profile.generate(["0-18","21","33-48"],"pin","pin"),pwm_pin:Ce.Profile.generate(["0-18","21","33-48"]),pwm:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_pin:Ce.Profile.generate(["1-20"]),analog:Ce.Profile.generate(["1-18"],"adc","adc"),touch:Ce.Profile.generate(["1-14"],"tc","tc"),touch_pin:Ce.Profile.generate(["1-14"]),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:Ce.Profile.generate(["0-4"]),exlcdh:Ce.Profile.generate(["0-15"]),exlcdv:Ce.Profile.generate(["0-7"]),brightness:Ce.Profile.generate(["0-9"]),tts_voice:Ce.Profile.generate(["0-16"]),tts_builtin_music:Ce.Profile.generate(["0-47"]),tts_bgmusic:Ce.Profile.generate(["0-15"]),builtinimg:rH["元控青春"].builtinimg,builtinimg_extern:[["HEART","matrix32x12.Matrix.HEART"],["HEART_SMALL","matrix32x12.Matrix.HEART_SMALL"],["HAPPY","matrix32x12.Matrix.HAPPY"],["SAD","matrix32x12.Matrix.SAD"],["SMILE","matrix32x12.Matrix.SMILE"],["SILLY","matrix32x12.Matrix.SILLY"],["FABULOUS","matrix32x12.Matrix.FABULOUS"],["SURPRISED","matrix32x12.Matrix.SURPRISED"],["ASLEEP","matrix32x12.Matrix.ASLEEP"],["ANGRY","matrix32x12.Matrix.ANGRY"],["CONFUSED","matrix32x12.Matrix.CONFUSED"],["NO","matrix32x12.Matrix.NO"],["YES","matrix32x12.Matrix.YES"],["LEFT_ARROW","matrix32x12.Matrix.LEFT_ARROW"],["RIGHT_ARROW","matrix32x12.Matrix.RIGHT_ARROW"],["DRESS","matrix32x12.Matrix.DRESS"],["TRANSFORMERS","matrix32x12.Matrix.TRANSFORMERS"],["SCISSORS","matrix32x12.Matrix.SCISSORS"],["EXIT","matrix32x12.Matrix.EXIT"],["TREE","matrix32x12.Matrix.TREE"],["PACMAN","matrix32x12.Matrix.PACMAN"],["TARGET","matrix32x12.Matrix.TARGET"],["TSHIRT","matrix32x12.Matrix.TSHIRT"],["ROLLERSKATE","matrix32x12.Matrix.ROLLERSKATE"],["DUCK","matrix32x12.Matrix.DUCK"],["HOUSE","matrix32x12.Matrix.HOUSE"],["TORTOISE","matrix32x12.Matrix.TORTOISE"],["BUTTERFLY","matrix32x12.Matrix.BUTTERFLY"],["STICKFIGURE","matrix32x12.Matrix.STICKFIGURE"],["GHOST","matrix32x12.Matrix.GHOST"],["PITCHFORK","matrix32x12.Matrix.PITCHFORK"],["onboard_music_QUAVERS","matrix32x12.Matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","matrix32x12.Matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","matrix32x12.Matrix.onboard_music_CROTCHET"],["COW","matrix32x12.Matrix.COW"],["RABBIT","matrix32x12.Matrix.RABBIT"],["SQUARE_SMALL","matrix32x12.Matrix.SQUARE_SMALL"],["SQUARE","matrix32x12.Matrix.SQUARE"],["DIAMOND_SMALL","matrix32x12.Matrix.DIAMOND_SMALL"],["DIAMOND","matrix32x12.Matrix.DIAMOND"],["CHESSBOARD","matrix32x12.Matrix.CHESSBOARD"],["TRIANGLE_LEFT","matrix32x12.Matrix.TRIANGLE_LEFT"],["TRIANGLE","matrix32x12.Matrix.TRIANGLE"],["SNAKE","matrix32x12.Matrix.SNAKE"],["UMBRELLA","matrix32x12.Matrix.UMBRELLA"],["SKULL","matrix32x12.Matrix.SKULL"],["GIRAFFE","matrix32x12.Matrix.GIRAFFE"],["SWORD","matrix32x12.Matrix.SWORD"]],imglist:[["ALL_CLOCKS","matrix.Image.ALL_CLOCKS"],["ALL_ARROWS","matrix.Image.ALL_ARROWS"]],playlist:[["DADADADUM","onboard_music.DADADADUM"],["ENTERTAINER","onboard_music.ENTERTAINER"],["PRELUDE","onboard_music.PRELUDE"],["ODE","onboard_music.ODE"],["NYAN","onboard_music.NYAN"],["RINGTONE","onboard_music.RINGTONE"],["FUNK","onboard_music.FUNK"],["BLUES","onboard_music.BLUES"],["BIRTHDAY","onboard_music.BIRTHDAY"],["WEDDING","onboard_music.WEDDING"],["FUNERAL","onboard_music.FUNERAL"],["PUNCHLINE","onboard_music.PUNCHLINE"],["PYTHON","onboard_music.PYTHON"],["BADDY","onboard_music.BADDY"],["CHASE","onboard_music.CHASE"],["BA_DING","onboard_music.BA_DING"],["WAWAWAWAA","onboard_music.WAWAWAWAA"],["JUMP_UP","onboard_music.JUMP_UP"],["JUMP_DOWN","onboard_music.JUMP_DOWN"],["POWER_UP","onboard_music.POWER_UP"],["POWER_DOWN","onboard_music.POWER_DOWN"]],playlist_extern:[["DADADADUM","DADADADUM"],["ENTERTAINER","ENTERTAINER"],["PRELUDE","PRELUDE"],["ODE","ODE"],["NYAN","NYAN"],["RINGTONE","RINGTONE"],["FUNK","FUNK"],["BLUES","BLUES"],["BIRTHDAY","BIRTHDAY"],["WEDDING","WEDDING"],["FUNERAL","FUNERAL"],["PUNCHLINE","PUNCHLINE"],["PYTHON","PYTHON"],["BADDY","BADDY"],["CHASE","CHASE"],["BA_DING","BA_DING"],["WAWAWAWAA","WAWAWAWAA"],["JUMP_UP","JUMP_UP"],["JUMP_DOWN","JUMP_DOWN"],["POWER_UP","POWER_UP"],["POWER_DOWN","POWER_DOWN"]],tone_notes:[["NOTE_C3","131"],["NOTE_D3","147"],["NOTE_E3","165"],["NOTE_F3","175"],["NOTE_G3","196"],["NOTE_A3","220"],["NOTE_B3","247"],["NOTE_C4","262"],["NOTE_D4","294"],["NOTE_E4","330"],["NOTE_F4","349"],["NOTE_G4","392"],["NOTE_A4","440"],["NOTE_B4","494"],["NOTE_C5","523"],["NOTE_D5","587"],["NOTE_E5","659"],["NOTE_F5","698"],["NOTE_G5","784"],["NOTE_A5","880"],["NOTE_B5","988"]],serial_pin:[["pin0","0"],["pin1","1"],["pin2","2"],["pin8","8"],["pin12","12"],["pin13","13"],["pin14","14"],["pin15","15"],["pin16","16"]],radio_power:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],radio_datarate:[["1Mbit","RATE_1MBIT"],["250Kbit","RATE_250KBIT"],["2Mbit","RATE_2MBIT"]],one_more:[["ONE_SHOT","ONE_SHOT"],["PERIODIC","PERIODIC"]],digital_dot:[["0","0"],["1","1"],["2","2"]]},rH["ESP32S2 Generic"]={description:"MicroPython[ESP32C3 MixGo CC]",digital_pin:Ce.Profile.generate(["0-18","21","33-48"]),input_pin:Ce.Profile.generate(["0-18","21","33-48"]),output_pin:Ce.Profile.generate(["0-18","21","33-48"]),pwm_input:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_input:Ce.Profile.generate(["1-18"],"adc","adc"),pwm_output:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_output:Ce.Profile.generate(["1-18"],"adc","adc"),espnow_channel:Ce.Profile.generate(["1-13"]),haskylens_model:Ce.Profile.generate(["0-4"]),digital:Ce.Profile.generate(["0-18","21","33-48"],"pin","pin"),pwm_pin:Ce.Profile.generate(["0-18","21","33-48"]),pwm:Ce.Profile.generate(["0-18","21","33-48"],"pwm","pwm"),analog_pin:Ce.Profile.generate(["1-18"]),analog:Ce.Profile.generate(["1-18"],"adc","adc"),touch:Ce.Profile.generate(["1-14"],"tc","tc"),touch_pin:Ce.Profile.generate(["1-14"]),button:[["B1","B1key"],["B2","B2key"],["A1","A1key"],["A2","A2key"],["A3","A3key"],["A4","A4key"]],buttonB:[["B1","B1key"],["B2","B2key"]],axis:Ce.Profile.generate(["0-4"]),exlcdh:Ce.Profile.generate(["0-15"]),exlcdv:Ce.Profile.generate(["0-7"]),brightness:Ce.Profile.generate(["0-9"]),tts_voice:Ce.Profile.generate(["0-16"]),tts_builtin_music:Ce.Profile.generate(["0-47"]),tts_bgmusic:Ce.Profile.generate(["0-15"]),builtinimg:rH["元控青春"].builtinimg,builtinimg_extern:[["HEART","matrix32x12.Matrix.HEART"],["HEART_SMALL","matrix32x12.Matrix.HEART_SMALL"],["HAPPY","matrix32x12.Matrix.HAPPY"],["SAD","matrix32x12.Matrix.SAD"],["SMILE","matrix32x12.Matrix.SMILE"],["SILLY","matrix32x12.Matrix.SILLY"],["FABULOUS","matrix32x12.Matrix.FABULOUS"],["SURPRISED","matrix32x12.Matrix.SURPRISED"],["ASLEEP","matrix32x12.Matrix.ASLEEP"],["ANGRY","matrix32x12.Matrix.ANGRY"],["CONFUSED","matrix32x12.Matrix.CONFUSED"],["NO","matrix32x12.Matrix.NO"],["YES","matrix32x12.Matrix.YES"],["LEFT_ARROW","matrix32x12.Matrix.LEFT_ARROW"],["RIGHT_ARROW","matrix32x12.Matrix.RIGHT_ARROW"],["DRESS","matrix32x12.Matrix.DRESS"],["TRANSFORMERS","matrix32x12.Matrix.TRANSFORMERS"],["SCISSORS","matrix32x12.Matrix.SCISSORS"],["EXIT","matrix32x12.Matrix.EXIT"],["TREE","matrix32x12.Matrix.TREE"],["PACMAN","matrix32x12.Matrix.PACMAN"],["TARGET","matrix32x12.Matrix.TARGET"],["TSHIRT","matrix32x12.Matrix.TSHIRT"],["ROLLERSKATE","matrix32x12.Matrix.ROLLERSKATE"],["DUCK","matrix32x12.Matrix.DUCK"],["HOUSE","matrix32x12.Matrix.HOUSE"],["TORTOISE","matrix32x12.Matrix.TORTOISE"],["BUTTERFLY","matrix32x12.Matrix.BUTTERFLY"],["STICKFIGURE","matrix32x12.Matrix.STICKFIGURE"],["GHOST","matrix32x12.Matrix.GHOST"],["PITCHFORK","matrix32x12.Matrix.PITCHFORK"],["onboard_music_QUAVERS","matrix32x12.Matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","matrix32x12.Matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","matrix32x12.Matrix.onboard_music_CROTCHET"],["COW","matrix32x12.Matrix.COW"],["RABBIT","matrix32x12.Matrix.RABBIT"],["SQUARE_SMALL","matrix32x12.Matrix.SQUARE_SMALL"],["SQUARE","matrix32x12.Matrix.SQUARE"],["DIAMOND_SMALL","matrix32x12.Matrix.DIAMOND_SMALL"],["DIAMOND","matrix32x12.Matrix.DIAMOND"],["CHESSBOARD","matrix32x12.Matrix.CHESSBOARD"],["TRIANGLE_LEFT","matrix32x12.Matrix.TRIANGLE_LEFT"],["TRIANGLE","matrix32x12.Matrix.TRIANGLE"],["SNAKE","matrix32x12.Matrix.SNAKE"],["UMBRELLA","matrix32x12.Matrix.UMBRELLA"],["SKULL","matrix32x12.Matrix.SKULL"],["GIRAFFE","matrix32x12.Matrix.GIRAFFE"],["SWORD","matrix32x12.Matrix.SWORD"]],imglist:[["ALL_CLOCKS","matrix.Image.ALL_CLOCKS"],["ALL_ARROWS","matrix.Image.ALL_ARROWS"]],playlist:[["DADADADUM",".DADADADUM"],["ENTERTAINER",".ENTERTAINER"],["PRELUDE",".PRELUDE"],["ODE",".ODE"],["NYAN",".NYAN"],["RINGTONE",".RINGTONE"],["FUNK",".FUNK"],["BLUES",".BLUES"],["BIRTHDAY",".BIRTHDAY"],["WEDDING",".WEDDING"],["FUNERAL",".FUNERAL"],["PUNCHLINE",".PUNCHLINE"],["PYTHON",".PYTHON"],["BADDY",".BADDY"],["CHASE",".CHASE"],["BA_DING",".BA_DING"],["WAWAWAWAA",".WAWAWAWAA"],["JUMP_UP",".JUMP_UP"],["JUMP_DOWN",".JUMP_DOWN"],["POWER_UP",".POWER_UP"],["POWER_DOWN",".POWER_DOWN"]],playlist_extern:[["DADADADUM","DADADADUM"],["ENTERTAINER","ENTERTAINER"],["PRELUDE","PRELUDE"],["ODE","ODE"],["NYAN","NYAN"],["RINGTONE","RINGTONE"],["FUNK","FUNK"],["BLUES","BLUES"],["BIRTHDAY","BIRTHDAY"],["WEDDING","WEDDING"],["FUNERAL","FUNERAL"],["PUNCHLINE","PUNCHLINE"],["PYTHON","PYTHON"],["BADDY","BADDY"],["CHASE","CHASE"],["BA_DING","BA_DING"],["WAWAWAWAA","WAWAWAWAA"],["JUMP_UP","JUMP_UP"],["JUMP_DOWN","JUMP_DOWN"],["POWER_UP","POWER_UP"],["POWER_DOWN","POWER_DOWN"]],tone_notes:[["NOTE_C3","131"],["NOTE_D3","147"],["NOTE_E3","165"],["NOTE_F3","175"],["NOTE_G3","196"],["NOTE_A3","220"],["NOTE_B3","247"],["NOTE_C4","262"],["NOTE_D4","294"],["NOTE_E4","330"],["NOTE_F4","349"],["NOTE_G4","392"],["NOTE_A4","440"],["NOTE_B4","494"],["NOTE_C5","523"],["NOTE_D5","587"],["NOTE_E5","659"],["NOTE_F5","698"],["NOTE_G5","784"],["NOTE_A5","880"],["NOTE_B5","988"]],serial_pin:[["pin0","0"],["pin1","1"],["pin2","2"],["pin8","8"],["pin12","12"],["pin13","13"],["pin14","14"],["pin15","15"],["pin16","16"]],radio_power:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],radio_datarate:[["1Mbit","RATE_1MBIT"],["250Kbit","RATE_250KBIT"],["2Mbit","RATE_2MBIT"]],one_more:[["ONE_SHOT","ONE_SHOT"],["PERIODIC","PERIODIC"]],digital_dot:[["0","0"],["1","1"],["2","2"]]};const lH=rH,dH=20,IH={init:function(){this.setColour(dH),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_HIGH,"HIGH"],[ge.Msg.MIXLY_LOW,"LOW"]]),"BOOL"),this.setOutput(!0,Boolean),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_HIGHLOW_TOOLTIP)}},TH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_Digital_PINMODEOUT).setCheck(Number),this.appendValueInput("STAT").appendField(ge.Msg.MIXLY_STAT).setCheck([Number,Boolean]),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_DIGITAL_WRITE_TOOLTIP)}},MH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_Digital_PINMODEIN).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setInputsInline(!0),this.setOutput(!0,[Boolean,Number]),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_DIGITAL_READ_TOOLTIP)}},hH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField("DAC"+ge.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_VALUE2).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_TOOLTIP)}},mH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendDummyInput().appendField(ge.Msg.MIXLY_MICROBIT_JS_PERIOD_MIL).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_mSecond,"period"],[ge.Msg.MIXLY_uSecond,"period_microseconds"]]),"key"),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_SET_TOOLTIP)}},EH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_Analog_PINMODEIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_REF_VOLTAGE+ge.Msg.MIXLY_STAT).appendField(new ge.FieldDropdown([["3.3V","machine.ADC.ATTN_11DB"],["2.2V","machine.ADC.ATTN_6DB"],["1.5V","machine.ADC.ATTN_2_5DB"],["1.2V","machine.ADC.ATTN_0DB"]]),"atten"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_ATTEN_TOOLTIP)}},OH={init:function(){this.setColour(dH),this.appendValueInput("pin").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(ge.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendDummyInput().appendField(ge.Msg.MIXLY_ESP32_MACHINE_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_TOOLTIP)}},RH={init:function(){this.setColour(20),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_ATTACHINTERRUPT_PIN).setCheck(Number),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MODE).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[ge.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[ge.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(ge.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PIN_ATTACHINTERRUPT_TOOLTIP)}},cH={init:function(){this.setColour(20),this.appendDummyInput().appendField(ge.Msg.MIXLY_SETUP).appendField(new ge.FieldTextInput("pin#"),"PIN_OBJ"),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROPYTHON_AS).appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_Digital_PINMODEOUT,"machine.Pin.OUT"],[ge.Msg.MIXLY_Digital_PINMODEIN,"machine.Pin.IN"],[ge.Msg.MIXLY_PINMODEPULLUP,"machine.Pin.IN, machine.Pin.PULL_UP"],[ge.Msg.MIXLY_PINMODEPULLDOWN,"machine.Pin.IN, machine.Pin.PULL_DOWN"]]),"MODE"),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_DIGITAL_INIT_TOOLTIP)},getVars:function(){return["pin#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},gH={init:function(){this.setColour(dH),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP).appendField(new ge.FieldTextInput("dac#"),"PIN_OBJ").appendField(ge.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField("DAC"+ge.Msg.MIXLY_Analog_PINMODEOUT),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_ANALOG_WRITE_INIT_TOOLTIP)},getVars:function(){return["dac#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},CH={init:function(){this.setColour(dH),this.appendDummyInput("").appendField(ge.Msg.MIXLY_SETUP).appendField(new ge.FieldTextInput("tc#"),"PIN_OBJ").appendField(ge.Msg.MIXLY_MICROPYTHON_AS),this.appendDummyInput("").appendField(ge.Msg.MIXLY_ESP32_TOUCH_SENSOR),this.appendValueInput("PIN",Number).appendField(ge.Msg.MIXLY_PIN).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PIN_PRESSED_INIT_TOOLTIP)},getVars:function(){return["tc#"==this.getFieldValue("PIN_OBJ")?null:this.getFieldValue("PIN_OBJ")]},renameVar:function(e,t){ge.Names.equals(e,this.getFieldValue("PIN_OBJ"))&&this.setTitleValue(t,"PIN_OBJ")}},SH={init:function(){this.setColour(dH),this.appendValueInput("PIN",Number).appendField("PWM"+ge.Msg.MIXLY_Analog_PINMODEOUT).setCheck(Number),this.appendValueInput("NUM",Number).appendField(ge.Msg.MIXLY_FREQUENCY+ge.Msg.MIXLY_STAT).setCheck(Number),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(ge.Msg.MIXLY_ESP32_INOUT_PWM_ANALOG_WRITE_SET_FREQ_TOOLTIP)}},AH=cH,LH=CH,NH=OH,DH=RH,fH=230,FH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.digital),"PIN"),this.setOutput(!0)}},PH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.digital_pin),"PIN"),this.setOutput(!0,Number)}},YH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.input_pin),"PIN"),this.setOutput(!0,Number)}},vH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.output_pin),"PIN"),this.setOutput(!0,Number)}},XH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.espnow_channel),"PIN"),this.setOutput(!0,Number)}},yH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.haskylens_model),"PIN"),this.setOutput(!0,Number)}},xH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm_input),"PIN"),this.setOutput(!0)}},bH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog_input),"PIN"),this.setOutput(!0)}},VH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm_output),"PIN"),this.setOutput(!0)}},BH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog_output),"PIN"),this.setOutput(!0)}},GH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.i2c_A_pin),"PIN"),this.setOutput(!0,Number)}},UH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.i2c_B_pin),"PIN"),this.setOutput(!0,Number)}},wH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_A_pin),"PIN"),this.setOutput(!0,Number)}},HH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_B_pin),"PIN"),this.setOutput(!0,Number)}},kH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_C_pin),"PIN"),this.setOutput(!0,Number)}},WH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.spi_D_pin),"PIN"),this.setOutput(!0,Number)}},KH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog),"PIN"),this.setOutput(!0)}},JH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.analog_pin),"PIN"),this.setOutput(!0,Number)}},QH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.dac),"PIN"),this.setOutput(!0)}},zH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.dac_pin),"PIN"),this.setOutput(!0,Number)}},qH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.button),"PIN"),this.setOutput(!0,Number)}},jH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.buttonB),"PIN"),this.setOutput(!0,Number)}},$H={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm),"PIN"),this.setOutput(!0)}},ZH={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.pwm_pin),"PIN"),this.setOutput(!0,Number)}},ek={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.touch_pin),"PIN"),this.setOutput(!0,Number)}},tk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.touch),"PIN"),this.setOutput(!0)}},ik={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.serial_pin),"PIN"),this.setOutput(!0,Number)}},nk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.builtinimg),"PIN"),this.setOutput(!0,"esp32_image")}},sk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.builtinimg_extern),"PIN"),this.setOutput(!0,"esp32_image")}},_k={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.imglist),"PIN"),this.setOutput(!0)}},ok={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.playlist),"PIN"),this.setOutput(!0)}},pk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.playlist_extern),"PIN"),this.setOutput(!0)}},ak={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.exlcdh),"PIN"),this.setOutput(!0,Number)}},uk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.exlcdv),"PIN"),this.setOutput(!0,Number)}},rk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.axis),"PIN"),this.setOutput(!0,Number)}},lk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.brightness),"PIN"),this.setOutput(!0,Number)}},dk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tts_voice),"PIN"),this.setOutput(!0,Number)}},Ik={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tts_builtin_music),"PIN"),this.setOutput(!0,Number)}},Tk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tts_bgmusic),"PIN"),this.setOutput(!0,Number)}},Mk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.tone_notes),"PIN"),this.setOutput(!0,Number)}},hk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.radio_power),"PIN"),this.setOutput(!0,Number)}},mk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.radio_datarate),"PIN"),this.setOutput(!0,Number)}},Ek={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.one_more),"PIN"),this.setOutput(!0)}},Ok={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown(Ce.Profile.default.digital_dot),"PIN"),this.setOutput(!0,Number)}},Rk={init:function(){this.setColour(fH),this.appendDummyInput("").appendField(new ge.FieldDropdown([["0","0"],["1","1"],["2","2"],["3","3"]]),"PIN"),this.setOutput(!0,Number)}},ck={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(40),this.appendDummyInput().appendField(e).appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendDummyInput("").appendField(ge.Msg.MIXLY_RFID_READ_CARD_UID),this.setOutput(!0,Number),this.setInputsInline(!0)}},gk={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(40),this.appendDummyInput().appendField(e).appendField("RFID"+ge.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(ge.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL),this.setOutput(!0,Number),this.setInputsInline(!0)}},Ck={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(40),this.appendDummyInput().appendField(e).appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},Sk={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(40),this.appendDummyInput().appendField(e).appendField(ge.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SECTOR").appendField(ge.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(ge.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.appendDummyInput().appendField(ge.Msg.RETURN_SUCCESS_OR_NOT),this.setInputsInline(!0),this.setOutput(!0)}},Ak={init:function(){if("mixgo_me"==Ce.Boards.getSelectedBoardKey().split(":")[2])var e="ME G1";this.setColour(40),this.appendDummyInput().appendField(e).appendField("RFID"),this.appendDummyInput("").appendField(new ge.FieldDropdown([[ge.Msg.MIXLY_RFID_SCAN_OK,"True"],[ge.Msg.MIXLY_RFID_SCAN_NOTAGERR,"None"],[ge.Msg.MIXLY_RFID_SCAN_ERROR,"False"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Lk=function(e,t){return["HIGH"==this.getFieldValue("BOOL")?"1":"0",t.ORDER_ATOMIC]},Nk=function(e,t){t.definitions_.import_machine="import machine";var i="";return i+=t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".value("+t.valueToCode(this,"STAT",t.ORDER_ATOMIC)+")\n"},Dk=function(e,t){t.definitions_.import_machine="import machine";return[t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".value()",t.ORDER_ATOMIC]},fk=function(e,t){return t.definitions_.import_machine="import machine",t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".write("+t.valueToCode(this,"NUM",t.ORDER_ATOMIC)+")\n"},Fk=function(e,t){t.definitions_.import_machine="import machine";var i=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),n=t.valueToCode(this,"NUM",t.ORDER_ATOMIC);return i+".set_analog_"+this.getFieldValue("key")+"("+n+")\n"},Pk=function(e,t){return t.definitions_.import_machine="import machine",[t.valueToCode(this,"pin",t.ORDER_ATOMIC)+".read()",t.ORDER_ATOMIC]},Yk=function(e,t){t.definitions_.import_machine="import machine";var i=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),n=this.getFieldValue("mode");return"machine.Pin("+i+").irq(handler = "+t.valueToCode(this,"DO",t.ORDER_ATOMIC)+", trigger = "+n+")\n"},vk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"pin#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC),s=this.getFieldValue("MODE");return("pin#"==i?"pin"+n:t.variableDB_.getName(i,ge.Variables.NAME_TYPE))+" = machine.Pin("+n+", "+s+")\n"},Xk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"dac#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC);return("dac#"==i?"dac"+n:t.variableDB_.getName(i,ge.Variables.NAME_TYPE))+" = machine.DAC(machine.Pin("+n+"))\n"},yk=function(e,t){return t.definitions_.import_machine="import machine",t.valueToCode(this,"PIN",t.ORDER_ATOMIC)+".atten("+this.getFieldValue("atten")+")\n"},xk=function(e,t){t.definitions_.import_machine="import machine";var i=this.getFieldValue("PIN_OBJ")||"tc#",n=t.valueToCode(this,"PIN",t.ORDER_ATOMIC);return("tc#"==i?"tc"+n:t.variableDB_.getName(i,ge.Variables.NAME_TYPE))+" = machine.TouchPad(machine.Pin("+n+"))\n"},bk=function(e,t){return[this.getFieldValue("PIN"),t.ORDER_ATOMIC]},Vk=bk,Bk=bk,Gk=bk,Uk=bk,wk=bk,Hk=bk,kk=bk,Wk=bk,Kk=bk,Jk=bk,Qk=bk,zk=bk,qk=bk,jk=bk,$k=bk,Zk=bk,eW=bk,tW=bk,iW=bk,nW=bk,sW=bk,_W=bk,oW=bk,pW=bk,aW=bk,uW=bk,rW=bk,lW=bk,dW=bk,IW=bk,TW=bk,MW=bk,hW=bk,mW=bk,EW=bk,OW=bk,RW=bk,cW=bk,gW=bk,CW=bk,SW=bk,AW=bk,LW=bk,NW=bk,DW=function(e,t){const i=this.getFieldValue("PIN").split(".");if(2!==i.length)throw Error("pin value error");return t.definitions_[`import_${i[0]}_${i[1]}`]=`from ${i[0]} import ${i[1]}`,[i[1],t.ORDER_ATOMIC]},fW=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var n='ext_rfid.read_card(0, x="id")'}else if("mixgo_sant"==i){t.definitions_.import_sant_gx_ext_rfid="from sant_gx import ext_rfid";n='ext_rfid.read_card(0, x="id")'}else{t.definitions_.import_mini_g2="import mini_g2";n='mini_g2.ext_rc522.read_card(0, x="id")'}return[n,t.ORDER_ATOMIC]},FW=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"SECTOR",t.ORDER_ATOMIC);if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var s="ext_rfid.read_card("+n+")"}else if("mixgo_sant"==i){t.definitions_.import_sant_gx_ext_rfid="from sant_gx import ext_rfid";s="ext_rfid.read_card("+n+")"}else{t.definitions_.import_mini_g2="import mini_g2";s="mini_g2.ext_rc522.read_card("+n+")"}return[s,t.ORDER_ATOMIC]},PW=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"SECTOR",t.ORDER_ATOMIC),s=t.valueToCode(this,"CONTENT",t.ORDER_ATOMIC);if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var _="ext_rfid.write_card("+s+","+n+")\n"}else if("mixgo_sant"==i){t.definitions_.import_sant_gx_ext_rfid="from sant_gx import ext_rfid";_="ext_rfid.write_card("+s+","+n+")\n"}else{t.definitions_.import_mini_g2="import mini_g2";_="mini_g2.ext_rc522.write_card("+s+","+n+")\n"}return _},YW=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=t.valueToCode(this,"SECTOR",t.ORDER_ATOMIC),s=t.valueToCode(this,"CONTENT",t.ORDER_ATOMIC);if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var _="ext_rfid.write_card("+s+","+n+")"}else if("mixgo_sant"==i){t.definitions_.import_sant_gx_ext_rfid="from sant_gx import ext_rfid";_="ext_rfid.write_card("+s+","+n+")"}else{t.definitions_.import_mini_g2="import mini_g2";_="mini_g2.ext_rc522.write_card("+s+","+n+")"}return[_,t.ORDER_ATOMIC]},vW=function(e,t){var i=Ce.Boards.getSelectedBoardKey().split(":")[2],n=this.getFieldValue("key");if("mixgo_mini"==i){t.definitions_.import_mini_g2_ext_rfid="from mini_g2 import ext_rfid";var s="ext_rfid.scan_card()=="+n}else if("mixgo_sant"==i){t.definitions_.import_sant_gx_ext_rfid="from sant_gx import ext_rfid";s="ext_rfid.scan_card()=="+n}else{t.definitions_.import_mini_g2="import mini_g2";s="mini_g2.ext_rc522.scan_card()=="+n}return[s,t.ORDER_ATOMIC]};Object.assign(ge.Variables,Ae),Object.assign(ge.Procedures,Uu),Object.assign(ge.Lang.ZhHans,Ie),Object.assign(ge.Lang.ZhHant,Te),Object.assign(ge.Lang.En,Me),ge.Python=wu,ge.generator=wu,Ce.Profile.default={},Object.assign(Ce.Profile,lH),Object.assign(Ce.Profile.default,lH["元控青春"]),Object.assign(ge.Blocks,t,i,n,s,_,o,p,a,u,r,l,d,I,b,W,k,v,V,K,f,P,H,w,U,B,F,D,N,y,X,x,Y,G,he,me,Ee),Object.assign(ge.Python.forBlock,T,M,h,m,E,O,R,c,g,C,S,A,L,ne,le,re,Z,se,de,z,q,ue,ae,pe,_e,j,Q,J,te,ee,ie,$,oe,Oe,Re,ce)})();