DW-PC\DW 5 năm trước cách đây
mục cha
commit
25837fde7e
80 tập tin đã thay đổi với 21304 bổ sung0 xóa
  1. 139 0
      2018专题/我的冒险世界/fis-conf.js
  2. 1 0
      2018专题/我的冒险世界/map.json
  3. 10 0
      2018专题/我的冒险世界/package.json
  4. 33 0
      2018专题/我的冒险世界/src/details.html
  5. 300 0
      2018专题/我的冒险世界/src/h5.html
  6. BIN
      2018专题/我的冒险世界/src/img/bg-pc.jpg
  7. BIN
      2018专题/我的冒险世界/src/img/bg.jpg
  8. BIN
      2018专题/我的冒险世界/src/img/data.jpg
  9. BIN
      2018专题/我的冒险世界/src/img/icon-arrow.png
  10. BIN
      2018专题/我的冒险世界/src/img/icon-close-hover.png
  11. BIN
      2018专题/我的冒险世界/src/img/icon-close-new.png
  12. BIN
      2018专题/我的冒险世界/src/img/icon-collect.png
  13. BIN
      2018专题/我的冒险世界/src/img/icon-collect2.png
  14. BIN
      2018专题/我的冒险世界/src/img/icon-favor.png
  15. BIN
      2018专题/我的冒险世界/src/img/icon-lgg.png
  16. BIN
      2018专题/我的冒险世界/src/img/icon-load.png
  17. BIN
      2018专题/我的冒险世界/src/img/icon-pc-collect.png
  18. BIN
      2018专题/我的冒险世界/src/img/icon-pc-collect2.png
  19. BIN
      2018专题/我的冒险世界/src/img/icon-qq.png
  20. BIN
      2018专题/我的冒险世界/src/img/icon-qzone.png
  21. BIN
      2018专题/我的冒险世界/src/img/icon-reply.png
  22. BIN
      2018专题/我的冒险世界/src/img/icon-view.png
  23. BIN
      2018专题/我的冒险世界/src/img/icon-weibo.png
  24. BIN
      2018专题/我的冒险世界/src/img/icon-wx.png
  25. BIN
      2018专题/我的冒险世界/src/img/icon_support.png
  26. BIN
      2018专题/我的冒险世界/src/img/icon_user.jpg
  27. BIN
      2018专题/我的冒险世界/src/img/list.jpg
  28. BIN
      2018专题/我的冒险世界/src/img/upload.jpg
  29. 9814 0
      2018专题/我的冒险世界/src/lib/jquery-2.2.4.js
  30. 252 0
      2018专题/我的冒险世界/src/lib/mod.js
  31. 1 0
      2018专题/我的冒险世界/src/lib/rem.js
  32. 43 0
      2018专题/我的冒险世界/src/list.html
  33. 148 0
      2018专题/我的冒险世界/src/modules/cookie/cookie.js
  34. 1283 0
      2018专题/我的冒险世界/src/modules/dialog/dialog.js
  35. 176 0
      2018专题/我的冒险世界/src/modules/page/details.js
  36. 0 0
      2018专题/我的冒险世界/src/modules/page/index.js
  37. 266 0
      2018专题/我的冒险世界/src/modules/page/list.js
  38. 196 0
      2018专题/我的冒险世界/src/modules/page/upload.js
  39. 90 0
      2018专题/我的冒险世界/src/modules/sealoader/sealoader.js
  40. 1 0
      2018专题/我的冒险世界/src/modules/store/store.js
  41. 1545 0
      2018专题/我的冒险世界/src/modules/underscore/underscore.js
  42. 214 0
      2018专题/我的冒险世界/src/pc.html
  43. 110 0
      2018专题/我的冒险世界/src/sass/active.scss
  44. 508 0
      2018专题/我的冒险世界/src/sass/base/_base.scss
  45. 252 0
      2018专题/我的冒险世界/src/sass/base/_mixins.scss
  46. 569 0
      2018专题/我的冒险世界/src/sass/base/_ui-dialog.scss
  47. 387 0
      2018专题/我的冒险世界/src/sass/h5.scss
  48. 12 0
      2018专题/我的冒险世界/src/sass/lego/_base.scss
  49. 159 0
      2018专题/我的冒险世界/src/sass/lego/_button.scss
  50. 432 0
      2018专题/我的冒险世界/src/sass/lego/_form.scss
  51. 25 0
      2018专题/我的冒险世界/src/sass/lego/_icon.scss
  52. 40 0
      2018专题/我的冒险世界/src/sass/lego/_lego.scss
  53. 1147 0
      2018专题/我的冒险世界/src/sass/lego/_lego2.scss
  54. 90 0
      2018专题/我的冒险世界/src/sass/lego/_list.scss
  55. 215 0
      2018专题/我的冒险世界/src/sass/lego/_mixins.scss
  56. 528 0
      2018专题/我的冒险世界/src/sass/lego/_normalize.scss
  57. 93 0
      2018专题/我的冒险世界/src/sass/lego/_print.scss
  58. 138 0
      2018专题/我的冒险世界/src/sass/lego/_reset.scss
  59. 63 0
      2018专题/我的冒险世界/src/sass/lego/_table.scss
  60. 71 0
      2018专题/我的冒险世界/src/sass/lego/_ui.accordion.scss
  61. 39 0
      2018专题/我的冒险世界/src/sass/lego/_ui.badge.scss
  62. 117 0
      2018专题/我的冒险世界/src/sass/lego/_ui.carousel.scss
  63. 75 0
      2018专题/我的冒险世界/src/sass/lego/_ui.dialog.scss
  64. 187 0
      2018专题/我的冒险世界/src/sass/lego/_ui.figure.scss
  65. 28 0
      2018专题/我的冒险世界/src/sass/lego/_ui.lineList.scss
  66. 41 0
      2018专题/我的冒险世界/src/sass/lego/_ui.marquee.scss
  67. 36 0
      2018专题/我的冒险世界/src/sass/lego/_ui.media.scss
  68. 117 0
      2018专题/我的冒险世界/src/sass/lego/_ui.paging.scss
  69. 123 0
      2018专题/我的冒险世界/src/sass/lego/_ui.panel.scss
  70. 33 0
      2018专题/我的冒险世界/src/sass/lego/_ui.progress.scss
  71. 252 0
      2018专题/我的冒险世界/src/sass/lego/_ui.slide.scss
  72. 58 0
      2018专题/我的冒险世界/src/sass/lego/_ui.tab.scss
  73. 334 0
      2018专题/我的冒险世界/src/sass/lego/_utility.scss
  74. 48 0
      2018专题/我的冒险世界/src/sass/lego/_variable.scss
  75. 42 0
      2018专题/我的冒险世界/src/sass/page/_details.scss
  76. 50 0
      2018专题/我的冒险世界/src/sass/page/_list.scss
  77. 62 0
      2018专题/我的冒险世界/src/sass/page/_upload.scss
  78. 256 0
      2018专题/我的冒险世界/src/sass/pc.scss
  79. 17 0
      2018专题/我的冒险世界/src/tpl/works-list.tmpl
  80. 38 0
      2018专题/我的冒险世界/src/upload.html

+ 139 - 0
2018专题/我的冒险世界/fis-conf.js

@@ -0,0 +1,139 @@
+var version = '/';
+var path = '/zt2019/mccarton';
+
+fis.set('project.files', ['*.html', 'map.json']);
+fis.set('project.exclude', ['tpl/**.tmpl', '_dest/**']);
+
+fis.hook('commonjs', {
+    baseUrl: './src/modules',
+    extList: ['.js']
+});
+
+// 开启同名依赖
+fis.match('**.js', {
+    useSameNameRequire: true,
+    parser: fis.plugin('babel-5.x', {
+        blacklist: ["useStrict"],
+	    ignore: ["jQuery"]
+    })
+});
+
+// fis.match('/lib/**.js', {
+//     release: version + '/$1',
+//     packTo: 'lib.js'
+// });
+
+// 允许你在 js 中直接 require css+文件
+fis.match('*.{js,es}', {
+    preprocessor: [
+        fis.plugin('js-require-file'),
+        fis.plugin('js-require-css', {
+            mode: 'dependency'
+        })
+    ]
+});
+
+/*设置发布路径*/
+fis.match(/^\/src\/(.*)/i, {
+    release: version + '/$1', 
+    // url: version + '/$1'
+});
+
+// 配置图片压缩
+fis.match('**.png', {
+    optimizer: fis.plugin('png-compressor', {
+        type: 'pngquant'
+    })
+});
+
+/*Sprite背景图移到staticPub/images*/
+fis.match(/^\/sass\/(.*\.(png|jpg|gif|jpeg))$/i, {
+    release: 'img/sprite/$1',
+    url: 'img/sprite/$1'
+});
+
+fis.match(/^\/src\/sass\/((.*)\.(css|less|scss|sass))$/i, {
+    rExt: '.css',
+    useSprite: true,
+    parser: fis.plugin('node-sass'),
+    postprocessor: fis.plugin('autoprefixer', {
+        browsers: ['> 1%', 'last 2 versions'],
+        cascade: true
+    }),
+    release: version + '/css/$1', 
+    url: './css/$1'
+}).match('_*.scss', {
+    release: false
+})
+
+/*对CSS中的图片进行合并,包括html中的内联样式*/
+fis.match('*.{css,html,tpl}', {
+    useSprite: true,
+});
+
+fis.match('*.tmpl', {
+    isJsLike: true,
+    release: false,
+    parser: fis.plugin('utc')
+})
+
+fis.match(/^\/src\/modules\/(.*\.js)$/i, {
+    isMod: true
+});
+
+/*css压缩*/
+fis.match('*.css', {
+    optimizer: fis.plugin('clean-css')
+});
+
+
+/*启用 fis-spriter-csssprites 插件*/
+fis.match('::package', {
+    spriter: fis.plugin('csssprites',{
+        margin: 20,
+        htmlUseSprite: true,/*开启模板内联css处理*/
+        styleReg: /(<style(?:(?=\s)[\s\S]*?["'\s\w\/\-]>|>))([\s\S]*?)(<\/style\s*>|$)/ig
+    }),
+    postpackager: fis.plugin('loader', {
+        resourceType: 'commonJs',
+        useInlineMap: true // 资源映射表内嵌
+    })
+});
+
+/*图片文件域名配置*/
+fis.media('dev').match('*.{jpg,png,jpeg,gif,css,js}', {
+    domain: '../../',
+});
+
+fis.media('prod').match('*.{jpg,png,jpeg,gif,css,scss,js,woff,ttf,svg,eot}', {
+    domain: 'http://pub.dwstatic.com' + path,
+}).match('::package', {
+    postpackager: fis.plugin('loader', {
+        allInOne: {
+            resourceType: 'mod',
+            js: function (file) {
+                return version + 'js/' + file.filename + ".js";
+            },
+            css: function (file) {
+                return version + 'css/' + file.filename + ".css";
+            }
+        },
+        resoucemap: version + 'js/${filepath}_map.js',
+    })
+}).match('*.js', {
+    optimizer: fis.plugin('uglify-js',{
+        mangle: {
+            except: 'exports, module, require, define'
+        }
+    })
+}).match('*.{js,css,png,jpg,gif,swf}', {
+    useHash: true
+}).match(/^\/src\/modules\/(.*\.js)$/i, {
+    useHash: false
+}).match(/^\/src\/sass\/((.*)\.(css|less|scss|sass))$/i, {
+    url: version + 'css/$1',
+    optimizer: fis.plugin('clean-css'),
+    useHash: true
+}).match('sass/(**.png)', {
+    release: version + 'img/sprite/$1'
+});

+ 1 - 0
2018专题/我的冒险世界/map.json

@@ -0,0 +1 @@
+__RESOURCE_MAP__

+ 10 - 0
2018专题/我的冒险世界/package.json

@@ -0,0 +1,10 @@
+{
+  "name": "sa",
+  "version": "1.0.0",
+  "description": "FED Workflow",
+  "main": "index.js",
+  "scripts": {
+    "debug": "fis3 server restart && fis3 release dev -w ",
+    "build": "fis3 release prod -d ../../../pub/zt2019/mccarton"
+  }
+}

+ 33 - 0
2018专题/我的冒险世界/src/details.html

@@ -0,0 +1,33 @@
+<!doctype html>
+<html>
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
+    <meta name="format-detection" content="telephone=no" />
+    <title>我的冒险世界2 - 心灵方块 - 作品详情</title>
+    <script src="lib/rem.js"></script><!--ignore-->
+    <script src="http://pub.dwstatic.com/common/lib/jquery/jquery-2.2.4.js"></script><!--ignore-->
+    <link href="sass/active.scss" rel="stylesheet">
+    
+</head>
+
+<body>
+    <div class="details-wrap">
+        <div class="details-content">
+            <img class="works" src="" alt="">
+            <div class="desc-wrap">
+                <p><i class="icon name"></i><span>末日方块</span></p>
+                <p class="count-wrap"><i class="icon count"></i><span class="vote-num">999</span></p>
+                <div class="g-support support">支持</div>
+            </div>
+        </div>
+    </div>
+    <section class="common-comment"></section>
+    <script src="lib/mod.js"></script>
+    <script>
+        require('modules/page/details.js')
+    </script>
+</body>
+
+</html>

+ 300 - 0
2018专题/我的冒险世界/src/h5.html

@@ -0,0 +1,300 @@
+<!doctype html>
+<html>
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
+    <meta name="format-detection" content="telephone=no" />
+    <title>我的冒险世界2 - 心灵方块</title>
+    <script src="lib/rem.js"></script><!--ignore-->
+    <script src="http://pub.dwstatic.com/common/lib/jquery/jquery-2.2.4.js"></script><!--ignore-->
+    <link href="sass/h5.scss" rel="stylesheet">
+</head>
+
+<body>
+    <div class="mc-wrap">
+        <div class="wrap-inner">
+
+            <div class="mod-video">
+                <div class="video-frame">
+                    <div id="mainPlayer" style="width:100%;height:100%;"></div>
+                </div>
+            </div>
+
+            <div class="mod-share">
+                <section>
+                    <em>分享到:</em>
+                    <a href="http://service.weibo.com/share/mobile.php?appkey=1343713053&url=http://mc.duowan.com/1707/m_363723835365.html&title=我的冒险世界第二季&pic=http://pub.dwstatic.com/zt2017/mccarton2/img/bg_2bc28ec.jpg&searchPic=false" target="_blank" class="share-weibo"></a>
+                    <a href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http://mc.duowan.com/1707/m_363723835365.html&title=我的冒险世界第二季&pics=http://pub.dwstatic.com/zt2017/mccarton2/img/bg_2bc28ec.jpg&thumbnail=90*90&desc=" target="_blank" class="share-qzone"></a>
+                </section>
+                <div class="p-views">
+                    <em></em>
+                </div>
+                <div class="btn-collect">订阅</div>
+            </div>
+
+            <div class="mod-article">
+                <h1>《我的冒险世界》第十四集:爆炸狂欢会狂欢会狂欢会狂欢会</h1>
+                <div class="btn-more">展开简介</div>
+                <div class="p-content">
+                    <p>今年4月《我的世界》中国版完成了首次PC Java版小规模技术测试,在保留游戏原汁原味玩法的基础上,中国版将为玩家提供便捷的...</p>
+                </div>
+            </div>
+
+            <div class="mod-albums">
+                <div class="albums-hd">
+                    <span class="albums-tab current">第二季视频</span>
+                    <span class="albums-tab">第一季视频</span>
+                    <a href="">进入专题页></a>
+                </div>
+                <div class="albums-bd">
+                    <!-- S 第二季 -->
+                    <ul>
+                        <li data-vid="8433005" data-video="http://dw-bw6.dwstatic.com/3b2b642b8ac3ced8aa8f4143021f3497/5969b5df/80/4/1728/8433005-100-1499914888.mp4" data-title="《心灵方块:我的冒险世界2》第一集:方块之谜" data-intro="《心灵方块:我的冒险世界》一年后准时回归。李葛格,罗小丁,零三人成功觉醒,领悟到全新的方块力量。为了寻找传说中的邪神,新的冒险之旅正式展开!" class="current"><em>1</em></li>
+                        <li class="disable"><em>2</em></li>
+                        <li class="disable"><em>3</em></li>
+                        <li class="disable"><em>4</em></li>
+                        <li class="disable"><em>5</em></li>
+                        <li class="disable"><em>6</em></li>
+                        <li class="disable"><em>7</em></li>
+                        <li class="disable"><em>8</em></li>
+                        <li class="disable"><em>9</em></li>
+                        <li class="disable"><em>10</em></li>
+                        <li class="disable"><em>11</em></li>
+                        <li class="disable"><em>12</em></li>
+                        <li class="disable"><em>13</em></li>
+                        <li class="disable"><em>14</em></li>
+                        <li class="disable"><em>15</em></li>
+                        <li class="disable"><em>16</em></li>
+                        <li data-video="http://dw-bw6.dwstatic.com/1791fd62102508857d88300c1293e426/59673e00/87/9/1728/8431781-100-1499765751.mp4" data-title="《心灵方块:我的冒险世界2》热血预告片" data-intro="" class="ex" ><em>预告</em></li>
+                    </ul>
+                    <!-- E 第二季 -->
+                    
+                    <!-- S 第一季 -->
+                    <ul class="hide">
+                        <li data-vid="3526092" data-video="http://dw-bw6.dwstatic.com/53744e06c5b918a111b0a7c1131ad129/59697409/54/2/1701/3526092-100-1483681723.mp4" data-title="我的冒险世界第一集:主角死啦?" data-intro="《我的冒险世界》第一集正式上映啦~两个熊孩子穿越到神秘的MC大陆,打破了数百年来的平静,在禁地森林里遭遇了狂暴的铁巨人。主角在第一集就要死了吗?"><em>1</em></li>
+                        <li data-vid="3526107" data-video="http://dw-bw6.dwstatic.com/569c48222b75de85210fc42fa58d6ced/596974e0/53/12/1701/3526107-100-1483681717.mp4" data-title="我的冒险世界第二集:魔王小黑降临!"data-intro="打了鸡血般的铁巨人被神秘人携宠物制服,还被熊孩子二人组花式调戏…小黑也终于控制不住体内的洪荒之力了…瓜子已买好,快来围观吧!"><em>2</em></li>
+                        <li data-vid="3526103" data-video="http://dw-bw6.dwstatic.com/101fae7e56a0664ad8e48b53a6adb860/5969750a/56/6/1701/3526103-100-1483681714.mp4" data-title="我的冒险世界第三集:MC版生化危机!"data-intro="MC世界爆发生化危机!深夜潜入的丧尸,被感染的村民,熊孩子的尖叫...到底是怎么了?"><em>3</em></li>
+                        <li data-vid="3526093"data-video="http://dw-bw6.dwstatic.com/8292e2153da95eab1a27e6c5a62d0570/596975cf/57/6/1701/3526093-100-1483681695.mp4" data-title="我的冒险世界第四集:怒肛僵尸王!"data-intro="怒肛僵尸王,骚气村长华丽甩锅,主线任务正式开启!究竟怎么打败僵尸王的呢?反正我是没脸说,让小丁自己来解释吧......"><em>4</em></li>
+                        <li data-vid="3526105" data-video="http://dw-bw6.dwstatic.com/7acaef9b797c365f6e903e351eac1532/59697626/53/8/1701/3526105-100-1483681722.mp4" data-title="我的冒险世界第五集:丁丁保卫战!"data-intro="罗小丁陷入多角争夺战,李葛格拼死守护却遭遇劲敌。小丁爆发洪荒之力,新角色闪亮登场,零强势归来。丁丁保卫战!咦~听起来就很让人激动呢……"><em>5</em></li>
+                        <li data-vid="3526089" data-video="http://dw-bw6.dwstatic.com/6a3f6d67af3d6d2e4cf6d437fc04f582/5969764d/54/1/1701/3526089-100-1483681648.mp4" data-title="我的冒险世界第六集:绝地大反击"data-intro="零展示最强大脑,李葛格华丽炫酷连招秒杀敌人,神秘的小叽叽居然还会变身!最后到底发生了什么?我有点没看懂..."><em>6</em></li>
+                        <li data-vid="3526101" data-video="http://dw-bw6.dwstatic.com/09af137fdc3997e298e3940c111cb81d/59697688/51/8/1701/3526101-100-1483681717.mp4" data-title="我的冒险世界第七集:异世界相遇"data-intro="李葛格回忆穿越第一天,罗小丁和李葛格的相遇大揭秘......零为何听见“宝宝”以后一脸震惊的醒 来?...随便吧反正现在我只想说,我也想吃烤鸡!!"><em>7</em></li>
+                        <li data-vid="3526100" data-video="http://dw-bw6.dwstatic.com/db9f6455844163a62d3c06e27696f649/59697696/54/8/1701/3526100-100-1483681715.mp4" data-title="我的冒险世界第八集:异世界成长计划"data-intro="智障主角的异世界成长计划,6到爆的必杀技原来是这样炼成的!机械鸡继续抢镜,最后来一句,现实中的零帅得简直不要不要的!"><em>8</em></li>
+                        <li data-vid="3526104" data-video="http://dw-bw6.dwstatic.com/e7e6509c508108ebec7ed137b22af57b/59697746/56/1/1701/3526104-100-1483681720.mp4" data-title="我的冒险世界第九集:菊花村的陷阱"data-intro="李葛格三人来到菊花村,发现这个被火烧过的菊花村一个村民都没有!正当他们试图弄清楚这一切的时候,不巧中了埋伏掉进了蜘蛛洞!这到底怎么了?"><em>9</em></li>
+                        <li data-vid="3526102" data-video="http://dw-bw6.dwstatic.com/c0a35fb2606473860c8e34c56c2e3791/59697771/55/8/1701/3526102-100-1483681722.mp4" data-title="我的冒险世界第十集:村花的爱"data-intro="村花热情示爱被高冷零残忍拒绝,李葛格唤醒嫁妆紫气铁剑,一剑秒杀小蜘蛛,蜘蛛王大招救场!"><em>10</em></li>
+                        <li data-vid="3526098" data-video="http://dw-bw6.dwstatic.com/0edb4f1a8dd1ac7c169dbd0522191b52/596977ad/51/11/1701/3526098-100-1483681715.mp4" data-title="我的冒险世界第十一集:箭人骷髅王"data-intro="主角三人成功在安全屋汇合,没想到蜘蛛王兵分两路突袭了安全屋。当大家都被蜘蛛丝困得动弹不得的时候,骷髅王出现了!诶!?他来凑什么热闹?"><em>11</em></li>
+                        <li data-vid="3526097" data-video="http://dw-bw6.dwstatic.com/93ca52d74c54ba738a98066895fc7163/596977c7/52/9/1701/3526097-100-1483681708.mp4" data-title="我的冒险世界第十二集:苦力怕激活了主角的洪荒之力"data-intro="战况越来越激烈!罗小丁和零负伤倒下,李葛格主角属性觉醒!"><em>12</em></li>
+                        <li data-vid="3526094" data-video="http://dw-bw6.dwstatic.com/658b7ecd381cb7b09b9bbac72d46f45e/596977f2/51/9/1701/3526094-100-1483681726.mp4" data-title="我的冒险世界第十三集:公牛也能挤出牛奶!"data-intro="小丁,你醒醒!零,你醒醒!你醒醒啊!"><em>13</em></li>
+                        <li data-vid="3526106" data-video="http://dw-bw6.dwstatic.com/790e1a7175aced640332154a13dcb515/59697833/53/2/1701/3526106-100-1483681722.mp4" data-title="我的冒险世界第十四集:智取苦力怕怕王"data-intro="决战苦力怕怕王,话说怎么有点像怠惰祭司呢!"><em>14</em></li>
+                        <li data-vid="3526090" data-video="http://dw-bw6.dwstatic.com/31a0e4b47f13c2c317b4b6c02dc49f4c/59697836/58/11/1701/3526090-100-1483681689.mp4" data-title="我的冒险世界十五集:罗小丁突变终极兵器?"data-intro="小丁!我一定会救你的!不管发生任何事情!"><em>15</em></li>
+                        <li data-vid="3526096" data-video="http://dw-bw6.dwstatic.com/308dd29e5805434e7fdd73d961e4db3c/5969786e/51/3/1701/3526096-100-1483681705.mp4" data-title="我的冒险世界第十六集:最强的武器"data-intro="大BOSS墨影之王终于登场!为了救小丁,李葛格VS墨影之王!"><em>16</em></li>
+                        <li data-vid="3526091" data-video="http://dw-bw6.dwstatic.com/d5382fad75e0a02de4649623e21b522b/59697834/52/9/1701/3526091-100-1483681710.mp4" data-title="我的冒险世界第十七集:新世界大门"data-intro="终于迎来大结局!制作团队鞠躬再鞠躬!"><em>17</em></li>
+                    </ul>
+                    <!-- E 第一季 -->
+                </div>
+            </div>
+
+            <!--评论区{-->
+            <section class="common-comment">
+            </section>
+            <!--}评论区-->
+
+            <section class="tip-login">
+                <div class="tip-mask"></div>
+                <div class="tip-wrap">
+                    <p>你目前还没有登录噢~ ( ´◔ ‸◔`)</p>
+                    <div class="btns-wrap">
+                        <span class="btn btn-cancel">取消</span>
+                        <a class="btn btn-login">去登录</a>
+                    </div>
+                </div>
+            </section>
+
+            <!--<div class="mod-comments">
+                <h3 class="comments-hd">评论</h3>
+                <ul class="comments-bd">
+                    <li>
+                        <span class="c-avatars">
+                            <img src="http://img2.dwstatic.com/mc/1706/361451537473/1497496348396.jpg" alt="">
+                        </span>
+                        <div class="c-hd">
+                            <span>塞巴斯蒂安</span>1天前
+                        </div>
+                        <div class="c-bd">
+                            <p>从看小说到现在,唯一没变的就是追宠妃这本书。第一次买出版书,第一次关注作者个人,第一次为了一本书。 城檀的感情,不是一见倾心,没有轰轰烈烈...</p>
+                        </div>
+                        <div class="c-ft">
+                            <span class="c-reply">回复</span>
+                            <span class="c-favor">18</span>
+                        </div>
+                    </li>
+                    <li>
+                        <span class="c-avatars">
+                            <img src="http://img2.dwstatic.com/mc/1706/361451537473/1497496348396.jpg" alt="">
+                        </span>
+                        <div class="c-hd">
+                            <span>塞巴斯蒂安</span>1天前
+                        </div>
+                        <div class="c-bd">
+                            <p>从看小说到现在,唯一没变的就是追宠妃这本书。第一次买出版书,第一次关注作者个人,第一次为了一本书。 城檀的感情,不是一见倾心,没有轰轰烈烈...</p>
+                        </div>
+                        <div class="c-ft">
+                            <span class="c-reply">回复</span>
+                            <span class="c-favor">18</span>
+                        </div>
+                    </li>
+                    <li>
+                        <span class="c-avatars">
+                            <img src="http://img2.dwstatic.com/mc/1706/361451537473/1497496348396.jpg" alt="">
+                        </span>
+                        <div class="c-hd">
+                            <span>塞巴斯蒂安</span>1天前
+                        </div>
+                        <div class="c-bd">
+                            <p>从看小说到现在,唯一没变的就是追宠妃这本书。第一次买出版书,第一次关注作者个人,第一次为了一本书。 城檀的感情,不是一见倾心,没有轰轰烈烈...</p>
+                        </div>
+                        <div class="c-ft">
+                            <span class="c-reply">回复</span>
+                            <span class="c-favor">18</span>
+                        </div>
+                    </li>
+                </ul>
+            </div>-->
+        </div>
+    </div>
+    <script src="http://pub.dwstatic.com/common/js/dwudbproxy.js"></script>
+    <script src="http://video.duowan.com/style/js/huyavideo_placer.js"></script>
+    <script>
+        $(function() {
+            var width = $("#mainPlayer").width();
+            var height = $("#mainPlayer").height();
+            function buildVideo(vid) {
+
+                var videoTpl = '<div><video id="mainPlayer" width="'+width+'" height="'+height+'" controls preload="meta" poster="{video_cover}"></video></div>';
+                var map = {};
+                map[vid] = {
+                    place : '#mainPlayer',
+                    tpl : videoTpl,
+                    playerOptions : {
+                        loop : true,
+                        autoplay : true
+                    },
+                    onFinish : function(context){
+                        console.log({context:context});
+                    }
+                }
+                new VhuyaPlayerPlacer(map);
+            }
+
+            function changePlayNum(vid) {
+                $.ajax({
+                    url: 'http://video.duowan.com/jsapi/getVideoInfo?vids=' + vid,
+                    type: 'get',
+                    dataType: 'jsonp',
+                    success: function(ret) {
+                        $(".p-views em").text(ret[vid].video_play_num);
+                    }
+                })
+            }
+
+            var bokeId = 1805501345;
+            var $btnCollect = $(".btn-collect");
+
+            //播客是否被订阅
+            function isVideoSubscribe() {
+                $.ajax({
+                    url: 'http://video.duowan.com/jsapi/getUserSubscribe',
+                    type: 'get',
+                    dataType: 'jsonp',
+                    success: function(ret) {
+                        var len = ret.list.length;
+
+                        for (var i=0; i< len; i++) {
+                            if (ret.list[i]["user_id"] == bokeId) {
+                                $btnCollect.addClass("is-collected").text("已订阅")
+                            }
+                        }
+                    }
+                })
+            }
+
+            //订阅播客
+            function subscribeBoke() {
+                
+                $.ajax({
+                    url: 'http://video.duowan.com/?r=subscribe/subscribe&uid='+bokeId,
+                    type: 'get',
+                    dataType: 'jsonp',
+                    success: function(ret) {
+                        $btnCollect.addClass("is-collected").text("已订阅")
+                    }
+                })
+            }
+
+            
+            var initVid = 8433005;
+            buildVideo(initVid);
+            changePlayNum(initVid);
+            isVideoSubscribe();
+            
+            $(".albums-tab").on("click", function() {
+                var index = $(this).index();
+                $(this).addClass("current").siblings().removeClass("current");
+                $(".albums-bd ul").eq(index).show().siblings().hide();
+            })
+
+            $(".albums-bd").on("click", "li", function() {
+                var vid = $(this).attr("data-vid");
+                var videoUrl = $(this).attr("data-video");
+                var videoTitle = $(this).attr("data-title");
+                var videoIntro = $(this).attr("data-intro");
+                if($(this).hasClass("disable")) {
+                    alert("敬请期待!");
+                    return;
+                }
+                if(!videoUrl || $(this).hasClass("current")) {
+                    return;
+                }
+                $(".video-frame").html('<div id="mainPlayer"></div>');
+                $(".albums-bd li").removeClass("current");
+                $(this).addClass("current");
+                buildVideo(vid);
+                changePlayNum(vid);
+                $(".mod-article h1").text(videoTitle);
+                $(".p-content p").text(videoIntro);
+                $(".btn-collect").attr("data-vid",vid);
+                window.scrollTo(0,0)
+            })
+
+            $(".btn-more").on("click", function() {
+                $(".p-content").slideDown();
+                $(this).hide();
+            })
+
+            $(".btn-collect").on("click", function() {
+                var $this = $(this);
+                var vid = $this.attr("data-vid");
+
+                if (!dwUDBProxy.isLogin()) {
+                    var loginLink = "http://www.duowan.com/mlogin/?calbackUrl="+location.href;
+
+                    $(".tip-login").find(".btn-login").attr("href",loginLink).end().show();
+                }
+
+                if ($this.hasClass("is-collected")) {
+                    return;
+                }
+
+                subscribeBoke();
+            })
+
+            $(".tip-login").on("click",".btn-cancel",function() {
+                $(".tip-login").hide();
+            });
+        })
+        var comment3Uniqid = "5620efb149eb9acf0f885c7b7cef264b";
+    </script>
+    <script src="http://pub.dwstatic.com/common/js/articleComment.js?1"></script>
+</body>
+
+</html>

BIN
2018专题/我的冒险世界/src/img/bg-pc.jpg


BIN
2018专题/我的冒险世界/src/img/bg.jpg


BIN
2018专题/我的冒险世界/src/img/data.jpg


BIN
2018专题/我的冒险世界/src/img/icon-arrow.png


BIN
2018专题/我的冒险世界/src/img/icon-close-hover.png


BIN
2018专题/我的冒险世界/src/img/icon-close-new.png


BIN
2018专题/我的冒险世界/src/img/icon-collect.png


BIN
2018专题/我的冒险世界/src/img/icon-collect2.png


BIN
2018专题/我的冒险世界/src/img/icon-favor.png


BIN
2018专题/我的冒险世界/src/img/icon-lgg.png


BIN
2018专题/我的冒险世界/src/img/icon-load.png


BIN
2018专题/我的冒险世界/src/img/icon-pc-collect.png


BIN
2018专题/我的冒险世界/src/img/icon-pc-collect2.png


BIN
2018专题/我的冒险世界/src/img/icon-qq.png


BIN
2018专题/我的冒险世界/src/img/icon-qzone.png


BIN
2018专题/我的冒险世界/src/img/icon-reply.png


BIN
2018专题/我的冒险世界/src/img/icon-view.png


BIN
2018专题/我的冒险世界/src/img/icon-weibo.png


BIN
2018专题/我的冒险世界/src/img/icon-wx.png


BIN
2018专题/我的冒险世界/src/img/icon_support.png


BIN
2018专题/我的冒险世界/src/img/icon_user.jpg


BIN
2018专题/我的冒险世界/src/img/list.jpg


BIN
2018专题/我的冒险世界/src/img/upload.jpg


+ 9814 - 0
2018专题/我的冒险世界/src/lib/jquery-2.2.4.js

@@ -0,0 +1,9814 @@
+/*!
+ * jQuery JavaScript Library v2.2.4
+ * http://jquery.com/
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license
+ * http://jquery.org/license
+ *
+ * Date: 2016-05-20T17:23Z
+ */
+
+(function( global, factory ) {
+
+	if ( typeof module === "object" && typeof module.exports === "object" ) {
+		// For CommonJS and CommonJS-like environments where a proper `window`
+		// is present, execute the factory and get jQuery.
+		// For environments that do not have a `window` with a `document`
+		// (such as Node.js), expose a factory as module.exports.
+		// This accentuates the need for the creation of a real `window`.
+		// e.g. var jQuery = require("jquery")(window);
+		// See ticket #14549 for more info.
+		module.exports = global.document ?
+			factory( global, true ) :
+			function( w ) {
+				if ( !w.document ) {
+					throw new Error( "jQuery requires a window with a document" );
+				}
+				return factory( w );
+			};
+	} else {
+		factory( global );
+	}
+
+// Pass this if window is not defined yet
+}(typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
+
+// Support: Firefox 18+
+// Can't be in strict mode, several libs including ASP.NET trace
+// the stack via arguments.caller.callee and Firefox dies if
+// you try to trace through "use strict" call chains. (#13335)
+//"use strict";
+var arr = [];
+
+var document = window.document;
+
+var slice = arr.slice;
+
+var concat = arr.concat;
+
+var push = arr.push;
+
+var indexOf = arr.indexOf;
+
+var class2type = {};
+
+var toString = class2type.toString;
+
+var hasOwn = class2type.hasOwnProperty;
+
+var support = {};
+
+
+
+var
+	version = "2.2.4",
+
+	// Define a local copy of jQuery
+	jQuery = function( selector, context ) {
+
+		// The jQuery object is actually just the init constructor 'enhanced'
+		// Need init if jQuery is called (just allow error to be thrown if not included)
+		return new jQuery.fn.init( selector, context );
+	},
+
+	// Support: Android<4.1
+	// Make sure we trim BOM and NBSP
+	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
+
+	// Matches dashed string for camelizing
+	rmsPrefix = /^-ms-/,
+	rdashAlpha = /-([\da-z])/gi,
+
+	// Used by jQuery.camelCase as callback to replace()
+	fcamelCase = function( all, letter ) {
+		return letter.toUpperCase();
+	};
+
+jQuery.fn = jQuery.prototype = {
+
+	// The current version of jQuery being used
+	jquery: version,
+
+	constructor: jQuery,
+
+	// Start with an empty selector
+	selector: "",
+
+	// The default length of a jQuery object is 0
+	length: 0,
+
+	toArray: function() {
+		return slice.call( this );
+	},
+
+	// Get the Nth element in the matched element set OR
+	// Get the whole matched element set as a clean array
+	get: function( num ) {
+		return num != null ?
+
+			// Return just the one element from the set
+			( num < 0 ? this[ num + this.length ] : this[ num ] ) :
+
+			// Return all the elements in a clean array
+			slice.call( this );
+	},
+
+	// Take an array of elements and push it onto the stack
+	// (returning the new matched element set)
+	pushStack: function( elems ) {
+
+		// Build a new jQuery matched element set
+		var ret = jQuery.merge( this.constructor(), elems );
+
+		// Add the old object onto the stack (as a reference)
+		ret.prevObject = this;
+		ret.context = this.context;
+
+		// Return the newly-formed element set
+		return ret;
+	},
+
+	// Execute a callback for every element in the matched set.
+	each: function( callback ) {
+		return jQuery.each( this, callback );
+	},
+
+	map: function( callback ) {
+		return this.pushStack( jQuery.map( this, function( elem, i ) {
+			return callback.call( elem, i, elem );
+		} ) );
+	},
+
+	slice: function() {
+		return this.pushStack( slice.apply( this, arguments ) );
+	},
+
+	first: function() {
+		return this.eq( 0 );
+	},
+
+	last: function() {
+		return this.eq( -1 );
+	},
+
+	eq: function( i ) {
+		var len = this.length,
+			j = +i + ( i < 0 ? len : 0 );
+		return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
+	},
+
+	end: function() {
+		return this.prevObject || this.constructor();
+	},
+
+	// For internal use only.
+	// Behaves like an Array's method, not like a jQuery method.
+	push: push,
+	sort: arr.sort,
+	splice: arr.splice
+};
+
+jQuery.extend = jQuery.fn.extend = function() {
+	var options, name, src, copy, copyIsArray, clone,
+		target = arguments[ 0 ] || {},
+		i = 1,
+		length = arguments.length,
+		deep = false;
+
+	// Handle a deep copy situation
+	if ( typeof target === "boolean" ) {
+		deep = target;
+
+		// Skip the boolean and the target
+		target = arguments[ i ] || {};
+		i++;
+	}
+
+	// Handle case when target is a string or something (possible in deep copy)
+	if ( typeof target !== "object" && !jQuery.isFunction( target ) ) {
+		target = {};
+	}
+
+	// Extend jQuery itself if only one argument is passed
+	if ( i === length ) {
+		target = this;
+		i--;
+	}
+
+	for ( ; i < length; i++ ) {
+
+		// Only deal with non-null/undefined values
+		if ( ( options = arguments[ i ] ) != null ) {
+
+			// Extend the base object
+			for ( name in options ) {
+				src = target[ name ];
+				copy = options[ name ];
+
+				// Prevent never-ending loop
+				if ( target === copy ) {
+					continue;
+				}
+
+				// Recurse if we're merging plain objects or arrays
+				if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
+					( copyIsArray = jQuery.isArray( copy ) ) ) ) {
+
+					if ( copyIsArray ) {
+						copyIsArray = false;
+						clone = src && jQuery.isArray( src ) ? src : [];
+
+					} else {
+						clone = src && jQuery.isPlainObject( src ) ? src : {};
+					}
+
+					// Never move original objects, clone them
+					target[ name ] = jQuery.extend( deep, clone, copy );
+
+				// Don't bring in undefined values
+				} else if ( copy !== undefined ) {
+					target[ name ] = copy;
+				}
+			}
+		}
+	}
+
+	// Return the modified object
+	return target;
+};
+
+jQuery.extend( {
+
+	// Unique for each copy of jQuery on the page
+	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
+
+	// Assume jQuery is ready without the ready module
+	isReady: true,
+
+	error: function( msg ) {
+		throw new Error( msg );
+	},
+
+	noop: function() {},
+
+	isFunction: function( obj ) {
+		return jQuery.type( obj ) === "function";
+	},
+
+	isArray: Array.isArray,
+
+	isWindow: function( obj ) {
+		return obj != null && obj === obj.window;
+	},
+
+	isNumeric: function( obj ) {
+
+		// parseFloat NaNs numeric-cast false positives (null|true|false|"")
+		// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
+		// subtraction forces infinities to NaN
+		// adding 1 corrects loss of precision from parseFloat (#15100)
+		var realStringObj = obj && obj.toString();
+		return !jQuery.isArray( obj ) && ( realStringObj - parseFloat( realStringObj ) + 1 ) >= 0;
+	},
+
+	isPlainObject: function( obj ) {
+		var key;
+
+		// Not plain objects:
+		// - Any object or value whose internal [[Class]] property is not "[object Object]"
+		// - DOM nodes
+		// - window
+		if ( jQuery.type( obj ) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+			return false;
+		}
+
+		// Not own constructor property must be Object
+		if ( obj.constructor &&
+				!hasOwn.call( obj, "constructor" ) &&
+				!hasOwn.call( obj.constructor.prototype || {}, "isPrototypeOf" ) ) {
+			return false;
+		}
+
+		// Own properties are enumerated firstly, so to speed up,
+		// if last one is own, then all properties are own
+		for ( key in obj ) {}
+
+		return key === undefined || hasOwn.call( obj, key );
+	},
+
+	isEmptyObject: function( obj ) {
+		var name;
+		for ( name in obj ) {
+			return false;
+		}
+		return true;
+	},
+
+	type: function( obj ) {
+		if ( obj == null ) {
+			return obj + "";
+		}
+
+		// Support: Android<4.0, iOS<6 (functionish RegExp)
+		return typeof obj === "object" || typeof obj === "function" ?
+			class2type[ toString.call( obj ) ] || "object" :
+			typeof obj;
+	},
+
+	// Evaluates a script in a global context
+	globalEval: function( code ) {
+		var script,
+			indirect = eval;
+
+		code = jQuery.trim( code );
+
+		if ( code ) {
+
+			// If the code includes a valid, prologue position
+			// strict mode pragma, execute code by injecting a
+			// script tag into the document.
+			if ( code.indexOf( "use strict" ) === 1 ) {
+				script = document.createElement( "script" );
+				script.text = code;
+				document.head.appendChild( script ).parentNode.removeChild( script );
+			} else {
+
+				// Otherwise, avoid the DOM node creation, insertion
+				// and removal by using an indirect global eval
+
+				indirect( code );
+			}
+		}
+	},
+
+	// Convert dashed to camelCase; used by the css and data modules
+	// Support: IE9-11+
+	// Microsoft forgot to hump their vendor prefix (#9572)
+	camelCase: function( string ) {
+		return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+	},
+
+	nodeName: function( elem, name ) {
+		return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
+	},
+
+	each: function( obj, callback ) {
+		var length, i = 0;
+
+		if ( isArrayLike( obj ) ) {
+			length = obj.length;
+			for ( ; i < length; i++ ) {
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
+					break;
+				}
+			}
+		} else {
+			for ( i in obj ) {
+				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
+					break;
+				}
+			}
+		}
+
+		return obj;
+	},
+
+	// Support: Android<4.1
+	trim: function( text ) {
+		return text == null ?
+			"" :
+			( text + "" ).replace( rtrim, "" );
+	},
+
+	// results is for internal usage only
+	makeArray: function( arr, results ) {
+		var ret = results || [];
+
+		if ( arr != null ) {
+			if ( isArrayLike( Object( arr ) ) ) {
+				jQuery.merge( ret,
+					typeof arr === "string" ?
+					[ arr ] : arr
+				);
+			} else {
+				push.call( ret, arr );
+			}
+		}
+
+		return ret;
+	},
+
+	inArray: function( elem, arr, i ) {
+		return arr == null ? -1 : indexOf.call( arr, elem, i );
+	},
+
+	merge: function( first, second ) {
+		var len = +second.length,
+			j = 0,
+			i = first.length;
+
+		for ( ; j < len; j++ ) {
+			first[ i++ ] = second[ j ];
+		}
+
+		first.length = i;
+
+		return first;
+	},
+
+	grep: function( elems, callback, invert ) {
+		var callbackInverse,
+			matches = [],
+			i = 0,
+			length = elems.length,
+			callbackExpect = !invert;
+
+		// Go through the array, only saving the items
+		// that pass the validator function
+		for ( ; i < length; i++ ) {
+			callbackInverse = !callback( elems[ i ], i );
+			if ( callbackInverse !== callbackExpect ) {
+				matches.push( elems[ i ] );
+			}
+		}
+
+		return matches;
+	},
+
+	// arg is for internal usage only
+	map: function( elems, callback, arg ) {
+		var length, value,
+			i = 0,
+			ret = [];
+
+		// Go through the array, translating each of the items to their new values
+		if ( isArrayLike( elems ) ) {
+			length = elems.length;
+			for ( ; i < length; i++ ) {
+				value = callback( elems[ i ], i, arg );
+
+				if ( value != null ) {
+					ret.push( value );
+				}
+			}
+
+		// Go through every key on the object,
+		} else {
+			for ( i in elems ) {
+				value = callback( elems[ i ], i, arg );
+
+				if ( value != null ) {
+					ret.push( value );
+				}
+			}
+		}
+
+		// Flatten any nested arrays
+		return concat.apply( [], ret );
+	},
+
+	// A global GUID counter for objects
+	guid: 1,
+
+	// Bind a function to a context, optionally partially applying any
+	// arguments.
+	proxy: function( fn, context ) {
+		var tmp, args, proxy;
+
+		if ( typeof context === "string" ) {
+			tmp = fn[ context ];
+			context = fn;
+			fn = tmp;
+		}
+
+		// Quick check to determine if target is callable, in the spec
+		// this throws a TypeError, but we will just return undefined.
+		if ( !jQuery.isFunction( fn ) ) {
+			return undefined;
+		}
+
+		// Simulated bind
+		args = slice.call( arguments, 2 );
+		proxy = function() {
+			return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
+		};
+
+		// Set the guid of unique handler to the same of original handler, so it can be removed
+		proxy.guid = fn.guid = fn.guid || jQuery.guid++;
+
+		return proxy;
+	},
+
+	now: Date.now,
+
+	// jQuery.support is not used in Core but other projects attach their
+	// properties to it so it needs to exist.
+	support: support
+} );
+
+// JSHint would error on this code due to the Symbol not being defined in ES5.
+// Defining this global in .jshintrc would create a danger of using the global
+// unguarded in another place, it seems safer to just disable JSHint for these
+// three lines.
+/* jshint ignore: start */
+if ( typeof Symbol === "function" ) {
+	jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
+}
+/* jshint ignore: end */
+
+// Populate the class2type map
+jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
+function( i, name ) {
+	class2type[ "[object " + name + "]" ] = name.toLowerCase();
+} );
+
+function isArrayLike( obj ) {
+
+	// Support: iOS 8.2 (not reproducible in simulator)
+	// `in` check used to prevent JIT error (gh-2145)
+	// hasOwn isn't used here due to false negatives
+	// regarding Nodelist length in IE
+	var length = !!obj && "length" in obj && obj.length,
+		type = jQuery.type( obj );
+
+	if ( type === "function" || jQuery.isWindow( obj ) ) {
+		return false;
+	}
+
+	return type === "array" || length === 0 ||
+		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
+}
+var Sizzle =
+/*!
+ * Sizzle CSS Selector Engine v2.2.1
+ * http://sizzlejs.com/
+ *
+ * Copyright jQuery Foundation and other contributors
+ * Released under the MIT license
+ * http://jquery.org/license
+ *
+ * Date: 2015-10-17
+ */
+(function( window ) {
+
+var i,
+	support,
+	Expr,
+	getText,
+	isXML,
+	tokenize,
+	compile,
+	select,
+	outermostContext,
+	sortInput,
+	hasDuplicate,
+
+	// Local document vars
+	setDocument,
+	document,
+	docElem,
+	documentIsHTML,
+	rbuggyQSA,
+	rbuggyMatches,
+	matches,
+	contains,
+
+	// Instance-specific data
+	expando = "sizzle" + 1 * new Date(),
+	preferredDoc = window.document,
+	dirruns = 0,
+	done = 0,
+	classCache = createCache(),
+	tokenCache = createCache(),
+	compilerCache = createCache(),
+	sortOrder = function( a, b ) {
+		if ( a === b ) {
+			hasDuplicate = true;
+		}
+		return 0;
+	},
+
+	// General-purpose constants
+	MAX_NEGATIVE = 1 << 31,
+
+	// Instance methods
+	hasOwn = ({}).hasOwnProperty,
+	arr = [],
+	pop = arr.pop,
+	push_native = arr.push,
+	push = arr.push,
+	slice = arr.slice,
+	// Use a stripped-down indexOf as it's faster than native
+	// http://jsperf.com/thor-indexof-vs-for/5
+	indexOf = function( list, elem ) {
+		var i = 0,
+			len = list.length;
+		for ( ; i < len; i++ ) {
+			if ( list[i] === elem ) {
+				return i;
+			}
+		}
+		return -1;
+	},
+
+	booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
+
+	// Regular expressions
+
+	// http://www.w3.org/TR/css3-selectors/#whitespace
+	whitespace = "[\\x20\\t\\r\\n\\f]",
+
+	// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
+	identifier = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
+
+	// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
+	attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
+		// Operator (capture 2)
+		"*([*^$|!~]?=)" + whitespace +
+		// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
+		"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
+		"*\\]",
+
+	pseudos = ":(" + identifier + ")(?:\\((" +
+		// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
+		// 1. quoted (capture 3; capture 4 or capture 5)
+		"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
+		// 2. simple (capture 6)
+		"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
+		// 3. anything else (capture 2)
+		".*" +
+		")\\)|)",
+
+	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
+	rwhitespace = new RegExp( whitespace + "+", "g" ),
+	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
+
+	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
+	rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
+
+	rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
+
+	rpseudo = new RegExp( pseudos ),
+	ridentifier = new RegExp( "^" + identifier + "$" ),
+
+	matchExpr = {
+		"ID": new RegExp( "^#(" + identifier + ")" ),
+		"CLASS": new RegExp( "^\\.(" + identifier + ")" ),
+		"TAG": new RegExp( "^(" + identifier + "|[*])" ),
+		"ATTR": new RegExp( "^" + attributes ),
+		"PSEUDO": new RegExp( "^" + pseudos ),
+		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
+			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
+			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
+		"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
+		// For use in libraries implementing .is()
+		// We use this for POS matching in `select`
+		"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
+			whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
+	},
+
+	rinputs = /^(?:input|select|textarea|button)$/i,
+	rheader = /^h\d$/i,
+
+	rnative = /^[^{]+\{\s*\[native \w/,
+
+	// Easily-parseable/retrievable ID or TAG or CLASS selectors
+	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
+
+	rsibling = /[+~]/,
+	rescape = /'|\\/g,
+
+	// CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
+	runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
+	funescape = function( _, escaped, escapedWhitespace ) {
+		var high = "0x" + escaped - 0x10000;
+		// NaN means non-codepoint
+		// Support: Firefox<24
+		// Workaround erroneous numeric interpretation of +"0x"
+		return high !== high || escapedWhitespace ?
+			escaped :
+			high < 0 ?
+				// BMP codepoint
+				String.fromCharCode( high + 0x10000 ) :
+				// Supplemental Plane codepoint (surrogate pair)
+				String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
+	},
+
+	// Used for iframes
+	// See setDocument()
+	// Removing the function wrapper causes a "Permission Denied"
+	// error in IE
+	unloadHandler = function() {
+		setDocument();
+	};
+
+// Optimize for push.apply( _, NodeList )
+try {
+	push.apply(
+		(arr = slice.call( preferredDoc.childNodes )),
+		preferredDoc.childNodes
+	);
+	// Support: Android<4.0
+	// Detect silently failing push.apply
+	arr[ preferredDoc.childNodes.length ].nodeType;
+} catch ( e ) {
+	push = { apply: arr.length ?
+
+		// Leverage slice if possible
+		function( target, els ) {
+			push_native.apply( target, slice.call(els) );
+		} :
+
+		// Support: IE<9
+		// Otherwise append directly
+		function( target, els ) {
+			var j = target.length,
+				i = 0;
+			// Can't trust NodeList.length
+			while ( (target[j++] = els[i++]) ) {}
+			target.length = j - 1;
+		}
+	};
+}
+
+function Sizzle( selector, context, results, seed ) {
+	var m, i, elem, nid, nidselect, match, groups, newSelector,
+		newContext = context && context.ownerDocument,
+
+		// nodeType defaults to 9, since context defaults to document
+		nodeType = context ? context.nodeType : 9;
+
+	results = results || [];
+
+	// Return early from calls with invalid selector or context
+	if ( typeof selector !== "string" || !selector ||
+		nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
+
+		return results;
+	}
+
+	// Try to shortcut find operations (as opposed to filters) in HTML documents
+	if ( !seed ) {
+
+		if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
+			setDocument( context );
+		}
+		context = context || document;
+
+		if ( documentIsHTML ) {
+
+			// If the selector is sufficiently simple, try using a "get*By*" DOM method
+			// (excepting DocumentFragment context, where the methods don't exist)
+			if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
+
+				// ID selector
+				if ( (m = match[1]) ) {
+
+					// Document context
+					if ( nodeType === 9 ) {
+						if ( (elem = context.getElementById( m )) ) {
+
+							// Support: IE, Opera, Webkit
+							// TODO: identify versions
+							// getElementById can match elements by name instead of ID
+							if ( elem.id === m ) {
+								results.push( elem );
+								return results;
+							}
+						} else {
+							return results;
+						}
+
+					// Element context
+					} else {
+
+						// Support: IE, Opera, Webkit
+						// TODO: identify versions
+						// getElementById can match elements by name instead of ID
+						if ( newContext && (elem = newContext.getElementById( m )) &&
+							contains( context, elem ) &&
+							elem.id === m ) {
+
+							results.push( elem );
+							return results;
+						}
+					}
+
+				// Type selector
+				} else if ( match[2] ) {
+					push.apply( results, context.getElementsByTagName( selector ) );
+					return results;
+
+				// Class selector
+				} else if ( (m = match[3]) && support.getElementsByClassName &&
+					context.getElementsByClassName ) {
+
+					push.apply( results, context.getElementsByClassName( m ) );
+					return results;
+				}
+			}
+
+			// Take advantage of querySelectorAll
+			if ( support.qsa &&
+				!compilerCache[ selector + " " ] &&
+				(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
+
+				if ( nodeType !== 1 ) {
+					newContext = context;
+					newSelector = selector;
+
+				// qSA looks outside Element context, which is not what we want
+				// Thanks to Andrew Dupont for this workaround technique
+				// Support: IE <=8
+				// Exclude object elements
+				} else if ( context.nodeName.toLowerCase() !== "object" ) {
+
+					// Capture the context ID, setting it first if necessary
+					if ( (nid = context.getAttribute( "id" )) ) {
+						nid = nid.replace( rescape, "\\$&" );
+					} else {
+						context.setAttribute( "id", (nid = expando) );
+					}
+
+					// Prefix every selector in the list
+					groups = tokenize( selector );
+					i = groups.length;
+					nidselect = ridentifier.test( nid ) ? "#" + nid : "[id='" + nid + "']";
+					while ( i-- ) {
+						groups[i] = nidselect + " " + toSelector( groups[i] );
+					}
+					newSelector = groups.join( "," );
+
+					// Expand context for sibling selectors
+					newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
+						context;
+				}
+
+				if ( newSelector ) {
+					try {
+						push.apply( results,
+							newContext.querySelectorAll( newSelector )
+						);
+						return results;
+					} catch ( qsaError ) {
+					} finally {
+						if ( nid === expando ) {
+							context.removeAttribute( "id" );
+						}
+					}
+				}
+			}
+		}
+	}
+
+	// All others
+	return select( selector.replace( rtrim, "$1" ), context, results, seed );
+}
+
+/**
+ * Create key-value caches of limited size
+ * @returns {function(string, object)} Returns the Object data after storing it on itself with
+ *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
+ *	deleting the oldest entry
+ */
+function createCache() {
+	var keys = [];
+
+	function cache( key, value ) {
+		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
+		if ( keys.push( key + " " ) > Expr.cacheLength ) {
+			// Only keep the most recent entries
+			delete cache[ keys.shift() ];
+		}
+		return (cache[ key + " " ] = value);
+	}
+	return cache;
+}
+
+/**
+ * Mark a function for special use by Sizzle
+ * @param {Function} fn The function to mark
+ */
+function markFunction( fn ) {
+	fn[ expando ] = true;
+	return fn;
+}
+
+/**
+ * Support testing using an element
+ * @param {Function} fn Passed the created div and expects a boolean result
+ */
+function assert( fn ) {
+	var div = document.createElement("div");
+
+	try {
+		return !!fn( div );
+	} catch (e) {
+		return false;
+	} finally {
+		// Remove from its parent by default
+		if ( div.parentNode ) {
+			div.parentNode.removeChild( div );
+		}
+		// release memory in IE
+		div = null;
+	}
+}
+
+/**
+ * Adds the same handler for all of the specified attrs
+ * @param {String} attrs Pipe-separated list of attributes
+ * @param {Function} handler The method that will be applied
+ */
+function addHandle( attrs, handler ) {
+	var arr = attrs.split("|"),
+		i = arr.length;
+
+	while ( i-- ) {
+		Expr.attrHandle[ arr[i] ] = handler;
+	}
+}
+
+/**
+ * Checks document order of two siblings
+ * @param {Element} a
+ * @param {Element} b
+ * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
+ */
+function siblingCheck( a, b ) {
+	var cur = b && a,
+		diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
+			( ~b.sourceIndex || MAX_NEGATIVE ) -
+			( ~a.sourceIndex || MAX_NEGATIVE );
+
+	// Use IE sourceIndex if available on both nodes
+	if ( diff ) {
+		return diff;
+	}
+
+	// Check if b follows a
+	if ( cur ) {
+		while ( (cur = cur.nextSibling) ) {
+			if ( cur === b ) {
+				return -1;
+			}
+		}
+	}
+
+	return a ? 1 : -1;
+}
+
+/**
+ * Returns a function to use in pseudos for input types
+ * @param {String} type
+ */
+function createInputPseudo( type ) {
+	return function( elem ) {
+		var name = elem.nodeName.toLowerCase();
+		return name === "input" && elem.type === type;
+	};
+}
+
+/**
+ * Returns a function to use in pseudos for buttons
+ * @param {String} type
+ */
+function createButtonPseudo( type ) {
+	return function( elem ) {
+		var name = elem.nodeName.toLowerCase();
+		return (name === "input" || name === "button") && elem.type === type;
+	};
+}
+
+/**
+ * Returns a function to use in pseudos for positionals
+ * @param {Function} fn
+ */
+function createPositionalPseudo( fn ) {
+	return markFunction(function( argument ) {
+		argument = +argument;
+		return markFunction(function( seed, matches ) {
+			var j,
+				matchIndexes = fn( [], seed.length, argument ),
+				i = matchIndexes.length;
+
+			// Match elements found at the specified indexes
+			while ( i-- ) {
+				if ( seed[ (j = matchIndexes[i]) ] ) {
+					seed[j] = !(matches[j] = seed[j]);
+				}
+			}
+		});
+	});
+}
+
+/**
+ * Checks a node for validity as a Sizzle context
+ * @param {Element|Object=} context
+ * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
+ */
+function testContext( context ) {
+	return context && typeof context.getElementsByTagName !== "undefined" && context;
+}
+
+// Expose support vars for convenience
+support = Sizzle.support = {};
+
+/**
+ * Detects XML nodes
+ * @param {Element|Object} elem An element or a document
+ * @returns {Boolean} True iff elem is a non-HTML XML node
+ */
+isXML = Sizzle.isXML = function( elem ) {
+	// documentElement is verified for cases where it doesn't yet exist
+	// (such as loading iframes in IE - #4833)
+	var documentElement = elem && (elem.ownerDocument || elem).documentElement;
+	return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+/**
+ * Sets document-related variables once based on the current document
+ * @param {Element|Object} [doc] An element or document object to use to set the document
+ * @returns {Object} Returns the current document
+ */
+setDocument = Sizzle.setDocument = function( node ) {
+	var hasCompare, parent,
+		doc = node ? node.ownerDocument || node : preferredDoc;
+
+	// Return early if doc is invalid or already selected
+	if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
+		return document;
+	}
+
+	// Update global variables
+	document = doc;
+	docElem = document.documentElement;
+	documentIsHTML = !isXML( document );
+
+	// Support: IE 9-11, Edge
+	// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
+	if ( (parent = document.defaultView) && parent.top !== parent ) {
+		// Support: IE 11
+		if ( parent.addEventListener ) {
+			parent.addEventListener( "unload", unloadHandler, false );
+
+		// Support: IE 9 - 10 only
+		} else if ( parent.attachEvent ) {
+			parent.attachEvent( "onunload", unloadHandler );
+		}
+	}
+
+	/* Attributes
+	---------------------------------------------------------------------- */
+
+	// Support: IE<8
+	// Verify that getAttribute really returns attributes and not properties
+	// (excepting IE8 booleans)
+	support.attributes = assert(function( div ) {
+		div.className = "i";
+		return !div.getAttribute("className");
+	});
+
+	/* getElement(s)By*
+	---------------------------------------------------------------------- */
+
+	// Check if getElementsByTagName("*") returns only elements
+	support.getElementsByTagName = assert(function( div ) {
+		div.appendChild( document.createComment("") );
+		return !div.getElementsByTagName("*").length;
+	});
+
+	// Support: IE<9
+	support.getElementsByClassName = rnative.test( document.getElementsByClassName );
+
+	// Support: IE<10
+	// Check if getElementById returns elements by name
+	// The broken getElementById methods don't pick up programatically-set names,
+	// so use a roundabout getElementsByName test
+	support.getById = assert(function( div ) {
+		docElem.appendChild( div ).id = expando;
+		return !document.getElementsByName || !document.getElementsByName( expando ).length;
+	});
+
+	// ID find and filter
+	if ( support.getById ) {
+		Expr.find["ID"] = function( id, context ) {
+			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
+				var m = context.getElementById( id );
+				return m ? [ m ] : [];
+			}
+		};
+		Expr.filter["ID"] = function( id ) {
+			var attrId = id.replace( runescape, funescape );
+			return function( elem ) {
+				return elem.getAttribute("id") === attrId;
+			};
+		};
+	} else {
+		// Support: IE6/7
+		// getElementById is not reliable as a find shortcut
+		delete Expr.find["ID"];
+
+		Expr.filter["ID"] =  function( id ) {
+			var attrId = id.replace( runescape, funescape );
+			return function( elem ) {
+				var node = typeof elem.getAttributeNode !== "undefined" &&
+					elem.getAttributeNode("id");
+				return node && node.value === attrId;
+			};
+		};
+	}
+
+	// Tag
+	Expr.find["TAG"] = support.getElementsByTagName ?
+		function( tag, context ) {
+			if ( typeof context.getElementsByTagName !== "undefined" ) {
+				return context.getElementsByTagName( tag );
+
+			// DocumentFragment nodes don't have gEBTN
+			} else if ( support.qsa ) {
+				return context.querySelectorAll( tag );
+			}
+		} :
+
+		function( tag, context ) {
+			var elem,
+				tmp = [],
+				i = 0,
+				// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
+				results = context.getElementsByTagName( tag );
+
+			// Filter out possible comments
+			if ( tag === "*" ) {
+				while ( (elem = results[i++]) ) {
+					if ( elem.nodeType === 1 ) {
+						tmp.push( elem );
+					}
+				}
+
+				return tmp;
+			}
+			return results;
+		};
+
+	// Class
+	Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
+		if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
+			return context.getElementsByClassName( className );
+		}
+	};
+
+	/* QSA/matchesSelector
+	---------------------------------------------------------------------- */
+
+	// QSA and matchesSelector support
+
+	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
+	rbuggyMatches = [];
+
+	// qSa(:focus) reports false when true (Chrome 21)
+	// We allow this because of a bug in IE8/9 that throws an error
+	// whenever `document.activeElement` is accessed on an iframe
+	// So, we allow :focus to pass through QSA all the time to avoid the IE error
+	// See http://bugs.jquery.com/ticket/13378
+	rbuggyQSA = [];
+
+	if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
+		// Build QSA regex
+		// Regex strategy adopted from Diego Perini
+		assert(function( div ) {
+			// Select is set to empty string on purpose
+			// This is to test IE's treatment of not explicitly
+			// setting a boolean content attribute,
+			// since its presence should be enough
+			// http://bugs.jquery.com/ticket/12359
+			docElem.appendChild( div ).innerHTML = "<a id='" + expando + "'></a>" +
+				"<select id='" + expando + "-\r\\' msallowcapture=''>" +
+				"<option selected=''></option></select>";
+
+			// Support: IE8, Opera 11-12.16
+			// Nothing should be selected when empty strings follow ^= or $= or *=
+			// The test attribute must be unknown in Opera but "safe" for WinRT
+			// http://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
+			if ( div.querySelectorAll("[msallowcapture^='']").length ) {
+				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
+			}
+
+			// Support: IE8
+			// Boolean attributes and "value" are not treated correctly
+			if ( !div.querySelectorAll("[selected]").length ) {
+				rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
+			}
+
+			// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
+			if ( !div.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
+				rbuggyQSA.push("~=");
+			}
+
+			// Webkit/Opera - :checked should return selected option elements
+			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+			// IE8 throws error here and will not see later tests
+			if ( !div.querySelectorAll(":checked").length ) {
+				rbuggyQSA.push(":checked");
+			}
+
+			// Support: Safari 8+, iOS 8+
+			// https://bugs.webkit.org/show_bug.cgi?id=136851
+			// In-page `selector#id sibing-combinator selector` fails
+			if ( !div.querySelectorAll( "a#" + expando + "+*" ).length ) {
+				rbuggyQSA.push(".#.+[+~]");
+			}
+		});
+
+		assert(function( div ) {
+			// Support: Windows 8 Native Apps
+			// The type and name attributes are restricted during .innerHTML assignment
+			var input = document.createElement("input");
+			input.setAttribute( "type", "hidden" );
+			div.appendChild( input ).setAttribute( "name", "D" );
+
+			// Support: IE8
+			// Enforce case-sensitivity of name attribute
+			if ( div.querySelectorAll("[name=d]").length ) {
+				rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
+			}
+
+			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
+			// IE8 throws error here and will not see later tests
+			if ( !div.querySelectorAll(":enabled").length ) {
+				rbuggyQSA.push( ":enabled", ":disabled" );
+			}
+
+			// Opera 10-11 does not throw on post-comma invalid pseudos
+			div.querySelectorAll("*,:x");
+			rbuggyQSA.push(",.*:");
+		});
+	}
+
+	if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
+		docElem.webkitMatchesSelector ||
+		docElem.mozMatchesSelector ||
+		docElem.oMatchesSelector ||
+		docElem.msMatchesSelector) )) ) {
+
+		assert(function( div ) {
+			// Check to see if it's possible to do matchesSelector
+			// on a disconnected node (IE 9)
+			support.disconnectedMatch = matches.call( div, "div" );
+
+			// This should fail with an exception
+			// Gecko does not error, returns false instead
+			matches.call( div, "[s!='']:x" );
+			rbuggyMatches.push( "!=", pseudos );
+		});
+	}
+
+	rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
+	rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
+
+	/* Contains
+	---------------------------------------------------------------------- */
+	hasCompare = rnative.test( docElem.compareDocumentPosition );
+
+	// Element contains another
+	// Purposefully self-exclusive
+	// As in, an element does not contain itself
+	contains = hasCompare || rnative.test( docElem.contains ) ?
+		function( a, b ) {
+			var adown = a.nodeType === 9 ? a.documentElement : a,
+				bup = b && b.parentNode;
+			return a === bup || !!( bup && bup.nodeType === 1 && (
+				adown.contains ?
+					adown.contains( bup ) :
+					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
+			));
+		} :
+		function( a, b ) {
+			if ( b ) {
+				while ( (b = b.parentNode) ) {
+					if ( b === a ) {
+						return true;
+					}
+				}
+			}
+			return false;
+		};
+
+	/* Sorting
+	---------------------------------------------------------------------- */
+
+	// Document order sorting
+	sortOrder = hasCompare ?
+	function( a, b ) {
+
+		// Flag for duplicate removal
+		if ( a === b ) {
+			hasDuplicate = true;
+			return 0;
+		}
+
+		// Sort on method existence if only one input has compareDocumentPosition
+		var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
+		if ( compare ) {
+			return compare;
+		}
+
+		// Calculate position if both inputs belong to the same document
+		compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
+			a.compareDocumentPosition( b ) :
+
+			// Otherwise we know they are disconnected
+			1;
+
+		// Disconnected nodes
+		if ( compare & 1 ||
+			(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
+
+			// Choose the first element that is related to our preferred document
+			if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
+				return -1;
+			}
+			if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
+				return 1;
+			}
+
+			// Maintain original order
+			return sortInput ?
+				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
+				0;
+		}
+
+		return compare & 4 ? -1 : 1;
+	} :
+	function( a, b ) {
+		// Exit early if the nodes are identical
+		if ( a === b ) {
+			hasDuplicate = true;
+			return 0;
+		}
+
+		var cur,
+			i = 0,
+			aup = a.parentNode,
+			bup = b.parentNode,
+			ap = [ a ],
+			bp = [ b ];
+
+		// Parentless nodes are either documents or disconnected
+		if ( !aup || !bup ) {
+			return a === document ? -1 :
+				b === document ? 1 :
+				aup ? -1 :
+				bup ? 1 :
+				sortInput ?
+				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
+				0;
+
+		// If the nodes are siblings, we can do a quick check
+		} else if ( aup === bup ) {
+			return siblingCheck( a, b );
+		}
+
+		// Otherwise we need full lists of their ancestors for comparison
+		cur = a;
+		while ( (cur = cur.parentNode) ) {
+			ap.unshift( cur );
+		}
+		cur = b;
+		while ( (cur = cur.parentNode) ) {
+			bp.unshift( cur );
+		}
+
+		// Walk down the tree looking for a discrepancy
+		while ( ap[i] === bp[i] ) {
+			i++;
+		}
+
+		return i ?
+			// Do a sibling check if the nodes have a common ancestor
+			siblingCheck( ap[i], bp[i] ) :
+
+			// Otherwise nodes in our document sort first
+			ap[i] === preferredDoc ? -1 :
+			bp[i] === preferredDoc ? 1 :
+			0;
+	};
+
+	return document;
+};
+
+Sizzle.matches = function( expr, elements ) {
+	return Sizzle( expr, null, null, elements );
+};
+
+Sizzle.matchesSelector = function( elem, expr ) {
+	// Set document vars if needed
+	if ( ( elem.ownerDocument || elem ) !== document ) {
+		setDocument( elem );
+	}
+
+	// Make sure that attribute selectors are quoted
+	expr = expr.replace( rattributeQuotes, "='$1']" );
+
+	if ( support.matchesSelector && documentIsHTML &&
+		!compilerCache[ expr + " " ] &&
+		( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
+		( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
+
+		try {
+			var ret = matches.call( elem, expr );
+
+			// IE 9's matchesSelector returns false on disconnected nodes
+			if ( ret || support.disconnectedMatch ||
+					// As well, disconnected nodes are said to be in a document
+					// fragment in IE 9
+					elem.document && elem.document.nodeType !== 11 ) {
+				return ret;
+			}
+		} catch (e) {}
+	}
+
+	return Sizzle( expr, document, null, [ elem ] ).length > 0;
+};
+
+Sizzle.contains = function( context, elem ) {
+	// Set document vars if needed
+	if ( ( context.ownerDocument || context ) !== document ) {
+		setDocument( context );
+	}
+	return contains( context, elem );
+};
+
+Sizzle.attr = function( elem, name ) {
+	// Set document vars if needed
+	if ( ( elem.ownerDocument || elem ) !== document ) {
+		setDocument( elem );
+	}
+
+	var fn = Expr.attrHandle[ name.toLowerCase() ],
+		// Don't get fooled by Object.prototype properties (jQuery #13807)
+		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
+			fn( elem, name, !documentIsHTML ) :
+			undefined;
+
+	return val !== undefined ?
+		val :
+		support.attributes || !documentIsHTML ?
+			elem.getAttribute( name ) :
+			(val = elem.getAttributeNode(name)) && val.specified ?
+				val.value :
+				null;
+};
+
+Sizzle.error = function( msg ) {
+	throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+/**
+ * Document sorting and removing duplicates
+ * @param {ArrayLike} results
+ */
+Sizzle.uniqueSort = function( results ) {
+	var elem,
+		duplicates = [],
+		j = 0,
+		i = 0;
+
+	// Unless we *know* we can detect duplicates, assume their presence
+	hasDuplicate = !support.detectDuplicates;
+	sortInput = !support.sortStable && results.slice( 0 );
+	results.sort( sortOrder );
+
+	if ( hasDuplicate ) {
+		while ( (elem = results[i++]) ) {
+			if ( elem === results[ i ] ) {
+				j = duplicates.push( i );
+			}
+		}
+		while ( j-- ) {
+			results.splice( duplicates[ j ], 1 );
+		}
+	}
+
+	// Clear input after sorting to release objects
+	// See https://github.com/jquery/sizzle/pull/225
+	sortInput = null;
+
+	return results;
+};
+
+/**
+ * Utility function for retrieving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+getText = Sizzle.getText = function( elem ) {
+	var node,
+		ret = "",
+		i = 0,
+		nodeType = elem.nodeType;
+
+	if ( !nodeType ) {
+		// If no nodeType, this is expected to be an array
+		while ( (node = elem[i++]) ) {
+			// Do not traverse comment nodes
+			ret += getText( node );
+		}
+	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
+		// Use textContent for elements
+		// innerText usage removed for consistency of new lines (jQuery #11153)
+		if ( typeof elem.textContent === "string" ) {
+			return elem.textContent;
+		} else {
+			// Traverse its children
+			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+				ret += getText( elem );
+			}
+		}
+	} else if ( nodeType === 3 || nodeType === 4 ) {
+		return elem.nodeValue;
+	}
+	// Do not include comment or processing instruction nodes
+
+	return ret;
+};
+
+Expr = Sizzle.selectors = {
+
+	// Can be adjusted by the user
+	cacheLength: 50,
+
+	createPseudo: markFunction,
+
+	match: matchExpr,
+
+	attrHandle: {},
+
+	find: {},
+
+	relative: {
+		">": { dir: "parentNode", first: true },
+		" ": { dir: "parentNode" },
+		"+": { dir: "previousSibling", first: true },
+		"~": { dir: "previousSibling" }
+	},
+
+	preFilter: {
+		"ATTR": function( match ) {
+			match[1] = match[1].replace( runescape, funescape );
+
+			// Move the given value to match[3] whether quoted or unquoted
+			match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
+
+			if ( match[2] === "~=" ) {
+				match[3] = " " + match[3] + " ";
+			}
+
+			return match.slice( 0, 4 );
+		},
+
+		"CHILD": function( match ) {
+			/* matches from matchExpr["CHILD"]
+				1 type (only|nth|...)
+				2 what (child|of-type)
+				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
+				4 xn-component of xn+y argument ([+-]?\d*n|)
+				5 sign of xn-component
+				6 x of xn-component
+				7 sign of y-component
+				8 y of y-component
+			*/
+			match[1] = match[1].toLowerCase();
+
+			if ( match[1].slice( 0, 3 ) === "nth" ) {
+				// nth-* requires argument
+				if ( !match[3] ) {
+					Sizzle.error( match[0] );
+				}
+
+				// numeric x and y parameters for Expr.filter.CHILD
+				// remember that false/true cast respectively to 0/1
+				match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
+				match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
+
+			// other types prohibit arguments
+			} else if ( match[3] ) {
+				Sizzle.error( match[0] );
+			}
+
+			return match;
+		},
+
+		"PSEUDO": function( match ) {
+			var excess,
+				unquoted = !match[6] && match[2];
+
+			if ( matchExpr["CHILD"].test( match[0] ) ) {
+				return null;
+			}
+
+			// Accept quoted arguments as-is
+			if ( match[3] ) {
+				match[2] = match[4] || match[5] || "";
+
+			// Strip excess characters from unquoted arguments
+			} else if ( unquoted && rpseudo.test( unquoted ) &&
+				// Get excess from tokenize (recursively)
+				(excess = tokenize( unquoted, true )) &&
+				// advance to the next closing parenthesis
+				(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
+
+				// excess is a negative index
+				match[0] = match[0].slice( 0, excess );
+				match[2] = unquoted.slice( 0, excess );
+			}
+
+			// Return only captures needed by the pseudo filter method (type and argument)
+			return match.slice( 0, 3 );
+		}
+	},
+
+	filter: {
+
+		"TAG": function( nodeNameSelector ) {
+			var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
+			return nodeNameSelector === "*" ?
+				function() { return true; } :
+				function( elem ) {
+					return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
+				};
+		},
+
+		"CLASS": function( className ) {
+			var pattern = classCache[ className + " " ];
+
+			return pattern ||
+				(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
+				classCache( className, function( elem ) {
+					return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
+				});
+		},
+
+		"ATTR": function( name, operator, check ) {
+			return function( elem ) {
+				var result = Sizzle.attr( elem, name );
+
+				if ( result == null ) {
+					return operator === "!=";
+				}
+				if ( !operator ) {
+					return true;
+				}
+
+				result += "";
+
+				return operator === "=" ? result === check :
+					operator === "!=" ? result !== check :
+					operator === "^=" ? check && result.indexOf( check ) === 0 :
+					operator === "*=" ? check && result.indexOf( check ) > -1 :
+					operator === "$=" ? check && result.slice( -check.length ) === check :
+					operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
+					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
+					false;
+			};
+		},
+
+		"CHILD": function( type, what, argument, first, last ) {
+			var simple = type.slice( 0, 3 ) !== "nth",
+				forward = type.slice( -4 ) !== "last",
+				ofType = what === "of-type";
+
+			return first === 1 && last === 0 ?
+
+				// Shortcut for :nth-*(n)
+				function( elem ) {
+					return !!elem.parentNode;
+				} :
+
+				function( elem, context, xml ) {
+					var cache, uniqueCache, outerCache, node, nodeIndex, start,
+						dir = simple !== forward ? "nextSibling" : "previousSibling",
+						parent = elem.parentNode,
+						name = ofType && elem.nodeName.toLowerCase(),
+						useCache = !xml && !ofType,
+						diff = false;
+
+					if ( parent ) {
+
+						// :(first|last|only)-(child|of-type)
+						if ( simple ) {
+							while ( dir ) {
+								node = elem;
+								while ( (node = node[ dir ]) ) {
+									if ( ofType ?
+										node.nodeName.toLowerCase() === name :
+										node.nodeType === 1 ) {
+
+										return false;
+									}
+								}
+								// Reverse direction for :only-* (if we haven't yet done so)
+								start = dir = type === "only" && !start && "nextSibling";
+							}
+							return true;
+						}
+
+						start = [ forward ? parent.firstChild : parent.lastChild ];
+
+						// non-xml :nth-child(...) stores cache data on `parent`
+						if ( forward && useCache ) {
+
+							// Seek `elem` from a previously-cached index
+
+							// ...in a gzip-friendly way
+							node = parent;
+							outerCache = node[ expando ] || (node[ expando ] = {});
+
+							// Support: IE <9 only
+							// Defend against cloned attroperties (jQuery gh-1709)
+							uniqueCache = outerCache[ node.uniqueID ] ||
+								(outerCache[ node.uniqueID ] = {});
+
+							cache = uniqueCache[ type ] || [];
+							nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
+							diff = nodeIndex && cache[ 2 ];
+							node = nodeIndex && parent.childNodes[ nodeIndex ];
+
+							while ( (node = ++nodeIndex && node && node[ dir ] ||
+
+								// Fallback to seeking `elem` from the start
+								(diff = nodeIndex = 0) || start.pop()) ) {
+
+								// When found, cache indexes on `parent` and break
+								if ( node.nodeType === 1 && ++diff && node === elem ) {
+									uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
+									break;
+								}
+							}
+
+						} else {
+							// Use previously-cached element index if available
+							if ( useCache ) {
+								// ...in a gzip-friendly way
+								node = elem;
+								outerCache = node[ expando ] || (node[ expando ] = {});
+
+								// Support: IE <9 only
+								// Defend against cloned attroperties (jQuery gh-1709)
+								uniqueCache = outerCache[ node.uniqueID ] ||
+									(outerCache[ node.uniqueID ] = {});
+
+								cache = uniqueCache[ type ] || [];
+								nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
+								diff = nodeIndex;
+							}
+
+							// xml :nth-child(...)
+							// or :nth-last-child(...) or :nth(-last)?-of-type(...)
+							if ( diff === false ) {
+								// Use the same loop as above to seek `elem` from the start
+								while ( (node = ++nodeIndex && node && node[ dir ] ||
+									(diff = nodeIndex = 0) || start.pop()) ) {
+
+									if ( ( ofType ?
+										node.nodeName.toLowerCase() === name :
+										node.nodeType === 1 ) &&
+										++diff ) {
+
+										// Cache the index of each encountered element
+										if ( useCache ) {
+											outerCache = node[ expando ] || (node[ expando ] = {});
+
+											// Support: IE <9 only
+											// Defend against cloned attroperties (jQuery gh-1709)
+											uniqueCache = outerCache[ node.uniqueID ] ||
+												(outerCache[ node.uniqueID ] = {});
+
+											uniqueCache[ type ] = [ dirruns, diff ];
+										}
+
+										if ( node === elem ) {
+											break;
+										}
+									}
+								}
+							}
+						}
+
+						// Incorporate the offset, then check against cycle size
+						diff -= last;
+						return diff === first || ( diff % first === 0 && diff / first >= 0 );
+					}
+				};
+		},
+
+		"PSEUDO": function( pseudo, argument ) {
+			// pseudo-class names are case-insensitive
+			// http://www.w3.org/TR/selectors/#pseudo-classes
+			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
+			// Remember that setFilters inherits from pseudos
+			var args,
+				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
+					Sizzle.error( "unsupported pseudo: " + pseudo );
+
+			// The user may use createPseudo to indicate that
+			// arguments are needed to create the filter function
+			// just as Sizzle does
+			if ( fn[ expando ] ) {
+				return fn( argument );
+			}
+
+			// But maintain support for old signatures
+			if ( fn.length > 1 ) {
+				args = [ pseudo, pseudo, "", argument ];
+				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
+					markFunction(function( seed, matches ) {
+						var idx,
+							matched = fn( seed, argument ),
+							i = matched.length;
+						while ( i-- ) {
+							idx = indexOf( seed, matched[i] );
+							seed[ idx ] = !( matches[ idx ] = matched[i] );
+						}
+					}) :
+					function( elem ) {
+						return fn( elem, 0, args );
+					};
+			}
+
+			return fn;
+		}
+	},
+
+	pseudos: {
+		// Potentially complex pseudos
+		"not": markFunction(function( selector ) {
+			// Trim the selector passed to compile
+			// to avoid treating leading and trailing
+			// spaces as combinators
+			var input = [],
+				results = [],
+				matcher = compile( selector.replace( rtrim, "$1" ) );
+
+			return matcher[ expando ] ?
+				markFunction(function( seed, matches, context, xml ) {
+					var elem,
+						unmatched = matcher( seed, null, xml, [] ),
+						i = seed.length;
+
+					// Match elements unmatched by `matcher`
+					while ( i-- ) {
+						if ( (elem = unmatched[i]) ) {
+							seed[i] = !(matches[i] = elem);
+						}
+					}
+				}) :
+				function( elem, context, xml ) {
+					input[0] = elem;
+					matcher( input, null, xml, results );
+					// Don't keep the element (issue #299)
+					input[0] = null;
+					return !results.pop();
+				};
+		}),
+
+		"has": markFunction(function( selector ) {
+			return function( elem ) {
+				return Sizzle( selector, elem ).length > 0;
+			};
+		}),
+
+		"contains": markFunction(function( text ) {
+			text = text.replace( runescape, funescape );
+			return function( elem ) {
+				return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
+			};
+		}),
+
+		// "Whether an element is represented by a :lang() selector
+		// is based solely on the element's language value
+		// being equal to the identifier C,
+		// or beginning with the identifier C immediately followed by "-".
+		// The matching of C against the element's language value is performed case-insensitively.
+		// The identifier C does not have to be a valid language name."
+		// http://www.w3.org/TR/selectors/#lang-pseudo
+		"lang": markFunction( function( lang ) {
+			// lang value must be a valid identifier
+			if ( !ridentifier.test(lang || "") ) {
+				Sizzle.error( "unsupported lang: " + lang );
+			}
+			lang = lang.replace( runescape, funescape ).toLowerCase();
+			return function( elem ) {
+				var elemLang;
+				do {
+					if ( (elemLang = documentIsHTML ?
+						elem.lang :
+						elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
+
+						elemLang = elemLang.toLowerCase();
+						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
+					}
+				} while ( (elem = elem.parentNode) && elem.nodeType === 1 );
+				return false;
+			};
+		}),
+
+		// Miscellaneous
+		"target": function( elem ) {
+			var hash = window.location && window.location.hash;
+			return hash && hash.slice( 1 ) === elem.id;
+		},
+
+		"root": function( elem ) {
+			return elem === docElem;
+		},
+
+		"focus": function( elem ) {
+			return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
+		},
+
+		// Boolean properties
+		"enabled": function( elem ) {
+			return elem.disabled === false;
+		},
+
+		"disabled": function( elem ) {
+			return elem.disabled === true;
+		},
+
+		"checked": function( elem ) {
+			// In CSS3, :checked should return both checked and selected elements
+			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+			var nodeName = elem.nodeName.toLowerCase();
+			return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
+		},
+
+		"selected": function( elem ) {
+			// Accessing this property makes selected-by-default
+			// options in Safari work properly
+			if ( elem.parentNode ) {
+				elem.parentNode.selectedIndex;
+			}
+
+			return elem.selected === true;
+		},
+
+		// Contents
+		"empty": function( elem ) {
+			// http://www.w3.org/TR/selectors/#empty-pseudo
+			// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
+			//   but not by others (comment: 8; processing instruction: 7; etc.)
+			// nodeType < 6 works because attributes (2) do not appear as children
+			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+				if ( elem.nodeType < 6 ) {
+					return false;
+				}
+			}
+			return true;
+		},
+
+		"parent": function( elem ) {
+			return !Expr.pseudos["empty"]( elem );
+		},
+
+		// Element/input types
+		"header": function( elem ) {
+			return rheader.test( elem.nodeName );
+		},
+
+		"input": function( elem ) {
+			return rinputs.test( elem.nodeName );
+		},
+
+		"button": function( elem ) {
+			var name = elem.nodeName.toLowerCase();
+			return name === "input" && elem.type === "button" || name === "button";
+		},
+
+		"text": function( elem ) {
+			var attr;
+			return elem.nodeName.toLowerCase() === "input" &&
+				elem.type === "text" &&
+
+				// Support: IE<8
+				// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
+				( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
+		},
+
+		// Position-in-collection
+		"first": createPositionalPseudo(function() {
+			return [ 0 ];
+		}),
+
+		"last": createPositionalPseudo(function( matchIndexes, length ) {
+			return [ length - 1 ];
+		}),
+
+		"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
+			return [ argument < 0 ? argument + length : argument ];
+		}),
+
+		"even": createPositionalPseudo(function( matchIndexes, length ) {
+			var i = 0;
+			for ( ; i < length; i += 2 ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		}),
+
+		"odd": createPositionalPseudo(function( matchIndexes, length ) {
+			var i = 1;
+			for ( ; i < length; i += 2 ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		}),
+
+		"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+			var i = argument < 0 ? argument + length : argument;
+			for ( ; --i >= 0; ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		}),
+
+		"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+			var i = argument < 0 ? argument + length : argument;
+			for ( ; ++i < length; ) {
+				matchIndexes.push( i );
+			}
+			return matchIndexes;
+		})
+	}
+};
+
+Expr.pseudos["nth"] = Expr.pseudos["eq"];
+
+// Add button/input type pseudos
+for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
+	Expr.pseudos[ i ] = createInputPseudo( i );
+}
+for ( i in { submit: true, reset: true } ) {
+	Expr.pseudos[ i ] = createButtonPseudo( i );
+}
+
+// Easy API for creating new setFilters
+function setFilters() {}
+setFilters.prototype = Expr.filters = Expr.pseudos;
+Expr.setFilters = new setFilters();
+
+tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
+	var matched, match, tokens, type,
+		soFar, groups, preFilters,
+		cached = tokenCache[ selector + " " ];
+
+	if ( cached ) {
+		return parseOnly ? 0 : cached.slice( 0 );
+	}
+
+	soFar = selector;
+	groups = [];
+	preFilters = Expr.preFilter;
+
+	while ( soFar ) {
+
+		// Comma and first run
+		if ( !matched || (match = rcomma.exec( soFar )) ) {
+			if ( match ) {
+				// Don't consume trailing commas as valid
+				soFar = soFar.slice( match[0].length ) || soFar;
+			}
+			groups.push( (tokens = []) );
+		}
+
+		matched = false;
+
+		// Combinators
+		if ( (match = rcombinators.exec( soFar )) ) {
+			matched = match.shift();
+			tokens.push({
+				value: matched,
+				// Cast descendant combinators to space
+				type: match[0].replace( rtrim, " " )
+			});
+			soFar = soFar.slice( matched.length );
+		}
+
+		// Filters
+		for ( type in Expr.filter ) {
+			if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
+				(match = preFilters[ type ]( match ))) ) {
+				matched = match.shift();
+				tokens.push({
+					value: matched,
+					type: type,
+					matches: match
+				});
+				soFar = soFar.slice( matched.length );
+			}
+		}
+
+		if ( !matched ) {
+			break;
+		}
+	}
+
+	// Return the length of the invalid excess
+	// if we're just parsing
+	// Otherwise, throw an error or return tokens
+	return parseOnly ?
+		soFar.length :
+		soFar ?
+			Sizzle.error( selector ) :
+			// Cache the tokens
+			tokenCache( selector, groups ).slice( 0 );
+};
+
+function toSelector( tokens ) {
+	var i = 0,
+		len = tokens.length,
+		selector = "";
+	for ( ; i < len; i++ ) {
+		selector += tokens[i].value;
+	}
+	return selector;
+}
+
+function addCombinator( matcher, combinator, base ) {
+	var dir = combinator.dir,
+		checkNonElements = base && dir === "parentNode",
+		doneName = done++;
+
+	return combinator.first ?
+		// Check against closest ancestor/preceding element
+		function( elem, context, xml ) {
+			while ( (elem = elem[ dir ]) ) {
+				if ( elem.nodeType === 1 || checkNonElements ) {
+					return matcher( elem, context, xml );
+				}
+			}
+		} :
+
+		// Check against all ancestor/preceding elements
+		function( elem, context, xml ) {
+			var oldCache, uniqueCache, outerCache,
+				newCache = [ dirruns, doneName ];
+
+			// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
+			if ( xml ) {
+				while ( (elem = elem[ dir ]) ) {
+					if ( elem.nodeType === 1 || checkNonElements ) {
+						if ( matcher( elem, context, xml ) ) {
+							return true;
+						}
+					}
+				}
+			} else {
+				while ( (elem = elem[ dir ]) ) {
+					if ( elem.nodeType === 1 || checkNonElements ) {
+						outerCache = elem[ expando ] || (elem[ expando ] = {});
+
+						// Support: IE <9 only
+						// Defend against cloned attroperties (jQuery gh-1709)
+						uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
+
+						if ( (oldCache = uniqueCache[ dir ]) &&
+							oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
+
+							// Assign to newCache so results back-propagate to previous elements
+							return (newCache[ 2 ] = oldCache[ 2 ]);
+						} else {
+							// Reuse newcache so results back-propagate to previous elements
+							uniqueCache[ dir ] = newCache;
+
+							// A match means we're done; a fail means we have to keep checking
+							if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
+								return true;
+							}
+						}
+					}
+				}
+			}
+		};
+}
+
+function elementMatcher( matchers ) {
+	return matchers.length > 1 ?
+		function( elem, context, xml ) {
+			var i = matchers.length;
+			while ( i-- ) {
+				if ( !matchers[i]( elem, context, xml ) ) {
+					return false;
+				}
+			}
+			return true;
+		} :
+		matchers[0];
+}
+
+function multipleContexts( selector, contexts, results ) {
+	var i = 0,
+		len = contexts.length;
+	for ( ; i < len; i++ ) {
+		Sizzle( selector, contexts[i], results );
+	}
+	return results;
+}
+
+function condense( unmatched, map, filter, context, xml ) {
+	var elem,
+		newUnmatched = [],
+		i = 0,
+		len = unmatched.length,
+		mapped = map != null;
+
+	for ( ; i < len; i++ ) {
+		if ( (elem = unmatched[i]) ) {
+			if ( !filter || filter( elem, context, xml ) ) {
+				newUnmatched.push( elem );
+				if ( mapped ) {
+					map.push( i );
+				}
+			}
+		}
+	}
+
+	return newUnmatched;
+}
+
+function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
+	if ( postFilter && !postFilter[ expando ] ) {
+		postFilter = setMatcher( postFilter );
+	}
+	if ( postFinder && !postFinder[ expando ] ) {
+		postFinder = setMatcher( postFinder, postSelector );
+	}
+	return markFunction(function( seed, results, context, xml ) {
+		var temp, i, elem,
+			preMap = [],
+			postMap = [],
+			preexisting = results.length,
+
+			// Get initial elements from seed or context
+			elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
+
+			// Prefilter to get matcher input, preserving a map for seed-results synchronization
+			matcherIn = preFilter && ( seed || !selector ) ?
+				condense( elems, preMap, preFilter, context, xml ) :
+				elems,
+
+			matcherOut = matcher ?
+				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
+				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
+
+					// ...intermediate processing is necessary
+					[] :
+
+					// ...otherwise use results directly
+					results :
+				matcherIn;
+
+		// Find primary matches
+		if ( matcher ) {
+			matcher( matcherIn, matcherOut, context, xml );
+		}
+
+		// Apply postFilter
+		if ( postFilter ) {
+			temp = condense( matcherOut, postMap );
+			postFilter( temp, [], context, xml );
+
+			// Un-match failing elements by moving them back to matcherIn
+			i = temp.length;
+			while ( i-- ) {
+				if ( (elem = temp[i]) ) {
+					matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
+				}
+			}
+		}
+
+		if ( seed ) {
+			if ( postFinder || preFilter ) {
+				if ( postFinder ) {
+					// Get the final matcherOut by condensing this intermediate into postFinder contexts
+					temp = [];
+					i = matcherOut.length;
+					while ( i-- ) {
+						if ( (elem = matcherOut[i]) ) {
+							// Restore matcherIn since elem is not yet a final match
+							temp.push( (matcherIn[i] = elem) );
+						}
+					}
+					postFinder( null, (matcherOut = []), temp, xml );
+				}
+
+				// Move matched elements from seed to results to keep them synchronized
+				i = matcherOut.length;
+				while ( i-- ) {
+					if ( (elem = matcherOut[i]) &&
+						(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
+
+						seed[temp] = !(results[temp] = elem);
+					}
+				}
+			}
+
+		// Add elements to results, through postFinder if defined
+		} else {
+			matcherOut = condense(
+				matcherOut === results ?
+					matcherOut.splice( preexisting, matcherOut.length ) :
+					matcherOut
+			);
+			if ( postFinder ) {
+				postFinder( null, results, matcherOut, xml );
+			} else {
+				push.apply( results, matcherOut );
+			}
+		}
+	});
+}
+
+function matcherFromTokens( tokens ) {
+	var checkContext, matcher, j,
+		len = tokens.length,
+		leadingRelative = Expr.relative[ tokens[0].type ],
+		implicitRelative = leadingRelative || Expr.relative[" "],
+		i = leadingRelative ? 1 : 0,
+
+		// The foundational matcher ensures that elements are reachable from top-level context(s)
+		matchContext = addCombinator( function( elem ) {
+			return elem === checkContext;
+		}, implicitRelative, true ),
+		matchAnyContext = addCombinator( function( elem ) {
+			return indexOf( checkContext, elem ) > -1;
+		}, implicitRelative, true ),
+		matchers = [ function( elem, context, xml ) {
+			var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
+				(checkContext = context).nodeType ?
+					matchContext( elem, context, xml ) :
+					matchAnyContext( elem, context, xml ) );
+			// Avoid hanging onto element (issue #299)
+			checkContext = null;
+			return ret;
+		} ];
+
+	for ( ; i < len; i++ ) {
+		if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
+			matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
+		} else {
+			matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
+
+			// Return special upon seeing a positional matcher
+			if ( matcher[ expando ] ) {
+				// Find the next relative operator (if any) for proper handling
+				j = ++i;
+				for ( ; j < len; j++ ) {
+					if ( Expr.relative[ tokens[j].type ] ) {
+						break;
+					}
+				}
+				return setMatcher(
+					i > 1 && elementMatcher( matchers ),
+					i > 1 && toSelector(
+						// If the preceding token was a descendant combinator, insert an implicit any-element `*`
+						tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
+					).replace( rtrim, "$1" ),
+					matcher,
+					i < j && matcherFromTokens( tokens.slice( i, j ) ),
+					j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
+					j < len && toSelector( tokens )
+				);
+			}
+			matchers.push( matcher );
+		}
+	}
+
+	return elementMatcher( matchers );
+}
+
+function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
+	var bySet = setMatchers.length > 0,
+		byElement = elementMatchers.length > 0,
+		superMatcher = function( seed, context, xml, results, outermost ) {
+			var elem, j, matcher,
+				matchedCount = 0,
+				i = "0",
+				unmatched = seed && [],
+				setMatched = [],
+				contextBackup = outermostContext,
+				// We must always have either seed elements or outermost context
+				elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
+				// Use integer dirruns iff this is the outermost matcher
+				dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
+				len = elems.length;
+
+			if ( outermost ) {
+				outermostContext = context === document || context || outermost;
+			}
+
+			// Add elements passing elementMatchers directly to results
+			// Support: IE<9, Safari
+			// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
+			for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
+				if ( byElement && elem ) {
+					j = 0;
+					if ( !context && elem.ownerDocument !== document ) {
+						setDocument( elem );
+						xml = !documentIsHTML;
+					}
+					while ( (matcher = elementMatchers[j++]) ) {
+						if ( matcher( elem, context || document, xml) ) {
+							results.push( elem );
+							break;
+						}
+					}
+					if ( outermost ) {
+						dirruns = dirrunsUnique;
+					}
+				}
+
+				// Track unmatched elements for set filters
+				if ( bySet ) {
+					// They will have gone through all possible matchers
+					if ( (elem = !matcher && elem) ) {
+						matchedCount--;
+					}
+
+					// Lengthen the array for every element, matched or not
+					if ( seed ) {
+						unmatched.push( elem );
+					}
+				}
+			}
+
+			// `i` is now the count of elements visited above, and adding it to `matchedCount`
+			// makes the latter nonnegative.
+			matchedCount += i;
+
+			// Apply set filters to unmatched elements
+			// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
+			// equals `i`), unless we didn't visit _any_ elements in the above loop because we have
+			// no element matchers and no seed.
+			// Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
+			// case, which will result in a "00" `matchedCount` that differs from `i` but is also
+			// numerically zero.
+			if ( bySet && i !== matchedCount ) {
+				j = 0;
+				while ( (matcher = setMatchers[j++]) ) {
+					matcher( unmatched, setMatched, context, xml );
+				}
+
+				if ( seed ) {
+					// Reintegrate element matches to eliminate the need for sorting
+					if ( matchedCount > 0 ) {
+						while ( i-- ) {
+							if ( !(unmatched[i] || setMatched[i]) ) {
+								setMatched[i] = pop.call( results );
+							}
+						}
+					}
+
+					// Discard index placeholder values to get only actual matches
+					setMatched = condense( setMatched );
+				}
+
+				// Add matches to results
+				push.apply( results, setMatched );
+
+				// Seedless set matches succeeding multiple successful matchers stipulate sorting
+				if ( outermost && !seed && setMatched.length > 0 &&
+					( matchedCount + setMatchers.length ) > 1 ) {
+
+					Sizzle.uniqueSort( results );
+				}
+			}
+
+			// Override manipulation of globals by nested matchers
+			if ( outermost ) {
+				dirruns = dirrunsUnique;
+				outermostContext = contextBackup;
+			}
+
+			return unmatched;
+		};
+
+	return bySet ?
+		markFunction( superMatcher ) :
+		superMatcher;
+}
+
+compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
+	var i,
+		setMatchers = [],
+		elementMatchers = [],
+		cached = compilerCache[ selector + " " ];
+
+	if ( !cached ) {
+		// Generate a function of recursive functions that can be used to check each element
+		if ( !match ) {
+			match = tokenize( selector );
+		}
+		i = match.length;
+		while ( i-- ) {
+			cached = matcherFromTokens( match[i] );
+			if ( cached[ expando ] ) {
+				setMatchers.push( cached );
+			} else {
+				elementMatchers.push( cached );
+			}
+		}
+
+		// Cache the compiled function
+		cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
+
+		// Save selector and tokenization
+		cached.selector = selector;
+	}
+	return cached;
+};
+
+/**
+ * A low-level selection function that works with Sizzle's compiled
+ *  selector functions
+ * @param {String|Function} selector A selector or a pre-compiled
+ *  selector function built with Sizzle.compile
+ * @param {Element} context
+ * @param {Array} [results]
+ * @param {Array} [seed] A set of elements to match against
+ */
+select = Sizzle.select = function( selector, context, results, seed ) {
+	var i, tokens, token, type, find,
+		compiled = typeof selector === "function" && selector,
+		match = !seed && tokenize( (selector = compiled.selector || selector) );
+
+	results = results || [];
+
+	// Try to minimize operations if there is only one selector in the list and no seed
+	// (the latter of which guarantees us context)
+	if ( match.length === 1 ) {
+
+		// Reduce context if the leading compound selector is an ID
+		tokens = match[0] = match[0].slice( 0 );
+		if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
+				support.getById && context.nodeType === 9 && documentIsHTML &&
+				Expr.relative[ tokens[1].type ] ) {
+
+			context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
+			if ( !context ) {
+				return results;
+
+			// Precompiled matchers will still verify ancestry, so step up a level
+			} else if ( compiled ) {
+				context = context.parentNode;
+			}
+
+			selector = selector.slice( tokens.shift().value.length );
+		}
+
+		// Fetch a seed set for right-to-left matching
+		i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
+		while ( i-- ) {
+			token = tokens[i];
+
+			// Abort if we hit a combinator
+			if ( Expr.relative[ (type = token.type) ] ) {
+				break;
+			}
+			if ( (find = Expr.find[ type ]) ) {
+				// Search, expanding context for leading sibling combinators
+				if ( (seed = find(
+					token.matches[0].replace( runescape, funescape ),
+					rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
+				)) ) {
+
+					// If seed is empty or no tokens remain, we can return early
+					tokens.splice( i, 1 );
+					selector = seed.length && toSelector( tokens );
+					if ( !selector ) {
+						push.apply( results, seed );
+						return results;
+					}
+
+					break;
+				}
+			}
+		}
+	}
+
+	// Compile and execute a filtering function if one is not provided
+	// Provide `match` to avoid retokenization if we modified the selector above
+	( compiled || compile( selector, match ) )(
+		seed,
+		context,
+		!documentIsHTML,
+		results,
+		!context || rsibling.test( selector ) && testContext( context.parentNode ) || context
+	);
+	return results;
+};
+
+// One-time assignments
+
+// Sort stability
+support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
+
+// Support: Chrome 14-35+
+// Always assume duplicates if they aren't passed to the comparison function
+support.detectDuplicates = !!hasDuplicate;
+
+// Initialize against the default document
+setDocument();
+
+// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
+// Detached nodes confoundingly follow *each other*
+support.sortDetached = assert(function( div1 ) {
+	// Should return 1, but returns 4 (following)
+	return div1.compareDocumentPosition( document.createElement("div") ) & 1;
+});
+
+// Support: IE<8
+// Prevent attribute/property "interpolation"
+// http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
+if ( !assert(function( div ) {
+	div.innerHTML = "<a href='#'></a>";
+	return div.firstChild.getAttribute("href") === "#" ;
+}) ) {
+	addHandle( "type|href|height|width", function( elem, name, isXML ) {
+		if ( !isXML ) {
+			return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
+		}
+	});
+}
+
+// Support: IE<9
+// Use defaultValue in place of getAttribute("value")
+if ( !support.attributes || !assert(function( div ) {
+	div.innerHTML = "<input/>";
+	div.firstChild.setAttribute( "value", "" );
+	return div.firstChild.getAttribute( "value" ) === "";
+}) ) {
+	addHandle( "value", function( elem, name, isXML ) {
+		if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
+			return elem.defaultValue;
+		}
+	});
+}
+
+// Support: IE<9
+// Use getAttributeNode to fetch booleans when getAttribute lies
+if ( !assert(function( div ) {
+	return div.getAttribute("disabled") == null;
+}) ) {
+	addHandle( booleans, function( elem, name, isXML ) {
+		var val;
+		if ( !isXML ) {
+			return elem[ name ] === true ? name.toLowerCase() :
+					(val = elem.getAttributeNode( name )) && val.specified ?
+					val.value :
+				null;
+		}
+	});
+}
+
+return Sizzle;
+
+})( window );
+
+
+
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[ ":" ] = jQuery.expr.pseudos;
+jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+
+var dir = function( elem, dir, until ) {
+	var matched = [],
+		truncate = until !== undefined;
+
+	while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
+		if ( elem.nodeType === 1 ) {
+			if ( truncate && jQuery( elem ).is( until ) ) {
+				break;
+			}
+			matched.push( elem );
+		}
+	}
+	return matched;
+};
+
+
+var siblings = function( n, elem ) {
+	var matched = [];
+
+	for ( ; n; n = n.nextSibling ) {
+		if ( n.nodeType === 1 && n !== elem ) {
+			matched.push( n );
+		}
+	}
+
+	return matched;
+};
+
+
+var rneedsContext = jQuery.expr.match.needsContext;
+
+var rsingleTag = ( /^<([\w-]+)\s*\/?>(?:<\/\1>|)$/ );
+
+
+
+var risSimple = /^.[^:#\[\.,]*$/;
+
+// Implement the identical functionality for filter and not
+function winnow( elements, qualifier, not ) {
+	if ( jQuery.isFunction( qualifier ) ) {
+		return jQuery.grep( elements, function( elem, i ) {
+			/* jshint -W018 */
+			return !!qualifier.call( elem, i, elem ) !== not;
+		} );
+
+	}
+
+	if ( qualifier.nodeType ) {
+		return jQuery.grep( elements, function( elem ) {
+			return ( elem === qualifier ) !== not;
+		} );
+
+	}
+
+	if ( typeof qualifier === "string" ) {
+		if ( risSimple.test( qualifier ) ) {
+			return jQuery.filter( qualifier, elements, not );
+		}
+
+		qualifier = jQuery.filter( qualifier, elements );
+	}
+
+	return jQuery.grep( elements, function( elem ) {
+		return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
+	} );
+}
+
+jQuery.filter = function( expr, elems, not ) {
+	var elem = elems[ 0 ];
+
+	if ( not ) {
+		expr = ":not(" + expr + ")";
+	}
+
+	return elems.length === 1 && elem.nodeType === 1 ?
+		jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
+		jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
+			return elem.nodeType === 1;
+		} ) );
+};
+
+jQuery.fn.extend( {
+	find: function( selector ) {
+		var i,
+			len = this.length,
+			ret = [],
+			self = this;
+
+		if ( typeof selector !== "string" ) {
+			return this.pushStack( jQuery( selector ).filter( function() {
+				for ( i = 0; i < len; i++ ) {
+					if ( jQuery.contains( self[ i ], this ) ) {
+						return true;
+					}
+				}
+			} ) );
+		}
+
+		for ( i = 0; i < len; i++ ) {
+			jQuery.find( selector, self[ i ], ret );
+		}
+
+		// Needed because $( selector, context ) becomes $( context ).find( selector )
+		ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
+		ret.selector = this.selector ? this.selector + " " + selector : selector;
+		return ret;
+	},
+	filter: function( selector ) {
+		return this.pushStack( winnow( this, selector || [], false ) );
+	},
+	not: function( selector ) {
+		return this.pushStack( winnow( this, selector || [], true ) );
+	},
+	is: function( selector ) {
+		return !!winnow(
+			this,
+
+			// If this is a positional/relative selector, check membership in the returned set
+			// so $("p:first").is("p:last") won't return true for a doc with two "p".
+			typeof selector === "string" && rneedsContext.test( selector ) ?
+				jQuery( selector ) :
+				selector || [],
+			false
+		).length;
+	}
+} );
+
+
+// Initialize a jQuery object
+
+
+// A central reference to the root jQuery(document)
+var rootjQuery,
+
+	// A simple way to check for HTML strings
+	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
+	// Strict HTML recognition (#11290: must start with <)
+	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
+
+	init = jQuery.fn.init = function( selector, context, root ) {
+		var match, elem;
+
+		// HANDLE: $(""), $(null), $(undefined), $(false)
+		if ( !selector ) {
+			return this;
+		}
+
+		// Method init() accepts an alternate rootjQuery
+		// so migrate can support jQuery.sub (gh-2101)
+		root = root || rootjQuery;
+
+		// Handle HTML strings
+		if ( typeof selector === "string" ) {
+			if ( selector[ 0 ] === "<" &&
+				selector[ selector.length - 1 ] === ">" &&
+				selector.length >= 3 ) {
+
+				// Assume that strings that start and end with <> are HTML and skip the regex check
+				match = [ null, selector, null ];
+
+			} else {
+				match = rquickExpr.exec( selector );
+			}
+
+			// Match html or make sure no context is specified for #id
+			if ( match && ( match[ 1 ] || !context ) ) {
+
+				// HANDLE: $(html) -> $(array)
+				if ( match[ 1 ] ) {
+					context = context instanceof jQuery ? context[ 0 ] : context;
+
+					// Option to run scripts is true for back-compat
+					// Intentionally let the error be thrown if parseHTML is not present
+					jQuery.merge( this, jQuery.parseHTML(
+						match[ 1 ],
+						context && context.nodeType ? context.ownerDocument || context : document,
+						true
+					) );
+
+					// HANDLE: $(html, props)
+					if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
+						for ( match in context ) {
+
+							// Properties of context are called as methods if possible
+							if ( jQuery.isFunction( this[ match ] ) ) {
+								this[ match ]( context[ match ] );
+
+							// ...and otherwise set as attributes
+							} else {
+								this.attr( match, context[ match ] );
+							}
+						}
+					}
+
+					return this;
+
+				// HANDLE: $(#id)
+				} else {
+					elem = document.getElementById( match[ 2 ] );
+
+					// Support: Blackberry 4.6
+					// gEBID returns nodes no longer in the document (#6963)
+					if ( elem && elem.parentNode ) {
+
+						// Inject the element directly into the jQuery object
+						this.length = 1;
+						this[ 0 ] = elem;
+					}
+
+					this.context = document;
+					this.selector = selector;
+					return this;
+				}
+
+			// HANDLE: $(expr, $(...))
+			} else if ( !context || context.jquery ) {
+				return ( context || root ).find( selector );
+
+			// HANDLE: $(expr, context)
+			// (which is just equivalent to: $(context).find(expr)
+			} else {
+				return this.constructor( context ).find( selector );
+			}
+
+		// HANDLE: $(DOMElement)
+		} else if ( selector.nodeType ) {
+			this.context = this[ 0 ] = selector;
+			this.length = 1;
+			return this;
+
+		// HANDLE: $(function)
+		// Shortcut for document ready
+		} else if ( jQuery.isFunction( selector ) ) {
+			return root.ready !== undefined ?
+				root.ready( selector ) :
+
+				// Execute immediately if ready is not present
+				selector( jQuery );
+		}
+
+		if ( selector.selector !== undefined ) {
+			this.selector = selector.selector;
+			this.context = selector.context;
+		}
+
+		return jQuery.makeArray( selector, this );
+	};
+
+// Give the init function the jQuery prototype for later instantiation
+init.prototype = jQuery.fn;
+
+// Initialize central reference
+rootjQuery = jQuery( document );
+
+
+var rparentsprev = /^(?:parents|prev(?:Until|All))/,
+
+	// Methods guaranteed to produce a unique set when starting from a unique set
+	guaranteedUnique = {
+		children: true,
+		contents: true,
+		next: true,
+		prev: true
+	};
+
+jQuery.fn.extend( {
+	has: function( target ) {
+		var targets = jQuery( target, this ),
+			l = targets.length;
+
+		return this.filter( function() {
+			var i = 0;
+			for ( ; i < l; i++ ) {
+				if ( jQuery.contains( this, targets[ i ] ) ) {
+					return true;
+				}
+			}
+		} );
+	},
+
+	closest: function( selectors, context ) {
+		var cur,
+			i = 0,
+			l = this.length,
+			matched = [],
+			pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
+				jQuery( selectors, context || this.context ) :
+				0;
+
+		for ( ; i < l; i++ ) {
+			for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
+
+				// Always skip document fragments
+				if ( cur.nodeType < 11 && ( pos ?
+					pos.index( cur ) > -1 :
+
+					// Don't pass non-elements to Sizzle
+					cur.nodeType === 1 &&
+						jQuery.find.matchesSelector( cur, selectors ) ) ) {
+
+					matched.push( cur );
+					break;
+				}
+			}
+		}
+
+		return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
+	},
+
+	// Determine the position of an element within the set
+	index: function( elem ) {
+
+		// No argument, return index in parent
+		if ( !elem ) {
+			return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
+		}
+
+		// Index in selector
+		if ( typeof elem === "string" ) {
+			return indexOf.call( jQuery( elem ), this[ 0 ] );
+		}
+
+		// Locate the position of the desired element
+		return indexOf.call( this,
+
+			// If it receives a jQuery object, the first element is used
+			elem.jquery ? elem[ 0 ] : elem
+		);
+	},
+
+	add: function( selector, context ) {
+		return this.pushStack(
+			jQuery.uniqueSort(
+				jQuery.merge( this.get(), jQuery( selector, context ) )
+			)
+		);
+	},
+
+	addBack: function( selector ) {
+		return this.add( selector == null ?
+			this.prevObject : this.prevObject.filter( selector )
+		);
+	}
+} );
+
+function sibling( cur, dir ) {
+	while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
+	return cur;
+}
+
+jQuery.each( {
+	parent: function( elem ) {
+		var parent = elem.parentNode;
+		return parent && parent.nodeType !== 11 ? parent : null;
+	},
+	parents: function( elem ) {
+		return dir( elem, "parentNode" );
+	},
+	parentsUntil: function( elem, i, until ) {
+		return dir( elem, "parentNode", until );
+	},
+	next: function( elem ) {
+		return sibling( elem, "nextSibling" );
+	},
+	prev: function( elem ) {
+		return sibling( elem, "previousSibling" );
+	},
+	nextAll: function( elem ) {
+		return dir( elem, "nextSibling" );
+	},
+	prevAll: function( elem ) {
+		return dir( elem, "previousSibling" );
+	},
+	nextUntil: function( elem, i, until ) {
+		return dir( elem, "nextSibling", until );
+	},
+	prevUntil: function( elem, i, until ) {
+		return dir( elem, "previousSibling", until );
+	},
+	siblings: function( elem ) {
+		return siblings( ( elem.parentNode || {} ).firstChild, elem );
+	},
+	children: function( elem ) {
+		return siblings( elem.firstChild );
+	},
+	contents: function( elem ) {
+		return elem.contentDocument || jQuery.merge( [], elem.childNodes );
+	}
+}, function( name, fn ) {
+	jQuery.fn[ name ] = function( until, selector ) {
+		var matched = jQuery.map( this, fn, until );
+
+		if ( name.slice( -5 ) !== "Until" ) {
+			selector = until;
+		}
+
+		if ( selector && typeof selector === "string" ) {
+			matched = jQuery.filter( selector, matched );
+		}
+
+		if ( this.length > 1 ) {
+
+			// Remove duplicates
+			if ( !guaranteedUnique[ name ] ) {
+				jQuery.uniqueSort( matched );
+			}
+
+			// Reverse order for parents* and prev-derivatives
+			if ( rparentsprev.test( name ) ) {
+				matched.reverse();
+			}
+		}
+
+		return this.pushStack( matched );
+	};
+} );
+var rnotwhite = ( /\S+/g );
+
+
+
+// Convert String-formatted options into Object-formatted ones
+function createOptions( options ) {
+	var object = {};
+	jQuery.each( options.match( rnotwhite ) || [], function( _, flag ) {
+		object[ flag ] = true;
+	} );
+	return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ *	options: an optional list of space-separated options that will change how
+ *			the callback list behaves or a more traditional option object
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible options:
+ *
+ *	once:			will ensure the callback list can only be fired once (like a Deferred)
+ *
+ *	memory:			will keep track of previous values and will call any callback added
+ *					after the list has been fired right away with the latest "memorized"
+ *					values (like a Deferred)
+ *
+ *	unique:			will ensure a callback can only be added once (no duplicate in the list)
+ *
+ *	stopOnFalse:	interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( options ) {
+
+	// Convert options from String-formatted to Object-formatted if needed
+	// (we check in cache first)
+	options = typeof options === "string" ?
+		createOptions( options ) :
+		jQuery.extend( {}, options );
+
+	var // Flag to know if list is currently firing
+		firing,
+
+		// Last fire value for non-forgettable lists
+		memory,
+
+		// Flag to know if list was already fired
+		fired,
+
+		// Flag to prevent firing
+		locked,
+
+		// Actual callback list
+		list = [],
+
+		// Queue of execution data for repeatable lists
+		queue = [],
+
+		// Index of currently firing callback (modified by add/remove as needed)
+		firingIndex = -1,
+
+		// Fire callbacks
+		fire = function() {
+
+			// Enforce single-firing
+			locked = options.once;
+
+			// Execute callbacks for all pending executions,
+			// respecting firingIndex overrides and runtime changes
+			fired = firing = true;
+			for ( ; queue.length; firingIndex = -1 ) {
+				memory = queue.shift();
+				while ( ++firingIndex < list.length ) {
+
+					// Run callback and check for early termination
+					if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
+						options.stopOnFalse ) {
+
+						// Jump to end and forget the data so .add doesn't re-fire
+						firingIndex = list.length;
+						memory = false;
+					}
+				}
+			}
+
+			// Forget the data if we're done with it
+			if ( !options.memory ) {
+				memory = false;
+			}
+
+			firing = false;
+
+			// Clean up if we're done firing for good
+			if ( locked ) {
+
+				// Keep an empty list if we have data for future add calls
+				if ( memory ) {
+					list = [];
+
+				// Otherwise, this object is spent
+				} else {
+					list = "";
+				}
+			}
+		},
+
+		// Actual Callbacks object
+		self = {
+
+			// Add a callback or a collection of callbacks to the list
+			add: function() {
+				if ( list ) {
+
+					// If we have memory from a past run, we should fire after adding
+					if ( memory && !firing ) {
+						firingIndex = list.length - 1;
+						queue.push( memory );
+					}
+
+					( function add( args ) {
+						jQuery.each( args, function( _, arg ) {
+							if ( jQuery.isFunction( arg ) ) {
+								if ( !options.unique || !self.has( arg ) ) {
+									list.push( arg );
+								}
+							} else if ( arg && arg.length && jQuery.type( arg ) !== "string" ) {
+
+								// Inspect recursively
+								add( arg );
+							}
+						} );
+					} )( arguments );
+
+					if ( memory && !firing ) {
+						fire();
+					}
+				}
+				return this;
+			},
+
+			// Remove a callback from the list
+			remove: function() {
+				jQuery.each( arguments, function( _, arg ) {
+					var index;
+					while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
+						list.splice( index, 1 );
+
+						// Handle firing indexes
+						if ( index <= firingIndex ) {
+							firingIndex--;
+						}
+					}
+				} );
+				return this;
+			},
+
+			// Check if a given callback is in the list.
+			// If no argument is given, return whether or not list has callbacks attached.
+			has: function( fn ) {
+				return fn ?
+					jQuery.inArray( fn, list ) > -1 :
+					list.length > 0;
+			},
+
+			// Remove all callbacks from the list
+			empty: function() {
+				if ( list ) {
+					list = [];
+				}
+				return this;
+			},
+
+			// Disable .fire and .add
+			// Abort any current/pending executions
+			// Clear all callbacks and values
+			disable: function() {
+				locked = queue = [];
+				list = memory = "";
+				return this;
+			},
+			disabled: function() {
+				return !list;
+			},
+
+			// Disable .fire
+			// Also disable .add unless we have memory (since it would have no effect)
+			// Abort any pending executions
+			lock: function() {
+				locked = queue = [];
+				if ( !memory ) {
+					list = memory = "";
+				}
+				return this;
+			},
+			locked: function() {
+				return !!locked;
+			},
+
+			// Call all callbacks with the given context and arguments
+			fireWith: function( context, args ) {
+				if ( !locked ) {
+					args = args || [];
+					args = [ context, args.slice ? args.slice() : args ];
+					queue.push( args );
+					if ( !firing ) {
+						fire();
+					}
+				}
+				return this;
+			},
+
+			// Call all the callbacks with the given arguments
+			fire: function() {
+				self.fireWith( this, arguments );
+				return this;
+			},
+
+			// To know if the callbacks have already been called at least once
+			fired: function() {
+				return !!fired;
+			}
+		};
+
+	return self;
+};
+
+
+jQuery.extend( {
+
+	Deferred: function( func ) {
+		var tuples = [
+
+				// action, add listener, listener list, final state
+				[ "resolve", "done", jQuery.Callbacks( "once memory" ), "resolved" ],
+				[ "reject", "fail", jQuery.Callbacks( "once memory" ), "rejected" ],
+				[ "notify", "progress", jQuery.Callbacks( "memory" ) ]
+			],
+			state = "pending",
+			promise = {
+				state: function() {
+					return state;
+				},
+				always: function() {
+					deferred.done( arguments ).fail( arguments );
+					return this;
+				},
+				then: function( /* fnDone, fnFail, fnProgress */ ) {
+					var fns = arguments;
+					return jQuery.Deferred( function( newDefer ) {
+						jQuery.each( tuples, function( i, tuple ) {
+							var fn = jQuery.isFunction( fns[ i ] ) && fns[ i ];
+
+							// deferred[ done | fail | progress ] for forwarding actions to newDefer
+							deferred[ tuple[ 1 ] ]( function() {
+								var returned = fn && fn.apply( this, arguments );
+								if ( returned && jQuery.isFunction( returned.promise ) ) {
+									returned.promise()
+										.progress( newDefer.notify )
+										.done( newDefer.resolve )
+										.fail( newDefer.reject );
+								} else {
+									newDefer[ tuple[ 0 ] + "With" ](
+										this === promise ? newDefer.promise() : this,
+										fn ? [ returned ] : arguments
+									);
+								}
+							} );
+						} );
+						fns = null;
+					} ).promise();
+				},
+
+				// Get a promise for this deferred
+				// If obj is provided, the promise aspect is added to the object
+				promise: function( obj ) {
+					return obj != null ? jQuery.extend( obj, promise ) : promise;
+				}
+			},
+			deferred = {};
+
+		// Keep pipe for back-compat
+		promise.pipe = promise.then;
+
+		// Add list-specific methods
+		jQuery.each( tuples, function( i, tuple ) {
+			var list = tuple[ 2 ],
+				stateString = tuple[ 3 ];
+
+			// promise[ done | fail | progress ] = list.add
+			promise[ tuple[ 1 ] ] = list.add;
+
+			// Handle state
+			if ( stateString ) {
+				list.add( function() {
+
+					// state = [ resolved | rejected ]
+					state = stateString;
+
+				// [ reject_list | resolve_list ].disable; progress_list.lock
+				}, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
+			}
+
+			// deferred[ resolve | reject | notify ]
+			deferred[ tuple[ 0 ] ] = function() {
+				deferred[ tuple[ 0 ] + "With" ]( this === deferred ? promise : this, arguments );
+				return this;
+			};
+			deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
+		} );
+
+		// Make the deferred a promise
+		promise.promise( deferred );
+
+		// Call given func if any
+		if ( func ) {
+			func.call( deferred, deferred );
+		}
+
+		// All done!
+		return deferred;
+	},
+
+	// Deferred helper
+	when: function( subordinate /* , ..., subordinateN */ ) {
+		var i = 0,
+			resolveValues = slice.call( arguments ),
+			length = resolveValues.length,
+
+			// the count of uncompleted subordinates
+			remaining = length !== 1 ||
+				( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
+
+			// the master Deferred.
+			// If resolveValues consist of only a single Deferred, just use that.
+			deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
+
+			// Update function for both resolve and progress values
+			updateFunc = function( i, contexts, values ) {
+				return function( value ) {
+					contexts[ i ] = this;
+					values[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
+					if ( values === progressValues ) {
+						deferred.notifyWith( contexts, values );
+					} else if ( !( --remaining ) ) {
+						deferred.resolveWith( contexts, values );
+					}
+				};
+			},
+
+			progressValues, progressContexts, resolveContexts;
+
+		// Add listeners to Deferred subordinates; treat others as resolved
+		if ( length > 1 ) {
+			progressValues = new Array( length );
+			progressContexts = new Array( length );
+			resolveContexts = new Array( length );
+			for ( ; i < length; i++ ) {
+				if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
+					resolveValues[ i ].promise()
+						.progress( updateFunc( i, progressContexts, progressValues ) )
+						.done( updateFunc( i, resolveContexts, resolveValues ) )
+						.fail( deferred.reject );
+				} else {
+					--remaining;
+				}
+			}
+		}
+
+		// If we're not waiting on anything, resolve the master
+		if ( !remaining ) {
+			deferred.resolveWith( resolveContexts, resolveValues );
+		}
+
+		return deferred.promise();
+	}
+} );
+
+
+// The deferred used on DOM ready
+var readyList;
+
+jQuery.fn.ready = function( fn ) {
+
+	// Add the callback
+	jQuery.ready.promise().done( fn );
+
+	return this;
+};
+
+jQuery.extend( {
+
+	// Is the DOM ready to be used? Set to true once it occurs.
+	isReady: false,
+
+	// A counter to track how many items to wait for before
+	// the ready event fires. See #6781
+	readyWait: 1,
+
+	// Hold (or release) the ready event
+	holdReady: function( hold ) {
+		if ( hold ) {
+			jQuery.readyWait++;
+		} else {
+			jQuery.ready( true );
+		}
+	},
+
+	// Handle when the DOM is ready
+	ready: function( wait ) {
+
+		// Abort if there are pending holds or we're already ready
+		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
+			return;
+		}
+
+		// Remember that the DOM is ready
+		jQuery.isReady = true;
+
+		// If a normal DOM Ready event fired, decrement, and wait if need be
+		if ( wait !== true && --jQuery.readyWait > 0 ) {
+			return;
+		}
+
+		// If there are functions bound, to execute
+		readyList.resolveWith( document, [ jQuery ] );
+
+		// Trigger any bound ready events
+		if ( jQuery.fn.triggerHandler ) {
+			jQuery( document ).triggerHandler( "ready" );
+			jQuery( document ).off( "ready" );
+		}
+	}
+} );
+
+/**
+ * The ready event handler and self cleanup method
+ */
+function completed() {
+	document.removeEventListener( "DOMContentLoaded", completed );
+	window.removeEventListener( "load", completed );
+	jQuery.ready();
+}
+
+jQuery.ready.promise = function( obj ) {
+	if ( !readyList ) {
+
+		readyList = jQuery.Deferred();
+
+		// Catch cases where $(document).ready() is called
+		// after the browser event has already occurred.
+		// Support: IE9-10 only
+		// Older IE sometimes signals "interactive" too soon
+		if ( document.readyState === "complete" ||
+			( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
+
+			// Handle it asynchronously to allow scripts the opportunity to delay ready
+			window.setTimeout( jQuery.ready );
+
+		} else {
+
+			// Use the handy event callback
+			document.addEventListener( "DOMContentLoaded", completed );
+
+			// A fallback to window.onload, that will always work
+			window.addEventListener( "load", completed );
+		}
+	}
+	return readyList.promise( obj );
+};
+
+// Kick off the DOM ready check even if the user does not
+jQuery.ready.promise();
+
+
+
+
+// Multifunctional method to get and set values of a collection
+// The value/s can optionally be executed if it's a function
+var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
+	var i = 0,
+		len = elems.length,
+		bulk = key == null;
+
+	// Sets many values
+	if ( jQuery.type( key ) === "object" ) {
+		chainable = true;
+		for ( i in key ) {
+			access( elems, fn, i, key[ i ], true, emptyGet, raw );
+		}
+
+	// Sets one value
+	} else if ( value !== undefined ) {
+		chainable = true;
+
+		if ( !jQuery.isFunction( value ) ) {
+			raw = true;
+		}
+
+		if ( bulk ) {
+
+			// Bulk operations run against the entire set
+			if ( raw ) {
+				fn.call( elems, value );
+				fn = null;
+
+			// ...except when executing function values
+			} else {
+				bulk = fn;
+				fn = function( elem, key, value ) {
+					return bulk.call( jQuery( elem ), value );
+				};
+			}
+		}
+
+		if ( fn ) {
+			for ( ; i < len; i++ ) {
+				fn(
+					elems[ i ], key, raw ?
+					value :
+					value.call( elems[ i ], i, fn( elems[ i ], key ) )
+				);
+			}
+		}
+	}
+
+	return chainable ?
+		elems :
+
+		// Gets
+		bulk ?
+			fn.call( elems ) :
+			len ? fn( elems[ 0 ], key ) : emptyGet;
+};
+var acceptData = function( owner ) {
+
+	// Accepts only:
+	//  - Node
+	//    - Node.ELEMENT_NODE
+	//    - Node.DOCUMENT_NODE
+	//  - Object
+	//    - Any
+	/* jshint -W018 */
+	return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
+};
+
+
+
+
+function Data() {
+	this.expando = jQuery.expando + Data.uid++;
+}
+
+Data.uid = 1;
+
+Data.prototype = {
+
+	register: function( owner, initial ) {
+		var value = initial || {};
+
+		// If it is a node unlikely to be stringify-ed or looped over
+		// use plain assignment
+		if ( owner.nodeType ) {
+			owner[ this.expando ] = value;
+
+		// Otherwise secure it in a non-enumerable, non-writable property
+		// configurability must be true to allow the property to be
+		// deleted with the delete operator
+		} else {
+			Object.defineProperty( owner, this.expando, {
+				value: value,
+				writable: true,
+				configurable: true
+			} );
+		}
+		return owner[ this.expando ];
+	},
+	cache: function( owner ) {
+
+		// We can accept data for non-element nodes in modern browsers,
+		// but we should not, see #8335.
+		// Always return an empty object.
+		if ( !acceptData( owner ) ) {
+			return {};
+		}
+
+		// Check if the owner object already has a cache
+		var value = owner[ this.expando ];
+
+		// If not, create one
+		if ( !value ) {
+			value = {};
+
+			// We can accept data for non-element nodes in modern browsers,
+			// but we should not, see #8335.
+			// Always return an empty object.
+			if ( acceptData( owner ) ) {
+
+				// If it is a node unlikely to be stringify-ed or looped over
+				// use plain assignment
+				if ( owner.nodeType ) {
+					owner[ this.expando ] = value;
+
+				// Otherwise secure it in a non-enumerable property
+				// configurable must be true to allow the property to be
+				// deleted when data is removed
+				} else {
+					Object.defineProperty( owner, this.expando, {
+						value: value,
+						configurable: true
+					} );
+				}
+			}
+		}
+
+		return value;
+	},
+	set: function( owner, data, value ) {
+		var prop,
+			cache = this.cache( owner );
+
+		// Handle: [ owner, key, value ] args
+		if ( typeof data === "string" ) {
+			cache[ data ] = value;
+
+		// Handle: [ owner, { properties } ] args
+		} else {
+
+			// Copy the properties one-by-one to the cache object
+			for ( prop in data ) {
+				cache[ prop ] = data[ prop ];
+			}
+		}
+		return cache;
+	},
+	get: function( owner, key ) {
+		return key === undefined ?
+			this.cache( owner ) :
+			owner[ this.expando ] && owner[ this.expando ][ key ];
+	},
+	access: function( owner, key, value ) {
+		var stored;
+
+		// In cases where either:
+		//
+		//   1. No key was specified
+		//   2. A string key was specified, but no value provided
+		//
+		// Take the "read" path and allow the get method to determine
+		// which value to return, respectively either:
+		//
+		//   1. The entire cache object
+		//   2. The data stored at the key
+		//
+		if ( key === undefined ||
+				( ( key && typeof key === "string" ) && value === undefined ) ) {
+
+			stored = this.get( owner, key );
+
+			return stored !== undefined ?
+				stored : this.get( owner, jQuery.camelCase( key ) );
+		}
+
+		// When the key is not a string, or both a key and value
+		// are specified, set or extend (existing objects) with either:
+		//
+		//   1. An object of properties
+		//   2. A key and value
+		//
+		this.set( owner, key, value );
+
+		// Since the "set" path can have two possible entry points
+		// return the expected data based on which path was taken[*]
+		return value !== undefined ? value : key;
+	},
+	remove: function( owner, key ) {
+		var i, name, camel,
+			cache = owner[ this.expando ];
+
+		if ( cache === undefined ) {
+			return;
+		}
+
+		if ( key === undefined ) {
+			this.register( owner );
+
+		} else {
+
+			// Support array or space separated string of keys
+			if ( jQuery.isArray( key ) ) {
+
+				// If "name" is an array of keys...
+				// When data is initially created, via ("key", "val") signature,
+				// keys will be converted to camelCase.
+				// Since there is no way to tell _how_ a key was added, remove
+				// both plain key and camelCase key. #12786
+				// This will only penalize the array argument path.
+				name = key.concat( key.map( jQuery.camelCase ) );
+			} else {
+				camel = jQuery.camelCase( key );
+
+				// Try the string as a key before any manipulation
+				if ( key in cache ) {
+					name = [ key, camel ];
+				} else {
+
+					// If a key with the spaces exists, use it.
+					// Otherwise, create an array by matching non-whitespace
+					name = camel;
+					name = name in cache ?
+						[ name ] : ( name.match( rnotwhite ) || [] );
+				}
+			}
+
+			i = name.length;
+
+			while ( i-- ) {
+				delete cache[ name[ i ] ];
+			}
+		}
+
+		// Remove the expando if there's no more data
+		if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
+
+			// Support: Chrome <= 35-45+
+			// Webkit & Blink performance suffers when deleting properties
+			// from DOM nodes, so set to undefined instead
+			// https://code.google.com/p/chromium/issues/detail?id=378607
+			if ( owner.nodeType ) {
+				owner[ this.expando ] = undefined;
+			} else {
+				delete owner[ this.expando ];
+			}
+		}
+	},
+	hasData: function( owner ) {
+		var cache = owner[ this.expando ];
+		return cache !== undefined && !jQuery.isEmptyObject( cache );
+	}
+};
+var dataPriv = new Data();
+
+var dataUser = new Data();
+
+
+
+//	Implementation Summary
+//
+//	1. Enforce API surface and semantic compatibility with 1.9.x branch
+//	2. Improve the module's maintainability by reducing the storage
+//		paths to a single mechanism.
+//	3. Use the same single mechanism to support "private" and "user" data.
+//	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
+//	5. Avoid exposing implementation details on user objects (eg. expando properties)
+//	6. Provide a clear path for implementation upgrade to WeakMap in 2014
+
+var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
+	rmultiDash = /[A-Z]/g;
+
+function dataAttr( elem, key, data ) {
+	var name;
+
+	// If nothing was found internally, try to fetch any
+	// data from the HTML5 data-* attribute
+	if ( data === undefined && elem.nodeType === 1 ) {
+		name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
+		data = elem.getAttribute( name );
+
+		if ( typeof data === "string" ) {
+			try {
+				data = data === "true" ? true :
+					data === "false" ? false :
+					data === "null" ? null :
+
+					// Only convert to a number if it doesn't change the string
+					+data + "" === data ? +data :
+					rbrace.test( data ) ? jQuery.parseJSON( data ) :
+					data;
+			} catch ( e ) {}
+
+			// Make sure we set the data so it isn't changed later
+			dataUser.set( elem, key, data );
+		} else {
+			data = undefined;
+		}
+	}
+	return data;
+}
+
+jQuery.extend( {
+	hasData: function( elem ) {
+		return dataUser.hasData( elem ) || dataPriv.hasData( elem );
+	},
+
+	data: function( elem, name, data ) {
+		return dataUser.access( elem, name, data );
+	},
+
+	removeData: function( elem, name ) {
+		dataUser.remove( elem, name );
+	},
+
+	// TODO: Now that all calls to _data and _removeData have been replaced
+	// with direct calls to dataPriv methods, these can be deprecated.
+	_data: function( elem, name, data ) {
+		return dataPriv.access( elem, name, data );
+	},
+
+	_removeData: function( elem, name ) {
+		dataPriv.remove( elem, name );
+	}
+} );
+
+jQuery.fn.extend( {
+	data: function( key, value ) {
+		var i, name, data,
+			elem = this[ 0 ],
+			attrs = elem && elem.attributes;
+
+		// Gets all values
+		if ( key === undefined ) {
+			if ( this.length ) {
+				data = dataUser.get( elem );
+
+				if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
+					i = attrs.length;
+					while ( i-- ) {
+
+						// Support: IE11+
+						// The attrs elements can be null (#14894)
+						if ( attrs[ i ] ) {
+							name = attrs[ i ].name;
+							if ( name.indexOf( "data-" ) === 0 ) {
+								name = jQuery.camelCase( name.slice( 5 ) );
+								dataAttr( elem, name, data[ name ] );
+							}
+						}
+					}
+					dataPriv.set( elem, "hasDataAttrs", true );
+				}
+			}
+
+			return data;
+		}
+
+		// Sets multiple values
+		if ( typeof key === "object" ) {
+			return this.each( function() {
+				dataUser.set( this, key );
+			} );
+		}
+
+		return access( this, function( value ) {
+			var data, camelKey;
+
+			// The calling jQuery object (element matches) is not empty
+			// (and therefore has an element appears at this[ 0 ]) and the
+			// `value` parameter was not undefined. An empty jQuery object
+			// will result in `undefined` for elem = this[ 0 ] which will
+			// throw an exception if an attempt to read a data cache is made.
+			if ( elem && value === undefined ) {
+
+				// Attempt to get data from the cache
+				// with the key as-is
+				data = dataUser.get( elem, key ) ||
+
+					// Try to find dashed key if it exists (gh-2779)
+					// This is for 2.2.x only
+					dataUser.get( elem, key.replace( rmultiDash, "-$&" ).toLowerCase() );
+
+				if ( data !== undefined ) {
+					return data;
+				}
+
+				camelKey = jQuery.camelCase( key );
+
+				// Attempt to get data from the cache
+				// with the key camelized
+				data = dataUser.get( elem, camelKey );
+				if ( data !== undefined ) {
+					return data;
+				}
+
+				// Attempt to "discover" the data in
+				// HTML5 custom data-* attrs
+				data = dataAttr( elem, camelKey, undefined );
+				if ( data !== undefined ) {
+					return data;
+				}
+
+				// We tried really hard, but the data doesn't exist.
+				return;
+			}
+
+			// Set the data...
+			camelKey = jQuery.camelCase( key );
+			this.each( function() {
+
+				// First, attempt to store a copy or reference of any
+				// data that might've been store with a camelCased key.
+				var data = dataUser.get( this, camelKey );
+
+				// For HTML5 data-* attribute interop, we have to
+				// store property names with dashes in a camelCase form.
+				// This might not apply to all properties...*
+				dataUser.set( this, camelKey, value );
+
+				// *... In the case of properties that might _actually_
+				// have dashes, we need to also store a copy of that
+				// unchanged property.
+				if ( key.indexOf( "-" ) > -1 && data !== undefined ) {
+					dataUser.set( this, key, value );
+				}
+			} );
+		}, null, value, arguments.length > 1, null, true );
+	},
+
+	removeData: function( key ) {
+		return this.each( function() {
+			dataUser.remove( this, key );
+		} );
+	}
+} );
+
+
+jQuery.extend( {
+	queue: function( elem, type, data ) {
+		var queue;
+
+		if ( elem ) {
+			type = ( type || "fx" ) + "queue";
+			queue = dataPriv.get( elem, type );
+
+			// Speed up dequeue by getting out quickly if this is just a lookup
+			if ( data ) {
+				if ( !queue || jQuery.isArray( data ) ) {
+					queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
+				} else {
+					queue.push( data );
+				}
+			}
+			return queue || [];
+		}
+	},
+
+	dequeue: function( elem, type ) {
+		type = type || "fx";
+
+		var queue = jQuery.queue( elem, type ),
+			startLength = queue.length,
+			fn = queue.shift(),
+			hooks = jQuery._queueHooks( elem, type ),
+			next = function() {
+				jQuery.dequeue( elem, type );
+			};
+
+		// If the fx queue is dequeued, always remove the progress sentinel
+		if ( fn === "inprogress" ) {
+			fn = queue.shift();
+			startLength--;
+		}
+
+		if ( fn ) {
+
+			// Add a progress sentinel to prevent the fx queue from being
+			// automatically dequeued
+			if ( type === "fx" ) {
+				queue.unshift( "inprogress" );
+			}
+
+			// Clear up the last queue stop function
+			delete hooks.stop;
+			fn.call( elem, next, hooks );
+		}
+
+		if ( !startLength && hooks ) {
+			hooks.empty.fire();
+		}
+	},
+
+	// Not public - generate a queueHooks object, or return the current one
+	_queueHooks: function( elem, type ) {
+		var key = type + "queueHooks";
+		return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
+			empty: jQuery.Callbacks( "once memory" ).add( function() {
+				dataPriv.remove( elem, [ type + "queue", key ] );
+			} )
+		} );
+	}
+} );
+
+jQuery.fn.extend( {
+	queue: function( type, data ) {
+		var setter = 2;
+
+		if ( typeof type !== "string" ) {
+			data = type;
+			type = "fx";
+			setter--;
+		}
+
+		if ( arguments.length < setter ) {
+			return jQuery.queue( this[ 0 ], type );
+		}
+
+		return data === undefined ?
+			this :
+			this.each( function() {
+				var queue = jQuery.queue( this, type, data );
+
+				// Ensure a hooks for this queue
+				jQuery._queueHooks( this, type );
+
+				if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
+					jQuery.dequeue( this, type );
+				}
+			} );
+	},
+	dequeue: function( type ) {
+		return this.each( function() {
+			jQuery.dequeue( this, type );
+		} );
+	},
+	clearQueue: function( type ) {
+		return this.queue( type || "fx", [] );
+	},
+
+	// Get a promise resolved when queues of a certain type
+	// are emptied (fx is the type by default)
+	promise: function( type, obj ) {
+		var tmp,
+			count = 1,
+			defer = jQuery.Deferred(),
+			elements = this,
+			i = this.length,
+			resolve = function() {
+				if ( !( --count ) ) {
+					defer.resolveWith( elements, [ elements ] );
+				}
+			};
+
+		if ( typeof type !== "string" ) {
+			obj = type;
+			type = undefined;
+		}
+		type = type || "fx";
+
+		while ( i-- ) {
+			tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
+			if ( tmp && tmp.empty ) {
+				count++;
+				tmp.empty.add( resolve );
+			}
+		}
+		resolve();
+		return defer.promise( obj );
+	}
+} );
+var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
+
+var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
+
+
+var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
+
+var isHidden = function( elem, el ) {
+
+		// isHidden might be called from jQuery#filter function;
+		// in that case, element will be second argument
+		elem = el || elem;
+		return jQuery.css( elem, "display" ) === "none" ||
+			!jQuery.contains( elem.ownerDocument, elem );
+	};
+
+
+
+function adjustCSS( elem, prop, valueParts, tween ) {
+	var adjusted,
+		scale = 1,
+		maxIterations = 20,
+		currentValue = tween ?
+			function() { return tween.cur(); } :
+			function() { return jQuery.css( elem, prop, "" ); },
+		initial = currentValue(),
+		unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
+
+		// Starting value computation is required for potential unit mismatches
+		initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
+			rcssNum.exec( jQuery.css( elem, prop ) );
+
+	if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
+
+		// Trust units reported by jQuery.css
+		unit = unit || initialInUnit[ 3 ];
+
+		// Make sure we update the tween properties later on
+		valueParts = valueParts || [];
+
+		// Iteratively approximate from a nonzero starting point
+		initialInUnit = +initial || 1;
+
+		do {
+
+			// If previous iteration zeroed out, double until we get *something*.
+			// Use string for doubling so we don't accidentally see scale as unchanged below
+			scale = scale || ".5";
+
+			// Adjust and apply
+			initialInUnit = initialInUnit / scale;
+			jQuery.style( elem, prop, initialInUnit + unit );
+
+		// Update scale, tolerating zero or NaN from tween.cur()
+		// Break the loop if scale is unchanged or perfect, or if we've just had enough.
+		} while (
+			scale !== ( scale = currentValue() / initial ) && scale !== 1 && --maxIterations
+		);
+	}
+
+	if ( valueParts ) {
+		initialInUnit = +initialInUnit || +initial || 0;
+
+		// Apply relative offset (+=/-=) if specified
+		adjusted = valueParts[ 1 ] ?
+			initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
+			+valueParts[ 2 ];
+		if ( tween ) {
+			tween.unit = unit;
+			tween.start = initialInUnit;
+			tween.end = adjusted;
+		}
+	}
+	return adjusted;
+}
+var rcheckableType = ( /^(?:checkbox|radio)$/i );
+
+var rtagName = ( /<([\w:-]+)/ );
+
+var rscriptType = ( /^$|\/(?:java|ecma)script/i );
+
+
+
+// We have to close these tags to support XHTML (#13200)
+var wrapMap = {
+
+	// Support: IE9
+	option: [ 1, "<select multiple='multiple'>", "</select>" ],
+
+	// XHTML parsers do not magically insert elements in the
+	// same way that tag soup parsers do. So we cannot shorten
+	// this by omitting <tbody> or other required elements.
+	thead: [ 1, "<table>", "</table>" ],
+	col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
+	tr: [ 2, "<table><tbody>", "</tbody></table>" ],
+	td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
+
+	_default: [ 0, "", "" ]
+};
+
+// Support: IE9
+wrapMap.optgroup = wrapMap.option;
+
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+
+function getAll( context, tag ) {
+
+	// Support: IE9-11+
+	// Use typeof to avoid zero-argument method invocation on host objects (#15151)
+	var ret = typeof context.getElementsByTagName !== "undefined" ?
+			context.getElementsByTagName( tag || "*" ) :
+			typeof context.querySelectorAll !== "undefined" ?
+				context.querySelectorAll( tag || "*" ) :
+			[];
+
+	return tag === undefined || tag && jQuery.nodeName( context, tag ) ?
+		jQuery.merge( [ context ], ret ) :
+		ret;
+}
+
+
+// Mark scripts as having already been evaluated
+function setGlobalEval( elems, refElements ) {
+	var i = 0,
+		l = elems.length;
+
+	for ( ; i < l; i++ ) {
+		dataPriv.set(
+			elems[ i ],
+			"globalEval",
+			!refElements || dataPriv.get( refElements[ i ], "globalEval" )
+		);
+	}
+}
+
+
+var rhtml = /<|&#?\w+;/;
+
+function buildFragment( elems, context, scripts, selection, ignored ) {
+	var elem, tmp, tag, wrap, contains, j,
+		fragment = context.createDocumentFragment(),
+		nodes = [],
+		i = 0,
+		l = elems.length;
+
+	for ( ; i < l; i++ ) {
+		elem = elems[ i ];
+
+		if ( elem || elem === 0 ) {
+
+			// Add nodes directly
+			if ( jQuery.type( elem ) === "object" ) {
+
+				// Support: Android<4.1, PhantomJS<2
+				// push.apply(_, arraylike) throws on ancient WebKit
+				jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
+
+			// Convert non-html into a text node
+			} else if ( !rhtml.test( elem ) ) {
+				nodes.push( context.createTextNode( elem ) );
+
+			// Convert html into DOM nodes
+			} else {
+				tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
+
+				// Deserialize a standard representation
+				tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
+				wrap = wrapMap[ tag ] || wrapMap._default;
+				tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
+
+				// Descend through wrappers to the right content
+				j = wrap[ 0 ];
+				while ( j-- ) {
+					tmp = tmp.lastChild;
+				}
+
+				// Support: Android<4.1, PhantomJS<2
+				// push.apply(_, arraylike) throws on ancient WebKit
+				jQuery.merge( nodes, tmp.childNodes );
+
+				// Remember the top-level container
+				tmp = fragment.firstChild;
+
+				// Ensure the created nodes are orphaned (#12392)
+				tmp.textContent = "";
+			}
+		}
+	}
+
+	// Remove wrapper from fragment
+	fragment.textContent = "";
+
+	i = 0;
+	while ( ( elem = nodes[ i++ ] ) ) {
+
+		// Skip elements already in the context collection (trac-4087)
+		if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
+			if ( ignored ) {
+				ignored.push( elem );
+			}
+			continue;
+		}
+
+		contains = jQuery.contains( elem.ownerDocument, elem );
+
+		// Append to fragment
+		tmp = getAll( fragment.appendChild( elem ), "script" );
+
+		// Preserve script evaluation history
+		if ( contains ) {
+			setGlobalEval( tmp );
+		}
+
+		// Capture executables
+		if ( scripts ) {
+			j = 0;
+			while ( ( elem = tmp[ j++ ] ) ) {
+				if ( rscriptType.test( elem.type || "" ) ) {
+					scripts.push( elem );
+				}
+			}
+		}
+	}
+
+	return fragment;
+}
+
+
+( function() {
+	var fragment = document.createDocumentFragment(),
+		div = fragment.appendChild( document.createElement( "div" ) ),
+		input = document.createElement( "input" );
+
+	// Support: Android 4.0-4.3, Safari<=5.1
+	// Check state lost if the name is set (#11217)
+	// Support: Windows Web Apps (WWA)
+	// `name` and `type` must use .setAttribute for WWA (#14901)
+	input.setAttribute( "type", "radio" );
+	input.setAttribute( "checked", "checked" );
+	input.setAttribute( "name", "t" );
+
+	div.appendChild( input );
+
+	// Support: Safari<=5.1, Android<4.2
+	// Older WebKit doesn't clone checked state correctly in fragments
+	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+	// Support: IE<=11+
+	// Make sure textarea (and checkbox) defaultValue is properly cloned
+	div.innerHTML = "<textarea>x</textarea>";
+	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
+} )();
+
+
+var
+	rkeyEvent = /^key/,
+	rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
+	rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
+
+function returnTrue() {
+	return true;
+}
+
+function returnFalse() {
+	return false;
+}
+
+// Support: IE9
+// See #13393 for more info
+function safeActiveElement() {
+	try {
+		return document.activeElement;
+	} catch ( err ) { }
+}
+
+function on( elem, types, selector, data, fn, one ) {
+	var origFn, type;
+
+	// Types can be a map of types/handlers
+	if ( typeof types === "object" ) {
+
+		// ( types-Object, selector, data )
+		if ( typeof selector !== "string" ) {
+
+			// ( types-Object, data )
+			data = data || selector;
+			selector = undefined;
+		}
+		for ( type in types ) {
+			on( elem, type, selector, data, types[ type ], one );
+		}
+		return elem;
+	}
+
+	if ( data == null && fn == null ) {
+
+		// ( types, fn )
+		fn = selector;
+		data = selector = undefined;
+	} else if ( fn == null ) {
+		if ( typeof selector === "string" ) {
+
+			// ( types, selector, fn )
+			fn = data;
+			data = undefined;
+		} else {
+
+			// ( types, data, fn )
+			fn = data;
+			data = selector;
+			selector = undefined;
+		}
+	}
+	if ( fn === false ) {
+		fn = returnFalse;
+	} else if ( !fn ) {
+		return elem;
+	}
+
+	if ( one === 1 ) {
+		origFn = fn;
+		fn = function( event ) {
+
+			// Can use an empty set, since event contains the info
+			jQuery().off( event );
+			return origFn.apply( this, arguments );
+		};
+
+		// Use same guid so caller can remove using origFn
+		fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+	}
+	return elem.each( function() {
+		jQuery.event.add( this, types, fn, data, selector );
+	} );
+}
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+	global: {},
+
+	add: function( elem, types, handler, data, selector ) {
+
+		var handleObjIn, eventHandle, tmp,
+			events, t, handleObj,
+			special, handlers, type, namespaces, origType,
+			elemData = dataPriv.get( elem );
+
+		// Don't attach events to noData or text/comment nodes (but allow plain objects)
+		if ( !elemData ) {
+			return;
+		}
+
+		// Caller can pass in an object of custom data in lieu of the handler
+		if ( handler.handler ) {
+			handleObjIn = handler;
+			handler = handleObjIn.handler;
+			selector = handleObjIn.selector;
+		}
+
+		// Make sure that the handler has a unique ID, used to find/remove it later
+		if ( !handler.guid ) {
+			handler.guid = jQuery.guid++;
+		}
+
+		// Init the element's event structure and main handler, if this is the first
+		if ( !( events = elemData.events ) ) {
+			events = elemData.events = {};
+		}
+		if ( !( eventHandle = elemData.handle ) ) {
+			eventHandle = elemData.handle = function( e ) {
+
+				// Discard the second event of a jQuery.event.trigger() and
+				// when an event is called after a page has unloaded
+				return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
+					jQuery.event.dispatch.apply( elem, arguments ) : undefined;
+			};
+		}
+
+		// Handle multiple events separated by a space
+		types = ( types || "" ).match( rnotwhite ) || [ "" ];
+		t = types.length;
+		while ( t-- ) {
+			tmp = rtypenamespace.exec( types[ t ] ) || [];
+			type = origType = tmp[ 1 ];
+			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
+
+			// There *must* be a type, no attaching namespace-only handlers
+			if ( !type ) {
+				continue;
+			}
+
+			// If event changes its type, use the special event handlers for the changed type
+			special = jQuery.event.special[ type ] || {};
+
+			// If selector defined, determine special event api type, otherwise given type
+			type = ( selector ? special.delegateType : special.bindType ) || type;
+
+			// Update special based on newly reset type
+			special = jQuery.event.special[ type ] || {};
+
+			// handleObj is passed to all event handlers
+			handleObj = jQuery.extend( {
+				type: type,
+				origType: origType,
+				data: data,
+				handler: handler,
+				guid: handler.guid,
+				selector: selector,
+				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
+				namespace: namespaces.join( "." )
+			}, handleObjIn );
+
+			// Init the event handler queue if we're the first
+			if ( !( handlers = events[ type ] ) ) {
+				handlers = events[ type ] = [];
+				handlers.delegateCount = 0;
+
+				// Only use addEventListener if the special events handler returns false
+				if ( !special.setup ||
+					special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+
+					if ( elem.addEventListener ) {
+						elem.addEventListener( type, eventHandle );
+					}
+				}
+			}
+
+			if ( special.add ) {
+				special.add.call( elem, handleObj );
+
+				if ( !handleObj.handler.guid ) {
+					handleObj.handler.guid = handler.guid;
+				}
+			}
+
+			// Add to the element's handler list, delegates in front
+			if ( selector ) {
+				handlers.splice( handlers.delegateCount++, 0, handleObj );
+			} else {
+				handlers.push( handleObj );
+			}
+
+			// Keep track of which events have ever been used, for event optimization
+			jQuery.event.global[ type ] = true;
+		}
+
+	},
+
+	// Detach an event or set of events from an element
+	remove: function( elem, types, handler, selector, mappedTypes ) {
+
+		var j, origCount, tmp,
+			events, t, handleObj,
+			special, handlers, type, namespaces, origType,
+			elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
+
+		if ( !elemData || !( events = elemData.events ) ) {
+			return;
+		}
+
+		// Once for each type.namespace in types; type may be omitted
+		types = ( types || "" ).match( rnotwhite ) || [ "" ];
+		t = types.length;
+		while ( t-- ) {
+			tmp = rtypenamespace.exec( types[ t ] ) || [];
+			type = origType = tmp[ 1 ];
+			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
+
+			// Unbind all events (on this namespace, if provided) for the element
+			if ( !type ) {
+				for ( type in events ) {
+					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+				}
+				continue;
+			}
+
+			special = jQuery.event.special[ type ] || {};
+			type = ( selector ? special.delegateType : special.bindType ) || type;
+			handlers = events[ type ] || [];
+			tmp = tmp[ 2 ] &&
+				new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
+
+			// Remove matching events
+			origCount = j = handlers.length;
+			while ( j-- ) {
+				handleObj = handlers[ j ];
+
+				if ( ( mappedTypes || origType === handleObj.origType ) &&
+					( !handler || handler.guid === handleObj.guid ) &&
+					( !tmp || tmp.test( handleObj.namespace ) ) &&
+					( !selector || selector === handleObj.selector ||
+						selector === "**" && handleObj.selector ) ) {
+					handlers.splice( j, 1 );
+
+					if ( handleObj.selector ) {
+						handlers.delegateCount--;
+					}
+					if ( special.remove ) {
+						special.remove.call( elem, handleObj );
+					}
+				}
+			}
+
+			// Remove generic event handler if we removed something and no more handlers exist
+			// (avoids potential for endless recursion during removal of special event handlers)
+			if ( origCount && !handlers.length ) {
+				if ( !special.teardown ||
+					special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
+
+					jQuery.removeEvent( elem, type, elemData.handle );
+				}
+
+				delete events[ type ];
+			}
+		}
+
+		// Remove data and the expando if it's no longer used
+		if ( jQuery.isEmptyObject( events ) ) {
+			dataPriv.remove( elem, "handle events" );
+		}
+	},
+
+	dispatch: function( event ) {
+
+		// Make a writable jQuery.Event from the native event object
+		event = jQuery.event.fix( event );
+
+		var i, j, ret, matched, handleObj,
+			handlerQueue = [],
+			args = slice.call( arguments ),
+			handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
+			special = jQuery.event.special[ event.type ] || {};
+
+		// Use the fix-ed jQuery.Event rather than the (read-only) native event
+		args[ 0 ] = event;
+		event.delegateTarget = this;
+
+		// Call the preDispatch hook for the mapped type, and let it bail if desired
+		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
+			return;
+		}
+
+		// Determine handlers
+		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
+
+		// Run delegates first; they may want to stop propagation beneath us
+		i = 0;
+		while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
+			event.currentTarget = matched.elem;
+
+			j = 0;
+			while ( ( handleObj = matched.handlers[ j++ ] ) &&
+				!event.isImmediatePropagationStopped() ) {
+
+				// Triggered event must either 1) have no namespace, or 2) have namespace(s)
+				// a subset or equal to those in the bound event (both can have no namespace).
+				if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
+
+					event.handleObj = handleObj;
+					event.data = handleObj.data;
+
+					ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
+						handleObj.handler ).apply( matched.elem, args );
+
+					if ( ret !== undefined ) {
+						if ( ( event.result = ret ) === false ) {
+							event.preventDefault();
+							event.stopPropagation();
+						}
+					}
+				}
+			}
+		}
+
+		// Call the postDispatch hook for the mapped type
+		if ( special.postDispatch ) {
+			special.postDispatch.call( this, event );
+		}
+
+		return event.result;
+	},
+
+	handlers: function( event, handlers ) {
+		var i, matches, sel, handleObj,
+			handlerQueue = [],
+			delegateCount = handlers.delegateCount,
+			cur = event.target;
+
+		// Support (at least): Chrome, IE9
+		// Find delegate handlers
+		// Black-hole SVG <use> instance trees (#13180)
+		//
+		// Support: Firefox<=42+
+		// Avoid non-left-click in FF but don't block IE radio events (#3861, gh-2343)
+		if ( delegateCount && cur.nodeType &&
+			( event.type !== "click" || isNaN( event.button ) || event.button < 1 ) ) {
+
+			for ( ; cur !== this; cur = cur.parentNode || this ) {
+
+				// Don't check non-elements (#13208)
+				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
+				if ( cur.nodeType === 1 && ( cur.disabled !== true || event.type !== "click" ) ) {
+					matches = [];
+					for ( i = 0; i < delegateCount; i++ ) {
+						handleObj = handlers[ i ];
+
+						// Don't conflict with Object.prototype properties (#13203)
+						sel = handleObj.selector + " ";
+
+						if ( matches[ sel ] === undefined ) {
+							matches[ sel ] = handleObj.needsContext ?
+								jQuery( sel, this ).index( cur ) > -1 :
+								jQuery.find( sel, this, null, [ cur ] ).length;
+						}
+						if ( matches[ sel ] ) {
+							matches.push( handleObj );
+						}
+					}
+					if ( matches.length ) {
+						handlerQueue.push( { elem: cur, handlers: matches } );
+					}
+				}
+			}
+		}
+
+		// Add the remaining (directly-bound) handlers
+		if ( delegateCount < handlers.length ) {
+			handlerQueue.push( { elem: this, handlers: handlers.slice( delegateCount ) } );
+		}
+
+		return handlerQueue;
+	},
+
+	// Includes some event props shared by KeyEvent and MouseEvent
+	props: ( "altKey bubbles cancelable ctrlKey currentTarget detail eventPhase " +
+		"metaKey relatedTarget shiftKey target timeStamp view which" ).split( " " ),
+
+	fixHooks: {},
+
+	keyHooks: {
+		props: "char charCode key keyCode".split( " " ),
+		filter: function( event, original ) {
+
+			// Add which for key events
+			if ( event.which == null ) {
+				event.which = original.charCode != null ? original.charCode : original.keyCode;
+			}
+
+			return event;
+		}
+	},
+
+	mouseHooks: {
+		props: ( "button buttons clientX clientY offsetX offsetY pageX pageY " +
+			"screenX screenY toElement" ).split( " " ),
+		filter: function( event, original ) {
+			var eventDoc, doc, body,
+				button = original.button;
+
+			// Calculate pageX/Y if missing and clientX/Y available
+			if ( event.pageX == null && original.clientX != null ) {
+				eventDoc = event.target.ownerDocument || document;
+				doc = eventDoc.documentElement;
+				body = eventDoc.body;
+
+				event.pageX = original.clientX +
+					( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) -
+					( doc && doc.clientLeft || body && body.clientLeft || 0 );
+				event.pageY = original.clientY +
+					( doc && doc.scrollTop  || body && body.scrollTop  || 0 ) -
+					( doc && doc.clientTop  || body && body.clientTop  || 0 );
+			}
+
+			// Add which for click: 1 === left; 2 === middle; 3 === right
+			// Note: button is not normalized, so don't use it
+			if ( !event.which && button !== undefined ) {
+				event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
+			}
+
+			return event;
+		}
+	},
+
+	fix: function( event ) {
+		if ( event[ jQuery.expando ] ) {
+			return event;
+		}
+
+		// Create a writable copy of the event object and normalize some properties
+		var i, prop, copy,
+			type = event.type,
+			originalEvent = event,
+			fixHook = this.fixHooks[ type ];
+
+		if ( !fixHook ) {
+			this.fixHooks[ type ] = fixHook =
+				rmouseEvent.test( type ) ? this.mouseHooks :
+				rkeyEvent.test( type ) ? this.keyHooks :
+				{};
+		}
+		copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
+
+		event = new jQuery.Event( originalEvent );
+
+		i = copy.length;
+		while ( i-- ) {
+			prop = copy[ i ];
+			event[ prop ] = originalEvent[ prop ];
+		}
+
+		// Support: Cordova 2.5 (WebKit) (#13255)
+		// All events should have a target; Cordova deviceready doesn't
+		if ( !event.target ) {
+			event.target = document;
+		}
+
+		// Support: Safari 6.0+, Chrome<28
+		// Target should not be a text node (#504, #13143)
+		if ( event.target.nodeType === 3 ) {
+			event.target = event.target.parentNode;
+		}
+
+		return fixHook.filter ? fixHook.filter( event, originalEvent ) : event;
+	},
+
+	special: {
+		load: {
+
+			// Prevent triggered image.load events from bubbling to window.load
+			noBubble: true
+		},
+		focus: {
+
+			// Fire native event if possible so blur/focus sequence is correct
+			trigger: function() {
+				if ( this !== safeActiveElement() && this.focus ) {
+					this.focus();
+					return false;
+				}
+			},
+			delegateType: "focusin"
+		},
+		blur: {
+			trigger: function() {
+				if ( this === safeActiveElement() && this.blur ) {
+					this.blur();
+					return false;
+				}
+			},
+			delegateType: "focusout"
+		},
+		click: {
+
+			// For checkbox, fire native event so checked state will be right
+			trigger: function() {
+				if ( this.type === "checkbox" && this.click && jQuery.nodeName( this, "input" ) ) {
+					this.click();
+					return false;
+				}
+			},
+
+			// For cross-browser consistency, don't fire native .click() on links
+			_default: function( event ) {
+				return jQuery.nodeName( event.target, "a" );
+			}
+		},
+
+		beforeunload: {
+			postDispatch: function( event ) {
+
+				// Support: Firefox 20+
+				// Firefox doesn't alert if the returnValue field is not set.
+				if ( event.result !== undefined && event.originalEvent ) {
+					event.originalEvent.returnValue = event.result;
+				}
+			}
+		}
+	}
+};
+
+jQuery.removeEvent = function( elem, type, handle ) {
+
+	// This "if" is needed for plain objects
+	if ( elem.removeEventListener ) {
+		elem.removeEventListener( type, handle );
+	}
+};
+
+jQuery.Event = function( src, props ) {
+
+	// Allow instantiation without the 'new' keyword
+	if ( !( this instanceof jQuery.Event ) ) {
+		return new jQuery.Event( src, props );
+	}
+
+	// Event object
+	if ( src && src.type ) {
+		this.originalEvent = src;
+		this.type = src.type;
+
+		// Events bubbling up the document may have been marked as prevented
+		// by a handler lower down the tree; reflect the correct value.
+		this.isDefaultPrevented = src.defaultPrevented ||
+				src.defaultPrevented === undefined &&
+
+				// Support: Android<4.0
+				src.returnValue === false ?
+			returnTrue :
+			returnFalse;
+
+	// Event type
+	} else {
+		this.type = src;
+	}
+
+	// Put explicitly provided properties onto the event object
+	if ( props ) {
+		jQuery.extend( this, props );
+	}
+
+	// Create a timestamp if incoming event doesn't have one
+	this.timeStamp = src && src.timeStamp || jQuery.now();
+
+	// Mark it as fixed
+	this[ jQuery.expando ] = true;
+};
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+	constructor: jQuery.Event,
+	isDefaultPrevented: returnFalse,
+	isPropagationStopped: returnFalse,
+	isImmediatePropagationStopped: returnFalse,
+	isSimulated: false,
+
+	preventDefault: function() {
+		var e = this.originalEvent;
+
+		this.isDefaultPrevented = returnTrue;
+
+		if ( e && !this.isSimulated ) {
+			e.preventDefault();
+		}
+	},
+	stopPropagation: function() {
+		var e = this.originalEvent;
+
+		this.isPropagationStopped = returnTrue;
+
+		if ( e && !this.isSimulated ) {
+			e.stopPropagation();
+		}
+	},
+	stopImmediatePropagation: function() {
+		var e = this.originalEvent;
+
+		this.isImmediatePropagationStopped = returnTrue;
+
+		if ( e && !this.isSimulated ) {
+			e.stopImmediatePropagation();
+		}
+
+		this.stopPropagation();
+	}
+};
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+// so that event delegation works in jQuery.
+// Do the same for pointerenter/pointerleave and pointerover/pointerout
+//
+// Support: Safari 7 only
+// Safari sends mouseenter too often; see:
+// https://code.google.com/p/chromium/issues/detail?id=470258
+// for the description of the bug (it existed in older Chrome versions as well).
+jQuery.each( {
+	mouseenter: "mouseover",
+	mouseleave: "mouseout",
+	pointerenter: "pointerover",
+	pointerleave: "pointerout"
+}, function( orig, fix ) {
+	jQuery.event.special[ orig ] = {
+		delegateType: fix,
+		bindType: fix,
+
+		handle: function( event ) {
+			var ret,
+				target = this,
+				related = event.relatedTarget,
+				handleObj = event.handleObj;
+
+			// For mouseenter/leave call the handler if related is outside the target.
+			// NB: No relatedTarget if the mouse left/entered the browser window
+			if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
+				event.type = handleObj.origType;
+				ret = handleObj.handler.apply( this, arguments );
+				event.type = fix;
+			}
+			return ret;
+		}
+	};
+} );
+
+jQuery.fn.extend( {
+	on: function( types, selector, data, fn ) {
+		return on( this, types, selector, data, fn );
+	},
+	one: function( types, selector, data, fn ) {
+		return on( this, types, selector, data, fn, 1 );
+	},
+	off: function( types, selector, fn ) {
+		var handleObj, type;
+		if ( types && types.preventDefault && types.handleObj ) {
+
+			// ( event )  dispatched jQuery.Event
+			handleObj = types.handleObj;
+			jQuery( types.delegateTarget ).off(
+				handleObj.namespace ?
+					handleObj.origType + "." + handleObj.namespace :
+					handleObj.origType,
+				handleObj.selector,
+				handleObj.handler
+			);
+			return this;
+		}
+		if ( typeof types === "object" ) {
+
+			// ( types-object [, selector] )
+			for ( type in types ) {
+				this.off( type, selector, types[ type ] );
+			}
+			return this;
+		}
+		if ( selector === false || typeof selector === "function" ) {
+
+			// ( types [, fn] )
+			fn = selector;
+			selector = undefined;
+		}
+		if ( fn === false ) {
+			fn = returnFalse;
+		}
+		return this.each( function() {
+			jQuery.event.remove( this, types, fn, selector );
+		} );
+	}
+} );
+
+
+var
+	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,
+
+	// Support: IE 10-11, Edge 10240+
+	// In IE/Edge using regex groups here causes severe slowdowns.
+	// See https://connect.microsoft.com/IE/feedback/details/1736512/
+	rnoInnerhtml = /<script|<style|<link/i,
+
+	// checked="checked" or checked
+	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+	rscriptTypeMasked = /^true\/(.*)/,
+	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
+
+// Manipulating tables requires a tbody
+function manipulationTarget( elem, content ) {
+	return jQuery.nodeName( elem, "table" ) &&
+		jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
+
+		elem.getElementsByTagName( "tbody" )[ 0 ] ||
+			elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
+		elem;
+}
+
+// Replace/restore the type attribute of script elements for safe DOM manipulation
+function disableScript( elem ) {
+	elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
+	return elem;
+}
+function restoreScript( elem ) {
+	var match = rscriptTypeMasked.exec( elem.type );
+
+	if ( match ) {
+		elem.type = match[ 1 ];
+	} else {
+		elem.removeAttribute( "type" );
+	}
+
+	return elem;
+}
+
+function cloneCopyEvent( src, dest ) {
+	var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
+
+	if ( dest.nodeType !== 1 ) {
+		return;
+	}
+
+	// 1. Copy private data: events, handlers, etc.
+	if ( dataPriv.hasData( src ) ) {
+		pdataOld = dataPriv.access( src );
+		pdataCur = dataPriv.set( dest, pdataOld );
+		events = pdataOld.events;
+
+		if ( events ) {
+			delete pdataCur.handle;
+			pdataCur.events = {};
+
+			for ( type in events ) {
+				for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+					jQuery.event.add( dest, type, events[ type ][ i ] );
+				}
+			}
+		}
+	}
+
+	// 2. Copy user data
+	if ( dataUser.hasData( src ) ) {
+		udataOld = dataUser.access( src );
+		udataCur = jQuery.extend( {}, udataOld );
+
+		dataUser.set( dest, udataCur );
+	}
+}
+
+// Fix IE bugs, see support tests
+function fixInput( src, dest ) {
+	var nodeName = dest.nodeName.toLowerCase();
+
+	// Fails to persist the checked state of a cloned checkbox or radio button.
+	if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
+		dest.checked = src.checked;
+
+	// Fails to return the selected option to the default selected state when cloning options
+	} else if ( nodeName === "input" || nodeName === "textarea" ) {
+		dest.defaultValue = src.defaultValue;
+	}
+}
+
+function domManip( collection, args, callback, ignored ) {
+
+	// Flatten any nested arrays
+	args = concat.apply( [], args );
+
+	var fragment, first, scripts, hasScripts, node, doc,
+		i = 0,
+		l = collection.length,
+		iNoClone = l - 1,
+		value = args[ 0 ],
+		isFunction = jQuery.isFunction( value );
+
+	// We can't cloneNode fragments that contain checked, in WebKit
+	if ( isFunction ||
+			( l > 1 && typeof value === "string" &&
+				!support.checkClone && rchecked.test( value ) ) ) {
+		return collection.each( function( index ) {
+			var self = collection.eq( index );
+			if ( isFunction ) {
+				args[ 0 ] = value.call( this, index, self.html() );
+			}
+			domManip( self, args, callback, ignored );
+		} );
+	}
+
+	if ( l ) {
+		fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
+		first = fragment.firstChild;
+
+		if ( fragment.childNodes.length === 1 ) {
+			fragment = first;
+		}
+
+		// Require either new content or an interest in ignored elements to invoke the callback
+		if ( first || ignored ) {
+			scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
+			hasScripts = scripts.length;
+
+			// Use the original fragment for the last item
+			// instead of the first because it can end up
+			// being emptied incorrectly in certain situations (#8070).
+			for ( ; i < l; i++ ) {
+				node = fragment;
+
+				if ( i !== iNoClone ) {
+					node = jQuery.clone( node, true, true );
+
+					// Keep references to cloned scripts for later restoration
+					if ( hasScripts ) {
+
+						// Support: Android<4.1, PhantomJS<2
+						// push.apply(_, arraylike) throws on ancient WebKit
+						jQuery.merge( scripts, getAll( node, "script" ) );
+					}
+				}
+
+				callback.call( collection[ i ], node, i );
+			}
+
+			if ( hasScripts ) {
+				doc = scripts[ scripts.length - 1 ].ownerDocument;
+
+				// Reenable scripts
+				jQuery.map( scripts, restoreScript );
+
+				// Evaluate executable scripts on first document insertion
+				for ( i = 0; i < hasScripts; i++ ) {
+					node = scripts[ i ];
+					if ( rscriptType.test( node.type || "" ) &&
+						!dataPriv.access( node, "globalEval" ) &&
+						jQuery.contains( doc, node ) ) {
+
+						if ( node.src ) {
+
+							// Optional AJAX dependency, but won't run scripts if not present
+							if ( jQuery._evalUrl ) {
+								jQuery._evalUrl( node.src );
+							}
+						} else {
+							jQuery.globalEval( node.textContent.replace( rcleanScript, "" ) );
+						}
+					}
+				}
+			}
+		}
+	}
+
+	return collection;
+}
+
+function remove( elem, selector, keepData ) {
+	var node,
+		nodes = selector ? jQuery.filter( selector, elem ) : elem,
+		i = 0;
+
+	for ( ; ( node = nodes[ i ] ) != null; i++ ) {
+		if ( !keepData && node.nodeType === 1 ) {
+			jQuery.cleanData( getAll( node ) );
+		}
+
+		if ( node.parentNode ) {
+			if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
+				setGlobalEval( getAll( node, "script" ) );
+			}
+			node.parentNode.removeChild( node );
+		}
+	}
+
+	return elem;
+}
+
+jQuery.extend( {
+	htmlPrefilter: function( html ) {
+		return html.replace( rxhtmlTag, "<$1></$2>" );
+	},
+
+	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+		var i, l, srcElements, destElements,
+			clone = elem.cloneNode( true ),
+			inPage = jQuery.contains( elem.ownerDocument, elem );
+
+		// Fix IE cloning issues
+		if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
+				!jQuery.isXMLDoc( elem ) ) {
+
+			// We eschew Sizzle here for performance reasons: http://jsperf.com/getall-vs-sizzle/2
+			destElements = getAll( clone );
+			srcElements = getAll( elem );
+
+			for ( i = 0, l = srcElements.length; i < l; i++ ) {
+				fixInput( srcElements[ i ], destElements[ i ] );
+			}
+		}
+
+		// Copy the events from the original to the clone
+		if ( dataAndEvents ) {
+			if ( deepDataAndEvents ) {
+				srcElements = srcElements || getAll( elem );
+				destElements = destElements || getAll( clone );
+
+				for ( i = 0, l = srcElements.length; i < l; i++ ) {
+					cloneCopyEvent( srcElements[ i ], destElements[ i ] );
+				}
+			} else {
+				cloneCopyEvent( elem, clone );
+			}
+		}
+
+		// Preserve script evaluation history
+		destElements = getAll( clone, "script" );
+		if ( destElements.length > 0 ) {
+			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
+		}
+
+		// Return the cloned set
+		return clone;
+	},
+
+	cleanData: function( elems ) {
+		var data, elem, type,
+			special = jQuery.event.special,
+			i = 0;
+
+		for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
+			if ( acceptData( elem ) ) {
+				if ( ( data = elem[ dataPriv.expando ] ) ) {
+					if ( data.events ) {
+						for ( type in data.events ) {
+							if ( special[ type ] ) {
+								jQuery.event.remove( elem, type );
+
+							// This is a shortcut to avoid jQuery.event.remove's overhead
+							} else {
+								jQuery.removeEvent( elem, type, data.handle );
+							}
+						}
+					}
+
+					// Support: Chrome <= 35-45+
+					// Assign undefined instead of using delete, see Data#remove
+					elem[ dataPriv.expando ] = undefined;
+				}
+				if ( elem[ dataUser.expando ] ) {
+
+					// Support: Chrome <= 35-45+
+					// Assign undefined instead of using delete, see Data#remove
+					elem[ dataUser.expando ] = undefined;
+				}
+			}
+		}
+	}
+} );
+
+jQuery.fn.extend( {
+
+	// Keep domManip exposed until 3.0 (gh-2225)
+	domManip: domManip,
+
+	detach: function( selector ) {
+		return remove( this, selector, true );
+	},
+
+	remove: function( selector ) {
+		return remove( this, selector );
+	},
+
+	text: function( value ) {
+		return access( this, function( value ) {
+			return value === undefined ?
+				jQuery.text( this ) :
+				this.empty().each( function() {
+					if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+						this.textContent = value;
+					}
+				} );
+		}, null, value, arguments.length );
+	},
+
+	append: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+				var target = manipulationTarget( this, elem );
+				target.appendChild( elem );
+			}
+		} );
+	},
+
+	prepend: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
+				var target = manipulationTarget( this, elem );
+				target.insertBefore( elem, target.firstChild );
+			}
+		} );
+	},
+
+	before: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.parentNode ) {
+				this.parentNode.insertBefore( elem, this );
+			}
+		} );
+	},
+
+	after: function() {
+		return domManip( this, arguments, function( elem ) {
+			if ( this.parentNode ) {
+				this.parentNode.insertBefore( elem, this.nextSibling );
+			}
+		} );
+	},
+
+	empty: function() {
+		var elem,
+			i = 0;
+
+		for ( ; ( elem = this[ i ] ) != null; i++ ) {
+			if ( elem.nodeType === 1 ) {
+
+				// Prevent memory leaks
+				jQuery.cleanData( getAll( elem, false ) );
+
+				// Remove any remaining nodes
+				elem.textContent = "";
+			}
+		}
+
+		return this;
+	},
+
+	clone: function( dataAndEvents, deepDataAndEvents ) {
+		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+		return this.map( function() {
+			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+		} );
+	},
+
+	html: function( value ) {
+		return access( this, function( value ) {
+			var elem = this[ 0 ] || {},
+				i = 0,
+				l = this.length;
+
+			if ( value === undefined && elem.nodeType === 1 ) {
+				return elem.innerHTML;
+			}
+
+			// See if we can take a shortcut and just use innerHTML
+			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+				!wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
+
+				value = jQuery.htmlPrefilter( value );
+
+				try {
+					for ( ; i < l; i++ ) {
+						elem = this[ i ] || {};
+
+						// Remove element nodes and prevent memory leaks
+						if ( elem.nodeType === 1 ) {
+							jQuery.cleanData( getAll( elem, false ) );
+							elem.innerHTML = value;
+						}
+					}
+
+					elem = 0;
+
+				// If using innerHTML throws an exception, use the fallback method
+				} catch ( e ) {}
+			}
+
+			if ( elem ) {
+				this.empty().append( value );
+			}
+		}, null, value, arguments.length );
+	},
+
+	replaceWith: function() {
+		var ignored = [];
+
+		// Make the changes, replacing each non-ignored context element with the new content
+		return domManip( this, arguments, function( elem ) {
+			var parent = this.parentNode;
+
+			if ( jQuery.inArray( this, ignored ) < 0 ) {
+				jQuery.cleanData( getAll( this ) );
+				if ( parent ) {
+					parent.replaceChild( elem, this );
+				}
+			}
+
+		// Force callback invocation
+		}, ignored );
+	}
+} );
+
+jQuery.each( {
+	appendTo: "append",
+	prependTo: "prepend",
+	insertBefore: "before",
+	insertAfter: "after",
+	replaceAll: "replaceWith"
+}, function( name, original ) {
+	jQuery.fn[ name ] = function( selector ) {
+		var elems,
+			ret = [],
+			insert = jQuery( selector ),
+			last = insert.length - 1,
+			i = 0;
+
+		for ( ; i <= last; i++ ) {
+			elems = i === last ? this : this.clone( true );
+			jQuery( insert[ i ] )[ original ]( elems );
+
+			// Support: QtWebKit
+			// .get() because push.apply(_, arraylike) throws
+			push.apply( ret, elems.get() );
+		}
+
+		return this.pushStack( ret );
+	};
+} );
+
+
+var iframe,
+	elemdisplay = {
+
+		// Support: Firefox
+		// We have to pre-define these values for FF (#10227)
+		HTML: "block",
+		BODY: "block"
+	};
+
+/**
+ * Retrieve the actual display of a element
+ * @param {String} name nodeName of the element
+ * @param {Object} doc Document object
+ */
+
+// Called only from within defaultDisplay
+function actualDisplay( name, doc ) {
+	var elem = jQuery( doc.createElement( name ) ).appendTo( doc.body ),
+
+		display = jQuery.css( elem[ 0 ], "display" );
+
+	// We don't have any data stored on the element,
+	// so use "detach" method as fast way to get rid of the element
+	elem.detach();
+
+	return display;
+}
+
+/**
+ * Try to determine the default display value of an element
+ * @param {String} nodeName
+ */
+function defaultDisplay( nodeName ) {
+	var doc = document,
+		display = elemdisplay[ nodeName ];
+
+	if ( !display ) {
+		display = actualDisplay( nodeName, doc );
+
+		// If the simple way fails, read from inside an iframe
+		if ( display === "none" || !display ) {
+
+			// Use the already-created iframe if possible
+			iframe = ( iframe || jQuery( "<iframe frameborder='0' width='0' height='0'/>" ) )
+				.appendTo( doc.documentElement );
+
+			// Always write a new HTML skeleton so Webkit and Firefox don't choke on reuse
+			doc = iframe[ 0 ].contentDocument;
+
+			// Support: IE
+			doc.write();
+			doc.close();
+
+			display = actualDisplay( nodeName, doc );
+			iframe.detach();
+		}
+
+		// Store the correct default display
+		elemdisplay[ nodeName ] = display;
+	}
+
+	return display;
+}
+var rmargin = ( /^margin/ );
+
+var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
+
+var getStyles = function( elem ) {
+
+		// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
+		// IE throws on elements created in popups
+		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
+		var view = elem.ownerDocument.defaultView;
+
+		if ( !view || !view.opener ) {
+			view = window;
+		}
+
+		return view.getComputedStyle( elem );
+	};
+
+var swap = function( elem, options, callback, args ) {
+	var ret, name,
+		old = {};
+
+	// Remember the old values, and insert the new ones
+	for ( name in options ) {
+		old[ name ] = elem.style[ name ];
+		elem.style[ name ] = options[ name ];
+	}
+
+	ret = callback.apply( elem, args || [] );
+
+	// Revert the old values
+	for ( name in options ) {
+		elem.style[ name ] = old[ name ];
+	}
+
+	return ret;
+};
+
+
+var documentElement = document.documentElement;
+
+
+
+( function() {
+	var pixelPositionVal, boxSizingReliableVal, pixelMarginRightVal, reliableMarginLeftVal,
+		container = document.createElement( "div" ),
+		div = document.createElement( "div" );
+
+	// Finish early in limited (non-browser) environments
+	if ( !div.style ) {
+		return;
+	}
+
+	// Support: IE9-11+
+	// Style of cloned element affects source element cloned (#8908)
+	div.style.backgroundClip = "content-box";
+	div.cloneNode( true ).style.backgroundClip = "";
+	support.clearCloneStyle = div.style.backgroundClip === "content-box";
+
+	container.style.cssText = "border:0;width:8px;height:0;top:0;left:-9999px;" +
+		"padding:0;margin-top:1px;position:absolute";
+	container.appendChild( div );
+
+	// Executing both pixelPosition & boxSizingReliable tests require only one layout
+	// so they're executed at the same time to save the second computation.
+	function computeStyleTests() {
+		div.style.cssText =
+
+			// Support: Firefox<29, Android 2.3
+			// Vendor-prefix box-sizing
+			"-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;" +
+			"position:relative;display:block;" +
+			"margin:auto;border:1px;padding:1px;" +
+			"top:1%;width:50%";
+		div.innerHTML = "";
+		documentElement.appendChild( container );
+
+		var divStyle = window.getComputedStyle( div );
+		pixelPositionVal = divStyle.top !== "1%";
+		reliableMarginLeftVal = divStyle.marginLeft === "2px";
+		boxSizingReliableVal = divStyle.width === "4px";
+
+		// Support: Android 4.0 - 4.3 only
+		// Some styles come back with percentage values, even though they shouldn't
+		div.style.marginRight = "50%";
+		pixelMarginRightVal = divStyle.marginRight === "4px";
+
+		documentElement.removeChild( container );
+	}
+
+	jQuery.extend( support, {
+		pixelPosition: function() {
+
+			// This test is executed only once but we still do memoizing
+			// since we can use the boxSizingReliable pre-computing.
+			// No need to check if the test was already performed, though.
+			computeStyleTests();
+			return pixelPositionVal;
+		},
+		boxSizingReliable: function() {
+			if ( boxSizingReliableVal == null ) {
+				computeStyleTests();
+			}
+			return boxSizingReliableVal;
+		},
+		pixelMarginRight: function() {
+
+			// Support: Android 4.0-4.3
+			// We're checking for boxSizingReliableVal here instead of pixelMarginRightVal
+			// since that compresses better and they're computed together anyway.
+			if ( boxSizingReliableVal == null ) {
+				computeStyleTests();
+			}
+			return pixelMarginRightVal;
+		},
+		reliableMarginLeft: function() {
+
+			// Support: IE <=8 only, Android 4.0 - 4.3 only, Firefox <=3 - 37
+			if ( boxSizingReliableVal == null ) {
+				computeStyleTests();
+			}
+			return reliableMarginLeftVal;
+		},
+		reliableMarginRight: function() {
+
+			// Support: Android 2.3
+			// Check if div with explicit width and no margin-right incorrectly
+			// gets computed margin-right based on width of container. (#3333)
+			// WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+			// This support function is only executed once so no memoizing is needed.
+			var ret,
+				marginDiv = div.appendChild( document.createElement( "div" ) );
+
+			// Reset CSS: box-sizing; display; margin; border; padding
+			marginDiv.style.cssText = div.style.cssText =
+
+				// Support: Android 2.3
+				// Vendor-prefix box-sizing
+				"-webkit-box-sizing:content-box;box-sizing:content-box;" +
+				"display:block;margin:0;border:0;padding:0";
+			marginDiv.style.marginRight = marginDiv.style.width = "0";
+			div.style.width = "1px";
+			documentElement.appendChild( container );
+
+			ret = !parseFloat( window.getComputedStyle( marginDiv ).marginRight );
+
+			documentElement.removeChild( container );
+			div.removeChild( marginDiv );
+
+			return ret;
+		}
+	} );
+} )();
+
+
+function curCSS( elem, name, computed ) {
+	var width, minWidth, maxWidth, ret,
+		style = elem.style;
+
+	computed = computed || getStyles( elem );
+	ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
+
+	// Support: Opera 12.1x only
+	// Fall back to style even without computed
+	// computed is undefined for elems on document fragments
+	if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
+		ret = jQuery.style( elem, name );
+	}
+
+	// Support: IE9
+	// getPropertyValue is only needed for .css('filter') (#12537)
+	if ( computed ) {
+
+		// A tribute to the "awesome hack by Dean Edwards"
+		// Android Browser returns percentage for some values,
+		// but width seems to be reliably pixels.
+		// This is against the CSSOM draft spec:
+		// http://dev.w3.org/csswg/cssom/#resolved-values
+		if ( !support.pixelMarginRight() && rnumnonpx.test( ret ) && rmargin.test( name ) ) {
+
+			// Remember the original values
+			width = style.width;
+			minWidth = style.minWidth;
+			maxWidth = style.maxWidth;
+
+			// Put in the new values to get a computed value out
+			style.minWidth = style.maxWidth = style.width = ret;
+			ret = computed.width;
+
+			// Revert the changed values
+			style.width = width;
+			style.minWidth = minWidth;
+			style.maxWidth = maxWidth;
+		}
+	}
+
+	return ret !== undefined ?
+
+		// Support: IE9-11+
+		// IE returns zIndex value as an integer.
+		ret + "" :
+		ret;
+}
+
+
+function addGetHookIf( conditionFn, hookFn ) {
+
+	// Define the hook, we'll check on the first run if it's really needed.
+	return {
+		get: function() {
+			if ( conditionFn() ) {
+
+				// Hook not needed (or it's not possible to use it due
+				// to missing dependency), remove it.
+				delete this.get;
+				return;
+			}
+
+			// Hook needed; redefine it so that the support test is not executed again.
+			return ( this.get = hookFn ).apply( this, arguments );
+		}
+	};
+}
+
+
+var
+
+	// Swappable if display is none or starts with table
+	// except "table", "table-cell", or "table-caption"
+	// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
+	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
+
+	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+	cssNormalTransform = {
+		letterSpacing: "0",
+		fontWeight: "400"
+	},
+
+	cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
+	emptyStyle = document.createElement( "div" ).style;
+
+// Return a css property mapped to a potentially vendor prefixed property
+function vendorPropName( name ) {
+
+	// Shortcut for names that are not vendor prefixed
+	if ( name in emptyStyle ) {
+		return name;
+	}
+
+	// Check for vendor prefixed names
+	var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
+		i = cssPrefixes.length;
+
+	while ( i-- ) {
+		name = cssPrefixes[ i ] + capName;
+		if ( name in emptyStyle ) {
+			return name;
+		}
+	}
+}
+
+function setPositiveNumber( elem, value, subtract ) {
+
+	// Any relative (+/-) values have already been
+	// normalized at this point
+	var matches = rcssNum.exec( value );
+	return matches ?
+
+		// Guard against undefined "subtract", e.g., when used as in cssHooks
+		Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
+		value;
+}
+
+function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
+	var i = extra === ( isBorderBox ? "border" : "content" ) ?
+
+		// If we already have the right measurement, avoid augmentation
+		4 :
+
+		// Otherwise initialize for horizontal or vertical properties
+		name === "width" ? 1 : 0,
+
+		val = 0;
+
+	for ( ; i < 4; i += 2 ) {
+
+		// Both box models exclude margin, so add it if we want it
+		if ( extra === "margin" ) {
+			val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
+		}
+
+		if ( isBorderBox ) {
+
+			// border-box includes padding, so remove it if we want content
+			if ( extra === "content" ) {
+				val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
+			}
+
+			// At this point, extra isn't border nor margin, so remove border
+			if ( extra !== "margin" ) {
+				val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
+			}
+		} else {
+
+			// At this point, extra isn't content, so add padding
+			val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
+
+			// At this point, extra isn't content nor padding, so add border
+			if ( extra !== "padding" ) {
+				val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
+			}
+		}
+	}
+
+	return val;
+}
+
+function getWidthOrHeight( elem, name, extra ) {
+
+	// Start with offset property, which is equivalent to the border-box value
+	var valueIsBorderBox = true,
+		val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+		styles = getStyles( elem ),
+		isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
+
+	// Some non-html elements return undefined for offsetWidth, so check for null/undefined
+	// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
+	// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
+	if ( val <= 0 || val == null ) {
+
+		// Fall back to computed then uncomputed css if necessary
+		val = curCSS( elem, name, styles );
+		if ( val < 0 || val == null ) {
+			val = elem.style[ name ];
+		}
+
+		// Computed unit is not pixels. Stop here and return.
+		if ( rnumnonpx.test( val ) ) {
+			return val;
+		}
+
+		// Check for style in case a browser which returns unreliable values
+		// for getComputedStyle silently falls back to the reliable elem.style
+		valueIsBorderBox = isBorderBox &&
+			( support.boxSizingReliable() || val === elem.style[ name ] );
+
+		// Normalize "", auto, and prepare for extra
+		val = parseFloat( val ) || 0;
+	}
+
+	// Use the active box-sizing model to add/subtract irrelevant styles
+	return ( val +
+		augmentWidthOrHeight(
+			elem,
+			name,
+			extra || ( isBorderBox ? "border" : "content" ),
+			valueIsBorderBox,
+			styles
+		)
+	) + "px";
+}
+
+function showHide( elements, show ) {
+	var display, elem, hidden,
+		values = [],
+		index = 0,
+		length = elements.length;
+
+	for ( ; index < length; index++ ) {
+		elem = elements[ index ];
+		if ( !elem.style ) {
+			continue;
+		}
+
+		values[ index ] = dataPriv.get( elem, "olddisplay" );
+		display = elem.style.display;
+		if ( show ) {
+
+			// Reset the inline display of this element to learn if it is
+			// being hidden by cascaded rules or not
+			if ( !values[ index ] && display === "none" ) {
+				elem.style.display = "";
+			}
+
+			// Set elements which have been overridden with display: none
+			// in a stylesheet to whatever the default browser style is
+			// for such an element
+			if ( elem.style.display === "" && isHidden( elem ) ) {
+				values[ index ] = dataPriv.access(
+					elem,
+					"olddisplay",
+					defaultDisplay( elem.nodeName )
+				);
+			}
+		} else {
+			hidden = isHidden( elem );
+
+			if ( display !== "none" || !hidden ) {
+				dataPriv.set(
+					elem,
+					"olddisplay",
+					hidden ? display : jQuery.css( elem, "display" )
+				);
+			}
+		}
+	}
+
+	// Set the display of most of the elements in a second loop
+	// to avoid the constant reflow
+	for ( index = 0; index < length; index++ ) {
+		elem = elements[ index ];
+		if ( !elem.style ) {
+			continue;
+		}
+		if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
+			elem.style.display = show ? values[ index ] || "" : "none";
+		}
+	}
+
+	return elements;
+}
+
+jQuery.extend( {
+
+	// Add in style property hooks for overriding the default
+	// behavior of getting and setting a style property
+	cssHooks: {
+		opacity: {
+			get: function( elem, computed ) {
+				if ( computed ) {
+
+					// We should always get a number back from opacity
+					var ret = curCSS( elem, "opacity" );
+					return ret === "" ? "1" : ret;
+				}
+			}
+		}
+	},
+
+	// Don't automatically add "px" to these possibly-unitless properties
+	cssNumber: {
+		"animationIterationCount": true,
+		"columnCount": true,
+		"fillOpacity": true,
+		"flexGrow": true,
+		"flexShrink": true,
+		"fontWeight": true,
+		"lineHeight": true,
+		"opacity": true,
+		"order": true,
+		"orphans": true,
+		"widows": true,
+		"zIndex": true,
+		"zoom": true
+	},
+
+	// Add in properties whose names you wish to fix before
+	// setting or getting the value
+	cssProps: {
+		"float": "cssFloat"
+	},
+
+	// Get and set the style property on a DOM Node
+	style: function( elem, name, value, extra ) {
+
+		// Don't set styles on text and comment nodes
+		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+			return;
+		}
+
+		// Make sure that we're working with the right name
+		var ret, type, hooks,
+			origName = jQuery.camelCase( name ),
+			style = elem.style;
+
+		name = jQuery.cssProps[ origName ] ||
+			( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
+
+		// Gets hook for the prefixed version, then unprefixed version
+		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+		// Check if we're setting a value
+		if ( value !== undefined ) {
+			type = typeof value;
+
+			// Convert "+=" or "-=" to relative numbers (#7345)
+			if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
+				value = adjustCSS( elem, name, ret );
+
+				// Fixes bug #9237
+				type = "number";
+			}
+
+			// Make sure that null and NaN values aren't set (#7116)
+			if ( value == null || value !== value ) {
+				return;
+			}
+
+			// If a number was passed in, add the unit (except for certain CSS properties)
+			if ( type === "number" ) {
+				value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
+			}
+
+			// Support: IE9-11+
+			// background-* props affect original clone's values
+			if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
+				style[ name ] = "inherit";
+			}
+
+			// If a hook was provided, use that value, otherwise just set the specified value
+			if ( !hooks || !( "set" in hooks ) ||
+				( value = hooks.set( elem, value, extra ) ) !== undefined ) {
+
+				style[ name ] = value;
+			}
+
+		} else {
+
+			// If a hook was provided get the non-computed value from there
+			if ( hooks && "get" in hooks &&
+				( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
+
+				return ret;
+			}
+
+			// Otherwise just get the value from the style object
+			return style[ name ];
+		}
+	},
+
+	css: function( elem, name, extra, styles ) {
+		var val, num, hooks,
+			origName = jQuery.camelCase( name );
+
+		// Make sure that we're working with the right name
+		name = jQuery.cssProps[ origName ] ||
+			( jQuery.cssProps[ origName ] = vendorPropName( origName ) || origName );
+
+		// Try prefixed name followed by the unprefixed name
+		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+		// If a hook was provided get the computed value from there
+		if ( hooks && "get" in hooks ) {
+			val = hooks.get( elem, true, extra );
+		}
+
+		// Otherwise, if a way to get the computed value exists, use that
+		if ( val === undefined ) {
+			val = curCSS( elem, name, styles );
+		}
+
+		// Convert "normal" to computed value
+		if ( val === "normal" && name in cssNormalTransform ) {
+			val = cssNormalTransform[ name ];
+		}
+
+		// Make numeric if forced or a qualifier was provided and val looks numeric
+		if ( extra === "" || extra ) {
+			num = parseFloat( val );
+			return extra === true || isFinite( num ) ? num || 0 : val;
+		}
+		return val;
+	}
+} );
+
+jQuery.each( [ "height", "width" ], function( i, name ) {
+	jQuery.cssHooks[ name ] = {
+		get: function( elem, computed, extra ) {
+			if ( computed ) {
+
+				// Certain elements can have dimension info if we invisibly show them
+				// but it must have a current display style that would benefit
+				return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
+					elem.offsetWidth === 0 ?
+						swap( elem, cssShow, function() {
+							return getWidthOrHeight( elem, name, extra );
+						} ) :
+						getWidthOrHeight( elem, name, extra );
+			}
+		},
+
+		set: function( elem, value, extra ) {
+			var matches,
+				styles = extra && getStyles( elem ),
+				subtract = extra && augmentWidthOrHeight(
+					elem,
+					name,
+					extra,
+					jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
+					styles
+				);
+
+			// Convert to pixels if value adjustment is needed
+			if ( subtract && ( matches = rcssNum.exec( value ) ) &&
+				( matches[ 3 ] || "px" ) !== "px" ) {
+
+				elem.style[ name ] = value;
+				value = jQuery.css( elem, name );
+			}
+
+			return setPositiveNumber( elem, value, subtract );
+		}
+	};
+} );
+
+jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
+	function( elem, computed ) {
+		if ( computed ) {
+			return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
+				elem.getBoundingClientRect().left -
+					swap( elem, { marginLeft: 0 }, function() {
+						return elem.getBoundingClientRect().left;
+					} )
+				) + "px";
+		}
+	}
+);
+
+// Support: Android 2.3
+jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
+	function( elem, computed ) {
+		if ( computed ) {
+			return swap( elem, { "display": "inline-block" },
+				curCSS, [ elem, "marginRight" ] );
+		}
+	}
+);
+
+// These hooks are used by animate to expand properties
+jQuery.each( {
+	margin: "",
+	padding: "",
+	border: "Width"
+}, function( prefix, suffix ) {
+	jQuery.cssHooks[ prefix + suffix ] = {
+		expand: function( value ) {
+			var i = 0,
+				expanded = {},
+
+				// Assumes a single number if not a string
+				parts = typeof value === "string" ? value.split( " " ) : [ value ];
+
+			for ( ; i < 4; i++ ) {
+				expanded[ prefix + cssExpand[ i ] + suffix ] =
+					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
+			}
+
+			return expanded;
+		}
+	};
+
+	if ( !rmargin.test( prefix ) ) {
+		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
+	}
+} );
+
+jQuery.fn.extend( {
+	css: function( name, value ) {
+		return access( this, function( elem, name, value ) {
+			var styles, len,
+				map = {},
+				i = 0;
+
+			if ( jQuery.isArray( name ) ) {
+				styles = getStyles( elem );
+				len = name.length;
+
+				for ( ; i < len; i++ ) {
+					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
+				}
+
+				return map;
+			}
+
+			return value !== undefined ?
+				jQuery.style( elem, name, value ) :
+				jQuery.css( elem, name );
+		}, name, value, arguments.length > 1 );
+	},
+	show: function() {
+		return showHide( this, true );
+	},
+	hide: function() {
+		return showHide( this );
+	},
+	toggle: function( state ) {
+		if ( typeof state === "boolean" ) {
+			return state ? this.show() : this.hide();
+		}
+
+		return this.each( function() {
+			if ( isHidden( this ) ) {
+				jQuery( this ).show();
+			} else {
+				jQuery( this ).hide();
+			}
+		} );
+	}
+} );
+
+
+function Tween( elem, options, prop, end, easing ) {
+	return new Tween.prototype.init( elem, options, prop, end, easing );
+}
+jQuery.Tween = Tween;
+
+Tween.prototype = {
+	constructor: Tween,
+	init: function( elem, options, prop, end, easing, unit ) {
+		this.elem = elem;
+		this.prop = prop;
+		this.easing = easing || jQuery.easing._default;
+		this.options = options;
+		this.start = this.now = this.cur();
+		this.end = end;
+		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
+	},
+	cur: function() {
+		var hooks = Tween.propHooks[ this.prop ];
+
+		return hooks && hooks.get ?
+			hooks.get( this ) :
+			Tween.propHooks._default.get( this );
+	},
+	run: function( percent ) {
+		var eased,
+			hooks = Tween.propHooks[ this.prop ];
+
+		if ( this.options.duration ) {
+			this.pos = eased = jQuery.easing[ this.easing ](
+				percent, this.options.duration * percent, 0, 1, this.options.duration
+			);
+		} else {
+			this.pos = eased = percent;
+		}
+		this.now = ( this.end - this.start ) * eased + this.start;
+
+		if ( this.options.step ) {
+			this.options.step.call( this.elem, this.now, this );
+		}
+
+		if ( hooks && hooks.set ) {
+			hooks.set( this );
+		} else {
+			Tween.propHooks._default.set( this );
+		}
+		return this;
+	}
+};
+
+Tween.prototype.init.prototype = Tween.prototype;
+
+Tween.propHooks = {
+	_default: {
+		get: function( tween ) {
+			var result;
+
+			// Use a property on the element directly when it is not a DOM element,
+			// or when there is no matching style property that exists.
+			if ( tween.elem.nodeType !== 1 ||
+				tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
+				return tween.elem[ tween.prop ];
+			}
+
+			// Passing an empty string as a 3rd parameter to .css will automatically
+			// attempt a parseFloat and fallback to a string if the parse fails.
+			// Simple values such as "10px" are parsed to Float;
+			// complex values such as "rotate(1rad)" are returned as-is.
+			result = jQuery.css( tween.elem, tween.prop, "" );
+
+			// Empty strings, null, undefined and "auto" are converted to 0.
+			return !result || result === "auto" ? 0 : result;
+		},
+		set: function( tween ) {
+
+			// Use step hook for back compat.
+			// Use cssHook if its there.
+			// Use .style if available and use plain properties where available.
+			if ( jQuery.fx.step[ tween.prop ] ) {
+				jQuery.fx.step[ tween.prop ]( tween );
+			} else if ( tween.elem.nodeType === 1 &&
+				( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
+					jQuery.cssHooks[ tween.prop ] ) ) {
+				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
+			} else {
+				tween.elem[ tween.prop ] = tween.now;
+			}
+		}
+	}
+};
+
+// Support: IE9
+// Panic based approach to setting things on disconnected nodes
+Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
+	set: function( tween ) {
+		if ( tween.elem.nodeType && tween.elem.parentNode ) {
+			tween.elem[ tween.prop ] = tween.now;
+		}
+	}
+};
+
+jQuery.easing = {
+	linear: function( p ) {
+		return p;
+	},
+	swing: function( p ) {
+		return 0.5 - Math.cos( p * Math.PI ) / 2;
+	},
+	_default: "swing"
+};
+
+jQuery.fx = Tween.prototype.init;
+
+// Back Compat <1.8 extension point
+jQuery.fx.step = {};
+
+
+
+
+var
+	fxNow, timerId,
+	rfxtypes = /^(?:toggle|show|hide)$/,
+	rrun = /queueHooks$/;
+
+// Animations created synchronously will run synchronously
+function createFxNow() {
+	window.setTimeout( function() {
+		fxNow = undefined;
+	} );
+	return ( fxNow = jQuery.now() );
+}
+
+// Generate parameters to create a standard animation
+function genFx( type, includeWidth ) {
+	var which,
+		i = 0,
+		attrs = { height: type };
+
+	// If we include width, step value is 1 to do all cssExpand values,
+	// otherwise step value is 2 to skip over Left and Right
+	includeWidth = includeWidth ? 1 : 0;
+	for ( ; i < 4 ; i += 2 - includeWidth ) {
+		which = cssExpand[ i ];
+		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
+	}
+
+	if ( includeWidth ) {
+		attrs.opacity = attrs.width = type;
+	}
+
+	return attrs;
+}
+
+function createTween( value, prop, animation ) {
+	var tween,
+		collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
+		index = 0,
+		length = collection.length;
+	for ( ; index < length; index++ ) {
+		if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
+
+			// We're done with this property
+			return tween;
+		}
+	}
+}
+
+function defaultPrefilter( elem, props, opts ) {
+	/* jshint validthis: true */
+	var prop, value, toggle, tween, hooks, oldfire, display, checkDisplay,
+		anim = this,
+		orig = {},
+		style = elem.style,
+		hidden = elem.nodeType && isHidden( elem ),
+		dataShow = dataPriv.get( elem, "fxshow" );
+
+	// Handle queue: false promises
+	if ( !opts.queue ) {
+		hooks = jQuery._queueHooks( elem, "fx" );
+		if ( hooks.unqueued == null ) {
+			hooks.unqueued = 0;
+			oldfire = hooks.empty.fire;
+			hooks.empty.fire = function() {
+				if ( !hooks.unqueued ) {
+					oldfire();
+				}
+			};
+		}
+		hooks.unqueued++;
+
+		anim.always( function() {
+
+			// Ensure the complete handler is called before this completes
+			anim.always( function() {
+				hooks.unqueued--;
+				if ( !jQuery.queue( elem, "fx" ).length ) {
+					hooks.empty.fire();
+				}
+			} );
+		} );
+	}
+
+	// Height/width overflow pass
+	if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
+
+		// Make sure that nothing sneaks out
+		// Record all 3 overflow attributes because IE9-10 do not
+		// change the overflow attribute when overflowX and
+		// overflowY are set to the same value
+		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
+
+		// Set display property to inline-block for height/width
+		// animations on inline elements that are having width/height animated
+		display = jQuery.css( elem, "display" );
+
+		// Test default display if display is currently "none"
+		checkDisplay = display === "none" ?
+			dataPriv.get( elem, "olddisplay" ) || defaultDisplay( elem.nodeName ) : display;
+
+		if ( checkDisplay === "inline" && jQuery.css( elem, "float" ) === "none" ) {
+			style.display = "inline-block";
+		}
+	}
+
+	if ( opts.overflow ) {
+		style.overflow = "hidden";
+		anim.always( function() {
+			style.overflow = opts.overflow[ 0 ];
+			style.overflowX = opts.overflow[ 1 ];
+			style.overflowY = opts.overflow[ 2 ];
+		} );
+	}
+
+	// show/hide pass
+	for ( prop in props ) {
+		value = props[ prop ];
+		if ( rfxtypes.exec( value ) ) {
+			delete props[ prop ];
+			toggle = toggle || value === "toggle";
+			if ( value === ( hidden ? "hide" : "show" ) ) {
+
+				// If there is dataShow left over from a stopped hide or show
+				// and we are going to proceed with show, we should pretend to be hidden
+				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
+					hidden = true;
+				} else {
+					continue;
+				}
+			}
+			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
+
+		// Any non-fx value stops us from restoring the original display value
+		} else {
+			display = undefined;
+		}
+	}
+
+	if ( !jQuery.isEmptyObject( orig ) ) {
+		if ( dataShow ) {
+			if ( "hidden" in dataShow ) {
+				hidden = dataShow.hidden;
+			}
+		} else {
+			dataShow = dataPriv.access( elem, "fxshow", {} );
+		}
+
+		// Store state if its toggle - enables .stop().toggle() to "reverse"
+		if ( toggle ) {
+			dataShow.hidden = !hidden;
+		}
+		if ( hidden ) {
+			jQuery( elem ).show();
+		} else {
+			anim.done( function() {
+				jQuery( elem ).hide();
+			} );
+		}
+		anim.done( function() {
+			var prop;
+
+			dataPriv.remove( elem, "fxshow" );
+			for ( prop in orig ) {
+				jQuery.style( elem, prop, orig[ prop ] );
+			}
+		} );
+		for ( prop in orig ) {
+			tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
+
+			if ( !( prop in dataShow ) ) {
+				dataShow[ prop ] = tween.start;
+				if ( hidden ) {
+					tween.end = tween.start;
+					tween.start = prop === "width" || prop === "height" ? 1 : 0;
+				}
+			}
+		}
+
+	// If this is a noop like .hide().hide(), restore an overwritten display value
+	} else if ( ( display === "none" ? defaultDisplay( elem.nodeName ) : display ) === "inline" ) {
+		style.display = display;
+	}
+}
+
+function propFilter( props, specialEasing ) {
+	var index, name, easing, value, hooks;
+
+	// camelCase, specialEasing and expand cssHook pass
+	for ( index in props ) {
+		name = jQuery.camelCase( index );
+		easing = specialEasing[ name ];
+		value = props[ index ];
+		if ( jQuery.isArray( value ) ) {
+			easing = value[ 1 ];
+			value = props[ index ] = value[ 0 ];
+		}
+
+		if ( index !== name ) {
+			props[ name ] = value;
+			delete props[ index ];
+		}
+
+		hooks = jQuery.cssHooks[ name ];
+		if ( hooks && "expand" in hooks ) {
+			value = hooks.expand( value );
+			delete props[ name ];
+
+			// Not quite $.extend, this won't overwrite existing keys.
+			// Reusing 'index' because we have the correct "name"
+			for ( index in value ) {
+				if ( !( index in props ) ) {
+					props[ index ] = value[ index ];
+					specialEasing[ index ] = easing;
+				}
+			}
+		} else {
+			specialEasing[ name ] = easing;
+		}
+	}
+}
+
+function Animation( elem, properties, options ) {
+	var result,
+		stopped,
+		index = 0,
+		length = Animation.prefilters.length,
+		deferred = jQuery.Deferred().always( function() {
+
+			// Don't match elem in the :animated selector
+			delete tick.elem;
+		} ),
+		tick = function() {
+			if ( stopped ) {
+				return false;
+			}
+			var currentTime = fxNow || createFxNow(),
+				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
+
+				// Support: Android 2.3
+				// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
+				temp = remaining / animation.duration || 0,
+				percent = 1 - temp,
+				index = 0,
+				length = animation.tweens.length;
+
+			for ( ; index < length ; index++ ) {
+				animation.tweens[ index ].run( percent );
+			}
+
+			deferred.notifyWith( elem, [ animation, percent, remaining ] );
+
+			if ( percent < 1 && length ) {
+				return remaining;
+			} else {
+				deferred.resolveWith( elem, [ animation ] );
+				return false;
+			}
+		},
+		animation = deferred.promise( {
+			elem: elem,
+			props: jQuery.extend( {}, properties ),
+			opts: jQuery.extend( true, {
+				specialEasing: {},
+				easing: jQuery.easing._default
+			}, options ),
+			originalProperties: properties,
+			originalOptions: options,
+			startTime: fxNow || createFxNow(),
+			duration: options.duration,
+			tweens: [],
+			createTween: function( prop, end ) {
+				var tween = jQuery.Tween( elem, animation.opts, prop, end,
+						animation.opts.specialEasing[ prop ] || animation.opts.easing );
+				animation.tweens.push( tween );
+				return tween;
+			},
+			stop: function( gotoEnd ) {
+				var index = 0,
+
+					// If we are going to the end, we want to run all the tweens
+					// otherwise we skip this part
+					length = gotoEnd ? animation.tweens.length : 0;
+				if ( stopped ) {
+					return this;
+				}
+				stopped = true;
+				for ( ; index < length ; index++ ) {
+					animation.tweens[ index ].run( 1 );
+				}
+
+				// Resolve when we played the last frame; otherwise, reject
+				if ( gotoEnd ) {
+					deferred.notifyWith( elem, [ animation, 1, 0 ] );
+					deferred.resolveWith( elem, [ animation, gotoEnd ] );
+				} else {
+					deferred.rejectWith( elem, [ animation, gotoEnd ] );
+				}
+				return this;
+			}
+		} ),
+		props = animation.props;
+
+	propFilter( props, animation.opts.specialEasing );
+
+	for ( ; index < length ; index++ ) {
+		result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
+		if ( result ) {
+			if ( jQuery.isFunction( result.stop ) ) {
+				jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
+					jQuery.proxy( result.stop, result );
+			}
+			return result;
+		}
+	}
+
+	jQuery.map( props, createTween, animation );
+
+	if ( jQuery.isFunction( animation.opts.start ) ) {
+		animation.opts.start.call( elem, animation );
+	}
+
+	jQuery.fx.timer(
+		jQuery.extend( tick, {
+			elem: elem,
+			anim: animation,
+			queue: animation.opts.queue
+		} )
+	);
+
+	// attach callbacks from options
+	return animation.progress( animation.opts.progress )
+		.done( animation.opts.done, animation.opts.complete )
+		.fail( animation.opts.fail )
+		.always( animation.opts.always );
+}
+
+jQuery.Animation = jQuery.extend( Animation, {
+	tweeners: {
+		"*": [ function( prop, value ) {
+			var tween = this.createTween( prop, value );
+			adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
+			return tween;
+		} ]
+	},
+
+	tweener: function( props, callback ) {
+		if ( jQuery.isFunction( props ) ) {
+			callback = props;
+			props = [ "*" ];
+		} else {
+			props = props.match( rnotwhite );
+		}
+
+		var prop,
+			index = 0,
+			length = props.length;
+
+		for ( ; index < length ; index++ ) {
+			prop = props[ index ];
+			Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
+			Animation.tweeners[ prop ].unshift( callback );
+		}
+	},
+
+	prefilters: [ defaultPrefilter ],
+
+	prefilter: function( callback, prepend ) {
+		if ( prepend ) {
+			Animation.prefilters.unshift( callback );
+		} else {
+			Animation.prefilters.push( callback );
+		}
+	}
+} );
+
+jQuery.speed = function( speed, easing, fn ) {
+	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
+		complete: fn || !fn && easing ||
+			jQuery.isFunction( speed ) && speed,
+		duration: speed,
+		easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
+	};
+
+	opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ?
+		opt.duration : opt.duration in jQuery.fx.speeds ?
+			jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
+
+	// Normalize opt.queue - true/undefined/null -> "fx"
+	if ( opt.queue == null || opt.queue === true ) {
+		opt.queue = "fx";
+	}
+
+	// Queueing
+	opt.old = opt.complete;
+
+	opt.complete = function() {
+		if ( jQuery.isFunction( opt.old ) ) {
+			opt.old.call( this );
+		}
+
+		if ( opt.queue ) {
+			jQuery.dequeue( this, opt.queue );
+		}
+	};
+
+	return opt;
+};
+
+jQuery.fn.extend( {
+	fadeTo: function( speed, to, easing, callback ) {
+
+		// Show any hidden elements after setting opacity to 0
+		return this.filter( isHidden ).css( "opacity", 0 ).show()
+
+			// Animate to the value specified
+			.end().animate( { opacity: to }, speed, easing, callback );
+	},
+	animate: function( prop, speed, easing, callback ) {
+		var empty = jQuery.isEmptyObject( prop ),
+			optall = jQuery.speed( speed, easing, callback ),
+			doAnimation = function() {
+
+				// Operate on a copy of prop so per-property easing won't be lost
+				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
+
+				// Empty animations, or finishing resolves immediately
+				if ( empty || dataPriv.get( this, "finish" ) ) {
+					anim.stop( true );
+				}
+			};
+			doAnimation.finish = doAnimation;
+
+		return empty || optall.queue === false ?
+			this.each( doAnimation ) :
+			this.queue( optall.queue, doAnimation );
+	},
+	stop: function( type, clearQueue, gotoEnd ) {
+		var stopQueue = function( hooks ) {
+			var stop = hooks.stop;
+			delete hooks.stop;
+			stop( gotoEnd );
+		};
+
+		if ( typeof type !== "string" ) {
+			gotoEnd = clearQueue;
+			clearQueue = type;
+			type = undefined;
+		}
+		if ( clearQueue && type !== false ) {
+			this.queue( type || "fx", [] );
+		}
+
+		return this.each( function() {
+			var dequeue = true,
+				index = type != null && type + "queueHooks",
+				timers = jQuery.timers,
+				data = dataPriv.get( this );
+
+			if ( index ) {
+				if ( data[ index ] && data[ index ].stop ) {
+					stopQueue( data[ index ] );
+				}
+			} else {
+				for ( index in data ) {
+					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
+						stopQueue( data[ index ] );
+					}
+				}
+			}
+
+			for ( index = timers.length; index--; ) {
+				if ( timers[ index ].elem === this &&
+					( type == null || timers[ index ].queue === type ) ) {
+
+					timers[ index ].anim.stop( gotoEnd );
+					dequeue = false;
+					timers.splice( index, 1 );
+				}
+			}
+
+			// Start the next in the queue if the last step wasn't forced.
+			// Timers currently will call their complete callbacks, which
+			// will dequeue but only if they were gotoEnd.
+			if ( dequeue || !gotoEnd ) {
+				jQuery.dequeue( this, type );
+			}
+		} );
+	},
+	finish: function( type ) {
+		if ( type !== false ) {
+			type = type || "fx";
+		}
+		return this.each( function() {
+			var index,
+				data = dataPriv.get( this ),
+				queue = data[ type + "queue" ],
+				hooks = data[ type + "queueHooks" ],
+				timers = jQuery.timers,
+				length = queue ? queue.length : 0;
+
+			// Enable finishing flag on private data
+			data.finish = true;
+
+			// Empty the queue first
+			jQuery.queue( this, type, [] );
+
+			if ( hooks && hooks.stop ) {
+				hooks.stop.call( this, true );
+			}
+
+			// Look for any active animations, and finish them
+			for ( index = timers.length; index--; ) {
+				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
+					timers[ index ].anim.stop( true );
+					timers.splice( index, 1 );
+				}
+			}
+
+			// Look for any animations in the old queue and finish them
+			for ( index = 0; index < length; index++ ) {
+				if ( queue[ index ] && queue[ index ].finish ) {
+					queue[ index ].finish.call( this );
+				}
+			}
+
+			// Turn off finishing flag
+			delete data.finish;
+		} );
+	}
+} );
+
+jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
+	var cssFn = jQuery.fn[ name ];
+	jQuery.fn[ name ] = function( speed, easing, callback ) {
+		return speed == null || typeof speed === "boolean" ?
+			cssFn.apply( this, arguments ) :
+			this.animate( genFx( name, true ), speed, easing, callback );
+	};
+} );
+
+// Generate shortcuts for custom animations
+jQuery.each( {
+	slideDown: genFx( "show" ),
+	slideUp: genFx( "hide" ),
+	slideToggle: genFx( "toggle" ),
+	fadeIn: { opacity: "show" },
+	fadeOut: { opacity: "hide" },
+	fadeToggle: { opacity: "toggle" }
+}, function( name, props ) {
+	jQuery.fn[ name ] = function( speed, easing, callback ) {
+		return this.animate( props, speed, easing, callback );
+	};
+} );
+
+jQuery.timers = [];
+jQuery.fx.tick = function() {
+	var timer,
+		i = 0,
+		timers = jQuery.timers;
+
+	fxNow = jQuery.now();
+
+	for ( ; i < timers.length; i++ ) {
+		timer = timers[ i ];
+
+		// Checks the timer has not already been removed
+		if ( !timer() && timers[ i ] === timer ) {
+			timers.splice( i--, 1 );
+		}
+	}
+
+	if ( !timers.length ) {
+		jQuery.fx.stop();
+	}
+	fxNow = undefined;
+};
+
+jQuery.fx.timer = function( timer ) {
+	jQuery.timers.push( timer );
+	if ( timer() ) {
+		jQuery.fx.start();
+	} else {
+		jQuery.timers.pop();
+	}
+};
+
+jQuery.fx.interval = 13;
+jQuery.fx.start = function() {
+	if ( !timerId ) {
+		timerId = window.setInterval( jQuery.fx.tick, jQuery.fx.interval );
+	}
+};
+
+jQuery.fx.stop = function() {
+	window.clearInterval( timerId );
+
+	timerId = null;
+};
+
+jQuery.fx.speeds = {
+	slow: 600,
+	fast: 200,
+
+	// Default speed
+	_default: 400
+};
+
+
+// Based off of the plugin by Clint Helfers, with permission.
+// http://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
+jQuery.fn.delay = function( time, type ) {
+	time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+	type = type || "fx";
+
+	return this.queue( type, function( next, hooks ) {
+		var timeout = window.setTimeout( next, time );
+		hooks.stop = function() {
+			window.clearTimeout( timeout );
+		};
+	} );
+};
+
+
+( function() {
+	var input = document.createElement( "input" ),
+		select = document.createElement( "select" ),
+		opt = select.appendChild( document.createElement( "option" ) );
+
+	input.type = "checkbox";
+
+	// Support: iOS<=5.1, Android<=4.2+
+	// Default value for a checkbox should be "on"
+	support.checkOn = input.value !== "";
+
+	// Support: IE<=11+
+	// Must access selectedIndex to make default options select
+	support.optSelected = opt.selected;
+
+	// Support: Android<=2.3
+	// Options inside disabled selects are incorrectly marked as disabled
+	select.disabled = true;
+	support.optDisabled = !opt.disabled;
+
+	// Support: IE<=11+
+	// An input loses its value after becoming a radio
+	input = document.createElement( "input" );
+	input.value = "t";
+	input.type = "radio";
+	support.radioValue = input.value === "t";
+} )();
+
+
+var boolHook,
+	attrHandle = jQuery.expr.attrHandle;
+
+jQuery.fn.extend( {
+	attr: function( name, value ) {
+		return access( this, jQuery.attr, name, value, arguments.length > 1 );
+	},
+
+	removeAttr: function( name ) {
+		return this.each( function() {
+			jQuery.removeAttr( this, name );
+		} );
+	}
+} );
+
+jQuery.extend( {
+	attr: function( elem, name, value ) {
+		var ret, hooks,
+			nType = elem.nodeType;
+
+		// Don't get/set attributes on text, comment and attribute nodes
+		if ( nType === 3 || nType === 8 || nType === 2 ) {
+			return;
+		}
+
+		// Fallback to prop when attributes are not supported
+		if ( typeof elem.getAttribute === "undefined" ) {
+			return jQuery.prop( elem, name, value );
+		}
+
+		// All attributes are lowercase
+		// Grab necessary hook if one is defined
+		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
+			name = name.toLowerCase();
+			hooks = jQuery.attrHooks[ name ] ||
+				( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
+		}
+
+		if ( value !== undefined ) {
+			if ( value === null ) {
+				jQuery.removeAttr( elem, name );
+				return;
+			}
+
+			if ( hooks && "set" in hooks &&
+				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
+				return ret;
+			}
+
+			elem.setAttribute( name, value + "" );
+			return value;
+		}
+
+		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
+			return ret;
+		}
+
+		ret = jQuery.find.attr( elem, name );
+
+		// Non-existent attributes return null, we normalize to undefined
+		return ret == null ? undefined : ret;
+	},
+
+	attrHooks: {
+		type: {
+			set: function( elem, value ) {
+				if ( !support.radioValue && value === "radio" &&
+					jQuery.nodeName( elem, "input" ) ) {
+					var val = elem.value;
+					elem.setAttribute( "type", value );
+					if ( val ) {
+						elem.value = val;
+					}
+					return value;
+				}
+			}
+		}
+	},
+
+	removeAttr: function( elem, value ) {
+		var name, propName,
+			i = 0,
+			attrNames = value && value.match( rnotwhite );
+
+		if ( attrNames && elem.nodeType === 1 ) {
+			while ( ( name = attrNames[ i++ ] ) ) {
+				propName = jQuery.propFix[ name ] || name;
+
+				// Boolean attributes get special treatment (#10870)
+				if ( jQuery.expr.match.bool.test( name ) ) {
+
+					// Set corresponding property to false
+					elem[ propName ] = false;
+				}
+
+				elem.removeAttribute( name );
+			}
+		}
+	}
+} );
+
+// Hooks for boolean attributes
+boolHook = {
+	set: function( elem, value, name ) {
+		if ( value === false ) {
+
+			// Remove boolean attributes when set to false
+			jQuery.removeAttr( elem, name );
+		} else {
+			elem.setAttribute( name, name );
+		}
+		return name;
+	}
+};
+jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
+	var getter = attrHandle[ name ] || jQuery.find.attr;
+
+	attrHandle[ name ] = function( elem, name, isXML ) {
+		var ret, handle;
+		if ( !isXML ) {
+
+			// Avoid an infinite loop by temporarily removing this function from the getter
+			handle = attrHandle[ name ];
+			attrHandle[ name ] = ret;
+			ret = getter( elem, name, isXML ) != null ?
+				name.toLowerCase() :
+				null;
+			attrHandle[ name ] = handle;
+		}
+		return ret;
+	};
+} );
+
+
+
+
+var rfocusable = /^(?:input|select|textarea|button)$/i,
+	rclickable = /^(?:a|area)$/i;
+
+jQuery.fn.extend( {
+	prop: function( name, value ) {
+		return access( this, jQuery.prop, name, value, arguments.length > 1 );
+	},
+
+	removeProp: function( name ) {
+		return this.each( function() {
+			delete this[ jQuery.propFix[ name ] || name ];
+		} );
+	}
+} );
+
+jQuery.extend( {
+	prop: function( elem, name, value ) {
+		var ret, hooks,
+			nType = elem.nodeType;
+
+		// Don't get/set properties on text, comment and attribute nodes
+		if ( nType === 3 || nType === 8 || nType === 2 ) {
+			return;
+		}
+
+		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
+
+			// Fix name and attach hooks
+			name = jQuery.propFix[ name ] || name;
+			hooks = jQuery.propHooks[ name ];
+		}
+
+		if ( value !== undefined ) {
+			if ( hooks && "set" in hooks &&
+				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
+				return ret;
+			}
+
+			return ( elem[ name ] = value );
+		}
+
+		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
+			return ret;
+		}
+
+		return elem[ name ];
+	},
+
+	propHooks: {
+		tabIndex: {
+			get: function( elem ) {
+
+				// elem.tabIndex doesn't always return the
+				// correct value when it hasn't been explicitly set
+				// http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+				// Use proper attribute retrieval(#12072)
+				var tabindex = jQuery.find.attr( elem, "tabindex" );
+
+				return tabindex ?
+					parseInt( tabindex, 10 ) :
+					rfocusable.test( elem.nodeName ) ||
+						rclickable.test( elem.nodeName ) && elem.href ?
+							0 :
+							-1;
+			}
+		}
+	},
+
+	propFix: {
+		"for": "htmlFor",
+		"class": "className"
+	}
+} );
+
+// Support: IE <=11 only
+// Accessing the selectedIndex property
+// forces the browser to respect setting selected
+// on the option
+// The getter ensures a default option is selected
+// when in an optgroup
+if ( !support.optSelected ) {
+	jQuery.propHooks.selected = {
+		get: function( elem ) {
+			var parent = elem.parentNode;
+			if ( parent && parent.parentNode ) {
+				parent.parentNode.selectedIndex;
+			}
+			return null;
+		},
+		set: function( elem ) {
+			var parent = elem.parentNode;
+			if ( parent ) {
+				parent.selectedIndex;
+
+				if ( parent.parentNode ) {
+					parent.parentNode.selectedIndex;
+				}
+			}
+		}
+	};
+}
+
+jQuery.each( [
+	"tabIndex",
+	"readOnly",
+	"maxLength",
+	"cellSpacing",
+	"cellPadding",
+	"rowSpan",
+	"colSpan",
+	"useMap",
+	"frameBorder",
+	"contentEditable"
+], function() {
+	jQuery.propFix[ this.toLowerCase() ] = this;
+} );
+
+
+
+
+var rclass = /[\t\r\n\f]/g;
+
+function getClass( elem ) {
+	return elem.getAttribute && elem.getAttribute( "class" ) || "";
+}
+
+jQuery.fn.extend( {
+	addClass: function( value ) {
+		var classes, elem, cur, curValue, clazz, j, finalValue,
+			i = 0;
+
+		if ( jQuery.isFunction( value ) ) {
+			return this.each( function( j ) {
+				jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
+			} );
+		}
+
+		if ( typeof value === "string" && value ) {
+			classes = value.match( rnotwhite ) || [];
+
+			while ( ( elem = this[ i++ ] ) ) {
+				curValue = getClass( elem );
+				cur = elem.nodeType === 1 &&
+					( " " + curValue + " " ).replace( rclass, " " );
+
+				if ( cur ) {
+					j = 0;
+					while ( ( clazz = classes[ j++ ] ) ) {
+						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
+							cur += clazz + " ";
+						}
+					}
+
+					// Only assign if different to avoid unneeded rendering.
+					finalValue = jQuery.trim( cur );
+					if ( curValue !== finalValue ) {
+						elem.setAttribute( "class", finalValue );
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	removeClass: function( value ) {
+		var classes, elem, cur, curValue, clazz, j, finalValue,
+			i = 0;
+
+		if ( jQuery.isFunction( value ) ) {
+			return this.each( function( j ) {
+				jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
+			} );
+		}
+
+		if ( !arguments.length ) {
+			return this.attr( "class", "" );
+		}
+
+		if ( typeof value === "string" && value ) {
+			classes = value.match( rnotwhite ) || [];
+
+			while ( ( elem = this[ i++ ] ) ) {
+				curValue = getClass( elem );
+
+				// This expression is here for better compressibility (see addClass)
+				cur = elem.nodeType === 1 &&
+					( " " + curValue + " " ).replace( rclass, " " );
+
+				if ( cur ) {
+					j = 0;
+					while ( ( clazz = classes[ j++ ] ) ) {
+
+						// Remove *all* instances
+						while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
+							cur = cur.replace( " " + clazz + " ", " " );
+						}
+					}
+
+					// Only assign if different to avoid unneeded rendering.
+					finalValue = jQuery.trim( cur );
+					if ( curValue !== finalValue ) {
+						elem.setAttribute( "class", finalValue );
+					}
+				}
+			}
+		}
+
+		return this;
+	},
+
+	toggleClass: function( value, stateVal ) {
+		var type = typeof value;
+
+		if ( typeof stateVal === "boolean" && type === "string" ) {
+			return stateVal ? this.addClass( value ) : this.removeClass( value );
+		}
+
+		if ( jQuery.isFunction( value ) ) {
+			return this.each( function( i ) {
+				jQuery( this ).toggleClass(
+					value.call( this, i, getClass( this ), stateVal ),
+					stateVal
+				);
+			} );
+		}
+
+		return this.each( function() {
+			var className, i, self, classNames;
+
+			if ( type === "string" ) {
+
+				// Toggle individual class names
+				i = 0;
+				self = jQuery( this );
+				classNames = value.match( rnotwhite ) || [];
+
+				while ( ( className = classNames[ i++ ] ) ) {
+
+					// Check each className given, space separated list
+					if ( self.hasClass( className ) ) {
+						self.removeClass( className );
+					} else {
+						self.addClass( className );
+					}
+				}
+
+			// Toggle whole class name
+			} else if ( value === undefined || type === "boolean" ) {
+				className = getClass( this );
+				if ( className ) {
+
+					// Store className if set
+					dataPriv.set( this, "__className__", className );
+				}
+
+				// If the element has a class name or if we're passed `false`,
+				// then remove the whole classname (if there was one, the above saved it).
+				// Otherwise bring back whatever was previously saved (if anything),
+				// falling back to the empty string if nothing was stored.
+				if ( this.setAttribute ) {
+					this.setAttribute( "class",
+						className || value === false ?
+						"" :
+						dataPriv.get( this, "__className__" ) || ""
+					);
+				}
+			}
+		} );
+	},
+
+	hasClass: function( selector ) {
+		var className, elem,
+			i = 0;
+
+		className = " " + selector + " ";
+		while ( ( elem = this[ i++ ] ) ) {
+			if ( elem.nodeType === 1 &&
+				( " " + getClass( elem ) + " " ).replace( rclass, " " )
+					.indexOf( className ) > -1
+			) {
+				return true;
+			}
+		}
+
+		return false;
+	}
+} );
+
+
+
+
+var rreturn = /\r/g,
+	rspaces = /[\x20\t\r\n\f]+/g;
+
+jQuery.fn.extend( {
+	val: function( value ) {
+		var hooks, ret, isFunction,
+			elem = this[ 0 ];
+
+		if ( !arguments.length ) {
+			if ( elem ) {
+				hooks = jQuery.valHooks[ elem.type ] ||
+					jQuery.valHooks[ elem.nodeName.toLowerCase() ];
+
+				if ( hooks &&
+					"get" in hooks &&
+					( ret = hooks.get( elem, "value" ) ) !== undefined
+				) {
+					return ret;
+				}
+
+				ret = elem.value;
+
+				return typeof ret === "string" ?
+
+					// Handle most common string cases
+					ret.replace( rreturn, "" ) :
+
+					// Handle cases where value is null/undef or number
+					ret == null ? "" : ret;
+			}
+
+			return;
+		}
+
+		isFunction = jQuery.isFunction( value );
+
+		return this.each( function( i ) {
+			var val;
+
+			if ( this.nodeType !== 1 ) {
+				return;
+			}
+
+			if ( isFunction ) {
+				val = value.call( this, i, jQuery( this ).val() );
+			} else {
+				val = value;
+			}
+
+			// Treat null/undefined as ""; convert numbers to string
+			if ( val == null ) {
+				val = "";
+
+			} else if ( typeof val === "number" ) {
+				val += "";
+
+			} else if ( jQuery.isArray( val ) ) {
+				val = jQuery.map( val, function( value ) {
+					return value == null ? "" : value + "";
+				} );
+			}
+
+			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
+
+			// If set returns undefined, fall back to normal setting
+			if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
+				this.value = val;
+			}
+		} );
+	}
+} );
+
+jQuery.extend( {
+	valHooks: {
+		option: {
+			get: function( elem ) {
+
+				var val = jQuery.find.attr( elem, "value" );
+				return val != null ?
+					val :
+
+					// Support: IE10-11+
+					// option.text throws exceptions (#14686, #14858)
+					// Strip and collapse whitespace
+					// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
+					jQuery.trim( jQuery.text( elem ) ).replace( rspaces, " " );
+			}
+		},
+		select: {
+			get: function( elem ) {
+				var value, option,
+					options = elem.options,
+					index = elem.selectedIndex,
+					one = elem.type === "select-one" || index < 0,
+					values = one ? null : [],
+					max = one ? index + 1 : options.length,
+					i = index < 0 ?
+						max :
+						one ? index : 0;
+
+				// Loop through all the selected options
+				for ( ; i < max; i++ ) {
+					option = options[ i ];
+
+					// IE8-9 doesn't update selected after form reset (#2551)
+					if ( ( option.selected || i === index ) &&
+
+							// Don't return options that are disabled or in a disabled optgroup
+							( support.optDisabled ?
+								!option.disabled : option.getAttribute( "disabled" ) === null ) &&
+							( !option.parentNode.disabled ||
+								!jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
+
+						// Get the specific value for the option
+						value = jQuery( option ).val();
+
+						// We don't need an array for one selects
+						if ( one ) {
+							return value;
+						}
+
+						// Multi-Selects return an array
+						values.push( value );
+					}
+				}
+
+				return values;
+			},
+
+			set: function( elem, value ) {
+				var optionSet, option,
+					options = elem.options,
+					values = jQuery.makeArray( value ),
+					i = options.length;
+
+				while ( i-- ) {
+					option = options[ i ];
+					if ( option.selected =
+						jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
+					) {
+						optionSet = true;
+					}
+				}
+
+				// Force browsers to behave consistently when non-matching value is set
+				if ( !optionSet ) {
+					elem.selectedIndex = -1;
+				}
+				return values;
+			}
+		}
+	}
+} );
+
+// Radios and checkboxes getter/setter
+jQuery.each( [ "radio", "checkbox" ], function() {
+	jQuery.valHooks[ this ] = {
+		set: function( elem, value ) {
+			if ( jQuery.isArray( value ) ) {
+				return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
+			}
+		}
+	};
+	if ( !support.checkOn ) {
+		jQuery.valHooks[ this ].get = function( elem ) {
+			return elem.getAttribute( "value" ) === null ? "on" : elem.value;
+		};
+	}
+} );
+
+
+
+
+// Return jQuery for attributes-only inclusion
+
+
+var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/;
+
+jQuery.extend( jQuery.event, {
+
+	trigger: function( event, data, elem, onlyHandlers ) {
+
+		var i, cur, tmp, bubbleType, ontype, handle, special,
+			eventPath = [ elem || document ],
+			type = hasOwn.call( event, "type" ) ? event.type : event,
+			namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
+
+		cur = tmp = elem = elem || document;
+
+		// Don't do events on text and comment nodes
+		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
+			return;
+		}
+
+		// focus/blur morphs to focusin/out; ensure we're not firing them right now
+		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
+			return;
+		}
+
+		if ( type.indexOf( "." ) > -1 ) {
+
+			// Namespaced trigger; create a regexp to match event type in handle()
+			namespaces = type.split( "." );
+			type = namespaces.shift();
+			namespaces.sort();
+		}
+		ontype = type.indexOf( ":" ) < 0 && "on" + type;
+
+		// Caller can pass in a jQuery.Event object, Object, or just an event type string
+		event = event[ jQuery.expando ] ?
+			event :
+			new jQuery.Event( type, typeof event === "object" && event );
+
+		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
+		event.isTrigger = onlyHandlers ? 2 : 3;
+		event.namespace = namespaces.join( "." );
+		event.rnamespace = event.namespace ?
+			new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
+			null;
+
+		// Clean up the event in case it is being reused
+		event.result = undefined;
+		if ( !event.target ) {
+			event.target = elem;
+		}
+
+		// Clone any incoming data and prepend the event, creating the handler arg list
+		data = data == null ?
+			[ event ] :
+			jQuery.makeArray( data, [ event ] );
+
+		// Allow special events to draw outside the lines
+		special = jQuery.event.special[ type ] || {};
+		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
+			return;
+		}
+
+		// Determine event propagation path in advance, per W3C events spec (#9951)
+		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+		if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
+
+			bubbleType = special.delegateType || type;
+			if ( !rfocusMorph.test( bubbleType + type ) ) {
+				cur = cur.parentNode;
+			}
+			for ( ; cur; cur = cur.parentNode ) {
+				eventPath.push( cur );
+				tmp = cur;
+			}
+
+			// Only add window if we got to document (e.g., not plain obj or detached DOM)
+			if ( tmp === ( elem.ownerDocument || document ) ) {
+				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
+			}
+		}
+
+		// Fire handlers on the event path
+		i = 0;
+		while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
+
+			event.type = i > 1 ?
+				bubbleType :
+				special.bindType || type;
+
+			// jQuery handler
+			handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
+				dataPriv.get( cur, "handle" );
+			if ( handle ) {
+				handle.apply( cur, data );
+			}
+
+			// Native handler
+			handle = ontype && cur[ ontype ];
+			if ( handle && handle.apply && acceptData( cur ) ) {
+				event.result = handle.apply( cur, data );
+				if ( event.result === false ) {
+					event.preventDefault();
+				}
+			}
+		}
+		event.type = type;
+
+		// If nobody prevented the default action, do it now
+		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
+
+			if ( ( !special._default ||
+				special._default.apply( eventPath.pop(), data ) === false ) &&
+				acceptData( elem ) ) {
+
+				// Call a native DOM method on the target with the same name name as the event.
+				// Don't do default actions on window, that's where global variables be (#6170)
+				if ( ontype && jQuery.isFunction( elem[ type ] ) && !jQuery.isWindow( elem ) ) {
+
+					// Don't re-trigger an onFOO event when we call its FOO() method
+					tmp = elem[ ontype ];
+
+					if ( tmp ) {
+						elem[ ontype ] = null;
+					}
+
+					// Prevent re-triggering of the same event, since we already bubbled it above
+					jQuery.event.triggered = type;
+					elem[ type ]();
+					jQuery.event.triggered = undefined;
+
+					if ( tmp ) {
+						elem[ ontype ] = tmp;
+					}
+				}
+			}
+		}
+
+		return event.result;
+	},
+
+	// Piggyback on a donor event to simulate a different one
+	// Used only for `focus(in | out)` events
+	simulate: function( type, elem, event ) {
+		var e = jQuery.extend(
+			new jQuery.Event(),
+			event,
+			{
+				type: type,
+				isSimulated: true
+			}
+		);
+
+		jQuery.event.trigger( e, null, elem );
+	}
+
+} );
+
+jQuery.fn.extend( {
+
+	trigger: function( type, data ) {
+		return this.each( function() {
+			jQuery.event.trigger( type, data, this );
+		} );
+	},
+	triggerHandler: function( type, data ) {
+		var elem = this[ 0 ];
+		if ( elem ) {
+			return jQuery.event.trigger( type, data, elem, true );
+		}
+	}
+} );
+
+
+jQuery.each( ( "blur focus focusin focusout load resize scroll unload click dblclick " +
+	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+	"change select submit keydown keypress keyup error contextmenu" ).split( " " ),
+	function( i, name ) {
+
+	// Handle event binding
+	jQuery.fn[ name ] = function( data, fn ) {
+		return arguments.length > 0 ?
+			this.on( name, null, data, fn ) :
+			this.trigger( name );
+	};
+} );
+
+jQuery.fn.extend( {
+	hover: function( fnOver, fnOut ) {
+		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+	}
+} );
+
+
+
+
+support.focusin = "onfocusin" in window;
+
+
+// Support: Firefox
+// Firefox doesn't have focus(in | out) events
+// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
+//
+// Support: Chrome, Safari
+// focus(in | out) events fire after focus & blur events,
+// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
+// Related ticket - https://code.google.com/p/chromium/issues/detail?id=449857
+if ( !support.focusin ) {
+	jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+		// Attach a single capturing handler on the document while someone wants focusin/focusout
+		var handler = function( event ) {
+			jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
+		};
+
+		jQuery.event.special[ fix ] = {
+			setup: function() {
+				var doc = this.ownerDocument || this,
+					attaches = dataPriv.access( doc, fix );
+
+				if ( !attaches ) {
+					doc.addEventListener( orig, handler, true );
+				}
+				dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
+			},
+			teardown: function() {
+				var doc = this.ownerDocument || this,
+					attaches = dataPriv.access( doc, fix ) - 1;
+
+				if ( !attaches ) {
+					doc.removeEventListener( orig, handler, true );
+					dataPriv.remove( doc, fix );
+
+				} else {
+					dataPriv.access( doc, fix, attaches );
+				}
+			}
+		};
+	} );
+}
+var location = window.location;
+
+var nonce = jQuery.now();
+
+var rquery = ( /\?/ );
+
+
+
+// Support: Android 2.3
+// Workaround failure to string-cast null input
+jQuery.parseJSON = function( data ) {
+	return JSON.parse( data + "" );
+};
+
+
+// Cross-browser xml parsing
+jQuery.parseXML = function( data ) {
+	var xml;
+	if ( !data || typeof data !== "string" ) {
+		return null;
+	}
+
+	// Support: IE9
+	try {
+		xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
+	} catch ( e ) {
+		xml = undefined;
+	}
+
+	if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
+		jQuery.error( "Invalid XML: " + data );
+	}
+	return xml;
+};
+
+
+var
+	rhash = /#.*$/,
+	rts = /([?&])_=[^&]*/,
+	rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
+
+	// #7653, #8125, #8152: local protocol detection
+	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
+	rnoContent = /^(?:GET|HEAD)$/,
+	rprotocol = /^\/\//,
+
+	/* Prefilters
+	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+	 * 2) These are called:
+	 *    - BEFORE asking for a transport
+	 *    - AFTER param serialization (s.data is a string if s.processData is true)
+	 * 3) key is the dataType
+	 * 4) the catchall symbol "*" can be used
+	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+	 */
+	prefilters = {},
+
+	/* Transports bindings
+	 * 1) key is the dataType
+	 * 2) the catchall symbol "*" can be used
+	 * 3) selection will start with transport dataType and THEN go to "*" if needed
+	 */
+	transports = {},
+
+	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+	allTypes = "*/".concat( "*" ),
+
+	// Anchor tag for parsing the document origin
+	originAnchor = document.createElement( "a" );
+	originAnchor.href = location.href;
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+	// dataTypeExpression is optional and defaults to "*"
+	return function( dataTypeExpression, func ) {
+
+		if ( typeof dataTypeExpression !== "string" ) {
+			func = dataTypeExpression;
+			dataTypeExpression = "*";
+		}
+
+		var dataType,
+			i = 0,
+			dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
+
+		if ( jQuery.isFunction( func ) ) {
+
+			// For each dataType in the dataTypeExpression
+			while ( ( dataType = dataTypes[ i++ ] ) ) {
+
+				// Prepend if requested
+				if ( dataType[ 0 ] === "+" ) {
+					dataType = dataType.slice( 1 ) || "*";
+					( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
+
+				// Otherwise append
+				} else {
+					( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
+				}
+			}
+		}
+	};
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
+
+	var inspected = {},
+		seekingTransport = ( structure === transports );
+
+	function inspect( dataType ) {
+		var selected;
+		inspected[ dataType ] = true;
+		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
+			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
+			if ( typeof dataTypeOrTransport === "string" &&
+				!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
+
+				options.dataTypes.unshift( dataTypeOrTransport );
+				inspect( dataTypeOrTransport );
+				return false;
+			} else if ( seekingTransport ) {
+				return !( selected = dataTypeOrTransport );
+			}
+		} );
+		return selected;
+	}
+
+	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+	var key, deep,
+		flatOptions = jQuery.ajaxSettings.flatOptions || {};
+
+	for ( key in src ) {
+		if ( src[ key ] !== undefined ) {
+			( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
+		}
+	}
+	if ( deep ) {
+		jQuery.extend( true, target, deep );
+	}
+
+	return target;
+}
+
+/* Handles responses to an ajax request:
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+	var ct, type, finalDataType, firstDataType,
+		contents = s.contents,
+		dataTypes = s.dataTypes;
+
+	// Remove auto dataType and get content-type in the process
+	while ( dataTypes[ 0 ] === "*" ) {
+		dataTypes.shift();
+		if ( ct === undefined ) {
+			ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
+		}
+	}
+
+	// Check if we're dealing with a known content-type
+	if ( ct ) {
+		for ( type in contents ) {
+			if ( contents[ type ] && contents[ type ].test( ct ) ) {
+				dataTypes.unshift( type );
+				break;
+			}
+		}
+	}
+
+	// Check to see if we have a response for the expected dataType
+	if ( dataTypes[ 0 ] in responses ) {
+		finalDataType = dataTypes[ 0 ];
+	} else {
+
+		// Try convertible dataTypes
+		for ( type in responses ) {
+			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
+				finalDataType = type;
+				break;
+			}
+			if ( !firstDataType ) {
+				firstDataType = type;
+			}
+		}
+
+		// Or just use first one
+		finalDataType = finalDataType || firstDataType;
+	}
+
+	// If we found a dataType
+	// We add the dataType to the list if needed
+	// and return the corresponding response
+	if ( finalDataType ) {
+		if ( finalDataType !== dataTypes[ 0 ] ) {
+			dataTypes.unshift( finalDataType );
+		}
+		return responses[ finalDataType ];
+	}
+}
+
+/* Chain conversions given the request and the original response
+ * Also sets the responseXXX fields on the jqXHR instance
+ */
+function ajaxConvert( s, response, jqXHR, isSuccess ) {
+	var conv2, current, conv, tmp, prev,
+		converters = {},
+
+		// Work with a copy of dataTypes in case we need to modify it for conversion
+		dataTypes = s.dataTypes.slice();
+
+	// Create converters map with lowercased keys
+	if ( dataTypes[ 1 ] ) {
+		for ( conv in s.converters ) {
+			converters[ conv.toLowerCase() ] = s.converters[ conv ];
+		}
+	}
+
+	current = dataTypes.shift();
+
+	// Convert to each sequential dataType
+	while ( current ) {
+
+		if ( s.responseFields[ current ] ) {
+			jqXHR[ s.responseFields[ current ] ] = response;
+		}
+
+		// Apply the dataFilter if provided
+		if ( !prev && isSuccess && s.dataFilter ) {
+			response = s.dataFilter( response, s.dataType );
+		}
+
+		prev = current;
+		current = dataTypes.shift();
+
+		if ( current ) {
+
+		// There's only work to do if current dataType is non-auto
+			if ( current === "*" ) {
+
+				current = prev;
+
+			// Convert response if prev dataType is non-auto and differs from current
+			} else if ( prev !== "*" && prev !== current ) {
+
+				// Seek a direct converter
+				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
+
+				// If none found, seek a pair
+				if ( !conv ) {
+					for ( conv2 in converters ) {
+
+						// If conv2 outputs current
+						tmp = conv2.split( " " );
+						if ( tmp[ 1 ] === current ) {
+
+							// If prev can be converted to accepted input
+							conv = converters[ prev + " " + tmp[ 0 ] ] ||
+								converters[ "* " + tmp[ 0 ] ];
+							if ( conv ) {
+
+								// Condense equivalence converters
+								if ( conv === true ) {
+									conv = converters[ conv2 ];
+
+								// Otherwise, insert the intermediate dataType
+								} else if ( converters[ conv2 ] !== true ) {
+									current = tmp[ 0 ];
+									dataTypes.unshift( tmp[ 1 ] );
+								}
+								break;
+							}
+						}
+					}
+				}
+
+				// Apply converter (if not an equivalence)
+				if ( conv !== true ) {
+
+					// Unless errors are allowed to bubble, catch and return them
+					if ( conv && s.throws ) {
+						response = conv( response );
+					} else {
+						try {
+							response = conv( response );
+						} catch ( e ) {
+							return {
+								state: "parsererror",
+								error: conv ? e : "No conversion from " + prev + " to " + current
+							};
+						}
+					}
+				}
+			}
+		}
+	}
+
+	return { state: "success", data: response };
+}
+
+jQuery.extend( {
+
+	// Counter for holding the number of active queries
+	active: 0,
+
+	// Last-Modified header cache for next request
+	lastModified: {},
+	etag: {},
+
+	ajaxSettings: {
+		url: location.href,
+		type: "GET",
+		isLocal: rlocalProtocol.test( location.protocol ),
+		global: true,
+		processData: true,
+		async: true,
+		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+		/*
+		timeout: 0,
+		data: null,
+		dataType: null,
+		username: null,
+		password: null,
+		cache: null,
+		throws: false,
+		traditional: false,
+		headers: {},
+		*/
+
+		accepts: {
+			"*": allTypes,
+			text: "text/plain",
+			html: "text/html",
+			xml: "application/xml, text/xml",
+			json: "application/json, text/javascript"
+		},
+
+		contents: {
+			xml: /\bxml\b/,
+			html: /\bhtml/,
+			json: /\bjson\b/
+		},
+
+		responseFields: {
+			xml: "responseXML",
+			text: "responseText",
+			json: "responseJSON"
+		},
+
+		// Data converters
+		// Keys separate source (or catchall "*") and destination types with a single space
+		converters: {
+
+			// Convert anything to text
+			"* text": String,
+
+			// Text to html (true = no transformation)
+			"text html": true,
+
+			// Evaluate text as a json expression
+			"text json": jQuery.parseJSON,
+
+			// Parse text as xml
+			"text xml": jQuery.parseXML
+		},
+
+		// For options that shouldn't be deep extended:
+		// you can add your own custom options here if
+		// and when you create one that shouldn't be
+		// deep extended (see ajaxExtend)
+		flatOptions: {
+			url: true,
+			context: true
+		}
+	},
+
+	// Creates a full fledged settings object into target
+	// with both ajaxSettings and settings fields.
+	// If target is omitted, writes into ajaxSettings.
+	ajaxSetup: function( target, settings ) {
+		return settings ?
+
+			// Building a settings object
+			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
+
+			// Extending ajaxSettings
+			ajaxExtend( jQuery.ajaxSettings, target );
+	},
+
+	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+	ajaxTransport: addToPrefiltersOrTransports( transports ),
+
+	// Main method
+	ajax: function( url, options ) {
+
+		// If url is an object, simulate pre-1.5 signature
+		if ( typeof url === "object" ) {
+			options = url;
+			url = undefined;
+		}
+
+		// Force options to be an object
+		options = options || {};
+
+		var transport,
+
+			// URL without anti-cache param
+			cacheURL,
+
+			// Response headers
+			responseHeadersString,
+			responseHeaders,
+
+			// timeout handle
+			timeoutTimer,
+
+			// Url cleanup var
+			urlAnchor,
+
+			// To know if global events are to be dispatched
+			fireGlobals,
+
+			// Loop variable
+			i,
+
+			// Create the final options object
+			s = jQuery.ajaxSetup( {}, options ),
+
+			// Callbacks context
+			callbackContext = s.context || s,
+
+			// Context for global events is callbackContext if it is a DOM node or jQuery collection
+			globalEventContext = s.context &&
+				( callbackContext.nodeType || callbackContext.jquery ) ?
+					jQuery( callbackContext ) :
+					jQuery.event,
+
+			// Deferreds
+			deferred = jQuery.Deferred(),
+			completeDeferred = jQuery.Callbacks( "once memory" ),
+
+			// Status-dependent callbacks
+			statusCode = s.statusCode || {},
+
+			// Headers (they are sent all at once)
+			requestHeaders = {},
+			requestHeadersNames = {},
+
+			// The jqXHR state
+			state = 0,
+
+			// Default abort message
+			strAbort = "canceled",
+
+			// Fake xhr
+			jqXHR = {
+				readyState: 0,
+
+				// Builds headers hashtable if needed
+				getResponseHeader: function( key ) {
+					var match;
+					if ( state === 2 ) {
+						if ( !responseHeaders ) {
+							responseHeaders = {};
+							while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
+								responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
+							}
+						}
+						match = responseHeaders[ key.toLowerCase() ];
+					}
+					return match == null ? null : match;
+				},
+
+				// Raw string
+				getAllResponseHeaders: function() {
+					return state === 2 ? responseHeadersString : null;
+				},
+
+				// Caches the header
+				setRequestHeader: function( name, value ) {
+					var lname = name.toLowerCase();
+					if ( !state ) {
+						name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
+						requestHeaders[ name ] = value;
+					}
+					return this;
+				},
+
+				// Overrides response content-type header
+				overrideMimeType: function( type ) {
+					if ( !state ) {
+						s.mimeType = type;
+					}
+					return this;
+				},
+
+				// Status-dependent callbacks
+				statusCode: function( map ) {
+					var code;
+					if ( map ) {
+						if ( state < 2 ) {
+							for ( code in map ) {
+
+								// Lazy-add the new callback in a way that preserves old ones
+								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
+							}
+						} else {
+
+							// Execute the appropriate callbacks
+							jqXHR.always( map[ jqXHR.status ] );
+						}
+					}
+					return this;
+				},
+
+				// Cancel the request
+				abort: function( statusText ) {
+					var finalText = statusText || strAbort;
+					if ( transport ) {
+						transport.abort( finalText );
+					}
+					done( 0, finalText );
+					return this;
+				}
+			};
+
+		// Attach deferreds
+		deferred.promise( jqXHR ).complete = completeDeferred.add;
+		jqXHR.success = jqXHR.done;
+		jqXHR.error = jqXHR.fail;
+
+		// Remove hash character (#7531: and string promotion)
+		// Add protocol if not provided (prefilters might expect it)
+		// Handle falsy url in the settings object (#10093: consistency with old signature)
+		// We also use the url parameter if available
+		s.url = ( ( url || s.url || location.href ) + "" ).replace( rhash, "" )
+			.replace( rprotocol, location.protocol + "//" );
+
+		// Alias method option to type as per ticket #12004
+		s.type = options.method || options.type || s.method || s.type;
+
+		// Extract dataTypes list
+		s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( rnotwhite ) || [ "" ];
+
+		// A cross-domain request is in order when the origin doesn't match the current origin.
+		if ( s.crossDomain == null ) {
+			urlAnchor = document.createElement( "a" );
+
+			// Support: IE8-11+
+			// IE throws exception if url is malformed, e.g. http://example.com:80x/
+			try {
+				urlAnchor.href = s.url;
+
+				// Support: IE8-11+
+				// Anchor's host property isn't correctly set when s.url is relative
+				urlAnchor.href = urlAnchor.href;
+				s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
+					urlAnchor.protocol + "//" + urlAnchor.host;
+			} catch ( e ) {
+
+				// If there is an error parsing the URL, assume it is crossDomain,
+				// it can be rejected by the transport if it is invalid
+				s.crossDomain = true;
+			}
+		}
+
+		// Convert data if not already a string
+		if ( s.data && s.processData && typeof s.data !== "string" ) {
+			s.data = jQuery.param( s.data, s.traditional );
+		}
+
+		// Apply prefilters
+		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
+
+		// If request was aborted inside a prefilter, stop there
+		if ( state === 2 ) {
+			return jqXHR;
+		}
+
+		// We can fire global events as of now if asked to
+		// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
+		fireGlobals = jQuery.event && s.global;
+
+		// Watch for a new set of requests
+		if ( fireGlobals && jQuery.active++ === 0 ) {
+			jQuery.event.trigger( "ajaxStart" );
+		}
+
+		// Uppercase the type
+		s.type = s.type.toUpperCase();
+
+		// Determine if request has content
+		s.hasContent = !rnoContent.test( s.type );
+
+		// Save the URL in case we're toying with the If-Modified-Since
+		// and/or If-None-Match header later on
+		cacheURL = s.url;
+
+		// More options handling for requests with no content
+		if ( !s.hasContent ) {
+
+			// If data is available, append data to url
+			if ( s.data ) {
+				cacheURL = ( s.url += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
+
+				// #9682: remove data so that it's not used in an eventual retry
+				delete s.data;
+			}
+
+			// Add anti-cache in url if needed
+			if ( s.cache === false ) {
+				s.url = rts.test( cacheURL ) ?
+
+					// If there is already a '_' parameter, set its value
+					cacheURL.replace( rts, "$1_=" + nonce++ ) :
+
+					// Otherwise add one to the end
+					cacheURL + ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + nonce++;
+			}
+		}
+
+		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+		if ( s.ifModified ) {
+			if ( jQuery.lastModified[ cacheURL ] ) {
+				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
+			}
+			if ( jQuery.etag[ cacheURL ] ) {
+				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
+			}
+		}
+
+		// Set the correct header, if data is being sent
+		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
+			jqXHR.setRequestHeader( "Content-Type", s.contentType );
+		}
+
+		// Set the Accepts header for the server, depending on the dataType
+		jqXHR.setRequestHeader(
+			"Accept",
+			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
+				s.accepts[ s.dataTypes[ 0 ] ] +
+					( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
+				s.accepts[ "*" ]
+		);
+
+		// Check for headers option
+		for ( i in s.headers ) {
+			jqXHR.setRequestHeader( i, s.headers[ i ] );
+		}
+
+		// Allow custom headers/mimetypes and early abort
+		if ( s.beforeSend &&
+			( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
+
+			// Abort if not done already and return
+			return jqXHR.abort();
+		}
+
+		// Aborting is no longer a cancellation
+		strAbort = "abort";
+
+		// Install callbacks on deferreds
+		for ( i in { success: 1, error: 1, complete: 1 } ) {
+			jqXHR[ i ]( s[ i ] );
+		}
+
+		// Get transport
+		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
+
+		// If no transport, we auto-abort
+		if ( !transport ) {
+			done( -1, "No Transport" );
+		} else {
+			jqXHR.readyState = 1;
+
+			// Send global event
+			if ( fireGlobals ) {
+				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
+			}
+
+			// If request was aborted inside ajaxSend, stop there
+			if ( state === 2 ) {
+				return jqXHR;
+			}
+
+			// Timeout
+			if ( s.async && s.timeout > 0 ) {
+				timeoutTimer = window.setTimeout( function() {
+					jqXHR.abort( "timeout" );
+				}, s.timeout );
+			}
+
+			try {
+				state = 1;
+				transport.send( requestHeaders, done );
+			} catch ( e ) {
+
+				// Propagate exception as error if not done
+				if ( state < 2 ) {
+					done( -1, e );
+
+				// Simply rethrow otherwise
+				} else {
+					throw e;
+				}
+			}
+		}
+
+		// Callback for when everything is done
+		function done( status, nativeStatusText, responses, headers ) {
+			var isSuccess, success, error, response, modified,
+				statusText = nativeStatusText;
+
+			// Called once
+			if ( state === 2 ) {
+				return;
+			}
+
+			// State is "done" now
+			state = 2;
+
+			// Clear timeout if it exists
+			if ( timeoutTimer ) {
+				window.clearTimeout( timeoutTimer );
+			}
+
+			// Dereference transport for early garbage collection
+			// (no matter how long the jqXHR object will be used)
+			transport = undefined;
+
+			// Cache response headers
+			responseHeadersString = headers || "";
+
+			// Set readyState
+			jqXHR.readyState = status > 0 ? 4 : 0;
+
+			// Determine if successful
+			isSuccess = status >= 200 && status < 300 || status === 304;
+
+			// Get response data
+			if ( responses ) {
+				response = ajaxHandleResponses( s, jqXHR, responses );
+			}
+
+			// Convert no matter what (that way responseXXX fields are always set)
+			response = ajaxConvert( s, response, jqXHR, isSuccess );
+
+			// If successful, handle type chaining
+			if ( isSuccess ) {
+
+				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
+				if ( s.ifModified ) {
+					modified = jqXHR.getResponseHeader( "Last-Modified" );
+					if ( modified ) {
+						jQuery.lastModified[ cacheURL ] = modified;
+					}
+					modified = jqXHR.getResponseHeader( "etag" );
+					if ( modified ) {
+						jQuery.etag[ cacheURL ] = modified;
+					}
+				}
+
+				// if no content
+				if ( status === 204 || s.type === "HEAD" ) {
+					statusText = "nocontent";
+
+				// if not modified
+				} else if ( status === 304 ) {
+					statusText = "notmodified";
+
+				// If we have data, let's convert it
+				} else {
+					statusText = response.state;
+					success = response.data;
+					error = response.error;
+					isSuccess = !error;
+				}
+			} else {
+
+				// Extract error from statusText and normalize for non-aborts
+				error = statusText;
+				if ( status || !statusText ) {
+					statusText = "error";
+					if ( status < 0 ) {
+						status = 0;
+					}
+				}
+			}
+
+			// Set data for the fake xhr object
+			jqXHR.status = status;
+			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
+
+			// Success/Error
+			if ( isSuccess ) {
+				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
+			} else {
+				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
+			}
+
+			// Status-dependent callbacks
+			jqXHR.statusCode( statusCode );
+			statusCode = undefined;
+
+			if ( fireGlobals ) {
+				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
+					[ jqXHR, s, isSuccess ? success : error ] );
+			}
+
+			// Complete
+			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
+
+			if ( fireGlobals ) {
+				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
+
+				// Handle the global AJAX counter
+				if ( !( --jQuery.active ) ) {
+					jQuery.event.trigger( "ajaxStop" );
+				}
+			}
+		}
+
+		return jqXHR;
+	},
+
+	getJSON: function( url, data, callback ) {
+		return jQuery.get( url, data, callback, "json" );
+	},
+
+	getScript: function( url, callback ) {
+		return jQuery.get( url, undefined, callback, "script" );
+	}
+} );
+
+jQuery.each( [ "get", "post" ], function( i, method ) {
+	jQuery[ method ] = function( url, data, callback, type ) {
+
+		// Shift arguments if data argument was omitted
+		if ( jQuery.isFunction( data ) ) {
+			type = type || callback;
+			callback = data;
+			data = undefined;
+		}
+
+		// The url can be an options object (which then must have .url)
+		return jQuery.ajax( jQuery.extend( {
+			url: url,
+			type: method,
+			dataType: type,
+			data: data,
+			success: callback
+		}, jQuery.isPlainObject( url ) && url ) );
+	};
+} );
+
+
+jQuery._evalUrl = function( url ) {
+	return jQuery.ajax( {
+		url: url,
+
+		// Make this explicit, since user can override this through ajaxSetup (#11264)
+		type: "GET",
+		dataType: "script",
+		async: false,
+		global: false,
+		"throws": true
+	} );
+};
+
+
+jQuery.fn.extend( {
+	wrapAll: function( html ) {
+		var wrap;
+
+		if ( jQuery.isFunction( html ) ) {
+			return this.each( function( i ) {
+				jQuery( this ).wrapAll( html.call( this, i ) );
+			} );
+		}
+
+		if ( this[ 0 ] ) {
+
+			// The elements to wrap the target around
+			wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
+
+			if ( this[ 0 ].parentNode ) {
+				wrap.insertBefore( this[ 0 ] );
+			}
+
+			wrap.map( function() {
+				var elem = this;
+
+				while ( elem.firstElementChild ) {
+					elem = elem.firstElementChild;
+				}
+
+				return elem;
+			} ).append( this );
+		}
+
+		return this;
+	},
+
+	wrapInner: function( html ) {
+		if ( jQuery.isFunction( html ) ) {
+			return this.each( function( i ) {
+				jQuery( this ).wrapInner( html.call( this, i ) );
+			} );
+		}
+
+		return this.each( function() {
+			var self = jQuery( this ),
+				contents = self.contents();
+
+			if ( contents.length ) {
+				contents.wrapAll( html );
+
+			} else {
+				self.append( html );
+			}
+		} );
+	},
+
+	wrap: function( html ) {
+		var isFunction = jQuery.isFunction( html );
+
+		return this.each( function( i ) {
+			jQuery( this ).wrapAll( isFunction ? html.call( this, i ) : html );
+		} );
+	},
+
+	unwrap: function() {
+		return this.parent().each( function() {
+			if ( !jQuery.nodeName( this, "body" ) ) {
+				jQuery( this ).replaceWith( this.childNodes );
+			}
+		} ).end();
+	}
+} );
+
+
+jQuery.expr.filters.hidden = function( elem ) {
+	return !jQuery.expr.filters.visible( elem );
+};
+jQuery.expr.filters.visible = function( elem ) {
+
+	// Support: Opera <= 12.12
+	// Opera reports offsetWidths and offsetHeights less than zero on some elements
+	// Use OR instead of AND as the element is not visible if either is true
+	// See tickets #10406 and #13132
+	return elem.offsetWidth > 0 || elem.offsetHeight > 0 || elem.getClientRects().length > 0;
+};
+
+
+
+
+var r20 = /%20/g,
+	rbracket = /\[\]$/,
+	rCRLF = /\r?\n/g,
+	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
+	rsubmittable = /^(?:input|select|textarea|keygen)/i;
+
+function buildParams( prefix, obj, traditional, add ) {
+	var name;
+
+	if ( jQuery.isArray( obj ) ) {
+
+		// Serialize array item.
+		jQuery.each( obj, function( i, v ) {
+			if ( traditional || rbracket.test( prefix ) ) {
+
+				// Treat each array item as a scalar.
+				add( prefix, v );
+
+			} else {
+
+				// Item is non-scalar (array or object), encode its numeric index.
+				buildParams(
+					prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
+					v,
+					traditional,
+					add
+				);
+			}
+		} );
+
+	} else if ( !traditional && jQuery.type( obj ) === "object" ) {
+
+		// Serialize object item.
+		for ( name in obj ) {
+			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+		}
+
+	} else {
+
+		// Serialize scalar item.
+		add( prefix, obj );
+	}
+}
+
+// Serialize an array of form elements or a set of
+// key/values into a query string
+jQuery.param = function( a, traditional ) {
+	var prefix,
+		s = [],
+		add = function( key, value ) {
+
+			// If value is a function, invoke it and return its value
+			value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
+			s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+		};
+
+	// Set traditional to true for jQuery <= 1.3.2 behavior.
+	if ( traditional === undefined ) {
+		traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
+	}
+
+	// If an array was passed in, assume that it is an array of form elements.
+	if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+
+		// Serialize the form elements
+		jQuery.each( a, function() {
+			add( this.name, this.value );
+		} );
+
+	} else {
+
+		// If traditional, encode the "old" way (the way 1.3.2 or older
+		// did it), otherwise encode params recursively.
+		for ( prefix in a ) {
+			buildParams( prefix, a[ prefix ], traditional, add );
+		}
+	}
+
+	// Return the resulting serialization
+	return s.join( "&" ).replace( r20, "+" );
+};
+
+jQuery.fn.extend( {
+	serialize: function() {
+		return jQuery.param( this.serializeArray() );
+	},
+	serializeArray: function() {
+		return this.map( function() {
+
+			// Can add propHook for "elements" to filter or add form elements
+			var elements = jQuery.prop( this, "elements" );
+			return elements ? jQuery.makeArray( elements ) : this;
+		} )
+		.filter( function() {
+			var type = this.type;
+
+			// Use .is( ":disabled" ) so that fieldset[disabled] works
+			return this.name && !jQuery( this ).is( ":disabled" ) &&
+				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
+				( this.checked || !rcheckableType.test( type ) );
+		} )
+		.map( function( i, elem ) {
+			var val = jQuery( this ).val();
+
+			return val == null ?
+				null :
+				jQuery.isArray( val ) ?
+					jQuery.map( val, function( val ) {
+						return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+					} ) :
+					{ name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+		} ).get();
+	}
+} );
+
+
+jQuery.ajaxSettings.xhr = function() {
+	try {
+		return new window.XMLHttpRequest();
+	} catch ( e ) {}
+};
+
+var xhrSuccessStatus = {
+
+		// File protocol always yields status code 0, assume 200
+		0: 200,
+
+		// Support: IE9
+		// #1450: sometimes IE returns 1223 when it should be 204
+		1223: 204
+	},
+	xhrSupported = jQuery.ajaxSettings.xhr();
+
+support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
+support.ajax = xhrSupported = !!xhrSupported;
+
+jQuery.ajaxTransport( function( options ) {
+	var callback, errorCallback;
+
+	// Cross domain only allowed if supported through XMLHttpRequest
+	if ( support.cors || xhrSupported && !options.crossDomain ) {
+		return {
+			send: function( headers, complete ) {
+				var i,
+					xhr = options.xhr();
+
+				xhr.open(
+					options.type,
+					options.url,
+					options.async,
+					options.username,
+					options.password
+				);
+
+				// Apply custom fields if provided
+				if ( options.xhrFields ) {
+					for ( i in options.xhrFields ) {
+						xhr[ i ] = options.xhrFields[ i ];
+					}
+				}
+
+				// Override mime type if needed
+				if ( options.mimeType && xhr.overrideMimeType ) {
+					xhr.overrideMimeType( options.mimeType );
+				}
+
+				// X-Requested-With header
+				// For cross-domain requests, seeing as conditions for a preflight are
+				// akin to a jigsaw puzzle, we simply never set it to be sure.
+				// (it can always be set on a per-request basis or even using ajaxSetup)
+				// For same-domain requests, won't change header if already provided.
+				if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
+					headers[ "X-Requested-With" ] = "XMLHttpRequest";
+				}
+
+				// Set headers
+				for ( i in headers ) {
+					xhr.setRequestHeader( i, headers[ i ] );
+				}
+
+				// Callback
+				callback = function( type ) {
+					return function() {
+						if ( callback ) {
+							callback = errorCallback = xhr.onload =
+								xhr.onerror = xhr.onabort = xhr.onreadystatechange = null;
+
+							if ( type === "abort" ) {
+								xhr.abort();
+							} else if ( type === "error" ) {
+
+								// Support: IE9
+								// On a manual native abort, IE9 throws
+								// errors on any property access that is not readyState
+								if ( typeof xhr.status !== "number" ) {
+									complete( 0, "error" );
+								} else {
+									complete(
+
+										// File: protocol always yields status 0; see #8605, #14207
+										xhr.status,
+										xhr.statusText
+									);
+								}
+							} else {
+								complete(
+									xhrSuccessStatus[ xhr.status ] || xhr.status,
+									xhr.statusText,
+
+									// Support: IE9 only
+									// IE9 has no XHR2 but throws on binary (trac-11426)
+									// For XHR2 non-text, let the caller handle it (gh-2498)
+									( xhr.responseType || "text" ) !== "text"  ||
+									typeof xhr.responseText !== "string" ?
+										{ binary: xhr.response } :
+										{ text: xhr.responseText },
+									xhr.getAllResponseHeaders()
+								);
+							}
+						}
+					};
+				};
+
+				// Listen to events
+				xhr.onload = callback();
+				errorCallback = xhr.onerror = callback( "error" );
+
+				// Support: IE9
+				// Use onreadystatechange to replace onabort
+				// to handle uncaught aborts
+				if ( xhr.onabort !== undefined ) {
+					xhr.onabort = errorCallback;
+				} else {
+					xhr.onreadystatechange = function() {
+
+						// Check readyState before timeout as it changes
+						if ( xhr.readyState === 4 ) {
+
+							// Allow onerror to be called first,
+							// but that will not handle a native abort
+							// Also, save errorCallback to a variable
+							// as xhr.onerror cannot be accessed
+							window.setTimeout( function() {
+								if ( callback ) {
+									errorCallback();
+								}
+							} );
+						}
+					};
+				}
+
+				// Create the abort callback
+				callback = callback( "abort" );
+
+				try {
+
+					// Do send the request (this may raise an exception)
+					xhr.send( options.hasContent && options.data || null );
+				} catch ( e ) {
+
+					// #14683: Only rethrow if this hasn't been notified as an error yet
+					if ( callback ) {
+						throw e;
+					}
+				}
+			},
+
+			abort: function() {
+				if ( callback ) {
+					callback();
+				}
+			}
+		};
+	}
+} );
+
+
+
+
+// Install script dataType
+jQuery.ajaxSetup( {
+	accepts: {
+		script: "text/javascript, application/javascript, " +
+			"application/ecmascript, application/x-ecmascript"
+	},
+	contents: {
+		script: /\b(?:java|ecma)script\b/
+	},
+	converters: {
+		"text script": function( text ) {
+			jQuery.globalEval( text );
+			return text;
+		}
+	}
+} );
+
+// Handle cache's special case and crossDomain
+jQuery.ajaxPrefilter( "script", function( s ) {
+	if ( s.cache === undefined ) {
+		s.cache = false;
+	}
+	if ( s.crossDomain ) {
+		s.type = "GET";
+	}
+} );
+
+// Bind script tag hack transport
+jQuery.ajaxTransport( "script", function( s ) {
+
+	// This transport only deals with cross domain requests
+	if ( s.crossDomain ) {
+		var script, callback;
+		return {
+			send: function( _, complete ) {
+				script = jQuery( "<script>" ).prop( {
+					charset: s.scriptCharset,
+					src: s.url
+				} ).on(
+					"load error",
+					callback = function( evt ) {
+						script.remove();
+						callback = null;
+						if ( evt ) {
+							complete( evt.type === "error" ? 404 : 200, evt.type );
+						}
+					}
+				);
+
+				// Use native DOM manipulation to avoid our domManip AJAX trickery
+				document.head.appendChild( script[ 0 ] );
+			},
+			abort: function() {
+				if ( callback ) {
+					callback();
+				}
+			}
+		};
+	}
+} );
+
+
+
+
+var oldCallbacks = [],
+	rjsonp = /(=)\?(?=&|$)|\?\?/;
+
+// Default jsonp settings
+jQuery.ajaxSetup( {
+	jsonp: "callback",
+	jsonpCallback: function() {
+		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
+		this[ callback ] = true;
+		return callback;
+	}
+} );
+
+// Detect, normalize options and install callbacks for jsonp requests
+jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
+
+	var callbackName, overwritten, responseContainer,
+		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
+			"url" :
+			typeof s.data === "string" &&
+				( s.contentType || "" )
+					.indexOf( "application/x-www-form-urlencoded" ) === 0 &&
+				rjsonp.test( s.data ) && "data"
+		);
+
+	// Handle iff the expected data type is "jsonp" or we have a parameter to set
+	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
+
+		// Get callback name, remembering preexisting value associated with it
+		callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
+			s.jsonpCallback() :
+			s.jsonpCallback;
+
+		// Insert callback into url or form data
+		if ( jsonProp ) {
+			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
+		} else if ( s.jsonp !== false ) {
+			s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
+		}
+
+		// Use data converter to retrieve json after script execution
+		s.converters[ "script json" ] = function() {
+			if ( !responseContainer ) {
+				jQuery.error( callbackName + " was not called" );
+			}
+			return responseContainer[ 0 ];
+		};
+
+		// Force json dataType
+		s.dataTypes[ 0 ] = "json";
+
+		// Install callback
+		overwritten = window[ callbackName ];
+		window[ callbackName ] = function() {
+			responseContainer = arguments;
+		};
+
+		// Clean-up function (fires after converters)
+		jqXHR.always( function() {
+
+			// If previous value didn't exist - remove it
+			if ( overwritten === undefined ) {
+				jQuery( window ).removeProp( callbackName );
+
+			// Otherwise restore preexisting value
+			} else {
+				window[ callbackName ] = overwritten;
+			}
+
+			// Save back as free
+			if ( s[ callbackName ] ) {
+
+				// Make sure that re-using the options doesn't screw things around
+				s.jsonpCallback = originalSettings.jsonpCallback;
+
+				// Save the callback name for future use
+				oldCallbacks.push( callbackName );
+			}
+
+			// Call if it was a function and we have a response
+			if ( responseContainer && jQuery.isFunction( overwritten ) ) {
+				overwritten( responseContainer[ 0 ] );
+			}
+
+			responseContainer = overwritten = undefined;
+		} );
+
+		// Delegate to script
+		return "script";
+	}
+} );
+
+
+
+
+// Argument "data" should be string of html
+// context (optional): If specified, the fragment will be created in this context,
+// defaults to document
+// keepScripts (optional): If true, will include scripts passed in the html string
+jQuery.parseHTML = function( data, context, keepScripts ) {
+	if ( !data || typeof data !== "string" ) {
+		return null;
+	}
+	if ( typeof context === "boolean" ) {
+		keepScripts = context;
+		context = false;
+	}
+	context = context || document;
+
+	var parsed = rsingleTag.exec( data ),
+		scripts = !keepScripts && [];
+
+	// Single tag
+	if ( parsed ) {
+		return [ context.createElement( parsed[ 1 ] ) ];
+	}
+
+	parsed = buildFragment( [ data ], context, scripts );
+
+	if ( scripts && scripts.length ) {
+		jQuery( scripts ).remove();
+	}
+
+	return jQuery.merge( [], parsed.childNodes );
+};
+
+
+// Keep a copy of the old load method
+var _load = jQuery.fn.load;
+
+/**
+ * Load a url into a page
+ */
+jQuery.fn.load = function( url, params, callback ) {
+	if ( typeof url !== "string" && _load ) {
+		return _load.apply( this, arguments );
+	}
+
+	var selector, type, response,
+		self = this,
+		off = url.indexOf( " " );
+
+	if ( off > -1 ) {
+		selector = jQuery.trim( url.slice( off ) );
+		url = url.slice( 0, off );
+	}
+
+	// If it's a function
+	if ( jQuery.isFunction( params ) ) {
+
+		// We assume that it's the callback
+		callback = params;
+		params = undefined;
+
+	// Otherwise, build a param string
+	} else if ( params && typeof params === "object" ) {
+		type = "POST";
+	}
+
+	// If we have elements to modify, make the request
+	if ( self.length > 0 ) {
+		jQuery.ajax( {
+			url: url,
+
+			// If "type" variable is undefined, then "GET" method will be used.
+			// Make value of this field explicit since
+			// user can override it through ajaxSetup method
+			type: type || "GET",
+			dataType: "html",
+			data: params
+		} ).done( function( responseText ) {
+
+			// Save response for use in complete callback
+			response = arguments;
+
+			self.html( selector ?
+
+				// If a selector was specified, locate the right elements in a dummy div
+				// Exclude scripts to avoid IE 'Permission Denied' errors
+				jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
+
+				// Otherwise use the full result
+				responseText );
+
+		// If the request succeeds, this function gets "data", "status", "jqXHR"
+		// but they are ignored because response was set above.
+		// If it fails, this function gets "jqXHR", "status", "error"
+		} ).always( callback && function( jqXHR, status ) {
+			self.each( function() {
+				callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
+			} );
+		} );
+	}
+
+	return this;
+};
+
+
+
+
+// Attach a bunch of functions for handling common AJAX events
+jQuery.each( [
+	"ajaxStart",
+	"ajaxStop",
+	"ajaxComplete",
+	"ajaxError",
+	"ajaxSuccess",
+	"ajaxSend"
+], function( i, type ) {
+	jQuery.fn[ type ] = function( fn ) {
+		return this.on( type, fn );
+	};
+} );
+
+
+
+
+jQuery.expr.filters.animated = function( elem ) {
+	return jQuery.grep( jQuery.timers, function( fn ) {
+		return elem === fn.elem;
+	} ).length;
+};
+
+
+
+
+/**
+ * Gets a window from an element
+ */
+function getWindow( elem ) {
+	return jQuery.isWindow( elem ) ? elem : elem.nodeType === 9 && elem.defaultView;
+}
+
+jQuery.offset = {
+	setOffset: function( elem, options, i ) {
+		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
+			position = jQuery.css( elem, "position" ),
+			curElem = jQuery( elem ),
+			props = {};
+
+		// Set position first, in-case top/left are set even on static elem
+		if ( position === "static" ) {
+			elem.style.position = "relative";
+		}
+
+		curOffset = curElem.offset();
+		curCSSTop = jQuery.css( elem, "top" );
+		curCSSLeft = jQuery.css( elem, "left" );
+		calculatePosition = ( position === "absolute" || position === "fixed" ) &&
+			( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
+
+		// Need to be able to calculate position if either
+		// top or left is auto and position is either absolute or fixed
+		if ( calculatePosition ) {
+			curPosition = curElem.position();
+			curTop = curPosition.top;
+			curLeft = curPosition.left;
+
+		} else {
+			curTop = parseFloat( curCSSTop ) || 0;
+			curLeft = parseFloat( curCSSLeft ) || 0;
+		}
+
+		if ( jQuery.isFunction( options ) ) {
+
+			// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
+			options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
+		}
+
+		if ( options.top != null ) {
+			props.top = ( options.top - curOffset.top ) + curTop;
+		}
+		if ( options.left != null ) {
+			props.left = ( options.left - curOffset.left ) + curLeft;
+		}
+
+		if ( "using" in options ) {
+			options.using.call( elem, props );
+
+		} else {
+			curElem.css( props );
+		}
+	}
+};
+
+jQuery.fn.extend( {
+	offset: function( options ) {
+		if ( arguments.length ) {
+			return options === undefined ?
+				this :
+				this.each( function( i ) {
+					jQuery.offset.setOffset( this, options, i );
+				} );
+		}
+
+		var docElem, win,
+			elem = this[ 0 ],
+			box = { top: 0, left: 0 },
+			doc = elem && elem.ownerDocument;
+
+		if ( !doc ) {
+			return;
+		}
+
+		docElem = doc.documentElement;
+
+		// Make sure it's not a disconnected DOM node
+		if ( !jQuery.contains( docElem, elem ) ) {
+			return box;
+		}
+
+		box = elem.getBoundingClientRect();
+		win = getWindow( doc );
+		return {
+			top: box.top + win.pageYOffset - docElem.clientTop,
+			left: box.left + win.pageXOffset - docElem.clientLeft
+		};
+	},
+
+	position: function() {
+		if ( !this[ 0 ] ) {
+			return;
+		}
+
+		var offsetParent, offset,
+			elem = this[ 0 ],
+			parentOffset = { top: 0, left: 0 };
+
+		// Fixed elements are offset from window (parentOffset = {top:0, left: 0},
+		// because it is its only offset parent
+		if ( jQuery.css( elem, "position" ) === "fixed" ) {
+
+			// Assume getBoundingClientRect is there when computed position is fixed
+			offset = elem.getBoundingClientRect();
+
+		} else {
+
+			// Get *real* offsetParent
+			offsetParent = this.offsetParent();
+
+			// Get correct offsets
+			offset = this.offset();
+			if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
+				parentOffset = offsetParent.offset();
+			}
+
+			// Add offsetParent borders
+			parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
+			parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
+		}
+
+		// Subtract parent offsets and element margins
+		return {
+			top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
+			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
+		};
+	},
+
+	// This method will return documentElement in the following cases:
+	// 1) For the element inside the iframe without offsetParent, this method will return
+	//    documentElement of the parent window
+	// 2) For the hidden or detached element
+	// 3) For body or html element, i.e. in case of the html node - it will return itself
+	//
+	// but those exceptions were never presented as a real life use-cases
+	// and might be considered as more preferable results.
+	//
+	// This logic, however, is not guaranteed and can change at any point in the future
+	offsetParent: function() {
+		return this.map( function() {
+			var offsetParent = this.offsetParent;
+
+			while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
+				offsetParent = offsetParent.offsetParent;
+			}
+
+			return offsetParent || documentElement;
+		} );
+	}
+} );
+
+// Create scrollLeft and scrollTop methods
+jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
+	var top = "pageYOffset" === prop;
+
+	jQuery.fn[ method ] = function( val ) {
+		return access( this, function( elem, method, val ) {
+			var win = getWindow( elem );
+
+			if ( val === undefined ) {
+				return win ? win[ prop ] : elem[ method ];
+			}
+
+			if ( win ) {
+				win.scrollTo(
+					!top ? val : win.pageXOffset,
+					top ? val : win.pageYOffset
+				);
+
+			} else {
+				elem[ method ] = val;
+			}
+		}, method, val, arguments.length );
+	};
+} );
+
+// Support: Safari<7-8+, Chrome<37-44+
+// Add the top/left cssHooks using jQuery.fn.position
+// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
+// Blink bug: https://code.google.com/p/chromium/issues/detail?id=229280
+// getComputedStyle returns percent when specified for top/left/bottom/right;
+// rather than make the css module depend on the offset module, just check for it here
+jQuery.each( [ "top", "left" ], function( i, prop ) {
+	jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
+		function( elem, computed ) {
+			if ( computed ) {
+				computed = curCSS( elem, prop );
+
+				// If curCSS returns percentage, fallback to offset
+				return rnumnonpx.test( computed ) ?
+					jQuery( elem ).position()[ prop ] + "px" :
+					computed;
+			}
+		}
+	);
+} );
+
+
+// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
+jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
+	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
+		function( defaultExtra, funcName ) {
+
+		// Margin is only for outerHeight, outerWidth
+		jQuery.fn[ funcName ] = function( margin, value ) {
+			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
+				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
+
+			return access( this, function( elem, type, value ) {
+				var doc;
+
+				if ( jQuery.isWindow( elem ) ) {
+
+					// As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
+					// isn't a whole lot we can do. See pull request at this URL for discussion:
+					// https://github.com/jquery/jquery/pull/764
+					return elem.document.documentElement[ "client" + name ];
+				}
+
+				// Get document width or height
+				if ( elem.nodeType === 9 ) {
+					doc = elem.documentElement;
+
+					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
+					// whichever is greatest
+					return Math.max(
+						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
+						elem.body[ "offset" + name ], doc[ "offset" + name ],
+						doc[ "client" + name ]
+					);
+				}
+
+				return value === undefined ?
+
+					// Get width or height on the element, requesting but not forcing parseFloat
+					jQuery.css( elem, type, extra ) :
+
+					// Set width or height on the element
+					jQuery.style( elem, type, value, extra );
+			}, type, chainable ? margin : undefined, chainable, null );
+		};
+	} );
+} );
+
+
+jQuery.fn.extend( {
+
+	bind: function( types, data, fn ) {
+		return this.on( types, null, data, fn );
+	},
+	unbind: function( types, fn ) {
+		return this.off( types, null, fn );
+	},
+
+	delegate: function( selector, types, data, fn ) {
+		return this.on( types, selector, data, fn );
+	},
+	undelegate: function( selector, types, fn ) {
+
+		// ( namespace ) or ( selector, types [, fn] )
+		return arguments.length === 1 ?
+			this.off( selector, "**" ) :
+			this.off( types, selector || "**", fn );
+	},
+	size: function() {
+		return this.length;
+	}
+} );
+
+jQuery.fn.andSelf = jQuery.fn.addBack;
+
+
+
+
+// Register as a named AMD module, since jQuery can be concatenated with other
+// files that may use define, but not via a proper concatenation script that
+// understands anonymous AMD modules. A named AMD is safest and most robust
+// way to register. Lowercase jquery is used because AMD module names are
+// derived from file names, and jQuery is normally delivered in a lowercase
+// file name. Do this after creating the global so that if an AMD module wants
+// to call noConflict to hide this version of jQuery, it will work.
+
+// Note that for maximum portability, libraries that are not jQuery should
+// declare themselves as anonymous modules, and avoid setting a global if an
+// AMD loader is present. jQuery is a special case. For more information, see
+// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
+
+if ( typeof define === "function" && define.amd ) {
+	define( "jquery", [], function() {
+		return jQuery;
+	} );
+}
+
+
+
+var
+
+	// Map over jQuery in case of overwrite
+	_jQuery = window.jQuery,
+
+	// Map over the $ in case of overwrite
+	_$ = window.$;
+
+jQuery.noConflict = function( deep ) {
+	if ( window.$ === jQuery ) {
+		window.$ = _$;
+	}
+
+	if ( deep && window.jQuery === jQuery ) {
+		window.jQuery = _jQuery;
+	}
+
+	return jQuery;
+};
+
+// Expose jQuery and $ identifiers, even in AMD
+// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
+// and CommonJS for browser emulators (#13566)
+if ( !noGlobal ) {
+	window.jQuery = window.$ = jQuery;
+}
+
+return jQuery;
+}));

+ 252 - 0
2018专题/我的冒险世界/src/lib/mod.js

@@ -0,0 +1,252 @@
+/**
+ * @file: mod.js
+ * @author fis
+ * ver: 1.0.11
+ * update: 2015/05/14
+ * https://github.com/fex-team/mod
+ */
+var require;
+
+/* eslint-disable no-unused-vars */
+var define;
+
+(function (global) {
+
+    // 避免重复加载而导致已定义模块丢失
+    if (require) {
+        return;
+    }
+
+    var head = document.getElementsByTagName('head')[0];
+    var loadingMap = {};
+    var factoryMap = {};
+    var modulesMap = {};
+    var scriptsMap = {};
+    var resMap = {};
+    var pkgMap = {};
+
+    var createScript = function (url, onerror) {
+        if (url in scriptsMap) {
+            return;
+        }
+
+        scriptsMap[url] = true;
+
+        var script = document.createElement('script');
+        if (onerror) {
+            var tid = setTimeout(onerror, require.timeout);
+
+            script.onerror = function () {
+                clearTimeout(tid);
+                onerror();
+            };
+
+            var onload = function () {
+                clearTimeout(tid);
+            };
+
+            if ('onload' in script) {
+                script.onload = onload;
+            }
+            else {
+                script.onreadystatechange = function () {
+                    if (this.readyState === 'loaded' || this.readyState === 'complete') {
+                        onload();
+                    }
+                };
+            }
+        }
+        script.type = 'text/javascript';
+        script.src = url;
+        head.appendChild(script);
+        return script;
+    };
+
+    var loadScript = function (id, callback, onerror) {
+        var queue = loadingMap[id] || (loadingMap[id] = []);
+        queue.push(callback);
+
+        //
+        // resource map query
+        //
+        var res = resMap[id] || resMap[id + '.js'] || {};
+        var pkg = res.pkg;
+        var url;
+
+        if (pkg) {
+            url = pkgMap[pkg].url;
+        }
+        else {
+            url = res.url || id;
+        }
+
+        createScript(url, onerror && function () {
+            onerror(id);
+        });
+    };
+
+    define = function (id, factory) {
+        id = id.replace(/\.js$/i, '');
+        factoryMap[id] = factory;
+
+        var queue = loadingMap[id];
+        if (queue) {
+            for (var i = 0, n = queue.length; i < n; i++) {
+                queue[i]();
+            }
+            delete loadingMap[id];
+        }
+    };
+
+    require = function (id) {
+
+        // compatible with require([dep, dep2...]) syntax.
+        if (id && id.splice) {
+            return require.async.apply(this, arguments);
+        }
+
+        id = require.alias(id);
+
+        var mod = modulesMap[id];
+        if (mod) {
+            return mod.exports;
+        }
+
+        //
+        // init module
+        //
+        var factory = factoryMap[id];
+        if (!factory) {
+            throw '[ModJS] Cannot find module `' + id + '`';
+        }
+
+        mod = modulesMap[id] = {
+            exports: {}
+        };
+
+        //
+        // factory: function OR value
+        //
+        var ret = (typeof factory === 'function') ? factory.apply(mod, [require, mod.exports, mod]) : factory;
+
+        if (ret) {
+            mod.exports = ret;
+        }
+
+        if (mod.exports && !mod.exports['default']) {
+            mod.exports['default'] = mod.exports;
+        }
+
+        return mod.exports;
+    };
+
+    require.async = function (names, onload, onerror) {
+        if (typeof names === 'string') {
+            names = [names];
+        }
+
+        var needMap = {};
+        var needNum = 0;
+
+        function findNeed(depArr) {
+            var child;
+
+            for (var i = 0, n = depArr.length; i < n; i++) {
+                //
+                // skip loading or loaded
+                //
+                var dep = require.alias(depArr[i]);
+
+                if (dep in factoryMap) {
+                    // check whether loaded resource's deps is loaded or not
+                    child = resMap[dep] || resMap[dep + '.js'];
+                    if (child && 'deps' in child) {
+                        findNeed(child.deps);
+                    }
+                    continue;
+                }
+
+                if (dep in needMap) {
+                    continue;
+                }
+
+                needMap[dep] = true;
+                needNum++;
+                loadScript(dep, updateNeed, onerror);
+
+                child = resMap[dep] || resMap[dep + '.js'];
+                if (child && 'deps' in child) {
+                    findNeed(child.deps);
+                }
+            }
+        }
+
+        function updateNeed() {
+            if (0 === needNum--) {
+                var args = [];
+                for (var i = 0, n = names.length; i < n; i++) {
+                    args[i] = require(names[i]);
+                }
+
+                onload && onload.apply(global, args);
+            }
+        }
+
+        findNeed(names);
+        updateNeed();
+    };
+
+    require.resourceMap = function (obj) {
+        var k;
+        var col;
+
+        // merge `res` & `pkg` fields
+        col = obj.res;
+        for (k in col) {
+            if (col.hasOwnProperty(k)) {
+                resMap[k] = col[k];
+            }
+        }
+
+        col = obj.pkg;
+        for (k in col) {
+            if (col.hasOwnProperty(k)) {
+                pkgMap[k] = col[k];
+            }
+        }
+    };
+
+    require.loadJs = function (url) {
+        createScript(url);
+    };
+
+    require.loadCss = function (cfg) {
+        if (cfg.content) {
+            var sty = document.createElement('style');
+            sty.type = 'text/css';
+
+            if (sty.styleSheet) { // IE
+                sty.styleSheet.cssText = cfg.content;
+            }
+            else {
+                sty.innerHTML = cfg.content;
+            }
+            head.appendChild(sty);
+        }
+        else if (cfg.url) {
+            var link = document.createElement('link');
+            link.href = cfg.url;
+            link.rel = 'stylesheet';
+            link.type = 'text/css';
+            head.appendChild(link);
+        }
+    };
+
+
+    require.alias = function (id) {
+        return id.replace(/\.js$/i, '');
+    };
+
+    require.timeout = 5000;
+
+})(this);

+ 1 - 0
2018专题/我的冒险世界/src/lib/rem.js

@@ -0,0 +1 @@
+(function(d,c){var e=d.documentElement,b="orientationchange" in window?"orientationchange":"resize";var a=function(){var f=e.clientWidth;if(!f){return}e.style.fontSize=20*(f/320)+"px"};if(!d.addEventListener){return}c.addEventListener(b,a,false);d.addEventListener("DOMContentLoaded",a,false)})(document,window);

+ 43 - 0
2018专题/我的冒险世界/src/list.html

@@ -0,0 +1,43 @@
+<!doctype html>
+<html>
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
+    <meta name="format-detection" content="telephone=no" />
+    <title>我的冒险世界2 - 心灵方块 - 作品列表</title>
+    <script src="lib/rem.js"></script><!--ignore-->
+    <script src="http://pub.dwstatic.com/common/lib/jquery/jquery-2.2.4.js"></script><!--ignore-->
+    <link href="sass/active.scss" rel="stylesheet">
+    
+</head>
+
+<body>
+    <div class="list-wrap">
+       <div class="data-list-wrap">
+           <ul class="tab-wrap">
+               <li class="list-tab current first" type="time">按上传时间怕排序</li>
+               <li class="list-tab first" type="hot">按人气值排序</li>
+               <li class="list-tab mine">我的作品</li>
+           </ul>
+            <ul class="data-wrap" id="time">
+                
+            </ul>
+            <ul class="data-wrap" id="hot">
+                
+            </ul>
+            <ul class="data-wrap" id="mine">
+                
+            </ul>
+       </div>
+        <div class="load-more">
+            <i></i>上滑加载更多
+        </div>
+    </div>
+    <script src="lib/mod.js"></script>
+    <script>
+        require('modules/page/list.js')
+    </script>
+</body>
+
+</html>

+ 148 - 0
2018专题/我的冒险世界/src/modules/cookie/cookie.js

@@ -0,0 +1,148 @@
+    // Cookie
+    // -------------
+    // Thanks to:
+    //  - http://www.nczonline.net/blog/2009/05/05/http-cookies-explained/
+    //  - http://developer.yahoo.com/yui/3/cookie/
+    var Cookie = exports;
+    var decode = decodeURIComponent;
+    var encode = encodeURIComponent;
+
+    /**
+     * Returns the cookie value for the given name.
+     *
+     * @param {String} name The name of the cookie to retrieve.
+     *
+     * @param {Function|Object} options (Optional) An object containing one or
+     *     more cookie options: raw (true/false) and converter (a function).
+     *     The converter function is run on the value before returning it. The
+     *     function is not used if the cookie doesn't exist. The function can be
+     *     passed instead of the options object for conveniently. When raw is
+     *     set to true, the cookie value is not URI decoded.
+     *
+     * @return {*} If no converter is specified, returns a string or undefined
+     *     if the cookie doesn't exist. If the converter is specified, returns
+     *     the value returned from the converter.
+     */
+    Cookie.get = function(name, options) {
+        validateCookieName(name);
+        if (typeof options === "function") {
+            options = {
+                converter: options
+            };
+        } else {
+            options = options || {};
+        }
+        var cookies = parseCookieString(document.cookie, !options["raw"]);
+        return (options.converter || same)(cookies[name]);
+    };
+    /**
+     * Sets a cookie with a given name and value.
+     *
+     * @param {string} name The name of the cookie to set.
+     *
+     * @param {*} value The value to set for the cookie.
+     *
+     * @param {Object} options (Optional) An object containing one or more
+     *     cookie options: path (a string), domain (a string),
+     *     expires (number or a Date object), secure (true/false),
+     *     and raw (true/false). Setting raw to true indicates that the cookie
+     *     should not be URI encoded before being set.
+     *
+     * @return {string} The created cookie string.
+     */
+    Cookie.set = function(name, value, options) {
+        validateCookieName(name);
+        options = options || {};
+        var expires = options["expires"];
+        var domain = options["domain"];
+        var path = options["path"];
+        if (!options["raw"]) {
+            value = encode(String(value));
+        }
+        var text = name + "=" + value;
+        // expires
+        var date = expires;
+        if (typeof date === "number") {
+            date = new Date();
+            date.setDate(date.getDate() + expires);
+        }
+        if (date instanceof Date) {
+            text += "; expires=" + date.toUTCString();
+        }
+        // domain
+        if (isNonEmptyString(domain)) {
+            text += "; domain=" + domain;
+        }
+        // path
+        if (isNonEmptyString(path)) {
+            text += "; path=" + path;
+        }
+        // secure
+        if (options["secure"]) {
+            text += "; secure";
+        }
+        document.cookie = text;
+        return text;
+    };
+    /**
+     * Removes a cookie from the machine by setting its expiration date to
+     * sometime in the past.
+     *
+     * @param {string} name The name of the cookie to remove.
+     *
+     * @param {Object} options (Optional) An object containing one or more
+     *     cookie options: path (a string), domain (a string),
+     *     and secure (true/false). The expires option will be overwritten
+     *     by the method.
+     *
+     * @return {string} The created cookie string.
+     */
+    Cookie.remove = function(name, options) {
+        options = options || {};
+        options["expires"] = new Date(0);
+        return this.set(name, "", options);
+    };
+    function parseCookieString(text, shouldDecode) {
+        var cookies = {};
+        if (isString(text) && text.length > 0) {
+            var decodeValue = shouldDecode ? decode : same;
+            var cookieParts = text.split(/;\s/g);
+            var cookieName;
+            var cookieValue;
+            var cookieNameValue;
+            for (var i = 0, len = cookieParts.length; i < len; i++) {
+                // Check for normally-formatted cookie (name-value)
+                cookieNameValue = cookieParts[i].match(/([^=]+)=/i);
+                if (cookieNameValue instanceof Array) {
+                    try {
+                        cookieName = decode(cookieNameValue[1]);
+                        cookieValue = decodeValue(cookieParts[i].substring(cookieNameValue[1].length + 1));
+                    } catch (ex) {}
+                } else {
+                    // Means the cookie does not have an "=", so treat it as
+                    // a boolean flag
+                    cookieName = decode(cookieParts[i]);
+                    cookieValue = "";
+                }
+                if (cookieName) {
+                    cookies[cookieName] = cookieValue;
+                }
+            }
+        }
+        return cookies;
+    }
+    // Helpers
+    function isString(o) {
+        return typeof o === "string";
+    }
+    function isNonEmptyString(s) {
+        return isString(s) && s !== "";
+    }
+    function validateCookieName(name) {
+        if (!isNonEmptyString(name)) {
+            throw new TypeError("Cookie name must be a non-empty string");
+        }
+    }
+    function same(s) {
+        return s;
+    }

+ 1283 - 0
2018专题/我的冒险世界/src/modules/dialog/dialog.js

@@ -0,0 +1,1283 @@
+!(function () {
+
+    var __modules__ = {};
+
+    function _require(id) {
+        var mod = __modules__[id];
+        var exports = 'exports';
+
+        if (typeof mod === 'object') {
+            return mod;
+        }
+
+        if (!mod[exports]) {
+            mod[exports] = {};
+            mod[exports] = mod.call(mod[exports], _require, mod[exports], mod) || mod[exports];
+        }
+
+        return mod[exports];
+    }
+
+    function _define(path, fn) {
+        __modules__[path] = fn;
+    }
+
+
+
+    _define("jquery", function () {
+        return $;
+    });
+
+
+    /*!
+     * PopupJS
+     * Date: 2014-11-09
+     * https://github.com/aui/popupjs
+     * (c) 2009-2014 TangBin, http://www.planeArt.cn
+     *
+     * This is licensed under the GNU LGPL, version 2.1 or later.
+     * For details, see: http://www.gnu.org/licenses/lgpl-2.1.html
+     */
+
+    _define("popup", function (_require) {
+
+        var $ = _require("jquery");
+
+        var _count = 0;
+        var _isIE6 = !('minWidth' in $('html')[0].style);
+        var _isFixed = !_isIE6;
+
+
+        function Popup() {
+
+            this.destroyed = false;
+
+
+            this.__popup = $('<div />')
+                /*使用 <dialog /> 元素可能导致 z-index 永远置顶的问题(chrome)*/
+                .css({
+                    display: 'none',
+                    position: 'absolute',
+                    /*
+                    left: 0,
+                    top: 0,
+                    bottom: 'auto',
+                    right: 'auto',
+                    margin: 0,
+                    padding: 0,
+                    border: '0 none',
+                    background: 'transparent'
+                    */
+                    outline: 0
+                })
+                .attr('tabindex', '-1')
+                .html(this.innerHTML)
+                .appendTo('body');
+
+
+            this.__backdrop = this.__mask = $('<div />')
+                .css({
+                    opacity: .7,
+                    background: '#000'
+                });
+
+
+            // 使用 HTMLElement 作为外部接口使用,而不是 jquery 对象
+            // 统一的接口利于未来 Popup 移植到其他 DOM 库中
+            this.node = this.__popup[0];
+            this.backdrop = this.__backdrop[0];
+
+            _count++;
+        }
+
+
+        $.extend(Popup.prototype, {
+
+            /**
+             * 初始化完毕事件,在 show()、showModal() 执行
+             * @name Popup.prototype.onshow
+             * @event
+             */
+
+            /**
+             * 关闭事件,在 close() 执行
+             * @name Popup.prototype.onclose
+             * @event
+             */
+
+            /**
+             * 销毁前事件,在 remove() 前执行
+             * @name Popup.prototype.onbeforeremove
+             * @event
+             */
+
+            /**
+             * 销毁事件,在 remove() 执行
+             * @name Popup.prototype.onremove
+             * @event
+             */
+
+            /**
+             * 重置事件,在 reset() 执行
+             * @name Popup.prototype.onreset
+             * @event
+             */
+
+            /**
+             * 焦点事件,在 foucs() 执行
+             * @name Popup.prototype.onfocus
+             * @event
+             */
+
+            /**
+             * 失焦事件,在 blur() 执行
+             * @name Popup.prototype.onblur
+             * @event
+             */
+
+            /** 浮层 DOM 素节点[*] */
+            node: null,
+
+            /** 遮罩 DOM 节点[*] */
+            backdrop: null,
+
+            /** 是否开启固定定位[*] */
+            fixed: false,
+
+            /** 判断对话框是否删除[*] */
+            destroyed: true,
+
+            /** 判断对话框是否显示 */
+            open: false,
+
+            /** close 返回值 */
+            returnValue: '',
+
+            /** 是否自动聚焦 */
+            autofocus: true,
+
+            /** 对齐方式[*] */
+            align: 'bottom left',
+
+            /** 内部的 HTML 字符串 */
+            innerHTML: '',
+
+            /** CSS 类名 */
+            className: 'ui-popup',
+
+            /**
+             * 显示浮层
+             * @param   {HTMLElement, Event}  指定位置(可选)
+             */
+            show: function (anchor) {
+
+                if (this.destroyed) {
+                    return this;
+                }
+
+                var that = this;
+                var popup = this.__popup;
+                var backdrop = this.__backdrop;
+
+                this.__activeElement = this.__getActive();
+
+                this.open = true;
+                this.follow = anchor || this.follow;
+
+
+                // 初始化 show 方法
+                if (!this.__ready) {
+
+                    popup
+                        .addClass(this.className)
+                        .attr('role', this.modal ? 'alertdialog' : 'dialog')
+                        .css('position', this.fixed ? 'fixed' : 'absolute');
+
+                    if (!_isIE6) {
+                        $(window).on('resize', $.proxy(this.reset, this));
+                    }
+
+                    // 模态浮层的遮罩
+                    if (this.modal) {
+                        var backdropCss = {
+                            position: 'fixed',
+                            left: 0,
+                            top: 0,
+                            width: '100%',
+                            height: '100%',
+                            overflow: 'hidden',
+                            userSelect: 'none',
+                            zIndex: this.zIndex || Popup.zIndex
+                        };
+
+
+                        popup.addClass(this.className + '-modal');
+
+
+                        if (!_isFixed) {
+                            $.extend(backdropCss, {
+                                position: 'absolute',
+                                width: $(window).width() + 'px',
+                                height: $(document).height() + 'px'
+                            });
+                        }
+
+
+                        backdrop
+                            .css(backdropCss)
+                            .attr({ tabindex: '0' })
+                            .on('focus', $.proxy(this.focus, this));
+
+                        // 锁定 tab 的焦点操作
+                        this.__mask = backdrop
+                            .clone(true)
+                            .attr('style', '')
+                            .insertAfter(popup);
+
+                        backdrop
+                            .addClass(this.className + '-backdrop')
+                            .insertBefore(popup);
+
+                        this.__ready = true;
+                    }
+
+
+                    if (!popup.html()) {
+                        popup.html(this.innerHTML);
+                    }
+                }
+
+
+                popup
+                    .addClass(this.className + '-show')
+                    .show();
+
+                backdrop.show();
+
+
+                this.reset().focus();
+                this.__dispatchEvent('show');
+
+                return this;
+            },
+
+            /**
+             * 隐藏浮层,但不销毁
+             */
+            hide: function (params) {
+                this.__popup.hide()
+                this.__backdrop.hide()
+            },
+
+            /** 显示模态浮层。参数参见 show() */
+            showModal: function () {
+                this.modal = true;
+                return this.show.apply(this, arguments);
+            },
+
+
+            /** 关闭浮层 */
+            close: function (result) {
+
+                if (!this.destroyed && this.open) {
+
+                    if (result !== undefined) {
+                        this.returnValue = result;
+                    }
+
+                    this.__popup.hide().removeClass(this.className + '-show');
+                    this.__backdrop.hide();
+                    this.open = false;
+                    this.blur();// 恢复焦点,照顾键盘操作的用户
+                    this.__dispatchEvent('close');
+                }
+
+                return this;
+            },
+
+
+            /** 销毁浮层 */
+            remove: function () {
+
+                if (this.destroyed) {
+                    return this;
+                }
+
+                this.__dispatchEvent('beforeremove');
+
+                if (Popup.current === this) {
+                    Popup.current = null;
+                }
+
+
+                // 从 DOM 中移除节点
+                this.__popup.remove();
+                this.__backdrop.remove();
+                this.__mask.remove();
+
+
+                if (!_isIE6) {
+                    $(window).off('resize', this.reset);
+                }
+
+
+                this.__dispatchEvent('remove');
+
+                for (var i in this) {
+                    delete this[i];
+                }
+
+                return this;
+            },
+
+
+            /** 重置位置 */
+            reset: function () {
+
+                var elem = this.follow;
+
+                if (elem) {
+                    this.__follow(elem);
+                } else {
+                    this.__center();
+                }
+
+                this.__dispatchEvent('reset');
+
+                return this;
+            },
+
+
+            /** 让浮层获取焦点 */
+            focus: function () {
+
+                var node = this.node;
+                var popup = this.__popup;
+                var current = Popup.current;
+                var index = this.zIndex = Popup.zIndex++;
+
+                if (current && current !== this) {
+                    current.blur(false);
+                }
+
+                // 检查焦点是否在浮层里面
+                if (!$.contains(node, this.__getActive())) {
+                    var autofocus = popup.find('[autofocus]')[0];
+
+                    if (!this._autofocus && autofocus) {
+                        this._autofocus = true;
+                    } else {
+                        autofocus = node;
+                    }
+
+                    this.__focus(autofocus);
+                }
+
+                // 设置叠加高度
+                popup.css('zIndex', index);
+                //this.__backdrop.css('zIndex', index);
+
+                Popup.current = this;
+                popup.addClass(this.className + '-focus');
+
+                this.__dispatchEvent('focus');
+
+                return this;
+            },
+
+
+            /** 让浮层失去焦点。将焦点退还给之前的元素,照顾视力障碍用户 */
+            blur: function () {
+
+                var activeElement = this.__activeElement;
+                var isBlur = arguments[0];
+
+
+                if (isBlur !== false) {
+                    this.__focus(activeElement);
+                }
+
+                this._autofocus = false;
+                this.__popup.removeClass(this.className + '-focus');
+                this.__dispatchEvent('blur');
+
+                return this;
+            },
+
+
+            /**
+             * 添加事件
+             * @param   {String}    事件类型
+             * @param   {Function}  监听函数
+             */
+            addEventListener: function (type, callback) {
+                this.__getEventListener(type).push(callback);
+                return this;
+            },
+
+
+            /**
+             * 删除事件
+             * @param   {String}    事件类型
+             * @param   {Function}  监听函数
+             */
+            removeEventListener: function (type, callback) {
+                var listeners = this.__getEventListener(type);
+                for (var i = 0; i < listeners.length; i++) {
+                    if (callback === listeners[i]) {
+                        listeners.splice(i--, 1);
+                    }
+                }
+                return this;
+            },
+
+
+            // 获取事件缓存
+            __getEventListener: function (type) {
+                var listener = this.__listener;
+                if (!listener) {
+                    listener = this.__listener = {};
+                }
+                if (!listener[type]) {
+                    listener[type] = [];
+                }
+                return listener[type];
+            },
+
+
+            // 派发事件
+            __dispatchEvent: function (type) {
+                var listeners = this.__getEventListener(type);
+
+                if (this['on' + type]) {
+                    this['on' + type]();
+                }
+
+                for (var i = 0; i < listeners.length; i++) {
+                    listeners[i].call(this);
+                }
+            },
+
+
+            // 对元素安全聚焦
+            __focus: function (elem) {
+                // 防止 iframe 跨域无权限报错
+                // 防止 IE 不可见元素报错
+                try {
+                    // ie11 bug: iframe 页面点击会跳到顶部
+                    if (this.autofocus && !/^iframe$/i.test(elem.nodeName)) {
+                        elem.focus();
+                    }
+                } catch (e) { }
+            },
+
+
+            // 获取当前焦点的元素
+            __getActive: function () {
+                try {// try: ie8~9, iframe #26
+                    var activeElement = document.activeElement;
+                    var contentDocument = activeElement.contentDocument;
+                    var elem = contentDocument && contentDocument.activeElement || activeElement;
+                    return elem;
+                } catch (e) { }
+            },
+
+
+            // 居中浮层
+            __center: function () {
+
+                var popup = this.__popup;
+                var $window = $(window);
+                var $document = $(document);
+                var fixed = this.fixed;
+                var dl = fixed ? 0 : $document.scrollLeft();
+                var dt = fixed ? 0 : $document.scrollTop();
+                var ww = $window.width();
+                var wh = $window.height();
+                var ow = popup.width();
+                var oh = popup.height();
+                var left = (ww - ow) / 2 + dl;
+                var top = (wh - oh) * 382 / 1000 + dt;// 黄金比例
+                var style = popup[0].style;
+
+
+                style.left = Math.max(parseInt(left), dl) + 'px';
+                style.top = Math.max(parseInt(top), dt) + 'px';
+            },
+
+
+            // 指定位置 @param    {HTMLElement, Event}  anchor
+            __follow: function (anchor) {
+
+                var $elem = anchor.parentNode && $(anchor);
+                var popup = this.__popup;
+
+
+                if (this.__followSkin) {
+                    popup.removeClass(this.__followSkin);
+                }
+
+
+                // 隐藏元素不可用
+                if ($elem) {
+                    var o = $elem.offset();
+                    if (o.left * o.top < 0) {
+                        return this.__center();
+                    }
+                }
+
+                var that = this;
+                var fixed = this.fixed;
+
+                var $window = $(window);
+                var $document = $(document);
+                var winWidth = $window.width();
+                var winHeight = $window.height();
+                var docLeft = $document.scrollLeft();
+                var docTop = $document.scrollTop();
+
+
+                var popupWidth = popup.width();
+                var popupHeight = popup.height();
+                var width = $elem ? $elem.outerWidth() : 0;
+                var height = $elem ? $elem.outerHeight() : 0;
+                var offset = this.__offset(anchor);
+                var x = offset.left;
+                var y = offset.top;
+                var left = fixed ? x - docLeft : x;
+                var top = fixed ? y - docTop : y;
+
+
+                var minLeft = fixed ? 0 : docLeft;
+                var minTop = fixed ? 0 : docTop;
+                var maxLeft = minLeft + winWidth - popupWidth;
+                var maxTop = minTop + winHeight - popupHeight;
+
+
+                var css = {};
+                var align = this.align.split(' ');
+                var className = this.className + '-';
+                var reverse = { top: 'bottom', bottom: 'top', left: 'right', right: 'left' };
+                var name = { top: 'top', bottom: 'top', left: 'left', right: 'left' };
+
+
+                var temp = [{
+                    top: top - popupHeight,
+                    bottom: top + height,
+                    left: left - popupWidth,
+                    right: left + width
+                }, {
+                    top: top,
+                    bottom: top - popupHeight + height,
+                    left: left,
+                    right: left - popupWidth + width
+                }];
+
+
+                var center = {
+                    left: left + width / 2 - popupWidth / 2,
+                    top: top + height / 2 - popupHeight / 2
+                };
+
+
+                var range = {
+                    left: [minLeft, maxLeft],
+                    top: [minTop, maxTop]
+                };
+
+
+                // 超出可视区域重新适应位置
+                $.each(align, function (i, val) {
+
+                    // 超出右或下边界:使用左或者上边对齐
+                    if (temp[i][val] > range[name[val]][1]) {
+                        val = align[i] = reverse[val];
+                    }
+
+                    // 超出左或右边界:使用右或者下边对齐
+                    if (temp[i][val] < range[name[val]][0]) {
+                        align[i] = reverse[val];
+                    }
+
+                });
+
+
+                // 一个参数的情况
+                if (!align[1]) {
+                    name[align[1]] = name[align[0]] === 'left' ? 'top' : 'left';
+                    temp[1][align[1]] = center[name[align[1]]];
+                }
+
+
+                //添加follow的css, 为了给css使用
+                className += align.join('-') + ' ' + this.className + '-follow';
+
+                that.__followSkin = className;
+
+
+                if ($elem) {
+                    popup.addClass(className);
+                }
+
+
+                css[name[align[0]]] = parseInt(temp[0][align[0]]);
+                css[name[align[1]]] = parseInt(temp[1][align[1]]);
+                popup.css(css);
+
+            },
+
+
+            // 获取元素相对于页面的位置(包括iframe内的元素)
+            // 暂时不支持两层以上的 iframe 套嵌
+            __offset: function (anchor) {
+
+                var isNode = anchor.parentNode;
+                var offset = isNode ? $(anchor).offset() : {
+                    left: anchor.pageX,
+                    top: anchor.pageY
+                };
+
+
+                anchor = isNode ? anchor : anchor.target;
+                var ownerDocument = anchor.ownerDocument;
+                var defaultView = ownerDocument.defaultView || ownerDocument.parentWindow;
+
+                if (defaultView == window) {// IE <= 8 只能使用两个等于号
+                    return offset;
+                }
+
+                // {Element: Ifarme}
+                var frameElement = defaultView.frameElement;
+                var $ownerDocument = $(ownerDocument);
+                var docLeft = $ownerDocument.scrollLeft();
+                var docTop = $ownerDocument.scrollTop();
+                var frameOffset = $(frameElement).offset();
+                var frameLeft = frameOffset.left;
+                var frameTop = frameOffset.top;
+
+                return {
+                    left: offset.left + frameLeft - docLeft,
+                    top: offset.top + frameTop - docTop
+                };
+            }
+
+        });
+
+
+        /** 当前叠加高度 */
+        Popup.zIndex = 1024;
+
+
+        /** 顶层浮层的实例 */
+        Popup.current = null;
+
+
+        return Popup;
+
+    });
+
+    // artDialog - 默认配置
+    _define("dialog-config", {
+
+        /* -----已注释的配置继承自 popup.js,仍可以再这里重新定义它----- */
+
+        // 对齐方式
+        //align: 'bottom left',
+
+        // 是否固定定位
+        //fixed: false,
+
+        // 对话框叠加高度值(重要:此值不能超过浏览器最大限制)
+        //zIndex: 1024,
+
+        // 设置遮罩背景颜色
+        backdropBackground: '#000',
+
+        // 设置遮罩透明度
+        backdropOpacity: 0.7,
+
+        // 消息内容
+        content: '<span class="ui-dialog-loading">Loading..</span>',
+
+        // 标题
+        title: '',
+
+        // 对话框状态栏区域 HTML 代码
+        statusbar: '',
+
+        // 自定义按钮
+        button: null,
+
+        // 确定按钮回调函数
+        ok: null,
+
+        // 取消按钮回调函数
+        cancel: null,
+
+        // 确定按钮文本
+        okValue: 'ok',
+
+        // 取消按钮文本
+        cancelValue: 'cancel',
+
+        cancelDisplay: true,
+
+        // 内容宽度
+        width: '',
+
+        // 内容高度
+        height: '',
+
+        // 内容与边界填充距离
+        padding: '',
+
+        // 对话框自定义 className
+        skin: '',
+
+        // 是否支持快捷关闭(点击遮罩层自动关闭)
+        quickClose: false,
+
+        // css 文件路径,留空则不会使用 js 自动加载样式
+        // 注意:css 只允许加载一个
+        cssUri: '../css/ui-dialog.css',
+
+        // 模板(使用 table 解决 IE7 宽度自适应的 BUG)
+        // js 使用 i="***" 属性识别结构,其余的均可自定义
+        innerHTML:
+        '<div i="dialog" class="ui-dialog">'
+        + '<div class="ui-dialog-arrow-a"></div>'
+        + '<div class="ui-dialog-arrow-b"></div>'
+        + '<table class="ui-dialog-grid">'
+        + '<tr>'
+        + '<td i="header" class="ui-dialog-header">'
+        + '<button i="close" class="ui-dialog-close">&#215;</button>'
+        + '<div i="title" class="ui-dialog-title"></div>'
+        + '</td>'
+        + '</tr>'
+        + '<tr>'
+        + '<td i="body" class="ui-dialog-body">'
+        + '<div i="content" class="ui-dialog-content"></div>'
+        + '</td>'
+        + '</tr>'
+        + '<tr>'
+        + '<td i="footer" class="ui-dialog-footer">'
+        + '<div i="statusbar" class="ui-dialog-statusbar"></div>'
+        + '<div i="button" class="ui-dialog-button"></div>'
+        + '</td>'
+        + '</tr>'
+        + '</table>'
+        + '</div>'
+
+    });
+
+    /*!
+     * artDialog
+     * Date: 2014-11-09
+     * https://github.com/aui/artDialog
+     * (c) 2009-2014 TangBin, http://www.planeArt.cn
+     *
+     * This is licensed under the GNU LGPL, version 2.1 or later.
+     * For details, see: http://www.gnu.org/licenses/lgpl-2.1.html
+     */
+    _define("dialog", function (_require) {
+
+        var $ = _require("jquery");
+        var Popup = _require("popup");
+        var defaults = _require("dialog-config");
+        var css = defaults.cssUri;
+
+
+        // css loader: RequireJS & SeaJS
+        if (css) {
+            var fn = _require[_require.toUrl ? 'toUrl' : 'resolve'];
+            if (fn) {
+                css = fn(css);
+                css = '<link rel="stylesheet" href="' + css + '" />';
+                if ($('base')[0]) {
+                    $('base').before(css);
+                } else {
+                    $('head').append(css);
+                }
+            }
+        }
+
+
+        var _count = 0;
+        var _expando = new Date() - 0; // Date.now()
+        var _isIE6 = !('minWidth' in $('html')[0].style);
+        var _isMobile = 'createTouch' in document && !('onmousemove' in document)
+            || /(iPhone|iPad|iPod)/i.test(navigator.userAgent);
+        var _isFixed = !_isIE6 && !_isMobile;
+
+
+        var artDialog = function (options, ok, cancel) {
+
+            var originalOptions = options = options || {};
+
+
+            if (typeof options === 'string' || options.nodeType === 1) {
+
+                options = { content: options, fixed: !_isMobile };
+            }
+
+
+            options = $.extend(true, {}, artDialog.defaults, options);
+            options.original = originalOptions;
+
+            var id = options.id = options.id || _expando + _count;
+            var api = artDialog.get(id);
+
+
+            // 如果存在同名的对话框对象,则直接返回
+            if (api) {
+                return api.focus();
+            }
+
+
+            // 目前主流移动设备对fixed支持不好,禁用此特性
+            if (!_isFixed) {
+                options.fixed = false;
+            }
+
+
+            // 快捷关闭支持:点击对话框外快速关闭对话框
+            if (options.quickClose) {
+                options.modal = true;
+                options.backdropOpacity = 0;
+            }
+
+
+            // 按钮组
+            if (!$.isArray(options.button)) {
+                options.button = [];
+            }
+
+
+            // 取消按钮
+            if (cancel !== undefined) {
+                options.cancel = cancel;
+            }
+
+            if (options.cancel) {
+                options.button.push({
+                    id: 'cancel',
+                    value: options.cancelValue,
+                    callback: options.cancel,
+                    display: options.cancelDisplay
+                });
+            }
+
+
+            // 确定按钮
+            if (ok !== undefined) {
+                options.ok = ok;
+            }
+
+            if (options.ok) {
+                options.button.push({
+                    id: 'ok',
+                    value: options.okValue,
+                    callback: options.ok,
+                    autofocus: true
+                });
+            }
+
+
+            return artDialog.list[id] = new artDialog.create(options);
+        };
+
+        var popup = function () { };
+        popup.prototype = Popup.prototype;
+        var prototype = artDialog.prototype = new popup();
+
+        artDialog.create = function (options) {
+            var that = this;
+
+            $.extend(this, new Popup());
+
+            var originalOptions = options.original;
+            var $popup = $(this.node).html(options.innerHTML);
+            var $backdrop = $(this.backdrop);
+
+            this.options = options;
+            this._popup = $popup;
+
+
+            $.each(options, function (name, value) {
+                if (typeof that[name] === 'function') {
+                    that[name](value);
+                } else {
+                    that[name] = value;
+                }
+            });
+
+
+            // 更新 zIndex 全局配置
+            if (options.zIndex) {
+                Popup.zIndex = options.zIndex;
+            }
+
+
+            // 设置 ARIA 信息
+            $popup.attr({
+                'aria-labelledby': this._$('title')
+                    .attr('id', 'title:' + this.id).attr('id'),
+                'aria-describedby': this._$('content')
+                    .attr('id', 'content:' + this.id).attr('id')
+            });
+
+
+            // 关闭按钮
+            this._$('close')
+                .css('display', this.cancel === false ? 'none' : '')
+                .attr('title', this.cancelValue)
+                .on('click', function (event) {
+                    that._trigger('cancel');
+                    event.preventDefault();
+                });
+
+
+            // 添加视觉参数
+            this._$('dialog').addClass(this.skin);
+            this._$('body').css('padding', this.padding);
+
+
+            // 点击任意空白处关闭对话框
+            if (options.quickClose) {
+                $backdrop
+                    .on(
+                    'onmousedown' in document ? 'mousedown' : 'click',
+                    function () {
+                        that._trigger('cancel');
+                        return false;// 阻止抢夺焦点
+                    });
+            }
+
+
+            // 遮罩设置
+            this.addEventListener('show', function () {
+                $backdrop.css({
+                    opacity: 0,
+                    background: options.backdropBackground
+                }).animate(
+                    { opacity: options.backdropOpacity }
+                    , 150);
+            });
+
+
+            // ESC 快捷键关闭对话框
+            this._esc = function (event) {
+                var target = event.target;
+                var nodeName = target.nodeName;
+                var rinput = /^input|textarea$/i;
+                var isTop = Popup.current === that;
+                var keyCode = event.keyCode;
+
+                // 避免输入状态中 ESC 误操作关闭
+                if (!isTop || rinput.test(nodeName) && target.type !== 'button') {
+                    return;
+                }
+
+                if (keyCode === 27) {
+                    that._trigger('cancel');
+                }
+            };
+
+            // 点击遮罩层关闭弹窗
+            $(this.__mask).on("click", function () {
+                that._trigger('cancel');
+            })
+
+            $(document).on('keydown', this._esc);
+            this.addEventListener('remove', function () {
+                $(document).off('keydown', this._esc);
+                delete artDialog.list[this.id];
+            });
+
+
+            _count++;
+
+            artDialog.oncreate(this);
+
+            return this;
+        };
+
+
+        artDialog.create.prototype = prototype;
+
+
+
+        $.extend(prototype, {
+
+            /**
+             * 显示对话框
+             * @name artDialog.prototype.show
+             * @param   {HTMLElement Object, Event Object}  指定位置(可选)
+             */
+
+            /**
+             * 显示对话框(模态)
+             * @name artDialog.prototype.showModal
+             * @param   {HTMLElement Object, Event Object}  指定位置(可选)
+             */
+
+            /**
+             * 关闭对话框
+             * @name artDialog.prototype.close
+             * @param   {String, Number}    返回值,可被 onclose 事件收取(可选)
+             */
+
+            /**
+             * 销毁对话框
+             * @name artDialog.prototype.remove
+             */
+
+            /**
+             * 重置对话框位置
+             * @name artDialog.prototype.reset
+             */
+
+            /**
+             * 让对话框聚焦(同时置顶)
+             * @name artDialog.prototype.focus
+             */
+
+            /**
+             * 让对话框失焦(同时置顶)
+             * @name artDialog.prototype.blur
+             */
+
+            /**
+             * 添加事件
+             * @param   {String}    事件类型
+             * @param   {Function}  监听函数
+             * @name artDialog.prototype.addEventListener
+             */
+
+            /**
+             * 删除事件
+             * @param   {String}    事件类型
+             * @param   {Function}  监听函数
+             * @name artDialog.prototype.removeEventListener
+             */
+
+            /**
+             * 对话框显示事件,在 show()、showModal() 执行
+             * @name artDialog.prototype.onshow
+             * @event
+             */
+
+            /**
+             * 关闭事件,在 close() 执行
+             * @name artDialog.prototype.onclose
+             * @event
+             */
+
+            /**
+             * 销毁前事件,在 remove() 前执行
+             * @name artDialog.prototype.onbeforeremove
+             * @event
+             */
+
+            /**
+             * 销毁事件,在 remove() 执行
+             * @name artDialog.prototype.onremove
+             * @event
+             */
+
+            /**
+             * 重置事件,在 reset() 执行
+             * @name artDialog.prototype.onreset
+             * @event
+             */
+
+            /**
+             * 焦点事件,在 foucs() 执行
+             * @name artDialog.prototype.onfocus
+             * @event
+             */
+
+            /**
+             * 失焦事件,在 blur() 执行
+             * @name artDialog.prototype.onblur
+             * @event
+             */
+
+
+            /**
+             * 设置内容
+             * @param    {String, HTMLElement}   内容
+             */
+            content: function (html) {
+
+                var $content = this._$('content');
+
+                // HTMLElement
+                if (typeof html === 'object') {
+                    html = $(html);
+                    $content.empty('').append(html.show());
+                    this.addEventListener('beforeremove', function () {
+                        $('body').append(html.hide());
+                    });
+                    // String
+                } else {
+                    $content.html(html);
+                }
+
+                return this.reset();
+            },
+
+
+            /**
+             * 设置标题
+             * @param    {String}   标题内容
+             */
+            title: function (text) {
+                this._$('title').text(text);
+                this._$('header')[text ? 'show' : 'hide']();
+                return this;
+            },
+
+
+            /** 设置宽度 */
+            width: function (value) {
+                this._$('content').css('width', value);
+                return this.reset();
+            },
+
+
+            /** 设置高度 */
+            height: function (value) {
+                this._$('content').css('height', value);
+                return this.reset();
+            },
+
+
+            /**
+             * 设置按钮组
+             * @param   {Array, String}
+             * Options: value, callback, autofocus, disabled 
+             */
+            button: function (args) {
+                args = args || [];
+                var that = this;
+                var html = '';
+                var number = 0;
+                this.callbacks = {};
+
+
+                if (typeof args === 'string') {
+                    html = args;
+                    number++;
+                } else {
+                    $.each(args, function (i, val) {
+
+                        var id = val.id = val.id || val.value;
+                        var style = '';
+                        that.callbacks[id] = val.callback;
+
+
+                        if (val.display === false) {
+                            style = ' style="display:none"';
+                        } else {
+                            number++;
+                        }
+
+                        html +=
+                            '<button'
+                            + ' type="button"'
+                            + ' i-id="' + id + '"'
+                            + style
+                            + (val.disabled ? ' disabled' : '')
+                            + (val.autofocus ? ' autofocus class="ui-dialog-autofocus"' : '')
+                            + '>'
+                            + val.value
+                            + '</button>';
+
+                        that._$('button')
+                            .on('click', '[i-id=' + id + ']', function (event) {
+                                var $this = $(this);
+                                if (!$this.attr('disabled')) {// IE BUG
+                                    that._trigger(id);
+                                }
+
+                                event.preventDefault();
+                            });
+
+                    });
+                }
+
+                this._$('button').html(html);
+                this._$('footer')[number ? 'show' : 'hide']();
+
+                return this;
+            },
+
+
+            statusbar: function (html) {
+                this._$('statusbar')
+                    .html(html)[html ? 'show' : 'hide']();
+
+                return this;
+            },
+
+
+            _$: function (i) {
+                return this._popup.find('[i=' + i + ']');
+            },
+
+
+            // 触发按钮回调函数
+            _trigger: function (id) {
+                var fn = this.callbacks[id];
+
+                return typeof fn !== 'function' || fn.call(this) !== false ?
+                    this.close().remove() : this;
+            }
+
+        });
+
+
+
+        artDialog.oncreate = $.noop;
+
+
+
+        /** 获取最顶层的对话框API */
+        artDialog.getCurrent = function () {
+            return Popup.current;
+        };
+
+
+
+        /**
+         * 根据 ID 获取某对话框 API
+         * @param    {String}    对话框 ID
+         * @return   {Object}    对话框 API (实例)
+         */
+        artDialog.get = function (id) {
+            return id === undefined
+                ? artDialog.list
+                : artDialog.list[id];
+        };
+
+        artDialog.list = {};
+
+
+
+        /**
+         * 默认配置
+         */
+        artDialog.defaults = defaults;
+
+
+
+        return artDialog;
+
+    });
+
+
+
+    module.exports = _require("dialog");
+
+})();

+ 176 - 0
2018专题/我的冒险世界/src/modules/page/details.js

@@ -0,0 +1,176 @@
+var dialog = require('dialog');
+var id = getParam('id')
+
+var api = 'http://sy.duowan.cn'
+
+var env = getParam('env')
+if(env == 'dev') {
+    api = 'http://test.sy.duowan.cn'
+}else if(env == 'new') {
+    api = 'http://new.sy.duowan.com'
+}else {
+    api = 'http://sy.duowan.cn'
+}
+console.log(api)
+
+$(function(){
+    //获取数据渲染
+    render();
+
+    //投票支持
+    $('.g-support').on('click',function(){
+        support(id);
+    })
+})
+
+
+
+
+
+
+//渲染页面
+function render () {
+     request('GET',api+'/mxworld/article?_from=ajax&article_id='+id,'').then(function(result){
+        var data = result.data;
+        var imgUrl = data.img_url;
+        var vote = data.vote_num;
+        window.comment3Uniqid = data.uuid;
+        $(".works").attr('src',imgUrl);
+        $('.vote-num').text(vote);
+        $.getScript('http://pub.dwstatic.com/common/js/articleComment.js?')
+    })
+   
+}
+
+
+//请求
+function request (type,url,data) {
+    return new Promise((resolve,reject)=>{
+        var xhr = new XMLHttpRequest()
+        xhr.withCredentials = true
+        xhr.open(type,url,true);  
+        var fd = data || "";
+        xhr.send(fd);
+        xhr.onreadystatechange = () => {
+            if( xhr.readyState == 4){
+                if (xhr.status == 200){
+                    var result = JSON.parse(xhr.responseText);
+                    if (processReject(result)){
+                        resolve(result)
+                    }else{
+                        reject(result,xhr.status)
+                    }
+                }else{
+                    reject(xhr.responseText,xhr.status)
+                }
+            }
+        }
+    })
+}
+
+
+
+//支持
+function support (id) {
+    $.ajax({
+        url:api+"/mxworld/vote?_from=ajax&article_id="+id,
+        dataType:"jsonp",
+        success:function(result){
+            if (checkLogin(result)){
+                dialog({
+                    title:"   ",
+                    content:"投票成功",
+                    skin:"popup-ui"
+                }).showModal();
+                var $vote = $('.vote-num')
+                var voteNum = $vote.text()
+                $vote.text(parseInt(voteNum)+1);
+            } else{
+                dialog({
+                    title:"   ",
+                    content:result.msg,
+                    skin:"popup-ui"
+                }).showModal();
+            }
+        },
+        error:function(x,e,t) {
+            console.log(x)
+            console.log(e)
+            console.log(t)
+        }
+    })
+}
+
+//处理请求异常
+function processReject (result) {
+    if(result.code != 0 ){
+        dialog({
+            title:"  ",
+            content:result.msg,
+            skin:"popup-ui"
+        }).showModal()
+        return false
+    }
+    
+    return true
+}
+
+//是否登录
+function checkLogin (result) {
+    if(result.code == -7){
+        dialog({
+            title:"   ",
+            content:"你未登录qq<br/>稍后为你跳转登录",
+            skin:"popup-ui"
+        }).showModal();
+        var url = decodeURIComponent(result.data);
+        var str = url.match(/\b(http.*)?(\?.*)?(\&.*)\b/)
+        var redirectUrl = str[1] + '?redirect_url=' + location.href + str[3]
+        $.ajax({
+            url:redirectUrl,
+            dataType:'jsonp',
+            jsonp:"callback",
+            success:function(result){
+                setTimeout(function(){
+                    location.href = result.data.oauth_url
+                },3000)
+            }
+        })
+        return false
+    }
+    if(result.code != 0 ){
+        console.log(result.msg);
+        return false
+    }
+    return true
+}
+
+
+function getParam(name) {
+        //先获取#后面的参数
+        var str = document.location.hash.substr(2);
+        var value = getParam2(name, str);
+        if (value == null) {
+            str = document.location.search.substr(1);
+            value = getParam2(name, str);
+        }
+
+        return value;
+    };
+
+    function getParam2(name, str) {
+        //获取参数name的值
+        var reg = new RegExp("(^|!|&|\\?)" + name + "=([^&]*)(&|$)");
+
+        //再获取?后面的参数
+        r = str.match(reg);
+        if (r != null) {
+            try {
+                return decodeURIComponent(r[2]);
+            } catch (e) {
+                // console.log(e + "r[2]:" + r[2]);
+                return null;
+            }
+        }
+        return null;
+    }

+ 0 - 0
2018专题/我的冒险世界/src/modules/page/index.js


+ 266 - 0
2018专题/我的冒险世界/src/modules/page/list.js

@@ -0,0 +1,266 @@
+var worksListTpl = __inline('../../tpl/works-list.tmpl');   //列表模板
+var dialog = require('dialog');
+
+var api = 'http://sy.duowan.cn'
+
+var env = getParam('env')
+if(env == 'dev') {
+    api = 'http://test.sy.duowan.cn'
+}else if(env == 'new') {
+    api = 'http://new.sy.duowan.com'
+}else {
+    api = 'http://sy.duowan.cn'
+}
+
+//当前列表信息
+var dataType = {
+    time : {
+        selector: '#time',
+        page : 1 ,
+        type : 1
+    },
+    hot : {
+        selector : '#hot',
+        page : 1,
+        type : 2
+    }
+}
+
+var isloading = false;     //请求数据中
+   
+$(function(){
+    //初始化获取数据
+    $('.data-wrap').eq(0).show()
+    getList(dataType.time.type , dataType.time.page , function(data){
+        renderList(data,'#time');
+        dataType.time.page++;
+    })
+
+    //绑定滚动加载数据
+    $(window).on('scroll',load)
+
+    //切换tab
+    $('.first').on('click', function () {
+        $('.load-more').show()
+        $('.list-tab').removeClass('current');
+        $(this).addClass('current');
+        var index = $('.first').index($(this));
+        $('.data-wrap').hide();
+        $('.data-wrap').eq(index).show();
+        load();
+    })
+
+    //我的作品
+    $('.mine').on('click',function(){
+        $('.list-tab').removeClass('current');
+        $('.data-wrap').hide();
+        $('#mine').show();
+        $('.mine').addClass('current');
+        getMine();
+        $('.load-more').hide()
+    })
+
+    //投票支持
+    $('.data-wrap').on('click','.g-support',function(){
+        var id = $(this).attr('data');
+        var $vote = $(this).parent('.desc-wrap').find('.vote-num')
+        support(id,$vote);
+        
+    })
+
+
+})
+
+
+
+//滚动获取数据
+function load () {
+    if (isloading) {
+        return;
+    }
+    var index = $('.first').index($('.first.current'));
+    var $win = $(window),
+        $contanier = $('.data-wrap').eq(index),
+        screenHeight = $win.height(),
+        offsetBottom = $contanier.offset().top + $contanier.height()
+    
+    if ( screenHeight + $win.scrollTop() >= offsetBottom ) {
+        
+        var type = $('.first.current').attr('type')
+        if (type) {
+            
+             getData(dataType[type])
+        }
+       
+    }
+
+
+}
+
+
+//滚动获取数据
+function getData (type) {
+    isloading = true;
+    getList(type.type , type.page , function (data) {
+        if(data.length != 0){     //有数据再渲染
+            renderList(data , type.selector);
+            if( type.type == 1){
+                dataType.time.page++
+            }
+            if( type.type == 2){
+                dataType.hot.page++
+            }
+        }
+       
+    })
+
+}
+
+
+
+/**
+ * 
+ * @param {1/2} type 数据类型  1按时间   2按人气  
+ * @param {*} page 
+ * @param {*} cb 
+ */
+function getList (type,page,cb) {
+    $.ajax({
+        url:`${api}/mxworld/piclist?pageSize=6&_from=ajax&page=${page}&order_type=${type}`,
+        dataType:'jsonp',
+        success:function (result) {
+            checkLogin(result)
+            isloading = false;
+            if( result.data.length < 6){
+                $('.load-more').hide();
+                cb(result.data)
+            }else{
+                cb(result.data)
+            }
+        },
+        error:function(x,e,t){
+            console.log(x);
+            console.log(e);
+            console.log(t);
+        }
+    })
+}
+
+
+
+//获取我的作品
+function getMine () {
+    $.ajax({
+        url: api + "/mxworld/myArticle?_from=ajax",
+        dataType:"jsonp",
+        success:function(result){
+            checkLogin(result);
+            renderList(result.data , '#mine')
+        },
+        error:function(x,e,t){
+            console.log(x)
+            console.log(e)
+            console.log(t)
+        }
+    })
+}
+
+
+//渲染列表
+function renderList (data,ele) {
+    $(ele).append(worksListTpl({data}))
+}
+
+
+//是否登录
+function checkLogin (result) {
+    if(result.code == -7){
+        console.log(result)
+        debugger;
+        dialog({
+            title:"   ",
+            content:"你未登录qq<br/>稍后为你跳转登录",
+            skin:"popup-ui"
+        }).showModal();
+        var url = decodeURIComponent(result.data);
+        var str = url.match(/\b(http.*)?(\?.*)?(\&.*)\b/)
+        var redirectUrl = str[1] + '?redirect_url=' + location.href + str[3]
+        $.ajax({
+            url:redirectUrl,
+            dataType:'jsonp',
+            jsonp:"callback",
+            success:function(result){
+                setTimeout(function(){
+                    location.href = result.data.oauth_url
+                },3000)
+            }
+        })
+        return false
+    }
+    if(result.code != 0 ){
+        console.log(result.msg);
+        return false
+    }
+    return true
+}
+
+
+//支持
+function support (id , ele) {
+    $.ajax({
+        url: api + "/mxworld/vote?_from=ajax&article_id="+id,
+        dataType:"jsonp",
+        success:function(result){
+            if (checkLogin(result)){
+                dialog({
+                    title:"   ",
+                    content:"投票成功",
+                    skin:"popup-ui"
+                }).showModal();
+                var voteNum = ele.text()
+                ele.text(parseInt(voteNum)+1);
+            } else{
+                dialog({
+                    title:"   ",
+                    content:result.msg,
+                    skin:"popup-ui"
+                }).showModal();
+            }
+        },
+        error:function(x,e,t) {
+            console.log(x)
+            console.log(e)
+            console.log(t)
+        }
+    })
+}
+
+
+function getParam(name) {
+        //先获取#后面的参数
+        var str = document.location.hash.substr(2);
+        var value = getParam2(name, str);
+        if (value == null) {
+            str = document.location.search.substr(1);
+            value = getParam2(name, str);
+        }
+
+        return value;
+    };
+
+    function getParam2(name, str) {
+        //获取参数name的值
+        var reg = new RegExp("(^|!|&|\\?)" + name + "=([^&]*)(&|$)");
+
+        //再获取?后面的参数
+        r = str.match(reg);
+        if (r != null) {
+            try {
+                return decodeURIComponent(r[2]);
+            } catch (e) {
+                // console.log(e + "r[2]:" + r[2]);
+                return null;
+            }
+        }
+        return null;
+    }

+ 196 - 0
2018专题/我的冒险世界/src/modules/page/upload.js

@@ -0,0 +1,196 @@
+var worksListTpl = __inline('../../tpl/works-list.tmpl');
+var dialog = require('dialog');
+
+var api = 'http://sy.duowan.cn'
+
+var env = getParam('env')
+if(env == 'dev') {
+    api = 'http://test.sy.duowan.cn'
+}else if(env == 'new') {
+    api = 'http://new.sy.duowan.com'
+}else {
+    api = 'http://sy.duowan.cn'
+}
+
+
+$(function(){
+    //上传图片
+    $('#uploadImg').on('change propertychange',function(){
+        var file = $(this).get(0).files[0];
+        if(!fileValidate(file)){
+            return
+        }
+        var fd = new FormData();
+        fd.append('img',file);
+        request('POST' , api + '/mxworld/upArticle?_from=ajax' , fd).then(function(data){
+            dialog({
+                title:"  ",
+                content:"上传成功",
+                skin:"popup-ui"
+            }).showModal();
+        },function(e,t){
+            console.log(e)
+            console.log(t)
+            dialog({
+                title:"  ",
+                content:"上传失败",
+                skin:"popup-ui"
+            }).showModal();
+        })
+        
+    })
+
+    //投票支持
+    $('.data-wrap').on('click','.g-support',function(){
+        var id = $(this).attr('data');
+        var $vote = $(this).parent('.desc-wrap').find('.vote-num')        
+        support(id,$vote);
+    })
+
+    //获取列表
+    getList();
+})
+
+
+
+function request (type,url,data) {
+    return new Promise((resolve,reject)=>{
+        var xhr = new XMLHttpRequest()
+        xhr.withCredentials = true
+        xhr.open(type,url,true);  
+        var fd = data || "";
+        xhr.send(fd);
+        xhr.onreadystatechange = () => {
+            if( xhr.readyState == 4){
+                if (xhr.status == 200){
+                    var result = JSON.parse(xhr.responseText);
+                    if (checkLogin(result)){
+                        resolve(result)
+                    }else{
+                        reject(result,xhr.status)
+                    }
+                }else{
+                    reject(xhr.responseText,xhr.status)
+                }
+            }
+        }
+    })
+}
+
+//获取列表
+function getList () {
+    request('GET' , api + '/mxworld/hotArticle?_from=ajax' , '').then(function(result){
+        $('.data-wrap').append(worksListTpl({data:result.data}));
+    },function(e,t){
+        console.log(e)
+        console.log(t);
+    })
+}
+
+//支持
+function support (id,ele) {
+    $.ajax({
+        url: api + "/mxworld/vote?_from=ajax&article_id="+id,
+        dataType:"jsonp",
+        success:function(result){
+            if (checkLogin(result)){
+                dialog({
+                    title:"   ",
+                    content:"投票成功",
+                    skin:"popup-ui"
+                }).showModal();
+                var voteNum = ele.text()
+                ele.text(parseInt(voteNum)+1);
+            } else{
+                dialog({
+                    title:"   ",
+                    content:result.msg,
+                    skin:"popup-ui"
+                }).showModal();
+            }
+        },
+        error:function(x,e,t) {
+            console.log(x)
+            console.log(e)
+            console.log(t)
+        }
+    })
+}
+
+
+//是否登录
+function checkLogin (result) {
+    if(result.code == -7){
+        dialog({
+            title:"   ",
+            content:"你未登录qq<br/>稍后为你跳转登录",
+            skin:"popup-ui"
+        }).showModal();
+        var url = decodeURIComponent(result.data);
+        var str = url.match(/\b(http.*)?(\?.*)?(\&.*)\b/)
+        var redirectUrl = str[1] + '?redirect_url=' + location.href + str[3]
+        $.ajax({
+            url:redirectUrl,
+            dataType:'jsonp',
+            jsonp:"callback",
+            success:function(result){
+                setTimeout(function(){
+                    location.href = result.data.oauth_url
+                },3000)
+            }
+        })
+        return false
+    }
+    if(result.code != 0 ){
+        console.log(result.msg);
+        return false
+    }
+    return true
+}
+
+
+//检验文件类型
+function fileValidate(file) {
+    var type = file.type;
+    if(/image/.test(type)){
+        return true;
+    }else{
+        dialog({
+            title:"   ",
+            content:"请上传图片类型文件",
+            skin:"popup-ui"
+        }).showModal();
+        return false;
+    }
+}
+
+
+
+function getParam(name) {
+        //先获取#后面的参数
+        var str = document.location.hash.substr(2);
+        var value = getParam2(name, str);
+        if (value == null) {
+            str = document.location.search.substr(1);
+            value = getParam2(name, str);
+        }
+
+        return value;
+    };
+
+    function getParam2(name, str) {
+        //获取参数name的值
+        var reg = new RegExp("(^|!|&|\\?)" + name + "=([^&]*)(&|$)");
+
+        //再获取?后面的参数
+        r = str.match(reg);
+        if (r != null) {
+            try {
+                return decodeURIComponent(r[2]);
+            } catch (e) {
+                // console.log(e + "r[2]:" + r[2]);
+                return null;
+            }
+        }
+        return null;
+    }

+ 90 - 0
2018专题/我的冒险世界/src/modules/sealoader/sealoader.js

@@ -0,0 +1,90 @@
+var jqueryDefined = false;
+function ready(callback) {
+	var jQuery = window.jQuery;
+	if (!jqueryDefined && jQuery) {
+		jqueryDefined = true;
+		var factory = function() {
+			return jQuery;
+		};
+		seajs.define('jquery', factory);
+		seajs.define('$', factory);
+		seajs.define('$-debug', factory);
+		if (jQuery.browser) {
+			seajs.define('gallery/jquery-plugin/jquery-migrate', factory);
+		}
+	}
+
+	if (callback) {
+		callback(seajs);
+	}
+}
+
+if (window.seajs) {
+	module.exports = ready;
+} else {
+	var loadScript = (function() {
+		var READY_STATE_RE = /loaded|complete/;
+
+		var head = document.getElementsByTagName("head")[0] || document.documentElement, baseElement = head.getElementsByTagName("base")[0];
+
+		return function(url, callback, id) {
+			var script = document.createElement("script");
+
+			function onload() {
+				// Ensure only run once and handle memory leak in IE
+				script.onload = script.onerror = script.onreadystatechange = null;
+
+				// Remove the script to reduce memory leak
+				head.removeChild(script);
+
+				// Dereference the script
+				script = null;
+
+				if (callback) {
+					callback()
+				}
+			}
+
+			if ("onload" in script) {
+				script.onerror = script.onload = onload;
+			} else {
+				script.onreadystatechange = function() {
+					if (READY_STATE_RE.test(script.readyState)) {
+						onload();
+					}
+				}
+			}
+
+			script.async = true;
+			script.src = url;
+			if (id) {
+				script.id = id;
+			}
+
+			baseElement ? head.insertBefore(script, baseElement) : head.appendChild(script)
+		}
+	})();
+
+	var queue = true;
+	module.exports = function(callback) {
+		if (queue) {
+			if (queue === true) {
+				queue = [callback];
+				loadScript('http://assets.dwstatic.com/amkit/entry.js', function() {
+					var c;
+					for (var i = 0, len = queue.length; i < len; i++) {
+						c = queue[i];
+						if (c) {
+							ready(c);
+						}
+					}
+					queue = null;
+				});
+			} else {
+				queue.push(callback);
+			}
+		} else {
+			ready(callback);
+		}
+	};
+}

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1 - 0
2018专题/我的冒险世界/src/modules/store/store.js


+ 1545 - 0
2018专题/我的冒险世界/src/modules/underscore/underscore.js

@@ -0,0 +1,1545 @@
+//     Underscore.js 1.8.2
+//     http://underscorejs.org
+//     (c) 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+//     Underscore may be freely distributed under the MIT license.
+
+(function() {
+
+  // Baseline setup
+  // --------------
+
+  // Establish the root object, `window` in the browser, or `exports` on the server.
+  var root = this;
+
+  // Save the previous value of the `_` variable.
+  var previousUnderscore = root._;
+
+  // Save bytes in the minified (but not gzipped) version:
+  var ArrayProto = Array.prototype, ObjProto = Object.prototype, FuncProto = Function.prototype;
+
+  // Create quick reference variables for speed access to core prototypes.
+  var
+    push             = ArrayProto.push,
+    slice            = ArrayProto.slice,
+    toString         = ObjProto.toString,
+    hasOwnProperty   = ObjProto.hasOwnProperty;
+
+  // All **ECMAScript 5** native function implementations that we hope to use
+  // are declared here.
+  var
+    nativeIsArray      = Array.isArray,
+    nativeKeys         = Object.keys,
+    nativeBind         = FuncProto.bind,
+    nativeCreate       = Object.create;
+
+  // Naked function reference for surrogate-prototype-swapping.
+  var Ctor = function(){};
+
+  // Create a safe reference to the Underscore object for use below.
+  var _ = function(obj) {
+    if (obj instanceof _) return obj;
+    if (!(this instanceof _)) return new _(obj);
+    this._wrapped = obj;
+  };
+
+  // Export the Underscore object for **Node.js**, with
+  // backwards-compatibility for the old `require()` API. If we're in
+  // the browser, add `_` as a global object.
+  if (typeof exports !== 'undefined') {
+    if (typeof module !== 'undefined' && module.exports) {
+      exports = module.exports = _;
+    }
+    exports._ = _;
+  } else {
+    root._ = _;
+  }
+
+  // Current version.
+  _.VERSION = '1.8.2';
+
+  // Internal function that returns an efficient (for current engines) version
+  // of the passed-in callback, to be repeatedly applied in other Underscore
+  // functions.
+  var optimizeCb = function(func, context, argCount) {
+    if (context === void 0) return func;
+    switch (argCount == null ? 3 : argCount) {
+      case 1: return function(value) {
+        return func.call(context, value);
+      };
+      case 2: return function(value, other) {
+        return func.call(context, value, other);
+      };
+      case 3: return function(value, index, collection) {
+        return func.call(context, value, index, collection);
+      };
+      case 4: return function(accumulator, value, index, collection) {
+        return func.call(context, accumulator, value, index, collection);
+      };
+    }
+    return function() {
+      return func.apply(context, arguments);
+    };
+  };
+
+  // A mostly-internal function to generate callbacks that can be applied
+  // to each element in a collection, returning the desired result — either
+  // identity, an arbitrary callback, a property matcher, or a property accessor.
+  var cb = function(value, context, argCount) {
+    if (value == null) return _.identity;
+    if (_.isFunction(value)) return optimizeCb(value, context, argCount);
+    if (_.isObject(value)) return _.matcher(value);
+    return _.property(value);
+  };
+  _.iteratee = function(value, context) {
+    return cb(value, context, Infinity);
+  };
+
+  // An internal function for creating assigner functions.
+  var createAssigner = function(keysFunc, undefinedOnly) {
+    return function(obj) {
+      var length = arguments.length;
+      if (length < 2 || obj == null) return obj;
+      for (var index = 1; index < length; index++) {
+        var source = arguments[index],
+            keys = keysFunc(source),
+            l = keys.length;
+        for (var i = 0; i < l; i++) {
+          var key = keys[i];
+          if (!undefinedOnly || obj[key] === void 0) obj[key] = source[key];
+        }
+      }
+      return obj;
+    };
+  };
+
+  // An internal function for creating a new object that inherits from another.
+  var baseCreate = function(prototype) {
+    if (!_.isObject(prototype)) return {};
+    if (nativeCreate) return nativeCreate(prototype);
+    Ctor.prototype = prototype;
+    var result = new Ctor;
+    Ctor.prototype = null;
+    return result;
+  };
+
+  // Helper for collection methods to determine whether a collection
+  // should be iterated as an array or as an object
+  // Related: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-tolength
+  var MAX_ARRAY_INDEX = Math.pow(2, 53) - 1;
+  var isArrayLike = function(collection) {
+    var length = collection != null && collection.length;
+    return typeof length == 'number' && length >= 0 && length <= MAX_ARRAY_INDEX;
+  };
+
+  // Collection Functions
+  // --------------------
+
+  // The cornerstone, an `each` implementation, aka `forEach`.
+  // Handles raw objects in addition to array-likes. Treats all
+  // sparse array-likes as if they were dense.
+  _.each = _.forEach = function(obj, iteratee, context) {
+    iteratee = optimizeCb(iteratee, context);
+    var i, length;
+    if (isArrayLike(obj)) {
+      for (i = 0, length = obj.length; i < length; i++) {
+        iteratee(obj[i], i, obj);
+      }
+    } else {
+      var keys = _.keys(obj);
+      for (i = 0, length = keys.length; i < length; i++) {
+        iteratee(obj[keys[i]], keys[i], obj);
+      }
+    }
+    return obj;
+  };
+
+  // Return the results of applying the iteratee to each element.
+  _.map = _.collect = function(obj, iteratee, context) {
+    iteratee = cb(iteratee, context);
+    var keys = !isArrayLike(obj) && _.keys(obj),
+        length = (keys || obj).length,
+        results = Array(length);
+    for (var index = 0; index < length; index++) {
+      var currentKey = keys ? keys[index] : index;
+      results[index] = iteratee(obj[currentKey], currentKey, obj);
+    }
+    return results;
+  };
+
+  // Create a reducing function iterating left or right.
+  function createReduce(dir) {
+    // Optimized iterator function as using arguments.length
+    // in the main function will deoptimize the, see #1991.
+    function iterator(obj, iteratee, memo, keys, index, length) {
+      for (; index >= 0 && index < length; index += dir) {
+        var currentKey = keys ? keys[index] : index;
+        memo = iteratee(memo, obj[currentKey], currentKey, obj);
+      }
+      return memo;
+    }
+
+    return function(obj, iteratee, memo, context) {
+      iteratee = optimizeCb(iteratee, context, 4);
+      var keys = !isArrayLike(obj) && _.keys(obj),
+          length = (keys || obj).length,
+          index = dir > 0 ? 0 : length - 1;
+      // Determine the initial value if none is provided.
+      if (arguments.length < 3) {
+        memo = obj[keys ? keys[index] : index];
+        index += dir;
+      }
+      return iterator(obj, iteratee, memo, keys, index, length);
+    };
+  }
+
+  // **Reduce** builds up a single result from a list of values, aka `inject`,
+  // or `foldl`.
+  _.reduce = _.foldl = _.inject = createReduce(1);
+
+  // The right-associative version of reduce, also known as `foldr`.
+  _.reduceRight = _.foldr = createReduce(-1);
+
+  // Return the first value which passes a truth test. Aliased as `detect`.
+  _.find = _.detect = function(obj, predicate, context) {
+    var key;
+    if (isArrayLike(obj)) {
+      key = _.findIndex(obj, predicate, context);
+    } else {
+      key = _.findKey(obj, predicate, context);
+    }
+    if (key !== void 0 && key !== -1) return obj[key];
+  };
+
+  // Return all the elements that pass a truth test.
+  // Aliased as `select`.
+  _.filter = _.select = function(obj, predicate, context) {
+    var results = [];
+    predicate = cb(predicate, context);
+    _.each(obj, function(value, index, list) {
+      if (predicate(value, index, list)) results.push(value);
+    });
+    return results;
+  };
+
+  // Return all the elements for which a truth test fails.
+  _.reject = function(obj, predicate, context) {
+    return _.filter(obj, _.negate(cb(predicate)), context);
+  };
+
+  // Determine whether all of the elements match a truth test.
+  // Aliased as `all`.
+  _.every = _.all = function(obj, predicate, context) {
+    predicate = cb(predicate, context);
+    var keys = !isArrayLike(obj) && _.keys(obj),
+        length = (keys || obj).length;
+    for (var index = 0; index < length; index++) {
+      var currentKey = keys ? keys[index] : index;
+      if (!predicate(obj[currentKey], currentKey, obj)) return false;
+    }
+    return true;
+  };
+
+  // Determine if at least one element in the object matches a truth test.
+  // Aliased as `any`.
+  _.some = _.any = function(obj, predicate, context) {
+    predicate = cb(predicate, context);
+    var keys = !isArrayLike(obj) && _.keys(obj),
+        length = (keys || obj).length;
+    for (var index = 0; index < length; index++) {
+      var currentKey = keys ? keys[index] : index;
+      if (predicate(obj[currentKey], currentKey, obj)) return true;
+    }
+    return false;
+  };
+
+  // Determine if the array or object contains a given value (using `===`).
+  // Aliased as `includes` and `include`.
+  _.contains = _.includes = _.include = function(obj, target, fromIndex) {
+    if (!isArrayLike(obj)) obj = _.values(obj);
+    return _.indexOf(obj, target, typeof fromIndex == 'number' && fromIndex) >= 0;
+  };
+
+  // Invoke a method (with arguments) on every item in a collection.
+  _.invoke = function(obj, method) {
+    var args = slice.call(arguments, 2);
+    var isFunc = _.isFunction(method);
+    return _.map(obj, function(value) {
+      var func = isFunc ? method : value[method];
+      return func == null ? func : func.apply(value, args);
+    });
+  };
+
+  // Convenience version of a common use case of `map`: fetching a property.
+  _.pluck = function(obj, key) {
+    return _.map(obj, _.property(key));
+  };
+
+  // Convenience version of a common use case of `filter`: selecting only objects
+  // containing specific `key:value` pairs.
+  _.where = function(obj, attrs) {
+    return _.filter(obj, _.matcher(attrs));
+  };
+
+  // Convenience version of a common use case of `find`: getting the first object
+  // containing specific `key:value` pairs.
+  _.findWhere = function(obj, attrs) {
+    return _.find(obj, _.matcher(attrs));
+  };
+
+  // Return the maximum element (or element-based computation).
+  _.max = function(obj, iteratee, context) {
+    var result = -Infinity, lastComputed = -Infinity,
+        value, computed;
+    if (iteratee == null && obj != null) {
+      obj = isArrayLike(obj) ? obj : _.values(obj);
+      for (var i = 0, length = obj.length; i < length; i++) {
+        value = obj[i];
+        if (value > result) {
+          result = value;
+        }
+      }
+    } else {
+      iteratee = cb(iteratee, context);
+      _.each(obj, function(value, index, list) {
+        computed = iteratee(value, index, list);
+        if (computed > lastComputed || computed === -Infinity && result === -Infinity) {
+          result = value;
+          lastComputed = computed;
+        }
+      });
+    }
+    return result;
+  };
+
+  // Return the minimum element (or element-based computation).
+  _.min = function(obj, iteratee, context) {
+    var result = Infinity, lastComputed = Infinity,
+        value, computed;
+    if (iteratee == null && obj != null) {
+      obj = isArrayLike(obj) ? obj : _.values(obj);
+      for (var i = 0, length = obj.length; i < length; i++) {
+        value = obj[i];
+        if (value < result) {
+          result = value;
+        }
+      }
+    } else {
+      iteratee = cb(iteratee, context);
+      _.each(obj, function(value, index, list) {
+        computed = iteratee(value, index, list);
+        if (computed < lastComputed || computed === Infinity && result === Infinity) {
+          result = value;
+          lastComputed = computed;
+        }
+      });
+    }
+    return result;
+  };
+
+  // Shuffle a collection, using the modern version of the
+  // [Fisher-Yates shuffle](http://en.wikipedia.org/wiki/Fisher–Yates_shuffle).
+  _.shuffle = function(obj) {
+    var set = isArrayLike(obj) ? obj : _.values(obj);
+    var length = set.length;
+    var shuffled = Array(length);
+    for (var index = 0, rand; index < length; index++) {
+      rand = _.random(0, index);
+      if (rand !== index) shuffled[index] = shuffled[rand];
+      shuffled[rand] = set[index];
+    }
+    return shuffled;
+  };
+
+  // Sample **n** random values from a collection.
+  // If **n** is not specified, returns a single random element.
+  // The internal `guard` argument allows it to work with `map`.
+  _.sample = function(obj, n, guard) {
+    if (n == null || guard) {
+      if (!isArrayLike(obj)) obj = _.values(obj);
+      return obj[_.random(obj.length - 1)];
+    }
+    return _.shuffle(obj).slice(0, Math.max(0, n));
+  };
+
+  // Sort the object's values by a criterion produced by an iteratee.
+  _.sortBy = function(obj, iteratee, context) {
+    iteratee = cb(iteratee, context);
+    return _.pluck(_.map(obj, function(value, index, list) {
+      return {
+        value: value,
+        index: index,
+        criteria: iteratee(value, index, list)
+      };
+    }).sort(function(left, right) {
+      var a = left.criteria;
+      var b = right.criteria;
+      if (a !== b) {
+        if (a > b || a === void 0) return 1;
+        if (a < b || b === void 0) return -1;
+      }
+      return left.index - right.index;
+    }), 'value');
+  };
+
+  // An internal function used for aggregate "group by" operations.
+  var group = function(behavior) {
+    return function(obj, iteratee, context) {
+      var result = {};
+      iteratee = cb(iteratee, context);
+      _.each(obj, function(value, index) {
+        var key = iteratee(value, index, obj);
+        behavior(result, value, key);
+      });
+      return result;
+    };
+  };
+
+  // Groups the object's values by a criterion. Pass either a string attribute
+  // to group by, or a function that returns the criterion.
+  _.groupBy = group(function(result, value, key) {
+    if (_.has(result, key)) result[key].push(value); else result[key] = [value];
+  });
+
+  // Indexes the object's values by a criterion, similar to `groupBy`, but for
+  // when you know that your index values will be unique.
+  _.indexBy = group(function(result, value, key) {
+    result[key] = value;
+  });
+
+  // Counts instances of an object that group by a certain criterion. Pass
+  // either a string attribute to count by, or a function that returns the
+  // criterion.
+  _.countBy = group(function(result, value, key) {
+    if (_.has(result, key)) result[key]++; else result[key] = 1;
+  });
+
+  // Safely create a real, live array from anything iterable.
+  _.toArray = function(obj) {
+    if (!obj) return [];
+    if (_.isArray(obj)) return slice.call(obj);
+    if (isArrayLike(obj)) return _.map(obj, _.identity);
+    return _.values(obj);
+  };
+
+  // Return the number of elements in an object.
+  _.size = function(obj) {
+    if (obj == null) return 0;
+    return isArrayLike(obj) ? obj.length : _.keys(obj).length;
+  };
+
+  // Split a collection into two arrays: one whose elements all satisfy the given
+  // predicate, and one whose elements all do not satisfy the predicate.
+  _.partition = function(obj, predicate, context) {
+    predicate = cb(predicate, context);
+    var pass = [], fail = [];
+    _.each(obj, function(value, key, obj) {
+      (predicate(value, key, obj) ? pass : fail).push(value);
+    });
+    return [pass, fail];
+  };
+
+  // Array Functions
+  // ---------------
+
+  // Get the first element of an array. Passing **n** will return the first N
+  // values in the array. Aliased as `head` and `take`. The **guard** check
+  // allows it to work with `_.map`.
+  _.first = _.head = _.take = function(array, n, guard) {
+    if (array == null) return void 0;
+    if (n == null || guard) return array[0];
+    return _.initial(array, array.length - n);
+  };
+
+  // Returns everything but the last entry of the array. Especially useful on
+  // the arguments object. Passing **n** will return all the values in
+  // the array, excluding the last N.
+  _.initial = function(array, n, guard) {
+    return slice.call(array, 0, Math.max(0, array.length - (n == null || guard ? 1 : n)));
+  };
+
+  // Get the last element of an array. Passing **n** will return the last N
+  // values in the array.
+  _.last = function(array, n, guard) {
+    if (array == null) return void 0;
+    if (n == null || guard) return array[array.length - 1];
+    return _.rest(array, Math.max(0, array.length - n));
+  };
+
+  // Returns everything but the first entry of the array. Aliased as `tail` and `drop`.
+  // Especially useful on the arguments object. Passing an **n** will return
+  // the rest N values in the array.
+  _.rest = _.tail = _.drop = function(array, n, guard) {
+    return slice.call(array, n == null || guard ? 1 : n);
+  };
+
+  // Trim out all falsy values from an array.
+  _.compact = function(array) {
+    return _.filter(array, _.identity);
+  };
+
+  // Internal implementation of a recursive `flatten` function.
+  var flatten = function(input, shallow, strict, startIndex) {
+    var output = [], idx = 0;
+    for (var i = startIndex || 0, length = input && input.length; i < length; i++) {
+      var value = input[i];
+      if (isArrayLike(value) && (_.isArray(value) || _.isArguments(value))) {
+        //flatten current level of array or arguments object
+        if (!shallow) value = flatten(value, shallow, strict);
+        var j = 0, len = value.length;
+        output.length += len;
+        while (j < len) {
+          output[idx++] = value[j++];
+        }
+      } else if (!strict) {
+        output[idx++] = value;
+      }
+    }
+    return output;
+  };
+
+  // Flatten out an array, either recursively (by default), or just one level.
+  _.flatten = function(array, shallow) {
+    return flatten(array, shallow, false);
+  };
+
+  // Return a version of the array that does not contain the specified value(s).
+  _.without = function(array) {
+    return _.difference(array, slice.call(arguments, 1));
+  };
+
+  // Produce a duplicate-free version of the array. If the array has already
+  // been sorted, you have the option of using a faster algorithm.
+  // Aliased as `unique`.
+  _.uniq = _.unique = function(array, isSorted, iteratee, context) {
+    if (array == null) return [];
+    if (!_.isBoolean(isSorted)) {
+      context = iteratee;
+      iteratee = isSorted;
+      isSorted = false;
+    }
+    if (iteratee != null) iteratee = cb(iteratee, context);
+    var result = [];
+    var seen = [];
+    for (var i = 0, length = array.length; i < length; i++) {
+      var value = array[i],
+          computed = iteratee ? iteratee(value, i, array) : value;
+      if (isSorted) {
+        if (!i || seen !== computed) result.push(value);
+        seen = computed;
+      } else if (iteratee) {
+        if (!_.contains(seen, computed)) {
+          seen.push(computed);
+          result.push(value);
+        }
+      } else if (!_.contains(result, value)) {
+        result.push(value);
+      }
+    }
+    return result;
+  };
+
+  // Produce an array that contains the union: each distinct element from all of
+  // the passed-in arrays.
+  _.union = function() {
+    return _.uniq(flatten(arguments, true, true));
+  };
+
+  // Produce an array that contains every item shared between all the
+  // passed-in arrays.
+  _.intersection = function(array) {
+    if (array == null) return [];
+    var result = [];
+    var argsLength = arguments.length;
+    for (var i = 0, length = array.length; i < length; i++) {
+      var item = array[i];
+      if (_.contains(result, item)) continue;
+      for (var j = 1; j < argsLength; j++) {
+        if (!_.contains(arguments[j], item)) break;
+      }
+      if (j === argsLength) result.push(item);
+    }
+    return result;
+  };
+
+  // Take the difference between one array and a number of other arrays.
+  // Only the elements present in just the first array will remain.
+  _.difference = function(array) {
+    var rest = flatten(arguments, true, true, 1);
+    return _.filter(array, function(value){
+      return !_.contains(rest, value);
+    });
+  };
+
+  // Zip together multiple lists into a single array -- elements that share
+  // an index go together.
+  _.zip = function() {
+    return _.unzip(arguments);
+  };
+
+  // Complement of _.zip. Unzip accepts an array of arrays and groups
+  // each array's elements on shared indices
+  _.unzip = function(array) {
+    var length = array && _.max(array, 'length').length || 0;
+    var result = Array(length);
+
+    for (var index = 0; index < length; index++) {
+      result[index] = _.pluck(array, index);
+    }
+    return result;
+  };
+
+  // Converts lists into objects. Pass either a single array of `[key, value]`
+  // pairs, or two parallel arrays of the same length -- one of keys, and one of
+  // the corresponding values.
+  _.object = function(list, values) {
+    var result = {};
+    for (var i = 0, length = list && list.length; i < length; i++) {
+      if (values) {
+        result[list[i]] = values[i];
+      } else {
+        result[list[i][0]] = list[i][1];
+      }
+    }
+    return result;
+  };
+
+  // Return the position of the first occurrence of an item in an array,
+  // or -1 if the item is not included in the array.
+  // If the array is large and already in sort order, pass `true`
+  // for **isSorted** to use binary search.
+  _.indexOf = function(array, item, isSorted) {
+    var i = 0, length = array && array.length;
+    if (typeof isSorted == 'number') {
+      i = isSorted < 0 ? Math.max(0, length + isSorted) : isSorted;
+    } else if (isSorted && length) {
+      i = _.sortedIndex(array, item);
+      return array[i] === item ? i : -1;
+    }
+    if (item !== item) {
+      return _.findIndex(slice.call(array, i), _.isNaN);
+    }
+    for (; i < length; i++) if (array[i] === item) return i;
+    return -1;
+  };
+
+  _.lastIndexOf = function(array, item, from) {
+    var idx = array ? array.length : 0;
+    if (typeof from == 'number') {
+      idx = from < 0 ? idx + from + 1 : Math.min(idx, from + 1);
+    }
+    if (item !== item) {
+      return _.findLastIndex(slice.call(array, 0, idx), _.isNaN);
+    }
+    while (--idx >= 0) if (array[idx] === item) return idx;
+    return -1;
+  };
+
+  // Generator function to create the findIndex and findLastIndex functions
+  function createIndexFinder(dir) {
+    return function(array, predicate, context) {
+      predicate = cb(predicate, context);
+      var length = array != null && array.length;
+      var index = dir > 0 ? 0 : length - 1;
+      for (; index >= 0 && index < length; index += dir) {
+        if (predicate(array[index], index, array)) return index;
+      }
+      return -1;
+    };
+  }
+
+  // Returns the first index on an array-like that passes a predicate test
+  _.findIndex = createIndexFinder(1);
+
+  _.findLastIndex = createIndexFinder(-1);
+
+  // Use a comparator function to figure out the smallest index at which
+  // an object should be inserted so as to maintain order. Uses binary search.
+  _.sortedIndex = function(array, obj, iteratee, context) {
+    iteratee = cb(iteratee, context, 1);
+    var value = iteratee(obj);
+    var low = 0, high = array.length;
+    while (low < high) {
+      var mid = Math.floor((low + high) / 2);
+      if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;
+    }
+    return low;
+  };
+
+  // Generate an integer Array containing an arithmetic progression. A port of
+  // the native Python `range()` function. See
+  // [the Python documentation](http://docs.python.org/library/functions.html#range).
+  _.range = function(start, stop, step) {
+    if (arguments.length <= 1) {
+      stop = start || 0;
+      start = 0;
+    }
+    step = step || 1;
+
+    var length = Math.max(Math.ceil((stop - start) / step), 0);
+    var range = Array(length);
+
+    for (var idx = 0; idx < length; idx++, start += step) {
+      range[idx] = start;
+    }
+
+    return range;
+  };
+
+  // Function (ahem) Functions
+  // ------------------
+
+  // Determines whether to execute a function as a constructor
+  // or a normal function with the provided arguments
+  var executeBound = function(sourceFunc, boundFunc, context, callingContext, args) {
+    if (!(callingContext instanceof boundFunc)) return sourceFunc.apply(context, args);
+    var self = baseCreate(sourceFunc.prototype);
+    var result = sourceFunc.apply(self, args);
+    if (_.isObject(result)) return result;
+    return self;
+  };
+
+  // Create a function bound to a given object (assigning `this`, and arguments,
+  // optionally). Delegates to **ECMAScript 5**'s native `Function.bind` if
+  // available.
+  _.bind = function(func, context) {
+    if (nativeBind && func.bind === nativeBind) return nativeBind.apply(func, slice.call(arguments, 1));
+    if (!_.isFunction(func)) throw new TypeError('Bind must be called on a function');
+    var args = slice.call(arguments, 2);
+    var bound = function() {
+      return executeBound(func, bound, context, this, args.concat(slice.call(arguments)));
+    };
+    return bound;
+  };
+
+  // Partially apply a function by creating a version that has had some of its
+  // arguments pre-filled, without changing its dynamic `this` context. _ acts
+  // as a placeholder, allowing any combination of arguments to be pre-filled.
+  _.partial = function(func) {
+    var boundArgs = slice.call(arguments, 1);
+    var bound = function() {
+      var position = 0, length = boundArgs.length;
+      var args = Array(length);
+      for (var i = 0; i < length; i++) {
+        args[i] = boundArgs[i] === _ ? arguments[position++] : boundArgs[i];
+      }
+      while (position < arguments.length) args.push(arguments[position++]);
+      return executeBound(func, bound, this, this, args);
+    };
+    return bound;
+  };
+
+  // Bind a number of an object's methods to that object. Remaining arguments
+  // are the method names to be bound. Useful for ensuring that all callbacks
+  // defined on an object belong to it.
+  _.bindAll = function(obj) {
+    var i, length = arguments.length, key;
+    if (length <= 1) throw new Error('bindAll must be passed function names');
+    for (i = 1; i < length; i++) {
+      key = arguments[i];
+      obj[key] = _.bind(obj[key], obj);
+    }
+    return obj;
+  };
+
+  // Memoize an expensive function by storing its results.
+  _.memoize = function(func, hasher) {
+    var memoize = function(key) {
+      var cache = memoize.cache;
+      var address = '' + (hasher ? hasher.apply(this, arguments) : key);
+      if (!_.has(cache, address)) cache[address] = func.apply(this, arguments);
+      return cache[address];
+    };
+    memoize.cache = {};
+    return memoize;
+  };
+
+  // Delays a function for the given number of milliseconds, and then calls
+  // it with the arguments supplied.
+  _.delay = function(func, wait) {
+    var args = slice.call(arguments, 2);
+    return setTimeout(function(){
+      return func.apply(null, args);
+    }, wait);
+  };
+
+  // Defers a function, scheduling it to run after the current call stack has
+  // cleared.
+  _.defer = _.partial(_.delay, _, 1);
+
+  // Returns a function, that, when invoked, will only be triggered at most once
+  // during a given window of time. Normally, the throttled function will run
+  // as much as it can, without ever going more than once per `wait` duration;
+  // but if you'd like to disable the execution on the leading edge, pass
+  // `{leading: false}`. To disable execution on the trailing edge, ditto.
+  _.throttle = function(func, wait, options) {
+    var context, args, result;
+    var timeout = null;
+    var previous = 0;
+    if (!options) options = {};
+    var later = function() {
+      previous = options.leading === false ? 0 : _.now();
+      timeout = null;
+      result = func.apply(context, args);
+      if (!timeout) context = args = null;
+    };
+    return function() {
+      var now = _.now();
+      if (!previous && options.leading === false) previous = now;
+      var remaining = wait - (now - previous);
+      context = this;
+      args = arguments;
+      if (remaining <= 0 || remaining > wait) {
+        if (timeout) {
+          clearTimeout(timeout);
+          timeout = null;
+        }
+        previous = now;
+        result = func.apply(context, args);
+        if (!timeout) context = args = null;
+      } else if (!timeout && options.trailing !== false) {
+        timeout = setTimeout(later, remaining);
+      }
+      return result;
+    };
+  };
+
+  // Returns a function, that, as long as it continues to be invoked, will not
+  // be triggered. The function will be called after it stops being called for
+  // N milliseconds. If `immediate` is passed, trigger the function on the
+  // leading edge, instead of the trailing.
+  _.debounce = function(func, wait, immediate) {
+    var timeout, args, context, timestamp, result;
+
+    var later = function() {
+      var last = _.now() - timestamp;
+
+      if (last < wait && last >= 0) {
+        timeout = setTimeout(later, wait - last);
+      } else {
+        timeout = null;
+        if (!immediate) {
+          result = func.apply(context, args);
+          if (!timeout) context = args = null;
+        }
+      }
+    };
+
+    return function() {
+      context = this;
+      args = arguments;
+      timestamp = _.now();
+      var callNow = immediate && !timeout;
+      if (!timeout) timeout = setTimeout(later, wait);
+      if (callNow) {
+        result = func.apply(context, args);
+        context = args = null;
+      }
+
+      return result;
+    };
+  };
+
+  // Returns the first function passed as an argument to the second,
+  // allowing you to adjust arguments, run code before and after, and
+  // conditionally execute the original function.
+  _.wrap = function(func, wrapper) {
+    return _.partial(wrapper, func);
+  };
+
+  // Returns a negated version of the passed-in predicate.
+  _.negate = function(predicate) {
+    return function() {
+      return !predicate.apply(this, arguments);
+    };
+  };
+
+  // Returns a function that is the composition of a list of functions, each
+  // consuming the return value of the function that follows.
+  _.compose = function() {
+    var args = arguments;
+    var start = args.length - 1;
+    return function() {
+      var i = start;
+      var result = args[start].apply(this, arguments);
+      while (i--) result = args[i].call(this, result);
+      return result;
+    };
+  };
+
+  // Returns a function that will only be executed on and after the Nth call.
+  _.after = function(times, func) {
+    return function() {
+      if (--times < 1) {
+        return func.apply(this, arguments);
+      }
+    };
+  };
+
+  // Returns a function that will only be executed up to (but not including) the Nth call.
+  _.before = function(times, func) {
+    var memo;
+    return function() {
+      if (--times > 0) {
+        memo = func.apply(this, arguments);
+      }
+      if (times <= 1) func = null;
+      return memo;
+    };
+  };
+
+  // Returns a function that will be executed at most one time, no matter how
+  // often you call it. Useful for lazy initialization.
+  _.once = _.partial(_.before, 2);
+
+  // Object Functions
+  // ----------------
+
+  // Keys in IE < 9 that won't be iterated by `for key in ...` and thus missed.
+  var hasEnumBug = !{toString: null}.propertyIsEnumerable('toString');
+  var nonEnumerableProps = ['valueOf', 'isPrototypeOf', 'toString',
+                      'propertyIsEnumerable', 'hasOwnProperty', 'toLocaleString'];
+
+  function collectNonEnumProps(obj, keys) {
+    var nonEnumIdx = nonEnumerableProps.length;
+    var constructor = obj.constructor;
+    var proto = (_.isFunction(constructor) && constructor.prototype) || ObjProto;
+
+    // Constructor is a special case.
+    var prop = 'constructor';
+    if (_.has(obj, prop) && !_.contains(keys, prop)) keys.push(prop);
+
+    while (nonEnumIdx--) {
+      prop = nonEnumerableProps[nonEnumIdx];
+      if (prop in obj && obj[prop] !== proto[prop] && !_.contains(keys, prop)) {
+        keys.push(prop);
+      }
+    }
+  }
+
+  // Retrieve the names of an object's own properties.
+  // Delegates to **ECMAScript 5**'s native `Object.keys`
+  _.keys = function(obj) {
+    if (!_.isObject(obj)) return [];
+    if (nativeKeys) return nativeKeys(obj);
+    var keys = [];
+    for (var key in obj) if (_.has(obj, key)) keys.push(key);
+    // Ahem, IE < 9.
+    if (hasEnumBug) collectNonEnumProps(obj, keys);
+    return keys;
+  };
+
+  // Retrieve all the property names of an object.
+  _.allKeys = function(obj) {
+    if (!_.isObject(obj)) return [];
+    var keys = [];
+    for (var key in obj) keys.push(key);
+    // Ahem, IE < 9.
+    if (hasEnumBug) collectNonEnumProps(obj, keys);
+    return keys;
+  };
+
+  // Retrieve the values of an object's properties.
+  _.values = function(obj) {
+    var keys = _.keys(obj);
+    var length = keys.length;
+    var values = Array(length);
+    for (var i = 0; i < length; i++) {
+      values[i] = obj[keys[i]];
+    }
+    return values;
+  };
+
+  // Returns the results of applying the iteratee to each element of the object
+  // In contrast to _.map it returns an object
+  _.mapObject = function(obj, iteratee, context) {
+    iteratee = cb(iteratee, context);
+    var keys =  _.keys(obj),
+          length = keys.length,
+          results = {},
+          currentKey;
+      for (var index = 0; index < length; index++) {
+        currentKey = keys[index];
+        results[currentKey] = iteratee(obj[currentKey], currentKey, obj);
+      }
+      return results;
+  };
+
+  // Convert an object into a list of `[key, value]` pairs.
+  _.pairs = function(obj) {
+    var keys = _.keys(obj);
+    var length = keys.length;
+    var pairs = Array(length);
+    for (var i = 0; i < length; i++) {
+      pairs[i] = [keys[i], obj[keys[i]]];
+    }
+    return pairs;
+  };
+
+  // Invert the keys and values of an object. The values must be serializable.
+  _.invert = function(obj) {
+    var result = {};
+    var keys = _.keys(obj);
+    for (var i = 0, length = keys.length; i < length; i++) {
+      result[obj[keys[i]]] = keys[i];
+    }
+    return result;
+  };
+
+  // Return a sorted list of the function names available on the object.
+  // Aliased as `methods`
+  _.functions = _.methods = function(obj) {
+    var names = [];
+    for (var key in obj) {
+      if (_.isFunction(obj[key])) names.push(key);
+    }
+    return names.sort();
+  };
+
+  // Extend a given object with all the properties in passed-in object(s).
+  _.extend = createAssigner(_.allKeys);
+
+  // Assigns a given object with all the own properties in the passed-in object(s)
+  // (https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
+  _.extendOwn = _.assign = createAssigner(_.keys);
+
+  // Returns the first key on an object that passes a predicate test
+  _.findKey = function(obj, predicate, context) {
+    predicate = cb(predicate, context);
+    var keys = _.keys(obj), key;
+    for (var i = 0, length = keys.length; i < length; i++) {
+      key = keys[i];
+      if (predicate(obj[key], key, obj)) return key;
+    }
+  };
+
+  // Return a copy of the object only containing the whitelisted properties.
+  _.pick = function(object, oiteratee, context) {
+    var result = {}, obj = object, iteratee, keys;
+    if (obj == null) return result;
+    if (_.isFunction(oiteratee)) {
+      keys = _.allKeys(obj);
+      iteratee = optimizeCb(oiteratee, context);
+    } else {
+      keys = flatten(arguments, false, false, 1);
+      iteratee = function(value, key, obj) { return key in obj; };
+      obj = Object(obj);
+    }
+    for (var i = 0, length = keys.length; i < length; i++) {
+      var key = keys[i];
+      var value = obj[key];
+      if (iteratee(value, key, obj)) result[key] = value;
+    }
+    return result;
+  };
+
+   // Return a copy of the object without the blacklisted properties.
+  _.omit = function(obj, iteratee, context) {
+    if (_.isFunction(iteratee)) {
+      iteratee = _.negate(iteratee);
+    } else {
+      var keys = _.map(flatten(arguments, false, false, 1), String);
+      iteratee = function(value, key) {
+        return !_.contains(keys, key);
+      };
+    }
+    return _.pick(obj, iteratee, context);
+  };
+
+  // Fill in a given object with default properties.
+  _.defaults = createAssigner(_.allKeys, true);
+
+  // Creates an object that inherits from the given prototype object.
+  // If additional properties are provided then they will be added to the
+  // created object.
+  _.create = function(prototype, props) {
+    var result = baseCreate(prototype);
+    if (props) _.extendOwn(result, props);
+    return result;
+  };
+
+  // Create a (shallow-cloned) duplicate of an object.
+  _.clone = function(obj) {
+    if (!_.isObject(obj)) return obj;
+    return _.isArray(obj) ? obj.slice() : _.extend({}, obj);
+  };
+
+  // Invokes interceptor with the obj, and then returns obj.
+  // The primary purpose of this method is to "tap into" a method chain, in
+  // order to perform operations on intermediate results within the chain.
+  _.tap = function(obj, interceptor) {
+    interceptor(obj);
+    return obj;
+  };
+
+  // Returns whether an object has a given set of `key:value` pairs.
+  _.isMatch = function(object, attrs) {
+    var keys = _.keys(attrs), length = keys.length;
+    if (object == null) return !length;
+    var obj = Object(object);
+    for (var i = 0; i < length; i++) {
+      var key = keys[i];
+      if (attrs[key] !== obj[key] || !(key in obj)) return false;
+    }
+    return true;
+  };
+
+
+  // Internal recursive comparison function for `isEqual`.
+  var eq = function(a, b, aStack, bStack) {
+    // Identical objects are equal. `0 === -0`, but they aren't identical.
+    // See the [Harmony `egal` proposal](http://wiki.ecmascript.org/doku.php?id=harmony:egal).
+    if (a === b) return a !== 0 || 1 / a === 1 / b;
+    // A strict comparison is necessary because `null == undefined`.
+    if (a == null || b == null) return a === b;
+    // Unwrap any wrapped objects.
+    if (a instanceof _) a = a._wrapped;
+    if (b instanceof _) b = b._wrapped;
+    // Compare `[[Class]]` names.
+    var className = toString.call(a);
+    if (className !== toString.call(b)) return false;
+    switch (className) {
+      // Strings, numbers, regular expressions, dates, and booleans are compared by value.
+      case '[object RegExp]':
+      // RegExps are coerced to strings for comparison (Note: '' + /a/i === '/a/i')
+      case '[object String]':
+        // Primitives and their corresponding object wrappers are equivalent; thus, `"5"` is
+        // equivalent to `new String("5")`.
+        return '' + a === '' + b;
+      case '[object Number]':
+        // `NaN`s are equivalent, but non-reflexive.
+        // Object(NaN) is equivalent to NaN
+        if (+a !== +a) return +b !== +b;
+        // An `egal` comparison is performed for other numeric values.
+        return +a === 0 ? 1 / +a === 1 / b : +a === +b;
+      case '[object Date]':
+      case '[object Boolean]':
+        // Coerce dates and booleans to numeric primitive values. Dates are compared by their
+        // millisecond representations. Note that invalid dates with millisecond representations
+        // of `NaN` are not equivalent.
+        return +a === +b;
+    }
+
+    var areArrays = className === '[object Array]';
+    if (!areArrays) {
+      if (typeof a != 'object' || typeof b != 'object') return false;
+
+      // Objects with different constructors are not equivalent, but `Object`s or `Array`s
+      // from different frames are.
+      var aCtor = a.constructor, bCtor = b.constructor;
+      if (aCtor !== bCtor && !(_.isFunction(aCtor) && aCtor instanceof aCtor &&
+                               _.isFunction(bCtor) && bCtor instanceof bCtor)
+                          && ('constructor' in a && 'constructor' in b)) {
+        return false;
+      }
+    }
+    // Assume equality for cyclic structures. The algorithm for detecting cyclic
+    // structures is adapted from ES 5.1 section 15.12.3, abstract operation `JO`.
+    
+    // Initializing stack of traversed objects.
+    // It's done here since we only need them for objects and arrays comparison.
+    aStack = aStack || [];
+    bStack = bStack || [];
+    var length = aStack.length;
+    while (length--) {
+      // Linear search. Performance is inversely proportional to the number of
+      // unique nested structures.
+      if (aStack[length] === a) return bStack[length] === b;
+    }
+
+    // Add the first object to the stack of traversed objects.
+    aStack.push(a);
+    bStack.push(b);
+
+    // Recursively compare objects and arrays.
+    if (areArrays) {
+      // Compare array lengths to determine if a deep comparison is necessary.
+      length = a.length;
+      if (length !== b.length) return false;
+      // Deep compare the contents, ignoring non-numeric properties.
+      while (length--) {
+        if (!eq(a[length], b[length], aStack, bStack)) return false;
+      }
+    } else {
+      // Deep compare objects.
+      var keys = _.keys(a), key;
+      length = keys.length;
+      // Ensure that both objects contain the same number of properties before comparing deep equality.
+      if (_.keys(b).length !== length) return false;
+      while (length--) {
+        // Deep compare each member
+        key = keys[length];
+        if (!(_.has(b, key) && eq(a[key], b[key], aStack, bStack))) return false;
+      }
+    }
+    // Remove the first object from the stack of traversed objects.
+    aStack.pop();
+    bStack.pop();
+    return true;
+  };
+
+  // Perform a deep comparison to check if two objects are equal.
+  _.isEqual = function(a, b) {
+    return eq(a, b);
+  };
+
+  // Is a given array, string, or object empty?
+  // An "empty" object has no enumerable own-properties.
+  _.isEmpty = function(obj) {
+    if (obj == null) return true;
+    if (isArrayLike(obj) && (_.isArray(obj) || _.isString(obj) || _.isArguments(obj))) return obj.length === 0;
+    return _.keys(obj).length === 0;
+  };
+
+  // Is a given value a DOM element?
+  _.isElement = function(obj) {
+    return !!(obj && obj.nodeType === 1);
+  };
+
+  // Is a given value an array?
+  // Delegates to ECMA5's native Array.isArray
+  _.isArray = nativeIsArray || function(obj) {
+    return toString.call(obj) === '[object Array]';
+  };
+
+  // Is a given variable an object?
+  _.isObject = function(obj) {
+    var type = typeof obj;
+    return type === 'function' || type === 'object' && !!obj;
+  };
+
+  // Add some isType methods: isArguments, isFunction, isString, isNumber, isDate, isRegExp, isError.
+  _.each(['Arguments', 'Function', 'String', 'Number', 'Date', 'RegExp', 'Error'], function(name) {
+    _['is' + name] = function(obj) {
+      return toString.call(obj) === '[object ' + name + ']';
+    };
+  });
+
+  // Define a fallback version of the method in browsers (ahem, IE < 9), where
+  // there isn't any inspectable "Arguments" type.
+  if (!_.isArguments(arguments)) {
+    _.isArguments = function(obj) {
+      return _.has(obj, 'callee');
+    };
+  }
+
+  // Optimize `isFunction` if appropriate. Work around some typeof bugs in old v8,
+  // IE 11 (#1621), and in Safari 8 (#1929).
+  if (typeof /./ != 'function' && typeof Int8Array != 'object') {
+    _.isFunction = function(obj) {
+      return typeof obj == 'function' || false;
+    };
+  }
+
+  // Is a given object a finite number?
+  _.isFinite = function(obj) {
+    return isFinite(obj) && !isNaN(parseFloat(obj));
+  };
+
+  // Is the given value `NaN`? (NaN is the only number which does not equal itself).
+  _.isNaN = function(obj) {
+    return _.isNumber(obj) && obj !== +obj;
+  };
+
+  // Is a given value a boolean?
+  _.isBoolean = function(obj) {
+    return obj === true || obj === false || toString.call(obj) === '[object Boolean]';
+  };
+
+  // Is a given value equal to null?
+  _.isNull = function(obj) {
+    return obj === null;
+  };
+
+  // Is a given variable undefined?
+  _.isUndefined = function(obj) {
+    return obj === void 0;
+  };
+
+  // Shortcut function for checking if an object has a given property directly
+  // on itself (in other words, not on a prototype).
+  _.has = function(obj, key) {
+    return obj != null && hasOwnProperty.call(obj, key);
+  };
+
+  // Utility Functions
+  // -----------------
+
+  // Run Underscore.js in *noConflict* mode, returning the `_` variable to its
+  // previous owner. Returns a reference to the Underscore object.
+  _.noConflict = function() {
+    root._ = previousUnderscore;
+    return this;
+  };
+
+  // Keep the identity function around for default iteratees.
+  _.identity = function(value) {
+    return value;
+  };
+
+  // Predicate-generating functions. Often useful outside of Underscore.
+  _.constant = function(value) {
+    return function() {
+      return value;
+    };
+  };
+
+  _.noop = function(){};
+
+  _.property = function(key) {
+    return function(obj) {
+      return obj == null ? void 0 : obj[key];
+    };
+  };
+
+  // Generates a function for a given object that returns a given property.
+  _.propertyOf = function(obj) {
+    return obj == null ? function(){} : function(key) {
+      return obj[key];
+    };
+  };
+
+  // Returns a predicate for checking whether an object has a given set of 
+  // `key:value` pairs.
+  _.matcher = _.matches = function(attrs) {
+    attrs = _.extendOwn({}, attrs);
+    return function(obj) {
+      return _.isMatch(obj, attrs);
+    };
+  };
+
+  // Run a function **n** times.
+  _.times = function(n, iteratee, context) {
+    var accum = Array(Math.max(0, n));
+    iteratee = optimizeCb(iteratee, context, 1);
+    for (var i = 0; i < n; i++) accum[i] = iteratee(i);
+    return accum;
+  };
+
+  // Return a random integer between min and max (inclusive).
+  _.random = function(min, max) {
+    if (max == null) {
+      max = min;
+      min = 0;
+    }
+    return min + Math.floor(Math.random() * (max - min + 1));
+  };
+
+  // A (possibly faster) way to get the current timestamp as an integer.
+  _.now = Date.now || function() {
+    return new Date().getTime();
+  };
+
+   // List of HTML entities for escaping.
+  var escapeMap = {
+    '&': '&amp;',
+    '<': '&lt;',
+    '>': '&gt;',
+    '"': '&quot;',
+    "'": '&#x27;',
+    '`': '&#x60;'
+  };
+  var unescapeMap = _.invert(escapeMap);
+
+  // Functions for escaping and unescaping strings to/from HTML interpolation.
+  var createEscaper = function(map) {
+    var escaper = function(match) {
+      return map[match];
+    };
+    // Regexes for identifying a key that needs to be escaped
+    var source = '(?:' + _.keys(map).join('|') + ')';
+    var testRegexp = RegExp(source);
+    var replaceRegexp = RegExp(source, 'g');
+    return function(string) {
+      string = string == null ? '' : '' + string;
+      return testRegexp.test(string) ? string.replace(replaceRegexp, escaper) : string;
+    };
+  };
+  _.escape = createEscaper(escapeMap);
+  _.unescape = createEscaper(unescapeMap);
+
+  // If the value of the named `property` is a function then invoke it with the
+  // `object` as context; otherwise, return it.
+  _.result = function(object, property, fallback) {
+    var value = object == null ? void 0 : object[property];
+    if (value === void 0) {
+      value = fallback;
+    }
+    return _.isFunction(value) ? value.call(object) : value;
+  };
+
+  // Generate a unique integer id (unique within the entire client session).
+  // Useful for temporary DOM ids.
+  var idCounter = 0;
+  _.uniqueId = function(prefix) {
+    var id = ++idCounter + '';
+    return prefix ? prefix + id : id;
+  };
+
+  // By default, Underscore uses ERB-style template delimiters, change the
+  // following template settings to use alternative delimiters.
+  _.templateSettings = {
+    evaluate    : /<%([\s\S]+?)%>/g,
+    interpolate : /<%=([\s\S]+?)%>/g,
+    escape      : /<%-([\s\S]+?)%>/g
+  };
+
+  // When customizing `templateSettings`, if you don't want to define an
+  // interpolation, evaluation or escaping regex, we need one that is
+  // guaranteed not to match.
+  var noMatch = /(.)^/;
+
+  // Certain characters need to be escaped so that they can be put into a
+  // string literal.
+  var escapes = {
+    "'":      "'",
+    '\\':     '\\',
+    '\r':     'r',
+    '\n':     'n',
+    '\u2028': 'u2028',
+    '\u2029': 'u2029'
+  };
+
+  var escaper = /\\|'|\r|\n|\u2028|\u2029/g;
+
+  var escapeChar = function(match) {
+    return '\\' + escapes[match];
+  };
+
+  // JavaScript micro-templating, similar to John Resig's implementation.
+  // Underscore templating handles arbitrary delimiters, preserves whitespace,
+  // and correctly escapes quotes within interpolated code.
+  // NB: `oldSettings` only exists for backwards compatibility.
+  _.template = function(text, settings, oldSettings) {
+    if (!settings && oldSettings) settings = oldSettings;
+    settings = _.defaults({}, settings, _.templateSettings);
+
+    // Combine delimiters into one regular expression via alternation.
+    var matcher = RegExp([
+      (settings.escape || noMatch).source,
+      (settings.interpolate || noMatch).source,
+      (settings.evaluate || noMatch).source
+    ].join('|') + '|$', 'g');
+
+    // Compile the template source, escaping string literals appropriately.
+    var index = 0;
+    var source = "__p+='";
+    text.replace(matcher, function(match, escape, interpolate, evaluate, offset) {
+      source += text.slice(index, offset).replace(escaper, escapeChar);
+      index = offset + match.length;
+
+      if (escape) {
+        source += "'+\n((__t=(" + escape + "))==null?'':_.escape(__t))+\n'";
+      } else if (interpolate) {
+        source += "'+\n((__t=(" + interpolate + "))==null?'':__t)+\n'";
+      } else if (evaluate) {
+        source += "';\n" + evaluate + "\n__p+='";
+      }
+
+      // Adobe VMs need the match returned to produce the correct offest.
+      return match;
+    });
+    source += "';\n";
+
+    // If a variable is not specified, place data values in local scope.
+    if (!settings.variable) source = 'with(obj||{}){\n' + source + '}\n';
+
+    source = "var __t,__p='',__j=Array.prototype.join," +
+      "print=function(){__p+=__j.call(arguments,'');};\n" +
+      source + 'return __p;\n';
+
+    try {
+      var render = new Function(settings.variable || 'obj', '_', source);
+    } catch (e) {
+      e.source = source;
+      throw e;
+    }
+
+    var template = function(data) {
+      return render.call(this, data, _);
+    };
+
+    // Provide the compiled source as a convenience for precompilation.
+    var argument = settings.variable || 'obj';
+    template.source = 'function(' + argument + '){\n' + source + '}';
+
+    return template;
+  };
+
+  // Add a "chain" function. Start chaining a wrapped Underscore object.
+  _.chain = function(obj) {
+    var instance = _(obj);
+    instance._chain = true;
+    return instance;
+  };
+
+  // OOP
+  // ---------------
+  // If Underscore is called as a function, it returns a wrapped object that
+  // can be used OO-style. This wrapper holds altered versions of all the
+  // underscore functions. Wrapped objects may be chained.
+
+  // Helper function to continue chaining intermediate results.
+  var result = function(instance, obj) {
+    return instance._chain ? _(obj).chain() : obj;
+  };
+
+  // Add your own custom functions to the Underscore object.
+  _.mixin = function(obj) {
+    _.each(_.functions(obj), function(name) {
+      var func = _[name] = obj[name];
+      _.prototype[name] = function() {
+        var args = [this._wrapped];
+        push.apply(args, arguments);
+        return result(this, func.apply(_, args));
+      };
+    });
+  };
+
+  // Add all of the Underscore functions to the wrapper object.
+  _.mixin(_);
+
+  // Add all mutator Array functions to the wrapper.
+  _.each(['pop', 'push', 'reverse', 'shift', 'sort', 'splice', 'unshift'], function(name) {
+    var method = ArrayProto[name];
+    _.prototype[name] = function() {
+      var obj = this._wrapped;
+      method.apply(obj, arguments);
+      if ((name === 'shift' || name === 'splice') && obj.length === 0) delete obj[0];
+      return result(this, obj);
+    };
+  });
+
+  // Add all accessor Array functions to the wrapper.
+  _.each(['concat', 'join', 'slice'], function(name) {
+    var method = ArrayProto[name];
+    _.prototype[name] = function() {
+      return result(this, method.apply(this._wrapped, arguments));
+    };
+  });
+
+  // Extracts the result from a wrapped and chained object.
+  _.prototype.value = function() {
+    return this._wrapped;
+  };
+
+  // Provide unwrapping proxy for some methods used in engine operations
+  // such as arithmetic and JSON stringification.
+  _.prototype.valueOf = _.prototype.toJSON = _.prototype.value;
+  
+  _.prototype.toString = function() {
+    return '' + this._wrapped;
+  };
+
+  // AMD registration happens at the end for compatibility with AMD loaders
+  // that may not enforce next-turn semantics on modules. Even though general
+  // practice for AMD registration is to be anonymous, underscore registers
+  // as a named module because, like jQuery, it is a base library that is
+  // popular enough to be bundled in a third party lib, but not be part of
+  // an AMD load request. Those cases could generate an error when an
+  // anonymous define() is called outside of a loader request.
+  if (typeof define === 'function' && define.amd) {
+    define('underscore', [], function() {
+      return _;
+    });
+  }
+}.call(this));

+ 214 - 0
2018专题/我的冒险世界/src/pc.html

@@ -0,0 +1,214 @@
+<!doctype html>
+<html>
+
+<head>
+    <meta charset="UTF-8">
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="renderer" content="webkit">
+    <title>我的冒险世界_我的冒险世界动画_MC动画_多玩我的世界专区</title>
+    <meta name="keywords" content="我的冒险世界,我的冒险世界动画,MC动画,多玩我的冒险世界" />
+    <meta name="description" content="我的冒险世界动画故事:末影之王苏醒之后,召集了部下四大天王,肆虐村庄,并想要重新建立起末影的世界秩序。为了弥补过错,主角李葛哥和罗小丁以及天才建筑少年零结伴同行,展开了属于他们的冒险世界。" />
+    <script src="http://pub.dwstatic.com/common/js/jquery.js"></script><!--ignore-->
+    <link href="sass/pc.scss" rel="stylesheet">
+</head>
+
+<body>
+    <script src="http://www.duowan.com/public/s/i/navbar/navbar.js" charset="utf-8"></script><!--ignore-->
+
+    <div class="mc-wrap">
+        <div class="wrap-inner">
+            <div class="mc-top">
+                <div class="fl mc-news">
+                    <p>初一少年李葛格穿越到了MC游戏世界中,迷茫之际,遇到了在三个月前穿越过来时与意外跟苦力怕合体的三年级熊孩子罗小丁。两人一同在村庄里生活,找寻重回现实世界的方法,并最终解决了解除了MC游戏世界中上界的危机,但是大BOSS邪恶的女巫逃跑到下界,主角一行人为了救出危机中的姐姐毅然决然的奔赴到下界,开启了新一轮的冒险,而在下界将有更多的危机在等待着他们......</p>
+                    <ul>
+                        <li><a href="" target="_blank">微博关注我</a></li>
+                        <li><a href="" target="_blank">QQ空间踩我</a></li>
+                    </ul>
+                </div>
+                <div class="fr mc-qrcode">
+                    <img src="http://fed.webdev.ouj.com/124x124" alt="">
+                </div>
+            </div>
+
+            <div class="mc-video">
+                <embed id="1499842070693" name="1499842070693" src="http://assets.dwstatic.com/video/vppp.swf" wmode="transparent" allowFullScreen="true" quality="high"  height="100%"  width="100%" align="middle" allowScriptAccess="always" flashvars="uu=a04808d307&vu=&channelId=mc&auto_play=0&sdk=dw&vid=3503020&logo=dw&stop_cb=stop_cb&no_danmu=1&from=vduowanweb" type="application/x-shockwave-flash"></embed>
+            </div>
+
+            <div class="mc-albums">
+                <div class="mc-albums-hd">
+                    <h1>《心灵方块:我的冒险世界2》特别篇:小草外传</h1>
+                    <ul>
+                        <li class="albums-tab current">第一季视频</li>
+                    </ul>
+                    <div class="btn-collect"><span>订阅</span></div>
+                </div>
+                <div class="mc-albums-bd">
+                    <ul>
+                        <li data-vid="2644354">
+                            <img src="http://img.dwstatic.com/www/1607/332539349583/1468584346572.jpg" alt="">
+                            <em class="i-link">第一集正式发布!</em>
+                        </li>
+                        <li data-vid="2720352">
+                            <img src="http://img.dwstatic.com/mc/1607/333107458601/1469154245759.jpg" alt="">
+                            <em class="i-link">第二集:小黑降临</em>
+                        </li>
+                        <li data-vid="2800796">
+                            <img src="http://img.dwstatic.com/mc/1607/333716939827/1469764375162.jpg" alt="">
+                            <em class="i-link">第三集:MC版生化危机来袭</em>
+                        </li>
+                        <li data-vid="2880188">
+                            <img src="http://img.dwstatic.com/mc/1608/334332273338/1470377132679.jpg" alt="">
+                            <em class="i-link">第四集:怒肛僵尸王</em>
+                        </li>
+                        <li data-vid="2956164">
+                            <img src="http://img.dwstatic.com/mc/1608/334928586819/1470973392409.jpg" alt="">
+                            <em class="i-link">第五集:丁丁保卫战</em>
+                        </li>
+                        <li data-vid="3092068">
+                            <img src="http://img.dwstatic.com/mc/1608/336137942043/1472187280459.jpg" alt="">
+                            <em class="i-link">第六集:绝地大反击</em>
+                        </li>
+                        <li data-vid="3147823">
+                            <img src="http://img.dwstatic.com/mc/1609/336739978567/1472784783886.jpg" alt="">
+                            <em class="i-link">第七集:异世界相遇!</em>
+                        </li>
+                        <li data-vid="3182867">
+                            <img src="http://img.dwstatic.com/mc/1609/337345639156/1473390443935.jpg" alt="">
+                            <em class="i-link">第八集:异世界成长计划</em>
+                        </li>
+                        <li data-vid="3286812">
+                            <img src="http://img.dwstatic.com/mc/1610/339217764295/1475263670156.jpg" alt="">
+                            <em class="i-link">第九集:菊花村的陷阱</em>
+                        </li>
+                        <li data-vid="3348718">
+                            <img src="http://img.dwstatic.com/mc/1610/339851808728/1475901713929.jpg" alt="">
+                            <em class="i-link">第十集:村花来了</em>
+                        </li>
+                        <li data-vid="3373894">
+                            <img src="http://img.dwstatic.com/mc/1610/341867755052/1477912746555.jpg" alt="">
+                            <em class="i-link">第十一集:箭人骷髅王</em>
+                        </li>
+                        <li data-vid="3408502">
+                            <img src="http://img.dwstatic.com/mc/1610/341867755052/1477912841585.jpg" alt="">
+                            <em class="i-link">第十二集:爱的冲击波</em>
+                        </li>
+                        <li data-vid="3443399">
+                            <img src="http://img.dwstatic.com/mc/1610/341867755052/1477913155138.jpg" alt="">
+                            <em class="i-link">第十三集:寻奶之旅</em>
+                        </li>
+                        <li data-vid="3476212">
+                            <img src="http://img.dwstatic.com/mc/1702/351195502125/1487240314802.jpg" alt="">
+                            <em class="i-link">第十四集:爆炸狂欢会</em>
+                        </li>
+                        <li data-vid="3496963">
+                            <img src="http://img.dwstatic.com/mc/1702/351195502125/1487240756024.jpg" alt="">
+                            <em class="i-link">第十五集:生吞罗小丁</em>
+                        </li>
+                        <li data-vid="3499931">
+                            <img src="http://img.dwstatic.com/mc/1702/351195502125/1487241053030.jpg" alt="">
+                            <em class="i-link">第十六集:最强的武器</em>
+                        </li>
+                        <li data-vid="3503020">
+                            <img src="http://img.dwstatic.com/mc/1702/351195502125/1487242331307.jpg" alt="">
+                            <em class="i-link">第十七集:新世界大门</em>
+                        </li>
+                    </ul>
+                </div>
+            </div>
+
+            <div class="mc-section">
+                <span></span>
+                <h3>我的冒险世界</h3>
+                <p>在6月1日-30日进行的“说说你心中的《我的世界》周边”活动中,大量的玩家参与到了活动中,并提出了很多天马行空的创意,其中不乏一些日后可能会和大家见面的周边产品,让我们感受到了中国玩家的才华和热情。为了答谢玩家对于周边商城的关注,我们将在7月10日-7月16日展开开业庆典,一起来了解一下开业庆典期间的活动。</p>
+            </div>
+
+            <div class="mc-comment"></div>
+        </div>
+    </div>    
+
+    <script src="http://pub.dwstatic.com/common/js/dwudbproxy.js"></script>
+    <script>
+        var bokeId = 1805501345;
+        var $btnCollect = $(".btn-collect");
+
+        //播客是否被订阅
+        function isVideoSubscribe() {
+
+            $.ajax({
+                url: 'http://video.duowan.com/jsapi/getUserSubscribe',
+                type: 'get',
+                dataType: 'jsonp',
+                success: function(ret) {
+                    var len = ret.list.length;
+
+                    for (var i=0; i< len; i++) {
+                        if (ret.list[i]["user_id"] == bokeId) {
+                            $btnCollect.addClass("is-collected").html("<span>已订阅</span>")
+                        }
+                    }
+                }
+            })
+        }
+
+        //订阅播客
+        function subscribeBoke() {
+            
+            $.ajax({
+                url: 'http://video.duowan.com/?r=subscribe/subscribe&uid='+bokeId,
+                type: 'get',
+                dataType: 'jsonp',
+                success: function(ret) {
+                    $btnCollect.addClass("is-collected").html("<span>已订阅</span>")
+                }
+            })
+        }
+
+        $(function() {
+            $(".albums-tab").on("click", function() {
+                var index = $(this).index();
+                $(this).addClass("current").siblings().removeClass("current");
+                $(".mc-albums-bd ul").eq(index).show().siblings().hide();
+            })
+
+            $(".mc-albums-bd ul").on("click", "li", function() {
+                var vid = $(this).attr("data-vid");
+                var videoTitle = $(this).attr("data-title");
+                if($(this).hasClass("disable")) {
+                    alert($(this).find("span").text() + " 敬请期待!");
+                    return;
+                }
+
+                if(!vid && $(this).hasClass("current")) {
+                    return;
+                }
+                $(this).addClass("current").siblings().removeClass("current");
+
+                var timeStr = new Date().getTime();
+                var swfStr = '<embed id="'+timeStr+'" name="'+timeStr+'" src="http://assets.dwstatic.com/video/vppp.swf" wmode="transparent" allowFullScreen="true" quality="high"  height="100%"  width="100%" align="middle" allowScriptAccess="always" flashvars="uu=a04808d307&vu=&channelId=mc&auto_play=0&sdk=dw&vid='+vid+'&logo=dw&stop_cb=stop_cb&no_danmu=1&from=vduowanweb" type="application/x-shockwave-flash"></embed>'
+                $(".mc-video").html(swfStr);
+                $(".mc-albums-hd h1").text(videoTitle);
+            })
+
+            $(".btn-collect").on("click",function(){
+                var $this = $("this");
+
+                if (!dwUDBProxy.isLogin()) {
+                    dwUDBProxy.login();
+                }
+
+                if($this.hasClass("is-collected")) {
+                    return;
+                }
+
+                subscribeBoke();
+            });
+        })
+        var comment3Uniqid = "5620efb149eb9acf0f885c7b7cef264b";
+        isVideoSubscribe();
+    </script>
+
+    <div id="without-tvfix"></div>
+    <script id="dw-footer-without-gem" charset="utf-8" src="http://www.duowan.com/assets/js/duowanFooter.js"></script><!--ignore-->
+</body>
+</html>

+ 110 - 0
2018专题/我的冒险世界/src/sass/active.scss

@@ -0,0 +1,110 @@
+@charset "UTF-8";
+$yahei: "Microsoft YaHei";
+$pingfan:PingFangSC-Regular;
+
+/*通用变量*/
+
+$baseFontSize:14px;
+$baseFontColor:#000;
+/*基础样式*/
+
+@import "base/base";
+@import "base/mixins";
+@import 'base/ui-dialog';
+
+
+html,body{
+    height: 100%;
+}
+body {
+    font-size: $baseFontSize;
+    font-family:$pingfan, $yahei, Helvetica, Arial, sans-serif;
+    background-color: #ffffff;
+}
+
+.hide{
+    display: none;
+}
+
+a {
+    text-decoration: none;
+    color: $baseFontColor;
+    &.common-link {
+        display: block;
+        width: 100%;
+        height: 100%;
+    }
+}
+
+@import 'page/upload';
+@import 'page/list';
+@import 'page/details';
+
+
+
+.data-wrap {
+    @include clearfix;
+    display: none;
+    .data-item{
+        float: left;
+        width: px2rem750(330);
+        margin: 0 px2rem750(27) px2rem750(25) 0; 
+        a{
+            display: block;
+            width: 100%;
+            height: px2rem750(186);
+            img{
+                width: 100%;
+                height: 100%;
+            }
+        }
+        .desc-wrap{
+            @include clearfix;
+            .desc{
+                float: left;
+                p{
+                    line-height: px2rem750(60);
+                }
+                i{
+                    display: inline-block;
+                    width: px2rem750(26);
+                    height:px2rem750(26);
+                    margin-right: px2rem750(25);
+                    margin-left:px2rem750(5);
+                }
+                .name{
+                    @include ellipsis;
+                    width: px2rem750(218);
+                    i{  
+                        background-image: url('/src/img/icon_user.jpg') ;
+                        background-size:100% 100%;
+                        background-repeat: no-repeat; 
+                    }
+                }
+                .sup-num{
+                    i{
+                        background-image: url('/src/img/icon_support.png') ;
+                        background-size:100% 100%;
+                        background-repeat: no-repeat; 
+                    }
+                }
+            }
+            
+        }
+    }
+}
+
+.g-support{
+    float: right;
+    width: px2rem750(106);
+    height:px2rem750(54);
+    line-height: px2rem750(50);
+    text-align: center;
+    border:  1px solid #e1e1e1;
+    margin-top: px2rem750(30);
+}
+
+.ui-dialog-content {
+    text-align: center;
+    line-height: px2rem750(55);
+}

+ 508 - 0
2018专题/我的冒险世界/src/sass/base/_base.scss

@@ -0,0 +1,508 @@
+@charset "UTF-8";
+
+/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
+
+/**
+ * 1. Set default font family to sans-serif.
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
+ *    user zoom.
+ */
+
+html {
+  font-family: sans-serif; /* 1 */
+  -ms-text-size-adjust: 100%; /* 2 */
+  -webkit-text-size-adjust: 100%; /* 2 */
+}
+
+/**
+ * Remove default margin.
+ */
+
+body {
+  margin: 0;
+}
+
+/* HTML5 display definitions
+   ========================================================================== */
+
+/**
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
+ * and Firefox.
+ * Correct `block` display not defined for `main` in IE 11.
+ */
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+menu,
+nav,
+section,
+summary {
+  display: block;
+}
+
+/**
+ * 1. Correct `inline-block` display not defined in IE 8/9.
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
+ */
+
+audio,
+canvas,
+progress,
+video {
+  display: inline-block; /* 1 */
+  vertical-align: baseline; /* 2 */
+}
+
+/**
+ * Prevent modern browsers from displaying `audio` without controls.
+ * Remove excess height in iOS 5 devices.
+ */
+
+audio:not([controls]) {
+  display: none;
+  height: 0;
+}
+
+/**
+ * Address `[hidden]` styling not present in IE 8/9/10.
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
+ */
+
+[hidden],
+template {
+  display: none;
+}
+
+/* Links
+   ========================================================================== */
+
+/**
+ * Remove the gray background color from active links in IE 10.
+ */
+
+a {
+  background-color: transparent;
+}
+
+/**
+ * Improve readability when focused and also mouse hovered in all browsers.
+ */
+
+a:active,
+a:hover {
+  outline: 0;
+}
+
+/* Text-level semantics
+   ========================================================================== */
+
+/**
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
+ */
+
+abbr[title] {
+  border-bottom: 1px dotted;
+}
+
+/**
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
+ */
+
+b,
+strong {
+  font-weight: bold;
+}
+
+/**
+ * Address styling not present in Safari and Chrome.
+ */
+
+dfn {
+  font-style: italic;
+}
+
+/**
+ * Address variable `h1` font-size and margin within `section` and `article`
+ * contexts in Firefox 4+, Safari, and Chrome.
+ */
+
+h1 {
+  font-size: 2em;
+  margin: 0.67em 0;
+}
+
+/**
+ * Address styling not present in IE 8/9.
+ */
+
+mark {
+  background: #ff0;
+  color: #000;
+}
+
+/**
+ * Address inconsistent and variable font size in all browsers.
+ */
+
+small {
+  font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
+ */
+
+sub,
+sup {
+  font-size: 75%;
+  line-height: 0;
+  position: relative;
+  vertical-align: baseline;
+}
+
+sup {
+  top: -0.5em;
+}
+
+sub {
+  bottom: -0.25em;
+}
+
+/* Embedded content
+   ========================================================================== */
+
+/**
+ * Remove border when inside `a` element in IE 8/9/10.
+ */
+
+img {
+  border: 0;
+}
+
+/**
+ * Correct overflow not hidden in IE 9/10/11.
+ */
+
+svg:not(:root) {
+  overflow: hidden;
+}
+
+/* Grouping content
+   ========================================================================== */
+
+/**
+ * Address margin not present in IE 8/9 and Safari.
+ */
+
+figure {
+  margin: 1em 40px;
+}
+
+/**
+ * Address differences between Firefox and other browsers.
+ */
+
+hr {
+  -moz-box-sizing: content-box;
+  box-sizing: content-box;
+  height: 0;
+}
+
+/**
+ * Contain overflow in all browsers.
+ */
+
+pre {
+  overflow: auto;
+}
+
+/**
+ * Address odd `em`-unit font size rendering in all browsers.
+ */
+
+code,
+kbd,
+pre,
+samp {
+  font-family: monospace, monospace;
+  font-size: 1em;
+}
+
+/* Forms
+   ========================================================================== */
+
+/**
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
+ * styling of `select`, unless a `border` property is set.
+ */
+
+/**
+ * 1. Correct color not being inherited.
+ *    Known issue: affects color of disabled elements.
+ * 2. Correct font properties not being inherited.
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
+ */
+
+button,
+input,
+optgroup,
+select,
+textarea {
+  color: inherit; /* 1 */
+  font: inherit; /* 2 */
+  margin: 0; /* 3 */
+  -webkit-tap-highlight-color: rgba(0,0,0,0);
+  border: 0;
+  border-radius: 0;
+  outline: none;
+}
+
+/**
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
+ */
+
+button {
+  overflow: visible;
+}
+
+/**
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
+ * All other form control elements do not inherit `text-transform` values.
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
+ * Correct `select` style inheritance in Firefox.
+ */
+
+button,
+select {
+  text-transform: none;
+}
+
+/**
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
+ *    and `video` controls.
+ * 2. Correct inability to style clickable `input` types in iOS.
+ * 3. Improve usability and consistency of cursor style between image-type
+ *    `input` and others.
+ */
+
+button,
+html input[type="button"], /* 1 */
+input[type="reset"],
+input[type="submit"] {
+  // -webkit-appearance: button; /* 2 */
+  cursor: pointer; /* 3 */
+}
+
+/**
+ * Re-set default cursor for disabled elements.
+ */
+
+button[disabled],
+html input[disabled] {
+  cursor: default;
+}
+
+/**
+ * Remove inner padding and border in Firefox 4+.
+ */
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+  border: 0;
+  padding: 0;
+}
+
+/**
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
+ * the UA stylesheet.
+ */
+
+input {
+  line-height: normal;
+}
+
+/**
+ * It's recommended that you don't attempt to style these elements.
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
+ *
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
+ * 2. Remove excess padding in IE 8/9/10.
+ */
+
+input[type="checkbox"],
+input[type="radio"] {
+  box-sizing: border-box; /* 1 */
+  padding: 0; /* 2 */
+}
+
+/**
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
+ * `font-size` values of the `input`, it causes the cursor style of the
+ * decrement button to change from `default` to `text`.
+ */
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+  height: auto;
+}
+
+/**
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
+ *    (include `-moz` to future-proof).
+ */
+
+input[type="search"] {
+  -webkit-appearance: textfield; /* 1 */
+  -moz-box-sizing: content-box;
+  -webkit-box-sizing: content-box; /* 2 */
+  box-sizing: content-box;
+}
+
+/**
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
+ * Safari (but not Chrome) clips the cancel button when the search input has
+ * padding (and `textfield` appearance).
+ */
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+  -webkit-appearance: none;
+}
+
+/**
+ * Define consistent border, margin, and padding.
+ */
+
+fieldset {
+  border: 1px solid #c0c0c0;
+  margin: 0 2px;
+  padding: 0.35em 0.625em 0.75em;
+}
+
+/**
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
+ */
+
+legend {
+  border: 0; /* 1 */
+  padding: 0; /* 2 */
+}
+
+/**
+ * Remove default vertical scrollbar in IE 8/9/10/11.
+ */
+
+textarea {
+  overflow: auto;
+}
+
+/**
+ * Don't inherit the `font-weight` (applied by a rule above).
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
+ */
+
+optgroup {
+  font-weight: bold;
+}
+
+/* Tables
+   ========================================================================== */
+
+/**
+ * Remove most spacing between table cells.
+ */
+
+table {
+  border-collapse: collapse;
+  border-spacing: 0;
+}
+
+td,
+th {
+  padding: 0;
+}
+th :first-child, td :first-child {
+  margin-top: 0;
+}
+th :last-child, td :last-child {
+  margin-bottom: 0;
+}
+
+/* reset */
+
+html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+article, aside, canvas, details, figcaption, figure, footer, header, hgroup, menu, nav, section, summary,
+time, mark, audio, video, input  {
+    margin: 0;
+    padding: 0;
+    border: none;
+    outline: 0;
+    font-size: 100%;
+    font: inherit;
+    vertical-align: baseline;
+}
+
+table, caption, tbody, tfoot, thead, tr, th, td{
+    // margin: 0;
+    // padding: 0;
+    // border: none;
+    outline: 0;
+    font-size: 100%;
+    font: inherit;
+    vertical-align: baseline;
+}
+
+html, body, form, fieldset, p, div, h1, h2, h3, h4, h5, h6 {
+    -webkit-text-size-adjust: none;
+}
+body{ 
+    line-height: 1;
+    font-size: 100%; 
+    -webkit-text-size-adjust:100%;
+}
+
+article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
+    display: block;
+}
+
+ol, ul {
+    list-style: none;
+}
+
+blockquote, q {
+    quotes: none;
+}
+
+blockquote:before, blockquote:after,
+q:before, q:after {
+    content: '';
+    content: none;
+}
+
+table {
+    border-collapse: collapse;
+    border-spacing: 0;
+}
+
+*{
+    tap-highlight-color: rgba(0,0,0,0);
+    -webkit-tap-highlight-color: rgba(0,0,0,0);
+    -ms-tap-highlight-color: rgba(0,0,0,0);
+    -webkit-box-sizing: border-box;
+    -moz-box-sizing: border-box;
+    -ms-box-sizing: border-box;
+    box-sizing: border-box;
+}

+ 252 - 0
2018专题/我的冒险世界/src/sass/base/_mixins.scss

@@ -0,0 +1,252 @@
+@charset "UTF-8";
+$vari: 640 / 640;
+$varj : 750 / 640;
+
+@function px2rem($size) {
+    @return $size / 20 / 2 / $vari+rem;
+}
+
+@function -px2rem($size) {
+    @return - $size / 20 / 2 / $vari+rem;
+}
+
+@function px2rem750($size) {
+    @return $size / 20 / 2 / $varj+rem;
+}
+
+@function -px2rem750($size) {
+    @return - $size / 20 / 2 / $varj+rem;
+}
+
+@mixin reset {
+    margin: 0;
+    padding: 0;
+}
+
+@mixin inline-block {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+}
+
+@mixin clearfix {
+    *zoom: 1;
+    &:before,
+    &:after {
+        content: "";
+        display: table;
+        line-height: 0;
+    }
+    &:after {
+        clear: both;
+    }
+}
+
+
+/* 弹性盒子webkit-box */
+
+@mixin webkitbox( $type: 1) {
+    display: -webkit-box;
+    @if $type==1 {
+        -webkit-box-orient: horizontal;
+    } //水平
+    @if $type==2 {
+        -webkit-box-orient: vertical;
+    } //垂直
+}
+
+@mixin flex($flex) {
+    //设置盒子大小
+    -webkit-box-flex: $flex;
+}
+
+@mixin size($value) {
+    width: $value;
+    height: $value;
+}
+
+@mixin size($width, $height) {
+    width: $width;
+    height: $height;
+}
+
+@mixin hide-text {
+    text-indent: 100%;
+    white-space: nowrap;
+    overflow: hidden;
+}
+
+@mixin break {
+    -ms-word-break: break-all;
+    word-break: break-all;
+    word-break: break-word;
+}
+
+
+/* 文字溢出 */
+
+@mixin ellipsis {
+    white-space: nowrap;
+    overflow: hidden;
+    -ms-text-overflow: ellipsis;
+    -o-text-overflow: ellipsis;
+    text-overflow: ellipsis;
+}
+
+@mixin pre {
+    white-space: pre-wrap;
+    white-space: -moz-pre-wrap;
+    white-space: -pre-wrap;
+    white-space: -o-pre-wrap;
+    word-wrap: break-word;
+}
+
+@mixin wrap {
+    text-wrap: wrap;
+    white-space: pre-wrap;
+    white-space: -moz-pre-wrap;
+    word-wrap: break-word;
+}
+
+// http://www.hicss.net/solve-change-line-in-css/
+@mixin nowrap {
+    white-space: nowrap;
+    word-break: keep-all;
+}
+
+@mixin opacity($opacity) {
+    opacity: $opacity;
+    filter: alpha(opacity=#{$opacity * 100});
+}
+
+@mixin min-height($height) {
+    min-height: $height;
+    height: auto !important;
+    _height: $height;
+}
+
+
+/* 旋转 */
+
+@mixin rotate($value:180deg) {
+    -webkit-transform: rotate($value);
+    -moz-transform: rotate($value);
+    -ms-transform: rotate($value);
+    transform: rotate($value);
+}
+
+
+/* css角标 */
+
+@mixin u-arrow-left($value:6px, $bordercolor:#fff) {
+    border-width: $value;
+    border-color: transparent $bordercolor transparent transparent;
+    border-style: solid;
+}
+
+// Gradients  添加渐变过渡函数,20140110 add by petsa
+@mixin gradient($color-form, $color-to) {
+    background: $color-form; // Old browsers
+    background: -moz-linear-gradient(top, $color-form 0%, $color-to 100%); // FF3.6+
+    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, $color-form), color-stop(100%, $color-to)); // Chrome,Safari4+
+    background: -webkit-linear-gradient(top, $color-form 0%, $color-to 100%); // Chrome10+,Safari5.1+
+    background: -o-linear-gradient(top, $color-form 0%, $color-to 100%); // Opera 11.10+
+    background: -ms-linear-gradient(top, $color-form 0%, $color-to 100%); // IE10+
+    background: linear-gradient(to bottom, $color-form 0%, $color-to 100%); // W3C
+}
+
+//三角朝上
+@mixin triangle-up($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: transparent transparent $color;
+}
+
+//三角朝下
+@mixin triangle-down($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: $color transparent transparent;
+}
+
+//三角朝左
+@mixin triangle-left($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: transparent $color transparent transparent;
+}
+
+//三角朝右
+@mixin triangle-right($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: transparent transparent transparent $color;
+}
+
+//左上三角形
+@mixin triangle-topleft($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: $color transparent transparent $color;
+}
+
+//右上三角形
+@mixin triangle-topleft($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: $color $color transparent transparent;
+}
+
+//左下三角形
+@mixin triangle-bottomleft($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: transparent transparent $color $color;
+}
+
+//右下三角形
+@mixin triangle-bottomright($width, $color) {
+    width: 0;
+    height: 0;
+    border: $width solid $color;
+    border-color: transparent $color $color transparent;
+}
+
+//箭头
+@mixin arrow($width, $border, $color, $rotate) {
+    width: $width;
+    height: $width;
+    border: $border solid $color;
+    border-width: $border $border 0 0;
+    transform: rotate($rotate);
+}
+
+//视频播放按钮
+@mixin video-play-icon($width, $height) {
+    width: $width;
+    height: $height;
+    background: rgba(247, 247, 247, .7);
+    border-radius: 50%;
+    &:after {
+        content: '';
+        position: absolute;
+        left: 0;
+        right: 0;
+        top: 0;
+        bottom: 0;
+        margin: auto;
+        width: 0;
+        height: 0;
+        border-width: px2rem(9.5) px2rem(16);
+        border-style: solid;
+        border-color: transparent transparent transparent #505050;
+		transform: translate(px2rem(8),0)
+    }
+}

+ 569 - 0
2018专题/我的冒险世界/src/sass/base/_ui-dialog.scss

@@ -0,0 +1,569 @@
+.ui-dialog {
+    *zoom: 1;
+    _float: left;
+    position: relative;
+    background-color: #FFF; // border: 1px solid #999;
+    border-radius: 6px;
+    outline: 0;
+    background-clip: padding-box;
+    font-family: Helvetica, arial, sans-serif;
+    font-size: 14px;
+    line-height: 1.428571429;
+    color: #333;
+    opacity: 0;
+    -webkit-transform: scale(0);
+    transform: scale(0);
+    -webkit-transition: -webkit-transform .15s ease-in-out, opacity .15s ease-in-out;
+    transition: transform .15s ease-in-out, opacity .15s ease-in-out;
+}
+
+.ui-popup-show .ui-dialog {
+    opacity: 1;
+    -webkit-transform: scale(1);
+    transform: scale(1);
+}
+
+.ui-popup-focus .ui-dialog {
+    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
+}
+
+.ui-popup-modal .ui-dialog {
+    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1), 0 0 256px rgba(255, 255, 255, .3);
+}
+
+.ui-dialog-grid {
+    width: auto;
+    margin: 0;
+    border: 0 none;
+    border-collapse: collapse;
+    border-spacing: 0;
+    background: transparent;
+}
+
+.ui-dialog-header,
+.ui-dialog-body,
+.ui-dialog-footer {
+    padding: 0;
+    border: 0 none;
+    text-align: left;
+    background: transparent;
+}
+
+.ui-dialog-header {
+    white-space: nowrap;
+    border-bottom: 1px solid #E5E5E5;
+}
+
+.ui-dialog-close {
+    position: absolute;
+    top: 0px;
+    right: -20px;
+    font-size: 0px;
+    width: 16px;
+    height: 16px;
+    text-shadow: 0 1px 0 #FFF;
+    cursor: pointer;
+    padding: 0;
+    border: 0;
+    outline: none;
+    -webkit-appearance: none;
+    background: url(/src/img/icon-close-new.png) no-repeat center;
+    background-color: transparent;
+}
+
+.ui-dialog-close:hover,
+.ui-dialog-close:focus {
+    color: #d13038;
+    text-decoration: none;
+    cursor: pointer;
+    outline: 0;
+    background: url(/src/img/icon-close-hover.png) no-repeat center;
+}
+
+.ui-dialog-title {
+    margin: 0;
+    line-height: 1.428571429;
+    min-height: 16.428571429px;
+    padding: 15px;
+    overflow: hidden;
+    white-space: nowrap;
+    text-overflow: ellipsis;
+    font-weight: bold;
+    cursor: default;
+}
+
+.ui-dialog-body {
+    padding: 20px 40px;
+    text-align: center;
+}
+
+.ui-dialog-content {
+    display: inline-block;
+    position: relative;
+    vertical-align: middle;
+    *zoom: 1;
+    *display: inline;
+    text-align: left;
+}
+
+.ui-dialog-footer {
+    padding: 0 20px 20px 20px;
+}
+
+.ui-dialog-statusbar {
+    float: left;
+    margin-right: 20px;
+    padding: 6px 0;
+    line-height: 1.428571429;
+    font-size: 14px;
+    color: #888;
+    white-space: nowrap;
+}
+
+.ui-dialog-statusbar label:hover {
+    color: #333;
+}
+
+.ui-dialog-statusbar input,
+.ui-dialog-statusbar .label {
+    vertical-align: middle;
+}
+
+.ui-dialog-button {
+    float: right;
+    white-space: nowrap;
+}
+
+.ui-dialog-footer button+button {
+    margin-bottom: 0;
+    margin-left: 5px;
+}
+
+.ui-dialog-footer button {
+    width: auto;
+    overflow: visible;
+    display: inline-block;
+    padding: 6px 12px;
+    _margin-left: 5px;
+    margin-bottom: 0;
+    font-size: 14px;
+    font-weight: normal;
+    line-height: 1.428571429;
+    text-align: center;
+    white-space: nowrap;
+    vertical-align: middle;
+    cursor: pointer;
+    background-image: none;
+    border: 1px solid transparent;
+    border-radius: 4px;
+    -webkit-user-select: none;
+    -moz-user-select: none;
+    -ms-user-select: none;
+    -o-user-select: none;
+    user-select: none;
+}
+
+.ui-dialog-footer button:focus {
+    outline: thin dotted #333;
+    outline: 5px auto -webkit-focus-ring-color;
+    outline-offset: -2px;
+}
+
+.ui-dialog-footer button:hover,
+.ui-dialog-footer button:focus {
+    color: #333333;
+    text-decoration: none;
+}
+
+.ui-dialog-footer button:active {
+    background-image: none;
+    outline: 0;
+    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
+    box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
+}
+
+.ui-dialog-footer button[disabled] {
+    pointer-events: none;
+    cursor: not-allowed;
+    opacity: 0.65;
+    filter: alpha(opacity=65);
+    -webkit-box-shadow: none;
+    box-shadow: none;
+}
+
+.ui-dialog-footer button {
+    color: #333333;
+    background-color: #ffffff;
+    border-color: #cccccc;
+}
+
+.ui-dialog-footer button:hover,
+.ui-dialog-footer button:focus,
+.ui-dialog-footer button:active {
+    color: #333333;
+    background-color: #ebebeb;
+    border-color: #adadad;
+}
+
+.ui-dialog-footer button:active {
+    background-image: none;
+}
+
+.ui-dialog-footer button[disabled],
+.ui-dialog-footer button[disabled]:hover,
+.ui-dialog-footer button[disabled]:focus,
+.ui-dialog-footer button[disabled]:active {
+    background-color: #ffffff;
+    border-color: #cccccc;
+}
+
+.ui-dialog-footer button.ui-dialog-autofocus {
+    color: #ffffff;
+    background-color: #428bca;
+    border-color: #357ebd;
+}
+
+.ui-dialog-footer button.ui-dialog-autofocus:hover,
+.ui-dialog-footer button.ui-dialog-autofocus:focus,
+.ui-dialog-footer button.ui-dialog-autofocus:active {
+    color: #ffffff;
+    background-color: #3276b1;
+    border-color: #285e8e;
+}
+
+.ui-dialog-footer button.ui-dialog-autofocus:active {
+    background-image: none;
+}
+
+.ui-popup-top-left .ui-dialog,
+.ui-popup-top .ui-dialog,
+.ui-popup-top-right .ui-dialog {
+    top: -8px;
+}
+
+.ui-popup-bottom-left .ui-dialog,
+.ui-popup-bottom .ui-dialog,
+.ui-popup-bottom-right .ui-dialog {
+    top: 8px;
+}
+
+.ui-popup-left-top .ui-dialog,
+.ui-popup-left .ui-dialog,
+.ui-popup-left-bottom .ui-dialog {
+    left: -8px;
+}
+
+.ui-popup-right-top .ui-dialog,
+.ui-popup-right .ui-dialog,
+.ui-popup-right-bottom .ui-dialog {
+    left: 8px;
+}
+
+.ui-dialog-arrow-a,
+.ui-dialog-arrow-b {
+    position: absolute;
+    display: none;
+    width: 0;
+    height: 0;
+    overflow: hidden;
+    _color: #FF3FFF;
+    _filter: chroma(color=#FF3FFF);
+    border: 8px dashed transparent;
+}
+
+.ui-popup-follow .ui-dialog-arrow-a,
+.ui-popup-follow .ui-dialog-arrow-b {
+    display: block;
+}
+
+.ui-popup-top-left .ui-dialog-arrow-a,
+.ui-popup-top .ui-dialog-arrow-a,
+.ui-popup-top-right .ui-dialog-arrow-a {
+    bottom: -16px;
+    border-top: 8px solid #7C7C7C;
+}
+
+.ui-popup-top-left .ui-dialog-arrow-b,
+.ui-popup-top .ui-dialog-arrow-b,
+.ui-popup-top-right .ui-dialog-arrow-b {
+    bottom: -15px;
+    border-top: 8px solid #fff;
+}
+
+.ui-popup-top-left .ui-dialog-arrow-a,
+.ui-popup-top-left .ui-dialog-arrow-b {
+    left: 15px;
+}
+
+.ui-popup-top .ui-dialog-arrow-a,
+.ui-popup-top .ui-dialog-arrow-b {
+    left: 50%;
+    margin-left: -8px;
+}
+
+.ui-popup-top-right .ui-dialog-arrow-a,
+.ui-popup-top-right .ui-dialog-arrow-b {
+    right: 15px;
+}
+
+.ui-popup-bottom-left .ui-dialog-arrow-a,
+.ui-popup-bottom .ui-dialog-arrow-a,
+.ui-popup-bottom-right .ui-dialog-arrow-a {
+    top: -16px;
+    border-bottom: 8px solid #7C7C7C;
+}
+
+.ui-popup-bottom-left .ui-dialog-arrow-b,
+.ui-popup-bottom .ui-dialog-arrow-b,
+.ui-popup-bottom-right .ui-dialog-arrow-b {
+    top: -15px;
+    border-bottom: 8px solid #fff;
+}
+
+.ui-popup-bottom-left .ui-dialog-arrow-a,
+.ui-popup-bottom-left .ui-dialog-arrow-b {
+    left: 15px;
+}
+
+.ui-popup-bottom .ui-dialog-arrow-a,
+.ui-popup-bottom .ui-dialog-arrow-b {
+    margin-left: -8px;
+    left: 50%;
+}
+
+.ui-popup-bottom-right .ui-dialog-arrow-a,
+.ui-popup-bottom-right .ui-dialog-arrow-b {
+    right: 15px;
+}
+
+.ui-popup-left-top .ui-dialog-arrow-a,
+.ui-popup-left .ui-dialog-arrow-a,
+.ui-popup-left-bottom .ui-dialog-arrow-a {
+    right: -16px;
+    border-left: 8px solid #7C7C7C;
+}
+
+.ui-popup-left-top .ui-dialog-arrow-b,
+.ui-popup-left .ui-dialog-arrow-b,
+.ui-popup-left-bottom .ui-dialog-arrow-b {
+    right: -15px;
+    border-left: 8px solid #fff;
+}
+
+.ui-popup-left-top .ui-dialog-arrow-a,
+.ui-popup-left-top .ui-dialog-arrow-b {
+    top: 15px;
+}
+
+.ui-popup-left .ui-dialog-arrow-a,
+.ui-popup-left .ui-dialog-arrow-b {
+    margin-top: -8px;
+    top: 50%;
+}
+
+.ui-popup-left-bottom .ui-dialog-arrow-a,
+.ui-popup-left-bottom .ui-dialog-arrow-b {
+    bottom: 15px;
+}
+
+.ui-popup-right-top .ui-dialog-arrow-a,
+.ui-popup-right .ui-dialog-arrow-a,
+.ui-popup-right-bottom .ui-dialog-arrow-a {
+    left: -16px;
+    border-right: 8px solid #7C7C7C;
+}
+
+.ui-popup-right-top .ui-dialog-arrow-b,
+.ui-popup-right .ui-dialog-arrow-b,
+.ui-popup-right-bottom .ui-dialog-arrow-b {
+    left: -15px;
+    border-right: 8px solid #fff;
+}
+
+.ui-popup-right-top .ui-dialog-arrow-a,
+.ui-popup-right-top .ui-dialog-arrow-b {
+    top: 15px;
+}
+
+.ui-popup-right .ui-dialog-arrow-a,
+.ui-popup-right .ui-dialog-arrow-b {
+    margin-top: -8px;
+    top: 50%;
+}
+
+.ui-popup-right-bottom .ui-dialog-arrow-a,
+.ui-popup-right-bottom .ui-dialog-arrow-b {
+    bottom: 15px;
+}
+
+@-webkit-keyframes ui-dialog-loading {
+    0% {
+        -webkit-transform: rotate(0deg);
+    }
+    100% {
+        -webkit-transform: rotate(360deg);
+    }
+}
+
+@keyframes ui-dialog-loading {
+    0% {
+        transform: rotate(0deg);
+    }
+    100% {
+        transform: rotate(360deg);
+    }
+}
+
+.ui-dialog-loading {
+    vertical-align: middle;
+    position: relative;
+    display: block;
+    *zoom: 1;
+    *display: inline;
+    overflow: hidden;
+    width: 32px;
+    height: 32px;
+    top: 50%;
+    margin: 0 auto 0 auto;
+    font-size: 0;
+    text-indent: -999em;
+    color: #666;
+}
+
+.ui-dialog-loading {
+    width: 100%\9;
+    text-indent: 0\9;
+    line-height: 32px\9;
+    text-align: center\9;
+    font-size: 12px\9;
+    margin-top: -16px\9;
+}
+
+.ui-dialog-loading::after {
+    position: absolute;
+    content: '';
+    width: 3px;
+    height: 3px;
+    margin: 14.5px 0 0 14.5px;
+    border-radius: 100%;
+    box-shadow: 0 -10px 0 1px #ccc, 10px 0px #ccc, 0 10px #ccc, -10px 0 #ccc, -7px -7px 0 0.5px #ccc, 7px -7px 0 1.5px #ccc, 7px 7px #ccc, -7px 7px #ccc;
+    -webkit-transform: rotate(360deg);
+    -webkit-animation: ui-dialog-loading 1.5s infinite linear;
+    transform: rotate(360deg);
+    animation: ui-dialog-loading 1.5s infinite linear;
+    display: none\9;
+}
+
+.base-ui {
+    border-radius: 0;
+    font-family: "Microsoft Yahei";
+    .ui-dialog-header {
+        border-bottom: none;
+    }
+    .ui-dialog-title {
+        text-indent: -9999px;
+        padding: 5px 15px;
+    }
+    .ui-dialog-close {
+        position: absolute;
+    }
+    .ui-dialog-content {
+        color: #666;
+        font-size: 18px;
+    }
+}
+
+.login-ui {
+    border-radius: 0;
+    font-family: "Microsoft Yahei";
+    .ui-dialog-header {
+        border-bottom: none;
+    }
+    .ui-dialog-title {
+        text-indent: -9999px;
+        padding: 5px 15px;
+    }
+    .ui-dialog-content {
+        color: #666;
+        font-size: 18px;
+    }
+    .ui-dialog-body {
+        padding: 0;
+    }
+    .ui-dialog-title {
+        display: none;
+    }
+    .ui-dialog-close {
+        position: absolute;
+        float: right;
+        top: -40px;
+        right: -40px;
+        font-size: 50px;
+        width: 40px;
+        height: 40px;
+        text-indent: -9999px;
+        padding: 0;
+        font-weight: normal;
+        color: #000;
+        cursor: pointer;
+        background: transparent;
+        font-family: "SimHei";
+        border: 0;
+        -webkit-appearance: none;
+        background: url(../img/icon-close.png?__sprite) no-repeat;
+        background-color: transparent;
+    }
+    .ui-dialog-close:hover,
+    .ui-dialog-close:focus {
+        color: #d13038;
+        text-decoration: none;
+        cursor: pointer;
+        outline: 0;
+        background: url(../img/icon-close-hover.png?__sprite) no-repeat;
+    }
+}
+
+.base-ui2 {
+    border-radius: 3px;
+    font-family: "Microsoft Yahei";
+    border: 4px solid rgba(255, 255, 255, 0.18);
+    .ui-dialog-header {
+        border-bottom: none;
+    } // .ui-dialog-title{
+    //     text-indent: -9999px;
+    //     padding: 5px 15px;
+    // }
+    // .ui-dialog-close {
+    //     position: absolute;
+    // }
+    .ui-dialog-content {
+        color: #666;
+        font-size: 18px;
+    }
+    .ui-dialog-body {
+        padding-top: 0; // padding: 0;
+    }
+}
+
+.nobg-ui {
+    background: none;
+    font-family: "Microsoft Yahei";
+    border: none;
+    box-shadow: none!important;
+}
+
+.nobg-ui2 {
+    background: none;
+    font-family: "Microsoft Yahei";
+    border: none;
+    box-shadow: none!important;
+    .ui-dialog-header {
+        border-bottom: none;
+    }
+    .ui-dialog-close {
+        top: 35px;
+        right: 15px;
+    }
+}
+
+.loading-ui {}

+ 387 - 0
2018专题/我的冒险世界/src/sass/h5.scss

@@ -0,0 +1,387 @@
+@charset "UTF-8";
+$yahei: "Microsoft YaHei";
+$pingfan:PingFangSC-Regular;
+
+/*通用变量*/
+
+$baseFontSize:14px;
+$baseFontColor:#999;
+/*基础样式*/
+
+@import "base/base";
+@import "base/mixins";
+
+html,body{
+    height: 100%;
+}
+body {
+    font-size: $baseFontSize;
+    font-family:$pingfan, $yahei, Helvetica, Arial, sans-serif;
+    background-color: #120500;
+}
+
+.hide{
+    display: none;
+}
+
+a {
+    text-decoration: none;
+    color: $baseFontColor;
+    &.common-link {
+        display: block;
+        width: 100%;
+        height: 100%;
+    }
+}
+
+.mc-wrap{
+    background: url(../img/bg.jpg) center top no-repeat;
+    background-size: 100% auto;
+    min-height: 600px;
+    .wrap-inner{
+
+    }
+
+    .mod-video{
+        padding-top: px2rem(260);
+        .video-frame{
+            border: 2px solid #dcdcdc;
+            border-radius: 7px;
+            width: px2rem(600);
+            height: px2rem(350);
+            margin: 0 auto;
+            padding: px2rem(12);
+            background: #000;
+        }
+        video{
+            // display: block;
+            // width: 100%;
+            // height: 100%;
+        }
+    }
+
+    .mod-share{
+        @include clearfix;
+        padding: px2rem(30);
+        section{
+            color: #876b6b;
+            font-size: px2rem(28);
+            text-align: left;
+            float: left;
+            em{
+                display: inline-block;
+                vertical-align: middle;
+            }
+            a, span{
+                display: inline-block;
+                vertical-align: middle;
+                margin: 0 px2rem(12);
+            }
+            .share-weibo{
+                width: px2rem(46);
+                height: px2rem(37);
+                background: url(../img/icon-weibo.png?__inline) no-repeat;
+                background-size: 100%;
+            }
+            .share-qq{
+                width: px2rem(35);
+                height: px2rem(38);
+                background: url(../img/icon-qq.png?__inline) no-repeat;
+                background-size: 100%;
+            }
+            .share-wx{
+                width: px2rem(40);
+                height: px2rem(39);
+                background: url(../img/icon-wx.png?__inline) no-repeat;
+                background-size: 100%;
+            }
+            .share-qzone{
+                width: px2rem(41);
+                height: px2rem(39);
+                background: url(../img/icon-qzone.png?__inline) no-repeat;
+                background-size: 100%;
+            }
+        }
+        .btn-collect{
+            float: right;
+            color: #e34f45;
+            font-size: px2rem(24);
+            line-height: px2rem(40);
+            padding-left: px2rem(40);
+            background: url(../img/icon-collect.png?__inline) left center no-repeat;
+            background-size: 14px;
+            margin-right: px2rem(60);
+            &.is-collected{
+                color: #876b6b;
+                background: url(../img/icon-collect2.png?__inline) left center no-repeat;
+                background-size: 12px;
+            }
+        }
+        .p-views{
+            float: right;
+            line-height: px2rem(40);
+            em{
+                padding-left: 20px;
+                background: url(../img/icon-view.png?__inline) left center no-repeat;
+                background-size: 14px;
+                color: #876b6b;
+                font-size: px2rem(24);
+            }
+        }
+    }
+
+    .mod-article{
+        padding: 0 px2rem(30);
+        margin-bottom: px2rem(30);
+        position: relative;
+        h1{
+            color: #876b6b;
+            font-size: px2rem(32);
+            line-height: px2rem(50);
+            min-height: px2rem(100);
+            text-align: left;
+        }
+        .btn-more{
+            padding-right: px2rem(25);
+            background: url(../img/icon-arrow.png?__inline) right center no-repeat;
+            background-size: px2rem(17);
+            position: absolute;
+            right: px2rem(30);
+            bottom: px2rem(13);
+            color: #876b6b;
+            font-size: px2rem(24);
+        }
+        .p-content{
+            display: none;
+            margin-top: px2rem(15);
+            text-indent: 2em;
+            color: #876b6b;
+            font-size: px2rem(28);
+            line-height: px2rem(44);
+        }
+    }
+
+    .mod-albums{
+        padding: 0 px2rem(30);
+        .albums-hd{
+            overflow: hidden;
+            margin-bottom: px2rem(35);
+            .albums-tab{
+                float: left;
+                color: #876b6b;
+                font-size: px2rem(28);
+                margin-right: px2rem(35);
+                padding-bottom: px2rem(12);
+                line-height: px2rem(40);
+                &.current{
+                    color: #d35757;
+                    border-bottom: 2px solid #d35757;
+                }
+            }
+            a{
+                float: right;
+                color: #e34f45;
+                font-size: px2rem(24);
+                line-height: px2rem(40);
+            }
+        }
+        .albums-bd{
+            margin-bottom: px2rem(20);
+            ul{
+                overflow: hidden;
+                margin-right: -px2rem(25);
+            }
+            li{
+                float: left;
+                width: px2rem(82);
+                height: px2rem(82);
+                line-height: px2rem(82);
+                border: 1px solid #3a2a24;
+                color: #e34f45;
+                font-size: px2rem(32);
+                text-align: center;
+                margin-bottom: px2rem(16);
+                margin-right: px2rem(16);
+                &.ex{
+                    font-size: px2rem(24);
+                }
+                &.current{
+                    color: #fff;
+                    background: #e34f45;
+                    border-color: #e34f45;
+                }
+                &.disable{
+                    color: #362828;
+                }
+            }
+        }
+    }
+
+    .mod-comments{
+        padding: px2rem(30);
+        border-top: 1px solid #3a2a24;
+        .comments-hd{
+            font-size: px2rem(32);
+            color: #e34f45;
+            line-height: px2rem(40);
+            margin-bottom: px2rem(30);
+        }
+        .comments-bd{
+            li{
+                position: relative;
+                padding-left: px2rem(65);
+                padding-top: px2rem(10);
+                &:after{
+                    content: "";
+                    background: #3a2a24;
+                    height: 1px;
+                    position: absolute;
+                    bottom: 0;
+                    right: 0;
+                    left: px2rem(65);
+                }
+                &:last-child{
+                    &:after{
+                        display: none;
+                    }
+                }
+            }
+            .c-avatars{
+                width: px2rem(50);
+                height: px2rem(50);
+                border-radius: 50%;
+                overflow: hidden;
+                position: absolute;
+                left: 0;
+                top: px2rem(10);
+                img{
+                    width: 100%;
+                    height: 100%;
+                }
+            }
+            .c-hd{
+                font-size: px2rem(24);
+                color: #573c3c;
+                line-height: px2rem(50);
+                margin-bottom: px2rem(20);
+                span{
+                    color: #876b6b;
+                    margin-right: px2rem(20);
+                }
+            }
+            .c-bd{
+                max-height: px2rem(160);
+                overflow: hidden;
+                margin-bottom: px2rem(20);
+                p{
+                    color: #876b6b;
+                    font-size: px2rem(28);
+                    line-height: px2rem(40);
+                }
+            }
+            .c-ft{
+                overflow: hidden;
+                padding: px2rem(20) 0;
+                font-size: px2rem(24);
+                color: #876b6b;
+                span{
+                    float: right;
+                    margin-left: px2rem(30);
+                    line-height: px2rem(32);
+                    font-size: 24;
+                    padding-left: px2rem(46);
+                }
+                .c-favor{
+                    background: url(../img/icon-favor.png?__inline) left center no-repeat;
+                    background-size: px2rem(32);
+                }
+                .c-reply{
+                    background: url(../img/icon-reply.png?__inline) left center no-repeat;
+                    background-size: px2rem(32);
+                }
+            }
+        }
+    }
+    .common-comment{
+        background-color: #120500;
+        color: #876b6b;
+        .op-btn button{
+            border: none;            
+        }
+        .sec-common-header{
+            color: #876b6b;
+            border-bottom: 1px solid #3a2a24;
+        }
+        .user-info__wrap{
+            color: #876b6b;
+            .user-name{
+                color: #876b6b;
+            }
+        }
+        .other-comment{
+            background-color: #291710;
+        }
+        .comment-list__item{
+            border-color: #3a2a24;
+        }
+        .show-more-comments{
+            background-color: #291710;
+            border-color: #3a2a24;
+            color: #876b6b;
+        }
+        .towrite-comment{
+            color: #876b6b;
+        }
+        .common-look-more{
+            border-top: 1px solid #876b6b;
+            color: #876b6b;
+        }
+    }
+    .tip-login{
+        position: fixed;
+        top: 0;
+        left: 0;
+        width: 100%;
+        height: 100%;
+        text-align: center;
+        color: #333;
+        display: none;
+        .tip-mask{
+            position: absolute;
+            top: 0;
+            left: 0;
+            width: 100%;
+            height: 100%;
+            background: rgba(0, 0, 0,0.7);
+        }
+        .tip-wrap{
+            position: absolute;
+            top: 50%;
+            left: 50%;
+            width: 80%;
+            transform: translate3d(-50%,-50%,0);
+            background: #ffffff;
+            border-radius: px2rem(10);
+            padding: px2rem(20);
+            p{
+                line-height: px2rem(80);
+                margin-bottom: px2rem(20);
+            }
+            .btn{
+                display: inline-block;
+                width: px2rem(100);
+                line-height: px2rem(40);
+                border-radius: 2px;
+                margin: 0 px2rem(10);
+                font-size: 12px;
+            }
+            .btn-login{
+                background: #d35757;
+                color: #FFFFFF;
+            }
+            .btn-cancel{
+                background: #ccc;
+            }
+        }
+    }
+}

+ 12 - 0
2018专题/我的冒险世界/src/sass/lego/_base.scss

@@ -0,0 +1,12 @@
+@charset "utf-8";
+/*
+ * @file: LegoUI for pc 基础设施
+ * @update: 2015-06-03 17:28:19
+ */
+
+@import "variable"; // 变量配置
+@import "mixins";
+@import "normalize";
+@import "reset"; // 重置
+@import "print"; // 打印
+

+ 159 - 0
2018专题/我的冒险世界/src/sass/lego/_button.scss

@@ -0,0 +1,159 @@
+@charset "utf-8";
+/*
+ * @file: 按钮基础UI组件
+ * @update: 2015-06-07 17:57:18
+ */
+ 
+/*
+ * 默认按钮
+ * @base
+ * @param: button-variant(字体颜色, 背景色, 边框颜色)
+ * @param: button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius)
+ */
+
+/* 按钮大小配置 */
+$btn-height: 30px !default; // 按钮高度
+$btn-padding-horizontal: 18px !default; // 按钮padding left/right值
+$btn-font-size: 12px !default; // 按钮字号大小
+$btn-radius: 2px !default; // 按钮圆角值
+
+/* 默认按钮配色 */
+$btn-color: #288ad6 !default; // 字体颜色
+$btn-bg: #fff !default; // 背景色
+$btn-border: #288ad6 !default; // 边框颜色
+
+/* 禁用按钮配置 */
+$disabled-btn-color: #999 !default; // 字体颜色
+$disabled-btn-bg: #f5f5f5 !default; // 背景色
+$disabled-btn-border: #e6e6e6 !default; // 边框颜色
+
+.ui-btn {
+    @include inline-block;
+    @include button-size(($btn-height - $btn-font-size)/2 - 1, $btn-padding-horizontal, $btn-font-size, $btn-radius);
+    @include button-variant($btn-color, $btn-bg, $btn-border);
+    width: auto; // 宽度自适应
+    line-height: 1; // 重置某些浏览器内置的私有属性默认定义的行高
+    border: 1px solid; // 某些浏览器私有属性里面额外设置了border
+    cursor: pointer;
+    text-align: center;
+    vertical-align: middle;
+    *overflow: visible; // fix IE6/IE67 button随着字变宽
+    user-select: none;
+    transition: all .2s ease-in-out;
+    
+    /*
+     * 激活状态
+     * @state: active
+     */
+    &.is-active,
+    &:active {
+        outline: 0; // 隐藏点击时的outline
+        box-shadow: inset 0 3px 5px rgba(0, 0, 0, .08);
+    }
+    
+    /*
+     * 禁用状态
+     * @state: disabled
+     */
+    &.is-disabled,
+    &[disabled] {
+        color: $disabled-btn-color;
+        background-color: $disabled-btn-bg;
+        border-color: $disabled-btn-border;
+        &.is-hover,
+        &:hover {
+            cursor: not-allowed;
+            color: $disabled-btn-color;
+            background-color: $disabled-btn-bg;
+            border-color: $disabled-btn-border;
+        }
+        &.is-active,
+        &:active {
+            box-shadow: none;
+        }
+    }
+}
+a.ui-btn {
+    text-decoration: none;
+    &:hover {
+        text-decoration: none;
+    }
+}
+input.ui-btn,
+button.ui-btn {
+    *padding: ($btn-height - $btn-font-size)/2 - 2 $btn-padding-horizontal - 1 ($btn-height - $btn-font-size)/2 - 3; // IE6/IE67在垂直方向会高出3px,水平方向多出2px
+}
+
+
+/*
+ * 首选按钮
+ * @extend: primary
+ * @param:  button-variant(字体颜色, 背景色, 边框颜色)
+ */
+
+.ui-btn {
+    &.ext-primary {
+        @include button-variant($primary-text-color, $primary-color, $primary-color);
+    }
+}
+
+
+/*
+ * 成功按钮
+ * @extend: success
+ * @param:  button-variant(字体颜色, 背景色, 边框颜色)
+ */
+
+.ui-btn {
+    &.ext-success {
+        @include button-variant($success-text-color, $success-color, $success-color);
+    }
+}
+
+/*
+ * 信息按钮
+ * @extend: info
+ * @param:  button-variant(字体颜色, 背景色, 边框颜色)
+ */
+
+.ui-btn {
+    &.ext-info {
+        @include button-variant($info-text-color, $info-color, $info-color);
+    }
+}
+
+/*
+ * 警告按钮
+ * @extend: warning
+ * @param:  button-variant(字体颜色, 背景色, 边框颜色)
+ */
+
+.ui-btn {
+    &.ext-warning {
+        @include button-variant($warning-text-color, $warning-color, $warning-color);
+    }
+}
+
+/*
+ * 危险按钮
+ * @extend: danger
+ * @param:  button-variant(字体颜色, 背景色, 边框颜色)
+ */
+
+.ui-btn {
+    &.ext-danger {
+        @include button-variant($danger-text-color, $danger-color, $danger-color);
+    }
+}
+
+
+/*
+ * 块状按钮
+ * @extend: block
+ */
+.ui-btn {
+    &.ext-block {
+        display: block;
+        text-align: center;
+    }
+}

+ 432 - 0
2018专题/我的冒险世界/src/sass/lego/_form.scss

@@ -0,0 +1,432 @@
+@charset "utf-8";
+/*
+ * @file: 表单UI组件
+ * @update: 2015-06-05 16:45:01
+ */
+ 
+/*
+ * 默认表单
+ * @base
+ */
+$label-width: 110px; // label宽度
+$label-adjust: 10px; // label右边距
+$item-adjust: 15px; // 每一行之间的间距
+
+$input-height: 30px; // input输入框高度
+$input-color: #666; // 输入框边文本颜色
+$input-border-color: #ccc; // 输入框边颜色
+
+$upload-file-width: 214px; // 普通型文件上传总宽度
+$upload-file-height: 30px; // 普通型文件上传高度
+
+.ui-form {
+    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
+    font-size: 12px;
+    line-height: 1.5;
+}
+.ui-form__item {
+    @include clearfix;
+    padding: 0 5px $item-adjust ($label-width + $label-adjust);
+    // overflow: hidden;
+    // zoom: 1;
+    
+    /*
+     * 表单验证提示
+     * @state: error
+     */
+    &.is-error {
+        .ui-input {
+            border-color: $danger-color;
+        }
+        .ui-form__tips {
+            color: $danger-color;
+        }
+    }
+
+}
+.ui-form__label {
+    float: left;
+    width: $label-width;
+    margin-left: -($label-width + $label-adjust);
+    padding-top: 6px;
+    text-align: right;
+}
+.ui-form__tips {
+    margin-left: 5px;
+    color: #999;
+}
+.ui-form__required {
+    font-family: SimSun;
+    color: $danger-color;
+    margin-right: 2px;
+}
+.ui-form__control {
+    .ui-btn {
+        margin-right: 10px;
+    }
+}
+.ui-form__multi {
+    .ui-input {
+        margin-bottom: 10px;
+        &:last-of-type {
+            margin-bottom: 0;
+        }
+    }
+}
+
+
+/*
+ * 说明文本独立一行
+ * @extend: blockTips
+ */
+.ui-form {
+    &.ext-blockTips {
+        .ui-form__tips {
+            display: block;
+            padding-top: 8px;
+        }
+    }
+}
+
+/*
+ * 标签左对齐
+ * @extend: alignLeft
+ */
+$label-width--left: 60px; // label宽度
+
+.ui-form {
+    &.ext-alignLeft {
+        .ui-form__item {
+            padding-left: $label-width--left + $label-adjust;
+        }
+        .ui-form__label {
+            width: $label-width--left;
+            margin-left: -$label-width--left - $label-adjust;
+            text-align: left;
+        }
+        .ui-form__required {
+            margin-left: 2px;
+        }
+    }
+}
+
+/*
+ * 标签顶部对齐
+ * @extend: stacked
+ */
+.ui-form {
+    &.ext-stacked {
+        padding-left: 0;
+        .ui-form__item {
+            padding-left: 0;
+        }
+        .ui-form__label {
+            float: none;
+            width: auto;
+            display: block;
+            margin-left: 0;
+            padding-top: 0;
+            padding-bottom: 5px;
+            text-align: left;
+        }
+        .ui-form__required {
+            margin-left: 2px;
+        }
+    }
+}
+
+/*
+ * 内联表单
+ * @extend: inline
+ */
+.ui-form {
+    &.ext-inline {
+        padding-left: 0;
+        .ui-form__item {
+            @include inline-block;
+            padding-right: 15px;
+            padding-left: 0;
+            vertical-align: middle;
+        }
+        .ui-form__label {
+            @include inline-block;
+            float: none;
+            margin-left: 0;
+            width: auto;
+            margin-right: 10px;
+        }
+    }
+}
+
+/*
+ * 无lable标签
+ * @extend: noLabel
+ */
+.ui-form {
+    &.ext-noLabel {
+        .ui-form__item {
+            padding-left: 0;
+        }
+    }
+}
+
+
+/*
+ * 栅格化多列表单
+ * @extend: multiCol
+ */
+.ui-form {
+    &.ext-multiCol {
+        letter-spacing: -.31em;
+        *letter-spacing: normal;
+        *word-spacing: -.43em;
+        font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
+        text-rendering: optimizespeed;
+        display: -webkit-flex;
+        -webkit-flex-flow: row wrap;
+        display: -ms-flexbox;
+        -ms-flex-flow: row wrap;
+        
+        .ui-form__item {
+            @include inline-block(top, true);
+            letter-spacing: normal;
+            word-spacing: normal;
+            text-rendering: auto;
+            padding: 0 0 15px;
+        }
+        .ui-form__label {
+            display: block;
+            float: none;
+            margin: 0 0 5px;
+            padding: 0;
+            text-align: left;
+        }
+        .ui-form__control {
+            display: block;
+            width: 100% !important;
+        }
+    }
+    
+    
+    /*
+     * 2列栅格化
+     * @extend: ext-grid2
+     */
+    &.ext-grid2 {
+        .ui-form__item {
+            width: 50%;
+            *width: 49.9690%;
+        }
+    }
+    
+    /*
+     * 3列栅格化
+     * @extend: ext-grid3
+     */
+    &.ext-grid3 {
+        .ui-form__item {
+            width: 33.3333%;
+            *width: 33.3023%;
+        }
+    }
+    
+    /*
+     * 4列栅格化
+     * @extend: ext-grid4
+     */
+    &.ext-grid4 {
+        .ui-form__item {
+            width: 25%;
+            *width: 24.9690%;
+        }
+    }
+}
+
+
+/* ============================ 以下为表单控件 ============================ */
+
+/*
+ * 单行输入框
+ * @module: input
+ */
+.ui-input,
+%ui-input {
+    height: $input-height - 10;
+    line-height: $input-height - 10;
+    padding: 4px 5px;
+    vertical-align: middle;
+    border: 1px solid $input-border-color;
+    color: $input-color;
+}
+
+/*
+ * 输入框组
+ * @base
+ */
+.ui-inputGroup {
+    font-size: 0; // 所有浏览器
+    *word-spacing: -1px; // IE6/7
+    * {
+        font-size: 12px;
+        vertical-align: top;
+        letter-spacing: normal;
+        word-spacing: normal;
+    }
+    .ui-input,
+    .ui-btn {
+        position: relative;
+        &:focus {
+            z-index: 2;
+        }
+    }
+}
+@media (-webkit-min-device-pixel-ratio:0) {
+    .ui-inputGroup {
+        letter-spacing: -5px; // Safari 5- 等不支持 font-size: 0 的浏览器
+    }
+}
+
+.ui-inputGroup__addon {
+    @extend %ui-input;
+    @include inline-block;
+    width: auto;
+    min-width: 16px;
+    margin-right: -1px;
+    text-align: center;
+    background-color: #eee;
+    color: #666;
+}
+
+
+/*
+ * 附加输入框
+ * @extend: append
+ */
+.ui-inputGroup {
+    &.ext-append {
+        .ui-inputGroup__addon,
+        .ui-btn {
+            margin-left: -1px;
+        }
+    }
+}
+
+
+/*
+ * 文本域
+ * @base
+ */
+.ui-textarea {
+    padding: 4px 5px;
+    border: 1px solid $input-border-color;
+    color: $input-color;
+}
+
+
+/*
+ * 下拉选择/单选/多选框
+ * @base: select/radio/checkbox
+ */
+input[type="radio"] {
+    margin: 2px 0;
+    *margin-top: 0;
+}
+input[type="checkbox"] {
+    margin: 3px 0;
+    *margin-top: 0;
+}
+.ui-select {
+    vertical-align: middle;
+    margin-right: 5px;
+}
+.ui-form__txt,
+.ui-radio,
+.ui-checkbox,
+.ui-fileInput {
+    @include inline-block;
+    vertical-align: middle;
+    // _vertical-align: 0;
+    margin: 5px 12px 0 0;
+}
+.ui-radio,
+.ui-checkbox {
+    input[type="radio"],
+    input[type="checkbox"] {
+        float: left;
+        margin-right: 5px;
+    }
+}
+
+
+
+/*
+ * 文件上传
+ * @base
+ */
+.ui-upload {
+    position: relative;
+    font-size: 0;
+    .ui-input {
+        margin-right: 10px;
+        font-size: 12px;
+    }
+}
+.ui-upload__file {
+    position: absolute;
+    top: 0;
+    left: 0;
+    @include opacity(0, true);
+    width: $upload-file-width;
+    height: $upload-file-height;
+    line-height: $upload-file-height;
+    font-size: 12px;
+    cursor: pointer;
+}
+
+/*
+ * 文件上传
+ * @extend: single
+ */
+.ui-upload {
+    &.ext-single {
+        @include inline-block;
+        vertical-align: middle;
+        position: relative;
+        overflow: hidden;
+        .ui-upload__file {
+            right: 0;
+            left: auto;
+            height: 100%;
+            font-size: 26px;
+        }
+    }
+}
+
+
+/*
+ * 禁用只读状态
+ * @base
+ */
+input[disabled],
+select[disabled],
+textarea[disabled],
+input[readonly],
+select[readonly],
+textarea[readonly] {
+    color: $disabled-text-color;
+    // padding: 4px;
+    background-color: $disabled-bg-color;
+    border: 1px solid #ddd;
+}
+input[disabled],
+select[disabled],
+textarea[disabled] {
+    cursor: not-allowed;
+}
+input[readonly],
+select[readonly],
+textarea[readonly] {
+    color: #999;
+    cursor: text;
+    background-color: #f7f7f7;
+}

+ 25 - 0
2018专题/我的冒险世界/src/sass/lego/_icon.scss

@@ -0,0 +1,25 @@
+@charset "utf-8";
+
+/*
+ * @file: 字体图标
+ * @update: 2015-06-03 17:19:51
+ */
+
+@font-face {
+    font-family: "lego";
+    src: url("../font/lego/iconfont.eot"); /* IE9*/
+    src: url("../font/lego/iconfont.eot?#iefix") format("embedded-opentype"), /* IE6-IE8 */
+    url("../font/lego/iconfont.woff") format("woff"), /* chrome、firefox */
+    url("../font/lego/iconfont.ttf") format("truetype"), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
+    url("../font/lego/iconfont.svg#iconfont") format("svg"); /* iOS 4.1- */
+}
+
+.ui-icon {
+    font-family: "lego" !important;
+    font-size: 16px;
+    font-style: normal;
+    line-height: 1.1;
+    -webkit-font-smoothing: antialiased;
+    -webkit-text-stroke-width: .2px;
+    -moz-osx-font-smoothing: grayscale;
+}

+ 40 - 0
2018专题/我的冒险世界/src/sass/lego/_lego.scss

@@ -0,0 +1,40 @@
+@charset "utf-8";
+/*
+ * @file:   LegoUI for pc
+ * @version: V3.0.1
+ * @update: 2015-06-05 15:20:50
+ */
+
+/* 基础设施(必须引入) */
+@import "base";
+
+
+/* HTML元素 */
+// @import "list"; // 文字列表
+// @import "button"; // 按钮
+// @import "form"; // 表单
+// @import "table"; // 表格
+//@import "icon"; // 字体图标
+
+
+/* CSS UI */
+@import "ui.panel"; // 区块面板
+@import "ui.figure"; // 图片列表
+// @import "ui.media"; // 媒体对象
+// @import "ui.paging"; // 分页导航
+// @import "ui.badge"; // 徽章
+// @import "ui.progress"; // 进度条
+// @import "ui.lineList"; // 带分割线的文本列表
+
+
+/* JS UI */
+@import "ui.dialog"; // 弹窗
+@import "ui.tab"; // 选项卡
+@import "ui.slide"; // 幻灯片
+@import "ui.carousel"; // 旋转木马
+@import "ui.accordion"; // 手风琴
+@import "ui.marquee"; // 轮播文字条
+
+
+/* 辅助工具类 */
+@import "utility";

+ 1147 - 0
2018专题/我的冒险世界/src/sass/lego/_lego2.scss

@@ -0,0 +1,1147 @@
+@charset "utf-8";
+
+/*
+ * 手风琴
+ * style1
+ * */
+.mod-accordion-s1 {
+    zoom: 1;
+    overflow: hidden;
+    position: relative;
+    border: 1px solid #d8d8d8;
+}
+.mod-accordion-s1 .mod-accordion-hd {
+    cursor: pointer;
+    border-width: 1px 0;
+    border-style: solid;
+    margin: -1px 0;
+    height: 24px;
+    line-height: 24px;
+    padding: 0 10px;
+    border-color: #d8d8d8;
+}
+.mod-accordion-s1 .mod-accordion-hd i {
+    overflow: hidden;
+    float: left;
+    width: 8px;
+    height: 8px;
+    margin: 8px 10px 0 0;
+}
+.mod-accordion-s1 .mod-accordion-hd h4 {
+    float: left;
+    font-weight: normal;
+}
+.mod-accordion-s1 .mod-accordion-bd {
+    display: none;
+    margin: -1px 0;
+    border-width: 1px 0;
+    border-style: solid;
+    border-color: #d8d8d8;
+    padding: 5px;
+}
+.mod-accordion-s1 .active i { background-position: -8px -34px }
+.mod-accordion-s1 .active h4 { font-weight: 700 }
+.mod-accordion-s1 .show { display: block }
+
+/*
+ * 手风琴
+ * style2
+ * */
+.mod-accordion-s2 {
+    zoom: 1;
+    overflow: hidden;
+    position: relative;
+    border: 1px solid #d8d8d8;
+}
+.mod-accordion-s2 .mod-accordion-hd {
+    cursor: pointer;
+    border-width: 1px 0;
+    border-style: solid;
+    margin: -1px 0;
+    height: 24px;
+    line-height: 24px;
+    padding: 0 10px;
+    border-color: #d8d8d8;
+}
+.mod-accordion-s2 .mod-accordion-hd i {
+    overflow: hidden;
+    float: right;
+    width: 10px;
+    height: 10px;
+    margin: 7px 0 0 0;
+}
+.mod-accordion-s2 .mod-accordion-hd h4 {
+    float: left;
+    font-weight: normal;
+}
+.mod-accordion-s2 .mod-accordion-bd {
+    display: none;
+    margin: -1px 0;
+    border-width: 1px 0;
+    border-style: solid;
+    border-color: #d8d8d8;
+    padding: 5px;
+}
+.mod-accordion-s2 .active i { background-position: -10px -24px }
+.mod-accordion-s2 .active h4 { font-weight: 700 }
+.mod-accordion-s2 .show { display: block }
+
+/*
+ * 手风琴
+ * style3
+ * */
+.mod-accordion-s3 {
+    overflow: hidden;
+    display: inline-block;
+    *display: inline;
+    vertical-align: top;
+    zoom: 1;
+    border: 1px solid #d8d8d8;
+}
+.mod-accordion-s3 .mod-accordion-hd {
+    cursor: pointer;
+    float: left;
+    margin: 0 -1px;
+    padding: 5px 8px;
+    width: 14px;
+    height: 300px;
+    line-height: 18px;
+    text-align: center;
+    border-style: solid;
+    border-width: 0 1px;
+    border-color: #d8d8d8;
+}
+.mod-accordion-s3 .mod-accordion-hd i {
+    overflow: hidden;
+    float: left;
+    width: 8px;
+    height: 8px;
+    margin: 2px 0 5px 3px;
+}
+.mod-accordion-s3 .mod-accordion-hd h4 {
+    float: left;
+    font-weight: normal;
+}
+.mod-accordion-s3 .mod-accordion-bd {
+	display: none;
+    float: left;
+    margin: 0 -1px;
+    width: 300px;
+    height: 300px;
+    border-style: solid;
+    border-width: 0 1px 0 0;
+    border-color: #d8d8d8;
+    padding: 5px 10px;
+}
+.mod-accordion-s3 .active i { background-position: 0 -34px }
+.mod-accordion-s3 .active h4 { font-weight: 700 }
+.mod-accordion-s3 .show { display: block }
+
+/*
+ * 文章列表
+ * */
+.mod-art { padding: 5px 10px; }
+.mod-art li {
+	overflow: hidden;
+	height: 24px;
+	line-height: 24px;
+}
+.mod-art .date {
+	float: right;
+	margin-left: 1em;
+	color: #666;
+}
+.mod-art .tag {
+	margin-right: 10px;
+	color: #F60;
+}
+/* 有序列表 */
+.mod-art .num {
+	float: left;
+	-webkit-text-size-adjust: none;
+	-webkit-border-radius: 2px;
+	border-radius: 2px;
+	width: 20px;
+	font: 10px/14px verdana;
+	text-align: center;
+	margin: 5px 10px 0 0;
+	color: #666;
+	background-color: #E8E8E8;
+}
+.mod-art .first,
+.mod-art .second,
+.mod-art .third {
+	color: #FFF;
+	background-color: #1F98D9;
+}
+/* 14px字体 */
+.mod-art.fsl li {
+	height: 26px;
+	line-height: 26px;
+}
+.mod-art.fsl .num {
+	line-height: 16px;
+	font-size: 11px;
+}
+/* half */
+.mod-art-half {
+	zoom: 1;
+	overflow: hidden;
+	position: relative;
+	padding: 5px 0px;
+	right: -10px;
+}
+.mod-art-half li {
+	float: left;
+	overflow: hidden;
+	width: 50%;
+	*width: 49.99%;
+	height: 24px;
+	line-height: 24px;
+}
+.mod-art-half li a {
+	vertical-align: top;
+	height: 24px;
+	margin-left: 10px;
+}
+.mod-art-half .date {
+	float: right;
+	color: #666;
+	margin: 0 20px 0 10px;
+}
+.mod-art-half .tag {
+	color: #F60;
+	padding-right: 0;
+}
+/* 有序列表 */
+.mod-art-half .num {
+	float: left;
+	_display: inline;
+	-webkit-text-size-adjust: none;
+	text-align: center;
+	-webkit-border-radius: 2px;
+	border-radius: 2px;
+	font: 10px/14px verdana;
+	width: 20px;
+	height: 14px;
+	color: #666;
+	background-color: #E8E8E8;
+	margin: 5px 0 0 0;
+}
+
+/*
+ * 文章滚动
+ * */
+.mod-art-scroll {
+	overflow: hidden;
+	position: relative;
+}
+.mod-art-scroll .mod-art {
+	padding: 0 10px;
+	position: absolute;
+}
+.mod-art-scroll .mod-art li {
+	overflow: hidden;
+	height: 20px;
+	line-height: 20px;
+}
+.mod-art-scroll .btns {
+	position: absolute;
+	right: 10px;
+	top: 0;
+	width: 11px;
+	height: 20px;
+}
+.mod-art-scroll .btns span {
+	overflow: hidden;
+	display: block;
+	height: 10px;
+	cursor: pointer;
+}
+
+/*
+ * 最终页正文
+ * */
+.mod-article {
+	padding-top: 20px;
+}
+.mod-article h1 {
+	text-align: center;
+	font: 400 24px/1 tahoma, \5fae\8f6f\96c5\9ed1;
+}
+.mod-article address {
+	text-align: center;
+	color: #666;
+	margin: 10px 0;
+}
+.mod-article address span {
+	margin: 0 2px;
+	color: #333;
+}
+.mod-article blockquote {
+	zoom: 1;
+	border: 1px solid #CCC;
+	padding: 5px 10px;
+	margin: 0 10px;
+}
+.mod-article blockquote p {
+	line-height: 18px;
+}
+.mod-article-content {
+	padding: 10px;
+}
+
+/*
+ * 图片滚动
+ * style1
+ * */
+.mod-carousel-s1 {
+	position: relative;
+	width: 524px;
+	height: 132px;
+	padding: 0 80px;
+}
+.mod-carousel-s1-bd {
+	overflow: hidden;
+	position: relative;
+	height: 132px;
+}
+.mod-carousel-s1 .mod-pic {
+	position: absolute;
+	top:0px;
+	margin-right: -12px;
+	padding: 0;
+	width: 10000px;
+}
+.mod-carousel-s1 .mod-pic li {
+	float: left;
+	margin: 0 12px 0 0;
+	width: 122px;
+	height: 132px;
+}
+.mod-carousel-s1 .mod-pic a {
+	text-align: center;
+}
+.mod-carousel-s1 .mod-pic img {
+	display: block;
+	width: 120px;
+	height: 90px;
+	border: 1px solid #DEDFDF;
+}
+.mod-carousel-s1 .mod-pic em {
+	display: inline-block;
+	cursor: pointer;
+	padding: 4px 1px 0;
+	line-height: 14px;
+	text-align: left;
+}
+.mod-carousel-s1 .btn-prev,
+.mod-carousel-s1 .btn-next {
+	display: block;
+	width: 30px;
+	height: 30px;
+	position: absolute;
+	top: 30px;
+	cursor: pointer;
+}
+.mod-carousel-s1 .btn-prev { left: 30px; }
+.mod-carousel-s1 .btn-next {
+	right: 30px;
+	background-position: -30px 0;
+}
+
+/*
+ * 图片滚动
+ * style2
+ * */
+.mod-carousel-s2 {
+    width: 264px;
+    height: 134px;
+    padding: 0 28px;
+}
+.mod-carousel-s2-bd {
+    overflow: hidden;
+    position: relative;
+    height: 134px;
+} /* 此宽度值=(li.width+li.maring-right)*N-li.margin-right */
+.mod-carousel-s2 .mod-pic {
+    position: absolute;
+    margin-right: -20px;
+    padding: 0;
+    width: 10000px;
+} /* 此负margin-right值=li.margin-right */
+.mod-carousel-s2 .mod-pic li {
+    float: left;
+    margin: 0 20px 0 0;
+    width: 122px;
+    height: 132px;
+}
+.mod-carousel-s2 .mod-pic a { text-align: center }
+.mod-carousel-s2 .mod-pic img {
+    display: block;
+    width: 120px;
+    height: 90px;
+    border: 1px solid #DEDFDF;
+}
+.mod-carousel-s2 .mod-pic em {
+    display: inline-block;
+    cursor: pointer;
+    padding: 4px 1px 0;
+    line-height: 14px;
+    text-align: left;
+}
+.mod-carousel-s2 .btn-prev,
+.mod-carousel-s2 .btn-next {
+    display: block;
+    cursor: pointer;
+    width: 25px;
+    height: 15px;
+    position: absolute;
+    top: 8px;
+}
+.mod-carousel-s2 .btn-prev { right: 35px }
+.mod-carousel-s2 .btn-next {
+    right: 10px;
+    background-position: -25px -50px;
+}
+.mod-carousel-s2 .steps {
+    position: absolute;
+    white-space: nowrap;
+    right: 68px;
+    top: 6px;
+}
+.mod-carousel-s2 .curr-step {
+    color: #F60;
+    font-weight: 700;
+}
+
+/*
+ * 图片滚动
+ * style3
+ * */
+.mod-carousel-s3 {
+    position: relative;
+    padding: 0 50px;
+    width: 432px;
+} /* 此宽度值=(li.width+li.maring-right)*N-li.margin-right */
+.mod-carousel-s3 .scrollable {
+    overflow: hidden;
+    position: relative;
+    height: 132px;
+}
+.mod-carousel-s3 .scrollable-bd ul {
+    position: absolute;
+    float: left;
+    padding-top: 0;
+    width: 450px;
+} /* 重置mod-pic的默认样式 width=s4.width+li.marginRight */
+.mod-carousel-s3 .scrollable-bd li { margin: 0 18px 0 0 } /* 重置mod-pic的默认样式 */
+.mod-carousel-s3 .btn-prev,
+.mod-carousel-s3 .btn-next {
+    cursor: pointer;
+    position: absolute;
+    top: 46px;
+    width: 30px;
+    height: 30px;
+}
+.mod-carousel-s3 .btn-prev { left: 0 }
+.mod-carousel-s3 .btn-next {
+    right: 0;
+    background-position: -30px 0;
+}
+.mod-carousel-s3 .navi-box { text-align: center }
+.mod-carousel-s3 .navi {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    height: 20px;
+    text-align: left;
+}
+.mod-carousel-s3 .navi a {
+    display: block;
+    float: left;
+    margin: 8px 8px 0 0;
+    width: 12px;
+    height: 12px;
+    font-size: 11px;
+}
+.mod-carousel-s3 .navi a:hover { background-position: -12px -73px }
+.mod-carousel-s3 .navi a.selected { background-position: -12px -73px }
+
+/*
+ * 图片滚动
+ * style4
+ * */
+.mod-carousel-s4 {
+    position: relative;
+    padding: 20px;
+    width: 432px;
+} /* 此宽度值=(li.width+li.maring-right)*N-li.margin-right */
+.mod-carousel-s4 .scrollable {
+    overflow: hidden;
+    position: relative;
+    height: 146px;
+}
+.mod-carousel-s4 .scrollable-bd ul {
+    position: absolute;
+    float: left;
+    padding-top: 0;
+    width: 450px;
+} /* 重置mod-pic的默认样式 width=s4.width+li.marginRight */
+.mod-carousel-s4 .scrollable-bd li { margin: 0 18px 0 0 } /* 重置mod-pic的默认样式 */
+.mod-carousel-s4 .btn-prev,
+.mod-carousel-s4 .btn-next {
+    cursor: pointer;
+    position: absolute;
+    top: 0;
+    width: 26px;
+    height: 20px;
+}
+.mod-carousel-s4 .btn-prev { left: 0 }
+.mod-carousel-s4 .btn-next {
+    right: 0;
+    background-position: -26px -30px;
+}
+.mod-carousel-s4 .scrollable-nav { text-align: center }
+.mod-carousel-s4 .navi-box {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    position: relative;
+    padding: 0 34px;
+    text-align: center;
+}
+.mod-carousel-s4 .navi {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    height: 20px;
+    text-align: left;
+}
+.mod-carousel-s4 .navi a {
+    display: block;
+    overflow: hidden;
+    float: left;
+    margin: 6px 2px 0;
+    width: 20px;
+    height: 8px;
+}
+.mod-carousel-s4 .navi a:hover { background-position: -20px -65px }
+.mod-carousel-s4 .navi a.selected { background-position: -20px -65px }
+
+/*
+ * 弹出层
+ * 依赖mod.box.css
+ * */
+.pop-box {
+	zoom: 1;
+	padding: 6px;
+	background-color: transparent;
+	background-color: rgba(0,0,0,.2);
+	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#33000000,endColorstr=#33000000);
+	-webkit-border-radius: 5px;
+	border-radius: 5px;
+}
+:root .pop-box {filter: none\9;}
+.pop-box .box {
+	-webkit-border-radius: 3px;
+	border-radius: 3px;
+	border-color: #E5E5E5;
+	background-color: #FFF;
+}
+.pop-box .box-hd {
+	-webkit-border-radius: 3px 3px 0 0;
+	border-radius: 3px 3px 0 0;
+	border: 0 none;
+	background: #1D97D8;
+}
+.pop-box .box-hd .title {color: #FFF;}
+.pop-box .box-hd .btn-close {
+	float: right;
+	cursor: pointer;
+	color: #FFF;
+}
+.pop-box .box-hd .btn-close:hover {text-decoration: underline;}
+.pop-box .box-hd .btn-close-icon {
+	float: right;
+	width: 16px;
+	height: 100%;
+	cursor: pointer;
+	font-size: 18px;
+	font-weight: 700;
+	text-align: center;
+	color: #FFF;
+	opacity: .8;
+	font-family: tahoma;
+}
+.pop-box .box-hd .btn-close-icon:hover {opacity: 1;}
+
+/*
+ * 幻灯片
+ * style1
+ * */
+.mod-slide-s1 {
+    width: 320px;
+    overflow: hidden;
+}
+.mod-slide-s1 .mod-slide-content,
+.mod-slide-s1 .mod-slide-content img {
+    display: block;
+    overflow: hidden;
+    position: relative;
+    width: 320px;
+    height: 200px;
+}
+.mod-slide-s1 .mod-slide-content ul{
+    position:absolute;
+}
+.mod-slide-s1 .mod-slide-trigger li {
+    overflow: hidden;
+    height: 24px;
+    line-height: 24px;
+    padding-left: 1em;
+    cursor: pointer;
+    margin: 5px 0 0;
+    background-color: #D9D9D9;
+}
+.mod-slide-s1 .mod-slide-trigger li.selected { background-color: #474A4B }
+.mod-slide-s1 .mod-slide-trigger li.selected a {
+    font-weight: 900;
+    color: #FFF;
+}
+
+/*
+ * 幻灯片
+ * style2
+ * */
+.mod-slide-s2 {
+    overflow: hidden;
+    position: relative;
+    width: 320px;
+    height: 200px;
+}
+.mod-slide-s2 .mod-slide-content { height: 200px; }
+.mod-slide-s2 .mod-slide-content ul{
+    position: absolute;
+}
+.mod-slide-s2 .mod-slide-content li {
+    float: left;
+    clear: both;
+}
+.mod-slide-s2 .mod-slide-content a,
+.mod-slide-s2 .mod-slide-content img {
+    display: block;
+    width: 320px;
+    height: 200px;
+}
+.mod-slide-s2 .mod-slide-trigger {
+    position: absolute;
+    bottom: 10px;
+    right: 10px;
+    z-index:11;
+}
+.mod-slide-s2 .mod-slide-trigger li {
+    cursor: pointer;
+    float: left;
+    margin-left: 5px;
+    width: 20px;
+    height: 20px;
+    line-height: 20px;
+    text-align: center;
+    background: #fff;
+    color: #333;
+}
+.mod-slide-s2 .mod-slide-trigger li.selected {
+    font-weight: 700;
+    background-color: #289edd;
+    color: #fff;
+}
+
+/*
+ * 幻灯片
+ * style3
+ * */
+.mod-slide-s3 {
+    position: relative;
+    width: 480px;
+    height: 240px;
+    overflow: hidden;
+}
+.mod-slide-s3 .mod-slide-content ul{
+    position:absolute;
+}
+.mod-slide-s3 .mod-slide-content li{
+    display: block;
+    overflow: hidden;
+    height: 240px;
+    width:480px;
+}
+.mod-slide-s3 .mod-slide-content img {
+    display: block;
+    width: 480px;
+    height: 240px;
+    background-color: #333;
+}
+.mod-slide-s3 .mod-slide-trigger {
+    position: absolute;
+    z-index: 10;
+    right: 65px;
+    bottom: 13px;
+    height: 8px;
+    overflow: hidden;
+}
+.mod-slide-s3 .mod-slide-trigger li {
+    cursor: pointer;
+    overflow: hidden;
+    float: left;
+    margin-right: 2px;
+    width: 20px;
+    height: 8px;
+    text-indent: -9999px;
+    background-color: #FFF;
+}
+.mod-slide-s3 .mod-slide-trigger li.selected { background-color: #289edd; }
+.mod-slide-s3 .btn-prev,
+.mod-slide-s3 .btn-next {
+    cursor: pointer;
+    position: absolute;
+    z-index: 10;
+    right: 35px;
+    bottom: 10px;
+    width: 25px;
+    height: 15px;
+}
+.mod-slide-s3 .btn-next {
+    background-position: -25px -16px;
+    right: 10px;
+}
+
+/*
+ * 幻灯片
+ * style4
+ * */
+.mod-slide-s4 {
+    overflow: hidden;
+    position: relative;
+    width: 650px;
+}
+.mod-slide-s4 .mod-slide-content {
+    overflow: hidden;
+    height: 325px;
+    background: #333;
+}
+.mod-slide-s4 .mod-slide-content ul{
+    position: absolute;
+}
+.mod-slide-s4 .mod-slide-content a,
+.mod-slide-s4 .mod-slide-content img {
+    display: block;
+    width: 650px;
+    height: 285px;
+}
+.mod-slide-s4 .mod-slide-content p {
+    overflow: hidden;
+    padding: 0 12px;
+    height: 40px;
+    font-size: 14px;
+    line-height: 40px;
+    background: #141414;
+    color: #fff;
+}
+.mod-slide-s4 .mod-slide-trigger {
+    padding: 6px 0 8px 9px;
+    background: #333;
+    zoom: 1;
+}
+.mod-slide-s4 .mod-slide-trigger:before,
+.mod-slide-s4 .mod-slide-trigger:after {
+    content: '';
+    display: table;
+    line-height: 0;
+}
+.mod-slide-s4 .mod-slide-trigger:after { clear: both }
+.mod-slide-s4 .mod-slide-trigger li {
+    cursor: pointer;
+    position: relative;
+    z-index: 11;
+    float: left;
+    margin-right: 5px;
+    padding: 2px;
+    width: 82px;
+    height: 42px;
+}
+.mod-slide-s4 .mod-slide-trigger li.selected { background: #2ba0de }
+.mod-slide-s4 .mod-slide-trigger li img {
+    display: block;
+    width: 80px;
+    height: 40px;
+    border: 1px solid #0d0d0d;
+    border-right-color: #3c3c3c;
+    border-bottom-color: #3c3c3c;
+}
+.mod-slide-s4 .mod-slide-trigger li i {
+    overflow: hidden;
+    position: absolute;
+    left: 50%;
+    top: -9px;
+    margin-left: -9px;
+    width: 18px;
+    height: 9px;
+}
+
+/*
+ * 幻灯片
+ * style5
+ * */
+.mod-slide-s5 {
+    *zoom:1;
+    overflow: hidden;
+    position: relative;
+}
+.mod-slide-s5 .mod-slide-content {
+    overflow: hidden;
+    position: relative;
+    float: left;
+    width: 550px;
+    height: 275px;
+    background: #333;
+}
+.mod-slide-s5 .mod-slide-content ul{
+    position: absolute;
+}
+.mod-slide-s5 .mod-slide-content li,
+.mod-slide-s5 .mod-slide-content img {
+    display: block;
+    width: 550px;
+    height: 235px;
+}
+.mod-slide-s5 .mod-slide-content p {
+    overflow: hidden;
+    padding:0 12px;
+    height: 40px;
+    font-size: 14px;
+    line-height: 40px;
+    background: #141414;
+    color: #fff;
+}
+.mod-slide-s5 .mod-slide-trigger {
+    float: left;
+    padding: 8px 0 0 7px;
+    width: 93px;
+    height: 267px;
+    background: #222;
+}
+.mod-slide-s5 .mod-slide-trigger li {
+    cursor: pointer;
+    position: relative;
+    margin-bottom: 8px;
+    *margin-bottom: 6px;
+    padding: 2px;
+    width: 82px;
+    height: 42px;
+}
+.mod-slide-s5 .mod-slide-trigger li.selected { background: #2ba0de }
+.mod-slide-s5 .mod-slide-trigger li img {
+    display: block;
+    width: 80px;
+    height: 40px;
+    border: 1px solid #0d0d0d;
+    border-right-color: #3c3c3c;
+    border-bottom-color: #3c3c3c;
+}
+.mod-slide-s5 .mod-slide-trigger li i {
+    overflow: hidden;
+    position: absolute;
+    left: -6px;
+    top: 50%;
+    margin-top: -9px;
+    width: 6px;
+    height: 14px;
+}
+
+/*
+ * 选项卡
+ * style1
+ * */
+.mod-tab-s1 {
+    zoom: 1;
+    position: relative;
+    border: 1px solid #d8d8d8;
+}
+.mod-tab-s1 .mod-tab-hd {
+    position: relative;
+    height: 30px;
+    line-height: 30px;
+    border-bottom: 1px solid #d8d8d8;
+    background-color: #e7e7e7;
+}
+/* 头部组件 */
+.mod-tab-s1 .mod-tab-hd h3 {
+    float: left;
+    _display: inline;
+    font-size: 14px;
+    margin: 0 10px;
+}
+.mod-tab-s1 .mod-tab-hd .act { float: right }
+.mod-tab-s1 .mod-tab-hd .act .links {
+    float: left;
+    _display: inline;
+    overflow: hidden;
+    color: #d8d8d8;
+}
+.mod-tab-s1 .mod-tab-hd .act .links a {
+    margin: 0 8px;
+    white-space: nowrap;
+    color: #0082c3;
+}
+.mod-tab-s1 .mod-tab-hd .act .more {
+    margin: 0 10px;
+    color: #666;
+}
+/**/
+.mod-tab-s1 .mod-tab-trigger {
+    float: left;
+    _display: inline;
+    margin-left: -1px;
+    border-left: 1px solid #d8d8d8;
+}
+.mod-tab-s1 .mod-tab-trigger li {
+    position: relative;
+    cursor: pointer;
+    float: left;
+    padding: 0 12px;
+    border-right: 1px solid #d8d8d8;
+    background-color: #f5f5f5;
+    color: #666;
+}
+.mod-tab-s1 .mod-tab-trigger li.hover {
+    background-color: #fff;
+    color: #333;
+}
+.mod-tab-s1 .mod-tab-trigger li.selected {
+    padding-bottom: 1px;
+    margin-bottom: -1px;
+    font-weight: 700;
+    background-color: #fff;
+    color: #333;
+}
+/**/
+.mod-tab-s1 .mod-tab-bd {
+    padding: 10px;
+}
+
+/*
+ * 选项卡
+ * style2
+ * */
+.mod-tab-s2 {
+    zoom: 1;
+    position: relative;
+}
+.mod-tab-s2 .mod-tab-hd {
+    position: relative;
+    height: 30px;
+}
+/* 头部组件 */
+.mod-tab-s2 .mod-tab-hd h3 {
+    float: left;
+    _display: inline;
+    font-size: 14px;
+    margin: 0 10px;
+}
+.mod-tab-s2 .mod-tab-hd .act { float: right }
+.mod-tab-s2 .mod-tab-hd .act .links {
+    float: right;
+    overflow: hidden;
+    color: #d8d8d8;
+}
+.mod-tab-s2 .mod-tab-hd .act .links a {
+    margin: 0 8px;
+    white-space: nowrap;
+    color: #0082c3;
+}
+.mod-tab-s2 .mod-tab-hd .act .more {
+    float: right;
+    margin: 0 10px;
+    color: #666;
+}
+/**/
+.mod-tab-s2 .mod-tab-trigger {
+    float: left;
+}
+.mod-tab-s2 .mod-tab-trigger li {
+    position: relative;
+    cursor: pointer;
+    float: left;
+    margin-right: 4px;
+    padding: 0 8px;
+    line-height: 29px;
+    border: 1px solid #d8d8d8;
+    border-bottom: 0 none;
+    -webkit-border-radius: 5px 5px 0 0;
+    border-radius: 5px 5px 0 0;
+    color: #666;
+}
+.mod-tab-s2 .mod-tab-trigger li.hover {
+    padding-bottom: 1px;
+    font-weight: 700;
+    background: #fff;
+    color: #333;
+}
+.mod-tab-s2 .mod-tab-trigger li.selected {
+    padding-bottom: 1px;
+    margin-bottom: -1px;
+    font-weight: 700;
+    background: #fff;
+    color: #474A4B;
+}
+.mod-tab-s2 .mod-tab-bd {
+    padding: 10px;
+    border: 1px solid #d8d8d8;
+}
+
+/*
+ * 选项卡
+ * style3
+ * */
+.mod-tab-s3 {
+    zoom: 1;
+    position: relative;
+    background: #fff;
+}
+.mod-tab-s3 .mod-tab-hd {
+    position: relative;
+    height: 30px;
+    line-height: 30px;
+    border: 1px solid #d8d8d8;
+    border-bottom: none;
+}
+.mod-tab-s3 .mod-tab-hd h3 {
+    display: inline;
+    float: left;
+    font-size: 14px;
+    margin: 0 10px;
+}
+.mod-tab-s3 .mod-tab-hd .act { float: right }
+.mod-tab-s3 .mod-tab-hd .act .links {
+    float: right;
+    overflow: hidden;
+    display: inline;
+    color: #d8d8d8;
+}
+.mod-tab-s3 .mod-tab-hd .act .links a {
+    margin: 0 8px;
+    white-space: nowrap;
+    color: #0082c3;
+}
+.mod-tab-s3 .mod-tab-hd .act .more {
+    float: right;
+    margin: 0 10px;
+    color: #666;
+}
+.mod-tab-s3 .mod-tab-trigger {
+    display: inline;
+    float: right;
+    margin: 4px 5px 0 0;
+    font-size: 12px;
+}
+.mod-tab-s3 .mod-tab-trigger li {
+    overflow: hidden;
+    position: relative;
+    cursor: pointer;
+    float: left;
+    margin-bottom: -1px;
+    margin-left: -1px;
+    width: 29px;
+    height: 20px;
+    line-height: 20px;
+    *line-height: 22px;
+    font-size: 12px;
+    text-align: center;
+    border: 1px solid #d8d8d8;
+    color: #666;
+}
+.mod-tab-s3 .mod-tab-trigger li.selected {
+    background-position: -100px -92px;
+    color: #fff;
+}
+.mod-tab-s3 .mod-tab-trigger li.round-left {
+    -webkit-border-radius: 3px 0 0 3px;
+    border-radius: 3px 0 0 3px;
+}
+.mod-tab-s3 .mod-tab-trigger li.round-right {
+    -webkit-border-radius: 0 3px 3px 0;
+    border-radius: 0 3px 3px 0;
+}
+.mod-tab-s3 .mod-tab-bd {
+    padding: 10px;
+    border: 1px solid #d8d8d8;
+}
+
+/*
+ * 选项卡
+ * style4
+ * */
+.mod-tab-s4 {
+    position: relative;
+    height: 300px;
+    padding: 0 0 0 150px;
+    border: 1px solid #d8d8d8;
+    background: #fff;
+}
+.mod-tab-s4 .mod-tab-hd {
+    position: absolute;
+    left: 0;
+    top: 0;
+    width: 148px;
+    height: 100%;
+    line-height: 30px;
+    border-right: 1px solid #d8d8d8;
+    background: #f4f4f4;
+}
+.mod-tab-s4 .mod-tab-hd h3 {
+    display: inline;
+    float: left;
+    font-size: 14px;
+    margin: 0 10px;
+}
+.mod-tab-s4 .mod-tab-hd .act { float: right }
+.mod-tab-s4 .mod-tab-hd .act .links {
+    float: right;
+    overflow: hidden;
+    display: inline;
+    color: #d8d8d8;
+}
+.mod-tab-s4 .mod-tab-hd .act .links a {
+    margin: 0 8px;
+    white-space: nowrap;
+    color: #0082c3;
+}
+.mod-tab-s4 .mod-tab-hd .act .more {
+    float: right;
+    margin: 0 10px;
+    color: #666;
+}
+.mod-tab-s4 .mod-tab-trigger { }
+.mod-tab-s4 .mod-tab-trigger li {
+    position: relative;
+    cursor: pointer;
+    padding-left: 32px;
+    width: 116px;
+    font-size: 14px;
+    border-bottom: 1px solid #d8d8d8;
+    color: #0082c3;
+}
+.mod-tab-s4 .mod-tab-trigger li.selected {
+    width: 128px;
+    font-weight: bold;
+    border-bottom: 0;
+    color: #fff;
+}
+.mod-tab-s4 .mod-tab-bd {
+    height:100%;
+}
+.mod-tab-s4 .mod-tab-content{
+    padding: 10px;
+    padding-left: 15px;
+}

+ 90 - 0
2018专题/我的冒险世界/src/sass/lego/_list.scss

@@ -0,0 +1,90 @@
+@charset "utf-8";
+
+/*
+ * @file: 文字列表UI组件
+ * @update: 2015-06-05 16:45:17
+ */
+ 
+/*
+ * 默认列表
+ * @base
+ */
+$item-height: 24px; // item高度
+$item-line-height: 24px; // item行高
+
+.ui-list__item {
+    height: $item-height;
+    line-height: $item-line-height;
+    overflow: hidden;
+}
+.ui-list__link {
+    margin-right: 10px;
+}
+.ui-list__tag {
+    color: #f60;
+}
+.ui-list__meta {
+    float: right;
+    margin-left: 10px;
+    color: #999;
+}
+.ui-list__num {
+    @include inline-block;
+    overflow: hidden;
+    margin-right: 5px;
+    width: 18px;
+    height: 14px;
+    border-radius: 2px;
+    font: normal 12px/14px verdana;
+    text-align: center;
+    color: #666;
+    background-color: #e8e8e8;
+}
+
+
+/*
+ * 实心圆标记
+ * @extend: disc
+ */
+.ui-list {
+    &.ext-disc {
+        list-style: disc inside none;
+    }
+}
+
+/*
+ * 实心方块标记
+ * @extend: square
+ */
+.ui-list {
+    &.ext-square {
+        list-style: square inside none;
+    }
+}
+ 
+
+/*
+ * 双栏列表
+ * @extend: half
+ */
+.ui-list {
+    &.ext-half {
+        font-size: 0; /* 所有浏览器 */
+        *word-spacing: -1px; /* IE6/7 */
+        .ui-list__item {
+            @include inline-block;
+            vertical-align: top;
+            font-size: 12px;
+            letter-spacing: normal;
+            word-spacing: normal;
+            width: 48%;
+            *width: 47.99%;
+            margin-right: 2%;
+        }
+    }
+}
+@media (-webkit-min-device-pixel-ratio:0) {
+    .ui-list.ext-half {
+        letter-spacing: -5px; /* Safari 5- 等不支持 font-size: 0 的浏览器*/
+    }
+}

+ 215 - 0
2018专题/我的冒险世界/src/sass/lego/_mixins.scss

@@ -0,0 +1,215 @@
+@charset "utf-8";
+/*
+ * @file:      SASS常用Function与Mixins
+ * @update:    2015-06-03 17:17:50
+ * @copyright: MIT License
+ */
+
+
+/*
+ * @name:  inline-block
+ * @param: $alignment {string}  对齐类型
+ * @param: $support-for-ie {boolean}  是否支持IE6
+ */
+@mixin inline-block($alignment: middle, $support-for-ie: true) {
+    display: inline-block;
+    @if $alignment and $alignment != none {
+        vertical-align: $alignment;
+    }
+    @if $support-for-ie {
+        *vertical-align: auto;
+        *display: inline;
+        zoom: 1;
+    }
+}
+
+/* @name: 闭合浮动 */
+@mixin clearfix {
+    *zoom: 1;
+    &:before,
+    &:after {
+        content: "";
+        display: table;
+        line-height: 0;
+    }
+    &:after {
+        clear: both;
+    }
+}
+
+/*
+ * @name:  浮动
+ * @param: $side {string}  浮动方向
+ * @param: $support-for-ie {boolean}  是否支持IE6
+ */
+@mixin float($side: left, $support-for-ie: true) {
+    float: unquote($side);
+    @if $support-for-ie {
+        _display: inline;
+    }
+}
+
+/* @name: 文本隐藏 */
+@mixin hide-text {
+    text-indent: 100%;
+    white-space: nowrap;
+    overflow: hidden;
+}
+
+/*
+ * @name:  文字溢出显示省略号
+ * @param: $width {dimension}  指定宽度 (需带单位)
+ * 1. Opera 9-10.6
+ * 2. Chrome 21+ bug https://bugs.webkit.org/show_bug.cgi?id=121902
+ */
+@mixin ellipsis($width: auto) {
+    @if($width) {
+        width: $width;
+    }
+    white-space: nowrap;
+    word-wrap: normal;
+    overflow: hidden;
+    -o-text-overflow: ellipsis; /* 1 */
+    text-overflow: ellipsis;
+    text-align: left; /* 2 */
+}
+
+/*
+ * @name: 强制不换行
+ * @link: http://www.hicss.net/solve-change-line-in-css
+ */
+@mixin nowrap {
+    white-space: nowrap;
+    word-wrap: normal;
+    word-break: keep-all;
+}
+
+/* @name: 连续字符换行 */
+@mixin break {
+    -ms-word-break: break-all;
+    word-break: break-all;
+    word-break: break-word;
+}
+
+/* @name: 保留空白符序列,但是正常地进行换行 */
+@mixin pre {
+    white-space: -moz-pre-wrap;
+    white-space: -pre-wrap;
+    white-space: -o-pre-wrap;
+    white-space: pre-wrap;
+    word-wrap: break-word;
+}
+
+/*
+ * @name:  resizable
+ * @param: $direction {string}  缩放的方向 (horizontal || vertical || both)
+ * @link:  https://github.com/twbs/bootstrap-sass/blob/master/assets/stylesheets/bootstrap/mixins/_resize.scss
+ * @1:     Per CSS3 UI, `resize` only applies when `overflow` isn't `visible`
+ */
+@mixin resizable($direction) {
+    resize: $direction;
+    overflow: auto; /* 1 */
+}
+
+
+/*
+ * @name:  背景透明
+ * @param: $color {color}  颜色  
+ * @param: $opacity {number}  透明度
+ * @param: $support-for-ie {boolean}  是否支持IE6
+ * @link:  https://github.com/airen/Sass_mixins_function/tree/master/mixins
+ */
+@mixin transparent($color, $opacity, $support-for-ie:true) {
+    background-color: transparent;
+    background-color: rgba($color, $opacity);
+    @if $support-for-ie {
+        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#{ie-hex-str(rgba($color, $opacity))},endColorstr=#{ie-hex-str(rgba($color, $opacity))});
+        zoom: 1;
+        :root & {
+            filter: none;
+        }
+    }
+}
+
+/*
+ * @name:  透明度
+ * @param: $opacity {number}  透明度
+ * @param: $support-for-ie {boolean}  是否支持IE6
+ */
+@mixin opacity($opacity:.65, $support-for-ie:true) {
+    opacity: $opacity;
+    @if $support-for-ie{
+        $opacity-ie: $opacity * 100;
+        filter: alpha(opacity=$opacity-ie); //IE8
+    }
+}
+
+/* @name: 重置滤镜 */
+@mixin reset-filter {
+    filter: progid:DXImageTransform.Microsoft.gradient(enabled = false);
+}
+
+
+/*
+ * @name:  border三角形
+ * @param: $base {dimension}  底边尺寸
+ * @param: $height {dimension}  高度
+ * @param: $color {color}  颜色
+ * @param: $direction {string}  方向 (top || bottom || left || right)
+ * @link:  http://codepen.io/zhouwenbin/pen/emZVZp
+ */
+@mixin triangle($base, $height, $color, $direction) {
+    font-size: 0;
+    width: 0;
+    height: 0;
+    line-height: 0;
+    overflow: hidden;
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    vertical-align: -2px;
+    border-style: dashed;
+    
+    @if($direction == top) {
+        border-width: $height $base / 2;
+        border-color: transparent transparent $color;
+        margin-top: -$height;
+    }
+    @if($direction == bottom) {
+        border-width: $height $base / 2;
+        border-color: $color transparent transparent;
+        margin-bottom: -$height;
+    }
+    @if($direction == left) {
+        border-width: $base / 2 $height;
+        border-color: transparent transparent transparent $color;
+        margin-right: -$height;
+    }
+    @if($direction == right) {
+        border-width: $base / 2 $height;
+        border-color: transparent $color transparent transparent;
+        margin-left: -$height;
+    }
+}
+
+/* @name: 按钮配色 */
+@mixin button-variant($color, $background, $border) {
+    color: $color;
+    background-color: $background;
+    border-color: $border;
+    &.is-hover,
+    &:hover {
+        color: $color;
+        background-color: lighten($background, 8%);
+        border-color: lighten($border, 10%);
+        text-decoration: none; // 去掉a标签按钮的下划线
+    }
+}
+
+/* @name: 按钮尺寸 */
+@mixin button-size($padding-vertical, $padding-horizontal, $font-size, $border-radius) {
+    padding: $padding-vertical $padding-horizontal;
+    font-size: $font-size;
+    border-radius: $border-radius;
+}
+

+ 528 - 0
2018专题/我的冒险世界/src/sass/lego/_normalize.scss

@@ -0,0 +1,528 @@
+@charset "utf-8";
+/* normalize.css v1.1.3 | MIT License | git.io/normalize */
+
+/* ==========================================================================
+   HTML5 display definitions
+   ========================================================================== */
+
+/**
+ * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3.
+ */
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+nav,
+section,
+summary {
+    display: block;
+}
+
+/**
+ * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3.
+ */
+
+audio,
+canvas,
+video {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+}
+
+/**
+ * Prevent modern browsers from displaying `audio` without controls.
+ * Remove excess height in iOS 5 devices.
+ */
+
+audio:not([controls]) {
+    display: none;
+    height: 0;
+}
+
+/**
+ * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4.
+ * Known issue: no IE 6 support.
+ */
+
+[hidden] {
+    display: none;
+}
+
+/* ==========================================================================
+   Base
+   ========================================================================== */
+
+/**
+ * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using
+ *    `em` units.
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
+ *    user zoom.
+ */
+
+html {
+    font-size: 100%; /* 1 */
+    -ms-text-size-adjust: 100%; /* 2 */
+    -webkit-text-size-adjust: 100%; /* 2 */
+}
+
+/**
+ * Address `font-family` inconsistency between `textarea` and other form
+ * elements.
+ */
+
+html,
+button,
+input,
+select,
+textarea {
+    // font-family: sans-serif;
+}
+
+/**
+ * Address margins handled incorrectly in IE 6/7.
+ */
+
+body {
+    margin: 0;
+}
+
+/* ==========================================================================
+   Links
+   ========================================================================== */
+
+/**
+ * Address `outline` inconsistency between Chrome and other browsers.
+ */
+
+a:focus {
+    outline: thin dotted;
+}
+
+/**
+ * Improve readability when focused and also mouse hovered in all browsers.
+ */
+
+a:active,
+a:hover {
+    outline: 0;
+}
+
+/* ==========================================================================
+   Typography
+   ========================================================================== */
+
+/**
+ * Address font sizes and margins set differently in IE 6/7.
+ * Address font sizes within `section` and `article` in Firefox 4+, Safari 5,
+ * and Chrome.
+ */
+
+h1 {
+    font-size: 2em;
+    margin: 0.67em 0;
+}
+
+h2 {
+    font-size: 1.5em;
+    margin: 0.83em 0;
+}
+
+h3 {
+    font-size: 1.17em;
+    margin: 1em 0;
+}
+
+h4 {
+    font-size: 1em;
+    margin: 1.33em 0;
+}
+
+h5 {
+    font-size: 0.83em;
+    margin: 1.67em 0;
+}
+
+h6 {
+    font-size: 0.67em;
+    margin: 2.33em 0;
+}
+
+/**
+ * Address styling not present in IE 7/8/9, Safari 5, and Chrome.
+ */
+
+abbr[title] {
+    border-bottom: 1px dotted;
+}
+
+/**
+ * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome.
+ */
+
+b,
+strong {
+    font-weight: bold;
+}
+
+blockquote {
+    margin: 1em 40px;
+}
+
+/**
+ * Address styling not present in Safari 5 and Chrome.
+ */
+
+dfn {
+    font-style: italic;
+}
+
+/**
+ * Address differences between Firefox and other browsers.
+ * Known issue: no IE 6/7 normalization.
+ */
+
+hr {
+    -moz-box-sizing: content-box;
+    box-sizing: content-box;
+    height: 0;
+}
+
+/**
+ * Address styling not present in IE 6/7/8/9.
+ */
+
+mark {
+    background: #ff0;
+    color: #000;
+}
+
+/**
+ * Address margins set differently in IE 6/7.
+ */
+
+p,
+pre {
+    margin: 1em 0;
+}
+
+/**
+ * Correct font family set oddly in IE 6, Safari 4/5, and Chrome.
+ */
+
+code,
+kbd,
+pre,
+samp {
+    font-family: monospace, serif;
+    _font-family: 'courier new', monospace;
+    font-size: 1em;
+}
+
+/**
+ * Improve readability of pre-formatted text in all browsers.
+ */
+
+pre {
+    white-space: pre;
+    white-space: pre-wrap;
+    word-wrap: break-word;
+}
+
+/**
+ * Address CSS quotes not supported in IE 6/7.
+ */
+
+q {
+    quotes: none;
+}
+
+/**
+ * Address `quotes` property not supported in Safari 4.
+ */
+
+q:before,
+q:after {
+    content: '';
+    content: none;
+}
+
+/**
+ * Address inconsistent and variable font size in all browsers.
+ */
+
+small {
+    font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
+ */
+
+sub,
+sup {
+    font-size: 75%;
+    line-height: 0;
+    position: relative;
+    vertical-align: baseline;
+}
+
+sup {
+    top: -0.5em;
+}
+
+sub {
+    bottom: -0.25em;
+}
+
+/* ==========================================================================
+   Lists
+   ========================================================================== */
+
+/**
+ * Address margins set differently in IE 6/7.
+ */
+
+dl,
+menu,
+ol,
+ul {
+    margin: 1em 0;
+}
+
+dd {
+    margin: 0 0 0 40px;
+}
+
+/**
+ * Address paddings set differently in IE 6/7.
+ */
+
+menu,
+ol,
+ul {
+    padding: 0 0 0 40px;
+}
+
+/**
+ * Correct list images handled incorrectly in IE 7.
+ */
+
+nav ul,
+nav ol {
+    list-style: none;
+    list-style-image: none;
+}
+
+/* ==========================================================================
+   Embedded content
+   ========================================================================== */
+
+/**
+ * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3.
+ * 2. Improve image quality when scaled in IE 7.
+ */
+
+img {
+    border: 0; /* 1 */
+    -ms-interpolation-mode: bicubic; /* 2 */
+}
+
+/**
+ * Correct overflow displayed oddly in IE 9.
+ */
+
+svg:not(:root) {
+    overflow: hidden;
+}
+
+/* ==========================================================================
+   Figures
+   ========================================================================== */
+
+/**
+ * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11.
+ */
+
+figure {
+    margin: 0;
+}
+
+/* ==========================================================================
+   Forms
+   ========================================================================== */
+
+/**
+ * Correct margin displayed oddly in IE 6/7.
+ */
+
+form {
+    margin: 0;
+}
+
+/**
+ * Define consistent border, margin, and padding.
+ */
+
+fieldset {
+    border: 1px solid #c0c0c0;
+    margin: 0 2px;
+    padding: 0.35em 0.625em 0.75em;
+}
+
+/**
+ * 1. Correct color not being inherited in IE 6/7/8/9.
+ * 2. Correct text not wrapping in Firefox 3.
+ * 3. Correct alignment displayed oddly in IE 6/7.
+ */
+
+legend {
+    border: 0; /* 1 */
+    padding: 0;
+    white-space: normal; /* 2 */
+    *margin-left: -7px; /* 3 */
+}
+
+/**
+ * 1. Correct font size not being inherited in all browsers.
+ * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5,
+ *    and Chrome.
+ * 3. Improve appearance and consistency in all browsers.
+ */
+
+button,
+input,
+select,
+textarea {
+    font-size: 100%; /* 1 */
+    margin: 0; /* 2 */
+    vertical-align: baseline; /* 3 */
+    *vertical-align: middle; /* 3 */
+}
+
+/**
+ * Address Firefox 3+ setting `line-height` on `input` using `!important` in
+ * the UA stylesheet.
+ */
+
+button,
+input {
+    line-height: normal;
+}
+
+/**
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
+ * All other form control elements do not inherit `text-transform` values.
+ * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+.
+ * Correct `select` style inheritance in Firefox 4+ and Opera.
+ */
+
+button,
+select {
+    text-transform: none;
+}
+
+/**
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
+ *    and `video` controls.
+ * 2. Correct inability to style clickable `input` types in iOS.
+ * 3. Improve usability and consistency of cursor style between image-type
+ *    `input` and others.
+ * 4. Remove inner spacing in IE 7 without affecting normal text inputs.
+ *    Known issue: inner spacing remains in IE 6.
+ */
+
+button,
+html input[type="button"], /* 1 */
+input[type="reset"],
+input[type="submit"] {
+    -webkit-appearance: button; /* 2 */
+    cursor: pointer; /* 3 */
+    *overflow: visible;  /* 4 */
+}
+
+/**
+ * Re-set default cursor for disabled elements.
+ */
+
+button[disabled],
+html input[disabled] {
+    cursor: default;
+}
+
+/**
+ * 1. Address box sizing set to content-box in IE 8/9.
+ * 2. Remove excess padding in IE 8/9.
+ * 3. Remove excess padding in IE 7.
+ *    Known issue: excess padding remains in IE 6.
+ */
+
+input[type="checkbox"],
+input[type="radio"] {
+    box-sizing: border-box; /* 1 */
+    padding: 0; /* 2 */
+    *height: 13px; /* 3 */
+    *width: 13px; /* 3 */
+}
+
+/**
+ * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
+ * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
+ *    (include `-moz` to future-proof).
+ */
+
+input[type="search"] {
+    -webkit-appearance: textfield; /* 1 */
+    -moz-box-sizing: content-box;
+    -webkit-box-sizing: content-box; /* 2 */
+    box-sizing: content-box;
+}
+
+/**
+ * Remove inner padding and search cancel button in Safari 5 and Chrome
+ * on OS X.
+ */
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+    -webkit-appearance: none;
+}
+
+/**
+ * Remove inner padding and border in Firefox 3+.
+ */
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+    border: 0;
+    padding: 0;
+}
+
+/**
+ * 1. Remove default vertical scrollbar in IE 6/7/8/9.
+ * 2. Improve readability and alignment in all browsers.
+ */
+
+textarea {
+    overflow: auto; /* 1 */
+    vertical-align: top; /* 2 */
+}
+
+/* ==========================================================================
+   Tables
+   ========================================================================== */
+
+/**
+ * Remove most spacing between table cells.
+ */
+
+table {
+    border-collapse: collapse;
+    border-spacing: 0;
+}

+ 93 - 0
2018专题/我的冒险世界/src/sass/lego/_print.scss

@@ -0,0 +1,93 @@
+@charset "utf-8";
+/*
+ * @file: 打印样式
+ * @update: 2015-06-03 16:49:29
+ * @source: https://github.com/h5bp/html5-boilerplate/blob/master/css/main.css
+ */
+
+@media print,
+       (min-resolution: 1.25dppx),
+       (min-resolution: 120dpi) {
+    /* Style adjustments for high resolution devices */
+}
+
+/* ==========================================================================
+   Print styles.
+   Inlined to avoid the additional HTTP request:
+   http://www.phpied.com/delay-loading-your-print-css/
+   ========================================================================== */
+
+@media print {
+    *,
+    *:before,
+    *:after {
+        background: transparent !important;
+        color: #000 !important; /* Black prints faster: http://www.sanbeiji.com/archives/953 */
+        box-shadow: none !important;
+        text-shadow: none !important;
+    }
+
+    a,
+    a:visited {
+        text-decoration: underline;
+    }
+
+    a[href]:after {
+        content: " (" attr(href) ")";
+    }
+
+    abbr[title]:after {
+        content: " (" attr(title) ")";
+    }
+
+    /*
+     * Don't show links that are fragment identifiers,
+     * or use the `javascript:` pseudo protocol
+     */
+
+    a[href^="#"]:after,
+    a[href^="javascript:"]:after {
+        content: "";
+    }
+
+    pre,
+    blockquote {
+        border: 1px solid #999;
+        page-break-inside: avoid;
+    }
+
+    /*
+     * Printing Tables:
+     * http://css-discuss.incutio.com/wiki/Printing_Tables
+     */
+
+    thead {
+        display: table-header-group;
+    }
+
+    tr,
+    img {
+        page-break-inside: avoid;
+    }
+
+    img {
+        max-width: 100% !important;
+    }
+
+    p,
+    h2,
+    h3 {
+        orphans: 3;
+        widows: 3;
+    }
+
+    h2,
+    h3 {
+        page-break-after: avoid;
+    }
+    
+    .u-printHide {
+        display: none !important;
+    }
+
+}

+ 138 - 0
2018专题/我的冒险世界/src/sass/lego/_reset.scss

@@ -0,0 +1,138 @@
+@charset "utf-8";
+/*
+ * @file: 重置样式
+ * @update: 2015-06-03 17:28:19
+ */
+
+body {
+    // font: #{$base-font-size}/#{$base-line-height} $base-font-family;
+    color: $base-text-color;
+    background-color: $base-bg-color;
+}
+a {
+    text-decoration: none;
+    color: nth($base-link-color, 1);
+    &:hover {
+        text-decoration: $base-link-decoration;
+        color: nth($base-link-color, 2);
+    }
+}
+
+/* 去除现代浏览器图片底部的空隙 */
+img {
+    vertical-align: top;
+}
+em {
+    font-style: normal;
+}
+ol,
+ul,
+menu {
+    list-style: none outside none;
+}
+fieldset,
+iframe {
+    border: 0 none;
+}
+dl,
+dt,
+dd,
+ul,
+ol,
+li,
+h1,
+h2,
+h3,
+h4,
+h5,
+h6,
+pre,
+code,
+form,
+fieldset,
+legend,
+input,
+button,
+textarea,
+p,
+blockquote,
+th,
+td,
+hr,
+article,
+aside,
+canvas,
+details,
+embed,
+figure,
+figcaption,
+footer,
+header,
+hgroup,
+menu,
+nav,
+output,
+ruby,
+section,
+summary,
+time,
+mark,
+audio,
+video {
+    margin: 0;
+    padding: 0;
+}
+
+/* IE6 7 8(q) bug 显示为行内表现 */
+iframe {
+    display: block;
+}
+
+/* IE bug fixed: th 不继承 text-align */
+th {
+    text-align: inherit;
+}
+
+/* 修正表单元素不继承父级字体族的问题 */
+input,
+button,
+select,
+textarea {
+    font-family: Tahoma, Arial, "Helvetica Neue", Helvetica, sans-serif;
+}
+
+/**
+ * 移除 IE6-11 中默认的垂直滚动条
+ * 禁止水平拖动,防止破坏布局
+ */
+textarea {
+    @include resizable(vertical);
+}
+
+/* 一致的 del 样式 */
+del {
+    text-decoration: line-through;
+}
+
+abbr {
+    cursor: help;
+}
+
+
+/* 以下为排版样式 */
+
+hr {
+    height: 10px;
+    margin-bottom: .8em;
+    border: 0;
+    border-bottom: 1px solid #cfcfcf;
+}
+
+blockquote {
+    position: relative;
+    padding: 0 15px;
+    margin: 15px 0;
+    border-left: 4px solid #ddd;
+    color: #999;
+}
+

+ 63 - 0
2018专题/我的冒险世界/src/sass/lego/_table.scss

@@ -0,0 +1,63 @@
+@charset "utf-8";
+
+/*
+ * @file: table表格基础UI组件
+ * @update: 2015-06-05 16:45:07
+ */
+
+/*
+ * 默认表格
+ * @base
+ */
+$cell-padding: 8px; // 单元格padding
+
+.ui-table {
+    width: 100%;
+    font-size: 12px;
+    th,
+    td {
+        padding: $cell-padding;
+    }
+    th {
+        text-align: left;
+        font-weight: 700;
+    }
+}
+
+/*
+ * 有边框的表格
+ * @extend: border
+ */
+.ui-table {
+    &.ext-border {
+        th,
+        td {
+            border: 1px solid #d2d2d2;
+        }
+    }
+}
+
+/*
+ * 隔行变色表格
+ * @extend: striped
+ */
+.ui-table {
+    &.ext-striped {
+        tbody tr:nth-child(even) {
+            background-color: #f9f9f9; 
+        }
+    }
+
+}
+
+/*
+ * hover变色表格
+ * @extend: hover
+ */
+.ui-table {
+    &.ext-hover {
+        tbody tr:hover {
+            background-color: #f9f9f9;
+        }
+    }
+}

+ 71 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.accordion.scss

@@ -0,0 +1,71 @@
+@charset "utf-8";
+/*
+ * @file: 手风琴UI组件
+ * @update: 2015-06-03 16:36:10
+ */
+
+/*
+ * 默认手风琴(horizontal)
+ * @base
+ */
+$base-width: 500px; // 手风琴宽度
+$base-content-height: 150px; // content高度
+
+.ui-accordion {
+    width: $base-width;
+}
+.ui-accordion__hd {
+    @include clearfix;
+    padding: 8px 10px;
+    margin-top: -1px;
+    background-color: $heading-bg-color;
+    border: 1px solid $base-border-color;
+    cursor: pointer;
+    &.is-active {
+        background-color: $active-bg-color;
+        cursor: default;
+    }
+}
+.ui-accordion__tit {
+    float: left;
+}
+.ui-accordion__ext {
+    float: right;
+}
+.ui-accordion__bd {
+    height: $base-content-height;
+    padding: 10px;
+    border: 1px solid $base-border-color;
+    border-top-width: 0;
+}
+
+
+/*
+ * 纵向手风琴
+ * @extend: vertical
+ */
+$vertical-content-width: 320px; // content宽度
+$vertical-content-height: 300px; // content高度
+
+.ui-accordion {
+    &.ext-vertical {
+        @include clearfix;
+        width: auto;
+        .ui-accordion__hd {
+            float: left;
+            width: 18px;
+            height: $vertical-content-height;
+            padding: 10px 8px;
+            margin-top: 0;
+            margin-left: -1px;
+            text-align: center;
+        }
+        .ui-accordion__bd {
+            float: left;
+            width: $vertical-content-width;
+            height: $vertical-content-height;
+            margin-left: -1px;
+            border-top-width: 1px;
+        } 
+    }
+}

+ 39 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.badge.scss

@@ -0,0 +1,39 @@
+@charset "utf-8";
+/*
+ * @file: 徽章UI组件
+ * @update: 2015-06-03 16:35:21
+ */
+
+/*
+ * 默认徽章
+ * @base
+ */
+.ui-badge {
+    @include inline-block;
+    min-width: 10px;
+    padding: 3px 6px;
+    line-height: 1;
+    text-align: center;
+}
+
+
+/*
+ * 圆角徽章
+ * @extend: radius
+ */
+.ui-badge {
+    &.ext-radius {
+        border-radius: 3px;
+    }
+}
+
+
+/*
+ * 圆形徽章
+ * @extend: round
+ */
+.ui-badge {
+    &.ext-round {
+        border-radius: 10px;
+    }
+}

+ 117 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.carousel.scss

@@ -0,0 +1,117 @@
+@charset "utf-8";
+/*
+ * @file: 旋转木马基础UI组件
+ * @update: 2015-06-03 16:33:54
+ */
+ 
+/*
+ * 默认旋转木马
+ * @base
+ */
+$carousel-x-width: 440px; // 主体宽度
+$carousel-x-per-number: 5; // 每一页item个数
+$carousel-x-item-height: 80px; // item高度
+$carousel-x-item-width: 80px; // item宽度
+$carousel-x-spacing: 10px; // item间距
+$carousel-x-switch-btn-width: 24px; // 翻页按钮宽度
+
+.ui-carousel {
+    position: relative;
+    width: $carousel-x-per-number*$carousel-x-item-width+($carousel-x-per-number - 1)*$carousel-x-spacing;
+    padding: 0 $carousel-x-switch-btn-width+$carousel-x-spacing;
+}
+.ui-carousel__scroller {
+    width: $carousel-x-per-number*$carousel-x-item-width+($carousel-x-per-number - 1)*$carousel-x-spacing;
+    height: $carousel-x-item-height;
+    overflow: hidden;
+}
+.ui-carousel__content {
+    width: 100000px !important; /* 修正carousel组件自生成的长度值太大导致低版本IE不显示的bug */
+    height: $carousel-x-item-height;
+}
+.ui-carousel__item {
+    float: left;
+    width: $carousel-x-item-width;
+    height: $carousel-x-item-height;
+    margin-right: $carousel-x-spacing;
+}
+.ui-carousel__prev,
+.ui-carousel__next {
+    position: absolute;
+    top: 0;
+    width: $carousel-x-switch-btn-width;
+    height: $carousel-x-item-height;
+    line-height: $carousel-x-item-height;
+    cursor: pointer;
+    text-align: center;
+    &.is-disabled {
+        color: #ccc;
+        cursor: default;
+    }
+    .ui-icon {
+        font-size: 24px;
+    }
+}
+.ui-carousel__prev {
+    left: 0;
+}
+.ui-carousel__next {
+    right: 0;
+}
+.ui-carousel__controller {
+    margin-top: 5px;
+    text-align: center;
+    .ui-carousel__prev {
+        margin-right: 5px;
+    }
+}
+
+
+/*
+ * 纵向旋转木马
+ * @extend: vertical
+ */
+$carousel-y-width: 300px;  // 主体宽度
+$carousel-y-per-number: 5; // 每一页item个数
+$carousel-y-item-width: 300px; // item宽度
+$carousel-y-item-height: 50px; // item高度
+$carousel-y-spacing: 10px; // item间距
+$carousel-y-switch-btn-height: 24px; // 翻页按钮高度
+
+.ui-carousel {
+    &.ext-vertical {
+        width: $carousel-y-width;
+        padding: 29px 0;
+        .ui-carousel__content {
+            width: auto !important;
+            height: auto;
+        }
+        .ui-carousel__scroller {
+            width: $carousel-y-width;
+            height: $carousel-y-per-number*$carousel-y-item-height+($carousel-y-per-number - 1)*$carousel-y-spacing;
+            overflow: hidden;
+        }
+        .ui-carousel__item {
+            float: none;
+            width: auto;
+            height: $carousel-y-item-height;
+            padding: $carousel-y-spacing/2 0;
+            margin: 0;
+        }
+        .ui-carousel__prev,
+        .ui-carousel__next {
+            width: $carousel-y-width;
+            height: $carousel-y-switch-btn-height;
+            line-height: $carousel-y-switch-btn-height;
+        }
+        .ui-carousel__prev {
+            top: 0;
+            left: 0;
+        }
+        .ui-carousel__next {
+            top: auto;
+            right: 0;
+            bottom: 0;
+        }
+    }
+}

+ 75 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.dialog.scss

@@ -0,0 +1,75 @@
+@charset "utf-8";
+/*
+ * @file: dialog基础UI组件
+ * @update: 2015-06-05 16:45:13
+ */
+
+/*
+ * 默认dialog
+ * @base
+ */
+$close-icon-width: 46px; // 关闭按钮宽度
+$close-icon-height: 44px; // 关闭按钮高度
+$close-icon: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAsCAMAAAAtr3oOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAOVBMVEX////19fX+/v7y8vX///+oqKjz8/Xz8/b09Pb09Pf19ff29vj39/n4+Pn4+Pr5+fr5+fv6+vsAAABX36Q3AAAAA3RSTlPmTOc1ux8eAAAAAWJLR0QSe7xsAAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAIhJREFUSMft0tsKgDAIBmArbZ0P7/+yERHF/B1JDLrIu8GHuF+p4udFBXk4lz7OP//5ay5iv1D3u4g1GuYySsPZT6U1/urhgDaS2SXSVpAiUJu5Y81U+7oH3+zB0EYywdI492BquNUmlYm+mTaZoLrImKeLOh/vs/IhKx99fPLxOStffHz9EN8Aw/wgV5BHry4AAAAASUVORK5CYII=";  // 关闭按钮背景图片链接地址
+$close-icon-hover: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC4AAAAsCAMAAAAtr3oOAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAOVBMVEX////19fX+/v7y8vX////MzMzz8/Xz8/b09Pb09Pf19ff29vj39/n4+Pn4+Pr5+fr5+fv6+vsAAABAtFMnAAAAA3RSTlPmTOc1ux8eAAAAAWJLR0QSe7xsAAAAAAlwSFlzAAALEgAACxIB0t1+/AAAAIhJREFUSMft0tsKgDAIBmArbZ0P7/+yERHF/B1JDLrIu8GHuF+p4udFBXk4lz7OP//5ay5iv1D3u4g1GuYySsPZT6U1/urhgDaS2SXSVpAiUJu5Y81U+7oH3+zB0EYywdI492BquNUmlYm+mTaZoLrImKeLOh/vs/IhKx99fPLxOStffHz9EN8Aw/wgV5BHry4AAAAASUVORK5CYII=";  // 关闭按钮hover背景图链接地址
+
+.ui-dialog {
+    outline: none;
+}
+.ui-dialog-close {
+    position: absolute;
+    right: 0;
+    z-index: 9;
+    width: $close-icon-width;
+    height: 0;
+    padding-top: $close-icon-height;
+    overflow: hidden;
+    background-image: url($close-icon);
+    background-repeat: no-repeat;
+    border-top-right-radius: 4px;
+    &:hover {
+        background-image: url($close-icon-hover);
+    }
+}
+.ui-dialog__hd {
+    position: relative;
+    height: 22px;
+    padding: 12px;
+    border-bottom: 1px solid #f2f2f5;
+    line-height: 22px;
+    background-color: #fff;
+    border-radius: 4px 4px 0 0;
+}
+.ui-dialog__tit {
+    float: left;
+    margin-right: 10px;
+    font-size: 16px;
+    font-weight: 700;
+}
+.ui-dialog__meta {
+    font-size: 12px;
+    color: #999;
+}
+.ui-dialog__bd {
+    background-color: #fff;
+    border-radius: 0 0 4px 4px;
+}
+
+
+/*
+ * 带半透明边框dialog
+ * @extend: border
+ */
+$border-width: 5px; // 边框大小
+$radius: 4px; // 边框圆角
+
+.ui-dialog {
+    &.ext-border {
+        padding: $border-width;
+        border-radius: $radius;
+        background-color: rgba(0, 0, 0, .2);
+        .ui-dialog-close {
+            right: $border-width;
+        }
+    }
+}

+ 187 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.figure.scss

@@ -0,0 +1,187 @@
+@charset "utf-8";
+/*
+ * @file: 图片列表基础UI组件
+ * @update: 2015-06-05 16:45:29
+ */
+ 
+/*
+ * 默认图片列表
+ * @base
+ */
+$img-width: 228px; // 图片宽度
+$img-height: 128px; // 图片高度
+$item-margin-right: 10px; // item右方外边距
+$item-margin-bottom: 10px; // item下方外边距
+$mask-height: 24px; // 遮罩层高度
+$mask-line-height: 24px; // 遮罩层行高
+
+.ui-figure {
+    margin-right: -$item-margin-right;
+    font-size: 0; // 所有浏览器
+    *word-spacing: -1px; // IE6/7
+}
+@media (-webkit-min-device-pixel-ratio:0) {
+    .ui-figure {
+        letter-spacing: -5px; // Safari 5- 等不支持 font-size: 0 的浏览器
+    }
+}
+.ui-figure__item {
+    @include inline-block(top, true);
+    width: $img-width;
+    margin-right: $item-margin-right;
+    margin-bottom: $item-margin-bottom;
+    font-size: 12px;
+    letter-spacing: normal;
+    word-spacing: normal;
+    overflow: hidden;
+}
+.ui-figure__bd {
+    position: relative;
+    display: block;
+    height: $img-height; // 如不需兼容IE6,可使用100%
+}
+a.ui-figure__bd {
+    cursor: pointer;
+    &:hover {
+        text-decoration: none;
+    }
+}
+.ui-figure__img {
+    width: $img-width;
+    height: $img-height;
+    overflow: hidden;
+}
+.ui-figure__mask {
+    position: absolute;
+    right: 0;
+    bottom: 0;
+    width: 100%;
+    height: $mask-height;
+    line-height: $mask-line-height;
+    text-indent: 5px;
+    color: #fff;
+    overflow: hidden;
+    @include transparent(#000, .5, true);
+}
+.ui-figure__sign {
+    float: left;
+    margin-right: 5px;
+}
+.ui-figure__meta {
+    display: block;
+    margin-right: 5px;
+    overflow: hidden;
+    *zoom: 1;
+    text-align: right;
+}
+.ui-figure__caption {
+    display: block;
+    margin-top: 5px;
+    font-size: 12px;
+    font-weight: normal;
+}
+
+
+/*
+ * 以下为带变量参数的公用类,可方便拷贝并新建无冗余的扩展类
+ */
+
+/*
+.ui-figure {
+    &.ext-name {
+        margin-right: -$item-margin-right;
+        .ui-figure__item {
+            width: $img-width;
+            margin-right: $item-margin-right;
+            margin-bottom: $item-margin-bottom;
+        }
+        .ui-figure__bd {
+            height: $img-height; //如不需兼容IE6,可使用100%
+        }
+        .ui-figure__img {
+            width: $img-width;
+            height: $img-height;
+        }
+        .ui-figure__mask {
+            height: $mask-height;
+            line-height: $mask-line-height;
+            text-indent: 5px;
+        }
+    }
+}
+*/
+
+
+/*
+ * 全屏封面
+ * @extend: cover
+ */
+.ui-figure {
+    &.ext-cover {
+        .ui-figure__bd {
+            overflow: hidden;
+            &:hover,
+            &.is-hover {
+                .ui-figure__mask {
+                    bottom: 0;
+                }
+            }
+        }
+        .ui-figure__mask {
+            bottom: -100%;
+            height: 100%;
+            line-height: 1.5;
+            text-indent: 0;
+            transition: bottom .2s ease-out 0;
+            -webkit-backface-visibility: hidden;
+            -webkit-transform-style: preserve-3d;
+        }
+    }
+}
+
+
+/*
+ * 遮罩自适应
+ * @extend: autoMask
+ */
+.ui-figure {
+    &.ext-autoMask {
+        .ui-figure__mask {
+            width: auto;
+        }
+    }
+}
+
+
+/*
+ * 无遮罩
+ * @extend: noMask
+ */
+.ui-figure {
+    &.ext-noMask {
+        .ui-figure__mask {
+            background: none;
+            filter: none;
+        }
+    }
+}
+
+
+/*
+ * 有边框
+ * @extend: border
+ */
+$figure-border-color: #ddd;
+.ui-figure {
+    &.ext-border {
+        .ui-figure__item {
+            padding: 2px;
+            border: 1px solid $figure-border-color;
+        }
+        .ui-figure__caption {
+            padding: 0 5px 5px;
+        }
+    }
+}
+
+

+ 28 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.lineList.scss

@@ -0,0 +1,28 @@
+@charset "utf-8";
+
+/*
+ * @file: 带分割线的文本列表
+ * @update: 2015-06-05 16:44:52
+ */
+
+/*
+ * 默认
+ * @base
+ */
+$line-color: #ddd; // 带分割线颜色
+
+.ui-lineList {
+    overflow: hidden;
+    font-size: 0;
+    a {
+        @include inline-block;
+        @include nowrap;
+        margin-left: -1px;
+        padding: 0 10px;
+        line-height: 1.1;
+        border-left: 1px solid $line-color;
+        color: #999;
+        font-size: 12px;
+    }
+}
+

+ 41 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.marquee.scss

@@ -0,0 +1,41 @@
+@charset "utf-8";
+/*
+ * @file: 轮播文字条基础UI模块
+ * @update: 2015-06-05 16:45:23
+ */
+ 
+/*
+ * 默认轮播文字条
+ * @base
+ */
+
+.ui-marquee {
+    position: relative;
+    height: 22px;
+    padding: 0 30px 0 10px;
+    border: 1px solid #dedede;
+    font-size: 12px;
+    overflow: hidden;
+}
+.ui-marquee__panel {
+    height: 22px;
+    line-height: 22px;
+    overflow: hidden;
+}
+.ui-marquee__prev,
+.ui-marquee__next {
+    position: absolute;
+    right: 0;
+    cursor: pointer;
+    @include opacity(.5, true);
+    &:hover {
+        @include opacity(1, true);
+    }
+}
+
+.ui-marquee__prev {
+    top: -2px;
+}
+.ui-marquee__next {
+    top: 8px;
+}

+ 36 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.media.scss

@@ -0,0 +1,36 @@
+@charset "utf-8";
+
+/*
+ * @file: 图文混排基础UI组件
+ * @update: 2015-06-03 16:26:12
+ */
+
+$img-width: 60px; // 图片宽度
+$img-height: 60px; // 图片高度
+
+.ui-media__item {
+    @include clearfix;
+    margin-bottom: 20px;
+}
+.ui-media__hd {
+    float: left;
+    margin-right: 15px;
+}
+.ui-media__bd {
+    overflow: hidden;
+    zoom: 1;
+}
+.ui-media__ft {
+    float: right;
+    margin-left: 15px;
+}
+.ui-media__tit {
+    margin-bottom: 10px;
+    line-height: 1.1;
+    font-size: 16px;
+}
+.ui-media__img {
+    width: $img-width;
+    height: $img-height;
+    overflow: hidden;
+}

+ 117 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.paging.scss

@@ -0,0 +1,117 @@
+@charset "utf-8";
+
+/*
+ * @file: 分页导航基础UI组件
+ * @update: 2015-06-03 16:25:44
+ */
+
+/*
+ * 默认分页导航
+ * @base
+ */
+$paging-num-color: #666; // 分页码字体颜色
+
+.ui-paging {
+    vertical-align: middle;
+    zoom: 1;
+    font-size: 0; /* 所有浏览器 */
+    *word-spacing: -1px; /* IE6/7 */
+}
+@media (-webkit-min-device-pixel-ratio:0) {
+    .ui-paging {
+        letter-spacing: -5px; /* Safari 5- 等不支持 font-size: 0 的浏览器*/
+    }
+}
+.ui-paging {
+    .ui-paging__item,
+    .ui-paging__info,
+    .ui-paging__which,
+    .ui-paging__ellipsis {
+        font-size: 12px;
+        letter-spacing: normal;
+        word-spacing: normal;
+    }
+}
+.ui-paging__item {
+    @include inline-block;
+    padding: 5px 8px;
+    margin-right: 10px;
+    line-height: 1;
+    border-radius: 3px;
+    color: $paging-num-color;
+    border: 1px solid #fff;
+    
+    /* ===状态类(当前)=== */
+    &.is-current {
+        color: $primary-text-color;
+        background-color: $primary-color;
+        border-color: $primary-color;
+        &:hover {
+            background-color: $primary-color;
+            border-color: $primary-color;
+        }
+    }
+    
+    /* ===状态类(禁用)=== */
+    &.is-disabled {
+        filter: none;
+        cursor: default;
+    }
+}
+a.ui-paging__item {
+    &:hover {
+        text-decoration: none;
+        color: $paging-num-color;
+        background-color: $heading-bg-color;
+        border-color: $heading-bg-color;
+    }
+}
+.ui-paging__ellipsis,
+.ui-paging__info {
+    margin-right: 10px;
+}
+.ui-paging__info {
+    @include inline-block;
+}
+.ui-paging__which {
+    width: 22px;
+    height: 20px;
+    line-height: 20px;
+    padding: 0 6px;
+    margin-right: 10px;
+    border: 1px solid #ccc;
+    vertical-align: middle;
+    text-align: center;
+}
+
+
+/*
+ * 完整型分页导航
+ * @extend: primary
+ */
+.ui-paging {
+    &.ext-full {
+        .ui-paging__item {
+            background-color: $heading-bg-color;
+            border-color: $heading-bg-color;
+            &.is-current {
+                color: $primary-text-color;
+                background-color: $primary-color;
+                border-color: $primary-color;
+            }
+            &.is-disabled {
+                color: $disabled-text-color;
+                background-color: $disabled-bg-color;
+                border-color: $disabled-bg-color;
+            }
+        }
+        a.ui-paging__item {
+            &:hover {
+                color: $primary-text-color;
+                background-color: $primary-color;
+                border-color: $primary-color;
+            }
+        }
+    }
+}
+

+ 123 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.panel.scss

@@ -0,0 +1,123 @@
+@charset "utf-8";
+
+/*
+ * @file: 区块面板基础UI组件
+ * @update: 2015-06-03 16:23:03
+ */
+
+/*
+ * 默认面板
+ * @base
+ */
+$panel-font-size: 12px; // 面板字号
+$panel-hd-height: 36px; // 标题高度
+$tit-font-size: 14px; // 标题字号
+
+.ui-panel {
+    font-size: $panel-font-size;
+    *zoom: 1;
+}
+.ui-panel__hd {
+    position: relative;
+    height: $tit-font-size + 2;
+    padding-top: 8px;
+    padding-bottom: 8px;
+    line-height: $tit-font-size + 2;
+    .ui-lineList {
+        margin-top: 1px;
+        margin-right: -10px;
+    }
+}
+.ui-panel__bd {
+    padding-top: 10px;
+    padding-bottom: 10px;
+}
+.ui-panel__tit {
+    float: left;
+    margin-right: 10px;
+    font-size: $tit-font-size;
+    font-weight: 700;
+    color: #333;
+}
+.ui-panel__ico {
+    float: left;
+    width: 14px;
+    height: 14px;
+    margin-right: 5px;
+    background-color: #666;
+}
+.ui-panel__meta {
+    float: left;
+    margin-top: 1px;
+    margin-right: 10px;
+    color: #999;
+}
+.ui-panel__more {
+    float: right;
+}
+
+
+/*
+ * 带边框的面板
+ * @extend: border
+ */
+$title-bg-color: #f5f5f5; // 标题背景颜色
+$box-border-color: #ddd; // 边框颜色
+
+.ui-panel {
+    &.ext-border {
+        border: 1px solid $box-border-color;
+        border-bottom: 0;
+        .ui-panel__hd {
+            padding: 10px;
+            border-bottom: 1px solid $box-border-color;
+            background-color: $title-bg-color;
+        }
+        .ui-panel__bd {
+            padding: 10px;
+            border-bottom: 1px solid $box-border-color;
+        }
+    }
+}
+
+
+/*
+ * 弹窗外观的面板
+ * @extend: pop
+ */
+$pop-border-width: 5px; // 半透明边框宽度
+$pop-border-radius: 5px; // 区块圆角
+
+.ui-panel {
+    &.ext-pop {
+        padding: $pop-border-width;
+        border-radius: $pop-border-radius;
+        @include transparent(#000, .1, true);
+        .ui-panel__hd {
+            padding: 10px;
+            background-color: $title-bg-color;
+        }
+        .ui-panel__bd {
+            padding: 10px;
+            background-color: #fff;
+        }
+        .ui-panel__close {
+            @include inline-block;
+            width: 18px;
+            height: 18px;
+            margin-top: -4px;
+            font-family: Helvetica, STHeiti;
+            _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino;
+            font-size: 18px;
+            text-align: center;
+            line-height: 18px;
+            color: #bbb;
+            &:hover {
+                color: #fff;
+                background-color: #ddd;
+                border-radius: 3px;
+            }
+        }
+    }
+}
+

+ 33 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.progress.scss

@@ -0,0 +1,33 @@
+@charset "utf-8";
+
+/*
+ * @file: 进度条基础UI组件
+ * @update: 2015-06-03 16:21:04
+ */
+
+/*
+ * 默认面板
+ * @base
+ */
+$progress-height: 24px;
+
+.ui-progress {
+    overflow: hidden;
+    height: $progress-height;
+    background-color: #f5f5f5;
+    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
+    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
+}
+.ui-progress__bar {
+    float: left;
+    width: 0;
+    height: 100%;
+    line-height: $progress-height;
+    text-align: center;
+    color: #fff;
+    background-color: #0097d6;
+    -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
+    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15);
+    -webkit-transition: width .6s ease;
+    transition: width .6s ease;
+}

+ 252 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.slide.scss

@@ -0,0 +1,252 @@
+@charset "utf-8";
+/*
+ * @file: 图片轮播基础UI组件
+ * @update: 2015-06-30 17:46:06
+ */
+ 
+/*
+ * 默认图片轮播
+ * @base
+ */
+$img-width: 1000px; // 图片宽度
+$img-height: 300px; // 图片高度
+
+.ui-slide {
+    position: relative;
+    width: $img-width;
+    overflow: hidden;
+    img {
+        width: 100%;
+        height: 100%;
+    }
+}
+.ui-slide__content {
+    position: relative;
+    height: $img-height;
+}
+.ui-slide__panel {
+    position: absolute;
+    width: $img-width;
+    height: $img-height;
+    overflow: hidden;
+    a {
+        display: block;
+    }
+}
+.ui-slide__mask {
+    position: absolute;
+    bottom: 0;
+    right: 0;
+    width: 100%;
+    height: 100%;
+    overflow: hidden;
+    // padding: 10px 0;
+    text-indent: 10px;
+    font-size: 20px;
+    line-height: 20px;
+    color: #fff;
+    @include transparent(#000, .5, true);
+}
+
+.ui-slide__prev,
+.ui-slide__next {
+    position: absolute;
+    top: 50%;
+    cursor: pointer;
+    // @include transparent(#000, .3, true);
+    .ui-icon {
+        font-size: 24px;
+        color: #fff;
+    }
+    &:hover {
+        // @include transparent(#000, .6, true);
+    }
+}
+.ui-slide__prev {
+    left: 0;
+}
+.ui-slide__next {
+    right: 0;
+}
+
+/*
+ * 点状导航的图片轮播
+ * @extend: dotted
+ */
+.ui-slide {
+    &.ext-dotted {
+        .ui-slide__nav {
+            position: absolute;
+            bottom: 15px;
+            z-index: 99;
+            width: 100%;
+            text-align: center;
+            font-size: 0; /* 所有浏览器 */
+            *word-spacing: -1px; /* IE6/7 */
+        }
+
+        .ui-slide__trigger {
+            @include inline-block;
+            vertical-align: top;
+            font-size: 12px;
+            letter-spacing: normal;
+            word-spacing: normal;
+            
+            width: 10px;
+            height: 0;
+            padding-top: 10px;
+            cursor: pointer;
+            overflow: hidden;
+            border-radius: 50%;
+            margin-left: 4px;
+            margin-right: 4px;
+            background-color: #ccc;
+            &.is-active {
+                background-color: #ff6c00;
+            }
+        }
+    }
+}
+// @media (-webkit-min-device-pixel-ratio:0) {
+//     .ui-slide.ext-dotted .ui-slide__nav {
+//         letter-spacing: -5px; /* Safari 5- 等不支持 font-size: 0 的浏览器*/
+//     }
+// }
+
+
+/*
+ * 缩略图导航公共部分
+ * @extend: thumbX/thumbY
+ */
+$active-border-width: 3px; // 激活项边框宽度
+$active-border-color: #288ad6; // 激活项边框颜色
+
+.ui-slide {
+    &.ext-thumbX,
+    &.ext-thumbY {
+        .ui-slide__trigger {
+            &.is-active {
+                .ui-slide__thumbMask {
+                    border: $active-border-width solid $active-border-color;
+                    background: 0 0;
+                    @include opacity(1, true);
+                }
+                &::after {
+                    content: "";
+                    position: absolute;
+                    width: 0;
+                    height: 0;
+                    border-width: 8px;
+                    border-style: solid;
+                }
+            }
+        }
+    }
+}
+.ui-slide__thumbMask {
+    position: absolute;
+    top: 0;
+    left: 0;
+    display: block;
+    background: #fff;
+    @include opacity(.1, true);
+}
+
+    
+/*
+ * 横向缩略图导航
+ * @extend: thumbX
+ */
+$thumb-x-width: 170px; // 缩略图宽度
+$thumb-x-height: 94px; // 缩略图高度
+$thumb-x-spacing: 20px; // 缩略图间距
+
+.ui-slide {
+    &.ext-thumbX {
+        .ui-slide__nav {
+            @include clearfix;
+            padding-top: 15px;
+            margin-right: -$thumb-x-spacing;
+        }
+        .ui-slide__trigger {
+            position: relative;
+            float: left;
+            margin-right: $thumb-x-spacing;
+            width: $thumb-x-width;
+            height: $thumb-x-height;
+            cursor: pointer;
+            &.is-active {
+                .ui-slide__thumbMask {
+                    width: $thumb-x-width - 2*$active-border-width;
+                    height: $thumb-x-height - 2*$active-border-width;
+                }
+                &::after {
+                    top: -16px;
+                    left: 50%;
+                    margin-left: -8px;
+                    border-color: transparent transparent $active-border-color;
+                }
+            }
+        }
+        .ui-slide__thumbMask {
+            width: $thumb-x-width;
+            height: $thumb-x-height;
+        }
+    }
+}
+
+/*
+ * 纵向缩略图导航
+ * @extend: thumbY
+ */
+$img-y-width: 555px; // 图片宽度
+$img-y-height: 300px; // 图片高度
+$thumb-y-width: 170px; // 缩略图宽度
+$thumb-y-height: 90px; // 缩略图高度
+$thumb-y-spacing: 15px; // 缩略图间距
+
+.ui-slide {
+    &.ext-thumbY {
+        height: $img-y-height;
+        .ui-slide__content {
+            float: left;
+            width: $img-y-width;
+            height: $img-y-height;
+        }
+        .ui-slide__panel {
+            width: $img-y-width;
+            height: $img-y-height;
+        }
+        .ui-slide__nav {
+            overflow: hidden;
+            zoom: 1;
+            padding-left: 15px;
+            margin-bottom: -$thumb-y-spacing;
+        }
+        .ui-slide__trigger {
+            position: relative;
+            float: left;
+            margin-bottom: $thumb-y-spacing;
+            width: $thumb-y-width;
+            height: $thumb-y-height;
+            cursor: pointer;
+            &.is-active {
+                .ui-slide__thumbMask {
+                    width: $thumb-y-width - 2*$active-border-width;
+                    height: $thumb-y-height - 2*$active-border-width;
+                }
+                &::after {
+                    left: -16px;
+                    top: 50%;
+                    margin-top: -8px;
+                    border-color: transparent $active-border-color transparent transparent;
+                }
+            }
+        }
+        .ui-slide__thumbMask {
+            width: $thumb-y-width;
+            height: $thumb-y-height;
+        }
+    }
+}
+

+ 58 - 0
2018专题/我的冒险世界/src/sass/lego/_ui.tab.scss

@@ -0,0 +1,58 @@
+@charset "utf-8";
+
+/*
+ * @file: 选项卡UI组件
+ * @update: 2015-06-03 16:17:02
+ */
+ 
+/*
+ * 默认选项卡
+ * @base
+ */
+.ui-tab__hd {
+    position: relative;
+    margin-bottom: 15px;
+}
+.ui-tab__ext {
+    position: absolute;
+    top: 50%;
+    right: 0;
+    margin-top: -8px;
+}
+.ui-tab__nav {
+    font-size: 0; /* 所有浏览器 */
+    *word-spacing: -1px; /* IE6/7 */
+    // border-bottom: 1px solid $base-border-color;
+}
+@media (-webkit-min-device-pixel-ratio:0) {
+    .ui-tab__nav {
+        letter-spacing: -5px; /* Safari 5- 等不支持 font-size: 0 的浏览器*/
+    }
+}
+.ui-tab__trigger {
+    @include inline-block(top, true);
+    letter-spacing: normal;
+    word-spacing: normal;
+    margin-right: 3px;
+    height: 32px;
+    line-height: 32px;
+    font-size: 14px;
+    border: 1px solid #fff;
+    border-bottom: 0;
+    background-color: #fff;
+    overflow: hidden;
+    cursor: pointer;
+    font-family: PingFang sc,"Helvetica Neue",Helvetica,Tahoma,Arial,"Liberation Sans","Hiragino Sans GB","Source Han Sans CN","Source Han Sans SC","Microsoft YaHei","Wenquanyi Micro Hei","WenQuanYi Zen Hei","ST Heiti",SimHei,"WenQuanYi Zen Hei Sharp",sans-serif;
+    &.is-active {
+        *position: relative;
+        // margin-bottom: -1px;
+        padding-bottom: 1px;
+        border-color: $base-border-color;
+    }
+    a {
+        display: block;
+        padding: 0 15px;
+        color: $base-text-color;
+    }
+}
+

+ 334 - 0
2018专题/我的冒险世界/src/sass/lego/_utility.scss

@@ -0,0 +1,334 @@
+@charset "utf-8";
+/**
+ * @author:    liveme
+ * @update:    2015-06-03 17:29:12
+ * @copyright: 基于 Neat.css | MIT License     
+*/
+
+
+/* ==========================================================================
+   基础工具@Basis
+   ========================================================================== */
+
+/**
+ * 闭合浮动
+ */
+
+.u-clearfix {
+    @include clearfix;
+}
+
+
+/* ==========================================================================
+   字体排版工具@Type
+   ========================================================================== */
+
+/**
+ * 文字溢出显示省略号,需指定宽度
+ */
+
+.u-ellipsis {
+    display: block;
+    @include ellipsis;
+}
+
+/* 强制不换行 */
+.u-nowrap {
+    @include nowrap;
+}
+
+/* 连续字符换行 */
+.u-wrap {
+    @include break;
+}
+
+/**
+ * 禁用中文输入法
+ * 1. 默认关闭输入法,但用户还可以手动开启,Firefox Linux 版不支持。
+ * @note: 仅 IE 5+,Firefox 3+ 支持
+ * @doc:  https://developer.mozilla.org/en-US/docs/Web/CSS/ime-mode
+*/
+.u-imeInactive {
+    ime-mode: inactive !important; /* 1 */
+}
+
+/*
+ * OS X 字体平滑
+ * 1. Fiefox 25 开始支持「-moz-osx-font-smoothing:auto(默认)|grayscale」
+ */
+.u-antialiased {
+    -webkit-font-smoothing: antialiased;
+    -moz-osx-font-smoothing: grayscale; /* 1 */
+}
+
+/*
+ * 雅黑
+ * 对于西文,OS X使用"Helvetica Neue", Helvetica; Windows使用Tahoma, Arial;
+ * 字体策略参考:http://zenozeng.github.io/fonts.css/
+ */
+.u-heiti,
+%u-heiti {
+    font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, "Liberation Sans", "Hiragino Sans GB", "Source Han Sans CN", "Source Han Sans SC", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
+}
+
+/*
+ * 宋体
+ * 对于西文,OS X使用"Helvetica Neue", Helvetica; Windows使用Tahoma, Arial。使用宋体时字号不宜超过14px,并且不宜设置字体平滑
+ * 字体策略参考:http://zenozeng.github.io/fonts.css/
+ */
+.u-songti,
+%u-songti {
+    font-family: "Helvetica Neue", Helvetica, Tahoma, Arial, SimSun, "TW\-Sung", "WenQuanYi Bitmap Song", "AR PL UMing CN", "AR PL UMing HK", "AR PL UMing TW", "AR PL UMing TW MBE", serif;
+}
+
+/* 等宽字体 */
+.u-monospace,
+%u-songti {
+    font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
+}
+
+
+/* 文本颜色 */
+.u-txtPrimary {
+    color: #0097d6;
+}
+.u-txtSuccess {
+    color: #7cae23;
+}
+.u-txtInfo {
+    color: #9ac9e3;
+}
+.u-txtWarning {
+    color: #f96;
+}
+.u-txtDanger {
+    color: #e4393c;
+}
+.u-txtGray {
+    color: #999;
+}
+
+/* 背景颜色 */
+.u-bgPrimary {
+    color: $primary-text-color;
+    background-color: $primary-color;
+}
+.u-bgSuccess {
+    color: $success-text-color;
+    background-color: $success-color;
+}
+.u-bgInfo {
+    color: $info-text-color;
+    background-color: $info-color;
+}
+.u-bgWarning {
+    color: $warning-text-color;
+    background-color: $warning-color;
+}
+.u-bgDanger {
+    color: $danger-text-color;
+    background-color: $danger-color;
+}
+
+
+/* ==========================================================================
+   布局工具@Layout
+   ========================================================================== */
+
+/* 浮动 */  
+.u-left {
+    @include float(left, true);
+}
+.u-right {
+    @include float(right, true);
+}
+
+/* 隐藏 */
+.u-hide {
+    display: none;
+}
+
+/*
+ * display: inline-block;
+ * 1. 针对所有现代浏览器
+ * 2. fixed IE6/7 1px
+ * 3. fixed Safari 5- 等不支持 font-size: 0 的浏览器
+ * 4. 字号大小
+ * @ Usage:  结构如下
+            <div class="u-inbGroup">
+                <span class="u-inb">xxx</span>
+                <span class="u-inb">xxx</span>
+                <span class="u-inb">xxx</span>
+                <span class="u-inb">xxx</span>
+            </div>
+ */
+ 
+.u-inbGroup {
+    font-size: 0; /* 1 */
+    *word-spacing: -1px; /* 2 */
+}
+@media (-webkit-min-device-pixel-ratio:0) {
+    .u-inbGroup {
+        letter-spacing: -5px; /* 3 */
+    }
+}
+.u-inb {
+    @include inline-block(top, true);
+    font-size: 12px; /* 4 */
+    letter-spacing: normal;
+    word-spacing: normal;
+    line-height: initial;
+}
+
+
+/*
+ * 未知高度垂直居中组件,支持图片,单行或多行文字,以及图文混排
+ * 1. 继承父级高度
+ * 2. 保证连续字符也能居中
+ * 3. 防止设置边距导致居中失效
+ * 4. 保证连续字符换行
+ * 5. 保证文字垂直居中
+ * 6. 使用空标签生成一个高度100%的参照元素
+ */
+
+.u-center {
+    height: 100%; /* 1 */
+    text-align: center;
+    font-size: 0;
+    *word-spacing: -1px;
+}
+@media (-webkit-min-device-pixel-ratio:0) {
+    .u-center {
+        letter-spacing: -5px;
+    }
+}
+.u-center__inner {
+    width: 100%; /* 2 */
+    padding: 0 !important; /* 3 */
+    margin: 0 !important;
+    font-size: 12px;
+    letter-spacing: normal;
+    word-spacing: normal;
+    white-space: normal; /* 4 */
+    word-wrap: break-word;
+}
+.u-center__inner,
+.u-center__hack {
+    display: inline-block;
+    *display: inline;
+    *zoom: 1;
+    vertical-align: middle; /* 5 */
+}
+/* 6 */
+.u-center__hack {
+    width: 0;
+    height: 100%; 
+}
+
+
+/*
+ *@ Name:   自适应两端对齐组件
+ *@ Update: 2014-12-05 11:02:32
+ *@ Rely:   依赖 inline-block 解决方案
+ *@ Usage:  结构如下
+            <div class="util-justify u-inbGroup">
+                <span class="u-inb">欢</span>
+                <span class="u-inb">聚</span>
+                <span class="u-inb">时</span>
+                <span class="u-inb">代</span>
+            </div>
+    1. for IE 6-7
+    2. IE 6-7 触发 hasLayout 使一行也能两端对齐
+    3. IE 8+
+    4. 子元素取消两端对齐
+    5. 不支持 text-align-last 的浏览器用伪元素模拟
+    6. margin-left:100% 仅 WebKit 支持
+ */
+.u-justify {
+    text-align: justify;
+    text-justify: inter-ideograph; /* 1 */
+    *zoom: 1; /* 2 */
+    line-height: initial;
+    -moz-text-align-last: justify;
+    -webkit-text-align-last: justify;
+    text-align-last: justify; /* 3 */
+    
+    /* 4 */
+    .u-inb__item {
+        -moz-text-align-last: auto;
+        -webkit-text-align-last: auto;
+        text-align-last: auto;
+        text-justify: auto;
+        text-align: left;
+    }
+    
+    /* 5 */
+    &:after {
+        content: "";
+        display: inline-block;
+        width: 100%; /* 6 */
+    }
+}
+
+
+/**
+ * CSS三角形
+ */
+
+$border-width: 6px;
+$arrow-color: #666;
+.u-arrow {
+    width: 0;
+    height: 0;
+    line-height: 0;
+    overflow: hidden;
+    @include inline-block(-2px, true);
+    border: 0 dashed transparent;
+    border-width: $border-width;
+    font-size: 0;
+    &.ext-top {
+        border-bottom-style: solid;
+        border-bottom-color: $arrow-color;
+    }
+    &.ext-bottom {
+        border-top-style: solid;
+        border-top-color: $arrow-color;
+    }
+    &.ext-left {
+        border-right-style: solid;
+        border-right-color: $arrow-color;
+    }
+    &.ext-right {
+        border-left-style: solid;
+        border-left-color: $arrow-color;
+    }
+
+    /* ◤左上角 */
+    &.ext-leftTop {
+        border-top-style: solid;
+        border-top-color: $arrow-color;
+        border-left-width: 0 !important;
+    }
+
+    /* ◥右上角 */
+    &.ext-rightTop {
+        border-top-style: solid;
+        border-top-color: $arrow-color;
+        border-right-width: 0 !important;
+    }
+
+    /* ◣左下角 */
+    &.ext-leftBtm {
+        border-bottom-style: solid;
+        border-bottom-color: $arrow-color;
+        border-left-width: 0 !important;
+    }
+
+    /* ◢右下角 */
+    &.ext-rightBtm {
+        border-bottom-style: solid;
+        border-bottom-color: $arrow-color;
+        border-right-width: 0 !important;
+    }
+}
+

+ 48 - 0
2018专题/我的冒险世界/src/sass/lego/_variable.scss

@@ -0,0 +1,48 @@
+@charset "utf-8";
+
+/*
+ * @file: UI配色
+ * @update: 2015-06-03 17:29:02
+ */
+ 
+/* 字体配置 */
+$base-font-size          : 12px !default; // 字号
+$base-font-family        : "Microsoft Yahei","Helvetica Neue", Helvetica, Tahoma, Arial, sans-serif !default; // 字体族
+
+/*
+ * 字体策略
+ * 1. 默认:使用无衬线字体,OS X使用"Helvetica Neue", Helvetica; Windows使用Tahoma, Arial;
+ * 2. 黑体:通过字体辅助类.u-heiti 或者 @extend %u-heiti来调用;
+ * 3. 宋体:通过字体辅助类.u-songti 或者 @extend %u-songti来调用;
+ * 4. 参考链接:http://www.zhihu.com/question/19911793   http://zenozeng.github.io/fonts.css/
+ */
+
+/* 其他配置 */
+$base-line-height        : 1.5 !default; // 行高
+$base-link-decoration    : underline !default; // 链接下划线
+
+
+/* 颜色配置 */
+$base-text-color         : #333 !default; // 文本颜色
+$base-bg-color           : #fff !default; // 背景颜色
+$base-link-color         : #333 #e94646 !default; // 链接颜色[default,hover]
+$base-border-color       : #dedede !default; // 边框颜色
+$heading-bg-color        : #f5f5f5 !default; // 面板头部背景颜色
+$active-bg-color         : #e7e7e7 !default; // 激活状态背景颜色
+$disabled-text-color     : #aaa !default; // 禁用状态文本颜色
+$disabled-bg-color       : #eee !default; // 禁用状态背景颜色
+
+$primary-text-color      : #fff !default; // 首选文本颜色
+$primary-color           : #288ad6 !default; // 首选背景颜色
+
+$success-text-color      : #fff !default; // 成功状态文本颜色
+$success-color           : #16c98d !default; // 成功状态背景颜色
+
+$info-text-color         : #fff !default; // 信息状态文本颜色
+$info-color              : #2fc2ef !default; // 信息状态背景颜色
+
+$warning-text-color      : #3b444f !default; // 警告状态文本颜色
+$warning-color           : #feef6d !default; // 警告状态背景颜色
+
+$danger-text-color       : #fff !default; // 危险状态文本颜色
+$danger-color            : #fa5e5b !default; // 危险状态背景颜色

+ 42 - 0
2018专题/我的冒险世界/src/sass/page/_details.scss

@@ -0,0 +1,42 @@
+.details-wrap {
+    background: url('/src/img/data.jpg') center top no-repeat;
+    background-size: 100% auto;
+    padding-top: px2rem750(480);
+    .details-content{
+        padding: 0 px2rem750(30);
+        margin-top: px2rem750(30);
+        .works{
+            width: 100%;
+            border: 1px solid #eee;
+        }
+        .desc-wrap{
+            @include clearfix;
+            margin-top: px2rem750(20);
+            p{
+                float: left;
+                margin-top: px2rem750(15);
+                .icon{
+                    display: inline-block;
+                    width: px2rem750(26);
+                    height:px2rem750(26);
+                    margin-right: px2rem750(25);
+                    margin-left:px2rem750(5); 
+                    background-size:100% 100%;
+                    background-repeat: no-repeat; 
+                }
+                .name{
+                    background-image: url('/src/img/icon_user.jpg');
+                }
+                .count{
+                    background-image: url('/src/img/icon_support.png') ;
+                }
+            }
+            .count-wrap {
+                margin-left: px2rem750(30);
+            }
+            .support{
+                margin-top: 0;
+            }
+        }
+    }
+}

+ 50 - 0
2018专题/我的冒险世界/src/sass/page/_list.scss

@@ -0,0 +1,50 @@
+@media screen and (max-width: 320px){
+    body .list-wrap .data-list-wrap .tab-wrap .list-tab {
+        font-size: 14px;
+    }
+}
+
+.list-wrap {
+    background: url('/src/img/list.jpg') center top no-repeat;
+    background-size: 100% auto;
+    padding-top: px2rem750(480);
+    .data-list-wrap{
+        padding: 0 px2rem750(30);
+        padding-right: 0;
+        margin-top: px2rem750(35);
+        .tab-wrap{
+            @include clearfix;
+            margin-bottom: px2rem750(35);            
+            .list-tab{
+                float: left;
+                font-size: 16px;
+                font-weight: bold;
+                padding-bottom: px2rem750(15);
+            }
+            
+            .first{
+                margin-right: px2rem750(45);
+            }
+            .current {
+                border-bottom: px2rem750(4) solid #ea1003;
+            }
+        }
+
+    }
+    .load-more{
+        padding: 0 px2rem750(30);
+        text-align: center;
+        color: #bdbdbd;
+        font-size: 15px;
+        margin-bottom: px2rem750(50);
+        i{
+            display: inline-block;
+            width: px2rem750(26);
+            height: px2rem750(30);
+            background-image: url('/src/img/icon-load.png');
+            background-size: 100% 100%;
+            background-repeat: no-repeat;
+            margin-right: px2rem750(22); 
+        }
+    }
+}

+ 62 - 0
2018专题/我的冒险世界/src/sass/page/_upload.scss

@@ -0,0 +1,62 @@
+.upload-wrap {
+    background: url('/src/img/upload.jpg') center top no-repeat;
+    background-size: 100% auto;
+    padding-top: px2rem750(480);
+    position: relative;
+    .upload-introduce{
+        position: absolute;
+        width:px2rem750(550);
+        height:px2rem750(200);
+        left:50%;
+        top:px2rem750(330);
+        margin-left: -px2rem750(275);
+        border: px2rem750(3) solid #ea1003;  
+    }
+    .upload {
+        display: block;
+        margin: 0 auto;
+        width: px2rem750(300);
+        height: px2rem750(100);
+        background-color: #ea1003;
+        border: px2rem750(4) solid #000;
+        margin-top: px2rem750(100);
+        font-size: 16px;
+        line-height: px2rem750(90);
+        text-align: center;
+        color: #fff;
+        border-radius: px2rem750(10);
+    }
+    .upload-data{
+        margin-top: px2rem750(80);
+        padding: 0 px2rem750(30);
+        padding-right: 0;
+        .data-title{
+            font-size: 16px;
+            font-weight: bold;
+            position: relative;
+            margin-left: px2rem750(40);
+            &:after{
+                content: "";
+                display: block;
+                position: absolute;
+                height: px2rem750(20);
+                width: px2rem750(20);
+                background-color: #ea1003;
+                top: px2rem750(7);
+                left: -px2rem750(30);
+            }
+        }
+        .data-wrap{
+            margin-top: px2rem750(30);
+        }
+    }
+    .view-all {
+        padding: 0 px2rem750(30);
+        a.upload{
+            display: block;
+            width: 100%;
+            margin: 0;
+            margin-bottom: px2rem750(50);
+        }
+    }
+}

+ 256 - 0
2018专题/我的冒险世界/src/sass/pc.scss

@@ -0,0 +1,256 @@
+@charset "UTF-8";
+$yahei: "Microsoft YaHei";
+$pingfan:PingFangSC-Regular;
+
+/*通用变量*/
+
+$baseFontSize:14px;
+$baseFontColor:#999;
+/*基础样式*/
+
+@import "lego/lego";
+@import "base/mixins";
+
+html,body{
+    height: 100%;
+}
+body {
+    font-size: $baseFontSize;
+    font-family:$pingfan, $yahei, Helvetica, Arial, sans-serif;
+}
+
+.hide{
+    display: none;
+}
+
+.fl{
+    float: left;
+}
+
+.fr{
+    float: right;
+}
+
+a {
+    text-decoration: none;
+    color: $baseFontColor;
+    &.common-link {
+        display: block;
+        width: 100%;
+        height: 100%;
+    }
+}
+
+.mc-wrap{
+    background: url(../img/bg-pc.jpg) center top no-repeat;
+    min-width: 1000px;
+    .wrap-inner{
+        width: 1000px;
+        margin: 0 auto;
+    }
+    .mc-top{
+        padding-top: 304px;
+        margin-bottom: 12px;
+        @include clearfix;
+    }
+    .mc-news{
+        position: relative;
+        color: #fff;
+        font-size: 14px;
+        width: 840px;
+        padding: 15px;
+        p{
+            font-size: 12px;
+            line-height: 26px;
+            margin-bottom: 10px;
+        }
+        ul{
+            position: absolute;
+            right: 0;
+            bottom: 15px;
+        }
+        li{
+            @include inline-block;
+            margin-left: 8px;
+            line-height: 26px;
+            border: 1px solid #fff;
+            text-align: center;
+            font-size: 14px;
+            padding: 0 10px;
+            &:hover{
+                border-color: #fa0;
+                a{
+                    color: #fa0;
+                    text-decoration: none;
+                }
+            }
+            a{
+                color: #fff;
+                display: block;
+            }
+        }
+    }
+    .mc-qrcode{
+        width: 115px;
+        height: 113px;
+        img{
+            display: block;
+            width: 100%;
+            overflow: hidden;
+        }
+    }
+    .mc-video{
+        width: 1000px;
+        height: 544px;
+        background: #000;
+        margin-bottom: 20px;
+    }
+    .mc-albums{
+        margin-bottom: 30px;
+    }
+    .mc-albums-hd{
+        position: relative;
+        h1{
+            color: #333333;
+            font-size: 22px;
+            line-height: 30px;
+            margin-bottom: 10px;
+            font-weight: normal;
+        }
+        ul{
+            border-bottom: 1px solid #e8e8e8;
+            @include clearfix;
+        }
+        .albums-tab{
+            color: #333333;
+            font-size: 18px;
+            margin-right: 50px;
+            line-height: 46px;
+            float: left;
+            cursor: pointer;
+            &:hover{
+                color: #e6372f;
+            }
+            &.current{
+                color: #e6372f;
+                border-bottom: 3px solid #e6372f;
+            }
+        }
+        .btn-collect{
+            position: absolute;
+            top: 0;
+            right: 0;
+            line-height: 38px;
+            height: 38px;
+            width: 112px;
+            color: #e6372f;
+            border: 1px solid #e6372f;
+            text-align: center;
+            cursor: pointer;
+            span{
+                @include inline-block();
+                padding-left: 22px;
+                height: 17px;
+                line-height: 17px;
+                background: url(../img/icon-pc-collect.png?__sprite) no-repeat;
+                vertical-align: middle;
+            }
+            &.is-collected{
+                color: #858585;
+                border: 1px solid #858585;
+                span{
+                    padding-left: 24px;
+                    background: url(../img/icon-pc-collect2.png?__sprite) 0 2px no-repeat;
+                }
+            }
+        }
+    }
+    .mc-albums-bd{
+        ul{
+            @include clearfix;
+            padding-top: 20px;
+        }
+        li{
+            float: left;
+            width: 118px;
+            margin-right: 7px;
+            cursor: pointer;
+            &:hover{
+                img{
+                    opacity: 0.85;
+                }
+                .i-link{
+                    color: #e6372f;
+                }
+            }
+            &.current{
+                img{
+                    width: 116px;
+                    height: 66px;
+                    border: 1px solid #e6413a;
+                }
+            }
+            &.disable{
+                cursor: default;
+                &:hover{
+                    .i-link{
+                        color: #333333;
+                    }
+                }
+            }
+            img{
+                display: block;
+                width: 118px;
+                height: 68px;
+                overflow: hidden;
+                opacity: 1;
+            }
+            span{
+                display: block;
+                line-height: 68px;
+                text-align: center;
+                font-size: 12px;
+                color: #858585;
+                background-color: #e2e2e2;
+            }
+            .i-link{
+                font-size: 14px;
+                color: #333333;
+                text-align: center;
+                display: block;
+                line-height: 35px;
+                height: 35px;
+                overflow: hidden;
+            }
+        }
+    }
+    .mc-section{
+        border: 1px solid #e8e8e8;
+        margin-bottom: 15px;
+        padding: 20px 20px 20px 130px;
+        position: relative;
+        min-height: 110px;
+        span{
+            position: absolute;
+            width: 99px;
+            height: 168px;
+            left: 0;
+            bottom: 0;
+            background: url(../img/icon-lgg.png) no-repeat;
+        }
+        h3{
+            font-size: 18px;
+            color: #333333;
+            font-weight: bold;
+            margin-bottom: 15px;
+        }
+        p{
+            font-size: 14px;
+            color: #333333;
+            line-height: 24px;
+        }
+    }
+    .mc-comment{
+        margin-bottom: 80px;
+    }
+}

+ 17 - 0
2018专题/我的冒险世界/src/tpl/works-list.tmpl

@@ -0,0 +1,17 @@
+               
+<% for(var i = 0; i < data.length; i++){ %>
+<li class="data-item">
+    <a href="http://mc.duowan.com/1708/m_365766212903.html?id=<%= data[i].id%>">
+        <img src="<%= data[i].img_url%>" alt="">                        
+    </a>
+    <div class="desc-wrap">
+        <div class="desc">
+            <p class="name">
+                <i></i>末日方块
+            </p>
+            <p class="sup-num"><i></i><em class="vote-num"><%= data[i].vote_num%></em></p>
+        </div>
+        <div class="g-support" data="<%= data[i].id%>">支持</div>
+    </div>
+</li>
+<% } %>

+ 38 - 0
2018专题/我的冒险世界/src/upload.html

@@ -0,0 +1,38 @@
+<!doctype html>
+<html>
+
+<head>
+    <meta charset="UTF-8">
+    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
+    <meta name="format-detection" content="telephone=no" />
+    <title>我的冒险世界2 - 心灵方块 - 上传图片</title>
+    <script src="lib/rem.js"></script><!--ignore-->
+    <script src="http://pub.dwstatic.com/common/lib/jquery/jquery-2.2.4.js"></script><!--ignore-->
+    <link href="sass/active.scss" rel="stylesheet">
+    
+</head>
+
+<body>
+    <div class="upload-wrap">
+        <div class="upload-introduce">
+
+        </div>
+        <label for="uploadImg" class="upload">上传图片</label>
+        <input id="uploadImg" class="hide" type="file" accept="image/*">
+        <div class="upload-data">
+            <div class="data-title">高人气作品</div>
+            <ul class="data-wrap" style="display:block">
+                
+            </ul>
+        </div>
+        <div class="view-all">
+            <a class="upload" href="list.html">查看全部作品</a>
+        </div>
+    </div>
+    <script src="lib/mod.js"></script>
+    <script>
+        require('modules/page/upload.js')
+    </script>
+</body>
+
+</html>

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác