NOBUG: Fixed file access permissions
[moodle.git] / lib / yuilib / 3.13.0 / editor-selection / editor-selection-coverage.js
blobad267b58209392f8d91d0e2c17626f653b99692c
1 /*
2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
6 */
8 if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
9 if (!__coverage__['build/editor-selection/editor-selection.js']) {
10    __coverage__['build/editor-selection/editor-selection.js'] = {"path":"build/editor-selection/editor-selection.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,"289":0,"290":0,"291":0,"292":0,"293":0,"294":0,"295":0,"296":0,"297":0,"298":0,"299":0,"300":0,"301":0,"302":0,"303":0,"304":0,"305":0,"306":0,"307":0,"308":0,"309":0,"310":0,"311":0,"312":0,"313":0,"314":0,"315":0,"316":0,"317":0,"318":0,"319":0,"320":0,"321":0,"322":0,"323":0,"324":0,"325":0,"326":0,"327":0,"328":0,"329":0,"330":0,"331":0,"332":0,"333":0,"334":0,"335":0,"336":0,"337":0,"338":0,"339":0,"340":0,"341":0,"342":0,"343":0,"344":0,"345":0,"346":0,"347":0,"348":0,"349":0,"350":0,"351":0,"352":0,"353":0,"354":0,"355":0,"356":0,"357":0,"358":0,"359":0,"360":0,"361":0,"362":0,"363":0,"364":0,"365":0,"366":0,"367":0,"368":0,"369":0,"370":0,"371":0,"372":0,"373":0,"374":0,"375":0,"376":0,"377":0,"378":0,"379":0,"380":0,"381":0,"382":0,"383":0,"384":0,"385":0,"386":0,"387":0,"388":0,"389":0,"390":0,"391":0,"392":0,"393":0,"394":0,"395":0,"396":0,"397":0,"398":0,"399":0,"400":0,"401":0,"402":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],"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],"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],"67":[0,0],"68":[0,0],"69":[0,0],"70":[0,0,0,0],"71":[0,0],"72":[0,0],"73":[0,0],"74":[0,0],"75":[0,0],"76":[0,0],"77":[0,0],"78":[0,0],"79":[0,0],"80":[0,0],"81":[0,0],"82":[0,0],"83":[0,0],"84":[0,0],"85":[0,0],"86":[0,0],"87":[0,0],"88":[0,0],"89":[0,0],"90":[0,0],"91":[0,0],"92":[0,0],"93":[0,0],"94":[0,0],"95":[0,0],"96":[0,0],"97":[0,0],"98":[0,0],"99":[0,0],"100":[0,0],"101":[0,0],"102":[0,0],"103":[0,0],"104":[0,0],"105":[0,0],"106":[0,0],"107":[0,0],"108":[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},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":28},"end":{"line":1,"column":47}}},"2":{"name":"(anonymous_2)","line":20,"loc":{"start":{"line":20,"column":24},"end":{"line":20,"column":43}}},"3":{"name":"(anonymous_3)","line":132,"loc":{"start":{"line":132,"column":41},"end":{"line":132,"column":53}}},"4":{"name":"(anonymous_4)","line":151,"loc":{"start":{"line":151,"column":31},"end":{"line":151,"column":48}}},"5":{"name":"(anonymous_5)","line":164,"loc":{"start":{"line":164,"column":19},"end":{"line":164,"column":31}}},"6":{"name":"(anonymous_6)","line":179,"loc":{"start":{"line":179,"column":24},"end":{"line":179,"column":37}}},"7":{"name":"(anonymous_7)","line":204,"loc":{"start":{"line":204,"column":27},"end":{"line":204,"column":42}}},"8":{"name":"(anonymous_8)","line":211,"loc":{"start":{"line":211,"column":23},"end":{"line":211,"column":38}}},"9":{"name":"(anonymous_9)","line":222,"loc":{"start":{"line":222,"column":16},"end":{"line":222,"column":28}}},"10":{"name":"(anonymous_10)","line":240,"loc":{"start":{"line":240,"column":37},"end":{"line":240,"column":48}}},"11":{"name":"(anonymous_11)","line":289,"loc":{"start":{"line":289,"column":24},"end":{"line":289,"column":36}}},"12":{"name":"(anonymous_12)","line":335,"loc":{"start":{"line":335,"column":35},"end":{"line":335,"column":53}}},"13":{"name":"(anonymous_13)","line":355,"loc":{"start":{"line":355,"column":33},"end":{"line":355,"column":44}}},"14":{"name":"(anonymous_14)","line":362,"loc":{"start":{"line":362,"column":19},"end":{"line":362,"column":31}}},"15":{"name":"(anonymous_15)","line":374,"loc":{"start":{"line":374,"column":18},"end":{"line":374,"column":30}}},"16":{"name":"(anonymous_16)","line":383,"loc":{"start":{"line":383,"column":17},"end":{"line":383,"column":29}}},"17":{"name":"(anonymous_17)","line":415,"loc":{"start":{"line":415,"column":32},"end":{"line":415,"column":44}}},"18":{"name":"(anonymous_18)","line":440,"loc":{"start":{"line":440,"column":32},"end":{"line":440,"column":47}}},"19":{"name":"(anonymous_19)","line":504,"loc":{"start":{"line":504,"column":34},"end":{"line":504,"column":45}}},"20":{"name":"(anonymous_20)","line":514,"loc":{"start":{"line":514,"column":36},"end":{"line":514,"column":47}}},"21":{"name":"(anonymous_21)","line":518,"loc":{"start":{"line":518,"column":21},"end":{"line":518,"column":33}}},"22":{"name":"(anonymous_22)","line":608,"loc":{"start":{"line":608,"column":15},"end":{"line":608,"column":32}}},"23":{"name":"(anonymous_23)","line":623,"loc":{"start":{"line":623,"column":15},"end":{"line":623,"column":32}}},"24":{"name":"(anonymous_24)","line":636,"loc":{"start":{"line":636,"column":21},"end":{"line":636,"column":32}}},"25":{"name":"(anonymous_25)","line":646,"loc":{"start":{"line":646,"column":23},"end":{"line":646,"column":38}}},"26":{"name":"(anonymous_26)","line":663,"loc":{"start":{"line":663,"column":23},"end":{"line":663,"column":38}}},"27":{"name":"(anonymous_27)","line":675,"loc":{"start":{"line":675,"column":24},"end":{"line":675,"column":63}}},"28":{"name":"(anonymous_28)","line":718,"loc":{"start":{"line":718,"column":42},"end":{"line":718,"column":53}}},"29":{"name":"(anonymous_29)","line":781,"loc":{"start":{"line":781,"column":21},"end":{"line":781,"column":35}}},"30":{"name":"(anonymous_30)","line":788,"loc":{"start":{"line":788,"column":27},"end":{"line":788,"column":42}}},"31":{"name":"(anonymous_31)","line":831,"loc":{"start":{"line":831,"column":17},"end":{"line":831,"column":33}}},"32":{"name":"(anonymous_32)","line":857,"loc":{"start":{"line":857,"column":16},"end":{"line":857,"column":27}}},"33":{"name":"(anonymous_33)","line":868,"loc":{"start":{"line":868,"column":21},"end":{"line":868,"column":32}}},"34":{"name":"(anonymous_34)","line":883,"loc":{"start":{"line":883,"column":20},"end":{"line":883,"column":50}}},"35":{"name":"(anonymous_35)","line":920,"loc":{"start":{"line":920,"column":19},"end":{"line":920,"column":30}}},"36":{"name":"(anonymous_36)","line":929,"loc":{"start":{"line":929,"column":19},"end":{"line":929,"column":30}}},"37":{"name":"(anonymous_37)","line":938,"loc":{"start":{"line":938,"column":22},"end":{"line":938,"column":37}}},"38":{"name":"(anonymous_38)","line":955,"loc":{"start":{"line":955,"column":21},"end":{"line":955,"column":45}}},"39":{"name":"(anonymous_39)","line":964,"loc":{"start":{"line":964,"column":25},"end":{"line":964,"column":37}}},"40":{"name":"(anonymous_40)","line":974,"loc":{"start":{"line":974,"column":18},"end":{"line":974,"column":29}}},"41":{"name":"(anonymous_41)","line":987,"loc":{"start":{"line":987,"column":25},"end":{"line":987,"column":40}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":1023,"column":37}},"2":{"start":{"line":12,"column":4},"end":{"line":14,"column":31}},"3":{"start":{"line":16,"column":4},"end":{"line":18,"column":5}},"4":{"start":{"line":17,"column":8},"end":{"line":17,"column":34}},"5":{"start":{"line":20,"column":4},"end":{"line":125,"column":6}},"6":{"start":{"line":21,"column":8},"end":{"line":22,"column":66}},"7":{"start":{"line":25,"column":8},"end":{"line":29,"column":9}},"8":{"start":{"line":26,"column":12},"end":{"line":26,"column":46}},"9":{"start":{"line":27,"column":15},"end":{"line":29,"column":9}},"10":{"start":{"line":28,"column":12},"end":{"line":28,"column":55}},"11":{"start":{"line":30,"column":8},"end":{"line":30,"column":30}},"12":{"start":{"line":32,"column":8},"end":{"line":34,"column":9}},"13":{"start":{"line":33,"column":12},"end":{"line":33,"column":25}},"14":{"start":{"line":36,"column":8},"end":{"line":115,"column":9}},"15":{"start":{"line":37,"column":12},"end":{"line":37,"column":88}},"16":{"start":{"line":38,"column":12},"end":{"line":102,"column":13}},"17":{"start":{"line":39,"column":16},"end":{"line":39,"column":78}},"18":{"start":{"line":41,"column":16},"end":{"line":43,"column":17}},"19":{"start":{"line":42,"column":20},"end":{"line":42,"column":95}},"20":{"start":{"line":44,"column":16},"end":{"line":44,"column":38}},"21":{"start":{"line":45,"column":16},"end":{"line":58,"column":17}},"22":{"start":{"line":46,"column":20},"end":{"line":46,"column":46}},"23":{"start":{"line":47,"column":20},"end":{"line":47,"column":43}},"24":{"start":{"line":49,"column":20},"end":{"line":57,"column":21}},"25":{"start":{"line":52,"column":24},"end":{"line":56,"column":25}},"26":{"start":{"line":53,"column":28},"end":{"line":55,"column":29}},"27":{"start":{"line":54,"column":32},"end":{"line":54,"column":50}},"28":{"start":{"line":60,"column":16},"end":{"line":60,"column":37}},"29":{"start":{"line":62,"column":16},"end":{"line":87,"column":17}},"30":{"start":{"line":63,"column":20},"end":{"line":72,"column":21}},"31":{"start":{"line":64,"column":24},"end":{"line":66,"column":25}},"32":{"start":{"line":65,"column":28},"end":{"line":65,"column":55}},"33":{"start":{"line":67,"column":24},"end":{"line":71,"column":25}},"34":{"start":{"line":68,"column":28},"end":{"line":70,"column":29}},"35":{"start":{"line":69,"column":32},"end":{"line":69,"column":59}},"36":{"start":{"line":73,"column":20},"end":{"line":73,"column":89}},"37":{"start":{"line":75,"column":20},"end":{"line":75,"column":63}},"38":{"start":{"line":76,"column":20},"end":{"line":76,"column":69}},"39":{"start":{"line":77,"column":20},"end":{"line":82,"column":21}},"40":{"start":{"line":80,"column":24},"end":{"line":80,"column":59}},"41":{"start":{"line":81,"column":24},"end":{"line":81,"column":56}},"42":{"start":{"line":84,"column":20},"end":{"line":84,"column":65}},"43":{"start":{"line":86,"column":20},"end":{"line":86,"column":77}},"44":{"start":{"line":92,"column":16},"end":{"line":101,"column":17}},"45":{"start":{"line":93,"column":20},"end":{"line":93,"column":52}},"46":{"start":{"line":94,"column":20},"end":{"line":100,"column":21}},"47":{"start":{"line":95,"column":24},"end":{"line":95,"column":41}},"48":{"start":{"line":96,"column":24},"end":{"line":96,"column":75}},"49":{"start":{"line":97,"column":27},"end":{"line":100,"column":21}},"50":{"start":{"line":98,"column":24},"end":{"line":98,"column":48}},"51":{"start":{"line":99,"column":24},"end":{"line":99,"column":69}},"52":{"start":{"line":107,"column":12},"end":{"line":107,"column":47}},"53":{"start":{"line":108,"column":12},"end":{"line":108,"column":72}},"54":{"start":{"line":109,"column":12},"end":{"line":109,"column":70}},"55":{"start":{"line":110,"column":12},"end":{"line":110,"column":49}},"56":{"start":{"line":111,"column":12},"end":{"line":111,"column":47}},"57":{"start":{"line":113,"column":12},"end":{"line":113,"column":75}},"58":{"start":{"line":114,"column":12},"end":{"line":114,"column":72}},"59":{"start":{"line":116,"column":8},"end":{"line":124,"column":9}},"60":{"start":{"line":117,"column":12},"end":{"line":117,"column":33}},"61":{"start":{"line":119,"column":12},"end":{"line":123,"column":13}},"62":{"start":{"line":120,"column":16},"end":{"line":120,"column":43}},"63":{"start":{"line":122,"column":16},"end":{"line":122,"column":31}},"64":{"start":{"line":132,"column":4},"end":{"line":142,"column":6}},"65":{"start":{"line":133,"column":8},"end":{"line":133,"column":34}},"66":{"start":{"line":134,"column":8},"end":{"line":134,"column":54}},"67":{"start":{"line":135,"column":8},"end":{"line":137,"column":9}},"68":{"start":{"line":136,"column":12},"end":{"line":136,"column":39}},"69":{"start":{"line":138,"column":8},"end":{"line":141,"column":9}},"70":{"start":{"line":139,"column":12},"end":{"line":139,"column":64}},"71":{"start":{"line":140,"column":12},"end":{"line":140,"column":39}},"72":{"start":{"line":151,"column":4},"end":{"line":233,"column":6}},"73":{"start":{"line":153,"column":8},"end":{"line":162,"column":21}},"74":{"start":{"line":164,"column":8},"end":{"line":172,"column":11}},"75":{"start":{"line":165,"column":12},"end":{"line":165,"column":43}},"76":{"start":{"line":166,"column":12},"end":{"line":171,"column":13}},"77":{"start":{"line":167,"column":16},"end":{"line":167,"column":67}},"78":{"start":{"line":168,"column":16},"end":{"line":168,"column":36}},"79":{"start":{"line":170,"column":16},"end":{"line":170,"column":54}},"80":{"start":{"line":173,"column":8},"end":{"line":173,"column":42}},"81":{"start":{"line":175,"column":8},"end":{"line":175,"column":65}},"82":{"start":{"line":177,"column":8},"end":{"line":201,"column":9}},"83":{"start":{"line":178,"column":12},"end":{"line":178,"column":69}},"84":{"start":{"line":179,"column":12},"end":{"line":200,"column":15}},"85":{"start":{"line":180,"column":16},"end":{"line":181,"column":29}},"86":{"start":{"line":183,"column":16},"end":{"line":183,"column":53}},"87":{"start":{"line":185,"column":16},"end":{"line":185,"column":50}},"88":{"start":{"line":186,"column":16},"end":{"line":186,"column":58}},"89":{"start":{"line":187,"column":16},"end":{"line":189,"column":17}},"90":{"start":{"line":188,"column":20},"end":{"line":188,"column":55}},"91":{"start":{"line":191,"column":16},"end":{"line":191,"column":44}},"92":{"start":{"line":192,"column":16},"end":{"line":192,"column":35}},"93":{"start":{"line":193,"column":16},"end":{"line":193,"column":31}},"94":{"start":{"line":194,"column":16},"end":{"line":194,"column":33}},"95":{"start":{"line":195,"column":16},"end":{"line":195,"column":36}},"96":{"start":{"line":196,"column":16},"end":{"line":196,"column":39}},"97":{"start":{"line":197,"column":16},"end":{"line":197,"column":37}},"98":{"start":{"line":198,"column":16},"end":{"line":198,"column":38}},"99":{"start":{"line":199,"column":16},"end":{"line":199,"column":32}},"100":{"start":{"line":204,"column":8},"end":{"line":206,"column":11}},"101":{"start":{"line":205,"column":12},"end":{"line":205,"column":79}},"102":{"start":{"line":207,"column":8},"end":{"line":207,"column":42}},"103":{"start":{"line":211,"column":8},"end":{"line":218,"column":11}},"104":{"start":{"line":212,"column":12},"end":{"line":213,"column":29}},"105":{"start":{"line":214,"column":12},"end":{"line":216,"column":13}},"106":{"start":{"line":215,"column":16},"end":{"line":215,"column":29}},"107":{"start":{"line":217,"column":12},"end":{"line":217,"column":71}},"108":{"start":{"line":221,"column":8},"end":{"line":221,"column":31}},"109":{"start":{"line":222,"column":8},"end":{"line":227,"column":11}},"110":{"start":{"line":223,"column":12},"end":{"line":223,"column":34}},"111":{"start":{"line":224,"column":12},"end":{"line":226,"column":13}},"112":{"start":{"line":225,"column":16},"end":{"line":225,"column":27}},"113":{"start":{"line":229,"column":8},"end":{"line":231,"column":9}},"114":{"start":{"line":230,"column":12},"end":{"line":230,"column":43}},"115":{"start":{"line":232,"column":8},"end":{"line":232,"column":41}},"116":{"start":{"line":240,"column":4},"end":{"line":298,"column":6}},"117":{"start":{"line":241,"column":8},"end":{"line":243,"column":40}},"118":{"start":{"line":245,"column":8},"end":{"line":269,"column":9}},"119":{"start":{"line":246,"column":12},"end":{"line":267,"column":13}},"120":{"start":{"line":247,"column":16},"end":{"line":247,"column":40}},"121":{"start":{"line":248,"column":16},"end":{"line":266,"column":17}},"122":{"start":{"line":249,"column":20},"end":{"line":249,"column":32}},"123":{"start":{"line":250,"column":20},"end":{"line":257,"column":21}},"124":{"start":{"line":251,"column":24},"end":{"line":251,"column":85}},"125":{"start":{"line":252,"column":24},"end":{"line":252,"column":84}},"126":{"start":{"line":253,"column":24},"end":{"line":256,"column":25}},"127":{"start":{"line":254,"column":28},"end":{"line":254,"column":41}},"128":{"start":{"line":258,"column":20},"end":{"line":263,"column":21}},"129":{"start":{"line":259,"column":24},"end":{"line":261,"column":25}},"130":{"start":{"line":260,"column":28},"end":{"line":260,"column":41}},"131":{"start":{"line":262,"column":24},"end":{"line":262,"column":48}},"132":{"start":{"line":265,"column":20},"end":{"line":265,"column":68}},"133":{"start":{"line":268,"column":12},"end":{"line":268,"column":60}},"134":{"start":{"line":271,"column":8},"end":{"line":271,"column":60}},"135":{"start":{"line":272,"column":8},"end":{"line":295,"column":9}},"136":{"start":{"line":273,"column":12},"end":{"line":273,"column":42}},"137":{"start":{"line":274,"column":12},"end":{"line":287,"column":13}},"138":{"start":{"line":275,"column":16},"end":{"line":277,"column":17}},"139":{"start":{"line":276,"column":20},"end":{"line":276,"column":40}},"140":{"start":{"line":278,"column":16},"end":{"line":278,"column":55}},"141":{"start":{"line":279,"column":16},"end":{"line":283,"column":17}},"142":{"start":{"line":280,"column":20},"end":{"line":280,"column":70}},"143":{"start":{"line":281,"column":20},"end":{"line":281,"column":50}},"144":{"start":{"line":282,"column":20},"end":{"line":282,"column":48}},"145":{"start":{"line":284,"column":16},"end":{"line":286,"column":17}},"146":{"start":{"line":285,"column":20},"end":{"line":285,"column":40}},"147":{"start":{"line":289,"column":12},"end":{"line":294,"column":15}},"148":{"start":{"line":290,"column":16},"end":{"line":290,"column":46}},"149":{"start":{"line":291,"column":16},"end":{"line":293,"column":17}},"150":{"start":{"line":292,"column":20},"end":{"line":292,"column":31}},"151":{"start":{"line":297,"column":8},"end":{"line":297,"column":41}},"152":{"start":{"line":305,"column":4},"end":{"line":305,"column":58}},"153":{"start":{"line":312,"column":4},"end":{"line":312,"column":90}},"154":{"start":{"line":319,"column":4},"end":{"line":319,"column":47}},"155":{"start":{"line":326,"column":4},"end":{"line":326,"column":49}},"156":{"start":{"line":335,"column":4},"end":{"line":347,"column":6}},"157":{"start":{"line":336,"column":8},"end":{"line":345,"column":9}},"158":{"start":{"line":337,"column":12},"end":{"line":338,"column":50}},"159":{"start":{"line":340,"column":12},"end":{"line":342,"column":13}},"160":{"start":{"line":341,"column":16},"end":{"line":341,"column":44}},"161":{"start":{"line":343,"column":12},"end":{"line":343,"column":41}},"162":{"start":{"line":344,"column":12},"end":{"line":344,"column":41}},"163":{"start":{"line":346,"column":8},"end":{"line":346,"column":21}},"164":{"start":{"line":355,"column":4},"end":{"line":407,"column":6}},"165":{"start":{"line":356,"column":8},"end":{"line":359,"column":24}},"166":{"start":{"line":362,"column":8},"end":{"line":371,"column":11}},"167":{"start":{"line":363,"column":12},"end":{"line":370,"column":13}},"168":{"start":{"line":365,"column":16},"end":{"line":365,"column":65}},"169":{"start":{"line":366,"column":16},"end":{"line":366,"column":39}},"170":{"start":{"line":367,"column":16},"end":{"line":369,"column":17}},"171":{"start":{"line":368,"column":20},"end":{"line":368,"column":47}},"172":{"start":{"line":373,"column":8},"end":{"line":373,"column":36}},"173":{"start":{"line":374,"column":8},"end":{"line":380,"column":11}},"174":{"start":{"line":375,"column":12},"end":{"line":379,"column":13}},"175":{"start":{"line":376,"column":16},"end":{"line":376,"column":27}},"176":{"start":{"line":378,"column":16},"end":{"line":378,"column":65}},"177":{"start":{"line":382,"column":8},"end":{"line":382,"column":31}},"178":{"start":{"line":383,"column":8},"end":{"line":388,"column":11}},"179":{"start":{"line":384,"column":12},"end":{"line":387,"column":13}},"180":{"start":{"line":385,"column":16},"end":{"line":385,"column":40}},"181":{"start":{"line":386,"column":16},"end":{"line":386,"column":43}},"182":{"start":{"line":390,"column":8},"end":{"line":392,"column":9}},"183":{"start":{"line":391,"column":12},"end":{"line":391,"column":41}},"184":{"start":{"line":394,"column":8},"end":{"line":394,"column":65}},"185":{"start":{"line":406,"column":8},"end":{"line":406,"column":20}},"186":{"start":{"line":415,"column":4},"end":{"line":431,"column":6}},"187":{"start":{"line":416,"column":8},"end":{"line":418,"column":9}},"188":{"start":{"line":417,"column":12},"end":{"line":417,"column":42}},"189":{"start":{"line":420,"column":8},"end":{"line":429,"column":9}},"190":{"start":{"line":424,"column":12},"end":{"line":428,"column":13}},"191":{"start":{"line":425,"column":16},"end":{"line":425,"column":33}},"192":{"start":{"line":427,"column":16},"end":{"line":427,"column":43}},"193":{"start":{"line":430,"column":8},"end":{"line":430,"column":24}},"194":{"start":{"line":440,"column":4},"end":{"line":445,"column":6}},"195":{"start":{"line":441,"column":8},"end":{"line":441,"column":82}},"196":{"start":{"line":443,"column":8},"end":{"line":443,"column":71}},"197":{"start":{"line":444,"column":8},"end":{"line":444,"column":19}},"198":{"start":{"line":448,"column":4},"end":{"line":448,"column":46}},"199":{"start":{"line":455,"column":4},"end":{"line":455,"column":49}},"200":{"start":{"line":462,"column":4},"end":{"line":462,"column":57}},"201":{"start":{"line":468,"column":4},"end":{"line":468,"column":38}},"202":{"start":{"line":474,"column":4},"end":{"line":474,"column":43}},"203":{"start":{"line":481,"column":4},"end":{"line":481,"column":43}},"204":{"start":{"line":488,"column":4},"end":{"line":488,"column":56}},"205":{"start":{"line":495,"column":4},"end":{"line":495,"column":70}},"206":{"start":{"line":502,"column":4},"end":{"line":502,"column":43}},"207":{"start":{"line":504,"column":4},"end":{"line":507,"column":6}},"208":{"start":{"line":505,"column":8},"end":{"line":505,"column":60}},"209":{"start":{"line":506,"column":8},"end":{"line":506,"column":26}},"210":{"start":{"line":514,"column":4},"end":{"line":543,"column":6}},"211":{"start":{"line":515,"column":8},"end":{"line":515,"column":39}},"212":{"start":{"line":516,"column":8},"end":{"line":516,"column":25}},"213":{"start":{"line":517,"column":8},"end":{"line":529,"column":9}},"214":{"start":{"line":518,"column":12},"end":{"line":528,"column":15}},"215":{"start":{"line":519,"column":16},"end":{"line":519,"column":72}},"216":{"start":{"line":520,"column":16},"end":{"line":527,"column":17}},"217":{"start":{"line":521,"column":20},"end":{"line":521,"column":31}},"218":{"start":{"line":523,"column":20},"end":{"line":523,"column":64}},"219":{"start":{"line":524,"column":20},"end":{"line":526,"column":21}},"220":{"start":{"line":525,"column":24},"end":{"line":525,"column":35}},"221":{"start":{"line":545,"column":4},"end":{"line":1016,"column":6}},"222":{"start":{"line":609,"column":12},"end":{"line":609,"column":67}},"223":{"start":{"line":610,"column":12},"end":{"line":610,"column":51}},"224":{"start":{"line":611,"column":12},"end":{"line":611,"column":34}},"225":{"start":{"line":612,"column":12},"end":{"line":612,"column":26}},"226":{"start":{"line":613,"column":12},"end":{"line":613,"column":42}},"227":{"start":{"line":624,"column":12},"end":{"line":624,"column":67}},"228":{"start":{"line":625,"column":12},"end":{"line":625,"column":51}},"229":{"start":{"line":626,"column":12},"end":{"line":626,"column":30}},"230":{"start":{"line":627,"column":12},"end":{"line":627,"column":42}},"231":{"start":{"line":637,"column":12},"end":{"line":640,"column":27}},"232":{"start":{"line":642,"column":12},"end":{"line":642,"column":37}},"233":{"start":{"line":643,"column":12},"end":{"line":643,"column":76}},"234":{"start":{"line":644,"column":12},"end":{"line":644,"column":50}},"235":{"start":{"line":646,"column":12},"end":{"line":654,"column":15}},"236":{"start":{"line":647,"column":16},"end":{"line":653,"column":17}},"237":{"start":{"line":648,"column":20},"end":{"line":648,"column":48}},"238":{"start":{"line":649,"column":20},"end":{"line":649,"column":56}},"239":{"start":{"line":650,"column":20},"end":{"line":652,"column":21}},"240":{"start":{"line":651,"column":24},"end":{"line":651,"column":69}},"241":{"start":{"line":655,"column":12},"end":{"line":655,"column":32}},"242":{"start":{"line":664,"column":12},"end":{"line":664,"column":91}},"243":{"start":{"line":676,"column":12},"end":{"line":677,"column":105}},"244":{"start":{"line":679,"column":12},"end":{"line":683,"column":13}},"245":{"start":{"line":680,"column":16},"end":{"line":680,"column":51}},"246":{"start":{"line":681,"column":16},"end":{"line":681,"column":31}},"247":{"start":{"line":682,"column":16},"end":{"line":682,"column":25}},"248":{"start":{"line":686,"column":12},"end":{"line":772,"column":13}},"249":{"start":{"line":687,"column":16},"end":{"line":728,"column":17}},"250":{"start":{"line":694,"column":20},"end":{"line":694,"column":48}},"251":{"start":{"line":695,"column":20},"end":{"line":697,"column":21}},"252":{"start":{"line":696,"column":24},"end":{"line":696,"column":84}},"253":{"start":{"line":699,"column":20},"end":{"line":699,"column":42}},"254":{"start":{"line":700,"column":20},"end":{"line":700,"column":35}},"255":{"start":{"line":701,"column":20},"end":{"line":701,"column":43}},"256":{"start":{"line":703,"column":20},"end":{"line":703,"column":50}},"257":{"start":{"line":704,"column":20},"end":{"line":706,"column":34}},"258":{"start":{"line":705,"column":24},"end":{"line":705,"column":73}},"259":{"start":{"line":707,"column":20},"end":{"line":707,"column":53}},"260":{"start":{"line":708,"column":20},"end":{"line":727,"column":21}},"261":{"start":{"line":709,"column":24},"end":{"line":709,"column":45}},"262":{"start":{"line":710,"column":24},"end":{"line":710,"column":48}},"263":{"start":{"line":711,"column":24},"end":{"line":713,"column":25}},"264":{"start":{"line":712,"column":28},"end":{"line":712,"column":80}},"265":{"start":{"line":714,"column":24},"end":{"line":714,"column":46}},"266":{"start":{"line":715,"column":24},"end":{"line":715,"column":39}},"267":{"start":{"line":716,"column":24},"end":{"line":716,"column":39}},"268":{"start":{"line":718,"column":24},"end":{"line":726,"column":42}},"269":{"start":{"line":719,"column":28},"end":{"line":719,"column":49}},"270":{"start":{"line":720,"column":28},"end":{"line":720,"column":52}},"271":{"start":{"line":721,"column":28},"end":{"line":723,"column":29}},"272":{"start":{"line":722,"column":32},"end":{"line":722,"column":84}},"273":{"start":{"line":724,"column":28},"end":{"line":724,"column":50}},"274":{"start":{"line":725,"column":28},"end":{"line":725,"column":43}},"275":{"start":{"line":733,"column":16},"end":{"line":771,"column":17}},"276":{"start":{"line":734,"column":20},"end":{"line":734,"column":51}},"277":{"start":{"line":736,"column":20},"end":{"line":736,"column":87}},"278":{"start":{"line":737,"column":20},"end":{"line":737,"column":85}},"279":{"start":{"line":739,"column":20},"end":{"line":739,"column":44}},"280":{"start":{"line":740,"column":20},"end":{"line":740,"column":50}},"281":{"start":{"line":741,"column":20},"end":{"line":745,"column":21}},"282":{"start":{"line":742,"column":24},"end":{"line":742,"column":59}},"283":{"start":{"line":743,"column":24},"end":{"line":743,"column":42}},"284":{"start":{"line":744,"column":24},"end":{"line":744,"column":36}},"285":{"start":{"line":746,"column":20},"end":{"line":746,"column":49}},"286":{"start":{"line":748,"column":20},"end":{"line":752,"column":21}},"287":{"start":{"line":749,"column":24},"end":{"line":749,"column":53}},"288":{"start":{"line":750,"column":24},"end":{"line":750,"column":50}},"289":{"start":{"line":751,"column":24},"end":{"line":751,"column":55}},"290":{"start":{"line":754,"column":20},"end":{"line":756,"column":21}},"291":{"start":{"line":755,"column":24},"end":{"line":755,"column":62}},"292":{"start":{"line":757,"column":20},"end":{"line":757,"column":50}},"293":{"start":{"line":758,"column":20},"end":{"line":758,"column":69}},"294":{"start":{"line":759,"column":20},"end":{"line":767,"column":21}},"295":{"start":{"line":760,"column":24},"end":{"line":760,"column":45}},"296":{"start":{"line":762,"column":24},"end":{"line":766,"column":25}},"297":{"start":{"line":763,"column":28},"end":{"line":763,"column":59}},"298":{"start":{"line":765,"column":28},"end":{"line":765,"column":50}},"299":{"start":{"line":768,"column":20},"end":{"line":770,"column":21}},"300":{"start":{"line":769,"column":24},"end":{"line":769,"column":56}},"301":{"start":{"line":773,"column":12},"end":{"line":773,"column":27}},"302":{"start":{"line":782,"column":12},"end":{"line":782,"column":62}},"303":{"start":{"line":784,"column":12},"end":{"line":821,"column":13}},"304":{"start":{"line":785,"column":16},"end":{"line":786,"column":61}},"305":{"start":{"line":788,"column":16},"end":{"line":795,"column":25}},"306":{"start":{"line":789,"column":20},"end":{"line":789,"column":59}},"307":{"start":{"line":790,"column":20},"end":{"line":794,"column":21}},"308":{"start":{"line":791,"column":24},"end":{"line":791,"column":69}},"309":{"start":{"line":793,"column":24},"end":{"line":793,"column":69}},"310":{"start":{"line":797,"column":16},"end":{"line":797,"column":43}},"311":{"start":{"line":798,"column":16},"end":{"line":798,"column":35}},"312":{"start":{"line":799,"column":16},"end":{"line":799,"column":51}},"313":{"start":{"line":800,"column":16},"end":{"line":813,"column":17}},"314":{"start":{"line":801,"column":20},"end":{"line":801,"column":50}},"315":{"start":{"line":802,"column":20},"end":{"line":802,"column":63}},"316":{"start":{"line":803,"column":20},"end":{"line":803,"column":54}},"317":{"start":{"line":804,"column":20},"end":{"line":804,"column":52}},"318":{"start":{"line":806,"column":20},"end":{"line":811,"column":21}},"319":{"start":{"line":807,"column":24},"end":{"line":807,"column":74}},"320":{"start":{"line":808,"column":24},"end":{"line":808,"column":52}},"321":{"start":{"line":809,"column":24},"end":{"line":809,"column":74}},"322":{"start":{"line":810,"column":24},"end":{"line":810,"column":62}},"323":{"start":{"line":812,"column":20},"end":{"line":812,"column":35}},"324":{"start":{"line":815,"column":16},"end":{"line":815,"column":41}},"325":{"start":{"line":816,"column":16},"end":{"line":816,"column":31}},"326":{"start":{"line":820,"column":16},"end":{"line":820,"column":33}},"327":{"start":{"line":832,"column":12},"end":{"line":832,"column":70}},"328":{"start":{"line":834,"column":12},"end":{"line":848,"column":13}},"329":{"start":{"line":835,"column":16},"end":{"line":835,"column":44}},"330":{"start":{"line":836,"column":16},"end":{"line":836,"column":71}},"331":{"start":{"line":837,"column":16},"end":{"line":837,"column":54}},"332":{"start":{"line":838,"column":16},"end":{"line":838,"column":44}},"333":{"start":{"line":839,"column":16},"end":{"line":839,"column":55}},"334":{"start":{"line":841,"column":16},"end":{"line":841,"column":43}},"335":{"start":{"line":842,"column":16},"end":{"line":842,"column":44}},"336":{"start":{"line":843,"column":16},"end":{"line":843,"column":40}},"337":{"start":{"line":845,"column":16},"end":{"line":845,"column":42}},"338":{"start":{"line":846,"column":16},"end":{"line":846,"column":43}},"339":{"start":{"line":847,"column":16},"end":{"line":847,"column":69}},"340":{"start":{"line":849,"column":12},"end":{"line":849,"column":27}},"341":{"start":{"line":858,"column":12},"end":{"line":860,"column":13}},"342":{"start":{"line":859,"column":16},"end":{"line":859,"column":50}},"343":{"start":{"line":861,"column":12},"end":{"line":861,"column":24}},"344":{"start":{"line":869,"column":12},"end":{"line":873,"column":13}},"345":{"start":{"line":870,"column":16},"end":{"line":870,"column":60}},"346":{"start":{"line":872,"column":16},"end":{"line":872,"column":50}},"347":{"start":{"line":884,"column":12},"end":{"line":886,"column":13}},"348":{"start":{"line":885,"column":16},"end":{"line":885,"column":23}},"349":{"start":{"line":887,"column":12},"end":{"line":887,"column":27}},"350":{"start":{"line":888,"column":12},"end":{"line":888,"column":43}},"351":{"start":{"line":889,"column":12},"end":{"line":889,"column":43}},"352":{"start":{"line":890,"column":12},"end":{"line":912,"column":13}},"353":{"start":{"line":891,"column":16},"end":{"line":891,"column":39}},"354":{"start":{"line":892,"column":16},"end":{"line":892,"column":50}},"355":{"start":{"line":893,"column":16},"end":{"line":893,"column":48}},"356":{"start":{"line":894,"column":16},"end":{"line":900,"column":17}},"357":{"start":{"line":895,"column":20},"end":{"line":899,"column":21}},"358":{"start":{"line":896,"column":24},"end":{"line":896,"column":60}},"359":{"start":{"line":898,"column":24},"end":{"line":898,"column":58}},"360":{"start":{"line":902,"column":16},"end":{"line":904,"column":17}},"361":{"start":{"line":903,"column":20},"end":{"line":903,"column":43}},"362":{"start":{"line":905,"column":16},"end":{"line":907,"column":29}},"363":{"start":{"line":906,"column":20},"end":{"line":906,"column":50}},"364":{"start":{"line":908,"column":16},"end":{"line":910,"column":17}},"365":{"start":{"line":909,"column":20},"end":{"line":909,"column":59}},"366":{"start":{"line":911,"column":16},"end":{"line":911,"column":31}},"367":{"start":{"line":913,"column":12},"end":{"line":913,"column":24}},"368":{"start":{"line":921,"column":12},"end":{"line":921,"column":37}},"369":{"start":{"line":922,"column":12},"end":{"line":922,"column":64}},"370":{"start":{"line":930,"column":12},"end":{"line":930,"column":77}},"371":{"start":{"line":939,"column":12},"end":{"line":939,"column":39}},"372":{"start":{"line":940,"column":12},"end":{"line":947,"column":13}},"373":{"start":{"line":941,"column":16},"end":{"line":946,"column":17}},"374":{"start":{"line":942,"column":20},"end":{"line":942,"column":46}},"375":{"start":{"line":943,"column":20},"end":{"line":943,"column":68}},"376":{"start":{"line":945,"column":20},"end":{"line":945,"column":33}},"377":{"start":{"line":948,"column":12},"end":{"line":948,"column":23}},"378":{"start":{"line":956,"column":12},"end":{"line":958,"column":13}},"379":{"start":{"line":957,"column":16},"end":{"line":957,"column":32}},"380":{"start":{"line":959,"column":12},"end":{"line":961,"column":13}},"381":{"start":{"line":960,"column":16},"end":{"line":960,"column":27}},"382":{"start":{"line":962,"column":12},"end":{"line":962,"column":46}},"383":{"start":{"line":963,"column":12},"end":{"line":967,"column":13}},"384":{"start":{"line":964,"column":16},"end":{"line":966,"column":25}},"385":{"start":{"line":965,"column":20},"end":{"line":965,"column":54}},"386":{"start":{"line":975,"column":12},"end":{"line":975,"column":44}},"387":{"start":{"line":988,"column":12},"end":{"line":994,"column":30}},"388":{"start":{"line":996,"column":12},"end":{"line":1012,"column":13}},"389":{"start":{"line":997,"column":16},"end":{"line":997,"column":57}},"390":{"start":{"line":998,"column":16},"end":{"line":998,"column":51}},"391":{"start":{"line":999,"column":16},"end":{"line":999,"column":60}},"392":{"start":{"line":1000,"column":16},"end":{"line":1000,"column":74}},"393":{"start":{"line":1001,"column":16},"end":{"line":1001,"column":62}},"394":{"start":{"line":1003,"column":16},"end":{"line":1003,"column":36}},"395":{"start":{"line":1005,"column":16},"end":{"line":1011,"column":17}},"396":{"start":{"line":1006,"column":20},"end":{"line":1006,"column":46}},"397":{"start":{"line":1007,"column":20},"end":{"line":1007,"column":63}},"398":{"start":{"line":1008,"column":20},"end":{"line":1008,"column":63}},"399":{"start":{"line":1009,"column":20},"end":{"line":1009,"column":65}},"400":{"start":{"line":1010,"column":20},"end":{"line":1010,"column":60}},"401":{"start":{"line":1014,"column":12},"end":{"line":1014,"column":31}},"402":{"start":{"line":1019,"column":4},"end":{"line":1019,"column":36}}},"branchMap":{"1":{"line":16,"type":"if","locations":[{"start":{"line":16,"column":4},"end":{"line":16,"column":4}},{"start":{"line":16,"column":4},"end":{"line":16,"column":4}}]},"2":{"line":25,"type":"if","locations":[{"start":{"line":25,"column":8},"end":{"line":25,"column":8}},{"start":{"line":25,"column":8},"end":{"line":25,"column":8}}]},"3":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":12},"end":{"line":25,"column":37}},{"start":{"line":25,"column":42},"end":{"line":25,"column":50}},{"start":{"line":25,"column":54},"end":{"line":25,"column":65}}]},"4":{"line":27,"type":"if","locations":[{"start":{"line":27,"column":15},"end":{"line":27,"column":15}},{"start":{"line":27,"column":15},"end":{"line":27,"column":15}}]},"5":{"line":32,"type":"if","locations":[{"start":{"line":32,"column":8},"end":{"line":32,"column":8}},{"start":{"line":32,"column":8},"end":{"line":32,"column":8}}]},"6":{"line":36,"type":"if","locations":[{"start":{"line":36,"column":8},"end":{"line":36,"column":8}},{"start":{"line":36,"column":8},"end":{"line":36,"column":8}}]},"7":{"line":37,"type":"cond-expr","locations":[{"start":{"line":37,"column":75},"end":{"line":37,"column":80}},{"start":{"line":37,"column":83},"end":{"line":37,"column":87}}]},"8":{"line":38,"type":"if","locations":[{"start":{"line":38,"column":12},"end":{"line":38,"column":12}},{"start":{"line":38,"column":12},"end":{"line":38,"column":12}}]},"9":{"line":41,"type":"if","locations":[{"start":{"line":41,"column":16},"end":{"line":41,"column":16}},{"start":{"line":41,"column":16},"end":{"line":41,"column":16}}]},"10":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":16},"end":{"line":45,"column":16}},{"start":{"line":45,"column":16},"end":{"line":45,"column":16}}]},"11":{"line":52,"type":"if","locations":[{"start":{"line":52,"column":24},"end":{"line":52,"column":24}},{"start":{"line":52,"column":24},"end":{"line":52,"column":24}}]},"12":{"line":53,"type":"if","locations":[{"start":{"line":53,"column":28},"end":{"line":53,"column":28}},{"start":{"line":53,"column":28},"end":{"line":53,"column":28}}]},"13":{"line":62,"type":"if","locations":[{"start":{"line":62,"column":16},"end":{"line":62,"column":16}},{"start":{"line":62,"column":16},"end":{"line":62,"column":16}}]},"14":{"line":63,"type":"if","locations":[{"start":{"line":63,"column":20},"end":{"line":63,"column":20}},{"start":{"line":63,"column":20},"end":{"line":63,"column":20}}]},"15":{"line":64,"type":"if","locations":[{"start":{"line":64,"column":24},"end":{"line":64,"column":24}},{"start":{"line":64,"column":24},"end":{"line":64,"column":24}}]},"16":{"line":67,"type":"if","locations":[{"start":{"line":67,"column":24},"end":{"line":67,"column":24}},{"start":{"line":67,"column":24},"end":{"line":67,"column":24}}]},"17":{"line":68,"type":"if","locations":[{"start":{"line":68,"column":28},"end":{"line":68,"column":28}},{"start":{"line":68,"column":28},"end":{"line":68,"column":28}}]},"18":{"line":77,"type":"if","locations":[{"start":{"line":77,"column":20},"end":{"line":77,"column":20}},{"start":{"line":77,"column":20},"end":{"line":77,"column":20}}]},"19":{"line":92,"type":"if","locations":[{"start":{"line":92,"column":16},"end":{"line":92,"column":16}},{"start":{"line":92,"column":16},"end":{"line":92,"column":16}}]},"20":{"line":92,"type":"binary-expr","locations":[{"start":{"line":92,"column":20},"end":{"line":92,"column":32}},{"start":{"line":92,"column":36},"end":{"line":92,"column":55}}]},"21":{"line":94,"type":"if","locations":[{"start":{"line":94,"column":20},"end":{"line":94,"column":20}},{"start":{"line":94,"column":20},"end":{"line":94,"column":20}}]},"22":{"line":94,"type":"binary-expr","locations":[{"start":{"line":94,"column":24},"end":{"line":94,"column":25}},{"start":{"line":94,"column":29},"end":{"line":94,"column":40}}]},"23":{"line":97,"type":"if","locations":[{"start":{"line":97,"column":27},"end":{"line":97,"column":27}},{"start":{"line":97,"column":27},"end":{"line":97,"column":27}}]},"24":{"line":113,"type":"binary-expr","locations":[{"start":{"line":113,"column":40},"end":{"line":113,"column":54}},{"start":{"line":113,"column":58},"end":{"line":113,"column":73}}]},"25":{"line":114,"type":"binary-expr","locations":[{"start":{"line":114,"column":39},"end":{"line":114,"column":52}},{"start":{"line":114,"column":56},"end":{"line":114,"column":70}}]},"26":{"line":116,"type":"if","locations":[{"start":{"line":116,"column":8},"end":{"line":116,"column":8}},{"start":{"line":116,"column":8},"end":{"line":116,"column":8}}]},"27":{"line":119,"type":"if","locations":[{"start":{"line":119,"column":12},"end":{"line":119,"column":12}},{"start":{"line":119,"column":12},"end":{"line":119,"column":12}}]},"28":{"line":135,"type":"if","locations":[{"start":{"line":135,"column":8},"end":{"line":135,"column":8}},{"start":{"line":135,"column":8},"end":{"line":135,"column":8}}]},"29":{"line":135,"type":"binary-expr","locations":[{"start":{"line":135,"column":12},"end":{"line":135,"column":20}},{"start":{"line":135,"column":25},"end":{"line":135,"column":46}}]},"30":{"line":138,"type":"if","locations":[{"start":{"line":138,"column":8},"end":{"line":138,"column":8}},{"start":{"line":138,"column":8},"end":{"line":138,"column":8}}]},"31":{"line":166,"type":"if","locations":[{"start":{"line":166,"column":12},"end":{"line":166,"column":12}},{"start":{"line":166,"column":12},"end":{"line":166,"column":12}}]},"32":{"line":177,"type":"if","locations":[{"start":{"line":177,"column":8},"end":{"line":177,"column":8}},{"start":{"line":177,"column":8},"end":{"line":177,"column":8}}]},"33":{"line":187,"type":"if","locations":[{"start":{"line":187,"column":16},"end":{"line":187,"column":16}},{"start":{"line":187,"column":16},"end":{"line":187,"column":16}}]},"34":{"line":214,"type":"if","locations":[{"start":{"line":214,"column":12},"end":{"line":214,"column":12}},{"start":{"line":214,"column":12},"end":{"line":214,"column":12}}]},"35":{"line":224,"type":"if","locations":[{"start":{"line":224,"column":12},"end":{"line":224,"column":12}},{"start":{"line":224,"column":12},"end":{"line":224,"column":12}}]},"36":{"line":229,"type":"if","locations":[{"start":{"line":229,"column":8},"end":{"line":229,"column":8}},{"start":{"line":229,"column":8},"end":{"line":229,"column":8}}]},"37":{"line":245,"type":"if","locations":[{"start":{"line":245,"column":8},"end":{"line":245,"column":8}},{"start":{"line":245,"column":8},"end":{"line":245,"column":8}}]},"38":{"line":248,"type":"if","locations":[{"start":{"line":248,"column":16},"end":{"line":248,"column":16}},{"start":{"line":248,"column":16},"end":{"line":248,"column":16}}]},"39":{"line":250,"type":"if","locations":[{"start":{"line":250,"column":20},"end":{"line":250,"column":20}},{"start":{"line":250,"column":20},"end":{"line":250,"column":20}}]},"40":{"line":253,"type":"if","locations":[{"start":{"line":253,"column":24},"end":{"line":253,"column":24}},{"start":{"line":253,"column":24},"end":{"line":253,"column":24}}]},"41":{"line":253,"type":"binary-expr","locations":[{"start":{"line":253,"column":28},"end":{"line":253,"column":38}},{"start":{"line":253,"column":42},"end":{"line":253,"column":43}}]},"42":{"line":258,"type":"if","locations":[{"start":{"line":258,"column":20},"end":{"line":258,"column":20}},{"start":{"line":258,"column":20},"end":{"line":258,"column":20}}]},"43":{"line":259,"type":"if","locations":[{"start":{"line":259,"column":24},"end":{"line":259,"column":24}},{"start":{"line":259,"column":24},"end":{"line":259,"column":24}}]},"44":{"line":272,"type":"if","locations":[{"start":{"line":272,"column":8},"end":{"line":272,"column":8}},{"start":{"line":272,"column":8},"end":{"line":272,"column":8}}]},"45":{"line":274,"type":"if","locations":[{"start":{"line":274,"column":12},"end":{"line":274,"column":12}},{"start":{"line":274,"column":12},"end":{"line":274,"column":12}}]},"46":{"line":275,"type":"if","locations":[{"start":{"line":275,"column":16},"end":{"line":275,"column":16}},{"start":{"line":275,"column":16},"end":{"line":275,"column":16}}]},"47":{"line":279,"type":"if","locations":[{"start":{"line":279,"column":16},"end":{"line":279,"column":16}},{"start":{"line":279,"column":16},"end":{"line":279,"column":16}}]},"48":{"line":279,"type":"binary-expr","locations":[{"start":{"line":279,"column":20},"end":{"line":279,"column":31}},{"start":{"line":279,"column":35},"end":{"line":279,"column":47}}]},"49":{"line":284,"type":"if","locations":[{"start":{"line":284,"column":16},"end":{"line":284,"column":16}},{"start":{"line":284,"column":16},"end":{"line":284,"column":16}}]},"50":{"line":284,"type":"binary-expr","locations":[{"start":{"line":284,"column":20},"end":{"line":284,"column":50}},{"start":{"line":284,"column":54},"end":{"line":284,"column":61}}]},"51":{"line":291,"type":"if","locations":[{"start":{"line":291,"column":16},"end":{"line":291,"column":16}},{"start":{"line":291,"column":16},"end":{"line":291,"column":16}}]},"52":{"line":336,"type":"if","locations":[{"start":{"line":336,"column":8},"end":{"line":336,"column":8}},{"start":{"line":336,"column":8},"end":{"line":336,"column":8}}]},"53":{"line":363,"type":"if","locations":[{"start":{"line":363,"column":12},"end":{"line":363,"column":12}},{"start":{"line":363,"column":12},"end":{"line":363,"column":12}}]},"54":{"line":367,"type":"if","locations":[{"start":{"line":367,"column":16},"end":{"line":367,"column":16}},{"start":{"line":367,"column":16},"end":{"line":367,"column":16}}]},"55":{"line":375,"type":"if","locations":[{"start":{"line":375,"column":12},"end":{"line":375,"column":12}},{"start":{"line":375,"column":12},"end":{"line":375,"column":12}}]},"56":{"line":375,"type":"binary-expr","locations":[{"start":{"line":375,"column":16},"end":{"line":375,"column":39}},{"start":{"line":375,"column":43},"end":{"line":375,"column":68}}]},"57":{"line":384,"type":"if","locations":[{"start":{"line":384,"column":12},"end":{"line":384,"column":12}},{"start":{"line":384,"column":12},"end":{"line":384,"column":12}}]},"58":{"line":390,"type":"if","locations":[{"start":{"line":390,"column":8},"end":{"line":390,"column":8}},{"start":{"line":390,"column":8},"end":{"line":390,"column":8}}]},"59":{"line":416,"type":"if","locations":[{"start":{"line":416,"column":8},"end":{"line":416,"column":8}},{"start":{"line":416,"column":8},"end":{"line":416,"column":8}}]},"60":{"line":420,"type":"if","locations":[{"start":{"line":420,"column":8},"end":{"line":420,"column":8}},{"start":{"line":420,"column":8},"end":{"line":420,"column":8}}]},"61":{"line":420,"type":"binary-expr","locations":[{"start":{"line":420,"column":12},"end":{"line":420,"column":13}},{"start":{"line":420,"column":17},"end":{"line":420,"column":33}}]},"62":{"line":517,"type":"if","locations":[{"start":{"line":517,"column":8},"end":{"line":517,"column":8}},{"start":{"line":517,"column":8},"end":{"line":517,"column":8}}]},"63":{"line":520,"type":"if","locations":[{"start":{"line":520,"column":16},"end":{"line":520,"column":16}},{"start":{"line":520,"column":16},"end":{"line":520,"column":16}}]},"64":{"line":524,"type":"if","locations":[{"start":{"line":524,"column":20},"end":{"line":524,"column":20}},{"start":{"line":524,"column":20},"end":{"line":524,"column":20}}]},"65":{"line":647,"type":"if","locations":[{"start":{"line":647,"column":16},"end":{"line":647,"column":16}},{"start":{"line":647,"column":16},"end":{"line":647,"column":16}}]},"66":{"line":650,"type":"if","locations":[{"start":{"line":650,"column":20},"end":{"line":650,"column":20}},{"start":{"line":650,"column":20},"end":{"line":650,"column":20}}]},"67":{"line":679,"type":"if","locations":[{"start":{"line":679,"column":12},"end":{"line":679,"column":12}},{"start":{"line":679,"column":12},"end":{"line":679,"column":12}}]},"68":{"line":686,"type":"if","locations":[{"start":{"line":686,"column":12},"end":{"line":686,"column":12}},{"start":{"line":686,"column":12},"end":{"line":686,"column":12}}]},"69":{"line":687,"type":"if","locations":[{"start":{"line":687,"column":16},"end":{"line":687,"column":16}},{"start":{"line":687,"column":16},"end":{"line":687,"column":16}}]},"70":{"line":687,"type":"binary-expr","locations":[{"start":{"line":687,"column":20},"end":{"line":687,"column":32}},{"start":{"line":687,"column":36},"end":{"line":687,"column":40}},{"start":{"line":687,"column":44},"end":{"line":687,"column":60}},{"start":{"line":687,"column":64},"end":{"line":687,"column":90}}]},"71":{"line":695,"type":"if","locations":[{"start":{"line":695,"column":20},"end":{"line":695,"column":20}},{"start":{"line":695,"column":20},"end":{"line":695,"column":20}}]},"72":{"line":708,"type":"if","locations":[{"start":{"line":708,"column":20},"end":{"line":708,"column":20}},{"start":{"line":708,"column":20},"end":{"line":708,"column":20}}]},"73":{"line":711,"type":"if","locations":[{"start":{"line":711,"column":24},"end":{"line":711,"column":24}},{"start":{"line":711,"column":24},"end":{"line":711,"column":24}}]},"74":{"line":721,"type":"if","locations":[{"start":{"line":721,"column":28},"end":{"line":721,"column":28}},{"start":{"line":721,"column":28},"end":{"line":721,"column":28}}]},"75":{"line":733,"type":"if","locations":[{"start":{"line":733,"column":16},"end":{"line":733,"column":16}},{"start":{"line":733,"column":16},"end":{"line":733,"column":16}}]},"76":{"line":741,"type":"if","locations":[{"start":{"line":741,"column":20},"end":{"line":741,"column":20}},{"start":{"line":741,"column":20},"end":{"line":741,"column":20}}]},"77":{"line":748,"type":"if","locations":[{"start":{"line":748,"column":20},"end":{"line":748,"column":20}},{"start":{"line":748,"column":20},"end":{"line":748,"column":20}}]},"78":{"line":754,"type":"if","locations":[{"start":{"line":754,"column":20},"end":{"line":754,"column":20}},{"start":{"line":754,"column":20},"end":{"line":754,"column":20}}]},"79":{"line":755,"type":"binary-expr","locations":[{"start":{"line":755,"column":31},"end":{"line":755,"column":53}},{"start":{"line":755,"column":57},"end":{"line":755,"column":61}}]},"80":{"line":759,"type":"if","locations":[{"start":{"line":759,"column":20},"end":{"line":759,"column":20}},{"start":{"line":759,"column":20},"end":{"line":759,"column":20}}]},"81":{"line":759,"type":"binary-expr","locations":[{"start":{"line":759,"column":24},"end":{"line":759,"column":35}},{"start":{"line":759,"column":39},"end":{"line":759,"column":54}}]},"82":{"line":762,"type":"if","locations":[{"start":{"line":762,"column":24},"end":{"line":762,"column":24}},{"start":{"line":762,"column":24},"end":{"line":762,"column":24}}]},"83":{"line":768,"type":"if","locations":[{"start":{"line":768,"column":20},"end":{"line":768,"column":20}},{"start":{"line":768,"column":20},"end":{"line":768,"column":20}}]},"84":{"line":782,"type":"cond-expr","locations":[{"start":{"line":782,"column":26},"end":{"line":782,"column":29}},{"start":{"line":782,"column":32},"end":{"line":782,"column":61}}]},"85":{"line":784,"type":"if","locations":[{"start":{"line":784,"column":12},"end":{"line":784,"column":12}},{"start":{"line":784,"column":12},"end":{"line":784,"column":12}}]},"86":{"line":790,"type":"if","locations":[{"start":{"line":790,"column":20},"end":{"line":790,"column":20}},{"start":{"line":790,"column":20},"end":{"line":790,"column":20}}]},"87":{"line":800,"type":"if","locations":[{"start":{"line":800,"column":16},"end":{"line":800,"column":16}},{"start":{"line":800,"column":16},"end":{"line":800,"column":16}}]},"88":{"line":806,"type":"if","locations":[{"start":{"line":806,"column":20},"end":{"line":806,"column":20}},{"start":{"line":806,"column":20},"end":{"line":806,"column":20}}]},"89":{"line":834,"type":"if","locations":[{"start":{"line":834,"column":12},"end":{"line":834,"column":12}},{"start":{"line":834,"column":12},"end":{"line":834,"column":12}}]},"90":{"line":858,"type":"if","locations":[{"start":{"line":858,"column":12},"end":{"line":858,"column":12}},{"start":{"line":858,"column":12},"end":{"line":858,"column":12}}]},"91":{"line":858,"type":"binary-expr","locations":[{"start":{"line":858,"column":16},"end":{"line":858,"column":31}},{"start":{"line":858,"column":35},"end":{"line":858,"column":66}}]},"92":{"line":869,"type":"if","locations":[{"start":{"line":869,"column":12},"end":{"line":869,"column":12}},{"start":{"line":869,"column":12},"end":{"line":869,"column":12}}]},"93":{"line":884,"type":"if","locations":[{"start":{"line":884,"column":12},"end":{"line":884,"column":12}},{"start":{"line":884,"column":12},"end":{"line":884,"column":12}}]},"94":{"line":887,"type":"binary-expr","locations":[{"start":{"line":887,"column":18},"end":{"line":887,"column":21}},{"start":{"line":887,"column":25},"end":{"line":887,"column":26}}]},"95":{"line":890,"type":"if","locations":[{"start":{"line":890,"column":12},"end":{"line":890,"column":12}},{"start":{"line":890,"column":12},"end":{"line":890,"column":12}}]},"96":{"line":894,"type":"if","locations":[{"start":{"line":894,"column":16},"end":{"line":894,"column":16}},{"start":{"line":894,"column":16},"end":{"line":894,"column":16}}]},"97":{"line":902,"type":"if","locations":[{"start":{"line":902,"column":16},"end":{"line":902,"column":16}},{"start":{"line":902,"column":16},"end":{"line":902,"column":16}}]},"98":{"line":908,"type":"if","locations":[{"start":{"line":908,"column":16},"end":{"line":908,"column":16}},{"start":{"line":908,"column":16},"end":{"line":908,"column":16}}]},"99":{"line":909,"type":"cond-expr","locations":[{"start":{"line":909,"column":44},"end":{"line":909,"column":49}},{"start":{"line":909,"column":52},"end":{"line":909,"column":56}}]},"100":{"line":940,"type":"if","locations":[{"start":{"line":940,"column":12},"end":{"line":940,"column":12}},{"start":{"line":940,"column":12},"end":{"line":940,"column":12}}]},"101":{"line":941,"type":"if","locations":[{"start":{"line":941,"column":16},"end":{"line":941,"column":16}},{"start":{"line":941,"column":16},"end":{"line":941,"column":16}}]},"102":{"line":956,"type":"if","locations":[{"start":{"line":956,"column":12},"end":{"line":956,"column":12}},{"start":{"line":956,"column":12},"end":{"line":956,"column":12}}]},"103":{"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}}]},"104":{"line":963,"type":"if","locations":[{"start":{"line":963,"column":12},"end":{"line":963,"column":12}},{"start":{"line":963,"column":12},"end":{"line":963,"column":12}}]},"105":{"line":988,"type":"binary-expr","locations":[{"start":{"line":988,"column":29},"end":{"line":988,"column":33}},{"start":{"line":988,"column":37},"end":{"line":988,"column":59}}]},"106":{"line":996,"type":"if","locations":[{"start":{"line":996,"column":12},"end":{"line":996,"column":12}},{"start":{"line":996,"column":12},"end":{"line":996,"column":12}}]},"107":{"line":1005,"type":"if","locations":[{"start":{"line":1005,"column":16},"end":{"line":1005,"column":16}},{"start":{"line":1005,"column":16},"end":{"line":1005,"column":16}}]},"108":{"line":1005,"type":"binary-expr","locations":[{"start":{"line":1005,"column":21},"end":{"line":1005,"column":24}},{"start":{"line":1005,"column":28},"end":{"line":1005,"column":50}}]}},"code":["(function () { YUI.add('editor-selection', function (Y, NAME) {","","    /**","     * Wraps some common Selection/Range functionality into a simple object","     * @class EditorSelection","     * @constructor","     * @module editor","     * @submodule selection","     */","","    //TODO This shouldn't be there, Y.Node doesn't normalize getting textnode content.","    var textContent = 'textContent',","    INNER_HTML = 'innerHTML',","    FONT_FAMILY = 'fontFamily';","","    if (Y.UA.ie) {","        textContent = 'nodeValue';","    }","","    Y.EditorSelection = function(domEvent) {","        var sel, par, ieNode, nodes, rng, i,","            comp, moved = 0, n, id, root = Y.EditorSelection.ROOT;","","","        if (Y.config.win.getSelection && (!Y.UA.ie || Y.UA.ie < 9)) {","            sel = Y.config.win.getSelection();","        } else if (Y.config.doc.selection) {","            sel = Y.config.doc.selection.createRange();","        }","        this._selection = sel;","","        if (!sel) {","            return false;","        }","","        if (sel.pasteHTML) {","            this.isCollapsed = (sel.compareEndPoints('StartToEnd', sel)) ? false : true;","            if (this.isCollapsed) {","                this.anchorNode = this.focusNode = Y.one(sel.parentElement());","","                if (domEvent) {","                    ieNode = Y.config.doc.elementFromPoint(domEvent.clientX, domEvent.clientY);","                }","                rng = sel.duplicate();","                if (!ieNode) {","                    par = sel.parentElement();","                    nodes = par.childNodes;","","                    for (i = 0; i < nodes.length; i++) {","                        //This causes IE to not allow a selection on a doubleclick","                        //rng.select(nodes[i]);","                        if (rng.inRange(sel)) {","                            if (!ieNode) {","                                ieNode = nodes[i];","                            }","                        }","                    }","                }","","                this.ieNode = ieNode;","","                if (ieNode) {","                    if (ieNode.nodeType !== 3) {","                        if (ieNode.firstChild) {","                            ieNode = ieNode.firstChild;","                        }","                        if (root.compareTo(ieNode)) {","                            if (ieNode.firstChild) {","                                ieNode = ieNode.firstChild;","                            }","                        }","                    }","                    this.anchorNode = this.focusNode = Y.EditorSelection.resolve(ieNode);","","                    rng.moveToElementText(sel.parentElement());","                    comp = sel.compareEndPoints('StartToStart', rng);","                    if (comp) {","                        //We are not at the beginning of the selection.","                        //Setting the move to something large, may need to increase it later","                        moved = this.getEditorOffset(root);","                        sel.move('character', -(moved));","                    }","","                    this.anchorOffset = this.focusOffset = moved;","","                    this.anchorTextNode = this.focusTextNode = Y.one(ieNode);","                }","","","            } else {","                //This helps IE deal with a selection and nodeChange events","                if (sel.htmlText && sel.htmlText !== '') {","                    n = Y.Node.create(sel.htmlText);","                    if (n && n.get('id')) {","                        id = n.get('id');","                        this.anchorNode = this.focusNode = Y.one('#' + id);","                    } else if (n) {","                        n = n.get('childNodes');","                        this.anchorNode = this.focusNode = n.item(0);","                    }","                }","            }","","            //var self = this;","            //debugger;","        } else {","            this.isCollapsed = sel.isCollapsed;","            this.anchorNode = Y.EditorSelection.resolve(sel.anchorNode);","            this.focusNode = Y.EditorSelection.resolve(sel.focusNode);","            this.anchorOffset = sel.anchorOffset;","            this.focusOffset = sel.focusOffset;","","            this.anchorTextNode = Y.one(sel.anchorNode || this.anchorNode);","            this.focusTextNode = Y.one(sel.focusNode || this.focusNode);","        }","        if (Y.Lang.isString(sel.text)) {","            this.text = sel.text;","        } else {","            if (sel.toString) {","                this.text = sel.toString();","            } else {","                this.text = '';","            }","        }","    };","","    /**","    * Utility method to remove dead font-family styles from an element.","    * @static","    * @method removeFontFamily","    */","    Y.EditorSelection.removeFontFamily = function(n) {","        n.removeAttribute('face');","        var s = n.getAttribute('style').toLowerCase();","        if (s === '' || (s === 'font-family: ')) {","            n.removeAttribute('style');","        }","        if (s.match(Y.EditorSelection.REG_FONTFAMILY)) {","            s = s.replace(Y.EditorSelection.REG_FONTFAMILY, '');","            n.setAttribute('style', s);","        }","    };","","    /**","    * Performs a prefilter on all nodes in the editor. Looks for nodes with a style: fontFamily or font face","    * It then creates a dynamic class assigns it and removed the property. This is so that we don't lose","    * the fontFamily when selecting nodes.","    * @static","    * @method filter","    */","    Y.EditorSelection.filter = function(blocks) {","","        var startTime = (new Date()).getTime(),","            editorSelection = Y.EditorSelection,","            root = editorSelection.ROOT,","            endTime,","            nodes = root.all(editorSelection.ALL),","            baseNodes = root.all('strong,em'),","            doc = Y.config.doc, hrs,","            classNames = {}, cssString = '',","            ls, startTime1 = (new Date()).getTime(),","            endTime1;","","        nodes.each(function(n) {","            var raw = Y.Node.getDOMNode(n);","            if (raw.style[FONT_FAMILY]) {","                classNames['.' + n._yuid] = raw.style[FONT_FAMILY];","                n.addClass(n._yuid);","","                editorSelection.removeFontFamily(raw);","            }","        });","        endTime1 = (new Date()).getTime();","","        root.all('.hr').addClass('yui-skip').addClass('yui-non');","","        if (Y.UA.ie) {","            hrs = Y.Node.getDOMNode(root).getElementsByTagName('hr');","            Y.each(hrs, function(hr) {","                var el = doc.createElement('div'),","                s = el.style;","","                el.className = 'hr yui-non yui-skip';","","                el.setAttribute('readonly', true);","                el.setAttribute('contenteditable', false); //Keep it from being Edited","                if (hr.parentNode) {","                    hr.parentNode.replaceChild(el, hr);","                }","                //Had to move to inline style. writes for ie's < 8. They don't render el.setAttribute('style');","                s.border = '1px solid #ccc';","                s.lineHeight = '0';","                s.height = '0';","                s.fontSize = '0';","                s.marginTop = '5px';","                s.marginBottom = '5px';","                s.marginLeft = '0px';","                s.marginRight = '0px';","                s.padding = '0';","            });","        }","","","        Y.each(classNames, function(v, k) {","            cssString += k + ' { font-family: ' + v.replace(/\"/gi, '') + '; }';","        });","        Y.StyleSheet(cssString, 'editor');","","","        //Not sure about this one?","        baseNodes.each(function(n, k) {","            var t = n.get('tagName').toLowerCase(),","                newTag = 'i';","            if (t === 'strong') {","                newTag = 'b';","            }","            editorSelection.prototype._swap(baseNodes.item(k), newTag);","        });","","        //Filter out all the empty UL/OL's","        ls = root.all('ol,ul');","        ls.each(function(v) {","            var lis = v.all('li');","            if (!lis.size()) {","                v.remove();","            }","        });","","        if (blocks) {","            editorSelection.filterBlocks();","        }","        endTime = (new Date()).getTime();","    };","","    /**","    * Method attempts to replace all \"orphined\" text nodes in the main body by wrapping them with a <p>. Called from filter.","    * @static","    * @method filterBlocks","    */","    Y.EditorSelection.filterBlocks = function() {","        var startTime = (new Date()).getTime(), endTime,","            childs = Y.Node.getDOMNode(Y.EditorSelection.ROOT).childNodes, i, node, wrapped = false, doit = true,","            sel, single, br, c, s, html;","","        if (childs) {","            for (i = 0; i < childs.length; i++) {","                node = Y.one(childs[i]);","                if (!node.test(Y.EditorSelection.BLOCKS)) {","                    doit = true;","                    if (childs[i].nodeType === 3) {","                        c = childs[i][textContent].match(Y.EditorSelection.REG_CHAR);","                        s = childs[i][textContent].match(Y.EditorSelection.REG_NON);","                        if (c === null && s) {","                            doit = false;","","                        }","                    }","                    if (doit) {","                        if (!wrapped) {","                            wrapped = [];","                        }","                        wrapped.push(childs[i]);","                    }","                } else {","                    wrapped = Y.EditorSelection._wrapBlock(wrapped);","                }","            }","            wrapped = Y.EditorSelection._wrapBlock(wrapped);","        }","","        single = Y.all(Y.EditorSelection.DEFAULT_BLOCK_TAG);","        if (single.size() === 1) {","            br = single.item(0).all('br');","            if (br.size() === 1) {","                if (!br.item(0).test('.yui-cursor')) {","                    br.item(0).remove();","                }","                html = single.item(0).get('innerHTML');","                if (html === '' || html === ' ') {","                    single.set('innerHTML', Y.EditorSelection.CURSOR);","                    sel = new Y.EditorSelection();","                    sel.focusCursor(true, true);","                }","                if (br.item(0).test('.yui-cursor') && Y.UA.ie) {","                    br.item(0).remove();","                }","            }","        } else {","            single.each(function(p) {","                var html = p.get('innerHTML');","                if (html === '') {","                    p.remove();","                }","            });","        }","","        endTime = (new Date()).getTime();","    };","","    /**","    * Regular Expression used to find dead font-family styles","    * @static","    * @property REG_FONTFAMILY","    */","    Y.EditorSelection.REG_FONTFAMILY = /font-family:\\s*;/;","","    /**","    * Regular Expression to determine if a string has a character in it","    * @static","    * @property REG_CHAR","    */","    Y.EditorSelection.REG_CHAR = /[a-zA-Z-0-9_!@#\\$%\\^&*\\(\\)-=_+\\[\\]\\\\{}|;':\",.\\/<>\\?]/gi;","","    /**","    * Regular Expression to determine if a string has a non-character in it","    * @static","    * @property REG_NON","    */","    Y.EditorSelection.REG_NON = /[\\s|\\n|\\t]/gi;","","    /**","    * Regular Expression to remove all HTML from a string","    * @static","    * @property REG_NOHTML","    */","    Y.EditorSelection.REG_NOHTML = /<\\S[^><]*>/g;","","","    /**","    * Wraps an array of elements in a Block level tag","    * @static","    * @private","    * @method _wrapBlock","    */","    Y.EditorSelection._wrapBlock = function(wrapped) {","        if (wrapped) {","            var newChild = Y.Node.create('<' + Y.EditorSelection.DEFAULT_BLOCK_TAG + '></' + Y.EditorSelection.DEFAULT_BLOCK_TAG + '>'),","                firstChild = Y.one(wrapped[0]), i;","","            for (i = 1; i < wrapped.length; i++) {","                newChild.append(wrapped[i]);","            }","            firstChild.replace(newChild);","            newChild.prepend(firstChild);","        }","        return false;","    };","","    /**","    * Undoes what filter does enough to return the HTML from the Editor, then re-applies the filter.","    * @static","    * @method unfilter","    * @return {String} The filtered HTML","    */","    Y.EditorSelection.unfilter = function() {","        var root = Y.EditorSelection.ROOT,","            nodes = root.all('[class]'),","            html = '', nons, ids,","            body = root;","","","        nodes.each(function(n) {","            if (n.hasClass(n._yuid)) {","                //One of ours","                n.setStyle(FONT_FAMILY, n.getStyle(FONT_FAMILY));","                n.removeClass(n._yuid);","                if (n.getAttribute('class') === '') {","                    n.removeAttribute('class');","                }","            }","        });","","        nons = root.all('.yui-non');","        nons.each(function(n) {","            if (!n.hasClass('yui-skip') && n.get('innerHTML') === '') {","                n.remove();","            } else {","                n.removeClass('yui-non').removeClass('yui-skip');","            }","        });","","        ids = root.all('[id]');","        ids.each(function(n) {","            if (n.get('id').indexOf('yui_3_') === 0) {","                n.removeAttribute('id');","                n.removeAttribute('_yuid');","            }","        });","","        if (body) {","            html = body.get('innerHTML');","        }","","        root.all('.hr').addClass('yui-skip').addClass('yui-non');","","        /*","        nodes.each(function(n) {","            n.addClass(n._yuid);","            n.setStyle(FONT_FAMILY, '');","            if (n.getAttribute('style') === '') {","                n.removeAttribute('style');","            }","        });","        */","","        return html;","    };","    /**","    * Resolve a node from the selection object and return a Node instance","    * @static","    * @method resolve","    * @param {HTMLElement} n The HTMLElement to resolve. Might be a TextNode, gives parentNode.","    * @return {Node} The Resolved node","    */","    Y.EditorSelection.resolve = function(n) {","        if (!n) {","            return Y.EditorSelection.ROOT;","        }","","        if (n && n.nodeType === 3) {","            //Adding a try/catch here because in rare occasions IE will","            //Throw a error accessing the parentNode of a stranded text node.","            //In the case of Ctrl+Z (Undo)","            try {","                n = n.parentNode;","            } catch (re) {","                n = Y.EditorSelection.ROOT;","            }","        }","        return Y.one(n);","    };","","    /**","    * Returns the innerHTML of a node with all HTML tags removed.","    * @static","    * @method getText","    * @param {Node} node The Node instance to remove the HTML from","    * @return {String} The string of text","    */","    Y.EditorSelection.getText = function(node) {","        var txt = node.get('innerHTML').replace(Y.EditorSelection.REG_NOHTML, '');","        //Clean out the cursor subs to see if the Node is empty","        txt = txt.replace('<span><br></span>', '').replace('<br>', '');","        return txt;","    };","","    //Y.EditorSelection.DEFAULT_BLOCK_TAG = 'div';","    Y.EditorSelection.DEFAULT_BLOCK_TAG = 'p';","","    /**","    * The selector to use when looking for Nodes to cache the value of: [style],font[face]","    * @static","    * @property ALL","    */","    Y.EditorSelection.ALL = '[style],font[face]';","","    /**","    * The selector to use when looking for block level items.","    * @static","    * @property BLOCKS","    */","    Y.EditorSelection.BLOCKS = 'p,div,ul,ol,table,style';","    /**","    * The temporary fontname applied to a selection to retrieve their values: yui-tmp","    * @static","    * @property TMP","    */","    Y.EditorSelection.TMP = 'yui-tmp';","    /**","    * The default tag to use when creating elements: span","    * @static","    * @property DEFAULT_TAG","    */","    Y.EditorSelection.DEFAULT_TAG = 'span';","","    /**","    * The id of the outer cursor wrapper","    * @static","    * @property DEFAULT_TAG","    */","    Y.EditorSelection.CURID = 'yui-cursor';","","    /**","    * The id used to wrap the inner space of the cursor position","    * @static","    * @property CUR_WRAPID","    */","    Y.EditorSelection.CUR_WRAPID = 'yui-cursor-wrapper';","","    /**","    * The default HTML used to focus the cursor..","    * @static","    * @property CURSOR","    */","    Y.EditorSelection.CURSOR = '<span><br class=\"yui-cursor\"></span>';","","    /**","    * The default HTML element from which data will be retrieved. Default: body","    * @static","    * @property ROOT","    */","    Y.EditorSelection.ROOT = Y.one('body');","","    Y.EditorSelection.hasCursor = function() {","        var cur = Y.all('#' + Y.EditorSelection.CUR_WRAPID);","        return cur.size();","    };","","    /**","    * Called from Editor keydown to remove the \"extra\" space before the cursor.","    * @static","    * @method cleanCursor","    */","    Y.EditorSelection.cleanCursor = function() {","        var cur, sel = 'br.yui-cursor';","        cur = Y.all(sel);","        if (cur.size()) {","            cur.each(function(b) {","                var c = b.get('parentNode.parentNode.childNodes'), html;","                if (c.size()) {","                    b.remove();","                } else {","                    html = Y.EditorSelection.getText(c.item(0));","                    if (html !== '') {","                        b.remove();","                    }","                }","            });","        }","        /*","        var cur = Y.all('#' + Y.EditorSelection.CUR_WRAPID);","        if (cur.size()) {","            cur.each(function(c) {","                var html = c.get('innerHTML');","                if (html == '&nbsp;' || html == '<br>') {","                    if (c.previous() || c.next()) {","                        c.remove();","                    }","                }","            });","        }","        */","    };","","    Y.EditorSelection.prototype = {","        /**","        * Range text value","        * @property text","        * @type String","        */","        text: null,","        /**","        * Flag to show if the range is collapsed or not","        * @property isCollapsed","        * @type Boolean","        */","        isCollapsed: null,","        /**","        * A Node instance of the parentNode of the anchorNode of the range","        * @property anchorNode","        * @type Node","        */","        anchorNode: null,","        /**","        * The offset from the range object","        * @property anchorOffset","        * @type Number","        */","        anchorOffset: null,","        /**","        * A Node instance of the actual textNode of the range.","        * @property anchorTextNode","        * @type Node","        */","        anchorTextNode: null,","        /**","        * A Node instance of the parentNode of the focusNode of the range","        * @property focusNode","        * @type Node","        */","        focusNode: null,","        /**","        * The offset from the range object","        * @property focusOffset","        * @type Number","        */","        focusOffset: null,","        /**","        * A Node instance of the actual textNode of the range.","        * @property focusTextNode","        * @type Node","        */","        focusTextNode: null,","        /**","        * The actual Selection/Range object","        * @property _selection","        * @private","        */","        _selection: null,","        /**","        * Wrap an element, with another element","        * @private","        * @method _wrap","        * @param {HTMLElement} n The node to wrap","        * @param {String} tag The tag to use when creating the new element.","        * @return {HTMLElement} The wrapped node","        */","        _wrap: function(n, tag) {","            var tmp = Y.Node.create('<' + tag + '></' + tag + '>');","            tmp.set(INNER_HTML, n.get(INNER_HTML));","            n.set(INNER_HTML, '');","            n.append(tmp);","            return Y.Node.getDOMNode(tmp);","        },","        /**","        * Swap an element, with another element","        * @private","        * @method _swap","        * @param {HTMLElement} n The node to swap","        * @param {String} tag The tag to use when creating the new element.","        * @return {HTMLElement} The new node","        */","        _swap: function(n, tag) {","            var tmp = Y.Node.create('<' + tag + '></' + tag + '>');","            tmp.set(INNER_HTML, n.get(INNER_HTML));","            n.replace(tmp, n);","            return Y.Node.getDOMNode(tmp);","        },","        /**","        * Get all the nodes in the current selection. This method will actually perform a filter first.","        * Then it calls doc.execCommand('fontname', null, 'yui-tmp') to touch all nodes in the selection.","        * The it compiles a list of all nodes affected by the execCommand and builds a NodeList to return.","        * @method getSelected","        * @return {NodeList} A NodeList of all items in the selection.","        */","        getSelected: function() {","            var editorSelection = Y.EditorSelection,","                root = editorSelection.ROOT,","                nodes,","                items = [];","","            editorSelection.filter();","            Y.config.doc.execCommand('fontname', null, editorSelection.TMP);","            nodes = root.all(editorSelection.ALL);","","            nodes.each(function(n, k) {","                if (n.getStyle(FONT_FAMILY) === editorSelection.TMP) {","                    n.setStyle(FONT_FAMILY, '');","                    editorSelection.removeFontFamily(n);","                    if (!n.compareTo(root)) {","                        items.push(Y.Node.getDOMNode(nodes.item(k)));","                    }","                }","            });","            return Y.all(items);","        },","        /**","        * Insert HTML at the current cursor position and return a Node instance of the newly inserted element.","        * @method insertContent","        * @param {String} html The HTML to insert.","        * @return {Node} The inserted Node.","        */","        insertContent: function(html) {","            return this.insertAtCursor(html, this.anchorTextNode, this.anchorOffset, true);","        },","        /**","        * Insert HTML at the current cursor position, this method gives you control over the text node to insert into and the offset where to put it.","        * @method insertAtCursor","        * @param {String} html The HTML to insert.","        * @param {Node} node The text node to break when inserting.","        * @param {Number} offset The left offset of the text node to break and insert the new content.","        * @param {Boolean} collapse Should the range be collapsed after insertion. default: false","        * @return {Node} The inserted Node.","        */","        insertAtCursor: function(html, node, offset, collapse) {","            var cur = Y.Node.create('<' + Y.EditorSelection.DEFAULT_TAG + ' class=\"yui-non\"></' + Y.EditorSelection.DEFAULT_TAG + '>'),","                inHTML, txt, txt2, newNode, range = this.createRange(), b, root = Y.EditorSelection.ROOT;","","            if (root.compareTo(node)) {","                b = Y.Node.create('<span></span>');","                node.append(b);","                node = b;","            }","","","            if (range.pasteHTML) {","                if (offset === 0 && node && !node.previous() && node.get('nodeType') === 3) {","                    /*","                    * For some strange reason, range.pasteHTML fails if the node is a textNode and","                    * the offset is 0. (The cursor is at the beginning of the line)","                    * It will always insert the new content at position 1 instead of","                    * position 0. Here we test for that case and do it the hard way.","                    */","                    node.insert(html, 'before');","                    if (range.moveToElementText) {","                        range.moveToElementText(Y.Node.getDOMNode(node.previous()));","                    }","                    //Move the cursor after the new node","                    range.collapse(false);","                    range.select();","                    return node.previous();","                } else {","                    newNode = Y.Node.create(html);","                    try {","                        range.pasteHTML('<span id=\"rte-insert\"></span>');","                    } catch (e) {}","                    inHTML = root.one('#rte-insert');","                    if (inHTML) {","                        inHTML.set('id', '');","                        inHTML.replace(newNode);","                        if (range.moveToElementText) {","                            range.moveToElementText(Y.Node.getDOMNode(newNode));","                        }","                        range.collapse(false);","                        range.select();","                        return newNode;","                    } else {","                        Y.on('available', function() {","                            inHTML.set('id', '');","                            inHTML.replace(newNode);","                            if (range.moveToElementText) {","                                range.moveToElementText(Y.Node.getDOMNode(newNode));","                            }","                            range.collapse(false);","                            range.select();","                        }, '#rte-insert');","                    }","                }","            } else {","                //TODO using Y.Node.create here throws warnings & strips first white space character","                //txt = Y.one(Y.Node.create(inHTML.substr(0, offset)));","                //txt2 = Y.one(Y.Node.create(inHTML.substr(offset)));","                if (offset > 0) {","                    inHTML = node.get(textContent);","","                    txt = Y.one(Y.config.doc.createTextNode(inHTML.substr(0, offset)));","                    txt2 = Y.one(Y.config.doc.createTextNode(inHTML.substr(offset)));","","                    node.replace(txt, node);","                    newNode = Y.Node.create(html);","                    if (newNode.get('nodeType') === 11) {","                        b = Y.Node.create('<span></span>');","                        b.append(newNode);","                        newNode = b;","                    }","                    txt.insert(newNode, 'after');","                    //if (txt2 && txt2.get('length')) {","                    if (txt2) {","                        newNode.insert(cur, 'after');","                        cur.insert(txt2, 'after');","                        this.selectNode(cur, collapse);","                    }","                } else {","                    if (node.get('nodeType') === 3) {","                        node = node.get('parentNode') || root;","                    }","                    newNode = Y.Node.create(html);","                    html = node.get('innerHTML').replace(/\\n/gi, '');","                    if (html === '' || html === '<br>') {","                        node.append(newNode);","                    } else {","                        if (newNode.get('parentNode')) {","                            node.insert(newNode, 'before');","                        } else {","                            root.prepend(newNode);","                        }","                    }","                    if (node.get('firstChild').test('br')) {","                        node.get('firstChild').remove();","                    }","                }","            }","            return newNode;","        },","        /**","        * Get all elements inside a selection and wrap them with a new element and return a NodeList of all elements touched.","        * @method wrapContent","        * @param {String} tag The tag to wrap all selected items with.","        * @return {NodeList} A NodeList of all items in the selection.","        */","        wrapContent: function(tag) {","            tag = (tag) ? tag : Y.EditorSelection.DEFAULT_TAG;","","            if (!this.isCollapsed) {","                var items = this.getSelected(),","                    changed = [], range, last, first, range2;","","                items.each(function(n, k) {","                    var t = n.get('tagName').toLowerCase();","                    if (t === 'font') {","                        changed.push(this._swap(items.item(k), tag));","                    } else {","                        changed.push(this._wrap(items.item(k), tag));","                    }","                }, this);","","                range = this.createRange();","                first = changed[0];","                last = changed[changed.length - 1];","                if (this._selection.removeAllRanges) {","                    range.setStart(changed[0], 0);","                    range.setEnd(last, last.childNodes.length);","                    this._selection.removeAllRanges();","                    this._selection.addRange(range);","                } else {","                    if (range.moveToElementText) {","                        range.moveToElementText(Y.Node.getDOMNode(first));","                        range2 = this.createRange();","                        range2.moveToElementText(Y.Node.getDOMNode(last));","                        range.setEndPoint('EndToEnd', range2);","                    }","                    range.select();","                }","","                changed = Y.all(changed);","                return changed;","","","            } else {","                return Y.all([]);","            }","        },","        /**","        * Find and replace a string inside a text node and replace it with HTML focusing the node after","        * to allow you to continue to type.","        * @method replace","        * @param {String} se The string to search for.","        * @param {String} re The string of HTML to replace it with.","        * @return {Node} The node inserted.","        */","        replace: function(se,re) {","            var range = this.createRange(), node, txt, index, newNode;","","            if (range.getBookmark) {","                index = range.getBookmark();","                txt = this.anchorNode.get('innerHTML').replace(se, re);","                this.anchorNode.set('innerHTML', txt);","                range.moveToBookmark(index);","                newNode = Y.one(range.parentElement());","            } else {","                node = this.anchorTextNode;","                txt = node.get(textContent);","                index = txt.indexOf(se);","","                txt = txt.replace(se, '');","                node.set(textContent, txt);","                newNode = this.insertAtCursor(re, node, index, true);","            }","            return newNode;","        },","        /**","        * Destroy the range.","        * @method remove","        * @chainable","        * @return {EditorSelection}","        */","        remove: function() {","            if (this._selection && this._selection.removeAllRanges) {","                this._selection.removeAllRanges();","            }","            return this;","        },","        /**","        * Wrapper for the different range creation methods.","        * @method createRange","        * @return {RangeObject}","        */","        createRange: function() {","            if (Y.config.doc.selection) {","                return Y.config.doc.selection.createRange();","            } else {","                return Y.config.doc.createRange();","            }","        },","        /**","        * Select a Node (hilighting it).","        * @method selectNode","        * @param {Node} node The node to select","        * @param {Boolean} collapse Should the range be collapsed after insertion. default: false","        * @chainable","        * @return {EditorSelection}","        */","        selectNode: function(node, collapse, end) {","            if (!node) {","                return;","            }","            end = end || 0;","            node = Y.Node.getDOMNode(node);","            var range = this.createRange();","            if (range.selectNode) {","                range.selectNode(node);","                this._selection.removeAllRanges();","                this._selection.addRange(range);","                if (collapse) {","                    try {","                        this._selection.collapse(node, end);","                    } catch (err) {","                        this._selection.collapse(node, 0);","                    }","                }","            } else {","                if (node.nodeType === 3) {","                    node = node.parentNode;","                }","                try {","                    range.moveToElementText(node);","                } catch(e) {}","                if (collapse) {","                    range.collapse(((end) ? false : true));","                }","                range.select();","            }","            return this;","        },","        /**","        * Put a placeholder in the DOM at the current cursor position.","        * @method setCursor","        * @return {Node}","        */","        setCursor: function() {","            this.removeCursor(false);","            return this.insertContent(Y.EditorSelection.CURSOR);","        },","        /**","        * Get the placeholder in the DOM at the current cursor position.","        * @method getCursor","        * @return {Node}","        */","        getCursor: function() {","            return Y.EditorSelection.ROOT.all('#' + Y.EditorSelection.CURID);","        },","        /**","        * Remove the cursor placeholder from the DOM.","        * @method removeCursor","        * @param {Boolean} keep Setting this to true will keep the node, but remove the unique parts that make it the cursor.","        * @return {Node}","        */","        removeCursor: function(keep) {","            var cur = this.getCursor();","            if (cur) {","                if (keep) {","                    cur.removeAttribute('id');","                    cur.set('innerHTML', '<br class=\"yui-cursor\">');","                } else {","                    cur.remove();","                }","            }","            return cur;","        },","        /**","        * Gets a stored cursor and focuses it for editing, must be called sometime after setCursor","        * @method focusCursor","        * @return {Node}","        */","        focusCursor: function(collapse, end) {","            if (collapse !== false) {","                collapse = true;","            }","            if (end !== false) {","                end = true;","            }","            var cur = this.removeCursor(true);","            if (cur) {","                cur.each(function(c) {","                    this.selectNode(c, collapse, end);","                }, this);","            }","        },","        /**","        * Generic toString for logging.","        * @method toString","        * @return {String}","        */","        toString: function() {","            return 'EditorSelection Object';","        },","","        /**","         Gets the offset of the selection for the selection within the current","         editor","         @public","         @method getEditorOffset","         @param {Y.Node} [node] Element used to measure the offset to","         @return Number Number of characters the selection is from the beginning","         @since 3.13.0","         */","        getEditorOffset: function(node) {","            var container = (node || Y.EditorSelection.ROOT).getDOMNode(),","                caretOffset = 0,","                doc = Y.config.doc,","                win = Y.config.win,","                sel,","                range,","                preCaretRange;","","            if (typeof win.getSelection !== \"undefined\") {","                range = win.getSelection().getRangeAt(0);","                preCaretRange = range.cloneRange();","                preCaretRange.selectNodeContents(container);","                preCaretRange.setEnd(range.endContainer, range.endOffset);","                caretOffset = preCaretRange.toString().length;","            } else {","                sel = doc.selection;","","                if ( sel && sel.type !== \"Control\") {","                    range = sel.createRange();","                    preCaretRange = doc.body.createTextRange();","                    preCaretRange.moveToElementText(container);","                    preCaretRange.setEndPoint(\"EndToEnd\", range);","                    caretOffset = preCaretRange.text.length;","                }","            }","","            return caretOffset;","        }","    };","","    //TODO Remove this alias in 3.6.0","    Y.Selection = Y.EditorSelection;","","","","}, '3.13.0', {\"requires\": [\"node\"]});","","}());"]};
12 var __cov_WLl8kOeTgkp_iKYfGkYrPw = __coverage__['build/editor-selection/editor-selection.js'];
13 __cov_WLl8kOeTgkp_iKYfGkYrPw.s['1']++;YUI.add('editor-selection',function(Y,NAME){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['1']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['2']++;var textContent='textContent',INNER_HTML='innerHTML',FONT_FAMILY='fontFamily';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['3']++;if(Y.UA.ie){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['1'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['4']++;textContent='nodeValue';}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['1'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['5']++;Y.EditorSelection=function(domEvent){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['2']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['6']++;var sel,par,ieNode,nodes,rng,i,comp,moved=0,n,id,root=Y.EditorSelection.ROOT;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['7']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['3'][0]++,Y.config.win.getSelection)&&((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['3'][1]++,!Y.UA.ie)||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['3'][2]++,Y.UA.ie<9))){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['2'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['8']++;sel=Y.config.win.getSelection();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['2'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['9']++;if(Y.config.doc.selection){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['4'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['10']++;sel=Y.config.doc.selection.createRange();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['4'][1]++;}}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['11']++;this._selection=sel;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['12']++;if(!sel){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['5'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['13']++;return false;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['5'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['14']++;if(sel.pasteHTML){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['6'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['15']++;this.isCollapsed=sel.compareEndPoints('StartToEnd',sel)?(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['7'][0]++,false):(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['7'][1]++,true);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['16']++;if(this.isCollapsed){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['8'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['17']++;this.anchorNode=this.focusNode=Y.one(sel.parentElement());__cov_WLl8kOeTgkp_iKYfGkYrPw.s['18']++;if(domEvent){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['9'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['19']++;ieNode=Y.config.doc.elementFromPoint(domEvent.clientX,domEvent.clientY);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['9'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['20']++;rng=sel.duplicate();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['21']++;if(!ieNode){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['10'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['22']++;par=sel.parentElement();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['23']++;nodes=par.childNodes;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['24']++;for(i=0;i<nodes.length;i++){__cov_WLl8kOeTgkp_iKYfGkYrPw.s['25']++;if(rng.inRange(sel)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['11'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['26']++;if(!ieNode){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['12'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['27']++;ieNode=nodes[i];}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['12'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['11'][1]++;}}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['10'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['28']++;this.ieNode=ieNode;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['29']++;if(ieNode){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['13'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['30']++;if(ieNode.nodeType!==3){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['14'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['31']++;if(ieNode.firstChild){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['15'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['32']++;ieNode=ieNode.firstChild;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['15'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['33']++;if(root.compareTo(ieNode)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['16'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['34']++;if(ieNode.firstChild){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['17'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['35']++;ieNode=ieNode.firstChild;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['17'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['16'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['14'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['36']++;this.anchorNode=this.focusNode=Y.EditorSelection.resolve(ieNode);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['37']++;rng.moveToElementText(sel.parentElement());__cov_WLl8kOeTgkp_iKYfGkYrPw.s['38']++;comp=sel.compareEndPoints('StartToStart',rng);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['39']++;if(comp){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['18'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['40']++;moved=this.getEditorOffset(root);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['41']++;sel.move('character',-moved);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['18'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['42']++;this.anchorOffset=this.focusOffset=moved;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['43']++;this.anchorTextNode=this.focusTextNode=Y.one(ieNode);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['13'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['8'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['44']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['20'][0]++,sel.htmlText)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['20'][1]++,sel.htmlText!=='')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['19'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['45']++;n=Y.Node.create(sel.htmlText);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['46']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['22'][0]++,n)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['22'][1]++,n.get('id'))){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['21'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['47']++;id=n.get('id');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['48']++;this.anchorNode=this.focusNode=Y.one('#'+id);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['21'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['49']++;if(n){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['23'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['50']++;n=n.get('childNodes');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['51']++;this.anchorNode=this.focusNode=n.item(0);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['23'][1]++;}}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['19'][1]++;}}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['6'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['52']++;this.isCollapsed=sel.isCollapsed;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['53']++;this.anchorNode=Y.EditorSelection.resolve(sel.anchorNode);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['54']++;this.focusNode=Y.EditorSelection.resolve(sel.focusNode);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['55']++;this.anchorOffset=sel.anchorOffset;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['56']++;this.focusOffset=sel.focusOffset;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['57']++;this.anchorTextNode=Y.one((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['24'][0]++,sel.anchorNode)||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['24'][1]++,this.anchorNode));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['58']++;this.focusTextNode=Y.one((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['25'][0]++,sel.focusNode)||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['25'][1]++,this.focusNode));}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['59']++;if(Y.Lang.isString(sel.text)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['26'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['60']++;this.text=sel.text;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['26'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['61']++;if(sel.toString){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['27'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['62']++;this.text=sel.toString();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['27'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['63']++;this.text='';}}};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['64']++;Y.EditorSelection.removeFontFamily=function(n){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['3']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['65']++;n.removeAttribute('face');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['66']++;var s=n.getAttribute('style').toLowerCase();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['67']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['29'][0]++,s==='')||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['29'][1]++,s==='font-family: ')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['28'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['68']++;n.removeAttribute('style');}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['28'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['69']++;if(s.match(Y.EditorSelection.REG_FONTFAMILY)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['30'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['70']++;s=s.replace(Y.EditorSelection.REG_FONTFAMILY,'');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['71']++;n.setAttribute('style',s);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['30'][1]++;}};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['72']++;Y.EditorSelection.filter=function(blocks){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['4']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['73']++;var startTime=new Date().getTime(),editorSelection=Y.EditorSelection,root=editorSelection.ROOT,endTime,nodes=root.all(editorSelection.ALL),baseNodes=root.all('strong,em'),doc=Y.config.doc,hrs,classNames={},cssString='',ls,startTime1=new Date().getTime(),endTime1;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['74']++;nodes.each(function(n){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['5']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['75']++;var raw=Y.Node.getDOMNode(n);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['76']++;if(raw.style[FONT_FAMILY]){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['31'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['77']++;classNames['.'+n._yuid]=raw.style[FONT_FAMILY];__cov_WLl8kOeTgkp_iKYfGkYrPw.s['78']++;n.addClass(n._yuid);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['79']++;editorSelection.removeFontFamily(raw);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['31'][1]++;}});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['80']++;endTime1=new Date().getTime();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['81']++;root.all('.hr').addClass('yui-skip').addClass('yui-non');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['82']++;if(Y.UA.ie){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['32'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['83']++;hrs=Y.Node.getDOMNode(root).getElementsByTagName('hr');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['84']++;Y.each(hrs,function(hr){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['6']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['85']++;var el=doc.createElement('div'),s=el.style;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['86']++;el.className='hr yui-non yui-skip';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['87']++;el.setAttribute('readonly',true);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['88']++;el.setAttribute('contenteditable',false);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['89']++;if(hr.parentNode){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['33'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['90']++;hr.parentNode.replaceChild(el,hr);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['33'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['91']++;s.border='1px solid #ccc';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['92']++;s.lineHeight='0';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['93']++;s.height='0';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['94']++;s.fontSize='0';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['95']++;s.marginTop='5px';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['96']++;s.marginBottom='5px';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['97']++;s.marginLeft='0px';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['98']++;s.marginRight='0px';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['99']++;s.padding='0';});}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['32'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['100']++;Y.each(classNames,function(v,k){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['7']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['101']++;cssString+=k+' { font-family: '+v.replace(/"/gi,'')+'; }';});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['102']++;Y.StyleSheet(cssString,'editor');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['103']++;baseNodes.each(function(n,k){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['8']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['104']++;var t=n.get('tagName').toLowerCase(),newTag='i';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['105']++;if(t==='strong'){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['34'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['106']++;newTag='b';}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['34'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['107']++;editorSelection.prototype._swap(baseNodes.item(k),newTag);});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['108']++;ls=root.all('ol,ul');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['109']++;ls.each(function(v){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['9']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['110']++;var lis=v.all('li');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['111']++;if(!lis.size()){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['35'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['112']++;v.remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['35'][1]++;}});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['113']++;if(blocks){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['36'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['114']++;editorSelection.filterBlocks();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['36'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['115']++;endTime=new Date().getTime();};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['116']++;Y.EditorSelection.filterBlocks=function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['10']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['117']++;var startTime=new Date().getTime(),endTime,childs=Y.Node.getDOMNode(Y.EditorSelection.ROOT).childNodes,i,node,wrapped=false,doit=true,sel,single,br,c,s,html;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['118']++;if(childs){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['37'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['119']++;for(i=0;i<childs.length;i++){__cov_WLl8kOeTgkp_iKYfGkYrPw.s['120']++;node=Y.one(childs[i]);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['121']++;if(!node.test(Y.EditorSelection.BLOCKS)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['38'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['122']++;doit=true;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['123']++;if(childs[i].nodeType===3){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['39'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['124']++;c=childs[i][textContent].match(Y.EditorSelection.REG_CHAR);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['125']++;s=childs[i][textContent].match(Y.EditorSelection.REG_NON);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['126']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['41'][0]++,c===null)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['41'][1]++,s)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['40'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['127']++;doit=false;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['40'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['39'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['128']++;if(doit){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['42'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['129']++;if(!wrapped){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['43'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['130']++;wrapped=[];}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['43'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['131']++;wrapped.push(childs[i]);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['42'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['38'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['132']++;wrapped=Y.EditorSelection._wrapBlock(wrapped);}}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['133']++;wrapped=Y.EditorSelection._wrapBlock(wrapped);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['37'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['134']++;single=Y.all(Y.EditorSelection.DEFAULT_BLOCK_TAG);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['135']++;if(single.size()===1){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['44'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['136']++;br=single.item(0).all('br');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['137']++;if(br.size()===1){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['45'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['138']++;if(!br.item(0).test('.yui-cursor')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['46'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['139']++;br.item(0).remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['46'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['140']++;html=single.item(0).get('innerHTML');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['141']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['48'][0]++,html==='')||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['48'][1]++,html===' ')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['47'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['142']++;single.set('innerHTML',Y.EditorSelection.CURSOR);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['143']++;sel=new Y.EditorSelection();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['144']++;sel.focusCursor(true,true);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['47'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['145']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['50'][0]++,br.item(0).test('.yui-cursor'))&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['50'][1]++,Y.UA.ie)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['49'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['146']++;br.item(0).remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['49'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['45'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['44'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['147']++;single.each(function(p){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['11']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['148']++;var html=p.get('innerHTML');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['149']++;if(html===''){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['51'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['150']++;p.remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['51'][1]++;}});}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['151']++;endTime=new Date().getTime();};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['152']++;Y.EditorSelection.REG_FONTFAMILY=/font-family:\s*;/;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['153']++;Y.EditorSelection.REG_CHAR=/[a-zA-Z-0-9_!@#\$%\^&*\(\)-=_+\[\]\\{}|;':",.\/<>\?]/gi;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['154']++;Y.EditorSelection.REG_NON=/[\s|\n|\t]/gi;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['155']++;Y.EditorSelection.REG_NOHTML=/<\S[^><]*>/g;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['156']++;Y.EditorSelection._wrapBlock=function(wrapped){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['12']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['157']++;if(wrapped){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['52'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['158']++;var newChild=Y.Node.create('<'+Y.EditorSelection.DEFAULT_BLOCK_TAG+'></'+Y.EditorSelection.DEFAULT_BLOCK_TAG+'>'),firstChild=Y.one(wrapped[0]),i;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['159']++;for(i=1;i<wrapped.length;i++){__cov_WLl8kOeTgkp_iKYfGkYrPw.s['160']++;newChild.append(wrapped[i]);}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['161']++;firstChild.replace(newChild);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['162']++;newChild.prepend(firstChild);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['52'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['163']++;return false;};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['164']++;Y.EditorSelection.unfilter=function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['13']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['165']++;var root=Y.EditorSelection.ROOT,nodes=root.all('[class]'),html='',nons,ids,body=root;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['166']++;nodes.each(function(n){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['14']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['167']++;if(n.hasClass(n._yuid)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['53'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['168']++;n.setStyle(FONT_FAMILY,n.getStyle(FONT_FAMILY));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['169']++;n.removeClass(n._yuid);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['170']++;if(n.getAttribute('class')===''){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['54'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['171']++;n.removeAttribute('class');}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['54'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['53'][1]++;}});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['172']++;nons=root.all('.yui-non');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['173']++;nons.each(function(n){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['15']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['174']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['56'][0]++,!n.hasClass('yui-skip'))&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['56'][1]++,n.get('innerHTML')==='')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['55'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['175']++;n.remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['55'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['176']++;n.removeClass('yui-non').removeClass('yui-skip');}});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['177']++;ids=root.all('[id]');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['178']++;ids.each(function(n){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['16']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['179']++;if(n.get('id').indexOf('yui_3_')===0){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['57'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['180']++;n.removeAttribute('id');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['181']++;n.removeAttribute('_yuid');}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['57'][1]++;}});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['182']++;if(body){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['58'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['183']++;html=body.get('innerHTML');}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['58'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['184']++;root.all('.hr').addClass('yui-skip').addClass('yui-non');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['185']++;return html;};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['186']++;Y.EditorSelection.resolve=function(n){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['17']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['187']++;if(!n){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['59'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['188']++;return Y.EditorSelection.ROOT;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['59'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['189']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['61'][0]++,n)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['61'][1]++,n.nodeType===3)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['60'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['190']++;try{__cov_WLl8kOeTgkp_iKYfGkYrPw.s['191']++;n=n.parentNode;}catch(re){__cov_WLl8kOeTgkp_iKYfGkYrPw.s['192']++;n=Y.EditorSelection.ROOT;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['60'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['193']++;return Y.one(n);};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['194']++;Y.EditorSelection.getText=function(node){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['18']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['195']++;var txt=node.get('innerHTML').replace(Y.EditorSelection.REG_NOHTML,'');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['196']++;txt=txt.replace('<span><br></span>','').replace('<br>','');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['197']++;return txt;};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['198']++;Y.EditorSelection.DEFAULT_BLOCK_TAG='p';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['199']++;Y.EditorSelection.ALL='[style],font[face]';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['200']++;Y.EditorSelection.BLOCKS='p,div,ul,ol,table,style';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['201']++;Y.EditorSelection.TMP='yui-tmp';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['202']++;Y.EditorSelection.DEFAULT_TAG='span';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['203']++;Y.EditorSelection.CURID='yui-cursor';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['204']++;Y.EditorSelection.CUR_WRAPID='yui-cursor-wrapper';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['205']++;Y.EditorSelection.CURSOR='<span><br class="yui-cursor"></span>';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['206']++;Y.EditorSelection.ROOT=Y.one('body');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['207']++;Y.EditorSelection.hasCursor=function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['19']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['208']++;var cur=Y.all('#'+Y.EditorSelection.CUR_WRAPID);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['209']++;return cur.size();};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['210']++;Y.EditorSelection.cleanCursor=function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['20']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['211']++;var cur,sel='br.yui-cursor';__cov_WLl8kOeTgkp_iKYfGkYrPw.s['212']++;cur=Y.all(sel);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['213']++;if(cur.size()){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['62'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['214']++;cur.each(function(b){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['21']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['215']++;var c=b.get('parentNode.parentNode.childNodes'),html;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['216']++;if(c.size()){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['63'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['217']++;b.remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['63'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['218']++;html=Y.EditorSelection.getText(c.item(0));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['219']++;if(html!==''){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['64'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['220']++;b.remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['64'][1]++;}}});}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['62'][1]++;}};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['221']++;Y.EditorSelection.prototype={text:null,isCollapsed:null,anchorNode:null,anchorOffset:null,anchorTextNode:null,focusNode:null,focusOffset:null,focusTextNode:null,_selection:null,_wrap:function(n,tag){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['22']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['222']++;var tmp=Y.Node.create('<'+tag+'></'+tag+'>');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['223']++;tmp.set(INNER_HTML,n.get(INNER_HTML));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['224']++;n.set(INNER_HTML,'');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['225']++;n.append(tmp);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['226']++;return Y.Node.getDOMNode(tmp);},_swap:function(n,tag){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['23']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['227']++;var tmp=Y.Node.create('<'+tag+'></'+tag+'>');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['228']++;tmp.set(INNER_HTML,n.get(INNER_HTML));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['229']++;n.replace(tmp,n);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['230']++;return Y.Node.getDOMNode(tmp);},getSelected:function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['24']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['231']++;var editorSelection=Y.EditorSelection,root=editorSelection.ROOT,nodes,items=[];__cov_WLl8kOeTgkp_iKYfGkYrPw.s['232']++;editorSelection.filter();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['233']++;Y.config.doc.execCommand('fontname',null,editorSelection.TMP);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['234']++;nodes=root.all(editorSelection.ALL);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['235']++;nodes.each(function(n,k){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['25']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['236']++;if(n.getStyle(FONT_FAMILY)===editorSelection.TMP){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['65'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['237']++;n.setStyle(FONT_FAMILY,'');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['238']++;editorSelection.removeFontFamily(n);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['239']++;if(!n.compareTo(root)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['66'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['240']++;items.push(Y.Node.getDOMNode(nodes.item(k)));}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['66'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['65'][1]++;}});__cov_WLl8kOeTgkp_iKYfGkYrPw.s['241']++;return Y.all(items);},insertContent:function(html){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['26']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['242']++;return this.insertAtCursor(html,this.anchorTextNode,this.anchorOffset,true);},insertAtCursor:function(html,node,offset,collapse){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['27']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['243']++;var cur=Y.Node.create('<'+Y.EditorSelection.DEFAULT_TAG+' class="yui-non"></'+Y.EditorSelection.DEFAULT_TAG+'>'),inHTML,txt,txt2,newNode,range=this.createRange(),b,root=Y.EditorSelection.ROOT;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['244']++;if(root.compareTo(node)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['67'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['245']++;b=Y.Node.create('<span></span>');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['246']++;node.append(b);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['247']++;node=b;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['67'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['248']++;if(range.pasteHTML){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['68'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['249']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['70'][0]++,offset===0)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['70'][1]++,node)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['70'][2]++,!node.previous())&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['70'][3]++,node.get('nodeType')===3)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['69'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['250']++;node.insert(html,'before');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['251']++;if(range.moveToElementText){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['71'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['252']++;range.moveToElementText(Y.Node.getDOMNode(node.previous()));}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['71'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['253']++;range.collapse(false);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['254']++;range.select();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['255']++;return node.previous();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['69'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['256']++;newNode=Y.Node.create(html);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['257']++;try{__cov_WLl8kOeTgkp_iKYfGkYrPw.s['258']++;range.pasteHTML('<span id="rte-insert"></span>');}catch(e){}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['259']++;inHTML=root.one('#rte-insert');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['260']++;if(inHTML){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['72'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['261']++;inHTML.set('id','');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['262']++;inHTML.replace(newNode);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['263']++;if(range.moveToElementText){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['73'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['264']++;range.moveToElementText(Y.Node.getDOMNode(newNode));}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['73'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['265']++;range.collapse(false);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['266']++;range.select();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['267']++;return newNode;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['72'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['268']++;Y.on('available',function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['28']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['269']++;inHTML.set('id','');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['270']++;inHTML.replace(newNode);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['271']++;if(range.moveToElementText){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['74'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['272']++;range.moveToElementText(Y.Node.getDOMNode(newNode));}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['74'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['273']++;range.collapse(false);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['274']++;range.select();},'#rte-insert');}}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['68'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['275']++;if(offset>0){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['75'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['276']++;inHTML=node.get(textContent);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['277']++;txt=Y.one(Y.config.doc.createTextNode(inHTML.substr(0,offset)));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['278']++;txt2=Y.one(Y.config.doc.createTextNode(inHTML.substr(offset)));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['279']++;node.replace(txt,node);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['280']++;newNode=Y.Node.create(html);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['281']++;if(newNode.get('nodeType')===11){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['76'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['282']++;b=Y.Node.create('<span></span>');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['283']++;b.append(newNode);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['284']++;newNode=b;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['76'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['285']++;txt.insert(newNode,'after');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['286']++;if(txt2){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['77'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['287']++;newNode.insert(cur,'after');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['288']++;cur.insert(txt2,'after');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['289']++;this.selectNode(cur,collapse);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['77'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['75'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['290']++;if(node.get('nodeType')===3){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['78'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['291']++;node=(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['79'][0]++,node.get('parentNode'))||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['79'][1]++,root);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['78'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['292']++;newNode=Y.Node.create(html);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['293']++;html=node.get('innerHTML').replace(/\n/gi,'');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['294']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['81'][0]++,html==='')||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['81'][1]++,html==='<br>')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['80'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['295']++;node.append(newNode);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['80'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['296']++;if(newNode.get('parentNode')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['82'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['297']++;node.insert(newNode,'before');}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['82'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['298']++;root.prepend(newNode);}}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['299']++;if(node.get('firstChild').test('br')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['83'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['300']++;node.get('firstChild').remove();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['83'][1]++;}}}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['301']++;return newNode;},wrapContent:function(tag){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['29']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['302']++;tag=tag?(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['84'][0]++,tag):(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['84'][1]++,Y.EditorSelection.DEFAULT_TAG);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['303']++;if(!this.isCollapsed){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['85'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['304']++;var items=this.getSelected(),changed=[],range,last,first,range2;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['305']++;items.each(function(n,k){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['30']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['306']++;var t=n.get('tagName').toLowerCase();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['307']++;if(t==='font'){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['86'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['308']++;changed.push(this._swap(items.item(k),tag));}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['86'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['309']++;changed.push(this._wrap(items.item(k),tag));}},this);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['310']++;range=this.createRange();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['311']++;first=changed[0];__cov_WLl8kOeTgkp_iKYfGkYrPw.s['312']++;last=changed[changed.length-1];__cov_WLl8kOeTgkp_iKYfGkYrPw.s['313']++;if(this._selection.removeAllRanges){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['87'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['314']++;range.setStart(changed[0],0);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['315']++;range.setEnd(last,last.childNodes.length);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['316']++;this._selection.removeAllRanges();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['317']++;this._selection.addRange(range);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['87'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['318']++;if(range.moveToElementText){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['88'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['319']++;range.moveToElementText(Y.Node.getDOMNode(first));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['320']++;range2=this.createRange();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['321']++;range2.moveToElementText(Y.Node.getDOMNode(last));__cov_WLl8kOeTgkp_iKYfGkYrPw.s['322']++;range.setEndPoint('EndToEnd',range2);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['88'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['323']++;range.select();}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['324']++;changed=Y.all(changed);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['325']++;return changed;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['85'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['326']++;return Y.all([]);}},replace:function(se,re){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['31']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['327']++;var range=this.createRange(),node,txt,index,newNode;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['328']++;if(range.getBookmark){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['89'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['329']++;index=range.getBookmark();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['330']++;txt=this.anchorNode.get('innerHTML').replace(se,re);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['331']++;this.anchorNode.set('innerHTML',txt);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['332']++;range.moveToBookmark(index);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['333']++;newNode=Y.one(range.parentElement());}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['89'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['334']++;node=this.anchorTextNode;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['335']++;txt=node.get(textContent);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['336']++;index=txt.indexOf(se);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['337']++;txt=txt.replace(se,'');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['338']++;node.set(textContent,txt);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['339']++;newNode=this.insertAtCursor(re,node,index,true);}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['340']++;return newNode;},remove:function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['32']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['341']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['91'][0]++,this._selection)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['91'][1]++,this._selection.removeAllRanges)){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['90'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['342']++;this._selection.removeAllRanges();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['90'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['343']++;return this;},createRange:function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['33']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['344']++;if(Y.config.doc.selection){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['92'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['345']++;return Y.config.doc.selection.createRange();}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['92'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['346']++;return Y.config.doc.createRange();}},selectNode:function(node,collapse,end){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['34']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['347']++;if(!node){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['93'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['348']++;return;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['93'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['349']++;end=(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['94'][0]++,end)||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['94'][1]++,0);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['350']++;node=Y.Node.getDOMNode(node);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['351']++;var range=this.createRange();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['352']++;if(range.selectNode){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['95'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['353']++;range.selectNode(node);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['354']++;this._selection.removeAllRanges();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['355']++;this._selection.addRange(range);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['356']++;if(collapse){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['96'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['357']++;try{__cov_WLl8kOeTgkp_iKYfGkYrPw.s['358']++;this._selection.collapse(node,end);}catch(err){__cov_WLl8kOeTgkp_iKYfGkYrPw.s['359']++;this._selection.collapse(node,0);}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['96'][1]++;}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['95'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['360']++;if(node.nodeType===3){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['97'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['361']++;node=node.parentNode;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['97'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['362']++;try{__cov_WLl8kOeTgkp_iKYfGkYrPw.s['363']++;range.moveToElementText(node);}catch(e){}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['364']++;if(collapse){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['98'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['365']++;range.collapse(end?(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['99'][0]++,false):(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['99'][1]++,true));}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['98'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['366']++;range.select();}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['367']++;return this;},setCursor:function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['35']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['368']++;this.removeCursor(false);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['369']++;return this.insertContent(Y.EditorSelection.CURSOR);},getCursor:function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['36']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['370']++;return Y.EditorSelection.ROOT.all('#'+Y.EditorSelection.CURID);},removeCursor:function(keep){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['37']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['371']++;var cur=this.getCursor();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['372']++;if(cur){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['100'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['373']++;if(keep){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['101'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['374']++;cur.removeAttribute('id');__cov_WLl8kOeTgkp_iKYfGkYrPw.s['375']++;cur.set('innerHTML','<br class="yui-cursor">');}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['101'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['376']++;cur.remove();}}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['100'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['377']++;return cur;},focusCursor:function(collapse,end){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['38']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['378']++;if(collapse!==false){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['102'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['379']++;collapse=true;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['102'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['380']++;if(end!==false){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['103'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['381']++;end=true;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['103'][1]++;}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['382']++;var cur=this.removeCursor(true);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['383']++;if(cur){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['104'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['384']++;cur.each(function(c){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['39']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['385']++;this.selectNode(c,collapse,end);},this);}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['104'][1]++;}},toString:function(){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['40']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['386']++;return'EditorSelection Object';},getEditorOffset:function(node){__cov_WLl8kOeTgkp_iKYfGkYrPw.f['41']++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['387']++;var container=((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['105'][0]++,node)||(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['105'][1]++,Y.EditorSelection.ROOT)).getDOMNode(),caretOffset=0,doc=Y.config.doc,win=Y.config.win,sel,range,preCaretRange;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['388']++;if(typeof win.getSelection!=='undefined'){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['106'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['389']++;range=win.getSelection().getRangeAt(0);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['390']++;preCaretRange=range.cloneRange();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['391']++;preCaretRange.selectNodeContents(container);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['392']++;preCaretRange.setEnd(range.endContainer,range.endOffset);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['393']++;caretOffset=preCaretRange.toString().length;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['106'][1]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['394']++;sel=doc.selection;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['395']++;if((__cov_WLl8kOeTgkp_iKYfGkYrPw.b['108'][0]++,sel)&&(__cov_WLl8kOeTgkp_iKYfGkYrPw.b['108'][1]++,sel.type!=='Control')){__cov_WLl8kOeTgkp_iKYfGkYrPw.b['107'][0]++;__cov_WLl8kOeTgkp_iKYfGkYrPw.s['396']++;range=sel.createRange();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['397']++;preCaretRange=doc.body.createTextRange();__cov_WLl8kOeTgkp_iKYfGkYrPw.s['398']++;preCaretRange.moveToElementText(container);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['399']++;preCaretRange.setEndPoint('EndToEnd',range);__cov_WLl8kOeTgkp_iKYfGkYrPw.s['400']++;caretOffset=preCaretRange.text.length;}else{__cov_WLl8kOeTgkp_iKYfGkYrPw.b['107'][1]++;}}__cov_WLl8kOeTgkp_iKYfGkYrPw.s['401']++;return caretOffset;}};__cov_WLl8kOeTgkp_iKYfGkYrPw.s['402']++;Y.Selection=Y.EditorSelection;},'3.13.0',{'requires':['node']});