7 CONFIRM:"\u041f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"}};f.setLocale=function(b){for(var a in j)if(a==b){l=b;return}throwError("Invalid locale: "+b);};f.addLocale=function(b,a){"undefined"==typeof j[b]&&(j[b]={});for(var c in a)j[b][c]=a[c]};f.setIcons=function(b){h=b;if("object"!==typeof h||null==h)h={}};f.alert=function(){var b="",a=g("OK"),c=null;switch(arguments.length){case1:b=arguments[0];break;case2:b=arguments[0];"function"==typeof arguments[1]?
8 c=arguments[1]:a=arguments[1];break;case3:b=arguments[0];a=arguments[1];c=arguments[2];break;default:throwError("Incorrect number of arguments: expected 1-3");}return f.dialog(b,{label:a,icon:h.OK,callback:c},{onEscape:c})};f.confirm=function(){var b="",a=g("CANCEL"),c=g("CONFIRM"),e=null;switch(arguments.length){case1:b=arguments[0];break;case2:b=arguments[0];"function"==typeof arguments[1]?e=arguments[1]:a=arguments[1];break;case3:b=arguments[0];a=arguments[1];"function"==typeof arguments[2]?
9 e=arguments[2]:c=arguments[2];break;case4:b=arguments[0];a=arguments[1];c=arguments[2];e=arguments[3];break;default:throwError("Incorrect number of arguments: expected 1-4");}return f.dialog(b,[{label:a,icon:h.CANCEL,callback:function(){"function"==typeof e&&e(!1)}},{label:c,icon:h.CONFIRM,callback:function(){"function"==typeof e&&e(!0)}}])};f.prompt=function(){var b="",a=g("CANCEL"),c=g("CONFIRM"),e=null,s="";switch(arguments.length){case1:b=arguments[0];break;case2:b=arguments[0];"function"==
10typeof arguments[1]?e=arguments[1]:a=arguments[1];break;case3:b=arguments[0];a=arguments[1];"function"==typeof arguments[2]?e=arguments[2]:c=arguments[2];break;case4:b=arguments[0];a=arguments[1];c=arguments[2];e=arguments[3];break;case5:b=arguments[0];a=arguments[1];c=arguments[2];e=arguments[3];s=arguments[4];break;default:throwError("Incorrect number of arguments: expected 1-5");}var n=k("<form></form>");n.append("<input autocomplete=off type=text value='"+s+"' />");var d=f.dialog(n,[{label:a,