(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{controls_type:()=>At,controls_typeLists:()=>Lt,lists_zip:()=>Nt,lists_zip_container:()=>Dt,lists_zip_item:()=>ft,unpack_iterable_object:()=>Ft,variables_change:()=>Ct,variables_get:()=>ct,variables_global:()=>St,variables_set:()=>gt});var i={};t.r(i),t.d(i,{base_setup:()=>Yt,controls_delay:()=>Xt,controls_end_program:()=>xt,controls_except:()=>Qt,controls_finally:()=>qt,controls_flow_statements:()=>Ut,controls_for:()=>wt,controls_forEach:()=>Vt,controls_for_range:()=>Ht,controls_if:()=>bt,controls_if_else:()=>Kt,controls_if_elseif:()=>Wt,controls_if_if:()=>kt,controls_lambda:()=>jt,controls_main:()=>vt,controls_pass:()=>$t,controls_range:()=>yt,controls_repeat_ext:()=>zt,controls_thread:()=>Zt,controls_try:()=>Jt,controls_try_finally:()=>Gt,controls_whileUntil:()=>Bt,datetime_fromtimestamp:()=>oe,do_while:()=>te,garbage_collection:()=>ee,gene_unique_identifier:()=>_e,get_mem_alloc:()=>ie,get_mem_free:()=>ne,get_unique_identifier:()=>se});var n={};t.r(n),t.d(n,{base_map:()=>Ne,generate_cartesian_product:()=>fe,math_arithmetic:()=>de,math_bit:()=>Ie,math_constant:()=>ue,math_constant_mp:()=>re,math_constrain:()=>Re,math_dec:()=>Me,math_degree_to_radian:()=>Pe,math_indexer_number:()=>ge,math_map:()=>ce,math_max_min:()=>me,math_number:()=>ae,math_number_base_conversion:()=>Ee,math_radian_to_degree:()=>Fe,math_random:()=>Oe,math_random_seed:()=>Ce,math_round:()=>Se,math_selfcalcu:()=>le,math_to_int:()=>he,math_trig:()=>Te,text_to_number:()=>Ae,text_to_number_skulpt:()=>Le,turn_to_int:()=>De});var s={};t.r(s),t.d(s,{ascii_to_char:()=>Ve,char_to_ascii:()=>Be,number_to_text:()=>Ge,os_system:()=>di,text:()=>Ye,text_bytes:()=>xe,text_capital:()=>qe,text_center:()=>ze,text_char:()=>be,text_char_at:()=>He,text_char_at2:()=>we,text_char_at3:()=>pi,text_compareTo:()=>_i,text_compare_to:()=>Qe,text_create_with_container:()=>ni,text_create_with_item:()=>si,text_encode:()=>ui,text_equals_starts_ends:()=>Je,text_eval:()=>ri,text_find:()=>je,text_format:()=>ii,text_format_noreturn:()=>ai,text_join:()=>ye,text_join_seq:()=>$e,text_length:()=>Ue,text_random_char:()=>ke,text_replace:()=>Ze,text_split:()=>ti,text_strip:()=>ei,text_substring:()=>Ke,text_substring2:()=>We,text_substring3:()=>oi,text_textarea:()=>Xe});var o={};t.r(o),t.d(o,{ENUMERATE:()=>Ji,content_in_lists:()=>qi,enumerate:()=>Qi,list_many_input:()=>Xi,list_tolist:()=>Vi,list_tolist2:()=>Ki,list_trig:()=>Pi,lists_2d_get_col_row_data:()=>hi,lists_2d_get_data_with_col_row:()=>Mi,lists_append_extend:()=>gi,lists_change_to:()=>Yi,lists_change_to_general:()=>bi,lists_clear:()=>Ni,lists_create_with:()=>mi,lists_create_with2:()=>Bi,lists_create_with_container:()=>Oi,lists_create_with_item:()=>Ri,lists_create_with_noreturn:()=>xi,lists_create_with_text:()=>Ei,lists_create_with_text2:()=>Gi,lists_del_general:()=>yi,lists_find:()=>Fi,lists_getIndex3:()=>Ui,lists_getSublist3:()=>wi,lists_get_index:()=>Ii,lists_get_random_item:()=>Ci,lists_get_random_sublist:()=>Si,lists_get_sublist:()=>Ti,lists_insert_value:()=>Ai,lists_insert_value2:()=>ki,lists_pop:()=>fi,lists_remove_at:()=>Di,lists_remove_at2:()=>Wi,lists_reverse:()=>Li,lists_setIndex3:()=>Hi,lists_set_index:()=>ci,lists_sort:()=>vi});var _={};t.r(_),t.d(_,{dicts_add_change_del:()=>ln,dicts_add_or_change:()=>sn,dicts_clear:()=>pn,dicts_create_with:()=>ji,dicts_create_with_container:()=>$i,dicts_create_with_item:()=>Zi,dicts_create_with_noreturn:()=>Mn,dicts_deldict:()=>dn,dicts_delete:()=>on,dicts_get:()=>en,dicts_get_default:()=>nn,dicts_items:()=>an,dicts_keys:()=>tn,dicts_length:()=>rn,dicts_pop:()=>In,dicts_setdefault:()=>Tn,dicts_to_json:()=>mn,dicts_to_json2:()=>Rn,dicts_to_to:()=>On,dicts_todict:()=>hn,dicts_update:()=>_n,dicts_values:()=>un,json_to_dicts:()=>En});var p={};t.r(p),t.d(p,{logic_boolean:()=>Ln,logic_compare:()=>gn,logic_compare_continous:()=>Cn,logic_is:()=>Fn,logic_is_in:()=>fn,logic_negate:()=>An,logic_null:()=>Nn,logic_operation:()=>Sn,logic_tobool:()=>Pn,logic_true_or_false:()=>Dn});var a={};t.r(a),t.d(a,{sdcard_mount:()=>ts,sdcard_use_spi_init:()=>Zn,storage_can_write_ornot:()=>Gn,storage_change_dir:()=>jn,storage_close_file:()=>wn,storage_delete_file:()=>kn,storage_file_seek:()=>Jn,storage_file_tell:()=>Kn,storage_file_write:()=>bn,storage_fileopen:()=>Yn,storage_fileopen_new:()=>Xn,storage_fileopen_new_encoding:()=>xn,storage_get_a_line:()=>Bn,storage_get_contents:()=>Vn,storage_get_contents_without_para:()=>yn,storage_get_current_dir:()=>Qn,storage_get_file_size:()=>Wn,storage_get_filename:()=>Un,storage_is_file:()=>$n,storage_list_all_files:()=>Hn,storage_make_dir:()=>qn,storage_open_file_with_os:()=>vn,storage_rename:()=>zn});var u={};t.r(u),t.d(u,{procedures_callnoreturn:()=>os,procedures_callreturn:()=>_s,procedures_defnoreturn:()=>es,procedures_defreturn:()=>is,procedures_ifreturn:()=>ps,procedures_mutatorarg:()=>ss,procedures_mutatorcontainer:()=>ns,procedures_return:()=>as});var r={};t.r(r),t.d(r,{tuple_change_to:()=>Rs,tuple_create_llm_params:()=>fs,tuple_create_with:()=>rs,tuple_create_with_container:()=>ds,tuple_create_with_item:()=>ls,tuple_create_with_noreturn:()=>Ss,tuple_create_with_text2:()=>Is,tuple_create_with_text_return:()=>Ts,tuple_del:()=>ms,tuple_find:()=>cs,tuple_getIndex:()=>Ms,tuple_getSublist:()=>Cs,tuple_get_random_item:()=>Ls,tuple_get_sublist:()=>As,tuple_input:()=>Ds,tuple_join:()=>Es,tuple_length:()=>hs,tuple_max:()=>Os,tuple_totuple:()=>Ns,tuple_trig:()=>gs});var d={};t.r(d),t.d(d,{set_add_discard:()=>Bs,set_clear:()=>bs,set_create_with:()=>Ps,set_create_with_container:()=>vs,set_create_with_item:()=>Ys,set_create_with_text_return:()=>ws,set_length:()=>Xs,set_operate:()=>ys,set_operate_update:()=>Vs,set_pop:()=>xs,set_sub:()=>Gs,set_toset:()=>Hs,set_update:()=>Us});var l={};t.r(l),t.d(l,{html_content:()=>Qs,html_content_more:()=>qs,html_document:()=>Ws,html_form:()=>js,html_head_body:()=>Js,html_style:()=>zs,html_style_color:()=>Zs,html_style_content:()=>$s,html_text:()=>to,html_title:()=>Ks});var I={};t.r(I),t.d(I,{attribute_access:()=>Mo,function_call:()=>lo,function_call_container:()=>Io,function_call_item:()=>To,raw_block:()=>no,raw_empty:()=>oo,raw_expression:()=>so,raw_table:()=>io,text_comment:()=>_o,text_print_multiple:()=>ao,text_print_multiple_container:()=>uo,text_print_multiple_item:()=>ro,type_check:()=>po});var T={};t.r(T),t.d(T,{controls_type:()=>Ro,controls_typeLists:()=>co,lists_zip:()=>go,unpack_iterable_object:()=>Co,variables_change:()=>Eo,variables_get:()=>ho,variables_global:()=>Oo,variables_set:()=>mo});var M={};t.r(M),t.d(M,{Panic_with_status_code:()=>Yo,base_setup:()=>Ao,controls_delay:()=>vo,controls_flow_statements:()=>Po,controls_for:()=>Do,controls_forEach:()=>Vo,controls_for_range:()=>fo,controls_if:()=>Lo,controls_interrupts:()=>bo,controls_lambda:()=>Go,controls_main:()=>So,controls_millis:()=>Xo,controls_nointerrupts:()=>yo,controls_pass:()=>wo,controls_range:()=>Bo,controls_repeat:()=>zo,controls_repeat_ext:()=>Wo,controls_thread:()=>Ho,controls_try_finally:()=>No,controls_whileUntil:()=>Fo,datetime_fromtimestamp:()=>jo,do_while:()=>ko,garbage_collection:()=>Ko,gene_unique_identifier:()=>$o,get_mem_alloc:()=>Jo,get_mem_free:()=>Qo,get_unique_identifier:()=>qo,reset:()=>xo,time_sleep:()=>Uo});var h={};t.r(h),t.d(h,{base_map:()=>O_,generate_cartesian_product:()=>c_,math_arithmetic:()=>n_,math_bit:()=>i_,math_constant:()=>t_,math_constant_mp:()=>e_,math_constrain:()=>l_,math_dec:()=>p_,math_degree_to_radian:()=>C_,math_indexer_number:()=>M_,math_map:()=>d_,math_max_min:()=>u_,math_number:()=>Zo,math_number_base_conversion:()=>I_,math_radian_to_degree:()=>g_,math_random:()=>r_,math_random_seed:()=>T_,math_round:()=>h_,math_selfcalcu:()=>s_,math_single:()=>o_,math_to_int:()=>a_,math_trig:()=>__,text_to_number:()=>m_,text_to_number_skulpt:()=>E_,turn_to_int:()=>R_});var m={};t.r(m),t.d(m,{ascii_to_char:()=>f_,char_to_ascii:()=>F_,number_to_text:()=>P_,os_system:()=>tp,text:()=>S_,text_bytes:()=>L_,text_capital:()=>G_,text_center:()=>U_,text_char:()=>N_,text_char_at:()=>X_,text_char_at2:()=>Y_,text_char_at3:()=>j_,text_compareTo:()=>z_,text_compare_to:()=>y_,text_encode:()=>$_,text_equals_starts_ends:()=>b_,text_eval:()=>Z_,text_find:()=>w_,text_format:()=>J_,text_format_noreturn:()=>Q_,text_join:()=>D_,text_join_seq:()=>H_,text_length:()=>v_,text_random_char:()=>x_,text_replace:()=>k_,text_split:()=>W_,text_strip:()=>K_,text_substring:()=>B_,text_substring2:()=>V_,text_substring3:()=>q_,text_textarea:()=>A_});var E={};t.r(E),t.d(E,{content_in_lists:()=>Xp,enumerate:()=>Yp,list_many_input:()=>Rp,list_tolist:()=>Pp,list_tolist2:()=>vp,list_trig:()=>mp,lists_2d_get_col_row_data:()=>np,lists_2d_get_data_with_col_row:()=>ip,lists_append_extend:()=>ap,lists_change_to:()=>Op,lists_change_to_general:()=>gp,lists_clear:()=>Ip,lists_create_with:()=>sp,lists_create_with2:()=>Sp,lists_create_with_noreturn:()=>cp,lists_create_with_text:()=>op,lists_create_with_text2:()=>Ap,lists_del_general:()=>Cp,lists_find:()=>Tp,lists_getIndex3:()=>Lp,lists_getSublist3:()=>Np,lists_get_index:()=>_p,lists_get_random_item:()=>up,lists_get_random_sublist:()=>rp,lists_get_sublist:()=>ep,lists_insert_value:()=>dp,lists_insert_value2:()=>fp,lists_pop:()=>hp,lists_remove_at:()=>Mp,lists_remove_at2:()=>Fp,lists_reverse:()=>lp,lists_setIndex3:()=>Dp,lists_set_index:()=>pp,lists_sort:()=>Ep});var O={};t.r(O),t.d(O,{dicts_add_change_del:()=>Jp,dicts_add_or_change:()=>Bp,dicts_clear:()=>wp,dicts_create_with:()=>xp,dicts_create_with_noreturn:()=>zp,dicts_deldict:()=>Kp,dicts_delete:()=>Gp,dicts_get:()=>yp,dicts_get_default:()=>Vp,dicts_items:()=>Hp,dicts_keys:()=>bp,dicts_length:()=>Wp,dicts_pop:()=>Qp,dicts_setdefault:()=>qp,dicts_to_json:()=>$p,dicts_to_json2:()=>ea,dicts_to_to:()=>ta,dicts_todict:()=>jp,dicts_update:()=>Up,dicts_values:()=>kp,json_to_dicts:()=>Zp});var R={};t.r(R),t.d(R,{logic_boolean:()=>_a,logic_compare:()=>ia,logic_compare_continous:()=>na,logic_is:()=>ra,logic_is_in:()=>ua,logic_negate:()=>oa,logic_null:()=>pa,logic_operation:()=>sa,logic_tobool:()=>da,logic_true_or_false:()=>aa});var c={};t.r(c),t.d(c,{sdcard_mount:()=>Xa,sdcard_use_spi_init:()=>Ya,storage_can_write_ornot:()=>Ra,storage_change_dir:()=>Da,storage_close_file:()=>ga,storage_delete_file:()=>Sa,storage_file_seek:()=>Na,storage_file_tell:()=>La,storage_file_write:()=>ha,storage_fileopen:()=>Ia,storage_fileopen_new:()=>Ta,storage_fileopen_new_encoding:()=>Ma,storage_get_a_line:()=>Oa,storage_get_contents:()=>Ea,storage_get_contents_without_para:()=>ma,storage_get_current_dir:()=>fa,storage_get_file_size:()=>Aa,storage_get_filename:()=>ca,storage_is_file:()=>va,storage_list_all_files:()=>Ca,storage_make_dir:()=>Fa,storage_open_file_with_os:()=>la,storage_rename:()=>Pa});var g={};t.r(g),t.d(g,{procedures_callnoreturn:()=>Va,procedures_callreturn:()=>ya,procedures_defnoreturn:()=>ba,procedures_defreturn:()=>xa,procedures_ifreturn:()=>Ba,procedures_return:()=>Ga});var C={};t.r(C),t.d(C,{tuple_change_to:()=>qa,tuple_create_llm_params:()=>su,tuple_create_with:()=>Ua,tuple_create_with_noreturn:()=>Za,tuple_create_with_text2:()=>wa,tuple_create_with_text_return:()=>Ha,tuple_del:()=>Ka,tuple_find:()=>za,tuple_getIndex:()=>ka,tuple_getSublist:()=>$a,tuple_get_random_item:()=>eu,tuple_get_sublist:()=>tu,tuple_input:()=>nu,tuple_join:()=>Ja,tuple_length:()=>Wa,tuple_max:()=>Qa,tuple_totuple:()=>iu,tuple_trig:()=>ja});var S={};t.r(S),t.d(S,{set_add_discard:()=>du,set_clear:()=>au,set_create_with:()=>ou,set_create_with_text_return:()=>Tu,set_length:()=>_u,set_operate:()=>uu,set_operate_update:()=>ru,set_pop:()=>pu,set_sub:()=>lu,set_toset:()=>Mu,set_update:()=>Iu});var A={};t.r(A),t.d(A,{html_content:()=>Ou,html_content_more:()=>Ru,html_document:()=>hu,html_form:()=>gu,html_head_body:()=>Eu,html_style:()=>cu,html_style_content:()=>Cu,html_text:()=>Su,html_title:()=>mu});var L={};t.r(L),t.d(L,{attribute_access:()=>Pu,function_call:()=>Fu,raw_block:()=>Au,raw_empty:()=>Nu,raw_expression:()=>Lu,raw_table:()=>Du,type_check:()=>fu});var N={};t.r(N),t.d(N,{PIN_init:()=>yr,actuator_extern_get_led_bright:()=>Ku,actuator_extern_get_led_state:()=>Ju,actuator_extern_led_bright:()=>Wu,actuator_extern_led_brightness:()=>Qu,actuator_ms32006_dcmotor:()=>nr,actuator_ms32006_init:()=>ir,actuator_ms32006_stepper:()=>sr,actuator_neopixel_init:()=>or,actuator_neopixel_rgb:()=>_r,actuator_neopixel_rgb_all:()=>pr,actuator_neopixel_rgb_show_all_chase:()=>rr,actuator_neopixel_rgb_show_all_rainbow:()=>ur,actuator_neopixel_write:()=>ar,actuator_use_uart_init:()=>dr,esp32_music_get_tempo_extern:()=>Uu,esp32_music_pitch:()=>yu,esp32_music_pitch_init:()=>bu,esp32_music_pitch_with_time:()=>Vu,esp32_music_play_list:()=>Bu,esp32_music_reset_extern:()=>wu,esp32_music_set_tempo_extern:()=>Gu,esp32_music_stop:()=>Hu,esp32_set_music_volume:()=>ku,mixbot_actuator_extern_get_addr:()=>xr,mixbot_actuator_extern_set_addr:()=>br,mixbot_addr_extern:()=>gr,parrot_PIN_init:()=>Ur,parrot_move_speed:()=>wr,pin_led_bright:()=>Vr,player_insert_music:()=>mr,player_play_music:()=>hr,player_set_mode:()=>Mr,player_set_play:()=>Ir,player_set_volume:()=>Tr,player_whether_stop:()=>lr,robot_led_extern:()=>Lr,robot_led_extern_get_value:()=>Nr,robot_motor_extern:()=>Cr,robot_motor_extern_get_speed:()=>Sr,robot_servo_extern_absolute_run:()=>Pr,robot_servo_extern_get_status:()=>Dr,robot_servo_extern_relative_continue:()=>Xr,robot_servo_extern_relative_origin:()=>vr,robot_servo_extern_relative_run:()=>Yr,robot_servo_extern_stop:()=>Fr,robot_servo_extern_stop_mode:()=>fr,robot_traffic_light_extern:()=>Ar,servo_PIN_init:()=>Br,servo_get_angle:()=>tr,servo_get_speed:()=>er,servo_init:()=>qu,servo_move:()=>zu,servo_move_angle:()=>Gr,servo_set_angle:()=>$u,servo_set_speed:()=>Zu,servo_speed_360:()=>ju,syn6288_builtin_voice:()=>Rr,syn6288_get_voice:()=>Or,syn6288_set_voice:()=>Er,syn6288_tts_play:()=>cr});var D={};t.r(D),t.d(D,{actuator_dc_motor:()=>cd,actuator_dc_motor_stop:()=>gd,actuator_get_led_bright:()=>Jr,actuator_get_led_state:()=>Qr,actuator_led_bright:()=>Kr,actuator_led_brightness:()=>qr,actuator_mixbot_buzzer_on_off:()=>Nd,actuator_mixgo_nova_mic_get:()=>vd,actuator_mixgo_nova_mic_set:()=>Pd,actuator_mixgo_nova_onboard_music_pitch:()=>Vd,actuator_mixgo_nova_onboard_music_stop:()=>Bd,actuator_mixgo_nova_play_audio:()=>bd,actuator_mixgo_nova_play_online_audio:()=>yd,actuator_mixgo_nova_record_audio:()=>xd,actuator_mixgo_nova_voice_get:()=>Xd,actuator_mixgo_nova_voice_set:()=>Yd,actuator_mixgo_zero_led_color:()=>zr,actuator_onboard_neopixel_rgb:()=>id,actuator_onboard_neopixel_rgb_all:()=>nd,actuator_onboard_neopixel_rgb_show_all_chase:()=>od,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>sd,actuator_onboard_neopixel_write:()=>_d,actuator_rm_onboard_neopixel_rgb:()=>pd,actuator_rm_onboard_neopixel_rgb_all:()=>ad,actuator_rm_onboard_neopixel_rgb_show_all_chase:()=>ud,actuator_stepper_keep:()=>Od,actuator_stepper_stop:()=>Rd,analog_ble_keyboard_init:()=>$d,analog_ble_keyboard_input:()=>el,analog_ble_keyboard_mouse_init:()=>ul,analog_ble_keyboard_mouse_input:()=>Il,analog_ble_keyboard_mouse_send_battery:()=>ll,analog_ble_keyboard_mouse_str:()=>Tl,analog_ble_keyboard_send_battery:()=>nl,analog_ble_keyboard_str:()=>il,analog_ble_mouse_init:()=>sl,analog_ble_mouse_input:()=>pl,analog_ble_mouse_keyboard_input:()=>Ml,analog_ble_mouse_send_battery:()=>al,analog_keyboard_input:()=>Hd,analog_keyboard_str:()=>jd,analog_mouse_input:()=>qd,backstage_onboard_music_play_list:()=>md,bitbot_motor:()=>Fd,bitbot_move:()=>Dd,bitbot_stop:()=>fd,ble_keyboard_connect:()=>tl,ble_keyboard_get_mac:()=>Zd,ble_keyboard_mouse_connect:()=>dl,ble_keyboard_mouse_get_mac:()=>rl,ble_mouse_connect:()=>_l,ble_mouse_get_mac:()=>ol,cc_number:()=>ed,educore_ble_keyboard_input:()=>Al,educore_ble_sensor_connected:()=>Sl,educore_ble_sensor_init:()=>Cl,educore_buzzer:()=>hl,educore_buzzer_play_tone:()=>ml,educore_buzzer_play_tone_time:()=>El,educore_buzzer_stop:()=>Ol,educore_neopixel_clear:()=>gl,educore_neopixel_rgb:()=>cl,educore_rgb_light:()=>Rl,esp32_music_get_tempo:()=>dd,esp32_music_reset:()=>ld,esp32_music_set_tempo:()=>rd,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:()=>Wd,general_key_tuple:()=>Kd,generalkey_container:()=>Jd,generalkey_create_with_item:()=>Qd,get_keyboard_light:()=>Ll,get_power_output:()=>Ud,ledswitch:()=>Wr,mixbot_motor:()=>Ld,mixbot_motor_status:()=>Cd,mixbot_move:()=>Sd,mixbot_stop:()=>Ad,mouse_key:()=>zd,number:()=>kr,record_audio:()=>Dl,rm_actuator_get_led_bright:()=>$r,rm_actuator_get_led_state:()=>Zr,rm_actuator_led_bright:()=>jr,rm_actuator_led_brightness:()=>td,rm_motor:()=>Ed,set_all_power_output:()=>wd,set_microphone_amplification:()=>Nl,set_music_volume:()=>fl,set_power_output:()=>Gd,special_key:()=>kd});var f={};t.r(f),t.d(f,{ai_sensor_20object:()=>uI,ai_sensor_ailocal_class:()=>$l,ai_sensor_ailocal_class_result:()=>Zl,ai_sensor_ailocal_train:()=>jl,ai_sensor_asr_recognize:()=>sI,ai_sensor_audio_play:()=>eI,ai_sensor_audio_record:()=>tI,ai_sensor_barcode:()=>yl,ai_sensor_circle:()=>Hl,ai_sensor_classifier_faces:()=>aI,ai_sensor_color:()=>Jl,ai_sensor_color_chases:()=>zl,ai_sensor_color_chases_result:()=>ql,ai_sensor_config:()=>xl,ai_sensor_face:()=>pI,ai_sensor_find_20objects:()=>rI,ai_sensor_find_barcodes:()=>Vl,ai_sensor_find_circles:()=>kl,ai_sensor_find_colors:()=>Ql,ai_sensor_find_licenseplates:()=>_I,ai_sensor_find_lines:()=>wl,ai_sensor_find_qrcodes:()=>Xl,ai_sensor_find_rects:()=>Kl,ai_sensor_find_tags:()=>Gl,ai_sensor_licenseplate:()=>oI,ai_sensor_line:()=>Ul,ai_sensor_qrcode:()=>vl,ai_sensor_qrcode_lite:()=>Yl,ai_sensor_rect:()=>Wl,ai_sensor_rgb:()=>bl,ai_sensor_tag:()=>Bl,ai_sensor_use_uart_init:()=>Pl,ai_sensor_yolo_recognize:()=>iI,ai_sensor_yolo_recognize_result:()=>nI});var F={};t.r(F),t.d(F,{MICROPYTHON_AI_Speech_asr:()=>II,MICROPYTHON_AI_Speech_unit:()=>lI,MICROPYTHON_AI_client:()=>dI});var P={};t.r(P),t.d(P,{mpython_blynk_app_data:()=>DI,mpython_blynk_app_notify:()=>cI,mpython_blynk_email:()=>SI,mpython_blynk_get_timers:()=>AI,mpython_blynk_on_connected:()=>EI,mpython_blynk_on_disconnected:()=>mI,mpython_blynk_run:()=>RI,mpython_blynk_sensor_data_to_app:()=>NI,mpython_blynk_set_property:()=>CI,mpython_blynk_setup:()=>fI,mpython_blynk_stop_timers:()=>gI,mpython_blynk_sync_virtual:()=>hI,mpython_blynk_terminal_widget_vpin:()=>MI,mpython_blynktimer:()=>LI,mpython_blynktimer_run:()=>OI});var v={};t.r(v),t.d(v,{communicate_bluetooth_central_init:()=>dT,communicate_bluetooth_connect:()=>MT,communicate_bluetooth_disconnect:()=>hT,communicate_bluetooth_handle:()=>cT,communicate_bluetooth_is_connected:()=>ET,communicate_bluetooth_mac:()=>TT,communicate_bluetooth_peripheral_init:()=>lT,communicate_bluetooth_recv:()=>OT,communicate_bluetooth_recv_only:()=>RT,communicate_bluetooth_scan:()=>IT,communicate_bluetooth_send:()=>mT,communicate_espnow_init:()=>gT,communicate_espnow_init_new:()=>CT,communicate_i2c_available:()=>JI,communicate_i2c_init:()=>YI,communicate_i2c_master_read:()=>KI,communicate_i2c_onboard:()=>PI,communicate_i2c_read:()=>XI,communicate_i2c_scan:()=>bI,communicate_i2c_write:()=>xI,communicate_ir_recv_init:()=>eT,communicate_ir_send_init:()=>_T,communicate_ow_init:()=>qI,communicate_ow_read:()=>jI,communicate_ow_reset:()=>tT,communicate_ow_scan:()=>zI,communicate_ow_select:()=>ZI,communicate_ow_write:()=>$I,communicate_spi_buffer:()=>BI,communicate_spi_init:()=>yI,communicate_spi_onboard:()=>vI,communicate_spi_read:()=>GI,communicate_spi_read_output:()=>UI,communicate_spi_readinto:()=>wI,communicate_spi_readinto_output:()=>HI,communicate_spi_set:()=>VI,communicate_spi_write:()=>kI,communicate_spi_write_readinto:()=>WI,espnow_radio_channel:()=>fT,espnow_radio_channel_new:()=>PT,espnow_radio_on_off:()=>vT,espnow_radio_rec:()=>XT,espnow_radio_recv:()=>bT,espnow_radio_recv_certain_msg:()=>yT,espnow_radio_recv_certain_msg_new:()=>BT,espnow_radio_recv_msg:()=>xT,espnow_radio_recv_new:()=>VT,espnow_radio_send:()=>YT,espnow_radio_txpower:()=>FT,i2c_available:()=>pM,i2c_init:()=>JT,i2c_master_reader2:()=>_M,i2c_read:()=>QT,i2c_scan:()=>zT,i2c_slave_onreceive:()=>QI,i2c_write:()=>qT,internal_variable:()=>iT,ir_recv_timeout:()=>oT,ir_transmit_busy:()=>rT,ir_transmit_conventional_data:()=>pT,ir_transmit_raw_code:()=>uT,ir_transmit_study_code:()=>aT,ir_whether_recv:()=>sT,lora_init:()=>GT,lora_packet:()=>UT,lora_recv:()=>HT,lora_send:()=>wT,network_espnow_info:()=>AT,network_espnow_mac:()=>ST,network_espnow_recv:()=>LT,network_espnow_recv_handle:()=>DT,network_espnow_send:()=>NT,recv_fun:()=>nT,spi_buffer:()=>ZT,spi_init:()=>jT,spi_read:()=>tM,spi_read_output:()=>eM,spi_readinto:()=>iM,spi_readinto_output:()=>nM,spi_set:()=>$T,spi_write:()=>sM,spi_write_readinto:()=>oM,urequests_attribute:()=>WT,urequests_get:()=>kT,urequests_method:()=>KT});var Y={};t.r(Y),t.d(Y,{display_animate:()=>BM,display_blink_rate:()=>xM,display_circle:()=>GM,display_color_seclet:()=>$M,display_draw_4strings:()=>fM,display_fill:()=>VM,display_get_screen_image:()=>XM,display_help:()=>wM,display_image_size:()=>FM,display_lcd_use_i2c_init:()=>sh,display_line:()=>vM,display_line_arbitrarily:()=>YM,display_matrix_extern_bright_point:()=>cM,display_matrix_extern_bright_screen:()=>CM,display_matrix_extern_clear:()=>SM,display_matrix_extern_get_pixel:()=>RM,display_matrix_extern_get_screen_pixel:()=>gM,display_matrix_extern_image_builtins:()=>AM,display_matrix_extern_scroll_string:()=>MM,display_matrix_extern_scroll_string_delay:()=>hM,display_matrix_extern_shift:()=>OM,display_matrix_extern_show_frame_string:()=>mM,display_matrix_extern_show_frame_string_delay:()=>EM,display_matrix_extern_show_image:()=>IM,display_matrix_extern_show_image_or_string_delay:()=>TM,display_matrix_use_i2c_init:()=>lM,display_oled_drawPixel:()=>kM,display_oled_showBitmap:()=>HM,display_oled_use_i2c_init:()=>uh,display_onoff:()=>yM,display_rect:()=>PM,display_rgb_color:()=>bM,display_tm1650_power:()=>KM,display_tm1650_set_brightness:()=>qM,display_tm1650_show_dot:()=>QM,display_tm1650_show_num:()=>JM,display_tm_use_i2c_init:()=>WM,display_triangle:()=>UM,display_use_i2c_init:()=>DM,extern_oled_bright_point:()=>Rh,extern_oled_clear:()=>ch,extern_oled_get_pixel:()=>Oh,extern_oled_hvline:()=>Ch,extern_oled_line:()=>Sh,extern_oled_scroll_string:()=>Th,extern_oled_scroll_string_delay:()=>Mh,extern_oled_shape_rect:()=>gh,extern_oled_shift:()=>Eh,extern_oled_show_frame_string:()=>hh,extern_oled_show_frame_string_delay:()=>mh,extern_oled_show_image:()=>rh,extern_oled_show_image_or_string_delay:()=>Ih,extern_oled_show_image_xy:()=>dh,extern_oled_show_string:()=>lh,lcd_backlight:()=>ph,lcd_clear:()=>ah,lcd_print_string:()=>_h,lcd_show_image_or_string_delay:()=>oh,matrix_extern_image_arithmetic:()=>LM,matrix_extern_image_invert:()=>NM,tft_fill:()=>ih,tft_line_arbitrarily:()=>nh,tft_scroll_string_delay:()=>th,tft_show_frame_string_delay:()=>eh,tft_show_image_or_string_delay:()=>ZM,tft_show_image_xy:()=>jM,tft_use_spi_init:()=>zM});var X={};t.r(X),t.d(X,{bitbot_display_bitmap_create:()=>Em,bitbot_display_image_create:()=>mm,display_available:()=>Kh,display_bitmap_create:()=>xh,display_bright_point:()=>wh,display_bright_screen:()=>kh,display_clear:()=>Wh,display_get_pixel:()=>Uh,display_get_screen_pixel:()=>Hh,display_image_builtins:()=>bh,display_image_builtins_all:()=>yh,display_image_create:()=>Xh,display_scroll_string:()=>Dh,display_scroll_string_delay:()=>fh,display_scroll_way:()=>Fh,display_shift:()=>Gh,display_show_frame_string:()=>vh,display_show_frame_string_delay:()=>Yh,display_show_image:()=>Lh,display_show_image_or_string_delay:()=>Nh,draw_pointer:()=>xm,image_arithmetic:()=>Vh,image_invert:()=>Bh,mixbot_display_bitmap_create:()=>lm,mixbot_display_bright_screen:()=>Mm,mixbot_display_get_ambientbright:()=>Tm,mixbot_display_get_screen_pixel:()=>Im,mixbot_display_image_create:()=>dm,mixbot_display_rotate:()=>hm,mixgo_display_bitmap_create:()=>$h,mixgo_display_image_create_new:()=>jh,mixgome_display_bitmap_create:()=>Qh,mixgome_display_font:()=>Zh,mixgome_display_image_create:()=>Jh,mixgomini_display_bitmap_create:()=>zh,mixgomini_display_image_create:()=>qh,mpython_display_hvline:()=>am,mpython_display_line:()=>um,mpython_display_shape_rect:()=>pm,mpython_pbm_image:()=>rm,nova_draw_pointer:()=>bm,onboard_oled_bright_point:()=>_m,onboard_oled_scroll_string_delay:()=>sm,onboard_oled_show_frame_string_delay:()=>om,onboard_oled_show_image:()=>tm,onboard_oled_show_image_or_string_delay:()=>nm,onboard_oled_show_image_xy:()=>em,onboard_oled_show_string:()=>im,onboard_tft_bright_point:()=>Nm,onboard_tft_bright_screen:()=>Hm,onboard_tft_clear:()=>km,onboard_tft_clock_clear:()=>Ym,onboard_tft_clock_draw:()=>vm,onboard_tft_clock_get_rtctime:()=>Fm,onboard_tft_clock_init:()=>fm,onboard_tft_clock_set_time:()=>Pm,onboard_tft_display_hvline:()=>Sm,onboard_tft_display_line:()=>Am,onboard_tft_display_shape_circle:()=>Xm,onboard_tft_display_shape_rect:()=>Cm,onboard_tft_fill:()=>Dm,onboard_tft_get_pixel:()=>Lm,onboard_tft_get_screen_pixel:()=>wm,onboard_tft_scroll_string:()=>Bm,onboard_tft_scroll_string_delay:()=>Ph,onboard_tft_shift:()=>Um,onboard_tft_show_frame_string:()=>Gm,onboard_tft_show_frame_string_delay:()=>gm,onboard_tft_show_image:()=>Vm,onboard_tft_show_image_or_string_delay:()=>cm,onboard_tft_show_image_xy:()=>Om,onboard_tft_show_image_xy_direct:()=>Rm,onboard_tft_show_texts:()=>ym});var x={};t.r(x),t.d(x,{factory_block:()=>aE,factory_block_return:()=>uE,factory_block_return_with_textarea:()=>dE,factory_block_with_textarea:()=>rE,factory_callMethod_noreturn:()=>_E,factory_callMethod_return:()=>pE,factory_create_with_container:()=>iE,factory_create_with_item:()=>nE,factory_declare:()=>oE,factory_from_import:()=>Zm,factory_function_noreturn:()=>eE,factory_function_return:()=>sE,factory_import:()=>tE,folding_block:()=>lE});var b={};t.r(b),t.d(b,{controls_pin_attachInterrupt:()=>XE,inout_analog_atten:()=>gE,inout_analog_read:()=>cE,inout_analog_read_init:()=>DE,inout_analog_write:()=>EE,inout_analog_write_init:()=>NE,inout_analog_write_set:()=>OE,inout_analog_write_set_freq:()=>PE,inout_digital_init:()=>AE,inout_digital_read:()=>hE,inout_digital_write:()=>ME,inout_highlow:()=>TE,inout_pinMode:()=>FE,inout_pin_attachInterrupt:()=>SE,inout_pin_pressed:()=>CE,inout_pin_pressed_init:()=>fE,inout_pwm_analog_write:()=>mE,inout_pwm_analog_write_init:()=>LE,inout_pwm_analog_write_set_freq:()=>RE,pin_pressed:()=>YE,pin_pressed_init:()=>vE});var y={};t.r(y),t.d(y,{IOT_CONNECT_OLLAMA:()=>EO,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>oO,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>sO,IOT_EMQX_PING:()=>iO,IOT_FORMATTING:()=>tO,IOT_FORMAT_STRING:()=>eO,IOT_MIXIO_NTP:()=>nO,IOT_MIXIO_PUBLISH:()=>KE,IOT_MIXIO_PUBLISHEX:()=>JE,IOT_MIXIO_SUBSCRIBE:()=>QE,iot_checkonenet:()=>MO,iot_client_onboard:()=>pO,iot_connect_ollama:()=>mO,iot_connect_openai:()=>OO,iot_create_with_item:()=>kE,iot_http_client:()=>aO,iot_http_data:()=>uO,iot_mixio_check:()=>jE,iot_mixio_connect:()=>WE,iot_mixio_connect_only:()=>zE,iot_mixio_disconnect:()=>qE,iot_mixio_format_msg:()=>ZE,iot_mixio_format_topic:()=>$E,iot_mixly_key:()=>_O,iot_mqtt_client:()=>rO,iot_mqtt_data:()=>dO,iot_onenet_check:()=>BE,iot_onenet_connect:()=>yE,iot_onenet_disconnect:()=>VE,iot_onenet_publish:()=>UE,iot_onenet_publish_dict:()=>GE,iot_onenetconnect:()=>IO,iot_onenetdisconnect:()=>TO,iot_publish:()=>hO,iot_publish_container:()=>wE,iot_publish_item:()=>HE,iot_tiny_web_db_count:()=>NO,iot_tiny_web_db_delete:()=>fO,iot_tiny_web_db_get:()=>LO,iot_tiny_web_db_init:()=>CO,iot_tiny_web_db_init_with_mqtt:()=>SO,iot_tiny_web_db_search:()=>DO,iot_tiny_web_db_update:()=>AO,iot_wifi_connect:()=>bE,iot_wificonnect:()=>lO,ollama_empty_history:()=>gO,use_ollama_llm_to_chat:()=>RO,use_ollama_llm_to_chat_return:()=>cO});var V={};t.r(V),t.d(V,{educore_mqtt_connect:()=>uR,educore_mqtt_connect_success:()=>IR,educore_mqtt_subscribe_message:()=>rR,educore_mqtt_topic_publish:()=>lR,educore_mqtt_topic_subscribe:()=>dR,educore_wifi_connect:()=>aR,network_ap_connect:()=>GO,network_connect:()=>xO,network_get_connect:()=>yO,network_get_wifi:()=>BO,network_init:()=>PO,network_is_active:()=>YO,network_open:()=>vO,network_scan:()=>XO,network_server:()=>UO,network_socket_accept:()=>KO,network_socket_bind:()=>HO,network_socket_close:()=>$O,network_socket_connect:()=>kO,network_socket_init:()=>wO,network_socket_listen:()=>WO,network_socket_readline:()=>JO,network_socket_receive:()=>QO,network_socket_receive_from:()=>zO,network_socket_send:()=>qO,network_socket_send_to:()=>jO,network_stop:()=>VO,network_wifi_connect:()=>bO,ntptime_address:()=>nR,ntptime_time:()=>iR,requests_attribute:()=>tR,requests_attribute2:()=>pR,requests_get:()=>ZO,requests_get2:()=>oR,requests_method:()=>eR,requests_post:()=>_R});var B={};t.r(B),t.d(B,{pe_g1_battery_left:()=>hR,pe_g1_dc_motor:()=>mR,pe_g1_dc_motor_speed:()=>ER,pe_g1_servo_get_angle:()=>cR,pe_g1_servo_get_speed:()=>gR,pe_g1_servo_set_angle:()=>OR,pe_g1_servo_set_speed:()=>RR,pe_g1_use_i2c_init:()=>MR});var G={};t.r(G),t.d(G,{CI130X_BROADCAST:()=>JR,CI130X_GET_THE_RECOGNIZED_CMD:()=>KR,CI130X_GET_WHETHER_IDENTIFY:()=>WR,CI130X_IDENTIFY_AND_SAVE:()=>kR,CI130X_SET_SYSTEM_CMD:()=>QR,HCSR04:()=>bc,PS2_Button:()=>Gc,PS2_Buttons:()=>wc,PS2_Buttons_new:()=>Kc,PS2_State:()=>Uc,PS2_init:()=>yc,PS2_init_new:()=>kc,PS2_stk:()=>Hc,PS2_stk_new:()=>Jc,PS2_vibration:()=>Bc,PS2_vibration_new:()=>Wc,camera_sensor_init:()=>Cg,camera_sensor_result:()=>Sg,column_tube_foot:()=>fg,define_keyboards:()=>Fg,educore_body_sensor:()=>Ig,educore_button_sensor_extern:()=>mg,educore_camera_sensor:()=>gg,educore_infrared_sensor:()=>hg,educore_soilhum_sensor:()=>Tg,educore_temp_sensor:()=>cg,educore_temphum_sensor:()=>Mg,educore_ultrasonic_sensor:()=>Og,esp32_s2_weather_init:()=>vc,esp32_s2_weather_rain:()=>Xc,esp32_s2_weather_wd:()=>Yc,esp32_s2_weather_ws:()=>xc,extern_rfid_read:()=>Ec,extern_rfid_readcontent:()=>Rc,extern_rfid_readid:()=>Oc,extern_rfid_status:()=>Cc,extern_rfid_write:()=>cc,extern_rfid_write_return:()=>gc,get_keboards_value:()=>Pg,gnss_get_data:()=>jc,gnss_have_data:()=>zc,init_init_rotary_encoder:()=>vg,init_matrix_keyboard:()=>Ng,interaction_whether_to_interaction:()=>wR,interaction_whether_to_interaction_SANT:()=>HR,line_tube_foot:()=>Dg,mixbot_sensor_extern_get_addr:()=>og,mixbot_sensor_extern_set_addr:()=>_g,pm25_get_data:()=>qc,radar_set_DETECTION_THRESHOLD:()=>GR,radar_set_DETECTION_THRESHOLD_SANT:()=>UR,robot_button_extern_get_value:()=>Zc,robot_color_extern_get_value:()=>sg,robot_infrared_extern_get_value:()=>eg,robot_infrared_extern_grey_get_value:()=>ig,robot_potentiometer_extern_get_value:()=>ng,robot_sonar_extern_get_value:()=>pg,robot_sonar_extern_led:()=>ag,robot_touch_extern_get_value:()=>tg,rotary_key:()=>Yg,sensor_APDS9960_extern:()=>zR,sensor_DS18X20:()=>yR,sensor_LTR308_extern:()=>jR,sensor_LTR390UV_extern:()=>tc,sensor_MAX30102_extern:()=>qR,sensor_QMC5883L_extern:()=>ac,sensor_VL530LX_extern:()=>ec,sensor_adxl345_get_acceleration:()=>fR,sensor_aht11_extern:()=>nc,sensor_bmp:()=>xR,sensor_compass_reset:()=>hc,sensor_dht11:()=>PR,sensor_hp203_extern:()=>sc,sensor_light_level:()=>FR,sensor_lm35:()=>VR,sensor_ltr381_extern:()=>$R,sensor_mixgo_extern_button_attachInterrupt:()=>NR,sensor_mixgo_extern_button_get_presses:()=>LR,sensor_mixgo_extern_button_is_pressed:()=>SR,sensor_mixgo_extern_button_was_pressed:()=>AR,sensor_mixgo_extern_light:()=>vR,sensor_mixgo_extern_pin_near:()=>XR,sensor_mixgo_extern_sound:()=>YR,sensor_mixgoce_hot_wheel_degrees:()=>Pc,sensor_mixgoce_hot_wheel_is_touched:()=>Fc,sensor_mpu9250_attachGestureInterrupt:()=>DR,sensor_mpu9250_calibrate_compass:()=>Ic,sensor_mpu9250_field_strength:()=>Mc,sensor_mpu9250_gesture:()=>uc,sensor_mpu9250_get_acceleration:()=>rc,sensor_mpu9250_get_gyro:()=>lc,sensor_mpu9250_get_magnetic:()=>dc,sensor_mpu9250_temperature:()=>Tc,sensor_ms5611_extern:()=>_c,sensor_ms5611_extern_altitude:()=>pc,sensor_read_humiture:()=>Eg,sensor_sht:()=>bR,sensor_shtc3_extern:()=>ic,sensor_spl06_001_extern:()=>oc,sensor_ucs12071_extern:()=>ZR,sensor_use_i2c_init:()=>BR,sensor_use_spi_init:()=>mc,sensor_use_uart_init:()=>Qc,sensor_weather_solo_init:()=>ug,sensor_weather_solo_rain:()=>lg,sensor_weather_solo_wd:()=>rg,sensor_weather_solo_ws:()=>dg,sensor_weigh_init:()=>Ag,tvoc_get_data:()=>$c,ultrasonic_sensor_read_distance:()=>Rg,weather_data:()=>Sc,weather_have_data:()=>Ac,weather_set_label:()=>Nc,weather_set_label_container:()=>Dc,weather_set_label_item:()=>fc,weather_uart_mixio:()=>Lc,weigh_sensor_get_weight:()=>Lg});var U={};t.r(U),t.d(U,{HCSR04:()=>zg,RTC_set_date:()=>qg,RTC_set_time:()=>Qg,bitbot_als_num:()=>oS,dht11:()=>lS,educore_button_sensor:()=>cS,educore_button_was_pressed:()=>gS,educore_gyroscope_sensor:()=>ES,educore_gyroscope_sensor_read:()=>OS,educore_gyroscope_sensor_shake:()=>RS,educore_light_sensor:()=>mS,educore_rfid_sensor:()=>CS,educore_rfid_sensor_scan:()=>SS,educore_rfid_sensor_scan_data:()=>AS,educore_voice_sensor:()=>MS,number1:()=>$g,number2:()=>Zg,number3:()=>tC,number4:()=>eC,number5:()=>iC,number6:()=>nC,number7:()=>sC,onboard_RTC_get_time:()=>lC,onboard_RTC_get_time_str:()=>EC,onboard_RTC_get_timestamp:()=>IC,onboard_RTC_get_timetuple_to_str:()=>OC,onboard_RTC_set_datetime:()=>hC,onboard_RTC_settime_string:()=>MC,onboard_RTC_timestamp_totuple:()=>TC,rfid_readcontent:()=>LC,rfid_readid:()=>AC,rfid_status:()=>fC,rfid_write:()=>NC,rfid_write_return:()=>DC,sensor_LTR308:()=>RC,sensor_aht11:()=>gC,sensor_bitbot_ALS:()=>sS,sensor_button_get_presses:()=>aS,sensor_button_is_pressed:()=>_S,sensor_button_was_pressed:()=>pS,sensor_distance_hrsc04:()=>Jg,sensor_eulerangles:()=>PC,sensor_field_strength:()=>IS,sensor_get_acceleration:()=>FC,sensor_get_temperature:()=>CC,sensor_get_the_coprocessor_version:()=>LS,sensor_hp203:()=>SC,sensor_light:()=>dS,sensor_mixbot_get_gyro:()=>nS,sensor_mixbot_patrol_calibrate:()=>tS,sensor_mixbot_patrol_value:()=>eS,sensor_mixbot_temperature:()=>iS,sensor_mixgo_LTR308:()=>rC,sensor_mixgo_button_attachInterrupt:()=>Vg,sensor_mixgo_button_get_presses:()=>yg,sensor_mixgo_button_is_pressed:()=>xg,sensor_mixgo_button_was_pressed:()=>bg,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>wC,sensor_mixgo_cc_mmc5603_get_angle:()=>UC,sensor_mixgo_cc_mmc5603_get_magnetic:()=>GC,sensor_mixgo_light:()=>jg,sensor_mixgo_nova_LTR308:()=>uC,sensor_mixgo_nova_pin_near:()=>aC,sensor_mixgo_pin_near:()=>pC,sensor_mixgo_pin_near_double:()=>_C,sensor_mixgo_pin_near_single:()=>oC,sensor_mixgo_pin_pressed:()=>Hg,sensor_mixgo_sant_color:()=>dC,sensor_mixgo_touch_slide:()=>Kg,sensor_mixgocar42_button_attachInterrupt:()=>wg,sensor_mixgocar42_button_get_presses:()=>Ug,sensor_mixgocar42_button_is_pressed:()=>Bg,sensor_mixgocar42_button_was_pressed:()=>Gg,sensor_mixgocar_battery_left:()=>ZC,sensor_mixgocar_pin_near:()=>jC,sensor_mixgocar_pin_near_line:()=>zC,sensor_mixgocar_pin_near_state_change:()=>$C,sensor_mixgoce_pin_pressed:()=>kg,sensor_mixgoce_temperature:()=>kC,sensor_mixgome_temperature:()=>HC,sensor_mpython_pin_pressed:()=>Wg,sensor_mpython_qmi8658_get_gyro:()=>WC,sensor_mpython_qmi8658_temperature:()=>KC,sensor_onboard_compass_reset:()=>BC,sensor_onboard_mpu9250_calibrate_compass:()=>bC,sensor_onboard_mpu9250_field_strength:()=>VC,sensor_onboard_mpu9250_gesture:()=>vC,sensor_onboard_mpu9250_get_acceleration:()=>YC,sensor_onboard_mpu9250_get_gyro:()=>xC,sensor_onboard_mpu9250_get_magnetic:()=>XC,sensor_onboard_mpu9250_temperature:()=>yC,sensor_pin_near:()=>rS,sensor_pin_pressed:()=>uS,sensor_read:()=>hS,sensor_rm_acc:()=>qC,sensor_rm_battery_left:()=>QC,sensor_rm_pin_near_double:()=>JC,sensor_rtc_init:()=>mC,sensor_sound:()=>cC,sensor_temperature:()=>TS,simulated_light_sensor:()=>NS});var w={};t.r(w),t.d(w,{serial_any:()=>yS,serial_begin:()=>wS,serial_print:()=>vS,serial_print_byte:()=>PS,serial_print_hex:()=>XS,serial_println:()=>YS,serial_read_from_ai:()=>jS,serial_readline:()=>VS,serial_readstr:()=>bS,serial_readstr_until:()=>BS,serial_receive_data_event:()=>xS,serial_send_to_ai:()=>zS,serial_softserial:()=>US,serial_softserial_new:()=>GS,system_input:()=>HS,system_print:()=>kS,system_print_container:()=>QS,system_print_end:()=>KS,system_print_inline:()=>WS,system_print_item:()=>qS,system_print_many:()=>JS});var H={};t.r(H),t.d(H,{Panic_with_status_code:()=>eA,Timer_init:()=>MA,base_delay:()=>EA,controls_delay:()=>tA,controls_delay_new:()=>ZS,controls_millis:()=>nA,controls_uname:()=>oA,raw_block:()=>sA,reset:()=>iA,set_system_timer:()=>rA,system_bitbot_shutdown:()=>TA,system_machine_reset:()=>IA,system_ticks_diff:()=>aA,system_timer:()=>pA,system_timer_init:()=>uA,system_wdt_feed:()=>lA,system_wdt_init:()=>dA,time_ticks_diff:()=>mA,timer:()=>_A,timer2:()=>hA});var k={};t.r(k),t.d(k,{Air_daily_content:()=>vA,Air_now_content:()=>AA,Geo_moon_content:()=>XA,Geo_sun_content:()=>YA,Life_suggestion_content:()=>NA,Location_search_content:()=>fA,Tide_daily_content:()=>DA,WEATHER_DAILY:()=>cA,WEATHER_HOUR:()=>gA,WEATHER_NOW:()=>RA,Weather_alarm_content:()=>LA,Weather_daily:()=>FA,Weather_daily_content:()=>PA,Weather_now:()=>CA,Weather_now_content:()=>SA});var W={};t.r(W),t.d(W,{PIN_init:()=>xL,actuator_extern_get_led_bright:()=>eL,actuator_extern_get_led_state:()=>iL,actuator_extern_led_bright:()=>tL,actuator_extern_led_brightness:()=>nL,actuator_ms32006_dcmotor:()=>wA,actuator_ms32006_init:()=>UA,actuator_ms32006_stepper:()=>HA,actuator_neopixel_init:()=>sL,actuator_neopixel_rgb:()=>pL,actuator_neopixel_rgb_all:()=>oL,actuator_neopixel_rgb_show_all_chase:()=>aL,actuator_neopixel_rgb_show_all_rainbow:()=>uL,actuator_neopixel_write:()=>_L,actuator_use_uart_init:()=>rL,esp32_music_get_tempo_extern:()=>zA,esp32_music_pitch:()=>WA,esp32_music_pitch_init:()=>kA,esp32_music_pitch_with_time:()=>KA,esp32_music_play_list:()=>jA,esp32_music_reset_extern:()=>$A,esp32_music_set_tempo_extern:()=>qA,esp32_music_stop:()=>JA,esp32_set_music_volume:()=>QA,mixbot_actuator_extern_get_addr:()=>YL,mixbot_actuator_extern_set_addr:()=>XL,mixbot_addr_extern:()=>RL,parrot_PIN_init:()=>BL,parrot_move_speed:()=>GL,pin_led_bright:()=>bL,player_play_music:()=>ML,player_set_mode:()=>TL,player_set_play:()=>lL,player_set_volume:()=>IL,player_whether_stop:()=>dL,robot_led_extern:()=>SL,robot_led_extern_get_value:()=>AL,robot_motor_extern:()=>cL,robot_motor_extern_get_speed:()=>gL,robot_servo_extern_absolute_run:()=>fL,robot_servo_extern_get_status:()=>LL,robot_servo_extern_relative_continue:()=>vL,robot_servo_extern_relative_origin:()=>FL,robot_servo_extern_relative_run:()=>PL,robot_servo_extern_stop:()=>DL,robot_servo_extern_stop_mode:()=>NL,robot_traffic_light_extern:()=>CL,servo_PIN_init:()=>yL,servo_get_angle:()=>BA,servo_get_speed:()=>GA,servo_init:()=>xA,servo_move:()=>ZA,servo_move_angle:()=>VL,servo_set_angle:()=>yA,servo_set_speed:()=>VA,servo_speed_360:()=>bA,syn6288_builtin_voice:()=>EL,syn6288_get_voice:()=>mL,syn6288_set_voice:()=>hL,syn6288_tts_play:()=>OL});var K={};t.r(K),t.d(K,{actuator_dc_motor:()=>MN,actuator_dc_motor_stop:()=>hN,actuator_get_led_bright:()=>$L,actuator_get_led_state:()=>ZL,actuator_led_bright:()=>jL,actuator_led_brightness:()=>tN,actuator_mixbot_buzzer_on_off:()=>cN,actuator_mixgo_nova_mic_get:()=>LN,actuator_mixgo_nova_mic_set:()=>AN,actuator_mixgo_nova_onboard_music_pitch:()=>vN,actuator_mixgo_nova_onboard_music_stop:()=>YN,actuator_mixgo_nova_play_audio:()=>FN,actuator_mixgo_nova_play_online_audio:()=>PN,actuator_mixgo_nova_record_audio:()=>fN,actuator_mixgo_nova_voice_get:()=>DN,actuator_mixgo_nova_voice_set:()=>NN,actuator_mixgo_zero_led_color:()=>eN,actuator_onboard_neopixel_rgb:()=>aN,actuator_onboard_neopixel_rgb_all:()=>uN,actuator_onboard_neopixel_rgb_show_all_chase:()=>rN,actuator_onboard_neopixel_rgb_show_all_rainbow:()=>dN,actuator_onboard_neopixel_write:()=>pN,actuator_stepper_keep:()=>IN,actuator_stepper_stop:()=>TN,analog_ble_keyboard_init:()=>kN,analog_ble_keyboard_input:()=>JN,analog_ble_keyboard_mouse_init:()=>eD,analog_ble_keyboard_mouse_input:()=>oD,analog_ble_keyboard_mouse_send_battery:()=>sD,analog_ble_keyboard_mouse_str:()=>_D,analog_ble_keyboard_send_battery:()=>qN,analog_ble_keyboard_str:()=>QN,analog_ble_mouse_init:()=>zN,analog_ble_mouse_input:()=>ZN,analog_ble_mouse_keyboard_input:()=>pD,analog_ble_mouse_send_battery:()=>tD,analog_keyboard_input:()=>yN,analog_keyboard_str:()=>wN,analog_mouse_input:()=>GN,backstage_onboard_music_play_list:()=>JL,bitbot_motor:()=>SN,bitbot_move:()=>gN,bitbot_stop:()=>CN,ble_keyboard_connect:()=>KN,ble_keyboard_get_mac:()=>WN,ble_keyboard_mouse_connect:()=>nD,ble_keyboard_mouse_get_mac:()=>iD,ble_mouse_connect:()=>$N,ble_mouse_get_mac:()=>jN,cc_number:()=>iN,educore_ble_keyboard_input:()=>mD,educore_ble_sensor_connected:()=>hD,educore_ble_sensor_init:()=>MD,educore_buzzer:()=>aD,educore_buzzer_play_tone:()=>uD,educore_buzzer_play_tone_time:()=>rD,educore_buzzer_stop:()=>dD,educore_neopixel_clear:()=>TD,educore_neopixel_rgb:()=>ID,educore_rgb_light:()=>lD,esp32_music_get_tempo:()=>wL,esp32_music_reset:()=>QL,esp32_music_set_tempo:()=>UL,esp32_onboard_music_pitch:()=>HL,esp32_onboard_music_pitch_with_time:()=>kL,esp32_onboard_music_play_list:()=>KL,esp32_onboard_music_stop:()=>WL,general_key:()=>BN,general_key_tuple:()=>HN,get_keyboard_light:()=>ED,get_power_output:()=>xN,ledswitch:()=>zL,mixbot_motor:()=>RN,mixbot_motor_status:()=>mN,mixbot_move:()=>EN,mixbot_stop:()=>ON,mouse_key:()=>UN,number:()=>qL,record_audio:()=>RD,rm_actuator_get_led_bright:()=>sN,rm_actuator_get_led_state:()=>oN,rm_actuator_led_bright:()=>nN,rm_actuator_led_brightness:()=>_N,rm_motor:()=>lN,set_all_power_output:()=>bN,set_microphone_amplification:()=>OD,set_music_volume:()=>cD,set_power_output:()=>XN,special_key:()=>VN});var J={};t.r(J),t.d(J,{ai_sensor_20object:()=>tf,ai_sensor_ailocal_class:()=>HD,ai_sensor_ailocal_class_result:()=>kD,ai_sensor_ailocal_train:()=>wD,ai_sensor_asr_recognize:()=>qD,ai_sensor_audio_play:()=>KD,ai_sensor_audio_record:()=>WD,ai_sensor_barcode:()=>DD,ai_sensor_circle:()=>XD,ai_sensor_classifier_faces:()=>ZD,ai_sensor_color:()=>VD,ai_sensor_color_chases:()=>UD,ai_sensor_color_chases_result:()=>GD,ai_sensor_config:()=>SD,ai_sensor_face:()=>$D,ai_sensor_find_20objects:()=>ef,ai_sensor_find_barcodes:()=>fD,ai_sensor_find_circles:()=>xD,ai_sensor_find_colors:()=>BD,ai_sensor_find_licenseplates:()=>jD,ai_sensor_find_lines:()=>YD,ai_sensor_find_qrcodes:()=>ND,ai_sensor_find_rects:()=>yD,ai_sensor_find_tags:()=>PD,ai_sensor_licenseplate:()=>zD,ai_sensor_line:()=>vD,ai_sensor_qrcode:()=>LD,ai_sensor_qrcode_lite:()=>CD,ai_sensor_rect:()=>bD,ai_sensor_rgb:()=>AD,ai_sensor_tag:()=>FD,ai_sensor_use_uart_init:()=>gD,ai_sensor_yolo_recognize:()=>JD,ai_sensor_yolo_recognize_result:()=>QD});var Q={};t.r(Q),t.d(Q,{MICROPYTHON_AI_Speech_asr:()=>of,MICROPYTHON_AI_Speech_unit:()=>sf,MICROPYTHON_AI_client:()=>nf});var q={};t.r(q),t.d(q,{mpython_blynk_app_data:()=>mf,mpython_blynk_app_notify:()=>lf,mpython_blynk_email:()=>Ef,mpython_blynk_get_timers:()=>Tf,mpython_blynk_on_connected:()=>uf,mpython_blynk_on_disconnected:()=>af,mpython_blynk_run:()=>df,mpython_blynk_sensor_data_to_app:()=>hf,mpython_blynk_set_property:()=>Of,mpython_blynk_setup:()=>Rf,mpython_blynk_stop_timers:()=>If,mpython_blynk_sync_virtual:()=>pf,mpython_blynk_terminal_widget_vpin:()=>_f,mpython_blynktimer:()=>Mf,mpython_blynktimer_run:()=>rf});var z={};t.r(z),t.d(z,{communicate_bluetooth_central_init:()=>eF,communicate_bluetooth_connect:()=>sF,communicate_bluetooth_disconnect:()=>oF,communicate_bluetooth_handle:()=>dF,communicate_bluetooth_is_connected:()=>pF,communicate_bluetooth_mac:()=>_F,communicate_bluetooth_peripheral_init:()=>iF,communicate_bluetooth_recv:()=>rF,communicate_bluetooth_recv_only:()=>uF,communicate_bluetooth_scan:()=>nF,communicate_bluetooth_send:()=>aF,communicate_espnow_init:()=>lF,communicate_espnow_init_new:()=>IF,communicate_i2c_available:()=>Df,communicate_i2c_init:()=>Cf,communicate_i2c_master_read:()=>Nf,communicate_i2c_onboard:()=>cf,communicate_i2c_read:()=>Sf,communicate_i2c_scan:()=>Lf,communicate_i2c_write:()=>Af,communicate_ir_recv_init:()=>Wf,communicate_ir_send_init:()=>zf,communicate_ow_init:()=>Bf,communicate_ow_read:()=>wf,communicate_ow_reset:()=>Uf,communicate_ow_scan:()=>Gf,communicate_ow_select:()=>kf,communicate_ow_write:()=>Hf,communicate_spi_buffer:()=>vf,communicate_spi_init:()=>Ff,communicate_spi_onboard:()=>gf,communicate_spi_read:()=>Yf,communicate_spi_read_output:()=>Xf,communicate_spi_readinto:()=>xf,communicate_spi_readinto_output:()=>bf,communicate_spi_set:()=>Pf,communicate_spi_write:()=>yf,communicate_spi_write_readinto:()=>Vf,espnow_radio_channel:()=>OF,espnow_radio_channel_new:()=>cF,espnow_radio_on_off:()=>gF,espnow_radio_rec:()=>SF,espnow_radio_recv:()=>LF,espnow_radio_recv_certain_msg:()=>NF,espnow_radio_recv_certain_msg_new:()=>fF,espnow_radio_recv_msg:()=>AF,espnow_radio_recv_new:()=>DF,espnow_radio_send:()=>CF,espnow_radio_txpower:()=>RF,i2c_slave_onreceive:()=>ff,internal_variable:()=>Kf,ir_recv_timeout:()=>qf,ir_transmit_busy:()=>tF,ir_transmit_conventional_data:()=>jf,ir_transmit_raw_code:()=>Zf,ir_transmit_study_code:()=>$f,ir_whether_recv:()=>Qf,lora_init:()=>FF,lora_packet:()=>PF,lora_recv:()=>YF,lora_send:()=>vF,network_espnow_info:()=>MF,network_espnow_mac:()=>TF,network_espnow_recv:()=>hF,network_espnow_recv_handle:()=>EF,network_espnow_send:()=>mF,recv_fun:()=>Jf,urequests_attribute:()=>xF,urequests_get:()=>XF,urequests_method:()=>bF});var j={};t.r(j),t.d(j,{display_animate:()=>pP,display_circle:()=>aP,display_color_seclet:()=>OP,display_draw_4strings:()=>tP,display_fill:()=>_P,display_lcd_use_i2c_init:()=>AP,display_line:()=>nP,display_line_arbitrarily:()=>eP,display_matrix_extern_bright_point:()=>JF,display_matrix_extern_bright_screen:()=>qF,display_matrix_extern_clear:()=>kF,display_matrix_extern_get_pixel:()=>KF,display_matrix_extern_get_screen_pixel:()=>QF,display_matrix_extern_image_builtins:()=>zF,display_matrix_extern_scroll_string:()=>wF,display_matrix_extern_scroll_string_delay:()=>HF,display_matrix_extern_shift:()=>WF,display_matrix_extern_show_frame_string:()=>GF,display_matrix_extern_show_frame_string_delay:()=>UF,display_matrix_extern_show_image:()=>VF,display_matrix_extern_show_image_or_string_delay:()=>BF,display_matrix_use_i2c_init:()=>yF,display_oled_drawPixel:()=>dP,display_oled_showBitmap:()=>rP,display_oled_use_i2c_init:()=>FP,display_onoff:()=>sP,display_rect:()=>iP,display_tm1650_power:()=>IP,display_tm1650_set_brightness:()=>hP,display_tm1650_show_dot:()=>MP,display_tm1650_show_num:()=>TP,display_tm_use_i2c_init:()=>lP,display_triangle:()=>uP,display_use_i2c_init:()=>ZF,extern_oled_bright_point:()=>wP,extern_oled_clear:()=>BP,extern_oled_get_pixel:()=>UP,extern_oled_hvline:()=>kP,extern_oled_line:()=>WP,extern_oled_scroll_string:()=>yP,extern_oled_scroll_string_delay:()=>VP,extern_oled_shape_rect:()=>HP,extern_oled_shift:()=>GP,extern_oled_show_frame_string:()=>xP,extern_oled_show_frame_string_delay:()=>bP,extern_oled_show_image:()=>PP,extern_oled_show_image_or_string_delay:()=>XP,extern_oled_show_image_xy:()=>vP,extern_oled_show_string:()=>YP,image_shift:()=>oP,lcd_backlight:()=>DP,lcd_clear:()=>fP,lcd_print_string:()=>NP,lcd_show_image_or_string_delay:()=>LP,matrix_extern_image_arithmetic:()=>jF,matrix_extern_image_invert:()=>$F,tft_fill:()=>CP,tft_line_arbitrarily:()=>SP,tft_scroll_string_delay:()=>gP,tft_show_frame_string_delay:()=>cP,tft_show_image_or_string_delay:()=>RP,tft_show_image_xy:()=>EP,tft_use_spi_init:()=>mP});var $={};t.r($),t.d($,{bitbot_display_bitmap_create:()=>Vv,bitbot_display_image_create:()=>yv,display_available:()=>ov,display_bitmap_create:()=>nv,display_bright_point:()=>rv,display_bright_screen:()=>lv,display_clear:()=>sv,display_get_pixel:()=>uv,display_get_screen_pixel:()=>dv,display_image_builtins:()=>tv,display_image_builtins_all:()=>ev,display_image_create:()=>iv,display_scroll_string:()=>zP,display_scroll_string_delay:()=>jP,display_scroll_way:()=>$P,display_shift:()=>av,display_show_frame_string:()=>QP,display_show_frame_string_delay:()=>qP,display_show_image:()=>KP,display_show_image_or_string_delay:()=>JP,draw_pointer:()=>eY,image_arithmetic:()=>_v,image_invert:()=>pv,mixbot_display_bitmap_create:()=>vv,mixbot_display_bright_screen:()=>xv,mixbot_display_get_ambientbright:()=>Xv,mixbot_display_get_screen_pixel:()=>Yv,mixbot_display_image_create:()=>Pv,mixbot_display_rotate:()=>bv,mixgo_display_bitmap_create:()=>Ov,mixgo_display_image_create_new:()=>Ev,mixgome_display_bitmap_create:()=>Tv,mixgome_display_font:()=>mv,mixgome_display_image_create:()=>Iv,mixgomini_display_bitmap_create:()=>hv,mixgomini_display_image_create:()=>Mv,mpython_display_hvline:()=>fv,mpython_display_line:()=>Fv,mpython_display_shape_rect:()=>Dv,mpython_pbm_image:()=>Rv,nova_draw_pointer:()=>iY,onboard_oled_bright_point:()=>Nv,onboard_oled_scroll_string_delay:()=>Lv,onboard_oled_show_frame_string_delay:()=>Av,onboard_oled_show_image:()=>cv,onboard_oled_show_image_or_string_delay:()=>Sv,onboard_oled_show_image_xy:()=>gv,onboard_oled_show_string:()=>Cv,onboard_tft_bright_point:()=>Jv,onboard_tft_bright_screen:()=>aY,onboard_tft_clear:()=>uY,onboard_tft_clock_clear:()=>Zv,onboard_tft_clock_draw:()=>$v,onboard_tft_clock_get_rtctime:()=>zv,onboard_tft_clock_init:()=>qv,onboard_tft_clock_set_time:()=>jv,onboard_tft_display_hvline:()=>kv,onboard_tft_display_line:()=>Wv,onboard_tft_display_shape_circle:()=>tY,onboard_tft_display_shape_rect:()=>Hv,onboard_tft_fill:()=>Qv,onboard_tft_get_pixel:()=>Kv,onboard_tft_get_screen_pixel:()=>pY,onboard_tft_scroll_string_delay:()=>ZP,onboard_tft_shift:()=>_Y,onboard_tft_show_frame_string:()=>oY,onboard_tft_show_frame_string_delay:()=>wv,onboard_tft_show_image:()=>sY,onboard_tft_show_image_or_string_delay:()=>Uv,onboard_tft_show_image_xy:()=>Bv,onboard_tft_show_image_xy_direct:()=>Gv,onboard_tft_show_texts:()=>nY});var Z={};t.r(Z),t.d(Z,{factory_block:()=>mY,factory_block_return:()=>EY,factory_block_return_with_textarea:()=>RY,factory_block_with_textarea:()=>OY,factory_callMethod_noreturn:()=>MY,factory_callMethod_return:()=>hY,factory_declare:()=>TY,factory_from_import:()=>rY,factory_function_noreturn:()=>lY,factory_function_return:()=>IY,factory_import:()=>dY,folding_block:()=>cY});var tt={};t.r(tt),t.d(tt,{inout_analog_atten:()=>bY,inout_analog_read:()=>fY,inout_analog_read_init:()=>xY,inout_analog_write:()=>LY,inout_analog_write_init:()=>XY,inout_analog_write_set:()=>NY,inout_digital_init:()=>vY,inout_digital_read:()=>SY,inout_digital_write:()=>CY,inout_highlow:()=>gY,inout_pin_attachInterrupt:()=>PY,inout_pin_pressed:()=>FY,inout_pin_pressed_init:()=>yY,inout_pwm_analog_write:()=>AY,inout_pwm_analog_write_init:()=>YY,inout_pwm_analog_write_set_freq:()=>DY});var et={};t.r(et),t.d(et,{IOT_CONNECT_OLLAMA:()=>lX,IOT_EMQX_INIT_AND_CONNECT_BY_MIXLY_CODE:()=>nX,IOT_EMQX_INIT_AND_CONNECT_BY_SHARE_CODE:()=>eX,IOT_EMQX_PING:()=>sX,IOT_FORMATTING:()=>ZY,IOT_FORMAT_STRING:()=>tX,IOT_MIXIO_NTP:()=>oX,IOT_MIXIO_PUBLISH:()=>WY,IOT_MIXIO_PUBLISHEX:()=>KY,IOT_MIXIO_SUBSCRIBE:()=>JY,iot_client_onboard:()=>_X,iot_connect_ollama:()=>dX,iot_connect_openai:()=>IX,iot_http_client:()=>pX,iot_http_data:()=>aX,iot_mixio_check:()=>zY,iot_mixio_connect:()=>kY,iot_mixio_connect_only:()=>qY,iot_mixio_disconnect:()=>QY,iot_mixio_format_msg:()=>$Y,iot_mixio_format_topic:()=>jY,iot_mixly_key:()=>iX,iot_mqtt_client:()=>uX,iot_mqtt_data:()=>rX,iot_onenet_check:()=>wY,iot_onenet_connect:()=>BY,iot_onenet_disconnect:()=>GY,iot_onenet_publish:()=>HY,iot_onenet_publish_dict:()=>UY,iot_tiny_web_db_count:()=>cX,iot_tiny_web_db_delete:()=>CX,iot_tiny_web_db_get:()=>RX,iot_tiny_web_db_init:()=>mX,iot_tiny_web_db_init_with_mqtt:()=>EX,iot_tiny_web_db_search:()=>gX,iot_tiny_web_db_update:()=>OX,iot_wifi_connect:()=>VY,ollama_empty_history:()=>hX,use_ollama_llm_to_chat:()=>TX,use_ollama_llm_to_chat_return:()=>MX});var it={};t.r(it),t.d(it,{educore_mqtt_connect:()=>ex,educore_mqtt_connect_success:()=>ox,educore_mqtt_subscribe_message:()=>ix,educore_mqtt_topic_publish:()=>sx,educore_mqtt_topic_subscribe:()=>nx,educore_wifi_connect:()=>tx,network_ap_connect:()=>vX,network_connect:()=>AX,network_get_connect:()=>NX,network_get_wifi:()=>PX,network_init:()=>SX,network_is_active:()=>FX,network_open:()=>fX,network_scan:()=>YX,network_server:()=>XX,network_socket_accept:()=>BX,network_socket_bind:()=>bX,network_socket_close:()=>WX,network_socket_connect:()=>yX,network_socket_init:()=>xX,network_socket_listen:()=>VX,network_socket_readline:()=>GX,network_socket_receive:()=>UX,network_socket_receive_from:()=>HX,network_socket_send:()=>wX,network_socket_send_to:()=>kX,network_stop:()=>DX,network_wifi_connect:()=>LX,ntptime_address:()=>zX,ntptime_time:()=>qX,requests_attribute:()=>JX,requests_attribute2:()=>$X,requests_get:()=>KX,requests_get2:()=>jX,requests_method:()=>QX,requests_post:()=>ZX});var nt={};t.r(nt),t.d(nt,{pe_g1_battery_left:()=>px,pe_g1_dc_motor:()=>ax,pe_g1_dc_motor_speed:()=>ux,pe_g1_servo_get_angle:()=>lx,pe_g1_servo_get_speed:()=>Ix,pe_g1_servo_set_angle:()=>rx,pe_g1_servo_set_speed:()=>dx,pe_g1_use_i2c_init:()=>_x});var st={};t.r(st),t.d(st,{CI130X_BROADCAST:()=>bx,CI130X_GET_THE_RECOGNIZED_CMD:()=>xx,CI130X_GET_WHETHER_IDENTIFY:()=>Xx,CI130X_IDENTIFY_AND_SAVE:()=>Yx,CI130X_SET_SYSTEM_CMD:()=>yx,HCSR04:()=>Mb,PS2_Button:()=>Eb,PS2_Buttons:()=>Ob,PS2_Buttons_new:()=>Nb,PS2_State:()=>Rb,PS2_init:()=>hb,PS2_init_new:()=>Ab,PS2_stk:()=>cb,PS2_stk_new:()=>Db,PS2_vibration:()=>mb,PS2_vibration_new:()=>Lb,RTC_get_time:()=>Cb,RTC_set_date:()=>cx,RTC_set_datetime:()=>gb,RTC_set_time:()=>Rx,camera_sensor_init:()=>oy,camera_sensor_result:()=>_y,column_tube_foot:()=>ry,define_keyboards:()=>dy,educore_body_sensor:()=>qb,educore_button_sensor_extern:()=>Zb,educore_camera_sensor:()=>sy,educore_infrared_sensor:()=>$b,educore_soilhum_sensor:()=>zb,educore_temp_sensor:()=>ny,educore_temphum_sensor:()=>jb,educore_ultrasonic_sensor:()=>ey,esp32_s2_weather_init:()=>db,esp32_s2_weather_rain:()=>Ib,esp32_s2_weather_wd:()=>lb,esp32_s2_weather_ws:()=>Tb,extern_rfid_read:()=>Zx,extern_rfid_readcontent:()=>eb,extern_rfid_readid:()=>tb,extern_rfid_status:()=>sb,extern_rfid_write:()=>ib,extern_rfid_write_return:()=>nb,get_keboards_value:()=>Iy,gnss_get_data:()=>Pb,gnss_have_data:()=>vb,init_init_rotary_encoder:()=>Ty,init_matrix_keyboard:()=>ly,interaction_whether_to_interaction:()=>Px,interaction_whether_to_interaction_SANT:()=>vx,line_tube_foot:()=>uy,mixbot_sensor_extern_get_addr:()=>wb,mixbot_sensor_extern_set_addr:()=>Hb,pm25_get_data:()=>Fb,radar_set_DETECTION_THRESHOLD:()=>fx,radar_set_DETECTION_THRESHOLD_SANT:()=>Fx,robot_button_extern_get_value:()=>Xb,robot_color_extern_get_value:()=>Bb,robot_infrared_extern_get_value:()=>bb,robot_infrared_extern_grey_get_value:()=>yb,robot_potentiometer_extern_get_value:()=>Vb,robot_sonar_extern_get_value:()=>Gb,robot_sonar_extern_led:()=>Ub,robot_touch_extern_get_value:()=>xb,rotary_key:()=>My,sensor_APDS9960_extern:()=>Bx,sensor_DS18X20:()=>Qb,sensor_LTR308_extern:()=>Gx,sensor_LTR390UV_extern:()=>Jx,sensor_MAX30102_extern:()=>Vx,sensor_QMC5883L_extern:()=>Qx,sensor_VL530LX_extern:()=>jx,sensor_aht11_extern:()=>zx,sensor_bmp:()=>Lx,sensor_dht11:()=>Sb,sensor_distance_hrsc04:()=>Ox,sensor_hp203_extern:()=>Ux,sensor_ltr381_extern:()=>Wx,sensor_mixgo_extern_button_attachInterrupt:()=>mx,sensor_mixgo_extern_button_get_presses:()=>hx,sensor_mixgo_extern_button_is_pressed:()=>Tx,sensor_mixgo_extern_button_was_pressed:()=>Mx,sensor_mixgo_extern_light:()=>gx,sensor_mixgo_extern_pin_near:()=>Sx,sensor_mixgo_extern_sound:()=>Cx,sensor_mixgoce_hot_wheel_degrees:()=>rb,sensor_mixgoce_hot_wheel_is_touched:()=>ub,sensor_mpu9250_attachGestureInterrupt:()=>Ex,sensor_ms5611_extern:()=>Hx,sensor_ms5611_extern_altitude:()=>kx,sensor_read_humiture:()=>ty,sensor_rtc_init:()=>Ax,sensor_sht:()=>Nx,sensor_shtc3_extern:()=>qx,sensor_spl06_001_extern:()=>wx,sensor_ucs12071_extern:()=>Kx,sensor_use_i2c_init:()=>Dx,sensor_use_spi_init:()=>$x,sensor_use_uart_init:()=>fb,sensor_weather_solo_init:()=>kb,sensor_weather_solo_rain:()=>Jb,sensor_weather_solo_wd:()=>Wb,sensor_weather_solo_ws:()=>Kb,sensor_weigh_init:()=>py,tvoc_get_data:()=>Yb,ultrasonic_sensor_read_distance:()=>iy,weather_data:()=>ob,weather_have_data:()=>_b,weather_set_label:()=>ab,weather_uart_mixio:()=>pb,weigh_sensor_get_weight:()=>ay});var ot={};t.r(ot),t.d(ot,{HCSR04:()=>Sy,bitbot_als_num:()=>KV,dht11:()=>tB,educore_button_sensor:()=>pB,educore_button_was_pressed:()=>aB,educore_gyroscope_sensor:()=>sB,educore_gyroscope_sensor_read:()=>oB,educore_gyroscope_sensor_shake:()=>_B,educore_light_sensor:()=>nB,educore_rfid_sensor:()=>uB,educore_rfid_sensor_scan:()=>rB,educore_rfid_sensor_scan_data:()=>dB,educore_voice_sensor:()=>eB,number1:()=>Ay,number2:()=>Ly,number3:()=>Ny,number4:()=>Dy,number5:()=>fy,number6:()=>Fy,number7:()=>Py,onboard_RTC_get_time:()=>gV,onboard_RTC_get_time_str:()=>AV,onboard_RTC_get_timestamp:()=>CV,onboard_RTC_get_timetuple_to_str:()=>LV,onboard_RTC_set_datetime:()=>RV,onboard_RTC_settime_string:()=>cV,onboard_RTC_timestamp_totuple:()=>SV,rfid_readcontent:()=>Jy,rfid_readid:()=>Ky,rfid_status:()=>zy,rfid_write:()=>Qy,rfid_write_return:()=>qy,sensor_LTR308:()=>Uy,sensor_adxl345_get_acceleration:()=>oV,sensor_aht11:()=>ky,sensor_bitbot_ALS:()=>WV,sensor_button_get_presses:()=>qV,sensor_button_is_pressed:()=>JV,sensor_button_was_pressed:()=>QV,sensor_compass_reset:()=>dV,sensor_ds18x20:()=>By,sensor_eulerangles:()=>$y,sensor_get_acceleration:()=>jy,sensor_get_temperature:()=>Wy,sensor_get_the_coprocessor_version:()=>lB,sensor_hp203:()=>Hy,sensor_light:()=>ZV,sensor_lm35:()=>Gy,sensor_mixbot_get_gyro:()=>kV,sensor_mixbot_patrol_calibrate:()=>UV,sensor_mixbot_patrol_value:()=>wV,sensor_mixbot_temperature:()=>HV,sensor_mixgo_LTR308:()=>by,sensor_mixgo_button_attachInterrupt:()=>Oy,sensor_mixgo_button_get_presses:()=>Ey,sensor_mixgo_button_is_pressed:()=>hy,sensor_mixgo_button_was_pressed:()=>my,sensor_mixgo_cc_mmc5603_calibrate_compass:()=>fV,sensor_mixgo_cc_mmc5603_get_angle:()=>DV,sensor_mixgo_cc_mmc5603_get_magnetic:()=>NV,sensor_mixgo_light:()=>$V,sensor_mixgo_nova_LTR308:()=>Vy,sensor_mixgo_nova_pin_near:()=>xy,sensor_mixgo_pin_near:()=>Xy,sensor_mixgo_pin_near_double:()=>Yy,sensor_mixgo_pin_near_single:()=>vy,sensor_mixgo_pin_pressed:()=>nV,sensor_mixgo_sant_color:()=>yy,sensor_mixgo_touch_slide:()=>iV,sensor_mixgocar42_button_attachInterrupt:()=>Cy,sensor_mixgocar42_button_get_presses:()=>gy,sensor_mixgocar42_button_is_pressed:()=>Ry,sensor_mixgocar42_button_was_pressed:()=>cy,sensor_mixgocar_battery_left:()=>GV,sensor_mixgocar_pin_near:()=>VV,sensor_mixgocar_pin_near_line:()=>yV,sensor_mixgocar_pin_near_state_change:()=>BV,sensor_mixgoce_pin_pressed:()=>eV,sensor_mixgoce_temperature:()=>PV,sensor_mixgome_temperature:()=>FV,sensor_mpu9250_calibrate_compass:()=>aV,sensor_mpu9250_field_strength:()=>rV,sensor_mpu9250_gesture:()=>Zy,sensor_mpu9250_get_acceleration:()=>tV,sensor_mpu9250_get_gyro:()=>pV,sensor_mpu9250_get_magnetic:()=>_V,sensor_mpu9250_temperature:()=>uV,sensor_mpython_pin_pressed:()=>sV,sensor_mpython_qmi8658_get_gyro:()=>vV,sensor_mpython_qmi8658_temperature:()=>YV,sensor_onboard_compass_reset:()=>OV,sensor_onboard_mpu9250_calibrate_compass:()=>hV,sensor_onboard_mpu9250_field_strength:()=>EV,sensor_onboard_mpu9250_gesture:()=>lV,sensor_onboard_mpu9250_get_acceleration:()=>IV,sensor_onboard_mpu9250_get_gyro:()=>MV,sensor_onboard_mpu9250_get_magnetic:()=>TV,sensor_onboard_mpu9250_temperature:()=>mV,sensor_pin_near:()=>jV,sensor_pin_pressed:()=>zV,sensor_read:()=>iB,sensor_rm_acc:()=>bV,sensor_rm_battery_left:()=>xV,sensor_rm_pin_near_double:()=>XV,sensor_sound:()=>wy,simulated_light_sensor:()=>IB});var _t={};t.r(_t),t.d(_t,{serial_any:()=>EB,serial_print:()=>TB,serial_print_byte:()=>MB,serial_print_hex:()=>mB,serial_println:()=>hB,serial_read_from_ai:()=>fB,serial_readline:()=>RB,serial_readstr:()=>OB,serial_send_to_ai:()=>DB,serial_softserial:()=>cB,serial_softserial_new:()=>gB,system_input:()=>CB,system_print:()=>SB,system_print_end:()=>LB,system_print_inline:()=>AB,system_print_many:()=>NB});var pt={};t.r(pt),t.d(pt,{Panic_with_status_code:()=>UB,Timer_init:()=>nG,base_delay:()=>_G,controls_delay:()=>KB,controls_delay_new:()=>JB,controls_end_program:()=>HB,controls_millis:()=>wB,controls_uname:()=>WB,reset:()=>kB,set_system_timer:()=>qB,system_bitbot_shutdown:()=>iG,system_device_name:()=>BB,system_device_serial_number:()=>GB,system_event_bus_source:()=>yB,system_event_bus_value:()=>VB,system_machine_reset:()=>eG,system_on_event:()=>XB,system_raise_event:()=>YB,system_reset:()=>PB,system_run_in_background:()=>FB,system_ticks_diff:()=>zB,system_timer:()=>$B,system_timer_init:()=>jB,system_timestamp:()=>xB,system_value:()=>bB,system_wait:()=>vB,system_wdt_feed:()=>tG,system_wdt_init:()=>ZB,time_ticks_diff:()=>oG,timer:()=>QB,timer2:()=>sG});var at={};t.r(at),t.d(at,{Air_daily_content:()=>OG,Air_now_content:()=>lG,Geo_moon_content:()=>cG,Geo_sun_content:()=>RG,Life_suggestion_content:()=>TG,Location_search_content:()=>hG,Tide_daily_content:()=>MG,WEATHER_DAILY:()=>aG,WEATHER_HOUR:()=>uG,WEATHER_NOW:()=>pG,Weather_alarm_content:()=>IG,Weather_daily:()=>mG,Weather_daily_content:()=>EG,Weather_now:()=>rG,Weather_now_content:()=>dG});var ut={};t.r(ut),t.d(ut,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>SG});var rt={};t.r(rt),t.d(rt,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>LG});var dt={};t.r(dt),t.d(dt,{MICROPYTHON_CONFIG_MESSAGE_BURN_SPEED:()=>DG});var lt={};t.r(lt),t.d(lt,{analog_input:()=>UG,analog_output:()=>HG,espnow_channel:()=>VG,haskylens_model:()=>BG,i2c_A_pin:()=>kG,i2c_B_pin:()=>WG,pins_analog:()=>zG,pins_analog_pin:()=>jG,pins_axis:()=>IU,pins_brightness:()=>TU,pins_builtinimg:()=>_U,pins_builtinimg_extern:()=>pU,pins_button:()=>tU,pins_dac:()=>$G,pins_dac_pin:()=>ZG,pins_digital:()=>YG,pins_digital_dot:()=>gU,pins_digital_pin:()=>XG,pins_exlcdh:()=>dU,pins_exlcdv:()=>lU,pins_imglist:()=>aU,pins_input_pin:()=>xG,pins_mpython_touch:()=>yG,pins_one_more:()=>cU,pins_output_pin:()=>bG,pins_playlist:()=>uU,pins_playlist_extern:()=>rU,pins_pwm:()=>eU,pins_pwm_pin:()=>iU,pins_radio_datarate:()=>RU,pins_radio_power:()=>OU,pins_serial:()=>oU,pins_tone_notes:()=>EU,pins_touch:()=>sU,pins_touch_pin:()=>nU,pins_tts_bgmusic:()=>mU,pins_tts_builtin_music:()=>hU,pins_tts_voice:()=>MU,pwm_input:()=>GG,pwm_output:()=>wG,spi_A_pin:()=>KG,spi_B_pin:()=>JG,spi_C_pin:()=>QG,spi_D_pin:()=>qG,timer_id_pin:()=>CU});var It={};t.r(It),t.d(It,{espnow_channel:()=>YU,haskylens_model:()=>XU,pins_analog:()=>FU,pins_analog_pin:()=>fU,pins_axis:()=>JU,pins_brightness:()=>zU,pins_builtinimg:()=>wU,pins_builtinimg_extern:()=>HU,pins_button:()=>AU,pins_dac:()=>yU,pins_dac_pin:()=>bU,pins_digital:()=>SU,pins_digital_dot:()=>sw,pins_digital_pin:()=>LU,pins_exlcdh:()=>QU,pins_exlcdv:()=>qU,pins_imglist:()=>kU,pins_input_pin:()=>NU,pins_interrupt:()=>GU,pins_mpython_touch:()=>xU,pins_one_more:()=>nw,pins_output_pin:()=>DU,pins_playlist:()=>WU,pins_playlist_extern:()=>KU,pins_pwm:()=>vU,pins_pwm_pin:()=>PU,pins_radio_datarate:()=>iw,pins_radio_power:()=>ew,pins_serial:()=>UU,pins_tone_notes:()=>tw,pins_touch:()=>BU,pins_touch_pin:()=>VU,pins_tts_bgmusic:()=>ZU,pins_tts_builtin_music:()=>$U,pins_tts_voice:()=>jU,timer_id_pin:()=>ow});const Tt=Blockly,Mt=Mixly,ht={NAME_TYPE:"VARIABLE",allVariables:function(t){var e;if(t.getDescendants)e=t.getDescendants();else{if(!t.getAllBlocks)throw"Not Block or Workspace: "+t;e=t.getAllBlocks()}for(var i=Object.create(null),n=0;n1&&(_+=n)):i=_}else i="i";return i}},mt=ht; /** * @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 Et{constructor(t,e){if(this.variablePrefix_=e||"",this.reservedDict_=Object.create(null),t)for(var i=t.split(","),n=0;n0;s--)e.getInputTargetBlock("IF"+s)&&e.getInputTargetBlock("IF"+s).previousConnection?i[s]=e.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),e.getInputTargetBlock("DO"+s)&&e.getInputTargetBlock("DO"+s).previousConnection?n[s]=e.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(t.getAttribute("elseif"),10),this.elseCount_=parseInt(t.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(Tt.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+s).appendField(Tt.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(Tt.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(t){var e=t.newBlock("controls_if_if");e.initSvg();for(var i=e.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=t.newBlock("controls_if_elseif");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var o=t.newBlock("controls_if_else");o.initSvg(),i.connect(o.previousConnection)}return e},compose:function(t){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var e=this.elseifCount_;e>0;e--)this.removeInput("IF"+e),this.removeInput("DO"+e);this.elseifCount_=0;for(var i=t.getInputTargetBlock("STACK"),n=[null],s=[null],o=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_++,o=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,o)},saveConnections:function(t){for(var e=t.getInputTargetBlock("STACK"),i=1;e;){switch(e.type){case"controls_if_elseif":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);e.valueConnection_=n&&n.connection.targetConnection,e.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_if_else":s=this.getInput("ELSE");e.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}e=e.nextConnection&&e.nextConnection.targetBlock()}},rebuildShape_:function(){var t=[null],e=[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),o=this.getInput("DO"+n);console.log(s.connection.targetConnection),t.push(s.connection.targetConnection),e.push(o.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(t,e,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var t=1;this.getInput("IF"+t);)this.removeInput("IF"+t),this.removeInput("DO"+t),t++;for(t=1;t<=this.elseifCount_;t++)this.appendValueInput("IF"+t).setCheck([Number,Boolean]).appendField(Tt.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+t).appendField(Tt.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(Tt.Msg.CONTROLS_IF_MSG_ELSE)},reconnectChildBlocks_:function(t,e,i){for(var n=1;n<=this.elseifCount_;n++)t[n]&&t[n].reconnect(this,"IF"+n),e[n]&&e[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},yt={init:function(){this.setColour(Pt),this.appendValueInput("FROM").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.PYTHON_RANGE).appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.PYTHON_RANGE_STEP),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Tt.Msg.MIXLY_PYTHON_CONTROLS_RANGE_TOOLTIP)}},Vt={init:function(){this.setColour(Pt),this.appendValueInput("LIST").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.CONTROLS_FOREACH_INPUT),this.appendValueInput("VAR").appendField(Tt.Msg.CONTROLS_FOREACH_INPUT_ITEM),this.appendStatementInput("DO").appendField(Tt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip((function(){return Tt.Msg.CONTROLS_FOR_TOOLTIP.replace("“%1”","")}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},Bt={init:function(){this.setColour(Pt),this.appendValueInput("BOOL").setCheck([Boolean,Number]).appendField(Tt.Msg.MIXLY_MICROBIT_JS_CURRENT).appendField(new Tt.FieldDropdown(this.OPERATORS),"MODE"),this.appendStatementInput("DO").appendField(Tt.Msg.LANG_CONTROLS_WHILEUNTIL_TITLE_REPEAT+Tt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE");return{WHILE:Tt.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE,UNTIL:Tt.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}[e]}))}},Gt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PYTHON_TRY),this.appendStatementInput("try"),this.appendValueInput("IF1").appendField(Tt.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO1").appendField(""),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Tt.icons.MutatorIcon(["controls_except","controls_finally"],this)),this.setTooltip(Tt.Msg.MIXLY_MIXPY_CONTROL_TRY_TOOLTIP),this.elseifCount_=1,this.elseCount_=0},mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;var t=document.createElement("mutation");return this.elseifCount_&&t.setAttribute("elseif",this.elseifCount_),this.elseCount_&&t.setAttribute("else",1),t},domToMutation:function(t){var e=this,i=[],n=[];this.elseCount_&&this.removeInput("ELSE");for(var s=this.elseifCount_;s>0;s--)e.getInputTargetBlock("IF"+s)&&e.getInputTargetBlock("IF"+s).previousConnection?i[s]=e.getInputTargetBlock("IF"+s).previousConnection:i[s]=null,this.removeInput("IF"+s),e.getInputTargetBlock("DO"+s)&&e.getInputTargetBlock("DO"+s).previousConnection?n[s]=e.getInputTargetBlock("DO"+s).previousConnection:n[s]=null,this.removeInput("DO"+s);this.elseifCount_=parseInt(t.getAttribute("elseif"),10),this.elseCount_=parseInt(t.getAttribute("else"),10);for(s=1;s<=this.elseifCount_;s++)this.appendValueInput("IF"+s).setCheck([Boolean,Number]).appendField(Tt.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+s).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(Tt.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(t){var e=t.newBlock("controls_try");e.initSvg();for(var i=e.getInput("STACK").connection,n=1;n<=this.elseifCount_;n++){var s=t.newBlock("controls_except");s.initSvg(),i.connect(s.previousConnection),i=s.nextConnection}if(this.elseCount_){var o=t.newBlock("controls_finally");o.initSvg(),i.connect(o.previousConnection)}return e},compose:function(t){this.elseCount_&&this.removeInput("ELSE"),this.elseCount_=0;for(var e=this.elseifCount_;e>0;e--)this.removeInput("IF"+e),this.removeInput("DO"+e);this.elseifCount_=0;for(var i=t.getInputTargetBlock("STACK"),n=[null],s=[null],o=null;i;){switch(i.type){case"controls_except":this.elseifCount_++,n.push(i.valueConnection_),s.push(i.statementConnection_);break;case"controls_finally":this.elseCount_++,o=i.statementConnection_;break;default:throw Error("Unknown block type: "+i.type)}i=i.nextConnection&&i.nextConnection.targetBlock()}this.updateShape_(),this.reconnectChildBlocks_(n,s,o)},saveConnections:function(t){for(var e=t.getInputTargetBlock("STACK"),i=1;e;){switch(e.type){case"controls_except":var n=this.getInput("IF"+i),s=this.getInput("DO"+i);e.valueConnection_=n&&n.connection.targetConnection,e.statementConnection_=s&&s.connection.targetConnection,i++;break;case"controls_finally":s=this.getInput("ELSE");e.statementConnection_=s&&s.connection.targetConnection;break;default:throw"Unknown block type."}e=e.nextConnection&&e.nextConnection.targetBlock()}},rebuildShape_:function(){var t=[null],e=[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),o=this.getInput("DO"+n);console.log(s.connection.targetConnection),t.push(s.connection.targetConnection),e.push(o.connection.targetConnection),n++}this.updateShape_(),this.reconnectChildBlocks_(t,e,i)},updateShape_:function(){this.getInput("ELSE")&&this.removeInput("ELSE");for(var t=1;this.getInput("IF"+t);)this.removeInput("IF"+t),this.removeInput("DO"+t),t++;for(t=1;t<=this.elseifCount_;t++)this.appendValueInput("IF"+t).setCheck([Number,Boolean]).appendField(Tt.Msg.MIXLY_PYTHON_EXCEPT),this.appendStatementInput("DO"+t).appendField("");this.elseCount_&&this.appendStatementInput("ELSE").appendField(Tt.Msg.MIXLY_PYTHON_FINALLY)},reconnectChildBlocks_:function(t,e,i){for(var n=1;n<=this.elseifCount_;n++)t[n]&&t[n].reconnect(this,"IF"+n),e[n]&&e[n].reconnect(this,"DO"+n);i&&i.reconnect(this,"ELSE")}},Ut={init:function(){this.setColour(Pt);var t=new Tt.FieldDropdown(this.OPERATORS);this.appendDummyInput().appendField(t,"FLOW").appendField(Tt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_INPUT_OFLOOP),this.setPreviousStatement(!0),this.setTooltip(Tt.Msg.MIXLY_PYTHON_CONTROLS_FLOW_STATEMENTS_TOOLTIP);var e=this;this.setTooltip((function(){var t=e.getFieldValue("FLOW");return{BREAK:Tt.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK,CONTINUE:Tt.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}[t]}))},onchange:function(){if(this.workspace){var t=!1,e=this;do{if("controls_repeat"==e.type||"controls_for"==e.type||"controls_forEach"==e.type||"controls_repeat_ext"==e.type||"controls_whileUntil"==e.type||"do_while"==e.type){t=!0;break}e=e.getSurroundParent()}while(e);t?this.setWarningText(null):this.setWarningText(Tt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_WARNING)}}},wt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new Tt.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(Tt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){return Tt.Msg.CONTROLS_FOR_TOOLTIP.replace("%1",t.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},Ht={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_WITH).appendField(new Tt.FieldTextInput("i"),"VAR"),this.appendValueInput("FROM").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_TO),this.appendValueInput("STEP").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_STEP),this.appendStatementInput("DO").appendField(Tt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){return Tt.Msg.MIXLY_PYTHON_CONTROLS_FOR_RANGE_TOOLTIP.replace("%1",t.getFieldValue("VAR"))}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}};Bt.OPERATORS=[[Tt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"WHILE"],[Tt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"UNTIL"]],Ut.OPERATORS=[[Tt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK,"BREAK"],[Tt.Msg.LANG_CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE,"CONTINUE"]];const kt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.CONTROLS_IF_IF_TITLE_IF),this.appendStatementInput("STACK"),this.setTooltip(Tt.Msg.CONTROLS_IF_IF_TOOLTIP),this.contextMenu=!1}},Wt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.CONTROLS_IF_ELSEIF_TOOLTIP),this.contextMenu=!1}},Kt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.CONTROLS_IF_ELSE_TITLE_ELSE),this.setPreviousStatement(!0),this.setTooltip(Tt.Msg.CONTROLS_IF_ELSE_TOOLTIP),this.contextMenu=!1}},Jt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField("try"),this.appendStatementInput("STACK"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.contextMenu=!1}},Qt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PYTHON_EXCEPT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.contextMenu=!1,this.setTooltip(Tt.Msg.MIXLY_MIXPY_CONTROL_EXCEPT_TOOLTIP)}},qt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PYTHON_FINALLY),this.setPreviousStatement(!0),this.contextMenu=!1,this.setTooltip(Tt.Msg.MIXLY_MIXPY_CONTROL_FINALLY_TOOLTIP)}},zt={init:function(){this.jsonInit({message0:Tt.Msg.CONTROLS_REPEAT_TITLE,args0:[{type:"input_value",name:"TIMES"}],previousStatement:null,nextStatement:null,colour:Pt,tooltip:Tt.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:Tt.Msg.CONTROLS_REPEAT_HELPURL}),this.appendStatementInput("DO")}},jt={init:function(){this.setColour(Pt),this.appendValueInput("BOOL").appendField("lambda"),this.appendStatementInput("DO").appendField(Tt.Msg.MIXLY_STAT),this.setOutput(!0)}},$t={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PYTHON_PASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_PYTHON_CONTROLS_PASS_TOOLTIP)}},Zt={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PYTHON_CONTROLS_THREAD_START),this.appendValueInput("callback").appendField(Tt.Msg.MIXLY_PYTHON_CONTROLS_THREAD_USE),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_PYTHON_CONTROLS_THREAD_TOOLTIP)}},te={init:function(){this.appendDummyInput().appendField(Tt.Msg.CONTROLS_REPEAT_TITLE_REPEAT+Tt.Msg.MIXLY_DO),this.appendStatementInput("input_data").setCheck(null),this.appendValueInput("select_data").setCheck(null).appendField(Tt.Msg.CONTROLS_OPERATOR_UNTIL).appendField(new Tt.FieldDropdown([[Tt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"true"],[Tt.Msg.LANG_CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"false"]]),"type"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setColour(Pt),this.setTooltip("do-while loop"),this.setHelpUrl("")}},ee={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_OP_GARBAGE_COLLECT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ie={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET_MEM_ALLOC),this.setOutput(!0)}},ne={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET_MEM_FREE),this.setOutput(!0)}},se={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_DEVICE+"ID"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Tt.Msg.PROCEDURES_DEFRETURN_RETURN+Tt.Msg.MIXLY_GET_UNIQUE_IDEN)}},oe={init:function(){this.setColour(Pt),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_RTC_TIMESTAMP),this.appendDummyInput().appendField(Tt.Msg.MIXLY_TIMESTAMP_TO_DATA),this.setInputsInline(!0),this.setOutput(!0,Number)}},_e={init:function(){this.setColour(Pt),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET_UNIQUE_IDEN),this.setOutput(!0)}},pe=230;Tt.FieldTextInput.math_number_validator=function(t){return String(t)},Tt.FieldTextInput.math_number_validator_include_blank=function(t){if(""===t)return"";return/^-?(0X|0x|0O|0o|0B|0b)?[a-fA-F0-9]{1,}(\.[a-fA-F0-9]+)?$/.test(t)?String(t):null};const ae={init:function(){this.setColour(pe),this.appendDummyInput().appendField(new Tt.FieldTextInput("0",Tt.FieldTextInput.math_number_validator),"NUM"),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MATH_NUMBER_TOOLTIP)}},ue={init:function(){this.setColour(pe);this.appendDummyInput("").appendField(Tt.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new Tt.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("CONSTANT");return{pi:Tt.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_TOOLTIP,e:Tt.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_TOOLTIP}[e]}))}},re={init:function(){this.setColour(pe);this.appendDummyInput("").appendField(Tt.Msg.MIXLY_PYTHON_MATH_CONSTANT).appendField(new Tt.FieldDropdown([["π","pi"],["e","e"]]),"CONSTANT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("CONSTANT");return{pi:Tt.Msg.MIXLY_PYTHON_MATH_CONSTANT_PI_MP_TOOLTIP,e:Tt.Msg.MIXLY_PYTHON_MATH_CONSTANT_E_MP_TOOLTIP}[e]}))}},de={init:function(){this.setColour(pe),this.setOutput(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Tt.FieldDropdown([["+","ADD"],["-","MINUS"],["×","MULTIPLY"],["÷","DIVIDE"],["%","QUYU"],["//","ZHENGCHU"],["**","POWER"]]),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{ADD:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:Tt.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[e]}))}},le={init:function(){this.setColour(pe),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Tt.FieldDropdown([["+=","ADD"],["-=","MINUS"],["×=","MULTIPLY"],["÷=","DIVIDE"],["%=","QUYU"],["//=","ZHENGCHU"],["**=","POWER"]]),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{ADD:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,QUYU:Tt.Msg.MATH_MODULO_TOOLTIP,ZHENGCHU:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:Tt.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[e]}))}},Ie={init:function(){this.setColour(pe),this.setOutput(!0,Number),this.appendValueInput("A").setCheck(Number),this.appendValueInput("B").setCheck(Number).appendField(new Tt.FieldDropdown([["&","&"],["|","|"],[">>",">>"],["<<","<<"]]),"OP"),this.setInputsInline(!0),this.setTooltip("位运算")}},Te={init:function(){this.setColour(pe),this.setOutput(!0,Number),this.appendValueInput("NUM").setCheck(Number).appendField(new Tt.FieldDropdown([["sin","SIN"],["cos","COS"],["tan","TAN"],["asin","ASIN"],["acos","ACOS"],["atan","ATAN"],["-","-"],["ln","LN"],["log10","LOG10"],["e^","EXP"],["10^","POW10"]]),"OP");var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{SIN:Tt.Msg.MATH_TRIG_TOOLTIP_SIN,COS:Tt.Msg.MATH_TRIG_TOOLTIP_COS,TAN:Tt.Msg.MATH_TRIG_TOOLTIP_TAN,ASIN:Tt.Msg.MATH_TRIG_TOOLTIP_ASIN,ACOS:Tt.Msg.MATH_TRIG_TOOLTIP_ACOS,ATAN:Tt.Msg.MATH_TRIG_TOOLTIP_ATAN,LN:Tt.Msg.MATH_SINGLE_TOOLTIP_LN}[e]}))}},Me={init:function(){var t=[[Tt.Msg.MATH_BIN,"bin"],[Tt.Msg.MATH_OCT,"oct"],[Tt.Msg.MATH_HEX,"hex"]];this.setColour(pe),this.setOutput(!0,String),this.appendValueInput("NUM").setCheck(Number).appendField(new Tt.FieldDropdown(t),"OP");var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{bin:Tt.Msg.MATH_DEC_TOOLTIP_BIN,oct:Tt.Msg.MATH_DEC_TOOLTIP_OCT,hex:Tt.Msg.MATH_DEC_TOOLTIP_HEX}[t]}))}},he={init:function(){var t=[[Tt.Msg.LANG_MATH_TO_ROUND,"round"],[Tt.Msg.LANG_MATH_TO_CEIL,"ceil"],[Tt.Msg.LANG_MATH_TO_FLOOR,"floor"],[Tt.Msg.MATH_ABS,"fabs"],[Tt.Msg.MATH_SQRT,"sqrt"]];this.setColour(pe),this.appendValueInput("A").setCheck(Number).appendField(new Tt.FieldDropdown(t),"OP"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{sqrt:Tt.Msg.MATH_SINGLE_TOOLTIP_ROOT,fabs:Tt.Msg.MATH_SINGLE_TOOLTIP_ABS,sq:Tt.Msg.MATH_SINGLE_TOOLTIP_SQ,round:Tt.Msg.MATH_SINGLE_TOOLTIP_ROUND,ceil:Tt.Msg.MATH_SINGLE_TOOLTIP_CEIL,floor:Tt.Msg.MATH_SINGLE_TOOLTIP_FLOOR}[t]}))}},me={init:function(){var t=[[Tt.Msg.MIXLY_MAX,"max"],[Tt.Msg.MIXLY_MIN,"min"]];this.setColour(pe),this.appendValueInput("A").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(new Tt.FieldDropdown(t),"OP").appendField("("),this.appendValueInput("B").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(","),this.appendDummyInput("").setAlign(Tt.inputs.Align.RIGHT).appendField(")"),this.setInputsInline(!0),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{max:Tt.Msg.MIXLY_TOOLTIP_MATH_MAX,min:Tt.Msg.MIXLY_TOOLTIP_MATH_MIN}[t]}))}},Ee={init:function(){var t=[[Tt.Msg.MATH_TWO,"two"],[Tt.Msg.MATH_EIGHT,"eight"],[Tt.Msg.MATH_TEN,"ten"],[Tt.Msg.MATH_SIXTEEN,"sixteen"]];this.setColour(pe),this.appendDummyInput("").appendField(Tt.Msg.MATH_BA),this.appendValueInput("NUM").appendField(new Tt.FieldDropdown(t),"OP").appendField(Tt.Msg.MATH_JinZhi).setCheck(Number),this.appendDummyInput("").appendField(Tt.Msg.MATH_ZHW).appendField(new Tt.FieldDropdown(t),"OP2").appendField(Tt.Msg.MATH_JinZhi),this.setFieldValue("ten","OP2"),this.setOutput(!0),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP"),i={two:Tt.Msg.MATH_Before_two,eight:Tt.Msg.MATH_Before_eight,ten:Tt.Msg.MATH_Before_ten,sixteen:Tt.Msg.MATH_Before_sixteen},n=e.getFieldValue("OP2"),s={two:Tt.Msg.MATH_Behind_two,eight:Tt.Msg.MATH_Behind_eight,ten:Tt.Msg.MATH_Behind_ten,sixteen:Tt.Msg.MATH_Behind_sixteen};return i[t]+s[n]}))}},Oe={init:function(){var t=[[Tt.Msg.LANG_MATH_INT,"int"],[Tt.Msg.LANG_MATH_FLOAT,"float"]];this.setColour(pe),this.setOutput(!0,Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_RANDOM).appendField(new Tt.FieldDropdown(t),"TYPE"),this.appendValueInput("FROM").setCheck(Number).appendField(Tt.Msg.LANG_CONTROLS_FOR_INPUT_FROM),this.appendValueInput("TO").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.LANG_MATH_RANDOM_INT_INPUT_TO),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TYPE"),i={int:Tt.Msg.LANG_MATH_INT,float:Tt.Msg.LANG_MATH_FLOAT_RANDOM};return Tt.Msg.MATH_RANDOM_INT_TOOLTIP+i[t]}))}},Re={init:function(){this.setColour(pe),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number).appendField(Tt.Msg.LANG_MATH_CONSTRAIN_INPUT_CONSTRAIN),this.appendValueInput("LOW").setCheck(Number).appendField(Tt.Msg.LANG_MATH_CONSTRAIN_INPUT_LOW),this.appendValueInput("HIGH").setCheck(Number).appendField(Tt.Msg.LANG_MATH_CONSTRAIN_INPUT_HIGH),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MATH_CONSTRAIN_TOOLTIP)}},ce={init:function(){this.setColour(pe),this.appendValueInput("NUM",Number).appendField(Tt.Msg.MIXLY_MAP).setCheck(Number),this.appendValueInput("fromLow",Number).appendField(Tt.Msg.MIXLY_MAP_FROM).setCheck(Number),this.appendValueInput("fromHigh",Number).appendField(",").setCheck(Number),this.appendValueInput("toLow",Number).appendField(Tt.Msg.MIXLY_MAP_TO).setCheck(Number),this.appendValueInput("toHigh",Number).appendField(",").setCheck(Number),this.appendDummyInput("").appendField("]"),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_MATH_MAP)}},ge={init:function(){this.setColour(pe),this.appendDummyInput().appendField(new Tt.FieldTextInput("0",Tt.FieldTextInput.math_number_validator_include_blank),"NUM"),this.setOutput(!0),this.setTooltip(Tt.Msg.MATH_NUMBER_TOOLTIP)}},Ce={init:function(){this.setColour(pe),this.appendValueInput("NUM").setCheck(Number).appendField(Tt.Msg.LANG_MATH_RANDOM_SEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_MATH_RANDOM_SEED)}},Se={init:function(){this.setColour(pe),this.setOutput(!0,Number),this.appendValueInput("VALUE").setCheck(Number),this.appendValueInput("VAR").setCheck(Number).appendField(Tt.Msg.MATH_ROUND).appendField(Tt.Msg.TEXT_KEEP),this.appendDummyInput().appendField(Tt.Msg.TEXT_DECIMAL),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MATH_ROUND_NEW_TOOLTIP)}},Ae={init:function(){var t=[[Tt.Msg.MIXLY_TO_INT,"int"],[Tt.Msg.MIXLY_TO_FLOAT,"float"],[Tt.Msg.MIXLY_TO_BITES,"b"],[Tt.Msg.LANG_MATH_BYTE+Tt.Msg.MIXLY_TO_INT,"bti"]];this.setColour(pe),this.appendValueInput("VAR").appendField(new Tt.FieldDropdown(t),"TOWHAT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TOWHAT");return{int:Tt.Msg.MIXLY_PYTHON_TOOLTIP_TOINT,float:Tt.Msg.MIXLY_PYTHON_TOOLTIP_TOFLOAT,b:Tt.Msg.MIXLY_TOOLTIP_TEXT_TOBYTE}[t]}))}},Le={init:function(){var t=[[Tt.Msg.MIXLY_TO_INT,"int"],[Tt.Msg.MIXLY_TO_FLOAT,"float"]];this.setColour(pe),this.appendValueInput("VAR").appendField(new Tt.FieldDropdown(t),"TOWHAT"),this.setOutput(!0,Number);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TOWHAT");return{int:Tt.Msg.MIXLY_TOOLTIP_TEXT_TOINT,float:Tt.Msg.MIXLY_TOOLTIP_TEXT_TOFLOAT}[t]}))}},Ne=ce,De={init:function(){this.setColour(pe),this.appendValueInput("VAR").appendField(Tt.Msg.LANG_MATH_BYTE+Tt.Msg.MIXLY_TO_HEX),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_PYTHON_TOOLTIP_TOHEX)}},fe={init:function(){this.setColour(pe),this.itemCount_=1,this.setMutator(new Tt.icons.MutatorIcon(["lists_create_with_item"],this)),this.appendDummyInput("DUMMY").appendField(Tt.Msg.MIXLY_PRODUCT+Tt.Msg.MIXLY_GENERATE_CARTESIAN_PRODUCT),this.appendValueInput("REPEAT").appendField(Tt.Msg.MIXLY_EVERY_PER_ELEPER_ELEMENT),this.appendDummyInput().appendField(Tt.Msg.CONTROLS_REPEAT_TITLE_TIMES),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0),this.setTooltip(Tt.Msg.LISTS_CREATE_WITH_PYTHON_TOOLTIP),this.updateShape_()},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("lists_create_with_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;n1&&"\\"===t.charAt(0)){var e=t.charAt(1);if("0"===e||"b"===e||"f"===e||"n"===e||"r"===e||"t"===e||"\\"===e||"'"===e)return String(t).substring(0,2);if("x"===e&&"0"===t.charAt(2)&&"B"===t.charAt(3))return String(t).substring(0,4)}return String(t).substring(0,1)};const be={init:function(){this.setColour(ve),this.appendDummyInput().appendField(this.newQuote_(!0)).appendField(new Tt.FieldTextInput("",Tt.FieldTextInput.char_validator),"TEXT").appendField(this.newQuote_(!1)),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.TEXT_CHAR_TOOLTIP)},newQuote_:function(t){if(1==t)var e="../../media/quote2.png";else e="../../media/quote3.png";return new Tt.FieldImage(e,7,12,'"')}},ye={init:function(){this.setColour(ve),this.appendValueInput("A").setCheck([String,Number]),this.appendValueInput("B").setCheck([String,Number]).appendField(Tt.Msg.MIXLY_TEXT_JOIN),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_TEXT_JOIN)}},Ve={init:function(){this.setColour(ve),this.appendValueInput("VAR").setCheck(Number).appendField(Tt.Msg.MIXLY_TOCHAR),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_TEXT_TOCHAR)}},Be={init:function(){this.setColour(ve),this.appendValueInput("VAR").setCheck(String).appendField(Tt.Msg.MIXLY_TOASCII),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_TEXT_TOASCII)}},Ge={init:function(){this.setColour(ve),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_TOSTRING),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_PYTHON_TOOLTIP_TOTEXT)}},Ue={init:function(){this.setColour(ve),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_LENGTH),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_TEXT_LENGTH)}},we={init:function(){this.WHERE_OPTIONS=[[Tt.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Tt.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Tt.Msg.TEXT_GET_INDEX_RANDOM+1+Tt.Msg.TEXT_CHARAT2,"RANDOM"]],this.setHelpUrl(Tt.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.LISTS_GET_INDEX_GET,"MODE"),Tt.Msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(Tt.Msg.LISTS_GET_INDEX_TAIL),this.setInputsInline(!0),this.setOutput(!0),this.updateAt_(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=t.getFieldValue("WHERE"),n="";switch(e+" "+i){case"GET FROM_START":case"GET FROM_END":n=Tt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_FROM;break;case"GET RANDOM":n=Tt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_RANDOM;break;case"GET_REMOVE FROM_START":case"GET_REMOVE FROM_END":n=Tt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_FROM;break;case"GET_REMOVE RANDOM":n=Tt.Msg.LISTS_GET_INDEX_TOOLTIP_GET_REMOVE_RANDOM}return"FROM_START"!=i&&"FROM_END"!=i||(n+=" "+Tt.Msg.LISTS_INDEX_FROM_START_TOOLTIP.replace("%1",Tt.Msg.ONE_BASED_INDEXING?"#1":"#0")),n}));var e=this;this.setTooltip((function(){var t=e.getFieldValue("WHERE"),i={FROM_START:Tt.Msg.LISTS_GET_INDEX_FROM_START,FROM_END:Tt.Msg.LISTS_GET_INDEX_FROM_END,RANDOM:Tt.Msg.TEXT_GET_INDEX_RANDOM};return Tt.Msg.PROCEDURES_DEFRETURN_RETURN+Tt.Msg.MIXLY_MICROBIT_TYPE_STRING+i[t]+"n"+Tt.Msg.TEXT_CHARAT2}))},mutationToDom:function(){var t=document.createElement("mutation");t.setAttribute("statement",!this.outputConnection);var e=this.getInput("AT").type==Tt.INPUT_VALUE;return t.setAttribute("at",e),t},domToMutation:function(t){var e="true"==t.getAttribute("statement");this.updateStatement_(e),t="false"!=t.getAttribute("at"),this.updateAt_(t)},updateStatement_:function(t){t!=!this.outputConnection&&(this.unplug(!0,!0),t?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(t){this.removeInput("AT"),this.removeInput("ORDINAL",!0),t?(this.appendValueInput("AT").setCheck(Number),Tt.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL").appendField(Tt.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT");var e=new Tt.FieldDropdown(this.WHERE_OPTIONS,(function(e){var i="FROM_START"==e||"FROM_END"==e;if(i!=t){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(e,"WHERE"),null}}));this.getInput("AT").appendField(e,"WHERE"),Tt.Msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}},He={init:function(){this.setHelpUrl(Tt.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT").setCheck(Number).appendField(Tt.Msg.LISTS_GET_INDEX_GET+" "+Tt.Msg.LISTS_GET_INDEX_FROM_START),this.appendDummyInput().appendField(Tt.Msg.TEXT_CHARAT2),this.setOutput(!0),this.setTooltip(Tt.Msg.PROCEDURES_DEFRETURN_RETURN+Tt.Msg.MIXLY_MICROBIT_TYPE_STRING+Tt.Msg.LISTS_GET_INDEX_FROM_START+"n"+Tt.Msg.TEXT_CHARAT2)}},ke={init:function(){this.setHelpUrl(Tt.Msg.LISTS_GET_INDEX_HELPURL),this.setColour(ve),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput().appendField(Tt.Msg.TEXT_RANDOM_CHAR),this.setOutput(!0),this.setTooltip(Tt.Msg.TEXT_RANDOM_CHAR_TOOLTIP)}},We={init:function(){this.WHERE_OPTIONS_1=[[Tt.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Tt.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Tt.Msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]],this.WHERE_OPTIONS_2=[[Tt.Msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[Tt.Msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[Tt.Msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]],this.setHelpUrl(Tt.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(ve),this.appendValueInput("VAR").setCheck(String),this.appendDummyInput("").appendField(Tt.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(Tt.Msg._GET_TEXT_SUBLIST_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation"),e=this.getInput("AT1").type==Tt.INPUT_VALUE;t.setAttribute("at1",e);var i=this.getInput("AT2").type==Tt.INPUT_VALUE;return t.setAttribute("at2",i),t},domToMutation:function(t){var e="true"==t.getAttribute("at1"),i="true"==t.getAttribute("at2");this.updateAt_(1,e),this.updateAt_(2,i)},updateAt_:function(t,e){this.removeInput("AT"+t),this.removeInput("ORDINAL"+t,!0),e?(this.appendValueInput("AT"+t).setCheck(Number),Tt.Msg.TEXT_CHARAT2&&this.appendDummyInput("ORDINAL"+t).appendField(Tt.Msg.TEXT_CHARAT2)):this.appendDummyInput("AT"+t);var i=new Tt.FieldDropdown(this["WHERE_OPTIONS_"+t],(function(i){var n="FROM_START"==i||"FROM_END"==i;if(n!=e){var s=this.sourceBlock_;return s.updateAt_(t,n),s.setFieldValue(i,"WHERE"+t),null}}));this.getInput("AT"+t).appendField(i,"WHERE"+t),1==t&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2"))}},Ke={init:function(){this.setHelpUrl(Tt.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("AT1").appendField(Tt.Msg.LISTS_GET_INDEX_GET+" "+Tt.Msg.LISTS_GET_INDEX_FROM_START),this.appendValueInput("AT2").appendField(Tt.Msg.LISTS_GET_SUBLIST_END_FROM_START),this.appendDummyInput().appendField(Tt.Msg.TEXT_CHARAT2),this.setInputsInline(!0),this.setOutput(!0,["List",String]),this.setTooltip(Tt.Msg._GET_TEXT_SUBLIST_TOOLTIP)}},Je={init:function(){var t=[[Tt.Msg.MIXLY_EQUALS,"==="],[Tt.Msg.MIXLY_STARTSWITH,"startswith"],[Tt.Msg.MIXLY_ENDSWITH,"endswith"]];this.setColour(ve),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(new Tt.FieldDropdown(t),"DOWHAT").setCheck(String),this.setOutput(!0,[Boolean,Number]),this.setInputsInline(!0)}},Qe={init:function(){this.setColour(ve),this.appendValueInput("STR1").setCheck(String),this.appendValueInput("STR2").appendField(Tt.Msg.MIXLY_COMPARETO).setCheck(String),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_COMPARETO_HELP)}},qe={init:function(){var t=[[Tt.Msg.TEXT_UPPER,"upper"],[Tt.Msg.TEXT_TITLE,"title"],[Tt.Msg.TEXT_CAPITALIZE,"capitalize"],[Tt.Msg.TEXT_SWAPCASE,"swapcase"],[Tt.Msg.TEXT_LOWER,"lower"]];this.setColour(ve),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new Tt.FieldDropdown(t),"CAPITAL").setCheck(String),this.setOutput(!0,String);var e=this;this.setTooltip((function(){var t=e.getFieldValue("CAPITAL");return{upper:Tt.Msg.MIXLY_MIXPY_TEXT_UPPER_TOOLTIP,title:Tt.Msg.MIXLY_MIXPY_TEXT_TITLE_TOOLTIP,swapcase:Tt.Msg.MIXLY_MIXPY_TEXT_SWAPCASE_TOOLTIP,capitalize:Tt.Msg.MIXLY_MIXPY_TEXT_CAPITALIZE_TOOLTIP,lower:Tt.Msg.MIXLY_MIXPY_TEXT_LOWER_TOOLTIP}[t]}))}},ze={init:function(){var t=[[Tt.Msg.TEXT_LJUST,"ljust"],[Tt.Msg.TEXT_CENTER,"center"],[Tt.Msg.TEXT_RJUST,"rjust"]];this.setColour(ve),this.appendValueInput("VAR").appendField(new Tt.FieldDropdown(t),"CENTER").setCheck(String),this.appendValueInput("WID").appendField(Tt.Msg.MIXLY_WIDTH).setCheck(Number),this.appendValueInput("Symbol").appendField(Tt.Msg.MIXLY_RECT_Fill).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_MIXPY_TEXT_CENTER_TOOLTIP)}},je={init:function(){this.setColour(ve),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).setCheck(String),this.appendValueInput("STR").appendField(Tt.Msg.MIXLY_MID+Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER).setCheck(String),this.appendDummyInput().appendField(Tt.Msg.MIXLY_LIST_INDEX),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_MIXPY_TEXT_FIND_TOOLTIP)}},$e={init:function(){this.setColour(ve),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_USE_STR).setCheck(String),this.appendValueInput("LIST").appendField(Tt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_SEQ).setCheck("List","Tuple","Set","Dict"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_GET_STR),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_PYTHON_TEXT_JOIN_SEQ_TOOLTIP)}},Ze={init:function(){this.setColour(ve),this.appendValueInput("VAR").setCheck(String),this.appendValueInput("STR1").appendField(Tt.Msg.MIXLY_MIXPY_REPLACE).setCheck(String),this.appendValueInput("STR2").appendField(Tt.Msg.LISTS_SET_INDEX_INPUT_TO).setCheck(String),this.setInputsInline(!0),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_MIXPY_TEXT_REPLACE_TOOLTIP)}},ti={init:function(){this.setColour(ve),this.appendValueInput("VAR"),this.appendValueInput("VAL").appendField(Tt.Msg.LIST_SPLIT_AS),this.appendDummyInput("").appendField(Tt.Msg.LIST_SPLIT),this.setOutput(!0,"List"),this.setTooltip(Tt.Msg.MIXLY_MIXPY_TEXT_SPLIT_TOOLTIP),this.setInputsInline(!0)}},ei={init:function(){var t=[[Tt.Msg.TEXT_TRIM_BOTH,"strip"],[Tt.Msg.TEXT_TRIM_LEFT,"lstrip"],[Tt.Msg.TEXT_TRIM_RIGHT,"rstrip"]];this.setColour(ve),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(Tt.Msg.TEXT_STRIM),this.appendDummyInput("").appendField(new Tt.FieldDropdown(t),"TOWHAT"),this.appendDummyInput("").appendField(Tt.Msg.TEXT_BLANK),this.setOutput(!0,String),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("TOWHAT");return{strip:Tt.Msg.TEXT_TRIM_BOTH_TOOLTIP,lstrip:Tt.Msg.TEXT_TRIM_LEFT_TOOLTIP,rstrip:Tt.Msg.TEXT_TRIM_RIGHT_TOOLTIP}[t]}))}},ii={init:function(){this.setColour(ve),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROPYTHON_FORMAT),this.appendDummyInput("").appendField(new Tt.FieldTextInput("str"),"VAR"),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setMutator(new Tt.icons.MutatorIcon(["text_create_with_item"],this)),this.setOutput(!0),this.setTooltip(Tt.Msg.MIXLY_MIXPY_TEXT_FORMAT_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("text_create_with_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;ne?t[e]:0==e?'"key"':'"key'+(e+1)+'"'),"KEY"+e).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},$i={init:function(){this.setColour(zi),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(Tt.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},Zi={init:function(){this.setColour(zi),this.appendDummyInput().appendField(Tt.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},tn={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.DICT_KEYS),this.setTooltip(Tt.Msg.DICTS_KEYS_TOOLTIP),this.setOutput(!0,"List")}},en={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Tt.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(Tt.Msg.DICTS_ADD_VALUE),this.setOutput(!0),this.setTooltip(Tt.Msg.DICTS_GET_TOOLTIP)}},nn={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Tt.Msg.DICTS_GET_IN),this.appendDummyInput("").appendField(Tt.Msg.DICTS_ADD_VALUE),this.appendValueInput("VAR").appendField(Tt.Msg.DICTS_DEFAULT_VALUE),this.setOutput(!0),this.setTooltip(Tt.Msg.DICTS_GET_DEFAULT_TOOLTIP)}},sn={init:function(){this.setColour(zi),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(Tt.Msg.DICTS_ADD),this.appendDummyInput(),this.appendValueInput("VAR").appendField(Tt.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.DICTS_ADD_OR_CHANGE_TOOLTIP)}},on={init:function(){this.setColour(zi),this.appendValueInput("DICT"),this.appendValueInput("KEY").appendField(Tt.Msg.DICTS_DELETE_IN),this.appendDummyInput("").appendField(Tt.Msg.DICTS_DELETE_VALUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.DICTS_DELETE_TOOLTIP)}},_n={init:function(){this.setColour(zi),this.appendValueInput("DICT2").setCheck("Dict").appendField(Tt.Msg.MAKE_DICT),this.appendValueInput("DICT").setCheck("Dict").appendField(Tt.Msg.DICT_UPDATE),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MID),this.setTooltip(Tt.Msg.DICTS_UPDATE_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},pn={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.DICT_CLEAR),this.setTooltip(Tt.Msg.DICTS_CLEAR_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},an={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.DICT_ITEMS),this.setTooltip(Tt.Msg.DICTS_ITEMS_TOOLTIP),this.setOutput(!0,"List")}},un={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.DICT_VALUES),this.setTooltip(Tt.Msg.DICTS_VALUES_TOOLTIP),this.setOutput(!0,"List")}},rn={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_LENGTH),this.setTooltip(Tt.Msg.DICT_LENGTH_TOOLTIP),this.setOutput(!0,Number)}},dn={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.DICT_DELDICT),this.setTooltip(Tt.Msg.DICTS_DEL_TOOLTIP),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ln={init:function(){this.MODE=[[Tt.Msg.DICTS_ADD_OR_CHANGE,"INSERT"],[Tt.Msg.MIXLY_MICROBIT_JS_DELETE_VAR,"DELETE"]],this.setHelpUrl(Tt.Msg.LISTS_GET_SUBLIST_HELPURL),this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("AT2"),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).appendField(Tt.Msg.DICTS_ADD_VALUE),this.updateAt_(!0),this.setInputsInline(!0),this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e="";switch(t.getFieldValue("WHERE")){case"INSERT":e=Tt.Msg.DICTS_ADD_TOOLTIP;break;case"DELETE":e=Tt.Msg.DICTS_DELETE_TOOLTIP}return e}))},mutationToDom:function(){var t=document.createElement("mutation"),e=this.getInput("AT2").type==Tt.INPUT_VALUE;return t.setAttribute("at2",e),t},domToMutation:function(t){var e="true"==t.getAttribute("at2");this.updateAt_(e)},updateAt_:function(t){this.removeInput("AT2"),this.removeInput("ORDINAL",!0),t?this.appendValueInput("AT2").setCheck(Number):this.appendDummyInput("AT2");var e=new Tt.FieldDropdown(this.MODE,(function(e){var i="INSERT"==e;if(i!=t){var n=this.sourceBlock_;return n.updateAt_(i),n.setFieldValue(e,"WHERE"),null}}));this.getInput("AT2").appendField(e,"WHERE")}},In={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.blockpy_DICT_POP),this.appendValueInput("KEY"),this.appendDummyInput("").appendField(Tt.Msg.DICTS_ADD_VALUE),this.setTooltip(Tt.Msg.DICT_POP_TOOLTIP),this.setInputsInline(!0),this.setOutput(!0)}},Tn={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendValueInput("KEY").appendField(Tt.Msg.DICTS_SET_DEFAULT),this.appendDummyInput("").appendField(Tt.Msg.DICTS_DEFAULT_VALUE),this.appendValueInput("VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.DICTS_SETDEFAULT_TOOLTIP)}},Mn={init:function(){this.setColour(zi),this.appendDummyInput("").appendField(new Tt.FieldLabel(Tt.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 Tt.icons.MutatorIcon(["dicts_create_with_item"],this)),this.setTooltip(Tt.Msg.DICTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("dicts_create_with_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;ne?t[e]:0==e?'"key"':'"key'+(e+1)+'"'),"KEY"+e).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},hn={init:function(){this.setColour(zi),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_TODICT),this.setOutput(!0),this.setTooltip(Tt.Msg.MIXLY_PYTHON_TOOLTIP_TODICT)}},mn={init:function(){this.setColour(zi),this.appendValueInput("DICT").setCheck("Dict"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_TO_JSON),this.setTooltip(Tt.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},En={init:function(){this.setColour(zi),this.appendValueInput("VAR"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_CONVERT_TO_JSON),this.setTooltip(Tt.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},On={init:function(){this.setColour(zi),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(Tt.Msg.MIXLY_CONVERT_TO_JSON_TOOLTIP),this.setOutput(!0)}},Rn={init:function(){this.setColour(zi),this.appendValueInput("DICT"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_TO_JSON),this.setTooltip(Tt.Msg.MIXLY_TO_JSON_TOOLTIP),this.setOutput(!0)}},cn=210,gn={init:function(){var t=Tt.RTL?[["=","EQ"],["≠","NEQ"],[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["=","EQ"],["≠","NEQ"],["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(cn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Tt.FieldDropdown(t),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{EQ:Tt.Msg.LOGIC_COMPARE_TOOLTIP_EQ,NEQ:Tt.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,LT:Tt.Msg.LOGIC_COMPARE_TOOLTIP_LT,LTE:Tt.Msg.LOGIC_COMPARE_TOOLTIP_LTE,GT:Tt.Msg.LOGIC_COMPARE_TOOLTIP_GT,GTE:Tt.Msg.LOGIC_COMPARE_TOOLTIP_GTE}[t]})),this.prevBlocks_=[null,null]}},Cn={init:function(){var t=Tt.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]],e=Tt.RTL?[[">","LT"],["≥","LTE"],["<","GT"],["≤","GTE"]]:[["<","LT"],["≤","LTE"],[">","GT"],["≥","GTE"]];this.setColour(cn),this.setOutput(!0,Boolean),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Tt.FieldDropdown(t),"OP1"),this.appendValueInput("C").appendField(new Tt.FieldDropdown(e),"OP2"),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_PYTHON_LOGIC_COMPARE_CONTINOUS_TOOLTIP)}},Sn={init:function(){var t=[[Tt.Msg.LOGIC_OPERATION_AND,"AND"],[Tt.Msg.LOGIC_OPERATION_OR,"OR"],[Tt.Msg.LOGIC_OPERATION_NOR,"NOR"],[Tt.Msg.LOGIC_OPERATION_XOR,"XOR"]];this.setColour(cn),this.setOutput(!0,Boolean),this.appendValueInput("A").setCheck([Boolean,Number]),this.appendValueInput("B").setCheck([Boolean,Number]).appendField(new Tt.FieldDropdown(t),"OP"),this.setInputsInline(!0);var e=this;this.setTooltip((function(){var t=e.getFieldValue("OP");return{AND:Tt.Msg.LOGIC_OPERATION_TOOLTIP_AND,OR:Tt.Msg.LOGIC_OPERATION_TOOLTIP_OR,NOR:Tt.Msg.LOGIC_OPERATION_TOOLTIP_NOR,XOR:Tt.Msg.LOGIC_OPERATION_TOOLTIP_XOR}[t]}))}},An={init:function(){this.setColour(cn),this.setOutput(!0,Boolean),this.appendValueInput("BOOL").setCheck([Number,Boolean]).appendField(Tt.Msg.LOGIC_NEGATE_TITLE),this.setTooltip(Tt.Msg.LOGIC_NEGATE_TOOLTIP)}},Ln={init:function(){var t=[[Tt.Msg.LOGIC_BOOLEAN_TRUE,"TRUE"],[Tt.Msg.LOGIC_BOOLEAN_FALSE,"FALSE"]];this.setColour(cn),this.setOutput(!0,Boolean),this.appendDummyInput().appendField(new Tt.FieldDropdown(t),"BOOL"),this.setTooltip(Tt.Msg.LOGIC_BOOLEAN_TOOLTIP)}},Nn={init:function(){this.setColour(cn),this.setOutput(!0),this.appendDummyInput().appendField(Tt.Msg.LOGIC_NULL),this.setTooltip(Tt.Msg.LOGIC_NULL_TOOLTIP)}},Dn={init:function(){this.setColour(cn),this.appendValueInput("A"),this.appendValueInput("B").appendField(Tt.Msg.LOGIC_TERNARY_IF_TRUE),this.appendValueInput("C").appendField(Tt.Msg.LOGIC_TERNARY_IF_FALSE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_LOGIT_TRUEORFALSE)}},fn={init:function(){var t=[[Tt.Msg.TEXT_APPEND_TO,"in"],[Tt.Msg.MIXLY_PYTHON_LOGIC_IS_NOT_IN,"not in"]];this.setColour(cn),this.appendValueInput("A"),this.appendValueInput("B").setCheck([String,"List"]).appendField(new Tt.FieldDropdown(t),"BOOL"),this.appendDummyInput("").appendField(Tt.Msg.MICROBIT_LOGIC_IS_IN),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Tt.Msg.IN)}},Fn={init:function(){var t=[[Tt.Msg.MIXLY_PYTHON_LOGIC_IS,"is"],[Tt.Msg.MIXLY_PYTHON_LOGIC_IS_NOT,"is not"]];this.setColour(cn),this.appendValueInput("A"),this.appendValueInput("B").appendField(new Tt.FieldDropdown(t),"BOOL"),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_PYTHON_LOGIC_IS_TOOLTIP)}},Pn={init:function(){this.setColour(cn),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_TOBOOL),this.setOutput(!0,Boolean),this.setTooltip(Tt.Msg.MIXLY_PYTHON_TOOLTIP_TOBOOL)}},vn={init:function(){this.setColour(0),this.appendValueInput("fn").setCheck(String).appendField(Tt.Msg.MIXLY_PYTHON_STORAGE_OPEN_FILE_WITH_OS+"(For Windows)"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Yn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"],[Tt.Msg.MIXLY_ADD,"a"],[Tt.Msg.MATH_BIN+Tt.Msg.MIXLY_ADD,"ab"],[Tt.Msg.MIXLY_R_W,"r+"],[Tt.Msg.MATH_BIN+Tt.Msg.MIXLY_R_W,"rb+"],[Tt.Msg.MIXLY_W_R,"w+"],[Tt.Msg.MATH_BIN+Tt.Msg.MIXLY_W_R,"wb+"],[Tt.Msg.MIXLY_A_R,"a+"],[Tt.Msg.MATH_BIN+Tt.Msg.MIXLY_A_R,"ab+"]]),"MODE"),this.appendValueInput("FILE").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_AS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Tt.Msg.MIXLY_USE,n=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,o=Tt.Msg.MIXLY_BELONG;return i+{r:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[e]+o+n+s}))},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},Xn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Tt.Msg.MIXLY_USE,n=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,o=Tt.Msg.MIXLY_BELONG,_=Tt.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[e]+o+n+s+_}))}},xn={init:function(){this.setColour(0),this.appendValueInput("FILENAME").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE);this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,"r"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,"w"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,"rb"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE,"wb"]]),"MODE"),this.appendDummyInput().appendField(Tt.Msg.MIXPY_TEXT_ENCODE).appendField(new Tt.FieldDropdown([["ANSI","ANSI"],["gbk","gbk"],["utf-8","utf-8"]]),"CODE"),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setInputsInline(!0),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Tt.Msg.MIXLY_USE,n=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE,s=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_OPEN_FILE,o=Tt.Msg.MIXLY_BELONG,_=Tt.Msg.PY_STORAGE_FILE_OBJECT;return i+{r:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_READ,w:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_WRITE,rb:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_READ,wb:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_BIT_WRITE}[e]+o+n+s+_}))}},bn={init:function(){this.setColour(0),this.appendValueInput("data").setCheck(String).appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE),this.appendValueInput("FILE").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE+Tt.Msg.MIXLY_MICROBIT_TYPE_STRING+Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_WRITE)}},yn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"read"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE,"readline"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES,"readlines"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String)}},Vn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,"read"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,"readline"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE,"readlines"]]),"MODE"),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE,n=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER;return i+{read:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_NO_MORE_THAN_SIZE,readline:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE,readlines:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL_LINES_NO_MORE_THAN_SIZE}[e]+"x"+n}))}},Bn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FROM_FILE),this.setNextStatement(!0),this.appendValueInput("SIZE").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ONE_LINE_NO_MORE_THAN_SIZE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MICROBIT_PYTHON_TYPE)}},Gn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Tt.Msg.HTML_FILE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CAN_WRITE_ORNOT1)}},Un={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILENAME),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,String),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILENAME)}},wn={init:function(){this.setColour(0),this.appendValueInput("FILE").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CLOSE_FILE)}},Hn={init:function(){this.setColour(0),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_LIST_ALL_FILES)}};Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE;const kn={init:function(){this.setColour(0),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE,"remove"],[Tt.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(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_DELETE_FILE)}},Wn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_FILE_SIZE+Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_SIZE)}},Kn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_RETURN_FILE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_PRESENT_LOCATION),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_TELL)}},Jn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck("Variable").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,"start"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,"current"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END,"end"]]),"MODE"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET),this.appendValueInput("SIZE").setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE"),i=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_SET_FILE_POSITION+Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CURRENT_POSITION,n=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHARACTER,s=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_OFFSET;return i+" "+{start:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_START,current:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_CURRENT,end:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_FILE_SEEK_END}[e]+s+"x"+n}))}},Qn={init:function(){this.setColour(0),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,"List"),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET_CURRENT_DIR)}},qn={init:function(){this.setColour(0),this.appendValueInput("PATH").setCheck(String).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_SET),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,"mkdir"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MAKEDIRS,"makedirs"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1);var t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE");return Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_PATH+"x"+Tt.Msg.MIXLY_ESP32_SET+{mkdir:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,makedirs:Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[e]}))}},zn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME),this.appendValueInput("NEWFILE").setCheck(String).appendField(Tt.Msg.MIXLY_AS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_RENAME)}},jn={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setOutput(!1),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_CHANGE_DIR)}},$n={init:function(){this.setColour(0),this.appendValueInput("FILE").setCheck(String).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.HTML_FILE,"isfile"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_DIR,"isdir"]]),"MODE"),this.setInputsInline(!0),this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0,Boolean);let t=this;this.setTooltip((function(){var e=t.getFieldValue("MODE");return Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH+"x"+Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_IS_OR_NOT+{isfile:Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MKDIR,isdir:Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKEDIRS}[e]}))}},Zn={init:function(){this.setColour(0),this.appendValueInput("SPISUB").appendField(Tt.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_SETUP+Tt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(Tt.Msg.MIXLY_SD_CARD),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},ts={init:function(){this.setColour(0),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_SD_CARD),this.appendValueInput("DIR").setCheck(String).appendField(Tt.Msg.MIXLY_SDCARD_MOUNT),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip()}},es={init:function(){var t=Tt.Procedures.findLegalName("",this),e=new Tt.FieldTextInput(t,Tt.Procedures.rename);e.setSpellcheck(!1),this.appendDummyInput().appendField(e,"NAME").appendField("","PARAMS"),this.setMutator(new Tt.icons.MutatorIcon(["procedures_mutatorarg"],this)),(this.workspace.options.comments||this.workspace.options.parentWorkspace&&this.workspace.options.parentWorkspace.options.comments)&&Tt.Msg.PROCEDURES_DEFNORETURN_COMMENT&&this.setCommentText(Tt.Msg.PROCEDURES_DEFNORETURN_COMMENT),this.setStyle("procedure_blocks"),this.setTooltip(Tt.Msg.PROCEDURES_DEFNORETURN_TOOLTIP),this.setHelpUrl(Tt.Msg.PROCEDURES_DEFNORETURN_HELPURL),this.arguments_=[],this.argumentVarModels_=[],this.setStatements_(!0),this.statementConnection_=null},setStatements_:function(t){this.hasStatements_!==t&&(t?(this.appendStatementInput("STACK").appendField(Tt.Msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK","RETURN")):this.removeInput("STACK",!0),this.hasStatements_=t)},updateParams_:function(){var t="";this.arguments_.length&&(t=Tt.Msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", ")),Tt.Events.disable();try{this.setFieldValue(t,"PARAMS")}finally{Tt.Events.enable()}},mutationToDom:function(t){var e=Tt.utils.xml.createElement("mutation");t&&e.setAttribute("name",this.getFieldValue("NAME"));for(var i=0;i"),this.appendValueInput("style").appendField(Tt.Msg.MIXLY_AIP_ATTR).setAlign(Tt.inputs.Align.RIGHT),this.appendStatementInput("DO").appendField(""),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},zs={init:function(){this.setColour(ks),this.appendDummyInput().appendField(Tt.Msg.HTML_STYLE),this.appendStatementInput("STYLE"),this.setOutput(!0)}},js={init:function(){this.setColour(ks),this.appendDummyInput().appendField(Tt.Msg.HTML_FORM_CONTENT).appendField(new Tt.FieldDropdown([[Tt.Msg.HTML_TEXT,"text"],[Tt.Msg.HTML_EMAIL,"email"],[Tt.Msg.HTML_NUMBER,"number"],[Tt.Msg.HTML_PASSWORD,"password"],[Tt.Msg.HTML_CHECKBOX,"checkbox"],[Tt.Msg.HTML_RADIOBUTTON,"radiobutton"],[Tt.Msg.HTML_BUTTON,"button"],[Tt.Msg.HTML_COLOUR,"colour"],[Tt.Msg.HTML_DATE,"date"],[Tt.Msg.HTML_LOCALTIME,"local time"],[Tt.Msg.HTML_FILE,"file"],[Tt.Msg.HTML_HIDDEN,"hidden"],[Tt.Msg.HTML_IMAGE,"image"],[Tt.Msg.HTML_MONTH,"month"],[Tt.Msg.HTML_RANGE,"range"],[Tt.Msg.HTML_RESET,"reset"],[Tt.Msg.HTML_SEARCH,"search"],[Tt.Msg.HTML_SUBMIT,"submit"],[Tt.Msg.HTML_TELEPHONENUMBER,"telephone number"],[Tt.Msg.HTML_TIME,"time"],[Tt.Msg.HTML_URL,"url"],[Tt.Msg.HTML_WEEK,"week"]]),"LEVEL"),this.appendDummyInput().appendField(Tt.Msg.HTML_NAME).appendField(new Tt.FieldTextInput("car"),"NAME"),this.appendDummyInput().appendField(Tt.Msg.HTML_VALUE).appendField(new Tt.FieldTextInput("go"),"VALUE"),this.appendValueInput("style").appendField(Tt.Msg.MIXLY_AIP_ATTR).setAlign(Tt.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},$s={init:function(){this.setColour(ks),this.appendDummyInput().appendField(new Tt.FieldTextInput("property"),"KEY").appendField(":").appendField(new Tt.FieldTextInput("value"),"VALUE"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Zs={init:function(){this.setColour(ks),this.appendDummyInput().appendField(new Tt.FieldTextInput("property"),"KEY").appendField(":").appendField(new Tt.FieldColour("#ff0000"),"RGB_LED_COLOR"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},to={init:function(){this.setColour(ks),this.appendDummyInput().appendField(Tt.Msg.HTML_TEXT).appendField(new Tt.FieldTextInput("text"),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},eo=160,io={init:function(){this.setColour(eo),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Tabular Abstraction:"),this.appendDummyInput().appendField(new Tt.FieldTable(""),"TEXT")}},no={init:function(){this.setColour(eo),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendDummyInput().appendField("Code Block:"),this.appendDummyInput().appendField(new Tt.FieldMultilineInput(""),"TEXT")}},so={init:function(){this.setColour(eo),this.appendDummyInput().appendField("Code Expression:"),this.appendDummyInput().appendField(new Tt.FieldMultilineInput(""),"TEXT"),this.setOutput(!0)}},oo={init:function(){this.setColour(eo),this.setPreviousStatement(!0),this.setNextStatement(!0),this.appendValueInput("VALUE").appendField(""),this.setInputsInline(!1)}},_o={init:function(){this.setColour(eo),this.appendDummyInput().appendTitle("Comment:").appendTitle(new Tt.FieldTextInput(""),"TEXT"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip("This comment will be ignored by Python")}},po={init:function(){this.setColour(eo),this.appendValueInput("VALUE").appendField(Tt.Msg.TYPE_CHECK),this.setInputsInline(!1),this.setOutput(!0,"Type")}},ao={init:function(){this.setColour(eo),this.itemCount_=1,this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Tt.icons.MutatorIcon(["text_print_multiple_item"],this)),this.setTooltip(Tt.Msg.TEXT_PRINT_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=Tt.Block.obtain(t,"text_print_multiple_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;n= stop:"," yield start"," start -= abs(step)"])};if(t=function(t,e,i){return"("+t+" <= "+e+") and "+a()+"("+t+", "+e+", "+i+") or "+u()+"("+t+", "+e+", "+i+")"},Tt.isNumber(n)&&Tt.isNumber(s)&&Tt.isNumber(o))n=parseFloat(n),s=parseFloat(s),o=Math.abs(parseFloat(o)),0==n%1&&0==s%1&&0==o%1?(n<=s?(s++,t=0==n&&1==o?s:n+", "+s,1!=o&&(t+=", "+o)):t=n+", "+--s+", -"+o,t="range("+t+")"):(t=n",GTE:">="};const sa=function(t,e){var i=this.getFieldValue("OP"),n="&&"==i?e.ORDER_LOGICAL_AND:e.ORDER_LOGICAL_OR,s=e.valueToCode(this,"A",n)||"False",o=e.valueToCode(this,"B",n)||"False";if("AND"==i)var _=s+" and "+o;else if("OR"==i)_=s+" or "+o;else if("NOR"==i)_="not("+s+"^"+o+")";else _=s+"^"+o;return[_,n]},oa=function(t,e){var i=e.ORDER_UNARY_PREFIX;return["not "+(e.valueToCode(this,"BOOL",i)||"False"),i]},_a=function(t,e){return["TRUE"==this.getFieldValue("BOOL")?"True":"False",e.ORDER_ATOMIC]},pa=function(t,e){return["None",e.ORDER_ATOMIC]},aa=function(t,e){var i=e.valueToCode(this,"A",e.ORDER_ATOMIC)||"False";return["("+(e.valueToCode(this,"B",e.ORDER_ATOMIC)||"False")+" if "+i+" else "+(e.valueToCode(this,"C",e.ORDER_ATOMIC)||"False")+")",e.ORDER_ATOMIC]},ua=function(t,e){var i=e.valueToCode(this,"A",e.ORDER_ATOMIC)||"''",n=e.valueToCode(this,"B",e.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,e.ORDER_ATOMIC]},ra=function(t,e){var i=e.valueToCode(this,"A",e.ORDER_ATOMIC)||"''",n=e.valueToCode(this,"B",e.ORDER_ATOMIC)||"''";return[i+" "+this.getFieldValue("BOOL")+" "+n,e.ORDER_ATOMIC]},da=function(t,e){return["bool("+(e.valueToCode(this,"VAR",e.ORDER_ATOMIC)||"0")+")",e.ORDER_ATOMIC]},la=function(t,e){return e.definitions_.import_os="import os","os.startfile("+e.valueToCode(this,"fn",e.ORDER_ATOMIC)+")\n"},Ia=function(t,e){return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+" = open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')\n"},Ta=function(t,e){return["open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"')",e.ORDER_ATOMIC]},Ma=function(t,e){return["open("+e.valueToCode(this,"FILENAME",e.ORDER_ATOMIC)+", '"+this.getFieldValue("MODE")+"', encoding=\""+this.getFieldValue("CODE")+'")',e.ORDER_ATOMIC]},ha=function(t,e){var i=e.valueToCode(this,"data",e.ORDER_ATOMIC);return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".write("+i+")\n"},ma=function(t,e){var i=this.getFieldValue("MODE");return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+"."+i+"()",e.ORDER_ATOMIC]},Ea=function(t,e){var i=this.getFieldValue("MODE");return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+"."+i+"("+e.valueToCode(this,"SIZE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},Oa=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".readline("+e.valueToCode(this,"SIZE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},Ra=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".writable()",e.ORDER_ATOMIC]},ca=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".name()",e.ORDER_ATOMIC]},ga=function(t,e){return e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".close()\n"},Ca=function(t,e){e.definitions_.import_os="import os";return["os.listdir()",e.ORDER_ATOMIC]},Sa=function(t,e){return e.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")\n"},Aa=function(t,e){return e.definitions_.import_os="import os",["os.path.getsize("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},La=function(t,e){return[e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".tell()",e.ORDER_ATOMIC]},Na=function(t,e){var i=this.getFieldValue("MODE"),n=0;return n="start"==i?0:"current"==i?1:2,e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+".seek("+e.valueToCode(this,"SIZE",e.ORDER_ATOMIC)+","+n+")\n"},Da=function(t,e){return e.definitions_.import_os="import os","os.chdir("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+")\n"},fa=function(t,e){e.definitions_.import_os="import os";return["os.getcwd()",e.ORDER_ATOMIC]},Fa=function(t,e){return e.definitions_.import_os="import os","os."+this.getFieldValue("MODE")+"("+e.valueToCode(this,"PATH",e.ORDER_ATOMIC)+")\n"},Pa=function(t,e){return e.definitions_.import_os="import os","os.rename("+e.valueToCode(this,"FILE",e.ORDER_ATOMIC)+","+e.valueToCode(this,"NEWFILE",e.ORDER_ATOMIC)+")\n"},va=function(t,e){e.definitions_.import_os="import os";var i=e.valueToCode(this,"FILE",e.ORDER_ATOMIC);return["os."+this.getFieldValue("MODE")+"("+i+")",e.ORDER_ATOMIC]},Ya=function(t,e){return e.definitions_.import_os="import os",e.definitions_.import_sdcard="import sdcard",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+" = sdcard.SDCard("+e.valueToCode(this,"SPISUB",e.ORDER_ATOMIC)+","+e.valueToCode(this,"PINSUB",e.ORDER_ATOMIC)+")\n"},Xa=function(t,e){return e.definitions_.import_os="import os",e.definitions_.import_sdcard="import sdcard","os.mount("+e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+","+e.valueToCode(this,"DIR",e.ORDER_ATOMIC)+")\n"},xa=function(t,e){var i=e.variableDB_.getName(this.getFieldValue("NAME"),Tt.Procedures.NAME_TYPE),n=(this.getInput("STACK")&&e.statementToCode(this,"STACK"))??" pass\n";e.INFINITE_LOOP_TRAP&&(n=e.INFINITE_LOOP_TRAP.replace(/%1/g,"'"+this.id+"'")+n);var s=e.valueToCode(this,"RETURN",e.ORDER_NONE)||"";s&&(s=" return "+s+"\n");for(var o=[],_=0;_\n\n\n\t\n"+e.statementToCode(this,"HEAD")+"\n\n"+e.statementToCode(this,"BODY")+"\n\n'''",e.ORDER_ATOMIC]},mu=function(t,e){var i=e.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"\n"+i+"\n"},Eu=function(t,e){var i=e.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},Ou=function(t,e){var i=e.statementToCode(this,"DO"),n=this.getFieldValue("LEVEL");return"<"+n+">\n"+i+"\n"},Ru=function(t,e){var i=e.statementToCode(this,"DO"),n=e.valueToCode(this,"style"),s=this.getFieldValue("LEVEL");return"<"+s+" "+n+" >\n"+i+"\n"},cu=function(t,e){return['style="'+e.statementToCode(this,"STYLE")+'"',e.ORDER_ATOMIC]},gu=function(t,e){return'"},Cu=function(){return this.getFieldValue("KEY")+":"+this.getFieldValue("VALUE")+";"},Su=function(){return this.getFieldValue("TEXT")+"\n"},Au=function(t){return t.getFieldValue("TEXT")+"\n"},Lu=function(t,e){return[t.getFieldValue("TEXT"),e.ORDER_ATOMIC]},Nu=function(t,e){return(e.valueToCode(t,"VALUE",e.ORDER_ATOMIC)||"")+"\n"},Du=function(){return""},fu=function(t,e){return["type("+(e.valueToCode(t,"VALUE",e.ORDER_MEMBER)||"___")+")",e.ORDER_ATOMIC]},Fu=function(t,e){for(var i=t.getFieldValue("NAME"),n=t.hasReturn_,s=new Array(t.itemCount_),o=0;o0?e.join("\n")+i.join("\n")+n.join("\n")+_.join("\n")+p.join("")+t+"while True:\n"+a.join("")+u.join("\n"):e.join("\n")+i.join("\n")+n.join("\n")+_.join("\n")+p.join("")+t+u.join("\n")},Xu.scrubNakedValue=function(t){return t+"\n"},Xu.quote_=function(t){var e="'";return-1!==t.indexOf("'")&&(-1===t.indexOf('"')?e='"':t=t.replace(/'/g,"\\'")),e+t+e},Xu.multiline_quote_=function(t){return"'''"+(t=t.replace(/'''/g,"\\'\\'\\'"))+"'''"},Xu.scrub_=function(t,e,i){var n="";if(!t.outputConnection||!t.outputConnection.targetConnection){(o=t.getCommentText())&&(o=Tt.utils.string.wrap(o,Xu.COMMENT_WRAP-3),n+=Xu.prefixLines(o+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const xu="#74A55B",bu={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MIDI),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Tt.Msg.MIXLY_RGB_PIN_COUNT)}},yu={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Tt.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Vu={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Tt.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Bu={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendValueInput("LIST").appendField(Tt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Gu={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendValueInput("TICKS").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(Tt.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(Tt.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},Uu={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},wu={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_RESET)}},Hu={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},ku={init:function(){this.setColour(xu),this.appendValueInput("SUB"),this.appendValueInput("percent").appendField(Tt.Msg.MIXLY_MUSIC_VOLUME_SET),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Wu={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING).appendField(Tt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_EXTERN_LED_SETONOFF)}},Ku={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Tt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},Ju={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Tt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_EXTERN_LED_GETONOFF)}},Qu={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING).appendField(Tt.Msg.MIXLY_EXTERN_LED),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_EXTERN_LED_SETBRIGHT)}},qu={init:function(){this.setColour(xu),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_SETUP+Tt.Msg.MIXLY_SERVO),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},zu={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("DEGREE",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_DEGREE_0_180),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SERVO_MOVE)}},ju={init:function(){this.setColour(xu),this.appendValueInput("VAR").appendField("360°"+Tt.Msg.MIXLY_SERVO),this.appendValueInput("SPEED",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SETTING+Tt.Msg.blockpy_turtle_rotate+Tt.Msg.MIXLY_SPEED+" (-10~10)"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SERVO_360_TOOLTIP)}},$u={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).appendField("180°"+Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SERVO_MOVE)}},Zu={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).appendField("360°"+Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},tr={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).appendField("180°"+Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},er={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).appendField("360°"+Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},ir={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField("初始化").setCheck("var"),this.appendDummyInput().appendField("电机驱动"),this.appendDummyInput().appendField("地址").appendField(new Tt.FieldDropdown([["A","ms32006.ADDRESS_A"],["B","ms32006.ADDRESS_B"]]),"mode"),this.appendValueInput("SUB1").setCheck("var").setAlign(Tt.inputs.Align.RIGHT).appendField("通信"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("初始化MS32006电机驱动,使用I2C通信")}},nr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField("直流电机").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Direction).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"ms32006.MOT_CW"],[Tt.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"],[Tt.Msg.MOTOR_N,"ms32006.MOT_N"],[Tt.Msg.MOTOR_P,"ms32006.MOT_P"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_STEPPER_SET_SPEED),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置直流电机的状态及转速(0-100)")}},sr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField("步进电机").setCheck("var"),this.appendDummyInput().appendField("选择").appendField(new Tt.FieldDropdown([["A","ms32006.MOT_A"],["B","ms32006.MOT_B"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Direction).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"ms32006.MOT_CW"],[Tt.Msg.ANTI_CLOCKWISE,"ms32006.MOT_CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField("转速"),this.appendValueInput("steps").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField("步数"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip("设置步进电机的状态、转速、步数(0-2047)")}},or={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_SETUP).setCheck("var"),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_PIN),this.appendValueInput("LEDCOUNT").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_COUNT),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(Tt.Msg.MIXLY_RGB_PIN_COUNT)}},_r={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("_LED_").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Tt.Msg.MIXLY_RGB_NUM_R_G_B_MP)}},pr={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Tt.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},ar={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_WRI)}},ur={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.MIXLY_DURATION).appendField(Tt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},rr={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.PYTHON_RANGE_STEP).appendField(Tt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},dr={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(Tt.Msg.CONTROLS_FOR_INPUT_WITH+"uart").appendField(new Tt.FieldDropdown([["uart1","uart1"],["uart2","uart2"]]),"key"),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_SETUP+Tt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Tt.FieldDropdown([["SYN6288"+Tt.Msg.MIXLY_AipSpeech_synthesis,"SYN6288"],["NS9300"+Tt.Msg.MIXLY_MUSIC_PLAYER,"NS9300"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},lr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_WHETHER).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_STOPPED,"0"],[Tt.Msg.MIXLY_PLAYING,"1"],[Tt.Msg.MIXLY_PAUSED,"2"]]),"key"),this.setInputsInline(!0),this.setOutput(!0)}},Ir={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_STAT).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MP3_PLAY,"1"],[Tt.Msg.MIXLY_MP3_PAUSE,"2"],[Tt.Msg.MIXLY_STOP,"3"],[Tt.Msg.MIXLY_MP3_PREV,"4"],[Tt.Msg.MIXLY_MP3_NEXT,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Tr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendValueInput("volume").appendField(Tt.Msg.MIXLY_MP3_VOL+Tt.Msg.MIXLY_STAT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_PLAYER_SET_VOLUME_TOOLTIP)}},Mr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MODE+Tt.Msg.MIXLY_STAT).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MP3_LOOP_ALL,"0"],[Tt.Msg.MIXLY_MP3_LOOP_ONE,"1"],[Tt.Msg.MIXLY_PLAYER_DIRECTORY_LOOP,"2"],[Tt.Msg.MIXLY_MP3_LOOP_RAM,"3"],[Tt.Msg.MIXLY_PLAYER_SINGLE_STOP,"4"],[Tt.Msg.MIXLY_PLAYER_SEQUENTIAL_PLAY,"5"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},hr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MUSIC_PLAYER).setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_START_MELODY,"play"],[Tt.Msg.MIXLY_PLAYER_INSERT_MUSIC,"insert"]]),"key"),this.appendValueInput("song"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_PLAYER_PLAY_MUSIC_TOOTIP)}},mr={},Er={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(Tt.Msg.MIXLY_SET_VOLUME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Or={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET_VOLUME),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_SET_VOLUME_TOOLTIP)}},Rr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("VOICE").setCheck(Number).appendField(Tt.Msg.MIXLY_PLAY_HINTS),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PROGRAM_BLOCK).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_PLAY_HINTS_TOOLTIP)}},cr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField("SYN6288"),this.appendValueInput("data").setCheck(String).appendField(Tt.Msg.MIXLY_AipSpeech_synthesis),this.appendValueInput("VOICE").setCheck(Number).appendField(Tt.Msg.MIXLY_BACKGROUND_MUSIC),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PROGRAM_BLOCK).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"mode"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_PLAY_TTS_TOOLTIP)}},gr={init:function(){this.setColour(xu),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.extern_addr),"PIN"),this.setOutput(!0,Number)}},Cr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_MOTOR).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},Sr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_MOTOR).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},Ar={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_TRAFFIC_LIGHT).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.LISTS_SET_INDEX_SET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_Turn_off_display,"0"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT_RED_ON,"1"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT_RED_BLINK,"2"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_ON,"3"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT_YELLOW_BLINK,"4"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_ON,"5"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT_GREEN_BLINK,"6"]]),"light"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Lr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Tt.FieldDropdown([[Tt.Msg.COLOUR_RGB_WHITE,"W"],[Tt.Msg.COLOUR_RGB_RED,"R"],[Tt.Msg.COLOUR_RGB_YELLOW,"Y"],[Tt.Msg.COLOUR_RGB_GREEN,"G"],[Tt.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendValueInput("value").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.BRIGHTNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Nr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Tt.FieldDropdown([[Tt.Msg.COLOUR_RGB_WHITE,"W"],[Tt.Msg.COLOUR_RGB_RED,"R"],[Tt.Msg.COLOUR_RGB_YELLOW,"Y"],[Tt.Msg.COLOUR_RGB_GREEN,"G"],[Tt.Msg.COLOUR_RGB_BLUE,"B"]]),"color").appendField("LED").appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.BRIGHTNESS),this.setOutput(!0,Number),this.setInputsInline(!0)}},Dr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_SERVO_MOTOR).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"[0]"],[Tt.Msg.MIXLY_SPEED,"[1]"],[Tt.Msg.MATH_SINGLE_OP_ABSOLUTE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[2]"],[Tt.Msg.MIXLY_RELATIVE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"[3]"],[Tt.Msg.MIXLY_MIXBOT_SERVO_BLOCK_OR_NOT,"[4]"],[Tt.Msg.MIXLY_MIXBOT_SERVO_FINISH_OR_NOT,"[5]"],[Tt.Msg.MIXLY_ALL,""]]),"status"),this.setOutput(!0,Number),this.setInputsInline(!0)}},fr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_SERVO_MOTOR).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_SERVO_SET_STOP_MODE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_KEEP,"0"],[Tt.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_COAST,"1"],[Tt.Msg.MIXLY_MIXBOT_SERVO_STOP_MODE_BRAKE,"2"]]),"status"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Fr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_SERVO_MOTOR).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_STOP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Pr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_SERVO_MOTOR).appendField(Tt.Msg.MATH_SINGLE_OP_ABSOLUTE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Tt.Msg.MSG.run).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MODE).setAlign(Tt.inputs.Align.RIGHT).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_SPEED+Tt.Msg.MIXLY_MODE,"0"],[Tt.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Tt.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Tt.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(Tt.inputs.Align.RIGHT).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"0"],[Tt.Msg.MIXLY_MIXBOT_SERVO_NEAREST_PATH,"1"],[Tt.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.appendValueInput("angle").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MIXBOT_SERVO_ABSOLUTE_ANGLE_TOOLTIP)}},vr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_SERVO_MOTOR).appendField(Tt.Msg.MIXLY_RELATIVE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Tt.Msg.MSG.run).appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ORIGIN_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Yr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_SERVO_MOTOR).appendField(Tt.Msg.MIXLY_RELATIVE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Tt.Msg.MSG.run).appendField("("+Tt.Msg.MIXLY_MIXBOT_SERVO_LIKE_ENCODING_MOTOR+")").appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MODE).setAlign(Tt.inputs.Align.RIGHT).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_SPEED+Tt.Msg.MIXLY_MODE,"0"],[Tt.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Tt.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Tt.inputs.Align.RIGHT).appendField("%"),this.appendValueInput("angle").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MIXBOT_SERVO_RELATIVE_ANGLE_TOOLTIP)}},Xr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.ME_GO_MOTOR_EXTERN+Tt.Msg.MIXLY_SERVO_MOTOR).appendField(Tt.Msg.MIXLY_RELATIVE+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE+Tt.Msg.MSG.run).appendField("("+Tt.Msg.MIXLY_MIXBOT_SERVO_LIKE_ORDINARY_MOTOR+")").appendField(Tt.Msg.PIN_NUMBERING).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LEFT,"0"],[Tt.Msg.MIXLY_RIGHT,"1"]]),"mode"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MODE).setAlign(Tt.inputs.Align.RIGHT).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_SPEED+Tt.Msg.MIXLY_MODE,"0"],[Tt.Msg.MIXLY_MICROBIT_JS_BLE_POWER+Tt.Msg.MIXLY_MODE,"1"]]),"status"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_PARAMS),this.appendDummyInput().setAlign(Tt.inputs.Align.RIGHT).appendField("%"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_SERVO_TURN_DIRECTION).setAlign(Tt.inputs.Align.RIGHT).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"0"],[Tt.Msg.ANTI_CLOCKWISE,"2"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},xr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.MIXBOT).appendField(Tt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MOTOR,"ext_motor"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[Tt.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[Tt.Msg.COLOUR_RGB_RED+"LED","R_LED"],[Tt.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[Tt.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[Tt.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[Tt.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_EXTERN_GET_ADDR),this.setOutput(!0),this.setInputsInline(!0)}},br={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.MIXBOT).appendField(Tt.Msg.ME_GO_MOTOR_EXTERN).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MOTOR,"ext_motor"],[Tt.Msg.MIXLY_TRAFFIC_LIGHT,"ext_traffic"],[Tt.Msg.COLOUR_RGB_WHITE+"LED","W_LED"],[Tt.Msg.COLOUR_RGB_RED+"LED","R_LED"],[Tt.Msg.COLOUR_RGB_YELLOW+"LED","Y_LED"],[Tt.Msg.COLOUR_RGB_GREEN+"LED","G_LED"],[Tt.Msg.COLOUR_RGB_BLUE+"LED","B_LED"],[Tt.Msg.MIXLY_SERVO_MOTOR,"ext_servo"]]),"name"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_EXTERN_SET_ADDR),this.appendValueInput("old").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE),this.appendValueInput("new").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_UPDATE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},yr={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SETUP+Tt.Msg.MIXLY_AT).appendField(Tt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Vr={init:function(){this.setColour(xu),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING),this.appendValueInput("pin").appendField("LED"),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Br={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SERVO+Tt.Msg.MIXLY_SETUP+Tt.Msg.MIXLY_AT).appendField(Tt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},Gr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_SERVO),this.appendValueInput("angle").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE),this.appendDummyInput().appendField(Tt.Msg.DRAW_POINTER_ANGLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Ur={init:function(){this.setColour(xu),this.appendValueInput("PIN",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_MOTOR+Tt.Msg.MIXLY_SETUP+Tt.Msg.MIXLY_AT).appendField(Tt.Msg.MIXLY_PIN),this.setInputsInline(!0),this.setOutput(!0)}},wr={init:function(){this.setColour(xu),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MOTOR),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_DISPLAY_MATRIX_ROTATE+Tt.Msg.MIXLY_SPEED),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Hr="#6C9858",kr={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(new Tt.FieldDropdown([["L1","1"],["L2","2"]]),"op"),this.setOutput(!0)}},Wr={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_ESP32_ON,"1"],[Tt.Msg.MIXLY_ESP32_OFF,"0"],[Tt.Msg.MIXLY_ESP32_TOGGLE,"-1"]]),"flag"),this.setOutput(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_INOUT_HIGHLOW)}},Kr={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Tt.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_SETONOFF)}},Jr={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(Tt.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(Tt.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_GETBRIGHT)}},Qr={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("led").appendField(Tt.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_GETONOFF)}},qr={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Tt.Msg.MIXLY_BUILDIN_LED),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_SETTING+Tt.Msg.MIXLY_BUILDIN_LED+Tt.Msg.MIXLY_BRIGHTNESS+"(0-100%)")}},zr={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING),this.appendValueInput("led").appendField(Tt.Msg.MIXLY_BUILDIN_LED),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_LCD_SETCOLOR).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_LIGHT_RED,"1"],[Tt.Msg.MIXLY_LIGHT_GREEN,"2"],[Tt.Msg.MIXLY_LIGHT_BLUE,"3"],[Tt.Msg.MIXLY_LIGHT_YELLOW,"4"],[Tt.Msg.MIXLY_LIGHT_CYAN,"5"],[Tt.Msg.MIXLY_LIGHT_PURPLE,"6"],[Tt.Msg.MIXLY_LIGHT_WHITE,"7"]]),"colorvalue"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},jr={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING).appendField(Tt.Msg.MIXLY_BUILDIN_LED).appendField(new Tt.FieldDropdown([[Tt.Msg.COLOUR_RGB_RED,"r"],[Tt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_PULSEIN_STAT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_SETONOFF)}},$r={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Tt.Msg.MIXLY_BUILDIN_LED).appendField(new Tt.FieldDropdown([[Tt.Msg.COLOUR_RGB_RED,"r"],[Tt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_BRIGHTNESS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_GETONOFF)}},Zr={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(Tt.Msg.MIXLY_BUILDIN_LED).appendField(new Tt.FieldDropdown([[Tt.Msg.COLOUR_RGB_RED,"r"],[Tt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_PULSEIN_STAT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_GETONOFF)}},td={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SETTING).appendField(Tt.Msg.MIXLY_BUILDIN_LED).appendField(new Tt.FieldDropdown([[Tt.Msg.COLOUR_RGB_RED,"r"],[Tt.Msg.COLOUR_RGB_GREEN,"g"]]),"color"),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_BRIGHTNESS),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_SETTING+Tt.Msg.MIXLY_BUILDIN_LED+Tt.Msg.MIXLY_BRIGHTNESS+"(0-10)")}},ed={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(new Tt.FieldDropdown([["L1","20"],["L2","21"]]),"op"),this.setOutput(!0)}},id={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(Mt.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgo_cc":case"micropython:esp32s2:mixgo_ce":this.setTooltip(Tt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgo_me":default:this.setTooltip(Tt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(Tt.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},nd={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Tt.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},sd={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RAINBOW),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.MIXLY_DURATION).appendField(Tt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},od={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.PYTHON_RANGE_STEP).appendField(Tt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},_d={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_RGB_WRITE),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_WRI)}},pd={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("_LED_").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_NUM),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null);switch(Mt.Boards.getSelectedBoardKey()){case"micropython:esp32c3:mixgocc":this.setTooltip(Tt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOCC);break;case"micropython:esp32c3:mixgome":default:this.setTooltip(Tt.Msg.MIXLY_RGB_NUM_R_G_B_MIXGOME);break;case"micropython:esp32:mPython":this.setTooltip(Tt.Msg.MIXLY_RGB_NUM_R_G_B_MPYTHON)}}},ad={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip(""),this.setTooltip(Tt.Msg.MIXLY_RGB_ALL_R_G_B_MIXGOCC)}},ud={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RGB),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_CHASE),this.appendValueInput("RVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_R),this.appendValueInput("GVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_G),this.appendValueInput("BVALUE").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_RGB_B),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.PYTHON_RANGE_STEP).appendField(Tt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},rd={init:function(){this.setColour(Hr),this.appendValueInput("TICKS").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_SET_TEMPO).appendField(Tt.Msg.MICROBIT_ACTUATOR_ticks),this.appendValueInput("BPM").setCheck(Number).appendField(Tt.Msg.MIXLY_SPEED),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_SET_TEMPO)}},dd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Get_current_tempo),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_GET_TEMPO)}},ld={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Reset_music),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_RESET)}},Id={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Tt.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Td={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Tt.Msg.MIXLY_FREQUENCY),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.MIXLY_DURATION),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE2)}},Md={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},hd={init:function(){this.setColour(Hr),this.appendValueInput("LIST").appendField(Tt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},md={init:function(){this.setColour(Hr),this.appendValueInput("LIST").appendField(Tt.Msg.MIXLY_BACKSTAGE+Tt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_MUSIC_PLAY_LISTS)}},Ed={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MOTOR_DC).appendField(new Tt.FieldDropdown([["1","1"],["2","2"],["3","3"]]),"wheel"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Direction).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"CW"],[Tt.Msg.ANTI_CLOCKWISE,"CCW"],[Tt.Msg.MOTOR_P,"P"],[Tt.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Od={init:function(){this.setColour(Hr),this.appendDummyInput().appendField("MixGo Car").appendField(new Tt.FieldDropdown([[Tt.Msg.blockpy_forward,"F"],[Tt.Msg.blockpy_backward,"B"],[Tt.Msg.blockpy_left,"L"],[Tt.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Rd={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField("MixGo Car").appendField(new Tt.FieldDropdown([[Tt.Msg.MOTOR_P,"P"],[Tt.Msg.MOTOR_N,"N"]]),"VAR"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setTooltip("")}},cd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MOTOR_DC).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[Tt.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Direction).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"CW"],[Tt.Msg.ANTI_CLOCKWISE,"CCW"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},gd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MOTOR_DC).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLYCAR_WHEEL_LEFT,"L"],[Tt.Msg.MIXLYCAR_WHEEL_RIGHT,"R"]]),"wheel"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_STOP).appendField(new Tt.FieldDropdown([[Tt.Msg.MOTOR_P,"P"],[Tt.Msg.MOTOR_N,"N"]]),"direction"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Cd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_MOTOR_STATUS),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MIXBOT_MOTOR_STATUS_TOOLTIP)}},Sd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXBOT).appendField(new Tt.FieldDropdown([[Tt.Msg.blockpy_forward,"F"],[Tt.Msg.blockpy_backward,"B"],[Tt.Msg.blockpy_left,"L"],[Tt.Msg.blockpy_right,"R"]]),"VAR"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[Tt.Msg.MIXLY_SPEED,"SPEED"],[Tt.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},Ad={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXBOT).appendField(new Tt.FieldDropdown([[Tt.Msg.MOTOR_P,"P"],[Tt.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Ld={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXBOT).appendField(Tt.Msg.MIXLY_MOTOR).appendField(new Tt.FieldDropdown([[Tt.Msg.TEXT_TRIM_LEFT,"1"],[Tt.Msg.TEXT_TRIM_RIGHT,"2"],[Tt.Msg.TEXT_TRIM_BOTH,"0"]]),"wheel"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_MODE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_BLE_POWER,"PWR"],[Tt.Msg.MIXLY_SPEED,"SPEED"],[Tt.Msg.MIXLY_MIXBOT_MOTOR_TURNS,"TURNS"]]),"mode"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_PARAMS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MIXBOT_MOVE_TOOLTIP)}},Nd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_BUZZER),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_ON,"0"],[Tt.Msg.MIXLY_MICROBIT_PY_COMMUNICATE_OFF,"1"]]),"on_off"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Dd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.BITBOT).appendField(new Tt.FieldDropdown([[Tt.Msg.blockpy_forward,"F"],[Tt.Msg.blockpy_backward,"B"],[Tt.Msg.blockpy_left,"L"],[Tt.Msg.blockpy_right,"R"]]),"VAR"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},fd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.BITBOT).appendField(new Tt.FieldDropdown([[Tt.Msg.MOTOR_P,"P"],[Tt.Msg.MOTOR_N,"N"]]),"VAR"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Fd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.BITBOT).appendField(Tt.Msg.MIXLY_MOTOR).appendField(new Tt.FieldDropdown([[Tt.Msg.TEXT_TRIM_LEFT,"0"],[Tt.Msg.TEXT_TRIM_RIGHT,"1"]]),"wheel"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Direction).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"CW"],[Tt.Msg.ANTI_CLOCKWISE,"CCW"],[Tt.Msg.MOTOR_P,"P"],[Tt.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Pd={init:function(){this.setColour(Hr),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_MIXBOT_SOUND_SET_LOUDNESS),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_SETONOFF)}},vd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_SOUND_LOUDNESS+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_GETONOFF)}},Yd={init:function(){this.setColour(Hr),this.appendValueInput("bright").appendField(Tt.Msg.MIXLY_SETTING+Tt.Msg.MIXLY_MIXBOT_BUZZER+Tt.Msg.MIXLY_MP3_VOL),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_SETONOFF)}},Xd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_MIXBOT_BUZZER+Tt.Msg.MIXLY_MP3_VOL+"(%)"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_LED_GETONOFF)}},xd={init:function(){this.setColour(Hr),this.appendValueInput("PATH").appendField(Tt.Msg.MIXLY_RECORD_AUDIO).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.appendValueInput("TIME").setCheck(Number).appendField(Tt.Msg.MIXLY_GET_PRESSES_TIME),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},bd={init:function(){this.setColour(Hr),this.appendValueInput("PATH").appendField(Tt.Msg.MIXLY_PLAY_AUDIO).appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},yd={init:function(){this.setColour(Hr),this.appendValueInput("PATH").appendField(Tt.Msg.MIXLY_PLAY_ONLINE_AUDIO).appendField("URL"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},Vd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_TONE),this.appendValueInput("pitch").setCheck(Number).appendField(Tt.Msg.MIXLY_FREQUENCY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_TONE)}},Bd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_NOTONE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},Gd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.LISTS_SET_INDEX_SET+Tt.Msg.ME_GO_MOTOR_EXTERN).appendField(Tt.Msg.PIN_NUMBERING);if("micropython:esp32c2:mixgo_mini"===Mt.Boards.getSelectedBoardKey())this.appendDummyInput().appendField(new Tt.FieldDropdown([["1","1"],["2","2"]]),"index");else this.appendDummyInput().appendField(new Tt.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index");this.appendValueInput("duty").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.blynk_IOT_IR_POWER+Tt.Msg.MIXLY_PINMODEOUT),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip()}},Ud={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.ME_GO_MOTOR_EXTERN).appendField(Tt.Msg.PIN_NUMBERING);if("micropython:esp32c2:mixgo_mini"===Mt.Boards.getSelectedBoardKey())this.appendDummyInput().appendField(new Tt.FieldDropdown([["1","1"],["2","2"]]),"index");else this.appendDummyInput().appendField(new Tt.FieldDropdown([["1","1"],["2","2"],["3","3"],["4","4"]]),"index");this.appendDummyInput().setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.blynk_IOT_IR_POWER+Tt.Msg.MIXLY_PINMODEOUT+Tt.Msg.MIXLY_DUTY_RATIO),this.setOutput(!0,Number),this.setInputsInline(!0)}},wd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.LISTS_SET_INDEX_SET+Tt.Msg.ME_GO_MOTOR_EXTERN).appendField(Tt.Msg.MIXLY_ALL+Tt.Msg.PIN_NUMBERING),this.appendValueInput("duty").setCheck(Number).setAlign(Tt.ALIGN_RIGHT).appendField(Tt.Msg.blynk_IOT_IR_POWER+Tt.Msg.MIXLY_PINMODEOUT+Tt.Msg.MIXLY_FREQUENCY),this.appendDummyInput().appendField("Hz"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MIXBOT_MOTOR_EXTERN_TOOLTIP)}},Hd={init:function(){this.setColour(Hr),this.appendDummyInput().appendField(Tt.Msg.ANALOG+Tt.Msg.MIXLY_KEYBOARD_INPUT),this.appendValueInput("special"),this.appendValueInput("general"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_RELEASE).appendField(new Tt.FieldDropdown([[Tt.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Tt.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"release"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.ANALOG+Tt.Msg.MIXLY_KEYBOARD_INPUT)}},kd={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_SPECIAL_KEY).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_SPECIAL_KEY0,"0x00"],[Tt.Msg.MIXLY_SPECIAL_KEY1,"0x01"],[Tt.Msg.MIXLY_SPECIAL_KEY2,"0x02"],[Tt.Msg.MIXLY_SPECIAL_KEY4,"0x04"],[Tt.Msg.MIXLY_SPECIAL_KEY8,"0x08"],[Tt.Msg.MIXLY_SPECIAL_KEY16,"0x10"],[Tt.Msg.MIXLY_SPECIAL_KEY32,"0x20"],[Tt.Msg.MIXLY_SPECIAL_KEY64,"0x40"],[Tt.Msg.MIXLY_SPECIAL_KEY128,"0x80"]]),"op"),this.setOutput(!0)}},Wd={init:function(){this.setColour(Hr),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_GENERAL_KEY).appendField(new Tt.FieldDropdown([[Tt.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)}},Kd={init:function(){this.setColour(Hr),this.itemCount_=2,this.updateShape_(),this.setOutput(!0),this.setMutator(new Tt.icons.MutatorIcon(["generalkey_create_with_item"],this)),this.setTooltip(Tt.Msg.GENERALKEY_TUPLE_CREATE_TOOLTIP)},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("generalkey_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;nnew Array(32).fill(0)))},bh={init:function(){this.jsonInit({colour:Ah,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:Tt.Msg.MIXLY_MICROBIT_Built_in_image1,message0:Tt.Msg.MIXLY_MICROBIT_Built_in_image})}},yh={init:function(){this.setColour(Ah),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new Tt.FieldDropdown(Mt.Profile.default.builtinimg),"image"),this.setOutput(!0,["esp32_image","List"])}},Vh={init:function(){this.setColour(Ah),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Tt.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Tt.FieldDropdown(Vh.OPERATORS),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{"+":Tt.Msg.MIXLY_MICROBIT_image_add,"-":Tt.Msg.MIXLY_MICROBIT_image_reduce}[e]}))},OPERATORS:[[Tt.Msg.MICROBIT_DISPLAY_UNION,"add"],[Tt.Msg.MICROBIT_DISPLAY_MINUS,"sub"]]},Bh={init:function(){this.setColour(Ah),this.appendValueInput("A").setCheck("esp32_image").appendField(Tt.Msg.MIXLY_MICROBIT_Invert_image1),this.setInputsInline(!0),this.setOutput(!0,"esp32_image")}},Gh={init:function(){this.setColour(Ah),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.appendDummyInput("").appendField(Tt.Msg.DISPLAY_IMAGE_LET),this.appendDummyInput("").appendField(Tt.Msg.DISPLAY_IMAGE_LET2).appendField(new Tt.FieldDropdown(Gh.OPERATORS),"OP"),this.appendValueInput("val").appendField(Tt.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(Tt.Msg.DISPLAY_IMAGE_UNIT);Mt.Boards.getSelectedBoardKey();"Python ESP32-S3"===Mt.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Tt.Msg.MIXLY_synchronize+":");var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP"),i=Tt.Msg.DISPLAY_IMAGE_LET,n=Tt.Msg.DISPLAY_IMAGE_LET2,s=Tt.Msg.DISPLAY_IMAGE_LET3;return i+n+{shift_up:Tt.Msg.MIXLY_UP,shift_down:Tt.Msg.MIXLY_DOWN,shift_left:Tt.Msg.MIXLY_LEFT,shift_right:Tt.Msg.MIXLY_RIGHT}[e]+s}))},OPERATORS:[[Tt.Msg.MIXLY_UP,"shift_up"],[Tt.Msg.MIXLY_DOWN,"shift_down"],[Tt.Msg.MIXLY_LEFT,"shift_left"],[Tt.Msg.MIXLY_RIGHT,"shift_right"]]},Uh={init:function(){this.setColour(Ah),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_JS_MONITOR_GET_POINT),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},wh={init:function(){this.setColour(Ah),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Tt.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(Tt.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},Hh={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},kh={init:function(){this.setColour(Ah),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},Wh={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Clear_display);Mt.Boards.getSelectedBoardKey();"Python ESP32-S3"===Mt.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Tt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Clear_display)}},Kh={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.MIXLY_SHOW+Tt.Msg.MIXLY_DISPLAY_MATRIX_WRITE_NOW),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Jh={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<5;t++){let e=this.appendDummyInput();for(let i=0;i<8;i++)e.appendField(new Tt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Qh={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Tt.inputs.Align.CENTRE).appendField(new Tt.FieldBitmap(Qh.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(8).fill(0)))},qh={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<8;t++){let e=this.appendDummyInput();for(let i=0;i<12;i++)e.appendField(new Tt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},zh={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Tt.inputs.Align.CENTRE).appendField(new Tt.FieldBitmap(zh.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(12).fill(0)))},jh={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<8;t++){let e=this.appendDummyInput();for(let i=0;i<16;i++)e.appendField(new Tt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0,"esp32_image"),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},$h={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Tt.inputs.Align.CENTRE).appendField(new Tt.FieldBitmap($h.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:8},(()=>new Array(16).fill(0)))},Zh={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.OLED_SET_FONT).appendField(new Tt.FieldDropdown(Zh.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[["4x5"+Tt.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'4x5'"],["5x5"+Tt.Msg.MIXGO_ME_DISPLAY_HORIZONTAL,"'5x5'"],["5x8"+Tt.Msg.MIXGO_ME_DISPLAY_VERTICAL,"'5x8'"]]},tm={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.OLED_BITMAP),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.OLED_BITMAP_OR_STRING)}},em={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_NUMBER),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.OLED_BITMAP_OR_STRING)}},im={init:function(){this.setColour(Ah),this.appendValueInput("data").setCheck([String,"esp32_image","List","Tuple"]).appendField(Tt.Msg.OLED_DRAWSTR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.OLED_BITMAP_OR_STRING)}},nm={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Tt.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(Tt.Msg.TEXT_CENTER).appendField(new Tt.FieldDropdown([[Tt.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Tt.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},sm={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_STRING),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Tt.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SCROLL_IMAGE_OR_STRING_DELAY)}},om={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},_m={init:function(){this.setColour(Ah),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.MIXLY_ESP32_JS_MONITOR_SET_BRIGHTNESS).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Tt.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(Tt.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},pm={init:function(){this.jsonInit({colour:Ah,args0:[{name:"state",options:[[Tt.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[Tt.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"shape",options:[[Tt.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[Tt.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:Tt.Msg.mpython_HELPURL,tooltip:Tt.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:Tt.Msg.MPYTHON_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},am={init:function(){this.jsonInit({colour:Ah,args0:[{name:"state",options:[[Tt.Msg.MPYTHON_DISPLAY_MODE_1,"1"],[Tt.Msg.MPYTHON_DISPLAY_MODE_0,"0"]],type:"field_dropdown"},{name:"dir_h_v",options:[[Tt.Msg.mpython_vertical,"0"],[Tt.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:Tt.Msg.mpython_HELPURL,tooltip:Tt.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:Tt.Msg.MPYTHON_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},um={init:function(){this.jsonInit({colour:Ah,args0:[{name:"state",options:[[Tt.Msg.mpython_display_hline_1,"1"],[Tt.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:Tt.Msg.mpython_HELPURL,tooltip:Tt.Msg.mpython_display_line_TOOLTIP,message0:Tt.Msg.mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},rm={init:function(){this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Built_in_image1).appendField(new Tt.FieldDropdown(rm.IMAGES),"path"),this.setColour(Ah),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"]]},dm={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<5;t++){let e=this.appendDummyInput();for(let i=0;i<5;i++)e.appendField(new Tt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},lm={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Tt.inputs.Align.CENTRE).appendField(new Tt.FieldBitmap(lm.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:5},(()=>new Array(5).fill(0)))},Im={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_ESP32_JS_MONITOR_GET_SCREEN_BRIGHTNESS)}},Tm={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_AMBIENTBRIGHT),this.setInputsInline(!0),this.setOutput(!0,Number)}},Mm={init:function(){this.setColour(Ah),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_JS_MONITOR_SET_SCREEN_BRIGHTNESS+" 0.0-1.0")}},hm={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXBOT_SCREEN_ROTATE).appendField(new Tt.FieldDropdown(hm.OPERATORS),"OP"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)},OPERATORS:[[Tt.Msg.mixpy_PL_PIE_SHADOW_N,"0"],[Tt.Msg.CLOCKWISE+"90"+Tt.Msg.blockpy_setheading_degree,"1"],[Tt.Msg.CLOCKWISE+"180"+Tt.Msg.blockpy_setheading_degree,"2"],[Tt.Msg.CLOCKWISE+"270"+Tt.Msg.blockpy_setheading_degree,"3"]]},mm={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE);for(let t=0;t<12;t++){let e=this.appendDummyInput();for(let i=0;i<12;i++)e.appendField(new Tt.FieldColour("#000",null,{colourOptions:["#f00","#000"],columns:2}),t+"-"+i)}this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Em={init:function(){this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_CREATE_IMAGE),this.appendDummyInput("").setAlign(Tt.inputs.Align.CENTRE).appendField(new Tt.FieldBitmap(Em.BITMAP,null,{filledColor:"#000",emptyColor:"#5ba5a5",bgColor:"#e5e7f1"}),"BITMAP"),this.setOutput(!0),this.setColour(Ah),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Create_image1)},BITMAP:Array.from({length:12},(()=>new Array(12).fill(0)))},Om={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.OLED_BITMAP),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(Tt.Msg.HTML_COLOUR);Mt.Boards.getSelectedBoardKey();"Python ESP32-S3"===Mt.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Tt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Rm={init:function(){this.setColour(Ah),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.OLED_BITMAP).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("direct").setCheck(String).appendField(Tt.Msg.MIXLY_AipImageClassify_Image+Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_THE_PATH),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},cm={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.OLED_DRAWSTR),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("space").setCheck(Number).appendField(Tt.Msg.MICROPYTHON_DISPLAY_FONT_SPACE),this.appendDummyInput("").appendField(Tt.Msg.TEXT_CENTER).appendField(new Tt.FieldDropdown([[Tt.Msg.MICROPYTHON_DISPLAY_YES,"True"],[Tt.Msg.MICROPYTHON_DISPLAY_NO,"False"]]),"center"),this.appendValueInput("VAR").appendField(Tt.Msg.HTML_COLOUR);Mt.Boards.getSelectedBoardKey();"Python ESP32-S3"===Mt.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Tt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SHOW_IMAGE_OR_STRING_DELAY)}},gm={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.MIXLY_ESP32_MONITOR_SHOW_FRAME),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_TURTLE_WRITE_FONT_NUM),this.appendValueInput("time").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_SCROLL_INTERVAL),this.appendValueInput("VAR").appendField(Tt.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Cm={init:function(){this.jsonInit({colour:Ah,args0:[{name:"shape",options:[[Tt.Msg.MPYTHON_DISPLAY_HOLLOW,"rect"],[Tt.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:Tt.Msg.mpython_HELPURL,tooltip:Tt.Msg.MPYTHON_DISPLAY_SHAPE_RECT_TOOLTIP,message0:Tt.Msg.ONBOARD_TFT_DISPLAY_SHAPE_RECT_MESSAGE0,nextStatement:null,previousStatement:null})}},Sm={init:function(){this.jsonInit({colour:Ah,args0:[{name:"dir_h_v",options:[[Tt.Msg.mpython_vertical,"0"],[Tt.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:Tt.Msg.mpython_HELPURL,tooltip:Tt.Msg.MPYTHON_DISPLAY_HVLINE_TOOLTIP,message0:Tt.Msg.ONBOARD_TFT_DISPLAY_HVLINE_MESSAGE0,nextStatement:null,previousStatement:null})}},Am={init:function(){this.jsonInit({colour:Ah,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:Tt.Msg.mpython_HELPURL,tooltip:Tt.Msg.mpython_display_line_TOOLTIP,message0:Tt.Msg.onboard_mpython_display_line_MESSAGE0,nextStatement:null,previousStatement:null})}},Lm={init:function(){this.setColour(Ah),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendDummyInput().appendField(Tt.Msg.HTML_COLOUR),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_ESP32_JS_MONITOR_BRIGHTNESS)}},Nm={init:function(){this.setColour(Ah),this.appendValueInput("x").setCheck(Number).appendField(Tt.Msg.MIXLY_LCD_SETCOLOR).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_GET_POINT_X),this.appendValueInput("y").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROBIT_JS_MONITOR_PLOT_POINT_Y),this.appendValueInput("VAR").appendField(Tt.Msg.HTML_COLOUR);Mt.Boards.getSelectedBoardKey();"Python ESP32-S3"===Mt.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Tt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_DISPLAY_SETPIXEL)}},Dm={init:function(){this.setColour(Ah),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_SCREEN_FILL);Mt.Boards.getSelectedBoardKey();"Python ESP32-S3"===Mt.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Tt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},fm={init:function(){this.setColour(Ah),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_INIT_CLOCK),this.appendDummyInput().appendField(Tt.Msg.MIXLY_CENTER_POS),this.appendValueInput("x").setCheck(Number).appendField("x"),this.appendValueInput("y").setCheck(Number).appendField("y"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.OLED_CIRCLE_RADIUS),this.appendValueInput("VAR").appendField(Tt.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Fm={init:function(){this.setColour(Ah),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Tt.Msg.GET_RTCTIME),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Pm={init:function(){this.setColour(Ah),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Tt.Msg.SET_TIME),this.appendValueInput("h").setCheck(Number).appendField(Tt.Msg.MIXLY_HOUR),this.appendValueInput("m").setCheck(Number).appendField(Tt.Msg.MIXLY_MINUTE),this.appendValueInput("s").setCheck(Number).appendField(Tt.Msg.MIXLY_SECOND),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},vm={init:function(){this.setColour(Ah),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Tt.Msg.DRAW_CLOCK),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Ym={init:function(){this.setColour(Ah),this.appendValueInput("SUB"),this.appendDummyInput().appendField(Tt.Msg.CLEAR_CLOCK),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_STM32_TFT_BACKGROUND_COLOR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Xm={init:function(){this.jsonInit({colour:Ah,args0:[{name:"shape",options:[[Tt.Msg.MPYTHON_DISPLAY_HOLLOW,"False"],[Tt.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:Tt.Msg.mpython_HELPURL,message0:Tt.Msg.ONBOARD_TFT_DISPLAY_SHAPE_CIRCLE_MESSAGE0,nextStatement:null,previousStatement:null})}},xm={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.DRAW_POINTER).appendField(Tt.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_DRAW_POINTER_DU),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.DRAW_POINTER_TOOLTIP)}},bm={init:function(){this.setColour(Ah),this.appendDummyInput().appendField(Tt.Msg.DRAW_POINTER).appendField(Tt.Msg.DRAW_POINTER_ANGLE),this.appendValueInput("angle"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_DRAW_POINTER_DU),this.appendValueInput("VAR").appendField(Tt.Msg.HTML_COLOUR),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.DRAW_POINTER_TOOLTIP)}},ym={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.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(Tt.Msg.MIXLY_MICROBIT_JS_NUMBER),this.appendValueInput("VAR").appendField(Tt.Msg.HTML_COLOUR);Mt.Boards.getSelectedBoardKey();"Python ESP32-S3"===Mt.JSFuncs.getPlatform()&&this.appendValueInput("boolean").appendField(Tt.Msg.MIXLY_synchronize+":"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},Vm={init:function(){this.setColour(Ah),this.appendValueInput("data").appendField(Tt.Msg.OLED_BITMAP),this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.OLED_BITMAP_OR_STRING),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Bm={init:function(){Dh.init.call(this),this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Gm={init:function(){vh.init.call(this),this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Um={init:function(){Gh.init.call(this),this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},wm={init:function(){Hh.init.call(this),this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Hm={init:function(){kh.init.call(this),this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},km={init:function(){Wh.init.call(this),this.appendDummyInput().appendField(`(${Tt.Msg.MIXLY_DEPRECATED})`),this.setWarningText(Tt.Msg.MIXLY_DEPRECATED_WARNING_TEXT)}},Wm=180,Km={init:function(){this.setColour(Wm),this.setOutput(!0),this.setInputsInline(!0),this.appendValueInput("img").appendField(Tt.Msg.DISPLAY_IMAGE_LET).setCheck(["esp32_image","List",String]),this.appendDummyInput("").appendField(Tt.Msg.DISPLAY_IMAGE_LET2).appendField(new Tt.FieldDropdown(Km.OPERATORS),"OP"),this.appendValueInput("val").appendField(Tt.Msg.DISPLAY_IMAGE_SHIFT).setCheck(Number),this.appendDummyInput("").appendField(Tt.Msg.DISPLAY_IMAGE_UNIT);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP"),i=Tt.Msg.DISPLAY_IMAGE_LET,n=Tt.Msg.DISPLAY_IMAGE_LET2,s=Tt.Msg.DISPLAY_IMAGE_LET3;return i+n+{up:Tt.Msg.MIXLY_UP,down:Tt.Msg.MIXLY_DOWN,left:Tt.Msg.MIXLY_LEFT,right:Tt.Msg.MIXLY_RIGHT}[e]+s}))},OPERATORS:[[Tt.Msg.MIXLY_UP,"up"],[Tt.Msg.MIXLY_DOWN,"down"],[Tt.Msg.MIXLY_LEFT,"left"],[Tt.Msg.MIXLY_RIGHT,"right"]]},Jm={init:function(){this.setColour(Wm),this.setOutput(!0,"esp32_image"),this.appendValueInput("A").appendField(Tt.Msg.MICROBIT_DISPLAY_MERGE_SHAPE),this.appendValueInput("B").appendField(new Tt.FieldDropdown(Jm.OPERATORS),"OP"),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return{"+":Tt.Msg.MIXLY_MICROBIT_image_add,"-":Tt.Msg.MIXLY_MICROBIT_image_reduce}[e]}))},OPERATORS:[[Tt.Msg.MICROBIT_DISPLAY_UNION,"+"],[Tt.Msg.MICROBIT_DISPLAY_MINUS,"-"]]},Qm={init:function(){this.setColour(Wm),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Tt.Msg.MIXLY_MICROBIT_IMAGE),this.appendValueInput("VAR").setCheck("esp32_image"),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Qm.OPERATORS),"OP"),this.setInputsInline(!0),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("OP");return Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Tt.Msg.MIXLY_MICROBIT_IMAGE+{height:Tt.Msg.MIXLY_HEIGHT,width:Tt.Msg.MIXLY_WIDTH}[e]}))},OPERATORS:[[Tt.Msg.MIXLY_HEIGHT,"height"],[Tt.Msg.MIXLY_WIDTH,"width"]]},qm={init:function(){this.setColour(Wm),this.appendValueInput("VAR").appendField(Tt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RECT).appendField(new Tt.FieldDropdown(qm.STATUS),"OP"),this.jsonInit({message0:Tt.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(Tt.Msg.MIXLY_OLED_RECT)},STATUS:[[Tt.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Tt.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},zm={init:function(){this.setColour(Wm),this.appendValueInput("VAR").appendField(Tt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE).appendField(new Tt.FieldDropdown(zm.STATUS),"OP"),this.jsonInit({message0:Tt.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(Tt.Msg.MIXLY_MIXPY_TURTLE_DRAW_CIRCLE)},STATUS:[[Tt.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Tt.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},jm={init:function(){this.setColour(Wm),this.appendValueInput("VAR").appendField(Tt.Msg.OLED).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_DISPLAY_DRAW+Tt.Msg.MIXLY_HANBIT_DRAW_TRIANGLE).appendField(new Tt.FieldDropdown(jm.STATUS),"OP"),this.jsonInit({message0:Tt.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(Tt.Msg.MIXLY_DISPLAY_DRAW+Tt.Msg.MIXLY_HANBIT_DRAW_TRIANGLE)},STATUS:[[Tt.Msg.MIXLY_4DIGITDISPLAY_ON,"1"],[Tt.Msg.MIXLY_4DIGITDISPLAY_OFF,"0"]]},$m="#777777",Zm={init:function(){this.setColour($m),this.appendDummyInput("").appendField("from ").appendField(new Tt.FieldTextInput("ESP32"),"path").appendField(" import ").appendField(new Tt.FieldTextInput("*"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},tE={init:function(){this.setColour($m),this.appendDummyInput("").appendField("import ").appendField(new Tt.FieldTextInput("module"),"module"),this.setPreviousStatement(!0),this.setNextStatement(!0)}},eE={init:function(){this.setColour($m),this.appendDummyInput("").appendField(new Tt.FieldTextInput("my_function"),"NAME"),this.itemCount_=1,this.arguments_=["x"],this.updateShape_(),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setMutator(new Tt.icons.MutatorIcon(["factory_create_with_item"],this))},mutationToDom:function(){var t=document.createElement("mutation");t.setAttribute("items",this.itemCount_);for(var e=0;ee?t[e]:'"key'+(e+1)+'"'),"KEY"+e).appendField(":")}},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},wE={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_TYPE_DICT),this.appendStatementInput("STACK"),this.setTooltip(Tt.Msg.DICTS_CREATE_WITH_CONTAINER_TOOLTIP),this.contextMenu=!1}},HE={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},kE={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.DICTS_CREATE_WITH_ITEM_TITLE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.DICTS_CREATE_WITH_ITEM_TOOLTIP),this.contextMenu=!1}},WE={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").setCheck(String).appendField(Tt.Msg.MIXLY_EMQX_SERVER).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(Tt.Msg.MIXLY_WIFI_USERNAME).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(Tt.Msg.MIXLY_IOT_PASSWORD).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("PROJECT").setCheck(String).appendField(Tt.Msg.MIXLY_EMQX_PROJECT).setAlign(Tt.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},KE={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Tt.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},JE={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Tt.Msg.HTML_BODY),this.appendDummyInput().appendField(Tt.Msg.MIXLY_Service_quality_display).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_AT_MOST_ONCE,"0"],[Tt.Msg.MIXLY_AT_LEAST_ONCE,"1"]]),"quality"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_IOT_EMQX_PUBLISH_TOOLTIP)}},QE={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO"),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_EMQX_SUBSCRIBE+Tt.Msg.MIXLY_MICROBIT_MSG).appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(Tt.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_IOT_EMQX_SUBSCRIBE_TOOLTIP)}},qE={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_DISCONNECT_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},zE={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_EMQX_CONNECT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},jE={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_CHECK_ONENET),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},$E={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Tt.Msg.MQTT_Topic),this.setInputsInline(!0),this.setOutput(!0)}},ZE={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROPYTHON_FORMAT).appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_MSG),this.setInputsInline(!0),this.setOutput(!0)}},tO={init:function(){this.setColour(xE),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_ESP32_IOT_MAP_FORMATING),this.setOutput(!0)}},eO={init:function(){this.setColour(xE),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_MICROPYTHON_FORMAT+"(Json)"),this.setOutput(!0)}},iO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_EMQX_PING),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_IOT_EMQX_PING_TOOLTIP)}},nO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO").appendField(Tt.Msg.MIXLY_GET_NTP),this.appendValueInput("addr").appendField(Tt.Msg.blynk_SERVER_ADD),this.setInputsInline(!0),this.setOutput(!0)}},sO={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(Tt.Msg.MIXLY_EMQX_SERVER).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Tt.Msg.CONTROLS_FOR_INPUT_WITH+Tt.Msg.MIXLY_MIXIO_SHARE_KEY).setAlign(Tt.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},oO={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_CREATE_MQTT_CLIENT_AND_CONNECT),this.appendValueInput("SERVER").appendField(Tt.Msg.MIXLY_EMQX_SERVER).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Tt.Msg.CONTROLS_FOR_INPUT_WITH+"Mixly Key").setAlign(Tt.inputs.Align.RIGHT),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},_O={init:function(){this.VISITOR_ID=Mt.Config.BOARD.visitorId.str32.substring(0,8).toUpperCase(),this.setColour(xE),this.appendDummyInput("").appendField(new Tt.FieldTextInput(this.visitorId),"VISITOR_ID"),this.setOutput(!0,null)},onchange:function(){const t=this.getFieldValue("VISITOR_ID");this.VISITOR_ID!==t&&this.setFieldValue(this.VISITOR_ID,"VISITOR_ID")}},pO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MixIO").appendField(Tt.Msg.MSG.catEthernet_clinet),this.setOutput(!0),this.setInputsInline(!0)}},aO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("HTTP"+Tt.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(Tt.Msg.DISPLAY_IMAGE_LET2),this.appendDummyInput().appendField(Tt.Msg.MIXLY_REQUESTS_GET).appendField(Tt.Msg.MIXLY_GET_CURRENT_TIME).appendField(Tt.Msg.MIXLY_OPEN_DEBUG).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},uO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("HTTP"+Tt.Msg.MIXLY_Client).appendField(Tt.Msg.MIXLY_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_REQUESTS_LEN,"client_len"],[Tt.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[Tt.Msg.MIXLY_REQUESTS_MESSAGE,"text"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},rO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MQTT"+Tt.Msg.MIXLY_Client),this.appendValueInput("addr").appendField(Tt.Msg.MIXLY_CONNECTTO),this.appendDummyInput().appendField(Tt.Msg.MIXLY_INIT_SUBSCRIBE).appendField(Tt.Msg.MQTT_Topic).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GET_CURRENT_TIME,""]]),"key").appendField(Tt.Msg.MIXLY_OPEN_DEBUG).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_TRUE,"True"],[Tt.Msg.MIXLY_TURTLE_WRITE_MOVE_FALSE,"False"]]),"key2"),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},dO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("MQTT"+Tt.Msg.MIXLY_Client).appendField(Tt.Msg.MIXLY_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_REQUESTS_LEN,"client_len"],[Tt.Msg.MIXLY_REQUESTS_GET_LEN,"server_len"],[Tt.Msg.MIXLY_REQUESTS_MESSAGE,"time_msg()"]]),"key"),this.setOutput(!0),this.setInputsInline(!0)}},lO=bE,IO=yE,TO=VE,MO=BE,hO=UE,mO={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_CONNECT_OLLAMA),this.appendValueInput("SERVER").appendField(Tt.Msg.MIXLY_EMQX_SERVER).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(Tt.Msg.MODEL_NAME).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(Tt.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},EO=mO,OO={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_CONNECT_OPENAI),this.appendValueInput("SERVER").appendField(Tt.Msg.MIXLY_EMQX_SERVER).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("KEY").appendField(Tt.Msg.MIXLY_API_PRIVATE_KEY).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("NAME").appendField(Tt.Msg.MODEL_NAME).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("NUMBER").appendField(Tt.Msg.MIXLY_SET_MAXIMUM_HISTORICAL_SESSIONS_NUM),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},RO={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendValueInput("METHOD").appendField(Tt.Msg.MIXLY_LLM_CONTENT_CALLBACK),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},cO={init:function(){this.setColour(xE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_LLM_CHAT),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_MIXGO_ESPNOW_SEND),this.appendDummyInput().appendField(Tt.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0)}},gO={init:function(){this.setColour(xE),this.appendDummyInput().appendField("Ollama "+Tt.Msg.MIXLY_EMPTY_HISTORY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},CO={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${Tt.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("ADDR").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_EMQX_SERVER),this.appendValueInput("USERNAME").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_EMQX_USERNAME),this.appendValueInput("PASSWORD").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_IOT_PASSWORD),this.setInputsInline(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)}},SO={init:function(){this.setColour(0),this.appendDummyInput().appendField(`${Tt.Msg.MIXLY_SETUP} TinyWebDB`),this.appendValueInput("MQTT").setAlign(Tt.inputs.Align.RIGHT).appendField(`MixIO ${Tt.Msg.MIXLY_Client}`),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},AO={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_TINY_WEB_DB_UPDATE_VARIABLE),this.appendValueInput("VALUE").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},LO={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(Tt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLE),this.appendDummyInput().appendField(Tt.Msg.DICTS_ADD_VALUE),this.setInputsInline(!0),this.setOutput(!0)}},NO={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_NUM),this.setInputsInline(!0),this.setOutput(!0)}},DO={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB").appendField(Tt.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARIABLES),this.appendValueInput("NO").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_TINY_WEB_DB_START_NUMBER),this.appendValueInput("COUNT").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_TINY_WEB_DB_VARIABLE_NUMBER),this.appendValueInput("TAG").setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_TINY_WEB_DB_SEARCH_VARS),this.appendDummyInput().setAlign(Tt.inputs.Align.RIGHT).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_ALL,"both"],[Tt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_TAG,"tag"],[Tt.Msg.MIXLY_TINY_WEB_DB_GET_VARIABLES_VALUE,"value"]]),"DTYPE"),this.setInputsInline(!1),this.setOutput(!0)}},fO={init:function(){this.setColour(0),this.appendDummyInput().appendField("TinyWebDB"),this.appendValueInput("TAG").appendField(Tt.Msg.MIXLY_TINY_WEB_DB_DELETE_VARIABLE),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},FO=225,PO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_NETWORK_INIT),this.appendDummyInput().appendField(Tt.Msg.MIXLY_NETWORK_MODE).appendField(new Tt.FieldDropdown([["STA","STA"],["AP","AP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_INIT_TOOLTIP)}},vO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_NETWORK_WIFI_OPEN,"True"],[Tt.Msg.MIXLY_NETWORK_WIFI_CLOSE,"False"]]),"op"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_NETWORK_WIFI_FLAG),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("op"),i=Tt.Msg.MIXLY_ESP32_NETWORK_OPEN_TOOLTIP;return{True:Tt.Msg.MIXLY_NETWORK_WIFI_OPEN,False:Tt.Msg.MIXLY_NETWORK_WIFI_CLOSE}[e]+i}))}},YO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_NETWORK_WIFI_IS_ACTIVE)}},XO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_NETWORK_WIFI_SCAN),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip((function(){return Tt.Msg.MIXLY_ESP32_NETWORK_SCAN_TOOLTIP+{0:"ssid",1:"bssid",2:"channel",3:"RSSI",4:"authmode",5:"hidden",all:Tt.Msg.MIXLY_NETWORK_WIFI_SCAN_ATTRIBUTE}.all}))}},xO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_ESP32_NETWORK_CONNECT),this.appendValueInput("id").setCheck(String).appendField(Tt.Msg.HTML_NAME),this.appendValueInput("password").setCheck(String).appendField(Tt.Msg.HTML_PASSWORD),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_CONNECT_TOOLTIP)}},bO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_NETWORK_WIFI_CONNECT+Tt.Msg.MIXLY_SYMBOL_QUESTION),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_WIFI_CONNECT_TOOLTIP)}},yO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_ESP32_NETWORK_IP,"0"],[Tt.Msg.MIXLY_ESP32_NETWORK_MASK,"1"],[Tt.Msg.MIXLY_ESP32_NETWORK_GATEWAY,"2"],["DNS","3"]]),"mode"),this.setOutput(!0),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("mode");return Tt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP+{0:Tt.Msg.MIXLY_ESP32_NETWORK_IP,1:Tt.Msg.MIXLY_ESP32_NETWORK_MASK,2:Tt.Msg.MIXLY_ESP32_NETWORK_GATEWAY,3:"DNS"}[e]}))}},VO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_ESP32_NETWORK_STOP_CONNECT),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_STOP_TOOLTIP)}},BO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_NETWORK_WIFI_ESSID,"essid"],[Tt.Msg.MIXLY_NETWORK_WIFI_CHANNEL,"channel"]]),"op"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_GET_WIFI_TOOLTIP)}},GO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.LISTS_SET_INDEX_SET+Tt.Msg.MIXLY_HOTSPOT),this.appendValueInput("essid").setCheck(String).appendField(Tt.Msg.MIXLY_NAME),this.appendValueInput("password").setCheck(String).appendField(Tt.Msg.MIXLY_EMQX_PASSWORD),this.appendValueInput("channel").setCheck(Number).appendField(Tt.Msg.MIXLY_NETWORK_WIFI_CHANNEL),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_AP_CONNECT_TOOLTIP)}},UO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_ESP32_NETWORK_SERVER1),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_ESP32_NETWORK_SERVER2),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},wO={init:function(){this.setColour(FO),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_INIT).setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_TYPE).appendField(new Tt.FieldDropdown([["TCP","TCP"],["UDP","UDP"]]),"mode"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("mode");return Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_INIT_TOOLTIP+{TCP:"TCP",UDP:"UDP"}[e]}))}},HO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_BIND_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_BIND_TOOLTIP)}},kO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_LET_SOCKET),this.appendValueInput("address").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_CONNECT_TO_ADDRESS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_CONNECT_TOOLTIP)}},WO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendValueInput("queue").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_LISTEN).appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_QUEUE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_LISTEN_TOOLTIP)}},KO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_ACCEPT),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_ACCEPT_TOOLTIP)}},JO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_READLINE_TOOLTIP)}},QO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_TOOLTIP)}},qO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var").appendField("TCP"),this.appendValueInput("content").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TOOLTIP)}},zO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("size").setCheck(Number).appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_RECEIVE),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_RECEIVE_FROM_TOOLTIP)}},jO={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var").appendField("UDP"),this.appendValueInput("content").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_SEND),this.appendValueInput("address").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_TO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_SEND_TO_TOOLTIP)}},$O={init:function(){this.setColour(FO),this.appendValueInput("VAR").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_CLOSE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_NETWORK_SOCKET_CLOSE_TOOLTIP)}},ZO={init:function(){this.setColour(FO),this.appendValueInput("DOMAIN").appendField(Tt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Tt.Msg.blockpy_REQUESTS_GET).appendField(new Tt.FieldTextInput("response"),"VAR"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.blockpy_REQUESTS_GET_TOOLTIP)},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(t,e){Tt.Names.equals(t,this.getFieldValue("VAR"))&&this.setTitleValue(e,"VAR")}},tR={init:function(){this.appendValueInput("VAL"),this.setColour(FO),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Tt.FieldDropdown(tR.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String);var t=this;this.setTooltip((function(){var e=t.getFieldValue("DIR");return{clear:Tt.Msg.MIXLY_TOOLTIP_TURTEL_CLEAR,reset:Tt.Msg.MIXLY_TOOLTIP_TURTEL_RESET,home:Tt.Msg.MIXLY_TOOLTIP_TURTEL_HOME}[e]}))},ATTR:[[Tt.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[Tt.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[Tt.Msg.blockpy_REQUESTS_GET_ATTR_COOKIES,"cookies"],[Tt.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"]]},eR={init:function(){this.appendValueInput("VAR").appendField(Tt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.setColour(FO),this.appendDummyInput("").appendField(Tt.Msg.blockpy_CONDUCT).appendField(new Tt.FieldDropdown(eR.METHOD),"DIR"),this.appendDummyInput("").appendField(Tt.Msg.blockpy_REQUESTS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("DIR");return{forward:Tt.Msg.MIXLY_TOOLTIP_TURTEL_FORWARD,backward:Tt.Msg.MIXLY_TOOLTIP_TURTEL_BACKWARD}[e]}))},METHOD:[["post","post"],["put","put"],["delete","delete"],["head","head"],["option","option"]]},iR={init:function(){this.setColour(FO),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_GET_NTP+"(NTP)"),this.appendValueInput("data").appendField(Tt.Msg.blynk_SERVER_ADD),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},nR={init:function(){this.setColour(FO),this.appendDummyInput("").appendField(new Tt.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)}},sR="#3288dd",oR={init:function(){this.setColour(sR),this.appendValueInput("URL").appendField(Tt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Tt.Msg.blockpy_CONDUCT).appendField(new Tt.FieldDropdown([["get","get"],["head","head"],["delete","delete"]]),"TYPE").appendField(Tt.Msg.blockpy_REQUESTS).appendField(Tt.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},_R={init:function(){this.setColour(sR),this.appendValueInput("URL").appendField(Tt.Msg.DISPLAY_IMAGE_LET2).setCheck(String),this.appendDummyInput("").appendField(Tt.Msg.blockpy_CONDUCT).appendField(new Tt.FieldDropdown([["post","post"],["put","put"],["patch","patch"]]),"TYPE").appendField(Tt.Msg.blockpy_REQUESTS),this.appendValueInput("data").appendField(Tt.Msg.blockpy_REQUESTS+Tt.Msg.OLED_STRING),this.appendDummyInput("").appendField(Tt.Msg.MIXPY_REQUESTS_GET_RESULT),this.setInputsInline(!0),this.setOutput(!0),this.setTooltip("")}},pR={init:function(){this.appendValueInput("VAL"),this.setColour(sR),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Tt.FieldDropdown(pR.ATTR),"ATTR"),this.setInputsInline(!0),this.setOutput(!0,String)},ATTR:[[Tt.Msg.blockpy_REQUESTS_GET_ATTR_TEXT,"text"],[Tt.Msg.blockpy_REQUESTS_GET_ATTR_JSON,"json()"],[Tt.Msg.blockpy_REQUESTS_GET_ATTR_STATUS_CODE,"status_code"],[Tt.Msg.blockpy_REQUESTS_GET_ATTR_CONTENT,"content"],[Tt.Msg.MIXPY_TEXT_ENCODE,"encoding"]]},aR={init:function(){this.setColour(sR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_IOT_CONNECT_WIFI),this.appendValueInput("WIFINAME").setCheck(String).appendField(Tt.Msg.HTML_NAME),this.appendValueInput("PASSWORD").setCheck(String).appendField(Tt.Msg.HTML_PASSWORD),this.appendValueInput("TIMEOUT").setCheck(Number).appendField(Tt.Msg.MIXLY_IR_TIMEOUT),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MILLIS),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_IOT_WIFI_CONNECT_TOOLTIP)}},uR={init:function(){this.setColour(sR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_IOT_EMQX_CONNECT_TOOLTIP),this.appendValueInput("SERVER").setCheck(String).appendField(Tt.Msg.MIXLY_EMQX_SERVER).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("PORT").setCheck(Number).appendField(Tt.Msg.MIXLY_EMQX_PORT).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("CLIENT_ID").setCheck(String).appendField(Tt.Msg.MIXLY_EMQX_CLIENT_ID).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("USERNAME").setCheck(String).appendField(Tt.Msg.MIXLY_WIFI_USERNAME).setAlign(Tt.inputs.Align.RIGHT),this.appendValueInput("PASSWORD").setCheck(String).appendField(Tt.Msg.MIXLY_IOT_PASSWORD).setAlign(Tt.inputs.Align.RIGHT),this.setPreviousStatement(!0),this.setNextStatement(!0)}},rR={init:function(){this.setColour(sR),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_EMQX_SUBSCRIBE+Tt.Msg.MIXLY_MICROBIT_MSG).appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MESSAGE").appendField(Tt.Msg.blockpy_set_of),this.setInputsInline(!0),this.setOutput(!0)}},dR={init:function(){this.setColour(sR),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_EMQX_SUBSCRIBE+Tt.Msg.MIXLY_MICROBIT_MSG).appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("METHOD").appendField(Tt.Msg.MIXLY_EMQX_SET_METHOD),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},lR={init:function(){this.setColour(sR),this.appendDummyInput().appendField("mqtt"),this.appendValueInput("TOPIC").appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_NEW).appendField(Tt.Msg.MIXLY_EMQX_PUBLISH_TOPIC),this.appendValueInput("MSG").appendField(Tt.Msg.HTML_BODY),this.setInputsInline(!0),this.setPreviousStatement(!0),this.setNextStatement(!0)}},IR={init:function(){this.setColour(sR),this.appendDummyInput().appendField("mqtt"+Tt.Msg.MIXLY_EMQX_IS_CONNECT),this.setInputsInline(!0),this.setOutput(!0)}},TR=100,MR={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("I2CSUB").appendField(Tt.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_SETUP+Tt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(e),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},hR={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MIXGO_CAR_BATTERY_LEFT),this.setOutput(!0,Number),this.setInputsInline(!0)}},mR={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendValueInput("PIN").appendField(Tt.Msg.MOTOR_DC).appendField(Tt.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Direction).appendField(new Tt.FieldDropdown([[Tt.Msg.CLOCKWISE,"CW"],[Tt.Msg.ANTI_CLOCKWISE,"CCW"],[Tt.Msg.MOTOR_P,"P"],[Tt.Msg.MOTOR_N,"N"]]),"direction"),this.appendValueInput("speed").setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_STEPPER_SET_SPEED),this.appendDummyInput("").appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0)}},ER={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendValueInput("PIN").appendField(Tt.Msg.MOTOR_DC).appendField(Tt.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Tt.Msg.MIXLY_STEPPER_GET_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},OR={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendValueInput("PIN").appendField("180°"+Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SERVO_MOVE)}},RR={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendValueInput("PIN").appendField("360°"+Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.LCD_NUMBERING),this.appendValueInput("NUM",Number).setCheck(Number).setAlign(Tt.inputs.Align.RIGHT).appendField(Tt.Msg.MIXLY_SPEED),this.appendDummyInput().appendField("%"),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SERVO_SPEED_TOOLIPS)}},cR={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendValueInput("PIN").appendField("180°"+Tt.Msg.MIXLY_SERVO),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},gR={init:function(){var t=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mixgo_ce"==t)var e="CE G6";else if("mixgo_pe"==t)e="PE G1";this.setColour(TR),this.appendValueInput("SUB").appendField(e).setCheck("var"),this.appendValueInput("PIN").appendField("360°"+Tt.Msg.MIXLY_SERVO).appendField(Tt.Msg.LCD_NUMBERING),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_SPEED),this.setOutput(!0,Number),this.setInputsInline(!0)}},CR="#A58C5B",SR={init:function(){this.setColour(CR),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_BUTTON).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_IS_PRESSED),this.appendValueInput("STAT").appendField(Tt.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_SENOR_IS_PRESSED)}},AR={init:function(){this.setColour(CR),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_BUTTON).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_WAS_PRESSED),this.appendValueInput("STAT").appendField(Tt.Msg.MIXLY_ELECLEVEL),this.setOutput(!0,Boolean),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_SENOR_WAS_PRESSED)}},LR={init:function(){this.setColour(CR),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_BUTTON).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET_PRESSES),this.appendValueInput("VAR").setCheck(Number).appendField(Tt.Msg.MIXLY_GET_PRESSES_TIME),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.PROCEDURES_DEFRETURN_RETURN+Tt.Msg.MIXLY_BUTTON+Tt.Msg.MIXLY_GET_PRESSES)}},NR={init:function(){this.setColour(CR),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_BUTTON).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MODE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_RISING,"machine.Pin.IRQ_RISING"],[Tt.Msg.MIXLY_FALLING,"machine.Pin.IRQ_FALLING"],[Tt.Msg.MIXLY_CHANGE,"(machine.Pin.IRQ_RISING | machine.Pin.IRQ_FALLING)"]]),"mode"),this.appendValueInput("DO").appendField(Tt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_INOUT_ATTACHINTERRUPT)}},DR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_shake,"shake"],[Tt.Msg.MIXLY_UP,"up"],[Tt.Msg.MIXLY_DOWN,"down"],[Tt.Msg.MIXLY_LEFT,"left"],[Tt.Msg.MIXLY_RIGHT,"right"],[Tt.Msg.MIXLY_MICROBIT_face_up,"face up"],[Tt.Msg.MIXLY_MICROBIT_face_down,"face down"],[Tt.Msg.MIXLY_MICROBIT_freefall,"freefall"],["3g","3g"],["6g","6g"],["8g","8g"]]),"gesture"),this.appendStatementInput("DO").appendField(Tt.Msg.MIXLY_DO),this.setPreviousStatement(!0),this.setNextStatement(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("gesture"),i=Tt.Msg.MIXLY_MICROBIT_JS_CURRENT,n=Tt.Msg.MSG.catSensor,s=Tt.Msg.MIXLY_MICROBIT_JS_STATE,o=Tt.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:Tt.Msg.MIXLY_MICROBIT_shake,up:Tt.Msg.MIXLY_UP,down:Tt.Msg.MIXLY_DOWN,left:Tt.Msg.MIXLY_LEFT,right:Tt.Msg.MIXLY_RIGHT,"face up":Tt.Msg.MIXLY_MICROBIT_face_up,"face down":Tt.Msg.MIXLY_MICROBIT_face_down,freefall:Tt.Msg.MIXLY_MICROBIT_freefall,"3g":"3g","6g":"6g","8g":"8g"}[e]+o}))}},fR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_ADXL345).setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new Tt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Tt.Msg.MIXLY_MICROBIT_Direction,s=Tt.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":Tt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},FR={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_JS_LIGHT_LEVEL),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_ESP32_SENSOR_LIGHT_LEVEL_TOOLTIP)}},PR={init:function(){this.setColour(CR),this.appendValueInput("PIN",Number).appendField(new Tt.FieldDropdown([["DHT11","DHT11"],["DHT22","DHT22"]]),"TYPE").appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(new Tt.FieldDropdown(PR.METHOD),"WHAT"),this.setOutput(!0,Number);var t=this;this.setTooltip((function(){var e=t.getFieldValue("WHAT");return{temperature:Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM,relative_humidity:Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_HUM,tempandhum:Tt.Msg.MIXLY_TOOLTIP_BLOCKGROUP_GET_TEM_HUM}[e]}))},METHOD:[[Tt.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Tt.Msg.MIXLY_GETHUMIDITY,"humidity"]]},vR={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_EXTERN_LIGHT),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.ESP32_SENSOR_NIXGO_LIGHT_TOOLTIP)}},YR={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_EXTERN_SOUND),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_EXTERN_VALUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.ESP32_SENSOR_NIXGO_SOUND_TOOLTIP)}},XR={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.TEXT_TRIM_LEFT,"left"],[Tt.Msg.TEXT_TRIM_RIGHT,"right"]]),"direction").appendField(Tt.Msg.MIXLY_ESP32_NEAR),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("direction"),i=Tt.Msg.MIXLY_ESP32_SENSOR_MIXGO_PIN_NEAR_TOOLTIP,n=Tt.Msg.MIXLY_ESP32_NEAR;return i+{left:Tt.Msg.TEXT_TRIM_LEFT,right:Tt.Msg.TEXT_TRIM_RIGHT}[e]+n}))}},xR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_ALTITUDE_SENSOR+" BMP280").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GETTEMPERATUE,"get_BMP_temperature()"],[Tt.Msg.MIXLY_GETPRESSURE,"get_BMP_pressure()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{"get_BMP_temperature()":Tt.Msg.MIXLY_MICROBIT_SENSOR_BMP_temperature_TOOLTIP,"get_BMP_pressure()":Tt.Msg.MIXLY_MICROBIT_SENSOR_BMP_press_TOOLTIP}[e]}))}},bR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+" SHT20").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GETTEMPERATUE,"get_SHT_temperature()"],[Tt.Msg.MIXLY_GETHUMIDITY,"get_SHT_relative_humidity()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{"get_SHT_temperature()":Tt.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,"get_SHT_relative_humidity()":Tt.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[e]}))}},yR={init:function(){this.setColour(CR),this.appendValueInput("PIN",Number).appendField("DS18X20 "+Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_SENSOR_DS18X20_TOOLTIP)}},VR={init:function(){this.setColour(CR),this.appendDummyInput("").appendField("LM35"+Tt.Msg.MIXLY_TEMP),this.appendValueInput("PIN",Number).appendField(Tt.Msg.MIXLY_PIN).setCheck(Number),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_GETTEMPERATUE),this.setInputsInline(!0),this.setOutput(!0,Number),this.setTooltip(Tt.Msg.MIXLY_TOOLTIP_LM35)}},BR={init:function(){this.setColour(CR),this.appendValueInput("I2CSUB").appendField(Tt.Msg.CONTROLS_FOR_INPUT_WITH+"I2C").setCheck("var"),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_SETUP+Tt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_ESP32_EXTERN_LIGHT+"(LTR308ALS)","LTR308"],[Tt.Msg.MIXLY_COLOR_SENSOR+"(LTR381RGB)","LTR381RGB"],[Tt.Msg.MIXLY_COLOR_SENSOR+"(UCS12071)","UCS12071"],[Tt.Msg.MIXLY_EXTERN_LIGHTUV+"(LTR390UV)","LTR390UV"],[Tt.Msg.MIXLY_ALTITUDE_SENSOR+"(HP203X)","HP203X"],[Tt.Msg.MIXLY_ALTITUDE_SENSOR+"(SPL06_001)","SPL06_001"],[Tt.Msg.MIXLY_ALTITUDE_SENSOR+"(MS5611)","MS5611"],[Tt.Msg.MIXLY_ALTITUDE_SENSOR+"(BMP280)","BMP280"],[Tt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHTC3)","SHTC3"],[Tt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(AHT21)","AHT21"],[Tt.Msg.MIXLY_TEMP_AND_HUMIDITY_SENSOR+"(SHT20)","SHT20"],[Tt.Msg.MIXLY_LASER_RANGE_SENSOR+"(VL53L0X)","VL53L0X"],[Tt.Msg.MIXLY_GEOMAGNETIC_SENSOR+"(QMC5883L)","QMC5883L"],[Tt.Msg.MIXLY_ESP32_MAX30102+"(MAX30102)","MAX30102"],[Tt.Msg.HTML_COLOUR+"、"+Tt.Msg.MIXLY_ENVIRONMENT_LIGHT+"、"+Tt.Msg.MIXLY_NEXT+"、"+Tt.Msg.MIXLY_ESP32_APDS9960+"(APDS9960)","APDS9960"],[Tt.Msg.MIXLY_NINE_AXIS_SENSOR+"(MPU9250)","MPU9250"],[Tt.Msg.MixGo_MPU9250+"(ADXL345)","ADXL345"],["RFID","RFID"],[Tt.Msg.MIXLY_RADAR_SENSOR+"(CBR817)","CBR817"],[Tt.Msg.MIXLY_AipSpeech_asr+"(CI130X)","CI130X"],[Tt.Msg.MIXLY_TVOC_CO2_SENSOR+"(AGS10)","AGS10"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},GR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.LISTS_SET_INDEX_SET+Tt.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(Tt.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+Tt.Msg.MIXLY_DELAY_TIME_RANGE)}},UR={init:function(){this.setColour(CR),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RADAR).appendField(Tt.Msg.LISTS_SET_INDEX_SET+Tt.Msg.MIXlY_INTERACTION),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_DETECTION_THRESHOLD),this.appendValueInput("VAR2").appendField(Tt.Msg.MIXLY_DELAY_TIME),this.appendDummyInput().appendField("ms"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_THRESHOLD_TOOLTIP+" ; "+Tt.Msg.MIXLY_DELAY_TIME_RANGE)}},wR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_RADAR+"CBR817").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},HR={init:function(){this.setColour(CR),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RADAR).appendField(Tt.Msg.MIXLY_GET_TO_INTERACTION),this.setOutput(!0),this.setInputsInline(!0)}},kR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_IDENTIFY_ONCE_AND_SAVE),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},WR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_HELLO_XIAOZHI,"1"],[Tt.Msg.MIXLY_XIAOZHIXIAOZHI,"2"],[Tt.Msg.MIXLY_THE_FIRST,"3"],[Tt.Msg.MIXLY_THE_SECOND,"4"],[Tt.Msg.MIXLY_THE_THIRD,"5"],[Tt.Msg.MIXLY_THE_FOURTH,"6"],[Tt.Msg.MIXLY_THE_FIFTH,"7"],[Tt.Msg.MIXLY_THE_SIXTH,"8"],[Tt.Msg.MIXLY_THE_SEVENTH,"9"],[Tt.Msg.MIXLY_THE_EIGHTH,"10"],[Tt.Msg.MIXLY_THE_NINTH,"11"],[Tt.Msg.MIXLY_THE_TENTH,"12"],[Tt.Msg.MIXLY_THE_ELEVENTH,"13"],[Tt.Msg.MIXLY_THE_TWELFTH,"14"],[Tt.Msg.MIXLY_THE_13TH,"15"],[Tt.Msg.MIXLY_THE_14TH,"16"],[Tt.Msg.MIXLY_THE_15TH,"17"],[Tt.Msg.MIXLY_THE_16TH,"18"],[Tt.Msg.MIXLY_THE_17TH,"19"],[Tt.Msg.MIXLY_THE_18TH,"20"],[Tt.Msg.MIXLY_THE_19TH,"21"],[Tt.Msg.MIXLY_THE_20TH,"22"],[Tt.Msg.MIXLY_Turn_on_the_lights,"23"],[Tt.Msg.MIXLY_Turn_off_the_lights,"24"],[Tt.Msg.MIXLY_Turn_up_the_brightness,"25"],[Tt.Msg.MIXLY_Turn_down_the_brightness,"26"],[Tt.Msg.MIXLY_Set_it_to_red,"27"],[Tt.Msg.MIXLY_Set_it_to_orange,"28"],[Tt.Msg.MIXLY_Set_it_to_yellow,"29"],[Tt.Msg.MIXLY_Set_it_to_green,"30"],[Tt.Msg.MIXLY_Set_it_to_cyan,"31"],[Tt.Msg.MIXLY_Set_it_to_blue,"32"],[Tt.Msg.MIXLY_Set_it_to_purple,"33"],[Tt.Msg.MIXLY_Set_it_to_white,"34"],[Tt.Msg.MIXLY_Turn_on_the_fan,"35"],[Tt.Msg.MIXLY_Turn_off_the_fan,"36"],[Tt.Msg.MIXLY_First_gear,"37"],[Tt.Msg.MIXLY_Wind_speed_second,"38"],[Tt.Msg.MIXLY_Third_gear,"39"],[Tt.Msg.MIXLY_Previous,"40"],[Tt.Msg.MIXLY_Next_page,"41"],[Tt.Msg.MIXLY_Show_smiley_face,"42"],[Tt.Msg.MIXLY_Show_crying_face,"43"],[Tt.Msg.MIXLY_Show_love,"44"],[Tt.Msg.MIXLY_Close_display,"45"],[Tt.Msg.MIXLY_Start_execution,"46"],[Tt.Msg.MIXLY_FORWARD,"47"],[Tt.Msg.MIXLY_BACKWARD,"48"],[Tt.Msg.MIXLY_TURNLEFT,"49"],[Tt.Msg.MIXLY_TURNRIGHT,"50"],[Tt.Msg.MIXLY_STOP,"51"],[Tt.Msg.MIXLY_Accelerate,"52"],[Tt.Msg.MIXLY_retard,"53"],[Tt.Msg.ROTATION_FORWARD,"54"],[Tt.Msg.ROTATION_BACKWARD,"55"],[Tt.Msg.MIXLY_Query_temperature,"56"],[Tt.Msg.MIXLY_Query_humidity,"57"],[Tt.Msg.MIXLY_Query_brightness,"58"],[Tt.Msg.MIXLY_Query_sound,"59"],[Tt.Msg.MIXLY_Query_time,"60"],[Tt.Msg.MIXLY_Query_distance,"61"],[Tt.Msg.MIXLY_Query_pressure,"62"],[Tt.Msg.MIXLY_Query_key,"63"],[Tt.Msg.MIXLY_Query_touch,"64"],[Tt.Msg.MIXLY_Query_color,"65"]]),"cmd").appendField(Tt.Msg.MIXLY_WHETHER+Tt.Msg.MIXLY_BE_IDENTIFIED),this.setOutput(!0),this.setInputsInline(!0)}},KR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_RECOGNIZED_STATE,"status1"],[Tt.Msg.MIXLY_WHETHER_BROADCAST,"status2"],[Tt.Msg.MIXLY_THE_RECOGNIZED_CMD,"result"]]),"key"),this.setOutput(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_CI130X_GET_THE_RECOGNIZED_STATE_TOOLTIP)}},JR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MP3_PLAY).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[Tt.Msg.MIXLY_WIND_SPEED,"154"],[Tt.Msg.MIXLY_HYETAL,"155"],[Tt.Msg.MIXLY_TEMPERATURE,"156"],[Tt.Msg.MIXLY_Humidity,"157"],[Tt.Msg.MIXLY_Altitude,"158"],[Tt.Msg.MIXLY_SOUND,"159"],[Tt.Msg.MIXLY_BRIGHTNESS,"160"],[Tt.Msg.ME_GO_HALL_SENSOR_DISTANCE,"161"],[Tt.Msg.MIXLY_SERVO,"162"],[Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"163"],[Tt.Msg.MIXLY_BUTTON2,"164"],[Tt.Msg.MIXLY_ESP32_TOUCH,"165"],[Tt.Msg.MIXLY_PAY,"166"],[Tt.Msg.MIXLY_CARSH_CHANGE,"167"],[Tt.Msg.MIXLY_COUNTDOWN,"168"],[Tt.Msg.MIXLY_TIMING,"169"],[Tt.Msg.MIXLY_AT_THE_MOMENT,"170"],[Tt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE,"171"],[Tt.Msg.MIXLY_FORWARD,"172"],[Tt.Msg.MIXLY_BACKWARD,"173"],[Tt.Msg.MIXLY_TURNLEFT,"174"],[Tt.Msg.MIXLY_TURNRIGHT,"175"],[Tt.Msg.MIXLY_STOP,"176"],[Tt.Msg.MIXLY_Accelerate,"177"],[Tt.Msg.MIXLY_retard,"178"],[Tt.Msg.ROTATION_FORWARD,"179"],[Tt.Msg.ROTATION_BACKWARD,"180"],[Tt.Msg.TUPLE_JOIN,"181"],[Tt.Msg.MIXLY_SHOW,"182"],[Tt.Msg.MIXLY_LAMPLIGHT,"183"],[Tt.Msg.MIXLY_ACCELERATION,"184"]]),"star"),this.appendValueInput("NUM").appendField(Tt.Msg.MIXLY_NUMBER),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_UNIT).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_INOUT_PULL_NONE,"None"],[Tt.Msg.MIXLY_YEAR,"117"],[Tt.Msg.MIXLY_MONTH,"118"],[Tt.Msg.MIXLY_DAY,"119"],[Tt.Msg.MIXLY_HOUR,"120"],[Tt.Msg.MIXLY_MINUTE,"121"],[Tt.Msg.MIXLY_SECOND,"122"],[Tt.Msg.MIXLY_WEEK2,"123"],[Tt.Msg.MIXLY_RMB_UNIT,"124"],[Tt.Msg.blockpy_setheading_degree,"125"],[Tt.Msg.MIXLY_GEAR,"126"],[Tt.Msg.MIXLY_LAYER,"127"],[Tt.Msg.MIXLY_GRAM,"128"],[Tt.Msg.MIXLY_METER,"129"],[Tt.Msg.MIXLY_CENTIMETER,"130"],[Tt.Msg.MIXLY_MILLIMETER,"131"],[Tt.Msg.MIXLY_LUMEN,"132"],[Tt.Msg.MIXLY_DECIBEL,"133"],[Tt.Msg.MIXLY_hectopascal,"134"],[Tt.Msg.MIXLY_PERCENT,"135"],[Tt.Msg.MIXLY_CELSIUS,"136"],[Tt.Msg.MIXLY_METER_PER_SEC,"137"],[Tt.Msg.MIXLY_MICROBIT_Turn_on_display,"138"],[Tt.Msg.MIXLY_MICROBIT_Turn_off_display,"139"],[Tt.Msg.MIXLY_SUCCESS,"140"],[Tt.Msg.MIXLY_FAILED,"141"],[Tt.Msg.MIXLY_WRONG,"142"],[Tt.Msg.MIXLY_GOOD,"143"],[Tt.Msg.MIXLY_blockpy_set_add,"144"],[Tt.Msg.MIXLY_DECREASE,"145"],[Tt.Msg.COLOUR_RGB_RED,"146"],[Tt.Msg.COLOUR_RGB_ORANGE,"147"],[Tt.Msg.COLOUR_YELLOW,"148"],[Tt.Msg.COLOUR_RGB_GREEN,"149"],[Tt.Msg.COLOUR_CYAN,"150"],[Tt.Msg.COLOUR_RGB_BLUE,"151"],[Tt.Msg.COLOUR_RGB_PURPLE,"152"],[Tt.Msg.COLOUR_RGB_WHITE,"153"]]),"end"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},QR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_AipSpeech_asr+"CI130X").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.LISTS_SET_INDEX_SET+Tt.Msg.MIXLY_SYSTEM+Tt.Msg.MIXLY_CMD).appendField(new Tt.FieldDropdown([[Tt.Msg.MILXY_ENTER_WAKE_UP,"1"],[Tt.Msg.MIXLY_INCREASE_VOLUME,"202"],[Tt.Msg.MIXLY_REDUCE_VOLUME,"203"],[Tt.Msg.MIXLY_MAX_VOLUME,"204"],[Tt.Msg.MIXLY_MINIMUM,"205"],[Tt.Msg.MIXLY_OPEN_RESPONSE,"206"],[Tt.Msg.MIXLY_CLOSE_RESPONSE,"207"],[Tt.Msg.MIXLY_QUIT_WAKE_UP,"208"]]),"cmd"),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0)}},qR={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_MAX30102+" MAX30102"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_ESP32_MAX30102_IR,"[0]"],[Tt.Msg.MIXLY_ESP32_MAX30102_RED,"[1]"],[Tt.Msg.MIXLY_ESP32_MAX30102_IR+","+Tt.Msg.MIXLY_ESP32_MAX30102_RED,""]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},zR={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_APDS9960+" APDS9960"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_ESP32_APDS9960_COLOR,"color"],[Tt.Msg.MIXLY_ESP32_APDS9960_GESTURE,"gesture"],[Tt.Msg.MIXLY_ESP32_APDS9960_APPROACH,"proximity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},jR={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_ESP32_EXTERN_LIGHT+" LTR308ALS"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET_LIGHT_INTENSITY),this.setOutput(!0,Number),this.setInputsInline(!0)}},$R={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.HTML_COLOUR+Tt.Msg.MSG.catSensor+" LTR381RGB").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GET+Tt.Msg.HTML_COLOUR,"[2]"],[Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_IR_STRENGTH,"[1]"],[Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_LIGHT_STRENGTH,"[0]"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},ZR={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.HTML_COLOUR+Tt.Msg.MSG.catSensor+" UCS12071").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GET+"RGB"+Tt.Msg.HTML_COLOUR,"0"],[Tt.Msg.MIXLY_GET+Tt.Msg.MIXLY_RGB_RAW,"1"],[Tt.Msg.MIXLY_GET_ENV_LIGHT+Tt.Msg.MIXLY_BRIGHTNESS,"2"],[Tt.Msg.GET_IR_STRENGTH+Tt.Msg.MIXLY_BRIGHTNESS,"3"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},tc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_EXTERN_LIGHTUV+" LTR390UV").setCheck("var"),this.appendDummyInput().appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GET_ENV_LIGHT,"E"],[Tt.Msg.MIXLY_GET_ULTRAVIOLET,"U"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},ec={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_LASER_RANGE+" VL53L0X"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GET_DISTANCE+"(mm)"),this.setOutput(!0,Number),this.setInputsInline(!0)}},ic={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_TEM_HUM+" SHTC3").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Tt.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{temperature:Tt.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,humidity:Tt.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[e]}))}},nc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_TEM_HUM+" AHT21").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GETTEMPERATUE,"temperature"],[Tt.Msg.MIXLY_GETHUMIDITY,"humidity"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key");return{temperature:Tt.Msg.MIXLY_MICROBIT_SENSOR_SHT_temperature_TOOLTIP,relative_humidity:Tt.Msg.MIXLY_MICROBIT_SENSOR_SHT_HUM_TOOLTIP}[e]}))}},sc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_Altitude+Tt.Msg.MSG.catSensor+" HP203X").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GETPRESSURE,"pressure()"],[Tt.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Tt.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},oc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_Altitude+Tt.Msg.MSG.catSensor+" SPL06_001").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GETPRESSURE,"pressure()"],[Tt.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Tt.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},_c={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_Altitude+Tt.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_GETPRESSURE,"pressure()"],[Tt.Msg.MIXLY_GETTEMPERATUE,"temperature()"],[Tt.Msg.MIXLY_GET_ALTITUDE,"altitude()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},pc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_Altitude+Tt.Msg.MSG.catSensor+" MS5611").setCheck("var"),this.appendValueInput("VAR").appendField(Tt.Msg.MIXLY_REF_TO_PRESSURE),this.appendDummyInput().appendField(Tt.Msg.MIXLY_CAL_TO_ALTITUDE),this.setOutput(!0,Number),this.setInputsInline(!0)}},ac={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MIXGOPE_FIELD+Tt.Msg.MSG.catSensor+" QMC5883L").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"get_bearing()"],[Tt.Msg.MIXLY_TEMPERATURE,"get_temp()"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},uc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_CURRENT_GESTURE).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_shake,"shake"],[Tt.Msg.MIXLY_UP,"up"],[Tt.Msg.MIXLY_DOWN,"down"],[Tt.Msg.MIXLY_LEFT,"left"],[Tt.Msg.MIXLY_RIGHT,"right"],[Tt.Msg.MIXLY_MICROBIT_face_up,"face up"],[Tt.Msg.MIXLY_MICROBIT_face_down,"face down"]]),"gesture"),this.setOutput(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("gesture"),i=Tt.Msg.MIXLY_MICROBIT_JS_CURRENT,n=Tt.Msg.MSG.catSensor,s=Tt.Msg.MIXLY_MICROBIT_JS_STATE,o=Tt.Msg.MIXLY_MICROBIT_PERFORMANCE;return i+n+s+{shake:Tt.Msg.MIXLY_MICROBIT_shake,up:Tt.Msg.MIXLY_UP,down:Tt.Msg.MIXLY_DOWN,left:Tt.Msg.MIXLY_LEFT,right:Tt.Msg.MIXLY_RIGHT,"face up":Tt.Msg.MIXLY_MICROBIT_face_up,"face down":Tt.Msg.MIXLY_MICROBIT_face_down}[e]+o}))}},rc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_JS_ACCELERATION).appendField(new Tt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_JS_ACCELERATION);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Tt.Msg.MIXLY_MICROBIT_Direction,s=Tt.Msg.MIXLY_MICROBIT_JS_ACCELERATION1;return i+{x:"x",y:"y",z:"z","(x,y,z)":Tt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},dc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_JS_GET+Tt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH).appendField(new Tt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Tt.Msg.MIXLY_MICROBIT_Direction,s=Tt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH;return i+{x:"x",y:"y",z:"z","(x,y,z)":Tt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},lc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET+Tt.Msg.MIXLY_ESP32_SENOR_GYRO).appendField(new Tt.FieldDropdown([["x","x"],["y","y"],["z","z"],["(x,y,z)","values"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("key"),i=Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_GET,n=Tt.Msg.MIXLY_MICROBIT_Direction,s=Tt.Msg.MIXLY_ESP32_SENOR_GYRO;return i+{x:"x",y:"y",z:"z","(x,y,z)":Tt.Msg.MIXLY_MICROBIT_Shiliang_Direction}[e]+n+s}))}},Ic={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_JS_CALIBRATE_COMPASS)}},Tc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_NINE_AXIS_SENSOR+" MPU9250").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_GETTEMPERATUE),this.setOutput(!0,Number),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_GETTEMPERATUE)}},Mc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_JS_GET_COMPASS).appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,"strength"],[Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE,"heading"]]),"compass"),this.setOutput(!0,Number),this.setInputsInline(!0);var t=this;this.setTooltip((function(){var e=t.getFieldValue("compass");return Tt.Msg.MIXLY_MICROBIT_JS_GET_COMPASS+{strength:Tt.Msg.MIXLY_MICROBIT_JS_FIELD_STRENGTH,heading:Tt.Msg.MIXLY_MICROBIT_JS_BY_ANGLE}[e]}))}},hc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField("MPU9250").setCheck("var"),this.appendDummyInput().appendField(Tt.Msg.MIXLY_MICROBIT_Reset_COMPASS),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setInputsInline(!0),this.setTooltip(Tt.Msg.MIXLY_MICROBIT_Reset_COMPASS)}},mc={init:function(){this.setColour(CR),this.appendValueInput("SPISUB").appendField(Tt.Msg.CONTROLS_FOR_INPUT_WITH+"SPI").setCheck("var"),this.appendValueInput("PINSUB").appendField("CS"),this.appendValueInput("SUB").appendField(Tt.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE).setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_SETUP+Tt.Msg.LISTS_SET_INDEX_INPUT_TO).appendField(new Tt.FieldDropdown([["RFID","RFID"],["WS-LoRa","Weather"]]),"key"),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null),this.setFieldValue("RFID","key")}},Ec={init:function(){this.setColour(CR),this.appendDummyInput().appendField("RFID"+Tt.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Tt.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_RFID_READ_CARD_UID,"id"],[Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL,"content"],[Tt.Msg.MIXLY_ALL,"ALL"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Oc={init:function(){this.setColour(CR),this.appendDummyInput().appendField("RFID"+Tt.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_RFID_READ_CARD_UID),this.setOutput(!0,Number),this.setInputsInline(!0)}},Rc={init:function(){this.setColour(CR),this.appendDummyInput().appendField("RFID"+Tt.Msg.MIXLY_RFID_READ_CARD),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Tt.Msg.MIXLY_LIST_INDEX),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_PY_STORAGE_ALL),this.setOutput(!0,"Tuple"),this.setInputsInline(!0)}},cc={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Tt.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(Tt.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.setInputsInline(!0),this.setPreviousStatement(!0,null),this.setNextStatement(!0,null)}},gc={init:function(){this.setColour(CR),this.appendDummyInput().appendField(Tt.Msg.MIXLY_COMMUNICATION_RFID_WRITE),this.appendValueInput("SUB").setCheck("var"),this.appendValueInput("SECTOR").appendField(Tt.Msg.MIXLY_LIST_INDEX),this.appendValueInput("CONTENT").appendField(Tt.Msg.MIXLY_COMMUNICATION_WRITE_NUM),this.appendDummyInput().appendField(Tt.Msg.RETURN_SUCCESS_OR_NOT),this.setInputsInline(!0),this.setOutput(!0,Boolean)}},Cc={init:function(){this.setColour(CR),this.appendDummyInput().appendField("RFID"),this.appendValueInput("SUB").setCheck("var"),this.appendDummyInput("").appendField(new Tt.FieldDropdown([[Tt.Msg.MIXLY_RFID_SCAN_OK,"0"],[Tt.Msg.MIXLY_RFID_SCAN_NOTAGERR,"1"],[Tt.Msg.MIXLY_RFID_SCAN_ERROR,"2"]]),"key"),this.setOutput(!0,Number),this.setInputsInline(!0)}},Sc={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_MICROBIT_JS_GET).appendField(new Tt.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)")}},Ac={init:function(){this.setColour(CR),this.appendValueInput("SUB").appendField("无线气象站 WS-LoRa").setCheck("var"),this.appendDummyInput("").appendField(Tt.Msg.MIXLY_SERIAL_AVAILABLE),this.setOutput(!0,Number),this.setInputsInline(!0)}},Lc={init:function(){this.setColour(CR),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)}},Nc={init:function(){this.setColour(CR),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 Tt.icons.MutatorIcon(["weather_set_label_item"],this)),this.setPreviousStatement(!0),this.setNextStatement(!0),this.setTooltip()},mutationToDom:function(){var t=document.createElement("mutation");return t.setAttribute("items",this.itemCount_),t},domToMutation:function(t){this.itemCount_=parseInt(t.getAttribute("items"),10),this.updateShape_()},decompose:function(t){var e=t.newBlock("weather_set_label_container");e.initSvg();for(var i=e.getInput("STACK").connection,n=0;n>6),i.push(128|63&o)):(2048<=o&&o<=55295||57344<=o&&o<=65535)&&(n+=3,i.push(224|15&o>>12),i.push(128|63&o>>6),i.push(128|63&o))}for(s=0;s>8,255&n].concat(i)}(t,!0),i="",n=0;n=0?"0x700000":["mixgo_sant"].indexOf(n)>=0?"0xE00000":"0x3A0000","32x12 Matrix"==_?(e.definitions_.import_matrix32x12="import matrix32x12",i=s+" = matrix32x12.Matrix("+o+", font_address="+p+")\n"):"16x8 Matrix"==_&&(e.definitions_.import_matrix16x8="import matrix16x8",i=s+" = matrix16x8.Matrix("+o+")\n"),i},VF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},BF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},GF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},UF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", delay="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+")\n"},wF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},HF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", speed="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+")\n"},kF=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},WF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("OP")+"("+e.valueToCode(t,"val",e.ORDER_ATOMIC)+")\n"},KF=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".pixel(int("+e.valueToCode(t,"x",e.ORDER_ATOMIC)+"), int("+e.valueToCode(t,"y",e.ORDER_ATOMIC)+"))",e.ORDER_ATOMIC]},JF=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".pixel(int("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+"), int("+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+"), "+e.valueToCode(this,"STAT",e.ORDER_ATOMIC)+")\n"+i+".show()\n"},QF=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".get_brightness()",e.ORDER_ATOMIC]},qF=function(t,e){return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".set_brightness("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+")\n"},zF=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("image"),e.ORDER_ATOMIC]},jF=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".map_"+t.getFieldValue("OP")+"("+e.valueToCode(t,"A",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"B",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},$F=function(t,e){return[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".map_invert("+e.valueToCode(t,"A",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},ZF=function(t,e){e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var i=e.valueToCode(this,"I2CSUB",e.ORDER_ATOMIC);return e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+" = ssd1306.SSD1306_I2C("+e.valueToCode(this,"row",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"column",e.ORDER_ATOMIC)+", "+i+")\n"},tP=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_str("+(e.valueToCode(this,"Text_line1",e.ORDER_ASSIGNMENT)||"''")+", "+(e.valueToCode(this,"Text_line2",e.ORDER_ASSIGNMENT)||"''")+", "+(e.valueToCode(this,"Text_line3",e.ORDER_ASSIGNMENT)||"''")+", "+(e.valueToCode(this,"Text_line4",e.ORDER_ASSIGNMENT)||"''")+")\n"},eP=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_line("+e.valueToCode(this,"x1",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"y1",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"x2",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"y2",e.ORDER_ATOMIC)+", 1)\n"},iP=function(t,e){e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),n=e.valueToCode(this,"x",e.ORDER_ATOMIC),s=e.valueToCode(this,"y",e.ORDER_ATOMIC),o=e.valueToCode(this,"width",e.ORDER_ATOMIC),_=e.valueToCode(this,"height",e.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"}},nP=function(t,e){e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),n=e.valueToCode(this,"x",e.ORDER_ATOMIC),s=e.valueToCode(this,"y",e.ORDER_ATOMIC),o=e.valueToCode(this,"length",e.ORDER_ATOMIC);return i+".show_"+this.getFieldValue("direction")+"("+n+", "+s+", "+o+", 1)\n"},sP=function(t,e){return["ON"==this.getFieldValue("ONOFF")?"1":"0",e.ORDER_ATOMIC]},oP=function(t,e){e.definitions_.import_matrix="import matrix";var i=t.getFieldValue("OP");return[e.valueToCode(t,"img",e.ORDER_ATOMIC)+".shift_"+i+"("+e.valueToCode(t,"val",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},_P=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return e.definitions_.import_ssd1306="import ssd1306",e.definitions_.import_machine="import machine",i+".show_fill("+this.getFieldValue("key")+")\n"},pP=function(t,e){return["matrix.Image."+this.getFieldValue("ANIMATION"),e.ORDER_ATOMIC]},aP=function(t,e){var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var n=e.valueToCode(this,"x",e.ORDER_ATOMIC),s=e.valueToCode(this,"y",e.ORDER_ATOMIC),o=e.valueToCode(this,"r",e.ORDER_ATOMIC),_="TRUE"==this.getFieldValue("fill")?"True":"False",p=this.getFieldValue("OP");switch(_){case"True":return i+".show_fill_circle("+n+", "+s+", "+o+", "+p+")\n";case"False":return i+".show_circle("+n+", "+s+", "+o+", "+p+")\n"}},uP=function(t,e){var i=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306";var n=e.valueToCode(this,"x0",e.ORDER_ATOMIC),s=e.valueToCode(this,"y0",e.ORDER_ATOMIC),o=e.valueToCode(this,"x1",e.ORDER_ATOMIC),_=e.valueToCode(this,"y1",e.ORDER_ATOMIC),p=e.valueToCode(this,"x2",e.ORDER_ATOMIC),a=e.valueToCode(this,"y2",e.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"}},rP=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_bitmap("+e.valueToCode(this,"START_X",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"START_Y",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"bitmap_name",e.ORDER_ATOMIC)+","+e.valueToCode(this,"WIDTH",e.ORDER_ATOMIC)+","+e.valueToCode(this,"HEIGHT",e.ORDER_ATOMIC)+")\n"},dP=function(t,e){return e.definitions_.import_machine="import machine",e.definitions_.import_ssd1306="import ssd1306",e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".show_pixel("+e.valueToCode(this,"POS_X",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"POS_Y",e.ORDER_ATOMIC)+")\n"},lP=function(t,e){var i,n=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),s=e.valueToCode(this,"CLK",e.ORDER_ATOMIC),o=e.valueToCode(this,"DIO",e.ORDER_ATOMIC),_=this.getFieldValue("key");return"TM1650"==_?(e.definitions_.import_tm1650="import tm1650",i=n+" = tm1650."+_+"(clk="+s+",dio="+o+")\n"):"TM1637"==_&&(e.definitions_.import_tm1637="import tm1637",i=n+" = tm1637."+_+"(clk="+s+",dio="+o+")\n"),i},IP=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+"."+this.getFieldValue("STAT")+"()\n"},TP=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".shownum("+e.valueToCode(this,"VALUE",e.ORDER_ATOMIC)+")\n"},MP=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".showDP("+e.valueToCode(this,"NO",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"STAT",e.ORDER_ATOMIC)+")\n"},hP=function(t,e){return e.valueToCode(this,"VAR",e.ORDER_ATOMIC)+".intensity("+e.valueToCode(this,"VALUE",e.ORDER_ATOMIC)+")\n"},mP=function(t,e){e.definitions_.import_st7789="import st7789";var i=Mt.Boards.getSelectedBoardKey().split(":")[2],n="";n=["mpython","mixgo_pe","mixgo_nova"].indexOf(i)>=0?"0x700000":["mixgo_sant"].indexOf(i)>=0?"0xE00000":"0x3A0000";var s=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),o=e.valueToCode(this,"SPISUB",e.ORDER_ATOMIC),_=e.valueToCode(this,"PINCS",e.ORDER_ATOMIC),p=e.valueToCode(this,"PINDC",e.ORDER_ATOMIC);return s+" = st7789.ST7789("+o+", "+e.valueToCode(this,"WIDTH",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"HEIGHT",e.ORDER_ATOMIC)+", dc_pin="+p+", cs_pin="+_+", rotation="+this.getFieldValue("rotate")+", font_address="+n+")\n"},EP=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".image("+n+", x="+s+", y="+o+", size="+_+", color="+p+")\n";else{const t=p.match(/\d+/g);var u="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");a=i+".image("+n+", x= "+s+",y="+o+", size="+_+", color=0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},OP=function(t,e){var i="0x"+this.getFieldValue("COLOR").slice(1);return["0x"+((16252928&i)>>8|(64512&i)>>5|(255&i)>>3).toString(16),e.ORDER_ATOMIC]},RP=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),u=this.getFieldValue("center");if("0x"==a.slice(0,2))var r=i+".shows("+n+", x="+s+", y="+o+", size="+_+", space="+p+", center="+u+", color="+a+")\n";else{const t=a.match(/\d+/g);var d="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");r=i+".shows("+n+", x="+s+", y="+o+", size="+_+", space="+p+", center="+u+", color=0x"+((16252928&d)>>8|(64512&d)>>5|(255&d)>>3).toString(16)+")\n"}return r},cP=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==_.slice(0,2))var p=i+".frame("+n+", size="+s+", delay="+o+", color="+_+")\n";else{const t=_.match(/\d+/g);var a="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");p=i+".frame("+n+", size="+s+", delay="+o+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},gP=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u=i+".scroll("+n+", y="+s+", size="+o+", speed="+_+", space="+p+", color="+a+")\n";else{const t=a.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");u=i+".scroll("+n+", y="+s+", size="+o+", speed="+_+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},CP=function(t,e){return e.definitions_.import_st7789="import st7789",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".fill(st7789."+this.getFieldValue("key")+")\n"},SP=function(t,e){e.definitions_.import_st7789="import st7789";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"x1",e.ORDER_ATOMIC),s=e.valueToCode(this,"y1",e.ORDER_ATOMIC),o=e.valueToCode(this,"x2",e.ORDER_ATOMIC),_=e.valueToCode(this,"y2",e.ORDER_ATOMIC),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=i+".line("+n+", "+s+", "+o+", "+_+", color="+p+")\n";else{const t=p.match(/\d+/g);var u="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},AP=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"I2CSUB",e.ORDER_ATOMIC),s=this.getFieldValue("key"),o=e.valueToCode(this,"ADDR",e.ORDER_ATOMIC);return e.definitions_.import_i2clcd="import i2clcd",i+" = i2clcd.LCD("+n+", lcd_width="+s+", i2c_addr="+o+")\n"},LP=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", column="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", line="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+",center = "+this.getFieldValue("center")+")\n"},NP=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".print("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", column="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", line="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", delay="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+")\n"},DP=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".backlight("+this.getFieldValue("key")+")\n"},fP=function(t,e){return e.definitions_.import_i2clcd="import i2clcd",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".clear()\n"},FP=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(this,"I2CSUB",e.ORDER_ATOMIC),s=e.valueToCode(this,"ADDR",e.ORDER_ATOMIC),o=this.getFieldValue("driver"),_=Mt.Boards.getSelectedBoardKey().split(":")[2],p="";return p=["mpython","mixgo_pe","mixgo_nova"].indexOf(_)>=0?"0x700000":["mixgo_sant"].indexOf(_)>=0?"0xE00000":"0x3A0000",e.definitions_.import_oled128x64="import oled128x64",i+" = oled128x64.OLED("+n+", address="+s+", font_address="+p+", types="+o+")\n"},PP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".image("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},vP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".image("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", x="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", y="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+")\n"},YP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},XP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".shows("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", x="+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+", y="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+", center="+this.getFieldValue("center")+")\n"},xP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},bP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".frame("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+", delay="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+")\n"},yP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"},VP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", y="+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+", size="+e.valueToCode(this,"size",e.ORDER_ASSIGNMENT)+", speed="+e.valueToCode(this,"time",e.ORDER_ASSIGNMENT)+", space="+e.valueToCode(this,"space",e.ORDER_ASSIGNMENT)+")\n"},BP=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".fill(0)\n"+i+".show()\n"},GP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+"."+t.getFieldValue("OP")+"("+e.valueToCode(t,"val",e.ORDER_ATOMIC)+")\n"},UP=function(t,e){return e.definitions_.import_oled128x64="import oled128x64",[e.valueToCode(this,"SUB",e.ORDER_ATOMIC)+".pixel(int("+e.valueToCode(t,"x",e.ORDER_ATOMIC)+"), int("+e.valueToCode(t,"y",e.ORDER_ATOMIC)+"))",e.ORDER_ATOMIC]},wP=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".pixel(int("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+"), int("+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+"), "+e.valueToCode(this,"STAT",e.ORDER_ATOMIC)+")\n"+i+".show()\n"},HP=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),o=e.valueToCode(t,"w",e.ORDER_ATOMIC),_=e.valueToCode(t,"h",e.ORDER_ATOMIC),p=t.getFieldValue("state");return i+"."+t.getFieldValue("shape")+"("+n+", "+s+", "+o+", "+_+", "+p+")\n"+i+".show()\n"},kP=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC),n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),o=e.valueToCode(t,"length",e.ORDER_ATOMIC),_=t.getFieldValue("state");return i+"."+("0"==t.getFieldValue("dir_h_v")?"v":"h")+"line("+n+", "+s+", "+o+", "+_+")\n"+i+".show()\n"},WP=function(t,e){e.definitions_.import_oled128x64="import oled128x64";var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return i+".line("+e.valueToCode(t,"x1",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"y1",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"x2",e.ORDER_ATOMIC)+", "+e.valueToCode(t,"y2",e.ORDER_ATOMIC)+", "+t.getFieldValue("state")+")\n"+i+".show()\n"},KP=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT);if("Python ESP32-S3"===Mt.JSFuncs.getPlatform()){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var s="onboard_tft.image("+(n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT))+", color=0xffff,sync="+(e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True")+")\n"}else if("educore"==i){e.definitions_["import_"+i+"_oled"]="from "+i+" import oled";s="oled.print("+n+")\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.shows("+n+")\n"}return s},JP=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),o=this.getFieldValue("center");if("mixgo_sant"==i||"mixgo_nova"==i||"mixgo_soar"==i)return e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.shows("+n+", space="+s+", center="+o+",sync="+(e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True")+")\n";if("educore"==i){e.definitions_["import_"+i+"_oled"]="from "+i+" import oled"}return e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.shows("+n+", space="+s+", center="+o+")\n"},QP=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){e.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var s="onboard_oled.frame("+n+")\n"}else if("Python ESP32-S3"===Mt.JSFuncs.getPlatform()){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";s="onboard_tft.frame("+(n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT))+", color=0xffff)\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";s="onboard_matrix.frame("+n+")\n"}return s},qP=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){e.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var o="onboard_oled.frame("+(n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT))+", delay="+s+")\n"}else if("Python ESP32-S3"===Mt.JSFuncs.getPlatform()){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";o="onboard_tft.frame("+n+", size=5 , delay="+s+", color=0xffff)\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";o="onboard_matrix.frame("+n+", delay="+s+")\n"}return o},zP=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];if("mpython"==i||"educore"==i){e.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var n="onboard_oled.scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"}else if("Python ESP32-S3"===Mt.JSFuncs.getPlatform()){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";n="onboard_tft.scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+", color=0xffff)\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.scroll("+e.valueToCode(this,"data",e.ORDER_ASSIGNMENT)+")\n"}return n},jP=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2],n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT);if("mpython"==i||"educore"==i){e.definitions_["import_"+i+"_onboard_oled"]="from "+i+" import onboard_oled";var _="onboard_oled.scroll("+n+", speed="+s+", space="+o+")\n"}else if("Python ESP32-S3"===Mt.JSFuncs.getPlatform()){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";_="onboard_tft.scroll("+n+", y=0, size=5, speed="+s+", space="+o+", color=0xffff)\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";_="onboard_matrix.scroll("+n+", speed="+s+", space="+o+")\n"}return _},$P=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix","onboard_matrix.scroll_way("+this.getFieldValue("way")+")\n"},ZP=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==a.slice(0,2))var u="onboard_tft.scroll("+n+", y="+s+", size="+o+", speed="+_+", space="+p+", color="+a+")\n";else{const t=a.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");u="onboard_tft.scroll("+n+", y="+s+", size="+o+", speed="+_+", space="+p+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+")\n"}return u},tv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix",["onboard_matrix."+t.getFieldValue("image"),e.ORDER_ATOMIC]},ev=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===Mt.JSFuncs.getPlatform()){const i=t.getFieldValue("image").split(".");if(2!==i.length)throw Error("pin value error");e.definitions_[`import_${i[0]}_${i[1]}`]=`from ${i[0]} import ${i[1]}`;var n=i[1]}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix."+t.getFieldValue("image")}return[n,e.ORDER_ATOMIC]},iv=function(t,e){var i={"#000000":"0","#ff0000":"1"};function n(t){let e="";if(t.length%2==1&&(t="0"+t),t.length<8){let e=8-t.length;for(let i=1;i<=e;i++)t="0"+t}for(let i=1;i<=t.length;i++)i%2==0&&i!==t.length?e=e+t[i-1]+",0x":e+=t[i-1];return"0x"+e}let s=[];for(let e=0;e<12;e++){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),_+=Number(i[t.getFieldValue(e+"-"+n)])*Math.pow(2,31-p);o+=n(_.toString(16)),s.unshift(o)}let o=[];for(let t=0;t>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Gv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft","onboard_tft.picture("+e.valueToCode(this,"x",e.ORDER_ASSIGNMENT)+","+e.valueToCode(this,"y",e.ORDER_ASSIGNMENT)+","+e.valueToCode(this,"direct",e.ORDER_ASSIGNMENT)+")\n"},Uv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"space",e.ORDER_ASSIGNMENT),a=this.getFieldValue("center"),u=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True",r=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==r.slice(0,2))var d="onboard_tft.shows("+n+", x="+s+", y="+o+", size="+_+", space="+p+", center="+a+", color="+r+",sync="+u+")\n";else{const t=r.match(/\d+/g);var l="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");d="onboard_tft.shows("+n+", x="+s+", y="+o+", size="+_+", space="+p+", center="+a+", color=0x"+((16252928&l)>>8|(64512&l)>>5|(255&l)>>3).toString(16)+",sync="+u+")\n"}return d},wv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"time",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==_.slice(0,2))var p="onboard_tft.frame("+n+", size="+s+", delay="+o+", color="+_+")\n";else{const t=_.match(/\d+/g);var a="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");p="onboard_tft.frame("+n+", size="+s+", delay="+o+", color=0x"+((16252928&a)>>8|(64512&a)>>5|(255&a)>>3).toString(16)+")\n"}return p},Hv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),o=e.valueToCode(t,"w",e.ORDER_ATOMIC),_=e.valueToCode(t,"h",e.ORDER_ATOMIC),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),a=t.getFieldValue("shape"),u=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var r="onboard_tft."+a+"("+n+", "+s+", "+o+", "+_+", "+p+",sync="+u+")\n";else{const t=p.match(/\d+/g);var d="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");r="onboard_tft."+a+"("+n+", "+s+", "+o+", "+_+", 0x"+((16252928&d)>>8|(64512&d)>>5|(255&d)>>3).toString(16)+",sync="+u+")\n"}return r},kv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),o=e.valueToCode(t,"length",e.ORDER_ATOMIC),_=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),p=t.getFieldValue("dir_h_v"),a=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==_.slice(0,2))var u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+o+", "+_+",sync="+a+")\n";else{const t=_.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");u="onboard_tft."+("0"==p?"v":"h")+"line("+n+", "+s+", "+o+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},Wv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x1",e.ORDER_ATOMIC),s=e.valueToCode(t,"y1",e.ORDER_ATOMIC),o=e.valueToCode(t,"x2",e.ORDER_ATOMIC),_=e.valueToCode(t,"y2",e.ORDER_ATOMIC),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),a=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.line("+n+", "+s+", "+o+", "+_+", "+p+",sync="+a+")\n";else{const t=p.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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},Kv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft",["onboard_tft.pixel(int("+e.valueToCode(t,"x",e.ORDER_ATOMIC)+"), int("+e.valueToCode(t,"y",e.ORDER_ATOMIC)+"))",e.ORDER_ATOMIC]},Jv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),_=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==o.slice(0,2))var p="onboard_tft.pixel(int("+n+"), int("+s+"), "+o+",sync="+_+")\n";else{const t=o.match(/\d+/g);var a="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[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="+_+")\n"}return p},Qv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"VAR",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==n.slice(0,2))var o="onboard_tft.fill("+n+",sync="+s+")\n";else{const t=n.match(/\d+/g);var _="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");o="onboard_tft.fill(0x"+((16252928&_)>>8|(64512&_)>>5|(255&_)>>3).toString(16)+",sync="+s+")\n"}return o},qv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==p.slice(0,2))var a=_+"=Clock("+n+", "+s+", "+o+", "+p+")\n";else{const t=p.match(/\d+/g);var u="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");a=_+"=Clock("+n+", "+s+", "+o+", 0x"+((16252928&u)>>8|(64512&u)>>5|(255&u)>>3).toString(16)+")\n"}return a},zv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT)+".set_rtctime()\n"},jv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT)+".set_time("+e.valueToCode(this,"h",e.ORDER_ASSIGNMENT)+", "+e.valueToCode(this,"m",e.ORDER_ASSIGNMENT)+", "+e.valueToCode(this,"s",e.ORDER_ASSIGNMENT)+")\n"},$v=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];return e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock",e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT)+".draw_clock()\n"},Zv=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_Clock"]="from "+i+" import Clock";var n=e.valueToCode(this,"SUB",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==s.slice(0,2))var o=n+".clear("+s+")\n";else{const t=s.match(/\d+/g);var _="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");o=n+".clear(0x"+((16252928&_)>>8|(64512&_)>>5|(255&_)>>3).toString(16)+")\n"}return o},tY=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(t,"x",e.ORDER_ATOMIC),s=e.valueToCode(t,"y",e.ORDER_ATOMIC),o=e.valueToCode(t,"r",e.ORDER_ATOMIC),_=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),p=t.getFieldValue("shape"),a=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==_.slice(0,2))var u="onboard_tft.ellipse("+n+", "+s+", "+o+", "+o+", "+_+", "+p+",sync="+a+")\n";else{const t=_.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");u="onboard_tft.ellipse("+n+", "+s+", "+o+", "+o+", 0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+", "+p+",sync="+a+")\n"}return u},eY=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];if("Python ESP32-S3"===Mt.JSFuncs.getPlatform()){e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n="onboard_tft.pointern(angle="+e.valueToCode(this,"angle",e.ORDER_ASSIGNMENT)+")\n"}else{e.definitions_["import_"+i+"_onboard_matrix"]="from "+i+" import onboard_matrix";n="onboard_matrix.pointern(angle="+e.valueToCode(this,"angle",e.ORDER_ASSIGNMENT)+")\n"}return n},iY=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"angle",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"VAR",e.ORDER_ATOMIC);if("0x"==s.slice(0,2));else{const t=s.match(/\d+/g);var o="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");((16252928&o)>>8|(64512&o)>>5|(255&o)>>3).toString(16)}return"onboard_tft.pointern(angle="+n+")\n"},nY=function(t,e){var i=Mt.Boards.getSelectedBoardKey().split(":")[2];e.definitions_["import_"+i+"_onboard_tft"]="from "+i+" import onboard_tft";var n=e.valueToCode(this,"data",e.ORDER_ASSIGNMENT),s=e.valueToCode(this,"x",e.ORDER_ASSIGNMENT),o=e.valueToCode(this,"y",e.ORDER_ASSIGNMENT),_=e.valueToCode(this,"size",e.ORDER_ASSIGNMENT),p=e.valueToCode(this,"VAR",e.ORDER_ATOMIC),a=e.valueToCode(this,"boolean",e.ORDER_ATOMIC)||"True";if("0x"==p.slice(0,2))var u="onboard_tft.texts("+n+", x="+s+", y="+o+", size="+_+", color="+p+",sync="+a+")\n";else{const t=p.match(/\d+/g);var r="0x"+((parseInt(t[0])<<16)+(parseInt(t[1])<<8)+parseInt(t[2])).toString(16).padStart(4,"0");u="onboard_tft.texts("+n+", x="+s+", y="+o+", size="+_+", color=0x"+((16252928&r)>>8|(64512&r)>>5|(255&r)>>3).toString(16)+",sync="+a+")\n"}return u},sY=KP,oY=dv,_Y=av,pY=dv,aY=lv,uY=sv,rY=function(t,e){var i=this.getFieldValue("path"),n=this.getFieldValue("module");return e.definitions_["import_"+i+"_"+n]="from "+i+" import "+n,""},dY=function(t,e){var i=this.getFieldValue("module");return e.definitions_["import_"+i]="import "+i,""},lY=function(t,e){for(var i=this.getFieldValue("NAME"),n=new Array(this.itemCount_),s=0;s {\n"+e.statementToCode(this,"do")+"})\n"},PB=function(){return"control.reset()\n"},vB=function(t,e){return"control.waitMicros("+(e.valueToCode(this,"data",e.ORDER_ATOMIC)||Mt.Profile.default.serial)+")\n"},YB=function(t,e){return"control.raiseEvent("+(e.valueToCode(this,"system_event_bus_source",e.ORDER_ATOMIC)||Mt.Profile.default.serial)+", "+(e.valueToCode(this,"system_event_bus_value",e.ORDER_ATOMIC)||Mt.Profile.default.serial)+")\n"},XB=function(t,e){return"control.onEvent("+(e.valueToCode(this,"system_event_bus_source",e.ORDER_ATOMIC)||Mt.Profile.default.serial)+", "+(e.valueToCode(this,"system_event_bus_value",e.ORDER_ATOMIC)||Mt.Profile.default.serial)+", () => {\n"+e.statementToCode(this,"do")+")\n"},xB=function(t,e){return["control.eventTimestamp()",e.ORDER_ATOMIC]},bB=function(t,e){return["control.eventValue()",e.ORDER_ATOMIC]},yB=function(t,e){return[this.getFieldValue("key"),e.ORDER_ATOMIC]},VB=function(t,e){return[this.getFieldValue("key"),e.ORDER_ATOMIC]},BB=function(t,e){return["control.deviceName()",e.ORDER_ATOMIC]},GB=function(t,e){return["control.deviceSerialNumber()",e.ORDER_ATOMIC]},UB=function(t,e){return"panic("+(e.valueToCode(this,"STATUS_CODE",e.ORDER_ATOMIC)||"1000")+")\n"},wB=function(t,e){switch(e.definitions_.import_time="import time",this.getFieldValue("Time")){case"ms":return["time.ticks_ms()",e.ORDER_ATOMIC];case"us":return["time.ticks_us()",e.ORDER_ATOMIC]}},HB=function(){return"while True:\n pass\n"},kB=function(t,e){return e.definitions_.import_mixgo="import mixgo","reset()\n"},WB=function(t,e){return e.definitions_.import_os="import os","os.uname()"},KB=function(t,e){e.definitions_.import_time="import time";var i=e.valueToCode(this,"DELAY_TIME",e.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"}},JB=function(t,e){e.definitions_.import_time="import time";var i=e.valueToCode(this,"DELAY_TIME",e.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"}},QB=function(t,e){return e.definitions_.import_mixgo="import mixgo",(e.valueToCode(this,"VAR",e.ORDER_NONE)||"None")+".init(period="+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+", mode=Timer."+(e.valueToCode(this,"mode",e.ORDER_NONE)||"None")+", callback="+(e.valueToCode(this,"callback",e.ORDER_NONE)||"None")+")\n"},qB=function(t,e){return e.definitions_.import_machine="import machine",(e.valueToCode(this,"VAR",e.ORDER_NONE)||"None")+" = machine.Timer("+(e.valueToCode(this,"PIN",e.ORDER_NONE)||"None")+",period = "+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(e.valueToCode(this,"callback",e.ORDER_NONE)||"None")+")\n"},zB=function(t,e){return e.definitions_.import_time="import time",["time.ticks_diff("+(e.valueToCode(this,"END",e.ORDER_NONE)||"0")+", "+(e.valueToCode(this,"START",e.ORDER_NONE)||"0")+")",e.ORDER_ATOMIC]},jB=function(t,e){var i=e.valueToCode(this,"SUB",e.ORDER_ATOMIC);return e.definitions_.import_machine="import machine",i+" = machine.Timer(0)\n"},$B=function(t,e){return e.definitions_.import_machine="import machine",(e.valueToCode(this,"VAR",e.ORDER_NONE)||"None")+".init(period = "+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+", mode=machine.Timer."+this.getFieldValue("mode")+", callback="+(e.valueToCode(this,"callback",e.ORDER_NONE)||"None")+")\n"},ZB=function(t,e){return e.definitions_.import_machine="import machine","wdt = machine.WDT(timeout= "+(e.valueToCode(this,"period",e.ORDER_NONE)||"0")+")\n"},tG=function(t,e){e.definitions_.import_machine="import machine";return"wdt.feed()\n"},eG=function(t,e){e.definitions_.import_machine="import machine";return"machine.reset()\n"},iG=function(t,e){e.definitions_.import_bitbot_onboard_bot51="from bitbot import onboard_bot51";return"onboard_bot51.shutdown()\n"},nG=jB,sG=$B,oG=zB,_G=KB,pG=function(t,e){return e.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},aG=function(t,e){return e.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api."+this.getFieldValue("mode")+"("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"day",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},uG=function(t,e){return e.definitions_.import_seniverse_api="import seniverse_api",["seniverse_api.weather_hourly("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"hour",e.ORDER_ATOMIC)+")",e.ORDER_ATOMIC]},rG=function(t,e){return e.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+")\n"},dG=function(t,e){e.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,e.ORDER_ATOMIC]},lG=function(t,e){e.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,e.ORDER_ATOMIC]},IG=function(t,e){e.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,e.ORDER_ATOMIC]},TG=function(t,e){e.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,e.ORDER_ATOMIC]},MG=function(t,e){e.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,e.ORDER_ATOMIC]},hG=function(t,e){e.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,e.ORDER_ATOMIC]},mG=function(t,e){return e.definitions_["import_seniverse_api*"]="from seniverse_api import *",this.getFieldValue("mode")+".request("+e.valueToCode(this,"key",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"addr",e.ORDER_ATOMIC)+", "+e.valueToCode(this,"day",e.ORDER_ATOMIC)+")\n"},EG=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Weather_daily.analysis("+n+")";else s="Weather_daily.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},OG=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Air_daily.analysis("+n+")";else s="Air_daily.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},RG=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Geo_sun.analysis("+n+")";else s="Geo_sun.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},cG=function(t,e){e.definitions_["import_seniverse_api*"]="from seniverse_api import *";var i=this.getFieldValue("content"),n=e.valueToCode(this,"day",e.ORDER_ATOMIC);if("none"==i)var s="Geo_moon.analysis("+n+")";else s="Geo_moon.analysis("+n+', "'+i+'")';return[s,e.ORDER_ATOMIC]},gG='
\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:CG}=Mt,SG=CG.render(gG,{title:"烧录速度",message:"要选择烧录速度,请更改“Burn Speed”,此值将用于向设备烧录代码。如果在用较高的烧录速度时出现问题,请尝试减小此值,这可能是由于外部串行到USB芯片的限制。"}),{XML:AG}=Mt,LG=AG.render(gG,{title:"燒錄速度",message:"要選擇燒錄速度,請更改“Burn Speed”,此值將用於向設備燒錄程式碼。如果在用較高的燒錄速度時出現問題,請嘗試减小此值,這可能是由於外部串列到USB晶片的限制。"}),{XML:NG}=Mt,DG=NG.render(gG,{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."}),fG=new Tt.Generator("Python");fG.INDENT=" ",fG.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"),fG.ORDER_ATOMIC=0,fG.ORDER_COLLECTION=1,fG.ORDER_STRING_CONVERSION=1,fG.ORDER_UNARY_POSTFIX=1,fG.ORDER_UNARY_PREFIX=2,fG.ORDER_MEMBER=2.1,fG.ORDER_FUNCTION_CALL=2.2,fG.ORDER_EXPONENTIATION=3,fG.ORDER_UNARY_SIGN=4,fG.ORDER_BITWISE_NOT=4,fG.ORDER_MULTIPLICATIVE=5,fG.ORDER_ADDITIVE=6,fG.ORDER_BITWISE_SHIFT=7,fG.ORDER_BITWISE_AND=8,fG.ORDER_BITWISE_XOR=9,fG.ORDER_BITWISE_OR=10,fG.ORDER_RELATIONAL=11,fG.ORDER_EQUALITY=11,fG.ORDER_LOGICAL_NOT=12,fG.ORDER_LOGICAL_AND=13,fG.ORDER_LOGICAL_OR=14,fG.ORDER_ASSIGNMENT=14,fG.ORDER_CONDITIONAL=15,fG.ORDER_LAMBDA=16,fG.ORDER_NONE=99,fG.ORDER_OVERRIDES=[[fG.ORDER_FUNCTION_CALL,fG.ORDER_MEMBER],[fG.ORDER_FUNCTION_CALL,fG.ORDER_FUNCTION_CALL],[fG.ORDER_MEMBER,fG.ORDER_MEMBER],[fG.ORDER_MEMBER,fG.ORDER_FUNCTION_CALL]],fG.init=function(){fG.PASS=this.INDENT+"pass\n",fG.definitions_=Object.create(null),fG.functionNames_=Object.create(null),fG.setups_=Object.create(null),fG.loops_=Object.create(null),fG.codeEnd_=Object.create(null),fG.variableDB_?fG.variableDB_.reset():fG.variableDB_=new Ot(fG.RESERVED_WORDS_)},fG.finish=function(t){""!==t&&(t=(t=t.replace(/\n/g,"\n")).replace(/\n\s+$/,"\n"));var e=[],i=[],n=[];for(var s in this.definitions_){var o=this.definitions_[s];0===s.indexOf("import")?e.push(o):0===s.indexOf("var_declare")?i.push(o):n.push(o)}e.length&&e.push("\n"),i.length&&i.push("\n"),n.length&&n.push("\n");var _=[];for(var s in fG.functions_)_.push(fG.functions_[s]);_.length&&_.push("\n");var p=[];for(var s in fG.setups_)p.push(fG.setups_[s]);p.length&&p.push("\n");var a=[];for(var s in fG.loops_)a.push(fG.loops_[s]);var u=[];for(var s in fG.codeEnd_)u.push(fG.codeEnd_[s]);0!==u.length&&u.push("\n");let r="";return r=a.length>0?e.join("\n")+i.join("\n")+n.join("\n")+_.join("\n")+p.join("")+t+"while True:\n"+a.join("")+u.join("\n"):e.join("\n")+i.join("\n")+n.join("\n")+_.join("\n")+p.join("")+t+u.join("\n"),r},fG.scrubNakedValue=function(t){return t+"\n"},fG.quote_=function(t){var e="'";return-1!==(t=t.replace(/\\/g,"\\\\").replace(/\n/g,"\\\n")).indexOf("'")&&(-1===t.indexOf('"')?e='"':t=t.replace(/'/g,"\\'")),e+t+e},fG.multiline_quote_=function(t){return"'''"+(t=t.replace(/'''/g,"\\'\\'\\'"))+"'''"},fG.scrub_=function(t,e,i){var n="";if(!t.outputConnection||!t.outputConnection.targetConnection){(o=t.getCommentText())&&(o=Tt.utils.string.wrap(o,fG.COMMENT_WRAP-3),n+=fG.prefixLines(o+"\n","# "));for(var s=0;s0?"int("+p+" + "+s+")":s<0?"int("+p+" - "+-s+")":"int("+p+")",n&&(p="-"+p)),p};const FG={};FG.MixGo={description:"MicroPython[ESP32 MixGo]",digital_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["21","21"],["22","22"],["23","23"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["39","39"]],digital:[["pin0","pin0"],["pin2","pin2"],["pin4","pin4"],["pin5","pin5"],["pin12","pin12"],["pin13","pin13"],["pin14","pin14"],["pin15","pin15"],["pin16","pin16"],["pin17","pin17"],["pin18","pin18"],["pin19","pin19"],["pin21","pin21"],["pin22","pin22"],["pin23","pin23"],["pin25","pin25"],["pin26","pin26"],["pin27","pin27"],["pin32","pin32"],["pin33","pin33"],["pin34","pin34"],["pin35","pin35"],["pin36","pin36"],["pin39","pin39"]],input_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["21","21"],["22","22"],["23","23"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["39","39"]],output_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["21","21"],["22","22"],["23","23"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"]],pwm_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["20","20"],["21","21"],["22","22"],["23","23"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"]],pwm:[["pwm0","pwm0"],["pwm2","pwm2"],["pwm4","pwm4"],["pwm5","pwm5"],["pwm12","pwm12"],["pwm13","pwm13"],["pwm14","pwm14"],["pwm15","pwm15"],["pwm16","pwm16"],["pwm17","pwm17"],["pwm18","pwm18"],["pwm19","pwm19"],["pwm20","pwm20"],["pwm21","pwm21"],["pwm22","pwm22"],["pwm23","pwm23"],["pwm25","pwm25"],["pwm26","pwm26"],["pwm27","pwm27"],["pwm32","pwm32"],["pwm33","pwm33"]],analog_pin:[["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["37","37"],["38","38"],["39","39"]],analog:[["adc32","adc32"],["adc33","adc33"],["adc34","adc34"],["adc35","adc35"],["adc36","adc36"],["adc37","adc37"],["adc38","adc38"],["adc39","adc39"]],espnow_channel:Mt.Profile.generate(["1-13"]),haskylens_model:Mt.Profile.generate(["0-4"]),dac_pin:[["25","25"],["26","26"]],dac:[["dac25","dac25"],["dac26","dac26"]],touch:[["tc0","tc0"],["tc2","tc2"],["tc4","tc4"],["tc12","tc12"],["tc13","tc13"],["tc14","tc14"],["tc15","tc15"],["tc27","tc27"],["tc32","tc32"],["tc33","tc33"]],touch_pin:[["0","0"],["2","2"],["4","4"],["12","12"],["13","13"],["14","14"],["15","15"],["27","27"],["32","32"],["33","33"]],button:[["A","button_a"],["B","button_b"]],axis:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"]],exlcdh:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"],["15","15"]],exlcdv:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],brightness:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"]],tts_voice:Mt.Profile.generate(["0-16"]),tts_builtin_music:Mt.Profile.generate(["0-47"]),tts_bgmusic:Mt.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["SILLY","onboard_matrix.SILLY"],["FABULOUS","onboard_matrix.FABULOUS"],["SURPRISED","onboard_matrix.SURPRISED"],["ASLEEP","onboard_matrix.ASLEEP"],["ANGRY","onboard_matrix.ANGRY"],["CONFUSED","onboard_matrix.CONFUSED"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"],["LEFT_ARROW","onboard_matrix.LEFT_ARROW"],["RIGHT_ARROW","onboard_matrix.RIGHT_ARROW"],["DRESS","onboard_matrix.DRESS"],["TRANSFORMERS","onboard_matrix.TRANSFORMERS"],["SCISSORS","onboard_matrix.SCISSORS"],["EXIT","onboard_matrix.EXIT"],["TREE","onboard_matrix.TREE"],["PACMAN","onboard_matrix.PACMAN"],["TARGET","onboard_matrix.TARGET"],["TSHIRT","onboard_matrix.TSHIRT"],["ROLLERSKATE","onboard_matrix.ROLLERSKATE"],["DUCK","onboard_matrix.DUCK"],["HOUSE","onboard_matrix.HOUSE"],["TORTOISE","onboard_matrix.TORTOISE"],["BUTTERFLY","onboard_matrix.BUTTERFLY"],["STICKFIGURE","onboard_matrix.STICKFIGURE"],["GHOST","onboard_matrix.GHOST"],["PITCHFORK","onboard_matrix.PITCHFORK"],["onboard_music_QUAVERS","onboard_matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","onboard_matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","onboard_matrix.onboard_music_CROTCHET"],["COW","onboard_matrix.COW"],["RABBIT","onboard_matrix.RABBIT"],["SQUARE_SMALL","onboard_matrix.SQUARE_SMALL"],["SQUARE","onboard_matrix.SQUARE"],["DIAMOND_SMALL","onboard_matrix.DIAMOND_SMALL"],["DIAMOND","onboard_matrix.DIAMOND"],["CHESSBOARD","onboard_matrix.CHESSBOARD"],["TRIANGLE_LEFT","onboard_matrix.TRIANGLE_LEFT"],["TRIANGLE","onboard_matrix.TRIANGLE"],["SNAKE","onboard_matrix.SNAKE"],["UMBRELLA","onboard_matrix.UMBRELLA"],["SKULL","onboard_matrix.SKULL"],["GIRAFFE","onboard_matrix.GIRAFFE"],["SWORD","onboard_matrix.SWORD"]],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","onboard_matrix.ALL_CLOCKS"],["ALL_ARROWS","onboard_matrix.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"],["3","3"]]},FG["MixGo PE"]={description:"MicroPython[ESP32 MixGo PE]",digital_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["7","7"],["8","8"],["12","12"],["13","13"],["14","14"],["15","15"],["19","19"],["20","20"],["21","21"],["22","22"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["37","37"],["38","38"],["39","39"]],digital:[["pin0","pin0"],["pin2","pin2"],["pin4","pin4"],["pin5","pin5"],["pin7","pin7"],["pin8","pin8"],["pin12","pin12"],["pin13","pin13"],["pin14","pin14"],["pin15","pin15"],["pin19","pin19"],["pin20","pin20"],["pin21","pin21"],["pin22","pin22"],["pin25","pin25"],["pin26","pin26"],["pin27","pin27"],["pin32","pin32"],["pin33","pin33"],["pin34","pin34"],["pin35","pin35"],["pin36","pin36"],["pin37","pin37"],["pin38","pin38"],["pin39","pin39"]],input_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["7","7"],["8","8"],["12","12"],["13","13"],["14","14"],["15","15"],["19","19"],["20","20"],["21","21"],["22","22"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["37","37"],["38","38"],["39","39"]],output_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["7","7"],["8","8"],["12","12"],["13","13"],["14","14"],["15","15"],["19","19"],["20","20"],["21","21"],["22","22"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"]],pwm_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["7","7"],["8","8"],["12","12"],["13","13"],["14","14"],["15","15"],["19","19"],["20","20"],["21","21"],["22","22"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"]],pwm:[["pwm0","pwm0"],["pwm2","pwm2"],["pwm4","pwm4"],["pwm5","pwm5"],["pwm7","pwm7"],["pwm8","pwm8"],["pwm12","pwm12"],["pwm13","pwm13"],["pwm14","pwm14"],["pwm15","pwm15"],["pwm19","pwm19"],["pwm20","pwm20"],["pwm21","pwm21"],["pwm22","pwm22"],["pwm25","pwm25"],["pwm26","pwm26"],["pwm27","pwm27"],["pwm32","pwm32"],["pwm33","pwm33"]],espnow_channel:Mt.Profile.generate(["1-13"]),haskylens_model:Mt.Profile.generate(["0-4"]),analog_pin:[["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["37","37"],["38","38"],["39","39"]],analog:[["adc32","adc32"],["adc33","adc33"],["adc34","adc34"],["adc35","adc35"],["adc36","adc36"],["adc37","adc37"],["adc38","adc38"],["adc39","adc39"]],dac_pin:[["25","25"],["26","26"]],dac:[["dac25","dac25"],["dac26","dac26"]],touch:[["tc0","tc0"],["tc2","tc2"],["tc4","tc4"],["tc12","tc12"],["tc13","tc13"],["tc14","tc14"],["tc15","tc15"],["tc27","tc27"],["tc32","tc32"],["tc33","tc33"]],touch_pin:[["0","0"],["2","2"],["4","4"],["12","12"],["13","13"],["14","14"],["15","15"],["27","27"],["32","32"],["33","33"]],button:[["A","button_a"],["B","button_b"]],axis:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"]],exlcdh:Mt.Profile.generate(["0-7"]),exlcdv:Mt.Profile.generate(["0-4"]),brightness:Mt.Profile.generate(["0-9"]),tts_voice:Mt.Profile.generate(["0-16"]),tts_builtin_music:Mt.Profile.generate(["0-47"]),tts_bgmusic:Mt.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["SILLY","onboard_matrix.SILLY"],["FABULOUS","onboard_matrix.FABULOUS"],["SURPRISED","onboard_matrix.SURPRISED"],["ASLEEP","onboard_matrix.ASLEEP"],["ANGRY","onboard_matrix.ANGRY"],["CONFUSED","onboard_matrix.CONFUSED"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"],["LEFT_ARROW","onboard_matrix.LEFT_ARROW"],["RIGHT_ARROW","onboard_matrix.RIGHT_ARROW"],["DRESS","onboard_matrix.DRESS"],["TRANSFORMERS","onboard_matrix.TRANSFORMERS"],["SCISSORS","onboard_matrix.SCISSORS"],["EXIT","onboard_matrix.EXIT"],["TREE","onboard_matrix.TREE"],["PACMAN","onboard_matrix.PACMAN"],["TARGET","onboard_matrix.TARGET"],["TSHIRT","onboard_matrix.TSHIRT"],["ROLLERSKATE","onboard_matrix.ROLLERSKATE"],["DUCK","onboard_matrix.DUCK"],["HOUSE","onboard_matrix.HOUSE"],["TORTOISE","onboard_matrix.TORTOISE"],["BUTTERFLY","onboard_matrix.BUTTERFLY"],["STICKFIGURE","onboard_matrix.STICKFIGURE"],["GHOST","onboard_matrix.GHOST"],["PITCHFORK","onboard_matrix.PITCHFORK"],["MUSIC_QUAVERS","onboard_matrix.MUSIC_QUAVERS"],["MUSIC_QUAVER","onboard_matrix.MUSIC_QUAVER"],["MUSIC_CROTCHET","onboard_matrix.MUSIC_CROTCHET"],["COW","onboard_matrix.COW"],["RABBIT","onboard_matrix.RABBIT"],["SQUARE_SMALL","onboard_matrix.SQUARE_SMALL"],["SQUARE","onboard_matrix.SQUARE"],["DIAMOND_SMALL","onboard_matrix.DIAMOND_SMALL"],["DIAMOND","onboard_matrix.DIAMOND"],["CHESSBOARD","onboard_matrix.CHESSBOARD"],["TRIANGLE_LEFT","onboard_matrix.TRIANGLE_LEFT"],["TRIANGLE","onboard_matrix.TRIANGLE"],["SNAKE","onboard_matrix.SNAKE"],["UMBRELLA","onboard_matrix.UMBRELLA"],["SKULL","onboard_matrix.SKULL"],["GIRAFFE","onboard_matrix.GIRAFFE"],["SWORD","onboard_matrix.SWORD"]],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","onboard_matrix.ALL_CLOCKS"],["ALL_ARROWS","onboard_matrix.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"],["3","3"]]},FG["ESP32 Generic(4MB)"]={description:"MicroPython[ESP32 Generic]",digital_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["20","20"],["21","21"],["22","22"],["23","23"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["37","37"],["38","38"],["39","39"]],digital:[["pin0","pin0"],["pin2","pin2"],["pin4","pin4"],["pin5","pin5"],["pin6","pin6"],["pin7","pin7"],["pin8","pin8"],["pin9","pin9"],["pin10","pin10"],["pin11","pin11"],["pin12","pin12"],["pin13","pin13"],["pin14","pin14"],["pin15","pin15"],["pin16","pin16"],["pin17","pin17"],["pin18","pin18"],["pin19","pin19"],["pin20","pin20"],["pin21","pin21"],["pin22","pin22"],["pin23","pin23"],["pin25","pin25"],["pin26","pin26"],["pin27","pin27"],["pin32","pin32"],["pin33","pin33"],["pin34","pin34"],["pin35","pin35"],["pin36","pin36"],["pin37","pin37"],["pin38","pin38"],["pin39","pin39"]],input_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["7","7"],["8","8"],["12","12"],["13","13"],["14","14"],["15","15"],["19","19"],["20","20"],["21","21"],["22","22"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["37","37"],["38","38"],["39","39"]],output_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["7","7"],["8","8"],["12","12"],["13","13"],["14","14"],["15","15"],["19","19"],["20","20"],["21","21"],["22","22"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"]],pwm_pin:[["0","0"],["2","2"],["4","4"],["5","5"],["12","12"],["13","13"],["14","14"],["15","15"],["16","16"],["17","17"],["18","18"],["19","19"],["20","20"],["21","21"],["22","22"],["23","23"],["25","25"],["26","26"],["27","27"],["32","32"],["33","33"]],pwm:[["pwm0","pwm0"],["pwm2","pwm2"],["pwm4","pwm4"],["pwm5","pwm5"],["pwm12","pwm12"],["pwm13","pwm13"],["pwm14","pwm14"],["pwm15","pwm15"],["pwm16","pwm16"],["pwm17","pwm17"],["pwm18","pwm18"],["pwm19","pwm19"],["pwm20","pwm20"],["pwm21","pwm21"],["pwm22","pwm22"],["pwm23","pwm23"],["pwm25","pwm25"],["pwm26","pwm26"],["pwm27","pwm27"],["pwm32","pwm32"],["pwm33","pwm33"]],analog_pin:[["32","32"],["33","33"],["34","34"],["35","35"],["36","36"],["37","37"],["38","38"],["39","39"]],analog:[["adc32","adc32"],["adc33","adc33"],["adc34","adc34"],["adc35","adc35"],["adc36","adc36"],["adc37","adc37"],["adc38","adc38"],["adc39","adc39"]],espnow_channel:Mt.Profile.generate(["1-13"]),haskylens_model:Mt.Profile.generate(["0-4"]),dac_pin:[["25","25"],["26","26"]],dac:[["dac25","dac25"],["dac26","dac26"]],touch:[["tc0","tc0"],["tc2","tc2"],["tc4","tc4"],["tc12","tc12"],["tc13","tc13"],["tc14","tc14"],["tc15","tc15"],["tc27","tc27"],["tc32","tc32"],["tc33","tc33"]],touch_pin:[["0","0"],["2","2"],["4","4"],["12","12"],["13","13"],["14","14"],["15","15"],["27","27"],["32","32"],["33","33"]],button:[["A","button_a"],["B","button_b"]],axis:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"]],exlcdh:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"],["15","15"]],exlcdv:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],brightness:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"]],tts_voice:Mt.Profile.generate(["0-16"]),tts_builtin_music:Mt.Profile.generate(["0-47"]),tts_bgmusic:Mt.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["SILLY","onboard_matrix.SILLY"],["FABULOUS","onboard_matrix.FABULOUS"],["SURPRISED","onboard_matrix.SURPRISED"],["ASLEEP","onboard_matrix.ASLEEP"],["ANGRY","onboard_matrix.ANGRY"],["CONFUSED","onboard_matrix.CONFUSED"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"],["LEFT_ARROW","onboard_matrix.LEFT_ARROW"],["RIGHT_ARROW","onboard_matrix.RIGHT_ARROW"],["DRESS","onboard_matrix.DRESS"],["TRANSFORMERS","onboard_matrix.TRANSFORMERS"],["SCISSORS","onboard_matrix.SCISSORS"],["EXIT","onboard_matrix.EXIT"],["TREE","onboard_matrix.TREE"],["PACMAN","onboard_matrix.PACMAN"],["TARGET","onboard_matrix.TARGET"],["TSHIRT","onboard_matrix.TSHIRT"],["ROLLERSKATE","onboard_matrix.ROLLERSKATE"],["DUCK","onboard_matrix.DUCK"],["HOUSE","onboard_matrix.HOUSE"],["TORTOISE","onboard_matrix.TORTOISE"],["BUTTERFLY","onboard_matrix.BUTTERFLY"],["STICKFIGURE","onboard_matrix.STICKFIGURE"],["GHOST","onboard_matrix.GHOST"],["PITCHFORK","onboard_matrix.PITCHFORK"],["onboard_music_QUAVERS","onboard_matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","onboard_matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","onboard_matrix.onboard_music_CROTCHET"],["COW","onboard_matrix.COW"],["RABBIT","onboard_matrix.RABBIT"],["SQUARE_SMALL","onboard_matrix.SQUARE_SMALL"],["SQUARE","onboard_matrix.SQUARE"],["DIAMOND_SMALL","onboard_matrix.DIAMOND_SMALL"],["DIAMOND","onboard_matrix.DIAMOND"],["CHESSBOARD","onboard_matrix.CHESSBOARD"],["TRIANGLE_LEFT","onboard_matrix.TRIANGLE_LEFT"],["TRIANGLE","onboard_matrix.TRIANGLE"],["SNAKE","onboard_matrix.SNAKE"],["UMBRELLA","onboard_matrix.UMBRELLA"],["SKULL","onboard_matrix.SKULL"],["GIRAFFE","onboard_matrix.GIRAFFE"],["SWORD","onboard_matrix.SWORD"]],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","onboard_matrix.ALL_CLOCKS"],["ALL_ARROWS","onboard_matrix.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"],["3","3"]]},FG.mPython={description:"MicroPython[ESP32 Generic]",digital_pin:[["p0","33"],["p1","32"],["p2","35"],["p5","0"],["p6","16"],["p7","17"],["p8","26"],["p9","25"],["p11","2"],["p13","18"],["p14","19"],["p15","21"],["p16","5"],["p19","22"],["p20","23"]],digital:[["pin0","pin33"],["pin1","pin32"],["pin2","pin35"],["pin5","pin0"],["pin6","pin16"],["pin7","pin17"],["pin8","pin26"],["pin9","pin25"],["pin11","pin2"],["pin13","pin18"],["pin14","pin19"],["pin15","pin21"],["pin16","pin5"],["pin19","pin22"],["pin20","pin23"]],input_pin:[["p0","33"],["p1","32"],["p2","35"],["p5","0"],["p6","16"],["p7","17"],["p8","26"],["p9","25"],["p11","2"],["p13","18"],["p14","19"],["p15","21"],["p16","5"],["p19","22"],["p20","23"]],output_pin:[["p0","33"],["p1","32"],["p5","0"],["p6","16"],["p7","17"],["p8","26"],["p9","25"],["p11","2"],["p13","18"],["p14","19"],["p15","21"],["p16","5"],["p19","22"],["p20","23"]],pwm_pin:[["p0","33"],["p1","32"],["p5","0"],["p6","16"],["p7","17"],["p8","26"],["p9","25"],["p11","2"],["p13","18"],["p14","19"],["p15","21"],["p16","5"],["p19","22"],["p20","23"]],pwm:[["pwm0","pwm33"],["pwm1","pwm32"],["pwm5","pwm0"],["pwm6","pwm16"],["pwm7","pwm17"],["pwm8","pwm26"],["pwm9","pwm25"],["pwm11","pwm2"],["pwm13","pwm18"],["pwm14","pwm19"],["pwm15","pwm21"],["pwm16","pwm5"],["pwm19","pwm22"],["pwm20","pwm23"]],espnow_channel:Mt.Profile.generate(["1-13"]),haskylens_model:Mt.Profile.generate(["0-4"]),analog_pin:[["p0","33"],["p1","32"],["p2","35"],["p3","34"],["p4","39"],["p10","36"]],analog:[["adc0","adc33"],["adc1","adc32"],["adc2","adc35"],["adc3","adc34"],["adc4","adc39"],["adc10","adc36"]],dac_pin:[["p8","26"],["p9","25"]],dac:[["dac8","dac26"],["dac9","dac25"]],touch_mpython:[["p","p"],["y","y"],["t","t"],["h","h"],["o","o"],["n","n"]],touch:[["tc0","tc33"],["tc1","tc32"],["tc5","tc0"],["tc11","tc2"],["tc23","tc27"],["tc24","tc14"],["tc25","tc12"],["tc26","tc13"],["tc27","tc15"],["tc28","tc4"]],touch_pin:[["p0","33"],["p1","32"],["p5","0"],["p11","2"],["p23","27"],["p24","14"],["p25","12"],["p26","13"],["p27","15"],["p28","4"]],button:[["A","button_a"],["B","button_b"]],axis:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"]],exlcdh:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"],["10","10"],["11","11"],["12","12"],["13","13"],["14","14"],["15","15"]],exlcdv:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"]],brightness:[["0","0"],["1","1"],["2","2"],["3","3"],["4","4"],["5","5"],["6","6"],["7","7"],["8","8"],["9","9"]],tts_voice:Mt.Profile.generate(["0-16"]),tts_builtin_music:Mt.Profile.generate(["0-47"]),tts_bgmusic:Mt.Profile.generate(["0-15"]),builtinimg:[["HEART","onboard_matrix.HEART"],["HEART_SMALL","onboard_matrix.HEART_SMALL"],["HAPPY","onboard_matrix.HAPPY"],["SAD","onboard_matrix.SAD"],["SMILE","onboard_matrix.SMILE"],["SILLY","onboard_matrix.SILLY"],["FABULOUS","onboard_matrix.FABULOUS"],["SURPRISED","onboard_matrix.SURPRISED"],["ASLEEP","onboard_matrix.ASLEEP"],["ANGRY","onboard_matrix.ANGRY"],["CONFUSED","onboard_matrix.CONFUSED"],["NO","onboard_matrix.NO"],["YES","onboard_matrix.YES"],["LEFT_ARROW","onboard_matrix.LEFT_ARROW"],["RIGHT_ARROW","onboard_matrix.RIGHT_ARROW"],["DRESS","onboard_matrix.DRESS"],["TRANSFORMERS","onboard_matrix.TRANSFORMERS"],["SCISSORS","onboard_matrix.SCISSORS"],["EXIT","onboard_matrix.EXIT"],["TREE","onboard_matrix.TREE"],["PACMAN","onboard_matrix.PACMAN"],["TARGET","onboard_matrix.TARGET"],["TSHIRT","onboard_matrix.TSHIRT"],["ROLLERSKATE","onboard_matrix.ROLLERSKATE"],["DUCK","onboard_matrix.DUCK"],["HOUSE","onboard_matrix.HOUSE"],["TORTOISE","onboard_matrix.TORTOISE"],["BUTTERFLY","onboard_matrix.BUTTERFLY"],["STICKFIGURE","onboard_matrix.STICKFIGURE"],["GHOST","onboard_matrix.GHOST"],["PITCHFORK","onboard_matrix.PITCHFORK"],["onboard_music_QUAVERS","onboard_matrix.onboard_music_QUAVERS"],["onboard_music_QUAVER","onboard_matrix.onboard_music_QUAVER"],["onboard_music_CROTCHET","onboard_matrix.onboard_music_CROTCHET"],["COW","onboard_matrix.COW"],["RABBIT","onboard_matrix.RABBIT"],["SQUARE_SMALL","onboard_matrix.SQUARE_SMALL"],["SQUARE","onboard_matrix.SQUARE"],["DIAMOND_SMALL","onboard_matrix.DIAMOND_SMALL"],["DIAMOND","onboard_matrix.DIAMOND"],["CHESSBOARD","onboard_matrix.CHESSBOARD"],["TRIANGLE_LEFT","onboard_matrix.TRIANGLE_LEFT"],["TRIANGLE","onboard_matrix.TRIANGLE"],["SNAKE","onboard_matrix.SNAKE"],["UMBRELLA","onboard_matrix.UMBRELLA"],["SKULL","onboard_matrix.SKULL"],["GIRAFFE","onboard_matrix.GIRAFFE"],["SWORD","onboard_matrix.SWORD"]],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","onboard_matrix.ALL_CLOCKS"],["ALL_ARROWS","onboard_matrix.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"],["3","3"]]};const PG=FG,vG=230,YG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.digital),"PIN"),this.setOutput(!0)}},XG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.digital_pin),"PIN"),this.setOutput(!0,Number)}},xG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.input_pin),"PIN"),this.setOutput(!0,Number)}},bG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.output_pin),"PIN"),this.setOutput(!0,Number)}},yG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.touch_mpython),"PIN"),this.setOutput(!0,Number)}},VG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.espnow_channel),"PIN"),this.setOutput(!0,Number)}},BG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.haskylens_model),"PIN"),this.setOutput(!0,Number)}},GG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.pwm_input),"PIN"),this.setOutput(!0)}},UG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.analog_input),"PIN"),this.setOutput(!0)}},wG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.pwm_output),"PIN"),this.setOutput(!0)}},HG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.analog_output),"PIN"),this.setOutput(!0)}},kG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.i2c_A_pin),"PIN"),this.setOutput(!0,Number)}},WG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.i2c_B_pin),"PIN"),this.setOutput(!0,Number)}},KG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.spi_A_pin),"PIN"),this.setOutput(!0,Number)}},JG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.spi_B_pin),"PIN"),this.setOutput(!0,Number)}},QG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.spi_C_pin),"PIN"),this.setOutput(!0,Number)}},qG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.spi_D_pin),"PIN"),this.setOutput(!0,Number)}},zG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.analog),"PIN"),this.setOutput(!0)}},jG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.analog_pin),"PIN"),this.setOutput(!0,Number)}},$G={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.dac),"PIN"),this.setOutput(!0)}},ZG={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.dac_pin),"PIN"),this.setOutput(!0,Number)}},tU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.button),"PIN"),this.setOutput(!0,Number)}},eU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.pwm),"PIN"),this.setOutput(!0)}},iU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.pwm_pin),"PIN"),this.setOutput(!0,Number)}},nU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.touch_pin),"PIN"),this.setOutput(!0,Number)}},sU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.touch),"PIN"),this.setOutput(!0)}},oU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.serial_pin),"PIN"),this.setOutput(!0,Number)}},_U={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.builtinimg),"PIN"),this.setOutput(!0,"esp32_image")}},pU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.builtinimg_extern),"PIN"),this.setOutput(!0,"esp32_image")}},aU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.imglist),"PIN"),this.setOutput(!0)}},uU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.playlist),"PIN"),this.setOutput(!0)}},rU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.playlist_extern),"PIN"),this.setOutput(!0)}},dU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.exlcdh),"PIN"),this.setOutput(!0,Number)}},lU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.exlcdv),"PIN"),this.setOutput(!0,Number)}},IU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.axis),"PIN"),this.setOutput(!0,Number)}},TU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.brightness),"PIN"),this.setOutput(!0,Number)}},MU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.tts_voice),"PIN"),this.setOutput(!0,Number)}},hU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.tts_builtin_music),"PIN"),this.setOutput(!0,Number)}},mU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.tts_bgmusic),"PIN"),this.setOutput(!0,Number)}},EU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.tone_notes),"PIN"),this.setOutput(!0,Number)}},OU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.radio_power),"PIN"),this.setOutput(!0,Number)}},RU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.radio_datarate),"PIN"),this.setOutput(!0,Number)}},cU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.one_more),"PIN"),this.setOutput(!0)}},gU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown(Mt.Profile.default.digital_dot),"PIN"),this.setOutput(!0,Number)}},CU={init:function(){this.setColour(vG),this.appendDummyInput("").appendField(new Tt.FieldDropdown([["0","0"],["1","1"],["2","2"],["3","3"]]),"PIN"),this.setOutput(!0,Number)}},SU=function(t,e){return[this.getFieldValue("PIN"),e.ORDER_ATOMIC]},AU=SU,LU=SU,NU=SU,DU=SU,fU=SU,FU=SU,PU=SU,vU=SU,YU=SU,XU=SU,xU=SU,bU=SU,yU=SU,VU=SU,BU=SU,GU=SU,UU=SU,wU=SU,HU=SU,kU=SU,WU=SU,KU=SU,JU=SU,QU=SU,qU=SU,zU=SU,jU=SU,$U=SU,ZU=SU,tw=SU,ew=SU,iw=SU,nw=SU,sw=SU,ow=SU;Object.assign(Tt.Variables,mt),Object.assign(Tt.Procedures,Yu),Object.assign(Tt.Lang.ZhHans,ut),Object.assign(Tt.Lang.ZhHant,rt),Object.assign(Tt.Lang.En,dt),Tt.Python=Xu,Tt.generator=Xu,Mt.Profile.default={},Object.assign(Mt.Profile,PG),Object.assign(Mt.Profile.default,PG["ESP32 Generic"]),Object.assign(Tt.Blocks,e,i,n,s,o,_,p,a,u,r,d,l,I,b,H,w,v,y,k,f,U,G,B,V,F,D,N,X,Y,x,P,lt),Object.assign(Tt.Python.forBlock,T,M,h,m,E,O,R,c,g,C,S,A,L,tt,pt,_t,z,et,at,J,ot,st,nt,it,Q,K,W,$,j,Z,q,It)})();