var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function o(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):a(e.value).then(o,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]Option Label\nExample with aria-label: \n\nDevelopers can use the "legacy" property to continue using the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.',this.el);if(this.legacy){h('ion-radio is being used with the "legacy" property enabled which will forcibly enable the legacy form markup. This property will be removed in an upcoming major release of Ionic where this form control will use the modern form markup.\n\nDevelopers can dismiss this warning by removing their usage of the "legacy" property and using the new radio syntax.',this.el)}this.hasLoggedDeprecationWarning=true}var i=this,n=i.inputId,o=i.disabled,s=i.checked,l=i.color,c=i.el,p=i.buttonTabindex;var u=b(this);var g=d(c,n),x=g.label,w=g.labelId,y=g.labelText;return r(a,{"aria-checked":"".concat(s),"aria-hidden":o?"true":null,"aria-labelledby":x?w:null,role:"radio",tabindex:p,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,class:f(l,(e={},e[u]=true,e["in-item"]=m("ion-item",c),e.interactive=true,e["radio-checked"]=s,e["radio-disabled"]=o,e["legacy-radio"]=true,e))},this.renderRadioControl(),r("label",{htmlFor:n},y),r("input",{type:"radio",checked:s,disabled:o,tabindex:"-1",id:n,ref:function(e){return t.nativeInput=e}}))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"],checked:["styleChanged"],color:["styleChanged"],disabled:["styleChanged"]}},enumerable:false,configurable:true});return e}());var v=0;y.style={ios:g,md:w};var k=e("ion_radio_group",function(){function e(e){var r=this;t(this,e);this.ionChange=i(this,"ionChange",7);this.ionValueChange=i(this,"ionValueChange",7);this.inputId="ion-rg-".concat(j++);this.labelId="".concat(this.inputId,"-lbl");this.setRadioTabindex=function(e){var t=r.getRadios();var i=t.find((function(e){return!e.disabled}));var a=t.find((function(t){return t.value===e&&!t.disabled}));if(!i&&!a){return}var n=a||i;for(var o=0,s=t;o