if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/dial/dial.js']) {
__coverage__['build/dial/dial.js'] = {"path":"build/dial/dial.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0,"104":0,"105":0,"106":0,"107":0,"108":0,"109":0,"110":0,"111":0,"112":0,"113":0,"114":0,"115":0,"116":0,"117":0,"118":0,"119":0,"120":0,"121":0,"122":0,"123":0,"124":0,"125":0,"126":0,"127":0,"128":0,"129":0,"130":0,"131":0,"132":0,"133":0,"134":0,"135":0,"136":0,"137":0,"138":0,"139":0,"140":0,"141":0,"142":0,"143":0,"144":0,"145":0,"146":0,"147":0,"148":0,"149":0,"150":0,"151":0,"152":0,"153":0,"154":0,"155":0,"156":0,"157":0,"158":0,"159":0,"160":0,"161":0,"162":0,"163":0,"164":0,"165":0,"166":0,"167":0,"168":0,"169":0,"170":0,"171":0,"172":0,"173":0,"174":0,"175":0,"176":0,"177":0,"178":0,"179":0,"180":0,"181":0,"182":0,"183":0,"184":0,"185":0,"186":0,"187":0,"188":0,"189":0,"190":0,"191":0,"192":0,"193":0,"194":0,"195":0,"196":0,"197":0,"198":0,"199":0,"200":0,"201":0,"202":0,"203":0,"204":0,"205":0,"206":0,"207":0,"208":0,"209":0,"210":0,"211":0,"212":0,"213":0,"214":0,"215":0,"216":0,"217":0,"218":0,"219":0,"220":0,"221":0,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"230":0,"231":0,"232":0,"233":0,"234":0,"235":0,"236":0,"237":0,"238":0,"239":0,"240":0,"241":0,"242":0,"243":0,"244":0,"245":0,"246":0,"247":0,"248":0,"249":0,"250":0,"251":0,"252":0,"253":0,"254":0,"255":0,"256":0,"257":0,"258":0,"259":0,"260":0,"261":0,"262":0,"263":0,"264":0,"265":0,"266":0,"267":0,"268":0,"269":0,"270":0,"271":0,"272":0,"273":0,"274":0,"275":0,"276":0,"277":0,"278":0,"279":0,"280":0,"281":0,"282":0,"283":0,"284":0,"285":0,"286":0,"287":0,"288":0},"b":{"1":[0,0],"2":[0,0],"3":[0,0],"4":[0,0],"5":[0,0],"6":[0,0],"7":[0,0],"8":[0,0],"9":[0,0],"10":[0,0],"11":[0,0],"12":[0,0],"13":[0,0],"14":[0,0],"15":[0,0],"16":[0,0],"17":[0,0],"18":[0,0],"19":[0,0],"20":[0,0],"21":[0,0],"22":[0,0],"23":[0,0],"24":[0,0],"25":[0,0],"26":[0,0],"27":[0,0],"28":[0,0],"29":[0,0],"30":[0,0],"31":[0,0],"32":[0,0],"33":[0,0],"34":[0,0],"35":[0,0],"36":[0,0],"37":[0,0],"38":[0,0],"39":[0,0],"40":[0,0],"41":[0,0],"42":[0,0],"43":[0,0],"44":[0,0],"45":[0,0],"46":[0,0],"47":[0,0],"48":[0,0],"49":[0,0],"50":[0,0],"51":[0,0],"52":[0,0],"53":[0,0,0,0,0,0],"54":[0,0],"55":[0,0],"56":[0,0],"57":[0,0],"58":[0,0],"59":[0,0],"60":[0,0],"61":[0,0],"62":[0,0],"63":[0,0],"64":[0,0],"65":[0,0],"66":[0,0,0]},"f":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":16},"end":{"line":1,"column":35}}},"2":{"name":"Dial","line":31,"loc":{"start":{"line":31,"column":4},"end":{"line":31,"column":26}}},"3":{"name":"(anonymous_3)","line":147,"loc":{"start":{"line":147,"column":23},"end":{"line":147,"column":37}}},"4":{"name":"(anonymous_4)","line":210,"loc":{"start":{"line":210,"column":21},"end":{"line":210,"column":33}}},"5":{"name":"makeClassName","line":238,"loc":{"start":{"line":238,"column":4},"end":{"line":238,"column":32}}},"6":{"name":"(anonymous_6)","line":360,"loc":{"start":{"line":360,"column":19},"end":{"line":360,"column":30}}},"7":{"name":"(anonymous_7)","line":396,"loc":{"start":{"line":396,"column":27},"end":{"line":396,"column":37}}},"8":{"name":"(anonymous_8)","line":421,"loc":{"start":{"line":421,"column":35},"end":{"line":421,"column":45}}},"9":{"name":"(anonymous_9)","line":431,"loc":{"start":{"line":431,"column":35},"end":{"line":431,"column":45}}},"10":{"name":"(anonymous_10)","line":442,"loc":{"start":{"line":442,"column":17},"end":{"line":442,"column":28}}},"11":{"name":"(anonymous_11)","line":493,"loc":{"start":{"line":493,"column":36},"end":{"line":493,"column":49}}},"12":{"name":"(anonymous_12)","line":510,"loc":{"start":{"line":510,"column":36},"end":{"line":510,"column":74}}},"13":{"name":"(anonymous_13)","line":523,"loc":{"start":{"line":523,"column":31},"end":{"line":523,"column":41}}},"14":{"name":"(anonymous_14)","line":534,"loc":{"start":{"line":534,"column":29},"end":{"line":534,"column":39}}},"15":{"name":"(anonymous_15)","line":544,"loc":{"start":{"line":544,"column":37},"end":{"line":544,"column":47}}},"16":{"name":"(anonymous_16)","line":554,"loc":{"start":{"line":554,"column":33},"end":{"line":554,"column":43}}},"17":{"name":"(anonymous_17)","line":569,"loc":{"start":{"line":569,"column":22},"end":{"line":569,"column":33}}},"18":{"name":"(anonymous_18)","line":617,"loc":{"start":{"line":617,"column":27},"end":{"line":617,"column":38}}},"19":{"name":"(anonymous_19)","line":762,"loc":{"start":{"line":762,"column":36},"end":{"line":762,"column":57}}},"20":{"name":"(anonymous_20)","line":786,"loc":{"start":{"line":786,"column":27},"end":{"line":786,"column":38}}},"21":{"name":"(anonymous_21)","line":801,"loc":{"start":{"line":801,"column":25},"end":{"line":801,"column":35}}},"22":{"name":"(anonymous_22)","line":808,"loc":{"start":{"line":808,"column":26},"end":{"line":808,"column":36}}},"23":{"name":"(anonymous_23)","line":834,"loc":{"start":{"line":834,"column":33},"end":{"line":834,"column":57}}},"24":{"name":"(anonymous_24)","line":856,"loc":{"start":{"line":856,"column":17},"end":{"line":856,"column":28}}},"25":{"name":"(anonymous_25)","line":878,"loc":{"start":{"line":878,"column":20},"end":{"line":878,"column":30}}},"26":{"name":"(anonymous_26)","line":881,"loc":{"start":{"line":881,"column":22},"end":{"line":881,"column":50}}},"27":{"name":"(anonymous_27)","line":922,"loc":{"start":{"line":922,"column":23},"end":{"line":922,"column":34}}},"28":{"name":"(anonymous_28)","line":939,"loc":{"start":{"line":939,"column":22},"end":{"line":939,"column":33}}},"29":{"name":"(anonymous_29)","line":956,"loc":{"start":{"line":956,"column":24},"end":{"line":956,"column":35}}},"30":{"name":"(anonymous_30)","line":971,"loc":{"start":{"line":971,"column":30},"end":{"line":971,"column":41}}},"31":{"name":"(anonymous_31)","line":988,"loc":{"start":{"line":988,"column":24},"end":{"line":988,"column":35}}},"32":{"name":"(anonymous_32)","line":1010,"loc":{"start":{"line":1010,"column":26},"end":{"line":1010,"column":40}}},"33":{"name":"(anonymous_33)","line":1022,"loc":{"start":{"line":1022,"column":26},"end":{"line":1022,"column":40}}},"34":{"name":"(anonymous_34)","line":1036,"loc":{"start":{"line":1036,"column":28},"end":{"line":1036,"column":42}}},"35":{"name":"(anonymous_35)","line":1050,"loc":{"start":{"line":1050,"column":26},"end":{"line":1050,"column":38}}},"36":{"name":"(anonymous_36)","line":1081,"loc":{"start":{"line":1081,"column":26},"end":{"line":1081,"column":38}}},"37":{"name":"(anonymous_37)","line":1100,"loc":{"start":{"line":1100,"column":30},"end":{"line":1100,"column":42}}},"38":{"name":"(anonymous_38)","line":1118,"loc":{"start":{"line":1118,"column":21},"end":{"line":1118,"column":31}}},"39":{"name":"(anonymous_39)","line":1134,"loc":{"start":{"line":1134,"column":21},"end":{"line":1134,"column":31}}},"40":{"name":"(anonymous_40)","line":1146,"loc":{"start":{"line":1146,"column":21},"end":{"line":1146,"column":31}}},"41":{"name":"(anonymous_41)","line":1158,"loc":{"start":{"line":1158,"column":21},"end":{"line":1158,"column":31}}},"42":{"name":"(anonymous_42)","line":1170,"loc":{"start":{"line":1170,"column":20},"end":{"line":1170,"column":30}}},"43":{"name":"(anonymous_43)","line":1180,"loc":{"start":{"line":1180,"column":20},"end":{"line":1180,"column":30}}},"44":{"name":"(anonymous_44)","line":1190,"loc":{"start":{"line":1190,"column":21},"end":{"line":1190,"column":32}}},"45":{"name":"(anonymous_45)","line":1208,"loc":{"start":{"line":1208,"column":29},"end":{"line":1208,"column":45}}},"46":{"name":"(anonymous_46)","line":1222,"loc":{"start":{"line":1222,"column":29},"end":{"line":1222,"column":44}}},"47":{"name":"(anonymous_47)","line":1241,"loc":{"start":{"line":1241,"column":28},"end":{"line":1241,"column":40}}},"48":{"name":"(anonymous_48)","line":1253,"loc":{"start":{"line":1253,"column":32},"end":{"line":1253,"column":46}}},"49":{"name":"(anonymous_49)","line":1266,"loc":{"start":{"line":1266,"column":22},"end":{"line":1266,"column":36}}},"50":{"name":"(anonymous_50)","line":1302,"loc":{"start":{"line":1302,"column":24},"end":{"line":1302,"column":38}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1327,"column":3}},"2":{"start":{"line":9,"column":4},"end":{"line":9,"column":28}},"3":{"start":{"line":12,"column":4},"end":{"line":14,"column":5}},"4":{"start":{"line":13,"column":8},"end":{"line":13,"column":27}},"5":{"start":{"line":16,"column":4},"end":{"line":18,"column":22}},"6":{"start":{"line":31,"column":4},"end":{"line":33,"column":5}},"7":{"start":{"line":32,"column":8},"end":{"line":32,"column":59}},"8":{"start":{"line":47,"column":4},"end":{"line":47,"column":23}},"9":{"start":{"line":58,"column":4},"end":{"line":228,"column":6}},"10":{"start":{"line":148,"column":16},"end":{"line":148,"column":48}},"11":{"start":{"line":211,"column":16},"end":{"line":211,"column":42}},"12":{"start":{"line":238,"column":4},"end":{"line":240,"column":5}},"13":{"start":{"line":239,"column":8},"end":{"line":239,"column":63}},"14":{"start":{"line":249,"column":4},"end":{"line":266,"column":6}},"15":{"start":{"line":280,"column":1},"end":{"line":280,"column":205}},"16":{"start":{"line":282,"column":1},"end":{"line":349,"column":2}},"17":{"start":{"line":291,"column":2},"end":{"line":291,"column":129}},"18":{"start":{"line":301,"column":2},"end":{"line":301,"column":111}},"19":{"start":{"line":311,"column":2},"end":{"line":311,"column":190}},"20":{"start":{"line":321,"column":2},"end":{"line":321,"column":213}},"21":{"start":{"line":324,"column":2},"end":{"line":328,"column":11}},"22":{"start":{"line":329,"column":2},"end":{"line":334,"column":11}},"23":{"start":{"line":335,"column":2},"end":{"line":342,"column":12}},"24":{"start":{"line":343,"column":2},"end":{"line":348,"column":11}},"25":{"start":{"line":352,"column":4},"end":{"line":1307,"column":7}},"26":{"start":{"line":361,"column":12},"end":{"line":361,"column":32}},"27":{"start":{"line":362,"column":12},"end":{"line":362,"column":31}},"28":{"start":{"line":363,"column":12},"end":{"line":363,"column":33}},"29":{"start":{"line":364,"column":12},"end":{"line":364,"column":39}},"30":{"start":{"line":365,"column":12},"end":{"line":365,"column":33}},"31":{"start":{"line":368,"column":12},"end":{"line":368,"column":53}},"32":{"start":{"line":371,"column":12},"end":{"line":371,"column":52}},"33":{"start":{"line":372,"column":12},"end":{"line":372,"column":45}},"34":{"start":{"line":373,"column":12},"end":{"line":373,"column":45}},"35":{"start":{"line":374,"column":12},"end":{"line":374,"column":70}},"36":{"start":{"line":375,"column":12},"end":{"line":375,"column":96}},"37":{"start":{"line":376,"column":12},"end":{"line":376,"column":96}},"38":{"start":{"line":379,"column":12},"end":{"line":379,"column":35}},"39":{"start":{"line":380,"column":12},"end":{"line":380,"column":69}},"40":{"start":{"line":381,"column":12},"end":{"line":381,"column":40}},"41":{"start":{"line":384,"column":12},"end":{"line":384,"column":64}},"42":{"start":{"line":385,"column":12},"end":{"line":385,"column":66}},"43":{"start":{"line":386,"column":12},"end":{"line":386,"column":66}},"44":{"start":{"line":397,"column":12},"end":{"line":400,"column":40}},"45":{"start":{"line":401,"column":12},"end":{"line":404,"column":40}},"46":{"start":{"line":405,"column":12},"end":{"line":408,"column":40}},"47":{"start":{"line":409,"column":12},"end":{"line":412,"column":40}},"48":{"start":{"line":422,"column":12},"end":{"line":422,"column":67}},"49":{"start":{"line":432,"column":12},"end":{"line":432,"column":64}},"50":{"start":{"line":444,"column":12},"end":{"line":444,"column":62}},"51":{"start":{"line":446,"column":12},"end":{"line":455,"column":33}},"52":{"start":{"line":457,"column":12},"end":{"line":457,"column":87}},"53":{"start":{"line":458,"column":12},"end":{"line":458,"column":91}},"54":{"start":{"line":459,"column":12},"end":{"line":459,"column":88}},"55":{"start":{"line":461,"column":12},"end":{"line":461,"column":100}},"56":{"start":{"line":462,"column":12},"end":{"line":462,"column":100}},"57":{"start":{"line":464,"column":12},"end":{"line":464,"column":92}},"58":{"start":{"line":465,"column":12},"end":{"line":465,"column":106}},"59":{"start":{"line":468,"column":12},"end":{"line":468,"column":96}},"60":{"start":{"line":469,"column":12},"end":{"line":469,"column":88}},"61":{"start":{"line":472,"column":12},"end":{"line":472,"column":90}},"62":{"start":{"line":474,"column":12},"end":{"line":481,"column":15}},"63":{"start":{"line":482,"column":12},"end":{"line":482,"column":62}},"64":{"start":{"line":494,"column":12},"end":{"line":498,"column":13}},"65":{"start":{"line":495,"column":16},"end":{"line":495,"column":70}},"66":{"start":{"line":497,"column":16},"end":{"line":497,"column":80}},"67":{"start":{"line":511,"column":12},"end":{"line":511,"column":130}},"68":{"start":{"line":512,"column":12},"end":{"line":512,"column":88}},"69":{"start":{"line":513,"column":12},"end":{"line":513,"column":23}},"70":{"start":{"line":524,"column":12},"end":{"line":524,"column":70}},"71":{"start":{"line":525,"column":12},"end":{"line":525,"column":71}},"72":{"start":{"line":535,"column":12},"end":{"line":535,"column":37}},"73":{"start":{"line":545,"column":12},"end":{"line":545,"column":37}},"74":{"start":{"line":555,"column":12},"end":{"line":555,"column":37}},"75":{"start":{"line":570,"column":12},"end":{"line":573,"column":21}},"76":{"start":{"line":578,"column":12},"end":{"line":578,"column":102}},"77":{"start":{"line":579,"column":12},"end":{"line":579,"column":101}},"78":{"start":{"line":580,"column":12},"end":{"line":580,"column":79}},"79":{"start":{"line":583,"column":12},"end":{"line":591,"column":13}},"80":{"start":{"line":584,"column":16},"end":{"line":586,"column":17}},"81":{"start":{"line":585,"column":20},"end":{"line":585,"column":66}},"82":{"start":{"line":587,"column":18},"end":{"line":591,"column":13}},"83":{"start":{"line":588,"column":16},"end":{"line":590,"column":17}},"84":{"start":{"line":589,"column":19},"end":{"line":589,"column":65}},"85":{"start":{"line":592,"column":12},"end":{"line":592,"column":52}},"86":{"start":{"line":600,"column":12},"end":{"line":604,"column":13}},"87":{"start":{"line":601,"column":16},"end":{"line":601,"column":38}},"88":{"start":{"line":602,"column":18},"end":{"line":604,"column":13}},"89":{"start":{"line":603,"column":16},"end":{"line":603,"column":38}},"90":{"start":{"line":605,"column":12},"end":{"line":605,"column":32}},"91":{"start":{"line":607,"column":12},"end":{"line":607,"column":56}},"92":{"start":{"line":619,"column":12},"end":{"line":750,"column":13}},"93":{"start":{"line":620,"column":16},"end":{"line":624,"column":20}},"94":{"start":{"line":630,"column":16},"end":{"line":636,"column":17}},"95":{"start":{"line":631,"column":20},"end":{"line":631,"column":72}},"96":{"start":{"line":632,"column":20},"end":{"line":632,"column":72}},"97":{"start":{"line":634,"column":20},"end":{"line":634,"column":110}},"98":{"start":{"line":635,"column":20},"end":{"line":635,"column":109}},"99":{"start":{"line":637,"column":16},"end":{"line":637,"column":83}},"100":{"start":{"line":648,"column":16},"end":{"line":729,"column":17}},"101":{"start":{"line":653,"column":20},"end":{"line":670,"column":21}},"102":{"start":{"line":656,"column":24},"end":{"line":661,"column":25}},"103":{"start":{"line":660,"column":28},"end":{"line":660,"column":131}},"104":{"start":{"line":665,"column":26},"end":{"line":670,"column":21}},"105":{"start":{"line":669,"column":24},"end":{"line":669,"column":46}},"106":{"start":{"line":673,"column":21},"end":{"line":729,"column":17}},"107":{"start":{"line":678,"column":20},"end":{"line":683,"column":21}},"108":{"start":{"line":680,"column":24},"end":{"line":680,"column":47}},"109":{"start":{"line":682,"column":24},"end":{"line":682,"column":47}},"110":{"start":{"line":686,"column":21},"end":{"line":729,"column":17}},"111":{"start":{"line":691,"column":20},"end":{"line":707,"column":21}},"112":{"start":{"line":696,"column":24},"end":{"line":696,"column":46}},"113":{"start":{"line":697,"column":26},"end":{"line":707,"column":21}},"114":{"start":{"line":706,"column":24},"end":{"line":706,"column":46}},"115":{"start":{"line":715,"column":20},"end":{"line":728,"column":21}},"116":{"start":{"line":716,"column":24},"end":{"line":716,"column":86}},"117":{"start":{"line":719,"column":24},"end":{"line":723,"column":25}},"118":{"start":{"line":720,"column":28},"end":{"line":720,"column":125}},"119":{"start":{"line":722,"column":28},"end":{"line":722,"column":125}},"120":{"start":{"line":724,"column":24},"end":{"line":724,"column":74}},"121":{"start":{"line":725,"column":24},"end":{"line":725,"column":52}},"122":{"start":{"line":726,"column":24},"end":{"line":726,"column":65}},"123":{"start":{"line":727,"column":24},"end":{"line":727,"column":31}},"124":{"start":{"line":732,"column":16},"end":{"line":732,"column":56}},"125":{"start":{"line":741,"column":16},"end":{"line":747,"column":17}},"126":{"start":{"line":742,"column":20},"end":{"line":742,"column":76}},"127":{"start":{"line":743,"column":23},"end":{"line":747,"column":17}},"128":{"start":{"line":744,"column":20},"end":{"line":744,"column":76}},"129":{"start":{"line":746,"column":20},"end":{"line":746,"column":40}},"130":{"start":{"line":749,"column":16},"end":{"line":749,"column":60}},"131":{"start":{"line":765,"column":12},"end":{"line":776,"column":13}},"132":{"start":{"line":766,"column":16},"end":{"line":766,"column":44}},"133":{"start":{"line":768,"column":16},"end":{"line":771,"column":17}},"134":{"start":{"line":770,"column":20},"end":{"line":770,"column":55}},"135":{"start":{"line":772,"column":19},"end":{"line":776,"column":13}},"136":{"start":{"line":773,"column":16},"end":{"line":773,"column":50}},"137":{"start":{"line":774,"column":19},"end":{"line":776,"column":13}},"138":{"start":{"line":775,"column":16},"end":{"line":775,"column":50}},"139":{"start":{"line":787,"column":12},"end":{"line":787,"column":66}},"140":{"start":{"line":802,"column":12},"end":{"line":802,"column":40}},"141":{"start":{"line":803,"column":16},"end":{"line":819,"column":18}},"142":{"start":{"line":809,"column":24},"end":{"line":809,"column":54}},"143":{"start":{"line":812,"column":24},"end":{"line":817,"column":25}},"144":{"start":{"line":813,"column":28},"end":{"line":813,"column":79}},"145":{"start":{"line":815,"column":28},"end":{"line":815,"column":66}},"146":{"start":{"line":816,"column":28},"end":{"line":816,"column":75}},"147":{"start":{"line":835,"column":12},"end":{"line":839,"column":41}},"148":{"start":{"line":841,"column":12},"end":{"line":841,"column":38}},"149":{"start":{"line":842,"column":12},"end":{"line":842,"column":38}},"150":{"start":{"line":843,"column":12},"end":{"line":848,"column":13}},"151":{"start":{"line":844,"column":16},"end":{"line":844,"column":86}},"152":{"start":{"line":846,"column":16},"end":{"line":846,"column":75}},"153":{"start":{"line":847,"column":16},"end":{"line":847,"column":74}},"154":{"start":{"line":860,"column":12},"end":{"line":860,"column":29}},"155":{"start":{"line":861,"column":12},"end":{"line":861,"column":40}},"156":{"start":{"line":862,"column":12},"end":{"line":862,"column":36}},"157":{"start":{"line":863,"column":12},"end":{"line":863,"column":48}},"158":{"start":{"line":864,"column":12},"end":{"line":864,"column":63}},"159":{"start":{"line":865,"column":12},"end":{"line":865,"column":64}},"160":{"start":{"line":879,"column":12},"end":{"line":887,"column":14}},"161":{"start":{"line":882,"column":16},"end":{"line":882,"column":34}},"162":{"start":{"line":883,"column":16},"end":{"line":883,"column":94}},"163":{"start":{"line":884,"column":16},"end":{"line":884,"column":95}},"164":{"start":{"line":885,"column":16},"end":{"line":885,"column":65}},"165":{"start":{"line":886,"column":16},"end":{"line":886,"column":66}},"166":{"start":{"line":888,"column":12},"end":{"line":888,"column":46}},"167":{"start":{"line":889,"column":12},"end":{"line":889,"column":71}},"168":{"start":{"line":890,"column":12},"end":{"line":890,"column":71}},"169":{"start":{"line":891,"column":12},"end":{"line":891,"column":83}},"170":{"start":{"line":895,"column":12},"end":{"line":895,"column":75}},"171":{"start":{"line":896,"column":12},"end":{"line":896,"column":79}},"172":{"start":{"line":897,"column":12},"end":{"line":897,"column":79}},"173":{"start":{"line":898,"column":12},"end":{"line":898,"column":91}},"174":{"start":{"line":899,"column":12},"end":{"line":899,"column":85}},"175":{"start":{"line":901,"column":12},"end":{"line":901,"column":75}},"176":{"start":{"line":902,"column":12},"end":{"line":902,"column":67}},"177":{"start":{"line":903,"column":12},"end":{"line":903,"column":66}},"178":{"start":{"line":910,"column":12},"end":{"line":910,"column":105}},"179":{"start":{"line":911,"column":12},"end":{"line":911,"column":106}},"180":{"start":{"line":912,"column":12},"end":{"line":912,"column":97}},"181":{"start":{"line":923,"column":12},"end":{"line":924,"column":69}},"182":{"start":{"line":925,"column":12},"end":{"line":928,"column":13}},"183":{"start":{"line":926,"column":16},"end":{"line":926,"column":90}},"184":{"start":{"line":927,"column":16},"end":{"line":927,"column":41}},"185":{"start":{"line":929,"column":12},"end":{"line":929,"column":36}},"186":{"start":{"line":930,"column":12},"end":{"line":930,"column":92}},"187":{"start":{"line":940,"column":12},"end":{"line":941,"column":67}},"188":{"start":{"line":942,"column":12},"end":{"line":945,"column":13}},"189":{"start":{"line":943,"column":16},"end":{"line":943,"column":66}},"190":{"start":{"line":944,"column":16},"end":{"line":944,"column":104}},"191":{"start":{"line":946,"column":12},"end":{"line":946,"column":34}},"192":{"start":{"line":957,"column":12},"end":{"line":958,"column":67}},"193":{"start":{"line":959,"column":12},"end":{"line":961,"column":13}},"194":{"start":{"line":960,"column":16},"end":{"line":960,"column":103}},"195":{"start":{"line":962,"column":12},"end":{"line":962,"column":38}},"196":{"start":{"line":972,"column":12},"end":{"line":973,"column":83}},"197":{"start":{"line":974,"column":12},"end":{"line":977,"column":13}},"198":{"start":{"line":975,"column":16},"end":{"line":975,"column":105}},"199":{"start":{"line":976,"column":16},"end":{"line":976,"column":81}},"200":{"start":{"line":978,"column":12},"end":{"line":978,"column":50}},"201":{"start":{"line":979,"column":12},"end":{"line":979,"column":95}},"202":{"start":{"line":989,"column":12},"end":{"line":991,"column":71}},"203":{"start":{"line":992,"column":12},"end":{"line":997,"column":13}},"204":{"start":{"line":993,"column":16},"end":{"line":993,"column":92}},"205":{"start":{"line":994,"column":16},"end":{"line":994,"column":64}},"206":{"start":{"line":995,"column":16},"end":{"line":995,"column":100}},"207":{"start":{"line":996,"column":16},"end":{"line":996,"column":75}},"208":{"start":{"line":998,"column":12},"end":{"line":998,"column":38}},"209":{"start":{"line":1011,"column":12},"end":{"line":1011,"column":88}},"210":{"start":{"line":1023,"column":13},"end":{"line":1023,"column":89}},"211":{"start":{"line":1037,"column":12},"end":{"line":1037,"column":47}},"212":{"start":{"line":1051,"column":12},"end":{"line":1051,"column":31}},"213":{"start":{"line":1052,"column":12},"end":{"line":1071,"column":13}},"214":{"start":{"line":1054,"column":20},"end":{"line":1054,"column":38}},"215":{"start":{"line":1055,"column":20},"end":{"line":1055,"column":26}},"216":{"start":{"line":1057,"column":20},"end":{"line":1057,"column":38}},"217":{"start":{"line":1058,"column":20},"end":{"line":1058,"column":26}},"218":{"start":{"line":1060,"column":20},"end":{"line":1060,"column":37}},"219":{"start":{"line":1061,"column":20},"end":{"line":1061,"column":26}},"220":{"start":{"line":1063,"column":20},"end":{"line":1063,"column":37}},"221":{"start":{"line":1064,"column":20},"end":{"line":1064,"column":26}},"222":{"start":{"line":1066,"column":20},"end":{"line":1066,"column":38}},"223":{"start":{"line":1067,"column":20},"end":{"line":1067,"column":26}},"224":{"start":{"line":1069,"column":20},"end":{"line":1069,"column":38}},"225":{"start":{"line":1070,"column":20},"end":{"line":1070,"column":26}},"226":{"start":{"line":1082,"column":12},"end":{"line":1082,"column":31}},"227":{"start":{"line":1083,"column":12},"end":{"line":1090,"column":13}},"228":{"start":{"line":1085,"column":20},"end":{"line":1085,"column":38}},"229":{"start":{"line":1086,"column":20},"end":{"line":1086,"column":26}},"230":{"start":{"line":1088,"column":20},"end":{"line":1088,"column":38}},"231":{"start":{"line":1089,"column":20},"end":{"line":1089,"column":26}},"232":{"start":{"line":1101,"column":12},"end":{"line":1101,"column":31}},"233":{"start":{"line":1102,"column":12},"end":{"line":1109,"column":13}},"234":{"start":{"line":1104,"column":20},"end":{"line":1104,"column":37}},"235":{"start":{"line":1105,"column":20},"end":{"line":1105,"column":26}},"236":{"start":{"line":1107,"column":20},"end":{"line":1107,"column":37}},"237":{"start":{"line":1108,"column":20},"end":{"line":1108,"column":26}},"238":{"start":{"line":1119,"column":16},"end":{"line":1119,"column":73}},"239":{"start":{"line":1120,"column":16},"end":{"line":1120,"column":59}},"240":{"start":{"line":1125,"column":16},"end":{"line":1125,"column":81}},"241":{"start":{"line":1135,"column":16},"end":{"line":1135,"column":73}},"242":{"start":{"line":1136,"column":16},"end":{"line":1136,"column":59}},"243":{"start":{"line":1137,"column":16},"end":{"line":1137,"column":81}},"244":{"start":{"line":1147,"column":16},"end":{"line":1147,"column":73}},"245":{"start":{"line":1148,"column":16},"end":{"line":1148,"column":59}},"246":{"start":{"line":1149,"column":16},"end":{"line":1149,"column":81}},"247":{"start":{"line":1159,"column":16},"end":{"line":1159,"column":73}},"248":{"start":{"line":1160,"column":16},"end":{"line":1160,"column":59}},"249":{"start":{"line":1161,"column":16},"end":{"line":1161,"column":81}},"250":{"start":{"line":1171,"column":16},"end":{"line":1171,"column":51}},"251":{"start":{"line":1181,"column":16},"end":{"line":1181,"column":51}},"252":{"start":{"line":1191,"column":12},"end":{"line":1193,"column":13}},"253":{"start":{"line":1192,"column":16},"end":{"line":1192,"column":36}},"254":{"start":{"line":1194,"column":12},"end":{"line":1194,"column":51}},"255":{"start":{"line":1195,"column":12},"end":{"line":1195,"column":64}},"256":{"start":{"line":1196,"column":12},"end":{"line":1196,"column":37}},"257":{"start":{"line":1209,"column":12},"end":{"line":1210,"column":84}},"258":{"start":{"line":1211,"column":12},"end":{"line":1211,"column":82}},"259":{"start":{"line":1223,"column":12},"end":{"line":1227,"column":13}},"260":{"start":{"line":1224,"column":16},"end":{"line":1224,"column":38}},"261":{"start":{"line":1225,"column":18},"end":{"line":1227,"column":13}},"262":{"start":{"line":1226,"column":16},"end":{"line":1226,"column":28}},"263":{"start":{"line":1228,"column":12},"end":{"line":1228,"column":65}},"264":{"start":{"line":1229,"column":12},"end":{"line":1229,"column":78}},"265":{"start":{"line":1231,"column":12},"end":{"line":1231,"column":64}},"266":{"start":{"line":1242,"column":12},"end":{"line":1242,"column":39}},"267":{"start":{"line":1267,"column":12},"end":{"line":1267,"column":55}},"268":{"start":{"line":1268,"column":12},"end":{"line":1272,"column":13}},"269":{"start":{"line":1269,"column":16},"end":{"line":1269,"column":52}},"270":{"start":{"line":1270,"column":16},"end":{"line":1270,"column":68}},"271":{"start":{"line":1271,"column":16},"end":{"line":1271,"column":75}},"272":{"start":{"line":1273,"column":12},"end":{"line":1273,"column":82}},"273":{"start":{"line":1274,"column":12},"end":{"line":1274,"column":55}},"274":{"start":{"line":1275,"column":12},"end":{"line":1275,"column":56}},"275":{"start":{"line":1276,"column":12},"end":{"line":1276,"column":64}},"276":{"start":{"line":1277,"column":12},"end":{"line":1291,"column":13}},"277":{"start":{"line":1278,"column":16},"end":{"line":1278,"column":73}},"278":{"start":{"line":1279,"column":16},"end":{"line":1281,"column":17}},"279":{"start":{"line":1280,"column":20},"end":{"line":1280,"column":90}},"280":{"start":{"line":1282,"column":16},"end":{"line":1282,"column":70}},"281":{"start":{"line":1284,"column":16},"end":{"line":1286,"column":17}},"282":{"start":{"line":1285,"column":20},"end":{"line":1285,"column":87}},"283":{"start":{"line":1287,"column":16},"end":{"line":1287,"column":76}},"284":{"start":{"line":1288,"column":16},"end":{"line":1290,"column":17}},"285":{"start":{"line":1289,"column":20},"end":{"line":1289,"column":71}},"286":{"start":{"line":1303,"column":12},"end":{"line":1304,"column":38}},"287":{"start":{"line":1305,"column":12},"end":{"line":1305,"column":68}},"288":{"start":{"line":1308,"column":4},"end":{"line":1308,"column":18}}},"branchMap":{"1":{"line":12,"type":"if","locations":[{"start":{"line":12,"column":4},"end":{"line":12,"column":4}},{"start":{"line":12,"column":4},"end":{"line":12,"column":4}}]},"2":{"line":12,"type":"binary-expr","locations":[{"start":{"line":12,"column":8},"end":{"line":12,"column":15}},{"start":{"line":12,"column":19},"end":{"line":12,"column":30}}]},"3":{"line":282,"type":"if","locations":[{"start":{"line":282,"column":1},"end":{"line":282,"column":1}},{"start":{"line":282,"column":1},"end":{"line":282,"column":1}}]},"4":{"line":448,"type":"cond-expr","locations":[{"start":{"line":448,"column":43},"end":{"line":448,"column":50}},{"start":{"line":448,"column":53},"end":{"line":448,"column":61}}]},"5":{"line":494,"type":"if","locations":[{"start":{"line":494,"column":12},"end":{"line":494,"column":12}},{"start":{"line":494,"column":12},"end":{"line":494,"column":12}}]},"6":{"line":512,"type":"cond-expr","locations":[{"start":{"line":512,"column":62},"end":{"line":512,"column":70}},{"start":{"line":512,"column":73},"end":{"line":512,"column":87}}]},"7":{"line":583,"type":"if","locations":[{"start":{"line":583,"column":12},"end":{"line":583,"column":12}},{"start":{"line":583,"column":12},"end":{"line":583,"column":12}}]},"8":{"line":583,"type":"binary-expr","locations":[{"start":{"line":583,"column":16},"end":{"line":583,"column":35}},{"start":{"line":583,"column":41},"end":{"line":583,"column":49}}]},"9":{"line":584,"type":"if","locations":[{"start":{"line":584,"column":16},"end":{"line":584,"column":16}},{"start":{"line":584,"column":16},"end":{"line":584,"column":16}}]},"10":{"line":587,"type":"if","locations":[{"start":{"line":587,"column":18},"end":{"line":587,"column":18}},{"start":{"line":587,"column":18},"end":{"line":587,"column":18}}]},"11":{"line":587,"type":"binary-expr","locations":[{"start":{"line":587,"column":22},"end":{"line":587,"column":40}},{"start":{"line":587,"column":46},"end":{"line":587,"column":55}}]},"12":{"line":588,"type":"if","locations":[{"start":{"line":588,"column":16},"end":{"line":588,"column":16}},{"start":{"line":588,"column":16},"end":{"line":588,"column":16}}]},"13":{"line":600,"type":"if","locations":[{"start":{"line":600,"column":12},"end":{"line":600,"column":12}},{"start":{"line":600,"column":12},"end":{"line":600,"column":12}}]},"14":{"line":602,"type":"if","locations":[{"start":{"line":602,"column":18},"end":{"line":602,"column":18}},{"start":{"line":602,"column":18},"end":{"line":602,"column":18}}]},"15":{"line":619,"type":"if","locations":[{"start":{"line":619,"column":12},"end":{"line":619,"column":12}},{"start":{"line":619,"column":12},"end":{"line":619,"column":12}}]},"16":{"line":630,"type":"if","locations":[{"start":{"line":630,"column":16},"end":{"line":630,"column":16}},{"start":{"line":630,"column":16},"end":{"line":630,"column":16}}]},"17":{"line":648,"type":"if","locations":[{"start":{"line":648,"column":16},"end":{"line":648,"column":16}},{"start":{"line":648,"column":16},"end":{"line":648,"column":16}}]},"18":{"line":653,"type":"if","locations":[{"start":{"line":653,"column":20},"end":{"line":653,"column":20}},{"start":{"line":653,"column":20},"end":{"line":653,"column":20}}]},"19":{"line":656,"type":"if","locations":[{"start":{"line":656,"column":24},"end":{"line":656,"column":24}},{"start":{"line":656,"column":24},"end":{"line":656,"column":24}}]},"20":{"line":656,"type":"binary-expr","locations":[{"start":{"line":656,"column":28},"end":{"line":656,"column":70}},{"start":{"line":657,"column":28},"end":{"line":657,"column":70}}]},"21":{"line":660,"type":"cond-expr","locations":[{"start":{"line":660,"column":80},"end":{"line":660,"column":102}},{"start":{"line":660,"column":107},"end":{"line":660,"column":129}}]},"22":{"line":665,"type":"if","locations":[{"start":{"line":665,"column":26},"end":{"line":665,"column":26}},{"start":{"line":665,"column":26},"end":{"line":665,"column":26}}]},"23":{"line":666,"type":"binary-expr","locations":[{"start":{"line":666,"column":29},"end":{"line":666,"column":73}},{"start":{"line":667,"column":29},"end":{"line":667,"column":54}}]},"24":{"line":673,"type":"if","locations":[{"start":{"line":673,"column":21},"end":{"line":673,"column":21}},{"start":{"line":673,"column":21},"end":{"line":673,"column":21}}]},"25":{"line":678,"type":"if","locations":[{"start":{"line":678,"column":20},"end":{"line":678,"column":20}},{"start":{"line":678,"column":20},"end":{"line":678,"column":20}}]},"26":{"line":686,"type":"if","locations":[{"start":{"line":686,"column":21},"end":{"line":686,"column":21}},{"start":{"line":686,"column":21},"end":{"line":686,"column":21}}]},"27":{"line":691,"type":"if","locations":[{"start":{"line":691,"column":20},"end":{"line":691,"column":20}},{"start":{"line":691,"column":20},"end":{"line":691,"column":20}}]},"28":{"line":692,"type":"binary-expr","locations":[{"start":{"line":692,"column":24},"end":{"line":692,"column":47}},{"start":{"line":693,"column":24},"end":{"line":693,"column":52}}]},"29":{"line":697,"type":"if","locations":[{"start":{"line":697,"column":26},"end":{"line":697,"column":26}},{"start":{"line":697,"column":26},"end":{"line":697,"column":26}}]},"30":{"line":698,"type":"binary-expr","locations":[{"start":{"line":698,"column":25},"end":{"line":698,"column":48}},{"start":{"line":701,"column":25},"end":{"line":701,"column":52}}]},"31":{"line":715,"type":"if","locations":[{"start":{"line":715,"column":20},"end":{"line":715,"column":20}},{"start":{"line":715,"column":20},"end":{"line":715,"column":20}}]},"32":{"line":715,"type":"binary-expr","locations":[{"start":{"line":715,"column":25},"end":{"line":715,"column":37}},{"start":{"line":715,"column":43},"end":{"line":715,"column":55}}]},"33":{"line":719,"type":"if","locations":[{"start":{"line":719,"column":24},"end":{"line":719,"column":24}},{"start":{"line":719,"column":24},"end":{"line":719,"column":24}}]},"34":{"line":720,"type":"cond-expr","locations":[{"start":{"line":720,"column":91},"end":{"line":720,"column":106}},{"start":{"line":720,"column":109},"end":{"line":720,"column":124}}]},"35":{"line":720,"type":"binary-expr","locations":[{"start":{"line":720,"column":41},"end":{"line":720,"column":53}},{"start":{"line":720,"column":59},"end":{"line":720,"column":86}}]},"36":{"line":722,"type":"cond-expr","locations":[{"start":{"line":722,"column":91},"end":{"line":722,"column":106}},{"start":{"line":722,"column":109},"end":{"line":722,"column":124}}]},"37":{"line":722,"type":"binary-expr","locations":[{"start":{"line":722,"column":41},"end":{"line":722,"column":53}},{"start":{"line":722,"column":59},"end":{"line":722,"column":86}}]},"38":{"line":741,"type":"if","locations":[{"start":{"line":741,"column":16},"end":{"line":741,"column":16}},{"start":{"line":741,"column":16},"end":{"line":741,"column":16}}]},"39":{"line":743,"type":"if","locations":[{"start":{"line":743,"column":23},"end":{"line":743,"column":23}},{"start":{"line":743,"column":23},"end":{"line":743,"column":23}}]},"40":{"line":765,"type":"if","locations":[{"start":{"line":765,"column":12},"end":{"line":765,"column":12}},{"start":{"line":765,"column":12},"end":{"line":765,"column":12}}]},"41":{"line":765,"type":"binary-expr","locations":[{"start":{"line":765,"column":16},"end":{"line":765,"column":42}},{"start":{"line":765,"column":48},"end":{"line":765,"column":74}}]},"42":{"line":768,"type":"if","locations":[{"start":{"line":768,"column":16},"end":{"line":768,"column":16}},{"start":{"line":768,"column":16},"end":{"line":768,"column":16}}]},"43":{"line":772,"type":"if","locations":[{"start":{"line":772,"column":19},"end":{"line":772,"column":19}},{"start":{"line":772,"column":19},"end":{"line":772,"column":19}}]},"44":{"line":774,"type":"if","locations":[{"start":{"line":774,"column":19},"end":{"line":774,"column":19}},{"start":{"line":774,"column":19},"end":{"line":774,"column":19}}]},"45":{"line":812,"type":"if","locations":[{"start":{"line":812,"column":24},"end":{"line":812,"column":24}},{"start":{"line":812,"column":24},"end":{"line":812,"column":24}}]},"46":{"line":812,"type":"binary-expr","locations":[{"start":{"line":812,"column":28},"end":{"line":812,"column":50}},{"start":{"line":812,"column":56},"end":{"line":812,"column":78}}]},"47":{"line":843,"type":"if","locations":[{"start":{"line":843,"column":12},"end":{"line":843,"column":12}},{"start":{"line":843,"column":12},"end":{"line":843,"column":12}}]},"48":{"line":925,"type":"if","locations":[{"start":{"line":925,"column":12},"end":{"line":925,"column":12}},{"start":{"line":925,"column":12},"end":{"line":925,"column":12}}]},"49":{"line":942,"type":"if","locations":[{"start":{"line":942,"column":12},"end":{"line":942,"column":12}},{"start":{"line":942,"column":12},"end":{"line":942,"column":12}}]},"50":{"line":959,"type":"if","locations":[{"start":{"line":959,"column":12},"end":{"line":959,"column":12}},{"start":{"line":959,"column":12},"end":{"line":959,"column":12}}]},"51":{"line":974,"type":"if","locations":[{"start":{"line":974,"column":12},"end":{"line":974,"column":12}},{"start":{"line":974,"column":12},"end":{"line":974,"column":12}}]},"52":{"line":992,"type":"if","locations":[{"start":{"line":992,"column":12},"end":{"line":992,"column":12}},{"start":{"line":992,"column":12},"end":{"line":992,"column":12}}]},"53":{"line":1052,"type":"switch","locations":[{"start":{"line":1053,"column":16},"end":{"line":1055,"column":26}},{"start":{"line":1056,"column":16},"end":{"line":1058,"column":26}},{"start":{"line":1059,"column":16},"end":{"line":1061,"column":26}},{"start":{"line":1062,"column":16},"end":{"line":1064,"column":26}},{"start":{"line":1065,"column":16},"end":{"line":1067,"column":26}},{"start":{"line":1068,"column":16},"end":{"line":1070,"column":26}}]},"54":{"line":1083,"type":"switch","locations":[{"start":{"line":1084,"column":16},"end":{"line":1086,"column":26}},{"start":{"line":1087,"column":16},"end":{"line":1089,"column":26}}]},"55":{"line":1102,"type":"switch","locations":[{"start":{"line":1103,"column":16},"end":{"line":1105,"column":26}},{"start":{"line":1106,"column":16},"end":{"line":1108,"column":26}}]},"56":{"line":1191,"type":"if","locations":[{"start":{"line":1191,"column":12},"end":{"line":1191,"column":12}},{"start":{"line":1191,"column":12},"end":{"line":1191,"column":12}}]},"57":{"line":1211,"type":"cond-expr","locations":[{"start":{"line":1211,"column":43},"end":{"line":1211,"column":63}},{"start":{"line":1211,"column":67},"end":{"line":1211,"column":81}}]},"58":{"line":1223,"type":"if","locations":[{"start":{"line":1223,"column":12},"end":{"line":1223,"column":12}},{"start":{"line":1223,"column":12},"end":{"line":1223,"column":12}}]},"59":{"line":1225,"type":"if","locations":[{"start":{"line":1225,"column":18},"end":{"line":1225,"column":18}},{"start":{"line":1225,"column":18},"end":{"line":1225,"column":18}}]},"60":{"line":1268,"type":"if","locations":[{"start":{"line":1268,"column":12},"end":{"line":1268,"column":12}},{"start":{"line":1268,"column":12},"end":{"line":1268,"column":12}}]},"61":{"line":1277,"type":"if","locations":[{"start":{"line":1277,"column":12},"end":{"line":1277,"column":12}},{"start":{"line":1277,"column":12},"end":{"line":1277,"column":12}}]},"62":{"line":1277,"type":"binary-expr","locations":[{"start":{"line":1277,"column":16},"end":{"line":1277,"column":38}},{"start":{"line":1277,"column":44},"end":{"line":1277,"column":66}}]},"63":{"line":1279,"type":"if","locations":[{"start":{"line":1279,"column":16},"end":{"line":1279,"column":16}},{"start":{"line":1279,"column":16},"end":{"line":1279,"column":16}}]},"64":{"line":1284,"type":"if","locations":[{"start":{"line":1284,"column":16},"end":{"line":1284,"column":16}},{"start":{"line":1284,"column":16},"end":{"line":1284,"column":16}}]},"65":{"line":1288,"type":"if","locations":[{"start":{"line":1288,"column":16},"end":{"line":1288,"column":16}},{"start":{"line":1288,"column":16},"end":{"line":1288,"column":16}}]},"66":{"line":1305,"type":"binary-expr","locations":[{"start":{"line":1305,"column":20},"end":{"line":1305,"column":38}},{"start":{"line":1305,"column":42},"end":{"line":1305,"column":52}},{"start":{"line":1305,"column":56},"end":{"line":1305,"column":66}}]}},"code":["(function () { YUI.add('dial', function (Y, NAME) {","","/**"," * Create a circular dial value range input visualized as a draggable handle on a"," * background element."," *"," * @module dial"," */"," var supportsVML = false;"," //testVMLNode;",""," if (Y.UA.ie && Y.UA.ie < 9){"," supportsVML = true;"," }",""," var Lang = Y.Lang,"," Widget = Y.Widget,"," Node = Y.Node;",""," /**"," * Create a dial to represent an input control capable of representing a"," * series of intermediate states based on the position of the Dial's handle."," * These states are typically aligned to a value algorithm whereby the angle of the handle's"," * position corresponds to a given value."," *"," * @class Dial"," * @extends Widget"," * @param config {Object} Configuration object"," * @constructor"," */"," function Dial(config) {"," Dial.superclass.constructor.apply(this, arguments);"," }",""," // Y.Dial static properties",""," /**"," * The identity of the widget."," *"," * @property NAME"," * @type String"," * @default 'dial'"," * @readOnly"," * @protected"," * @static"," */"," Dial.NAME = \"dial\";",""," /**"," * Static property used to define the default attribute configuration of"," * the Widget."," *"," * @property ATTRS"," * @type {Object}"," * @protected"," * @static"," */"," Dial.ATTRS = {",""," /**"," * minimum value allowed"," *"," * @attribute min"," * @type {Number}"," * @default -220"," */"," min : {"," value:-220"," },",""," /**"," * maximum value allowed"," *"," * @attribute max"," * @type {Number}"," * @default 220"," */"," max : {"," value:220"," },",""," /**"," * diameter of the circular background object."," * Other objects scale accordingly."," * Set this only before rendering."," *"," * @attribute diameter"," * @type {Number} the number of px in diameter"," * @default 100"," * @writeOnce"," */"," diameter : {"," value:100"," },",""," /**"," * diameter of the handle object which users drag to change the value."," * Dial sets the pixel dimension of the handle equal to handleDiameter * diameter."," * Set this only before rendering."," *"," * @attribute handleDiameter"," * @type {Number}"," * @default 0.2"," * @writeOnce"," */"," handleDiameter : {"," value:0.2"," },",""," /**"," * diameter of the marker object which follows the angle of the handle during value changes."," * Dial sets the pixel dimension of the marker equal to markerDiameter * diameter."," * Set this only before rendering."," *"," * @attribute markerDiameter"," * @type {Number}"," * @default 0.1"," * @writeOnce"," */"," markerDiameter : {"," value:0.1"," },",""," /**"," * diameter of the center button object."," * Dial sets the pixel dimension of the centerButton equal to centerButtonDiameter * diameter."," * Set this only before rendering."," *"," * @attribute centerButtonDiameter"," * @type {Number}"," * @default 0.1"," * @writeOnce"," */"," centerButtonDiameter : {"," value:0.5"," },",""," /**"," * initial value of the Dial"," *"," * @attribute value"," * @type {Number}"," * @default 0"," */"," value : {"," value:0,"," validator: function(val) {"," return this._validateValue(val);"," }"," },",""," /**"," * amount to increment/decrement the dial value"," * when the arrow up/down/left/right keys are pressed"," *"," * @attribute minorStep"," * @type {Number}"," * @default 1"," */"," minorStep : {"," value:1"," },",""," /**"," * amount to increment/decrement the dial value"," * when the page up/down keys are pressed"," *"," * @attribute majorStep"," * @type {Number}"," * @default 10"," */"," majorStep : {"," value:10"," },",""," /**"," * number of value increments in one 360 degree revolution"," * of the handle around the dial"," *"," * @attribute stepsPerRevolution"," * @type {Number}"," * @default 100"," */"," stepsPerRevolution : {"," value:100"," },",""," /**"," * number of decimal places of accuracy in the value"," *"," * @attribute decimalPlaces"," * @type {Number}"," * @default 0"," */"," decimalPlaces : {"," value:0"," },",""," /**"," * visible strings for the dial UI. This attribute is"," * defined by the base Widget class but has an empty value. The"," * Dial is simply providing a default value for the attribute."," * Gets localized strings in the current language"," *"," * @attribute strings"," * @type {Object} the values are HTML strings"," * @default {label: 'My label', resetStr: 'Reset', tooltipHandle: 'Drag to set value'}"," */"," strings: {"," valueFn: function () {"," return Y.Intl.get('dial');"," }"," },",""," /**"," * distance from the center of the dial to the"," * center of the marker and handle, when at rest."," * The value is a percent of the radius of the dial."," *"," * @attribute handleDistance"," * @type {number}"," * @default 0.75"," */"," handleDistance:{"," value:0.75"," }",""," };",""," /**"," * returns a properly formed yui class name"," *"," * @method"," * @param {String} string to be appended at the end of class name"," * @return"," * @private"," */"," function makeClassName(str) {"," return Y.ClassNameManager.getClassName(Dial.NAME, str);"," }","","\t /** array of static constants used to identify the classname applied to the Dial DOM objects","\t *"," * @property CSS_CLASSES"," * @type {Array}"," * @private"," * @static"," */"," Dial.CSS_CLASSES = {"," label : makeClassName(\"label\"),"," labelString : makeClassName(\"label-string\"),"," valueString : makeClassName(\"value-string\"),"," northMark : makeClassName(\"north-mark\"),"," ring : makeClassName('ring'),"," ringVml : makeClassName('ring-vml'),"," marker : makeClassName(\"marker\"),"," markerVml : makeClassName(\"marker-vml\"),"," markerMaxMin : makeClassName(\"marker-max-min\"),"," centerButton : makeClassName(\"center-button\"),"," centerButtonVml : makeClassName('center-button-vml'),"," resetString : makeClassName(\"reset-string\"),"," handle : makeClassName(\"handle\"),"," handleVml : makeClassName(\"handle-vml\"),"," hidden : makeClassName(\"hidden\"),"," dragging : Y.ClassNameManager.getClassName(\"dd-dragging\")"," };",""," /* Static constants used to define the markup templates used to create Dial DOM elements */","",""," /**"," * template that will contain the Dial's label."," *"," * @property LABEL_TEMPLATE"," * @type {String}"," * @default <div class=\"[...-label]\"><span id=\"\" class=\"[...-label-string]\">{label}</span><span class=\"[...-value-string]\"></span></div>"," * @protected"," */","","\tDial.LABEL_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.label + '\"><span id=\"\" class=\"' + Dial.CSS_CLASSES.labelString + '\">{label}</span><span class=\"' + Dial.CSS_CLASSES.valueString + '\"></span></div>';","","\tif(supportsVML === false){","\t\t/**","\t\t * template that will contain the Dial's background ring.","\t\t *","\t\t * @property RING_TEMPLATE","\t\t * @type {String}","\t\t * @default <div class=\"[...-ring]\"><div class=\"[...-northMark]\"></div></div>","\t\t * @protected","\t\t */","\t\tDial.RING_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.ring + '\"><div class=\"' + Dial.CSS_CLASSES.northMark + '\"></div></div>';","","\t\t/**","\t\t * template that will contain the Dial's current angle marker.","\t\t *","\t\t * @property MARKER_TEMPLATE","\t\t * @type {String}","\t\t * @default <div class=\"[...-marker] [...-marker-hidden]\"><div class=\"[...-markerUser]\"></div></div>","\t\t * @protected","\t\t */","\t\tDial.MARKER_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.marker + ' ' + Dial.CSS_CLASSES.hidden + '\"></div>';","","\t\t/**","\t\t * template that will contain the Dial's center button.","\t\t *","\t\t * @property CENTER_BUTTON_TEMPLATE","\t\t * @type {String}","\t\t * @default <div class=\"[...-centerButton]\"><div class=\"[...-resetString]\">' + Y.Lang.sub('{resetStr}', Dial.ATTRS.strings.value) + '</div></div>","\t\t * @protected","\t\t */","\t\tDial.CENTER_BUTTON_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.centerButton + '\"><div class=\"' + Dial.CSS_CLASSES.resetString + ' ' + Dial.CSS_CLASSES.hidden + '\">{resetStr}</div></div>';","","\t\t/**","\t\t * template that will contain the Dial's handle.","\t\t *","\t\t * @property HANDLE_TEMPLATE","\t\t * @type {String}","\t\t * @default <div class=\"[...-handle]\"><div class=\"[...-handleUser]\" aria-labelledby=\"\" aria-valuetext=\"\" aria-valuemax=\"\" aria-valuemin=\"\" aria-valuenow=\"\" role=\"slider\" tabindex=\"0\"></div></div>';// title=\"{tooltipHandle}\"","\t\t * @protected","\t\t */","\t\tDial.HANDLE_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.handle + '\" aria-labelledby=\"\" aria-valuetext=\"\" aria-valuemax=\"\" aria-valuemin=\"\" aria-valuenow=\"\" role=\"slider\" tabindex=\"0\" title=\"{tooltipHandle}\">';","","\t}else{ // VML case","\t\tDial.RING_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.ring + ' ' + Dial.CSS_CLASSES.ringVml + '\">'+","\t\t\t\t\t\t\t\t'<div class=\"' + Dial.CSS_CLASSES.northMark + '\"></div>'+","\t\t\t\t\t\t\t\t\t'<v:oval strokecolor=\"#ceccc0\" strokeweight=\"1px\"><v:fill type=gradient color=\"#8B8A7F\" color2=\"#EDEDEB\" angle=\"45\"/></v:oval>'+","\t\t\t\t\t\t\t\t'</div>'+","\t\t\t\t\t\t\t\t'';","\t\tDial.MARKER_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.markerVml + ' ' + Dial.CSS_CLASSES.hidden + '\">'+","\t\t\t\t\t\t\t\t\t\t'<v:oval stroked=\"false\">'+","\t\t\t\t\t\t\t\t\t\t\t'<v:fill opacity=\"20%\" color=\"#000\"/>'+","\t\t\t\t\t\t\t\t\t\t'</v:oval>'+","\t\t\t\t\t\t\t\t'</div>'+","\t\t\t\t\t\t\t\t'';","\t\tDial.CENTER_BUTTON_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.centerButton + ' ' + Dial.CSS_CLASSES.centerButtonVml + '\">'+","\t\t\t\t\t\t\t\t\t\t\t'<v:oval strokecolor=\"#ceccc0\" strokeweight=\"1px\">'+","\t\t\t\t\t\t\t\t\t\t\t\t'<v:fill type=gradient color=\"#C7C5B9\" color2=\"#fefcf6\" colors=\"35% #d9d7cb, 65% #fefcf6\" angle=\"45\"/>'+","\t\t\t\t\t\t\t\t\t\t\t\t'<v:shadow on=\"True\" color=\"#000\" opacity=\"10%\" offset=\"2px, 2px\"/>'+","\t\t\t\t\t\t\t\t\t\t\t'</v:oval>'+","\t\t\t\t\t\t\t\t\t\t\t'<div class=\"' + Dial.CSS_CLASSES.resetString + ' ' + Dial.CSS_CLASSES.hidden + '\">{resetStr}</div>'+","\t\t\t\t\t\t\t\t\t'</div>'+","\t\t\t\t\t\t\t\t\t'';","\t\tDial.HANDLE_TEMPLATE = '<div class=\"' + Dial.CSS_CLASSES.handleVml + '\" aria-labelledby=\"\" aria-valuetext=\"\" aria-valuemax=\"\" aria-valuemin=\"\" aria-valuenow=\"\" role=\"slider\" tabindex=\"0\" title=\"{tooltipHandle}\">'+","\t\t\t\t\t\t\t\t\t\t'<v:oval stroked=\"false\">'+","\t\t\t\t\t\t\t\t\t\t\t'<v:fill opacity=\"20%\" color=\"#6C3A3A\"/>'+","\t\t\t\t\t\t\t\t\t\t'</v:oval>'+","\t\t\t\t\t\t\t\t'</div>'+","\t\t\t\t\t\t\t\t'';","\t}",""," /* Dial extends the base Widget class */"," Y.extend(Dial, Widget, {",""," /**"," * creates the DOM structure for the Dial."," *"," * @method renderUI"," * @protected"," */"," renderUI : function() {"," this._renderLabel();"," this._renderRing();"," this._renderMarker();"," this._renderCenterButton();"," this._renderHandle();",""," // object handles"," this.contentBox = this.get(\"contentBox\");",""," // constants"," this._originalValue = this.get('value');"," this._minValue = this.get('min'); // saves doing a .get many times, but we need to remember to update this if/when we allow changing min or max after instantiation"," this._maxValue = this.get('max');"," this._stepsPerRevolution = this.get('stepsPerRevolution');"," this._minTimesWrapped = (Math.floor(this._minValue / this._stepsPerRevolution - 1));"," this._maxTimesWrapped = (Math.floor(this._maxValue / this._stepsPerRevolution + 1));",""," // variables"," this._timesWrapped = 0;"," this._angle = this._getAngleFromValue(this.get('value'));"," this._prevAng = this._angle;",""," // init"," this._setTimesWrappedFromValue(this._originalValue);"," this._handleNode.set('aria-valuemin', this._minValue);"," this._handleNode.set('aria-valuemax', this._maxValue);"," },",""," /**"," * Sets -webkit-border-radius to 50% of width/height of the ring, handle, marker, and center-button."," * This is needed for iOS 3.x."," * The objects render square if the radius is > 50% of the width/height"," * @method _setBorderRadius"," * @private"," */"," _setBorderRadius : function(){"," this._ringNode.setStyles({'WebkitBorderRadius':this._ringNodeRadius + 'px',"," 'MozBorderRadius':this._ringNodeRadius + 'px',"," 'borderRadius':this._ringNodeRadius + 'px'"," });"," this._handleNode.setStyles({'WebkitBorderRadius':this._handleNodeRadius + 'px',"," 'MozBorderRadius':this._handleNodeRadius + 'px',"," 'borderRadius':this._handleNodeRadius + 'px'"," });"," this._markerNode.setStyles({'WebkitBorderRadius':this._markerNodeRadius + 'px',"," 'MozBorderRadius':this._markerNodeRadius + 'px',"," 'borderRadius':this._markerNodeRadius + 'px'"," });"," this._centerButtonNode.setStyles({'WebkitBorderRadius':this._centerButtonNodeRadius + 'px',"," 'MozBorderRadius':this._centerButtonNodeRadius + 'px',"," 'borderRadius':this._centerButtonNodeRadius + 'px'"," });"," },",""," /**"," * Handles the mouseenter on the centerButton"," *"," * @method _handleCenterButtonEnter"," * @protected"," */"," _handleCenterButtonEnter : function(){"," this._resetString.removeClass(Dial.CSS_CLASSES.hidden);"," },",""," /**"," * Handles the mouseleave on the centerButton"," *"," * @method _handleCenterButtonLeave"," * @protected"," */"," _handleCenterButtonLeave : function(){"," this._resetString.addClass(Dial.CSS_CLASSES.hidden);"," },",""," /**"," * Creates the Y.DD.Drag instance used for the handle movement and"," * binds Dial interaction to the configured value model."," *"," * @method bindUI"," * @protected"," */"," bindUI : function() {",""," this.after(\"valueChange\", this._afterValueChange);",""," var boundingBox = this.get(\"boundingBox\"),"," // Looking for a key event which will fire continously across browsers while the key is held down."," keyEvent = (!Y.UA.opera) ? \"down:\" : \"press:\","," // 38, 40 = arrow up/down, 33, 34 = page up/down, 35 , 36 = end/home"," keyEventSpec = keyEvent + \"38,40,33,34,35,36\","," // 37 , 39 = arrow left/right"," keyLeftRightSpec = keyEvent + \"37,39\","," // 37 , 39 = arrow left/right + meta (command/apple key) for mac"," keyLeftRightSpecMeta = keyEvent + \"37+meta,39+meta\","," Drag = Y.DD.Drag;",""," Y.on(\"key\", Y.bind(this._onDirectionKey, this), boundingBox, keyEventSpec);"," Y.on(\"key\", Y.bind(this._onLeftRightKey, this), boundingBox, keyLeftRightSpec);"," boundingBox.on(\"key\", this._onLeftRightKeyMeta, keyLeftRightSpecMeta, this);",""," Y.on('mouseenter', Y.bind(this._handleCenterButtonEnter, this), this._centerButtonNode);"," Y.on('mouseleave', Y.bind(this._handleCenterButtonLeave, this), this._centerButtonNode);"," // Needed to replace mousedown/up with gesturemovestart/end to make behavior on touch devices work the same."," Y.on('gesturemovestart', Y.bind(this._resetDial, this), this._centerButtonNode); //[#2530441]"," Y.on('gesturemoveend', Y.bind(this._handleCenterButtonMouseup, this), this._centerButtonNode);","",""," Y.on(Drag.START_EVENT, Y.bind(this._handleHandleMousedown, this), this._handleNode);"," Y.on(Drag.START_EVENT, Y.bind(this._handleMousedown, this), this._ringNode); // [#2530766]",""," //TODO: Can this be merged this into the drag:end event listener to avoid another registration?"," Y.on('gesturemoveend', Y.bind(this._handleRingMouseup, this), this._ringNode);",""," this._dd1 = new Drag({ //// [#2530206] changed global this._dd1 from just var dd1 = new Y.DD.drag so"," node: this._handleNode,"," on : {"," 'drag:drag' : Y.bind(this._handleDrag, this),"," 'drag:start' : Y.bind(this._handleDragStart, this),"," 'drag:end' : Y.bind(this._handleDragEnd, this) //,"," }"," });"," Y.bind(this._dd1.addHandle(this._ringNode), this); // [#2530206] added the ring as a handle to the dd1 (the dd of the handleNode)"," },",""," /**"," * Sets _timesWrapped based on Dial value"," * to net integer revolutions the user dragged the handle around the Dial"," *"," * @method _setTimesWrappedFromValue"," * @param val {Number} current value of the Dial"," * @private"," */"," _setTimesWrappedFromValue : function(val){"," if(val % this._stepsPerRevolution === 0){"," this._timesWrapped = (val / this._stepsPerRevolution);"," }else{"," this._timesWrapped = Math.floor(val / this._stepsPerRevolution);"," }"," },",""," /**"," * gets the angle of the line from the center of the Dial to the center of the handle"," *"," * @method _getAngleFromHandleCenter"," * @param handleCenterX {number}"," * @param handleCenterY {number}"," * @return ang {number} the angle"," * @protected"," */"," _getAngleFromHandleCenter : function(handleCenterX, handleCenterY){"," var ang = Math.atan( (this._dialCenterY - handleCenterY) / (this._dialCenterX - handleCenterX) ) * (180 / Math.PI);"," ang = ((this._dialCenterX - handleCenterX) < 0) ? ang + 90 : ang + 90 + 180; // Compensate for neg angles from Math.atan"," return ang;"," },",""," /**"," * calculates the XY of the center of the dial relative to the ring node."," * This is needed for calculating the angle of the handle"," *"," * @method _calculateDialCenter"," * @protected"," */"," _calculateDialCenter : function(){ // #2531111 value, and marker don't track handle when dial position changes on page (resize when inline)"," this._dialCenterX = this._ringNode.get('offsetWidth') / 2;"," this._dialCenterY = this._ringNode.get('offsetHeight') / 2;"," },",""," /**"," * Handles the mouseup on the ring"," *"," * @method _handleRingMouseup"," * @protected"," */"," _handleRingMouseup : function(){"," this._handleNode.focus(); // need to re-focus on the handle so keyboard is accessible [#2530206]"," },",""," /**"," * Handles the mouseup on the centerButton"," *"," * @method _handleCenterButtonMouseup"," * @protected"," */"," _handleCenterButtonMouseup : function(){"," this._handleNode.focus(); // need to re-focus on the handle so keyboard is accessible [#2530206]"," },",""," /**"," * Handles the mousedown on the handle"," *"," * @method _handleHandleMousedown"," * @protected"," */"," _handleHandleMousedown : function(){"," this._handleNode.focus(); // need to re-focus on the handle so keyboard is accessible [#2530206]"," // this is better done here instead of on _handleDragEnd"," // because we should make the keyboard accessible after a click of the handle"," },",""," /**"," * handles the user dragging the handle around the Dial, gets the angle,"," * checks for wrapping around top center."," * Sets the new value of the Dial"," *"," * @method _handleDrag"," * @param e {DOMEvent} the drag event object"," * @protected"," */"," _handleDrag : function(e){"," var handleCenterX,"," handleCenterY,"," ang,"," newValue;",""," // The event was emitted from drag:drag of handle."," // The center of the handle is top left position of the handle node + radius of handle."," // This is different than a mousedown on the ring."," handleCenterX = (parseInt(this._handleNode.getStyle('left'),10) + this._handleNodeRadius);"," handleCenterY = (parseInt(this._handleNode.getStyle('top'),10) + this._handleNodeRadius);"," ang = this._getAngleFromHandleCenter(handleCenterX, handleCenterY);",""," // check for need to set timesWrapped"," if((this._prevAng > 270) && (ang < 90)){ // If wrapping, clockwise"," if(this._timesWrapped < this._maxTimesWrapped){"," this._timesWrapped = (this._timesWrapped + 1);"," }"," }else if((this._prevAng < 90) && (ang > 270)){ // if un-wrapping, counter-clockwise"," if(this._timesWrapped > this._minTimesWrapped){"," this._timesWrapped = (this._timesWrapped - 1);"," }"," }"," newValue = this._getValueFromAngle(ang); // This function needs the current _timesWrapped value. That's why it comes after the _timesWrapped code above",""," // If you've gone past max more than one full revolution, we decrement the _timesWrapped value"," // This gives the effect of a ratchet mechanism."," // It feels like you are never more than one revolution past max"," // The effect is the same for min, only in reverse."," // We can't reset the _timesWrapped to the max or min here."," // If we did, the next (continuous) drag would reset the value incorrectly."," if(newValue > (this._maxValue + this._stepsPerRevolution) ){"," this._timesWrapped --;"," }else if(newValue < (this._minValue - this._stepsPerRevolution) ){"," this._timesWrapped ++;"," }"," this._prevAng = ang; // need to keep the previous angle in order to check for wrapping on the next drag, click, or keypress",""," this._handleValuesBeyondMinMax(e, newValue);"," },",""," /**"," * handles a mousedown or gesturemovestart event on the ring node"," *"," * @method _handleMousedown"," * @param e {DOMEvent} the event object"," * @private"," */"," _handleMousedown : function(e){ // #2530306",""," if (this._ringNode.compareTo(e.target)) {"," var minAng = this._getAngleFromValue(this._minValue),"," maxAng = this._getAngleFromValue(this._maxValue),"," newValue, oppositeMidRangeAngle,"," handleCenterX, handleCenterY,"," ang;","","",""," // The event was emitted from mousedown on the ring node,"," // so the center of the handle should be the XY of mousedown."," if(Y.UA.ios){ // ios adds the scrollLeft and top onto clientX and Y in a native click"," handleCenterX = (e.clientX - this._ringNode.getX());"," handleCenterY = (e.clientY - this._ringNode.getY());"," }else{"," handleCenterX = (e.clientX + Y.one('document').get('scrollLeft') - this._ringNode.getX());"," handleCenterY = (e.clientY + Y.one('document').get('scrollTop') - this._ringNode.getY());"," }"," ang = this._getAngleFromHandleCenter(handleCenterX, handleCenterY);",""," /* ///////////////////////////////////////////////////////////////////////////////////////////////////////"," * The next sections of logic"," * set this._timesWrapped in the different cases of value range"," * and value range position,"," * then the Dial value is set at the end of this method"," */ ///////////////////////////////////////////////////////////////////////////////////////////////////////","",""," ////////////////////////////////////////////////////////////////////////////////////////////////////////////"," if(this._maxValue - this._minValue > this._stepsPerRevolution){",""," // Case: range min-to-max is greater than stepsPerRevolution (one revolution)",""," // This checks the shortest way around the dial between the prevAng and this ang."," if(Math.abs(this._prevAng - ang) > 180){ // this crossed a wrapping",""," // Only change the _timesWrapped if it's between minTimesWrapped and maxTimesWrapped"," if((this._timesWrapped > this._minTimesWrapped) &&"," (this._timesWrapped < this._maxTimesWrapped)"," ){"," // this checks which direction, clock wise or CCW and incr or decr _timesWrapped"," this._timesWrapped = ((this._prevAng - ang) > 0) ? (this._timesWrapped + 1) : (this._timesWrapped - 1);"," }"," // special case of getting un-stuck from a min value case"," // where timesWrapped is minTimesWrapped but new ang won't trigger a cross wrap boundry"," // because prevAng is set to 0 or > 0"," }else if("," (this._timesWrapped === this._minTimesWrapped) &&"," (ang - this._prevAng < 180)"," ){"," this._timesWrapped ++;"," } //it didn't cross a wrapping boundary",""," } /////////////////////////////////////////////////////////////////////////////////////////////////////////"," else if(this._maxValue - this._minValue === this._stepsPerRevolution){"," // Case: range min-to-max === stepsPerRevolution (one revolution)"," // This means min and max will be at same angle"," // This does not mean they are at \"north\"",""," if(ang < minAng){ // if mousedown angle is < minAng (and maxAng, because they're the same)"," // The only way it can be, is if min and max are not at north"," this._timesWrapped = 1;"," }else{"," this._timesWrapped = 0;"," }",""," } //////////////////////////////////////////////////////////////////////////////////////////////////////////"," else if(minAng > maxAng){"," // Case: range includes the wrap point (north)"," // Because of \"else if\"..."," // range is < stepsPerRevolution",""," if("," (this._prevAng >= minAng) && // if prev angle was greater than angle of min and..."," (ang <= (minAng + maxAng) / 2) // the angle of this click is less than"," // the angle opposite the mid-range angle, then..."," ){"," this._timesWrapped ++;"," }else if("," (this._prevAng <= maxAng) &&"," // if prev angle is < max angle and...",""," (ang > (minAng + maxAng) / 2)"," // the angle of this click is greater than,"," // the angle opposite the mid-range angle and...",""," ){"," this._timesWrapped --;"," }",""," } ////////////////////////////////////////////////////////////////////////////////////////////////////"," else{"," // \"else\" Case: min-to-max range doesn't include the wrap point"," // Because of \"else if\"..."," // range is still < stepsPerRevolution",""," if ((ang < minAng) || (ang > maxAng)){ // angle is out of range"," oppositeMidRangeAngle = (((minAng + maxAng) / 2) + 180) % 360;"," // This is the bisection of the min-to-max range + 180. (opposite the bisection)",""," if(oppositeMidRangeAngle > 180){"," newValue = ((maxAng < ang) && (ang < oppositeMidRangeAngle)) ? this.get('max') : this.get('min');"," }else{ //oppositeMidRangeAngle <= 180"," newValue = ((minAng > ang) && (ang > oppositeMidRangeAngle)) ? this.get('min') : this.get('max');"," }"," this._prevAng = this._getAngleFromValue(newValue);"," this.set('value', newValue);"," this._setTimesWrappedFromValue(newValue);"," return;"," }"," }",""," // Now that _timesWrapped is set, set newValue ......................................................................."," newValue = this._getValueFromAngle(ang); // This function needs the correct, current _timesWrapped value.","",""," /* updating _prevAng (previous angle)"," * When past min or max, _prevAng is set to the angle of min or max"," * Don't do this in a drag method, or it will affect wrapping,"," * causing the marker to stick at min, when min is 0 degrees (north)"," * #2532878"," */"," if (newValue > this._maxValue) {"," this._prevAng = this._getAngleFromValue(this._maxValue); // #2530766 need for mousedown on the ring; causes prob for drag"," } else if (newValue < this._minValue) {"," this._prevAng = this._getAngleFromValue(this._minValue);"," } else {"," this._prevAng = ang;"," }",""," this._handleValuesBeyondMinMax(e, newValue);"," }"," },",""," /**"," * handles the case where the value is less than min or greater than max"," * This is used both when handle is dragged and when the ring is clicked"," *"," * @method _handleValuesBeyondMinMax"," * @param e {DOMEvent} the event object"," * @param newValue {number} current value of the dial"," * @protected"," */"," _handleValuesBeyondMinMax : function(e, newValue){ // #2530306"," // If _getValueFromAngle() is passed 0, it increments the _timesWrapped value."," // handle hitting max and min and going beyond, stops at max or min"," if((newValue >= this._minValue) && (newValue <= this._maxValue)) {"," this.set('value', newValue);"," // [#2530206] transfer the mousedown event from the _ringNode to the _handleNode drag, so we can mousedown, then continue dragging"," if(e.currentTarget === this._ringNode){"," // Delegate to DD's natural behavior"," this._dd1._handleMouseDownEvent(e);"," }"," } else if (newValue > this._maxValue) {"," this.set('value', this._maxValue);"," } else if (newValue < this._minValue) {"," this.set('value', this._minValue);"," }"," },",""," /**"," * handles the user starting to drag the handle around the Dial"," *"," * @method _handleDragStart"," * @param e {DOMEvent} the drag event object"," * @protected"," */"," _handleDragStart : function(e){"," this._markerNode.removeClass(Dial.CSS_CLASSES.hidden);"," },",""," /*"," * When handle is handleDragEnd, this animates the return to the fixed dial"," */",""," /**"," * handles the end of a user dragging the handle, animates the handle returning to"," * resting position."," *"," * @method _handleDragEnd"," * @protected"," */"," _handleDragEnd : function(){"," var node = this._handleNode;"," node.transition({"," duration: 0.08, // seconds"," easing: 'ease-in',"," left: this._setNodeToFixedRadius(this._handleNode, true)[0] + 'px',"," top: this._setNodeToFixedRadius(this._handleNode, true)[1] + 'px'"," }, Y.bind(function(){"," var value = this.get('value');"," //[#2530206] only hide marker if not at max or min"," // more persistant user visibility of when the dial is at max or min"," if((value > this._minValue) && (value < this._maxValue)){"," this._markerNode.addClass(Dial.CSS_CLASSES.hidden);"," }else{"," this._setTimesWrappedFromValue(value); //#2530766 secondary bug when drag past max + cross wrapping boundry"," this._prevAng = this._getAngleFromValue(value); //#2530766 secondary bug when drag past max + cross wrapping boundry"," }"," }, this)"," );"," },",""," /**"," * returns the XY of the fixed position, handleDistance, from the center of the Dial (resting position)."," * The XY also represents the angle related to the current value."," * If typeArray is true, [X,Y] is returned."," * If typeArray is false, the XY of the obj node passed in is set."," *"," * @method _setNodeToFixedRadius"," * @param obj {Node}"," * @param typeArray {Boolean} true returns an array [X,Y]"," * @protected"," * @return {Array} an array of [XY] is optionally returned"," */"," _setNodeToFixedRadius : function(obj, typeArray){"," var thisAngle = (this._angle - 90),"," rad = (Math.PI / 180),"," newY = Math.round(Math.sin(thisAngle * rad) * this._handleDistance),"," newX = Math.round(Math.cos(thisAngle * rad) * this._handleDistance),"," dia = obj.get('offsetWidth'); //Ticket #2529852",""," newY = newY - (dia * 0.5);"," newX = newX - (dia * 0.5);"," if(typeArray){ // just need the style for css transform left and top to animate the handle drag:end"," return [(this._ringNodeRadius + newX), (this._ringNodeRadius + newY)];"," }else{"," obj.setStyle('left', (this._ringNodeRadius + newX) + 'px');"," obj.setStyle('top', (this._ringNodeRadius + newY) + 'px');"," }"," },",""," /**"," * Synchronizes the DOM state with the attribute settings."," *"," * @method syncUI"," */"," syncUI : function() {"," // Make the marker and the resetString display so their placement and borderRadius can be calculated, then hide them again."," // We would have used visibility:hidden in the css of this class,"," // but IE8 VML never returns to visible after applying visibility:hidden then removing it."," this._setSizes();"," this._calculateDialCenter(); // #2531111 initialize center of dial"," this._setBorderRadius();"," this._uiSetValue(this.get(\"value\"));"," this._markerNode.addClass(Dial.CSS_CLASSES.hidden);"," this._resetString.addClass(Dial.CSS_CLASSES.hidden);"," },",""," /**"," * sets the sizes of ring, center-button, marker, handle, and VML ovals in pixels."," * Needed only because some IE versions"," * ignore CSS percent sizes/offsets."," * so these must be set in pixels."," * Normally these are set in % of the ring."," *"," * @method _setSizes"," * @protected"," */"," _setSizes : function(){"," var dia = this.get('diameter'),"," offset, offsetResetX, offsetResetY,"," setSize = function(node, dia, percent){"," var suffix = 'px';"," node.getElementsByTagName('oval').setStyle('width', (dia * percent) + suffix);"," node.getElementsByTagName('oval').setStyle('height', (dia * percent) + suffix);"," node.setStyle('width', (dia * percent) + suffix);"," node.setStyle('height', (dia * percent) + suffix);"," };"," setSize(this._ringNode, dia, 1.0);"," setSize(this._handleNode, dia, this.get('handleDiameter'));"," setSize(this._markerNode, dia, this.get('markerDiameter'));"," setSize(this._centerButtonNode, dia, this.get('centerButtonDiameter'));",""," // Set these (used for trig) this way instead of relative to dia,"," // in case they have borders, have images etc."," this._ringNodeRadius = this._ringNode.get('offsetWidth') * 0.5;"," this._handleNodeRadius = this._handleNode.get('offsetWidth') * 0.5;"," this._markerNodeRadius = this._markerNode.get('offsetWidth') * 0.5;"," this._centerButtonNodeRadius = this._centerButtonNode.get('offsetWidth') * 0.5;"," this._handleDistance = this._ringNodeRadius * this.get('handleDistance');"," // place the centerButton"," offset = (this._ringNodeRadius - this._centerButtonNodeRadius);"," this._centerButtonNode.setStyle('left', offset + 'px');"," this._centerButtonNode.setStyle('top', offset + 'px');"," /*"," Place the resetString"," This seems like it should be able to be done with CSS,"," But since there is also a VML oval in IE that is absolute positioned,"," The resetString ends up behind the VML oval."," */"," offsetResetX = (this._centerButtonNodeRadius - (this._resetString.get('offsetWidth') * 0.5));"," offsetResetY = (this._centerButtonNodeRadius - (this._resetString.get('offsetHeight') * 0.5));"," this._resetString.setStyles({'left':offsetResetX + 'px', 'top':offsetResetY + 'px'});"," },","",""," /**"," * renders the DOM object for the Dial's label"," *"," * @method _renderLabel"," * @protected"," */"," _renderLabel : function() {"," var contentBox = this.get(\"contentBox\"),"," label = contentBox.one(\".\" + Dial.CSS_CLASSES.label);"," if (!label) {"," label = Node.create(Y.Lang.sub(Dial.LABEL_TEMPLATE, this.get('strings')));"," contentBox.append(label);"," }"," this._labelNode = label;"," this._valueStringNode = this._labelNode.one(\".\" + Dial.CSS_CLASSES.valueString);"," },",""," /**"," * renders the DOM object for the Dial's background ring"," *"," * @method _renderRing"," * @protected"," */"," _renderRing : function() {"," var contentBox = this.get(\"contentBox\"),"," ring = contentBox.one(\".\" + Dial.CSS_CLASSES.ring);"," if (!ring) {"," ring = contentBox.appendChild(Dial.RING_TEMPLATE);"," ring.setStyles({width:this.get('diameter') + 'px', height:this.get('diameter') + 'px'});"," }"," this._ringNode = ring;"," },",""," /**"," * renders the DOM object for the Dial's background marker which"," * tracks the angle of the user dragging the handle"," *"," * @method _renderMarker"," * @protected"," */"," _renderMarker : function() {"," var contentBox = this.get(\"contentBox\"),"," marker = contentBox.one(\".\" + Dial.CSS_CLASSES.marker);"," if (!marker) {"," marker = contentBox.one('.' + Dial.CSS_CLASSES.ring).appendChild(Dial.MARKER_TEMPLATE);"," }"," this._markerNode = marker;"," },",""," /**"," * renders the DOM object for the Dial's center"," *"," * @method _renderCenterButton"," * @protected"," */"," _renderCenterButton : function() {"," var contentBox = this.get(\"contentBox\"),"," centerButton = contentBox.one(\".\" + Dial.CSS_CLASSES.centerButton);"," if (!centerButton) {"," centerButton = Node.create(Y.Lang.sub(Dial.CENTER_BUTTON_TEMPLATE, this.get('strings')));"," contentBox.one('.' + Dial.CSS_CLASSES.ring).append(centerButton);"," }"," this._centerButtonNode = centerButton;"," this._resetString = this._centerButtonNode.one('.' + Dial.CSS_CLASSES.resetString);"," },",""," /**"," * renders the DOM object for the Dial's user draggable handle"," *"," * @method _renderHandle"," * @protected"," */"," _renderHandle : function() {"," var labelId = Dial.CSS_CLASSES.label + Y.guid(), //get this unique id once then use for handle and label for ARIA"," contentBox = this.get(\"contentBox\"),"," handle = contentBox.one(\".\" + Dial.CSS_CLASSES.handle);"," if (!handle) {"," handle = Node.create(Y.Lang.sub(Dial.HANDLE_TEMPLATE, this.get('strings')));"," handle.setAttribute('aria-labelledby', labelId); // get unique id for specifying a label & handle for ARIA"," this._labelNode.one('.' + Dial.CSS_CLASSES.labelString).setAttribute('id', labelId); // When handle gets focus, screen reader will include label text when reading the value."," contentBox.one('.' + Dial.CSS_CLASSES.ring).append(handle);"," }"," this._handleNode = handle;"," },",""," /**"," * sets the visible UI label HTML string"," *"," * @method _setLabelString"," * @param str {String}"," * @protected"," * @deprecated Use DialObjName.set('strings',{'label':'My new label'}); before DialObjName.render();",""," */"," _setLabelString : function(str) {"," this.get(\"contentBox\").one(\".\" + Dial.CSS_CLASSES.labelString).setHTML(str);"," },",""," /**"," * sets the visible UI label HTML string"," *"," * @method _setResetString"," * @param str {String}"," * @protected"," * @deprecated Use DialObjName.set('strings',{'resetStr':'My new reset string'}); before DialObjName.render();"," */"," _setResetString : function(str) {"," this.get(\"contentBox\").one(\".\" + Dial.CSS_CLASSES.resetString).setHTML(str);"," // this._setXYResetString(); // This used to recenter the string in the button. Done with CSS now. Method has been removed."," // this._resetString.setHTML(''); //We no longer show/hide the reset string with setHTML but by addClass and removeClass .yui3-dial-reset-string-hidden"," },",""," /**"," * sets the tooltip HTML string in the Dial's handle"," *"," * @method _setTooltipString"," * @param str {String}"," * @protected"," * @deprecated Use DialObjName.set('strings',{'tooltipHandle':'My new tooltip'}); before DialObjName.render();"," */"," _setTooltipString : function(str) {"," this._handleNode.set('title', str);"," },",""," /**"," * sets the Dial's value in response to key events."," * Left and right keys are in a separate method"," * in case an implementation wants to increment values"," * but needs left and right arrow keys for other purposes."," *"," * @method _onDirectionKey"," * @param e {Event} the key event"," * @protected"," */"," _onDirectionKey : function(e) {"," e.preventDefault();"," switch (e.charCode) {"," case 38: // up"," this._incrMinor();"," break;"," case 40: // down"," this._decrMinor();"," break;"," case 36: // home"," this._setToMin();"," break;"," case 35: // end"," this._setToMax();"," break;"," case 33: // page up"," this._incrMajor();"," break;"," case 34: // page down"," this._decrMajor();"," break;"," }"," },",""," /**"," * sets the Dial's value in response to left or right key events"," *"," * @method _onLeftRightKey"," * @param e {Event} the key event"," * @protected"," */"," _onLeftRightKey : function(e) {"," e.preventDefault();"," switch (e.charCode) {"," case 37: // left"," this._decrMinor();"," break;"," case 39: // right"," this._incrMinor();"," break;"," }"," },",""," /**"," * sets the Dial's value in response to left or right key events when a meta (mac command/apple) key is also pressed"," *"," * @method _onLeftRightKeyMeta"," * @param e {Event} the key event"," * @protected"," */"," _onLeftRightKeyMeta : function(e) {"," e.preventDefault();"," switch (e.charCode) {"," case 37: // left + meta"," this._setToMin();"," break;"," case 39: // right + meta"," this._setToMax();"," break;"," }"," },",""," /**"," * increments Dial value by a minor increment"," *"," * @method _incrMinor"," * @protected"," */"," _incrMinor : function(){"," var newVal = (this.get('value') + this.get(\"minorStep\"));"," newVal = Math.min(newVal, this.get(\"max\"));"," // [#2530045] .toFixed returns a string."," // Dial's value needs a number. -0 makes it a number, but removes trailing zeros."," // Added toFixed(...) again in _uiSetValue where content of yui3-dial-value-string is set."," // Removing the toFixed here, loses the feature of \"snap-to\" when for example, stepsPerRevolution is 10 and decimalPlaces is 0."," this.set('value', newVal.toFixed(this.get('decimalPlaces')) - 0);"," },",""," /**"," * decrements Dial value by a minor increment"," *"," * @method _decrMinor"," * @protected"," */"," _decrMinor : function(){"," var newVal = (this.get('value') - this.get(\"minorStep\"));"," newVal = Math.max(newVal, this.get(\"min\"));"," this.set('value', newVal.toFixed(this.get('decimalPlaces')) - 0);"," },",""," /**"," * increments Dial value by a major increment"," *"," * @method _incrMajor"," * @protected"," */"," _incrMajor : function(){"," var newVal = (this.get('value') + this.get(\"majorStep\"));"," newVal = Math.min(newVal, this.get(\"max\"));"," this.set('value', newVal.toFixed(this.get('decimalPlaces')) - 0);"," },",""," /**"," * decrements Dial value by a major increment"," *"," * @method _decrMajor"," * @protected"," */"," _decrMajor : function(){"," var newVal = (this.get('value') - this.get(\"majorStep\"));"," newVal = Math.max(newVal, this.get(\"min\"));"," this.set('value', newVal.toFixed(this.get('decimalPlaces')) - 0);"," },",""," /**"," * sets Dial value to dial's max attr"," *"," * @method _setToMax"," * @protected"," */"," _setToMax : function(){"," this.set('value', this.get(\"max\"));"," },",""," /**"," * sets Dial value to dial's min attr"," *"," * @method _setToMin"," * @protected"," */"," _setToMin : function(){"," this.set('value', this.get(\"min\"));"," },",""," /**"," * resets Dial value to the orignal initial value."," *"," * @method _resetDial"," * @protected"," */"," _resetDial : function(e){"," if(e){"," e.stopPropagation(); //[#2530206] need to add so mousedown doesn't propagate to ring and move the handle"," }"," this.set('value', this._originalValue);"," this._resetString.addClass(Dial.CSS_CLASSES.hidden); //[#2530441]"," this._handleNode.focus();"," },",""," /**"," * returns the handle angle associated with the current value of the Dial."," * Returns a number between 0 and 360."," *"," * @method _getAngleFromValue"," * @param newVal {Number} the current value of the Dial"," * @return {Number} the angle associated with the current Dial value"," * @protected"," */"," _getAngleFromValue : function(newVal){"," var nonWrappedPartOfValue = newVal % this._stepsPerRevolution,"," angleFromValue = nonWrappedPartOfValue / this._stepsPerRevolution * 360;"," return (angleFromValue < 0) ? (angleFromValue + 360) : angleFromValue;"," },",""," /**"," * returns the value of the Dial calculated from the current handle angle"," *"," * @method _getValueFromAngle"," * @param angle {Number} the current angle of the Dial's handle"," * @return {Number} the current Dial value corresponding to the handle position"," * @protected"," */"," _getValueFromAngle : function(angle){"," if(angle < 0){"," angle = (360 + angle);"," }else if(angle === 0){"," angle = 360;"," }"," var value = (angle / 360) * this._stepsPerRevolution;"," value = (value + (this._timesWrapped * this._stepsPerRevolution));"," //return Math.round(value * 100) / 100;"," return value.toFixed(this.get('decimalPlaces')) - 0;"," },",""," /**"," * calls the method to update the UI whenever the Dial value changes"," *"," * @method _afterValueChange"," * @param e {Event}"," * @protected"," */"," _afterValueChange : function(e) {"," this._uiSetValue(e.newVal);"," },",""," /**"," * Changes a value to have the correct decimal places per the attribute decimalPlaces"," *"," * @method _valueToDecimalPlaces"," * @param val {Number} a raw value to set to the Dial"," * @return {Number} the input val changed to have the correct decimal places"," * @protected"," */"," _valueToDecimalPlaces : function(val) { // [#2530206] cleaned up and better user feedback of when it's max or min.",""," },",""," /**"," * Updates the UI display value of the Dial to reflect"," * the value passed in."," * Makes all other needed UI display changes"," *"," * @method _uiSetValue"," * @param val {Number} value of the Dial"," * @protected"," */"," _uiSetValue : function(val) { // [#2530206] cleaned up and better user feedback of when it's max or min."," this._angle = this._getAngleFromValue(val);"," if(this._handleNode.hasClass(Dial.CSS_CLASSES.dragging) === false){"," this._setTimesWrappedFromValue(val);"," this._setNodeToFixedRadius(this._handleNode, false);"," this._prevAng = this._getAngleFromValue(this.get('value'));"," }"," this._valueStringNode.setHTML(val.toFixed(this.get('decimalPlaces'))); // [#2530045]"," this._handleNode.set('aria-valuenow', val);"," this._handleNode.set('aria-valuetext', val);"," this._setNodeToFixedRadius(this._markerNode, false);"," if((val === this._maxValue) || (val === this._minValue)){"," this._markerNode.addClass(Dial.CSS_CLASSES.markerMaxMin);"," if(supportsVML === true){"," this._markerNode.getElementsByTagName('fill').set('color', '#AB3232');"," }"," this._markerNode.removeClass(Dial.CSS_CLASSES.hidden);"," }else{ // not max or min"," if(supportsVML === true){"," this._markerNode.getElementsByTagName('fill').set('color', '#000');"," }"," this._markerNode.removeClass(Dial.CSS_CLASSES.markerMaxMin);"," if(this._handleNode.hasClass(Dial.CSS_CLASSES.dragging) === false){ // if not max || min, and not dragging handle, hide the marker"," this._markerNode.addClass(Dial.CSS_CLASSES.hidden);"," }"," }"," },",""," /**"," * value attribute default validator. Verifies that"," * the value being set lies between the min/max value"," *"," * @method _validateValue"," * @param val {Number} value of the Dial"," * @protected"," */"," _validateValue: function(val) {"," var min = this.get(\"min\"),"," max = this.get(\"max\");"," return (Lang.isNumber(val) && val >= min && val <= max);"," }"," });"," Y.Dial = Dial;","","","}, '@VERSION@', {"," \"requires\": ["," \"widget\","," \"dd-drag\","," \"event-mouseenter\","," \"event-move\","," \"event-key\","," \"transition\","," \"intl\""," ],"," \"lang\": ["," \"en\","," \"es\","," \"hu\""," ],"," \"skinnable\": true","});","","}());"]};
}
var __cov_ZWlbltCJ_ihuBHohWg2uIw = __coverage__['build/dial/dial.js'];
__cov_ZWlbltCJ_ihuBHohWg2uIw.s['1']++;YUI.add('dial',function(Y,NAME){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['1']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['2']++;var supportsVML=false;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['3']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['2'][0]++,Y.UA.ie)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['2'][1]++,Y.UA.ie<9)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['1'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['4']++;supportsVML=true;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['1'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['5']++;var Lang=Y.Lang,Widget=Y.Widget,Node=Y.Node;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['6']++;function Dial(config){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['2']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['7']++;Dial.superclass.constructor.apply(this,arguments);}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['8']++;Dial.NAME='dial';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['9']++;Dial.ATTRS={min:{value:-220},max:{value:220},diameter:{value:100},handleDiameter:{value:0.2},markerDiameter:{value:0.1},centerButtonDiameter:{value:0.5},value:{value:0,validator:function(val){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['3']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['10']++;return this._validateValue(val);}},minorStep:{value:1},majorStep:{value:10},stepsPerRevolution:{value:100},decimalPlaces:{value:0},strings:{valueFn:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['4']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['11']++;return Y.Intl.get('dial');}},handleDistance:{value:0.75}};__cov_ZWlbltCJ_ihuBHohWg2uIw.s['12']++;function makeClassName(str){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['5']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['13']++;return Y.ClassNameManager.getClassName(Dial.NAME,str);}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['14']++;Dial.CSS_CLASSES={label:makeClassName('label'),labelString:makeClassName('label-string'),valueString:makeClassName('value-string'),northMark:makeClassName('north-mark'),ring:makeClassName('ring'),ringVml:makeClassName('ring-vml'),marker:makeClassName('marker'),markerVml:makeClassName('marker-vml'),markerMaxMin:makeClassName('marker-max-min'),centerButton:makeClassName('center-button'),centerButtonVml:makeClassName('center-button-vml'),resetString:makeClassName('reset-string'),handle:makeClassName('handle'),handleVml:makeClassName('handle-vml'),hidden:makeClassName('hidden'),dragging:Y.ClassNameManager.getClassName('dd-dragging')};__cov_ZWlbltCJ_ihuBHohWg2uIw.s['15']++;Dial.LABEL_TEMPLATE='<div class="'+Dial.CSS_CLASSES.label+'"><span id="" class="'+Dial.CSS_CLASSES.labelString+'">{label}</span><span class="'+Dial.CSS_CLASSES.valueString+'"></span></div>';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['16']++;if(supportsVML===false){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['3'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['17']++;Dial.RING_TEMPLATE='<div class="'+Dial.CSS_CLASSES.ring+'"><div class="'+Dial.CSS_CLASSES.northMark+'"></div></div>';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['18']++;Dial.MARKER_TEMPLATE='<div class="'+Dial.CSS_CLASSES.marker+' '+Dial.CSS_CLASSES.hidden+'"></div>';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['19']++;Dial.CENTER_BUTTON_TEMPLATE='<div class="'+Dial.CSS_CLASSES.centerButton+'"><div class="'+Dial.CSS_CLASSES.resetString+' '+Dial.CSS_CLASSES.hidden+'">{resetStr}</div></div>';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['20']++;Dial.HANDLE_TEMPLATE='<div class="'+Dial.CSS_CLASSES.handle+'" aria-labelledby="" aria-valuetext="" aria-valuemax="" aria-valuemin="" aria-valuenow="" role="slider" tabindex="0" title="{tooltipHandle}">';}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['3'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['21']++;Dial.RING_TEMPLATE='<div class="'+Dial.CSS_CLASSES.ring+' '+Dial.CSS_CLASSES.ringVml+'">'+'<div class="'+Dial.CSS_CLASSES.northMark+'"></div>'+'<v:oval strokecolor="#ceccc0" strokeweight="1px"><v:fill type=gradient color="#8B8A7F" color2="#EDEDEB" angle="45"/></v:oval>'+'</div>'+'';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['22']++;Dial.MARKER_TEMPLATE='<div class="'+Dial.CSS_CLASSES.markerVml+' '+Dial.CSS_CLASSES.hidden+'">'+'<v:oval stroked="false">'+'<v:fill opacity="20%" color="#000"/>'+'</v:oval>'+'</div>'+'';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['23']++;Dial.CENTER_BUTTON_TEMPLATE='<div class="'+Dial.CSS_CLASSES.centerButton+' '+Dial.CSS_CLASSES.centerButtonVml+'">'+'<v:oval strokecolor="#ceccc0" strokeweight="1px">'+'<v:fill type=gradient color="#C7C5B9" color2="#fefcf6" colors="35% #d9d7cb, 65% #fefcf6" angle="45"/>'+'<v:shadow on="True" color="#000" opacity="10%" offset="2px, 2px"/>'+'</v:oval>'+'<div class="'+Dial.CSS_CLASSES.resetString+' '+Dial.CSS_CLASSES.hidden+'">{resetStr}</div>'+'</div>'+'';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['24']++;Dial.HANDLE_TEMPLATE='<div class="'+Dial.CSS_CLASSES.handleVml+'" aria-labelledby="" aria-valuetext="" aria-valuemax="" aria-valuemin="" aria-valuenow="" role="slider" tabindex="0" title="{tooltipHandle}">'+'<v:oval stroked="false">'+'<v:fill opacity="20%" color="#6C3A3A"/>'+'</v:oval>'+'</div>'+'';}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['25']++;Y.extend(Dial,Widget,{renderUI:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['6']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['26']++;this._renderLabel();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['27']++;this._renderRing();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['28']++;this._renderMarker();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['29']++;this._renderCenterButton();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['30']++;this._renderHandle();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['31']++;this.contentBox=this.get('contentBox');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['32']++;this._originalValue=this.get('value');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['33']++;this._minValue=this.get('min');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['34']++;this._maxValue=this.get('max');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['35']++;this._stepsPerRevolution=this.get('stepsPerRevolution');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['36']++;this._minTimesWrapped=Math.floor(this._minValue/this._stepsPerRevolution-1);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['37']++;this._maxTimesWrapped=Math.floor(this._maxValue/this._stepsPerRevolution+1);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['38']++;this._timesWrapped=0;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['39']++;this._angle=this._getAngleFromValue(this.get('value'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['40']++;this._prevAng=this._angle;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['41']++;this._setTimesWrappedFromValue(this._originalValue);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['42']++;this._handleNode.set('aria-valuemin',this._minValue);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['43']++;this._handleNode.set('aria-valuemax',this._maxValue);},_setBorderRadius:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['7']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['44']++;this._ringNode.setStyles({'WebkitBorderRadius':this._ringNodeRadius+'px','MozBorderRadius':this._ringNodeRadius+'px','borderRadius':this._ringNodeRadius+'px'});__cov_ZWlbltCJ_ihuBHohWg2uIw.s['45']++;this._handleNode.setStyles({'WebkitBorderRadius':this._handleNodeRadius+'px','MozBorderRadius':this._handleNodeRadius+'px','borderRadius':this._handleNodeRadius+'px'});__cov_ZWlbltCJ_ihuBHohWg2uIw.s['46']++;this._markerNode.setStyles({'WebkitBorderRadius':this._markerNodeRadius+'px','MozBorderRadius':this._markerNodeRadius+'px','borderRadius':this._markerNodeRadius+'px'});__cov_ZWlbltCJ_ihuBHohWg2uIw.s['47']++;this._centerButtonNode.setStyles({'WebkitBorderRadius':this._centerButtonNodeRadius+'px','MozBorderRadius':this._centerButtonNodeRadius+'px','borderRadius':this._centerButtonNodeRadius+'px'});},_handleCenterButtonEnter:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['8']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['48']++;this._resetString.removeClass(Dial.CSS_CLASSES.hidden);},_handleCenterButtonLeave:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['9']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['49']++;this._resetString.addClass(Dial.CSS_CLASSES.hidden);},bindUI:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['10']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['50']++;this.after('valueChange',this._afterValueChange);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['51']++;var boundingBox=this.get('boundingBox'),keyEvent=!Y.UA.opera?(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['4'][0]++,'down:'):(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['4'][1]++,'press:'),keyEventSpec=keyEvent+'38,40,33,34,35,36',keyLeftRightSpec=keyEvent+'37,39',keyLeftRightSpecMeta=keyEvent+'37+meta,39+meta',Drag=Y.DD.Drag;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['52']++;Y.on('key',Y.bind(this._onDirectionKey,this),boundingBox,keyEventSpec);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['53']++;Y.on('key',Y.bind(this._onLeftRightKey,this),boundingBox,keyLeftRightSpec);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['54']++;boundingBox.on('key',this._onLeftRightKeyMeta,keyLeftRightSpecMeta,this);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['55']++;Y.on('mouseenter',Y.bind(this._handleCenterButtonEnter,this),this._centerButtonNode);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['56']++;Y.on('mouseleave',Y.bind(this._handleCenterButtonLeave,this),this._centerButtonNode);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['57']++;Y.on('gesturemovestart',Y.bind(this._resetDial,this),this._centerButtonNode);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['58']++;Y.on('gesturemoveend',Y.bind(this._handleCenterButtonMouseup,this),this._centerButtonNode);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['59']++;Y.on(Drag.START_EVENT,Y.bind(this._handleHandleMousedown,this),this._handleNode);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['60']++;Y.on(Drag.START_EVENT,Y.bind(this._handleMousedown,this),this._ringNode);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['61']++;Y.on('gesturemoveend',Y.bind(this._handleRingMouseup,this),this._ringNode);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['62']++;this._dd1=new Drag({node:this._handleNode,on:{'drag:drag':Y.bind(this._handleDrag,this),'drag:start':Y.bind(this._handleDragStart,this),'drag:end':Y.bind(this._handleDragEnd,this)}});__cov_ZWlbltCJ_ihuBHohWg2uIw.s['63']++;Y.bind(this._dd1.addHandle(this._ringNode),this);},_setTimesWrappedFromValue:function(val){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['11']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['64']++;if(val%this._stepsPerRevolution===0){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['5'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['65']++;this._timesWrapped=val/this._stepsPerRevolution;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['5'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['66']++;this._timesWrapped=Math.floor(val/this._stepsPerRevolution);}},_getAngleFromHandleCenter:function(handleCenterX,handleCenterY){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['12']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['67']++;var ang=Math.atan((this._dialCenterY-handleCenterY)/(this._dialCenterX-handleCenterX))*(180/Math.PI);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['68']++;ang=this._dialCenterX-handleCenterX<0?(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['6'][0]++,ang+90):(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['6'][1]++,ang+90+180);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['69']++;return ang;},_calculateDialCenter:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['13']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['70']++;this._dialCenterX=this._ringNode.get('offsetWidth')/2;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['71']++;this._dialCenterY=this._ringNode.get('offsetHeight')/2;},_handleRingMouseup:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['14']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['72']++;this._handleNode.focus();},_handleCenterButtonMouseup:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['15']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['73']++;this._handleNode.focus();},_handleHandleMousedown:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['16']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['74']++;this._handleNode.focus();},_handleDrag:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['17']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['75']++;var handleCenterX,handleCenterY,ang,newValue;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['76']++;handleCenterX=parseInt(this._handleNode.getStyle('left'),10)+this._handleNodeRadius;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['77']++;handleCenterY=parseInt(this._handleNode.getStyle('top'),10)+this._handleNodeRadius;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['78']++;ang=this._getAngleFromHandleCenter(handleCenterX,handleCenterY);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['79']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['8'][0]++,this._prevAng>270)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['8'][1]++,ang<90)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['7'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['80']++;if(this._timesWrapped<this._maxTimesWrapped){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['9'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['81']++;this._timesWrapped=this._timesWrapped+1;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['9'][1]++;}}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['7'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['82']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['11'][0]++,this._prevAng<90)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['11'][1]++,ang>270)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['10'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['83']++;if(this._timesWrapped>this._minTimesWrapped){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['12'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['84']++;this._timesWrapped=this._timesWrapped-1;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['12'][1]++;}}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['10'][1]++;}}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['85']++;newValue=this._getValueFromAngle(ang);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['86']++;if(newValue>this._maxValue+this._stepsPerRevolution){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['13'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['87']++;this._timesWrapped--;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['13'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['88']++;if(newValue<this._minValue-this._stepsPerRevolution){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['14'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['89']++;this._timesWrapped++;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['14'][1]++;}}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['90']++;this._prevAng=ang;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['91']++;this._handleValuesBeyondMinMax(e,newValue);},_handleMousedown:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['18']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['92']++;if(this._ringNode.compareTo(e.target)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['15'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['93']++;var minAng=this._getAngleFromValue(this._minValue),maxAng=this._getAngleFromValue(this._maxValue),newValue,oppositeMidRangeAngle,handleCenterX,handleCenterY,ang;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['94']++;if(Y.UA.ios){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['16'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['95']++;handleCenterX=e.clientX-this._ringNode.getX();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['96']++;handleCenterY=e.clientY-this._ringNode.getY();}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['16'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['97']++;handleCenterX=e.clientX+Y.one('document').get('scrollLeft')-this._ringNode.getX();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['98']++;handleCenterY=e.clientY+Y.one('document').get('scrollTop')-this._ringNode.getY();}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['99']++;ang=this._getAngleFromHandleCenter(handleCenterX,handleCenterY);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['100']++;if(this._maxValue-this._minValue>this._stepsPerRevolution){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['17'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['101']++;if(Math.abs(this._prevAng-ang)>180){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['18'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['102']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['20'][0]++,this._timesWrapped>this._minTimesWrapped)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['20'][1]++,this._timesWrapped<this._maxTimesWrapped)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['19'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['103']++;this._timesWrapped=this._prevAng-ang>0?(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['21'][0]++,this._timesWrapped+1):(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['21'][1]++,this._timesWrapped-1);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['19'][1]++;}}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['18'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['104']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['23'][0]++,this._timesWrapped===this._minTimesWrapped)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['23'][1]++,ang-this._prevAng<180)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['22'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['105']++;this._timesWrapped++;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['22'][1]++;}}}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['17'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['106']++;if(this._maxValue-this._minValue===this._stepsPerRevolution){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['24'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['107']++;if(ang<minAng){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['25'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['108']++;this._timesWrapped=1;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['25'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['109']++;this._timesWrapped=0;}}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['24'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['110']++;if(minAng>maxAng){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['26'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['111']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['28'][0]++,this._prevAng>=minAng)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['28'][1]++,ang<=(minAng+maxAng)/2)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['27'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['112']++;this._timesWrapped++;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['27'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['113']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['30'][0]++,this._prevAng<=maxAng)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['30'][1]++,ang>(minAng+maxAng)/2)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['29'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['114']++;this._timesWrapped--;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['29'][1]++;}}}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['26'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['115']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['32'][0]++,ang<minAng)||(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['32'][1]++,ang>maxAng)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['31'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['116']++;oppositeMidRangeAngle=((minAng+maxAng)/2+180)%360;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['117']++;if(oppositeMidRangeAngle>180){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['33'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['118']++;newValue=(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['35'][0]++,maxAng<ang)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['35'][1]++,ang<oppositeMidRangeAngle)?(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['34'][0]++,this.get('max')):(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['34'][1]++,this.get('min'));}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['33'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['119']++;newValue=(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['37'][0]++,minAng>ang)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['37'][1]++,ang>oppositeMidRangeAngle)?(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['36'][0]++,this.get('min')):(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['36'][1]++,this.get('max'));}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['120']++;this._prevAng=this._getAngleFromValue(newValue);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['121']++;this.set('value',newValue);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['122']++;this._setTimesWrappedFromValue(newValue);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['123']++;return;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['31'][1]++;}}}}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['124']++;newValue=this._getValueFromAngle(ang);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['125']++;if(newValue>this._maxValue){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['38'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['126']++;this._prevAng=this._getAngleFromValue(this._maxValue);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['38'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['127']++;if(newValue<this._minValue){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['39'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['128']++;this._prevAng=this._getAngleFromValue(this._minValue);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['39'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['129']++;this._prevAng=ang;}}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['130']++;this._handleValuesBeyondMinMax(e,newValue);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['15'][1]++;}},_handleValuesBeyondMinMax:function(e,newValue){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['19']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['131']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['41'][0]++,newValue>=this._minValue)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['41'][1]++,newValue<=this._maxValue)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['40'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['132']++;this.set('value',newValue);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['133']++;if(e.currentTarget===this._ringNode){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['42'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['134']++;this._dd1._handleMouseDownEvent(e);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['42'][1]++;}}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['40'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['135']++;if(newValue>this._maxValue){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['43'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['136']++;this.set('value',this._maxValue);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['43'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['137']++;if(newValue<this._minValue){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['44'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['138']++;this.set('value',this._minValue);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['44'][1]++;}}}},_handleDragStart:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['20']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['139']++;this._markerNode.removeClass(Dial.CSS_CLASSES.hidden);},_handleDragEnd:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['21']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['140']++;var node=this._handleNode;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['141']++;node.transition({duration:0.08,easing:'ease-in',left:this._setNodeToFixedRadius(this._handleNode,true)[0]+'px',top:this._setNodeToFixedRadius(this._handleNode,true)[1]+'px'},Y.bind(function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['22']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['142']++;var value=this.get('value');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['143']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['46'][0]++,value>this._minValue)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['46'][1]++,value<this._maxValue)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['45'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['144']++;this._markerNode.addClass(Dial.CSS_CLASSES.hidden);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['45'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['145']++;this._setTimesWrappedFromValue(value);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['146']++;this._prevAng=this._getAngleFromValue(value);}},this));},_setNodeToFixedRadius:function(obj,typeArray){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['23']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['147']++;var thisAngle=this._angle-90,rad=Math.PI/180,newY=Math.round(Math.sin(thisAngle*rad)*this._handleDistance),newX=Math.round(Math.cos(thisAngle*rad)*this._handleDistance),dia=obj.get('offsetWidth');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['148']++;newY=newY-dia*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['149']++;newX=newX-dia*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['150']++;if(typeArray){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['47'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['151']++;return[this._ringNodeRadius+newX,this._ringNodeRadius+newY];}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['47'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['152']++;obj.setStyle('left',this._ringNodeRadius+newX+'px');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['153']++;obj.setStyle('top',this._ringNodeRadius+newY+'px');}},syncUI:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['24']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['154']++;this._setSizes();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['155']++;this._calculateDialCenter();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['156']++;this._setBorderRadius();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['157']++;this._uiSetValue(this.get('value'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['158']++;this._markerNode.addClass(Dial.CSS_CLASSES.hidden);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['159']++;this._resetString.addClass(Dial.CSS_CLASSES.hidden);},_setSizes:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['25']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['160']++;var dia=this.get('diameter'),offset,offsetResetX,offsetResetY,setSize=function(node,dia,percent){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['26']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['161']++;var suffix='px';__cov_ZWlbltCJ_ihuBHohWg2uIw.s['162']++;node.getElementsByTagName('oval').setStyle('width',dia*percent+suffix);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['163']++;node.getElementsByTagName('oval').setStyle('height',dia*percent+suffix);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['164']++;node.setStyle('width',dia*percent+suffix);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['165']++;node.setStyle('height',dia*percent+suffix);};__cov_ZWlbltCJ_ihuBHohWg2uIw.s['166']++;setSize(this._ringNode,dia,1);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['167']++;setSize(this._handleNode,dia,this.get('handleDiameter'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['168']++;setSize(this._markerNode,dia,this.get('markerDiameter'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['169']++;setSize(this._centerButtonNode,dia,this.get('centerButtonDiameter'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['170']++;this._ringNodeRadius=this._ringNode.get('offsetWidth')*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['171']++;this._handleNodeRadius=this._handleNode.get('offsetWidth')*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['172']++;this._markerNodeRadius=this._markerNode.get('offsetWidth')*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['173']++;this._centerButtonNodeRadius=this._centerButtonNode.get('offsetWidth')*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['174']++;this._handleDistance=this._ringNodeRadius*this.get('handleDistance');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['175']++;offset=this._ringNodeRadius-this._centerButtonNodeRadius;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['176']++;this._centerButtonNode.setStyle('left',offset+'px');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['177']++;this._centerButtonNode.setStyle('top',offset+'px');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['178']++;offsetResetX=this._centerButtonNodeRadius-this._resetString.get('offsetWidth')*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['179']++;offsetResetY=this._centerButtonNodeRadius-this._resetString.get('offsetHeight')*0.5;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['180']++;this._resetString.setStyles({'left':offsetResetX+'px','top':offsetResetY+'px'});},_renderLabel:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['27']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['181']++;var contentBox=this.get('contentBox'),label=contentBox.one('.'+Dial.CSS_CLASSES.label);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['182']++;if(!label){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['48'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['183']++;label=Node.create(Y.Lang.sub(Dial.LABEL_TEMPLATE,this.get('strings')));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['184']++;contentBox.append(label);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['48'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['185']++;this._labelNode=label;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['186']++;this._valueStringNode=this._labelNode.one('.'+Dial.CSS_CLASSES.valueString);},_renderRing:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['28']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['187']++;var contentBox=this.get('contentBox'),ring=contentBox.one('.'+Dial.CSS_CLASSES.ring);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['188']++;if(!ring){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['49'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['189']++;ring=contentBox.appendChild(Dial.RING_TEMPLATE);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['190']++;ring.setStyles({width:this.get('diameter')+'px',height:this.get('diameter')+'px'});}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['49'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['191']++;this._ringNode=ring;},_renderMarker:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['29']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['192']++;var contentBox=this.get('contentBox'),marker=contentBox.one('.'+Dial.CSS_CLASSES.marker);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['193']++;if(!marker){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['50'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['194']++;marker=contentBox.one('.'+Dial.CSS_CLASSES.ring).appendChild(Dial.MARKER_TEMPLATE);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['50'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['195']++;this._markerNode=marker;},_renderCenterButton:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['30']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['196']++;var contentBox=this.get('contentBox'),centerButton=contentBox.one('.'+Dial.CSS_CLASSES.centerButton);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['197']++;if(!centerButton){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['51'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['198']++;centerButton=Node.create(Y.Lang.sub(Dial.CENTER_BUTTON_TEMPLATE,this.get('strings')));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['199']++;contentBox.one('.'+Dial.CSS_CLASSES.ring).append(centerButton);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['51'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['200']++;this._centerButtonNode=centerButton;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['201']++;this._resetString=this._centerButtonNode.one('.'+Dial.CSS_CLASSES.resetString);},_renderHandle:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['31']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['202']++;var labelId=Dial.CSS_CLASSES.label+Y.guid(),contentBox=this.get('contentBox'),handle=contentBox.one('.'+Dial.CSS_CLASSES.handle);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['203']++;if(!handle){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['52'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['204']++;handle=Node.create(Y.Lang.sub(Dial.HANDLE_TEMPLATE,this.get('strings')));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['205']++;handle.setAttribute('aria-labelledby',labelId);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['206']++;this._labelNode.one('.'+Dial.CSS_CLASSES.labelString).setAttribute('id',labelId);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['207']++;contentBox.one('.'+Dial.CSS_CLASSES.ring).append(handle);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['52'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['208']++;this._handleNode=handle;},_setLabelString:function(str){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['32']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['209']++;this.get('contentBox').one('.'+Dial.CSS_CLASSES.labelString).setHTML(str);},_setResetString:function(str){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['33']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['210']++;this.get('contentBox').one('.'+Dial.CSS_CLASSES.resetString).setHTML(str);},_setTooltipString:function(str){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['34']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['211']++;this._handleNode.set('title',str);},_onDirectionKey:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['35']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['212']++;e.preventDefault();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['213']++;switch(e.charCode){case 38:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['53'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['214']++;this._incrMinor();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['215']++;break;case 40:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['53'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['216']++;this._decrMinor();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['217']++;break;case 36:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['53'][2]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['218']++;this._setToMin();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['219']++;break;case 35:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['53'][3]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['220']++;this._setToMax();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['221']++;break;case 33:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['53'][4]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['222']++;this._incrMajor();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['223']++;break;case 34:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['53'][5]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['224']++;this._decrMajor();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['225']++;break;}},_onLeftRightKey:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['36']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['226']++;e.preventDefault();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['227']++;switch(e.charCode){case 37:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['54'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['228']++;this._decrMinor();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['229']++;break;case 39:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['54'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['230']++;this._incrMinor();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['231']++;break;}},_onLeftRightKeyMeta:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['37']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['232']++;e.preventDefault();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['233']++;switch(e.charCode){case 37:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['55'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['234']++;this._setToMin();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['235']++;break;case 39:__cov_ZWlbltCJ_ihuBHohWg2uIw.b['55'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['236']++;this._setToMax();__cov_ZWlbltCJ_ihuBHohWg2uIw.s['237']++;break;}},_incrMinor:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['38']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['238']++;var newVal=this.get('value')+this.get('minorStep');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['239']++;newVal=Math.min(newVal,this.get('max'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['240']++;this.set('value',newVal.toFixed(this.get('decimalPlaces'))-0);},_decrMinor:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['39']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['241']++;var newVal=this.get('value')-this.get('minorStep');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['242']++;newVal=Math.max(newVal,this.get('min'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['243']++;this.set('value',newVal.toFixed(this.get('decimalPlaces'))-0);},_incrMajor:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['40']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['244']++;var newVal=this.get('value')+this.get('majorStep');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['245']++;newVal=Math.min(newVal,this.get('max'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['246']++;this.set('value',newVal.toFixed(this.get('decimalPlaces'))-0);},_decrMajor:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['41']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['247']++;var newVal=this.get('value')-this.get('majorStep');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['248']++;newVal=Math.max(newVal,this.get('min'));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['249']++;this.set('value',newVal.toFixed(this.get('decimalPlaces'))-0);},_setToMax:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['42']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['250']++;this.set('value',this.get('max'));},_setToMin:function(){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['43']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['251']++;this.set('value',this.get('min'));},_resetDial:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['44']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['252']++;if(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['56'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['253']++;e.stopPropagation();}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['56'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['254']++;this.set('value',this._originalValue);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['255']++;this._resetString.addClass(Dial.CSS_CLASSES.hidden);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['256']++;this._handleNode.focus();},_getAngleFromValue:function(newVal){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['45']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['257']++;var nonWrappedPartOfValue=newVal%this._stepsPerRevolution,angleFromValue=nonWrappedPartOfValue/this._stepsPerRevolution*360;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['258']++;return angleFromValue<0?(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['57'][0]++,angleFromValue+360):(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['57'][1]++,angleFromValue);},_getValueFromAngle:function(angle){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['46']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['259']++;if(angle<0){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['58'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['260']++;angle=360+angle;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['58'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['261']++;if(angle===0){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['59'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['262']++;angle=360;}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['59'][1]++;}}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['263']++;var value=angle/360*this._stepsPerRevolution;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['264']++;value=value+this._timesWrapped*this._stepsPerRevolution;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['265']++;return value.toFixed(this.get('decimalPlaces'))-0;},_afterValueChange:function(e){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['47']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['266']++;this._uiSetValue(e.newVal);},_valueToDecimalPlaces:function(val){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['48']++;},_uiSetValue:function(val){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['49']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['267']++;this._angle=this._getAngleFromValue(val);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['268']++;if(this._handleNode.hasClass(Dial.CSS_CLASSES.dragging)===false){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['60'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['269']++;this._setTimesWrappedFromValue(val);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['270']++;this._setNodeToFixedRadius(this._handleNode,false);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['271']++;this._prevAng=this._getAngleFromValue(this.get('value'));}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['60'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['272']++;this._valueStringNode.setHTML(val.toFixed(this.get('decimalPlaces')));__cov_ZWlbltCJ_ihuBHohWg2uIw.s['273']++;this._handleNode.set('aria-valuenow',val);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['274']++;this._handleNode.set('aria-valuetext',val);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['275']++;this._setNodeToFixedRadius(this._markerNode,false);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['276']++;if((__cov_ZWlbltCJ_ihuBHohWg2uIw.b['62'][0]++,val===this._maxValue)||(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['62'][1]++,val===this._minValue)){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['61'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['277']++;this._markerNode.addClass(Dial.CSS_CLASSES.markerMaxMin);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['278']++;if(supportsVML===true){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['63'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['279']++;this._markerNode.getElementsByTagName('fill').set('color','#AB3232');}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['63'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['280']++;this._markerNode.removeClass(Dial.CSS_CLASSES.hidden);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['61'][1]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['281']++;if(supportsVML===true){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['64'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['282']++;this._markerNode.getElementsByTagName('fill').set('color','#000');}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['64'][1]++;}__cov_ZWlbltCJ_ihuBHohWg2uIw.s['283']++;this._markerNode.removeClass(Dial.CSS_CLASSES.markerMaxMin);__cov_ZWlbltCJ_ihuBHohWg2uIw.s['284']++;if(this._handleNode.hasClass(Dial.CSS_CLASSES.dragging)===false){__cov_ZWlbltCJ_ihuBHohWg2uIw.b['65'][0]++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['285']++;this._markerNode.addClass(Dial.CSS_CLASSES.hidden);}else{__cov_ZWlbltCJ_ihuBHohWg2uIw.b['65'][1]++;}}},_validateValue:function(val){__cov_ZWlbltCJ_ihuBHohWg2uIw.f['50']++;__cov_ZWlbltCJ_ihuBHohWg2uIw.s['286']++;var min=this.get('min'),max=this.get('max');__cov_ZWlbltCJ_ihuBHohWg2uIw.s['287']++;return(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['66'][0]++,Lang.isNumber(val))&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['66'][1]++,val>=min)&&(__cov_ZWlbltCJ_ihuBHohWg2uIw.b['66'][2]++,val<=max);}});__cov_ZWlbltCJ_ihuBHohWg2uIw.s['288']++;Y.Dial=Dial;},'@VERSION@',{'requires':['widget','dd-drag','event-mouseenter','event-move','event-key','transition','intl'],'lang':['en','es','hu'],'skinnable':true});