jQuery;varDo=function(){vart=_asyncToGenerator(regeneratorRuntime.mark((function_callee2(t,e){varr;returnregeneratorRuntime.wrap((function_callee2$(n){for(;;)switch(n.prev=n.next){case0:returnn.prev=0,n.next=3,import("./extensions/ext-".concat(t,"/locale/").concat(e,".js"));case3:r=n.sent,n.next=12;break;case6:returnn.prev=6,n.t0=n.catch(0),console.error("Missing translation (".concat(e,") for extension ").concat(t," - using 'en'")),n.next=11,import("./extensions/ext-".concat(t,"/locale/en.js"));case11:r=n.sent;case12:returnn.abrupt("return",r.default);case13:case"end":returnn.stop()}}),_callee2,null,[[0,6]])})));returnfunctionloadExtensionTranslation(e,r){returnt.apply(this,arguments)}}(),$o={name:"helloworld",init:functioninit(t){vare=this;return_asyncToGenerator(regeneratorRuntime.mark((function_callee(){varr,n,o,i;returnregeneratorRuntime.wrap((function_callee$(a){for(;;)switch(a.prev=a.next){case0:returnr=t.$,t.importLocale,n=e,a.next=4,Do("helloworld",n.curPrefs.lang);case4:returno=a.sent,i=n.canvas,a.abrupt("return",{name:o.name,svgicons:"helloworld-icon.xml",buttons:[{id:"hello_world",icon:"helloworld.png",type:"mode",title:o.buttons[0].title,events:{click:functionclick(){i.setMode("hello_world")}}}],mouseDown:functionmouseDown(){if("hello_world"===i.getMode())return{started:!0}},mouseUp:functionmouseUp(t){if("hello_world"===i.getMode()){vare=i.getZoom(),n=t.mouse_x/e,a=t.mouse_y/e,c=o.text;[["x",n],["y",a]].forEach((function(t){vare=_slicedToArray(t,2),r=e[0],n=e[1];c=c.replace("{"+r+"}",n)})),r.alert(c)}}});case7:case"end":returna.stop()}}),_callee)})))()}};exportdefault$o;