diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/build/uploader-flash/uploader-flash-coverage.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/build/uploader-flash/uploader-flash-coverage.js Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,13 @@ +/* +YUI 3.10.3 (build 2fb5187) +Copyright 2013 Yahoo! Inc. All rights reserved. +Licensed under the BSD License. +http://yuilibrary.com/license/ +*/ + +if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } +if (!__coverage__['build/uploader-flash/uploader-flash.js']) { + __coverage__['build/uploader-flash/uploader-flash.js'] = {"path":"build/uploader-flash/uploader-flash.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},"b":{"1":[0,0],"2":[0,0],"3":[0,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,0,0,0,0,0,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,0,0],"28":[0,0],"29":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":45}}},"2":{"name":"UploaderFlash","line":26,"loc":{"start":{"line":26,"column":0},"end":{"line":26,"column":25}}},"3":{"name":"(anonymous_3)","line":100,"loc":{"start":{"line":100,"column":18},"end":{"line":100,"column":30}}},"4":{"name":"(anonymous_4)","line":285,"loc":{"start":{"line":285,"column":15},"end":{"line":285,"column":27}}},"5":{"name":"(anonymous_5)","line":319,"loc":{"start":{"line":319,"column":13},"end":{"line":319,"column":25}}},"6":{"name":"(anonymous_6)","line":321,"loc":{"start":{"line":321,"column":42},"end":{"line":321,"column":54}}},"7":{"name":"(anonymous_7)","line":338,"loc":{"start":{"line":338,"column":44},"end":{"line":338,"column":56}}},"8":{"name":"(anonymous_8)","line":346,"loc":{"start":{"line":346,"column":44},"end":{"line":346,"column":56}}},"9":{"name":"(anonymous_9)","line":352,"loc":{"start":{"line":352,"column":43},"end":{"line":352,"column":55}}},"10":{"name":"(anonymous_10)","line":358,"loc":{"start":{"line":358,"column":41},"end":{"line":358,"column":53}}},"11":{"name":"(anonymous_11)","line":364,"loc":{"start":{"line":364,"column":39},"end":{"line":364,"column":51}}},"12":{"name":"(anonymous_12)","line":383,"loc":{"start":{"line":383,"column":25},"end":{"line":383,"column":37}}},"13":{"name":"(anonymous_13)","line":402,"loc":{"start":{"line":402,"column":70},"end":{"line":402,"column":84}}},"14":{"name":"(anonymous_14)","line":412,"loc":{"start":{"line":412,"column":66},"end":{"line":412,"column":80}}},"15":{"name":"(anonymous_15)","line":422,"loc":{"start":{"line":422,"column":80},"end":{"line":422,"column":92}}},"16":{"name":"(anonymous_16)","line":424,"loc":{"start":{"line":424,"column":27},"end":{"line":424,"column":39}}},"17":{"name":"(anonymous_17)","line":429,"loc":{"start":{"line":429,"column":86},"end":{"line":429,"column":98}}},"18":{"name":"(anonymous_18)","line":431,"loc":{"start":{"line":431,"column":27},"end":{"line":431,"column":39}}},"19":{"name":"(anonymous_19)","line":436,"loc":{"start":{"line":436,"column":81},"end":{"line":436,"column":93}}},"20":{"name":"(anonymous_20)","line":441,"loc":{"start":{"line":441,"column":79},"end":{"line":441,"column":91}}},"21":{"name":"(anonymous_21)","line":466,"loc":{"start":{"line":466,"column":22},"end":{"line":466,"column":44}}},"22":{"name":"(anonymous_22)","line":483,"loc":{"start":{"line":483,"column":22},"end":{"line":483,"column":34}}},"23":{"name":"(anonymous_23)","line":498,"loc":{"start":{"line":498,"column":24},"end":{"line":498,"column":36}}},"24":{"name":"(anonymous_24)","line":511,"loc":{"start":{"line":511,"column":22},"end":{"line":511,"column":34}}},"25":{"name":"(anonymous_25)","line":530,"loc":{"start":{"line":530,"column":19},"end":{"line":530,"column":31}}},"26":{"name":"(anonymous_26)","line":540,"loc":{"start":{"line":540,"column":19},"end":{"line":540,"column":34}}},"27":{"name":"(anonymous_27)","line":555,"loc":{"start":{"line":555,"column":22},"end":{"line":555,"column":36}}},"28":{"name":"(anonymous_28)","line":568,"loc":{"start":{"line":568,"column":25},"end":{"line":568,"column":42}}},"29":{"name":"(anonymous_29)","line":582,"loc":{"start":{"line":582,"column":36},"end":{"line":582,"column":53}}},"30":{"name":"(anonymous_30)","line":590,"loc":{"start":{"line":590,"column":36},"end":{"line":590,"column":53}}},"31":{"name":"(anonymous_31)","line":615,"loc":{"start":{"line":615,"column":26},"end":{"line":615,"column":43}}},"32":{"name":"(anonymous_32)","line":657,"loc":{"start":{"line":657,"column":13},"end":{"line":657,"column":44}}},"33":{"name":"(anonymous_33)","line":685,"loc":{"start":{"line":685,"column":16},"end":{"line":685,"column":41}}},"34":{"name":"(anonymous_34)","line":698,"loc":{"start":{"line":698,"column":18},"end":{"line":698,"column":50}}},"35":{"name":"(anonymous_35)","line":718,"loc":{"start":{"line":718,"column":49},"end":{"line":718,"column":61}}},"36":{"name":"(anonymous_36)","line":856,"loc":{"start":{"line":856,"column":23},"end":{"line":856,"column":38}}},"37":{"name":"(anonymous_37)","line":972,"loc":{"start":{"line":972,"column":21},"end":{"line":972,"column":33}}},"38":{"name":"(anonymous_38)","line":989,"loc":{"start":{"line":989,"column":23},"end":{"line":989,"column":38}}},"39":{"name":"(anonymous_39)","line":1006,"loc":{"start":{"line":1006,"column":21},"end":{"line":1006,"column":33}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1065,"column":123}},"2":{"start":{"line":13,"column":0},"end":{"line":14,"column":45}},"3":{"start":{"line":26,"column":0},"end":{"line":28,"column":1}},"4":{"start":{"line":27,"column":4},"end":{"line":27,"column":67}},"5":{"start":{"line":32,"column":0},"end":{"line":1060,"column":3}},"6":{"start":{"line":103,"column":8},"end":{"line":103,"column":50}},"7":{"start":{"line":104,"column":8},"end":{"line":104,"column":34}},"8":{"start":{"line":105,"column":8},"end":{"line":105,"column":26}},"9":{"start":{"line":106,"column":8},"end":{"line":106,"column":33}},"10":{"start":{"line":107,"column":8},"end":{"line":107,"column":33}},"11":{"start":{"line":108,"column":8},"end":{"line":108,"column":40}},"12":{"start":{"line":109,"column":8},"end":{"line":109,"column":28}},"13":{"start":{"line":125,"column":8},"end":{"line":125,"column":35}},"14":{"start":{"line":133,"column":8},"end":{"line":133,"column":36}},"15":{"start":{"line":148,"column":8},"end":{"line":148,"column":40}},"16":{"start":{"line":167,"column":8},"end":{"line":167,"column":39}},"17":{"start":{"line":184,"column":8},"end":{"line":184,"column":44}},"18":{"start":{"line":201,"column":8},"end":{"line":201,"column":39}},"19":{"start":{"line":209,"column":8},"end":{"line":209,"column":43}},"20":{"start":{"line":230,"column":8},"end":{"line":230,"column":36}},"21":{"start":{"line":238,"column":8},"end":{"line":238,"column":35}},"22":{"start":{"line":246,"column":8},"end":{"line":246,"column":35}},"23":{"start":{"line":254,"column":8},"end":{"line":254,"column":34}},"24":{"start":{"line":262,"column":8},"end":{"line":262,"column":32}},"25":{"start":{"line":270,"column":8},"end":{"line":270,"column":30}},"26":{"start":{"line":286,"column":8},"end":{"line":300,"column":14}},"27":{"start":{"line":302,"column":8},"end":{"line":302,"column":53}},"28":{"start":{"line":303,"column":8},"end":{"line":303,"column":66}},"29":{"start":{"line":304,"column":8},"end":{"line":304,"column":42}},"30":{"start":{"line":305,"column":8},"end":{"line":305,"column":42}},"31":{"start":{"line":307,"column":8},"end":{"line":307,"column":83}},"32":{"start":{"line":321,"column":8},"end":{"line":330,"column":17}},"33":{"start":{"line":322,"column":12},"end":{"line":322,"column":37}},"34":{"start":{"line":323,"column":12},"end":{"line":323,"column":35}},"35":{"start":{"line":324,"column":12},"end":{"line":324,"column":35}},"36":{"start":{"line":325,"column":12},"end":{"line":325,"column":38}},"37":{"start":{"line":326,"column":12},"end":{"line":326,"column":76}},"38":{"start":{"line":327,"column":12},"end":{"line":327,"column":72}},"39":{"start":{"line":328,"column":12},"end":{"line":328,"column":68}},"40":{"start":{"line":329,"column":12},"end":{"line":329,"column":69}},"41":{"start":{"line":332,"column":8},"end":{"line":332,"column":72}},"42":{"start":{"line":338,"column":8},"end":{"line":344,"column":17}},"43":{"start":{"line":339,"column":12},"end":{"line":339,"column":36}},"44":{"start":{"line":340,"column":12},"end":{"line":340,"column":48}},"45":{"start":{"line":341,"column":12},"end":{"line":343,"column":13}},"46":{"start":{"line":342,"column":16},"end":{"line":342,"column":53}},"47":{"start":{"line":346,"column":8},"end":{"line":350,"column":17}},"48":{"start":{"line":347,"column":12},"end":{"line":347,"column":36}},"49":{"start":{"line":348,"column":12},"end":{"line":348,"column":49}},"50":{"start":{"line":349,"column":12},"end":{"line":349,"column":50}},"51":{"start":{"line":352,"column":8},"end":{"line":356,"column":17}},"52":{"start":{"line":353,"column":12},"end":{"line":353,"column":35}},"53":{"start":{"line":354,"column":12},"end":{"line":354,"column":39}},"54":{"start":{"line":355,"column":12},"end":{"line":355,"column":49}},"55":{"start":{"line":358,"column":8},"end":{"line":362,"column":17}},"56":{"start":{"line":359,"column":12},"end":{"line":359,"column":33}},"57":{"start":{"line":360,"column":12},"end":{"line":360,"column":37}},"58":{"start":{"line":361,"column":12},"end":{"line":361,"column":50}},"59":{"start":{"line":364,"column":8},"end":{"line":370,"column":17}},"60":{"start":{"line":365,"column":12},"end":{"line":365,"column":31}},"61":{"start":{"line":366,"column":12},"end":{"line":366,"column":37}},"62":{"start":{"line":367,"column":12},"end":{"line":367,"column":48}},"63":{"start":{"line":368,"column":12},"end":{"line":368,"column":34}},"64":{"start":{"line":369,"column":12},"end":{"line":369,"column":44}},"65":{"start":{"line":384,"column":8},"end":{"line":453,"column":9}},"66":{"start":{"line":386,"column":12},"end":{"line":396,"column":13}},"67":{"start":{"line":387,"column":16},"end":{"line":387,"column":55}},"68":{"start":{"line":388,"column":16},"end":{"line":388,"column":53}},"69":{"start":{"line":389,"column":16},"end":{"line":389,"column":58}},"70":{"start":{"line":390,"column":16},"end":{"line":390,"column":61}},"71":{"start":{"line":391,"column":16},"end":{"line":391,"column":56}},"72":{"start":{"line":392,"column":16},"end":{"line":392,"column":55}},"73":{"start":{"line":395,"column":16},"end":{"line":395,"column":46}},"74":{"start":{"line":398,"column":12},"end":{"line":399,"column":62}},"75":{"start":{"line":402,"column":12},"end":{"line":410,"column":21}},"76":{"start":{"line":403,"column":16},"end":{"line":409,"column":17}},"77":{"start":{"line":404,"column":20},"end":{"line":404,"column":40}},"78":{"start":{"line":405,"column":20},"end":{"line":405,"column":72}},"79":{"start":{"line":406,"column":20},"end":{"line":406,"column":75}},"80":{"start":{"line":407,"column":20},"end":{"line":407,"column":102}},"81":{"start":{"line":408,"column":20},"end":{"line":408,"column":52}},"82":{"start":{"line":412,"column":12},"end":{"line":420,"column":21}},"83":{"start":{"line":413,"column":16},"end":{"line":419,"column":17}},"84":{"start":{"line":414,"column":20},"end":{"line":414,"column":40}},"85":{"start":{"line":415,"column":20},"end":{"line":415,"column":72}},"86":{"start":{"line":416,"column":20},"end":{"line":416,"column":75}},"87":{"start":{"line":417,"column":20},"end":{"line":417,"column":102}},"88":{"start":{"line":418,"column":20},"end":{"line":418,"column":52}},"89":{"start":{"line":422,"column":12},"end":{"line":427,"column":21}},"90":{"start":{"line":423,"column":16},"end":{"line":423,"column":47}},"91":{"start":{"line":424,"column":16},"end":{"line":426,"column":23}},"92":{"start":{"line":425,"column":20},"end":{"line":425,"column":40}},"93":{"start":{"line":429,"column":12},"end":{"line":434,"column":21}},"94":{"start":{"line":430,"column":16},"end":{"line":430,"column":47}},"95":{"start":{"line":431,"column":16},"end":{"line":433,"column":23}},"96":{"start":{"line":432,"column":20},"end":{"line":432,"column":38}},"97":{"start":{"line":436,"column":12},"end":{"line":439,"column":21}},"98":{"start":{"line":437,"column":16},"end":{"line":437,"column":41}},"99":{"start":{"line":438,"column":16},"end":{"line":438,"column":52}},"100":{"start":{"line":441,"column":12},"end":{"line":444,"column":21}},"101":{"start":{"line":442,"column":16},"end":{"line":442,"column":42}},"102":{"start":{"line":443,"column":16},"end":{"line":443,"column":53}},"103":{"start":{"line":446,"column":13},"end":{"line":453,"column":9}},"104":{"start":{"line":447,"column":12},"end":{"line":447,"column":51}},"105":{"start":{"line":448,"column":12},"end":{"line":448,"column":49}},"106":{"start":{"line":449,"column":12},"end":{"line":449,"column":54}},"107":{"start":{"line":450,"column":12},"end":{"line":450,"column":57}},"108":{"start":{"line":451,"column":12},"end":{"line":451,"column":52}},"109":{"start":{"line":452,"column":12},"end":{"line":452,"column":51}},"110":{"start":{"line":467,"column":8},"end":{"line":472,"column":9}},"111":{"start":{"line":468,"column":12},"end":{"line":468,"column":88}},"112":{"start":{"line":471,"column":12},"end":{"line":471,"column":91}},"113":{"start":{"line":484,"column":8},"end":{"line":486,"column":9}},"114":{"start":{"line":485,"column":12},"end":{"line":485,"column":84}},"115":{"start":{"line":499,"column":8},"end":{"line":501,"column":9}},"116":{"start":{"line":500,"column":12},"end":{"line":500,"column":93}},"117":{"start":{"line":512,"column":8},"end":{"line":521,"column":9}},"118":{"start":{"line":513,"column":12},"end":{"line":513,"column":49}},"119":{"start":{"line":514,"column":12},"end":{"line":514,"column":75}},"120":{"start":{"line":515,"column":12},"end":{"line":515,"column":52}},"121":{"start":{"line":518,"column":12},"end":{"line":518,"column":50}},"122":{"start":{"line":519,"column":12},"end":{"line":519,"column":74}},"123":{"start":{"line":520,"column":12},"end":{"line":520,"column":51}},"124":{"start":{"line":531,"column":8},"end":{"line":531,"column":39}},"125":{"start":{"line":541,"column":8},"end":{"line":541,"column":38}},"126":{"start":{"line":542,"column":8},"end":{"line":542,"column":39}},"127":{"start":{"line":557,"column":8},"end":{"line":557,"column":30}},"128":{"start":{"line":558,"column":8},"end":{"line":558,"column":40}},"129":{"start":{"line":561,"column":8},"end":{"line":566,"column":21}},"130":{"start":{"line":568,"column":8},"end":{"line":579,"column":11}},"131":{"start":{"line":569,"column":12},"end":{"line":569,"column":33}},"132":{"start":{"line":570,"column":12},"end":{"line":570,"column":42}},"133":{"start":{"line":571,"column":12},"end":{"line":571,"column":56}},"134":{"start":{"line":572,"column":12},"end":{"line":572,"column":56}},"135":{"start":{"line":573,"column":12},"end":{"line":573,"column":56}},"136":{"start":{"line":574,"column":12},"end":{"line":574,"column":71}},"137":{"start":{"line":575,"column":12},"end":{"line":575,"column":76}},"138":{"start":{"line":576,"column":12},"end":{"line":576,"column":42}},"139":{"start":{"line":578,"column":12},"end":{"line":578,"column":46}},"140":{"start":{"line":581,"column":9},"end":{"line":593,"column":10}},"141":{"start":{"line":582,"column":12},"end":{"line":587,"column":15}},"142":{"start":{"line":583,"column":16},"end":{"line":583,"column":53}},"143":{"start":{"line":584,"column":16},"end":{"line":586,"column":17}},"144":{"start":{"line":585,"column":20},"end":{"line":585,"column":46}},"145":{"start":{"line":590,"column":12},"end":{"line":592,"column":15}},"146":{"start":{"line":591,"column":16},"end":{"line":591,"column":57}},"147":{"start":{"line":595,"column":8},"end":{"line":602,"column":9}},"148":{"start":{"line":596,"column":12},"end":{"line":596,"column":44}},"149":{"start":{"line":598,"column":12},"end":{"line":599,"column":103}},"150":{"start":{"line":601,"column":12},"end":{"line":601,"column":63}},"151":{"start":{"line":617,"column":8},"end":{"line":642,"column":9}},"152":{"start":{"line":619,"column":17},"end":{"line":619,"column":53}},"153":{"start":{"line":620,"column":16},"end":{"line":620,"column":22}},"154":{"start":{"line":622,"column":17},"end":{"line":622,"column":52}},"155":{"start":{"line":623,"column":16},"end":{"line":623,"column":22}},"156":{"start":{"line":625,"column":17},"end":{"line":625,"column":57}},"157":{"start":{"line":626,"column":16},"end":{"line":626,"column":22}},"158":{"start":{"line":628,"column":17},"end":{"line":628,"column":52}},"159":{"start":{"line":629,"column":16},"end":{"line":629,"column":22}},"160":{"start":{"line":631,"column":17},"end":{"line":631,"column":35}},"161":{"start":{"line":632,"column":17},"end":{"line":632,"column":56}},"162":{"start":{"line":633,"column":16},"end":{"line":633,"column":22}},"163":{"start":{"line":636,"column":17},"end":{"line":636,"column":49}},"164":{"start":{"line":637,"column":16},"end":{"line":637,"column":22}},"165":{"start":{"line":640,"column":17},"end":{"line":640,"column":50}},"166":{"start":{"line":641,"column":12},"end":{"line":641,"column":18}},"167":{"start":{"line":659,"column":8},"end":{"line":661,"column":36}},"168":{"start":{"line":663,"column":12},"end":{"line":663,"column":85}},"169":{"start":{"line":665,"column":8},"end":{"line":674,"column":9}},"170":{"start":{"line":667,"column":12},"end":{"line":667,"column":67}},"171":{"start":{"line":668,"column":12},"end":{"line":668,"column":70}},"172":{"start":{"line":669,"column":12},"end":{"line":669,"column":70}},"173":{"start":{"line":670,"column":12},"end":{"line":670,"column":67}},"174":{"start":{"line":671,"column":12},"end":{"line":671,"column":68}},"175":{"start":{"line":673,"column":12},"end":{"line":673,"column":77}},"176":{"start":{"line":686,"column":8},"end":{"line":686,"column":62}},"177":{"start":{"line":699,"column":8},"end":{"line":723,"column":9}},"178":{"start":{"line":700,"column":12},"end":{"line":701,"column":67}},"179":{"start":{"line":703,"column":12},"end":{"line":711,"column":15}},"180":{"start":{"line":713,"column":12},"end":{"line":713,"column":73}},"181":{"start":{"line":714,"column":12},"end":{"line":714,"column":76}},"182":{"start":{"line":715,"column":12},"end":{"line":715,"column":81}},"183":{"start":{"line":716,"column":12},"end":{"line":716,"column":76}},"184":{"start":{"line":717,"column":12},"end":{"line":717,"column":80}},"185":{"start":{"line":718,"column":12},"end":{"line":718,"column":89}},"186":{"start":{"line":718,"column":62},"end":{"line":718,"column":80}},"187":{"start":{"line":719,"column":12},"end":{"line":719,"column":73}},"188":{"start":{"line":720,"column":12},"end":{"line":720,"column":37}},"189":{"start":{"line":722,"column":12},"end":{"line":722,"column":37}},"190":{"start":{"line":857,"column":16},"end":{"line":862,"column":18}},"191":{"start":{"line":973,"column":16},"end":{"line":973,"column":138}},"192":{"start":{"line":990,"column":20},"end":{"line":990,"column":50}},"193":{"start":{"line":1007,"column":16},"end":{"line":1007,"column":77}},"194":{"start":{"line":1009,"column":16},"end":{"line":1011,"column":17}},"195":{"start":{"line":1010,"column":20},"end":{"line":1010,"column":65}},"196":{"start":{"line":1013,"column":16},"end":{"line":1013,"column":30}},"197":{"start":{"line":1062,"column":0},"end":{"line":1062,"column":38}}},"branchMap":{"1":{"line":341,"type":"if","locations":[{"start":{"line":341,"column":12},"end":{"line":341,"column":12}},{"start":{"line":341,"column":12},"end":{"line":341,"column":12}}]},"2":{"line":384,"type":"if","locations":[{"start":{"line":384,"column":8},"end":{"line":384,"column":8}},{"start":{"line":384,"column":8},"end":{"line":384,"column":8}}]},"3":{"line":384,"type":"binary-expr","locations":[{"start":{"line":384,"column":12},"end":{"line":384,"column":44}},{"start":{"line":384,"column":48},"end":{"line":384,"column":85}},{"start":{"line":384,"column":89},"end":{"line":384,"column":124}}]},"4":{"line":386,"type":"if","locations":[{"start":{"line":386,"column":12},"end":{"line":386,"column":12}},{"start":{"line":386,"column":12},"end":{"line":386,"column":12}}]},"5":{"line":403,"type":"if","locations":[{"start":{"line":403,"column":16},"end":{"line":403,"column":16}},{"start":{"line":403,"column":16},"end":{"line":403,"column":16}}]},"6":{"line":403,"type":"binary-expr","locations":[{"start":{"line":403,"column":20},"end":{"line":403,"column":36}},{"start":{"line":403,"column":40},"end":{"line":403,"column":52}}]},"7":{"line":413,"type":"if","locations":[{"start":{"line":413,"column":16},"end":{"line":413,"column":16}},{"start":{"line":413,"column":16},"end":{"line":413,"column":16}}]},"8":{"line":413,"type":"binary-expr","locations":[{"start":{"line":413,"column":20},"end":{"line":413,"column":36}},{"start":{"line":413,"column":40},"end":{"line":413,"column":51}}]},"9":{"line":446,"type":"if","locations":[{"start":{"line":446,"column":13},"end":{"line":446,"column":13}},{"start":{"line":446,"column":13},"end":{"line":446,"column":13}}]},"10":{"line":467,"type":"if","locations":[{"start":{"line":467,"column":8},"end":{"line":467,"column":8}},{"start":{"line":467,"column":8},"end":{"line":467,"column":8}}]},"11":{"line":484,"type":"if","locations":[{"start":{"line":484,"column":8},"end":{"line":484,"column":8}},{"start":{"line":484,"column":8},"end":{"line":484,"column":8}}]},"12":{"line":484,"type":"binary-expr","locations":[{"start":{"line":484,"column":12},"end":{"line":484,"column":30}},{"start":{"line":484,"column":34},"end":{"line":484,"column":68}}]},"13":{"line":499,"type":"if","locations":[{"start":{"line":499,"column":8},"end":{"line":499,"column":8}},{"start":{"line":499,"column":8},"end":{"line":499,"column":8}}]},"14":{"line":512,"type":"if","locations":[{"start":{"line":512,"column":8},"end":{"line":512,"column":8}},{"start":{"line":512,"column":8},"end":{"line":512,"column":8}}]},"15":{"line":581,"type":"if","locations":[{"start":{"line":581,"column":9},"end":{"line":581,"column":9}},{"start":{"line":581,"column":9},"end":{"line":581,"column":9}}]},"16":{"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}}]},"17":{"line":595,"type":"if","locations":[{"start":{"line":595,"column":8},"end":{"line":595,"column":8}},{"start":{"line":595,"column":8},"end":{"line":595,"column":8}}]},"18":{"line":599,"type":"cond-expr","locations":[{"start":{"line":599,"column":58},"end":{"line":599,"column":86}},{"start":{"line":599,"column":89},"end":{"line":599,"column":100}}]},"19":{"line":617,"type":"switch","locations":[{"start":{"line":618,"column":12},"end":{"line":620,"column":22}},{"start":{"line":621,"column":12},"end":{"line":623,"column":22}},{"start":{"line":624,"column":12},"end":{"line":626,"column":22}},{"start":{"line":627,"column":12},"end":{"line":629,"column":22}},{"start":{"line":630,"column":12},"end":{"line":633,"column":22}},{"start":{"line":634,"column":12},"end":{"line":634,"column":36}},{"start":{"line":635,"column":12},"end":{"line":637,"column":22}},{"start":{"line":638,"column":12},"end":{"line":638,"column":37}},{"start":{"line":639,"column":12},"end":{"line":641,"column":18}}]},"20":{"line":659,"type":"binary-expr","locations":[{"start":{"line":659,"column":24},"end":{"line":659,"column":27}},{"start":{"line":659,"column":31},"end":{"line":659,"column":52}}]},"21":{"line":660,"type":"binary-expr","locations":[{"start":{"line":660,"column":23},"end":{"line":660,"column":31}},{"start":{"line":660,"column":35},"end":{"line":660,"column":62}}]},"22":{"line":663,"type":"cond-expr","locations":[{"start":{"line":663,"column":57},"end":{"line":663,"column":73}},{"start":{"line":663,"column":76},"end":{"line":663,"column":84}}]},"23":{"line":665,"type":"if","locations":[{"start":{"line":665,"column":8},"end":{"line":665,"column":8}},{"start":{"line":665,"column":8},"end":{"line":665,"column":8}}]},"24":{"line":699,"type":"if","locations":[{"start":{"line":699,"column":8},"end":{"line":699,"column":8}},{"start":{"line":699,"column":8},"end":{"line":699,"column":8}}]},"25":{"line":700,"type":"binary-expr","locations":[{"start":{"line":700,"column":28},"end":{"line":700,"column":31}},{"start":{"line":700,"column":35},"end":{"line":700,"column":56}}]},"26":{"line":701,"type":"binary-expr","locations":[{"start":{"line":701,"column":27},"end":{"line":701,"column":35}},{"start":{"line":701,"column":39},"end":{"line":701,"column":66}}]},"27":{"line":858,"type":"binary-expr","locations":[{"start":{"line":858,"column":20},"end":{"line":858,"column":50}},{"start":{"line":859,"column":20},"end":{"line":859,"column":46}},{"start":{"line":860,"column":20},"end":{"line":860,"column":54}},{"start":{"line":861,"column":20},"end":{"line":861,"column":55}}]},"28":{"line":990,"type":"binary-expr","locations":[{"start":{"line":990,"column":28},"end":{"line":990,"column":36}},{"start":{"line":990,"column":40},"end":{"line":990,"column":48}}]},"29":{"line":1009,"type":"if","locations":[{"start":{"line":1009,"column":16},"end":{"line":1009,"column":16}},{"start":{"line":1009,"column":16},"end":{"line":1009,"column":16}}]}},"code":["(function () { YUI.add('uploader-flash', function (Y, NAME) {","","/**","* This module provides a UI for file selection and multiple file upload capability using","* Flash as a transport engine.","* The supported features include: automatic upload queue management, upload progress","* tracking, file filtering, server response retrieval and error reporting.","*","* @module uploader-flash","*/","","// Shorthands for external modules","var substitute = Y.Lang.sub,"," UploaderQueue = Y.Uploader.Queue;","","","/**","* This module provides a UI for file selection and multiple file upload capability","* using Flash as a transport engine.","* @class UploaderFlash","* @extends Widget","* @param {Object} config Configuration object.","* @constructor","*/","","function UploaderFlash() {"," UploaderFlash.superclass.constructor.apply ( this, arguments );","}","","","","Y.UploaderFlash = Y.extend(UploaderFlash, Y.Widget, {",""," /**"," * Stored value of the current button state (based on"," * mouse events dispatched by the Flash player)"," * @property _buttonState"," * @type {String}"," * @protected"," */"," _buttonState: \"up\",",""," /**"," * Stored value of the current button focus state (based"," * on keyboard and mouse events)."," * @property _buttonFocus"," * @type {Boolean}"," * @protected"," */"," _buttonFocus: false,",""," /**"," * Stored value of the unique id for the container that holds the"," * Flash uploader."," *"," * @property _swfContainerId"," * @type {String}"," * @protected"," */"," _swfContainerId: null,",""," /**"," * Stored reference to the instance of SWF used to host the"," * Flash uploader."," *"," * @property _swfReference"," * @type {SWF}"," * @protected"," */"," _swfReference: null,",""," /**"," * Stored reference to the instance of Uploader.Queue used to manage"," * the upload process. This is a read-only property that only exists"," * during an active upload process. Only one queue can be active at"," * a time; if an upload start is attempted while a queue is active,"," * it will be ignored."," *"," * @property queue"," * @type {Y.Uploader.Queue}"," */"," queue: null,",""," /**"," * Stored event bindings for keyboard navigation to and from the uploader."," *"," * @property _tabElementBindings"," * @type {Object}"," * @protected"," */"," _tabElementBindings: null,","",""," /**"," * Construction logic executed during UploaderFlash instantiation."," *"," * @method initializer"," * @protected"," */"," initializer : function () {",""," // Assign protected variable values"," this._swfContainerId = Y.guid(\"uploader\");"," this._swfReference = null;"," this.queue = null;"," this._buttonState = \"up\";"," this._buttonFocus = null;"," this._tabElementBindings = null;"," this._fileList = [];",""," // Publish available events",""," /**"," * Signals that files have been selected."," *"," * @event fileselect"," * @param event {Event} The event object for the `fileselect` with the"," * following payload:"," *
"," *
fileList
"," *
An `Array` of files selected by the user, encapsulated"," * in Y.FileFlash objects.
"," *
"," */"," this.publish(\"fileselect\");",""," /**"," * Signals that an upload of multiple files has been started."," *"," * @event uploadstart"," * @param event {Event} The event object for the `uploadstart`."," */"," this.publish(\"uploadstart\");",""," /**"," * Signals that an upload of a specific file has started."," *"," * @event fileuploadstart"," * @param event {Event} The event object for the `fileuploadstart` with the"," * following payload:"," *
"," *
file
"," *
A reference to the Y.File that dispatched the event.
"," *
originEvent
"," *
The original event dispatched by Y.File.
"," *
"," */"," this.publish(\"fileuploadstart\");",""," /**"," * Reports on upload progress of a specific file."," *"," * @event uploadprogress"," * @param event {Event} The event object for the `uploadprogress` with the"," * following payload:"," *
"," *
bytesLoaded
"," *
The number of bytes of the file that has been uploaded
"," *
bytesTotal
"," *
The total number of bytes in the file
"," *
percentLoaded
"," *
The fraction of the file that has been uploaded, out of 100
"," *
originEvent
"," *
The original event dispatched by the SWF uploader
"," *
"," */"," this.publish(\"uploadprogress\");",""," /**"," * Reports on the total upload progress of the file list."," *"," * @event totaluploadprogress"," * @param event {Event} The event object for the `totaluploadprogress` with the"," * following payload:"," *
"," *
bytesLoaded
"," *
The number of bytes of the file list that has been uploaded
"," *
bytesTotal
"," *
The total number of bytes in the file list
"," *
percentLoaded
"," *
The fraction of the file list that has been uploaded, out of 100
"," *
"," */"," this.publish(\"totaluploadprogress\");",""," /**"," * Signals that a single file upload has been completed."," *"," * @event uploadcomplete"," * @param event {Event} The event object for the `uploadcomplete` with the"," * following payload:"," *
"," *
file
"," *
The pointer to the instance of `Y.File` whose upload has been completed.
"," *
originEvent
"," *
The original event fired by the SWF Uploader
"," *
data
"," *
Data returned by the server.
"," *
"," */"," this.publish(\"uploadcomplete\");",""," /**"," * Signals that the upload process of the entire file list has been completed."," *"," * @event alluploadscomplete"," * @param event {Event} The event object for the `alluploadscomplete`."," */"," this.publish(\"alluploadscomplete\");",""," /**"," * Signals that a error has occurred in a specific file's upload process."," *"," * @event uploaderror"," * @param event {Event} The event object for the `uploaderror` with the"," * following payload:"," *
"," *
originEvent
"," *
The original error event fired by the SWF Uploader.
"," *
file
"," *
The pointer at the instance of Y.FileFlash that returned the error.
"," *
source
"," *
The source of the upload error, either \"io\" or \"http\"
"," *
message
"," *
The message that accompanied the error. Corresponds to the text of"," * the error in cases where source is \"io\", and to the HTTP status for"," cases where source is \"http\".
"," *
"," */"," this.publish(\"uploaderror\");",""," /**"," * Signals that a mouse has begun hovering over the `Select Files` button."," *"," * @event mouseenter"," * @param event {Event} The event object for the `mouseenter` event."," */"," this.publish(\"mouseenter\");",""," /**"," * Signals that a mouse has stopped hovering over the `Select Files` button."," *"," * @event mouseleave"," * @param event {Event} The event object for the `mouseleave` event."," */"," this.publish(\"mouseleave\");",""," /**"," * Signals that a mouse button has been pressed over the `Select Files` button."," *"," * @event mousedown"," * @param event {Event} The event object for the `mousedown` event."," */"," this.publish(\"mousedown\");",""," /**"," * Signals that a mouse button has been released over the `Select Files` button."," *"," * @event mouseup"," * @param event {Event} The event object for the `mouseup` event."," */"," this.publish(\"mouseup\");",""," /**"," * Signals that a mouse has been clicked over the `Select Files` button."," *"," * @event click"," * @param event {Event} The event object for the `click` event."," */"," this.publish(\"click\");"," },",""," /**"," * Creates the DOM structure for the UploaderFlash."," * UploaderFlash's DOM structure consists of two layers: the base \"Select Files\""," * button that can be replaced by the developer's widget of choice; and a transparent"," * Flash overlay positoned above the button that captures all input events."," * The `position` style attribute of the `boundingBox` of the `Uploader` widget"," * is forced to be `relative`, in order to accommodate the Flash player overlay"," * (which is `position`ed `absolute`ly)."," *"," * @method renderUI"," * @protected"," */"," renderUI : function () {"," var boundingBox = this.get(\"boundingBox\"),"," contentBox = this.get('contentBox'),"," selFilesButton = this.get(\"selectFilesButton\"),"," flashContainer = Y.Node.create(substitute(UploaderFlash.FLASH_CONTAINER, {"," swfContainerId: this._swfContainerId"," })),"," params = {"," version: \"10.0.45\","," fixedAttributes: {"," wmode: \"transparent\","," allowScriptAccess:\"always\","," allowNetworking:\"all\","," scale: \"noscale\""," }"," };",""," boundingBox.setStyle(\"position\", \"relative\");"," selFilesButton.setStyles({width: \"100%\", height: \"100%\"});"," contentBox.append(selFilesButton);"," contentBox.append(flashContainer);",""," this._swfReference = new Y.SWF(flashContainer, this.get(\"swfURL\"), params);"," },",""," /**"," * Binds handlers to the UploaderFlash UI events and propagates attribute"," * values to the Flash player."," * The propagation of initial values is set to occur once the Flash player"," * instance is ready (as indicated by the `swfReady` event.)"," *"," * @method bindUI"," * @protected"," */"," bindUI : function () {",""," this._swfReference.on(\"swfReady\", function () {"," this._setMultipleFiles();"," this._setFileFilters();"," this._triggerEnabled();"," this._attachTabElements();"," this.after(\"multipleFilesChange\", this._setMultipleFiles, this);"," this.after(\"fileFiltersChange\", this._setFileFilters, this);"," this.after(\"enabledChange\", this._triggerEnabled, this);"," this.after(\"tabElementsChange\", this._attachTabElements);"," }, this);",""," this._swfReference.on(\"fileselect\", this._updateFileList, this);","","",""," // this._swfReference.on(\"trace\", function (ev) {console.log(ev.message);});",""," this._swfReference.on(\"mouseenter\", function () {"," this.fire(\"mouseenter\");"," this._setButtonClass(\"hover\", true);"," if (this._buttonState === \"down\") {"," this._setButtonClass(\"active\", true);"," }"," }, this);",""," this._swfReference.on(\"mouseleave\", function () {"," this.fire(\"mouseleave\");"," this._setButtonClass(\"hover\", false);"," this._setButtonClass(\"active\", false);"," }, this);",""," this._swfReference.on(\"mousedown\", function () {"," this.fire(\"mousedown\");"," this._buttonState = \"down\";"," this._setButtonClass(\"active\", true);"," }, this);",""," this._swfReference.on(\"mouseup\", function () {"," this.fire(\"mouseup\");"," this._buttonState = \"up\";"," this._setButtonClass(\"active\", false);"," }, this);",""," this._swfReference.on(\"click\", function () {"," this.fire(\"click\");"," this._buttonFocus = true;"," this._setButtonClass(\"focus\", true);"," Y.one(\"body\").focus();"," this._swfReference._swf.focus();"," }, this);"," },",""," /**"," * Attaches keyboard bindings to enabling tabbing to and from the instance of the Flash"," * player in the Uploader widget. If the previous and next elements are specified, the"," * keyboard bindings enable the user to tab from the `tabElements[\"from\"]` node to the"," * Flash-powered \"Select Files\" button, and to the `tabElements[\"to\"]` node."," *"," * @method _attachTabElements"," * @protected"," * @param ev {Event} Optional event payload if called as a `tabElementsChange` handler."," */"," _attachTabElements : function () {"," if (this.get(\"tabElements\") !== null && this.get(\"tabElements\").from !== null && this.get(\"tabElements\").to !== null) {",""," if (this._tabElementBindings !== null) {"," this._tabElementBindings.from.detach();"," this._tabElementBindings.to.detach();"," this._tabElementBindings.tabback.detach();"," this._tabElementBindings.tabforward.detach();"," this._tabElementBindings.focus.detach();"," this._tabElementBindings.blur.detach();"," }"," else {"," this._tabElementBindings = {};"," }",""," var fromElement = Y.one(this.get(\"tabElements\").from),"," toElement = Y.one(this.get(\"tabElements\").to);","",""," this._tabElementBindings.from = fromElement.on(\"keydown\", function (ev) {"," if (ev.keyCode === 9 && !ev.shiftKey) {"," ev.preventDefault();"," this._swfReference._swf.setAttribute(\"tabindex\", 0);"," this._swfReference._swf.setAttribute(\"role\", \"button\");"," this._swfReference._swf.setAttribute(\"aria-label\", this.get(\"selectButtonLabel\"));"," this._swfReference._swf.focus();"," }"," }, this);",""," this._tabElementBindings.to = toElement.on(\"keydown\", function (ev) {"," if (ev.keyCode === 9 && ev.shiftKey) {"," ev.preventDefault();"," this._swfReference._swf.setAttribute(\"tabindex\", 0);"," this._swfReference._swf.setAttribute(\"role\", \"button\");"," this._swfReference._swf.setAttribute(\"aria-label\", this.get(\"selectButtonLabel\"));"," this._swfReference._swf.focus();"," }"," }, this);",""," this._tabElementBindings.tabback = this._swfReference.on(\"tabback\", function () {"," this._swfReference._swf.blur();"," setTimeout(function () {"," fromElement.focus();"," }, 30);"," }, this);",""," this._tabElementBindings.tabforward = this._swfReference.on(\"tabforward\", function () {"," this._swfReference._swf.blur();"," setTimeout(function () {"," toElement.focus();"," }, 30);"," }, this);",""," this._tabElementBindings.focus = this._swfReference._swf.on(\"focus\", function () {"," this._buttonFocus = true;"," this._setButtonClass(\"focus\", true);"," }, this);",""," this._tabElementBindings.blur = this._swfReference._swf.on(\"blur\", function () {"," this._buttonFocus = false;"," this._setButtonClass(\"focus\", false);"," }, this);"," }"," else if (this._tabElementBindings !== null) {"," this._tabElementBindings.from.detach();"," this._tabElementBindings.to.detach();"," this._tabElementBindings.tabback.detach();"," this._tabElementBindings.tabforward.detach();"," this._tabElementBindings.focus.detach();"," this._tabElementBindings.blur.detach();"," }"," },","",""," /**"," * Adds or removes a specified state CSS class to the underlying uploader button."," *"," * @method _setButtonClass"," * @protected"," * @param state {String} The name of the state enumerated in `buttonClassNames` attribute"," * from which to derive the needed class name."," * @param add {Boolean} A Boolean indicating whether to add or remove the class."," */"," _setButtonClass : function (state, add) {"," if (add) {"," this.get(\"selectFilesButton\").addClass(this.get(\"buttonClassNames\")[state]);"," }"," else {"," this.get(\"selectFilesButton\").removeClass(this.get(\"buttonClassNames\")[state]);"," }"," },","",""," /**"," * Syncs the state of the `fileFilters` attribute between the instance of UploaderFlash"," * and the Flash player."," *"," * @method _setFileFilters"," * @private"," */"," _setFileFilters : function () {"," if (this._swfReference && this.get(\"fileFilters\").length > 0) {"," this._swfReference.callSWF(\"setFileFilters\", [this.get(\"fileFilters\")]);"," }"," },","","",""," /**"," * Syncs the state of the `multipleFiles` attribute between this class"," * and the Flash uploader."," *"," * @method _setMultipleFiles"," * @private"," */"," _setMultipleFiles : function () {"," if (this._swfReference) {"," this._swfReference.callSWF(\"setAllowMultipleFiles\", [this.get(\"multipleFiles\")]);"," }"," },",""," /**"," * Syncs the state of the `enabled` attribute between this class"," * and the Flash uploader."," *"," * @method _triggerEnabled"," * @private"," */"," _triggerEnabled : function () {"," if (this.get(\"enabled\")) {"," this._swfReference.callSWF(\"enable\");"," this._swfReference._swf.setAttribute(\"aria-disabled\", \"false\");"," this._setButtonClass(\"disabled\", false);"," }"," else {"," this._swfReference.callSWF(\"disable\");"," this._swfReference._swf.setAttribute(\"aria-disabled\", \"true\");"," this._setButtonClass(\"disabled\", true);"," }"," },",""," /**"," * Getter for the `fileList` attribute"," *"," * @method _getFileList"," * @private"," */"," _getFileList : function () {"," return this._fileList.concat();"," },",""," /**"," * Setter for the `fileList` attribute"," *"," * @method _setFileList"," * @private"," */"," _setFileList : function (val) {"," this._fileList = val.concat();"," return this._fileList.concat();"," },",""," /**"," * Adjusts the content of the `fileList` based on the results of file selection"," * and the `appendNewFiles` attribute. If the `appendNewFiles` attribute is true,"," * then selected files are appended to the existing list; otherwise, the list is"," * cleared and populated with the newly selected files."," *"," * @method _updateFileList"," * @param ev {Event} The file selection event received from the uploader."," * @private"," */"," _updateFileList : function (ev) {",""," Y.one(\"body\").focus();"," this._swfReference._swf.focus();","",""," var newfiles = ev.fileList,"," fileConfObjects = [],"," parsedFiles = [],"," swfRef = this._swfReference,"," filterFunc = this.get(\"fileFilterFunction\"),"," oldfiles;",""," Y.each(newfiles, function (value) {"," var newFileConf = {};"," newFileConf.id = value.fileId;"," newFileConf.name = value.fileReference.name;"," newFileConf.size = value.fileReference.size;"," newFileConf.type = value.fileReference.type;"," newFileConf.dateCreated = value.fileReference.creationDate;"," newFileConf.dateModified = value.fileReference.modificationDate;"," newFileConf.uploader = swfRef;",""," fileConfObjects.push(newFileConf);"," });",""," if (filterFunc) {"," Y.each(fileConfObjects, function (value) {"," var newfile = new Y.FileFlash(value);"," if (filterFunc(newfile)) {"," parsedFiles.push(newfile);"," }"," });"," }"," else {"," Y.each(fileConfObjects, function (value) {"," parsedFiles.push(new Y.FileFlash(value));"," });"," }",""," if (parsedFiles.length > 0) {"," oldfiles = this.get(\"fileList\");",""," this.set(\"fileList\","," this.get(\"appendNewFiles\") ? oldfiles.concat(parsedFiles) : parsedFiles );",""," this.fire(\"fileselect\", { fileList: parsedFiles });"," }",""," },","","",""," /**"," * Handles and retransmits events fired by `Y.FileFlash` and `Y.Uploader.Queue`."," *"," * @method _uploadEventHandler"," * @param event The event dispatched during the upload process."," * @private"," */"," _uploadEventHandler : function (event) {",""," switch (event.type) {"," case \"file:uploadstart\":"," this.fire(\"fileuploadstart\", event);"," break;"," case \"file:uploadprogress\":"," this.fire(\"uploadprogress\", event);"," break;"," case \"uploaderqueue:totaluploadprogress\":"," this.fire(\"totaluploadprogress\", event);"," break;"," case \"file:uploadcomplete\":"," this.fire(\"uploadcomplete\", event);"," break;"," case \"uploaderqueue:alluploadscomplete\":"," this.queue = null;"," this.fire(\"alluploadscomplete\", event);"," break;"," case \"file:uploaderror\": //overflow intentional"," case \"uploaderqueue:uploaderror\":"," this.fire(\"uploaderror\", event);"," break;"," case \"file:uploadcancel\": // overflow intentional"," case \"uploaderqueue:uploadcancel\":"," this.fire(\"uploadcancel\", event);"," break;"," }",""," },","","",""," /**"," * Starts the upload of a specific file."," *"," * @method upload"," * @param file {Y.FileFlash} Reference to the instance of the file to be uploaded."," * @param url {String} The URL to upload the file to."," * @param [postVars] {Object} A set of key-value pairs to send as variables along with the file upload HTTP request."," * If not specified, the values from the attribute `postVarsPerFile` are used instead."," */"," upload : function (file, url, postvars) {",""," var uploadURL = url || this.get(\"uploadURL\"),"," postVars = postvars || this.get(\"postVarsPerFile\"),"," fileId = file.get(\"id\");",""," postVars = postVars.hasOwnProperty(fileId) ? postVars[fileId] : postVars;",""," if (file instanceof Y.FileFlash) {",""," file.on(\"uploadstart\", this._uploadEventHandler, this);"," file.on(\"uploadprogress\", this._uploadEventHandler, this);"," file.on(\"uploadcomplete\", this._uploadEventHandler, this);"," file.on(\"uploaderror\", this._uploadEventHandler, this);"," file.on(\"uploadcancel\", this._uploadEventHandler, this);",""," file.startUpload(uploadURL, postVars, this.get(\"fileFieldName\"));"," }"," },",""," /**"," * Starts the upload of all files on the file list, using an automated queue."," *"," * @method uploadAll"," * @param url {String} The URL to upload the files to."," * @param [postVars] {Object} A set of key-value pairs to send as variables along with the file upload HTTP request."," * If not specified, the values from the attribute `postVarsPerFile` are used instead."," */"," uploadAll : function (url, postvars) {"," this.uploadThese(this.get(\"fileList\"), url, postvars);"," },",""," /**"," * Starts the upload of the files specified in the first argument, using an automated queue."," *"," * @method uploadThese"," * @param files {Array} The list of files to upload."," * @param url {String} The URL to upload the files to."," * @param [postVars] {Object} A set of key-value pairs to send as variables along with the file upload HTTP request."," * If not specified, the values from the attribute `postVarsPerFile` are used instead."," */"," uploadThese : function (files, url, postvars) {"," if (!this.queue) {"," var uploadURL = url || this.get(\"uploadURL\"),"," postVars = postvars || this.get(\"postVarsPerFile\");",""," this.queue = new UploaderQueue({"," simUploads: this.get(\"simLimit\"),"," errorAction: this.get(\"errorAction\"),"," fileFieldName: this.get(\"fileFieldName\"),"," fileList: files,"," uploadURL: uploadURL,"," perFileParameters: postVars,"," retryCount: this.get(\"retryCount\")"," });",""," this.queue.on(\"uploadstart\", this._uploadEventHandler, this);"," this.queue.on(\"uploadprogress\", this._uploadEventHandler, this);"," this.queue.on(\"totaluploadprogress\", this._uploadEventHandler, this);"," this.queue.on(\"uploadcomplete\", this._uploadEventHandler, this);"," this.queue.on(\"alluploadscomplete\", this._uploadEventHandler, this);"," this.queue.on(\"alluploadscancelled\", function () {this.queue = null;}, this);"," this.queue.on(\"uploaderror\", this._uploadEventHandler, this);"," this.queue.startUpload();",""," this.fire(\"uploadstart\");"," }"," }","},","","{"," /**"," * The template for the Flash player container. Since the Flash player container needs"," * to completely overlay the &lquot;Select Files&rqot; control, it's positioned absolutely,"," * with width and height set to 100% of the parent."," *"," * @property FLASH_CONTAINER"," * @type {HTML}"," * @static"," * @default '
'"," */"," FLASH_CONTAINER: '
',",""," /**"," * The template for the \"Select Files\" button."," *"," * @property SELECT_FILES_BUTTON"," * @type {HTML}"," * @static"," * @default \"\""," */"," SELECT_FILES_BUTTON: \"\",",""," /**"," * The static property reflecting the type of uploader that `Y.Uploader`"," * aliases. The UploaderFlash value is `\"flash\"`."," *"," * @property TYPE"," * @type {String}"," * @static"," */"," TYPE: \"flash\",",""," /**"," * The identity of the widget."," *"," * @property NAME"," * @type String"," * @default 'uploader'"," * @readOnly"," * @protected"," * @static"," */"," NAME: \"uploader\",",""," /**"," * Static property used to define the default attribute configuration of"," * the Widget."," *"," * @property ATTRS"," * @type {Object}"," * @protected"," * @static"," */"," ATTRS: {",""," /**"," * A Boolean indicating whether newly selected files should be appended"," * to the existing file list, or whether they should replace it."," *"," * @attribute appendNewFiles"," * @type {Boolean}"," * @default true"," */"," appendNewFiles : {"," value: true"," },",""," /**"," * The names of CSS classes that correspond to different button states"," * of the \"Select Files\" control. These classes are assigned to the"," * \"Select Files\" control based on the mouse states reported by the"," * Flash player. The keys for the class names are:"," * "," * @attribute buttonClassNames"," * @type {Object}"," * @default { hover: \"yui3-button-hover\","," * active: \"yui3-button-active\","," * disabled: \"yui3-button-disabled\","," * focus: \"yui3-button-selected\""," * }"," */"," buttonClassNames: {"," value: {"," \"hover\": \"yui3-button-hover\","," \"active\": \"yui3-button-active\","," \"disabled\": \"yui3-button-disabled\","," \"focus\": \"yui3-button-selected\""," }"," },",""," /**"," * A Boolean indicating whether the uploader is enabled or disabled for user input."," *"," * @attribute enabled"," * @type {Boolean}"," * @default true"," */"," enabled : {"," value: true"," },",""," /**"," * The action performed when an upload error occurs for a specific file being uploaded."," * The possible values are:"," * "," * @attribute errorAction"," * @type {String}"," * @default UploaderQueue.CONTINUE"," */"," errorAction: {"," value: \"continue\","," validator: function (val) {"," return ("," val === UploaderQueue.CONTINUE ||"," val === UploaderQueue.STOP ||"," val === UploaderQueue.RESTART_ASAP ||"," val === UploaderQueue.RESTART_AFTER"," );"," }"," },",""," /**"," * An array indicating what fileFilters should be applied to the file"," * selection dialog. Each element in the array should be an object with"," * the following key-value pairs:"," * {"," * description : String"," extensions: String of the form &lquot;*.ext1;*.ext2;*.ext3;...&rquot;"," * }"," * @attribute fileFilters"," * @type {Array}"," * @default []"," */"," fileFilters: {"," value: []"," },",""," /**"," * A filtering function that is applied to every file selected by the user."," * The function receives the `Y.File` object and must return a Boolean value."," * If a `false` value is returned, the file in question is not added to the"," * list of files to be uploaded."," * Use this function to put limits on file sizes or check the file names for"," * correct extension, but make sure that a server-side check is also performed,"," * since any client-side restrictions are only advisory and can be circumvented."," *"," * @attribute fileFilterFunction"," * @type {Function}"," * @default null"," */"," fileFilterFunction: {"," value: null"," },",""," /**"," * A String specifying what should be the POST field name for the file"," * content in the upload request."," *"," * @attribute fileFieldName"," * @type {String}"," * @default Filedata"," */"," fileFieldName: {"," value: \"Filedata\""," },",""," /**"," * The array of files to be uploaded. All elements in the array"," * must be instances of `Y.FileFlash` and be instantiated with a `fileId`"," * retrieved from an instance of the uploader."," *"," * @attribute fileList"," * @type {Array}"," * @default []"," */"," fileList: {"," value: [],"," getter: \"_getFileList\","," setter: \"_setFileList\""," },",""," /**"," * A Boolean indicating whether multiple file selection is enabled."," *"," * @attribute multipleFiles"," * @type {Boolean}"," * @default false"," */"," multipleFiles: {"," value: false"," },",""," /**"," * An object, keyed by `fileId`, containing sets of key-value pairs"," * that should be passed as POST variables along with each corresponding"," * file. This attribute is only used if no POST variables are specifed"," * in the upload method call."," *"," * @attribute postVarsPerFile"," * @type {Object}"," * @default {}"," */"," postVarsPerFile: {"," value: {}"," },",""," /**"," * The label for the \"Select Files\" widget. This is the value that replaces the"," * `{selectButtonLabel}` token in the `SELECT_FILES_BUTTON` template."," *"," * @attribute selectButtonLabel"," * @type {String}"," * @default \"Select Files\""," */"," selectButtonLabel: {"," value: \"Select Files\""," },",""," /**"," * The widget that serves as the \"Select Files\" control for the file uploader"," *"," *"," * @attribute selectFilesButton"," * @type {Node | Widget}"," * @default A standard HTML button with YUI CSS Button skin."," */"," selectFilesButton : {"," valueFn: function () {"," return Y.Node.create(substitute(Y.UploaderFlash.SELECT_FILES_BUTTON, {selectButtonLabel: this.get(\"selectButtonLabel\")}));"," }"," },",""," /**"," * The number of files that can be uploaded"," * simultaneously if the automatic queue management"," * is used. This value can be in the range between 2"," * and 5."," *"," * @attribute simLimit"," * @type {Number}"," * @default 2"," */"," simLimit: {"," value: 2,"," validator: function (val) {"," return (val >= 2 && val <= 5);"," }"," },",""," /**"," * The URL to the SWF file of the flash uploader. A copy local to"," * the server that hosts the page on which the uploader appears is"," * recommended."," *"," * @attribute swfURL"," * @type {String}"," * @default \"CDN Prefix + uploader/assets/flashuploader.swf\" with a"," * random GET parameter for IE (to prevent buggy behavior when the SWF"," * is cached)."," */"," swfURL: {"," valueFn: function () {"," var prefix = Y.Env.cdn + \"uploader/assets/flashuploader.swf\";",""," if (Y.UA.ie > 0) {"," return (prefix + \"?t=\" + Y.guid(\"uploader\"));"," }",""," return prefix;"," }"," },",""," /**"," * The id's or `Node` references of the DOM elements that precede"," * and follow the `Select Files` button in the tab order. Specifying"," * these allows keyboard navigation to and from the Flash player"," * layer of the uploader."," * The two keys corresponding to the DOM elements are:"," "," * @attribute tabElements"," * @type {Object}"," * @default null"," */"," tabElements: {"," value: null"," },",""," /**"," * The URL to which file upload requested are POSTed. Only used if a different url is not passed to the upload method call."," *"," * @attribute uploadURL"," * @type {String}"," * @default \"\""," */"," uploadURL: {"," value: \"\""," },",""," /**"," * The number of times to try re-uploading a file that failed to upload before"," * cancelling its upload."," *"," * @attribute retryCount"," * @type {Number}"," * @default 3"," */"," retryCount: {"," value: 3"," }"," }","});","","Y.UploaderFlash.Queue = UploaderQueue;","","","}, '3.10.3', {\"requires\": [\"swf\", \"widget\", \"base\", \"cssbutton\", \"node\", \"event-custom\", \"file-flash\", \"uploader-queue\"]});","","}());"]}; +} +var __cov_H2imwewODq4$fnpUwROFpA = __coverage__['build/uploader-flash/uploader-flash.js']; +__cov_H2imwewODq4$fnpUwROFpA.s['1']++;YUI.add('uploader-flash',function(Y,NAME){__cov_H2imwewODq4$fnpUwROFpA.f['1']++;__cov_H2imwewODq4$fnpUwROFpA.s['2']++;var substitute=Y.Lang.sub,UploaderQueue=Y.Uploader.Queue;__cov_H2imwewODq4$fnpUwROFpA.s['3']++;function UploaderFlash(){__cov_H2imwewODq4$fnpUwROFpA.f['2']++;__cov_H2imwewODq4$fnpUwROFpA.s['4']++;UploaderFlash.superclass.constructor.apply(this,arguments);}__cov_H2imwewODq4$fnpUwROFpA.s['5']++;Y.UploaderFlash=Y.extend(UploaderFlash,Y.Widget,{_buttonState:'up',_buttonFocus:false,_swfContainerId:null,_swfReference:null,queue:null,_tabElementBindings:null,initializer:function(){__cov_H2imwewODq4$fnpUwROFpA.f['3']++;__cov_H2imwewODq4$fnpUwROFpA.s['6']++;this._swfContainerId=Y.guid('uploader');__cov_H2imwewODq4$fnpUwROFpA.s['7']++;this._swfReference=null;__cov_H2imwewODq4$fnpUwROFpA.s['8']++;this.queue=null;__cov_H2imwewODq4$fnpUwROFpA.s['9']++;this._buttonState='up';__cov_H2imwewODq4$fnpUwROFpA.s['10']++;this._buttonFocus=null;__cov_H2imwewODq4$fnpUwROFpA.s['11']++;this._tabElementBindings=null;__cov_H2imwewODq4$fnpUwROFpA.s['12']++;this._fileList=[];__cov_H2imwewODq4$fnpUwROFpA.s['13']++;this.publish('fileselect');__cov_H2imwewODq4$fnpUwROFpA.s['14']++;this.publish('uploadstart');__cov_H2imwewODq4$fnpUwROFpA.s['15']++;this.publish('fileuploadstart');__cov_H2imwewODq4$fnpUwROFpA.s['16']++;this.publish('uploadprogress');__cov_H2imwewODq4$fnpUwROFpA.s['17']++;this.publish('totaluploadprogress');__cov_H2imwewODq4$fnpUwROFpA.s['18']++;this.publish('uploadcomplete');__cov_H2imwewODq4$fnpUwROFpA.s['19']++;this.publish('alluploadscomplete');__cov_H2imwewODq4$fnpUwROFpA.s['20']++;this.publish('uploaderror');__cov_H2imwewODq4$fnpUwROFpA.s['21']++;this.publish('mouseenter');__cov_H2imwewODq4$fnpUwROFpA.s['22']++;this.publish('mouseleave');__cov_H2imwewODq4$fnpUwROFpA.s['23']++;this.publish('mousedown');__cov_H2imwewODq4$fnpUwROFpA.s['24']++;this.publish('mouseup');__cov_H2imwewODq4$fnpUwROFpA.s['25']++;this.publish('click');},renderUI:function(){__cov_H2imwewODq4$fnpUwROFpA.f['4']++;__cov_H2imwewODq4$fnpUwROFpA.s['26']++;var boundingBox=this.get('boundingBox'),contentBox=this.get('contentBox'),selFilesButton=this.get('selectFilesButton'),flashContainer=Y.Node.create(substitute(UploaderFlash.FLASH_CONTAINER,{swfContainerId:this._swfContainerId})),params={version:'10.0.45',fixedAttributes:{wmode:'transparent',allowScriptAccess:'always',allowNetworking:'all',scale:'noscale'}};__cov_H2imwewODq4$fnpUwROFpA.s['27']++;boundingBox.setStyle('position','relative');__cov_H2imwewODq4$fnpUwROFpA.s['28']++;selFilesButton.setStyles({width:'100%',height:'100%'});__cov_H2imwewODq4$fnpUwROFpA.s['29']++;contentBox.append(selFilesButton);__cov_H2imwewODq4$fnpUwROFpA.s['30']++;contentBox.append(flashContainer);__cov_H2imwewODq4$fnpUwROFpA.s['31']++;this._swfReference=new Y.SWF(flashContainer,this.get('swfURL'),params);},bindUI:function(){__cov_H2imwewODq4$fnpUwROFpA.f['5']++;__cov_H2imwewODq4$fnpUwROFpA.s['32']++;this._swfReference.on('swfReady',function(){__cov_H2imwewODq4$fnpUwROFpA.f['6']++;__cov_H2imwewODq4$fnpUwROFpA.s['33']++;this._setMultipleFiles();__cov_H2imwewODq4$fnpUwROFpA.s['34']++;this._setFileFilters();__cov_H2imwewODq4$fnpUwROFpA.s['35']++;this._triggerEnabled();__cov_H2imwewODq4$fnpUwROFpA.s['36']++;this._attachTabElements();__cov_H2imwewODq4$fnpUwROFpA.s['37']++;this.after('multipleFilesChange',this._setMultipleFiles,this);__cov_H2imwewODq4$fnpUwROFpA.s['38']++;this.after('fileFiltersChange',this._setFileFilters,this);__cov_H2imwewODq4$fnpUwROFpA.s['39']++;this.after('enabledChange',this._triggerEnabled,this);__cov_H2imwewODq4$fnpUwROFpA.s['40']++;this.after('tabElementsChange',this._attachTabElements);},this);__cov_H2imwewODq4$fnpUwROFpA.s['41']++;this._swfReference.on('fileselect',this._updateFileList,this);__cov_H2imwewODq4$fnpUwROFpA.s['42']++;this._swfReference.on('mouseenter',function(){__cov_H2imwewODq4$fnpUwROFpA.f['7']++;__cov_H2imwewODq4$fnpUwROFpA.s['43']++;this.fire('mouseenter');__cov_H2imwewODq4$fnpUwROFpA.s['44']++;this._setButtonClass('hover',true);__cov_H2imwewODq4$fnpUwROFpA.s['45']++;if(this._buttonState==='down'){__cov_H2imwewODq4$fnpUwROFpA.b['1'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['46']++;this._setButtonClass('active',true);}else{__cov_H2imwewODq4$fnpUwROFpA.b['1'][1]++;}},this);__cov_H2imwewODq4$fnpUwROFpA.s['47']++;this._swfReference.on('mouseleave',function(){__cov_H2imwewODq4$fnpUwROFpA.f['8']++;__cov_H2imwewODq4$fnpUwROFpA.s['48']++;this.fire('mouseleave');__cov_H2imwewODq4$fnpUwROFpA.s['49']++;this._setButtonClass('hover',false);__cov_H2imwewODq4$fnpUwROFpA.s['50']++;this._setButtonClass('active',false);},this);__cov_H2imwewODq4$fnpUwROFpA.s['51']++;this._swfReference.on('mousedown',function(){__cov_H2imwewODq4$fnpUwROFpA.f['9']++;__cov_H2imwewODq4$fnpUwROFpA.s['52']++;this.fire('mousedown');__cov_H2imwewODq4$fnpUwROFpA.s['53']++;this._buttonState='down';__cov_H2imwewODq4$fnpUwROFpA.s['54']++;this._setButtonClass('active',true);},this);__cov_H2imwewODq4$fnpUwROFpA.s['55']++;this._swfReference.on('mouseup',function(){__cov_H2imwewODq4$fnpUwROFpA.f['10']++;__cov_H2imwewODq4$fnpUwROFpA.s['56']++;this.fire('mouseup');__cov_H2imwewODq4$fnpUwROFpA.s['57']++;this._buttonState='up';__cov_H2imwewODq4$fnpUwROFpA.s['58']++;this._setButtonClass('active',false);},this);__cov_H2imwewODq4$fnpUwROFpA.s['59']++;this._swfReference.on('click',function(){__cov_H2imwewODq4$fnpUwROFpA.f['11']++;__cov_H2imwewODq4$fnpUwROFpA.s['60']++;this.fire('click');__cov_H2imwewODq4$fnpUwROFpA.s['61']++;this._buttonFocus=true;__cov_H2imwewODq4$fnpUwROFpA.s['62']++;this._setButtonClass('focus',true);__cov_H2imwewODq4$fnpUwROFpA.s['63']++;Y.one('body').focus();__cov_H2imwewODq4$fnpUwROFpA.s['64']++;this._swfReference._swf.focus();},this);},_attachTabElements:function(){__cov_H2imwewODq4$fnpUwROFpA.f['12']++;__cov_H2imwewODq4$fnpUwROFpA.s['65']++;if((__cov_H2imwewODq4$fnpUwROFpA.b['3'][0]++,this.get('tabElements')!==null)&&(__cov_H2imwewODq4$fnpUwROFpA.b['3'][1]++,this.get('tabElements').from!==null)&&(__cov_H2imwewODq4$fnpUwROFpA.b['3'][2]++,this.get('tabElements').to!==null)){__cov_H2imwewODq4$fnpUwROFpA.b['2'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['66']++;if(this._tabElementBindings!==null){__cov_H2imwewODq4$fnpUwROFpA.b['4'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['67']++;this._tabElementBindings.from.detach();__cov_H2imwewODq4$fnpUwROFpA.s['68']++;this._tabElementBindings.to.detach();__cov_H2imwewODq4$fnpUwROFpA.s['69']++;this._tabElementBindings.tabback.detach();__cov_H2imwewODq4$fnpUwROFpA.s['70']++;this._tabElementBindings.tabforward.detach();__cov_H2imwewODq4$fnpUwROFpA.s['71']++;this._tabElementBindings.focus.detach();__cov_H2imwewODq4$fnpUwROFpA.s['72']++;this._tabElementBindings.blur.detach();}else{__cov_H2imwewODq4$fnpUwROFpA.b['4'][1]++;__cov_H2imwewODq4$fnpUwROFpA.s['73']++;this._tabElementBindings={};}__cov_H2imwewODq4$fnpUwROFpA.s['74']++;var fromElement=Y.one(this.get('tabElements').from),toElement=Y.one(this.get('tabElements').to);__cov_H2imwewODq4$fnpUwROFpA.s['75']++;this._tabElementBindings.from=fromElement.on('keydown',function(ev){__cov_H2imwewODq4$fnpUwROFpA.f['13']++;__cov_H2imwewODq4$fnpUwROFpA.s['76']++;if((__cov_H2imwewODq4$fnpUwROFpA.b['6'][0]++,ev.keyCode===9)&&(__cov_H2imwewODq4$fnpUwROFpA.b['6'][1]++,!ev.shiftKey)){__cov_H2imwewODq4$fnpUwROFpA.b['5'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['77']++;ev.preventDefault();__cov_H2imwewODq4$fnpUwROFpA.s['78']++;this._swfReference._swf.setAttribute('tabindex',0);__cov_H2imwewODq4$fnpUwROFpA.s['79']++;this._swfReference._swf.setAttribute('role','button');__cov_H2imwewODq4$fnpUwROFpA.s['80']++;this._swfReference._swf.setAttribute('aria-label',this.get('selectButtonLabel'));__cov_H2imwewODq4$fnpUwROFpA.s['81']++;this._swfReference._swf.focus();}else{__cov_H2imwewODq4$fnpUwROFpA.b['5'][1]++;}},this);__cov_H2imwewODq4$fnpUwROFpA.s['82']++;this._tabElementBindings.to=toElement.on('keydown',function(ev){__cov_H2imwewODq4$fnpUwROFpA.f['14']++;__cov_H2imwewODq4$fnpUwROFpA.s['83']++;if((__cov_H2imwewODq4$fnpUwROFpA.b['8'][0]++,ev.keyCode===9)&&(__cov_H2imwewODq4$fnpUwROFpA.b['8'][1]++,ev.shiftKey)){__cov_H2imwewODq4$fnpUwROFpA.b['7'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['84']++;ev.preventDefault();__cov_H2imwewODq4$fnpUwROFpA.s['85']++;this._swfReference._swf.setAttribute('tabindex',0);__cov_H2imwewODq4$fnpUwROFpA.s['86']++;this._swfReference._swf.setAttribute('role','button');__cov_H2imwewODq4$fnpUwROFpA.s['87']++;this._swfReference._swf.setAttribute('aria-label',this.get('selectButtonLabel'));__cov_H2imwewODq4$fnpUwROFpA.s['88']++;this._swfReference._swf.focus();}else{__cov_H2imwewODq4$fnpUwROFpA.b['7'][1]++;}},this);__cov_H2imwewODq4$fnpUwROFpA.s['89']++;this._tabElementBindings.tabback=this._swfReference.on('tabback',function(){__cov_H2imwewODq4$fnpUwROFpA.f['15']++;__cov_H2imwewODq4$fnpUwROFpA.s['90']++;this._swfReference._swf.blur();__cov_H2imwewODq4$fnpUwROFpA.s['91']++;setTimeout(function(){__cov_H2imwewODq4$fnpUwROFpA.f['16']++;__cov_H2imwewODq4$fnpUwROFpA.s['92']++;fromElement.focus();},30);},this);__cov_H2imwewODq4$fnpUwROFpA.s['93']++;this._tabElementBindings.tabforward=this._swfReference.on('tabforward',function(){__cov_H2imwewODq4$fnpUwROFpA.f['17']++;__cov_H2imwewODq4$fnpUwROFpA.s['94']++;this._swfReference._swf.blur();__cov_H2imwewODq4$fnpUwROFpA.s['95']++;setTimeout(function(){__cov_H2imwewODq4$fnpUwROFpA.f['18']++;__cov_H2imwewODq4$fnpUwROFpA.s['96']++;toElement.focus();},30);},this);__cov_H2imwewODq4$fnpUwROFpA.s['97']++;this._tabElementBindings.focus=this._swfReference._swf.on('focus',function(){__cov_H2imwewODq4$fnpUwROFpA.f['19']++;__cov_H2imwewODq4$fnpUwROFpA.s['98']++;this._buttonFocus=true;__cov_H2imwewODq4$fnpUwROFpA.s['99']++;this._setButtonClass('focus',true);},this);__cov_H2imwewODq4$fnpUwROFpA.s['100']++;this._tabElementBindings.blur=this._swfReference._swf.on('blur',function(){__cov_H2imwewODq4$fnpUwROFpA.f['20']++;__cov_H2imwewODq4$fnpUwROFpA.s['101']++;this._buttonFocus=false;__cov_H2imwewODq4$fnpUwROFpA.s['102']++;this._setButtonClass('focus',false);},this);}else{__cov_H2imwewODq4$fnpUwROFpA.b['2'][1]++;__cov_H2imwewODq4$fnpUwROFpA.s['103']++;if(this._tabElementBindings!==null){__cov_H2imwewODq4$fnpUwROFpA.b['9'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['104']++;this._tabElementBindings.from.detach();__cov_H2imwewODq4$fnpUwROFpA.s['105']++;this._tabElementBindings.to.detach();__cov_H2imwewODq4$fnpUwROFpA.s['106']++;this._tabElementBindings.tabback.detach();__cov_H2imwewODq4$fnpUwROFpA.s['107']++;this._tabElementBindings.tabforward.detach();__cov_H2imwewODq4$fnpUwROFpA.s['108']++;this._tabElementBindings.focus.detach();__cov_H2imwewODq4$fnpUwROFpA.s['109']++;this._tabElementBindings.blur.detach();}else{__cov_H2imwewODq4$fnpUwROFpA.b['9'][1]++;}}},_setButtonClass:function(state,add){__cov_H2imwewODq4$fnpUwROFpA.f['21']++;__cov_H2imwewODq4$fnpUwROFpA.s['110']++;if(add){__cov_H2imwewODq4$fnpUwROFpA.b['10'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['111']++;this.get('selectFilesButton').addClass(this.get('buttonClassNames')[state]);}else{__cov_H2imwewODq4$fnpUwROFpA.b['10'][1]++;__cov_H2imwewODq4$fnpUwROFpA.s['112']++;this.get('selectFilesButton').removeClass(this.get('buttonClassNames')[state]);}},_setFileFilters:function(){__cov_H2imwewODq4$fnpUwROFpA.f['22']++;__cov_H2imwewODq4$fnpUwROFpA.s['113']++;if((__cov_H2imwewODq4$fnpUwROFpA.b['12'][0]++,this._swfReference)&&(__cov_H2imwewODq4$fnpUwROFpA.b['12'][1]++,this.get('fileFilters').length>0)){__cov_H2imwewODq4$fnpUwROFpA.b['11'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['114']++;this._swfReference.callSWF('setFileFilters',[this.get('fileFilters')]);}else{__cov_H2imwewODq4$fnpUwROFpA.b['11'][1]++;}},_setMultipleFiles:function(){__cov_H2imwewODq4$fnpUwROFpA.f['23']++;__cov_H2imwewODq4$fnpUwROFpA.s['115']++;if(this._swfReference){__cov_H2imwewODq4$fnpUwROFpA.b['13'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['116']++;this._swfReference.callSWF('setAllowMultipleFiles',[this.get('multipleFiles')]);}else{__cov_H2imwewODq4$fnpUwROFpA.b['13'][1]++;}},_triggerEnabled:function(){__cov_H2imwewODq4$fnpUwROFpA.f['24']++;__cov_H2imwewODq4$fnpUwROFpA.s['117']++;if(this.get('enabled')){__cov_H2imwewODq4$fnpUwROFpA.b['14'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['118']++;this._swfReference.callSWF('enable');__cov_H2imwewODq4$fnpUwROFpA.s['119']++;this._swfReference._swf.setAttribute('aria-disabled','false');__cov_H2imwewODq4$fnpUwROFpA.s['120']++;this._setButtonClass('disabled',false);}else{__cov_H2imwewODq4$fnpUwROFpA.b['14'][1]++;__cov_H2imwewODq4$fnpUwROFpA.s['121']++;this._swfReference.callSWF('disable');__cov_H2imwewODq4$fnpUwROFpA.s['122']++;this._swfReference._swf.setAttribute('aria-disabled','true');__cov_H2imwewODq4$fnpUwROFpA.s['123']++;this._setButtonClass('disabled',true);}},_getFileList:function(){__cov_H2imwewODq4$fnpUwROFpA.f['25']++;__cov_H2imwewODq4$fnpUwROFpA.s['124']++;return this._fileList.concat();},_setFileList:function(val){__cov_H2imwewODq4$fnpUwROFpA.f['26']++;__cov_H2imwewODq4$fnpUwROFpA.s['125']++;this._fileList=val.concat();__cov_H2imwewODq4$fnpUwROFpA.s['126']++;return this._fileList.concat();},_updateFileList:function(ev){__cov_H2imwewODq4$fnpUwROFpA.f['27']++;__cov_H2imwewODq4$fnpUwROFpA.s['127']++;Y.one('body').focus();__cov_H2imwewODq4$fnpUwROFpA.s['128']++;this._swfReference._swf.focus();__cov_H2imwewODq4$fnpUwROFpA.s['129']++;var newfiles=ev.fileList,fileConfObjects=[],parsedFiles=[],swfRef=this._swfReference,filterFunc=this.get('fileFilterFunction'),oldfiles;__cov_H2imwewODq4$fnpUwROFpA.s['130']++;Y.each(newfiles,function(value){__cov_H2imwewODq4$fnpUwROFpA.f['28']++;__cov_H2imwewODq4$fnpUwROFpA.s['131']++;var newFileConf={};__cov_H2imwewODq4$fnpUwROFpA.s['132']++;newFileConf.id=value.fileId;__cov_H2imwewODq4$fnpUwROFpA.s['133']++;newFileConf.name=value.fileReference.name;__cov_H2imwewODq4$fnpUwROFpA.s['134']++;newFileConf.size=value.fileReference.size;__cov_H2imwewODq4$fnpUwROFpA.s['135']++;newFileConf.type=value.fileReference.type;__cov_H2imwewODq4$fnpUwROFpA.s['136']++;newFileConf.dateCreated=value.fileReference.creationDate;__cov_H2imwewODq4$fnpUwROFpA.s['137']++;newFileConf.dateModified=value.fileReference.modificationDate;__cov_H2imwewODq4$fnpUwROFpA.s['138']++;newFileConf.uploader=swfRef;__cov_H2imwewODq4$fnpUwROFpA.s['139']++;fileConfObjects.push(newFileConf);});__cov_H2imwewODq4$fnpUwROFpA.s['140']++;if(filterFunc){__cov_H2imwewODq4$fnpUwROFpA.b['15'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['141']++;Y.each(fileConfObjects,function(value){__cov_H2imwewODq4$fnpUwROFpA.f['29']++;__cov_H2imwewODq4$fnpUwROFpA.s['142']++;var newfile=new Y.FileFlash(value);__cov_H2imwewODq4$fnpUwROFpA.s['143']++;if(filterFunc(newfile)){__cov_H2imwewODq4$fnpUwROFpA.b['16'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['144']++;parsedFiles.push(newfile);}else{__cov_H2imwewODq4$fnpUwROFpA.b['16'][1]++;}});}else{__cov_H2imwewODq4$fnpUwROFpA.b['15'][1]++;__cov_H2imwewODq4$fnpUwROFpA.s['145']++;Y.each(fileConfObjects,function(value){__cov_H2imwewODq4$fnpUwROFpA.f['30']++;__cov_H2imwewODq4$fnpUwROFpA.s['146']++;parsedFiles.push(new Y.FileFlash(value));});}__cov_H2imwewODq4$fnpUwROFpA.s['147']++;if(parsedFiles.length>0){__cov_H2imwewODq4$fnpUwROFpA.b['17'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['148']++;oldfiles=this.get('fileList');__cov_H2imwewODq4$fnpUwROFpA.s['149']++;this.set('fileList',this.get('appendNewFiles')?(__cov_H2imwewODq4$fnpUwROFpA.b['18'][0]++,oldfiles.concat(parsedFiles)):(__cov_H2imwewODq4$fnpUwROFpA.b['18'][1]++,parsedFiles));__cov_H2imwewODq4$fnpUwROFpA.s['150']++;this.fire('fileselect',{fileList:parsedFiles});}else{__cov_H2imwewODq4$fnpUwROFpA.b['17'][1]++;}},_uploadEventHandler:function(event){__cov_H2imwewODq4$fnpUwROFpA.f['31']++;__cov_H2imwewODq4$fnpUwROFpA.s['151']++;switch(event.type){case'file:uploadstart':__cov_H2imwewODq4$fnpUwROFpA.b['19'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['152']++;this.fire('fileuploadstart',event);__cov_H2imwewODq4$fnpUwROFpA.s['153']++;break;case'file:uploadprogress':__cov_H2imwewODq4$fnpUwROFpA.b['19'][1]++;__cov_H2imwewODq4$fnpUwROFpA.s['154']++;this.fire('uploadprogress',event);__cov_H2imwewODq4$fnpUwROFpA.s['155']++;break;case'uploaderqueue:totaluploadprogress':__cov_H2imwewODq4$fnpUwROFpA.b['19'][2]++;__cov_H2imwewODq4$fnpUwROFpA.s['156']++;this.fire('totaluploadprogress',event);__cov_H2imwewODq4$fnpUwROFpA.s['157']++;break;case'file:uploadcomplete':__cov_H2imwewODq4$fnpUwROFpA.b['19'][3]++;__cov_H2imwewODq4$fnpUwROFpA.s['158']++;this.fire('uploadcomplete',event);__cov_H2imwewODq4$fnpUwROFpA.s['159']++;break;case'uploaderqueue:alluploadscomplete':__cov_H2imwewODq4$fnpUwROFpA.b['19'][4]++;__cov_H2imwewODq4$fnpUwROFpA.s['160']++;this.queue=null;__cov_H2imwewODq4$fnpUwROFpA.s['161']++;this.fire('alluploadscomplete',event);__cov_H2imwewODq4$fnpUwROFpA.s['162']++;break;case'file:uploaderror':__cov_H2imwewODq4$fnpUwROFpA.b['19'][5]++;case'uploaderqueue:uploaderror':__cov_H2imwewODq4$fnpUwROFpA.b['19'][6]++;__cov_H2imwewODq4$fnpUwROFpA.s['163']++;this.fire('uploaderror',event);__cov_H2imwewODq4$fnpUwROFpA.s['164']++;break;case'file:uploadcancel':__cov_H2imwewODq4$fnpUwROFpA.b['19'][7]++;case'uploaderqueue:uploadcancel':__cov_H2imwewODq4$fnpUwROFpA.b['19'][8]++;__cov_H2imwewODq4$fnpUwROFpA.s['165']++;this.fire('uploadcancel',event);__cov_H2imwewODq4$fnpUwROFpA.s['166']++;break;}},upload:function(file,url,postvars){__cov_H2imwewODq4$fnpUwROFpA.f['32']++;__cov_H2imwewODq4$fnpUwROFpA.s['167']++;var uploadURL=(__cov_H2imwewODq4$fnpUwROFpA.b['20'][0]++,url)||(__cov_H2imwewODq4$fnpUwROFpA.b['20'][1]++,this.get('uploadURL')),postVars=(__cov_H2imwewODq4$fnpUwROFpA.b['21'][0]++,postvars)||(__cov_H2imwewODq4$fnpUwROFpA.b['21'][1]++,this.get('postVarsPerFile')),fileId=file.get('id');__cov_H2imwewODq4$fnpUwROFpA.s['168']++;postVars=postVars.hasOwnProperty(fileId)?(__cov_H2imwewODq4$fnpUwROFpA.b['22'][0]++,postVars[fileId]):(__cov_H2imwewODq4$fnpUwROFpA.b['22'][1]++,postVars);__cov_H2imwewODq4$fnpUwROFpA.s['169']++;if(file instanceof Y.FileFlash){__cov_H2imwewODq4$fnpUwROFpA.b['23'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['170']++;file.on('uploadstart',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['171']++;file.on('uploadprogress',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['172']++;file.on('uploadcomplete',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['173']++;file.on('uploaderror',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['174']++;file.on('uploadcancel',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['175']++;file.startUpload(uploadURL,postVars,this.get('fileFieldName'));}else{__cov_H2imwewODq4$fnpUwROFpA.b['23'][1]++;}},uploadAll:function(url,postvars){__cov_H2imwewODq4$fnpUwROFpA.f['33']++;__cov_H2imwewODq4$fnpUwROFpA.s['176']++;this.uploadThese(this.get('fileList'),url,postvars);},uploadThese:function(files,url,postvars){__cov_H2imwewODq4$fnpUwROFpA.f['34']++;__cov_H2imwewODq4$fnpUwROFpA.s['177']++;if(!this.queue){__cov_H2imwewODq4$fnpUwROFpA.b['24'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['178']++;var uploadURL=(__cov_H2imwewODq4$fnpUwROFpA.b['25'][0]++,url)||(__cov_H2imwewODq4$fnpUwROFpA.b['25'][1]++,this.get('uploadURL')),postVars=(__cov_H2imwewODq4$fnpUwROFpA.b['26'][0]++,postvars)||(__cov_H2imwewODq4$fnpUwROFpA.b['26'][1]++,this.get('postVarsPerFile'));__cov_H2imwewODq4$fnpUwROFpA.s['179']++;this.queue=new UploaderQueue({simUploads:this.get('simLimit'),errorAction:this.get('errorAction'),fileFieldName:this.get('fileFieldName'),fileList:files,uploadURL:uploadURL,perFileParameters:postVars,retryCount:this.get('retryCount')});__cov_H2imwewODq4$fnpUwROFpA.s['180']++;this.queue.on('uploadstart',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['181']++;this.queue.on('uploadprogress',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['182']++;this.queue.on('totaluploadprogress',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['183']++;this.queue.on('uploadcomplete',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['184']++;this.queue.on('alluploadscomplete',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['185']++;this.queue.on('alluploadscancelled',function(){__cov_H2imwewODq4$fnpUwROFpA.f['35']++;__cov_H2imwewODq4$fnpUwROFpA.s['186']++;this.queue=null;},this);__cov_H2imwewODq4$fnpUwROFpA.s['187']++;this.queue.on('uploaderror',this._uploadEventHandler,this);__cov_H2imwewODq4$fnpUwROFpA.s['188']++;this.queue.startUpload();__cov_H2imwewODq4$fnpUwROFpA.s['189']++;this.fire('uploadstart');}else{__cov_H2imwewODq4$fnpUwROFpA.b['24'][1]++;}}},{FLASH_CONTAINER:'
',SELECT_FILES_BUTTON:'',TYPE:'flash',NAME:'uploader',ATTRS:{appendNewFiles:{value:true},buttonClassNames:{value:{'hover':'yui3-button-hover','active':'yui3-button-active','disabled':'yui3-button-disabled','focus':'yui3-button-selected'}},enabled:{value:true},errorAction:{value:'continue',validator:function(val){__cov_H2imwewODq4$fnpUwROFpA.f['36']++;__cov_H2imwewODq4$fnpUwROFpA.s['190']++;return(__cov_H2imwewODq4$fnpUwROFpA.b['27'][0]++,val===UploaderQueue.CONTINUE)||(__cov_H2imwewODq4$fnpUwROFpA.b['27'][1]++,val===UploaderQueue.STOP)||(__cov_H2imwewODq4$fnpUwROFpA.b['27'][2]++,val===UploaderQueue.RESTART_ASAP)||(__cov_H2imwewODq4$fnpUwROFpA.b['27'][3]++,val===UploaderQueue.RESTART_AFTER);}},fileFilters:{value:[]},fileFilterFunction:{value:null},fileFieldName:{value:'Filedata'},fileList:{value:[],getter:'_getFileList',setter:'_setFileList'},multipleFiles:{value:false},postVarsPerFile:{value:{}},selectButtonLabel:{value:'Select Files'},selectFilesButton:{valueFn:function(){__cov_H2imwewODq4$fnpUwROFpA.f['37']++;__cov_H2imwewODq4$fnpUwROFpA.s['191']++;return Y.Node.create(substitute(Y.UploaderFlash.SELECT_FILES_BUTTON,{selectButtonLabel:this.get('selectButtonLabel')}));}},simLimit:{value:2,validator:function(val){__cov_H2imwewODq4$fnpUwROFpA.f['38']++;__cov_H2imwewODq4$fnpUwROFpA.s['192']++;return(__cov_H2imwewODq4$fnpUwROFpA.b['28'][0]++,val>=2)&&(__cov_H2imwewODq4$fnpUwROFpA.b['28'][1]++,val<=5);}},swfURL:{valueFn:function(){__cov_H2imwewODq4$fnpUwROFpA.f['39']++;__cov_H2imwewODq4$fnpUwROFpA.s['193']++;var prefix=Y.Env.cdn+'uploader/assets/flashuploader.swf';__cov_H2imwewODq4$fnpUwROFpA.s['194']++;if(Y.UA.ie>0){__cov_H2imwewODq4$fnpUwROFpA.b['29'][0]++;__cov_H2imwewODq4$fnpUwROFpA.s['195']++;return prefix+'?t='+Y.guid('uploader');}else{__cov_H2imwewODq4$fnpUwROFpA.b['29'][1]++;}__cov_H2imwewODq4$fnpUwROFpA.s['196']++;return prefix;}},tabElements:{value:null},uploadURL:{value:''},retryCount:{value:3}}});__cov_H2imwewODq4$fnpUwROFpA.s['197']++;Y.UploaderFlash.Queue=UploaderQueue;},'3.10.3',{'requires':['swf','widget','base','cssbutton','node','event-custom','file-flash','uploader-queue']});