diff --git a/Public/www/javascript/gxg.js b/Public/www/javascript/gxg.js index bace4f0..ea4f3cf 100644 --- a/Public/www/javascript/gxg.js +++ b/Public/www/javascript/gxg.js @@ -2705,7 +2705,7 @@ else if("content"['$===']($case)){return element.appendChild(document.createText else{return element.setAttribute(name,value)}})();},$$158.$$s=self,$$158.$$arity=2,$$158));return element;},$Factory_create_element$157.$$arity=-4);Opal.def(self,'$dasherize',$Factory_dasherize$159=function $$dasherize(class_name){var self=this,the_name=nil;the_name=class_name.$gsub("::","-").$downcase().$gsub("_","-");if(the_name['$[]'](0)['$==']("-")){the_name=the_name['$[]']($range(1,-1,false))};return the_name;},$Factory_dasherize$159.$$arity=1);return(Opal.def(self,'$camelize',$Factory_camelize$160=function $$camelize(class_name){var $$161,self=this;if($truthy(class_name['$!~'](/-/))){return class_name};return $send(class_name,'gsub',[/(?:-|(\/))([a-z\d]*)/],($$161=function(){var self=$$161.$$s==null?this:$$161.$$s,$a;return ""+((($a=$gvars['~'])===nil?nil:$a['$[]'](1)))+((($a=$gvars['~'])===nil?nil:$a['$[]'](2)).$capitalize())},$$161.$$s=self,$$161.$$arity=0,$$161)).$strip();},$Factory_camelize$160.$$arity=1),nil)&&'camelize';})($nesting[0],null,$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BaseElement');var $nesting=[self].concat($parent_nesting),$BaseElement_set_settings$162,$BaseElement_initialize$163,$BaseElement_parent$166,$BaseElement_root$167,$BaseElement_factory$168,$BaseElement_build$169;self.$$prototype.uuid=self.$$prototype.component=self.$$prototype.states=self.$$prototype.parent=nil;self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'ElementMethods'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'EventHandlers'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'AnimationSupport'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'ApplicationSupport'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'ThemeSupport'));self.$attr_reader("uuid","title","component","parent","children","element","domtype","settings");Opal.def(self,'$set_settings',$BaseElement_set_settings$162=function $$set_settings(the_settings){var self=this;if(the_settings==null){the_settings=nil;};return(self.settings=the_settings);},$BaseElement_set_settings$162.$$arity=-1);$alias(self,"settings=","set_settings");Opal.def(self,'$initialize',$BaseElement_initialize$163=function $$initialize(parent,options){var $$164,$$165,self=this,$ret_or_39=nil,$ret_or_40=nil,$ret_or_41=nil,$writer=nil;if(options==null){options=$hash2([],{});};if($truthy(options['$is_a?']($$$($$$($$($nesting,'GxG'),'Database'),'DetachedHash')))){self.uuid=options.$uuid().$to_s().$to_sym();self.title=options.$title().$to_s();}else{self.uuid=(function(){if($truthy(($ret_or_39=options['$[]']("uuid")))){return $ret_or_39}else{return $$$('::','GxG').$uuid_generate()};return nil;})().$to_s().$to_sym();self.title=(function(){if($truthy(($ret_or_40=options['$[]']("title")))){return $ret_or_40}else{return ""+"Untitled Component "+(self.uuid.$to_s())};return nil;})().$to_s();};self.component=(function(){if($truthy(($ret_or_41=options['$[]']("component")))){return $ret_or_41}else{return "unknown"};return nil;})().$to_s().$downcase().$to_sym();self.parent=parent;self.settings=options['$[]']("settings");self.children=$hash2([],{});self.element=nil;self.domtype="div";self.states=$hash2([],{});$writer=[self.component.$to_s().$gsub(".","-").$to_sym(),true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(options['$[]']("options")['$is_a?']($$$('::','Hash'),$$$($$$($$($nesting,'GxG'),'Database'),'DetachedHash')))){if($truthy(options['$[]']("options")['$[]']("states")['$is_a?']($$$('::','Array'),$$$($$$($$($nesting,'GxG'),'Database'),'DetachedArray')))){$send(options['$[]']("options")['$[]']("states"),'each',[],($$164=function(the_state){var self=$$164.$$s==null?this:$$164.$$s;if(self.states==null)self.states=nil;if(the_state==null){the_state=nil;};$writer=[the_state.$to_s().$to_sym(),true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];},$$164.$$s=self,$$164.$$arity=1,$$164))}};self.style=$hash2([],{});if($truthy(options['$[]']("options")['$is_a?']($$$('::','Hash'),$$$($$$($$($nesting,'GxG'),'Database'),'DetachedHash')))){if($truthy(options['$[]']("options")['$[]']("style")['$is_a?']($$$('::','Hash'),$$$($$$($$($nesting,'GxG'),'Database'),'DetachedHash')))){self.style=options['$[]']("options")['$[]']("style")}};self.options=$hash2([],{});if($truthy(options['$[]']("options")['$is_a?']($$$('::','Hash'),$$$($$$($$($nesting,'GxG'),'Database'),'DetachedHash')))){$send(options['$[]']("options"),'each_pair',[],($$165=function(the_option,the_value){var self=$$165.$$s==null?this:$$165.$$s;if(self.options==null)self.options=nil;if(the_option==null){the_option=nil;};if(the_value==null){the_value=nil;};if($truthy(["background-color","icon","label","data","content","uuid","title","opacity","window_title","menu","top","right","bottom","left","height","width","close","minimize","maximize","resize","scroll","modal","track","states","style"]['$include?'](the_option.$to_s().$to_sym()))){return nil}else{$writer=[the_option.$to_s().$to_sym(),the_value.$to_s()];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$$165.$$s=self,$$165.$$arity=2,$$165))};self.event_handlers=$hash2([],{});self.event_listeners=$hash2([],{});self.$creation();if($truthy(options['$[]']("options")['$is_a?']($$$('::','Hash'),$$$($$$($$($nesting,'GxG'),'Database'),'DetachedHash')))){if($truthy(options['$[]']("content")['$is_a?']($$$('::','String')))){self.$set_text(options['$[]']("content"))}};return self;},$BaseElement_initialize$163.$$arity=-2);Opal.def(self,'$parent',$BaseElement_parent$166=function $$parent(){var self=this;return self.parent},$BaseElement_parent$166.$$arity=0);Opal.def(self,'$root',$BaseElement_root$167=function $$root(){var $a,self=this,result=nil,search_queue=nil,entry=nil;result=nil;search_queue=[self.parent];while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry)){if(entry.$component()['$==']("page")){result=entry;break;;}else{search_queue['$<<'](entry.$parent())}};};return result;},$BaseElement_root$167.$$arity=0);Opal.def(self,'$factory',$BaseElement_factory$168=function $$factory(){var self=this;return self.$root().$factory()},$BaseElement_factory$168.$$arity=0);return(Opal.def(self,'$build',$BaseElement_build$169=function $$build(content_manifest,options){var self=this;if(content_manifest==null){content_manifest=nil;};if(options==null){options=$hash2([],{});};return self.$page().$build_components(self,content_manifest,options);},$BaseElement_build$169.$$arity=-1),nil)&&'build';})($nesting[0],null,$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BaseInputElement');var $nesting=[self].concat($parent_nesting),$BaseInputElement__before_create$170,$BaseInputElement_value$171,$BaseInputElement_value$eq$172,$BaseInputElement__after_create$173,$BaseInputElement_disable$174,$BaseInputElement_enable$175;self.$$prototype.options=self.$$prototype.element=self.$$prototype.disabled=nil;Opal.def(self,'$_before_create',$BaseInputElement__before_create$170=function $$_before_create(){var $iter=$BaseInputElement__before_create$170.$$p,$yield=$iter||nil,self=this,$ret_or_42=nil,$writer=nil,$ret_or_43=nil;if($iter)$BaseInputElement__before_create$170.$$p=null;$send2(self,$find_super(self,'_before_create',$BaseInputElement__before_create$170,false,true),'_before_create',[],null);self.domtype="input";if($truthy(($ret_or_42=self.options['$[]']("type")))){$ret_or_42}else{$writer=["type","text"];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options['$[]']("content"))){$writer=["value",self.options.$delete("content")];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};return(self.disabled=(function(){if($truthy(($ret_or_43=self.options['$[]']("disabled")))){return $ret_or_43}else{return false};return nil;})());},$BaseInputElement__before_create$170.$$arity=0);Opal.def(self,'$value',$BaseInputElement_value$171=function $$value(){var self=this;return self.element.value},$BaseInputElement_value$171.$$arity=0);Opal.def(self,'$value=',$BaseInputElement_value$eq$172=function(value){var self=this;return self.element.value=value},$BaseInputElement_value$eq$172.$$arity=1);Opal.def(self,'$_after_create',$BaseInputElement__after_create$173=function $$_after_create(){var $iter=$BaseInputElement__after_create$173.$$p,$yield=$iter||nil,self=this;if($iter)$BaseInputElement__after_create$173.$$p=null;$send2(self,$find_super(self,'_after_create',$BaseInputElement__after_create$173,false,true),'_after_create',[],null);if($truthy(self.disabled)){return self.$disable()}else{return nil};},$BaseInputElement__after_create$173.$$arity=0);Opal.def(self,'$disable',$BaseInputElement_disable$174=function $$disable(){var self=this;return self.$set_attribute("disabled","disabled")},$BaseInputElement_disable$174.$$arity=0);return(Opal.def(self,'$enable',$BaseInputElement_enable$175=function $$enable(){var self=this;return self.$clear_attribute("disabled")},$BaseInputElement_enable$175.$$arity=0),nil)&&'enable';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BaseClickableElement');var $nesting=[self].concat($parent_nesting),$BaseClickableElement__before_create$176;return(Opal.def(self,'$_before_create',$BaseClickableElement__before_create$176=function $$_before_create(){var $iter=$BaseClickableElement__before_create$176.$$p,$yield=$iter||nil,self=this;if($iter)$BaseClickableElement__before_create$176.$$p=null;return $send2(self,$find_super(self,'_before_create',$BaseClickableElement__before_create$176,false,true),'_before_create',[],null)},$BaseClickableElement__before_create$176.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Page');var $nesting=[self].concat($parent_nesting),$Page_set_settings$177,$Page_get_library$178,$Page_library_loaded$ques$181,$Page_load_library$184,$Page_load_libraries$187,$Page_application_open$190,$Page_site_asset$194,$Page_theme_icon$195,$Page_theme_background$196,$Page_theme_widget$197,$Page_theme_font$198,$Page_theme_window_title_layout$199,$Page_build_components$200,$Page_build$202,$Page_build_page$203,$Page_initialize$206,$Page_find_object_by_dom_id$210,$Page_find_object$212,$Page_find_object_by$214,$Page_register_object$216,$Page_unregister_object$217,$Page_factory$218,$Page_element$219,$Page_parent$220,$Page_root$221,$Page_domclear$222,$Page_clear$223;self.$$prototype.theme_prefix=self.$$prototype.settings=self.$$prototype.element=self.$$prototype.uuid=self.$$prototype.title=self.$$prototype.title_registry=self.$$prototype.factory=nil;self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'ElementMethods'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'EventHandlers'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'AnimationSupport'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'ApplicationSupport'));self.$include($$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'ThemeSupport'));self.$attr_reader("uuid","title","component","parent","children","domtype","settings");Opal.def(self,'$set_settings',$Page_set_settings$177=function $$set_settings(the_settings){var self=this;if(the_settings==null){the_settings=nil;};return(self.settings=the_settings);},$Page_set_settings$177.$$arity=-1);$alias(self,"settings=","set_settings");Opal.def(self,'$get_library',$Page_get_library$178=function $$get_library(the_reference){var $$179,$$180,self=this,result=nil;if(the_reference==null){the_reference=nil;};result=nil;if($truthy(the_reference['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){(function(){var $brk=Opal.new_brk();try{return $send($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries").$values(),'each',[],($$179=function(the_library){var self=$$179.$$s==null?this:$$179.$$s,$ret_or_44=nil,$ret_or_45=nil;if(the_library==null){the_library=nil;};if($truthy((function(){if($truthy(($ret_or_44=the_library.$title()['$=='](the_reference['$[]']("library").$to_s())))){return the_library.$type()['$==']((function(){if($truthy(($ret_or_45=the_reference['$[]']("type")))){return $ret_or_45}else{return the_library.$type()};return nil;})())}else{return $ret_or_44};return nil;})())){if($truthy(the_reference['$[]']("maximum"))){if($truthy(Opal.Range.$new(the_reference['$[]']("minimum").$to_f(),the_reference['$[]']("maximum").$to_f(),false)['$include?'](the_library.$version()))){result=the_library;Opal.brk(nil,$brk);}else{return nil}}else if($truthy($rb_ge(the_library.$version(),the_reference['$[]']("minimum").$to_f()))){result=the_library;Opal.brk(nil,$brk);}else{return nil}}else{return nil};},$$179.$$s=self,$$179.$$brk=$brk,$$179.$$arity=1,$$179))}catch(err){if(err===$brk){return err.$v}else{throw err}}})()}else if($truthy($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries")['$[]'](the_reference.$to_s().$to_sym()))){result=$$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries")['$[]'](the_reference.$to_s().$to_sym())}else{(function(){var $brk=Opal.new_brk();try{return $send($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries").$values(),'each',[],($$180=function(the_library){var self=$$180.$$s==null?this:$$180.$$s;if(the_library==null){the_library=nil;};if(the_library.$title()['$=='](the_reference)){result=the_library;Opal.brk(nil,$brk);}else{return nil};},$$180.$$s=self,$$180.$$brk=$brk,$$180.$$arity=1,$$180))}catch(err){if(err===$brk){return err.$v}else{throw err}}})()};return result;},$Page_get_library$178.$$arity=-1);Opal.def(self,'$library_loaded?',$Page_library_loaded$ques$181=function(the_reference){var $$182,$$183,self=this,found=nil;if(the_reference==null){the_reference=nil;};if($truthy(the_reference['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){found=false;(function(){var $brk=Opal.new_brk();try{return $send($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries").$values(),'each',[],($$182=function(the_library){var self=$$182.$$s==null?this:$$182.$$s,$ret_or_46=nil,$ret_or_47=nil;if(the_library==null){the_library=nil;};if($truthy((function(){if($truthy(($ret_or_46=the_library.$title()['$=='](the_reference['$[]']("library").$to_s())))){return the_library.$type()['$==']((function(){if($truthy(($ret_or_47=the_reference['$[]']("type")))){return $ret_or_47}else{return the_library.$type()};return nil;})().$to_s())}else{return $ret_or_46};return nil;})())){if($truthy(the_reference['$[]']("maximum"))){if($truthy(Opal.Range.$new(the_reference['$[]']("minimum").$to_f(),the_reference['$[]']("maximum").$to_f(),false)['$include?'](the_library.$version()))){found=the_library['$loaded?']();Opal.brk(nil,$brk);}else{return nil}}else if($truthy($rb_ge(the_library.$version(),the_reference['$[]']("minimum").$to_f()))){found=the_library['$loaded?']();Opal.brk(nil,$brk);}else{return nil}}else{return nil};},$$182.$$s=self,$$182.$$brk=$brk,$$182.$$arity=1,$$182))}catch(err){if(err===$brk){return err.$v}else{throw err}}})();return found;}else if($truthy($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries")['$[]'](the_reference.$to_s().$to_sym()))){return true}else{found=false;(function(){var $brk=Opal.new_brk();try{return $send($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries").$values(),'each',[],($$183=function(the_library){var self=$$183.$$s==null?this:$$183.$$s;if(the_library==null){the_library=nil;};if(the_library.$title()['$=='](the_reference)){found=the_library['$loaded?']();Opal.brk(nil,$brk);}else{return nil};},$$183.$$s=self,$$183.$$brk=$brk,$$183.$$arity=1,$$183))}catch(err){if(err===$brk){return err.$v}else{throw err}}})();return found;};},$Page_library_loaded$ques$181.$$arity=-1);Opal.def(self,'$load_library',$Page_load_library$184=function $$load_library(criteria){var $iter=$Page_load_library$184.$$p,block=$iter||nil,$$185,self=this,maximum=nil,$ret_or_48=nil,$ret_or_49=nil;if($iter)$Page_load_library$184.$$p=null;if($iter)$Page_load_library$184.$$p=null;;if(criteria==null){criteria=nil;};if($truthy(criteria['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(criteria['$[]']("maximum"))){maximum=criteria['$[]']("maximum").$to_f()}else{maximum=nil};return $send($$$($$($nesting,'GxG'),'CONNECTION'),'library_pull',[$hash2(["library","type","minimum","maximum","dependencies","loaded"],{"library":criteria['$[]']("library").$to_s(),"type":(function(){if($truthy(($ret_or_48=criteria['$[]']("type")))){return $ret_or_48}else{return "text/ruby"};return nil;})().$to_s(),"minimum":(function(){if($truthy(($ret_or_49=criteria['$[]']("minimum")))){return $ret_or_49}else{return 0.0};return nil;})().$to_f(),"maximum":maximum,"dependencies":true,"loaded":$$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries").$keys()})],($$185=function(response){var self=$$185.$$s==null?this:$$185.$$s,$$186;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Hash')))){if($truthy(response['$[]']("result")['$is_a?']($$$('::','Array')))){return $send(response['$[]']("result"),'each',[],($$186=function(the_record){var self=$$186.$$s==null?this:$$186.$$s,definition=nil,$writer=nil;if(the_record==null){the_record=nil;};if($truthy($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries").$keys()['$include?'](the_record['$[]']("uuid").$to_s().$to_sym()))){return nil}else{definition=the_record['$[]']("data");if($truthy(definition['$is_a?']($$$('::','String')))){if($truthy(definition['$base64?']())){definition=definition.$decode64()};if($truthy(definition['$json?']())){definition=$$$('::','JSON').$parse(definition,$hash2(["symbolize_names"],{"symbolize_names":true}))};if($truthy(definition['$is_a?']($$$('::','Hash')))){definition=$$$($$$('::','GxG'),'Database').$process_import(definition)};if($truthy(definition['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){$writer=[the_record['$[]']("uuid").$to_s().$to_sym(),$$$($$$('::','GxG'),'Library').$new(definition)];$send($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(block['$respond_to?']("call"))){return block.$call($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("libraries")['$[]'](the_record['$[]']("uuid").$to_s().$to_sym()))}else{return nil};}else{return nil};}else{return nil};};},$$186.$$s=self,$$186.$$arity=1,$$186))}else{return nil}}else{return nil};},$$185.$$s=self,$$185.$$arity=1,$$185));}else{return nil};},$Page_load_library$184.$$arity=-1);Opal.def(self,'$load_libraries',$Page_load_libraries$187=function $$load_libraries(load_queue){var $iter=$Page_load_libraries$187.$$p,block=$iter||nil,$$188,self=this,result=nil;if($iter)$Page_load_libraries$187.$$p=null;if($iter)$Page_load_libraries$187.$$p=null;;if(load_queue==null){load_queue=[];};result=true;if($truthy(load_queue['$is_any?']($$$('::','Array'),$$$($$$($$$('::','GxG'),'Database'),'DetachedArray')))){(function(){var $brk=Opal.new_brk();try{return $send(load_queue,'each',[],($$188=function(the_requirement){var self=$$188.$$s==null?this:$$188.$$s,$$189;if(the_requirement==null){the_requirement=nil;};return(function(){var $brk=Opal.new_brk();try{return $send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object"),'load_library',[the_requirement],($$189=function(the_library){var self=$$189.$$s==null?this:$$189.$$s;if(the_library==null){the_library=nil;};if($truthy(the_library['$loaded?']())){return nil}else{self.$log_warn(""+"Unable to load library: "+(the_library.$title()));result=false;Opal.brk(nil,$brk);};},$$189.$$s=self,$$189.$$brk=$brk,$$189.$$arity=1,$$189))}catch(err){if(err===$brk){return err.$v}else{throw err}}})();},$$188.$$s=self,$$188.$$brk=$brk,$$188.$$arity=1,$$188))}catch(err){if(err===$brk){return err.$v}else{throw err}}})()};if($truthy(block['$respond_to?']("call"))){block.$call(result)};return result;},$Page_load_libraries$187.$$arity=-1);Opal.def(self,'$application_open',$Page_application_open$190=function $$application_open(specifier,parameters){var $$191,$$192,self=this,result=nil,error_hander=nil;if(specifier==null){specifier=$hash2([],{});};if(parameters==null){parameters=$hash2([],{});};result=false;if($truthy(specifier['$is_a?']($$$('::','Hash')))){error_hander=$send($$($nesting,'Proc'),'new',[],($$191=function(){var self=$$191.$$s==null?this:$$191.$$s;return nil},$$191.$$s=self,$$191.$$arity=0,$$191));self.$set_busy(true);$send($$$($$($nesting,'GxG'),'CONNECTION'),'application_open',[specifier,error_hander],($$192=function(app_stub){var self=$$192.$$s==null?this:$$192.$$s,$$193;if(app_stub==null){app_stub=nil;};if($truthy(app_stub['$is_a?']($$$('::','Hash')))){if($truthy(app_stub['$[]']("result")['$is_a?']($$$('::','Hash')))){return $send($$$($$($nesting,'GxG'),'CONNECTION'),'pull_object',[app_stub['$[]']("result")['$[]']("location")],($$193=function(source_object){var self=$$193.$$s==null?this:$$193.$$s,$writer=nil;if(source_object==null){source_object=nil;};$writer=[app_stub['$[]']("result")['$[]']("application").$to_s().$to_sym(),$$$($$($nesting,'GxG'),'Application').$new(app_stub['$[]']("result").$merge($hash2(["source"],{"source":source_object})))];$send($$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("processes"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;result=$$$($$($nesting,'GxG'),'APPLICATIONS')['$[]']("processes")['$[]'](app_stub['$[]']("result")['$[]']("application").$to_s().$to_sym()).$run(parameters);return self.$set_busy(false);},$$193.$$s=self,$$193.$$arity=1,$$193))}else{return self.$log_warn($rb_plus("Error opening Application: ",app_stub.$inspect()))}}else{return self.$log_warn(""+"Malformed response: "+(app_stub.$inspect()))};},$$192.$$s=self,$$192.$$arity=1,$$192));}else{self.$log_warn(""+"Invalid Argument: "+(specifier.$inspect()))};return result;},$Page_application_open$190.$$arity=-1);Opal.def(self,'$site_asset',$Page_site_asset$194=function $$site_asset(asset_path){var self=this,host_prefix=nil;if(asset_path==null){asset_path=nil;};if($truthy((window.location['href'])['$include?']("https://"))){host_prefix=$rb_plus("https://",window.location['host'])}else{host_prefix=$rb_plus("http://",window.location['host'])};if($truthy($$$($$$('::','GxG'),'CONNECTION').$relative_url().$to_s()['$[]'](0)['$!=']("/"))){host_prefix=$rb_plus(host_prefix,"/")};if($truthy(asset_path)){return $rb_plus(host_prefix,$$($nesting,'File').$expand_path($rb_plus($rb_plus($$$($$$('::','GxG'),'CONNECTION').$relative_url().$to_s(),"/"),asset_path.$to_s())));}else{return ""};},$Page_site_asset$194.$$arity=-1);Opal.def(self,'$theme_icon',$Page_theme_icon$195=function $$theme_icon(image_name){var self=this;if(image_name==null){image_name=nil;};if($truthy(image_name)){return $rb_plus($rb_plus(self.theme_prefix,"/icons/"),image_name.$to_s());}else{return ""};},$Page_theme_icon$195.$$arity=-1);Opal.def(self,'$theme_background',$Page_theme_background$196=function $$theme_background(image_name){var self=this;if(image_name==null){image_name=nil;};if($truthy(image_name)){return $rb_plus($rb_plus(self.theme_prefix,"/backgrounds/"),image_name.$to_s());}else{return ""};},$Page_theme_background$196.$$arity=-1);Opal.def(self,'$theme_widget',$Page_theme_widget$197=function $$theme_widget(image_name){var self=this;if(image_name==null){image_name=nil;};if($truthy(image_name)){return $rb_plus($rb_plus(self.theme_prefix,"/widgets/"),image_name.$to_s());}else{return ""};},$Page_theme_widget$197.$$arity=-1);Opal.def(self,'$theme_font',$Page_theme_font$198=function $$theme_font(font_name){var self=this;if(font_name==null){font_name=nil;};if($truthy(font_name)){return $rb_plus($rb_plus(self.theme_prefix,"/fonts/"),font_name.$to_s());}else{return ""};},$Page_theme_font$198.$$arity=-1);Opal.def(self,'$theme_window_title_layout',$Page_theme_window_title_layout$199=function $$theme_window_title_layout(){var self=this;return $hash2(["left","center","right"],{"left":["close","minimize","maximize"],"center":["title"],"right":[]})},$Page_theme_window_title_layout$199.$$arity=0);Opal.def(self,'$build_components',$Page_build_components$200=function $$build_components(root_object,content_manifest,options){var $a,$$201,self=this,result=nil,$ret_or_50=nil,build_queue=nil,record=nil;if(root_object==null){root_object=nil;};if(content_manifest==null){content_manifest=nil;};if(options==null){options=$hash2([],{});};result=false;if($truthy(root_object)){}else{root_object=$$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object")};if($truthy((function(){if($truthy(($ret_or_50=root_object))){return content_manifest['$is_any?']($$$('::','Array'),$$$($$$($$$('::','GxG'),'Database'),'DetachedArray'))}else{return $ret_or_50};return nil;})())){build_queue=[$hash2(["parent","content"],{"parent":root_object,"content":content_manifest})];while($truthy($rb_gt(build_queue.$size(),0))){record=build_queue.$shift();if($truthy(record)){$send(record['$[]']("content"),'each',[],($$201=function(the_entry){var self=$$201.$$s==null?this:$$201.$$s,new_object=nil,$ret_or_51=nil,$ret_or_52=nil,$ret_or_53=nil;if(the_entry==null){the_entry=nil;};new_object=record['$[]']("parent").$add_child(the_entry);if($truthy($rb_gt(the_entry['$[]']("content").$size(),0))){build_queue['$<<']($hash2(["parent","content"],{"parent":new_object,"content":the_entry['$[]']("content")}))};if($truthy((function(){if($truthy(($ret_or_51=the_entry['$[]']("component").$to_s().$downcase().$to_sym()['$==']("application_viewport")))){return options['$[]']("application")}else{return $ret_or_51};return nil;})())){new_object.$set_application(options['$[]']("application"));if($truthy(options['$[]']("application").$get_viewport(new_object.$uuid()))){}else{options['$[]']("application").$link_viewport(new_object)};};if($truthy((function(){if($truthy(($ret_or_52=the_entry['$[]']("component").$to_s().$downcase().$to_sym()['$==']("window")))){return options['$[]']("application")}else{return $ret_or_52};return nil;})())){options['$[]']("application").$link_window(new_object);new_object.$set_application(options['$[]']("application"));};if($truthy((function(){if($truthy(($ret_or_53=the_entry['$[]']("component").$to_s().$downcase().$to_sym()['$==']("dialog_box")))){return options['$[]']("application")}else{return $ret_or_53};return nil;})())){new_object.$set_application(options['$[]']("application"))};if($truthy(record['$[]']("parent")['$is_a?']($$$($$$($$$('::','GxG'),'Gui'),'Window')))){if($truthy(the_entry['$[]']("options")['$[]']("track"))){return record['$[]']("parent").$track_deltas(new_object.$uuid(),new_object,the_entry['$[]']("options")['$[]']("track"))}else{return nil}}else{return nil};},$$201.$$s=self,$$201.$$arity=1,$$201))};};result=true;};return result;},$Page_build_components$200.$$arity=-1);Opal.def(self,'$build',$Page_build$202=function $$build(content_manifest,options){var self=this;if(content_manifest==null){content_manifest=nil;};if(options==null){options=$hash2([],{});};return self.$build_components(self,content_manifest,options);},$Page_build$202.$$arity=-1);Opal.def(self,'$build_page',$Page_build_page$203=function $$build_page(page_definition){var $$204,$$205,self=this,$ret_or_54=nil;if(page_definition==null){page_definition=nil;};if($truthy(page_definition['$is_any?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){self.element=document.body;self.settings=page_definition['$[]']("settings");self.theme_prefix=$rb_plus($$$($$$('::','GxG'),'CONNECTION').$relative_url(),""+"/themes/"+((function(){if($truthy(($ret_or_54=self.settings['$[]']("theme")))){return $ret_or_54}else{return "default"};return nil;})()));self.uuid=page_definition.$uuid().$to_s().$to_sym();self.element.id=self.uuid.$to_s();self.title=self.settings['$[]']("page_title").$to_s();document.title=self.title.$to_s();self.component="org.gxg.gui.page";self.parent=self;self.children=$hash2([],{});self.domtype="body";self.states=$hash2(["org-gxg-gui-page"],{"org-gxg-gui-page":true});if($truthy(page_definition['$[]']("options")['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(page_definition['$[]']("options")['$[]']("states")['$is_any?']($$$('::','Array'),$$$($$$($$$('::','GxG'),'Database'),'PersistedArray'),$$$($$$($$$('::','GxG'),'Database'),'DetachedArray')))){$send(page_definition['$[]']("options")['$[]']("states"),'each',[],($$204=function(the_state){var self=$$204.$$s==null?this:$$204.$$s,$writer=nil;if(self.states==null)self.states=nil;if(the_state==null){the_state=nil;};$writer=[the_state.$to_s().$to_sym(),true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];},$$204.$$s=self,$$204.$$arity=1,$$204))}};self.style=$hash2([],{});if($truthy(page_definition['$[]']("options")['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(page_definition['$[]']("options")['$[]']("style")['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){self.style=page_definition['$[]']("options")['$[]']("style")}};self.options=$hash2([],{});if($truthy(page_definition['$[]']("options")['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){$send(page_definition['$[]']("options"),'each_pair',[],($$205=function(the_option,the_value){var self=$$205.$$s==null?this:$$205.$$s,$writer=nil;if(self.options==null)self.options=nil;if(the_option==null){the_option=nil;};if(the_value==null){the_value=nil;};if($truthy(["background-color","data","icon","label","content","uuid","title","opacity","window_title","menu","top","right","bottom","left","height","width","close","minimize","maximize","resize","scroll","modal","track","states","style"]['$include?'](the_option.$to_s().$to_sym()))){return nil}else{$writer=[the_option.$to_s().$to_sym(),the_value.$to_s()];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$$205.$$s=self,$$205.$$arity=2,$$205))};self.event_handlers=$hash2([],{});self.event_listeners=$hash2([],{});self.$creation();if($truthy(page_definition['$[]']("script")['$is_a?']($$$('::','String')))){if($truthy($rb_gt(page_definition['$[]']("script").$size(),0))){self.$set_script(page_definition['$[]']("script"))}};return self.$build_components(self,page_definition['$[]']("content"));}else{return nil};},$Page_build_page$203.$$arity=-1);Opal.def(self,'$initialize',$Page_initialize$206=function $$initialize(page_definition){var $$207,$$208,$$209,self=this,$writer=nil;if(page_definition==null){page_definition=nil;};$writer=["object",self];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send($$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object"),'on',["onbeforeunload"],($$207=function(event){var self=$$207.$$s==null?this:$$207.$$s;if(event==null){event=nil;};return $$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("socket").$close();},$$207.$$s=self,$$207.$$arity=1,$$207));$send($$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object"),'on',["beforeunload"],($$208=function(event){var self=$$208.$$s==null?this:$$208.$$s;if(event==null){event=nil;};return $$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("socket").$close();},$$208.$$s=self,$$208.$$arity=1,$$208));$send($$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object"),'on',["onunload"],($$209=function(event){var self=$$209.$$s==null?this:$$209.$$s;if(event==null){event=nil;};return $$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("socket").$close();},$$209.$$s=self,$$209.$$arity=1,$$209));self.theme_prefix=$rb_plus($$$($$$('::','GxG'),'CONNECTION').$relative_url(),""+"/themes/"+($$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("theme")));self.settings=nil;self.busy=false;self.window_switcher=nil;self.window_registry=$hash2([],{});self.dialog=nil;self.dialog_queue=[];self.title_registry=$hash2([],{});self.$build_page(page_definition);return self;},$Page_initialize$206.$$arity=-1);Opal.def(self,'$find_object_by_dom_id',$Page_find_object_by_dom_id$210=function $$find_object_by_dom_id(the_id){var $a,$$211,self=this,result=nil,search_queue=nil,entry=nil,attrib=nil;if(the_id==null){the_id=nil;};result=nil;if($truthy(the_id['$is_a?']($$$('::','Numeric')))){the_id=$rb_plus("_",the_id.$to_i().$to_s())}else{the_id=the_id.$to_s()};search_queue=[self];while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();attrib=entry.$element().attributes.getNamedItem('id')||0;if($truthy(attrib==0)){}else{attrib=attrib.value;if($truthy((attrib.$to_s()==the_id.$to_s()))){result=entry;break;;};};if($truthy(entry['$respond_to?']("children"))){(function(){var $brk=Opal.new_brk();try{return $send(entry.$children().$keys(),'each',[],($$211=function(the_child_key){var self=$$211.$$s==null?this:$$211.$$s;if(the_child_key==null){the_child_key=nil;};attrib=entry.$children()['$[]'](the_child_key).$element().attributes.getNamedItem('id')||0;if($truthy(attrib==0)){return nil}else{attrib=attrib.value;if($truthy((attrib.$to_s()==the_id.$to_s()))){result=entry.$children()['$[]'](the_child_key);Opal.brk(nil,$brk);}else{return search_queue['$<<'](entry.$children()['$[]'](the_child_key))};};},$$211.$$s=self,$$211.$$brk=$brk,$$211.$$arity=1,$$211))}catch(err){if(err===$brk){return err.$v}else{throw err}}})()};};return result;},$Page_find_object_by_dom_id$210.$$arity=-1);Opal.def(self,'$find_object',$Page_find_object$212=function $$find_object(object_name){var $a,$$213,self=this,result=nil,search_queue=nil,entry=nil;if(object_name==null){object_name=nil;};result=nil;search_queue=[self];while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry['$respond_to?']("children"))){if($truthy(entry.$children()['$[]'](object_name))){result=entry.$children()['$[]'](object_name);break;;}else{$send(entry.$children().$keys(),'each',[],($$213=function(the_child){var self=$$213.$$s==null?this:$$213.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](entry.$children()['$[]'](the_child));},$$213.$$s=self,$$213.$$arity=1,$$213))}};};return result;},$Page_find_object$212.$$arity=-1);Opal.def(self,'$find_object_by',$Page_find_object_by$214=function $$find_object_by(the_title){var $$215,self=this,result=nil,uuid_check=nil;if(the_title==null){the_title=nil;};result=nil;if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_title))){uuid_check=true}else{uuid_check=false};(function(){var $brk=Opal.new_brk();try{return $send(self.title_registry.$keys(),'each',[],($$215=function(the_uuid){var self=$$215.$$s==null?this:$$215.$$s;if(self.title_registry==null)self.title_registry=nil;if(the_uuid==null){the_uuid=nil;};if(uuid_check['$=='](true)){if($truthy(self.title_registry['$[]'](the_uuid).$to_s()['$include?'](the_title.$to_s()))){result=self.$find_object(the_uuid);Opal.brk(nil,$brk);}else{return nil}}else if(the_title['$=='](self.title_registry['$[]'](the_uuid))){result=self.$find_object(the_uuid);Opal.brk(nil,$brk);}else{return nil};},$$215.$$s=self,$$215.$$brk=$brk,$$215.$$arity=1,$$215))}catch(err){if(err===$brk){return err.$v}else{throw err}}})();return result;},$Page_find_object_by$214.$$arity=-1);Opal.def(self,'$register_object',$Page_register_object$216=function $$register_object(the_title,the_object){var self=this,$ret_or_55=nil,$writer=nil;if(the_title==null){the_title=nil;};if(the_object==null){the_object=nil;};if($truthy((function(){if($truthy(($ret_or_55=the_title))){return the_object}else{return $ret_or_55};return nil;})())){$writer=[the_object.$uuid(),the_title.$to_s()];$send(self.title_registry,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return true;}else{return false};},$Page_register_object$216.$$arity=-1);Opal.def(self,'$unregister_object',$Page_unregister_object$217=function $$unregister_object(the_title){var self=this,the_object=nil;if(the_title==null){the_title=nil;};if($truthy(the_title)){the_object=self.$find_object_by(the_title);if($truthy(the_object)){if($truthy(the_object['$is_a?']($$$($$$($$$('::','GxG'),'Gui'),'ApplicationViewport')))){the_object.$detach()};self.title_registry.$delete(the_object.$uuid());};return true;}else{return false};},$Page_unregister_object$217.$$arity=-1);Opal.def(self,'$factory',$Page_factory$218=function $$factory(){var self=this,$ret_or_56=nil;return(self.factory=(function(){if($truthy(($ret_or_56=self.factory))){return $ret_or_56}else{return $$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'Factory').$new(self)};return nil;})())},$Page_factory$218.$$arity=0);Opal.def(self,'$element',$Page_element$219=function $$element(){var self=this;return self.$factory().$body()},$Page_element$219.$$arity=0);Opal.def(self,'$parent',$Page_parent$220=function $$parent(){var self=this;return self},$Page_parent$220.$$arity=0);Opal.def(self,'$root',$Page_root$221=function $$root(){var self=this;return self},$Page_root$221.$$arity=0);Opal.def(self,'$domclear',$Page_domclear$222=function $$domclear(){var self=this;while(document.body.firstChild){document.body.removeChild(document.body.firstChild);};;return true;},$Page_domclear$222.$$arity=0);return(Opal.def(self,'$clear',$Page_clear$223=function $$clear(){var $$224,$$225,$$226,self=this,the_attributes=nil;$send(self,'all_descendants',[],($$224=function(the_child){var self=$$224.$$s==null?this:$$224.$$s;if(the_child==null){the_child=nil;};return the_child.$remove_listeners();},$$224.$$s=self,$$224.$$arity=1,$$224));self.$remove_listeners();$send(self,'each_child',[],($$225=function(the_child){var self=$$225.$$s==null?this:$$225.$$s;if(the_child==null){the_child=nil;};return the_child.$destroy();},$$225.$$s=self,$$225.$$arity=1,$$225));the_attributes=document.body.getAttributeNames();$send(the_attributes,'each',[],($$226=function(the_attribute){var self=$$226.$$s==null?this:$$226.$$s;if(the_attribute==null){the_attribute=nil;};return self.$clear_attribute(the_attribute);},$$226.$$s=self,$$226.$$arity=1,$$226));return true;},$Page_clear$223.$$arity=0),nil)&&'clear';})($nesting[0],null,$nesting);Opal.defs(self,'$load_page',$Vdom_load_page$227=function $$load_page(page_object){var $$228,$$231,self=this,the_theme=nil,$ret_or_57=nil;if(page_object==null){page_object=nil;};if($truthy($$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object")['$is_any?']($$$($$$($$$('::','GxG'),'Gui'),'Page'),$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'Page')))){$$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object").$clear();$$$($$$($$$('::','GxG'),'Gui'),'Vdom').$clear_rules();$$$($$$($$$('::','GxG'),'Gui'),'Vdom').$refresh_css_cache();};the_theme=(function(){if($truthy(($ret_or_57=page_object['$[]']("settings")['$[]']("theme")))){return $ret_or_57}else{return "default"};return nil;})();$send($$$($$$('::','GxG'),'CONNECTION'),'pull_object',[""+"/Public/www/content/themes/"+(the_theme)],($$228=function(response){var self=$$228.$$s==null?this:$$228.$$s,$$229,$$230,$writer=nil;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Array')))){$send(response['$[]'](0)['$[]']("resources"),'each',[],($$229=function(resource_profile){var self=$$229.$$s==null?this:$$229.$$s;if(resource_profile==null){resource_profile=nil;};if(resource_profile['$[]']("resource_type")['$==']("font-face")){return $$$($$$($$$('::','GxG'),'Gui'),'Vdom').$load_font(resource_profile)}else{return nil};},$$229.$$s=self,$$229.$$arity=1,$$229));$send(response['$[]'](0)['$[]']("rules"),'each_pair',[],($$230=function(rule_name,rule_properties){var self=$$230.$$s==null?this:$$230.$$s;if(rule_name==null){rule_name=nil;};if(rule_properties==null){rule_properties=nil;};return $$$($$$($$$('::','GxG'),'Gui'),'Vdom').$set_rule(rule_name,rule_properties);},$$230.$$s=self,$$230.$$arity=2,$$230));if($truthy($$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object")['$is_any?']($$$($$$($$$('::','GxG'),'Gui'),'Page'),$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'Page')))){$$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object").$build_page(page_object)}else{$writer=["object",$$$($$$($$$('::','GxG'),'Gui'),'Page').$new(page_object)];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};return $$$($$$('::','GxG'),'Gui').$layout_refresh();}else{return self.$log_error($hash2(["error"],{"error":$$($nesting,'Exception').$new("Invalid theme object as response.")}))};},$$228.$$s=self,$$228.$$arity=1,$$228));if($truthy(page_object['$[]']("requirements")['$is_any?']($$$('::','Array'),$$$($$$($$$('::','GxG'),'Database'),'DetachedArray'),$$$($$$($$$('::','GxG'),'Database'),'PersistedArray')))){if($truthy($rb_gt(page_object['$[]']("requirements").$size(),0))){self.$load_libraries(page_object['$[]']("requirements"))}};if($truthy(page_object['$[]']("auto_start")['$is_any?']($$$('::','Array'),$$$($$$($$$('::','GxG'),'Database'),'DetachedArray'),$$$($$$($$$('::','GxG'),'Database'),'PersistedArray')))){if($truthy($rb_gt(page_object['$[]']("auto_start").$size(),0))){$send(page_object['$[]']("auto_start"),'each',[],($$231=function(the_requirement){var self=$$231.$$s==null?this:$$231.$$s;if(the_requirement==null){the_requirement=nil;};return self.$application_open($hash2(["name","restore"],{"name":the_requirement['$[]']("name"),"restore":true}));},$$231.$$s=self,$$231.$$arity=1,$$231))}};return true;},$Vdom_load_page$227.$$arity=-1);return(Opal.defs(self,'$navigate_to',$Vdom_navigate_to$232=function $$navigate_to(the_location){var $$233,$$234,self=this,request_path=nil,$ret_or_58=nil,$writer=nil,error_handler=nil;if(the_location==null){the_location="";};if($truthy($rb_gt($$$($$$('::','GxG'),'CONNECTION').$relative_url().$to_s().$size(),0))){request_path=the_location['$[]'](Opal.Range.$new($$$($$$('::','GxG'),'CONNECTION').$relative_url().$size(),-1,false))}else{request_path=the_location};if($truthy((function(){if($truthy(($ret_or_58=request_path['$==']("/")))){return $ret_or_58}else{return request_path['$==']("")};return nil;})())){request_path="/index"};if(request_path['$[]'](0)['$==']("/")){}else{request_path=$rb_plus("/",request_path)};$writer=["host_path",request_path];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy($$$($$($nesting,'GxG'),'PAGES')['$[]'](request_path))){return $$$($$$($$($nesting,'GxG'),'Gui'),'Vdom').$load_page($$$($$($nesting,'GxG'),'PAGES')['$[]'](request_path))}else{error_handler=$send($$($nesting,'Proc'),'new',[],($$233=function(error){var self=$$233.$$s==null?this:$$233.$$s;if(error==null){error=nil;};return self.$log_error(error.$inspect());},$$233.$$s=self,$$233.$$arity=1,$$233));return $send($$$($$$('::','GxG'),'CONNECTION'),'pull_object',[""+"/Public/www/content/pages"+(request_path),error_handler],($$234=function(response){var self=$$234.$$s==null?this:$$234.$$s;if(response==null){response=nil;};self.$puts(""+"Response (Page Load): "+(response.$inspect()));if($truthy(response['$is_any?']($$$('::','Array')))){$writer=[request_path,response['$[]'](0)];$send($$$($$($nesting,'GxG'),'PAGES'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$$$($$$($$($nesting,'GxG'),'Gui'),'Vdom').$load_page($$$($$($nesting,'GxG'),'PAGES')['$[]'](request_path));}else{self.$log_error($hash2(["error"],{"error":$$($nesting,'Exception').$new("Invalid page object as response.")}))};return $$$($$$('::','GxG'),'Gui').$layout_refresh();},$$234.$$s=self,$$234.$$arity=1,$$234));};},$Vdom_navigate_to$232.$$arity=-1),nil)&&'navigate_to';})($nesting[0],$nesting)})($nesting[0],$nesting)})($nesting[0],$nesting)};Opal.modules["web/gxg_foundation"]=function(Opal){function $rb_minus(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs-rhs:lhs['$-'](rhs);} function $rb_gt(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs>rhs:lhs['$>'](rhs);} function $rb_plus(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs+rhs:lhs['$+'](rhs);} -var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$,$module=Opal.module,$klass=Opal.klass,$send2=Opal.send2,$find_super=Opal.find_super,$send=Opal.send,$hash2=Opal.hash2,$truthy=Opal.truthy;Opal.add_stubs(['$to_s','$clone','$[]=','$-','$values','$children','$>','$size','$shift','$==','$domtype','$to_sym','$title','$value','$each','$<<','$delete','$[]','$on','$index','$keys','$component_class','$is_any?','$is_a?','$component_registered?','$!=','$log_warn','$inspect','$register_component_class','$include?','$new','$build_components','$page','$title=','$find_object_by','$set_text','$add_child','$+','$set_attribute','$uuid','$set_script','$find_descendant','$raise','$downcase','$value=']);(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);return(function($base,$parent_nesting){var self=$module($base,'Gui');var $nesting=[self].concat($parent_nesting),$Gui_component_class$126,$Gui_class_component$127,$Gui_component_registered$ques$128,$Gui_register_component_class$129;(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Page');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'Page'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Abbreviation');var $nesting=[self].concat($parent_nesting),$Abbreviation__before_create$1;self.$$prototype.title=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Abbreviation__before_create$1=function $$_before_create(){var $iter=$Abbreviation__before_create$1.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Abbreviation__before_create$1.$$p=null;$send2(self,$find_super(self,'_before_create',$Abbreviation__before_create$1,false,true),'_before_create',[],null);self.domtype="abbr";$writer=["title",self.title.$clone().$to_s()];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$Abbreviation__before_create$1.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Address');var $nesting=[self].concat($parent_nesting),$Address__before_create$2;return(Opal.def(self,'$_before_create',$Address__before_create$2=function $$_before_create(){var $iter=$Address__before_create$2.$$p,$yield=$iter||nil,self=this;if($iter)$Address__before_create$2.$$p=null;$send2(self,$find_super(self,'_before_create',$Address__before_create$2,false,true),'_before_create',[],null);return(self.domtype="address");},$Address__before_create$2.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Area');var $nesting=[self].concat($parent_nesting),$Area__before_create$3;return(Opal.def(self,'$_before_create',$Area__before_create$3=function $$_before_create(){var $iter=$Area__before_create$3.$$p,$yield=$iter||nil,self=this;if($iter)$Area__before_create$3.$$p=null;$send2(self,$find_super(self,'_before_create',$Area__before_create$3,false,true),'_before_create',[],null);return(self.domtype="area");},$Area__before_create$3.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Bold');var $nesting=[self].concat($parent_nesting),$Bold__before_create$4;return(Opal.def(self,'$_before_create',$Bold__before_create$4=function $$_before_create(){var $iter=$Bold__before_create$4.$$p,$yield=$iter||nil,self=this;if($iter)$Bold__before_create$4.$$p=null;$send2(self,$find_super(self,'_before_create',$Bold__before_create$4,false,true),'_before_create',[],null);return(self.domtype="b");},$Bold__before_create$4.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Bdi');var $nesting=[self].concat($parent_nesting),$Bdi__before_create$5;return(Opal.def(self,'$_before_create',$Bdi__before_create$5=function $$_before_create(){var $iter=$Bdi__before_create$5.$$p,$yield=$iter||nil,self=this;if($iter)$Bdi__before_create$5.$$p=null;$send2(self,$find_super(self,'_before_create',$Bdi__before_create$5,false,true),'_before_create',[],null);return(self.domtype="bdi");},$Bdi__before_create$5.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Bdo');var $nesting=[self].concat($parent_nesting),$Bdo__before_create$6;return(Opal.def(self,'$_before_create',$Bdo__before_create$6=function $$_before_create(){var $iter=$Bdo__before_create$6.$$p,$yield=$iter||nil,self=this;if($iter)$Bdo__before_create$6.$$p=null;$send2(self,$find_super(self,'_before_create',$Bdo__before_create$6,false,true),'_before_create',[],null);return(self.domtype="bdo");},$Bdo__before_create$6.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockQuote');var $nesting=[self].concat($parent_nesting),$BlockQuote__before_create$7;return(Opal.def(self,'$_before_create',$BlockQuote__before_create$7=function $$_before_create(){var $iter=$BlockQuote__before_create$7.$$p,$yield=$iter||nil,self=this;if($iter)$BlockQuote__before_create$7.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockQuote__before_create$7,false,true),'_before_create',[],null);return(self.domtype="blockquote");},$BlockQuote__before_create$7.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Break');var $nesting=[self].concat($parent_nesting),$Break__before_create$8;return(Opal.def(self,'$_before_create',$Break__before_create$8=function $$_before_create(){var $iter=$Break__before_create$8.$$p,$yield=$iter||nil,self=this;if($iter)$Break__before_create$8.$$p=null;$send2(self,$find_super(self,'_before_create',$Break__before_create$8,false,true),'_before_create',[],null);return(self.domtype="br");},$Break__before_create$8.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Caption');var $nesting=[self].concat($parent_nesting),$Caption__before_create$9;return(Opal.def(self,'$_before_create',$Caption__before_create$9=function $$_before_create(){var $iter=$Caption__before_create$9.$$p,$yield=$iter||nil,self=this;if($iter)$Caption__before_create$9.$$p=null;$send2(self,$find_super(self,'_before_create',$Caption__before_create$9,false,true),'_before_create',[],null);return(self.domtype="caption");},$Caption__before_create$9.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Cite');var $nesting=[self].concat($parent_nesting),$Cite__before_create$10;return(Opal.def(self,'$_before_create',$Cite__before_create$10=function $$_before_create(){var $iter=$Cite__before_create$10.$$p,$yield=$iter||nil,self=this;if($iter)$Cite__before_create$10.$$p=null;$send2(self,$find_super(self,'_before_create',$Cite__before_create$10,false,true),'_before_create',[],null);return(self.domtype="cite");},$Cite__before_create$10.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Code');var $nesting=[self].concat($parent_nesting),$Code__before_create$11;return(Opal.def(self,'$_before_create',$Code__before_create$11=function $$_before_create(){var $iter=$Code__before_create$11.$$p,$yield=$iter||nil,self=this;if($iter)$Code__before_create$11.$$p=null;$send2(self,$find_super(self,'_before_create',$Code__before_create$11,false,true),'_before_create',[],null);return(self.domtype="code");},$Code__before_create$11.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Column');var $nesting=[self].concat($parent_nesting),$Column__before_create$12;return(Opal.def(self,'$_before_create',$Column__before_create$12=function $$_before_create(){var $iter=$Column__before_create$12.$$p,$yield=$iter||nil,self=this;if($iter)$Column__before_create$12.$$p=null;$send2(self,$find_super(self,'_before_create',$Column__before_create$12,false,true),'_before_create',[],null);return(self.domtype="col");},$Column__before_create$12.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ColumnGroup');var $nesting=[self].concat($parent_nesting),$ColumnGroup__before_create$13;return(Opal.def(self,'$_before_create',$ColumnGroup__before_create$13=function $$_before_create(){var $iter=$ColumnGroup__before_create$13.$$p,$yield=$iter||nil,self=this;if($iter)$ColumnGroup__before_create$13.$$p=null;$send2(self,$find_super(self,'_before_create',$ColumnGroup__before_create$13,false,true),'_before_create',[],null);return(self.domtype="colgroup");},$ColumnGroup__before_create$13.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Data');var $nesting=[self].concat($parent_nesting),$Data__before_create$14;return(Opal.def(self,'$_before_create',$Data__before_create$14=function $$_before_create(){var $iter=$Data__before_create$14.$$p,$yield=$iter||nil,self=this;if($iter)$Data__before_create$14.$$p=null;$send2(self,$find_super(self,'_before_create',$Data__before_create$14,false,true),'_before_create',[],null);return(self.domtype="data");},$Data__before_create$14.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DataList');var $nesting=[self].concat($parent_nesting),$DataList__before_create$15;return(Opal.def(self,'$_before_create',$DataList__before_create$15=function $$_before_create(){var $iter=$DataList__before_create$15.$$p,$yield=$iter||nil,self=this;if($iter)$DataList__before_create$15.$$p=null;$send2(self,$find_super(self,'_before_create',$DataList__before_create$15,false,true),'_before_create',[],null);return(self.domtype="datalist");},$DataList__before_create$15.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Description');var $nesting=[self].concat($parent_nesting),$Description__before_create$16;return(Opal.def(self,'$_before_create',$Description__before_create$16=function $$_before_create(){var $iter=$Description__before_create$16.$$p,$yield=$iter||nil,self=this;if($iter)$Description__before_create$16.$$p=null;$send2(self,$find_super(self,'_before_create',$Description__before_create$16,false,true),'_before_create',[],null);return(self.domtype="dd");},$Description__before_create$16.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Deleted');var $nesting=[self].concat($parent_nesting),$Deleted__before_create$17;return(Opal.def(self,'$_before_create',$Deleted__before_create$17=function $$_before_create(){var $iter=$Deleted__before_create$17.$$p,$yield=$iter||nil,self=this;if($iter)$Deleted__before_create$17.$$p=null;$send2(self,$find_super(self,'_before_create',$Deleted__before_create$17,false,true),'_before_create',[],null);return(self.domtype="del");},$Deleted__before_create$17.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Details');var $nesting=[self].concat($parent_nesting),$Details__before_create$18;return(Opal.def(self,'$_before_create',$Details__before_create$18=function $$_before_create(){var $iter=$Details__before_create$18.$$p,$yield=$iter||nil,self=this;if($iter)$Details__before_create$18.$$p=null;$send2(self,$find_super(self,'_before_create',$Details__before_create$18,false,true),'_before_create',[],null);return(self.domtype="details");},$Details__before_create$18.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Dfn');var $nesting=[self].concat($parent_nesting),$Dfn__before_create$19;return(Opal.def(self,'$_before_create',$Dfn__before_create$19=function $$_before_create(){var $iter=$Dfn__before_create$19.$$p,$yield=$iter||nil,self=this;if($iter)$Dfn__before_create$19.$$p=null;$send2(self,$find_super(self,'_before_create',$Dfn__before_create$19,false,true),'_before_create',[],null);return(self.domtype="dfn");},$Dfn__before_create$19.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Dialog');var $nesting=[self].concat($parent_nesting),$Dialog__before_create$20;return(Opal.def(self,'$_before_create',$Dialog__before_create$20=function $$_before_create(){var $iter=$Dialog__before_create$20.$$p,$yield=$iter||nil,self=this;if($iter)$Dialog__before_create$20.$$p=null;$send2(self,$find_super(self,'_before_create',$Dialog__before_create$20,false,true),'_before_create',[],null);return(self.domtype="dialog");},$Dialog__before_create$20.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Division');var $nesting=[self].concat($parent_nesting),$Division__before_create$21;return(Opal.def(self,'$_before_create',$Division__before_create$21=function $$_before_create(){var $iter=$Division__before_create$21.$$p,$yield=$iter||nil,self=this;if($iter)$Division__before_create$21.$$p=null;$send2(self,$find_super(self,'_before_create',$Division__before_create$21,false,true),'_before_create',[],null);return(self.domtype="div");},$Division__before_create$21.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DescriptionList');var $nesting=[self].concat($parent_nesting),$DescriptionList__before_create$22;return(Opal.def(self,'$_before_create',$DescriptionList__before_create$22=function $$_before_create(){var $iter=$DescriptionList__before_create$22.$$p,$yield=$iter||nil,self=this;if($iter)$DescriptionList__before_create$22.$$p=null;$send2(self,$find_super(self,'_before_create',$DescriptionList__before_create$22,false,true),'_before_create',[],null);return(self.domtype="dl");},$DescriptionList__before_create$22.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DescriptionTerm');var $nesting=[self].concat($parent_nesting),$DescriptionTerm__before_create$23;return(Opal.def(self,'$_before_create',$DescriptionTerm__before_create$23=function $$_before_create(){var $iter=$DescriptionTerm__before_create$23.$$p,$yield=$iter||nil,self=this;if($iter)$DescriptionTerm__before_create$23.$$p=null;$send2(self,$find_super(self,'_before_create',$DescriptionTerm__before_create$23,false,true),'_before_create',[],null);return(self.domtype="dt");},$DescriptionTerm__before_create$23.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Emphasis');var $nesting=[self].concat($parent_nesting),$Emphasis__before_create$24;return(Opal.def(self,'$_before_create',$Emphasis__before_create$24=function $$_before_create(){var $iter=$Emphasis__before_create$24.$$p,$yield=$iter||nil,self=this;if($iter)$Emphasis__before_create$24.$$p=null;$send2(self,$find_super(self,'_before_create',$Emphasis__before_create$24,false,true),'_before_create',[],null);return(self.domtype="em");},$Emphasis__before_create$24.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Figure');var $nesting=[self].concat($parent_nesting),$Figure__before_create$25;return(Opal.def(self,'$_before_create',$Figure__before_create$25=function $$_before_create(){var $iter=$Figure__before_create$25.$$p,$yield=$iter||nil,self=this;if($iter)$Figure__before_create$25.$$p=null;$send2(self,$find_super(self,'_before_create',$Figure__before_create$25,false,true),'_before_create',[],null);return(self.domtype="figure");},$Figure__before_create$25.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FigureCaption');var $nesting=[self].concat($parent_nesting),$FigureCaption__before_create$26;return(Opal.def(self,'$_before_create',$FigureCaption__before_create$26=function $$_before_create(){var $iter=$FigureCaption__before_create$26.$$p,$yield=$iter||nil,self=this;if($iter)$FigureCaption__before_create$26.$$p=null;$send2(self,$find_super(self,'_before_create',$FigureCaption__before_create$26,false,true),'_before_create',[],null);return(self.domtype="figcaption");},$FigureCaption__before_create$26.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ThemeDivider');var $nesting=[self].concat($parent_nesting),$ThemeDivider__before_create$27;return(Opal.def(self,'$_before_create',$ThemeDivider__before_create$27=function $$_before_create(){var $iter=$ThemeDivider__before_create$27.$$p,$yield=$iter||nil,self=this;if($iter)$ThemeDivider__before_create$27.$$p=null;$send2(self,$find_super(self,'_before_create',$ThemeDivider__before_create$27,false,true),'_before_create',[],null);return(self.domtype="hr");},$ThemeDivider__before_create$27.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Italic');var $nesting=[self].concat($parent_nesting),$Italic__before_create$28;return(Opal.def(self,'$_before_create',$Italic__before_create$28=function $$_before_create(){var $iter=$Italic__before_create$28.$$p,$yield=$iter||nil,self=this;if($iter)$Italic__before_create$28.$$p=null;$send2(self,$find_super(self,'_before_create',$Italic__before_create$28,false,true),'_before_create',[],null);return(self.domtype="i");},$Italic__before_create$28.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'InlineFrame');var $nesting=[self].concat($parent_nesting),$InlineFrame__before_create$29;return(Opal.def(self,'$_before_create',$InlineFrame__before_create$29=function $$_before_create(){var $iter=$InlineFrame__before_create$29.$$p,$yield=$iter||nil,self=this;if($iter)$InlineFrame__before_create$29.$$p=null;$send2(self,$find_super(self,'_before_create',$InlineFrame__before_create$29,false,true),'_before_create',[],null);return(self.domtype="iframe");},$InlineFrame__before_create$29.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Insertion');var $nesting=[self].concat($parent_nesting),$Insertion__before_create$30;return(Opal.def(self,'$_before_create',$Insertion__before_create$30=function $$_before_create(){var $iter=$Insertion__before_create$30.$$p,$yield=$iter||nil,self=this;if($iter)$Insertion__before_create$30.$$p=null;$send2(self,$find_super(self,'_before_create',$Insertion__before_create$30,false,true),'_before_create',[],null);return(self.domtype="ins");},$Insertion__before_create$30.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'KeyboardKey');var $nesting=[self].concat($parent_nesting),$KeyboardKey__before_create$31;return(Opal.def(self,'$_before_create',$KeyboardKey__before_create$31=function $$_before_create(){var $iter=$KeyboardKey__before_create$31.$$p,$yield=$iter||nil,self=this;if($iter)$KeyboardKey__before_create$31.$$p=null;$send2(self,$find_super(self,'_before_create',$KeyboardKey__before_create$31,false,true),'_before_create',[],null);return(self.domtype="kbd");},$KeyboardKey__before_create$31.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Map');var $nesting=[self].concat($parent_nesting),$Map__before_create$32;return(Opal.def(self,'$_before_create',$Map__before_create$32=function $$_before_create(){var $iter=$Map__before_create$32.$$p,$yield=$iter||nil,self=this;if($iter)$Map__before_create$32.$$p=null;$send2(self,$find_super(self,'_before_create',$Map__before_create$32,false,true),'_before_create',[],null);return(self.domtype="map");},$Map__before_create$32.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Mark');var $nesting=[self].concat($parent_nesting),$Mark__before_create$33;return(Opal.def(self,'$_before_create',$Mark__before_create$33=function $$_before_create(){var $iter=$Mark__before_create$33.$$p,$yield=$iter||nil,self=this;if($iter)$Mark__before_create$33.$$p=null;$send2(self,$find_super(self,'_before_create',$Mark__before_create$33,false,true),'_before_create',[],null);return(self.domtype="mark");},$Mark__before_create$33.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Meter');var $nesting=[self].concat($parent_nesting),$Meter__before_create$34;return(Opal.def(self,'$_before_create',$Meter__before_create$34=function $$_before_create(){var $iter=$Meter__before_create$34.$$p,$yield=$iter||nil,self=this;if($iter)$Meter__before_create$34.$$p=null;$send2(self,$find_super(self,'_before_create',$Meter__before_create$34,false,true),'_before_create',[],null);return(self.domtype="meter");},$Meter__before_create$34.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'NoScript');var $nesting=[self].concat($parent_nesting),$NoScript__before_create$35;return(Opal.def(self,'$_before_create',$NoScript__before_create$35=function $$_before_create(){var $iter=$NoScript__before_create$35.$$p,$yield=$iter||nil,self=this;if($iter)$NoScript__before_create$35.$$p=null;$send2(self,$find_super(self,'_before_create',$NoScript__before_create$35,false,true),'_before_create',[],null);return(self.domtype="noscript");},$NoScript__before_create$35.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Object');var $nesting=[self].concat($parent_nesting),$Object__before_create$36;return(Opal.def(self,'$_before_create',$Object__before_create$36=function $$_before_create(){var $iter=$Object__before_create$36.$$p,$yield=$iter||nil,self=this;if($iter)$Object__before_create$36.$$p=null;$send2(self,$find_super(self,'_before_create',$Object__before_create$36,false,true),'_before_create',[],null);return(self.domtype="object");},$Object__before_create$36.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OptionGroup');var $nesting=[self].concat($parent_nesting),$OptionGroup__before_create$37;return(Opal.def(self,'$_before_create',$OptionGroup__before_create$37=function $$_before_create(){var $iter=$OptionGroup__before_create$37.$$p,$yield=$iter||nil,self=this;if($iter)$OptionGroup__before_create$37.$$p=null;$send2(self,$find_super(self,'_before_create',$OptionGroup__before_create$37,false,true),'_before_create',[],null);return(self.domtype="optgroup");},$OptionGroup__before_create$37.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Parameter');var $nesting=[self].concat($parent_nesting),$Parameter__before_create$38;return(Opal.def(self,'$_before_create',$Parameter__before_create$38=function $$_before_create(){var $iter=$Parameter__before_create$38.$$p,$yield=$iter||nil,self=this;if($iter)$Parameter__before_create$38.$$p=null;$send2(self,$find_super(self,'_before_create',$Parameter__before_create$38,false,true),'_before_create',[],null);return(self.domtype="param");},$Parameter__before_create$38.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Picture');var $nesting=[self].concat($parent_nesting),$Picture__before_create$39;return(Opal.def(self,'$_before_create',$Picture__before_create$39=function $$_before_create(){var $iter=$Picture__before_create$39.$$p,$yield=$iter||nil,self=this;if($iter)$Picture__before_create$39.$$p=null;$send2(self,$find_super(self,'_before_create',$Picture__before_create$39,false,true),'_before_create',[],null);return(self.domtype="picture");},$Picture__before_create$39.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Preformatted');var $nesting=[self].concat($parent_nesting),$Preformatted__before_create$40;return(Opal.def(self,'$_before_create',$Preformatted__before_create$40=function $$_before_create(){var $iter=$Preformatted__before_create$40.$$p,$yield=$iter||nil,self=this;if($iter)$Preformatted__before_create$40.$$p=null;$send2(self,$find_super(self,'_before_create',$Preformatted__before_create$40,false,true),'_before_create',[],null);return(self.domtype="pre");},$Preformatted__before_create$40.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Progress');var $nesting=[self].concat($parent_nesting),$Progress__before_create$41;return(Opal.def(self,'$_before_create',$Progress__before_create$41=function $$_before_create(){var $iter=$Progress__before_create$41.$$p,$yield=$iter||nil,self=this;if($iter)$Progress__before_create$41.$$p=null;$send2(self,$find_super(self,'_before_create',$Progress__before_create$41,false,true),'_before_create',[],null);return(self.domtype="progress");},$Progress__before_create$41.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Quotation');var $nesting=[self].concat($parent_nesting),$Quotation__before_create$42;return(Opal.def(self,'$_before_create',$Quotation__before_create$42=function $$_before_create(){var $iter=$Quotation__before_create$42.$$p,$yield=$iter||nil,self=this;if($iter)$Quotation__before_create$42.$$p=null;$send2(self,$find_super(self,'_before_create',$Quotation__before_create$42,false,true),'_before_create',[],null);return(self.domtype="q");},$Quotation__before_create$42.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'StrikeThrough');var $nesting=[self].concat($parent_nesting),$StrikeThrough__before_create$43;return(Opal.def(self,'$_before_create',$StrikeThrough__before_create$43=function $$_before_create(){var $iter=$StrikeThrough__before_create$43.$$p,$yield=$iter||nil,self=this;if($iter)$StrikeThrough__before_create$43.$$p=null;$send2(self,$find_super(self,'_before_create',$StrikeThrough__before_create$43,false,true),'_before_create',[],null);return(self.domtype="s");},$StrikeThrough__before_create$43.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Sample');var $nesting=[self].concat($parent_nesting),$Sample__before_create$44;return(Opal.def(self,'$_before_create',$Sample__before_create$44=function $$_before_create(){var $iter=$Sample__before_create$44.$$p,$yield=$iter||nil,self=this;if($iter)$Sample__before_create$44.$$p=null;$send2(self,$find_super(self,'_before_create',$Sample__before_create$44,false,true),'_before_create',[],null);return(self.domtype="samp");},$Sample__before_create$44.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Source');var $nesting=[self].concat($parent_nesting),$Source__before_create$45;return(Opal.def(self,'$_before_create',$Source__before_create$45=function $$_before_create(){var $iter=$Source__before_create$45.$$p,$yield=$iter||nil,self=this;if($iter)$Source__before_create$45.$$p=null;$send2(self,$find_super(self,'_before_create',$Source__before_create$45,false,true),'_before_create',[],null);return(self.domtype="source");},$Source__before_create$45.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Strong');var $nesting=[self].concat($parent_nesting),$Strong__before_create$46;return(Opal.def(self,'$_before_create',$Strong__before_create$46=function $$_before_create(){var $iter=$Strong__before_create$46.$$p,$yield=$iter||nil,self=this;if($iter)$Strong__before_create$46.$$p=null;$send2(self,$find_super(self,'_before_create',$Strong__before_create$46,false,true),'_before_create',[],null);return(self.domtype="strong");},$Strong__before_create$46.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Small');var $nesting=[self].concat($parent_nesting),$Small__before_create$47;return(Opal.def(self,'$_before_create',$Small__before_create$47=function $$_before_create(){var $iter=$Small__before_create$47.$$p,$yield=$iter||nil,self=this;if($iter)$Small__before_create$47.$$p=null;$send2(self,$find_super(self,'_before_create',$Small__before_create$47,false,true),'_before_create',[],null);return(self.domtype="small");},$Small__before_create$47.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Style');var $nesting=[self].concat($parent_nesting),$Style__before_create$48;return(Opal.def(self,'$_before_create',$Style__before_create$48=function $$_before_create(){var $iter=$Style__before_create$48.$$p,$yield=$iter||nil,self=this;if($iter)$Style__before_create$48.$$p=null;$send2(self,$find_super(self,'_before_create',$Style__before_create$48,false,true),'_before_create',[],null);return(self.domtype="style");},$Style__before_create$48.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SubScript');var $nesting=[self].concat($parent_nesting),$SubScript__before_create$49;return(Opal.def(self,'$_before_create',$SubScript__before_create$49=function $$_before_create(){var $iter=$SubScript__before_create$49.$$p,$yield=$iter||nil,self=this;if($iter)$SubScript__before_create$49.$$p=null;$send2(self,$find_super(self,'_before_create',$SubScript__before_create$49,false,true),'_before_create',[],null);return(self.domtype="sub");},$SubScript__before_create$49.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Summary');var $nesting=[self].concat($parent_nesting),$Summary__before_create$50;return(Opal.def(self,'$_before_create',$Summary__before_create$50=function $$_before_create(){var $iter=$Summary__before_create$50.$$p,$yield=$iter||nil,self=this;if($iter)$Summary__before_create$50.$$p=null;$send2(self,$find_super(self,'_before_create',$Summary__before_create$50,false,true),'_before_create',[],null);return(self.domtype="summary");},$Summary__before_create$50.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SuperScript');var $nesting=[self].concat($parent_nesting),$SuperScript__before_create$51;return(Opal.def(self,'$_before_create',$SuperScript__before_create$51=function $$_before_create(){var $iter=$SuperScript__before_create$51.$$p,$yield=$iter||nil,self=this;if($iter)$SuperScript__before_create$51.$$p=null;$send2(self,$find_super(self,'_before_create',$SuperScript__before_create$51,false,true),'_before_create',[],null);return(self.domtype="sup");},$SuperScript__before_create$51.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Svg');var $nesting=[self].concat($parent_nesting),$Svg__before_create$52;return(Opal.def(self,'$_before_create',$Svg__before_create$52=function $$_before_create(){var $iter=$Svg__before_create$52.$$p,$yield=$iter||nil,self=this;if($iter)$Svg__before_create$52.$$p=null;$send2(self,$find_super(self,'_before_create',$Svg__before_create$52,false,true),'_before_create',[],null);return(self.domtype="svg");},$Svg__before_create$52.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Template');var $nesting=[self].concat($parent_nesting),$Template__before_create$53;return(Opal.def(self,'$_before_create',$Template__before_create$53=function $$_before_create(){var $iter=$Template__before_create$53.$$p,$yield=$iter||nil,self=this;if($iter)$Template__before_create$53.$$p=null;$send2(self,$find_super(self,'_before_create',$Template__before_create$53,false,true),'_before_create',[],null);return(self.domtype="template");},$Template__before_create$53.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Time');var $nesting=[self].concat($parent_nesting),$Time__before_create$54;return(Opal.def(self,'$_before_create',$Time__before_create$54=function $$_before_create(){var $iter=$Time__before_create$54.$$p,$yield=$iter||nil,self=this;if($iter)$Time__before_create$54.$$p=null;$send2(self,$find_super(self,'_before_create',$Time__before_create$54,false,true),'_before_create',[],null);return(self.domtype="time");},$Time__before_create$54.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Track');var $nesting=[self].concat($parent_nesting),$Track__before_create$55;return(Opal.def(self,'$_before_create',$Track__before_create$55=function $$_before_create(){var $iter=$Track__before_create$55.$$p,$yield=$iter||nil,self=this;if($iter)$Track__before_create$55.$$p=null;$send2(self,$find_super(self,'_before_create',$Track__before_create$55,false,true),'_before_create',[],null);return(self.domtype="track");},$Track__before_create$55.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Misspelled');var $nesting=[self].concat($parent_nesting),$Misspelled__before_create$56;return(Opal.def(self,'$_before_create',$Misspelled__before_create$56=function $$_before_create(){var $iter=$Misspelled__before_create$56.$$p,$yield=$iter||nil,self=this;if($iter)$Misspelled__before_create$56.$$p=null;$send2(self,$find_super(self,'_before_create',$Misspelled__before_create$56,false,true),'_before_create',[],null);return(self.domtype="u");},$Misspelled__before_create$56.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Variable');var $nesting=[self].concat($parent_nesting),$Variable__before_create$57;return(Opal.def(self,'$_before_create',$Variable__before_create$57=function $$_before_create(){var $iter=$Variable__before_create$57.$$p,$yield=$iter||nil,self=this;if($iter)$Variable__before_create$57.$$p=null;$send2(self,$find_super(self,'_before_create',$Variable__before_create$57,false,true),'_before_create',[],null);return(self.domtype="var");},$Variable__before_create$57.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'WordBreak');var $nesting=[self].concat($parent_nesting),$WordBreak__before_create$58;return(Opal.def(self,'$_before_create',$WordBreak__before_create$58=function $$_before_create(){var $iter=$WordBreak__before_create$58.$$p,$yield=$iter||nil,self=this;if($iter)$WordBreak__before_create$58.$$p=null;$send2(self,$find_super(self,'_before_create',$WordBreak__before_create$58,false,true),'_before_create',[],null);return(self.domtype="wbr");},$WordBreak__before_create$58.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header');var $nesting=[self].concat($parent_nesting),$Header__before_create$59;return(Opal.def(self,'$_before_create',$Header__before_create$59=function $$_before_create(){var $iter=$Header__before_create$59.$$p,$yield=$iter||nil,self=this;if($iter)$Header__before_create$59.$$p=null;$send2(self,$find_super(self,'_before_create',$Header__before_create$59,false,true),'_before_create',[],null);return(self.domtype="header");},$Header__before_create$59.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Navigation');var $nesting=[self].concat($parent_nesting),$Navigation__before_create$60;return(Opal.def(self,'$_before_create',$Navigation__before_create$60=function $$_before_create(){var $iter=$Navigation__before_create$60.$$p,$yield=$iter||nil,self=this;if($iter)$Navigation__before_create$60.$$p=null;$send2(self,$find_super(self,'_before_create',$Navigation__before_create$60,false,true),'_before_create',[],null);return(self.domtype="nav");},$Navigation__before_create$60.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Main');var $nesting=[self].concat($parent_nesting),$Main__before_create$61;return(Opal.def(self,'$_before_create',$Main__before_create$61=function $$_before_create(){var $iter=$Main__before_create$61.$$p,$yield=$iter||nil,self=this;if($iter)$Main__before_create$61.$$p=null;$send2(self,$find_super(self,'_before_create',$Main__before_create$61,false,true),'_before_create',[],null);return(self.domtype="main");},$Main__before_create$61.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Section');var $nesting=[self].concat($parent_nesting),$Section__before_create$62;return(Opal.def(self,'$_before_create',$Section__before_create$62=function $$_before_create(){var $iter=$Section__before_create$62.$$p,$yield=$iter||nil,self=this;if($iter)$Section__before_create$62.$$p=null;$send2(self,$find_super(self,'_before_create',$Section__before_create$62,false,true),'_before_create',[],null);return(self.domtype="section");},$Section__before_create$62.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Article');var $nesting=[self].concat($parent_nesting),$Article__before_create$63;return(Opal.def(self,'$_before_create',$Article__before_create$63=function $$_before_create(){var $iter=$Article__before_create$63.$$p,$yield=$iter||nil,self=this;if($iter)$Article__before_create$63.$$p=null;$send2(self,$find_super(self,'_before_create',$Article__before_create$63,false,true),'_before_create',[],null);return(self.domtype="article");},$Article__before_create$63.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Aside');var $nesting=[self].concat($parent_nesting),$Aside__before_create$64;return(Opal.def(self,'$_before_create',$Aside__before_create$64=function $$_before_create(){var $iter=$Aside__before_create$64.$$p,$yield=$iter||nil,self=this;if($iter)$Aside__before_create$64.$$p=null;$send2(self,$find_super(self,'_before_create',$Aside__before_create$64,false,true),'_before_create',[],null);return(self.domtype="aside");},$Aside__before_create$64.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Footer');var $nesting=[self].concat($parent_nesting),$Footer__before_create$65;return(Opal.def(self,'$_before_create',$Footer__before_create$65=function $$_before_create(){var $iter=$Footer__before_create$65.$$p,$yield=$iter||nil,self=this;if($iter)$Footer__before_create$65.$$p=null;$send2(self,$find_super(self,'_before_create',$Footer__before_create$65,false,true),'_before_create',[],null);return(self.domtype="footer");},$Footer__before_create$65.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Form');var $nesting=[self].concat($parent_nesting),$Form__before_create$66,$Form_form_data$67;Opal.def(self,'$_before_create',$Form__before_create$66=function $$_before_create(){var $iter=$Form__before_create$66.$$p,$yield=$iter||nil,self=this;if($iter)$Form__before_create$66.$$p=null;$send2(self,$find_super(self,'_before_create',$Form__before_create$66,false,true),'_before_create',[],null);return(self.domtype="div");},$Form__before_create$66.$$arity=0);return(Opal.def(self,'$form_data',$Form_form_data$67=function $$form_data(){var $a,$$68,self=this,result=nil,search_queue=nil,entry=nil,$writer=nil;result=$hash2([],{});search_queue=self.$children().$values();while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry)){if(entry.$domtype()['$==']("input")){$writer=[entry.$title().$to_s().$to_sym(),entry.$value()];$send(result,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];}else{$send(entry.$children().$values(),'each',[],($$68=function(the_child){var self=$$68.$$s==null?this:$$68.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$68.$$s=self,$$68.$$arity=1,$$68))}};};return result;},$Form_form_data$67.$$arity=0),nil)&&'form_data';})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ButtonInput');var $nesting=[self].concat($parent_nesting),$ButtonInput__before_create$69;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ButtonInput__before_create$69=function $$_before_create(){var $iter=$ButtonInput__before_create$69.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ButtonInput__before_create$69.$$p=null;$send2(self,$find_super(self,'_before_create',$ButtonInput__before_create$69,false,true),'_before_create',[],null);$writer=["type","button"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$ButtonInput__before_create$69.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SubmitButton');var $nesting=[self].concat($parent_nesting),$SubmitButton__before_create$70;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$SubmitButton__before_create$70=function $$_before_create(){var $iter=$SubmitButton__before_create$70.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$SubmitButton__before_create$70.$$p=null;$send2(self,$find_super(self,'_before_create',$SubmitButton__before_create$70,false,true),'_before_create',[],null);$writer=["type","submit"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$SubmitButton__before_create$70.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Block');var $nesting=[self].concat($parent_nesting),$Block__before_create$71;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Block__before_create$71=function $$_before_create(){var $iter=$Block__before_create$71.$$p,$yield=$iter||nil,self=this;if($iter)$Block__before_create$71.$$p=null;$send2(self,$find_super(self,'_before_create',$Block__before_create$71,false,true),'_before_create',[],null);self.domtype="div";self.options.$delete("type");return true;},$Block__before_create$71.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'CheckBox');var $nesting=[self].concat($parent_nesting),$CheckBox__before_create$72;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$CheckBox__before_create$72=function $$_before_create(){var $iter=$CheckBox__before_create$72.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$CheckBox__before_create$72.$$p=null;$send2(self,$find_super(self,'_before_create',$CheckBox__before_create$72,false,true),'_before_create',[],null);$writer=["type","checkbox"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$CheckBox__before_create$72.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Image');var $nesting=[self].concat($parent_nesting),$Image__before_create$73;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Image__before_create$73=function $$_before_create(){var $iter=$Image__before_create$73.$$p,$yield=$iter||nil,self=this,$writer=nil,$ret_or_1=nil;if($iter)$Image__before_create$73.$$p=null;$send2(self,$find_super(self,'_before_create',$Image__before_create$73,false,true),'_before_create',[],null);self.domtype="image";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(($ret_or_1=self.options['$[]']("alt")))){return $ret_or_1}else{$writer=["alt",self.options['$[]']("src")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Image__before_create$73.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Video');var $nesting=[self].concat($parent_nesting),$Video__before_create$74;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Video__before_create$74=function $$_before_create(){var $iter=$Video__before_create$74.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Video__before_create$74.$$p=null;$send2(self,$find_super(self,'_before_create',$Video__before_create$74,false,true),'_before_create',[],null);self.domtype="video";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Video__before_create$74.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Audio');var $nesting=[self].concat($parent_nesting),$Audio__before_create$75;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Audio__before_create$75=function $$_before_create(){var $iter=$Audio__before_create$75.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Audio__before_create$75.$$p=null;$send2(self,$find_super(self,'_before_create',$Audio__before_create$75,false,true),'_before_create',[],null);self.domtype="audio";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Audio__before_create$75.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Canvas');var $nesting=[self].concat($parent_nesting),$Canvas__before_create$76;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Canvas__before_create$76=function $$_before_create(){var $iter=$Canvas__before_create$76.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Canvas__before_create$76.$$p=null;$send2(self,$find_super(self,'_before_create',$Canvas__before_create$76,false,true),'_before_create',[],null);self.domtype="canvas";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Canvas__before_create$76.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'HiddenInput');var $nesting=[self].concat($parent_nesting),$HiddenInput__before_create$77;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$HiddenInput__before_create$77=function $$_before_create(){var $iter=$HiddenInput__before_create$77.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$HiddenInput__before_create$77.$$p=null;$send2(self,$find_super(self,'_before_create',$HiddenInput__before_create$77,false,true),'_before_create',[],null);$writer=["type","hidden"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$HiddenInput__before_create$77.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FileInput');var $nesting=[self].concat($parent_nesting),$FileInput__before_create$78;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$FileInput__before_create$78=function $$_before_create(){var $iter=$FileInput__before_create$78.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FileInput__before_create$78.$$p=null;$send2(self,$find_super(self,'_before_create',$FileInput__before_create$78,false,true),'_before_create',[],null);$writer=["type","file"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$FileInput__before_create$78.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TextInput');var $nesting=[self].concat($parent_nesting),$TextInput__before_create$79;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$TextInput__before_create$79=function $$_before_create(){var $iter=$TextInput__before_create$79.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TextInput__before_create$79.$$p=null;$send2(self,$find_super(self,'_before_create',$TextInput__before_create$79,false,true),'_before_create',[],null);$writer=["type","text"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$TextInput__before_create$79.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'PasswordInput');var $nesting=[self].concat($parent_nesting),$PasswordInput__before_create$80;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$PasswordInput__before_create$80=function $$_before_create(){var $iter=$PasswordInput__before_create$80.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$PasswordInput__before_create$80.$$p=null;$send2(self,$find_super(self,'_before_create',$PasswordInput__before_create$80,false,true),'_before_create',[],null);$writer=["type","password"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$PasswordInput__before_create$80.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ResetInput');var $nesting=[self].concat($parent_nesting),$ResetInput__before_create$81;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ResetInput__before_create$81=function $$_before_create(){var $iter=$ResetInput__before_create$81.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ResetInput__before_create$81.$$p=null;$send2(self,$find_super(self,'_before_create',$ResetInput__before_create$81,false,true),'_before_create',[],null);$writer=["type","reset"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$ResetInput__before_create$81.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'RadioButton');var $nesting=[self].concat($parent_nesting),$RadioButton__before_create$82;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$RadioButton__before_create$82=function $$_before_create(){var $iter=$RadioButton__before_create$82.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$RadioButton__before_create$82.$$p=null;$send2(self,$find_super(self,'_before_create',$RadioButton__before_create$82,false,true),'_before_create',[],null);$writer=["type","radio"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$RadioButton__before_create$82.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ColorPicker');var $nesting=[self].concat($parent_nesting),$ColorPicker__before_create$83;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ColorPicker__before_create$83=function $$_before_create(){var $iter=$ColorPicker__before_create$83.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ColorPicker__before_create$83.$$p=null;$send2(self,$find_super(self,'_before_create',$ColorPicker__before_create$83,false,true),'_before_create',[],null);$writer=["type","color"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$ColorPicker__before_create$83.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DatePicker');var $nesting=[self].concat($parent_nesting),$DatePicker__before_create$84;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$DatePicker__before_create$84=function $$_before_create(){var $iter=$DatePicker__before_create$84.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DatePicker__before_create$84.$$p=null;$send2(self,$find_super(self,'_before_create',$DatePicker__before_create$84,false,true),'_before_create',[],null);$writer=["type","date"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$DatePicker__before_create$84.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DateTimeLocal');var $nesting=[self].concat($parent_nesting),$DateTimeLocal__before_create$85;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$DateTimeLocal__before_create$85=function $$_before_create(){var $iter=$DateTimeLocal__before_create$85.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DateTimeLocal__before_create$85.$$p=null;$send2(self,$find_super(self,'_before_create',$DateTimeLocal__before_create$85,false,true),'_before_create',[],null);$writer=["type","datetime-local"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$DateTimeLocal__before_create$85.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'EmailInput');var $nesting=[self].concat($parent_nesting),$EmailInput__before_create$86;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$EmailInput__before_create$86=function $$_before_create(){var $iter=$EmailInput__before_create$86.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$EmailInput__before_create$86.$$p=null;$send2(self,$find_super(self,'_before_create',$EmailInput__before_create$86,false,true),'_before_create',[],null);$writer=["type","email"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$EmailInput__before_create$86.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MonthPicker');var $nesting=[self].concat($parent_nesting),$MonthPicker__before_create$87;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$MonthPicker__before_create$87=function $$_before_create(){var $iter=$MonthPicker__before_create$87.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$MonthPicker__before_create$87.$$p=null;$send2(self,$find_super(self,'_before_create',$MonthPicker__before_create$87,false,true),'_before_create',[],null);$writer=["type","month"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$MonthPicker__before_create$87.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'NumberInput');var $nesting=[self].concat($parent_nesting),$NumberInput__before_create$88;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$NumberInput__before_create$88=function $$_before_create(){var $iter=$NumberInput__before_create$88.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$NumberInput__before_create$88.$$p=null;$send2(self,$find_super(self,'_before_create',$NumberInput__before_create$88,false,true),'_before_create',[],null);$writer=["type","number"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$NumberInput__before_create$88.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'RangeInput');var $nesting=[self].concat($parent_nesting),$RangeInput__before_create$89;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$RangeInput__before_create$89=function $$_before_create(){var $iter=$RangeInput__before_create$89.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$RangeInput__before_create$89.$$p=null;$send2(self,$find_super(self,'_before_create',$RangeInput__before_create$89,false,true),'_before_create',[],null);$writer=["type","range"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$RangeInput__before_create$89.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SearchInput');var $nesting=[self].concat($parent_nesting),$SearchInput__before_create$90;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$SearchInput__before_create$90=function $$_before_create(){var $iter=$SearchInput__before_create$90.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$SearchInput__before_create$90.$$p=null;$send2(self,$find_super(self,'_before_create',$SearchInput__before_create$90,false,true),'_before_create',[],null);$writer=["type","search"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$SearchInput__before_create$90.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'PhoneInput');var $nesting=[self].concat($parent_nesting),$PhoneInput__before_create$91;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$PhoneInput__before_create$91=function $$_before_create(){var $iter=$PhoneInput__before_create$91.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$PhoneInput__before_create$91.$$p=null;$send2(self,$find_super(self,'_before_create',$PhoneInput__before_create$91,false,true),'_before_create',[],null);$writer=["type","tel"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$PhoneInput__before_create$91.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TimePicker');var $nesting=[self].concat($parent_nesting),$TimePicker__before_create$92;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$TimePicker__before_create$92=function $$_before_create(){var $iter=$TimePicker__before_create$92.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TimePicker__before_create$92.$$p=null;$send2(self,$find_super(self,'_before_create',$TimePicker__before_create$92,false,true),'_before_create',[],null);$writer=["type","time"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$TimePicker__before_create$92.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'UrlInput');var $nesting=[self].concat($parent_nesting),$UrlInput__before_create$93;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$UrlInput__before_create$93=function $$_before_create(){var $iter=$UrlInput__before_create$93.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$UrlInput__before_create$93.$$p=null;$send2(self,$find_super(self,'_before_create',$UrlInput__before_create$93,false,true),'_before_create',[],null);$writer=["type","url"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$UrlInput__before_create$93.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'WeekPicker');var $nesting=[self].concat($parent_nesting),$WeekPicker__before_create$94;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$WeekPicker__before_create$94=function $$_before_create(){var $iter=$WeekPicker__before_create$94.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$WeekPicker__before_create$94.$$p=null;$send2(self,$find_super(self,'_before_create',$WeekPicker__before_create$94,false,true),'_before_create',[],null);$writer=["type","week"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$WeekPicker__before_create$94.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Label');var $nesting=[self].concat($parent_nesting),$Label__before_create$95;return(Opal.def(self,'$_before_create',$Label__before_create$95=function $$_before_create(){var $iter=$Label__before_create$95.$$p,$yield=$iter||nil,self=this;if($iter)$Label__before_create$95.$$p=null;$send2(self,$find_super(self,'_before_create',$Label__before_create$95,false,true),'_before_create',[],null);return(self.domtype="label");},$Label__before_create$95.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TextArea');var $nesting=[self].concat($parent_nesting),$TextArea__before_create$96;return(Opal.def(self,'$_before_create',$TextArea__before_create$96=function $$_before_create(){var $iter=$TextArea__before_create$96.$$p,$yield=$iter||nil,self=this;if($iter)$TextArea__before_create$96.$$p=null;$send2(self,$find_super(self,'_before_create',$TextArea__before_create$96,false,true),'_before_create',[],null);return(self.domtype="textarea");},$TextArea__before_create$96.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Output');var $nesting=[self].concat($parent_nesting),$Output__before_create$97;return(Opal.def(self,'$_before_create',$Output__before_create$97=function $$_before_create(){var $iter=$Output__before_create$97.$$p,$yield=$iter||nil,self=this;if($iter)$Output__before_create$97.$$p=null;$send2(self,$find_super(self,'_before_create',$Output__before_create$97,false,true),'_before_create',[],null);return(self.domtype="output");},$Output__before_create$97.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Paragraph');var $nesting=[self].concat($parent_nesting),$Paragraph__before_create$98;return(Opal.def(self,'$_before_create',$Paragraph__before_create$98=function $$_before_create(){var $iter=$Paragraph__before_create$98.$$p,$yield=$iter||nil,self=this;if($iter)$Paragraph__before_create$98.$$p=null;$send2(self,$find_super(self,'_before_create',$Paragraph__before_create$98,false,true),'_before_create',[],null);return(self.domtype="p");},$Paragraph__before_create$98.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header1');var $nesting=[self].concat($parent_nesting),$Header1__before_create$99;return(Opal.def(self,'$_before_create',$Header1__before_create$99=function $$_before_create(){var $iter=$Header1__before_create$99.$$p,$yield=$iter||nil,self=this;if($iter)$Header1__before_create$99.$$p=null;$send2(self,$find_super(self,'_before_create',$Header1__before_create$99,false,true),'_before_create',[],null);return(self.domtype="h1");},$Header1__before_create$99.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header2');var $nesting=[self].concat($parent_nesting),$Header2__before_create$100;return(Opal.def(self,'$_before_create',$Header2__before_create$100=function $$_before_create(){var $iter=$Header2__before_create$100.$$p,$yield=$iter||nil,self=this;if($iter)$Header2__before_create$100.$$p=null;$send2(self,$find_super(self,'_before_create',$Header2__before_create$100,false,true),'_before_create',[],null);return(self.domtype="h2");},$Header2__before_create$100.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header3');var $nesting=[self].concat($parent_nesting),$Header3__before_create$101;return(Opal.def(self,'$_before_create',$Header3__before_create$101=function $$_before_create(){var $iter=$Header3__before_create$101.$$p,$yield=$iter||nil,self=this;if($iter)$Header3__before_create$101.$$p=null;$send2(self,$find_super(self,'_before_create',$Header3__before_create$101,false,true),'_before_create',[],null);return(self.domtype="h3");},$Header3__before_create$101.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header4');var $nesting=[self].concat($parent_nesting),$Header4__before_create$102;return(Opal.def(self,'$_before_create',$Header4__before_create$102=function $$_before_create(){var $iter=$Header4__before_create$102.$$p,$yield=$iter||nil,self=this;if($iter)$Header4__before_create$102.$$p=null;$send2(self,$find_super(self,'_before_create',$Header4__before_create$102,false,true),'_before_create',[],null);return(self.domtype="h4");},$Header4__before_create$102.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header5');var $nesting=[self].concat($parent_nesting),$Header5__before_create$103;return(Opal.def(self,'$_before_create',$Header5__before_create$103=function $$_before_create(){var $iter=$Header5__before_create$103.$$p,$yield=$iter||nil,self=this;if($iter)$Header5__before_create$103.$$p=null;$send2(self,$find_super(self,'_before_create',$Header5__before_create$103,false,true),'_before_create',[],null);return(self.domtype="h5");},$Header5__before_create$103.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header6');var $nesting=[self].concat($parent_nesting),$Header6__before_create$104;return(Opal.def(self,'$_before_create',$Header6__before_create$104=function $$_before_create(){var $iter=$Header6__before_create$104.$$p,$yield=$iter||nil,self=this;if($iter)$Header6__before_create$104.$$p=null;$send2(self,$find_super(self,'_before_create',$Header6__before_create$104,false,true),'_before_create',[],null);return(self.domtype="h6");},$Header6__before_create$104.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'List');var $nesting=[self].concat($parent_nesting),$List__before_create$105;return(Opal.def(self,'$_before_create',$List__before_create$105=function $$_before_create(){var $iter=$List__before_create$105.$$p,$yield=$iter||nil,self=this;if($iter)$List__before_create$105.$$p=null;$send2(self,$find_super(self,'_before_create',$List__before_create$105,false,true),'_before_create',[],null);return(self.domtype="ul");},$List__before_create$105.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrderedList');var $nesting=[self].concat($parent_nesting),$OrderedList__before_create$106;return(Opal.def(self,'$_before_create',$OrderedList__before_create$106=function $$_before_create(){var $iter=$OrderedList__before_create$106.$$p,$yield=$iter||nil,self=this;if($iter)$OrderedList__before_create$106.$$p=null;$send2(self,$find_super(self,'_before_create',$OrderedList__before_create$106,false,true),'_before_create',[],null);return(self.domtype="ol");},$OrderedList__before_create$106.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ListItem');var $nesting=[self].concat($parent_nesting),$ListItem__before_create$107;return(Opal.def(self,'$_before_create',$ListItem__before_create$107=function $$_before_create(){var $iter=$ListItem__before_create$107.$$p,$yield=$iter||nil,self=this;if($iter)$ListItem__before_create$107.$$p=null;$send2(self,$find_super(self,'_before_create',$ListItem__before_create$107,false,true),'_before_create',[],null);return(self.domtype="li");},$ListItem__before_create$107.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Anchor');var $nesting=[self].concat($parent_nesting),$Anchor__before_create$108;return(Opal.def(self,'$_before_create',$Anchor__before_create$108=function $$_before_create(){var $iter=$Anchor__before_create$108.$$p,$yield=$iter||nil,self=this;if($iter)$Anchor__before_create$108.$$p=null;$send2(self,$find_super(self,'_before_create',$Anchor__before_create$108,false,true),'_before_create',[],null);return(self.domtype="a");},$Anchor__before_create$108.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ExternalLink');var $nesting=[self].concat($parent_nesting),$ExternalLink__before_create$109;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ExternalLink__before_create$109=function $$_before_create(){var $iter=$ExternalLink__before_create$109.$$p,$yield=$iter||nil,self=this,$ret_or_2=nil,$writer=nil;if($iter)$ExternalLink__before_create$109.$$p=null;$send2(self,$find_super(self,'_before_create',$ExternalLink__before_create$109,false,true),'_before_create',[],null);if($truthy(($ret_or_2=self.options['$[]']("target")))){$ret_or_2}else{$writer=["target","_blank"];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};return(self.domtype="a");},$ExternalLink__before_create$109.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Button');var $nesting=[self].concat($parent_nesting),$Button__before_create$110,$Button__after_create$111;self.$$prototype.options=self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Button__before_create$110=function $$_before_create(){var $iter=$Button__before_create$110.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Button__before_create$110.$$p=null;$send2(self,$find_super(self,'_before_create',$Button__before_create$110,false,true),'_before_create',[],null);self.domtype="button";if(self.options['$[]']("type")['$==']("button")){}else{$writer=["type","button"];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("button")['$=='](true)){return nil}else{$writer=["button",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Button__before_create$110.$$arity=0);return(Opal.def(self,'$_after_create',$Button__after_create$111=function $$_after_create(){var $$112,$iter=$Button__after_create$111.$$p,$yield=$iter||nil,self=this;if($iter)$Button__after_create$111.$$p=null;$send2(self,$find_super(self,'_after_create',$Button__after_create$111,false,true),'_after_create',[],null);return $send(self,'on',["click"],($$112=function(the_event){var self=$$112.$$s==null?this:$$112.$$s;if(the_event==null){the_event=nil;};return document.activeElement.blur();;},$$112.$$s=self,$$112.$$arity=1,$$112));},$Button__after_create$111.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Table');var $nesting=[self].concat($parent_nesting),$Table__before_create$113;return(Opal.def(self,'$_before_create',$Table__before_create$113=function $$_before_create(){var $iter=$Table__before_create$113.$$p,$yield=$iter||nil,self=this;if($iter)$Table__before_create$113.$$p=null;$send2(self,$find_super(self,'_before_create',$Table__before_create$113,false,true),'_before_create',[],null);return(self.domtype="table");},$Table__before_create$113.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TableHeader');var $nesting=[self].concat($parent_nesting),$TableHeader__before_create$114;return(Opal.def(self,'$_before_create',$TableHeader__before_create$114=function $$_before_create(){var $iter=$TableHeader__before_create$114.$$p,$yield=$iter||nil,self=this;if($iter)$TableHeader__before_create$114.$$p=null;$send2(self,$find_super(self,'_before_create',$TableHeader__before_create$114,false,true),'_before_create',[],null);return(self.domtype="th");},$TableHeader__before_create$114.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TableRow');var $nesting=[self].concat($parent_nesting),$TableRow__before_create$115;return(Opal.def(self,'$_before_create',$TableRow__before_create$115=function $$_before_create(){var $iter=$TableRow__before_create$115.$$p,$yield=$iter||nil,self=this;if($iter)$TableRow__before_create$115.$$p=null;$send2(self,$find_super(self,'_before_create',$TableRow__before_create$115,false,true),'_before_create',[],null);return(self.domtype="tr");},$TableRow__before_create$115.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TableCell');var $nesting=[self].concat($parent_nesting),$TableCell__before_create$116;return(Opal.def(self,'$_before_create',$TableCell__before_create$116=function $$_before_create(){var $iter=$TableCell__before_create$116.$$p,$yield=$iter||nil,self=this;if($iter)$TableCell__before_create$116.$$p=null;$send2(self,$find_super(self,'_before_create',$TableCell__before_create$116,false,true),'_before_create',[],null);return(self.domtype="td");},$TableCell__before_create$116.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTable');var $nesting=[self].concat($parent_nesting),$BlockTable__before_create$117;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTable__before_create$117=function $$_before_create(){var $iter=$BlockTable__before_create$117.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTable__before_create$117.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTable__before_create$117,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("table")['$=='](true)){return nil}else{$writer=["table",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTable__before_create$117.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTableHeader');var $nesting=[self].concat($parent_nesting),$BlockTableHeader__before_create$118;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTableHeader__before_create$118=function $$_before_create(){var $iter=$BlockTableHeader__before_create$118.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTableHeader__before_create$118.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTableHeader__before_create$118,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("th")['$=='](true)){return nil}else{$writer=["th",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTableHeader__before_create$118.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTableRow');var $nesting=[self].concat($parent_nesting),$BlockTableRow__before_create$119;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTableRow__before_create$119=function $$_before_create(){var $iter=$BlockTableRow__before_create$119.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTableRow__before_create$119.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTableRow__before_create$119,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("tr")['$=='](true)){return nil}else{$writer=["tr",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTableRow__before_create$119.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTableCell');var $nesting=[self].concat($parent_nesting),$BlockTableCell__before_create$120;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTableCell__before_create$120=function $$_before_create(){var $iter=$BlockTableCell__before_create$120.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTableCell__before_create$120.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTableCell__before_create$120,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("td")['$=='](true)){return nil}else{$writer=["td",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTableCell__before_create$120.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Span');var $nesting=[self].concat($parent_nesting),$Span__before_create$121;return(Opal.def(self,'$_before_create',$Span__before_create$121=function $$_before_create(){var $iter=$Span__before_create$121.$$p,$yield=$iter||nil,self=this;if($iter)$Span__before_create$121.$$p=null;$send2(self,$find_super(self,'_before_create',$Span__before_create$121,false,true),'_before_create',[],null);return(self.domtype="span");},$Span__before_create$121.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Select');var $nesting=[self].concat($parent_nesting),$Select__before_create$122;return(Opal.def(self,'$_before_create',$Select__before_create$122=function $$_before_create(){var $iter=$Select__before_create$122.$$p,$yield=$iter||nil,self=this;if($iter)$Select__before_create$122.$$p=null;$send2(self,$find_super(self,'_before_create',$Select__before_create$122,false,true),'_before_create',[],null);return(self.domtype="select");},$Select__before_create$122.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Option');var $nesting=[self].concat($parent_nesting),$Option__before_create$123;return(Opal.def(self,'$_before_create',$Option__before_create$123=function $$_before_create(){var $iter=$Option__before_create$123.$$p,$yield=$iter||nil,self=this;if($iter)$Option__before_create$123.$$p=null;$send2(self,$find_super(self,'_before_create',$Option__before_create$123,false,true),'_before_create',[],null);return(self.domtype="option");},$Option__before_create$123.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FieldSet');var $nesting=[self].concat($parent_nesting),$FieldSet__before_create$124;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$FieldSet__before_create$124=function $$_before_create(){var $iter=$FieldSet__before_create$124.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FieldSet__before_create$124.$$p=null;$send2(self,$find_super(self,'_before_create',$FieldSet__before_create$124,false,true),'_before_create',[],null);self.domtype="fieldset";if(self.states['$[]']("fieldset")['$=='](true)){return nil}else{$writer=["fieldset",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$FieldSet__before_create$124.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Legend');var $nesting=[self].concat($parent_nesting),$Legend__before_create$125;return(Opal.def(self,'$_before_create',$Legend__before_create$125=function $$_before_create(){var $iter=$Legend__before_create$125.$$p,$yield=$iter||nil,self=this;if($iter)$Legend__before_create$125.$$p=null;$send2(self,$find_super(self,'_before_create',$Legend__before_create$125,false,true),'_before_create',[],null);return(self.domtype="legend");},$Legend__before_create$125.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);Opal.const_set($nesting[0],'COMPONENT_CLASSES',$hash2(["org.gxg.gui.page","org.gxg.gui.abbreviation","org.gxg.gui.address","org.gxg.gui.area","org.gxg.gui.bold","org.gxg.gui.bdi","org.gxg.gui.bdo","org.gxg.gui.blockquote","org.gxg.gui.break","org.gxg.gui.caption","org.gxg.gui.cite","org.gxg.gui.code","org.gxg.gui.column","org.gxg.gui.column.group","org.gxg.gui.data","org.gxg.gui.data.list","org.gxg.gui.description","org.gxg.gui.deleted","org.gxg.gui.details","org.gxg.gui.dfn","org.gxg.gui.dialog","org.gxg.gui.division","org.gxg.gui.description.list","org.gxg.gui.description.item","org.gxg.gui.emphasis","org.gxg.gui.figure","org.gxg.gui.figure.caption","org.gxg.gui.theme.divider","org.gxg.gui.italic","org.gxg.gui.frame.inline","org.gxg.gui.insertion","org.gxg.gui.keyboard.key","org.gxg.gui.map","org.gxg.gui.mark","org.gxg.gui.meter","org.gxg.gui.noscript","org.gxg.gui.object","org.gxg.gui.option.group","org.gxg.gui.parameter","org.gxg.gui.picture","org.gxg.gui.preformatted","org.gxg.gui.progress","org.gxg.gui.quotation","org.gxg.gui.strike.through","org.gxg.gui.sample","org.gxg.gui.section","org.gxg.gui.small","org.gxg.gui.source","org.gxg.gui.strong","org.gxg.gui.style","org.gxg.gui.sub.script","org.gxg.gui.summary","org.gxg.gui.super.script","org.gxg.gui.svg","org.gxg.gui.template","org.gxg.gui.text.area","org.gxg.gui.time","org.gxg.gui.track","org.gxg.gui.misspelled","org.gxg.gui.variable","org.gxg.gui.word.break","org.gxg.gui.header","org.gxg.gui.navigator","org.gxg.gui.main","org.gxg.gui.article","org.gxg.gui.aside","org.gxg.gui.footer","org.gxg.gui.form","org.gxg.gui.input.button","org.gxg.gui.input.button.submit","org.gxg.gui.block","org.gxg.gui.button.checkbox","org.gxg.gui.image","org.gxg.gui.video","org.gxg.gui.audio","org.gxg.gui.canvas","org.gxg.gui.input.hidden","org.gxg.gui.input.file","org.gxg.gui.input.text","org.gxg.gui.input.password","org.gxg.gui.input.reset","org.gxg.gui.button.radio","org.gxg.gui.picker.color","org.gxg.gui.picker.date","org.gxg.gui.input.datetime.local","org.gxg.gui.input.email","org.gxg.gui.picker.month","org.gxg.gui.picker.number","org.gxg.gui.input.range","org.gxg.gui.input.search","org.gxg.gui.input.phone","org.gxg.gui.picker.time","org.gxg.gui.input.url","org.gxg.gui.picker.week","org.gxg.gui.label","org.gxg.gui.output","org.gxg.gui.paragraph","org.gxg.gui.header.one","org.gxg.gui.header.two","org.gxg.gui.header.three","org.gxg.gui.header.four","org.gxg.gui.header.five","org.gxg.gui.header.six","org.gxg.gui.list","org.gxg.gui.list.ordered","org.gxg.gui.list.item","org.gxg.gui.link.anchor","org.gxg.gui.link.external","org.gxg.gui.button","org.gxg.gui.table","org.gxg.gui.table.header","org.gxg.gui.table.row","org.gxg.gui.table.cell","org.gxg.gui.block.table","org.gxg.gui.block.table.header","org.gxg.gui.block.table.row","org.gxg.gui.block.table.cell","org.gxg.gui.span","org.gxg.gui.select","org.gxg.gui.option","org.gxg.gui.field.set","org.gxg.gui.legend"],{"org.gxg.gui.page":$$$($$$($$$('::','GxG'),'Gui'),'Page'),"org.gxg.gui.abbreviation":$$$($$$($$$('::','GxG'),'Gui'),'Abbreviation'),"org.gxg.gui.address":$$$($$$($$$('::','GxG'),'Gui'),'Address'),"org.gxg.gui.area":$$$($$$($$$('::','GxG'),'Gui'),'Area'),"org.gxg.gui.bold":$$$($$$($$$('::','GxG'),'Gui'),'Bold'),"org.gxg.gui.bdi":$$$($$$($$$('::','GxG'),'Gui'),'Bdi'),"org.gxg.gui.bdo":$$$($$$($$$('::','GxG'),'Gui'),'Bdo'),"org.gxg.gui.blockquote":$$$($$$($$$('::','GxG'),'Gui'),'BlockQuote'),"org.gxg.gui.break":$$$($$$($$$('::','GxG'),'Gui'),'Break'),"org.gxg.gui.caption":$$$($$$($$$('::','GxG'),'Gui'),'Caption'),"org.gxg.gui.cite":$$$($$$($$$('::','GxG'),'Gui'),'Cite'),"org.gxg.gui.code":$$$($$$($$$('::','GxG'),'Gui'),'Code'),"org.gxg.gui.column":$$$($$$($$$('::','GxG'),'Gui'),'Column'),"org.gxg.gui.column.group":$$$($$$($$$('::','GxG'),'Gui'),'ColumnGroup'),"org.gxg.gui.data":$$$($$$($$$('::','GxG'),'Gui'),'Data'),"org.gxg.gui.data.list":$$$($$$($$$('::','GxG'),'Gui'),'DataList'),"org.gxg.gui.description":$$$($$$($$$('::','GxG'),'Gui'),'Description'),"org.gxg.gui.deleted":$$$($$$($$$('::','GxG'),'Gui'),'Deleted'),"org.gxg.gui.details":$$$($$$($$$('::','GxG'),'Gui'),'Details'),"org.gxg.gui.dfn":$$$($$$($$$('::','GxG'),'Gui'),'Dfn'),"org.gxg.gui.dialog":$$$($$$($$$('::','GxG'),'Gui'),'Dialog'),"org.gxg.gui.division":$$$($$$($$$('::','GxG'),'Gui'),'Division'),"org.gxg.gui.description.list":$$$($$$($$$('::','GxG'),'Gui'),'DescriptionList'),"org.gxg.gui.description.item":$$$($$$($$$('::','GxG'),'Gui'),'DescriptionTerm'),"org.gxg.gui.emphasis":$$$($$$($$$('::','GxG'),'Gui'),'Emphasis'),"org.gxg.gui.figure":$$$($$$($$$('::','GxG'),'Gui'),'Figure'),"org.gxg.gui.figure.caption":$$$($$$($$$('::','GxG'),'Gui'),'FigureCaption'),"org.gxg.gui.theme.divider":$$$($$$($$$('::','GxG'),'Gui'),'ThemeDivider'),"org.gxg.gui.italic":$$$($$$($$$('::','GxG'),'Gui'),'Italic'),"org.gxg.gui.frame.inline":$$$($$$($$$('::','GxG'),'Gui'),'InlineFrame'),"org.gxg.gui.insertion":$$$($$$($$$('::','GxG'),'Gui'),'Insertion'),"org.gxg.gui.keyboard.key":$$$($$$($$$('::','GxG'),'Gui'),'KeyboardKey'),"org.gxg.gui.map":$$$($$$($$$('::','GxG'),'Gui'),'Map'),"org.gxg.gui.mark":$$$($$$($$$('::','GxG'),'Gui'),'Mark'),"org.gxg.gui.meter":$$$($$$($$$('::','GxG'),'Gui'),'Meter'),"org.gxg.gui.noscript":$$$($$$($$$('::','GxG'),'Gui'),'NoScript'),"org.gxg.gui.object":$$$($$$($$$('::','GxG'),'Gui'),'Object'),"org.gxg.gui.option.group":$$$($$$($$$('::','GxG'),'Gui'),'OptionGroup'),"org.gxg.gui.parameter":$$$($$$($$$('::','GxG'),'Gui'),'Parameter'),"org.gxg.gui.picture":$$$($$$($$$('::','GxG'),'Gui'),'Picture'),"org.gxg.gui.preformatted":$$$($$$($$$('::','GxG'),'Gui'),'Preformatted'),"org.gxg.gui.progress":$$$($$$($$$('::','GxG'),'Gui'),'Progress'),"org.gxg.gui.quotation":$$$($$$($$$('::','GxG'),'Gui'),'Quotation'),"org.gxg.gui.strike.through":$$$($$$($$$('::','GxG'),'Gui'),'StrikeThrough'),"org.gxg.gui.sample":$$$($$$($$$('::','GxG'),'Gui'),'Sample'),"org.gxg.gui.section":$$$($$$($$$('::','GxG'),'Gui'),'Section'),"org.gxg.gui.small":$$$($$$($$$('::','GxG'),'Gui'),'Small'),"org.gxg.gui.source":$$$($$$($$$('::','GxG'),'Gui'),'Source'),"org.gxg.gui.strong":$$$($$$($$$('::','GxG'),'Gui'),'Strong'),"org.gxg.gui.style":$$$($$$($$$('::','GxG'),'Gui'),'Style'),"org.gxg.gui.sub.script":$$$($$$($$$('::','GxG'),'Gui'),'SubScript'),"org.gxg.gui.summary":$$$($$$($$$('::','GxG'),'Gui'),'Summary'),"org.gxg.gui.super.script":$$$($$$($$$('::','GxG'),'Gui'),'SuperScript'),"org.gxg.gui.svg":$$$($$$($$$('::','GxG'),'Gui'),'Svg'),"org.gxg.gui.template":$$$($$$($$$('::','GxG'),'Gui'),'Template'),"org.gxg.gui.text.area":$$$($$$($$$('::','GxG'),'Gui'),'TextArea'),"org.gxg.gui.time":$$$($$$($$$('::','GxG'),'Gui'),'Time'),"org.gxg.gui.track":$$$($$$($$$('::','GxG'),'Gui'),'Track'),"org.gxg.gui.misspelled":$$$($$$($$$('::','GxG'),'Gui'),'Misspelled'),"org.gxg.gui.variable":$$$($$$($$$('::','GxG'),'Gui'),'Variable'),"org.gxg.gui.word.break":$$$($$$($$$('::','GxG'),'Gui'),'WordBreak'),"org.gxg.gui.header":$$$($$$($$$('::','GxG'),'Gui'),'Header'),"org.gxg.gui.navigator":$$$($$$($$$('::','GxG'),'Gui'),'Navigation'),"org.gxg.gui.main":$$$($$$($$$('::','GxG'),'Gui'),'Main'),"org.gxg.gui.article":$$$($$$($$$('::','GxG'),'Gui'),'Article'),"org.gxg.gui.aside":$$$($$$($$$('::','GxG'),'Gui'),'Aside'),"org.gxg.gui.footer":$$$($$$($$$('::','GxG'),'Gui'),'Footer'),"org.gxg.gui.form":$$$($$$($$$('::','GxG'),'Gui'),'Form'),"org.gxg.gui.input.button":$$$($$$($$$('::','GxG'),'Gui'),'ButtonInput'),"org.gxg.gui.input.button.submit":$$$($$$($$$('::','GxG'),'Gui'),'SubmitButton'),"org.gxg.gui.block":$$$($$$($$$('::','GxG'),'Gui'),'Block'),"org.gxg.gui.button.checkbox":$$$($$$($$$('::','GxG'),'Gui'),'CheckBox'),"org.gxg.gui.image":$$$($$$($$$('::','GxG'),'Gui'),'Image'),"org.gxg.gui.video":$$$($$$($$$('::','GxG'),'Gui'),'Video'),"org.gxg.gui.audio":$$$($$$($$$('::','GxG'),'Gui'),'Audio'),"org.gxg.gui.canvas":$$$($$$($$$('::','GxG'),'Gui'),'Canvas'),"org.gxg.gui.input.hidden":$$$($$$($$$('::','GxG'),'Gui'),'HiddenInput'),"org.gxg.gui.input.file":$$$($$$($$$('::','GxG'),'Gui'),'FileInput'),"org.gxg.gui.input.text":$$$($$$($$$('::','GxG'),'Gui'),'TextInput'),"org.gxg.gui.input.password":$$$($$$($$$('::','GxG'),'Gui'),'PasswordInput'),"org.gxg.gui.input.reset":$$$($$$($$$('::','GxG'),'Gui'),'ResetInput'),"org.gxg.gui.button.radio":$$$($$$($$$('::','GxG'),'Gui'),'RadioButton'),"org.gxg.gui.picker.color":$$$($$$($$$('::','GxG'),'Gui'),'ColorPicker'),"org.gxg.gui.picker.date":$$$($$$($$$('::','GxG'),'Gui'),'DatePicker'),"org.gxg.gui.input.datetime.local":$$$($$$($$$('::','GxG'),'Gui'),'DateTimeLocal'),"org.gxg.gui.input.email":$$$($$$($$$('::','GxG'),'Gui'),'EmailInput'),"org.gxg.gui.picker.month":$$$($$$($$$('::','GxG'),'Gui'),'MonthPicker'),"org.gxg.gui.picker.number":$$$($$$($$$('::','GxG'),'Gui'),'NumberInput'),"org.gxg.gui.input.range":$$$($$$($$$('::','GxG'),'Gui'),'RangeInput'),"org.gxg.gui.input.search":$$$($$$($$$('::','GxG'),'Gui'),'SearchInput'),"org.gxg.gui.input.phone":$$$($$$($$$('::','GxG'),'Gui'),'PhoneInput'),"org.gxg.gui.picker.time":$$$($$$($$$('::','GxG'),'Gui'),'TimePicker'),"org.gxg.gui.input.url":$$$($$$($$$('::','GxG'),'Gui'),'UrlInput'),"org.gxg.gui.picker.week":$$$($$$($$$('::','GxG'),'Gui'),'WeekPicker'),"org.gxg.gui.label":$$$($$$($$$('::','GxG'),'Gui'),'Label'),"org.gxg.gui.output":$$$($$$($$$('::','GxG'),'Gui'),'Output'),"org.gxg.gui.paragraph":$$$($$$($$$('::','GxG'),'Gui'),'Paragraph'),"org.gxg.gui.header.one":$$$($$$($$$('::','GxG'),'Gui'),'Header1'),"org.gxg.gui.header.two":$$$($$$($$$('::','GxG'),'Gui'),'Header2'),"org.gxg.gui.header.three":$$$($$$($$$('::','GxG'),'Gui'),'Header3'),"org.gxg.gui.header.four":$$$($$$($$$('::','GxG'),'Gui'),'Header4'),"org.gxg.gui.header.five":$$$($$$($$$('::','GxG'),'Gui'),'Header5'),"org.gxg.gui.header.six":$$$($$$($$$('::','GxG'),'Gui'),'Header6'),"org.gxg.gui.list":$$$($$$($$$('::','GxG'),'Gui'),'List'),"org.gxg.gui.list.ordered":$$$($$$($$$('::','GxG'),'Gui'),'OrderedList'),"org.gxg.gui.list.item":$$$($$$($$$('::','GxG'),'Gui'),'ListItem'),"org.gxg.gui.link.anchor":$$$($$$($$$('::','GxG'),'Gui'),'Anchor'),"org.gxg.gui.link.external":$$$($$$($$$('::','GxG'),'Gui'),'ExternalLink'),"org.gxg.gui.button":$$$($$$($$$('::','GxG'),'Gui'),'Button'),"org.gxg.gui.table":$$$($$$($$$('::','GxG'),'Gui'),'Table'),"org.gxg.gui.table.header":$$$($$$($$$('::','GxG'),'Gui'),'TableHeader'),"org.gxg.gui.table.row":$$$($$$($$$('::','GxG'),'Gui'),'TableRow'),"org.gxg.gui.table.cell":$$$($$$($$$('::','GxG'),'Gui'),'TableCell'),"org.gxg.gui.block.table":$$$($$$($$$('::','GxG'),'Gui'),'BlockTable'),"org.gxg.gui.block.table.header":$$$($$$($$$('::','GxG'),'Gui'),'BlockTableHeader'),"org.gxg.gui.block.table.row":$$$($$$($$$('::','GxG'),'Gui'),'BlockTableRow'),"org.gxg.gui.block.table.cell":$$$($$$($$$('::','GxG'),'Gui'),'BlockTableCell'),"org.gxg.gui.span":$$$($$$($$$('::','GxG'),'Gui'),'Span'),"org.gxg.gui.select":$$$($$$($$$('::','GxG'),'Gui'),'Select'),"org.gxg.gui.option":$$$($$$($$$('::','GxG'),'Gui'),'Option'),"org.gxg.gui.field.set":$$$($$$($$$('::','GxG'),'Gui'),'FieldSet'),"org.gxg.gui.legend":$$$($$$($$$('::','GxG'),'Gui'),'Legend')}));Opal.defs(self,'$component_class',$Gui_component_class$126=function $$component_class(the_type_specifier){var self=this,result=nil;if(the_type_specifier==null){the_type_specifier=nil;};result=nil;if($truthy(the_type_specifier)){result=$$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES')['$[]'](the_type_specifier.$to_s().$to_sym())};return result;},$Gui_component_class$126.$$arity=-1);Opal.defs(self,'$class_component',$Gui_class_component$127=function $$class_component(the_class_specifier){var self=this,result=nil,found_index=nil;if(the_class_specifier==null){the_class_specifier=nil;};result=nil;if($truthy(the_class_specifier)){found_index=$$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES').$values().$index(the_class_specifier);if($truthy(found_index)){result=$$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES').$keys()['$[]'](found_index)};};return result;},$Gui_class_component$127.$$arity=-1);Opal.defs(self,'$component_registered?',$Gui_component_registered$ques$128=function(the_specifier){var self=this;if(the_specifier==null){the_specifier=nil;};if($truthy($$$($$($nesting,'GxG'),'Gui').$component_class(the_specifier))){return true}else{return false};},$Gui_component_registered$ques$128.$$arity=-1);return(Opal.defs(self,'$register_component_class',$Gui_register_component_class$129=function $$register_component_class(the_specifier,the_constant){var self=this,$ret_or_3=nil,$writer=nil;if(the_specifier==null){the_specifier=nil;};if(the_constant==null){the_constant=nil;};if($truthy((function(){if($truthy(($ret_or_3=the_specifier['$is_any?']($$$('::','String'),$$$('::','Symbol'))))){return the_constant['$is_a?']($$$('::','Class'))}else{return $ret_or_3};return nil;})())){if($truthy($$$($$($nesting,'GxG'),'Gui')['$component_registered?'](the_specifier.$to_s().$to_sym()))){if($truthy($$$($$($nesting,'GxG'),'Gui').$component_class(the_specifier.$to_s().$to_sym())['$!='](the_constant))){$writer=[the_specifier.$to_s().$to_sym(),the_constant];$send($$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return true;}else{self.$log_warn(""+"Component Class "+(the_specifier.$to_s().$to_sym().$inspect())+" => "+(the_constant.$inspect())+" already defined.");return false;}}else{$writer=[the_specifier.$to_s().$to_sym(),the_constant];$send($$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return true;}}else{return false};},$Gui_register_component_class$129.$$arity=-1),nil)&&'register_component_class';})($nesting[0],$nesting)})($nesting[0],$nesting);return(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);return(function($base,$parent_nesting){var self=$module($base,'Gui');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'GridContainer');var $nesting=[self].concat($parent_nesting),$GridContainer__before_create$130,$GridContainer__after_create$131;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$GridContainer__before_create$130=function $$_before_create(){var $iter=$GridContainer__before_create$130.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$GridContainer__before_create$130.$$p=null;$send2(self,$find_super(self,'_before_create',$GridContainer__before_create$130,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-container")['$=='](true)){return nil}else{$writer=["grid-container",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$GridContainer__before_create$130.$$arity=0);return(Opal.def(self,'$_after_create',$GridContainer__after_create$131=function $$_after_create(){var $iter=$GridContainer__after_create$131.$$p,$yield=$iter||nil,self=this;if($iter)$GridContainer__after_create$131.$$p=null;$send2(self,$find_super(self,'_after_create',$GridContainer__after_create$131,false,true),'_after_create',[],null);return $(document).foundation();;},$GridContainer__after_create$131.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.grid.container",$$$($$$($$$('::','GxG'),'Gui'),'GridContainer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'GridX');var $nesting=[self].concat($parent_nesting),$GridX__before_create$132,$GridX__after_create$133;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$GridX__before_create$132=function $$_before_create(){var $iter=$GridX__before_create$132.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$GridX__before_create$132.$$p=null;$send2(self,$find_super(self,'_before_create',$GridX__before_create$132,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-x")['$=='](true)){return nil}else{$writer=["grid-x",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$GridX__before_create$132.$$arity=0);return(Opal.def(self,'$_after_create',$GridX__after_create$133=function $$_after_create(){var $iter=$GridX__after_create$133.$$p,$yield=$iter||nil,self=this;if($iter)$GridX__after_create$133.$$p=null;$send2(self,$find_super(self,'_after_create',$GridX__after_create$133,false,true),'_after_create',[],null);return $(document).foundation();;},$GridX__after_create$133.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.grid.x",$$$($$$($$$('::','GxG'),'Gui'),'GridX'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'GridY');var $nesting=[self].concat($parent_nesting),$GridY__before_create$134,$GridY__after_create$135;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$GridY__before_create$134=function $$_before_create(){var $iter=$GridY__before_create$134.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$GridY__before_create$134.$$p=null;$send2(self,$find_super(self,'_before_create',$GridY__before_create$134,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-y")['$=='](true)){return nil}else{$writer=["grid-y",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$GridY__before_create$134.$$arity=0);return(Opal.def(self,'$_after_create',$GridY__after_create$135=function $$_after_create(){var $iter=$GridY__after_create$135.$$p,$yield=$iter||nil,self=this;if($iter)$GridY__after_create$135.$$p=null;$send2(self,$find_super(self,'_after_create',$GridY__after_create$135,false,true),'_after_create',[],null);return $(document).foundation();;},$GridY__after_create$135.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.grid.y",$$$($$$($$$('::','GxG'),'Gui'),'GridY'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Accordion');var $nesting=[self].concat($parent_nesting),$Accordion__before_create$136,$Accordion__after_create$137;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$Accordion__before_create$136=function $$_before_create(){var $iter=$Accordion__before_create$136.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Accordion__before_create$136.$$p=null;$send2(self,$find_super(self,'_before_create',$Accordion__before_create$136,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("accordion")['$=='](true)){}else{$writer=["accordion",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-accordion"))){return nil}else{$writer=["data-accordion",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Accordion__before_create$136.$$arity=0);return(Opal.def(self,'$_after_create',$Accordion__after_create$137=function $$_after_create(){var $iter=$Accordion__after_create$137.$$p,$yield=$iter||nil,self=this;if($iter)$Accordion__after_create$137.$$p=null;$send2(self,$find_super(self,'_after_create',$Accordion__after_create$137,false,true),'_after_create',[],null);return $(document).foundation();;},$Accordion__after_create$137.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion",$$$($$$($$$('::','GxG'),'Gui'),'Accordion'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionItem');var $nesting=[self].concat($parent_nesting),$AccordionItem__before_create$138,$AccordionItem__after_create$139;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$AccordionItem__before_create$138=function $$_before_create(){var $iter=$AccordionItem__before_create$138.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AccordionItem__before_create$138.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionItem__before_create$138,false,true),'_before_create',[],null);self.domtype="li";if(self.states['$[]']("accordion-item")['$=='](true)){}else{$writer=["accordion-item",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-accordion-item"))){return nil}else{$writer=["data-accordion-item",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AccordionItem__before_create$138.$$arity=0);return(Opal.def(self,'$_after_create',$AccordionItem__after_create$139=function $$_after_create(){var $iter=$AccordionItem__after_create$139.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionItem__after_create$139.$$p=null;$send2(self,$find_super(self,'_after_create',$AccordionItem__after_create$139,false,true),'_after_create',[],null);return $(document).foundation();;},$AccordionItem__after_create$139.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.item",$$$($$$($$$('::','GxG'),'Gui'),'AccordionItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionMenu');var $nesting=[self].concat($parent_nesting),$AccordionMenu__before_create$140,$AccordionMenu__after_create$141;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$AccordionMenu__before_create$140=function $$_before_create(){var $iter=$AccordionMenu__before_create$140.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AccordionMenu__before_create$140.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionMenu__before_create$140,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-accordion-menu"))){return nil}else{$writer=["data-accordion-menu",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AccordionMenu__before_create$140.$$arity=0);return(Opal.def(self,'$_after_create',$AccordionMenu__after_create$141=function $$_after_create(){var $iter=$AccordionMenu__after_create$141.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionMenu__after_create$141.$$p=null;$send2(self,$find_super(self,'_after_create',$AccordionMenu__after_create$141,false,true),'_after_create',[],null);return $(document).foundation();;},$AccordionMenu__after_create$141.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.menu",$$$($$$($$$('::','GxG'),'Gui'),'AccordionMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionSubMenu');var $nesting=[self].concat($parent_nesting),$AccordionSubMenu__before_create$142,$AccordionSubMenu__after_create$143;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$AccordionSubMenu__before_create$142=function $$_before_create(){var $iter=$AccordionSubMenu__before_create$142.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AccordionSubMenu__before_create$142.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionSubMenu__before_create$142,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("nested")['$=='](true)){return nil}else{$writer=["nested",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AccordionSubMenu__before_create$142.$$arity=0);return(Opal.def(self,'$_after_create',$AccordionSubMenu__after_create$143=function $$_after_create(){var $iter=$AccordionSubMenu__after_create$143.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionSubMenu__after_create$143.$$p=null;$send2(self,$find_super(self,'_after_create',$AccordionSubMenu__after_create$143,false,true),'_after_create',[],null);return $(document).foundation();;},$AccordionSubMenu__after_create$143.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.submenu",$$$($$$($$$('::','GxG'),'Gui'),'AccordionSubMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionMenuItem');var $nesting=[self].concat($parent_nesting),$AccordionMenuItem__before_create$144;return(Opal.def(self,'$_before_create',$AccordionMenuItem__before_create$144=function $$_before_create(){var $iter=$AccordionMenuItem__before_create$144.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionMenuItem__before_create$144.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionMenuItem__before_create$144,false,true),'_before_create',[],null);return(self.domtype="li");},$AccordionMenuItem__before_create$144.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'AccordionMenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AnchorButton');var $nesting=[self].concat($parent_nesting),$AnchorButton__before_create$145,$AnchorButton__after_create$146;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$AnchorButton__before_create$145=function $$_before_create(){var $iter=$AnchorButton__before_create$145.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AnchorButton__before_create$145.$$p=null;$send2(self,$find_super(self,'_before_create',$AnchorButton__before_create$145,false,true),'_before_create',[],null);self.domtype="a";if(self.states['$[]']("button")['$=='](true)){return nil}else{$writer=["button",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AnchorButton__before_create$145.$$arity=0);return(Opal.def(self,'$_after_create',$AnchorButton__after_create$146=function $$_after_create(){var $iter=$AnchorButton__after_create$146.$$p,$yield=$iter||nil,self=this;if($iter)$AnchorButton__after_create$146.$$p=null;$send2(self,$find_super(self,'_after_create',$AnchorButton__after_create$146,false,true),'_after_create',[],null);return $(document).foundation();;},$AnchorButton__after_create$146.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.anchor.button",$$$($$$($$$('::','GxG'),'Gui'),'AnchorButton'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Badge');var $nesting=[self].concat($parent_nesting),$Badge__before_create$147,$Badge__after_create$148;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Badge__before_create$147=function $$_before_create(){var $iter=$Badge__before_create$147.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Badge__before_create$147.$$p=null;$send2(self,$find_super(self,'_before_create',$Badge__before_create$147,false,true),'_before_create',[],null);self.domtype="span";if(self.states['$[]']("badge")['$=='](true)){return nil}else{$writer=["badge",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Badge__before_create$147.$$arity=0);return(Opal.def(self,'$_after_create',$Badge__after_create$148=function $$_after_create(){var $iter=$Badge__after_create$148.$$p,$yield=$iter||nil,self=this;if($iter)$Badge__after_create$148.$$p=null;$send2(self,$find_super(self,'_after_create',$Badge__after_create$148,false,true),'_after_create',[],null);return $(document).foundation();;},$Badge__after_create$148.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.badge",$$$($$$($$$('::','GxG'),'Gui'),'Badge'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Breadcrumb');var $nesting=[self].concat($parent_nesting),$Breadcrumb__before_create$149,$Breadcrumb__after_create$150;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Breadcrumb__before_create$149=function $$_before_create(){var $iter=$Breadcrumb__before_create$149.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Breadcrumb__before_create$149.$$p=null;$send2(self,$find_super(self,'_before_create',$Breadcrumb__before_create$149,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("breadcrumb")['$=='](true)){return nil}else{$writer=["breadcrumb",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Breadcrumb__before_create$149.$$arity=0);return(Opal.def(self,'$_after_create',$Breadcrumb__after_create$150=function $$_after_create(){var $iter=$Breadcrumb__after_create$150.$$p,$yield=$iter||nil,self=this;if($iter)$Breadcrumb__after_create$150.$$p=null;$send2(self,$find_super(self,'_after_create',$Breadcrumb__after_create$150,false,true),'_after_create',[],null);return $(document).foundation();;},$Breadcrumb__after_create$150.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.breadcrumb",$$$($$$($$$('::','GxG'),'Gui'),'Breadcrumb'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BreadcrumbItem');var $nesting=[self].concat($parent_nesting),$BreadcrumbItem__before_create$151,$BreadcrumbItem__after_create$152;Opal.def(self,'$_before_create',$BreadcrumbItem__before_create$151=function $$_before_create(){var $iter=$BreadcrumbItem__before_create$151.$$p,$yield=$iter||nil,self=this;if($iter)$BreadcrumbItem__before_create$151.$$p=null;$send2(self,$find_super(self,'_before_create',$BreadcrumbItem__before_create$151,false,true),'_before_create',[],null);return(self.domtype="li");},$BreadcrumbItem__before_create$151.$$arity=0);return(Opal.def(self,'$_after_create',$BreadcrumbItem__after_create$152=function $$_after_create(){var $iter=$BreadcrumbItem__after_create$152.$$p,$yield=$iter||nil,self=this;if($iter)$BreadcrumbItem__after_create$152.$$p=null;$send2(self,$find_super(self,'_after_create',$BreadcrumbItem__after_create$152,false,true),'_after_create',[],null);return $(document).foundation();;},$BreadcrumbItem__after_create$152.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.breadcrumb.item",$$$($$$($$$('::','GxG'),'Gui'),'BreadcrumbItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ButtonGroup');var $nesting=[self].concat($parent_nesting),$ButtonGroup__before_create$153,$ButtonGroup__after_create$154;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$ButtonGroup__before_create$153=function $$_before_create(){var $iter=$ButtonGroup__before_create$153.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ButtonGroup__before_create$153.$$p=null;$send2(self,$find_super(self,'_before_create',$ButtonGroup__before_create$153,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("button-group")['$=='](true)){return nil}else{$writer=["button-group",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ButtonGroup__before_create$153.$$arity=0);return(Opal.def(self,'$_after_create',$ButtonGroup__after_create$154=function $$_after_create(){var $iter=$ButtonGroup__after_create$154.$$p,$yield=$iter||nil,self=this;if($iter)$ButtonGroup__after_create$154.$$p=null;$send2(self,$find_super(self,'_after_create',$ButtonGroup__after_create$154,false,true),'_after_create',[],null);return $(document).foundation();;},$ButtonGroup__after_create$154.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.button.group",$$$($$$($$$('::','GxG'),'Gui'),'ButtonGroup'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Callout');var $nesting=[self].concat($parent_nesting),$Callout__before_create$155,$Callout__after_create$156;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Callout__before_create$155=function $$_before_create(){var $iter=$Callout__before_create$155.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Callout__before_create$155.$$p=null;$send2(self,$find_super(self,'_before_create',$Callout__before_create$155,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("callout")['$=='](true)){return nil}else{$writer=["callout",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Callout__before_create$155.$$arity=0);return(Opal.def(self,'$_after_create',$Callout__after_create$156=function $$_after_create(){var $iter=$Callout__after_create$156.$$p,$yield=$iter||nil,self=this;if($iter)$Callout__after_create$156.$$p=null;$send2(self,$find_super(self,'_after_create',$Callout__after_create$156,false,true),'_after_create',[],null);return $(document).foundation();;},$Callout__after_create$156.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.callout",$$$($$$($$$('::','GxG'),'Gui'),'Callout'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ColoredLabel');var $nesting=[self].concat($parent_nesting),$ColoredLabel__before_create$157;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$ColoredLabel__before_create$157=function $$_before_create(){var $iter=$ColoredLabel__before_create$157.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ColoredLabel__before_create$157.$$p=null;$send2(self,$find_super(self,'_before_create',$ColoredLabel__before_create$157,false,true),'_before_create',[],null);self.domtype="span";if(self.states['$[]']("label")['$=='](true)){return nil}else{$writer=["label",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ColoredLabel__before_create$157.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.label.colored",$$$($$$($$$('::','GxG'),'Gui'),'ColoredLabel'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DrilldownMenu');var $nesting=[self].concat($parent_nesting),$DrilldownMenu__before_create$158,$DrilldownMenu__after_create$159;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$DrilldownMenu__before_create$158=function $$_before_create(){var $iter=$DrilldownMenu__before_create$158.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DrilldownMenu__before_create$158.$$p=null;$send2(self,$find_super(self,'_before_create',$DrilldownMenu__before_create$158,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-drilldown"))){return nil}else{$writer=["data-drilldown",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DrilldownMenu__before_create$158.$$arity=0);return(Opal.def(self,'$_after_create',$DrilldownMenu__after_create$159=function $$_after_create(){var $iter=$DrilldownMenu__after_create$159.$$p,$yield=$iter||nil,self=this;if($iter)$DrilldownMenu__after_create$159.$$p=null;$send2(self,$find_super(self,'_after_create',$DrilldownMenu__after_create$159,false,true),'_after_create',[],null);return $(document).foundation();;},$DrilldownMenu__after_create$159.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.drilldown.menu",$$$($$$($$$('::','GxG'),'Gui'),'DrilldownMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DrilldownSubMenu');var $nesting=[self].concat($parent_nesting),$DrilldownSubMenu__before_create$160,$DrilldownSubMenu__after_create$161;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$DrilldownSubMenu__before_create$160=function $$_before_create(){var $iter=$DrilldownSubMenu__before_create$160.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DrilldownSubMenu__before_create$160.$$p=null;$send2(self,$find_super(self,'_before_create',$DrilldownSubMenu__before_create$160,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){return nil}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DrilldownSubMenu__before_create$160.$$arity=0);return(Opal.def(self,'$_after_create',$DrilldownSubMenu__after_create$161=function $$_after_create(){var $iter=$DrilldownSubMenu__after_create$161.$$p,$yield=$iter||nil,self=this;if($iter)$DrilldownSubMenu__after_create$161.$$p=null;$send2(self,$find_super(self,'_after_create',$DrilldownSubMenu__after_create$161,false,true),'_after_create',[],null);return $(document).foundation();;},$DrilldownSubMenu__after_create$161.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.drilldown.submenu",$$$($$$($$$('::','GxG'),'Gui'),'DrilldownSubMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DrilldownMenuItem');var $nesting=[self].concat($parent_nesting),$DrilldownMenuItem__before_create$162;return(Opal.def(self,'$_before_create',$DrilldownMenuItem__before_create$162=function $$_before_create(){var $iter=$DrilldownMenuItem__before_create$162.$$p,$yield=$iter||nil,self=this;if($iter)$DrilldownMenuItem__before_create$162.$$p=null;$send2(self,$find_super(self,'_before_create',$DrilldownMenuItem__before_create$162,false,true),'_before_create',[],null);return(self.domtype="li");},$DrilldownMenuItem__before_create$162.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.drilldown.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'DrilldownMenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DropdownSubMenu');var $nesting=[self].concat($parent_nesting),$DropdownSubMenu__before_create$163,$DropdownSubMenu__after_create$164;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$DropdownSubMenu__before_create$163=function $$_before_create(){var $iter=$DropdownSubMenu__before_create$163.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DropdownSubMenu__before_create$163.$$p=null;$send2(self,$find_super(self,'_before_create',$DropdownSubMenu__before_create$163,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("menu")['$=='](true)){return nil}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DropdownSubMenu__before_create$163.$$arity=0);return(Opal.def(self,'$_after_create',$DropdownSubMenu__after_create$164=function $$_after_create(){var $iter=$DropdownSubMenu__after_create$164.$$p,$yield=$iter||nil,self=this;if($iter)$DropdownSubMenu__after_create$164.$$p=null;$send2(self,$find_super(self,'_after_create',$DropdownSubMenu__after_create$164,false,true),'_after_create',[],null);return $(document).foundation();;},$DropdownSubMenu__after_create$164.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.dropdown.submenu",$$$($$$($$$('::','GxG'),'Gui'),'DropdownSubMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DropdownMenuItem');var $nesting=[self].concat($parent_nesting),$DropdownMenuItem__before_create$165;return(Opal.def(self,'$_before_create',$DropdownMenuItem__before_create$165=function $$_before_create(){var $iter=$DropdownMenuItem__before_create$165.$$p,$yield=$iter||nil,self=this;if($iter)$DropdownMenuItem__before_create$165.$$p=null;$send2(self,$find_super(self,'_before_create',$DropdownMenuItem__before_create$165,false,true),'_before_create',[],null);return(self.domtype="li");},$DropdownMenuItem__before_create$165.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.dropdown.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'DropdownMenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Equalizer');var $nesting=[self].concat($parent_nesting),$Equalizer__before_create$166;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Equalizer__before_create$166=function $$_before_create(){var $iter=$Equalizer__before_create$166.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Equalizer__before_create$166.$$p=null;$send2(self,$find_super(self,'_before_create',$Equalizer__before_create$166,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-x")['$=='](true)){}else{$writer=["grid-x",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("grid-margin-x")['$=='](true)){}else{$writer=["grid-margin-x",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-equalizer"))){}else{$writer=["data-equalizer",nil];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-equalize-on"))){return nil}else{$writer=["data-equalize-on","medium"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Equalizer__before_create$166.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.equalizer",$$$($$$($$$('::','GxG'),'Gui'),'Equalizer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FlexGridRow');var $nesting=[self].concat($parent_nesting),$FlexGridRow__before_create$167;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$FlexGridRow__before_create$167=function $$_before_create(){var $iter=$FlexGridRow__before_create$167.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FlexGridRow__before_create$167.$$p=null;$send2(self,$find_super(self,'_before_create',$FlexGridRow__before_create$167,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("row")['$=='](true)){return nil}else{$writer=["row",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$FlexGridRow__before_create$167.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.flexgrid.row",$$$($$$($$$('::','GxG'),'Gui'),'FlexGridRow'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FlexGridColumn');var $nesting=[self].concat($parent_nesting),$FlexGridColumn__before_create$168;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$FlexGridColumn__before_create$168=function $$_before_create(){var $iter=$FlexGridColumn__before_create$168.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FlexGridColumn__before_create$168.$$p=null;$send2(self,$find_super(self,'_before_create',$FlexGridColumn__before_create$168,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("columns")['$=='](true)){return nil}else{$writer=["columns",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$FlexGridColumn__before_create$168.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.flexgrid.column",$$$($$$($$$('::','GxG'),'Gui'),'FlexGridColumn'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Embed');var $nesting=[self].concat($parent_nesting),$Embed__before_create$169;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Embed__before_create$169=function $$_before_create(){var $iter=$Embed__before_create$169.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Embed__before_create$169.$$p=null;$send2(self,$find_super(self,'_before_create',$Embed__before_create$169,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("responsive-embed")['$=='](true)){return nil}else{$writer=["responsive-embed",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Embed__before_create$169.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.embed",$$$($$$($$$('::','GxG'),'Gui'),'Embed'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MediaObject');var $nesting=[self].concat($parent_nesting),$MediaObject__before_create$170;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$MediaObject__before_create$170=function $$_before_create(){var $iter=$MediaObject__before_create$170.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$MediaObject__before_create$170.$$p=null;$send2(self,$find_super(self,'_before_create',$MediaObject__before_create$170,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("media-object")['$=='](true)){return nil}else{$writer=["media-object",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$MediaObject__before_create$170.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.media.object",$$$($$$($$$('::','GxG'),'Gui'),'MediaObject'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MediaObjectSection');var $nesting=[self].concat($parent_nesting),$MediaObjectSection__before_create$171;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$MediaObjectSection__before_create$171=function $$_before_create(){var $iter=$MediaObjectSection__before_create$171.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$MediaObjectSection__before_create$171.$$p=null;$send2(self,$find_super(self,'_before_create',$MediaObjectSection__before_create$171,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("media-object-section")['$=='](true)){return nil}else{$writer=["media-object-section",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$MediaObjectSection__before_create$171.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.media.object.section",$$$($$$($$$('::','GxG'),'Gui'),'MediaObjectSection'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DropdownMenu');var $nesting=[self].concat($parent_nesting),$DropdownMenu__before_create$172,$DropdownMenu_add_menu_item$173;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$DropdownMenu__before_create$172=function $$_before_create(){var $iter=$DropdownMenu__before_create$172.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DropdownMenu__before_create$172.$$p=null;$send2(self,$find_super(self,'_before_create',$DropdownMenu__before_create$172,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("dropdown")['$=='](true)){}else{$writer=["dropdown",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-dropdown-menu"))){return nil}else{$writer=["data-dropdown-menu",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DropdownMenu__before_create$172.$$arity=0);return(Opal.def(self,'$add_menu_item',$DropdownMenu_add_menu_item$173=function $$add_menu_item(label,data){var self=this,the_item=nil,$writer=nil;if(label==null){label=nil;};if(data==null){data=nil;};the_item=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.dropdown.menu.item"];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["label","data"],{"label":label,"data":data})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$page().$build_components(self,[the_item]);return true;},$DropdownMenu_add_menu_item$173.$$arity=-1),nil)&&'add_menu_item';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.dropdown.menu",$$$($$$($$$('::','GxG'),'Gui'),'DropdownMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MenuBar');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],$$$($$$($$$('::','GxG'),'Gui'),'DropdownMenu'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.menu.bar",$$$($$$($$$('::','GxG'),'Gui'),'MenuBar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Menu');var $nesting=[self].concat($parent_nesting),$Menu__before_create$174,$Menu_add_menu_item$175;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Menu__before_create$174=function $$_before_create(){var $iter=$Menu__before_create$174.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Menu__before_create$174.$$p=null;$send2(self,$find_super(self,'_before_create',$Menu__before_create$174,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("menu")['$=='](true)){return nil}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Menu__before_create$174.$$arity=0);return(Opal.def(self,'$add_menu_item',$Menu_add_menu_item$175=function $$add_menu_item(label,data){var self=this,the_item=nil,$writer=nil;if(label==null){label=nil;};if(data==null){data=nil;};the_item=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.menu.item"];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["label","data"],{"label":label,"data":data})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$page().$build_components(self,[the_item]);return true;},$Menu_add_menu_item$175.$$arity=-1),nil)&&'add_menu_item';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.menu",$$$($$$($$$('::','GxG'),'Gui'),'Menu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MenuItem');var $nesting=[self].concat($parent_nesting),$MenuItem__before_create$176,$MenuItem_initialize$177,$MenuItem_cascade$178,$MenuItem_set_label$179,$MenuItem_set_data$180,$MenuItem_select$181;self.$$prototype.uuid=self.$$prototype.settings=self.$$prototype.label=nil;Opal.def(self,'$_before_create',$MenuItem__before_create$176=function $$_before_create(){var $iter=$MenuItem__before_create$176.$$p,$yield=$iter||nil,self=this;if($iter)$MenuItem__before_create$176.$$p=null;$send2(self,$find_super(self,'_before_create',$MenuItem__before_create$176,false,true),'_before_create',[],null);return(self.domtype="li");},$MenuItem__before_create$176.$$arity=0);Opal.def(self,'$initialize',$MenuItem_initialize$177=function $$initialize(the_parent,options){var $iter=$MenuItem_initialize$177.$$p,$yield=$iter||nil,self=this;if($iter)$MenuItem_initialize$177.$$p=null;self.label=nil;$send2(self,$find_super(self,'initialize',$MenuItem_initialize$177,false,true),'initialize',[the_parent,options],null);return self;},$MenuItem_initialize$177.$$arity=2);Opal.def(self,'$cascade',$MenuItem_cascade$178=function $$cascade(){var self=this,label=nil,$writer=nil,$ret_or_4=nil,the_object=nil;label=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"label "+(self.uuid.$to_s())];$send(label,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","anchor"];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content"],{"content":(function(){if($truthy(($ret_or_4=self.settings['$[]']("label")))){return $ret_or_4}else{return "Untitled"};return nil;})().$to_s()})];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" menu_item = self.find_parent_type(::GxG::Gui::MenuItem)\n"+" if menu_item\n"+" unless menu_item.get_state(:disabled) == true\n"+" menu_item.select()\n"+" end\n"+" end\n"+" end\n"+" "];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$page().$build_components(self,[label]);the_object=self.$page().$find_object_by(""+"label "+(self.uuid.$to_s()));if($truthy(the_object)){return(self.label=the_object)}else{return nil};},$MenuItem_cascade$178.$$arity=0);Opal.def(self,'$set_label',$MenuItem_set_label$179=function $$set_label(the_text){var self=this,$writer=nil;if(the_text==null){the_text=nil;};if($truthy(self.label)){self.label.$set_text(the_text.$to_s());$writer=["label",the_text.$to_s()];$send(self.settings,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;}else{return nil};},$MenuItem_set_label$179.$$arity=-1);Opal.def(self,'$set_data',$MenuItem_set_data$180=function $$set_data(data){var self=this,$writer=nil;if(data==null){data=nil;};$writer=["data",data];$send(self.settings,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];},$MenuItem_set_data$180.$$arity=-1);return(Opal.def(self,'$select',$MenuItem_select$181=function $$select(data){var self=this;if(data==null){data=nil;};return nil;},$MenuItem_select$181.$$arity=-1),nil)&&'select';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'MenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasWrapper');var $nesting=[self].concat($parent_nesting),$OffCanvasWrapper__before_create$182;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OffCanvasWrapper__before_create$182=function $$_before_create(){var $iter=$OffCanvasWrapper__before_create$182.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasWrapper__before_create$182.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasWrapper__before_create$182,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas-wrapper")['$=='](true)){return nil}else{$writer=["off-canvas-wrapper",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasWrapper__before_create$182.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.wrapper",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasWrapper'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasWrapperInner');var $nesting=[self].concat($parent_nesting),$OffCanvasWrapperInner__before_create$183;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasWrapperInner__before_create$183=function $$_before_create(){var $iter=$OffCanvasWrapperInner__before_create$183.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasWrapperInner__before_create$183.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasWrapperInner__before_create$183,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas-wrapper-inner")['$=='](true)){}else{$writer=["off-canvas-wrapper-inner",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas-wrapper"))){return nil}else{$writer=["data-off-canvas-wrapper",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasWrapperInner__before_create$183.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.wrapper.inner",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasWrapperInner'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasLeft');var $nesting=[self].concat($parent_nesting),$OffCanvasLeft__before_create$184;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasLeft__before_create$184=function $$_before_create(){var $iter=$OffCanvasLeft__before_create$184.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasLeft__before_create$184.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasLeft__before_create$184,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas")['$=='](true)){}else{$writer=["off-canvas",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("position-left")['$=='](true)){}else{$writer=["position-left",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas"))){return nil}else{$writer=["data-off-canvas",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasLeft__before_create$184.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.left",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasLeft'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasRight');var $nesting=[self].concat($parent_nesting),$OffCanvasRight__before_create$185;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasRight__before_create$185=function $$_before_create(){var $iter=$OffCanvasRight__before_create$185.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasRight__before_create$185.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasRight__before_create$185,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas")['$=='](true)){}else{$writer=["off-canvas",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("position-right")['$=='](true)){}else{$writer=["position-right",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas"))){}else{$writer=["data-off-canvas",nil];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-position"))){return nil}else{$writer=["data-position","right"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasRight__before_create$185.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.right",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasRight'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasContent');var $nesting=[self].concat($parent_nesting),$OffCanvasContent__before_create$186;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasContent__before_create$186=function $$_before_create(){var $iter=$OffCanvasContent__before_create$186.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasContent__before_create$186.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasContent__before_create$186,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas-content")['$=='](true)){}else{$writer=["off-canvas-content",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas-content"))){return nil}else{$writer=["data-off-canvas-content",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasContent__before_create$186.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.content",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasContent'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Orbit');var $nesting=[self].concat($parent_nesting),$Orbit__before_create$187;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Orbit__before_create$187=function $$_before_create(){var $iter=$Orbit__before_create$187.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Orbit__before_create$187.$$p=null;$send2(self,$find_super(self,'_before_create',$Orbit__before_create$187,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("orbit")['$=='](true)){}else{$writer=["orbit",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("role"))){}else{$writer=["role","region"];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-orbit"))){return nil}else{$writer=["data-orbit",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Orbit__before_create$187.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit",$$$($$$($$$('::','GxG'),'Gui'),'Orbit'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitContainer');var $nesting=[self].concat($parent_nesting),$OrbitContainer__before_create$188;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitContainer__before_create$188=function $$_before_create(){var $iter=$OrbitContainer__before_create$188.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitContainer__before_create$188.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitContainer__before_create$188,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("orbit-container")['$=='](true)){return nil}else{$writer=["orbit-container",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitContainer__before_create$188.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.container",$$$($$$($$$('::','GxG'),'Gui'),'OrbitContainer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitPrevious');var $nesting=[self].concat($parent_nesting),$OrbitPrevious__before_create$189;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitPrevious__before_create$189=function $$_before_create(){var $iter=$OrbitPrevious__before_create$189.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitPrevious__before_create$189.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitPrevious__before_create$189,false,true),'_before_create',[],null);self.domtype="button";if(self.states['$[]']("orbit-previous")['$=='](true)){return nil}else{$writer=["orbit-previous",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitPrevious__before_create$189.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.previous",$$$($$$($$$('::','GxG'),'Gui'),'OrbitPrevious'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitNext');var $nesting=[self].concat($parent_nesting),$OrbitNext__before_create$190;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitNext__before_create$190=function $$_before_create(){var $iter=$OrbitNext__before_create$190.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitNext__before_create$190.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitNext__before_create$190,false,true),'_before_create',[],null);self.domtype="button";if(self.states['$[]']("orbit-next")['$=='](true)){return nil}else{$writer=["orbit-next",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitNext__before_create$190.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.next",$$$($$$($$$('::','GxG'),'Gui'),'OrbitNext'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitSlide');var $nesting=[self].concat($parent_nesting),$OrbitSlide__before_create$191;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitSlide__before_create$191=function $$_before_create(){var $iter=$OrbitSlide__before_create$191.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitSlide__before_create$191.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitSlide__before_create$191,false,true),'_before_create',[],null);self.domtype="li";if(self.states['$[]']("orbit-slide")['$=='](true)){return nil}else{$writer=["orbit-slide",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitSlide__before_create$191.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.slide",$$$($$$($$$('::','GxG'),'Gui'),'OrbitSlide'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitNavigator');var $nesting=[self].concat($parent_nesting),$OrbitNavigator__before_create$192;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitNavigator__before_create$192=function $$_before_create(){var $iter=$OrbitNavigator__before_create$192.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitNavigator__before_create$192.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitNavigator__before_create$192,false,true),'_before_create',[],null);self.domtype="nav";if(self.states['$[]']("orbit-bullets")['$=='](true)){return nil}else{$writer=["orbit-bullets",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitNavigator__before_create$192.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.navigator",$$$($$$($$$('::','GxG'),'Gui'),'OrbitNavigator'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitBullet');var $nesting=[self].concat($parent_nesting),$OrbitBullet__before_create$193;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OrbitBullet__before_create$193=function $$_before_create(){var $iter=$OrbitBullet__before_create$193.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitBullet__before_create$193.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitBullet__before_create$193,false,true),'_before_create',[],null);self.domtype="button";if($truthy(self.options.$keys()['$include?']("data-slide"))){return nil}else{$writer=["data-slide","0"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitBullet__before_create$193.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.bullet",$$$($$$($$$('::','GxG'),'Gui'),'OrbitBullet'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Pagination');var $nesting=[self].concat($parent_nesting),$Pagination__before_create$194;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Pagination__before_create$194=function $$_before_create(){var $iter=$Pagination__before_create$194.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Pagination__before_create$194.$$p=null;$send2(self,$find_super(self,'_before_create',$Pagination__before_create$194,false,true),'_before_create',[],null);self.domtype="ul";if($truthy(self.options.$keys()['$include?']("role"))){return nil}else{$writer=["role","navigation"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Pagination__before_create$194.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.pagination",$$$($$$($$$('::','GxG'),'Gui'),'Pagination'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'PaginationItem');var $nesting=[self].concat($parent_nesting),$PaginationItem__before_create$195;return(Opal.def(self,'$_before_create',$PaginationItem__before_create$195=function $$_before_create(){var $iter=$PaginationItem__before_create$195.$$p,$yield=$iter||nil,self=this;if($iter)$PaginationItem__before_create$195.$$p=null;$send2(self,$find_super(self,'_before_create',$PaginationItem__before_create$195,false,true),'_before_create',[],null);return(self.domtype="li");},$PaginationItem__before_create$195.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.pagination.item",$$$($$$($$$('::','GxG'),'Gui'),'PaginationItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ProgressBar');var $nesting=[self].concat($parent_nesting),$ProgressBar__before_create$196;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ProgressBar__before_create$196=function $$_before_create(){var $iter=$ProgressBar__before_create$196.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ProgressBar__before_create$196.$$p=null;$send2(self,$find_super(self,'_before_create',$ProgressBar__before_create$196,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("progress")['$=='](true)){}else{$writer=["progress",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("role"))){return nil}else{$writer=["role","progressbar"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ProgressBar__before_create$196.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.progress.bar",$$$($$$($$$('::','GxG'),'Gui'),'ProgressBar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ProgressMeter');var $nesting=[self].concat($parent_nesting),$ProgressMeter__before_create$197;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$ProgressMeter__before_create$197=function $$_before_create(){var $iter=$ProgressMeter__before_create$197.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ProgressMeter__before_create$197.$$p=null;$send2(self,$find_super(self,'_before_create',$ProgressMeter__before_create$197,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("progress-meter")['$=='](true)){return nil}else{$writer=["progress-meter",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ProgressMeter__before_create$197.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.progress.meter",$$$($$$($$$('::','GxG'),'Gui'),'ProgressMeter'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'HorizontalSlider');var $nesting=[self].concat($parent_nesting),$HorizontalSlider__before_create$198,$HorizontalSlider__after_create$199,$HorizontalSlider_set_script$200;self.$$prototype.states=self.$$prototype.options=self.$$prototype.data_second=self.$$prototype.data_start=self.$$prototype.data_end=self.$$prototype.uuid=nil;Opal.def(self,'$_before_create',$HorizontalSlider__before_create$198=function $$_before_create(){var $iter=$HorizontalSlider__before_create$198.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$HorizontalSlider__before_create$198.$$p=null;$send2(self,$find_super(self,'_before_create',$HorizontalSlider__before_create$198,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("slider")['$=='](true)){}else{$writer=["slider",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options['$[]']("data-initial-start"))){self.data_start=self.options.$delete("data-initial-start")}else{self.data_start="50"};if($truthy(self.options['$[]']("data-initial-end"))){self.data_second=self.options.$delete("data-initial-end")}else{self.data_second=nil};if($truthy(self.options['$[]']("data-end"))){return(self.data_end=self.options.$delete("data-end"))}else{return(self.data_end="200")};},$HorizontalSlider__before_create$198.$$arity=0);Opal.def(self,'$_after_create',$HorizontalSlider__after_create$199=function $$_after_create(){var $iter=$HorizontalSlider__after_create$199.$$p,$yield=$iter||nil,self=this,container_one=nil,slider=nil,handle=nil,handle_two=nil,container_two=nil,value_containter=nil,container_three=nil,value_containter_two=nil;if($iter)$HorizontalSlider__after_create$199.$$p=null;$send2(self,$find_super(self,'_after_create',$HorizontalSlider__after_create$199,false,true),'_after_create',[],null);if($truthy(self.data_second)){container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-initial-end","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-initial-end":self.data_second,"data-end":self.data_end,"states":["slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));handle_two=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle_two","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));container_three=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container_two",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter_two=container_three.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value_two","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());handle_two.$set_attribute("aria-controls",value_containter_two.$uuid().$to_s());}else{container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-end":self.data_end,"states":["slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());};return $(document).foundation();;},$HorizontalSlider__after_create$199.$$arity=0);return(Opal.def(self,'$set_script',$HorizontalSlider_set_script$200=function $$set_script(the_script_body,alternate_target){var $iter=$HorizontalSlider_set_script$200.$$p,$yield=$iter||nil,self=this,handle=nil,handle_two=nil;if($iter)$HorizontalSlider_set_script$200.$$p=null;if(the_script_body==null){the_script_body="";};if(alternate_target==null){alternate_target=nil;};if($truthy(alternate_target)){return alternate_target.$set_script(the_script_body)}else if($truthy(self.data_second)){handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};$send2(self,$find_super(self,'set_script',$HorizontalSlider_set_script$200,false,true),'set_script',[the_script_body,handle],null);handle_two=self.$find_descendant("slider_handle_two");if($truthy(handle_two)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$HorizontalSlider_set_script$200,false,true),'set_script',[the_script_body,handle_two],null);}else{handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$HorizontalSlider_set_script$200,false,true),'set_script',[the_script_body,handle],null);};},$HorizontalSlider_set_script$200.$$arity=-1),nil)&&'set_script';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.slider.horizontal",$$$($$$($$$('::','GxG'),'Gui'),'HorizontalSlider'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'VerticalSlider');var $nesting=[self].concat($parent_nesting),$VerticalSlider__before_create$201,$VerticalSlider__after_create$202,$VerticalSlider_set_script$203;self.$$prototype.states=self.$$prototype.options=self.$$prototype.data_second=self.$$prototype.data_start=self.$$prototype.data_end=self.$$prototype.uuid=nil;Opal.def(self,'$_before_create',$VerticalSlider__before_create$201=function $$_before_create(){var $iter=$VerticalSlider__before_create$201.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$VerticalSlider__before_create$201.$$p=null;$send2(self,$find_super(self,'_before_create',$VerticalSlider__before_create$201,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("slider")['$=='](true)){}else{$writer=["slider",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options['$[]']("data-initial-start"))){self.data_start=self.options.$delete("data-initial-start")}else{self.data_start="50"};if($truthy(self.options['$[]']("data-initial-end"))){self.data_second=self.options.$delete("data-initial-end")}else{self.data_second=nil};if($truthy(self.options['$[]']("data-end"))){return(self.data_end=self.options.$delete("data-end"))}else{return(self.data_end="200")};},$VerticalSlider__before_create$201.$$arity=0);Opal.def(self,'$_after_create',$VerticalSlider__after_create$202=function $$_after_create(){var $iter=$VerticalSlider__after_create$202.$$p,$yield=$iter||nil,self=this,container_one=nil,slider=nil,handle=nil,handle_two=nil,container_two=nil,value_containter=nil,container_three=nil,value_containter_two=nil;if($iter)$VerticalSlider__after_create$202.$$p=null;$send2(self,$find_super(self,'_after_create',$VerticalSlider__after_create$202,false,true),'_after_create',[],null);if($truthy(self.data_second)){container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-initial-end","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-initial-end":self.data_second,"data-end":self.data_end,"states":["vertical","slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));handle_two=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle_two","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));container_three=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container_two",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter_two=container_three.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value_two","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());handle_two.$set_attribute("aria-controls",value_containter_two.$uuid().$to_s());}else{container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-end":self.data_end,"states":["vertical","slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());};return $(document).foundation();;},$VerticalSlider__after_create$202.$$arity=0);return(Opal.def(self,'$set_script',$VerticalSlider_set_script$203=function $$set_script(the_script_body,alternate_target){var $iter=$VerticalSlider_set_script$203.$$p,$yield=$iter||nil,self=this,handle=nil,handle_two=nil;if($iter)$VerticalSlider_set_script$203.$$p=null;if(the_script_body==null){the_script_body="";};if(alternate_target==null){alternate_target=nil;};if($truthy(alternate_target)){return alternate_target.$set_script(the_script_body)}else if($truthy(self.data_second)){handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};$send2(self,$find_super(self,'set_script',$VerticalSlider_set_script$203,false,true),'set_script',[the_script_body,handle],null);handle_two=self.$find_descendant("slider_handle_two");if($truthy(handle_two)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$VerticalSlider_set_script$203,false,true),'set_script',[the_script_body,handle_two],null);}else{handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$VerticalSlider_set_script$203,false,true),'set_script',[the_script_body,handle],null);};},$VerticalSlider_set_script$203.$$arity=-1),nil)&&'set_script';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.slider.vertical",$$$($$$($$$('::','GxG'),'Gui'),'VerticalSlider'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'StickyContainer');var $nesting=[self].concat($parent_nesting),$StickyContainer__before_create$204;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$StickyContainer__before_create$204=function $$_before_create(){var $iter=$StickyContainer__before_create$204.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$StickyContainer__before_create$204.$$p=null;$send2(self,$find_super(self,'_before_create',$StickyContainer__before_create$204,false,true),'_before_create',[],null);self.domtype="div";if($truthy(self.options.$keys()['$include?']("data-sticky-container"))){return nil}else{$writer=["data-sticky-container",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$StickyContainer__before_create$204.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.sticky.container",$$$($$$($$$('::','GxG'),'Gui'),'StickyContainer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Sticky');var $nesting=[self].concat($parent_nesting),$Sticky__before_create$205;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Sticky__before_create$205=function $$_before_create(){var $iter=$Sticky__before_create$205.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Sticky__before_create$205.$$p=null;$send2(self,$find_super(self,'_before_create',$Sticky__before_create$205,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("sticky")['$=='](true)){}else{$writer=["sticky",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-sticky"))){return nil}else{$writer=["data-sticky",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Sticky__before_create$205.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.sticky",$$$($$$($$$('::','GxG'),'Gui'),'Sticky'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Switch');var $nesting=[self].concat($parent_nesting),$Switch__before_create$206,$Switch__after_create$207;self.$$prototype.states=self.$$prototype.uuid=nil;Opal.def(self,'$_before_create',$Switch__before_create$206=function $$_before_create(){var $iter=$Switch__before_create$206.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Switch__before_create$206.$$p=null;$send2(self,$find_super(self,'_before_create',$Switch__before_create$206,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("switch")['$=='](true)){return nil}else{$writer=["switch",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Switch__before_create$206.$$arity=0);return(Opal.def(self,'$_after_create',$Switch__after_create$207=function $$_after_create(){var self=this,input_one=nil,label_one=nil,span_one=nil;input_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.button.checkbox","title":$rb_plus("switch_input",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["switch-input"]}),"script":"","content":[]}));label_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.label","title":$rb_plus("switch_paddle",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["for","states"],{"for":input_one.$uuid().$to_s(),"states":["switch-paddle"]}),"script":"","content":[]}));span_one=label_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":$rb_plus("switch_span",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["show-for-sr"]}),"script":"","content":[]}));return $(document).foundation();;},$Switch__after_create$207.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.switch",$$$($$$($$$('::','GxG'),'Gui'),'Switch'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TabContent');var $nesting=[self].concat($parent_nesting),$TabContent__before_create$208;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TabContent__before_create$208=function $$_before_create(){var $iter=$TabContent__before_create$208.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TabContent__before_create$208.$$p=null;$send2(self,$find_super(self,'_before_create',$TabContent__before_create$208,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("tabs-panel")['$=='](true)){return nil}else{$writer=["tabs-panel",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TabContent__before_create$208.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.tab.content",$$$($$$($$$('::','GxG'),'Gui'),'TabContent'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TabSet');var $nesting=[self].concat($parent_nesting),$TabSet__before_create$209,$TabSet__after_create$210,$TabSet_add_child$211;self.$$prototype.uuid=self.$$prototype.tabs=self.$$prototype.tab_content=nil;Opal.def(self,'$_before_create',$TabSet__before_create$209=function $$_before_create(){var $iter=$TabSet__before_create$209.$$p,$yield=$iter||nil,self=this;if($iter)$TabSet__before_create$209.$$p=null;$send2(self,$find_super(self,'_before_create',$TabSet__before_create$209,false,true),'_before_create',[],null);return(self.domtype="div");},$TabSet__before_create$209.$$arity=0);Opal.def(self,'$_after_create',$TabSet__after_create$210=function $$_after_create(){var self=this;self.tabs=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.list","title":$rb_plus("tabs",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["data-tabs","states"],{"data-tabs":nil,"states":["tabs"]}),"script":"","content":[]}));self.tab_content=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("tab_content",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["data-tabs-content","states"],{"data-tabs-content":self.tabs.$uuid().$to_s(),"states":["tabs-content"]}),"script":"","content":[]}));return $(document).foundation();;},$TabSet__after_create$210.$$arity=0);return(Opal.def(self,'$add_child',$TabSet_add_child$211=function $$add_child(options){var self=this,new_child=nil,item=nil,link=nil,$writer=nil;if(options==null){options=$hash2([],{});};new_child=nil;if(options['$[]']("component").$to_s().$downcase().$to_sym()['$==']("tab_content")){new_child=self.tab_content.$add_child(options);item=self.tabs.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.list.item","title":$rb_plus("tab",new_child.$uuid().$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["tabs-title"]}),"script":"","content":[]}));link=item.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.link.anchor","title":$rb_plus("link",new_child.$uuid().$to_s()),"settings":$hash2([],{}),"options":$hash2(["href","states"],{"href":$rb_plus("#",new_child.$uuid().$to_s()),"states":[]}),"script":"","content":[]}));$writer=[new_child.$title().$to_s()];$send(link,'value=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;}else{self.$raise("Unacceptable Component Type")};return new_child;},$TabSet_add_child$211.$$arity=-1),nil)&&'add_child';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.tab.set",$$$($$$($$$('::','GxG'),'Gui'),'TabSet'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Thumbnail');var $nesting=[self].concat($parent_nesting),$Thumbnail__before_create$212;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Thumbnail__before_create$212=function $$_before_create(){var $iter=$Thumbnail__before_create$212.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Thumbnail__before_create$212.$$p=null;$send2(self,$find_super(self,'_before_create',$Thumbnail__before_create$212,false,true),'_before_create',[],null);self.domtype="img";if(self.states['$[]']("thumbnail")['$=='](true)){return nil}else{$writer=["thumbnail",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Thumbnail__before_create$212.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.thumbnail",$$$($$$($$$('::','GxG'),'Gui'),'Thumbnail'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Titlebar');var $nesting=[self].concat($parent_nesting),$Titlebar__before_create$213;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Titlebar__before_create$213=function $$_before_create(){var $iter=$Titlebar__before_create$213.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Titlebar__before_create$213.$$p=null;$send2(self,$find_super(self,'_before_create',$Titlebar__before_create$213,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("title-bar")['$=='](true)){return nil}else{$writer=["title-bar",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Titlebar__before_create$213.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.titlebar",$$$($$$($$$('::','GxG'),'Gui'),'Titlebar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TitlebarLeft');var $nesting=[self].concat($parent_nesting),$TitlebarLeft__before_create$214;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TitlebarLeft__before_create$214=function $$_before_create(){var $iter=$TitlebarLeft__before_create$214.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TitlebarLeft__before_create$214.$$p=null;$send2(self,$find_super(self,'_before_create',$TitlebarLeft__before_create$214,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("title-bar-left")['$=='](true)){return nil}else{$writer=["title-bar-left",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TitlebarLeft__before_create$214.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.titlebar.left",$$$($$$($$$('::','GxG'),'Gui'),'TitlebarLeft'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TitlebarRight');var $nesting=[self].concat($parent_nesting),$TitlebarRight__before_create$215;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TitlebarRight__before_create$215=function $$_before_create(){var $iter=$TitlebarRight__before_create$215.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TitlebarRight__before_create$215.$$p=null;$send2(self,$find_super(self,'_before_create',$TitlebarRight__before_create$215,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("title-bar-right")['$=='](true)){return nil}else{$writer=["title-bar-right",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TitlebarRight__before_create$215.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.titlebar.right",$$$($$$($$$('::','GxG'),'Gui'),'TitlebarRight'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Topbar');var $nesting=[self].concat($parent_nesting),$Topbar__before_create$216;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Topbar__before_create$216=function $$_before_create(){var $iter=$Topbar__before_create$216.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Topbar__before_create$216.$$p=null;$send2(self,$find_super(self,'_before_create',$Topbar__before_create$216,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("top-bar")['$=='](true)){return nil}else{$writer=["top-bar",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Topbar__before_create$216.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.topbar",$$$($$$($$$('::','GxG'),'Gui'),'Topbar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TopbarLeft');var $nesting=[self].concat($parent_nesting),$TopbarLeft__before_create$217;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TopbarLeft__before_create$217=function $$_before_create(){var $iter=$TopbarLeft__before_create$217.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TopbarLeft__before_create$217.$$p=null;$send2(self,$find_super(self,'_before_create',$TopbarLeft__before_create$217,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("top-bar-left")['$=='](true)){return nil}else{$writer=["top-bar-left",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TopbarLeft__before_create$217.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.topbar.left",$$$($$$($$$('::','GxG'),'Gui'),'TopbarLeft'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TopbarRight');var $nesting=[self].concat($parent_nesting),$TopbarRight__before_create$218;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TopbarRight__before_create$218=function $$_before_create(){var $iter=$TopbarRight__before_create$218.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TopbarRight__before_create$218.$$p=null;$send2(self,$find_super(self,'_before_create',$TopbarRight__before_create$218,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("top-bar-right")['$=='](true)){return nil}else{$writer=["top-bar-right",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TopbarRight__before_create$218.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);return $$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.topbar.right",$$$($$$($$$('::','GxG'),'Gui'),'TopbarRight'));})($nesting[0],$nesting)})($nesting[0],$nesting);};Opal.modules["web/gxg_layout"]=function(Opal){function $rb_minus(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs-rhs:lhs['$-'](rhs);} +var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$,$module=Opal.module,$klass=Opal.klass,$send2=Opal.send2,$find_super=Opal.find_super,$send=Opal.send,$hash2=Opal.hash2,$truthy=Opal.truthy;Opal.add_stubs(['$to_s','$clone','$[]=','$-','$values','$children','$>','$size','$shift','$==','$domtype','$to_sym','$title','$value','$each','$<<','$delete','$[]','$on','$index','$keys','$component_class','$is_any?','$is_a?','$component_registered?','$!=','$log_warn','$inspect','$register_component_class','$include?','$new','$build_components','$page','$title=','$find_object_by','$set_text','$add_child','$+','$set_attribute','$uuid','$set_script','$find_descendant','$raise','$downcase','$value=','$private','$log_error']);(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);return(function($base,$parent_nesting){var self=$module($base,'Gui');var $nesting=[self].concat($parent_nesting),$Gui_component_class$126,$Gui_class_component$127,$Gui_component_registered$ques$128,$Gui_register_component_class$129;(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Page');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'Page'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Abbreviation');var $nesting=[self].concat($parent_nesting),$Abbreviation__before_create$1;self.$$prototype.title=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Abbreviation__before_create$1=function $$_before_create(){var $iter=$Abbreviation__before_create$1.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Abbreviation__before_create$1.$$p=null;$send2(self,$find_super(self,'_before_create',$Abbreviation__before_create$1,false,true),'_before_create',[],null);self.domtype="abbr";$writer=["title",self.title.$clone().$to_s()];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$Abbreviation__before_create$1.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Address');var $nesting=[self].concat($parent_nesting),$Address__before_create$2;return(Opal.def(self,'$_before_create',$Address__before_create$2=function $$_before_create(){var $iter=$Address__before_create$2.$$p,$yield=$iter||nil,self=this;if($iter)$Address__before_create$2.$$p=null;$send2(self,$find_super(self,'_before_create',$Address__before_create$2,false,true),'_before_create',[],null);return(self.domtype="address");},$Address__before_create$2.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Area');var $nesting=[self].concat($parent_nesting),$Area__before_create$3;return(Opal.def(self,'$_before_create',$Area__before_create$3=function $$_before_create(){var $iter=$Area__before_create$3.$$p,$yield=$iter||nil,self=this;if($iter)$Area__before_create$3.$$p=null;$send2(self,$find_super(self,'_before_create',$Area__before_create$3,false,true),'_before_create',[],null);return(self.domtype="area");},$Area__before_create$3.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Bold');var $nesting=[self].concat($parent_nesting),$Bold__before_create$4;return(Opal.def(self,'$_before_create',$Bold__before_create$4=function $$_before_create(){var $iter=$Bold__before_create$4.$$p,$yield=$iter||nil,self=this;if($iter)$Bold__before_create$4.$$p=null;$send2(self,$find_super(self,'_before_create',$Bold__before_create$4,false,true),'_before_create',[],null);return(self.domtype="b");},$Bold__before_create$4.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Bdi');var $nesting=[self].concat($parent_nesting),$Bdi__before_create$5;return(Opal.def(self,'$_before_create',$Bdi__before_create$5=function $$_before_create(){var $iter=$Bdi__before_create$5.$$p,$yield=$iter||nil,self=this;if($iter)$Bdi__before_create$5.$$p=null;$send2(self,$find_super(self,'_before_create',$Bdi__before_create$5,false,true),'_before_create',[],null);return(self.domtype="bdi");},$Bdi__before_create$5.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Bdo');var $nesting=[self].concat($parent_nesting),$Bdo__before_create$6;return(Opal.def(self,'$_before_create',$Bdo__before_create$6=function $$_before_create(){var $iter=$Bdo__before_create$6.$$p,$yield=$iter||nil,self=this;if($iter)$Bdo__before_create$6.$$p=null;$send2(self,$find_super(self,'_before_create',$Bdo__before_create$6,false,true),'_before_create',[],null);return(self.domtype="bdo");},$Bdo__before_create$6.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockQuote');var $nesting=[self].concat($parent_nesting),$BlockQuote__before_create$7;return(Opal.def(self,'$_before_create',$BlockQuote__before_create$7=function $$_before_create(){var $iter=$BlockQuote__before_create$7.$$p,$yield=$iter||nil,self=this;if($iter)$BlockQuote__before_create$7.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockQuote__before_create$7,false,true),'_before_create',[],null);return(self.domtype="blockquote");},$BlockQuote__before_create$7.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Break');var $nesting=[self].concat($parent_nesting),$Break__before_create$8;return(Opal.def(self,'$_before_create',$Break__before_create$8=function $$_before_create(){var $iter=$Break__before_create$8.$$p,$yield=$iter||nil,self=this;if($iter)$Break__before_create$8.$$p=null;$send2(self,$find_super(self,'_before_create',$Break__before_create$8,false,true),'_before_create',[],null);return(self.domtype="br");},$Break__before_create$8.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Caption');var $nesting=[self].concat($parent_nesting),$Caption__before_create$9;return(Opal.def(self,'$_before_create',$Caption__before_create$9=function $$_before_create(){var $iter=$Caption__before_create$9.$$p,$yield=$iter||nil,self=this;if($iter)$Caption__before_create$9.$$p=null;$send2(self,$find_super(self,'_before_create',$Caption__before_create$9,false,true),'_before_create',[],null);return(self.domtype="caption");},$Caption__before_create$9.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Cite');var $nesting=[self].concat($parent_nesting),$Cite__before_create$10;return(Opal.def(self,'$_before_create',$Cite__before_create$10=function $$_before_create(){var $iter=$Cite__before_create$10.$$p,$yield=$iter||nil,self=this;if($iter)$Cite__before_create$10.$$p=null;$send2(self,$find_super(self,'_before_create',$Cite__before_create$10,false,true),'_before_create',[],null);return(self.domtype="cite");},$Cite__before_create$10.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Code');var $nesting=[self].concat($parent_nesting),$Code__before_create$11;return(Opal.def(self,'$_before_create',$Code__before_create$11=function $$_before_create(){var $iter=$Code__before_create$11.$$p,$yield=$iter||nil,self=this;if($iter)$Code__before_create$11.$$p=null;$send2(self,$find_super(self,'_before_create',$Code__before_create$11,false,true),'_before_create',[],null);return(self.domtype="code");},$Code__before_create$11.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Column');var $nesting=[self].concat($parent_nesting),$Column__before_create$12;return(Opal.def(self,'$_before_create',$Column__before_create$12=function $$_before_create(){var $iter=$Column__before_create$12.$$p,$yield=$iter||nil,self=this;if($iter)$Column__before_create$12.$$p=null;$send2(self,$find_super(self,'_before_create',$Column__before_create$12,false,true),'_before_create',[],null);return(self.domtype="col");},$Column__before_create$12.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ColumnGroup');var $nesting=[self].concat($parent_nesting),$ColumnGroup__before_create$13;return(Opal.def(self,'$_before_create',$ColumnGroup__before_create$13=function $$_before_create(){var $iter=$ColumnGroup__before_create$13.$$p,$yield=$iter||nil,self=this;if($iter)$ColumnGroup__before_create$13.$$p=null;$send2(self,$find_super(self,'_before_create',$ColumnGroup__before_create$13,false,true),'_before_create',[],null);return(self.domtype="colgroup");},$ColumnGroup__before_create$13.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Data');var $nesting=[self].concat($parent_nesting),$Data__before_create$14;return(Opal.def(self,'$_before_create',$Data__before_create$14=function $$_before_create(){var $iter=$Data__before_create$14.$$p,$yield=$iter||nil,self=this;if($iter)$Data__before_create$14.$$p=null;$send2(self,$find_super(self,'_before_create',$Data__before_create$14,false,true),'_before_create',[],null);return(self.domtype="data");},$Data__before_create$14.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DataList');var $nesting=[self].concat($parent_nesting),$DataList__before_create$15;return(Opal.def(self,'$_before_create',$DataList__before_create$15=function $$_before_create(){var $iter=$DataList__before_create$15.$$p,$yield=$iter||nil,self=this;if($iter)$DataList__before_create$15.$$p=null;$send2(self,$find_super(self,'_before_create',$DataList__before_create$15,false,true),'_before_create',[],null);return(self.domtype="datalist");},$DataList__before_create$15.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Description');var $nesting=[self].concat($parent_nesting),$Description__before_create$16;return(Opal.def(self,'$_before_create',$Description__before_create$16=function $$_before_create(){var $iter=$Description__before_create$16.$$p,$yield=$iter||nil,self=this;if($iter)$Description__before_create$16.$$p=null;$send2(self,$find_super(self,'_before_create',$Description__before_create$16,false,true),'_before_create',[],null);return(self.domtype="dd");},$Description__before_create$16.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Deleted');var $nesting=[self].concat($parent_nesting),$Deleted__before_create$17;return(Opal.def(self,'$_before_create',$Deleted__before_create$17=function $$_before_create(){var $iter=$Deleted__before_create$17.$$p,$yield=$iter||nil,self=this;if($iter)$Deleted__before_create$17.$$p=null;$send2(self,$find_super(self,'_before_create',$Deleted__before_create$17,false,true),'_before_create',[],null);return(self.domtype="del");},$Deleted__before_create$17.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Details');var $nesting=[self].concat($parent_nesting),$Details__before_create$18;return(Opal.def(self,'$_before_create',$Details__before_create$18=function $$_before_create(){var $iter=$Details__before_create$18.$$p,$yield=$iter||nil,self=this;if($iter)$Details__before_create$18.$$p=null;$send2(self,$find_super(self,'_before_create',$Details__before_create$18,false,true),'_before_create',[],null);return(self.domtype="details");},$Details__before_create$18.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Dfn');var $nesting=[self].concat($parent_nesting),$Dfn__before_create$19;return(Opal.def(self,'$_before_create',$Dfn__before_create$19=function $$_before_create(){var $iter=$Dfn__before_create$19.$$p,$yield=$iter||nil,self=this;if($iter)$Dfn__before_create$19.$$p=null;$send2(self,$find_super(self,'_before_create',$Dfn__before_create$19,false,true),'_before_create',[],null);return(self.domtype="dfn");},$Dfn__before_create$19.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Dialog');var $nesting=[self].concat($parent_nesting),$Dialog__before_create$20;return(Opal.def(self,'$_before_create',$Dialog__before_create$20=function $$_before_create(){var $iter=$Dialog__before_create$20.$$p,$yield=$iter||nil,self=this;if($iter)$Dialog__before_create$20.$$p=null;$send2(self,$find_super(self,'_before_create',$Dialog__before_create$20,false,true),'_before_create',[],null);return(self.domtype="dialog");},$Dialog__before_create$20.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Division');var $nesting=[self].concat($parent_nesting),$Division__before_create$21;return(Opal.def(self,'$_before_create',$Division__before_create$21=function $$_before_create(){var $iter=$Division__before_create$21.$$p,$yield=$iter||nil,self=this;if($iter)$Division__before_create$21.$$p=null;$send2(self,$find_super(self,'_before_create',$Division__before_create$21,false,true),'_before_create',[],null);return(self.domtype="div");},$Division__before_create$21.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DescriptionList');var $nesting=[self].concat($parent_nesting),$DescriptionList__before_create$22;return(Opal.def(self,'$_before_create',$DescriptionList__before_create$22=function $$_before_create(){var $iter=$DescriptionList__before_create$22.$$p,$yield=$iter||nil,self=this;if($iter)$DescriptionList__before_create$22.$$p=null;$send2(self,$find_super(self,'_before_create',$DescriptionList__before_create$22,false,true),'_before_create',[],null);return(self.domtype="dl");},$DescriptionList__before_create$22.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DescriptionTerm');var $nesting=[self].concat($parent_nesting),$DescriptionTerm__before_create$23;return(Opal.def(self,'$_before_create',$DescriptionTerm__before_create$23=function $$_before_create(){var $iter=$DescriptionTerm__before_create$23.$$p,$yield=$iter||nil,self=this;if($iter)$DescriptionTerm__before_create$23.$$p=null;$send2(self,$find_super(self,'_before_create',$DescriptionTerm__before_create$23,false,true),'_before_create',[],null);return(self.domtype="dt");},$DescriptionTerm__before_create$23.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Emphasis');var $nesting=[self].concat($parent_nesting),$Emphasis__before_create$24;return(Opal.def(self,'$_before_create',$Emphasis__before_create$24=function $$_before_create(){var $iter=$Emphasis__before_create$24.$$p,$yield=$iter||nil,self=this;if($iter)$Emphasis__before_create$24.$$p=null;$send2(self,$find_super(self,'_before_create',$Emphasis__before_create$24,false,true),'_before_create',[],null);return(self.domtype="em");},$Emphasis__before_create$24.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Figure');var $nesting=[self].concat($parent_nesting),$Figure__before_create$25;return(Opal.def(self,'$_before_create',$Figure__before_create$25=function $$_before_create(){var $iter=$Figure__before_create$25.$$p,$yield=$iter||nil,self=this;if($iter)$Figure__before_create$25.$$p=null;$send2(self,$find_super(self,'_before_create',$Figure__before_create$25,false,true),'_before_create',[],null);return(self.domtype="figure");},$Figure__before_create$25.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FigureCaption');var $nesting=[self].concat($parent_nesting),$FigureCaption__before_create$26;return(Opal.def(self,'$_before_create',$FigureCaption__before_create$26=function $$_before_create(){var $iter=$FigureCaption__before_create$26.$$p,$yield=$iter||nil,self=this;if($iter)$FigureCaption__before_create$26.$$p=null;$send2(self,$find_super(self,'_before_create',$FigureCaption__before_create$26,false,true),'_before_create',[],null);return(self.domtype="figcaption");},$FigureCaption__before_create$26.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ThemeDivider');var $nesting=[self].concat($parent_nesting),$ThemeDivider__before_create$27;return(Opal.def(self,'$_before_create',$ThemeDivider__before_create$27=function $$_before_create(){var $iter=$ThemeDivider__before_create$27.$$p,$yield=$iter||nil,self=this;if($iter)$ThemeDivider__before_create$27.$$p=null;$send2(self,$find_super(self,'_before_create',$ThemeDivider__before_create$27,false,true),'_before_create',[],null);return(self.domtype="hr");},$ThemeDivider__before_create$27.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Italic');var $nesting=[self].concat($parent_nesting),$Italic__before_create$28;return(Opal.def(self,'$_before_create',$Italic__before_create$28=function $$_before_create(){var $iter=$Italic__before_create$28.$$p,$yield=$iter||nil,self=this;if($iter)$Italic__before_create$28.$$p=null;$send2(self,$find_super(self,'_before_create',$Italic__before_create$28,false,true),'_before_create',[],null);return(self.domtype="i");},$Italic__before_create$28.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'InlineFrame');var $nesting=[self].concat($parent_nesting),$InlineFrame__before_create$29;return(Opal.def(self,'$_before_create',$InlineFrame__before_create$29=function $$_before_create(){var $iter=$InlineFrame__before_create$29.$$p,$yield=$iter||nil,self=this;if($iter)$InlineFrame__before_create$29.$$p=null;$send2(self,$find_super(self,'_before_create',$InlineFrame__before_create$29,false,true),'_before_create',[],null);return(self.domtype="iframe");},$InlineFrame__before_create$29.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Insertion');var $nesting=[self].concat($parent_nesting),$Insertion__before_create$30;return(Opal.def(self,'$_before_create',$Insertion__before_create$30=function $$_before_create(){var $iter=$Insertion__before_create$30.$$p,$yield=$iter||nil,self=this;if($iter)$Insertion__before_create$30.$$p=null;$send2(self,$find_super(self,'_before_create',$Insertion__before_create$30,false,true),'_before_create',[],null);return(self.domtype="ins");},$Insertion__before_create$30.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'KeyboardKey');var $nesting=[self].concat($parent_nesting),$KeyboardKey__before_create$31;return(Opal.def(self,'$_before_create',$KeyboardKey__before_create$31=function $$_before_create(){var $iter=$KeyboardKey__before_create$31.$$p,$yield=$iter||nil,self=this;if($iter)$KeyboardKey__before_create$31.$$p=null;$send2(self,$find_super(self,'_before_create',$KeyboardKey__before_create$31,false,true),'_before_create',[],null);return(self.domtype="kbd");},$KeyboardKey__before_create$31.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Map');var $nesting=[self].concat($parent_nesting),$Map__before_create$32;return(Opal.def(self,'$_before_create',$Map__before_create$32=function $$_before_create(){var $iter=$Map__before_create$32.$$p,$yield=$iter||nil,self=this;if($iter)$Map__before_create$32.$$p=null;$send2(self,$find_super(self,'_before_create',$Map__before_create$32,false,true),'_before_create',[],null);return(self.domtype="map");},$Map__before_create$32.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Mark');var $nesting=[self].concat($parent_nesting),$Mark__before_create$33;return(Opal.def(self,'$_before_create',$Mark__before_create$33=function $$_before_create(){var $iter=$Mark__before_create$33.$$p,$yield=$iter||nil,self=this;if($iter)$Mark__before_create$33.$$p=null;$send2(self,$find_super(self,'_before_create',$Mark__before_create$33,false,true),'_before_create',[],null);return(self.domtype="mark");},$Mark__before_create$33.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Meter');var $nesting=[self].concat($parent_nesting),$Meter__before_create$34;return(Opal.def(self,'$_before_create',$Meter__before_create$34=function $$_before_create(){var $iter=$Meter__before_create$34.$$p,$yield=$iter||nil,self=this;if($iter)$Meter__before_create$34.$$p=null;$send2(self,$find_super(self,'_before_create',$Meter__before_create$34,false,true),'_before_create',[],null);return(self.domtype="meter");},$Meter__before_create$34.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'NoScript');var $nesting=[self].concat($parent_nesting),$NoScript__before_create$35;return(Opal.def(self,'$_before_create',$NoScript__before_create$35=function $$_before_create(){var $iter=$NoScript__before_create$35.$$p,$yield=$iter||nil,self=this;if($iter)$NoScript__before_create$35.$$p=null;$send2(self,$find_super(self,'_before_create',$NoScript__before_create$35,false,true),'_before_create',[],null);return(self.domtype="noscript");},$NoScript__before_create$35.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Object');var $nesting=[self].concat($parent_nesting),$Object__before_create$36;return(Opal.def(self,'$_before_create',$Object__before_create$36=function $$_before_create(){var $iter=$Object__before_create$36.$$p,$yield=$iter||nil,self=this;if($iter)$Object__before_create$36.$$p=null;$send2(self,$find_super(self,'_before_create',$Object__before_create$36,false,true),'_before_create',[],null);return(self.domtype="object");},$Object__before_create$36.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OptionGroup');var $nesting=[self].concat($parent_nesting),$OptionGroup__before_create$37;return(Opal.def(self,'$_before_create',$OptionGroup__before_create$37=function $$_before_create(){var $iter=$OptionGroup__before_create$37.$$p,$yield=$iter||nil,self=this;if($iter)$OptionGroup__before_create$37.$$p=null;$send2(self,$find_super(self,'_before_create',$OptionGroup__before_create$37,false,true),'_before_create',[],null);return(self.domtype="optgroup");},$OptionGroup__before_create$37.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Parameter');var $nesting=[self].concat($parent_nesting),$Parameter__before_create$38;return(Opal.def(self,'$_before_create',$Parameter__before_create$38=function $$_before_create(){var $iter=$Parameter__before_create$38.$$p,$yield=$iter||nil,self=this;if($iter)$Parameter__before_create$38.$$p=null;$send2(self,$find_super(self,'_before_create',$Parameter__before_create$38,false,true),'_before_create',[],null);return(self.domtype="param");},$Parameter__before_create$38.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Picture');var $nesting=[self].concat($parent_nesting),$Picture__before_create$39;return(Opal.def(self,'$_before_create',$Picture__before_create$39=function $$_before_create(){var $iter=$Picture__before_create$39.$$p,$yield=$iter||nil,self=this;if($iter)$Picture__before_create$39.$$p=null;$send2(self,$find_super(self,'_before_create',$Picture__before_create$39,false,true),'_before_create',[],null);return(self.domtype="picture");},$Picture__before_create$39.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Preformatted');var $nesting=[self].concat($parent_nesting),$Preformatted__before_create$40;return(Opal.def(self,'$_before_create',$Preformatted__before_create$40=function $$_before_create(){var $iter=$Preformatted__before_create$40.$$p,$yield=$iter||nil,self=this;if($iter)$Preformatted__before_create$40.$$p=null;$send2(self,$find_super(self,'_before_create',$Preformatted__before_create$40,false,true),'_before_create',[],null);return(self.domtype="pre");},$Preformatted__before_create$40.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Progress');var $nesting=[self].concat($parent_nesting),$Progress__before_create$41;return(Opal.def(self,'$_before_create',$Progress__before_create$41=function $$_before_create(){var $iter=$Progress__before_create$41.$$p,$yield=$iter||nil,self=this;if($iter)$Progress__before_create$41.$$p=null;$send2(self,$find_super(self,'_before_create',$Progress__before_create$41,false,true),'_before_create',[],null);return(self.domtype="progress");},$Progress__before_create$41.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Quotation');var $nesting=[self].concat($parent_nesting),$Quotation__before_create$42;return(Opal.def(self,'$_before_create',$Quotation__before_create$42=function $$_before_create(){var $iter=$Quotation__before_create$42.$$p,$yield=$iter||nil,self=this;if($iter)$Quotation__before_create$42.$$p=null;$send2(self,$find_super(self,'_before_create',$Quotation__before_create$42,false,true),'_before_create',[],null);return(self.domtype="q");},$Quotation__before_create$42.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'StrikeThrough');var $nesting=[self].concat($parent_nesting),$StrikeThrough__before_create$43;return(Opal.def(self,'$_before_create',$StrikeThrough__before_create$43=function $$_before_create(){var $iter=$StrikeThrough__before_create$43.$$p,$yield=$iter||nil,self=this;if($iter)$StrikeThrough__before_create$43.$$p=null;$send2(self,$find_super(self,'_before_create',$StrikeThrough__before_create$43,false,true),'_before_create',[],null);return(self.domtype="s");},$StrikeThrough__before_create$43.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Sample');var $nesting=[self].concat($parent_nesting),$Sample__before_create$44;return(Opal.def(self,'$_before_create',$Sample__before_create$44=function $$_before_create(){var $iter=$Sample__before_create$44.$$p,$yield=$iter||nil,self=this;if($iter)$Sample__before_create$44.$$p=null;$send2(self,$find_super(self,'_before_create',$Sample__before_create$44,false,true),'_before_create',[],null);return(self.domtype="samp");},$Sample__before_create$44.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Source');var $nesting=[self].concat($parent_nesting),$Source__before_create$45;return(Opal.def(self,'$_before_create',$Source__before_create$45=function $$_before_create(){var $iter=$Source__before_create$45.$$p,$yield=$iter||nil,self=this;if($iter)$Source__before_create$45.$$p=null;$send2(self,$find_super(self,'_before_create',$Source__before_create$45,false,true),'_before_create',[],null);return(self.domtype="source");},$Source__before_create$45.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Strong');var $nesting=[self].concat($parent_nesting),$Strong__before_create$46;return(Opal.def(self,'$_before_create',$Strong__before_create$46=function $$_before_create(){var $iter=$Strong__before_create$46.$$p,$yield=$iter||nil,self=this;if($iter)$Strong__before_create$46.$$p=null;$send2(self,$find_super(self,'_before_create',$Strong__before_create$46,false,true),'_before_create',[],null);return(self.domtype="strong");},$Strong__before_create$46.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Small');var $nesting=[self].concat($parent_nesting),$Small__before_create$47;return(Opal.def(self,'$_before_create',$Small__before_create$47=function $$_before_create(){var $iter=$Small__before_create$47.$$p,$yield=$iter||nil,self=this;if($iter)$Small__before_create$47.$$p=null;$send2(self,$find_super(self,'_before_create',$Small__before_create$47,false,true),'_before_create',[],null);return(self.domtype="small");},$Small__before_create$47.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Style');var $nesting=[self].concat($parent_nesting),$Style__before_create$48;return(Opal.def(self,'$_before_create',$Style__before_create$48=function $$_before_create(){var $iter=$Style__before_create$48.$$p,$yield=$iter||nil,self=this;if($iter)$Style__before_create$48.$$p=null;$send2(self,$find_super(self,'_before_create',$Style__before_create$48,false,true),'_before_create',[],null);return(self.domtype="style");},$Style__before_create$48.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SubScript');var $nesting=[self].concat($parent_nesting),$SubScript__before_create$49;return(Opal.def(self,'$_before_create',$SubScript__before_create$49=function $$_before_create(){var $iter=$SubScript__before_create$49.$$p,$yield=$iter||nil,self=this;if($iter)$SubScript__before_create$49.$$p=null;$send2(self,$find_super(self,'_before_create',$SubScript__before_create$49,false,true),'_before_create',[],null);return(self.domtype="sub");},$SubScript__before_create$49.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Summary');var $nesting=[self].concat($parent_nesting),$Summary__before_create$50;return(Opal.def(self,'$_before_create',$Summary__before_create$50=function $$_before_create(){var $iter=$Summary__before_create$50.$$p,$yield=$iter||nil,self=this;if($iter)$Summary__before_create$50.$$p=null;$send2(self,$find_super(self,'_before_create',$Summary__before_create$50,false,true),'_before_create',[],null);return(self.domtype="summary");},$Summary__before_create$50.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SuperScript');var $nesting=[self].concat($parent_nesting),$SuperScript__before_create$51;return(Opal.def(self,'$_before_create',$SuperScript__before_create$51=function $$_before_create(){var $iter=$SuperScript__before_create$51.$$p,$yield=$iter||nil,self=this;if($iter)$SuperScript__before_create$51.$$p=null;$send2(self,$find_super(self,'_before_create',$SuperScript__before_create$51,false,true),'_before_create',[],null);return(self.domtype="sup");},$SuperScript__before_create$51.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Svg');var $nesting=[self].concat($parent_nesting),$Svg__before_create$52;return(Opal.def(self,'$_before_create',$Svg__before_create$52=function $$_before_create(){var $iter=$Svg__before_create$52.$$p,$yield=$iter||nil,self=this;if($iter)$Svg__before_create$52.$$p=null;$send2(self,$find_super(self,'_before_create',$Svg__before_create$52,false,true),'_before_create',[],null);return(self.domtype="svg");},$Svg__before_create$52.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Template');var $nesting=[self].concat($parent_nesting),$Template__before_create$53;return(Opal.def(self,'$_before_create',$Template__before_create$53=function $$_before_create(){var $iter=$Template__before_create$53.$$p,$yield=$iter||nil,self=this;if($iter)$Template__before_create$53.$$p=null;$send2(self,$find_super(self,'_before_create',$Template__before_create$53,false,true),'_before_create',[],null);return(self.domtype="template");},$Template__before_create$53.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Time');var $nesting=[self].concat($parent_nesting),$Time__before_create$54;return(Opal.def(self,'$_before_create',$Time__before_create$54=function $$_before_create(){var $iter=$Time__before_create$54.$$p,$yield=$iter||nil,self=this;if($iter)$Time__before_create$54.$$p=null;$send2(self,$find_super(self,'_before_create',$Time__before_create$54,false,true),'_before_create',[],null);return(self.domtype="time");},$Time__before_create$54.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Track');var $nesting=[self].concat($parent_nesting),$Track__before_create$55;return(Opal.def(self,'$_before_create',$Track__before_create$55=function $$_before_create(){var $iter=$Track__before_create$55.$$p,$yield=$iter||nil,self=this;if($iter)$Track__before_create$55.$$p=null;$send2(self,$find_super(self,'_before_create',$Track__before_create$55,false,true),'_before_create',[],null);return(self.domtype="track");},$Track__before_create$55.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Misspelled');var $nesting=[self].concat($parent_nesting),$Misspelled__before_create$56;return(Opal.def(self,'$_before_create',$Misspelled__before_create$56=function $$_before_create(){var $iter=$Misspelled__before_create$56.$$p,$yield=$iter||nil,self=this;if($iter)$Misspelled__before_create$56.$$p=null;$send2(self,$find_super(self,'_before_create',$Misspelled__before_create$56,false,true),'_before_create',[],null);return(self.domtype="u");},$Misspelled__before_create$56.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Variable');var $nesting=[self].concat($parent_nesting),$Variable__before_create$57;return(Opal.def(self,'$_before_create',$Variable__before_create$57=function $$_before_create(){var $iter=$Variable__before_create$57.$$p,$yield=$iter||nil,self=this;if($iter)$Variable__before_create$57.$$p=null;$send2(self,$find_super(self,'_before_create',$Variable__before_create$57,false,true),'_before_create',[],null);return(self.domtype="var");},$Variable__before_create$57.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'WordBreak');var $nesting=[self].concat($parent_nesting),$WordBreak__before_create$58;return(Opal.def(self,'$_before_create',$WordBreak__before_create$58=function $$_before_create(){var $iter=$WordBreak__before_create$58.$$p,$yield=$iter||nil,self=this;if($iter)$WordBreak__before_create$58.$$p=null;$send2(self,$find_super(self,'_before_create',$WordBreak__before_create$58,false,true),'_before_create',[],null);return(self.domtype="wbr");},$WordBreak__before_create$58.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header');var $nesting=[self].concat($parent_nesting),$Header__before_create$59;return(Opal.def(self,'$_before_create',$Header__before_create$59=function $$_before_create(){var $iter=$Header__before_create$59.$$p,$yield=$iter||nil,self=this;if($iter)$Header__before_create$59.$$p=null;$send2(self,$find_super(self,'_before_create',$Header__before_create$59,false,true),'_before_create',[],null);return(self.domtype="header");},$Header__before_create$59.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Navigation');var $nesting=[self].concat($parent_nesting),$Navigation__before_create$60;return(Opal.def(self,'$_before_create',$Navigation__before_create$60=function $$_before_create(){var $iter=$Navigation__before_create$60.$$p,$yield=$iter||nil,self=this;if($iter)$Navigation__before_create$60.$$p=null;$send2(self,$find_super(self,'_before_create',$Navigation__before_create$60,false,true),'_before_create',[],null);return(self.domtype="nav");},$Navigation__before_create$60.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Main');var $nesting=[self].concat($parent_nesting),$Main__before_create$61;return(Opal.def(self,'$_before_create',$Main__before_create$61=function $$_before_create(){var $iter=$Main__before_create$61.$$p,$yield=$iter||nil,self=this;if($iter)$Main__before_create$61.$$p=null;$send2(self,$find_super(self,'_before_create',$Main__before_create$61,false,true),'_before_create',[],null);return(self.domtype="main");},$Main__before_create$61.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Section');var $nesting=[self].concat($parent_nesting),$Section__before_create$62;return(Opal.def(self,'$_before_create',$Section__before_create$62=function $$_before_create(){var $iter=$Section__before_create$62.$$p,$yield=$iter||nil,self=this;if($iter)$Section__before_create$62.$$p=null;$send2(self,$find_super(self,'_before_create',$Section__before_create$62,false,true),'_before_create',[],null);return(self.domtype="section");},$Section__before_create$62.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Article');var $nesting=[self].concat($parent_nesting),$Article__before_create$63;return(Opal.def(self,'$_before_create',$Article__before_create$63=function $$_before_create(){var $iter=$Article__before_create$63.$$p,$yield=$iter||nil,self=this;if($iter)$Article__before_create$63.$$p=null;$send2(self,$find_super(self,'_before_create',$Article__before_create$63,false,true),'_before_create',[],null);return(self.domtype="article");},$Article__before_create$63.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Aside');var $nesting=[self].concat($parent_nesting),$Aside__before_create$64;return(Opal.def(self,'$_before_create',$Aside__before_create$64=function $$_before_create(){var $iter=$Aside__before_create$64.$$p,$yield=$iter||nil,self=this;if($iter)$Aside__before_create$64.$$p=null;$send2(self,$find_super(self,'_before_create',$Aside__before_create$64,false,true),'_before_create',[],null);return(self.domtype="aside");},$Aside__before_create$64.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Footer');var $nesting=[self].concat($parent_nesting),$Footer__before_create$65;return(Opal.def(self,'$_before_create',$Footer__before_create$65=function $$_before_create(){var $iter=$Footer__before_create$65.$$p,$yield=$iter||nil,self=this;if($iter)$Footer__before_create$65.$$p=null;$send2(self,$find_super(self,'_before_create',$Footer__before_create$65,false,true),'_before_create',[],null);return(self.domtype="footer");},$Footer__before_create$65.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Form');var $nesting=[self].concat($parent_nesting),$Form__before_create$66,$Form_form_data$67;Opal.def(self,'$_before_create',$Form__before_create$66=function $$_before_create(){var $iter=$Form__before_create$66.$$p,$yield=$iter||nil,self=this;if($iter)$Form__before_create$66.$$p=null;$send2(self,$find_super(self,'_before_create',$Form__before_create$66,false,true),'_before_create',[],null);return(self.domtype="div");},$Form__before_create$66.$$arity=0);return(Opal.def(self,'$form_data',$Form_form_data$67=function $$form_data(){var $a,$$68,self=this,result=nil,search_queue=nil,entry=nil,$writer=nil;result=$hash2([],{});search_queue=self.$children().$values();while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry)){if(entry.$domtype()['$==']("input")){$writer=[entry.$title().$to_s().$to_sym(),entry.$value()];$send(result,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];}else{$send(entry.$children().$values(),'each',[],($$68=function(the_child){var self=$$68.$$s==null?this:$$68.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$68.$$s=self,$$68.$$arity=1,$$68))}};};return result;},$Form_form_data$67.$$arity=0),nil)&&'form_data';})($nesting[0],$$$($$$($$$($$($nesting,'GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ButtonInput');var $nesting=[self].concat($parent_nesting),$ButtonInput__before_create$69;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ButtonInput__before_create$69=function $$_before_create(){var $iter=$ButtonInput__before_create$69.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ButtonInput__before_create$69.$$p=null;$send2(self,$find_super(self,'_before_create',$ButtonInput__before_create$69,false,true),'_before_create',[],null);$writer=["type","button"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$ButtonInput__before_create$69.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SubmitButton');var $nesting=[self].concat($parent_nesting),$SubmitButton__before_create$70;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$SubmitButton__before_create$70=function $$_before_create(){var $iter=$SubmitButton__before_create$70.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$SubmitButton__before_create$70.$$p=null;$send2(self,$find_super(self,'_before_create',$SubmitButton__before_create$70,false,true),'_before_create',[],null);$writer=["type","submit"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$SubmitButton__before_create$70.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Block');var $nesting=[self].concat($parent_nesting),$Block__before_create$71;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Block__before_create$71=function $$_before_create(){var $iter=$Block__before_create$71.$$p,$yield=$iter||nil,self=this;if($iter)$Block__before_create$71.$$p=null;$send2(self,$find_super(self,'_before_create',$Block__before_create$71,false,true),'_before_create',[],null);self.domtype="div";self.options.$delete("type");return true;},$Block__before_create$71.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'CheckBox');var $nesting=[self].concat($parent_nesting),$CheckBox__before_create$72;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$CheckBox__before_create$72=function $$_before_create(){var $iter=$CheckBox__before_create$72.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$CheckBox__before_create$72.$$p=null;$send2(self,$find_super(self,'_before_create',$CheckBox__before_create$72,false,true),'_before_create',[],null);$writer=["type","checkbox"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$CheckBox__before_create$72.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseClickableElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Image');var $nesting=[self].concat($parent_nesting),$Image__before_create$73;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Image__before_create$73=function $$_before_create(){var $iter=$Image__before_create$73.$$p,$yield=$iter||nil,self=this,$writer=nil,$ret_or_1=nil;if($iter)$Image__before_create$73.$$p=null;$send2(self,$find_super(self,'_before_create',$Image__before_create$73,false,true),'_before_create',[],null);self.domtype="image";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(($ret_or_1=self.options['$[]']("alt")))){return $ret_or_1}else{$writer=["alt",self.options['$[]']("src")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Image__before_create$73.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Video');var $nesting=[self].concat($parent_nesting),$Video__before_create$74;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Video__before_create$74=function $$_before_create(){var $iter=$Video__before_create$74.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Video__before_create$74.$$p=null;$send2(self,$find_super(self,'_before_create',$Video__before_create$74,false,true),'_before_create',[],null);self.domtype="video";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Video__before_create$74.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Audio');var $nesting=[self].concat($parent_nesting),$Audio__before_create$75;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Audio__before_create$75=function $$_before_create(){var $iter=$Audio__before_create$75.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Audio__before_create$75.$$p=null;$send2(self,$find_super(self,'_before_create',$Audio__before_create$75,false,true),'_before_create',[],null);self.domtype="audio";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Audio__before_create$75.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Canvas');var $nesting=[self].concat($parent_nesting),$Canvas__before_create$76;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Canvas__before_create$76=function $$_before_create(){var $iter=$Canvas__before_create$76.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Canvas__before_create$76.$$p=null;$send2(self,$find_super(self,'_before_create',$Canvas__before_create$76,false,true),'_before_create',[],null);self.domtype="canvas";if($truthy(self.options['$[]']("source"))){$writer=["src",self.options.$delete("source")];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Canvas__before_create$76.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'HiddenInput');var $nesting=[self].concat($parent_nesting),$HiddenInput__before_create$77;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$HiddenInput__before_create$77=function $$_before_create(){var $iter=$HiddenInput__before_create$77.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$HiddenInput__before_create$77.$$p=null;$send2(self,$find_super(self,'_before_create',$HiddenInput__before_create$77,false,true),'_before_create',[],null);$writer=["type","hidden"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$HiddenInput__before_create$77.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FileInput');var $nesting=[self].concat($parent_nesting),$FileInput__before_create$78;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$FileInput__before_create$78=function $$_before_create(){var $iter=$FileInput__before_create$78.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FileInput__before_create$78.$$p=null;$send2(self,$find_super(self,'_before_create',$FileInput__before_create$78,false,true),'_before_create',[],null);$writer=["type","file"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$FileInput__before_create$78.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TextInput');var $nesting=[self].concat($parent_nesting),$TextInput__before_create$79;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$TextInput__before_create$79=function $$_before_create(){var $iter=$TextInput__before_create$79.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TextInput__before_create$79.$$p=null;$send2(self,$find_super(self,'_before_create',$TextInput__before_create$79,false,true),'_before_create',[],null);$writer=["type","text"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$TextInput__before_create$79.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'PasswordInput');var $nesting=[self].concat($parent_nesting),$PasswordInput__before_create$80;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$PasswordInput__before_create$80=function $$_before_create(){var $iter=$PasswordInput__before_create$80.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$PasswordInput__before_create$80.$$p=null;$send2(self,$find_super(self,'_before_create',$PasswordInput__before_create$80,false,true),'_before_create',[],null);$writer=["type","password"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$PasswordInput__before_create$80.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ResetInput');var $nesting=[self].concat($parent_nesting),$ResetInput__before_create$81;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ResetInput__before_create$81=function $$_before_create(){var $iter=$ResetInput__before_create$81.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ResetInput__before_create$81.$$p=null;$send2(self,$find_super(self,'_before_create',$ResetInput__before_create$81,false,true),'_before_create',[],null);$writer=["type","reset"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$ResetInput__before_create$81.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'RadioButton');var $nesting=[self].concat($parent_nesting),$RadioButton__before_create$82;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$RadioButton__before_create$82=function $$_before_create(){var $iter=$RadioButton__before_create$82.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$RadioButton__before_create$82.$$p=null;$send2(self,$find_super(self,'_before_create',$RadioButton__before_create$82,false,true),'_before_create',[],null);$writer=["type","radio"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$RadioButton__before_create$82.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ColorPicker');var $nesting=[self].concat($parent_nesting),$ColorPicker__before_create$83;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ColorPicker__before_create$83=function $$_before_create(){var $iter=$ColorPicker__before_create$83.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ColorPicker__before_create$83.$$p=null;$send2(self,$find_super(self,'_before_create',$ColorPicker__before_create$83,false,true),'_before_create',[],null);$writer=["type","color"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$ColorPicker__before_create$83.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DatePicker');var $nesting=[self].concat($parent_nesting),$DatePicker__before_create$84;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$DatePicker__before_create$84=function $$_before_create(){var $iter=$DatePicker__before_create$84.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DatePicker__before_create$84.$$p=null;$send2(self,$find_super(self,'_before_create',$DatePicker__before_create$84,false,true),'_before_create',[],null);$writer=["type","date"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$DatePicker__before_create$84.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DateTimeLocal');var $nesting=[self].concat($parent_nesting),$DateTimeLocal__before_create$85;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$DateTimeLocal__before_create$85=function $$_before_create(){var $iter=$DateTimeLocal__before_create$85.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DateTimeLocal__before_create$85.$$p=null;$send2(self,$find_super(self,'_before_create',$DateTimeLocal__before_create$85,false,true),'_before_create',[],null);$writer=["type","datetime-local"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$DateTimeLocal__before_create$85.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'EmailInput');var $nesting=[self].concat($parent_nesting),$EmailInput__before_create$86;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$EmailInput__before_create$86=function $$_before_create(){var $iter=$EmailInput__before_create$86.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$EmailInput__before_create$86.$$p=null;$send2(self,$find_super(self,'_before_create',$EmailInput__before_create$86,false,true),'_before_create',[],null);$writer=["type","email"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$EmailInput__before_create$86.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MonthPicker');var $nesting=[self].concat($parent_nesting),$MonthPicker__before_create$87;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$MonthPicker__before_create$87=function $$_before_create(){var $iter=$MonthPicker__before_create$87.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$MonthPicker__before_create$87.$$p=null;$send2(self,$find_super(self,'_before_create',$MonthPicker__before_create$87,false,true),'_before_create',[],null);$writer=["type","month"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$MonthPicker__before_create$87.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'NumberInput');var $nesting=[self].concat($parent_nesting),$NumberInput__before_create$88;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$NumberInput__before_create$88=function $$_before_create(){var $iter=$NumberInput__before_create$88.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$NumberInput__before_create$88.$$p=null;$send2(self,$find_super(self,'_before_create',$NumberInput__before_create$88,false,true),'_before_create',[],null);$writer=["type","number"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$NumberInput__before_create$88.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'RangeInput');var $nesting=[self].concat($parent_nesting),$RangeInput__before_create$89;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$RangeInput__before_create$89=function $$_before_create(){var $iter=$RangeInput__before_create$89.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$RangeInput__before_create$89.$$p=null;$send2(self,$find_super(self,'_before_create',$RangeInput__before_create$89,false,true),'_before_create',[],null);$writer=["type","range"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$RangeInput__before_create$89.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SearchInput');var $nesting=[self].concat($parent_nesting),$SearchInput__before_create$90;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$SearchInput__before_create$90=function $$_before_create(){var $iter=$SearchInput__before_create$90.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$SearchInput__before_create$90.$$p=null;$send2(self,$find_super(self,'_before_create',$SearchInput__before_create$90,false,true),'_before_create',[],null);$writer=["type","search"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$SearchInput__before_create$90.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'PhoneInput');var $nesting=[self].concat($parent_nesting),$PhoneInput__before_create$91;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$PhoneInput__before_create$91=function $$_before_create(){var $iter=$PhoneInput__before_create$91.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$PhoneInput__before_create$91.$$p=null;$send2(self,$find_super(self,'_before_create',$PhoneInput__before_create$91,false,true),'_before_create',[],null);$writer=["type","tel"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$PhoneInput__before_create$91.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TimePicker');var $nesting=[self].concat($parent_nesting),$TimePicker__before_create$92;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$TimePicker__before_create$92=function $$_before_create(){var $iter=$TimePicker__before_create$92.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TimePicker__before_create$92.$$p=null;$send2(self,$find_super(self,'_before_create',$TimePicker__before_create$92,false,true),'_before_create',[],null);$writer=["type","time"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$TimePicker__before_create$92.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'UrlInput');var $nesting=[self].concat($parent_nesting),$UrlInput__before_create$93;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$UrlInput__before_create$93=function $$_before_create(){var $iter=$UrlInput__before_create$93.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$UrlInput__before_create$93.$$p=null;$send2(self,$find_super(self,'_before_create',$UrlInput__before_create$93,false,true),'_before_create',[],null);$writer=["type","url"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$UrlInput__before_create$93.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'WeekPicker');var $nesting=[self].concat($parent_nesting),$WeekPicker__before_create$94;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$WeekPicker__before_create$94=function $$_before_create(){var $iter=$WeekPicker__before_create$94.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$WeekPicker__before_create$94.$$p=null;$send2(self,$find_super(self,'_before_create',$WeekPicker__before_create$94,false,true),'_before_create',[],null);$writer=["type","week"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$WeekPicker__before_create$94.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseInputElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Label');var $nesting=[self].concat($parent_nesting),$Label__before_create$95;return(Opal.def(self,'$_before_create',$Label__before_create$95=function $$_before_create(){var $iter=$Label__before_create$95.$$p,$yield=$iter||nil,self=this;if($iter)$Label__before_create$95.$$p=null;$send2(self,$find_super(self,'_before_create',$Label__before_create$95,false,true),'_before_create',[],null);return(self.domtype="label");},$Label__before_create$95.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TextArea');var $nesting=[self].concat($parent_nesting),$TextArea__before_create$96;return(Opal.def(self,'$_before_create',$TextArea__before_create$96=function $$_before_create(){var $iter=$TextArea__before_create$96.$$p,$yield=$iter||nil,self=this;if($iter)$TextArea__before_create$96.$$p=null;$send2(self,$find_super(self,'_before_create',$TextArea__before_create$96,false,true),'_before_create',[],null);return(self.domtype="textarea");},$TextArea__before_create$96.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Output');var $nesting=[self].concat($parent_nesting),$Output__before_create$97;return(Opal.def(self,'$_before_create',$Output__before_create$97=function $$_before_create(){var $iter=$Output__before_create$97.$$p,$yield=$iter||nil,self=this;if($iter)$Output__before_create$97.$$p=null;$send2(self,$find_super(self,'_before_create',$Output__before_create$97,false,true),'_before_create',[],null);return(self.domtype="output");},$Output__before_create$97.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Paragraph');var $nesting=[self].concat($parent_nesting),$Paragraph__before_create$98;return(Opal.def(self,'$_before_create',$Paragraph__before_create$98=function $$_before_create(){var $iter=$Paragraph__before_create$98.$$p,$yield=$iter||nil,self=this;if($iter)$Paragraph__before_create$98.$$p=null;$send2(self,$find_super(self,'_before_create',$Paragraph__before_create$98,false,true),'_before_create',[],null);return(self.domtype="p");},$Paragraph__before_create$98.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header1');var $nesting=[self].concat($parent_nesting),$Header1__before_create$99;return(Opal.def(self,'$_before_create',$Header1__before_create$99=function $$_before_create(){var $iter=$Header1__before_create$99.$$p,$yield=$iter||nil,self=this;if($iter)$Header1__before_create$99.$$p=null;$send2(self,$find_super(self,'_before_create',$Header1__before_create$99,false,true),'_before_create',[],null);return(self.domtype="h1");},$Header1__before_create$99.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header2');var $nesting=[self].concat($parent_nesting),$Header2__before_create$100;return(Opal.def(self,'$_before_create',$Header2__before_create$100=function $$_before_create(){var $iter=$Header2__before_create$100.$$p,$yield=$iter||nil,self=this;if($iter)$Header2__before_create$100.$$p=null;$send2(self,$find_super(self,'_before_create',$Header2__before_create$100,false,true),'_before_create',[],null);return(self.domtype="h2");},$Header2__before_create$100.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header3');var $nesting=[self].concat($parent_nesting),$Header3__before_create$101;return(Opal.def(self,'$_before_create',$Header3__before_create$101=function $$_before_create(){var $iter=$Header3__before_create$101.$$p,$yield=$iter||nil,self=this;if($iter)$Header3__before_create$101.$$p=null;$send2(self,$find_super(self,'_before_create',$Header3__before_create$101,false,true),'_before_create',[],null);return(self.domtype="h3");},$Header3__before_create$101.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header4');var $nesting=[self].concat($parent_nesting),$Header4__before_create$102;return(Opal.def(self,'$_before_create',$Header4__before_create$102=function $$_before_create(){var $iter=$Header4__before_create$102.$$p,$yield=$iter||nil,self=this;if($iter)$Header4__before_create$102.$$p=null;$send2(self,$find_super(self,'_before_create',$Header4__before_create$102,false,true),'_before_create',[],null);return(self.domtype="h4");},$Header4__before_create$102.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header5');var $nesting=[self].concat($parent_nesting),$Header5__before_create$103;return(Opal.def(self,'$_before_create',$Header5__before_create$103=function $$_before_create(){var $iter=$Header5__before_create$103.$$p,$yield=$iter||nil,self=this;if($iter)$Header5__before_create$103.$$p=null;$send2(self,$find_super(self,'_before_create',$Header5__before_create$103,false,true),'_before_create',[],null);return(self.domtype="h5");},$Header5__before_create$103.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Header6');var $nesting=[self].concat($parent_nesting),$Header6__before_create$104;return(Opal.def(self,'$_before_create',$Header6__before_create$104=function $$_before_create(){var $iter=$Header6__before_create$104.$$p,$yield=$iter||nil,self=this;if($iter)$Header6__before_create$104.$$p=null;$send2(self,$find_super(self,'_before_create',$Header6__before_create$104,false,true),'_before_create',[],null);return(self.domtype="h6");},$Header6__before_create$104.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'List');var $nesting=[self].concat($parent_nesting),$List__before_create$105;return(Opal.def(self,'$_before_create',$List__before_create$105=function $$_before_create(){var $iter=$List__before_create$105.$$p,$yield=$iter||nil,self=this;if($iter)$List__before_create$105.$$p=null;$send2(self,$find_super(self,'_before_create',$List__before_create$105,false,true),'_before_create',[],null);return(self.domtype="ul");},$List__before_create$105.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrderedList');var $nesting=[self].concat($parent_nesting),$OrderedList__before_create$106;return(Opal.def(self,'$_before_create',$OrderedList__before_create$106=function $$_before_create(){var $iter=$OrderedList__before_create$106.$$p,$yield=$iter||nil,self=this;if($iter)$OrderedList__before_create$106.$$p=null;$send2(self,$find_super(self,'_before_create',$OrderedList__before_create$106,false,true),'_before_create',[],null);return(self.domtype="ol");},$OrderedList__before_create$106.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ListItem');var $nesting=[self].concat($parent_nesting),$ListItem__before_create$107;return(Opal.def(self,'$_before_create',$ListItem__before_create$107=function $$_before_create(){var $iter=$ListItem__before_create$107.$$p,$yield=$iter||nil,self=this;if($iter)$ListItem__before_create$107.$$p=null;$send2(self,$find_super(self,'_before_create',$ListItem__before_create$107,false,true),'_before_create',[],null);return(self.domtype="li");},$ListItem__before_create$107.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Anchor');var $nesting=[self].concat($parent_nesting),$Anchor__before_create$108;return(Opal.def(self,'$_before_create',$Anchor__before_create$108=function $$_before_create(){var $iter=$Anchor__before_create$108.$$p,$yield=$iter||nil,self=this;if($iter)$Anchor__before_create$108.$$p=null;$send2(self,$find_super(self,'_before_create',$Anchor__before_create$108,false,true),'_before_create',[],null);return(self.domtype="a");},$Anchor__before_create$108.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ExternalLink');var $nesting=[self].concat($parent_nesting),$ExternalLink__before_create$109;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ExternalLink__before_create$109=function $$_before_create(){var $iter=$ExternalLink__before_create$109.$$p,$yield=$iter||nil,self=this,$ret_or_2=nil,$writer=nil;if($iter)$ExternalLink__before_create$109.$$p=null;$send2(self,$find_super(self,'_before_create',$ExternalLink__before_create$109,false,true),'_before_create',[],null);if($truthy(($ret_or_2=self.options['$[]']("target")))){$ret_or_2}else{$writer=["target","_blank"];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};return(self.domtype="a");},$ExternalLink__before_create$109.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Button');var $nesting=[self].concat($parent_nesting),$Button__before_create$110,$Button__after_create$111;self.$$prototype.options=self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Button__before_create$110=function $$_before_create(){var $iter=$Button__before_create$110.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Button__before_create$110.$$p=null;$send2(self,$find_super(self,'_before_create',$Button__before_create$110,false,true),'_before_create',[],null);self.domtype="button";if(self.options['$[]']("type")['$==']("button")){}else{$writer=["type","button"];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("button")['$=='](true)){return nil}else{$writer=["button",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Button__before_create$110.$$arity=0);return(Opal.def(self,'$_after_create',$Button__after_create$111=function $$_after_create(){var $$112,$iter=$Button__after_create$111.$$p,$yield=$iter||nil,self=this;if($iter)$Button__after_create$111.$$p=null;$send2(self,$find_super(self,'_after_create',$Button__after_create$111,false,true),'_after_create',[],null);return $send(self,'on',["click"],($$112=function(the_event){var self=$$112.$$s==null?this:$$112.$$s;if(the_event==null){the_event=nil;};return document.activeElement.blur();;},$$112.$$s=self,$$112.$$arity=1,$$112));},$Button__after_create$111.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Table');var $nesting=[self].concat($parent_nesting),$Table__before_create$113;return(Opal.def(self,'$_before_create',$Table__before_create$113=function $$_before_create(){var $iter=$Table__before_create$113.$$p,$yield=$iter||nil,self=this;if($iter)$Table__before_create$113.$$p=null;$send2(self,$find_super(self,'_before_create',$Table__before_create$113,false,true),'_before_create',[],null);return(self.domtype="table");},$Table__before_create$113.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TableHeader');var $nesting=[self].concat($parent_nesting),$TableHeader__before_create$114;return(Opal.def(self,'$_before_create',$TableHeader__before_create$114=function $$_before_create(){var $iter=$TableHeader__before_create$114.$$p,$yield=$iter||nil,self=this;if($iter)$TableHeader__before_create$114.$$p=null;$send2(self,$find_super(self,'_before_create',$TableHeader__before_create$114,false,true),'_before_create',[],null);return(self.domtype="th");},$TableHeader__before_create$114.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TableRow');var $nesting=[self].concat($parent_nesting),$TableRow__before_create$115;return(Opal.def(self,'$_before_create',$TableRow__before_create$115=function $$_before_create(){var $iter=$TableRow__before_create$115.$$p,$yield=$iter||nil,self=this;if($iter)$TableRow__before_create$115.$$p=null;$send2(self,$find_super(self,'_before_create',$TableRow__before_create$115,false,true),'_before_create',[],null);return(self.domtype="tr");},$TableRow__before_create$115.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TableCell');var $nesting=[self].concat($parent_nesting),$TableCell__before_create$116;return(Opal.def(self,'$_before_create',$TableCell__before_create$116=function $$_before_create(){var $iter=$TableCell__before_create$116.$$p,$yield=$iter||nil,self=this;if($iter)$TableCell__before_create$116.$$p=null;$send2(self,$find_super(self,'_before_create',$TableCell__before_create$116,false,true),'_before_create',[],null);return(self.domtype="td");},$TableCell__before_create$116.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTable');var $nesting=[self].concat($parent_nesting),$BlockTable__before_create$117;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTable__before_create$117=function $$_before_create(){var $iter=$BlockTable__before_create$117.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTable__before_create$117.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTable__before_create$117,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("table")['$=='](true)){return nil}else{$writer=["table",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTable__before_create$117.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTableHeader');var $nesting=[self].concat($parent_nesting),$BlockTableHeader__before_create$118;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTableHeader__before_create$118=function $$_before_create(){var $iter=$BlockTableHeader__before_create$118.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTableHeader__before_create$118.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTableHeader__before_create$118,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("th")['$=='](true)){return nil}else{$writer=["th",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTableHeader__before_create$118.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTableRow');var $nesting=[self].concat($parent_nesting),$BlockTableRow__before_create$119;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTableRow__before_create$119=function $$_before_create(){var $iter=$BlockTableRow__before_create$119.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTableRow__before_create$119.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTableRow__before_create$119,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("tr")['$=='](true)){return nil}else{$writer=["tr",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTableRow__before_create$119.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BlockTableCell');var $nesting=[self].concat($parent_nesting),$BlockTableCell__before_create$120;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$BlockTableCell__before_create$120=function $$_before_create(){var $iter=$BlockTableCell__before_create$120.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$BlockTableCell__before_create$120.$$p=null;$send2(self,$find_super(self,'_before_create',$BlockTableCell__before_create$120,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("td")['$=='](true)){return nil}else{$writer=["td",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$BlockTableCell__before_create$120.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Span');var $nesting=[self].concat($parent_nesting),$Span__before_create$121;return(Opal.def(self,'$_before_create',$Span__before_create$121=function $$_before_create(){var $iter=$Span__before_create$121.$$p,$yield=$iter||nil,self=this;if($iter)$Span__before_create$121.$$p=null;$send2(self,$find_super(self,'_before_create',$Span__before_create$121,false,true),'_before_create',[],null);return(self.domtype="span");},$Span__before_create$121.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Select');var $nesting=[self].concat($parent_nesting),$Select__before_create$122;return(Opal.def(self,'$_before_create',$Select__before_create$122=function $$_before_create(){var $iter=$Select__before_create$122.$$p,$yield=$iter||nil,self=this;if($iter)$Select__before_create$122.$$p=null;$send2(self,$find_super(self,'_before_create',$Select__before_create$122,false,true),'_before_create',[],null);return(self.domtype="select");},$Select__before_create$122.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Option');var $nesting=[self].concat($parent_nesting),$Option__before_create$123;return(Opal.def(self,'$_before_create',$Option__before_create$123=function $$_before_create(){var $iter=$Option__before_create$123.$$p,$yield=$iter||nil,self=this;if($iter)$Option__before_create$123.$$p=null;$send2(self,$find_super(self,'_before_create',$Option__before_create$123,false,true),'_before_create',[],null);return(self.domtype="option");},$Option__before_create$123.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FieldSet');var $nesting=[self].concat($parent_nesting),$FieldSet__before_create$124;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$FieldSet__before_create$124=function $$_before_create(){var $iter=$FieldSet__before_create$124.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FieldSet__before_create$124.$$p=null;$send2(self,$find_super(self,'_before_create',$FieldSet__before_create$124,false,true),'_before_create',[],null);self.domtype="fieldset";if(self.states['$[]']("fieldset")['$=='](true)){return nil}else{$writer=["fieldset",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$FieldSet__before_create$124.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Legend');var $nesting=[self].concat($parent_nesting),$Legend__before_create$125;return(Opal.def(self,'$_before_create',$Legend__before_create$125=function $$_before_create(){var $iter=$Legend__before_create$125.$$p,$yield=$iter||nil,self=this;if($iter)$Legend__before_create$125.$$p=null;$send2(self,$find_super(self,'_before_create',$Legend__before_create$125,false,true),'_before_create',[],null);return(self.domtype="legend");},$Legend__before_create$125.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);Opal.const_set($nesting[0],'COMPONENT_CLASSES',$hash2(["org.gxg.gui.page","org.gxg.gui.abbreviation","org.gxg.gui.address","org.gxg.gui.area","org.gxg.gui.bold","org.gxg.gui.bdi","org.gxg.gui.bdo","org.gxg.gui.blockquote","org.gxg.gui.break","org.gxg.gui.caption","org.gxg.gui.cite","org.gxg.gui.code","org.gxg.gui.column","org.gxg.gui.column.group","org.gxg.gui.data","org.gxg.gui.data.list","org.gxg.gui.description","org.gxg.gui.deleted","org.gxg.gui.details","org.gxg.gui.dfn","org.gxg.gui.dialog","org.gxg.gui.division","org.gxg.gui.description.list","org.gxg.gui.description.item","org.gxg.gui.emphasis","org.gxg.gui.figure","org.gxg.gui.figure.caption","org.gxg.gui.theme.divider","org.gxg.gui.italic","org.gxg.gui.frame.inline","org.gxg.gui.insertion","org.gxg.gui.keyboard.key","org.gxg.gui.map","org.gxg.gui.mark","org.gxg.gui.meter","org.gxg.gui.noscript","org.gxg.gui.object","org.gxg.gui.option.group","org.gxg.gui.parameter","org.gxg.gui.picture","org.gxg.gui.preformatted","org.gxg.gui.progress","org.gxg.gui.quotation","org.gxg.gui.strike.through","org.gxg.gui.sample","org.gxg.gui.section","org.gxg.gui.small","org.gxg.gui.source","org.gxg.gui.strong","org.gxg.gui.style","org.gxg.gui.sub.script","org.gxg.gui.summary","org.gxg.gui.super.script","org.gxg.gui.svg","org.gxg.gui.template","org.gxg.gui.text.area","org.gxg.gui.time","org.gxg.gui.track","org.gxg.gui.misspelled","org.gxg.gui.variable","org.gxg.gui.word.break","org.gxg.gui.header","org.gxg.gui.navigator","org.gxg.gui.main","org.gxg.gui.article","org.gxg.gui.aside","org.gxg.gui.footer","org.gxg.gui.form","org.gxg.gui.input.button","org.gxg.gui.input.button.submit","org.gxg.gui.block","org.gxg.gui.button.checkbox","org.gxg.gui.image","org.gxg.gui.video","org.gxg.gui.audio","org.gxg.gui.canvas","org.gxg.gui.input.hidden","org.gxg.gui.input.file","org.gxg.gui.input.text","org.gxg.gui.input.password","org.gxg.gui.input.reset","org.gxg.gui.button.radio","org.gxg.gui.picker.color","org.gxg.gui.picker.date","org.gxg.gui.input.datetime.local","org.gxg.gui.input.email","org.gxg.gui.picker.month","org.gxg.gui.picker.number","org.gxg.gui.input.range","org.gxg.gui.input.search","org.gxg.gui.input.phone","org.gxg.gui.picker.time","org.gxg.gui.input.url","org.gxg.gui.picker.week","org.gxg.gui.label","org.gxg.gui.output","org.gxg.gui.paragraph","org.gxg.gui.header.one","org.gxg.gui.header.two","org.gxg.gui.header.three","org.gxg.gui.header.four","org.gxg.gui.header.five","org.gxg.gui.header.six","org.gxg.gui.list","org.gxg.gui.list.ordered","org.gxg.gui.list.item","org.gxg.gui.link.anchor","org.gxg.gui.link.external","org.gxg.gui.button","org.gxg.gui.table","org.gxg.gui.table.header","org.gxg.gui.table.row","org.gxg.gui.table.cell","org.gxg.gui.block.table","org.gxg.gui.block.table.header","org.gxg.gui.block.table.row","org.gxg.gui.block.table.cell","org.gxg.gui.span","org.gxg.gui.select","org.gxg.gui.option","org.gxg.gui.field.set","org.gxg.gui.legend"],{"org.gxg.gui.page":$$$($$$($$$('::','GxG'),'Gui'),'Page'),"org.gxg.gui.abbreviation":$$$($$$($$$('::','GxG'),'Gui'),'Abbreviation'),"org.gxg.gui.address":$$$($$$($$$('::','GxG'),'Gui'),'Address'),"org.gxg.gui.area":$$$($$$($$$('::','GxG'),'Gui'),'Area'),"org.gxg.gui.bold":$$$($$$($$$('::','GxG'),'Gui'),'Bold'),"org.gxg.gui.bdi":$$$($$$($$$('::','GxG'),'Gui'),'Bdi'),"org.gxg.gui.bdo":$$$($$$($$$('::','GxG'),'Gui'),'Bdo'),"org.gxg.gui.blockquote":$$$($$$($$$('::','GxG'),'Gui'),'BlockQuote'),"org.gxg.gui.break":$$$($$$($$$('::','GxG'),'Gui'),'Break'),"org.gxg.gui.caption":$$$($$$($$$('::','GxG'),'Gui'),'Caption'),"org.gxg.gui.cite":$$$($$$($$$('::','GxG'),'Gui'),'Cite'),"org.gxg.gui.code":$$$($$$($$$('::','GxG'),'Gui'),'Code'),"org.gxg.gui.column":$$$($$$($$$('::','GxG'),'Gui'),'Column'),"org.gxg.gui.column.group":$$$($$$($$$('::','GxG'),'Gui'),'ColumnGroup'),"org.gxg.gui.data":$$$($$$($$$('::','GxG'),'Gui'),'Data'),"org.gxg.gui.data.list":$$$($$$($$$('::','GxG'),'Gui'),'DataList'),"org.gxg.gui.description":$$$($$$($$$('::','GxG'),'Gui'),'Description'),"org.gxg.gui.deleted":$$$($$$($$$('::','GxG'),'Gui'),'Deleted'),"org.gxg.gui.details":$$$($$$($$$('::','GxG'),'Gui'),'Details'),"org.gxg.gui.dfn":$$$($$$($$$('::','GxG'),'Gui'),'Dfn'),"org.gxg.gui.dialog":$$$($$$($$$('::','GxG'),'Gui'),'Dialog'),"org.gxg.gui.division":$$$($$$($$$('::','GxG'),'Gui'),'Division'),"org.gxg.gui.description.list":$$$($$$($$$('::','GxG'),'Gui'),'DescriptionList'),"org.gxg.gui.description.item":$$$($$$($$$('::','GxG'),'Gui'),'DescriptionTerm'),"org.gxg.gui.emphasis":$$$($$$($$$('::','GxG'),'Gui'),'Emphasis'),"org.gxg.gui.figure":$$$($$$($$$('::','GxG'),'Gui'),'Figure'),"org.gxg.gui.figure.caption":$$$($$$($$$('::','GxG'),'Gui'),'FigureCaption'),"org.gxg.gui.theme.divider":$$$($$$($$$('::','GxG'),'Gui'),'ThemeDivider'),"org.gxg.gui.italic":$$$($$$($$$('::','GxG'),'Gui'),'Italic'),"org.gxg.gui.frame.inline":$$$($$$($$$('::','GxG'),'Gui'),'InlineFrame'),"org.gxg.gui.insertion":$$$($$$($$$('::','GxG'),'Gui'),'Insertion'),"org.gxg.gui.keyboard.key":$$$($$$($$$('::','GxG'),'Gui'),'KeyboardKey'),"org.gxg.gui.map":$$$($$$($$$('::','GxG'),'Gui'),'Map'),"org.gxg.gui.mark":$$$($$$($$$('::','GxG'),'Gui'),'Mark'),"org.gxg.gui.meter":$$$($$$($$$('::','GxG'),'Gui'),'Meter'),"org.gxg.gui.noscript":$$$($$$($$$('::','GxG'),'Gui'),'NoScript'),"org.gxg.gui.object":$$$($$$($$$('::','GxG'),'Gui'),'Object'),"org.gxg.gui.option.group":$$$($$$($$$('::','GxG'),'Gui'),'OptionGroup'),"org.gxg.gui.parameter":$$$($$$($$$('::','GxG'),'Gui'),'Parameter'),"org.gxg.gui.picture":$$$($$$($$$('::','GxG'),'Gui'),'Picture'),"org.gxg.gui.preformatted":$$$($$$($$$('::','GxG'),'Gui'),'Preformatted'),"org.gxg.gui.progress":$$$($$$($$$('::','GxG'),'Gui'),'Progress'),"org.gxg.gui.quotation":$$$($$$($$$('::','GxG'),'Gui'),'Quotation'),"org.gxg.gui.strike.through":$$$($$$($$$('::','GxG'),'Gui'),'StrikeThrough'),"org.gxg.gui.sample":$$$($$$($$$('::','GxG'),'Gui'),'Sample'),"org.gxg.gui.section":$$$($$$($$$('::','GxG'),'Gui'),'Section'),"org.gxg.gui.small":$$$($$$($$$('::','GxG'),'Gui'),'Small'),"org.gxg.gui.source":$$$($$$($$$('::','GxG'),'Gui'),'Source'),"org.gxg.gui.strong":$$$($$$($$$('::','GxG'),'Gui'),'Strong'),"org.gxg.gui.style":$$$($$$($$$('::','GxG'),'Gui'),'Style'),"org.gxg.gui.sub.script":$$$($$$($$$('::','GxG'),'Gui'),'SubScript'),"org.gxg.gui.summary":$$$($$$($$$('::','GxG'),'Gui'),'Summary'),"org.gxg.gui.super.script":$$$($$$($$$('::','GxG'),'Gui'),'SuperScript'),"org.gxg.gui.svg":$$$($$$($$$('::','GxG'),'Gui'),'Svg'),"org.gxg.gui.template":$$$($$$($$$('::','GxG'),'Gui'),'Template'),"org.gxg.gui.text.area":$$$($$$($$$('::','GxG'),'Gui'),'TextArea'),"org.gxg.gui.time":$$$($$$($$$('::','GxG'),'Gui'),'Time'),"org.gxg.gui.track":$$$($$$($$$('::','GxG'),'Gui'),'Track'),"org.gxg.gui.misspelled":$$$($$$($$$('::','GxG'),'Gui'),'Misspelled'),"org.gxg.gui.variable":$$$($$$($$$('::','GxG'),'Gui'),'Variable'),"org.gxg.gui.word.break":$$$($$$($$$('::','GxG'),'Gui'),'WordBreak'),"org.gxg.gui.header":$$$($$$($$$('::','GxG'),'Gui'),'Header'),"org.gxg.gui.navigator":$$$($$$($$$('::','GxG'),'Gui'),'Navigation'),"org.gxg.gui.main":$$$($$$($$$('::','GxG'),'Gui'),'Main'),"org.gxg.gui.article":$$$($$$($$$('::','GxG'),'Gui'),'Article'),"org.gxg.gui.aside":$$$($$$($$$('::','GxG'),'Gui'),'Aside'),"org.gxg.gui.footer":$$$($$$($$$('::','GxG'),'Gui'),'Footer'),"org.gxg.gui.form":$$$($$$($$$('::','GxG'),'Gui'),'Form'),"org.gxg.gui.input.button":$$$($$$($$$('::','GxG'),'Gui'),'ButtonInput'),"org.gxg.gui.input.button.submit":$$$($$$($$$('::','GxG'),'Gui'),'SubmitButton'),"org.gxg.gui.block":$$$($$$($$$('::','GxG'),'Gui'),'Block'),"org.gxg.gui.button.checkbox":$$$($$$($$$('::','GxG'),'Gui'),'CheckBox'),"org.gxg.gui.image":$$$($$$($$$('::','GxG'),'Gui'),'Image'),"org.gxg.gui.video":$$$($$$($$$('::','GxG'),'Gui'),'Video'),"org.gxg.gui.audio":$$$($$$($$$('::','GxG'),'Gui'),'Audio'),"org.gxg.gui.canvas":$$$($$$($$$('::','GxG'),'Gui'),'Canvas'),"org.gxg.gui.input.hidden":$$$($$$($$$('::','GxG'),'Gui'),'HiddenInput'),"org.gxg.gui.input.file":$$$($$$($$$('::','GxG'),'Gui'),'FileInput'),"org.gxg.gui.input.text":$$$($$$($$$('::','GxG'),'Gui'),'TextInput'),"org.gxg.gui.input.password":$$$($$$($$$('::','GxG'),'Gui'),'PasswordInput'),"org.gxg.gui.input.reset":$$$($$$($$$('::','GxG'),'Gui'),'ResetInput'),"org.gxg.gui.button.radio":$$$($$$($$$('::','GxG'),'Gui'),'RadioButton'),"org.gxg.gui.picker.color":$$$($$$($$$('::','GxG'),'Gui'),'ColorPicker'),"org.gxg.gui.picker.date":$$$($$$($$$('::','GxG'),'Gui'),'DatePicker'),"org.gxg.gui.input.datetime.local":$$$($$$($$$('::','GxG'),'Gui'),'DateTimeLocal'),"org.gxg.gui.input.email":$$$($$$($$$('::','GxG'),'Gui'),'EmailInput'),"org.gxg.gui.picker.month":$$$($$$($$$('::','GxG'),'Gui'),'MonthPicker'),"org.gxg.gui.picker.number":$$$($$$($$$('::','GxG'),'Gui'),'NumberInput'),"org.gxg.gui.input.range":$$$($$$($$$('::','GxG'),'Gui'),'RangeInput'),"org.gxg.gui.input.search":$$$($$$($$$('::','GxG'),'Gui'),'SearchInput'),"org.gxg.gui.input.phone":$$$($$$($$$('::','GxG'),'Gui'),'PhoneInput'),"org.gxg.gui.picker.time":$$$($$$($$$('::','GxG'),'Gui'),'TimePicker'),"org.gxg.gui.input.url":$$$($$$($$$('::','GxG'),'Gui'),'UrlInput'),"org.gxg.gui.picker.week":$$$($$$($$$('::','GxG'),'Gui'),'WeekPicker'),"org.gxg.gui.label":$$$($$$($$$('::','GxG'),'Gui'),'Label'),"org.gxg.gui.output":$$$($$$($$$('::','GxG'),'Gui'),'Output'),"org.gxg.gui.paragraph":$$$($$$($$$('::','GxG'),'Gui'),'Paragraph'),"org.gxg.gui.header.one":$$$($$$($$$('::','GxG'),'Gui'),'Header1'),"org.gxg.gui.header.two":$$$($$$($$$('::','GxG'),'Gui'),'Header2'),"org.gxg.gui.header.three":$$$($$$($$$('::','GxG'),'Gui'),'Header3'),"org.gxg.gui.header.four":$$$($$$($$$('::','GxG'),'Gui'),'Header4'),"org.gxg.gui.header.five":$$$($$$($$$('::','GxG'),'Gui'),'Header5'),"org.gxg.gui.header.six":$$$($$$($$$('::','GxG'),'Gui'),'Header6'),"org.gxg.gui.list":$$$($$$($$$('::','GxG'),'Gui'),'List'),"org.gxg.gui.list.ordered":$$$($$$($$$('::','GxG'),'Gui'),'OrderedList'),"org.gxg.gui.list.item":$$$($$$($$$('::','GxG'),'Gui'),'ListItem'),"org.gxg.gui.link.anchor":$$$($$$($$$('::','GxG'),'Gui'),'Anchor'),"org.gxg.gui.link.external":$$$($$$($$$('::','GxG'),'Gui'),'ExternalLink'),"org.gxg.gui.button":$$$($$$($$$('::','GxG'),'Gui'),'Button'),"org.gxg.gui.table":$$$($$$($$$('::','GxG'),'Gui'),'Table'),"org.gxg.gui.table.header":$$$($$$($$$('::','GxG'),'Gui'),'TableHeader'),"org.gxg.gui.table.row":$$$($$$($$$('::','GxG'),'Gui'),'TableRow'),"org.gxg.gui.table.cell":$$$($$$($$$('::','GxG'),'Gui'),'TableCell'),"org.gxg.gui.block.table":$$$($$$($$$('::','GxG'),'Gui'),'BlockTable'),"org.gxg.gui.block.table.header":$$$($$$($$$('::','GxG'),'Gui'),'BlockTableHeader'),"org.gxg.gui.block.table.row":$$$($$$($$$('::','GxG'),'Gui'),'BlockTableRow'),"org.gxg.gui.block.table.cell":$$$($$$($$$('::','GxG'),'Gui'),'BlockTableCell'),"org.gxg.gui.span":$$$($$$($$$('::','GxG'),'Gui'),'Span'),"org.gxg.gui.select":$$$($$$($$$('::','GxG'),'Gui'),'Select'),"org.gxg.gui.option":$$$($$$($$$('::','GxG'),'Gui'),'Option'),"org.gxg.gui.field.set":$$$($$$($$$('::','GxG'),'Gui'),'FieldSet'),"org.gxg.gui.legend":$$$($$$($$$('::','GxG'),'Gui'),'Legend')}));Opal.defs(self,'$component_class',$Gui_component_class$126=function $$component_class(the_type_specifier){var self=this,result=nil;if(the_type_specifier==null){the_type_specifier=nil;};result=nil;if($truthy(the_type_specifier)){result=$$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES')['$[]'](the_type_specifier.$to_s().$to_sym())};return result;},$Gui_component_class$126.$$arity=-1);Opal.defs(self,'$class_component',$Gui_class_component$127=function $$class_component(the_class_specifier){var self=this,result=nil,found_index=nil;if(the_class_specifier==null){the_class_specifier=nil;};result=nil;if($truthy(the_class_specifier)){found_index=$$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES').$values().$index(the_class_specifier);if($truthy(found_index)){result=$$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES').$keys()['$[]'](found_index)};};return result;},$Gui_class_component$127.$$arity=-1);Opal.defs(self,'$component_registered?',$Gui_component_registered$ques$128=function(the_specifier){var self=this;if(the_specifier==null){the_specifier=nil;};if($truthy($$$($$($nesting,'GxG'),'Gui').$component_class(the_specifier))){return true}else{return false};},$Gui_component_registered$ques$128.$$arity=-1);return(Opal.defs(self,'$register_component_class',$Gui_register_component_class$129=function $$register_component_class(the_specifier,the_constant){var self=this,$ret_or_3=nil,$writer=nil;if(the_specifier==null){the_specifier=nil;};if(the_constant==null){the_constant=nil;};if($truthy((function(){if($truthy(($ret_or_3=the_specifier['$is_any?']($$$('::','String'),$$$('::','Symbol'))))){return the_constant['$is_a?']($$$('::','Class'))}else{return $ret_or_3};return nil;})())){if($truthy($$$($$($nesting,'GxG'),'Gui')['$component_registered?'](the_specifier.$to_s().$to_sym()))){if($truthy($$$($$($nesting,'GxG'),'Gui').$component_class(the_specifier.$to_s().$to_sym())['$!='](the_constant))){$writer=[the_specifier.$to_s().$to_sym(),the_constant];$send($$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return true;}else{self.$log_warn(""+"Component Class "+(the_specifier.$to_s().$to_sym().$inspect())+" => "+(the_constant.$inspect())+" already defined.");return false;}}else{$writer=[the_specifier.$to_s().$to_sym(),the_constant];$send($$$($$$($$($nesting,'GxG'),'Gui'),'COMPONENT_CLASSES'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return true;}}else{return false};},$Gui_register_component_class$129.$$arity=-1),nil)&&'register_component_class';})($nesting[0],$nesting)})($nesting[0],$nesting);(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);return(function($base,$parent_nesting){var self=$module($base,'Gui');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'GridContainer');var $nesting=[self].concat($parent_nesting),$GridContainer__before_create$130,$GridContainer__after_create$131;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$GridContainer__before_create$130=function $$_before_create(){var $iter=$GridContainer__before_create$130.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$GridContainer__before_create$130.$$p=null;$send2(self,$find_super(self,'_before_create',$GridContainer__before_create$130,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-container")['$=='](true)){return nil}else{$writer=["grid-container",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$GridContainer__before_create$130.$$arity=0);return(Opal.def(self,'$_after_create',$GridContainer__after_create$131=function $$_after_create(){var $iter=$GridContainer__after_create$131.$$p,$yield=$iter||nil,self=this;if($iter)$GridContainer__after_create$131.$$p=null;$send2(self,$find_super(self,'_after_create',$GridContainer__after_create$131,false,true),'_after_create',[],null);return $(document).foundation();;},$GridContainer__after_create$131.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.grid.container",$$$($$$($$$('::','GxG'),'Gui'),'GridContainer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'GridX');var $nesting=[self].concat($parent_nesting),$GridX__before_create$132,$GridX__after_create$133;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$GridX__before_create$132=function $$_before_create(){var $iter=$GridX__before_create$132.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$GridX__before_create$132.$$p=null;$send2(self,$find_super(self,'_before_create',$GridX__before_create$132,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-x")['$=='](true)){return nil}else{$writer=["grid-x",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$GridX__before_create$132.$$arity=0);return(Opal.def(self,'$_after_create',$GridX__after_create$133=function $$_after_create(){var $iter=$GridX__after_create$133.$$p,$yield=$iter||nil,self=this;if($iter)$GridX__after_create$133.$$p=null;$send2(self,$find_super(self,'_after_create',$GridX__after_create$133,false,true),'_after_create',[],null);return $(document).foundation();;},$GridX__after_create$133.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.grid.x",$$$($$$($$$('::','GxG'),'Gui'),'GridX'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'GridY');var $nesting=[self].concat($parent_nesting),$GridY__before_create$134,$GridY__after_create$135;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$GridY__before_create$134=function $$_before_create(){var $iter=$GridY__before_create$134.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$GridY__before_create$134.$$p=null;$send2(self,$find_super(self,'_before_create',$GridY__before_create$134,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-y")['$=='](true)){return nil}else{$writer=["grid-y",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$GridY__before_create$134.$$arity=0);return(Opal.def(self,'$_after_create',$GridY__after_create$135=function $$_after_create(){var $iter=$GridY__after_create$135.$$p,$yield=$iter||nil,self=this;if($iter)$GridY__after_create$135.$$p=null;$send2(self,$find_super(self,'_after_create',$GridY__after_create$135,false,true),'_after_create',[],null);return $(document).foundation();;},$GridY__after_create$135.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.grid.y",$$$($$$($$$('::','GxG'),'Gui'),'GridY'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Accordion');var $nesting=[self].concat($parent_nesting),$Accordion__before_create$136,$Accordion__after_create$137;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$Accordion__before_create$136=function $$_before_create(){var $iter=$Accordion__before_create$136.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Accordion__before_create$136.$$p=null;$send2(self,$find_super(self,'_before_create',$Accordion__before_create$136,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("accordion")['$=='](true)){}else{$writer=["accordion",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-accordion"))){return nil}else{$writer=["data-accordion",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Accordion__before_create$136.$$arity=0);return(Opal.def(self,'$_after_create',$Accordion__after_create$137=function $$_after_create(){var $iter=$Accordion__after_create$137.$$p,$yield=$iter||nil,self=this;if($iter)$Accordion__after_create$137.$$p=null;$send2(self,$find_super(self,'_after_create',$Accordion__after_create$137,false,true),'_after_create',[],null);return $(document).foundation();;},$Accordion__after_create$137.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion",$$$($$$($$$('::','GxG'),'Gui'),'Accordion'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionItem');var $nesting=[self].concat($parent_nesting),$AccordionItem__before_create$138,$AccordionItem__after_create$139;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$AccordionItem__before_create$138=function $$_before_create(){var $iter=$AccordionItem__before_create$138.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AccordionItem__before_create$138.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionItem__before_create$138,false,true),'_before_create',[],null);self.domtype="li";if(self.states['$[]']("accordion-item")['$=='](true)){}else{$writer=["accordion-item",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-accordion-item"))){return nil}else{$writer=["data-accordion-item",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AccordionItem__before_create$138.$$arity=0);return(Opal.def(self,'$_after_create',$AccordionItem__after_create$139=function $$_after_create(){var $iter=$AccordionItem__after_create$139.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionItem__after_create$139.$$p=null;$send2(self,$find_super(self,'_after_create',$AccordionItem__after_create$139,false,true),'_after_create',[],null);return $(document).foundation();;},$AccordionItem__after_create$139.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.item",$$$($$$($$$('::','GxG'),'Gui'),'AccordionItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionMenu');var $nesting=[self].concat($parent_nesting),$AccordionMenu__before_create$140,$AccordionMenu__after_create$141;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$AccordionMenu__before_create$140=function $$_before_create(){var $iter=$AccordionMenu__before_create$140.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AccordionMenu__before_create$140.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionMenu__before_create$140,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-accordion-menu"))){return nil}else{$writer=["data-accordion-menu",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AccordionMenu__before_create$140.$$arity=0);return(Opal.def(self,'$_after_create',$AccordionMenu__after_create$141=function $$_after_create(){var $iter=$AccordionMenu__after_create$141.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionMenu__after_create$141.$$p=null;$send2(self,$find_super(self,'_after_create',$AccordionMenu__after_create$141,false,true),'_after_create',[],null);return $(document).foundation();;},$AccordionMenu__after_create$141.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.menu",$$$($$$($$$('::','GxG'),'Gui'),'AccordionMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionSubMenu');var $nesting=[self].concat($parent_nesting),$AccordionSubMenu__before_create$142,$AccordionSubMenu__after_create$143;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$AccordionSubMenu__before_create$142=function $$_before_create(){var $iter=$AccordionSubMenu__before_create$142.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AccordionSubMenu__before_create$142.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionSubMenu__before_create$142,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("nested")['$=='](true)){return nil}else{$writer=["nested",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AccordionSubMenu__before_create$142.$$arity=0);return(Opal.def(self,'$_after_create',$AccordionSubMenu__after_create$143=function $$_after_create(){var $iter=$AccordionSubMenu__after_create$143.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionSubMenu__after_create$143.$$p=null;$send2(self,$find_super(self,'_after_create',$AccordionSubMenu__after_create$143,false,true),'_after_create',[],null);return $(document).foundation();;},$AccordionSubMenu__after_create$143.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.submenu",$$$($$$($$$('::','GxG'),'Gui'),'AccordionSubMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AccordionMenuItem');var $nesting=[self].concat($parent_nesting),$AccordionMenuItem__before_create$144;return(Opal.def(self,'$_before_create',$AccordionMenuItem__before_create$144=function $$_before_create(){var $iter=$AccordionMenuItem__before_create$144.$$p,$yield=$iter||nil,self=this;if($iter)$AccordionMenuItem__before_create$144.$$p=null;$send2(self,$find_super(self,'_before_create',$AccordionMenuItem__before_create$144,false,true),'_before_create',[],null);return(self.domtype="li");},$AccordionMenuItem__before_create$144.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.accordion.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'AccordionMenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'AnchorButton');var $nesting=[self].concat($parent_nesting),$AnchorButton__before_create$145,$AnchorButton__after_create$146;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$AnchorButton__before_create$145=function $$_before_create(){var $iter=$AnchorButton__before_create$145.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$AnchorButton__before_create$145.$$p=null;$send2(self,$find_super(self,'_before_create',$AnchorButton__before_create$145,false,true),'_before_create',[],null);self.domtype="a";if(self.states['$[]']("button")['$=='](true)){return nil}else{$writer=["button",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$AnchorButton__before_create$145.$$arity=0);return(Opal.def(self,'$_after_create',$AnchorButton__after_create$146=function $$_after_create(){var $iter=$AnchorButton__after_create$146.$$p,$yield=$iter||nil,self=this;if($iter)$AnchorButton__after_create$146.$$p=null;$send2(self,$find_super(self,'_after_create',$AnchorButton__after_create$146,false,true),'_after_create',[],null);return $(document).foundation();;},$AnchorButton__after_create$146.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.anchor.button",$$$($$$($$$('::','GxG'),'Gui'),'AnchorButton'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Badge');var $nesting=[self].concat($parent_nesting),$Badge__before_create$147,$Badge__after_create$148;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Badge__before_create$147=function $$_before_create(){var $iter=$Badge__before_create$147.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Badge__before_create$147.$$p=null;$send2(self,$find_super(self,'_before_create',$Badge__before_create$147,false,true),'_before_create',[],null);self.domtype="span";if(self.states['$[]']("badge")['$=='](true)){return nil}else{$writer=["badge",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Badge__before_create$147.$$arity=0);return(Opal.def(self,'$_after_create',$Badge__after_create$148=function $$_after_create(){var $iter=$Badge__after_create$148.$$p,$yield=$iter||nil,self=this;if($iter)$Badge__after_create$148.$$p=null;$send2(self,$find_super(self,'_after_create',$Badge__after_create$148,false,true),'_after_create',[],null);return $(document).foundation();;},$Badge__after_create$148.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.badge",$$$($$$($$$('::','GxG'),'Gui'),'Badge'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Breadcrumb');var $nesting=[self].concat($parent_nesting),$Breadcrumb__before_create$149,$Breadcrumb__after_create$150;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Breadcrumb__before_create$149=function $$_before_create(){var $iter=$Breadcrumb__before_create$149.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Breadcrumb__before_create$149.$$p=null;$send2(self,$find_super(self,'_before_create',$Breadcrumb__before_create$149,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("breadcrumb")['$=='](true)){return nil}else{$writer=["breadcrumb",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Breadcrumb__before_create$149.$$arity=0);return(Opal.def(self,'$_after_create',$Breadcrumb__after_create$150=function $$_after_create(){var $iter=$Breadcrumb__after_create$150.$$p,$yield=$iter||nil,self=this;if($iter)$Breadcrumb__after_create$150.$$p=null;$send2(self,$find_super(self,'_after_create',$Breadcrumb__after_create$150,false,true),'_after_create',[],null);return $(document).foundation();;},$Breadcrumb__after_create$150.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.breadcrumb",$$$($$$($$$('::','GxG'),'Gui'),'Breadcrumb'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'BreadcrumbItem');var $nesting=[self].concat($parent_nesting),$BreadcrumbItem__before_create$151,$BreadcrumbItem__after_create$152;Opal.def(self,'$_before_create',$BreadcrumbItem__before_create$151=function $$_before_create(){var $iter=$BreadcrumbItem__before_create$151.$$p,$yield=$iter||nil,self=this;if($iter)$BreadcrumbItem__before_create$151.$$p=null;$send2(self,$find_super(self,'_before_create',$BreadcrumbItem__before_create$151,false,true),'_before_create',[],null);return(self.domtype="li");},$BreadcrumbItem__before_create$151.$$arity=0);return(Opal.def(self,'$_after_create',$BreadcrumbItem__after_create$152=function $$_after_create(){var $iter=$BreadcrumbItem__after_create$152.$$p,$yield=$iter||nil,self=this;if($iter)$BreadcrumbItem__after_create$152.$$p=null;$send2(self,$find_super(self,'_after_create',$BreadcrumbItem__after_create$152,false,true),'_after_create',[],null);return $(document).foundation();;},$BreadcrumbItem__after_create$152.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.breadcrumb.item",$$$($$$($$$('::','GxG'),'Gui'),'BreadcrumbItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ButtonGroup');var $nesting=[self].concat($parent_nesting),$ButtonGroup__before_create$153,$ButtonGroup__after_create$154;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$ButtonGroup__before_create$153=function $$_before_create(){var $iter=$ButtonGroup__before_create$153.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ButtonGroup__before_create$153.$$p=null;$send2(self,$find_super(self,'_before_create',$ButtonGroup__before_create$153,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("button-group")['$=='](true)){return nil}else{$writer=["button-group",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ButtonGroup__before_create$153.$$arity=0);return(Opal.def(self,'$_after_create',$ButtonGroup__after_create$154=function $$_after_create(){var $iter=$ButtonGroup__after_create$154.$$p,$yield=$iter||nil,self=this;if($iter)$ButtonGroup__after_create$154.$$p=null;$send2(self,$find_super(self,'_after_create',$ButtonGroup__after_create$154,false,true),'_after_create',[],null);return $(document).foundation();;},$ButtonGroup__after_create$154.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.button.group",$$$($$$($$$('::','GxG'),'Gui'),'ButtonGroup'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Callout');var $nesting=[self].concat($parent_nesting),$Callout__before_create$155,$Callout__after_create$156;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Callout__before_create$155=function $$_before_create(){var $iter=$Callout__before_create$155.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Callout__before_create$155.$$p=null;$send2(self,$find_super(self,'_before_create',$Callout__before_create$155,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("callout")['$=='](true)){return nil}else{$writer=["callout",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Callout__before_create$155.$$arity=0);return(Opal.def(self,'$_after_create',$Callout__after_create$156=function $$_after_create(){var $iter=$Callout__after_create$156.$$p,$yield=$iter||nil,self=this;if($iter)$Callout__after_create$156.$$p=null;$send2(self,$find_super(self,'_after_create',$Callout__after_create$156,false,true),'_after_create',[],null);return $(document).foundation();;},$Callout__after_create$156.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.callout",$$$($$$($$$('::','GxG'),'Gui'),'Callout'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ColoredLabel');var $nesting=[self].concat($parent_nesting),$ColoredLabel__before_create$157;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$ColoredLabel__before_create$157=function $$_before_create(){var $iter=$ColoredLabel__before_create$157.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ColoredLabel__before_create$157.$$p=null;$send2(self,$find_super(self,'_before_create',$ColoredLabel__before_create$157,false,true),'_before_create',[],null);self.domtype="span";if(self.states['$[]']("label")['$=='](true)){return nil}else{$writer=["label",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ColoredLabel__before_create$157.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.label.colored",$$$($$$($$$('::','GxG'),'Gui'),'ColoredLabel'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DrilldownMenu');var $nesting=[self].concat($parent_nesting),$DrilldownMenu__before_create$158,$DrilldownMenu__after_create$159;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$DrilldownMenu__before_create$158=function $$_before_create(){var $iter=$DrilldownMenu__before_create$158.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DrilldownMenu__before_create$158.$$p=null;$send2(self,$find_super(self,'_before_create',$DrilldownMenu__before_create$158,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-drilldown"))){return nil}else{$writer=["data-drilldown",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DrilldownMenu__before_create$158.$$arity=0);return(Opal.def(self,'$_after_create',$DrilldownMenu__after_create$159=function $$_after_create(){var $iter=$DrilldownMenu__after_create$159.$$p,$yield=$iter||nil,self=this;if($iter)$DrilldownMenu__after_create$159.$$p=null;$send2(self,$find_super(self,'_after_create',$DrilldownMenu__after_create$159,false,true),'_after_create',[],null);return $(document).foundation();;},$DrilldownMenu__after_create$159.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.drilldown.menu",$$$($$$($$$('::','GxG'),'Gui'),'DrilldownMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DrilldownSubMenu');var $nesting=[self].concat($parent_nesting),$DrilldownSubMenu__before_create$160,$DrilldownSubMenu__after_create$161;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$DrilldownSubMenu__before_create$160=function $$_before_create(){var $iter=$DrilldownSubMenu__before_create$160.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DrilldownSubMenu__before_create$160.$$p=null;$send2(self,$find_super(self,'_before_create',$DrilldownSubMenu__before_create$160,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){return nil}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DrilldownSubMenu__before_create$160.$$arity=0);return(Opal.def(self,'$_after_create',$DrilldownSubMenu__after_create$161=function $$_after_create(){var $iter=$DrilldownSubMenu__after_create$161.$$p,$yield=$iter||nil,self=this;if($iter)$DrilldownSubMenu__after_create$161.$$p=null;$send2(self,$find_super(self,'_after_create',$DrilldownSubMenu__after_create$161,false,true),'_after_create',[],null);return $(document).foundation();;},$DrilldownSubMenu__after_create$161.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.drilldown.submenu",$$$($$$($$$('::','GxG'),'Gui'),'DrilldownSubMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DrilldownMenuItem');var $nesting=[self].concat($parent_nesting),$DrilldownMenuItem__before_create$162;return(Opal.def(self,'$_before_create',$DrilldownMenuItem__before_create$162=function $$_before_create(){var $iter=$DrilldownMenuItem__before_create$162.$$p,$yield=$iter||nil,self=this;if($iter)$DrilldownMenuItem__before_create$162.$$p=null;$send2(self,$find_super(self,'_before_create',$DrilldownMenuItem__before_create$162,false,true),'_before_create',[],null);return(self.domtype="li");},$DrilldownMenuItem__before_create$162.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.drilldown.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'DrilldownMenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DropdownSubMenu');var $nesting=[self].concat($parent_nesting),$DropdownSubMenu__before_create$163,$DropdownSubMenu__after_create$164;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$DropdownSubMenu__before_create$163=function $$_before_create(){var $iter=$DropdownSubMenu__before_create$163.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DropdownSubMenu__before_create$163.$$p=null;$send2(self,$find_super(self,'_before_create',$DropdownSubMenu__before_create$163,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("menu")['$=='](true)){return nil}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DropdownSubMenu__before_create$163.$$arity=0);return(Opal.def(self,'$_after_create',$DropdownSubMenu__after_create$164=function $$_after_create(){var $iter=$DropdownSubMenu__after_create$164.$$p,$yield=$iter||nil,self=this;if($iter)$DropdownSubMenu__after_create$164.$$p=null;$send2(self,$find_super(self,'_after_create',$DropdownSubMenu__after_create$164,false,true),'_after_create',[],null);return $(document).foundation();;},$DropdownSubMenu__after_create$164.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.dropdown.submenu",$$$($$$($$$('::','GxG'),'Gui'),'DropdownSubMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DropdownMenuItem');var $nesting=[self].concat($parent_nesting),$DropdownMenuItem__before_create$165;return(Opal.def(self,'$_before_create',$DropdownMenuItem__before_create$165=function $$_before_create(){var $iter=$DropdownMenuItem__before_create$165.$$p,$yield=$iter||nil,self=this;if($iter)$DropdownMenuItem__before_create$165.$$p=null;$send2(self,$find_super(self,'_before_create',$DropdownMenuItem__before_create$165,false,true),'_before_create',[],null);return(self.domtype="li");},$DropdownMenuItem__before_create$165.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.dropdown.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'DropdownMenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Equalizer');var $nesting=[self].concat($parent_nesting),$Equalizer__before_create$166;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Equalizer__before_create$166=function $$_before_create(){var $iter=$Equalizer__before_create$166.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Equalizer__before_create$166.$$p=null;$send2(self,$find_super(self,'_before_create',$Equalizer__before_create$166,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("grid-x")['$=='](true)){}else{$writer=["grid-x",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("grid-margin-x")['$=='](true)){}else{$writer=["grid-margin-x",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-equalizer"))){}else{$writer=["data-equalizer",nil];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-equalize-on"))){return nil}else{$writer=["data-equalize-on","medium"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Equalizer__before_create$166.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.equalizer",$$$($$$($$$('::','GxG'),'Gui'),'Equalizer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FlexGridRow');var $nesting=[self].concat($parent_nesting),$FlexGridRow__before_create$167;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$FlexGridRow__before_create$167=function $$_before_create(){var $iter=$FlexGridRow__before_create$167.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FlexGridRow__before_create$167.$$p=null;$send2(self,$find_super(self,'_before_create',$FlexGridRow__before_create$167,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("row")['$=='](true)){return nil}else{$writer=["row",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$FlexGridRow__before_create$167.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.flexgrid.row",$$$($$$($$$('::','GxG'),'Gui'),'FlexGridRow'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'FlexGridColumn');var $nesting=[self].concat($parent_nesting),$FlexGridColumn__before_create$168;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$FlexGridColumn__before_create$168=function $$_before_create(){var $iter=$FlexGridColumn__before_create$168.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$FlexGridColumn__before_create$168.$$p=null;$send2(self,$find_super(self,'_before_create',$FlexGridColumn__before_create$168,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("columns")['$=='](true)){return nil}else{$writer=["columns",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$FlexGridColumn__before_create$168.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.flexgrid.column",$$$($$$($$$('::','GxG'),'Gui'),'FlexGridColumn'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Embed');var $nesting=[self].concat($parent_nesting),$Embed__before_create$169;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Embed__before_create$169=function $$_before_create(){var $iter=$Embed__before_create$169.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Embed__before_create$169.$$p=null;$send2(self,$find_super(self,'_before_create',$Embed__before_create$169,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("responsive-embed")['$=='](true)){return nil}else{$writer=["responsive-embed",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Embed__before_create$169.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.embed",$$$($$$($$$('::','GxG'),'Gui'),'Embed'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MediaObject');var $nesting=[self].concat($parent_nesting),$MediaObject__before_create$170;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$MediaObject__before_create$170=function $$_before_create(){var $iter=$MediaObject__before_create$170.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$MediaObject__before_create$170.$$p=null;$send2(self,$find_super(self,'_before_create',$MediaObject__before_create$170,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("media-object")['$=='](true)){return nil}else{$writer=["media-object",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$MediaObject__before_create$170.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.media.object",$$$($$$($$$('::','GxG'),'Gui'),'MediaObject'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MediaObjectSection');var $nesting=[self].concat($parent_nesting),$MediaObjectSection__before_create$171;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$MediaObjectSection__before_create$171=function $$_before_create(){var $iter=$MediaObjectSection__before_create$171.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$MediaObjectSection__before_create$171.$$p=null;$send2(self,$find_super(self,'_before_create',$MediaObjectSection__before_create$171,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("media-object-section")['$=='](true)){return nil}else{$writer=["media-object-section",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$MediaObjectSection__before_create$171.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.media.object.section",$$$($$$($$$('::','GxG'),'Gui'),'MediaObjectSection'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'DropdownMenu');var $nesting=[self].concat($parent_nesting),$DropdownMenu__before_create$172,$DropdownMenu_add_menu_item$173;self.$$prototype.states=self.$$prototype.options=nil;Opal.def(self,'$_before_create',$DropdownMenu__before_create$172=function $$_before_create(){var $iter=$DropdownMenu__before_create$172.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$DropdownMenu__before_create$172.$$p=null;$send2(self,$find_super(self,'_before_create',$DropdownMenu__before_create$172,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("dropdown")['$=='](true)){}else{$writer=["dropdown",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("menu")['$=='](true)){}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-dropdown-menu"))){return nil}else{$writer=["data-dropdown-menu",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$DropdownMenu__before_create$172.$$arity=0);return(Opal.def(self,'$add_menu_item',$DropdownMenu_add_menu_item$173=function $$add_menu_item(label,data){var self=this,the_item=nil,$writer=nil;if(label==null){label=nil;};if(data==null){data=nil;};the_item=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.dropdown.menu.item"];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["label","data"],{"label":label,"data":data})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$page().$build_components(self,[the_item]);return true;},$DropdownMenu_add_menu_item$173.$$arity=-1),nil)&&'add_menu_item';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.dropdown.menu",$$$($$$($$$('::','GxG'),'Gui'),'DropdownMenu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MenuBar');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],$$$($$$($$$('::','GxG'),'Gui'),'DropdownMenu'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.menu.bar",$$$($$$($$$('::','GxG'),'Gui'),'MenuBar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Menu');var $nesting=[self].concat($parent_nesting),$Menu__before_create$174,$Menu_add_menu_item$175;self.$$prototype.states=nil;Opal.def(self,'$_before_create',$Menu__before_create$174=function $$_before_create(){var $iter=$Menu__before_create$174.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Menu__before_create$174.$$p=null;$send2(self,$find_super(self,'_before_create',$Menu__before_create$174,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("menu")['$=='](true)){return nil}else{$writer=["menu",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Menu__before_create$174.$$arity=0);return(Opal.def(self,'$add_menu_item',$Menu_add_menu_item$175=function $$add_menu_item(label,data){var self=this,the_item=nil,$writer=nil;if(label==null){label=nil;};if(data==null){data=nil;};the_item=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.menu.item"];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["label","data"],{"label":label,"data":data})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$page().$build_components(self,[the_item]);return true;},$Menu_add_menu_item$175.$$arity=-1),nil)&&'add_menu_item';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.menu",$$$($$$($$$('::','GxG'),'Gui'),'Menu'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'MenuItem');var $nesting=[self].concat($parent_nesting),$MenuItem__before_create$176,$MenuItem_initialize$177,$MenuItem_cascade$178,$MenuItem_set_label$179,$MenuItem_set_data$180,$MenuItem_select$181;self.$$prototype.uuid=self.$$prototype.settings=self.$$prototype.label=nil;Opal.def(self,'$_before_create',$MenuItem__before_create$176=function $$_before_create(){var $iter=$MenuItem__before_create$176.$$p,$yield=$iter||nil,self=this;if($iter)$MenuItem__before_create$176.$$p=null;$send2(self,$find_super(self,'_before_create',$MenuItem__before_create$176,false,true),'_before_create',[],null);return(self.domtype="li");},$MenuItem__before_create$176.$$arity=0);Opal.def(self,'$initialize',$MenuItem_initialize$177=function $$initialize(the_parent,options){var $iter=$MenuItem_initialize$177.$$p,$yield=$iter||nil,self=this;if($iter)$MenuItem_initialize$177.$$p=null;self.label=nil;$send2(self,$find_super(self,'initialize',$MenuItem_initialize$177,false,true),'initialize',[the_parent,options],null);return self;},$MenuItem_initialize$177.$$arity=2);Opal.def(self,'$cascade',$MenuItem_cascade$178=function $$cascade(){var self=this,label=nil,$writer=nil,$ret_or_4=nil,the_object=nil;label=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"label "+(self.uuid.$to_s())];$send(label,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","anchor"];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content"],{"content":(function(){if($truthy(($ret_or_4=self.settings['$[]']("label")))){return $ret_or_4}else{return "Untitled"};return nil;})().$to_s()})];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" menu_item = self.find_parent_type(::GxG::Gui::MenuItem)\n"+" if menu_item\n"+" unless menu_item.get_state(:disabled) == true\n"+" menu_item.select()\n"+" end\n"+" end\n"+" end\n"+" "];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(label,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$page().$build_components(self,[label]);the_object=self.$page().$find_object_by(""+"label "+(self.uuid.$to_s()));if($truthy(the_object)){return(self.label=the_object)}else{return nil};},$MenuItem_cascade$178.$$arity=0);Opal.def(self,'$set_label',$MenuItem_set_label$179=function $$set_label(the_text){var self=this,$writer=nil;if(the_text==null){the_text=nil;};if($truthy(self.label)){self.label.$set_text(the_text.$to_s());$writer=["label",the_text.$to_s()];$send(self.settings,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;}else{return nil};},$MenuItem_set_label$179.$$arity=-1);Opal.def(self,'$set_data',$MenuItem_set_data$180=function $$set_data(data){var self=this,$writer=nil;if(data==null){data=nil;};$writer=["data",data];$send(self.settings,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];},$MenuItem_set_data$180.$$arity=-1);return(Opal.def(self,'$select',$MenuItem_select$181=function $$select(data){var self=this;if(data==null){data=nil;};return nil;},$MenuItem_select$181.$$arity=-1),nil)&&'select';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.menu.item",$$$($$$($$$('::','GxG'),'Gui'),'MenuItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasWrapper');var $nesting=[self].concat($parent_nesting),$OffCanvasWrapper__before_create$182;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OffCanvasWrapper__before_create$182=function $$_before_create(){var $iter=$OffCanvasWrapper__before_create$182.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasWrapper__before_create$182.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasWrapper__before_create$182,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas-wrapper")['$=='](true)){return nil}else{$writer=["off-canvas-wrapper",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasWrapper__before_create$182.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.wrapper",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasWrapper'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasWrapperInner');var $nesting=[self].concat($parent_nesting),$OffCanvasWrapperInner__before_create$183;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasWrapperInner__before_create$183=function $$_before_create(){var $iter=$OffCanvasWrapperInner__before_create$183.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasWrapperInner__before_create$183.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasWrapperInner__before_create$183,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas-wrapper-inner")['$=='](true)){}else{$writer=["off-canvas-wrapper-inner",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas-wrapper"))){return nil}else{$writer=["data-off-canvas-wrapper",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasWrapperInner__before_create$183.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.wrapper.inner",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasWrapperInner'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasLeft');var $nesting=[self].concat($parent_nesting),$OffCanvasLeft__before_create$184;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasLeft__before_create$184=function $$_before_create(){var $iter=$OffCanvasLeft__before_create$184.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasLeft__before_create$184.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasLeft__before_create$184,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas")['$=='](true)){}else{$writer=["off-canvas",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("position-left")['$=='](true)){}else{$writer=["position-left",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas"))){return nil}else{$writer=["data-off-canvas",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasLeft__before_create$184.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.left",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasLeft'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasRight');var $nesting=[self].concat($parent_nesting),$OffCanvasRight__before_create$185;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasRight__before_create$185=function $$_before_create(){var $iter=$OffCanvasRight__before_create$185.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasRight__before_create$185.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasRight__before_create$185,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas")['$=='](true)){}else{$writer=["off-canvas",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("position-right")['$=='](true)){}else{$writer=["position-right",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas"))){}else{$writer=["data-off-canvas",nil];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-position"))){return nil}else{$writer=["data-position","right"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasRight__before_create$185.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.right",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasRight'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OffCanvasContent');var $nesting=[self].concat($parent_nesting),$OffCanvasContent__before_create$186;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OffCanvasContent__before_create$186=function $$_before_create(){var $iter=$OffCanvasContent__before_create$186.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OffCanvasContent__before_create$186.$$p=null;$send2(self,$find_super(self,'_before_create',$OffCanvasContent__before_create$186,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("off-canvas-content")['$=='](true)){}else{$writer=["off-canvas-content",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-off-canvas-content"))){return nil}else{$writer=["data-off-canvas-content",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OffCanvasContent__before_create$186.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.offcanvas.content",$$$($$$($$$('::','GxG'),'Gui'),'OffCanvasContent'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Orbit');var $nesting=[self].concat($parent_nesting),$Orbit__before_create$187;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Orbit__before_create$187=function $$_before_create(){var $iter=$Orbit__before_create$187.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Orbit__before_create$187.$$p=null;$send2(self,$find_super(self,'_before_create',$Orbit__before_create$187,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("orbit")['$=='](true)){}else{$writer=["orbit",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("role"))){}else{$writer=["role","region"];$send(self.options,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-orbit"))){return nil}else{$writer=["data-orbit",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Orbit__before_create$187.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit",$$$($$$($$$('::','GxG'),'Gui'),'Orbit'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitContainer');var $nesting=[self].concat($parent_nesting),$OrbitContainer__before_create$188;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitContainer__before_create$188=function $$_before_create(){var $iter=$OrbitContainer__before_create$188.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitContainer__before_create$188.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitContainer__before_create$188,false,true),'_before_create',[],null);self.domtype="ul";if(self.states['$[]']("orbit-container")['$=='](true)){return nil}else{$writer=["orbit-container",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitContainer__before_create$188.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.container",$$$($$$($$$('::','GxG'),'Gui'),'OrbitContainer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitPrevious');var $nesting=[self].concat($parent_nesting),$OrbitPrevious__before_create$189;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitPrevious__before_create$189=function $$_before_create(){var $iter=$OrbitPrevious__before_create$189.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitPrevious__before_create$189.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitPrevious__before_create$189,false,true),'_before_create',[],null);self.domtype="button";if(self.states['$[]']("orbit-previous")['$=='](true)){return nil}else{$writer=["orbit-previous",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitPrevious__before_create$189.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.previous",$$$($$$($$$('::','GxG'),'Gui'),'OrbitPrevious'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitNext');var $nesting=[self].concat($parent_nesting),$OrbitNext__before_create$190;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitNext__before_create$190=function $$_before_create(){var $iter=$OrbitNext__before_create$190.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitNext__before_create$190.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitNext__before_create$190,false,true),'_before_create',[],null);self.domtype="button";if(self.states['$[]']("orbit-next")['$=='](true)){return nil}else{$writer=["orbit-next",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitNext__before_create$190.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.next",$$$($$$($$$('::','GxG'),'Gui'),'OrbitNext'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitSlide');var $nesting=[self].concat($parent_nesting),$OrbitSlide__before_create$191;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitSlide__before_create$191=function $$_before_create(){var $iter=$OrbitSlide__before_create$191.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitSlide__before_create$191.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitSlide__before_create$191,false,true),'_before_create',[],null);self.domtype="li";if(self.states['$[]']("orbit-slide")['$=='](true)){return nil}else{$writer=["orbit-slide",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitSlide__before_create$191.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.slide",$$$($$$($$$('::','GxG'),'Gui'),'OrbitSlide'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitNavigator');var $nesting=[self].concat($parent_nesting),$OrbitNavigator__before_create$192;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$OrbitNavigator__before_create$192=function $$_before_create(){var $iter=$OrbitNavigator__before_create$192.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitNavigator__before_create$192.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitNavigator__before_create$192,false,true),'_before_create',[],null);self.domtype="nav";if(self.states['$[]']("orbit-bullets")['$=='](true)){return nil}else{$writer=["orbit-bullets",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitNavigator__before_create$192.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.navigator",$$$($$$($$$('::','GxG'),'Gui'),'OrbitNavigator'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'OrbitBullet');var $nesting=[self].concat($parent_nesting),$OrbitBullet__before_create$193;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$OrbitBullet__before_create$193=function $$_before_create(){var $iter=$OrbitBullet__before_create$193.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$OrbitBullet__before_create$193.$$p=null;$send2(self,$find_super(self,'_before_create',$OrbitBullet__before_create$193,false,true),'_before_create',[],null);self.domtype="button";if($truthy(self.options.$keys()['$include?']("data-slide"))){return nil}else{$writer=["data-slide","0"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$OrbitBullet__before_create$193.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.orbit.bullet",$$$($$$($$$('::','GxG'),'Gui'),'OrbitBullet'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Pagination');var $nesting=[self].concat($parent_nesting),$Pagination__before_create$194;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Pagination__before_create$194=function $$_before_create(){var $iter=$Pagination__before_create$194.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Pagination__before_create$194.$$p=null;$send2(self,$find_super(self,'_before_create',$Pagination__before_create$194,false,true),'_before_create',[],null);self.domtype="ul";if($truthy(self.options.$keys()['$include?']("role"))){return nil}else{$writer=["role","navigation"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Pagination__before_create$194.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.pagination",$$$($$$($$$('::','GxG'),'Gui'),'Pagination'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'PaginationItem');var $nesting=[self].concat($parent_nesting),$PaginationItem__before_create$195;return(Opal.def(self,'$_before_create',$PaginationItem__before_create$195=function $$_before_create(){var $iter=$PaginationItem__before_create$195.$$p,$yield=$iter||nil,self=this;if($iter)$PaginationItem__before_create$195.$$p=null;$send2(self,$find_super(self,'_before_create',$PaginationItem__before_create$195,false,true),'_before_create',[],null);return(self.domtype="li");},$PaginationItem__before_create$195.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.pagination.item",$$$($$$($$$('::','GxG'),'Gui'),'PaginationItem'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ProgressBar');var $nesting=[self].concat($parent_nesting),$ProgressBar__before_create$196;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$ProgressBar__before_create$196=function $$_before_create(){var $iter=$ProgressBar__before_create$196.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ProgressBar__before_create$196.$$p=null;$send2(self,$find_super(self,'_before_create',$ProgressBar__before_create$196,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("progress")['$=='](true)){}else{$writer=["progress",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("role"))){return nil}else{$writer=["role","progressbar"];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ProgressBar__before_create$196.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.progress.bar",$$$($$$($$$('::','GxG'),'Gui'),'ProgressBar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'ProgressMeter');var $nesting=[self].concat($parent_nesting),$ProgressMeter__before_create$197;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$ProgressMeter__before_create$197=function $$_before_create(){var $iter=$ProgressMeter__before_create$197.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$ProgressMeter__before_create$197.$$p=null;$send2(self,$find_super(self,'_before_create',$ProgressMeter__before_create$197,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("progress-meter")['$=='](true)){return nil}else{$writer=["progress-meter",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$ProgressMeter__before_create$197.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.progress.meter",$$$($$$($$$('::','GxG'),'Gui'),'ProgressMeter'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'HorizontalSlider');var $nesting=[self].concat($parent_nesting),$HorizontalSlider__before_create$198,$HorizontalSlider__after_create$199,$HorizontalSlider_set_script$200;self.$$prototype.states=self.$$prototype.options=self.$$prototype.data_second=self.$$prototype.data_start=self.$$prototype.data_end=self.$$prototype.uuid=nil;Opal.def(self,'$_before_create',$HorizontalSlider__before_create$198=function $$_before_create(){var $iter=$HorizontalSlider__before_create$198.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$HorizontalSlider__before_create$198.$$p=null;$send2(self,$find_super(self,'_before_create',$HorizontalSlider__before_create$198,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("slider")['$=='](true)){}else{$writer=["slider",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options['$[]']("data-initial-start"))){self.data_start=self.options.$delete("data-initial-start")}else{self.data_start="50"};if($truthy(self.options['$[]']("data-initial-end"))){self.data_second=self.options.$delete("data-initial-end")}else{self.data_second=nil};if($truthy(self.options['$[]']("data-end"))){return(self.data_end=self.options.$delete("data-end"))}else{return(self.data_end="200")};},$HorizontalSlider__before_create$198.$$arity=0);Opal.def(self,'$_after_create',$HorizontalSlider__after_create$199=function $$_after_create(){var $iter=$HorizontalSlider__after_create$199.$$p,$yield=$iter||nil,self=this,container_one=nil,slider=nil,handle=nil,handle_two=nil,container_two=nil,value_containter=nil,container_three=nil,value_containter_two=nil;if($iter)$HorizontalSlider__after_create$199.$$p=null;$send2(self,$find_super(self,'_after_create',$HorizontalSlider__after_create$199,false,true),'_after_create',[],null);if($truthy(self.data_second)){container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-initial-end","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-initial-end":self.data_second,"data-end":self.data_end,"states":["slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));handle_two=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle_two","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));container_three=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container_two",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter_two=container_three.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value_two","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());handle_two.$set_attribute("aria-controls",value_containter_two.$uuid().$to_s());}else{container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-end":self.data_end,"states":["slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());};return $(document).foundation();;},$HorizontalSlider__after_create$199.$$arity=0);return(Opal.def(self,'$set_script',$HorizontalSlider_set_script$200=function $$set_script(the_script_body,alternate_target){var $iter=$HorizontalSlider_set_script$200.$$p,$yield=$iter||nil,self=this,handle=nil,handle_two=nil;if($iter)$HorizontalSlider_set_script$200.$$p=null;if(the_script_body==null){the_script_body="";};if(alternate_target==null){alternate_target=nil;};if($truthy(alternate_target)){return alternate_target.$set_script(the_script_body)}else if($truthy(self.data_second)){handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};$send2(self,$find_super(self,'set_script',$HorizontalSlider_set_script$200,false,true),'set_script',[the_script_body,handle],null);handle_two=self.$find_descendant("slider_handle_two");if($truthy(handle_two)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$HorizontalSlider_set_script$200,false,true),'set_script',[the_script_body,handle_two],null);}else{handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$HorizontalSlider_set_script$200,false,true),'set_script',[the_script_body,handle],null);};},$HorizontalSlider_set_script$200.$$arity=-1),nil)&&'set_script';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.slider.horizontal",$$$($$$($$$('::','GxG'),'Gui'),'HorizontalSlider'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'VerticalSlider');var $nesting=[self].concat($parent_nesting),$VerticalSlider__before_create$201,$VerticalSlider__after_create$202,$VerticalSlider_set_script$203;self.$$prototype.states=self.$$prototype.options=self.$$prototype.data_second=self.$$prototype.data_start=self.$$prototype.data_end=self.$$prototype.uuid=nil;Opal.def(self,'$_before_create',$VerticalSlider__before_create$201=function $$_before_create(){var $iter=$VerticalSlider__before_create$201.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$VerticalSlider__before_create$201.$$p=null;$send2(self,$find_super(self,'_before_create',$VerticalSlider__before_create$201,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("slider")['$=='](true)){}else{$writer=["slider",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if(self.states['$[]']("vertical")['$=='](true)){}else{$writer=["vertical",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options['$[]']("data-initial-start"))){self.data_start=self.options.$delete("data-initial-start")}else{self.data_start="50"};if($truthy(self.options['$[]']("data-initial-end"))){self.data_second=self.options.$delete("data-initial-end")}else{self.data_second=nil};if($truthy(self.options['$[]']("data-end"))){return(self.data_end=self.options.$delete("data-end"))}else{return(self.data_end="200")};},$VerticalSlider__before_create$201.$$arity=0);Opal.def(self,'$_after_create',$VerticalSlider__after_create$202=function $$_after_create(){var $iter=$VerticalSlider__after_create$202.$$p,$yield=$iter||nil,self=this,container_one=nil,slider=nil,handle=nil,handle_two=nil,container_two=nil,value_containter=nil,container_three=nil,value_containter_two=nil;if($iter)$VerticalSlider__after_create$202.$$p=null;$send2(self,$find_super(self,'_after_create',$VerticalSlider__after_create$202,false,true),'_after_create',[],null);if($truthy(self.data_second)){container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-initial-end","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-initial-end":self.data_second,"data-end":self.data_end,"states":["vertical","slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));handle_two=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle_two","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));container_three=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container_two",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter_two=container_three.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value_two","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());handle_two.$set_attribute("aria-controls",value_containter_two.$uuid().$to_s());}else{container_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider_container","settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-10 columns"]}),"script":"","content":[]}));slider=container_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":"slider","settings":$hash2([],{}),"options":$hash2(["data-slider","data-initial-start","data-end","states"],{"data-slider":nil,"data-initial-start":self.data_start,"data-end":self.data_end,"states":["vertical","slider"]}),"script":"","content":[]}));handle=slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_handle","settings":$hash2([],{}),"options":$hash2(["data-slider-handle","role","tabindex","states"],{"data-slider-handle":nil,"role":"slider","tabindex":"1","states":["slider-handle"]}),"script":"","content":[]}));slider.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":"slider_groove","settings":$hash2([],{}),"options":$hash2(["data-slider-fill","states"],{"data-slider-fill":nil,"states":["slider-fill"]}),"script":"","content":[]}));container_two=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("value_container",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["small-2 columns"]}),"script":"","content":[]}));value_containter=container_two.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.picker.number","title":"slider_value","settings":$hash2([],{}),"options":$hash2([],{}),"script":"","content":[]}));handle.$set_attribute("aria-controls",value_containter.$uuid().$to_s());};return $(document).foundation();;},$VerticalSlider__after_create$202.$$arity=0);return(Opal.def(self,'$set_script',$VerticalSlider_set_script$203=function $$set_script(the_script_body,alternate_target){var $iter=$VerticalSlider_set_script$203.$$p,$yield=$iter||nil,self=this,handle=nil,handle_two=nil;if($iter)$VerticalSlider_set_script$203.$$p=null;if(the_script_body==null){the_script_body="";};if(alternate_target==null){alternate_target=nil;};if($truthy(alternate_target)){return alternate_target.$set_script(the_script_body)}else if($truthy(self.data_second)){handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};$send2(self,$find_super(self,'set_script',$VerticalSlider_set_script$203,false,true),'set_script',[the_script_body,handle],null);handle_two=self.$find_descendant("slider_handle_two");if($truthy(handle_two)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$VerticalSlider_set_script$203,false,true),'set_script',[the_script_body,handle_two],null);}else{handle=self.$find_descendant("slider_handle");if($truthy(handle)){}else{self.$raise("Unable to find slider handle object.")};return $send2(self,$find_super(self,'set_script',$VerticalSlider_set_script$203,false,true),'set_script',[the_script_body,handle],null);};},$VerticalSlider_set_script$203.$$arity=-1),nil)&&'set_script';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.slider.vertical",$$$($$$($$$('::','GxG'),'Gui'),'VerticalSlider'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'StickyContainer');var $nesting=[self].concat($parent_nesting),$StickyContainer__before_create$204;self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$StickyContainer__before_create$204=function $$_before_create(){var $iter=$StickyContainer__before_create$204.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$StickyContainer__before_create$204.$$p=null;$send2(self,$find_super(self,'_before_create',$StickyContainer__before_create$204,false,true),'_before_create',[],null);self.domtype="div";if($truthy(self.options.$keys()['$include?']("data-sticky-container"))){return nil}else{$writer=["data-sticky-container",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$StickyContainer__before_create$204.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.sticky.container",$$$($$$($$$('::','GxG'),'Gui'),'StickyContainer'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Sticky');var $nesting=[self].concat($parent_nesting),$Sticky__before_create$205;self.$$prototype.states=self.$$prototype.options=nil;return(Opal.def(self,'$_before_create',$Sticky__before_create$205=function $$_before_create(){var $iter=$Sticky__before_create$205.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Sticky__before_create$205.$$p=null;$send2(self,$find_super(self,'_before_create',$Sticky__before_create$205,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("sticky")['$=='](true)){}else{$writer=["sticky",true];$send(self.states,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(self.options.$keys()['$include?']("data-sticky"))){return nil}else{$writer=["data-sticky",nil];$send(self.options,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Sticky__before_create$205.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.sticky",$$$($$$($$$('::','GxG'),'Gui'),'Sticky'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Switch');var $nesting=[self].concat($parent_nesting),$Switch__before_create$206,$Switch__after_create$207;self.$$prototype.states=self.$$prototype.uuid=nil;Opal.def(self,'$_before_create',$Switch__before_create$206=function $$_before_create(){var $iter=$Switch__before_create$206.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Switch__before_create$206.$$p=null;$send2(self,$find_super(self,'_before_create',$Switch__before_create$206,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("switch")['$=='](true)){return nil}else{$writer=["switch",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Switch__before_create$206.$$arity=0);return(Opal.def(self,'$_after_create',$Switch__after_create$207=function $$_after_create(){var self=this,input_one=nil,label_one=nil,span_one=nil;input_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.button.checkbox","title":$rb_plus("switch_input",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["switch-input"]}),"script":"","content":[]}));label_one=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.label","title":$rb_plus("switch_paddle",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["for","states"],{"for":input_one.$uuid().$to_s(),"states":["switch-paddle"]}),"script":"","content":[]}));span_one=label_one.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.span","title":$rb_plus("switch_span",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["show-for-sr"]}),"script":"","content":[]}));return $(document).foundation();;},$Switch__after_create$207.$$arity=0),nil)&&'_after_create';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.switch",$$$($$$($$$('::','GxG'),'Gui'),'Switch'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TabContent');var $nesting=[self].concat($parent_nesting),$TabContent__before_create$208;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TabContent__before_create$208=function $$_before_create(){var $iter=$TabContent__before_create$208.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TabContent__before_create$208.$$p=null;$send2(self,$find_super(self,'_before_create',$TabContent__before_create$208,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("tabs-panel")['$=='](true)){return nil}else{$writer=["tabs-panel",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TabContent__before_create$208.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.tab.content",$$$($$$($$$('::','GxG'),'Gui'),'TabContent'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TabSet');var $nesting=[self].concat($parent_nesting),$TabSet__before_create$209,$TabSet__after_create$210,$TabSet_add_child$211;self.$$prototype.uuid=self.$$prototype.tabs=self.$$prototype.tab_content=nil;Opal.def(self,'$_before_create',$TabSet__before_create$209=function $$_before_create(){var $iter=$TabSet__before_create$209.$$p,$yield=$iter||nil,self=this;if($iter)$TabSet__before_create$209.$$p=null;$send2(self,$find_super(self,'_before_create',$TabSet__before_create$209,false,true),'_before_create',[],null);return(self.domtype="div");},$TabSet__before_create$209.$$arity=0);Opal.def(self,'$_after_create',$TabSet__after_create$210=function $$_after_create(){var self=this;self.tabs=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.list","title":$rb_plus("tabs",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["data-tabs","states"],{"data-tabs":nil,"states":["tabs"]}),"script":"","content":[]}));self.tab_content=self.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.block","title":$rb_plus("tab_content",self.uuid.$to_s()),"settings":$hash2([],{}),"options":$hash2(["data-tabs-content","states"],{"data-tabs-content":self.tabs.$uuid().$to_s(),"states":["tabs-content"]}),"script":"","content":[]}));return $(document).foundation();;},$TabSet__after_create$210.$$arity=0);return(Opal.def(self,'$add_child',$TabSet_add_child$211=function $$add_child(options){var self=this,new_child=nil,item=nil,link=nil,$writer=nil;if(options==null){options=$hash2([],{});};new_child=nil;if(options['$[]']("component").$to_s().$downcase().$to_sym()['$==']("tab_content")){new_child=self.tab_content.$add_child(options);item=self.tabs.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.list.item","title":$rb_plus("tab",new_child.$uuid().$to_s()),"settings":$hash2([],{}),"options":$hash2(["states"],{"states":["tabs-title"]}),"script":"","content":[]}));link=item.$add_child($hash2(["component","title","settings","options","script","content"],{"component":"org.gxg.gui.link.anchor","title":$rb_plus("link",new_child.$uuid().$to_s()),"settings":$hash2([],{}),"options":$hash2(["href","states"],{"href":$rb_plus("#",new_child.$uuid().$to_s()),"states":[]}),"script":"","content":[]}));$writer=[new_child.$title().$to_s()];$send(link,'value=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;}else{self.$raise("Unacceptable Component Type")};return new_child;},$TabSet_add_child$211.$$arity=-1),nil)&&'add_child';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.tab.set",$$$($$$($$$('::','GxG'),'Gui'),'TabSet'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Thumbnail');var $nesting=[self].concat($parent_nesting),$Thumbnail__before_create$212;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Thumbnail__before_create$212=function $$_before_create(){var $iter=$Thumbnail__before_create$212.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Thumbnail__before_create$212.$$p=null;$send2(self,$find_super(self,'_before_create',$Thumbnail__before_create$212,false,true),'_before_create',[],null);self.domtype="img";if(self.states['$[]']("thumbnail")['$=='](true)){return nil}else{$writer=["thumbnail",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Thumbnail__before_create$212.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.thumbnail",$$$($$$($$$('::','GxG'),'Gui'),'Thumbnail'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Titlebar');var $nesting=[self].concat($parent_nesting),$Titlebar__before_create$213;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Titlebar__before_create$213=function $$_before_create(){var $iter=$Titlebar__before_create$213.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Titlebar__before_create$213.$$p=null;$send2(self,$find_super(self,'_before_create',$Titlebar__before_create$213,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("title-bar")['$=='](true)){return nil}else{$writer=["title-bar",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Titlebar__before_create$213.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.titlebar",$$$($$$($$$('::','GxG'),'Gui'),'Titlebar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TitlebarLeft');var $nesting=[self].concat($parent_nesting),$TitlebarLeft__before_create$214;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TitlebarLeft__before_create$214=function $$_before_create(){var $iter=$TitlebarLeft__before_create$214.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TitlebarLeft__before_create$214.$$p=null;$send2(self,$find_super(self,'_before_create',$TitlebarLeft__before_create$214,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("title-bar-left")['$=='](true)){return nil}else{$writer=["title-bar-left",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TitlebarLeft__before_create$214.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.titlebar.left",$$$($$$($$$('::','GxG'),'Gui'),'TitlebarLeft'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TitlebarRight');var $nesting=[self].concat($parent_nesting),$TitlebarRight__before_create$215;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TitlebarRight__before_create$215=function $$_before_create(){var $iter=$TitlebarRight__before_create$215.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TitlebarRight__before_create$215.$$p=null;$send2(self,$find_super(self,'_before_create',$TitlebarRight__before_create$215,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("title-bar-right")['$=='](true)){return nil}else{$writer=["title-bar-right",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TitlebarRight__before_create$215.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.titlebar.right",$$$($$$($$$('::','GxG'),'Gui'),'TitlebarRight'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Topbar');var $nesting=[self].concat($parent_nesting),$Topbar__before_create$216;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$Topbar__before_create$216=function $$_before_create(){var $iter=$Topbar__before_create$216.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$Topbar__before_create$216.$$p=null;$send2(self,$find_super(self,'_before_create',$Topbar__before_create$216,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("top-bar")['$=='](true)){return nil}else{$writer=["top-bar",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$Topbar__before_create$216.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.topbar",$$$($$$($$$('::','GxG'),'Gui'),'Topbar'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TopbarLeft');var $nesting=[self].concat($parent_nesting),$TopbarLeft__before_create$217;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TopbarLeft__before_create$217=function $$_before_create(){var $iter=$TopbarLeft__before_create$217.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TopbarLeft__before_create$217.$$p=null;$send2(self,$find_super(self,'_before_create',$TopbarLeft__before_create$217,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("top-bar-left")['$=='](true)){return nil}else{$writer=["top-bar-left",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TopbarLeft__before_create$217.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.topbar.left",$$$($$$($$$('::','GxG'),'Gui'),'TopbarLeft'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TopbarRight');var $nesting=[self].concat($parent_nesting),$TopbarRight__before_create$218;self.$$prototype.states=nil;return(Opal.def(self,'$_before_create',$TopbarRight__before_create$218=function $$_before_create(){var $iter=$TopbarRight__before_create$218.$$p,$yield=$iter||nil,self=this,$writer=nil;if($iter)$TopbarRight__before_create$218.$$p=null;$send2(self,$find_super(self,'_before_create',$TopbarRight__before_create$218,false,true),'_before_create',[],null);self.domtype="div";if(self.states['$[]']("top-bar-right")['$=='](true)){return nil}else{$writer=["top-bar-right",true];$send(self.states,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];};},$TopbarRight__before_create$218.$$arity=0),nil)&&'_before_create'})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);return $$$($$$('::','GxG'),'Gui').$register_component_class("org.gxg.gui.topbar.right",$$$($$$($$$('::','GxG'),'Gui'),'TopbarRight'));})($nesting[0],$nesting)})($nesting[0],$nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Object');var $nesting=[self].concat($parent_nesting),$Object_new_component$219;self.$private();return(Opal.def(self,'$new_component',$Object_new_component$219=function $$new_component(the_format_moniker){var self=this,result=nil,$writer=nil;if(the_format_moniker==null){the_format_moniker=nil;};result=nil;if($truthy(the_format_moniker)){if($truthy($$$($$$('::','GxG'),'Gui')['$component_registered?'](the_format_moniker.$to_s().$to_sym()))){result=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component",the_format_moniker.$to_s()];$send(result,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(result,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(result,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(result,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(result,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;}else{self.$log_error(""+"Component "+(the_format_moniker.$inspect())+" not registered.")}}else{self.$log_error("You MUST specify a registered component moniker.")};return result;},$Object_new_component$219.$$arity=-1),nil)&&'new_component';})($nesting[0],null,$nesting);};Opal.modules["web/gxg_layout"]=function(Opal){function $rb_minus(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs-rhs:lhs['$-'](rhs);} function $rb_divide(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs/rhs:lhs['$/'](rhs);} function $rb_gt(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs>rhs:lhs['$>'](rhs);} function $rb_lt(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs','$size','$shift','$uuid','$title','$each','$<<','$new','$to_s','$title=','$-','$[]=','$build_components','$page','$find_object_by','$respond_to?','$include?','$to_sym','$log_warn','$inspect','$clone','$node_path','$nodes','$split','$node_at_path','$+','$join','$gxg_get_state','$expand','$post_event','$expand_path','$to_proc','$call','$!=','$unhighlight','$highlight','$[]','$register_component_class','$parent','$unshift','$is_any?','$update_appearance','$find_parent_type','$theme_icon','$theme_widget','$merge_style','$show','$set_state','$set_attribute','$tree','$hide','$collapse','$unpersist','$each_pair','$animate','$layout_refresh','$to_i','$*','$to_f','$layout_content_area','$round','$/','$===','$dialog_open','$log_error','$basename','$reverse']);return(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);return(function($base,$parent_nesting){var self=$module($base,'Gui');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Tree');var $nesting=[self].concat($parent_nesting),$Tree_add_child$1,$Tree_children$2,$Tree_find_child$3,$Tree_initialize$5,$Tree_cascade$6,$Tree_update_appearance$7,$Tree_set_processor$8,$Tree_node_at_path$9,$Tree_expand_path$11,$Tree_selection$15,$Tree_select$16,$Tree_expand$17,$Tree_collapse$18;self.$$prototype.content=self.$$prototype.uuid=self.$$prototype.processors=self.$$prototype.selection=nil;$alias(self,"original_add_child","add_child");Opal.def(self,'$add_child',$Tree_add_child$1=function $$add_child(object_record){var self=this;if(object_record==null){object_record=nil;};if($truthy(object_record['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(self.content)){return self.content.$add_child(object_record)}else{return self.$original_add_child(object_record)}}else{return nil};},$Tree_add_child$1.$$arity=-1);$alias(self,"original_children","children");Opal.def(self,'$children',$Tree_children$2=function $$children(){var self=this;if($truthy(self.content)){return self.content.$children()}else{return $hash2([],{})}},$Tree_children$2.$$arity=0);Opal.def(self,'$find_child',$Tree_find_child$3=function $$find_child(the_reference,interior){var $a,$$4,self=this,result=nil,uuid_check=nil,search_queue=nil,entry=nil;if(the_reference==null){the_reference=nil;};if(interior==null){interior=false;};result=nil;if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_reference))){uuid_check=true}else{uuid_check=false};if(interior['$=='](true)){search_queue=self.$original_children().$values()}else{search_queue=self.$children().$values()};while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry)){if($truthy(uuid_check)){if(entry.$uuid()['$=='](the_reference)){result=entry;break;;}}else if(entry.$title()['$=='](the_reference)){result=entry;break;;};if($truthy(result)){}else{$send(entry.$children().$values(),'each',[],($$4=function(the_child){var self=$$4.$$s==null?this:$$4.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$4.$$s=self,$$4.$$arity=1,$$4))};};};return result;},$Tree_find_child$3.$$arity=-1);Opal.def(self,'$initialize',$Tree_initialize$5=function $$initialize(the_parent,the_options){var $iter=$Tree_initialize$5.$$p,$yield=$iter||nil,self=this;if($iter)$Tree_initialize$5.$$p=null;self.content=nil;self.selection=nil;self.processors=$hash2([],{});$send2(self,$find_super(self,'initialize',$Tree_initialize$5,false,true),'initialize',[the_parent,the_options],null);return self;},$Tree_initialize$5.$$arity=2);Opal.def(self,'$cascade',$Tree_cascade$6=function $$cascade(){var self=this,interior_component=nil,$writer=nil,the_object=nil;interior_component=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"content "+(self.uuid.$to_s())];$send(interior_component,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.list"];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["white-space","width","height","list-style","margin","padding"],{"white-space":"nowrap","width":"auto","height":"auto","list-style":"none","margin":"0px","padding":"0px"})})];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.content=nil;self.$page().$build_components(self,[interior_component]);the_object=self.$page().$find_object_by(""+"content "+(self.uuid.$to_s()));if($truthy(the_object)){return(self.content=the_object)}else{return nil};},$Tree_cascade$6.$$arity=0);Opal.def(self,'$update_appearance',$Tree_update_appearance$7=function $$update_appearance(){var self=this;return nil},$Tree_update_appearance$7.$$arity=0);Opal.def(self,'$set_processor',$Tree_set_processor$8=function $$set_processor(the_type){var $iter=$Tree_set_processor$8.$$p,block=$iter||nil,self=this,$writer=nil;if($iter)$Tree_set_processor$8.$$p=null;if($iter)$Tree_set_processor$8.$$p=null;;if(the_type==null){the_type=nil;};if($truthy(block['$respond_to?']("call"))){if($truthy(["select","expand","collapse"]['$include?'](the_type.$to_s().$to_sym()))){$writer=[the_type.$to_s().$to_sym(),block];$send(self.processors,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return self.$log_warn(""+"Unsupported processor type: "+(the_type.$to_s().$to_sym().$inspect()))}}else{return nil};},$Tree_set_processor$8.$$arity=-1);Opal.def(self,'$node_at_path',$Tree_node_at_path$9=function $$node_at_path(the_path){var $a,$$10,self=this,result=nil,search_queue=nil,entry=nil;if(the_path==null){the_path=nil;};result=nil;search_queue=self.$children().$values().$clone();while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if(entry.$node_path()['$=='](the_path)){result=entry;break;;}else{$send(entry.$nodes().$values(),'each',[],($$10=function(the_child){var self=$$10.$$s==null?this:$$10.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$10.$$s=self,$$10.$$arity=1,$$10))}};};return result;},$Tree_node_at_path$9.$$arity=-1);Opal.def(self,'$expand_path',$Tree_expand_path$11=function $$expand_path(the_path){var $iter=$Tree_expand_path$11.$$p,block=$iter||nil,$$12,self=this,path_stack=nil,path_array=nil;if($iter)$Tree_expand_path$11.$$p=null;if($iter)$Tree_expand_path$11.$$p=null;;if(the_path==null){the_path=nil;};if($truthy(the_path['$is_a?']($$$('::','String')))){path_stack=[];path_array=the_path.$split("/");(function(){var $brk=Opal.new_brk();try{return $send(path_array,'each',[],($$12=function(entry){var self=$$12.$$s==null?this:$$12.$$s,$$13,$$14,the_node=nil;if(entry==null){entry=nil;};if($truthy($rb_gt(entry.$size(),0))){path_stack['$<<'](entry);the_node=self.$node_at_path($rb_plus("/",path_stack.$join("/")));if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if(the_node.$gxg_get_state("expanded")['$=='](false)){the_node.$expand();$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$13=function(){var self=$$13.$$s==null?this:$$13.$$s;return $send(self,'expand_path',[the_path],block.$to_proc())},$$13.$$s=self,$$13.$$arity=0,$$13));Opal.brk(nil,$brk);};if(the_node.$node_path()['$=='](the_path)){if($truthy(block['$respond_to?']("call"))){return block.$call()}else{return nil}}else{return nil};}else{$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$14=function(){var self=$$14.$$s==null?this:$$14.$$s;return $send(self,'expand_path',[the_path],block.$to_proc())},$$14.$$s=self,$$14.$$arity=0,$$14));Opal.brk(nil,$brk);};}else{return nil};},$$12.$$s=self,$$12.$$brk=$brk,$$12.$$arity=1,$$12))}catch(err){if(err===$brk){return err.$v}else{throw err}}})();};return true;},$Tree_expand_path$11.$$arity=-1);Opal.def(self,'$selection',$Tree_selection$15=function $$selection(){var self=this;return self.selection},$Tree_selection$15.$$arity=0);Opal.def(self,'$select',$Tree_select$16=function $$select(the_node){var self=this;if(the_node==null){the_node=nil;};if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if($truthy(self.selection['$!='](the_node))){if($truthy(self.selection)){self.selection.$unhighlight()};self.selection=the_node;self.selection.$highlight();if($truthy(self.processors['$[]']("select")['$respond_to?']("call"))){return self.processors['$[]']("select").$call(self.selection)}else{return nil};}else{return nil}}else{return nil};},$Tree_select$16.$$arity=-1);Opal.def(self,'$expand',$Tree_expand$17=function $$expand(the_node){var self=this;if(the_node==null){the_node=nil;};if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if($truthy(self.processors['$[]']("expand")['$respond_to?']("call"))){return self.processors['$[]']("expand").$call(the_node)}else{return nil}}else{return nil};},$Tree_expand$17.$$arity=-1);return(Opal.def(self,'$collapse',$Tree_collapse$18=function $$collapse(the_node){var self=this;if(the_node==null){the_node=nil;};if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if($truthy(self.processors['$[]']("collapse")['$respond_to?']("call"))){return self.processors['$[]']("collapse").$call(the_node)}else{return nil}}else{return nil};},$Tree_collapse$18.$$arity=-1),nil)&&'collapse';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("tree",$$$($$$($$$('::','GxG'),'Gui'),'Tree'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TreeNode');var $nesting=[self].concat($parent_nesting),$TreeNode__before_create$19,$TreeNode_add_child$20,$TreeNode_nodes$21,$TreeNode_node_path$22,$TreeNode_find_child$24,$TreeNode_update_appearance$26,$TreeNode_data$27,$TreeNode_appearance$28,$TreeNode_set_appearance$29,$TreeNode_tree_node$30,$TreeNode_tree$31,$TreeNode_initialize$32,$TreeNode_cascade$33,$TreeNode_highlight$34,$TreeNode_unhighlight$35,$TreeNode_expand$36,$TreeNode_collapse$37,$TreeNode_enable$38,$TreeNode_disable$40;self.$$prototype.data=self.$$prototype.content=self.$$prototype.appearance=self.$$prototype.uuid=self.$$prototype.label=self.$$prototype.expander=nil;Opal.def(self,'$_before_create',$TreeNode__before_create$19=function $$_before_create(){var $iter=$TreeNode__before_create$19.$$p,$yield=$iter||nil,self=this;if($iter)$TreeNode__before_create$19.$$p=null;if($truthy(self.data['$is_a?']($$$('::','Hash')))){if($truthy(self.data['$[]']("title"))){self.title=self.data['$[]']("title")}};return $send2(self,$find_super(self,'_before_create',$TreeNode__before_create$19,false,true),'_before_create',[],null);},$TreeNode__before_create$19.$$arity=0);$alias(self,"original_add_child","add_child");Opal.def(self,'$add_child',$TreeNode_add_child$20=function $$add_child(object_record){var self=this;if(object_record==null){object_record=nil;};if($truthy(object_record['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(self.content)){return self.content.$add_child(object_record)}else{return self.$original_add_child(object_record)}}else{return nil};},$TreeNode_add_child$20.$$arity=-1);Opal.def(self,'$nodes',$TreeNode_nodes$21=function $$nodes(){var self=this;if($truthy(self.content)){return self.content.$children()}else{return $hash2([],{})}},$TreeNode_nodes$21.$$arity=0);Opal.def(self,'$node_path',$TreeNode_node_path$22=function $$node_path(){var $a,$$23,self=this,the_path=nil,lineage=nil,the_parent=nil;the_path="";lineage=[self];the_parent=self.$parent();while($truthy(the_parent['$!='](nil))){if($truthy(the_parent['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){lineage.$unshift(the_parent)};the_parent=the_parent.$parent();if($truthy(the_parent['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'Tree')))){the_parent=nil};};$send(lineage,'each',[],($$23=function(the_node){var self=$$23.$$s==null?this:$$23.$$s;if(the_node==null){the_node=nil;};return(the_path=$rb_plus(the_path,""+"/"+(the_node.$title())));},$$23.$$s=self,$$23.$$arity=1,$$23));return the_path;},$TreeNode_node_path$22.$$arity=0);Opal.def(self,'$find_child',$TreeNode_find_child$24=function $$find_child(the_reference){var $a,$$25,self=this,result=nil,uuid_check=nil,search_queue=nil,entry=nil;if(the_reference==null){the_reference=nil;};result=nil;if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_reference))){uuid_check=true}else{uuid_check=false};search_queue=self.$children().$values();while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry)){if($truthy(uuid_check)){if(entry.$uuid()['$=='](the_reference)){result=entry;break;;}}else if(entry.$title()['$=='](the_reference)){result=entry;break;;};if($truthy(result)){}else{$send(entry.$children().$values(),'each',[],($$25=function(the_child){var self=$$25.$$s==null?this:$$25.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$25.$$s=self,$$25.$$arity=1,$$25))};};};return result;},$TreeNode_find_child$24.$$arity=-1);Opal.def(self,'$update_appearance',$TreeNode_update_appearance$26=function $$update_appearance(){var self=this;if($truthy(self.appearance['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){return true}else{return false}},$TreeNode_update_appearance$26.$$arity=0);Opal.def(self,'$data',$TreeNode_data$27=function $$data(){var self=this;return self.data},$TreeNode_data$27.$$arity=0);Opal.def(self,'$appearance',$TreeNode_appearance$28=function $$appearance(){var self=this;return self.appearance},$TreeNode_appearance$28.$$arity=0);Opal.def(self,'$set_appearance',$TreeNode_set_appearance$29=function $$set_appearance(the_record){var self=this;if(the_record==null){the_record=nil;};if($truthy(the_record['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){self.appearance=the_record;return self.$update_appearance();}else{return nil};},$TreeNode_set_appearance$29.$$arity=-1);Opal.def(self,'$tree_node',$TreeNode_tree_node$30=function $$tree_node(){var self=this;return self.$find_parent_type($$$($$$($$$('::','GxG'),'Gui'),'TreeNode'))},$TreeNode_tree_node$30.$$arity=0);Opal.def(self,'$tree',$TreeNode_tree$31=function $$tree(){var self=this;return self.$find_parent_type($$$($$$($$$('::','GxG'),'Gui'),'Tree'))},$TreeNode_tree$31.$$arity=0);Opal.def(self,'$initialize',$TreeNode_initialize$32=function $$initialize(the_parent,the_options){var $iter=$TreeNode_initialize$32.$$p,$yield=$iter||nil,self=this,$ret_or_1=nil,$writer=nil,$ret_or_2=nil,$ret_or_3=nil;if($iter)$TreeNode_initialize$32.$$p=null;self.content=nil;self.appearance=$hash2(["icon","label"],{"icon":self.$theme_icon("folder.svg"),"label":"Untitled"});if($truthy(the_options['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){self.data=(function(){if($truthy(($ret_or_1=the_options['$[]']("data")))){return $ret_or_1}else{return $hash2(["title","type","content"],{"title":"Untitled","type":"virtual_directory","content":$hash2([],{})})};return nil;})();$writer=["icon",(function(){if($truthy(($ret_or_2=the_options['$[]']("icon")))){return $ret_or_2}else{return self.$theme_icon("folder.svg")};return nil;})().$to_s()];$send(self.appearance,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["label",(function(){if($truthy(($ret_or_3=the_options['$[]']("label")))){return $ret_or_3}else{return self.data['$[]']("title")};return nil;})().$to_s()];$send(self.appearance,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;};$send2(self,$find_super(self,'initialize',$TreeNode_initialize$32,false,true),'initialize',[the_parent,the_options],null);return self;},$TreeNode_initialize$32.$$arity=2);Opal.def(self,'$cascade',$TreeNode_cascade$33=function $$cascade(){var self=this,node_frame=nil,$writer=nil,frame_row_one=nil,expander=nil,node_expander_cell=nil,icon=nil,node_icon_cell=nil,the_title=nil,node_label_cell=nil,sublist=nil,subnodes_frame_cell=nil,frame_row_two=nil,the_object=nil;node_frame=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["nodepath","style"],{"nodepath":self.$node_path(),"style":$hash2([],{})})];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;frame_row_one=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;expander=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"expander "+(self.uuid.$to_s())];$send(expander,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.image"];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["src","width","height","style"],{"src":self.$theme_widget("collapse.svg"),"width":32,"height":32,"style":$hash2(["clear","vertical-align"],{"clear":"both","vertical-align":"middle"})})];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" unless the_node.get_state(:disabled) == true\n"+" if self.get_state(:expanded) == true\n"+" self.set_attribute(:src, theme_widget('collapse.svg'))\n"+" self.set_state(:expanded,false)\n"+" the_node.collapse()\n"+" else\n"+" self.set_attribute(:src, theme_widget('expand.svg'))\n"+" self.set_state(:expanded,true)\n"+" the_node.expand()\n"+" end\n"+" end\n"+" end\n"+" end\n"+" "];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;node_expander_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["float","width","vertical-align"],{"float":"left","width":"32px","vertical-align":"middle"})})];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[expander]];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;icon=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"icon "+(self.uuid.$to_s())];$send(icon,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.image"];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["src","style"],{"src":self.appearance['$[]']("icon"),"style":$hash2(["clear","width","height","vertical-align"],{"clear":"both","width":"32px","height":"32px","vertical-align":"middle"})})];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.tree()\n"+" if the_tree\n"+" the_tree.select(the_node)\n"+" end\n"+" end\n"+" end\n"+" "];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;node_icon_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["float","width","vertical-align"],{"float":"left","width":"32px","vertical-align":"middle"})})];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[icon]];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;the_title=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"title "+(self.uuid.$to_s())];$send(the_title,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.label"];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content","style"],{"content":self.appearance['$[]']("label"),"style":$hash2(["float","font-size","vertical-align","text-align","margin","padding"],{"float":"left","font-size":"16px","vertical-align":"middle","text-align":"left","margin":"2px","padding":"2px"})})];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.tree()\n"+" if the_tree\n"+" the_tree.select(the_node)\n"+" end\n"+" end\n"+" end\n"+" "];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;node_label_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["float","vertical-align"],{"float":"left","vertical-align":"middle"})})];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[the_title]];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;frame_row_one=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseenter) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.highlight()\n"+" end\n"+" end\n"+" on(:mouseleave) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.unhighlight()\n"+" end\n"+" end\n"+" "];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[node_expander_cell,node_icon_cell,node_label_cell]];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;sublist=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"content "+(self.uuid.$to_s())];$send(sublist,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","list"];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["width","height","style"],{"width":"100%","height":"100%","style":$hash2(["list-style"],{"list-style":"none"})})];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;subnodes_frame_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[sublist]];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;frame_row_two=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subnodes_frame_cell]];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[frame_row_one,frame_row_two]];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.content=nil;self.$page().$build_components(self,[node_frame]);the_object=self.$page().$find_object_by(""+"content "+(self.uuid.$to_s()));if($truthy(the_object)){self.content=the_object};the_object=self.$page().$find_object_by(""+"expander "+(self.uuid.$to_s()));if($truthy(the_object)){self.expander=the_object};the_object=self.$page().$find_object_by(""+"icon "+(self.uuid.$to_s()));if($truthy(the_object)){self.icon=the_object};the_object=self.$page().$find_object_by(""+"title "+(self.uuid.$to_s()));if($truthy(the_object)){return(self.label=the_object)}else{return nil};},$TreeNode_cascade$33.$$arity=0);Opal.def(self,'$highlight',$TreeNode_highlight$34=function $$highlight(transition_parameters){var self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(self.label)){return self.label.$merge_style($hash2(["background-color"],{"background-color":"#87acd5"}))}else{return nil};},$TreeNode_highlight$34.$$arity=-1);Opal.def(self,'$unhighlight',$TreeNode_unhighlight$35=function $$unhighlight(transition_parameters){var self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(self.label)){return self.label.$merge_style($hash2(["background-color"],{"background-color":"#f2f2f2"}))}else{return nil};},$TreeNode_unhighlight$35.$$arity=-1);Opal.def(self,'$expand',$TreeNode_expand$36=function $$expand(transition_parameters){var self=this,the_tree=nil;if(transition_parameters==null){transition_parameters=nil;};self.content.$show(transition_parameters);self.$set_state("expanded",true);if($truthy(self.expander)){self.expander.$set_attribute("src",$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$theme_widget("expand.svg"))};the_tree=self.$tree();if($truthy(the_tree)){return the_tree.$expand(self)}else{return nil};},$TreeNode_expand$36.$$arity=-1);Opal.def(self,'$collapse',$TreeNode_collapse$37=function $$collapse(transition_parameters){var self=this,the_tree=nil;if(transition_parameters==null){transition_parameters=nil;};self.content.$hide(transition_parameters);self.$set_state("expanded",false);if($truthy(self.expander)){self.expander.$set_attribute("src",$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$theme_widget("collapse.svg"))};the_tree=self.$tree();if($truthy(the_tree)){return the_tree.$collapse(self)}else{return nil};},$TreeNode_collapse$37.$$arity=-1);Opal.def(self,'$enable',$TreeNode_enable$38=function $$enable(transition_parameters){var $$39,self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(transition_parameters['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(transition_parameters['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){transition_parameters=transition_parameters.$unpersist()}}else{transition_parameters=$hash2(["origin","destination"],{"origin":$hash2(["opacity"],{"opacity":0.5}),"destination":$hash2(["opacity"],{"opacity":1.0})})};return $send(self.$children(),'each_pair',[],($$39=function(name,object){var self=$$39.$$s==null?this:$$39.$$s;if(self.uuid==null)self.uuid=nil;if(name==null){name=nil;};if(object==null){object=nil;};if(name['$=='](((""+"content ")+(self.uuid.$to_s())).$to_sym())){return nil}else{object.$set_state("disabled",false);return object.$animate(transition_parameters);};},$$39.$$s=self,$$39.$$arity=2,$$39));},$TreeNode_enable$38.$$arity=-1);return(Opal.def(self,'$disable',$TreeNode_disable$40=function $$disable(transition_parameters){var $$41,self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(transition_parameters['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(transition_parameters['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){transition_parameters=transition_parameters.$unpersist()}}else{transition_parameters=$hash2(["origin","destination"],{"origin":$hash2(["opacity"],{"opacity":1.0}),"destination":$hash2(["opacity"],{"opacity":0.5})})};return $send(self.$children(),'each_pair',[],($$41=function(name,object){var self=$$41.$$s==null?this:$$41.$$s;if(self.uuid==null)self.uuid=nil;if(name==null){name=nil;};if(object==null){object=nil;};if(name['$=='](((""+"content ")+(self.uuid.$to_s())).$to_sym())){return nil}else{object.$animate(transition_parameters);return object.$set_state("disabled",true);};},$$41.$$s=self,$$41.$$arity=2,$$41));},$TreeNode_disable$40.$$arity=-1),nil)&&'disable';})($nesting[0],$$$($$$($$$('::','GxG'),'Gui'),'ListItem'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("tree_node",$$$($$$($$$('::','GxG'),'Gui'),'TreeNode'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Panel');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("panel",$$$($$$($$$('::','GxG'),'Gui'),'Panel'));return(function($base,$parent_nesting){var self=$module($base,'Vdom');var $nesting=[self].concat($parent_nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Page');var $nesting=[self].concat($parent_nesting),$Page_choice_dialog$42,$Page_vfs_dialog$43;Opal.def(self,'$choice_dialog',$Page_choice_dialog$42=function $$choice_dialog(the_application,details){var $iter=$Page_choice_dialog$42.$$p,block=$iter||nil,self=this,window_title=nil,$ret_or_4=nil,banner_text=nil,$ret_or_5=nil,one_text=nil,$ret_or_6=nil,two_text=nil,$ret_or_7=nil,three_text=nil,$ret_or_8=nil,default_text=nil,$ret_or_9=nil,dialog_type=nil,$ret_or_10=nil,$ret_or_11=nil,total_width=nil,form_padding=nil,form_margin=nil,inner_width=nil,total_height=nil,banner_font_size=nil,banner_height=nil,input_font_size=nil,banner=nil,banner_cell=nil,text_input=nil,text_input_cell=nil,one_btn=nil,$writer=nil,one_btn_cell=nil,two_btn=nil,two_btn_cell=nil,three_btn=nil,three_btn_cell=nil,cancel_btn=nil,cancel_cell=nil,row_one=nil,row_two=nil,row_three=nil,table_one=nil,table_two=nil,table_three=nil,form=nil,$case=nil,action_btn=nil,action_btn_cell=nil,dialog_source=nil,the_error=nil;if($iter)$Page_choice_dialog$42.$$p=null;if($iter)$Page_choice_dialog$42.$$p=null;;if(the_application==null){the_application=nil;};if(details==null){details=nil;};self.$layout_refresh();window_title=(function(){if($truthy(($ret_or_4=details))){return $ret_or_4}else{return $hash2(["title"],{"title":"Choose"})};return nil;})()['$[]']("title").$to_s();banner_text=(function(){if($truthy(($ret_or_5=details))){return $ret_or_5}else{return $hash2(["banner"],{"banner":"(Please provide some text here)"})};return nil;})()['$[]']("banner").$to_s();one_text=(function(){if($truthy(($ret_or_6=details))){return $ret_or_6}else{return $hash2(["one"],{"one":""})};return nil;})()['$[]']("one").$to_s();two_text=(function(){if($truthy(($ret_or_7=details))){return $ret_or_7}else{return $hash2(["two"],{"two":""})};return nil;})()['$[]']("two").$to_s();three_text=(function(){if($truthy(($ret_or_8=details))){return $ret_or_8}else{return $hash2(["three"],{"three":""})};return nil;})()['$[]']("three").$to_s();default_text=(function(){if($truthy(($ret_or_9=details))){return $ret_or_9}else{return $hash2(["default"],{"default":""})};return nil;})()['$[]']("default").$to_s();dialog_type=(function(){if($truthy(($ret_or_10=(function(){if($truthy(($ret_or_11=details))){return $ret_or_11}else{return $hash2(["type"],{"type":"choose"})};return nil;})()['$[]']("type")))){return $ret_or_10}else{return "choose"};return nil;})();total_width=$rb_times(self.$layout_content_area()['$[]']("page_width").$to_f(),0.25).$to_i();form_padding=20;form_margin=5;inner_width=$rb_minus(total_width,$rb_times($rb_plus(form_padding,form_margin),2));total_height=$rb_times($rb_plus(form_padding,form_margin),2);banner_font_size=16;if($truthy($rb_gt(banner_text.$to_s().$size(),40))){banner_height=$rb_times($rb_divide(banner_text.$size().$to_f(),40.0),banner_font_size.$to_f()).$round().$to_i()}else{banner_height=banner_font_size};input_font_size=16;banner=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.text","options":$hash2(["content","style"],{"content":banner_text,"style":$hash2(["font-size","width"],{"font-size":""+(banner_font_size)+"px","width":"100%"})}),"content":[],"script":""});banner_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","height","vertical-align"],{"padding":"0px","margin":"0px","width":"100%","height":banner_height,"vertical-align":"middle"})}),"content":[banner],"script":""});text_input=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.input.text","options":$hash2(["title","content","style"],{"title":"data","content":default_text,"style":$hash2(["background-color","font-size","width"],{"background-color":"#f2f2f2","font-size":""+(input_font_size)+"px","width":"100%"})}),"content":[],"script":""});text_input_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"100%","vertical-align":"middle"})}),"content":[text_input],"script":""});one_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":one_text,"style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :one})\n"+" end\n"+" end\n"+" "];$send(one_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;one_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"40%","vertical-align":"middle"})}),"content":[one_btn],"script":""});two_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":two_text,"style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :two})\n"+" end\n"+" end\n"+" "];$send(two_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;two_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"40%","vertical-align":"middle"})}),"content":[two_btn],"script":""});three_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":three_text,"style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :three})\n"+" end\n"+" end\n"+" "];$send(three_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;three_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"40%","vertical-align":"middle"})}),"content":[three_btn],"script":""});cancel_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":"Cancel","style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :cancel})\n"+" end\n"+" end\n"+" "];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;cancel_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","vertical-align"],{"padding":"0px","margin":"0px","vertical-align":"middle"})}),"content":[cancel_btn],"script":""});row_one=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.row","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})}),"content":[banner_cell],"script":""});row_two=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.row","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})}),"content":[text_input_cell],"script":""});row_three=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.row","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})}),"content":[],"script":""});table_one=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"5px","margin":"0px","width":"100%"})}),"content":[row_one],"script":""});table_two=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"5px","margin":"0px","width":"100%"})}),"content":[row_two],"script":""});table_three=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"5px","margin":"0px","width":"100%"})}),"content":[row_three],"script":""});form=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.form","options":$hash2(["style"],{"style":$hash2(["background-color","padding","margin"],{"background-color":"#f2f2f2","padding":""+(form_padding)+"px","margin":""+(form_margin)+"px"})}),"content":[],"script":""});if($truthy($rb_gt(banner_text.$size(),0))){form['$[]']("content")['$<<'](table_one)};$case=dialog_type;if("choose"['$===']($case)){if($truthy($rb_gt(one_text.$size(),0))){row_three['$[]']("content")['$<<'](one_btn_cell)};if($truthy($rb_gt(two_text.$size(),0))){row_three['$[]']("content")['$<<'](two_btn_cell)};if($truthy($rb_gt(three_text.$size(),0))){row_three['$[]']("content")['$<<'](three_btn_cell)};} +var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$,$module=Opal.module,$klass=Opal.klass,$alias=Opal.alias,$truthy=Opal.truthy,$hash2=Opal.hash2,$send=Opal.send,$send2=Opal.send2,$find_super=Opal.find_super,$range=Opal.range;Opal.add_stubs(['$is_a?','$add_child','$original_add_child','$children','$valid_uuid?','$==','$values','$original_children','$>','$size','$shift','$uuid','$title','$each','$<<','$new','$to_s','$title=','$-','$[]=','$build_components','$page','$find_object_by','$respond_to?','$include?','$to_sym','$log_warn','$inspect','$clone','$node_path','$nodes','$split','$node_at_path','$+','$join','$gxg_get_state','$expand','$post_event','$expand_path','$to_proc','$call','$!=','$unhighlight','$highlight','$[]','$register_component_class','$parent','$unshift','$is_any?','$update_appearance','$find_parent_type','$theme_icon','$theme_widget','$merge_style','$show','$set_state','$set_attribute','$tree','$hide','$collapse','$unpersist','$each_pair','$animate','$layout_refresh','$to_i','$*','$to_f','$layout_content_area','$round','$/','$new_component','$dialog_open','$log_error','$===','$basename','$reverse']);return(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);return(function($base,$parent_nesting){var self=$module($base,'Gui');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Tree');var $nesting=[self].concat($parent_nesting),$Tree_add_child$1,$Tree_children$2,$Tree_find_child$3,$Tree_initialize$5,$Tree_cascade$6,$Tree_update_appearance$7,$Tree_set_processor$8,$Tree_node_at_path$9,$Tree_expand_path$11,$Tree_selection$15,$Tree_select$16,$Tree_expand$17,$Tree_collapse$18;self.$$prototype.content=self.$$prototype.uuid=self.$$prototype.processors=self.$$prototype.selection=nil;$alias(self,"original_add_child","add_child");Opal.def(self,'$add_child',$Tree_add_child$1=function $$add_child(object_record){var self=this;if(object_record==null){object_record=nil;};if($truthy(object_record['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(self.content)){return self.content.$add_child(object_record)}else{return self.$original_add_child(object_record)}}else{return nil};},$Tree_add_child$1.$$arity=-1);$alias(self,"original_children","children");Opal.def(self,'$children',$Tree_children$2=function $$children(){var self=this;if($truthy(self.content)){return self.content.$children()}else{return $hash2([],{})}},$Tree_children$2.$$arity=0);Opal.def(self,'$find_child',$Tree_find_child$3=function $$find_child(the_reference,interior){var $a,$$4,self=this,result=nil,uuid_check=nil,search_queue=nil,entry=nil;if(the_reference==null){the_reference=nil;};if(interior==null){interior=false;};result=nil;if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_reference))){uuid_check=true}else{uuid_check=false};if(interior['$=='](true)){search_queue=self.$original_children().$values()}else{search_queue=self.$children().$values()};while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry)){if($truthy(uuid_check)){if(entry.$uuid()['$=='](the_reference)){result=entry;break;;}}else if(entry.$title()['$=='](the_reference)){result=entry;break;;};if($truthy(result)){}else{$send(entry.$children().$values(),'each',[],($$4=function(the_child){var self=$$4.$$s==null?this:$$4.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$4.$$s=self,$$4.$$arity=1,$$4))};};};return result;},$Tree_find_child$3.$$arity=-1);Opal.def(self,'$initialize',$Tree_initialize$5=function $$initialize(the_parent,the_options){var $iter=$Tree_initialize$5.$$p,$yield=$iter||nil,self=this;if($iter)$Tree_initialize$5.$$p=null;self.content=nil;self.selection=nil;self.processors=$hash2([],{});$send2(self,$find_super(self,'initialize',$Tree_initialize$5,false,true),'initialize',[the_parent,the_options],null);return self;},$Tree_initialize$5.$$arity=2);Opal.def(self,'$cascade',$Tree_cascade$6=function $$cascade(){var self=this,interior_component=nil,$writer=nil,the_object=nil;interior_component=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"content "+(self.uuid.$to_s())];$send(interior_component,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.list"];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["white-space","width","height","list-style","margin","padding"],{"white-space":"nowrap","width":"auto","height":"auto","list-style":"none","margin":"0px","padding":"0px"})})];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(interior_component,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.content=nil;self.$page().$build_components(self,[interior_component]);the_object=self.$page().$find_object_by(""+"content "+(self.uuid.$to_s()));if($truthy(the_object)){return(self.content=the_object)}else{return nil};},$Tree_cascade$6.$$arity=0);Opal.def(self,'$update_appearance',$Tree_update_appearance$7=function $$update_appearance(){var self=this;return nil},$Tree_update_appearance$7.$$arity=0);Opal.def(self,'$set_processor',$Tree_set_processor$8=function $$set_processor(the_type){var $iter=$Tree_set_processor$8.$$p,block=$iter||nil,self=this,$writer=nil;if($iter)$Tree_set_processor$8.$$p=null;if($iter)$Tree_set_processor$8.$$p=null;;if(the_type==null){the_type=nil;};if($truthy(block['$respond_to?']("call"))){if($truthy(["select","expand","collapse"]['$include?'](the_type.$to_s().$to_sym()))){$writer=[the_type.$to_s().$to_sym(),block];$send(self.processors,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return self.$log_warn(""+"Unsupported processor type: "+(the_type.$to_s().$to_sym().$inspect()))}}else{return nil};},$Tree_set_processor$8.$$arity=-1);Opal.def(self,'$node_at_path',$Tree_node_at_path$9=function $$node_at_path(the_path){var $a,$$10,self=this,result=nil,search_queue=nil,entry=nil;if(the_path==null){the_path=nil;};result=nil;search_queue=self.$children().$values().$clone();while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if(entry.$node_path()['$=='](the_path)){result=entry;break;;}else{$send(entry.$nodes().$values(),'each',[],($$10=function(the_child){var self=$$10.$$s==null?this:$$10.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$10.$$s=self,$$10.$$arity=1,$$10))}};};return result;},$Tree_node_at_path$9.$$arity=-1);Opal.def(self,'$expand_path',$Tree_expand_path$11=function $$expand_path(the_path){var $iter=$Tree_expand_path$11.$$p,block=$iter||nil,$$12,self=this,path_stack=nil,path_array=nil;if($iter)$Tree_expand_path$11.$$p=null;if($iter)$Tree_expand_path$11.$$p=null;;if(the_path==null){the_path=nil;};if($truthy(the_path['$is_a?']($$$('::','String')))){path_stack=[];path_array=the_path.$split("/");(function(){var $brk=Opal.new_brk();try{return $send(path_array,'each',[],($$12=function(entry){var self=$$12.$$s==null?this:$$12.$$s,$$13,$$14,the_node=nil;if(entry==null){entry=nil;};if($truthy($rb_gt(entry.$size(),0))){path_stack['$<<'](entry);the_node=self.$node_at_path($rb_plus("/",path_stack.$join("/")));if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if(the_node.$gxg_get_state("expanded")['$=='](false)){the_node.$expand();$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$13=function(){var self=$$13.$$s==null?this:$$13.$$s;return $send(self,'expand_path',[the_path],block.$to_proc())},$$13.$$s=self,$$13.$$arity=0,$$13));Opal.brk(nil,$brk);};if(the_node.$node_path()['$=='](the_path)){if($truthy(block['$respond_to?']("call"))){return block.$call()}else{return nil}}else{return nil};}else{$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$14=function(){var self=$$14.$$s==null?this:$$14.$$s;return $send(self,'expand_path',[the_path],block.$to_proc())},$$14.$$s=self,$$14.$$arity=0,$$14));Opal.brk(nil,$brk);};}else{return nil};},$$12.$$s=self,$$12.$$brk=$brk,$$12.$$arity=1,$$12))}catch(err){if(err===$brk){return err.$v}else{throw err}}})();};return true;},$Tree_expand_path$11.$$arity=-1);Opal.def(self,'$selection',$Tree_selection$15=function $$selection(){var self=this;return self.selection},$Tree_selection$15.$$arity=0);Opal.def(self,'$select',$Tree_select$16=function $$select(the_node){var self=this;if(the_node==null){the_node=nil;};if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if($truthy(self.selection['$!='](the_node))){if($truthy(self.selection)){self.selection.$unhighlight()};self.selection=the_node;self.selection.$highlight();if($truthy(self.processors['$[]']("select")['$respond_to?']("call"))){return self.processors['$[]']("select").$call(self.selection)}else{return nil};}else{return nil}}else{return nil};},$Tree_select$16.$$arity=-1);Opal.def(self,'$expand',$Tree_expand$17=function $$expand(the_node){var self=this;if(the_node==null){the_node=nil;};if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if($truthy(self.processors['$[]']("expand")['$respond_to?']("call"))){return self.processors['$[]']("expand").$call(the_node)}else{return nil}}else{return nil};},$Tree_expand$17.$$arity=-1);return(Opal.def(self,'$collapse',$Tree_collapse$18=function $$collapse(the_node){var self=this;if(the_node==null){the_node=nil;};if($truthy(the_node['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){if($truthy(self.processors['$[]']("collapse")['$respond_to?']("call"))){return self.processors['$[]']("collapse").$call(the_node)}else{return nil}}else{return nil};},$Tree_collapse$18.$$arity=-1),nil)&&'collapse';})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("tree",$$$($$$($$$('::','GxG'),'Gui'),'Tree'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'TreeNode');var $nesting=[self].concat($parent_nesting),$TreeNode__before_create$19,$TreeNode_add_child$20,$TreeNode_nodes$21,$TreeNode_node_path$22,$TreeNode_find_child$24,$TreeNode_update_appearance$26,$TreeNode_data$27,$TreeNode_appearance$28,$TreeNode_set_appearance$29,$TreeNode_tree_node$30,$TreeNode_tree$31,$TreeNode_initialize$32,$TreeNode_cascade$33,$TreeNode_highlight$34,$TreeNode_unhighlight$35,$TreeNode_expand$36,$TreeNode_collapse$37,$TreeNode_enable$38,$TreeNode_disable$40;self.$$prototype.data=self.$$prototype.content=self.$$prototype.appearance=self.$$prototype.uuid=self.$$prototype.label=self.$$prototype.expander=nil;Opal.def(self,'$_before_create',$TreeNode__before_create$19=function $$_before_create(){var $iter=$TreeNode__before_create$19.$$p,$yield=$iter||nil,self=this;if($iter)$TreeNode__before_create$19.$$p=null;if($truthy(self.data['$is_a?']($$$('::','Hash')))){if($truthy(self.data['$[]']("title"))){self.title=self.data['$[]']("title")}};return $send2(self,$find_super(self,'_before_create',$TreeNode__before_create$19,false,true),'_before_create',[],null);},$TreeNode__before_create$19.$$arity=0);$alias(self,"original_add_child","add_child");Opal.def(self,'$add_child',$TreeNode_add_child$20=function $$add_child(object_record){var self=this;if(object_record==null){object_record=nil;};if($truthy(object_record['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(self.content)){return self.content.$add_child(object_record)}else{return self.$original_add_child(object_record)}}else{return nil};},$TreeNode_add_child$20.$$arity=-1);Opal.def(self,'$nodes',$TreeNode_nodes$21=function $$nodes(){var self=this;if($truthy(self.content)){return self.content.$children()}else{return $hash2([],{})}},$TreeNode_nodes$21.$$arity=0);Opal.def(self,'$node_path',$TreeNode_node_path$22=function $$node_path(){var $a,$$23,self=this,the_path=nil,lineage=nil,the_parent=nil;the_path="";lineage=[self];the_parent=self.$parent();while($truthy(the_parent['$!='](nil))){if($truthy(the_parent['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'TreeNode')))){lineage.$unshift(the_parent)};the_parent=the_parent.$parent();if($truthy(the_parent['$is_a?']($$$($$$($$($nesting,'GxG'),'Gui'),'Tree')))){the_parent=nil};};$send(lineage,'each',[],($$23=function(the_node){var self=$$23.$$s==null?this:$$23.$$s;if(the_node==null){the_node=nil;};return(the_path=$rb_plus(the_path,""+"/"+(the_node.$title())));},$$23.$$s=self,$$23.$$arity=1,$$23));return the_path;},$TreeNode_node_path$22.$$arity=0);Opal.def(self,'$find_child',$TreeNode_find_child$24=function $$find_child(the_reference){var $a,$$25,self=this,result=nil,uuid_check=nil,search_queue=nil,entry=nil;if(the_reference==null){the_reference=nil;};result=nil;if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_reference))){uuid_check=true}else{uuid_check=false};search_queue=self.$children().$values();while($truthy($rb_gt(search_queue.$size(),0))){entry=search_queue.$shift();if($truthy(entry)){if($truthy(uuid_check)){if(entry.$uuid()['$=='](the_reference)){result=entry;break;;}}else if(entry.$title()['$=='](the_reference)){result=entry;break;;};if($truthy(result)){}else{$send(entry.$children().$values(),'each',[],($$25=function(the_child){var self=$$25.$$s==null?this:$$25.$$s;if(the_child==null){the_child=nil;};return search_queue['$<<'](the_child);},$$25.$$s=self,$$25.$$arity=1,$$25))};};};return result;},$TreeNode_find_child$24.$$arity=-1);Opal.def(self,'$update_appearance',$TreeNode_update_appearance$26=function $$update_appearance(){var self=this;if($truthy(self.appearance['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){return true}else{return false}},$TreeNode_update_appearance$26.$$arity=0);Opal.def(self,'$data',$TreeNode_data$27=function $$data(){var self=this;return self.data},$TreeNode_data$27.$$arity=0);Opal.def(self,'$appearance',$TreeNode_appearance$28=function $$appearance(){var self=this;return self.appearance},$TreeNode_appearance$28.$$arity=0);Opal.def(self,'$set_appearance',$TreeNode_set_appearance$29=function $$set_appearance(the_record){var self=this;if(the_record==null){the_record=nil;};if($truthy(the_record['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){self.appearance=the_record;return self.$update_appearance();}else{return nil};},$TreeNode_set_appearance$29.$$arity=-1);Opal.def(self,'$tree_node',$TreeNode_tree_node$30=function $$tree_node(){var self=this;return self.$find_parent_type($$$($$$($$$('::','GxG'),'Gui'),'TreeNode'))},$TreeNode_tree_node$30.$$arity=0);Opal.def(self,'$tree',$TreeNode_tree$31=function $$tree(){var self=this;return self.$find_parent_type($$$($$$($$$('::','GxG'),'Gui'),'Tree'))},$TreeNode_tree$31.$$arity=0);Opal.def(self,'$initialize',$TreeNode_initialize$32=function $$initialize(the_parent,the_options){var $iter=$TreeNode_initialize$32.$$p,$yield=$iter||nil,self=this,$ret_or_1=nil,$writer=nil,$ret_or_2=nil,$ret_or_3=nil;if($iter)$TreeNode_initialize$32.$$p=null;self.content=nil;self.appearance=$hash2(["icon","label"],{"icon":self.$theme_icon("folder.svg"),"label":"Untitled"});if($truthy(the_options['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){self.data=(function(){if($truthy(($ret_or_1=the_options['$[]']("data")))){return $ret_or_1}else{return $hash2(["title","type","content"],{"title":"Untitled","type":"virtual_directory","content":$hash2([],{})})};return nil;})();$writer=["icon",(function(){if($truthy(($ret_or_2=the_options['$[]']("icon")))){return $ret_or_2}else{return self.$theme_icon("folder.svg")};return nil;})().$to_s()];$send(self.appearance,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["label",(function(){if($truthy(($ret_or_3=the_options['$[]']("label")))){return $ret_or_3}else{return self.data['$[]']("title")};return nil;})().$to_s()];$send(self.appearance,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;};$send2(self,$find_super(self,'initialize',$TreeNode_initialize$32,false,true),'initialize',[the_parent,the_options],null);return self;},$TreeNode_initialize$32.$$arity=2);Opal.def(self,'$cascade',$TreeNode_cascade$33=function $$cascade(){var self=this,node_frame=nil,$writer=nil,frame_row_one=nil,expander=nil,node_expander_cell=nil,icon=nil,node_icon_cell=nil,the_title=nil,node_label_cell=nil,sublist=nil,subnodes_frame_cell=nil,frame_row_two=nil,the_object=nil;node_frame=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["nodepath","style"],{"nodepath":self.$node_path(),"style":$hash2([],{})})];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;frame_row_one=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;expander=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"expander "+(self.uuid.$to_s())];$send(expander,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.image"];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["src","width","height","style"],{"src":self.$theme_widget("collapse.svg"),"width":32,"height":32,"style":$hash2(["clear","vertical-align"],{"clear":"both","vertical-align":"middle"})})];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" unless the_node.get_state(:disabled) == true\n"+" if self.get_state(:expanded) == true\n"+" self.set_attribute(:src, theme_widget('collapse.svg'))\n"+" self.set_state(:expanded,false)\n"+" the_node.collapse()\n"+" else\n"+" self.set_attribute(:src, theme_widget('expand.svg'))\n"+" self.set_state(:expanded,true)\n"+" the_node.expand()\n"+" end\n"+" end\n"+" end\n"+" end\n"+" "];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(expander,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;node_expander_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["float","width","vertical-align"],{"float":"left","width":"32px","vertical-align":"middle"})})];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[expander]];$send(node_expander_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;icon=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"icon "+(self.uuid.$to_s())];$send(icon,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.image"];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["src","style"],{"src":self.appearance['$[]']("icon"),"style":$hash2(["clear","width","height","vertical-align"],{"clear":"both","width":"32px","height":"32px","vertical-align":"middle"})})];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.tree()\n"+" if the_tree\n"+" the_tree.select(the_node)\n"+" end\n"+" end\n"+" end\n"+" "];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(icon,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;node_icon_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["float","width","vertical-align"],{"float":"left","width":"32px","vertical-align":"middle"})})];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[icon]];$send(node_icon_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;the_title=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"title "+(self.uuid.$to_s())];$send(the_title,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.label"];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content","style"],{"content":self.appearance['$[]']("label"),"style":$hash2(["float","font-size","vertical-align","text-align","margin","padding"],{"float":"left","font-size":"16px","vertical-align":"middle","text-align":"left","margin":"2px","padding":"2px"})})];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.tree()\n"+" if the_tree\n"+" the_tree.select(the_node)\n"+" end\n"+" end\n"+" end\n"+" "];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(the_title,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;node_label_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["float","vertical-align"],{"float":"left","vertical-align":"middle"})})];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[the_title]];$send(node_label_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;frame_row_one=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseenter) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.highlight()\n"+" end\n"+" end\n"+" on(:mouseleave) do |event|\n"+" the_node = self.tree_node()\n"+" if the_node\n"+" the_tree = the_node.unhighlight()\n"+" end\n"+" end\n"+" "];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[node_expander_cell,node_icon_cell,node_label_cell]];$send(frame_row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;sublist=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[""+"content "+(self.uuid.$to_s())];$send(sublist,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","list"];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["width","height","style"],{"width":"100%","height":"100%","style":$hash2(["list-style"],{"list-style":"none"})})];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(sublist,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;subnodes_frame_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[sublist]];$send(subnodes_frame_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;frame_row_two=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subnodes_frame_cell]];$send(frame_row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[frame_row_one,frame_row_two]];$send(node_frame,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.content=nil;self.$page().$build_components(self,[node_frame]);the_object=self.$page().$find_object_by(""+"content "+(self.uuid.$to_s()));if($truthy(the_object)){self.content=the_object};the_object=self.$page().$find_object_by(""+"expander "+(self.uuid.$to_s()));if($truthy(the_object)){self.expander=the_object};the_object=self.$page().$find_object_by(""+"icon "+(self.uuid.$to_s()));if($truthy(the_object)){self.icon=the_object};the_object=self.$page().$find_object_by(""+"title "+(self.uuid.$to_s()));if($truthy(the_object)){return(self.label=the_object)}else{return nil};},$TreeNode_cascade$33.$$arity=0);Opal.def(self,'$highlight',$TreeNode_highlight$34=function $$highlight(transition_parameters){var self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(self.label)){return self.label.$merge_style($hash2(["background-color"],{"background-color":"#87acd5"}))}else{return nil};},$TreeNode_highlight$34.$$arity=-1);Opal.def(self,'$unhighlight',$TreeNode_unhighlight$35=function $$unhighlight(transition_parameters){var self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(self.label)){return self.label.$merge_style($hash2(["background-color"],{"background-color":"#f2f2f2"}))}else{return nil};},$TreeNode_unhighlight$35.$$arity=-1);Opal.def(self,'$expand',$TreeNode_expand$36=function $$expand(transition_parameters){var self=this,the_tree=nil;if(transition_parameters==null){transition_parameters=nil;};self.content.$show(transition_parameters);self.$set_state("expanded",true);if($truthy(self.expander)){self.expander.$set_attribute("src",$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$theme_widget("expand.svg"))};the_tree=self.$tree();if($truthy(the_tree)){return the_tree.$expand(self)}else{return nil};},$TreeNode_expand$36.$$arity=-1);Opal.def(self,'$collapse',$TreeNode_collapse$37=function $$collapse(transition_parameters){var self=this,the_tree=nil;if(transition_parameters==null){transition_parameters=nil;};self.content.$hide(transition_parameters);self.$set_state("expanded",false);if($truthy(self.expander)){self.expander.$set_attribute("src",$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$theme_widget("collapse.svg"))};the_tree=self.$tree();if($truthy(the_tree)){return the_tree.$collapse(self)}else{return nil};},$TreeNode_collapse$37.$$arity=-1);Opal.def(self,'$enable',$TreeNode_enable$38=function $$enable(transition_parameters){var $$39,self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(transition_parameters['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(transition_parameters['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){transition_parameters=transition_parameters.$unpersist()}}else{transition_parameters=$hash2(["origin","destination"],{"origin":$hash2(["opacity"],{"opacity":0.5}),"destination":$hash2(["opacity"],{"opacity":1.0})})};return $send(self.$children(),'each_pair',[],($$39=function(name,object){var self=$$39.$$s==null?this:$$39.$$s;if(self.uuid==null)self.uuid=nil;if(name==null){name=nil;};if(object==null){object=nil;};if(name['$=='](((""+"content ")+(self.uuid.$to_s())).$to_sym())){return nil}else{object.$set_state("disabled",false);return object.$animate(transition_parameters);};},$$39.$$s=self,$$39.$$arity=2,$$39));},$TreeNode_enable$38.$$arity=-1);return(Opal.def(self,'$disable',$TreeNode_disable$40=function $$disable(transition_parameters){var $$41,self=this;if(transition_parameters==null){transition_parameters=nil;};if($truthy(transition_parameters['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(transition_parameters['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){transition_parameters=transition_parameters.$unpersist()}}else{transition_parameters=$hash2(["origin","destination"],{"origin":$hash2(["opacity"],{"opacity":1.0}),"destination":$hash2(["opacity"],{"opacity":0.5})})};return $send(self.$children(),'each_pair',[],($$41=function(name,object){var self=$$41.$$s==null?this:$$41.$$s;if(self.uuid==null)self.uuid=nil;if(name==null){name=nil;};if(object==null){object=nil;};if(name['$=='](((""+"content ")+(self.uuid.$to_s())).$to_sym())){return nil}else{object.$animate(transition_parameters);return object.$set_state("disabled",true);};},$$41.$$s=self,$$41.$$arity=2,$$41));},$TreeNode_disable$40.$$arity=-1),nil)&&'disable';})($nesting[0],$$$($$$($$$('::','GxG'),'Gui'),'ListItem'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("tree_node",$$$($$$($$$('::','GxG'),'Gui'),'TreeNode'));(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Panel');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],$$$($$$($$$($$$('::','GxG'),'Gui'),'Vdom'),'BaseElement'),$nesting);$$$($$$('::','GxG'),'Gui').$register_component_class("panel",$$$($$$($$$('::','GxG'),'Gui'),'Panel'));return(function($base,$parent_nesting){var self=$module($base,'Vdom');var $nesting=[self].concat($parent_nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Page');var $nesting=[self].concat($parent_nesting),$Page_upload_dialog$42,$Page_choice_dialog$43,$Page_vfs_dialog$44;Opal.def(self,'$upload_dialog',$Page_upload_dialog$42=function $$upload_dialog(the_application,details){var $iter=$Page_upload_dialog$42.$$p,block=$iter||nil,self=this,window_title=nil,$ret_or_4=nil,banner_text=nil,$ret_or_5=nil,destination_path=nil,$ret_or_6=nil,total_width=nil,form_padding=nil,form_margin=nil,inner_width=nil,total_height=nil,banner_font_size=nil,banner_height=nil,input_font_size=nil,form=nil,$writer=nil,file_input=nil,destination=nil,grid_container=nil,cancel_frame=nil,submit_frame=nil,cancel_button=nil,submit_button=nil,viewport=nil,dialog_source=nil,the_error=nil;if($iter)$Page_upload_dialog$42.$$p=null;if($iter)$Page_upload_dialog$42.$$p=null;;if(the_application==null){the_application=nil;};if(details==null){details=nil;};self.$layout_refresh();window_title=(function(){if($truthy(($ret_or_4=details))){return $ret_or_4}else{return $hash2(["title"],{"title":"Choose a file:"})};return nil;})()['$[]']("title").$to_s();banner_text=(function(){if($truthy(($ret_or_5=details))){return $ret_or_5}else{return $hash2(["banner"],{"banner":"Choose a file to upload"})};return nil;})()['$[]']("banner").$to_s();destination_path=(function(){if($truthy(($ret_or_6=details))){return $ret_or_6}else{return $hash2(["destination"],{"destination":nil})};return nil;})()['$[]']("destination").$to_s();total_width=$rb_times(self.$layout_content_area()['$[]']("page_width").$to_f(),0.25).$to_i();form_padding=20;form_margin=5;inner_width=$rb_minus(total_width,$rb_times($rb_plus(form_padding,form_margin),2));total_height=$rb_times($rb_plus(form_padding,form_margin),2);banner_font_size=16;if($truthy($rb_gt(banner_text.$to_s().$size(),40))){banner_height=$rb_times($rb_divide(banner_text.$size().$to_f(),40.0),banner_font_size.$to_f()).$round().$to_i()}else{banner_height=banner_font_size};input_font_size=16;if($truthy($rb_gt(destination_path.$size(),0))){form=self.$new_component("org.gxg.gui.form");$writer=["action","/file_upload"];$send(form['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["method","POST"];$send(form['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["enctype","multipart/form-data"];$send(form['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["style",$hash2(["background-color","padding","margin","width"],{"background-color":"#f2f2f2","padding":"20px","margin":"5px","width":"100%"})];$send(form['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;total_height=330;file_input=self.$new_component("org.gxg.gui.input.file");$writer=["file"];$send(file_input,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["name","file"];$send(file_input['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;form['$[]']("content")['$<<'](file_input);destination=self.$new_component("org.gxg.gui.input.hidden");$writer=["destination"];$send(destination,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["name","destination"];$send(destination['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["value",destination_path];$send(destination['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;form['$[]']("content")['$<<'](destination);grid_container=self.$new_component("org.gxg.gui.grid.container");cancel_frame=self.$new_component("org.gxg.gui.grid.x");submit_frame=self.$new_component("org.gxg.gui.grid.x");cancel_button=self.$new_component("org.gxg.gui.input.button");submit_button=self.$new_component("org.gxg.gui.input.button.submit");cancel_frame['$[]']("content")['$<<'](cancel_button);submit_frame['$[]']("content")['$<<'](submit_button);grid_container['$[]']("content")['$<<'](cancel_frame);grid_container['$[]']("content")['$<<'](submit_frame);form['$[]']("content")['$<<'](grid_container);$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" form = self.find_parent_type(::GxG::Gui::Form)\n"+" if the_window && form\n"+" the_window.respond({:action => :cancel})\n"+" end\n"+" end\n"+" "];$send(cancel_button,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" form = self.find_parent_type(::GxG::Gui::Form)\n"+" if the_window && form\n"+" page.set_busy true\n"+" ::GxG::CONNECTION.post(form) do |response|\n"+" page.set_busy false\n"+" the_window.respond({:action => :upload, :destination => form.form_data[:destination].to_s})\n"+" end\n"+" end\n"+" end\n"+" "];$send(submit_button,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;viewport=self.$new_component("org.gxg.gui.application.viewport");$writer=["gxg_selection_viewport"];$send(viewport,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["style",$hash2(["overflow","width","height"],{"overflow":"hidden","width":"100%","height":"100%"})];$send(viewport['$[]']("options"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;viewport['$[]']("content")['$<<'](form);dialog_source=self.$new_component("org.gxg.gui.window.dialog");$writer=[window_title];$send(dialog_source,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["window_title","states","width","height"],{"window_title":window_title,"states":$hash2(["hidden"],{"hidden":true}),"width":350,"height":total_height})];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;dialog_source['$[]']("content")['$<<'](viewport);try{$send(self,'dialog_open',[dialog_source,the_application,details],block.$to_proc());return true;}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":details}));return false;}finally{Opal.pop_exception();}}else{throw $err;}};;}else{self.$log_error("You MUST provide a destination path");return false;};},$Page_upload_dialog$42.$$arity=-1);Opal.def(self,'$choice_dialog',$Page_choice_dialog$43=function $$choice_dialog(the_application,details){var $iter=$Page_choice_dialog$43.$$p,block=$iter||nil,self=this,window_title=nil,$ret_or_7=nil,banner_text=nil,$ret_or_8=nil,one_text=nil,$ret_or_9=nil,two_text=nil,$ret_or_10=nil,three_text=nil,$ret_or_11=nil,default_text=nil,$ret_or_12=nil,dialog_type=nil,$ret_or_13=nil,$ret_or_14=nil,total_width=nil,form_padding=nil,form_margin=nil,inner_width=nil,total_height=nil,banner_font_size=nil,banner_height=nil,input_font_size=nil,banner=nil,banner_cell=nil,text_input=nil,text_input_cell=nil,one_btn=nil,$writer=nil,one_btn_cell=nil,two_btn=nil,two_btn_cell=nil,three_btn=nil,three_btn_cell=nil,cancel_btn=nil,cancel_cell=nil,row_one=nil,row_two=nil,row_three=nil,table_one=nil,table_two=nil,table_three=nil,form=nil,$case=nil,action_btn=nil,action_btn_cell=nil,dialog_source=nil,the_error=nil;if($iter)$Page_choice_dialog$43.$$p=null;if($iter)$Page_choice_dialog$43.$$p=null;;if(the_application==null){the_application=nil;};if(details==null){details=nil;};self.$layout_refresh();window_title=(function(){if($truthy(($ret_or_7=details))){return $ret_or_7}else{return $hash2(["title"],{"title":"Choose"})};return nil;})()['$[]']("title").$to_s();banner_text=(function(){if($truthy(($ret_or_8=details))){return $ret_or_8}else{return $hash2(["banner"],{"banner":"(Please provide some text here)"})};return nil;})()['$[]']("banner").$to_s();one_text=(function(){if($truthy(($ret_or_9=details))){return $ret_or_9}else{return $hash2(["one"],{"one":""})};return nil;})()['$[]']("one").$to_s();two_text=(function(){if($truthy(($ret_or_10=details))){return $ret_or_10}else{return $hash2(["two"],{"two":""})};return nil;})()['$[]']("two").$to_s();three_text=(function(){if($truthy(($ret_or_11=details))){return $ret_or_11}else{return $hash2(["three"],{"three":""})};return nil;})()['$[]']("three").$to_s();default_text=(function(){if($truthy(($ret_or_12=details))){return $ret_or_12}else{return $hash2(["default"],{"default":""})};return nil;})()['$[]']("default").$to_s();dialog_type=(function(){if($truthy(($ret_or_13=(function(){if($truthy(($ret_or_14=details))){return $ret_or_14}else{return $hash2(["type"],{"type":"choose"})};return nil;})()['$[]']("type")))){return $ret_or_13}else{return "choose"};return nil;})();total_width=$rb_times(self.$layout_content_area()['$[]']("page_width").$to_f(),0.25).$to_i();form_padding=20;form_margin=5;inner_width=$rb_minus(total_width,$rb_times($rb_plus(form_padding,form_margin),2));total_height=$rb_times($rb_plus(form_padding,form_margin),2);banner_font_size=16;if($truthy($rb_gt(banner_text.$to_s().$size(),40))){banner_height=$rb_times($rb_divide(banner_text.$size().$to_f(),40.0),banner_font_size.$to_f()).$round().$to_i()}else{banner_height=banner_font_size};input_font_size=16;banner=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.text","options":$hash2(["content","style"],{"content":banner_text,"style":$hash2(["font-size","width"],{"font-size":""+(banner_font_size)+"px","width":"100%"})}),"content":[],"script":""});banner_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","height","vertical-align"],{"padding":"0px","margin":"0px","width":"100%","height":banner_height,"vertical-align":"middle"})}),"content":[banner],"script":""});text_input=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.input.text","options":$hash2(["title","content","style"],{"title":"data","content":default_text,"style":$hash2(["background-color","font-size","width"],{"background-color":"#f2f2f2","font-size":""+(input_font_size)+"px","width":"100%"})}),"content":[],"script":""});text_input_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"100%","vertical-align":"middle"})}),"content":[text_input],"script":""});one_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":one_text,"style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :one})\n"+" end\n"+" end\n"+" "];$send(one_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;one_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"40%","vertical-align":"middle"})}),"content":[one_btn],"script":""});two_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":two_text,"style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :two})\n"+" end\n"+" end\n"+" "];$send(two_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;two_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"40%","vertical-align":"middle"})}),"content":[two_btn],"script":""});three_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":three_text,"style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :three})\n"+" end\n"+" end\n"+" "];$send(three_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;three_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","width","vertical-align"],{"padding":"0px","margin":"0px","width":"40%","vertical-align":"middle"})}),"content":[three_btn],"script":""});cancel_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":"Cancel","style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :cancel})\n"+" end\n"+" end\n"+" "];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;cancel_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin","vertical-align"],{"padding":"0px","margin":"0px","vertical-align":"middle"})}),"content":[cancel_btn],"script":""});row_one=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.row","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})}),"content":[banner_cell],"script":""});row_two=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.row","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})}),"content":[text_input_cell],"script":""});row_three=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.row","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})}),"content":[],"script":""});table_one=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"5px","margin":"0px","width":"100%"})}),"content":[row_one],"script":""});table_two=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"5px","margin":"0px","width":"100%"})}),"content":[row_two],"script":""});table_three=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table","options":$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"5px","margin":"0px","width":"100%"})}),"content":[row_three],"script":""});form=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.form","options":$hash2(["style"],{"style":$hash2(["background-color","padding","margin"],{"background-color":"#f2f2f2","padding":""+(form_padding)+"px","margin":""+(form_margin)+"px"})}),"content":[],"script":""});if($truthy($rb_gt(banner_text.$size(),0))){form['$[]']("content")['$<<'](table_one)};$case=dialog_type;if("choose"['$===']($case)){if($truthy($rb_gt(one_text.$size(),0))){row_three['$[]']("content")['$<<'](one_btn_cell)};if($truthy($rb_gt(two_text.$size(),0))){row_three['$[]']("content")['$<<'](two_btn_cell)};if($truthy($rb_gt(three_text.$size(),0))){row_three['$[]']("content")['$<<'](three_btn_cell)};} else if("alert"['$===']($case)){action_btn=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.button","options":$hash2(["content","style"],{"content":"OK","style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :ok})\n"+" end\n"+" end\n"+" "];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;action_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin"],{"padding":"0px","margin":"0px"})}),"content":[action_btn],"script":""});row_three['$[]']("content")['$<<'](action_btn_cell);} else if("input"['$===']($case)){row_three['$[]']("content")['$<<'](cancel_cell);action_btn=$hash2(["component","options","content","script"],{"component":"button","options":$hash2(["content","style"],{"content":"OK","style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})}),"content":[],"script":""});$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" form = self.find_parent_type(:form)\n"+" if the_window && form\n"+" the_window.respond({:action => :ok, :form => form.form_data()})\n"+" end\n"+" end\n"+" "];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;action_btn_cell=$hash2(["component","options","content","script"],{"component":"org.gxg.gui.block.table.cell","options":$hash2(["style"],{"style":$hash2(["padding","margin"],{"padding":"0px","margin":"0px"})}),"content":[action_btn],"script":""});row_three['$[]']("content")['$<<'](action_btn_cell);form['$[]']("content")['$<<'](table_two);};form['$[]']("content")['$<<'](table_three);$writer=["width",""+(total_width)+"px"];$send(form['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy($rb_gt(banner_text.$to_s().$size(),0))){$writer=["width",""+(inner_width)+"px"];$send(form['$[]']("content")['$[]'](0)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["height",""+(banner_height)+"px"];$send(form['$[]']("content")['$[]'](0)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["padding","10px 0px 10px 0px"];$send(form['$[]']("content")['$[]'](0)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;total_height=$rb_plus(total_height,$rb_plus(banner_height,20));};if(dialog_type['$==']("input")){$writer=["width",""+(inner_width)+"px"];$send(form['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["height",""+(input_font_size)+"px"];$send(form['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["padding","10px 0px 10px 0px"];$send(form['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;total_height=$rb_plus(total_height,$rb_plus(input_font_size,20));$writer=["width",""+(inner_width)+"px"];$send(form['$[]']("content")['$[]'](2)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["height","32px"];$send(form['$[]']("content")['$[]'](2)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["padding","10px 0px 10px 0px"];$send(form['$[]']("content")['$[]'](2)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;total_height=$rb_plus(total_height,52);}else{$writer=["width",""+(inner_width)+"px"];$send(form['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["height","32px"];$send(form['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["padding","10px 0px 10px 0px"];$send(form['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;total_height=$rb_plus(total_height,52);};total_height=$rb_plus(total_height,32);$writer=["height",""+($rb_minus(total_height,$rb_times($rb_plus(form_padding,form_margin),2)))+"px"];$send(form['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$case=row_three['$[]']("content").$size();if((1)['$===']($case)){$writer=["padding",""+"5px 0px 5px "+($rb_minus($rb_divide(inner_width,2),25))+"px"];$send(row_three['$[]']("content")['$[]'](0)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];} else if((2)['$===']($case)){$writer=["padding",""+"5px 0px 5px "+($rb_minus($rb_divide(inner_width,4),12))+"px"];$send(row_three['$[]']("content")['$[]'](0)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["padding",""+"5px 0px 5px "+($rb_minus($rb_divide(inner_width,4),12))+"px"];$send(row_three['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;} else if((3)['$===']($case)){$writer=["padding",""+"5px 0px 5px "+($rb_minus($rb_divide(inner_width,6),6))+"px"];$send(row_three['$[]']("content")['$[]'](0)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["padding",""+"5px 0px 5px "+($rb_minus($rb_divide(inner_width,6),6))+"px"];$send(row_three['$[]']("content")['$[]'](1)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["padding",""+"5px 0px 5px "+($rb_minus($rb_divide(inner_width,6),6))+"px"];$send(row_three['$[]']("content")['$[]'](2)['$[]']("options")['$[]']("style"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;};dialog_source=$hash2(["component","options","script","content"],{"component":"org.gxg.gui.window.dialog","options":$hash2(["window_title","states","width","height"],{"window_title":window_title,"states":$hash2(["hidden"],{"hidden":true}),"width":total_width,"height":total_height}),"script":"","content":[form]});$writer=["script",""+"\n"+" on(:keyup) do |event|\n"+" if event[:which] == 27\n"+" self.respond({:action => :cancel})\n"+" end\n"+" end\n"+" "];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;try{$send(self,'dialog_open',[dialog_source,the_application,details],block.$to_proc());return true;}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2([],{})}));return false;}finally{Opal.pop_exception();}}else{throw $err;}};;},$Page_choice_dialog$42.$$arity=-1);return(Opal.def(self,'$vfs_dialog',$Page_vfs_dialog$43=function $$vfs_dialog(the_application,details){var $iter=$Page_vfs_dialog$43.$$p,block=$iter||nil,$$44,$$45,self=this,window_title=nil,action_title=nil,dialog_type=nil,$ret_or_12=nil,$case=nil,menu_item_script=nil,menu_bar=nil,$writer=nil,$ret_or_13=nil,menu_header=nil,menu=nil,menu_manifest=nil,menu_bar_cell=nil,list_item_script=nil,subitems=nil,subitems_container=nil,subitems_cell=nil,save_name=nil,save_name_cell=nil,action_btn=nil,action_cell=nil,cancel_btn=nil,cancel_cell=nil,row_one=nil,row_two=nil,row_three=nil,row_four=nil,table_one=nil,table_two=nil,table_three=nil,table_four=nil,form=nil,total_height=nil,$ret_or_14=nil,viewport=nil,dialog_source=nil,the_error=nil;if($iter)$Page_vfs_dialog$43.$$p=null;if($iter)$Page_vfs_dialog$43.$$p=null;;if(the_application==null){the_application=nil;};if(details==null){details=nil;};window_title="Unsupported Dialog Type";action_title="Unsupported";dialog_type=(function(){if($truthy(($ret_or_12=details))){return $ret_or_12}else{return $hash2(["type"],{"type":"folder"})};return nil;})()['$[]']("type");$case=dialog_type;if("save"['$===']($case)||"save"['$===']($case)){window_title="Save As ...";action_title="Save";} +try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2([],{})}));return false;}finally{Opal.pop_exception();}}else{throw $err;}};;},$Page_choice_dialog$43.$$arity=-1);return(Opal.def(self,'$vfs_dialog',$Page_vfs_dialog$44=function $$vfs_dialog(the_application,details){var $iter=$Page_vfs_dialog$44.$$p,block=$iter||nil,$$45,$$46,self=this,window_title=nil,action_title=nil,dialog_type=nil,$ret_or_15=nil,$case=nil,menu_item_script=nil,menu_bar=nil,$writer=nil,$ret_or_16=nil,menu_header=nil,menu=nil,menu_manifest=nil,menu_bar_cell=nil,list_item_script=nil,subitems=nil,subitems_container=nil,subitems_cell=nil,save_name=nil,save_name_cell=nil,action_btn=nil,action_cell=nil,cancel_btn=nil,cancel_cell=nil,row_one=nil,row_two=nil,row_three=nil,row_four=nil,table_one=nil,table_two=nil,table_three=nil,table_four=nil,form=nil,total_height=nil,$ret_or_17=nil,viewport=nil,dialog_source=nil,the_error=nil;if($iter)$Page_vfs_dialog$44.$$p=null;if($iter)$Page_vfs_dialog$44.$$p=null;;if(the_application==null){the_application=nil;};if(details==null){details=nil;};window_title="Unsupported Dialog Type";action_title="Unsupported";dialog_type=(function(){if($truthy(($ret_or_15=details))){return $ret_or_15}else{return $hash2(["type"],{"type":"folder"})};return nil;})()['$[]']("type");$case=dialog_type;if("save"['$===']($case)||"save"['$===']($case)){window_title="Save As ...";action_title="Save";} else if("folder"['$===']($case)||"folder"['$===']($case)){window_title="Choose Folder";action_title="Choose";} -else if("object"['$===']($case)||"object"['$===']($case)){window_title="Select Object";action_title="Select";};menu_item_script=""+"\n"+" def select(data=nil)\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.settings[:data] = @settings[:data]\n"+" menu_bar_header = page.find_object_by('gxg_path_menu_header')\n"+" if menu_bar_header\n"+" menu_bar_header.set_label(File.basename(@settings[:data]))\n"+" menu_bar_header.set_data(@settings[:data])\n"+" end\n"+" menu = page.find_object_by('gxg_path_menu')\n"+" if menu\n"+" menu.update_menu(@settings[:data])\n"+" end\n"+" sublist = page.find_object_by('gxg_path_subitems')\n"+" if sublist\n"+" sublist.update_appearance()\n"+" end\n"+" end\n"+" end\n"+" ";menu_bar=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_path_menu_bar"];$send(menu_bar,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.menu.bar"];$send(menu_bar,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["path"],{"path":(function(){if($truthy(($ret_or_13=details['$[]']("path")))){return $ret_or_13}else{return "/"};return nil;})()})];$send(menu_bar,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(menu_bar,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(menu_bar,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(menu_bar,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;menu_header=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_path_menu_header"];$send(menu_header,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.menu.item"];$send(menu_header,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["label","data"],{"label":$$($nesting,'File').$basename(menu_bar['$[]']("settings")['$[]']("path")),"data":nil})];$send(menu_header,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(menu_header,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(menu_header,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(menu_header,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;menu=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_path_menu"];$send(menu,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.menu"];$send(menu,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["item_script"],{"item_script":menu_item_script})];$send(menu,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(menu,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" def update_menu(the_path=nil)\n"+" if the_path.is_a?(::String)\n"+" build_list = []\n"+" menu[:content] = []\n"+" #\n"+" menu_manifest = []\n"+" (0..(the_path.split('/').size - 1)).each do |the_index|\n"+" menu_manifest << (the_path.split('/')[0..(the_index)].join('/'))\n"+" end\n"+" menu_manifest.reverse.[1..-1].each do |the_subpath|\n"+" the_item = ::GxG::Database::DetachedHash.new\n"+" the_item[:component] = 'menu_item'\n"+" the_item[:settings] = {:label => File.basename(the_subpath), :data => the_subpath}\n"+" the_item[:options] = {}\n"+" the_item[:script] = @settings[:item_script].to_s\n"+" the_item[:content] = []\n"+" build_list << the_item\n"+" end\n"+" children.values.reverse.each do |the_child|\n"+" the_child.destroy\n"+" end\n"+" if build_list.size > 0\n"+" page.build_components(self, build_list)\n"+" end\n"+" #\n"+" end\n"+" end\n"+" "];$send(menu,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(menu,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;menu_manifest=[];$send(Opal.Range.$new(0,$rb_minus(menu_bar['$[]']("settings")['$[]']("path").$split("/").$size(),1),false),'each',[],($$44=function(the_index){var self=$$44.$$s==null?this:$$44.$$s;if(the_index==null){the_index=nil;};return menu_manifest['$<<'](menu_bar['$[]']("settings")['$[]']("path").$split("/")['$[]'](Opal.Range.$new(0,the_index,false)).$join("/"));},$$44.$$s=self,$$44.$$arity=1,$$44));$send(menu_manifest.$reverse()['$[]']($range(1,-1,false)),'each',[],($$45=function(the_path){var self=$$45.$$s==null?this:$$45.$$s,the_item=nil;if(the_path==null){the_path=nil;};the_item=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.menu.item"];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["label","data"],{"label":$$($nesting,'File').$basename(the_path),"data":the_path})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2([],{})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",menu_item_script];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return menu['$[]']("content")['$<<'](the_item);},$$45.$$s=self,$$45.$$arity=1,$$45));menu_header['$[]']("content")['$<<'](menu);menu_bar['$[]']("content")['$<<'](menu_header);menu_bar_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(menu_bar_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(menu_bar_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["border","padding","margin","width"],{"border":"1px solid #c2c2c2","padding":"0px","margin":"0px","width":"100%"})})];$send(menu_bar_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(menu_bar_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[menu_bar]];$send(menu_bar_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;list_item_script=""+"\n"+" def highlight()\n"+" self.merge_style({:'background-color' => '#c2c2c2'})\n"+" end\n"+" def unhighlight()\n"+" self.merge_style({:'background-color' => '#ffffff'})\n"+" end\n"+" def select()\n"+" # unhighlight all others\n"+" parent.children.values.each do |the_child|\n"+" the_child.unhighlight()\n"+" end\n"+" # set selection\n"+" self.highlight()\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.settings[:selection] = self\n"+" end\n"+" end\n"+" on(:mouseup) do |the_event|\n"+" self.select()\n"+" end\n"+" ";subitems=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_path_subitems"];$send(subitems,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.list"];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["list_item_script"],{"list_item_script":list_item_script})];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["clear","list-style","padding","margin"],{"clear":"both","list-style":"none","padding":"0px","margin":"0px"})})];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" def add_list_item(the_icon=nil, the_path=nil, the_profile=nil)\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" #\n"+" the_item = ::GxG::Database::DetachedHash.new\n"+" the_item[:component] = 'list_tiem'\n"+" the_item[:settings] = {:label => File.basename(the_path), :data => the_path}\n"+" the_item[:options] = {}\n"+" the_item[:script] = @settings[:list_item_script].to_s\n"+" the_item[:content] = []\n"+" #\n"+" the_window.settings[:manifest][(the_item.uuid.to_s.to_sym)] = {:path => the_path, :profile => the_profile}\n"+" #\n"+" icon_item = ::GxG::Database::DetachedHash.new\n"+" icon_item[:component] = 'image'\n"+" icon_item[:settings] = {}\n"+" icon_item[:options] = {src => the_icon.to_s, :style => {:width => '16px', :height => '16px'}}\n"+" icon_item[:script] = '\n"+" on(:mouseup) do |the_event|\n"+" parent.select()\n"+" end\n"+" '\n"+" icon_item[:content] = []\n"+" #\n"+" label_item = ::GxG::Database::DetachedHash.new\n"+" label_item[:component] = 'label'\n"+" label_item[:settings] = {}\n"+" label_item[:options] = {:content => File.basename(the_path)}\n"+" label_item[:script] = '\n"+" on(:mouseup) do |the_event|\n"+" parent.select()\n"+" end\n"+" '\n"+" label_item[:content] = []\n"+" #\n"+" the_item[:content] << icon_item\n"+" the_item[:content] << label_item\n"+" page.build_components(self, [(the_item)])\n"+" true\n"+" else\n"+" false\n"+" end\n"+" end\n"+" #\n"+" def update_appearance()\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" dialog_type = (the_window.settings[:type] || :folder)\n"+" the_path = the_window.settings[:data]\n"+" if the_path.is_a?(::String)\n"+" #\n"+" the_window.settings[:selection] = nil\n"+" the_window.settings[:manifest] = {}\n"+" # Clear List\n"+" self.children.values.each do |the_child|\n"+" the_child.destroy\n"+" end\n"+" # Rebuild List\n"+" GxG::CONNECTION.entries({:location => (the_path)}) do |response|\n"+" if response.is_a?(::Hash)\n"+" response[:result].each do |the_profile|\n"+" # add list item\n"+" item_path = (the_path + '/' + the_profile[:title].to_s)\n"+" if dialog_type == :folder\n"+" if [:virtual_directory, :directory, :persisted_array].include?(the_profile[:type].to_s.to_sym)\n"+" self.add_list_item(self.theme_icon('folder.svg'), item_path, the_profile)\n"+" end\n"+" else\n"+" case (the_profile[:type].to_s.to_sym)\n"+" when :virtual_directory, :directory, :persisted_array\n"+" the_icon_path = self.theme_icon('folder.svg')\n"+" when :persisted_hash\n"+" the_icon_path = self.theme_icon('object.svg')\n"+" else\n"+" # Review: further qualify file type icons ??\n"+" the_icon_path = self.theme_icon('file.svg')\n"+" end\n"+" self.add_list_item(the_icon_path, item_path, the_profile)\n"+" end\n"+" #\n"+" end\n"+" #\n"+" end\n"+" end\n"+" #\n"+" end\n"+" end\n"+" end\n"+" "];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$case=dialog_type;if("save"['$===']($case)){$writer=["script",$rb_plus($rb_plus(subitems['$[]']("script"),"\n"),""+"\n"+" self.set_select_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" # nothing\n"+" end\n"+" end\n"+" self.set_open_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" if [:virtual_directory, :directory, :persisted_array].include?(@manifest[(the_uuid.to_s.to_sym)][:profile][:type].to_s.to_sym)\n"+" # open folder\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" menu_bar = the_window.find_child('path_menu_bar')\n"+" if menu_bar\n"+" GxG::DISPATCHER.post_event(:root) do\n"+" menu_bar.path = @manifest[(the_uuid.to_s.to_sym)][:path]\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" ")];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];} +else if("object"['$===']($case)||"object"['$===']($case)){window_title="Select Object";action_title="Select";};menu_item_script=""+"\n"+" def select(data=nil)\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.settings[:data] = @settings[:data]\n"+" menu_bar_header = page.find_object_by('gxg_path_menu_header')\n"+" if menu_bar_header\n"+" menu_bar_header.set_label(File.basename(@settings[:data]))\n"+" menu_bar_header.set_data(@settings[:data])\n"+" end\n"+" menu = page.find_object_by('gxg_path_menu')\n"+" if menu\n"+" menu.update_menu(@settings[:data])\n"+" end\n"+" sublist = page.find_object_by('gxg_path_subitems')\n"+" if sublist\n"+" sublist.update_appearance()\n"+" end\n"+" end\n"+" end\n"+" ";menu_bar=self.$new_component("org.gxg.gui.menu.bar");$writer=["gxg_path_menu_bar"];$send(menu_bar,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["path"],{"path":(function(){if($truthy(($ret_or_16=details['$[]']("path")))){return $ret_or_16}else{return "/"};return nil;})()})];$send(menu_bar,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;menu_header=self.$new_component("org.gxg.gui.menu.item");$writer=["gxg_path_menu_header"];$send(menu_header,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["label","data"],{"label":$$($nesting,'File').$basename(menu_bar['$[]']("settings")['$[]']("path")),"data":nil})];$send(menu_header,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;menu=self.$new_component("org.gxg.gui.menu");$writer=["gxg_path_menu"];$send(menu,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["item_script"],{"item_script":menu_item_script})];$send(menu,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" def update_menu(the_path=nil)\n"+" if the_path.is_a?(::String)\n"+" build_list = []\n"+" menu[:content] = []\n"+" #\n"+" menu_manifest = []\n"+" (0..(the_path.split('/').size - 1)).each do |the_index|\n"+" menu_manifest << (the_path.split('/')[0..(the_index)].join('/'))\n"+" end\n"+" menu_manifest.reverse.[1..-1].each do |the_subpath|\n"+" the_item = ::GxG::Database::DetachedHash.new\n"+" the_item[:component] = 'menu_item'\n"+" the_item[:settings] = {:label => File.basename(the_subpath), :data => the_subpath}\n"+" the_item[:options] = {}\n"+" the_item[:script] = @settings[:item_script].to_s\n"+" the_item[:content] = []\n"+" build_list << the_item\n"+" end\n"+" children.values.reverse.each do |the_child|\n"+" the_child.destroy\n"+" end\n"+" if build_list.size > 0\n"+" page.build_components(self, build_list)\n"+" end\n"+" #\n"+" end\n"+" end\n"+" "];$send(menu,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;menu_manifest=[];$send(Opal.Range.$new(0,$rb_minus(menu_bar['$[]']("settings")['$[]']("path").$split("/").$size(),1),false),'each',[],($$45=function(the_index){var self=$$45.$$s==null?this:$$45.$$s;if(the_index==null){the_index=nil;};return menu_manifest['$<<'](menu_bar['$[]']("settings")['$[]']("path").$split("/")['$[]'](Opal.Range.$new(0,the_index,false)).$join("/"));},$$45.$$s=self,$$45.$$arity=1,$$45));$send(menu_manifest.$reverse()['$[]']($range(1,-1,false)),'each',[],($$46=function(the_path){var self=$$46.$$s==null?this:$$46.$$s,the_item=nil;if(the_path==null){the_path=nil;};the_item=self.$new_component("org.gxg.gui.menu.item");$writer=["settings",$hash2(["label","data"],{"label":$$($nesting,'File').$basename(the_path),"data":the_path})];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",menu_item_script];$send(the_item,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return menu['$[]']("content")['$<<'](the_item);},$$46.$$s=self,$$46.$$arity=1,$$46));menu_header['$[]']("content")['$<<'](menu);menu_bar['$[]']("content")['$<<'](menu_header);menu_bar_cell=self.$new_component("org.gxg.gui.block.table.cell");$writer=["options",$hash2(["style"],{"style":$hash2(["border","padding","margin","width"],{"border":"1px solid #c2c2c2","padding":"0px","margin":"0px","width":"100%"})})];$send(menu_bar_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[menu_bar]];$send(menu_bar_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;list_item_script=""+"\n"+" def highlight()\n"+" self.merge_style({:'background-color' => '#c2c2c2'})\n"+" end\n"+" def unhighlight()\n"+" self.merge_style({:'background-color' => '#ffffff'})\n"+" end\n"+" def select()\n"+" # unhighlight all others\n"+" parent.children.values.each do |the_child|\n"+" the_child.unhighlight()\n"+" end\n"+" # set selection\n"+" self.highlight()\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.settings[:selection] = self\n"+" end\n"+" end\n"+" on(:mouseup) do |the_event|\n"+" self.select()\n"+" end\n"+" ";subitems=self.$new_component("org.gxg.gui.list");$writer=["gxg_path_subitems"];$send(subitems,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2(["list_item_script"],{"list_item_script":list_item_script})];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["clear","list-style","padding","margin"],{"clear":"both","list-style":"none","padding":"0px","margin":"0px"})})];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" def add_list_item(the_icon=nil, the_path=nil, the_profile=nil)\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" #\n"+" the_item = ::GxG::Database::DetachedHash.new\n"+" the_item[:component] = 'list_tiem'\n"+" the_item[:settings] = {:label => File.basename(the_path), :data => the_path}\n"+" the_item[:options] = {}\n"+" the_item[:script] = @settings[:list_item_script].to_s\n"+" the_item[:content] = []\n"+" #\n"+" the_window.settings[:manifest][(the_item.uuid.to_s.to_sym)] = {:path => the_path, :profile => the_profile}\n"+" #\n"+" icon_item = ::GxG::Database::DetachedHash.new\n"+" icon_item[:component] = 'image'\n"+" icon_item[:settings] = {}\n"+" icon_item[:options] = {src => the_icon.to_s, :style => {:width => '16px', :height => '16px'}}\n"+" icon_item[:script] = '\n"+" on(:mouseup) do |the_event|\n"+" parent.select()\n"+" end\n"+" '\n"+" icon_item[:content] = []\n"+" #\n"+" label_item = ::GxG::Database::DetachedHash.new\n"+" label_item[:component] = 'label'\n"+" label_item[:settings] = {}\n"+" label_item[:options] = {:content => File.basename(the_path)}\n"+" label_item[:script] = '\n"+" on(:mouseup) do |the_event|\n"+" parent.select()\n"+" end\n"+" '\n"+" label_item[:content] = []\n"+" #\n"+" the_item[:content] << icon_item\n"+" the_item[:content] << label_item\n"+" page.build_components(self, [(the_item)])\n"+" true\n"+" else\n"+" false\n"+" end\n"+" end\n"+" #\n"+" def update_appearance()\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" dialog_type = (the_window.settings[:type] || :folder)\n"+" the_path = the_window.settings[:data]\n"+" if the_path.is_a?(::String)\n"+" #\n"+" the_window.settings[:selection] = nil\n"+" the_window.settings[:manifest] = {}\n"+" # Clear List\n"+" self.children.values.each do |the_child|\n"+" the_child.destroy\n"+" end\n"+" # Rebuild List\n"+" GxG::CONNECTION.entries({:location => (the_path)}) do |response|\n"+" if response.is_a?(::Hash)\n"+" response[:result].each do |the_profile|\n"+" # add list item\n"+" item_path = (the_path + '/' + the_profile[:title].to_s)\n"+" if dialog_type == :folder\n"+" if [:virtual_directory, :directory, :persisted_array].include?(the_profile[:type].to_s.to_sym)\n"+" self.add_list_item(self.theme_icon('folder.svg'), item_path, the_profile)\n"+" end\n"+" else\n"+" case (the_profile[:type].to_s.to_sym)\n"+" when :virtual_directory, :directory, :persisted_array\n"+" the_icon_path = self.theme_icon('folder.svg')\n"+" when :persisted_hash\n"+" the_icon_path = self.theme_icon('object.svg')\n"+" else\n"+" # Review: further qualify file type icons ??\n"+" the_icon_path = self.theme_icon('file.svg')\n"+" end\n"+" self.add_list_item(the_icon_path, item_path, the_profile)\n"+" end\n"+" #\n"+" end\n"+" #\n"+" end\n"+" end\n"+" #\n"+" end\n"+" end\n"+" end\n"+" "];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$case=dialog_type;if("save"['$===']($case)){$writer=["script",$rb_plus($rb_plus(subitems['$[]']("script"),"\n"),""+"\n"+" self.set_select_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" # nothing\n"+" end\n"+" end\n"+" self.set_open_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" if [:virtual_directory, :directory, :persisted_array].include?(@manifest[(the_uuid.to_s.to_sym)][:profile][:type].to_s.to_sym)\n"+" # open folder\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" menu_bar = the_window.find_child('path_menu_bar')\n"+" if menu_bar\n"+" GxG::DISPATCHER.post_event(:root) do\n"+" menu_bar.path = @manifest[(the_uuid.to_s.to_sym)][:path]\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" ")];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];} else if("folder"['$===']($case)){$writer=["script",$rb_plus($rb_plus(subitems['$[]']("script"),"\n"),""+"\n"+" self.set_select_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" # nothing\n"+" end\n"+" end\n"+" self.set_open_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" if [:virtual_directory, :directory, :persisted_array].include?(@manifest[(the_uuid.to_s.to_sym)][:profile][:type].to_s.to_sym)\n"+" # open folder\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" menu_bar = the_window.find_child('path_menu_bar')\n"+" if menu_bar\n"+" GxG::DISPATCHER.post_event(:root) do\n"+" menu_bar.path = @manifest[(the_uuid.to_s.to_sym)][:path]\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" ")];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];} -else if("object"['$===']($case)){$writer=["script",$rb_plus($rb_plus(subitems['$[]']("script"),"\n"),""+"\n"+" self.set_select_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" # if object selected enable Select button else disable it.\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" action_button = the_window.find_child('action_button')\n"+" if action_button\n"+" if [:file, :persisted_hash].include?(@manifest[(the_uuid.to_s.to_sym)][:profile][:type].to_s.to_sym)\n"+" action_button.enable()\n"+" else\n"+" action_button.disable()\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" self.set_open_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" if [:virtual_directory, :directory, :persisted_array].include?(@manifest[(the_uuid.to_s.to_sym)][:profile][:type].to_s.to_sym)\n"+" # open folder\n"+" # first, disable Select button\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" menu_bar = the_window.find_child('path_menu_bar')\n"+" if menu_bar\n"+" GxG::DISPATCHER.post_event(:root) do\n"+" menu_bar.path = @manifest[(the_uuid.to_s.to_sym)][:profile][:path]\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" ")];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};subitems_container=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block"];$send(subitems_container,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(subitems_container,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["width","height","overflow-y"],{"width":"100%","height":"192px","overflow-y":"scroll"})})];$send(subitems_container,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(subitems_container,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subitems]];$send(subitems_container,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;subitems_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(subitems_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(subitems_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["border","padding","margin","width"],{"border":"1px solid #c2c2c2","padding":"0px","margin":"0px","width":"100%"})})];$send(subitems_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(subitems_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subitems_container]];$send(subitems_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;save_name=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_save_name"];$send(save_name,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.input.text"];$send(save_name,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(save_name,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["background-color","font-size","width"],{"background-color":"#f2f2f2","font-size":"16px","width":"100%"})})];$send(save_name,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(save_name,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(save_name,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;save_name_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(save_name_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(save_name_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(save_name_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(save_name_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[save_name]];$send(save_name_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;action_btn=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_action_button"];$send(action_btn,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.input.button.submit"];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content","style"],{"content":action_title,"style":$hash2(["padding","width","height"],{"padding":"0px","width":"80px","height":"32px"})})];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" form = self.find_parent_type(::GxG::Gui::Form)\n"+" if the_window && form\n"+" the_action = the_window.settings[:type].to_s.to_sym\n"+" the_path = the_window.settings[:data].to_s\n"+" if the_action == :save\n"+" the_path = (the_path + '/' + (form.form_data()[:gxg_save_name] || 'Untitled.data').to_s)\n"+" end\n"+" the_window.respond({:action => the_action, :path => the_path})\n"+" end\n"+" end\n"+" "];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;action_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(action_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(action_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"10px 0px 0px 35px","margin":"0px","width":"50%"})})];$send(action_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(action_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[action_btn]];$send(action_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;cancel_btn=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_cancel_button"];$send(cancel_btn,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.input.button.submit"];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content","style"],{"content":"Cancel","style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})})];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :cancel})\n"+" end\n"+" end\n"+" "];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;cancel_cell=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.cell"];$send(cancel_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(cancel_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"10px 0px 0px 35px","margin":"0px","width":"50%"})})];$send(cancel_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(cancel_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[cancel_btn]];$send(cancel_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_one=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[menu_bar_cell]];$send(row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_two=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subitems_cell]];$send(row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_three=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(row_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(row_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(row_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[save_name_cell]];$send(row_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_four=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table.row"];$send(row_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(row_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(row_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[cancel_cell,action_cell]];$send(row_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_one=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(table_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(table_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"32px"})})];$send(table_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(table_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_one]];$send(table_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_two=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(table_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(table_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"192px"})})];$send(table_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(table_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_two]];$send(table_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_three=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(table_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(table_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"32px"})})];$send(table_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(table_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_three]];$send(table_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_four=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.block.table"];$send(table_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(table_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"32px"})})];$send(table_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(table_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_four]];$send(table_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;form=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["component","org.gxg.gui.form"];$send(form,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(form,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["background-color","padding","margin","width"],{"background-color":"#f2f2f2","padding":"20px","margin":"5px","width":"100%"})})];$send(form,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(form,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(form,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;total_height=330;form['$[]']("content")['$<<'](table_one);form['$[]']("content")['$<<'](table_two);if($truthy((function(){if($truthy(($ret_or_14=dialog_type['$==']("save")))){return $ret_or_14}else{return dialog_type['$==']("save")};return nil;})())){form['$[]']("content")['$<<'](table_three);total_height=$rb_plus(total_height,32);};form['$[]']("content")['$<<'](table_four);viewport=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=["gxg_selection_viewport"];$send(viewport,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.application.viewport"];$send(viewport,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(viewport,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["overflow","width","height"],{"overflow":"hidden","width":"100%","height":"100%"})})];$send(viewport,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(viewport,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[form]];$send(viewport,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;dialog_source=$$$($$$($$$('::','GxG'),'Database'),'DetachedHash').$new();$writer=[window_title];$send(dialog_source,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["component","org.gxg.gui.window.dialog"];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["settings",$hash2([],{})];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["window_title","states","width","height"],{"window_title":window_title,"states":$hash2(["hidden"],{"hidden":true}),"width":350,"height":total_height})];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[viewport]];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;try{$send(self,'dialog_open',[dialog_source,the_application,details],block.$to_proc());return true;}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2([],{})}));return false;}finally{Opal.pop_exception();}}else{throw $err;}};;},$Page_vfs_dialog$43.$$arity=-1),nil)&&'vfs_dialog';})($nesting[0],null,$nesting)})($nesting[0],$nesting);})($nesting[0],$nesting)})($nesting[0],$nesting)};Opal.modules["web/gxg_comm"]=function(Opal){function $rb_minus(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs-rhs:lhs['$-'](rhs);} +else if("object"['$===']($case)){$writer=["script",$rb_plus($rb_plus(subitems['$[]']("script"),"\n"),""+"\n"+" self.set_select_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" # if object selected enable Select button else disable it.\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" action_button = the_window.find_child('action_button')\n"+" if action_button\n"+" if [:file, :persisted_hash].include?(@manifest[(the_uuid.to_s.to_sym)][:profile][:type].to_s.to_sym)\n"+" action_button.enable()\n"+" else\n"+" action_button.disable()\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" self.set_open_responder do |the_uuid|\n"+" if @manifest[(the_uuid.to_s.to_sym)]\n"+" if [:virtual_directory, :directory, :persisted_array].include?(@manifest[(the_uuid.to_s.to_sym)][:profile][:type].to_s.to_sym)\n"+" # open folder\n"+" # first, disable Select button\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" menu_bar = the_window.find_child('path_menu_bar')\n"+" if menu_bar\n"+" GxG::DISPATCHER.post_event(:root) do\n"+" menu_bar.path = @manifest[(the_uuid.to_s.to_sym)][:profile][:path]\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" end\n"+" ")];$send(subitems,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};subitems_container=self.$new_component("org.gxg.gui.block");$writer=["options",$hash2(["style"],{"style":$hash2(["width","height","overflow-y"],{"width":"100%","height":"192px","overflow-y":"scroll"})})];$send(subitems_container,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subitems]];$send(subitems_container,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;subitems_cell=self.$new_component("org.gxg.gui.block.table.cell");$writer=["options",$hash2(["style"],{"style":$hash2(["border","padding","margin","width"],{"border":"1px solid #c2c2c2","padding":"0px","margin":"0px","width":"100%"})})];$send(subitems_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subitems_container]];$send(subitems_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;save_name=self.$new_component("org.gxg.gui.input.text");$writer=["gxg_save_name"];$send(save_name,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["background-color","font-size","width"],{"background-color":"#f2f2f2","font-size":"16px","width":"100%"})})];$send(save_name,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;save_name_cell=self.$new_component("org.gxg.gui.block.table.cell");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(save_name_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[save_name]];$send(save_name_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;action_btn=self.$new_component("org.gxg.gui.input.button.submit");$writer=["gxg_action_button"];$send(action_btn,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content","style"],{"content":action_title,"style":$hash2(["padding","width","height"],{"padding":"0px","width":"80px","height":"32px"})})];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" form = self.find_parent_type(::GxG::Gui::Form)\n"+" if the_window && form\n"+" the_action = the_window.settings[:type].to_s.to_sym\n"+" the_path = the_window.settings[:data].to_s\n"+" if the_action == :save\n"+" the_path = (the_path + '/' + (form.form_data()[:gxg_save_name] || 'Untitled.data').to_s)\n"+" end\n"+" the_window.respond({:action => the_action, :path => the_path})\n"+" end\n"+" end\n"+" "];$send(action_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;action_cell=self.$new_component("org.gxg.gui.block.table.cell");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"10px 0px 0px 35px","margin":"0px","width":"50%"})})];$send(action_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[action_btn]];$send(action_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;cancel_btn=self.$new_component("org.gxg.gui.input.button.submit");$writer=["gxg_cancel_button"];$send(cancel_btn,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["content","style"],{"content":"Cancel","style":$hash2(["padding","width","height"],{"padding":"2px","width":"80px","height":"32px"})})];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["script",""+"\n"+" on(:mouseup) do |event|\n"+" the_window = self.find_parent_type(::GxG::Gui::DialogBox)\n"+" if the_window\n"+" the_window.respond({:action => :cancel})\n"+" end\n"+" end\n"+" "];$send(cancel_btn,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;cancel_cell=self.$new_component("org.gxg.gui.block.table.cell");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"10px 0px 0px 35px","margin":"0px","width":"50%"})})];$send(cancel_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[cancel_btn]];$send(cancel_cell,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_one=self.$new_component("org.gxg.gui.block.table.row");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[menu_bar_cell]];$send(row_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_two=self.$new_component("org.gxg.gui.block.table.row");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[subitems_cell]];$send(row_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_three=self.$new_component("org.gxg.gui.block.table.row");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[save_name_cell]];$send(row_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;row_four=self.$new_component("org.gxg.gui.block.table.row");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width"],{"padding":"0px","margin":"0px","width":"100%"})})];$send(row_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[cancel_cell,action_cell]];$send(row_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_one=self.$new_component("org.gxg.gui.block.table");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"32px"})})];$send(table_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_one]];$send(table_one,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_two=self.$new_component("org.gxg.gui.block.table");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"192px"})})];$send(table_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_two]];$send(table_two,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_three=self.$new_component("org.gxg.gui.block.table");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"32px"})})];$send(table_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_three]];$send(table_three,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;table_four=self.$new_component("org.gxg.gui.block.table");$writer=["options",$hash2(["style"],{"style":$hash2(["padding","margin","width","height"],{"padding":"0px","margin":"0px","width":"300px","height":"32px"})})];$send(table_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[row_four]];$send(table_four,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;form=self.$new_component("org.gxg.gui.form");$writer=["options",$hash2(["style"],{"style":$hash2(["background-color","padding","margin","width"],{"background-color":"#f2f2f2","padding":"20px","margin":"5px","width":"100%"})})];$send(form,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[]];$send(form,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;total_height=330;form['$[]']("content")['$<<'](table_one);form['$[]']("content")['$<<'](table_two);if($truthy((function(){if($truthy(($ret_or_17=dialog_type['$==']("save")))){return $ret_or_17}else{return dialog_type['$==']("save")};return nil;})())){form['$[]']("content")['$<<'](table_three);total_height=$rb_plus(total_height,32);};form['$[]']("content")['$<<'](table_four);viewport=self.$new_component("org.gxg.gui.application.viewport");$writer=["gxg_selection_viewport"];$send(viewport,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["style"],{"style":$hash2(["overflow","width","height"],{"overflow":"hidden","width":"100%","height":"100%"})})];$send(viewport,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[form]];$send(viewport,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;dialog_source=self.$new_component("org.gxg.gui.window.dialog");$writer=[window_title];$send(dialog_source,'title=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["options",$hash2(["window_title","states","width","height"],{"window_title":window_title,"states":$hash2(["hidden"],{"hidden":true}),"width":350,"height":total_height})];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["content",[viewport]];$send(dialog_source,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;try{$send(self,'dialog_open',[dialog_source,the_application,details],block.$to_proc());return true;}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2([],{})}));return false;}finally{Opal.pop_exception();}}else{throw $err;}};;},$Page_vfs_dialog$44.$$arity=-1),nil)&&'vfs_dialog';})($nesting[0],null,$nesting)})($nesting[0],$nesting);})($nesting[0],$nesting)})($nesting[0],$nesting)};Opal.modules["web/gxg_comm"]=function(Opal){function $rb_minus(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs-rhs:lhs['$-'](rhs);} function $rb_gt(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs>rhs:lhs['$>'](rhs);} function $rb_lt(lhs,rhs){return(typeof(lhs)==='number'&&typeof(rhs)==='number')?lhs','$size','$body','$fail','$to_i','$<','$succeed','$+','$==','$pull_data','$base64?','$json?','$process_detached_import','$on','$to_proc','$push','$uuid','$format','$search','$constraint','$each','$clone','$gxg_export','$push_data','$open?','$set_busy','$encrypt','$id','$basename','$split','$index','$join','$post_event','$sleep','$navigate_to','$open','$gsub','$add_periodic_timer','$follow_up','$heartbeat']);return(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);(function($base,$parent_nesting){var self=$module($base,'Networking');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SocketMonitor');var $nesting=[self].concat($parent_nesting),$SocketMonitor_initialize$1,$SocketMonitor_on$2,$SocketMonitor_follow_up$3;self.$$prototype.event_handlers=nil;Opal.def(self,'$initialize',$SocketMonitor_initialize$1=function $$initialize(){var self=this;self.event_handlers=$hash2([],{});return self;},$SocketMonitor_initialize$1.$$arity=0);Opal.def(self,'$on',$SocketMonitor_on$2=function $$on(the_operation){var $iter=$SocketMonitor_on$2.$$p,block=$iter||nil,self=this,$writer=nil;if($iter)$SocketMonitor_on$2.$$p=null;if($iter)$SocketMonitor_on$2.$$p=null;;if(the_operation==null){the_operation=nil;};if($truthy(the_operation['$is_any?']($$$('::','String'),$$$('::','Symbol')))){if($truthy(block['$respond_to?']("call"))){$writer=[the_operation.$to_s().$downcase().$to_sym(),block];$send(self.event_handlers,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil}}else{return nil};},$SocketMonitor_on$2.$$arity=-1);return(Opal.def(self,'$follow_up',$SocketMonitor_follow_up$3=function $$follow_up(options){var self=this,operation_frame=nil,the_operation=nil;if(options==null){options=$hash2([],{});};operation_frame=$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("socket").$next_message();if($truthy(operation_frame['$is_a?']($$$('::','Hash')))){the_operation=operation_frame.$keys()['$[]'](0);if($truthy(self.event_handlers['$[]'](the_operation)['$respond_to?']("call"))){return self.event_handlers['$[]'](the_operation).$call(operation_frame['$[]'](the_operation))}else{return nil};}else{return nil};},$SocketMonitor_follow_up$3.$$arity=-1),nil)&&'follow_up';})($nesting[0],null,$nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Socket');var $nesting=[self].concat($parent_nesting),$Socket_inbox$4,$Socket_add_to_inbox$5,$Socket_error_message$6,$Socket_next_message$7,$Socket_write$8,$Socket_close$9,$Socket_open$ques$10,$Socket_open$11,$Socket_set_remote_uuid$12,$Socket_initialize$13;self.$$prototype.inbox=self.$$prototype.socket=nil;Opal.def(self,'$inbox',$Socket_inbox$4=function $$inbox(){var self=this;return self.inbox},$Socket_inbox$4.$$arity=0);Opal.def(self,'$add_to_inbox',$Socket_add_to_inbox$5=function $$add_to_inbox(payload){var self=this,the_error=nil;if(payload==null){payload="";};try{return self.inbox['$<<']($$$('::','JSON').$parse(payload.$decode64(),$hash2(["symbolize_names"],{"symbolize_names":true})))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$,$module=Opal.module,$klass=Opal.klass,$hash2=Opal.hash2,$truthy=Opal.truthy,$send=Opal.send;Opal.add_stubs(['$is_any?','$respond_to?','$to_sym','$downcase','$to_s','$[]=','$-','$next_message','$[]','$is_a?','$keys','$call','$<<','$parse','$decode64','$log_error','$new','$shift','$encode64','$generate','$export','$include?','$to_json','$valid_uuid?','$uuid_generate','$new_message','$pull','$cancel_timer','$get_attribute','$>','$size','$to_i','$<','$log_info','$inspect','$element','$body','$fail','$succeed','$+','$==','$pull_data','$base64?','$json?','$process_detached_import','$on','$to_proc','$push','$uuid','$format','$search','$constraint','$each','$clone','$gxg_export','$push_data','$open?','$set_busy','$encrypt','$id','$basename','$split','$index','$join','$post_event','$sleep','$navigate_to','$open','$gsub','$add_periodic_timer','$follow_up','$heartbeat']);return(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);(function($base,$parent_nesting){var self=$module($base,'Networking');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'SocketMonitor');var $nesting=[self].concat($parent_nesting),$SocketMonitor_initialize$1,$SocketMonitor_on$2,$SocketMonitor_follow_up$3;self.$$prototype.event_handlers=nil;Opal.def(self,'$initialize',$SocketMonitor_initialize$1=function $$initialize(){var self=this;self.event_handlers=$hash2([],{});return self;},$SocketMonitor_initialize$1.$$arity=0);Opal.def(self,'$on',$SocketMonitor_on$2=function $$on(the_operation){var $iter=$SocketMonitor_on$2.$$p,block=$iter||nil,self=this,$writer=nil;if($iter)$SocketMonitor_on$2.$$p=null;if($iter)$SocketMonitor_on$2.$$p=null;;if(the_operation==null){the_operation=nil;};if($truthy(the_operation['$is_any?']($$$('::','String'),$$$('::','Symbol')))){if($truthy(block['$respond_to?']("call"))){$writer=[the_operation.$to_s().$downcase().$to_sym(),block];$send(self.event_handlers,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil}}else{return nil};},$SocketMonitor_on$2.$$arity=-1);return(Opal.def(self,'$follow_up',$SocketMonitor_follow_up$3=function $$follow_up(options){var self=this,operation_frame=nil,the_operation=nil;if(options==null){options=$hash2([],{});};operation_frame=$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("socket").$next_message();if($truthy(operation_frame['$is_a?']($$$('::','Hash')))){the_operation=operation_frame.$keys()['$[]'](0);if($truthy(self.event_handlers['$[]'](the_operation)['$respond_to?']("call"))){return self.event_handlers['$[]'](the_operation).$call(operation_frame['$[]'](the_operation))}else{return nil};}else{return nil};},$SocketMonitor_follow_up$3.$$arity=-1),nil)&&'follow_up';})($nesting[0],null,$nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Socket');var $nesting=[self].concat($parent_nesting),$Socket_inbox$4,$Socket_add_to_inbox$5,$Socket_error_message$6,$Socket_next_message$7,$Socket_write$8,$Socket_close$9,$Socket_open$ques$10,$Socket_open$11,$Socket_set_remote_uuid$12,$Socket_initialize$13;self.$$prototype.inbox=self.$$prototype.socket=nil;Opal.def(self,'$inbox',$Socket_inbox$4=function $$inbox(){var self=this;return self.inbox},$Socket_inbox$4.$$arity=0);Opal.def(self,'$add_to_inbox',$Socket_add_to_inbox$5=function $$add_to_inbox(payload){var self=this,the_error=nil;if(payload==null){payload="";};try{return self.inbox['$<<']($$$('::','JSON').$parse(payload.$decode64(),$hash2(["symbolize_names"],{"symbolize_names":true})))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":payload.$decode64()}))}finally{Opal.pop_exception();}}else{throw $err;}};},$Socket_add_to_inbox$5.$$arity=-1);Opal.def(self,'$error_message',$Socket_error_message$6=function $$error_message(the_message){var self=this;return self.$log_error($hash2(["error"],{"error":$$($nesting,'Exception').$new(the_message)}))},$Socket_error_message$6.$$arity=1);Opal.def(self,'$next_message',$Socket_next_message$7=function $$next_message(){var self=this;return self.inbox.$shift()},$Socket_next_message$7.$$arity=0);Opal.def(self,'$write',$Socket_write$8=function $$write(the_data){var self=this,thesocket=nil;if(the_data==null){the_data="";};if($truthy(the_data['$is_any?']($$$('::','Hash'),$$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy(the_data['$is_a?']($$$('::','Hash')))){the_data=$$($nesting,'JSON').$generate(the_data).$encode64()}else{the_data=$$($nesting,'JSON').$generate(the_data.$export()).$encode64()}};thesocket=self.socket;if($truthy(thesocket)){thesocket.send(the_data);return true;}else{return false};},$Socket_write$8.$$arity=-1);Opal.def(self,'$close',$Socket_close$9=function $$close(){var self=this,thesocket=nil;thesocket=self.socket;if($truthy(thesocket)){thesocket.close;self.socket=nil;return true;}else{return false};},$Socket_close$9.$$arity=0);Opal.def(self,'$open?',$Socket_open$ques$10=function(){var self=this;if($truthy(self.socket)){return true}else{return false}},$Socket_open$ques$10.$$arity=0);Opal.def(self,'$open',$Socket_open$11=function $$open(the_location){var self=this,the_url=nil,greeting=nil,the_socket=nil,the_error=nil,$writer=nil;self.socket=nil;if($truthy((window.location['href'])['$include?']("https://"))){the_url=""+"wss://"+(the_location)}else{the_url=""+"ws://"+(the_location)};try{greeting=$hash2(["attach_display"],{"attach_display":true}).$to_json().$encode64();the_socket=new WebSocket(the_url);the_socket.onopen=function(e){the_socket.send(greeting);};the_socket.onmessage=function(event){Opal.eval("GxG::DISPLAY_DETAILS[:socket].add_to_inbox('"+event.data+"')");};the_socket.onclose=function(event){Opal.eval("GxG::DISPLAY_DETAILS[:socket].close");};the_socket.onerror=function(error){Opal.eval("GxG::DISPLAY_DETAILS[:socket].error_message('"+error.message+"')");};;self.socket=the_socket;}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["url"],{"url":the_url.$to_s()})}))}finally{Opal.pop_exception();}}else{throw $err;}};;if($truthy(self.socket)){$writer=["socket",self];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Socket_open$11.$$arity=1);Opal.def(self,'$set_remote_uuid',$Socket_set_remote_uuid$12=function $$set_remote_uuid(the_uuid){var self=this;if(the_uuid==null){the_uuid=nil;};if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_uuid))){self.remote_uuid=the_uuid.$to_sym();return true;}else{return false};},$Socket_set_remote_uuid$12.$$arity=-1);return(Opal.def(self,'$initialize',$Socket_initialize$13=function $$initialize(){var self=this;self.uuid=$$($nesting,'GxG').$uuid_generate().$to_sym();self.remote_uuid=nil;self.inbox=[];return self;},$Socket_initialize$13.$$arity=0),nil)&&'initialize';})($nesting[0],null,$nesting);})($nesting[0],$nesting);return(function($base,$parent_nesting){var self=$module($base,'Networking');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Channel');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],null,$nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Connector');var $nesting=[self].concat($parent_nesting),$Connector_remote_uuid$14,$Connector_open$ques$15,$Connector_close$16,$Connector_push$17,$Connector_pull$20,$Connector_push_message$23,$Connector_pull_message$24,$Connector_process_pending$25,$Connector_push_object_portions$26,$Connector_search_database$27,$Connector_search_pull$29,$Connector_destroy_object$31,$Connector_push_data$33,$Connector_push_object$35,$Connector_pull_data$39,$Connector_pull_object$41,$Connector_load_format$43,$Connector_store_format$45,$Connector_get_permissions$49,$Connector_call_event$51,$Connector_library_pull$53,$Connector_format_pull$55,$Connector_format_push$57,$Connector_format_list$59,$Connector_admin$61,$Connector_vfs$63,$Connector_app_state_push$65,$Connector_app_state_pull$67,$Connector_application_open$69,$Connector_application_close$72,$Connector_application_list$74,$Connector_application_menu$76,$Connector_entries$78,$Connector_heartbeat$80,$Connector_update_credential$82,$Connector_downgrade_credential$85,$Connector_action$87,$Connector_relative_url$88,$Connector_query$89,$Connector_article$90,$Connector_display_path$91,$Connector_initialize$92;self.$$prototype.remote_uuid=self.$$prototype.active=self.$$prototype.uuid=self.$$prototype.heart_beat_timer=self.$$prototype.relative_url=self.$$prototype.host_prefix=self.$$prototype.display_path=self.$$prototype.csrf=self.$$prototype.query=self.$$prototype.article=nil;Opal.def(self,'$remote_uuid',$Connector_remote_uuid$14=function $$remote_uuid(){var self=this;return self.remote_uuid},$Connector_remote_uuid$14.$$arity=0);Opal.def(self,'$open?',$Connector_open$ques$15=function(){var self=this;return self.active},$Connector_open$ques$15.$$arity=0);Opal.def(self,'$close',$Connector_close$16=function $$close(){var self=this,the_message=nil,$writer=nil;the_message=self.$new_message($hash2(["close"],{"close":true}));$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$pull(the_message,$hash2(["synchronous"],{"synchronous":true}));self.active=false;self.csrf=nil;if($truthy(self.heart_beat_timer['$is_a?']($$$('::','Hash')))){$$$($$($nesting,'GxG'),'DISPATCHER').$cancel_timer(self.heart_beat_timer)};return true;},$Connector_close$16.$$arity=0);Opal.def(self,'$push',$Connector_push$17=function $$push(the_message,options){var $$18,$$19,self=this,the_url=nil,payload=nil,the_xhr=nil,$ret_or_1=nil,failed=nil,succeeded=nil;if(the_message==null){the_message=nil;};if(options==null){options=$hash2([],{});};if($truthy(self.active)){if($truthy(the_message['$is_a?']($$$($$$($$$('::','GxG'),'Events'),'Message')))){if($truthy($rb_gt(self.relative_url.$to_s().$size(),0))){the_url=""+(self.host_prefix)+(self.relative_url.$to_s())+"?display="+(self.display_path.$to_s())}else{the_url=""+(self.host_prefix)+"?display="+(self.display_path.$to_s())};payload=the_message.$body().$to_json().$to_s();the_xhr=new XMLHttpRequest;the_xhr.open('PUT',the_url,true);the_xhr.timeout=(function(){if($truthy(($ret_or_1=options['$[]']("timeout")))){return $ret_or_1}else{return 5000};return nil;})();the_xhr.setRequestHeader('X-Requested-With','XMLHttpRequest');the_xhr.setRequestHeader('Accept','application/json');the_xhr.setRequestHeader('X-CSRF-Token',self.csrf);the_xhr.setRequestHeader('Content-Type','application/json');failed=$send($$($nesting,'Proc'),'new',[],($$18=function(reason){var self=$$18.$$s==null?this:$$18.$$s;if(reason==null){reason=nil;};return the_message.$fail(reason);},$$18.$$s=self,$$18.$$arity=-1,$$18));succeeded=$send($$($nesting,'Proc'),'new',[],($$19=function(){var self=$$19.$$s==null?this:$$19.$$s,response_code=nil,the_error=nil;response_code=(the_xhr.status).$to_i();if($truthy($rb_lt(response_code,300))){try{return the_message.$succeed($$$('::','JSON').$parse(the_xhr.response,$hash2(["symbolize_names"],{"symbolize_names":true})))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":the_xhr.response}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return failed.$call(response_code)};},$$19.$$s=self,$$19.$$arity=0,$$19));the_xhr.addEventListener('load',succeeded);the_xhr.addEventListener('error',failed);the_xhr.addEventListener('timeout',failed);the_xhr.addEventListener('abort',failed);the_xhr.send(payload);return true;}else{return false}}else{return nil};},$Connector_push$17.$$arity=-1);Opal.def(self,'$pull',$Connector_pull$20=function $$pull(the_message,options){var $$21,$$22,self=this,the_query=nil,the_url=nil,the_xhr=nil,$ret_or_2=nil,failed=nil,succeeded=nil;if(the_message==null){the_message=nil;};if(options==null){options=$hash2(["synchronous"],{"synchronous":false});};if($truthy(self.active)){if($truthy(the_message['$is_a?']($$$($$$($$$('::','GxG'),'Events'),'Message')))){the_query=""+"display="+(self.display_path.$to_s())+"&details="+(the_message.$body().$to_json().$encode64());if($truthy($rb_gt(self.relative_url.$to_s().$size(),0))){the_url=$rb_plus($rb_plus($rb_plus(self.host_prefix.$to_s(),self.relative_url.$to_s()),"?"),the_query)}else{the_url=$rb_plus($rb_plus(self.host_prefix.$to_s(),"?"),the_query)};the_xhr=new XMLHttpRequest;if(options['$[]']("synchronous")['$=='](true)){the_xhr.open('GET',the_url.$to_s(),false)}else{the_xhr.open('GET',the_url.$to_s(),true);the_xhr.timeout=(function(){if($truthy(($ret_or_2=options['$[]']("timeout")))){return $ret_or_2}else{return 600000};return nil;})();};the_xhr.setRequestHeader('X-Requested-With','XMLHttpRequest');the_xhr.setRequestHeader('Accept','application/json');failed=$send($$($nesting,'Proc'),'new',[],($$21=function(reason){var self=$$21.$$s==null?this:$$21.$$s;if(reason==null){reason=nil;};return the_message.$fail(reason);},$$21.$$s=self,$$21.$$arity=-1,$$21));succeeded=$send($$($nesting,'Proc'),'new',[],($$22=function(){var self=$$22.$$s==null?this:$$22.$$s,response_code=nil,the_error=nil;response_code=(the_xhr.status).$to_i();if($truthy($rb_lt(response_code,300))){try{return the_message.$succeed($$$('::','JSON').$parse(the_xhr.response,$hash2(["symbolize_names"],{"symbolize_names":true})))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":the_xhr.response}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return failed.$call(response_code)};},$$22.$$s=self,$$22.$$arity=0,$$22));the_xhr.addEventListener('load',succeeded);the_xhr.addEventListener('error',failed);the_xhr.addEventListener('timeout',failed);the_xhr.addEventListener('abort',failed);the_xhr.send(null);return true;}else{return false}}else{return nil};},$Connector_pull$20.$$arity=-1);Opal.def(self,'$push_message',$Connector_push_message$23=function $$push_message(the_message){var self=this;if(the_message==null){the_message=nil;};return nil;},$Connector_push_message$23.$$arity=-1);Opal.def(self,'$pull_message',$Connector_pull_message$24=function $$pull_message(options){var self=this;if(options==null){options=$hash2([],{});};return nil;},$Connector_pull_message$24.$$arity=-1);Opal.def(self,'$process_pending',$Connector_process_pending$25=function $$process_pending(options){var self=this;if(options==null){options=$hash2([],{});};return nil;},$Connector_process_pending$25.$$arity=-1);Opal.def(self,'$push_object_portions',$Connector_push_object_portions$26=function $$push_object_portions(details,error_handler){var $iter=$Connector_push_object_portions$26.$$p,the_handler=$iter||nil,self=this;if($iter)$Connector_push_object_portions$26.$$p=null;if($iter)$Connector_push_object_portions$26.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};return nil;},$Connector_push_object_portions$26.$$arity=-1);Opal.def(self,'$search_database',$Connector_search_database$27=function $$search_database(details,error_handler){var $iter=$Connector_search_database$27.$$p,the_handler=$iter||nil,$$28,self=this,$ret_or_3=nil;if($iter)$Connector_search_database$27.$$p=null;if($iter)$Connector_search_database$27.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_3=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_3};return nil;})())){$send(self,'pull_data',[$hash2(["search_database"],{"search_database":$hash2(["criteria"],{"criteria":details})}),error_handler],($$28=function(data){var self=$$28.$$s==null?this:$$28.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$28.$$s=self,$$28.$$arity=1,$$28));return true;}else{return false};},$Connector_search_database$27.$$arity=-1);Opal.def(self,'$search_pull',$Connector_search_pull$29=function $$search_pull(details,error_handler){var $iter=$Connector_search_pull$29.$$p,the_handler=$iter||nil,$$30,self=this,$ret_or_4=nil;if($iter)$Connector_search_pull$29.$$p=null;if($iter)$Connector_search_pull$29.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_4=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_4};return nil;})())){$send(self,'pull_data',[$hash2(["search_pull"],{"search_pull":$hash2(["criteria"],{"criteria":details})}),error_handler],($$30=function(data){var self=$$30.$$s==null?this:$$30.$$s,the_error=nil;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){if($truthy(data['$[]']("result"))){if($truthy(data['$[]']("result")['$is_a?']($$$('::','String')))){if($truthy(data['$[]']("result").$to_s()['$base64?']())){data=data['$[]']("result").$decode64()};if($truthy(data.$to_s()['$json?']())){try{data=$$$('::','JSON').$parse(data.$to_s(),$hash2(["symbolize_names"],{"symbolize_names":true}));return the_handler.$call($$$($$$('::','GxG'),'Database').$process_detached_import(data));}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["data"],{"data":data})}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return nil};}else{return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Malformed Response Data"),"parameters":$hash2(["data"],{"data":data['$[]']("result")})}))}}else if($truthy(data['$[]']("error"))){if($truthy(error_handler['$respond_to?']("call"))){return error_handler.$call(data)}else{return nil}}else{return nil}}else{return nil};},$$30.$$s=self,$$30.$$arity=1,$$30));return true;}else{return false};},$Connector_search_pull$29.$$arity=-1);Opal.def(self,'$destroy_object',$Connector_destroy_object$31=function $$destroy_object(the_specifier,error_handler){var $iter=$Connector_destroy_object$31.$$p,the_handler=$iter||nil,$$32,self=this,$ret_or_5=nil;if($iter)$Connector_destroy_object$31.$$p=null;if($iter)$Connector_destroy_object$31.$$p=null;;if(the_specifier==null){the_specifier=nil;};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_5=the_specifier))){return the_handler}else{return $ret_or_5};return nil;})())){$send(self,'pull_data',[$hash2(["destroy_object"],{"destroy_object":$hash2(["path"],{"path":the_specifier})}),error_handler],($$32=function(data){var self=$$32.$$s==null?this:$$32.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$32.$$s=self,$$32.$$arity=1,$$32));return true;}else{return false};},$Connector_destroy_object$31.$$arity=-1);Opal.def(self,'$push_data',$Connector_push_data$33=function $$push_data(details,error_handler){var $iter=$Connector_push_data$33.$$p,the_handler=$iter||nil,$$34,self=this,$ret_or_6=nil,the_message=nil,$writer=nil;if($iter)$Connector_push_data$33.$$p=null;if($iter)$Connector_push_data$33.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_6=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_6};return nil;})())){the_message=self.$new_message(details);$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(error_handler['$respond_to?']("call"))){$send(the_message,'on',["fail"],error_handler.$to_proc())};$send(the_message,'on',["success"],($$34=function(response){var self=$$34.$$s==null?this:$$34.$$s;if(response==null){response=nil;};return the_handler.$call(response);},$$34.$$s=self,$$34.$$arity=1,$$34));$$$($$($nesting,'GxG'),'CONNECTION').$push(the_message);return true;}else{return false};},$Connector_push_data$33.$$arity=-1);Opal.def(self,'$push_object',$Connector_push_object$35=function $$push_object(details,error_handler){var $iter=$Connector_push_object$35.$$p,the_handler=$iter||nil,$$36,$$37,$$38,self=this,$ret_or_7=nil,exception=nil,payload=nil,$writer=nil,format_list=nil,importation_record=nil;if($iter)$Connector_push_object$35.$$p=null;if($iter)$Connector_push_object$35.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_7=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_7};return nil;})())){exception=nil;payload=$hash2([],{});if($truthy(details['$[]']("object")['$is_any?']($$$($$$('::','GxG'),'BinaryArray'),$$$('::','String')))){if($truthy($rb_gt(details['$[]']("path").$to_s().$size(),0))){$writer=["path",details['$[]']("path")];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["object",details['$[]']("object").$to_s().$encode64()];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;}else{exception="You MUST specify a :path to store the data into."}}else if($truthy(details['$[]']("object")['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy($rb_gt(details['$[]']("path").$to_s().$size(),0))){$writer=["path",details['$[]']("path")];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};$writer=["uuid",details['$[]']("object").$uuid().$to_s()];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;format_list=[];importation_record=$hash2(["formats","records"],{"formats":$hash2([],{}),"records":[]});if($truthy($rb_gt(details['$[]']("object").$format().$to_s().$size(),0))){format_list['$<<'](details['$[]']("object").$format())};$send(details['$[]']("object"),'search',[],($$36=function(value,selector,container){var self=$$36.$$s==null?this:$$36.$$s;if(value==null){value=nil;};if(selector==null){selector=nil;};if(container==null){container=nil;};if($truthy(value['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy($rb_gt(value.$format().$to_s().$size(),0))){format_list['$<<'](value.$format())}};if($truthy(value['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'PersistedArray')))){if($truthy($rb_gt(value.$constraint().$to_s().$size(),0))){return format_list['$<<'](value.$constraint())}else{return nil}}else{return nil};},$$36.$$s=self,$$36.$$arity=3,$$36));$send(format_list,'each',[],($$37=function(the_specifier){var self=$$37.$$s==null?this:$$37.$$s,format_record=nil;if(the_specifier==null){the_specifier=nil;};format_record=$$$($$($nesting,'GxG'),'DB')['$[]']("formats")['$[]'](the_specifier.$to_s().$to_sym()).$clone();if($truthy(format_record['$is_a?']($$$('::','Hash')))){$writer=["content",format_record['$[]']("content").$gxg_export()];$send(format_record,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=[the_specifier.$to_s().$to_sym(),format_record];$send(importation_record['$[]']("formats"),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;}else{return nil};},$$37.$$s=self,$$37.$$arity=1,$$37));importation_record['$[]']("records")['$<<'](details['$[]']("object").$export());$writer=["object",importation_record];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;}else{exception="Invalid Data Type"};if($truthy(exception)){if($truthy(error_handler['$respond_to?']("call"))){error_handler.$call($hash2(["result","error"],{"result":nil,"error":exception}))};return false;}else{$send(self,'push_data',[$hash2(["put_object"],{"put_object":payload}),error_handler],($$38=function(data){var self=$$38.$$s==null?this:$$38.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$38.$$s=self,$$38.$$arity=1,$$38));return true;};}else{return false};},$Connector_push_object$35.$$arity=-1);Opal.def(self,'$pull_data',$Connector_pull_data$39=function $$pull_data(the_specifier,error_handler){var $iter=$Connector_pull_data$39.$$p,the_handler=$iter||nil,$$40,self=this,$ret_or_8=nil,the_message=nil,$writer=nil;if($iter)$Connector_pull_data$39.$$p=null;if($iter)$Connector_pull_data$39.$$p=null;;if(the_specifier==null){the_specifier=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_8=the_specifier))){return the_handler}else{return $ret_or_8};return nil;})())){the_message=self.$new_message(the_specifier);$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(error_handler['$respond_to?']("call"))){$send(the_message,'on',["fail"],error_handler.$to_proc())};$send(the_message,'on',["success"],($$40=function(response){var self=$$40.$$s==null?this:$$40.$$s,data=nil,the_error=nil;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Hash')))){data=nil;if($truthy(response['$[]']("result")['$is_a?']($$$('::','String')))){if($truthy(response['$[]']("result").$to_s()['$base64?']())){data=response['$[]']("result").$decode64()};if($truthy(data.$to_s()['$json?']())){try{data=$$$('::','JSON').$parse(data.$to_s(),$hash2(["symbolize_names"],{"symbolize_names":true}))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["data"],{"data":data})}))}finally{Opal.pop_exception();}}else{throw $err;}};};return the_handler.$call(data);}else{return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Malformed Response Data"),"parameters":$hash2(["data"],{"data":response['$[]']("result")})}))};}else{return nil};},$$40.$$s=self,$$40.$$arity=1,$$40));return $$$($$($nesting,'GxG'),'CONNECTION').$pull(the_message);}else{return nil};},$Connector_pull_data$39.$$arity=-1);Opal.def(self,'$pull_object',$Connector_pull_object$41=function $$pull_object(the_specifier,error_handler){var $iter=$Connector_pull_object$41.$$p,the_handler=$iter||nil,$$42,self=this,$ret_or_9=nil,op_frame=nil;if($iter)$Connector_pull_object$41.$$p=null;if($iter)$Connector_pull_object$41.$$p=null;;if(the_specifier==null){the_specifier=nil;};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_9=the_specifier))){return the_handler}else{return $ret_or_9};return nil;})())){if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_specifier.$to_s()))){op_frame=$hash2(["get_object"],{"get_object":$hash2(["uuid"],{"uuid":the_specifier})})}else{op_frame=$hash2(["get_object"],{"get_object":$hash2(["path"],{"path":the_specifier})})};$send(self,'pull_data',[op_frame,error_handler],($$42=function(data){var self=$$42.$$s==null?this:$$42.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call($$$($$$('::','GxG'),'Database').$process_detached_import(data))}else{return nil};},$$42.$$s=self,$$42.$$arity=1,$$42));return true;}else{return false};},$Connector_pull_object$41.$$arity=-1);Opal.def(self,'$load_format',$Connector_load_format$43=function $$load_format(details,error_handler){var $iter=$Connector_load_format$43.$$p,the_handler=$iter||nil,$$44,self=this,$ret_or_10=nil;if($iter)$Connector_load_format$43.$$p=null;if($iter)$Connector_load_format$43.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_10=details))){return the_handler}else{return $ret_or_10};return nil;})())){$send(self,'pull_data',[$hash2(["get_format"],{"get_format":details}),error_handler],($$44=function(data){var self=$$44.$$s==null?this:$$44.$$s,the_error=nil;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){if($truthy(data['$[]']("result"))){if($truthy(data['$[]']("result")['$is_a?']($$$('::','String')))){if($truthy(data['$[]']("result").$to_s()['$base64?']())){data=data['$[]']("result").$decode64()};if($truthy(data.$to_s()['$json?']())){try{data=$$$('::','JSON').$parse(data.$to_s(),$hash2(["symbolize_names"],{"symbolize_names":true}));$$$($$$('::','GxG'),'Database').$process_detached_import(data);return the_handler.$call($hash2(["result"],{"result":true}));}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) -try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["data"],{"data":data})}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return nil};}else{return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Malformed Response Data"),"parameters":$hash2(["data"],{"data":data['$[]']("result")})}))}}else if($truthy(data['$[]']("error"))){if($truthy(error_handler['$respond_to?']("call"))){return error_handler.$call(data)}else{return nil}}else{return nil}}else{return nil};},$$44.$$s=self,$$44.$$arity=1,$$44));return true;}else{return false};},$Connector_load_format$43.$$arity=-1);Opal.def(self,'$store_format',$Connector_store_format$45=function $$store_format(details,error_handler){var $iter=$Connector_store_format$45.$$p,the_handler=$iter||nil,$$46,$$47,$$48,self=this,$ret_or_11=nil,format_list=nil,importation_record=nil;if($iter)$Connector_store_format$45.$$p=null;if($iter)$Connector_store_format$45.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_11=details))){return the_handler}else{return $ret_or_11};return nil;})())){if(details.$keys().$size()['$=='](0)){format_list=$$$($$$('::','GxG'),'DB')['$[]']("formats").$keys()}else{format_list=[];$send($$$($$$('::','GxG'),'DB')['$[]']("formats").$keys(),'each',[],($$46=function(the_uuid){var self=$$46.$$s==null?this:$$46.$$s;if(the_uuid==null){the_uuid=nil;};if($truthy($rb_gt(details['$[]']("uuid").$to_s().$size(),0))){if(the_uuid['$=='](details['$[]']("uuid"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("type").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("type")['$=='](details['$[]']("type"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("ufs").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("ufs")['$=='](details['$[]']("ufs"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("title").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("title")['$=='](details['$[]']("title"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("version").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("version")['$=='](details['$[]']("version"))){if($truthy(format_list['$include?'](the_uuid))){return nil}else{return format_list['$<<'](the_uuid)}}else{return nil}}else{return nil};},$$46.$$s=self,$$46.$$arity=1,$$46));};importation_record=$hash2(["formats","records"],{"formats":$hash2([],{}),"records":[]});$send(format_list,'each',[],($$47=function(the_uuid){var self=$$47.$$s==null?this:$$47.$$s,format_record=nil,$writer=nil;if(the_uuid==null){the_uuid=nil;};format_record=$$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid.$to_s().$to_sym()).$clone();$writer=["content",format_record['$[]']("content").$gxg_export()];$send(format_record,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=[the_uuid.$to_s().$to_sym(),format_record];$send(importation_record['$[]']("formats"),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$$47.$$s=self,$$47.$$arity=1,$$47));$send(self,'push_data',[$hash2(["put_format"],{"put_format":importation_record}),error_handler],($$48=function(data){var self=$$48.$$s==null?this:$$48.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$48.$$s=self,$$48.$$arity=1,$$48));return true;}else{return false};},$Connector_store_format$45.$$arity=-1);Opal.def(self,'$get_permissions',$Connector_get_permissions$49=function $$get_permissions(the_specifier,error_handler){var $iter=$Connector_get_permissions$49.$$p,the_handler=$iter||nil,$$50,self=this,$ret_or_12=nil;if($iter)$Connector_get_permissions$49.$$p=null;if($iter)$Connector_get_permissions$49.$$p=null;;if(the_specifier==null){the_specifier=nil;};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_12=the_specifier))){return the_handler}else{return $ret_or_12};return nil;})())){$send(self,'pull_data',[$hash2(["get_permissions"],{"get_permissions":$hash2(["path"],{"path":the_specifier})}),error_handler],($$50=function(data){var self=$$50.$$s==null?this:$$50.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$50.$$s=self,$$50.$$arity=1,$$50));return true;}else{return false};},$Connector_get_permissions$49.$$arity=-1);Opal.def(self,'$call_event',$Connector_call_event$51=function $$call_event(service,op_frame,error_handler){var $iter=$Connector_call_event$51.$$p,the_handler=$iter||nil,$$52,self=this,$ret_or_13=nil;if($iter)$Connector_call_event$51.$$p=null;if($iter)$Connector_call_event$51.$$p=null;;if(service==null){service="core";};if(op_frame==null){op_frame=$hash2(["noop"],{"noop":nil});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_13=op_frame['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_13};return nil;})())){$send(self,'pull_data',[$hash2(["call_event"],{"call_event":$hash2(["service","op_frame"],{"service":service.$to_s(),"op_frame":op_frame})}),error_handler],($$52=function(data){var self=$$52.$$s==null?this:$$52.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$52.$$s=self,$$52.$$arity=1,$$52));return true;}else{return false}}else{return nil};},$Connector_call_event$51.$$arity=-1);Opal.def(self,'$library_pull',$Connector_library_pull$53=function $$library_pull(details,error_handler){var $iter=$Connector_library_pull$53.$$p,the_handler=$iter||nil,$$54,self=this,$ret_or_14=nil;if($iter)$Connector_library_pull$53.$$p=null;if($iter)$Connector_library_pull$53.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_14=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_14};return nil;})())){$send(self,'pull_data',[$hash2(["get_library"],{"get_library":details}),error_handler],($$54=function(data){var self=$$54.$$s==null?this:$$54.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$54.$$s=self,$$54.$$arity=1,$$54));return true;}else{return false}}else{return nil};},$Connector_library_pull$53.$$arity=-1);Opal.def(self,'$format_pull',$Connector_format_pull$55=function $$format_pull(details,error_handler){var $iter=$Connector_format_pull$55.$$p,the_handler=$iter||nil,$$56,self=this,$ret_or_15=nil;if($iter)$Connector_format_pull$55.$$p=null;if($iter)$Connector_format_pull$55.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_15=details['$is_any?']($$$('::','Array'),$$$('::','Hash'))))){return the_handler}else{return $ret_or_15};return nil;})())){$send(self,'pull_data',[$hash2(["format_pull"],{"format_pull":details}),error_handler],($$56=function(data){var self=$$56.$$s==null?this:$$56.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$56.$$s=self,$$56.$$arity=1,$$56));return true;}else{return false}}else{return nil};},$Connector_format_pull$55.$$arity=-1);Opal.def(self,'$format_push',$Connector_format_push$57=function $$format_push(details,error_handler){var $iter=$Connector_format_push$57.$$p,the_handler=$iter||nil,$$58,self=this,$ret_or_16=nil;if($iter)$Connector_format_push$57.$$p=null;if($iter)$Connector_format_push$57.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_16=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_16};return nil;})())){$send(self,'push_data',[$hash2(["format_push"],{"format_push":details}),error_handler],($$58=function(data){var self=$$58.$$s==null?this:$$58.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$58.$$s=self,$$58.$$arity=1,$$58));return true;}else{return false}}else{return nil};},$Connector_format_push$57.$$arity=-1);Opal.def(self,'$format_list',$Connector_format_list$59=function $$format_list(details,error_handler){var $iter=$Connector_format_list$59.$$p,the_handler=$iter||nil,$$60,self=this,$ret_or_17=nil;if($iter)$Connector_format_list$59.$$p=null;if($iter)$Connector_format_list$59.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_17=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_17};return nil;})())){$send(self,'pull_data',[$hash2(["format_list"],{"format_list":details}),error_handler],($$60=function(data){var self=$$60.$$s==null?this:$$60.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$60.$$s=self,$$60.$$arity=1,$$60));return true;}else{return false}}else{return nil};},$Connector_format_list$59.$$arity=-1);Opal.def(self,'$admin',$Connector_admin$61=function $$admin(details,error_handler){var $iter=$Connector_admin$61.$$p,the_handler=$iter||nil,$$62,self=this,$ret_or_18=nil;if($iter)$Connector_admin$61.$$p=null;if($iter)$Connector_admin$61.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_18=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_18};return nil;})())){$send(self,'pull_data',[$hash2(["admin"],{"admin":details}),error_handler],($$62=function(data){var self=$$62.$$s==null?this:$$62.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$62.$$s=self,$$62.$$arity=1,$$62));return true;}else{return false}}else{return nil};},$Connector_admin$61.$$arity=-1);Opal.def(self,'$vfs',$Connector_vfs$63=function $$vfs(details,error_handler){var $iter=$Connector_vfs$63.$$p,the_handler=$iter||nil,$$64,self=this,$ret_or_19=nil;if($iter)$Connector_vfs$63.$$p=null;if($iter)$Connector_vfs$63.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_19=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_19};return nil;})())){if($truthy(["vfs_mkfile","vfs_mkdir","vfs_rename","vfs_destroy","vfs_copy","vfs_move","set_permissions"]['$include?'](details.$keys()['$[]'](0)))){$send(self,'pull_data',[details,error_handler],($$64=function(data){var self=$$64.$$s==null?this:$$64.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$64.$$s=self,$$64.$$arity=1,$$64));return true;}else{return false}}else{return false}}else{return false};},$Connector_vfs$63.$$arity=-1);Opal.def(self,'$app_state_push',$Connector_app_state_push$65=function $$app_state_push(details,error_handler){var $iter=$Connector_app_state_push$65.$$p,the_handler=$iter||nil,$$66,self=this,$ret_or_20=nil;if($iter)$Connector_app_state_push$65.$$p=null;if($iter)$Connector_app_state_push$65.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_20=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_20};return nil;})())){$send(self,'push_data',[$hash2(["app_state_push"],{"app_state_push":$hash2(["application","data"],{"application":details['$[]']("application"),"data":details['$[]']("data")})}),error_handler],($$66=function(data){var self=$$66.$$s==null?this:$$66.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$66.$$s=self,$$66.$$arity=1,$$66));return true;}else{return false};},$Connector_app_state_push$65.$$arity=-1);Opal.def(self,'$app_state_pull',$Connector_app_state_pull$67=function $$app_state_pull(details,error_handler){var $iter=$Connector_app_state_pull$67.$$p,the_handler=$iter||nil,$$68,self=this,$ret_or_21=nil;if($iter)$Connector_app_state_pull$67.$$p=null;if($iter)$Connector_app_state_pull$67.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_21=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_21};return nil;})())){$send(self,'pull_data',[$hash2(["app_state_pull"],{"app_state_pull":$hash2(["application"],{"application":details['$[]']("application")})}),error_handler],($$68=function(data){var self=$$68.$$s==null?this:$$68.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$68.$$s=self,$$68.$$arity=1,$$68));return true;}else{return false}}else{return nil};},$Connector_app_state_pull$67.$$arity=-1);Opal.def(self,'$application_open',$Connector_application_open$69=function $$application_open(details,error_handler){var $iter=$Connector_application_open$69.$$p,the_handler=$iter||nil,$$70,$$71,self=this,$ret_or_22=nil,$ret_or_23=nil,$ret_or_24=nil;if($iter)$Connector_application_open$69.$$p=null;if($iter)$Connector_application_open$69.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_22=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_22};return nil;})())){if($truthy(details['$[]']("name"))){$send(self,'pull_data',[$hash2(["application_open"],{"application_open":$hash2(["restore","name"],{"restore":(function(){if($truthy(($ret_or_23=details['$[]']("restore")))){return $ret_or_23}else{return false};return nil;})(),"name":details['$[]']("name")})}),error_handler],($$70=function(data){var self=$$70.$$s==null?this:$$70.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$70.$$s=self,$$70.$$arity=1,$$70))}else{$send(self,'pull_data',[$hash2(["application_open"],{"application_open":$hash2(["restore","path"],{"restore":(function(){if($truthy(($ret_or_24=details['$[]']("restore")))){return $ret_or_24}else{return false};return nil;})(),"path":details['$[]']("path")})}),error_handler],($$71=function(data){var self=$$71.$$s==null?this:$$71.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$71.$$s=self,$$71.$$arity=1,$$71))};return true;}else{return false}}else{return nil};},$Connector_application_open$69.$$arity=-1);Opal.def(self,'$application_close',$Connector_application_close$72=function $$application_close(details,error_handler){var $iter=$Connector_application_close$72.$$p,the_handler=$iter||nil,$$73,self=this,$ret_or_25=nil;if($iter)$Connector_application_close$72.$$p=null;if($iter)$Connector_application_close$72.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_25=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_25};return nil;})())){$send(self,'pull_data',[$hash2(["application_close"],{"application_close":$hash2(["application"],{"application":details['$[]']("application")})}),error_handler],($$73=function(data){var self=$$73.$$s==null?this:$$73.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$73.$$s=self,$$73.$$arity=1,$$73));return true;}else{return false}}else{return nil};},$Connector_application_close$72.$$arity=-1);Opal.def(self,'$application_list',$Connector_application_list$74=function $$application_list(error_handler){var $iter=$Connector_application_list$74.$$p,the_handler=$iter||nil,$$75,self=this;if($iter)$Connector_application_list$74.$$p=null;if($iter)$Connector_application_list$74.$$p=null;;if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy(the_handler)){$send(self,'pull_data',[$hash2(["application_list"],{"application_list":true}),error_handler],($$75=function(data){var self=$$75.$$s==null?this:$$75.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$75.$$s=self,$$75.$$arity=1,$$75));return true;}else{return false}}else{return nil};},$Connector_application_list$74.$$arity=-1);Opal.def(self,'$application_menu',$Connector_application_menu$76=function $$application_menu(error_handler){var $iter=$Connector_application_menu$76.$$p,the_handler=$iter||nil,$$77,self=this;if($iter)$Connector_application_menu$76.$$p=null;if($iter)$Connector_application_menu$76.$$p=null;;if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy(the_handler)){$send(self,'pull_data',[$hash2(["application_menu"],{"application_menu":true}),error_handler],($$77=function(data){var self=$$77.$$s==null?this:$$77.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$77.$$s=self,$$77.$$arity=1,$$77));return true;}else{return false}}else{return nil};},$Connector_application_menu$76.$$arity=-1);Opal.def(self,'$entries',$Connector_entries$78=function $$entries(details,error_handler){var $iter=$Connector_entries$78.$$p,the_handler=$iter||nil,$$79,self=this,$ret_or_26=nil;if($iter)$Connector_entries$78.$$p=null;if($iter)$Connector_entries$78.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_26=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_26};return nil;})())){$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$set_busy(true);$send(self,'pull_data',[$hash2(["entries"],{"entries":$hash2(["path"],{"path":details['$[]']("path")})}),error_handler],($$79=function(data){var self=$$79.$$s==null?this:$$79.$$s;if(data==null){data=nil;};the_handler.$call(data);return $$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$set_busy(false);},$$79.$$s=self,$$79.$$arity=1,$$79));return true;}else{return false}}else{return nil};},$Connector_entries$78.$$arity=-1);Opal.def(self,'$heartbeat',$Connector_heartbeat$80=function $$heartbeat(){var $$81,self=this,heartbeat_message=nil,$writer=nil;if($truthy(self.active)){heartbeat_message=self.$new_message($hash2(["heartbeat"],{"heartbeat":true}));$writer=["sender",self.uuid.$to_s()];$send(heartbeat_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid.$to_s()];$send(heartbeat_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(heartbeat_message,'on',["success"],($$81=function(response){var self=$$81.$$s==null?this:$$81.$$s;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Hash')))){if(response['$[]']("result")['$[]']("status")['$==']("credentialed")){};$writer=["server_status",response['$[]']("result")['$[]']("server").$to_s().$to_sym()];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;}else{return nil};},$$81.$$s=self,$$81.$$arity=1,$$81));return $$$($$($nesting,'GxG'),'CONNECTION').$pull(heartbeat_message);}else{return nil}},$Connector_heartbeat$80.$$arity=0);Opal.def(self,'$update_credential',$Connector_update_credential$82=function $$update_credential(details,error_handler){var $iter=$Connector_update_credential$82.$$p,the_handler=$iter||nil,$$83,$$84,self=this,$ret_or_27=nil,content=nil,the_message=nil,$writer=nil;if($iter)$Connector_update_credential$82.$$p=null;if($iter)$Connector_update_credential$82.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_27=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_27};return nil;})())){content=details.$to_json().$to_s().$encrypt(self.csrf.$to_s()).$encode64();the_message=self.$new_message($hash2(["update_credential"],{"update_credential":content}));$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["thread",the_message.$id().$to_s()];$send(the_message['$[]']("body"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(the_message,'on',["success"],($$83=function(the_response){var self=$$83.$$s==null?this:$$83.$$s;if(the_response==null){the_response=nil;};if($truthy(the_response['$is_a?']($$$('::','Hash')))){if(the_response['$[]']("status")['$==']("credentialed")){$writer=["logged_in",true];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];}};return the_handler.$call(the_response);},$$83.$$s=self,$$83.$$arity=1,$$83));if($truthy(error_handler)){$send(the_message,'on',["fail"],($$84=function(the_response){var self=$$84.$$s==null?this:$$84.$$s;if(the_response==null){the_response=nil;};return error_handler.$call(the_response);},$$84.$$s=self,$$84.$$arity=1,$$84))};return $$$($$($nesting,'GxG'),'CONNECTION').$push(the_message);}else{return nil}}else{return nil};},$Connector_update_credential$82.$$arity=-1);Opal.def(self,'$downgrade_credential',$Connector_downgrade_credential$85=function $$downgrade_credential(){var $iter=$Connector_downgrade_credential$85.$$p,the_handler=$iter||nil,$$86,self=this,downgrade_message=nil,$writer=nil;if($iter)$Connector_downgrade_credential$85.$$p=null;if($iter)$Connector_downgrade_credential$85.$$p=null;;if($truthy(self.active)){downgrade_message=self.$new_message($hash2(["downgrade_credential"],{"downgrade_credential":true}));$writer=["sender",self.uuid.$to_s()];$send(downgrade_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid.$to_s()];$send(downgrade_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(downgrade_message,'on',["success"],($$86=function(response){var self=$$86.$$s==null?this:$$86.$$s,new_event=nil;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Hash')))){if(response['$[]']("status")['$==']("uncredentialed")){$writer=["logged_in",false];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(the_handler['$respond_to?']("call"))){the_handler.$call(response)};new_event=new CustomEvent('credentialchanged',{detail:response['$[]']("status").$to_s()});return window.dispatchEvent(new_event);}else{return nil}}else{return nil};},$$86.$$s=self,$$86.$$arity=1,$$86));return $$$($$($nesting,'GxG'),'CONNECTION').$pull(downgrade_message);}else{return nil};},$Connector_downgrade_credential$85.$$arity=0);Opal.def(self,'$action',$Connector_action$87=function $$action(details,error_handler){var $iter=$Connector_action$87.$$p,the_handler=$iter||nil,self=this;if($iter)$Connector_action$87.$$p=null;if($iter)$Connector_action$87.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};return nil;},$Connector_action$87.$$arity=-1);Opal.def(self,'$relative_url',$Connector_relative_url$88=function $$relative_url(){var self=this;return self.relative_url},$Connector_relative_url$88.$$arity=0);Opal.def(self,'$query',$Connector_query$89=function $$query(){var self=this;return self.query},$Connector_query$89.$$arity=0);Opal.def(self,'$article',$Connector_article$90=function $$article(){var self=this;return self.article},$Connector_article$90.$$arity=0);Opal.def(self,'$display_path',$Connector_display_path$91=function $$display_path(){var self=this;return self.display_path},$Connector_display_path$91.$$arity=0);return(Opal.def(self,'$initialize',$Connector_initialize$92=function $$initialize(){var $$93,$$94,$$99,$$100,self=this,page_name=nil,subpath_array=nil,found_at=nil,query_string=nil,query_array=nil,the_introduction=nil,$writer=nil;if($truthy((window.location['href'])['$include?']("https://"))){self.host_prefix=$rb_plus("https://",window.location['host'])}else{self.host_prefix=$rb_plus("http://",window.location['host'])};self.relative_url="";page_name=$$($nesting,'File').$basename(window.location['pathname']);subpath_array=(window.location['pathname']).$split("/");found_at=subpath_array.$index(page_name);if($truthy(found_at['$is_a?']($$$('::','Numeric')))){if($truthy($rb_gt(found_at,1))){self.relative_url=subpath_array['$[]'](Opal.Range.$new(0,$rb_minus(found_at,1),false)).$join("/")}};self.article=nil;self.query=$hash2([],{});query_string=(window.location.href).$split("?")['$[]'](1);if($truthy(query_string)){self.article=query_string.$split("#")['$[]'](1);query_string=query_string.$split("#")['$[]'](0);if($truthy(query_string['$include?']("&"))){query_array=query_string.$split("&")}else{query_array=query_string.$split("&")};$send(query_array,'each',[],($$93=function(entry){var self=$$93.$$s==null?this:$$93.$$s,buffer=nil,$writer=nil;if(self.query==null)self.query=nil;if(entry==null){entry=nil;};buffer=entry.$split("=");$writer=[buffer['$[]'](0).$to_s().$to_sym(),buffer['$[]'](1)];$send(self.query,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$$93.$$s=self,$$93.$$arity=1,$$93));}else{self.article=(window.location.href).$split("#")['$[]'](1)};self.uuid=$$($nesting,'GxG').$uuid_generate().$to_sym();self.remote_uuid=nil;self.active=true;self.display_path=nil;self.in_busy=false;self.out_busy=false;self.pending=$hash2([],{});self.channels=$hash2([],{});self.buffers=$hash2([],{});self.csrf=nil;self.the_connector=self;the_introduction=self.$new_message($hash2(["introduction"],{"introduction":self.uuid.$to_s()}));$writer=["sender",self.uuid.$to_s()];$send(the_introduction,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.host_prefix.$to_s()];$send(the_introduction,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(the_introduction,'on',["success"],($$94=function(response){var self=$$94.$$s==null?this:$$94.$$s,$$95;if(response==null){response=nil;};if(response['$[]']("result")['$==']("OK")){if($truthy(response['$[]']("csrf"))){self.csrf=response['$[]']("csrf")};if(response['$[]']("status")['$==']("credentialed")){$writer=["logged_in",true];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];}else{$writer=["logged_in",false];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(response['$[]']("relative_url"))){self.relative_url=response['$[]']("relative_url")};if(response['$[]']("display")['$==']("unavailable")){return alert('Display Resource Unavailable');}else{self.display_path=response['$[]']("display");self.active=true;return $send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$95=function(){var self=$$95.$$s==null?this:$$95.$$s,$a,$$96,$$97,$$98;if(self.query==null)self.query=nil;if(self.article==null)self.article=nil;if(self.relative_url==null)self.relative_url=nil;while(!($truthy((document.readyState).$to_s()['$==']("complete")))){self.$sleep(0.5)};$writer=["query",self.query];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["article",self.article];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;var do_unload=function(the_event){Opal.GxG.$eval("GxG::DISPLAY_DETAILS[:socket].close");if(the_event){the_event.returnValue="closing...";} +try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["url"],{"url":the_url.$to_s()})}))}finally{Opal.pop_exception();}}else{throw $err;}};;if($truthy(self.socket)){$writer=["socket",self];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];}else{return nil};},$Socket_open$11.$$arity=1);Opal.def(self,'$set_remote_uuid',$Socket_set_remote_uuid$12=function $$set_remote_uuid(the_uuid){var self=this;if(the_uuid==null){the_uuid=nil;};if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_uuid))){self.remote_uuid=the_uuid.$to_sym();return true;}else{return false};},$Socket_set_remote_uuid$12.$$arity=-1);return(Opal.def(self,'$initialize',$Socket_initialize$13=function $$initialize(){var self=this;self.uuid=$$($nesting,'GxG').$uuid_generate().$to_sym();self.remote_uuid=nil;self.inbox=[];return self;},$Socket_initialize$13.$$arity=0),nil)&&'initialize';})($nesting[0],null,$nesting);})($nesting[0],$nesting);return(function($base,$parent_nesting){var self=$module($base,'Networking');var $nesting=[self].concat($parent_nesting);(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Channel');var $nesting=[self].concat($parent_nesting);return nil})($nesting[0],null,$nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Connector');var $nesting=[self].concat($parent_nesting),$Connector_remote_uuid$14,$Connector_open$ques$15,$Connector_close$16,$Connector_post$17,$Connector_push$20,$Connector_pull$23,$Connector_push_message$26,$Connector_pull_message$27,$Connector_process_pending$28,$Connector_push_object_portions$29,$Connector_search_database$30,$Connector_search_pull$32,$Connector_destroy_object$34,$Connector_push_data$36,$Connector_push_object$38,$Connector_pull_data$42,$Connector_pull_object$44,$Connector_load_format$46,$Connector_store_format$48,$Connector_get_permissions$52,$Connector_call_event$54,$Connector_library_pull$56,$Connector_format_pull$58,$Connector_format_push$60,$Connector_format_list$62,$Connector_admin$64,$Connector_vfs$66,$Connector_app_state_push$68,$Connector_app_state_pull$70,$Connector_application_open$72,$Connector_application_close$75,$Connector_application_list$77,$Connector_application_menu$79,$Connector_entries$81,$Connector_heartbeat$83,$Connector_update_credential$85,$Connector_downgrade_credential$88,$Connector_action$90,$Connector_relative_url$91,$Connector_query$92,$Connector_article$93,$Connector_display_path$94,$Connector_initialize$95;self.$$prototype.remote_uuid=self.$$prototype.active=self.$$prototype.uuid=self.$$prototype.heart_beat_timer=self.$$prototype.relative_url=self.$$prototype.host_prefix=self.$$prototype.display_path=self.$$prototype.csrf=self.$$prototype.query=self.$$prototype.article=nil;Opal.def(self,'$remote_uuid',$Connector_remote_uuid$14=function $$remote_uuid(){var self=this;return self.remote_uuid},$Connector_remote_uuid$14.$$arity=0);Opal.def(self,'$open?',$Connector_open$ques$15=function(){var self=this;return self.active},$Connector_open$ques$15.$$arity=0);Opal.def(self,'$close',$Connector_close$16=function $$close(){var self=this,the_message=nil,$writer=nil;the_message=self.$new_message($hash2(["close"],{"close":true}));$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;self.$pull(the_message,$hash2(["synchronous"],{"synchronous":true}));self.active=false;self.csrf=nil;if($truthy(self.heart_beat_timer['$is_a?']($$$('::','Hash')))){$$$($$($nesting,'GxG'),'DISPATCHER').$cancel_timer(self.heart_beat_timer)};return true;},$Connector_close$16.$$arity=0);Opal.def(self,'$post',$Connector_post$17=function $$post(form_data,options){var $iter=$Connector_post$17.$$p,handler=$iter||nil,$$18,$$19,self=this,action=nil,the_url=nil,the_xhr=nil,$ret_or_1=nil,failed=nil,succeeded=nil;if($iter)$Connector_post$17.$$p=null;if($iter)$Connector_post$17.$$p=null;;if(form_data==null){form_data="";};if(options==null){options=$hash2([],{});};if($truthy(self.active)){if($truthy(form_data['$is_a?']($$$($$$($$$('::','GxG'),'Gui'),'Form')))){action=form_data.$get_attribute("action").$to_s();if($truthy($rb_gt(action.$size(),0))){if($truthy($rb_gt(self.relative_url.$to_s().$size(),0))){the_url=""+(self.host_prefix)+(self.relative_url.$to_s())+(action.$to_s())+"?display="+(self.display_path.$to_s())}else{the_url=""+(self.host_prefix)+(action.$to_s())+"?display="+(self.display_path.$to_s())}}else if($truthy($rb_gt(self.relative_url.$to_s().$size(),0))){the_url=""+(self.host_prefix)+(self.relative_url.$to_s())+"?display="+(self.display_path.$to_s())}else{the_url=""+(self.host_prefix)+"?display="+(self.display_path.$to_s())};the_xhr=new XMLHttpRequest;the_xhr.open('POST',the_url,true);the_xhr.timeout=(function(){if($truthy(($ret_or_1=options['$[]']("timeout")))){return $ret_or_1}else{return 5000};return nil;})();the_xhr.setRequestHeader('X-Requested-With','XMLHttpRequest');the_xhr.setRequestHeader('Accept','application/json');the_xhr.setRequestHeader('X-CSRF-Token',self.csrf);the_xhr.setRequestHeader('Content-Type','multipart/form-data');failed=$send($$($nesting,'Proc'),'new',[],($$18=function(reason){var self=$$18.$$s==null?this:$$18.$$s;if(reason==null){reason=$hash2(["error"],{"error":"unknown"});};return self.$log_error(reason);},$$18.$$s=self,$$18.$$arity=-1,$$18));succeeded=$send($$($nesting,'Proc'),'new',[],($$19=function(){var self=$$19.$$s==null?this:$$19.$$s,response_code=nil,the_response=nil,the_error=nil;response_code=(the_xhr.status).$to_i();if($truthy($rb_lt(response_code,300))){try{the_response=$$$('::','JSON').$parse(the_xhr.response,$hash2(["symbolize_names"],{"symbolize_names":true}));self.$log_info(the_response.$inspect());if($truthy(handler['$respond_to?']("call"))){return handler.$call(the_response)}else{return nil};}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":the_xhr.response}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{try{return failed.$call($$$('::','JSON').$parse(the_xhr.response,$hash2(["symbolize_names"],{"symbolize_names":true})))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":the_xhr.response}))}finally{Opal.pop_exception();}}else{throw $err;}};};},$$19.$$s=self,$$19.$$arity=0,$$19));the_xhr.addEventListener('load',succeeded);the_xhr.addEventListener('error',failed);the_xhr.addEventListener('timeout',failed);the_xhr.addEventListener('abort',failed);the_xhr.send(form_data.$element());return true;}else{return false}}else{return nil};},$Connector_post$17.$$arity=-1);Opal.def(self,'$push',$Connector_push$20=function $$push(the_message,options){var $$21,$$22,self=this,the_url=nil,payload=nil,the_xhr=nil,$ret_or_2=nil,failed=nil,succeeded=nil;if(the_message==null){the_message=nil;};if(options==null){options=$hash2([],{});};if($truthy(self.active)){if($truthy(the_message['$is_a?']($$$($$$($$$('::','GxG'),'Events'),'Message')))){if($truthy($rb_gt(self.relative_url.$to_s().$size(),0))){the_url=""+(self.host_prefix)+(self.relative_url.$to_s())+"?display="+(self.display_path.$to_s())}else{the_url=""+(self.host_prefix)+"?display="+(self.display_path.$to_s())};payload=the_message.$body().$to_json().$to_s();the_xhr=new XMLHttpRequest;the_xhr.open('PUT',the_url,true);the_xhr.timeout=(function(){if($truthy(($ret_or_2=options['$[]']("timeout")))){return $ret_or_2}else{return 5000};return nil;})();the_xhr.setRequestHeader('X-Requested-With','XMLHttpRequest');the_xhr.setRequestHeader('Accept','application/json');the_xhr.setRequestHeader('X-CSRF-Token',self.csrf);the_xhr.setRequestHeader('Content-Type','application/json');failed=$send($$($nesting,'Proc'),'new',[],($$21=function(reason){var self=$$21.$$s==null?this:$$21.$$s;if(reason==null){reason=nil;};return the_message.$fail(reason);},$$21.$$s=self,$$21.$$arity=-1,$$21));succeeded=$send($$($nesting,'Proc'),'new',[],($$22=function(){var self=$$22.$$s==null?this:$$22.$$s,response_code=nil,the_error=nil;response_code=(the_xhr.status).$to_i();if($truthy($rb_lt(response_code,300))){try{return the_message.$succeed($$$('::','JSON').$parse(the_xhr.response,$hash2(["symbolize_names"],{"symbolize_names":true})))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":the_xhr.response}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return failed.$call(response_code)};},$$22.$$s=self,$$22.$$arity=0,$$22));the_xhr.addEventListener('load',succeeded);the_xhr.addEventListener('error',failed);the_xhr.addEventListener('timeout',failed);the_xhr.addEventListener('abort',failed);the_xhr.send(payload);return true;}else{return false}}else{return nil};},$Connector_push$20.$$arity=-1);Opal.def(self,'$pull',$Connector_pull$23=function $$pull(the_message,options){var $$24,$$25,self=this,the_query=nil,the_url=nil,the_xhr=nil,$ret_or_3=nil,failed=nil,succeeded=nil;if(the_message==null){the_message=nil;};if(options==null){options=$hash2(["synchronous"],{"synchronous":false});};if($truthy(self.active)){if($truthy(the_message['$is_a?']($$$($$$($$$('::','GxG'),'Events'),'Message')))){the_query=""+"display="+(self.display_path.$to_s())+"&details="+(the_message.$body().$to_json().$encode64());if($truthy($rb_gt(self.relative_url.$to_s().$size(),0))){the_url=$rb_plus($rb_plus($rb_plus(self.host_prefix.$to_s(),self.relative_url.$to_s()),"?"),the_query)}else{the_url=$rb_plus($rb_plus(self.host_prefix.$to_s(),"?"),the_query)};the_xhr=new XMLHttpRequest;if(options['$[]']("synchronous")['$=='](true)){the_xhr.open('GET',the_url.$to_s(),false)}else{the_xhr.open('GET',the_url.$to_s(),true);the_xhr.timeout=(function(){if($truthy(($ret_or_3=options['$[]']("timeout")))){return $ret_or_3}else{return 600000};return nil;})();};the_xhr.setRequestHeader('X-Requested-With','XMLHttpRequest');the_xhr.setRequestHeader('Accept','application/json');failed=$send($$($nesting,'Proc'),'new',[],($$24=function(reason){var self=$$24.$$s==null?this:$$24.$$s;if(reason==null){reason=nil;};return the_message.$fail(reason);},$$24.$$s=self,$$24.$$arity=-1,$$24));succeeded=$send($$($nesting,'Proc'),'new',[],($$25=function(){var self=$$25.$$s==null?this:$$25.$$s,response_code=nil,the_error=nil;response_code=(the_xhr.status).$to_i();if($truthy($rb_lt(response_code,300))){try{return the_message.$succeed($$$('::','JSON').$parse(the_xhr.response,$hash2(["symbolize_names"],{"symbolize_names":true})))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":the_xhr.response}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return failed.$call(response_code)};},$$25.$$s=self,$$25.$$arity=0,$$25));the_xhr.addEventListener('load',succeeded);the_xhr.addEventListener('error',failed);the_xhr.addEventListener('timeout',failed);the_xhr.addEventListener('abort',failed);the_xhr.send(null);return true;}else{return false}}else{return nil};},$Connector_pull$23.$$arity=-1);Opal.def(self,'$push_message',$Connector_push_message$26=function $$push_message(the_message){var self=this;if(the_message==null){the_message=nil;};return nil;},$Connector_push_message$26.$$arity=-1);Opal.def(self,'$pull_message',$Connector_pull_message$27=function $$pull_message(options){var self=this;if(options==null){options=$hash2([],{});};return nil;},$Connector_pull_message$27.$$arity=-1);Opal.def(self,'$process_pending',$Connector_process_pending$28=function $$process_pending(options){var self=this;if(options==null){options=$hash2([],{});};return nil;},$Connector_process_pending$28.$$arity=-1);Opal.def(self,'$push_object_portions',$Connector_push_object_portions$29=function $$push_object_portions(details,error_handler){var $iter=$Connector_push_object_portions$29.$$p,the_handler=$iter||nil,self=this;if($iter)$Connector_push_object_portions$29.$$p=null;if($iter)$Connector_push_object_portions$29.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};return nil;},$Connector_push_object_portions$29.$$arity=-1);Opal.def(self,'$search_database',$Connector_search_database$30=function $$search_database(details,error_handler){var $iter=$Connector_search_database$30.$$p,the_handler=$iter||nil,$$31,self=this,$ret_or_4=nil;if($iter)$Connector_search_database$30.$$p=null;if($iter)$Connector_search_database$30.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_4=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_4};return nil;})())){$send(self,'pull_data',[$hash2(["search_database"],{"search_database":$hash2(["criteria"],{"criteria":details})}),error_handler],($$31=function(data){var self=$$31.$$s==null?this:$$31.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$31.$$s=self,$$31.$$arity=1,$$31));return true;}else{return false};},$Connector_search_database$30.$$arity=-1);Opal.def(self,'$search_pull',$Connector_search_pull$32=function $$search_pull(details,error_handler){var $iter=$Connector_search_pull$32.$$p,the_handler=$iter||nil,$$33,self=this,$ret_or_5=nil;if($iter)$Connector_search_pull$32.$$p=null;if($iter)$Connector_search_pull$32.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_5=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_5};return nil;})())){$send(self,'pull_data',[$hash2(["search_pull"],{"search_pull":$hash2(["criteria"],{"criteria":details})}),error_handler],($$33=function(data){var self=$$33.$$s==null?this:$$33.$$s,the_error=nil;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){if($truthy(data['$[]']("result"))){if($truthy(data['$[]']("result")['$is_a?']($$$('::','String')))){if($truthy(data['$[]']("result").$to_s()['$base64?']())){data=data['$[]']("result").$decode64()};if($truthy(data.$to_s()['$json?']())){try{data=$$$('::','JSON').$parse(data.$to_s(),$hash2(["symbolize_names"],{"symbolize_names":true}));return the_handler.$call($$$($$$('::','GxG'),'Database').$process_detached_import(data));}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["data"],{"data":data})}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return nil};}else{return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Malformed Response Data"),"parameters":$hash2(["data"],{"data":data['$[]']("result")})}))}}else if($truthy(data['$[]']("error"))){if($truthy(error_handler['$respond_to?']("call"))){return error_handler.$call(data)}else{return nil}}else{return nil}}else{return nil};},$$33.$$s=self,$$33.$$arity=1,$$33));return true;}else{return false};},$Connector_search_pull$32.$$arity=-1);Opal.def(self,'$destroy_object',$Connector_destroy_object$34=function $$destroy_object(the_specifier,error_handler){var $iter=$Connector_destroy_object$34.$$p,the_handler=$iter||nil,$$35,self=this,$ret_or_6=nil;if($iter)$Connector_destroy_object$34.$$p=null;if($iter)$Connector_destroy_object$34.$$p=null;;if(the_specifier==null){the_specifier=nil;};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_6=the_specifier))){return the_handler}else{return $ret_or_6};return nil;})())){$send(self,'pull_data',[$hash2(["destroy_object"],{"destroy_object":$hash2(["path"],{"path":the_specifier})}),error_handler],($$35=function(data){var self=$$35.$$s==null?this:$$35.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$35.$$s=self,$$35.$$arity=1,$$35));return true;}else{return false};},$Connector_destroy_object$34.$$arity=-1);Opal.def(self,'$push_data',$Connector_push_data$36=function $$push_data(details,error_handler){var $iter=$Connector_push_data$36.$$p,the_handler=$iter||nil,$$37,self=this,$ret_or_7=nil,the_message=nil,$writer=nil;if($iter)$Connector_push_data$36.$$p=null;if($iter)$Connector_push_data$36.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_7=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_7};return nil;})())){the_message=self.$new_message(details);$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(error_handler['$respond_to?']("call"))){$send(the_message,'on',["fail"],error_handler.$to_proc())};$send(the_message,'on',["success"],($$37=function(response){var self=$$37.$$s==null?this:$$37.$$s;if(response==null){response=nil;};return the_handler.$call(response);},$$37.$$s=self,$$37.$$arity=1,$$37));$$$($$($nesting,'GxG'),'CONNECTION').$push(the_message);return true;}else{return false};},$Connector_push_data$36.$$arity=-1);Opal.def(self,'$push_object',$Connector_push_object$38=function $$push_object(details,error_handler){var $iter=$Connector_push_object$38.$$p,the_handler=$iter||nil,$$39,$$40,$$41,self=this,$ret_or_8=nil,exception=nil,payload=nil,$writer=nil,format_list=nil,importation_record=nil;if($iter)$Connector_push_object$38.$$p=null;if($iter)$Connector_push_object$38.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_8=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_8};return nil;})())){exception=nil;payload=$hash2([],{});if($truthy(details['$[]']("object")['$is_any?']($$$($$$('::','GxG'),'BinaryArray'),$$$('::','String')))){if($truthy($rb_gt(details['$[]']("path").$to_s().$size(),0))){$writer=["path",details['$[]']("path")];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["object",details['$[]']("object").$to_s().$encode64()];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;}else{exception="You MUST specify a :path to store the data into."}}else if($truthy(details['$[]']("object")['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy($rb_gt(details['$[]']("path").$to_s().$size(),0))){$writer=["path",details['$[]']("path")];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};$writer=["uuid",details['$[]']("object").$uuid().$to_s()];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;format_list=[];importation_record=$hash2(["formats","records"],{"formats":$hash2([],{}),"records":[]});if($truthy($rb_gt(details['$[]']("object").$format().$to_s().$size(),0))){format_list['$<<'](details['$[]']("object").$format())};$send(details['$[]']("object"),'search',[],($$39=function(value,selector,container){var self=$$39.$$s==null?this:$$39.$$s;if(value==null){value=nil;};if(selector==null){selector=nil;};if(container==null){container=nil;};if($truthy(value['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'DetachedHash')))){if($truthy($rb_gt(value.$format().$to_s().$size(),0))){format_list['$<<'](value.$format())}};if($truthy(value['$is_a?']($$$($$$($$$('::','GxG'),'Database'),'PersistedArray')))){if($truthy($rb_gt(value.$constraint().$to_s().$size(),0))){return format_list['$<<'](value.$constraint())}else{return nil}}else{return nil};},$$39.$$s=self,$$39.$$arity=3,$$39));$send(format_list,'each',[],($$40=function(the_specifier){var self=$$40.$$s==null?this:$$40.$$s,format_record=nil;if(the_specifier==null){the_specifier=nil;};format_record=$$$($$($nesting,'GxG'),'DB')['$[]']("formats")['$[]'](the_specifier.$to_s().$to_sym()).$clone();if($truthy(format_record['$is_a?']($$$('::','Hash')))){$writer=["content",format_record['$[]']("content").$gxg_export()];$send(format_record,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=[the_specifier.$to_s().$to_sym(),format_record];$send(importation_record['$[]']("formats"),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;}else{return nil};},$$40.$$s=self,$$40.$$arity=1,$$40));importation_record['$[]']("records")['$<<'](details['$[]']("object").$export());$writer=["object",importation_record];$send(payload,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;}else{exception="Invalid Data Type"};if($truthy(exception)){if($truthy(error_handler['$respond_to?']("call"))){error_handler.$call($hash2(["result","error"],{"result":nil,"error":exception}))};return false;}else{$send(self,'push_data',[$hash2(["put_object"],{"put_object":payload}),error_handler],($$41=function(data){var self=$$41.$$s==null?this:$$41.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$41.$$s=self,$$41.$$arity=1,$$41));return true;};}else{return false};},$Connector_push_object$38.$$arity=-1);Opal.def(self,'$pull_data',$Connector_pull_data$42=function $$pull_data(the_specifier,error_handler){var $iter=$Connector_pull_data$42.$$p,the_handler=$iter||nil,$$43,self=this,$ret_or_9=nil,the_message=nil,$writer=nil;if($iter)$Connector_pull_data$42.$$p=null;if($iter)$Connector_pull_data$42.$$p=null;;if(the_specifier==null){the_specifier=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_9=the_specifier))){return the_handler}else{return $ret_or_9};return nil;})())){the_message=self.$new_message(the_specifier);$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(error_handler['$respond_to?']("call"))){$send(the_message,'on',["fail"],error_handler.$to_proc())};$send(the_message,'on',["success"],($$43=function(response){var self=$$43.$$s==null?this:$$43.$$s,data=nil,the_error=nil;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Hash')))){data=nil;if($truthy(response['$[]']("result")['$is_a?']($$$('::','String')))){if($truthy(response['$[]']("result").$to_s()['$base64?']())){data=response['$[]']("result").$decode64()};if($truthy(data.$to_s()['$json?']())){try{data=$$$('::','JSON').$parse(data.$to_s(),$hash2(["symbolize_names"],{"symbolize_names":true}))}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["data"],{"data":data})}))}finally{Opal.pop_exception();}}else{throw $err;}};};return the_handler.$call(data);}else{return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Malformed Response Data"),"parameters":$hash2(["data"],{"data":response['$[]']("result")})}))};}else{return nil};},$$43.$$s=self,$$43.$$arity=1,$$43));return $$$($$($nesting,'GxG'),'CONNECTION').$pull(the_message);}else{return nil};},$Connector_pull_data$42.$$arity=-1);Opal.def(self,'$pull_object',$Connector_pull_object$44=function $$pull_object(the_specifier,error_handler){var $iter=$Connector_pull_object$44.$$p,the_handler=$iter||nil,$$45,self=this,$ret_or_10=nil,op_frame=nil;if($iter)$Connector_pull_object$44.$$p=null;if($iter)$Connector_pull_object$44.$$p=null;;if(the_specifier==null){the_specifier=nil;};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_10=the_specifier))){return the_handler}else{return $ret_or_10};return nil;})())){if($truthy($$($nesting,'GxG')['$valid_uuid?'](the_specifier.$to_s()))){op_frame=$hash2(["get_object"],{"get_object":$hash2(["uuid"],{"uuid":the_specifier})})}else{op_frame=$hash2(["get_object"],{"get_object":$hash2(["path"],{"path":the_specifier})})};$send(self,'pull_data',[op_frame,error_handler],($$45=function(data){var self=$$45.$$s==null?this:$$45.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call($$$($$$('::','GxG'),'Database').$process_detached_import(data))}else{return nil};},$$45.$$s=self,$$45.$$arity=1,$$45));return true;}else{return false};},$Connector_pull_object$44.$$arity=-1);Opal.def(self,'$load_format',$Connector_load_format$46=function $$load_format(details,error_handler){var $iter=$Connector_load_format$46.$$p,the_handler=$iter||nil,$$47,self=this,$ret_or_11=nil;if($iter)$Connector_load_format$46.$$p=null;if($iter)$Connector_load_format$46.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_11=details))){return the_handler}else{return $ret_or_11};return nil;})())){$send(self,'pull_data',[$hash2(["get_format"],{"get_format":details}),error_handler],($$47=function(data){var self=$$47.$$s==null?this:$$47.$$s,the_error=nil;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){if($truthy(data['$[]']("result"))){if($truthy(data['$[]']("result")['$is_a?']($$$('::','String')))){if($truthy(data['$[]']("result").$to_s()['$base64?']())){data=data['$[]']("result").$decode64()};if($truthy(data.$to_s()['$json?']())){try{data=$$$('::','JSON').$parse(data.$to_s(),$hash2(["symbolize_names"],{"symbolize_names":true}));$$$($$$('::','GxG'),'Database').$process_detached_import(data);return the_handler.$call($hash2(["result"],{"result":true}));}catch($err){if(Opal.rescue($err,[$$($nesting,'Exception')])){(the_error=$err) +try{return self.$log_error($hash2(["error","parameters"],{"error":the_error,"parameters":$hash2(["data"],{"data":data})}))}finally{Opal.pop_exception();}}else{throw $err;}};}else{return nil};}else{return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Malformed Response Data"),"parameters":$hash2(["data"],{"data":data['$[]']("result")})}))}}else if($truthy(data['$[]']("error"))){if($truthy(error_handler['$respond_to?']("call"))){return error_handler.$call(data)}else{return nil}}else{return nil}}else{return nil};},$$47.$$s=self,$$47.$$arity=1,$$47));return true;}else{return false};},$Connector_load_format$46.$$arity=-1);Opal.def(self,'$store_format',$Connector_store_format$48=function $$store_format(details,error_handler){var $iter=$Connector_store_format$48.$$p,the_handler=$iter||nil,$$49,$$50,$$51,self=this,$ret_or_12=nil,format_list=nil,importation_record=nil;if($iter)$Connector_store_format$48.$$p=null;if($iter)$Connector_store_format$48.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_12=details))){return the_handler}else{return $ret_or_12};return nil;})())){if(details.$keys().$size()['$=='](0)){format_list=$$$($$$('::','GxG'),'DB')['$[]']("formats").$keys()}else{format_list=[];$send($$$($$$('::','GxG'),'DB')['$[]']("formats").$keys(),'each',[],($$49=function(the_uuid){var self=$$49.$$s==null?this:$$49.$$s;if(the_uuid==null){the_uuid=nil;};if($truthy($rb_gt(details['$[]']("uuid").$to_s().$size(),0))){if(the_uuid['$=='](details['$[]']("uuid"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("type").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("type")['$=='](details['$[]']("type"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("ufs").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("ufs")['$=='](details['$[]']("ufs"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("title").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("title")['$=='](details['$[]']("title"))){if($truthy(format_list['$include?'](the_uuid))){}else{format_list['$<<'](the_uuid)}}};if($truthy($rb_gt(details['$[]']("version").$to_s().$size(),0))){if($$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid)['$[]']("version")['$=='](details['$[]']("version"))){if($truthy(format_list['$include?'](the_uuid))){return nil}else{return format_list['$<<'](the_uuid)}}else{return nil}}else{return nil};},$$49.$$s=self,$$49.$$arity=1,$$49));};importation_record=$hash2(["formats","records"],{"formats":$hash2([],{}),"records":[]});$send(format_list,'each',[],($$50=function(the_uuid){var self=$$50.$$s==null?this:$$50.$$s,format_record=nil,$writer=nil;if(the_uuid==null){the_uuid=nil;};format_record=$$$($$$('::','GxG'),'DB')['$[]']("formats")['$[]'](the_uuid.$to_s().$to_sym()).$clone();$writer=["content",format_record['$[]']("content").$gxg_export()];$send(format_record,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=[the_uuid.$to_s().$to_sym(),format_record];$send(importation_record['$[]']("formats"),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$$50.$$s=self,$$50.$$arity=1,$$50));$send(self,'push_data',[$hash2(["put_format"],{"put_format":importation_record}),error_handler],($$51=function(data){var self=$$51.$$s==null?this:$$51.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$51.$$s=self,$$51.$$arity=1,$$51));return true;}else{return false};},$Connector_store_format$48.$$arity=-1);Opal.def(self,'$get_permissions',$Connector_get_permissions$52=function $$get_permissions(the_specifier,error_handler){var $iter=$Connector_get_permissions$52.$$p,the_handler=$iter||nil,$$53,self=this,$ret_or_13=nil;if($iter)$Connector_get_permissions$52.$$p=null;if($iter)$Connector_get_permissions$52.$$p=null;;if(the_specifier==null){the_specifier=nil;};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_13=the_specifier))){return the_handler}else{return $ret_or_13};return nil;})())){$send(self,'pull_data',[$hash2(["get_permissions"],{"get_permissions":$hash2(["path"],{"path":the_specifier})}),error_handler],($$53=function(data){var self=$$53.$$s==null?this:$$53.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$53.$$s=self,$$53.$$arity=1,$$53));return true;}else{return false};},$Connector_get_permissions$52.$$arity=-1);Opal.def(self,'$call_event',$Connector_call_event$54=function $$call_event(service,op_frame,error_handler){var $iter=$Connector_call_event$54.$$p,the_handler=$iter||nil,$$55,self=this,$ret_or_14=nil;if($iter)$Connector_call_event$54.$$p=null;if($iter)$Connector_call_event$54.$$p=null;;if(service==null){service="core";};if(op_frame==null){op_frame=$hash2(["interface"],{"interface":true});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_14=op_frame['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_14};return nil;})())){$send(self,'pull_data',[$hash2(["call_event"],{"call_event":$hash2(["service","op_frame"],{"service":service.$to_s(),"op_frame":op_frame})}),error_handler],($$55=function(data){var self=$$55.$$s==null?this:$$55.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$55.$$s=self,$$55.$$arity=1,$$55));return true;}else{return false}}else{return nil};},$Connector_call_event$54.$$arity=-1);Opal.def(self,'$library_pull',$Connector_library_pull$56=function $$library_pull(details,error_handler){var $iter=$Connector_library_pull$56.$$p,the_handler=$iter||nil,$$57,self=this,$ret_or_15=nil;if($iter)$Connector_library_pull$56.$$p=null;if($iter)$Connector_library_pull$56.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_15=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_15};return nil;})())){$send(self,'pull_data',[$hash2(["get_library"],{"get_library":details}),error_handler],($$57=function(data){var self=$$57.$$s==null?this:$$57.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$57.$$s=self,$$57.$$arity=1,$$57));return true;}else{return false}}else{return nil};},$Connector_library_pull$56.$$arity=-1);Opal.def(self,'$format_pull',$Connector_format_pull$58=function $$format_pull(details,error_handler){var $iter=$Connector_format_pull$58.$$p,the_handler=$iter||nil,$$59,self=this,$ret_or_16=nil;if($iter)$Connector_format_pull$58.$$p=null;if($iter)$Connector_format_pull$58.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_16=details['$is_any?']($$$('::','Array'),$$$('::','Hash'))))){return the_handler}else{return $ret_or_16};return nil;})())){$send(self,'pull_data',[$hash2(["format_pull"],{"format_pull":details}),error_handler],($$59=function(data){var self=$$59.$$s==null?this:$$59.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$59.$$s=self,$$59.$$arity=1,$$59));return true;}else{return false}}else{return nil};},$Connector_format_pull$58.$$arity=-1);Opal.def(self,'$format_push',$Connector_format_push$60=function $$format_push(details,error_handler){var $iter=$Connector_format_push$60.$$p,the_handler=$iter||nil,$$61,self=this,$ret_or_17=nil;if($iter)$Connector_format_push$60.$$p=null;if($iter)$Connector_format_push$60.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_17=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_17};return nil;})())){$send(self,'push_data',[$hash2(["format_push"],{"format_push":details}),error_handler],($$61=function(data){var self=$$61.$$s==null?this:$$61.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$61.$$s=self,$$61.$$arity=1,$$61));return true;}else{return false}}else{return nil};},$Connector_format_push$60.$$arity=-1);Opal.def(self,'$format_list',$Connector_format_list$62=function $$format_list(details,error_handler){var $iter=$Connector_format_list$62.$$p,the_handler=$iter||nil,$$63,self=this,$ret_or_18=nil;if($iter)$Connector_format_list$62.$$p=null;if($iter)$Connector_format_list$62.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_18=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_18};return nil;})())){$send(self,'pull_data',[$hash2(["format_list"],{"format_list":details}),error_handler],($$63=function(data){var self=$$63.$$s==null?this:$$63.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$63.$$s=self,$$63.$$arity=1,$$63));return true;}else{return false}}else{return nil};},$Connector_format_list$62.$$arity=-1);Opal.def(self,'$admin',$Connector_admin$64=function $$admin(details,error_handler){var $iter=$Connector_admin$64.$$p,the_handler=$iter||nil,$$65,self=this,$ret_or_19=nil;if($iter)$Connector_admin$64.$$p=null;if($iter)$Connector_admin$64.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_19=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_19};return nil;})())){$send(self,'pull_data',[$hash2(["admin"],{"admin":details}),error_handler],($$65=function(data){var self=$$65.$$s==null?this:$$65.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$65.$$s=self,$$65.$$arity=1,$$65));return true;}else{return false}}else{return nil};},$Connector_admin$64.$$arity=-1);Opal.def(self,'$vfs',$Connector_vfs$66=function $$vfs(details,error_handler){var $iter=$Connector_vfs$66.$$p,the_handler=$iter||nil,$$67,self=this,$ret_or_20=nil;if($iter)$Connector_vfs$66.$$p=null;if($iter)$Connector_vfs$66.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_20=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_20};return nil;})())){if($truthy(["vfs_mkfile","vfs_mkdir","vfs_rename","vfs_destroy","vfs_copy","vfs_move","set_permissions"]['$include?'](details.$keys()['$[]'](0)))){$send(self,'pull_data',[details,error_handler],($$67=function(data){var self=$$67.$$s==null?this:$$67.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$67.$$s=self,$$67.$$arity=1,$$67));return true;}else{return false}}else{return false}}else{return false};},$Connector_vfs$66.$$arity=-1);Opal.def(self,'$app_state_push',$Connector_app_state_push$68=function $$app_state_push(details,error_handler){var $iter=$Connector_app_state_push$68.$$p,the_handler=$iter||nil,$$69,self=this,$ret_or_21=nil;if($iter)$Connector_app_state_push$68.$$p=null;if($iter)$Connector_app_state_push$68.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy((function(){if($truthy(($ret_or_21=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_21};return nil;})())){$send(self,'push_data',[$hash2(["app_state_push"],{"app_state_push":$hash2(["application","data"],{"application":details['$[]']("application"),"data":details['$[]']("data")})}),error_handler],($$69=function(data){var self=$$69.$$s==null?this:$$69.$$s;if(data==null){data=nil;};if($truthy(data['$is_a?']($$$('::','Hash')))){return the_handler.$call(data)}else{return nil};},$$69.$$s=self,$$69.$$arity=1,$$69));return true;}else{return false};},$Connector_app_state_push$68.$$arity=-1);Opal.def(self,'$app_state_pull',$Connector_app_state_pull$70=function $$app_state_pull(details,error_handler){var $iter=$Connector_app_state_pull$70.$$p,the_handler=$iter||nil,$$71,self=this,$ret_or_22=nil;if($iter)$Connector_app_state_pull$70.$$p=null;if($iter)$Connector_app_state_pull$70.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_22=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_22};return nil;})())){$send(self,'pull_data',[$hash2(["app_state_pull"],{"app_state_pull":$hash2(["application"],{"application":details['$[]']("application")})}),error_handler],($$71=function(data){var self=$$71.$$s==null?this:$$71.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$71.$$s=self,$$71.$$arity=1,$$71));return true;}else{return false}}else{return nil};},$Connector_app_state_pull$70.$$arity=-1);Opal.def(self,'$application_open',$Connector_application_open$72=function $$application_open(details,error_handler){var $iter=$Connector_application_open$72.$$p,the_handler=$iter||nil,$$73,$$74,self=this,$ret_or_23=nil,$ret_or_24=nil,$ret_or_25=nil;if($iter)$Connector_application_open$72.$$p=null;if($iter)$Connector_application_open$72.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_23=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_23};return nil;})())){if($truthy(details['$[]']("name"))){$send(self,'pull_data',[$hash2(["application_open"],{"application_open":$hash2(["restore","name"],{"restore":(function(){if($truthy(($ret_or_24=details['$[]']("restore")))){return $ret_or_24}else{return false};return nil;})(),"name":details['$[]']("name")})}),error_handler],($$73=function(data){var self=$$73.$$s==null?this:$$73.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$73.$$s=self,$$73.$$arity=1,$$73))}else{$send(self,'pull_data',[$hash2(["application_open"],{"application_open":$hash2(["restore","path"],{"restore":(function(){if($truthy(($ret_or_25=details['$[]']("restore")))){return $ret_or_25}else{return false};return nil;})(),"path":details['$[]']("path")})}),error_handler],($$74=function(data){var self=$$74.$$s==null?this:$$74.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$74.$$s=self,$$74.$$arity=1,$$74))};return true;}else{return false}}else{return nil};},$Connector_application_open$72.$$arity=-1);Opal.def(self,'$application_close',$Connector_application_close$75=function $$application_close(details,error_handler){var $iter=$Connector_application_close$75.$$p,the_handler=$iter||nil,$$76,self=this,$ret_or_26=nil;if($iter)$Connector_application_close$75.$$p=null;if($iter)$Connector_application_close$75.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_26=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_26};return nil;})())){$send(self,'pull_data',[$hash2(["application_close"],{"application_close":$hash2(["application"],{"application":details['$[]']("application")})}),error_handler],($$76=function(data){var self=$$76.$$s==null?this:$$76.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$76.$$s=self,$$76.$$arity=1,$$76));return true;}else{return false}}else{return nil};},$Connector_application_close$75.$$arity=-1);Opal.def(self,'$application_list',$Connector_application_list$77=function $$application_list(error_handler){var $iter=$Connector_application_list$77.$$p,the_handler=$iter||nil,$$78,self=this;if($iter)$Connector_application_list$77.$$p=null;if($iter)$Connector_application_list$77.$$p=null;;if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy(the_handler)){$send(self,'pull_data',[$hash2(["application_list"],{"application_list":true}),error_handler],($$78=function(data){var self=$$78.$$s==null?this:$$78.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$78.$$s=self,$$78.$$arity=1,$$78));return true;}else{return false}}else{return nil};},$Connector_application_list$77.$$arity=-1);Opal.def(self,'$application_menu',$Connector_application_menu$79=function $$application_menu(error_handler){var $iter=$Connector_application_menu$79.$$p,the_handler=$iter||nil,$$80,self=this;if($iter)$Connector_application_menu$79.$$p=null;if($iter)$Connector_application_menu$79.$$p=null;;if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy(the_handler)){$send(self,'pull_data',[$hash2(["application_menu"],{"application_menu":true}),error_handler],($$80=function(data){var self=$$80.$$s==null?this:$$80.$$s;if(data==null){data=nil;};return the_handler.$call(data);},$$80.$$s=self,$$80.$$arity=1,$$80));return true;}else{return false}}else{return nil};},$Connector_application_menu$79.$$arity=-1);Opal.def(self,'$entries',$Connector_entries$81=function $$entries(details,error_handler){var $iter=$Connector_entries$81.$$p,the_handler=$iter||nil,$$82,self=this,$ret_or_27=nil;if($iter)$Connector_entries$81.$$p=null;if($iter)$Connector_entries$81.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_27=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_27};return nil;})())){$$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$set_busy(true);$send(self,'pull_data',[$hash2(["entries"],{"entries":$hash2(["path"],{"path":details['$[]']("path")})}),error_handler],($$82=function(data){var self=$$82.$$s==null?this:$$82.$$s;if(data==null){data=nil;};the_handler.$call(data);return $$$($$($nesting,'GxG'),'DISPLAY_DETAILS')['$[]']("object").$set_busy(false);},$$82.$$s=self,$$82.$$arity=1,$$82));return true;}else{return false}}else{return nil};},$Connector_entries$81.$$arity=-1);Opal.def(self,'$heartbeat',$Connector_heartbeat$83=function $$heartbeat(){var $$84,self=this,heartbeat_message=nil,$writer=nil;if($truthy(self.active)){heartbeat_message=self.$new_message($hash2(["heartbeat"],{"heartbeat":true}));$writer=["sender",self.uuid.$to_s()];$send(heartbeat_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid.$to_s()];$send(heartbeat_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(heartbeat_message,'on',["success"],($$84=function(response){var self=$$84.$$s==null?this:$$84.$$s;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Hash')))){if(response['$[]']("result")['$[]']("status")['$==']("credentialed")){};$writer=["server_status",response['$[]']("result")['$[]']("server").$to_s().$to_sym()];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;}else{return nil};},$$84.$$s=self,$$84.$$arity=1,$$84));return $$$($$($nesting,'GxG'),'CONNECTION').$pull(heartbeat_message);}else{return nil}},$Connector_heartbeat$83.$$arity=0);Opal.def(self,'$update_credential',$Connector_update_credential$85=function $$update_credential(details,error_handler){var $iter=$Connector_update_credential$85.$$p,the_handler=$iter||nil,$$86,$$87,self=this,$ret_or_28=nil,content=nil,the_message=nil,$writer=nil;if($iter)$Connector_update_credential$85.$$p=null;if($iter)$Connector_update_credential$85.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};if($truthy(self['$open?']())){if($truthy((function(){if($truthy(($ret_or_28=details['$is_a?']($$$('::','Hash'))))){return the_handler}else{return $ret_or_28};return nil;})())){content=details.$to_json().$to_s().$encrypt(self.csrf.$to_s()).$encode64();the_message=self.$new_message($hash2(["update_credential"],{"update_credential":content}));$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["thread",the_message.$id().$to_s()];$send(the_message['$[]']("body"),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(the_message,'on',["success"],($$86=function(the_response){var self=$$86.$$s==null?this:$$86.$$s;if(the_response==null){the_response=nil;};if($truthy(the_response['$is_a?']($$$('::','Hash')))){if(the_response['$[]']("status")['$==']("credentialed")){$writer=["logged_in",true];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];}};return the_handler.$call(the_response);},$$86.$$s=self,$$86.$$arity=1,$$86));if($truthy(error_handler)){$send(the_message,'on',["fail"],($$87=function(the_response){var self=$$87.$$s==null?this:$$87.$$s;if(the_response==null){the_response=nil;};return error_handler.$call(the_response);},$$87.$$s=self,$$87.$$arity=1,$$87))};return $$$($$($nesting,'GxG'),'CONNECTION').$push(the_message);}else{return nil}}else{return nil};},$Connector_update_credential$85.$$arity=-1);Opal.def(self,'$downgrade_credential',$Connector_downgrade_credential$88=function $$downgrade_credential(){var $iter=$Connector_downgrade_credential$88.$$p,the_handler=$iter||nil,$$89,self=this,downgrade_message=nil,$writer=nil;if($iter)$Connector_downgrade_credential$88.$$p=null;if($iter)$Connector_downgrade_credential$88.$$p=null;;if($truthy(self.active)){downgrade_message=self.$new_message($hash2(["downgrade_credential"],{"downgrade_credential":true}));$writer=["sender",self.uuid.$to_s()];$send(downgrade_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid.$to_s()];$send(downgrade_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(downgrade_message,'on',["success"],($$89=function(response){var self=$$89.$$s==null?this:$$89.$$s,new_event=nil;if(response==null){response=nil;};if($truthy(response['$is_a?']($$$('::','Hash')))){if(response['$[]']("status")['$==']("uncredentialed")){$writer=["logged_in",false];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;if($truthy(the_handler['$respond_to?']("call"))){the_handler.$call(response)};new_event=new CustomEvent('credentialchanged',{detail:response['$[]']("status").$to_s()});return window.dispatchEvent(new_event);}else{return nil}}else{return nil};},$$89.$$s=self,$$89.$$arity=1,$$89));return $$$($$($nesting,'GxG'),'CONNECTION').$pull(downgrade_message);}else{return nil};},$Connector_downgrade_credential$88.$$arity=0);Opal.def(self,'$action',$Connector_action$90=function $$action(details,error_handler){var $iter=$Connector_action$90.$$p,the_handler=$iter||nil,self=this;if($iter)$Connector_action$90.$$p=null;if($iter)$Connector_action$90.$$p=null;;if(details==null){details=$hash2([],{});};if(error_handler==null){error_handler=nil;};return nil;},$Connector_action$90.$$arity=-1);Opal.def(self,'$relative_url',$Connector_relative_url$91=function $$relative_url(){var self=this;return self.relative_url},$Connector_relative_url$91.$$arity=0);Opal.def(self,'$query',$Connector_query$92=function $$query(){var self=this;return self.query},$Connector_query$92.$$arity=0);Opal.def(self,'$article',$Connector_article$93=function $$article(){var self=this;return self.article},$Connector_article$93.$$arity=0);Opal.def(self,'$display_path',$Connector_display_path$94=function $$display_path(){var self=this;return self.display_path},$Connector_display_path$94.$$arity=0);return(Opal.def(self,'$initialize',$Connector_initialize$95=function $$initialize(){var $$96,$$97,$$102,$$103,self=this,page_name=nil,subpath_array=nil,found_at=nil,query_string=nil,query_array=nil,the_introduction=nil,$writer=nil;if($truthy((window.location['href'])['$include?']("https://"))){self.host_prefix=$rb_plus("https://",window.location['host'])}else{self.host_prefix=$rb_plus("http://",window.location['host'])};self.relative_url="";page_name=$$($nesting,'File').$basename(window.location['pathname']);subpath_array=(window.location['pathname']).$split("/");found_at=subpath_array.$index(page_name);if($truthy(found_at['$is_a?']($$$('::','Numeric')))){if($truthy($rb_gt(found_at,1))){self.relative_url=subpath_array['$[]'](Opal.Range.$new(0,$rb_minus(found_at,1),false)).$join("/")}};self.article=nil;self.query=$hash2([],{});query_string=(window.location.href).$split("?")['$[]'](1);if($truthy(query_string)){self.article=query_string.$split("#")['$[]'](1);query_string=query_string.$split("#")['$[]'](0);if($truthy(query_string['$include?']("&"))){query_array=query_string.$split("&")}else{query_array=query_string.$split("&")};$send(query_array,'each',[],($$96=function(entry){var self=$$96.$$s==null?this:$$96.$$s,buffer=nil,$writer=nil;if(self.query==null)self.query=nil;if(entry==null){entry=nil;};buffer=entry.$split("=");$writer=[buffer['$[]'](0).$to_s().$to_sym(),buffer['$[]'](1)];$send(self.query,'[]=',Opal.to_a($writer));return $writer[$rb_minus($writer["length"],1)];;},$$96.$$s=self,$$96.$$arity=1,$$96));}else{self.article=(window.location.href).$split("#")['$[]'](1)};self.uuid=$$($nesting,'GxG').$uuid_generate().$to_sym();self.remote_uuid=nil;self.active=true;self.display_path=nil;self.in_busy=false;self.out_busy=false;self.pending=$hash2([],{});self.channels=$hash2([],{});self.buffers=$hash2([],{});self.csrf=nil;self.the_connector=self;the_introduction=self.$new_message($hash2(["introduction"],{"introduction":self.uuid.$to_s()}));$writer=["sender",self.uuid.$to_s()];$send(the_introduction,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.host_prefix.$to_s()];$send(the_introduction,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$send(the_introduction,'on',["success"],($$97=function(response){var self=$$97.$$s==null?this:$$97.$$s,$$98;if(response==null){response=nil;};if(response['$[]']("result")['$==']("OK")){if($truthy(response['$[]']("csrf"))){self.csrf=response['$[]']("csrf")};if(response['$[]']("status")['$==']("credentialed")){$writer=["logged_in",true];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];}else{$writer=["logged_in",false];$send($$$($$($nesting,'GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];};if($truthy(response['$[]']("relative_url"))){self.relative_url=response['$[]']("relative_url")};if(response['$[]']("display")['$==']("unavailable")){return alert('Display Resource Unavailable');}else{self.display_path=response['$[]']("display");self.active=true;return $send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$98=function(){var self=$$98.$$s==null?this:$$98.$$s,$a,$$99,$$100,$$101;if(self.query==null)self.query=nil;if(self.article==null)self.article=nil;if(self.relative_url==null)self.relative_url=nil;while(!($truthy((document.readyState).$to_s()['$==']("complete")))){self.$sleep(0.5)};$writer=["query",self.query];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["article",self.article];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;var do_unload=function(the_event){Opal.GxG.$eval("GxG::DISPLAY_DETAILS[:socket].close");if(the_event){the_event.returnValue="closing...";} for(var i=0;i<500000000;i++){} -return "closing...";};window.addEventListener('unload',do_unload,false);window.addEventListener('onunload',do_unload,false);window.addEventListener('beforeunload',do_unload,false);window.addEventListener('onbeforeunload',do_unload,false);window.onbeforeunload=do_unload;window.beforeunload=do_unload;;$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$96=function(){var self=$$96.$$s==null?this:$$96.$$s;return $$$($$$($$$('::','GxG'),'Gui'),'Vdom').$navigate_to(window.location['pathname'])},$$96.$$s=self,$$96.$$arity=0,$$96));$writer=["socket",$$$($$$($$$('::','GxG'),'Networking'),'Socket').$new()];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("socket").$open($rb_plus($rb_plus($rb_plus(window.location['host'],"/"),self.relative_url),"/ws").$gsub("//","/"));$send($$$($$$('::','GxG'),'SOCKET_MONITOR'),'on',["attach_socket"],($$97=function(the_uuid){var self=$$97.$$s==null?this:$$97.$$s,the_message=nil;if(self.uuid==null)self.uuid=nil;if(self.remote_uuid==null)self.remote_uuid=nil;if(the_uuid==null){the_uuid=nil;};if($truthy($$$('::','GxG')['$valid_uuid?'](the_uuid))){the_message=self.$new_message($hash2(["attach_socket"],{"attach_socket":the_uuid.$to_s()}));$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return $$$($$($nesting,'GxG'),'CONNECTION').$push(the_message);}else{return nil};},$$97.$$s=self,$$97.$$arity=1,$$97));return $send($$$($$$('::','GxG'),'DISPATCHER'),'add_periodic_timer',[$hash2(["interval"],{"interval":0.333})],($$98=function(){var self=$$98.$$s==null?this:$$98.$$s;return $$$($$$('::','GxG'),'SOCKET_MONITOR').$follow_up()},$$98.$$s=self,$$98.$$arity=0,$$98));},$$95.$$s=self,$$95.$$arity=0,$$95));};}else{return nil};},$$94.$$s=self,$$94.$$arity=1,$$94));$send(the_introduction,'on',["fail"],($$99=function(response){var self=$$99.$$s==null?this:$$99.$$s;if(response==null){response=nil;};self.active=false;return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Communication Error"),"parameters":$hash2(["response"],{"response":response})}));},$$99.$$s=self,$$99.$$arity=1,$$99));$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["communications"],($$100=function(){var self=$$100.$$s==null?this:$$100.$$s,$$101;$$$($$($nesting,'GxG'),'CONNECTION').$pull(the_introduction);return(self.heart_beat_timer=$send($$$($$($nesting,'GxG'),'DISPATCHER'),'add_periodic_timer',[$hash2(["interval"],{"interval":60.0})],($$101=function(){var self=$$101.$$s==null?this:$$101.$$s;return $$$($$($nesting,'GxG'),'CONNECTION').$heartbeat()},$$101.$$s=self,$$101.$$arity=0,$$101)));},$$100.$$s=self,$$100.$$arity=0,$$100));return self;},$Connector_initialize$92.$$arity=0),nil)&&'initialize';})($nesting[0],null,$nesting);})($nesting[0],$nesting);})($nesting[0],$nesting)};Opal.queue(function(Opal){var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$,$module=Opal.module,$hash2=Opal.hash2,$klass=Opal.klass;Opal.add_stubs(['$require','$to_i','$new','$private','$[]']);self.$require("opal");self.$require("opal/paths");self.$require("bigdecimal");self.$require("buffer");self.$require("base64");self.$require("console");self.$require("date");self.$require("delegate");self.$require("enumerator");self.$require("forwardable");self.$require("iconv");self.$require("json");self.$require("js");self.$require("observer");self.$require("opal-parser");self.$require("opal-platform");self.$require("pathname");self.$require("pp");self.$require("promise");self.$require("securerandom");self.$require("singleton");self.$require("stringio");self.$require("strscan");self.$require("thread");self.$require("time");self.$require("deps/chronic");self.$require("web/gxg");self.$require("web/gxg_augments");self.$require("web/gxg_elements");self.$require("web/gxg_events");self.$require("web/gxg_database");self.$require("web/gxg_libraries");self.$require("web/gxg_applications");self.$require("web/gxg_vdom");self.$require("web/gxg_foundation");self.$require("web/gxg_layout");self.$require("web/gxg_windows");self.$require("web/gxg_gui");self.$require("web/gxg_comm");(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);Opal.const_set($nesting[0],'DISPLAY_DETAILS',$hash2(["server_status","logged_in","host_path","use_ssl","socket","object","theme","query","article","mode"],{"server_status":"running","logged_in":false,"host_path":"","use_ssl":false,"socket":nil,"object":nil,"theme":"default","query":$hash2([],{}),"article":nil,"mode":"browsing"}));Opal.const_set($nesting[0],'LAYOUT',$hash2(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],{"top-left":$hash2([],{}),"top":$hash2([],{}),"top-right":$hash2([],{}),"right":$hash2([],{}),"bottom-right":$hash2([],{}),"bottom":$hash2([],{}),"bottom-left":$hash2([],{}),"left":$hash2([],{})}));Opal.const_set($nesting[0],'LAYOUT_LIMITS',$hash2(["top","left","bottom","right","page_width","page_height"],{"top":0,"left":0,"bottom":(window.innerHeight).$to_i(),"right":(window.innerWidth).$to_i(),"page_width":(window.innerWidth).$to_i(),"page_height":(window.innerHeight).$to_i()}));Opal.const_set($nesting[0],'APPLICATIONS',$hash2(["processes","libraries","viewports","prefetching"],{"processes":$hash2([],{}),"libraries":$hash2([],{}),"viewports":$hash2([],{}),"prefetching":false}));Opal.const_set($nesting[0],'ANIMATION',$hash2(["animations","assets"],{"animations":$hash2([],{}),"assets":$hash2([],{})}));Opal.const_set($nesting[0],'DB',$hash2(["formats"],{"formats":$hash2([],{})}));Opal.const_set($nesting[0],'CONNECTION',$$$($$$($$$('::','GxG'),'Networking'),'Connector').$new());Opal.const_set($nesting[0],'SOCKET_MONITOR',$$$($$$($$$('::','GxG'),'Networking'),'SocketMonitor').$new());Opal.const_set($nesting[0],'THEMES',$hash2([],{}));Opal.const_set($nesting[0],'PAGES',$hash2([],{}));return Opal.const_set($nesting[0],'DOCUMENTS',$hash2([],{}));})($nesting[0],$nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Object');var $nesting=[self].concat($parent_nesting),$Object_page$1,$Object_applications$2,$Object_libraries$3,$Object_viewports$4,$Object_connector$5,$Object_sockets$6,$Object_documents$7;self.$private();Opal.def(self,'$page',$Object_page$1=function $$page(){var self=this;return $$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object")},$Object_page$1.$$arity=0);Opal.def(self,'$applications',$Object_applications$2=function $$applications(){var self=this;return $$$($$$('::','GxG'),'APPLICATIONS')['$[]']("processes")},$Object_applications$2.$$arity=0);Opal.def(self,'$libraries',$Object_libraries$3=function $$libraries(){var self=this;return $$$($$$('::','GxG'),'APPLICATIONS')['$[]']("libraries")},$Object_libraries$3.$$arity=0);Opal.def(self,'$viewports',$Object_viewports$4=function $$viewports(){var self=this;return $$$($$$('::','GxG'),'APPLICATIONS')['$[]']("viewports")},$Object_viewports$4.$$arity=0);Opal.def(self,'$connector',$Object_connector$5=function $$connector(){var self=this;return $$$($$$('::','GxG'),'CONNECTION')},$Object_connector$5.$$arity=0);Opal.def(self,'$sockets',$Object_sockets$6=function $$sockets(){var self=this;return $$$($$$('::','GxG'),'SOCKET_MONITOR')},$Object_sockets$6.$$arity=0);return(Opal.def(self,'$documents',$Object_documents$7=function $$documents(){var self=this;return $$$($$$('::','GxG'),'DOCUMENTS')},$Object_documents$7.$$arity=0),nil)&&'documents';})($nesting[0],null,$nesting);});Opal.queue(function(Opal){var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$;Opal.add_stubs(['$exit']);return $$($nesting,'Kernel').$exit()}); \ No newline at end of file +return "closing...";};window.addEventListener('unload',do_unload,false);window.addEventListener('onunload',do_unload,false);window.addEventListener('beforeunload',do_unload,false);window.addEventListener('onbeforeunload',do_unload,false);window.onbeforeunload=do_unload;window.beforeunload=do_unload;;$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["display"],($$99=function(){var self=$$99.$$s==null?this:$$99.$$s;return $$$($$$($$$('::','GxG'),'Gui'),'Vdom').$navigate_to(window.location['pathname'])},$$99.$$s=self,$$99.$$arity=0,$$99));$writer=["socket",$$$($$$($$$('::','GxG'),'Networking'),'Socket').$new()];$send($$$($$$('::','GxG'),'DISPLAY_DETAILS'),'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("socket").$open($rb_plus($rb_plus($rb_plus(window.location['host'],"/"),self.relative_url),"/ws").$gsub("//","/"));$send($$$($$$('::','GxG'),'SOCKET_MONITOR'),'on',["attach_socket"],($$100=function(the_uuid){var self=$$100.$$s==null?this:$$100.$$s,the_message=nil;if(self.uuid==null)self.uuid=nil;if(self.remote_uuid==null)self.remote_uuid=nil;if(the_uuid==null){the_uuid=nil;};if($truthy($$$('::','GxG')['$valid_uuid?'](the_uuid))){the_message=self.$new_message($hash2(["attach_socket"],{"attach_socket":the_uuid.$to_s()}));$writer=["sender",self.uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;$writer=["to",self.remote_uuid];$send(the_message,'[]=',Opal.to_a($writer));$writer[$rb_minus($writer["length"],1)];;return $$$($$($nesting,'GxG'),'CONNECTION').$push(the_message);}else{return nil};},$$100.$$s=self,$$100.$$arity=1,$$100));return $send($$$($$$('::','GxG'),'DISPATCHER'),'add_periodic_timer',[$hash2(["interval"],{"interval":0.333})],($$101=function(){var self=$$101.$$s==null?this:$$101.$$s;return $$$($$$('::','GxG'),'SOCKET_MONITOR').$follow_up()},$$101.$$s=self,$$101.$$arity=0,$$101));},$$98.$$s=self,$$98.$$arity=0,$$98));};}else{return nil};},$$97.$$s=self,$$97.$$arity=1,$$97));$send(the_introduction,'on',["fail"],($$102=function(response){var self=$$102.$$s==null?this:$$102.$$s;if(response==null){response=nil;};self.active=false;return self.$log_error($hash2(["error","parameters"],{"error":$$($nesting,'Exception').$new("Communication Error"),"parameters":$hash2(["response"],{"response":response})}));},$$102.$$s=self,$$102.$$arity=1,$$102));$send($$$($$($nesting,'GxG'),'DISPATCHER'),'post_event',["communications"],($$103=function(){var self=$$103.$$s==null?this:$$103.$$s,$$104;$$$($$($nesting,'GxG'),'CONNECTION').$pull(the_introduction);return(self.heart_beat_timer=$send($$$($$($nesting,'GxG'),'DISPATCHER'),'add_periodic_timer',[$hash2(["interval"],{"interval":60.0})],($$104=function(){var self=$$104.$$s==null?this:$$104.$$s;return $$$($$($nesting,'GxG'),'CONNECTION').$heartbeat()},$$104.$$s=self,$$104.$$arity=0,$$104)));},$$103.$$s=self,$$103.$$arity=0,$$103));return self;},$Connector_initialize$95.$$arity=0),nil)&&'initialize';})($nesting[0],null,$nesting);})($nesting[0],$nesting);})($nesting[0],$nesting)};Opal.queue(function(Opal){var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$,$module=Opal.module,$hash2=Opal.hash2,$klass=Opal.klass;Opal.add_stubs(['$require','$to_i','$new','$private','$[]']);self.$require("opal");self.$require("opal/paths");self.$require("bigdecimal");self.$require("buffer");self.$require("base64");self.$require("console");self.$require("date");self.$require("delegate");self.$require("enumerator");self.$require("forwardable");self.$require("iconv");self.$require("json");self.$require("js");self.$require("observer");self.$require("opal-parser");self.$require("opal-platform");self.$require("pathname");self.$require("pp");self.$require("promise");self.$require("securerandom");self.$require("singleton");self.$require("stringio");self.$require("strscan");self.$require("thread");self.$require("time");self.$require("deps/chronic");self.$require("web/gxg");self.$require("web/gxg_augments");self.$require("web/gxg_elements");self.$require("web/gxg_events");self.$require("web/gxg_database");self.$require("web/gxg_libraries");self.$require("web/gxg_applications");self.$require("web/gxg_vdom");self.$require("web/gxg_foundation");self.$require("web/gxg_layout");self.$require("web/gxg_windows");self.$require("web/gxg_gui");self.$require("web/gxg_comm");(function($base,$parent_nesting){var self=$module($base,'GxG');var $nesting=[self].concat($parent_nesting);Opal.const_set($nesting[0],'DISPLAY_DETAILS',$hash2(["server_status","logged_in","host_path","use_ssl","socket","object","theme","query","article","mode"],{"server_status":"running","logged_in":false,"host_path":"","use_ssl":false,"socket":nil,"object":nil,"theme":"default","query":$hash2([],{}),"article":nil,"mode":"browsing"}));Opal.const_set($nesting[0],'LAYOUT',$hash2(["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"],{"top-left":$hash2([],{}),"top":$hash2([],{}),"top-right":$hash2([],{}),"right":$hash2([],{}),"bottom-right":$hash2([],{}),"bottom":$hash2([],{}),"bottom-left":$hash2([],{}),"left":$hash2([],{})}));Opal.const_set($nesting[0],'LAYOUT_LIMITS',$hash2(["top","left","bottom","right","page_width","page_height"],{"top":0,"left":0,"bottom":(window.innerHeight).$to_i(),"right":(window.innerWidth).$to_i(),"page_width":(window.innerWidth).$to_i(),"page_height":(window.innerHeight).$to_i()}));Opal.const_set($nesting[0],'APPLICATIONS',$hash2(["processes","libraries","viewports","prefetching"],{"processes":$hash2([],{}),"libraries":$hash2([],{}),"viewports":$hash2([],{}),"prefetching":false}));Opal.const_set($nesting[0],'ANIMATION',$hash2(["animations","assets"],{"animations":$hash2([],{}),"assets":$hash2([],{})}));Opal.const_set($nesting[0],'DB',$hash2(["formats"],{"formats":$hash2([],{})}));Opal.const_set($nesting[0],'CONNECTION',$$$($$$($$$('::','GxG'),'Networking'),'Connector').$new());Opal.const_set($nesting[0],'SOCKET_MONITOR',$$$($$$($$$('::','GxG'),'Networking'),'SocketMonitor').$new());Opal.const_set($nesting[0],'THEMES',$hash2([],{}));Opal.const_set($nesting[0],'PAGES',$hash2([],{}));return Opal.const_set($nesting[0],'DOCUMENTS',$hash2([],{}));})($nesting[0],$nesting);return(function($base,$super,$parent_nesting){var self=$klass($base,$super,'Object');var $nesting=[self].concat($parent_nesting),$Object_page$1,$Object_applications$2,$Object_libraries$3,$Object_viewports$4,$Object_connector$5,$Object_sockets$6,$Object_documents$7;self.$private();Opal.def(self,'$page',$Object_page$1=function $$page(){var self=this;return $$$($$$('::','GxG'),'DISPLAY_DETAILS')['$[]']("object")},$Object_page$1.$$arity=0);Opal.def(self,'$applications',$Object_applications$2=function $$applications(){var self=this;return $$$($$$('::','GxG'),'APPLICATIONS')['$[]']("processes")},$Object_applications$2.$$arity=0);Opal.def(self,'$libraries',$Object_libraries$3=function $$libraries(){var self=this;return $$$($$$('::','GxG'),'APPLICATIONS')['$[]']("libraries")},$Object_libraries$3.$$arity=0);Opal.def(self,'$viewports',$Object_viewports$4=function $$viewports(){var self=this;return $$$($$$('::','GxG'),'APPLICATIONS')['$[]']("viewports")},$Object_viewports$4.$$arity=0);Opal.def(self,'$connector',$Object_connector$5=function $$connector(){var self=this;return $$$($$$('::','GxG'),'CONNECTION')},$Object_connector$5.$$arity=0);Opal.def(self,'$sockets',$Object_sockets$6=function $$sockets(){var self=this;return $$$($$$('::','GxG'),'SOCKET_MONITOR')},$Object_sockets$6.$$arity=0);return(Opal.def(self,'$documents',$Object_documents$7=function $$documents(){var self=this;return $$$($$$('::','GxG'),'DOCUMENTS')},$Object_documents$7.$$arity=0),nil)&&'documents';})($nesting[0],null,$nesting);});Opal.queue(function(Opal){var self=Opal.top,$nesting=[],nil=Opal.nil,$$$=Opal.$$$,$$=Opal.$$;Opal.add_stubs(['$exit']);return $$($nesting,'Kernel').$exit()}); \ No newline at end of file diff --git a/Services/www/www/gxg-www.rb b/Services/www/www/gxg-www.rb index 6718140..89d29fd 100644 --- a/Services/www/www/gxg-www.rb +++ b/Services/www/www/gxg-www.rb @@ -673,6 +673,22 @@ module GxGwww else log_warn("Abnormal PUT Body #{the_request.body.inspect}") end + when :post + # + if the_request.params["file"] + if the_request.params["file"][:tempfile] + temp_file = the_request.params["file"][:tempfile] + if the_request.params["file"][:filename] + file_name = the_request.params["file"][:filename] + if the_request.params["destination"] + destination = the_request.params["destination"] + operations = [{:upload_file => {:temp_file => temp_file, :file_name => file_name, :destination => destination}}] + end + end + end + # + end + # end unless operations.is_a?(::Array) operations = [(operations)] @@ -1130,6 +1146,28 @@ module GxGwww response end # + def upload_file(details={}) + response = [500, {"content-type" => "application/json"}, ({:result => false, :error => "Unknown Error."}).to_json()] + # {:temp_file => temp_file, :file_name => file_name, :destination => destination} + begin + temp_dir = "/Temporary/#{::GxG::uuid_generate().to_s}" + download_path = "#{temp_dir + "/" + (details[:file_name] || "Untitled").to_s}" + final_path = "#{details[:destination].to_s + "/" + (details[:file_name] || "Untitled").to_s}" + GxG::SERVICES[:core][:resources].create_directory(temp_dir, ::GxG::DB[:administrator]) + GxG::SERVICES[:core][:resources].create(download_path, ::GxG::DB[:administrator]) + handle = GxG::SERVICES[:core][:resources].open_writable(download_path, ::GxG::DB[:administrator]) + handle[:resource].write details[:temp_file].read + GxG::SERVICES[:core][:resources].close(handle[:token]) + GxG::SERVICES[:core][:resources].move(download_path, ::GxG::DB[:administrator], final_path) + GxG::SERVICES[:core][:resources].set_permissions(final_path, @credential, {:execute => false, :rename => true, :move => true, :destroy => true, :create => true, :write => true, :read=>true}) + # + response = [200, {"content-type" => "application/json"}, ({:result => true}).to_json()] + rescue Exception => the_error + response = [500, {"content-type" => "application/json"}, ({:result => false, :error => the_error.to_s}).to_json()] + end + response + end + # def vfs_mkfile(details={}) # Review : find correct cooresponding return codes for errors. if self.closed?