From 11c897007c5020ac61adbfc8e421cdc97b9f0519 Mon Sep 17 00:00:00 2001 From: love109 <2273902448@qq.com> Date: Fri, 25 Jan 2019 23:32:51 +0800 Subject: [PATCH] Site updated: 2019-01-25 23:32:49 --- 2019/01/17/hello-world/index.html | 740 - .../index.html" | 740 - .../index.html" | 757 - 2019/01/25/hello-world/index.html | 216 + 404.html | 127 - Love.html | 222 - LoveTimeline/index.html | 752 - Love_files/default.css | 15 - Love_files/functions.js | 60 - Love_files/jquery.min.js | 4 - Love_files/jscex-async-powerpack.min.js | 8 - Love_files/jscex-async.min.js | 8 - Love_files/jscex-builderbase.min.js | 4 - Love_files/jscex-jit.js | 1406 -- Love_files/jscex-parser.js | 1352 -- Love_files/jscex.min.js | 2 - Love_files/love.js | 533 - SiteTimeline/css/history.css | 51 - SiteTimeline/images/arrow.png | Bin 780 -> 0 bytes SiteTimeline/images/icon06.gif | Bin 1692 -> 0 bytes SiteTimeline/images/icon07.gif | Bin 366 -> 0 bytes SiteTimeline/images/icon08.gif | Bin 49 -> 0 bytes SiteTimeline/images/icon09.gif | Bin 190 -> 0 bytes SiteTimeline/images/line04.gif | Bin 43 -> 0 bytes SiteTimeline/index.html | 718 - SiteTimeline/js/jquery.js | 154 - SiteTimeline/js/main.js | 217 - about/index.html | 832 - archives/2019/01/index.html | 822 +- archives/2019/index.html | 822 +- archives/index.html | 822 +- atom.xml | 80 +- categories/index.html | 799 +- categories/landscape/index.html | 198 + .../\346\212\200\346\234\257/index.html" | 836 - comment/index.html | 704 - css/LoveTimeline.css | 186 - css/font.css | 147 - css/fonts/FontAwesome.otf | Bin 0 -> 62856 bytes css/fonts/fontawesome-webfont.eot | Bin 0 -> 38205 bytes css/fonts/fontawesome-webfont.svg | 414 + css/fonts/fontawesome-webfont.ttf | Bin 0 -> 80652 bytes css/fonts/fontawesome-webfont.woff | Bin 0 -> 44432 bytes css/images/banner.jpg | Bin 0 -> 224710 bytes css/insight.css | 134 - css/lib.min.css | 21 - css/style.css | 9121 ++----- dist/APlayer.min.css | 3 - dist/APlayer.min.css.map | 1 - dist/APlayer.min.js | 2 - dist/APlayer.min.js.map | 1 - dist/music.js | 55 - donate/index.html | 684 - fancybox/blank.gif | Bin 0 -> 43 bytes fancybox/fancybox_loading.gif | Bin 0 -> 6567 bytes fancybox/fancybox_loading@2x.gif | Bin 0 -> 13984 bytes fancybox/fancybox_overlay.png | Bin 0 -> 1003 bytes fancybox/fancybox_sprite.png | Bin 0 -> 1362 bytes fancybox/fancybox_sprite@2x.png | Bin 0 -> 6553 bytes fancybox/helpers/fancybox_buttons.png | Bin 0 -> 1080 bytes fancybox/helpers/jquery.fancybox-buttons.css | 97 + fancybox/helpers/jquery.fancybox-buttons.js | 122 + fancybox/helpers/jquery.fancybox-media.js | 199 + fancybox/helpers/jquery.fancybox-thumbs.css | 55 + fancybox/helpers/jquery.fancybox-thumbs.js | 165 + fancybox/jquery.fancybox.css | 273 + fancybox/jquery.fancybox.js | 2017 ++ fancybox/jquery.fancybox.pack.js | 46 + images/LoveTimeline/book.svg | 1 - images/LoveTimeline/star.svg | 1 - images/avatar.jpg | Bin 16207 -> 0 bytes images/cover/(0).jpg.webp | Bin 125140 -> 0 bytes images/cover/(1).jpg.webp | Bin 57552 -> 0 bytes images/cover/(2).jpg.webp | Bin 39260 -> 0 bytes images/cover/(3).jpg.webp | Bin 63224 -> 0 bytes images/cover/(4).jpg.webp | Bin 29768 -> 0 bytes images/cover/(5).jpg.webp | Bin 134876 -> 0 bytes images/cover/(6).jpg.webp | Bin 36232 -> 0 bytes images/cover/(7).jpg.webp | Bin 86328 -> 0 bytes images/cover/(8).jpg.webp | Bin 119818 -> 0 bytes images/love109.jpg | Bin 193027 -> 0 bytes images/random/d-1.jpg | Bin 15044 -> 0 bytes images/random/d-10.jpg | Bin 15416 -> 0 bytes images/random/d-2.jpg | Bin 15371 -> 0 bytes images/random/d-3.jpg | Bin 15497 -> 0 bytes images/random/d-4.jpg | Bin 15485 -> 0 bytes images/random/d-5.jpg | Bin 15756 -> 0 bytes images/random/d-6.jpg | Bin 15625 -> 0 bytes images/random/d-7.jpg | Bin 16123 -> 0 bytes images/random/d-8.jpg | Bin 15247 -> 0 bytes images/random/d-9.jpg | Bin 15273 -> 0 bytes images/smilies/bili/baiyan.png | Bin 35093 -> 0 bytes images/smilies/bili/bishi.png | Bin 10839 -> 0 bytes images/smilies/bili/bizui.png | Bin 18549 -> 0 bytes images/smilies/bili/chan.png | Bin 23348 -> 0 bytes images/smilies/bili/daku.png | Bin 35311 -> 0 bytes images/smilies/bili/dalao.png | Bin 7844 -> 0 bytes images/smilies/bili/dalian.png | Bin 22491 -> 0 bytes images/smilies/bili/dianzan.png | Bin 34971 -> 0 bytes images/smilies/bili/doge.png | Bin 29462 -> 0 bytes images/smilies/bili/facai.png | Bin 26959 -> 0 bytes images/smilies/bili/fadai.png | Bin 43372 -> 0 bytes images/smilies/bili/fanu.png | Bin 71977 -> 0 bytes images/smilies/bili/ganga.png | Bin 30646 -> 0 bytes images/smilies/bili/guilian.png | Bin 1737 -> 0 bytes images/smilies/bili/guzhang.png | Bin 30365 -> 0 bytes images/smilies/bili/haixiu.png | Bin 52035 -> 0 bytes images/smilies/bili/heirenwenhao.png | Bin 13836 -> 0 bytes images/smilies/bili/huaixiao.png | Bin 38228 -> 0 bytes images/smilies/bili/jingxia.png | Bin 66258 -> 0 bytes images/smilies/bili/keai.png | Bin 13093 -> 0 bytes images/smilies/bili/koubi.png | Bin 56921 -> 0 bytes images/smilies/bili/kun.png | Bin 27967 -> 0 bytes images/smilies/bili/lengmo.png | Bin 1713 -> 0 bytes images/smilies/bili/liubixue.png | Bin 23123 -> 0 bytes images/smilies/bili/liuhan.png | Bin 17295 -> 0 bytes images/smilies/bili/liulei.png | Bin 2025 -> 0 bytes images/smilies/bili/miantian.png | Bin 10849 -> 0 bytes images/smilies/bili/mudengkoudai.png | Bin 2137 -> 0 bytes images/smilies/bili/nanguo.png | Bin 48328 -> 0 bytes images/smilies/bili/outu.png | Bin 43790 -> 0 bytes images/smilies/bili/qinqin.png | Bin 28834 -> 0 bytes images/smilies/bili/se.png | Bin 38765 -> 0 bytes images/smilies/bili/shengbing.png | Bin 26410 -> 0 bytes images/smilies/bili/shengqi.png | Bin 29785 -> 0 bytes images/smilies/bili/shuizhao.png | Bin 58846 -> 0 bytes images/smilies/bili/sikao.png | Bin 67840 -> 0 bytes images/smilies/bili/tiaokan.png | Bin 1710 -> 0 bytes images/smilies/bili/tiaopi.png | Bin 46301 -> 0 bytes images/smilies/bili/touxiao.png | Bin 6536 -> 0 bytes images/smilies/bili/tuxue.png | Bin 25426 -> 0 bytes images/smilies/bili/weiqu.png | Bin 47282 -> 0 bytes images/smilies/bili/weixiao.png | Bin 41193 -> 0 bytes images/smilies/bili/wunai.png | Bin 49862 -> 0 bytes images/smilies/bili/xiaoku.png | Bin 47762 -> 0 bytes images/smilies/bili/xieyanxiao.png | Bin 26227 -> 0 bytes images/smilies/bili/yiwen.png | Bin 39186 -> 0 bytes images/smilies/bili/yun.png | Bin 38848 -> 0 bytes images/smilies/bili/zaijian.png | Bin 52109 -> 0 bytes images/smilies/bili/zhoumei.png | Bin 1559 -> 0 bytes images/smilies/bili/zhuakuang.png | Bin 22546 -> 0 bytes images/smilies/icon_Grievance.gif | Bin 6164 -> 0 bytes images/smilies/icon_Happy.gif | Bin 6017 -> 0 bytes images/smilies/icon_aa.gif | Bin 5770 -> 0 bytes images/smilies/icon_anger.gif | Bin 7377 -> 0 bytes images/smilies/icon_awesome.gif | Bin 5985 -> 0 bytes images/smilies/icon_bbd.gif | Bin 6819 -> 0 bytes images/smilies/icon_britan.gif | Bin 3889 -> 0 bytes images/smilies/icon_doubt.gif | Bin 6058 -> 0 bytes images/smilies/icon_good.gif | Bin 7446 -> 0 bytes images/smilies/icon_haha.gif | Bin 5937 -> 0 bytes images/smilies/icon_han.gif | Bin 6148 -> 0 bytes images/smilies/icon_hu.gif | Bin 5800 -> 0 bytes images/smilies/icon_huaji.gif | Bin 5966 -> 0 bytes images/smilies/icon_ku.gif | Bin 6902 -> 0 bytes images/smilies/icon_naive.gif | Bin 5845 -> 0 bytes images/smilies/icon_niconiconi.gif | Bin 3996 -> 0 bytes images/smilies/icon_niconiconi_t.gif | Bin 4168 -> 0 bytes images/smilies/icon_niconiconit.gif | Bin 4168 -> 0 bytes images/smilies/icon_rbq.gif | Bin 5879 -> 0 bytes images/smilies/icon_reluctantly.gif | Bin 6284 -> 0 bytes images/smilies/icon_rmb.gif | Bin 6249 -> 0 bytes images/smilies/icon_se.gif | Bin 6652 -> 0 bytes images/smilies/icon_shame.gif | Bin 5964 -> 0 bytes images/smilies/icon_shui.gif | Bin 5890 -> 0 bytes images/smilies/icon_smilingeyes.gif | Bin 6731 -> 0 bytes images/smilies/icon_spit.gif | Bin 6249 -> 0 bytes images/smilies/icon_spray.gif | Bin 6533 -> 0 bytes images/smilies/icon_surprised.gif | Bin 6187 -> 0 bytes images/smilies/icon_surprised2.gif | Bin 6081 -> 0 bytes images/smilies/icon_tear.gif | Bin 6524 -> 0 bytes images/smilies/icon_theblackline.gif | Bin 5970 -> 0 bytes images/smilies/icon_tongue.gif | Bin 6214 -> 0 bytes images/startdash/1.png | Bin 75001 -> 0 bytes images/startdash/2.png | Bin 434583 -> 0 bytes images/startdash/3.png | Bin 61607 -> 0 bytes images/true.png | Bin 81239 -> 0 bytes index.html | 934 +- js/FunnyTitle.js | 16 - js/InsightSearch.js | 243 - js/fireworks.js | 1 - js/lib.min.js | 19610 ---------------- js/love.js | 1 - js/sakura-app.js | 1984 -- js/script.js | 137 + links/index.html | 841 - rss/index.html | 799 +- tags/landscape/index.html | 198 + tags/web/index.html | 729 - "tags/\346\202\246\350\257\273/index.html" | 729 - warn.html | 35 - 191 files changed, 6492 insertions(+), 47511 deletions(-) delete mode 100644 2019/01/17/hello-world/index.html delete mode 100644 "2019/01/20/hello-world - \345\211\257\346\234\254 (2)/index.html" delete mode 100644 "2019/01/20/hello-world - \345\211\257\346\234\254/index.html" create mode 100644 2019/01/25/hello-world/index.html delete mode 100644 404.html delete mode 100644 Love.html delete mode 100644 Love_files/default.css delete mode 100644 Love_files/functions.js delete mode 100644 Love_files/jquery.min.js delete mode 100644 Love_files/jscex-async-powerpack.min.js delete mode 100644 Love_files/jscex-async.min.js delete mode 100644 Love_files/jscex-builderbase.min.js delete mode 100644 Love_files/jscex-jit.js delete mode 100644 Love_files/jscex-parser.js delete mode 100644 Love_files/jscex.min.js delete mode 100644 Love_files/love.js delete mode 100644 SiteTimeline/css/history.css delete mode 100644 SiteTimeline/images/arrow.png delete mode 100644 SiteTimeline/images/icon06.gif delete mode 100644 SiteTimeline/images/icon07.gif delete mode 100644 SiteTimeline/images/icon08.gif delete mode 100644 SiteTimeline/images/icon09.gif delete mode 100644 SiteTimeline/images/line04.gif delete mode 100644 SiteTimeline/js/jquery.js delete mode 100644 SiteTimeline/js/main.js create mode 100644 categories/landscape/index.html delete mode 100644 "categories/\346\212\200\346\234\257/index.html" delete mode 100644 css/LoveTimeline.css delete mode 100644 css/font.css create mode 100644 css/fonts/FontAwesome.otf create mode 100644 css/fonts/fontawesome-webfont.eot create mode 100644 css/fonts/fontawesome-webfont.svg create mode 100644 css/fonts/fontawesome-webfont.ttf create mode 100644 css/fonts/fontawesome-webfont.woff create mode 100644 css/images/banner.jpg delete mode 100644 css/insight.css delete mode 100644 css/lib.min.css delete mode 100644 dist/APlayer.min.css delete mode 100644 dist/APlayer.min.css.map delete mode 100644 dist/APlayer.min.js delete mode 100644 dist/APlayer.min.js.map delete mode 100644 dist/music.js create mode 100644 fancybox/blank.gif create mode 100644 fancybox/fancybox_loading.gif create mode 100644 fancybox/fancybox_loading@2x.gif create mode 100644 fancybox/fancybox_overlay.png create mode 100644 fancybox/fancybox_sprite.png create mode 100644 fancybox/fancybox_sprite@2x.png create mode 100644 fancybox/helpers/fancybox_buttons.png create mode 100644 fancybox/helpers/jquery.fancybox-buttons.css create mode 100644 fancybox/helpers/jquery.fancybox-buttons.js create mode 100644 fancybox/helpers/jquery.fancybox-media.js create mode 100644 fancybox/helpers/jquery.fancybox-thumbs.css create mode 100644 fancybox/helpers/jquery.fancybox-thumbs.js create mode 100644 fancybox/jquery.fancybox.css create mode 100644 fancybox/jquery.fancybox.js create mode 100644 fancybox/jquery.fancybox.pack.js delete mode 100644 images/LoveTimeline/book.svg delete mode 100644 images/LoveTimeline/star.svg delete mode 100644 images/avatar.jpg delete mode 100644 images/cover/(0).jpg.webp delete mode 100644 images/cover/(1).jpg.webp delete mode 100644 images/cover/(2).jpg.webp delete mode 100644 images/cover/(3).jpg.webp delete mode 100644 images/cover/(4).jpg.webp delete mode 100644 images/cover/(5).jpg.webp delete mode 100644 images/cover/(6).jpg.webp delete mode 100644 images/cover/(7).jpg.webp delete mode 100644 images/cover/(8).jpg.webp delete mode 100644 images/love109.jpg delete mode 100644 images/random/d-1.jpg delete mode 100644 images/random/d-10.jpg delete mode 100644 images/random/d-2.jpg delete mode 100644 images/random/d-3.jpg delete mode 100644 images/random/d-4.jpg delete mode 100644 images/random/d-5.jpg delete mode 100644 images/random/d-6.jpg delete mode 100644 images/random/d-7.jpg delete mode 100644 images/random/d-8.jpg delete mode 100644 images/random/d-9.jpg delete mode 100644 images/smilies/bili/baiyan.png delete mode 100644 images/smilies/bili/bishi.png delete mode 100644 images/smilies/bili/bizui.png delete mode 100644 images/smilies/bili/chan.png delete mode 100644 images/smilies/bili/daku.png delete mode 100644 images/smilies/bili/dalao.png delete mode 100644 images/smilies/bili/dalian.png delete mode 100644 images/smilies/bili/dianzan.png delete mode 100644 images/smilies/bili/doge.png delete mode 100644 images/smilies/bili/facai.png delete mode 100644 images/smilies/bili/fadai.png delete mode 100644 images/smilies/bili/fanu.png delete mode 100644 images/smilies/bili/ganga.png delete mode 100644 images/smilies/bili/guilian.png delete mode 100644 images/smilies/bili/guzhang.png delete mode 100644 images/smilies/bili/haixiu.png delete mode 100644 images/smilies/bili/heirenwenhao.png delete mode 100644 images/smilies/bili/huaixiao.png delete mode 100644 images/smilies/bili/jingxia.png delete mode 100644 images/smilies/bili/keai.png delete mode 100644 images/smilies/bili/koubi.png delete mode 100644 images/smilies/bili/kun.png delete mode 100644 images/smilies/bili/lengmo.png delete mode 100644 images/smilies/bili/liubixue.png delete mode 100644 images/smilies/bili/liuhan.png delete mode 100644 images/smilies/bili/liulei.png delete mode 100644 images/smilies/bili/miantian.png delete mode 100644 images/smilies/bili/mudengkoudai.png delete mode 100644 images/smilies/bili/nanguo.png delete mode 100644 images/smilies/bili/outu.png delete mode 100644 images/smilies/bili/qinqin.png delete mode 100644 images/smilies/bili/se.png delete mode 100644 images/smilies/bili/shengbing.png delete mode 100644 images/smilies/bili/shengqi.png delete mode 100644 images/smilies/bili/shuizhao.png delete mode 100644 images/smilies/bili/sikao.png delete mode 100644 images/smilies/bili/tiaokan.png delete mode 100644 images/smilies/bili/tiaopi.png delete mode 100644 images/smilies/bili/touxiao.png delete mode 100644 images/smilies/bili/tuxue.png delete mode 100644 images/smilies/bili/weiqu.png delete mode 100644 images/smilies/bili/weixiao.png delete mode 100644 images/smilies/bili/wunai.png delete mode 100644 images/smilies/bili/xiaoku.png delete mode 100644 images/smilies/bili/xieyanxiao.png delete mode 100644 images/smilies/bili/yiwen.png delete mode 100644 images/smilies/bili/yun.png delete mode 100644 images/smilies/bili/zaijian.png delete mode 100644 images/smilies/bili/zhoumei.png delete mode 100644 images/smilies/bili/zhuakuang.png delete mode 100644 images/smilies/icon_Grievance.gif delete mode 100644 images/smilies/icon_Happy.gif delete mode 100644 images/smilies/icon_aa.gif delete mode 100644 images/smilies/icon_anger.gif delete mode 100644 images/smilies/icon_awesome.gif delete mode 100644 images/smilies/icon_bbd.gif delete mode 100644 images/smilies/icon_britan.gif delete mode 100644 images/smilies/icon_doubt.gif delete mode 100644 images/smilies/icon_good.gif delete mode 100644 images/smilies/icon_haha.gif delete mode 100644 images/smilies/icon_han.gif delete mode 100644 images/smilies/icon_hu.gif delete mode 100644 images/smilies/icon_huaji.gif delete mode 100644 images/smilies/icon_ku.gif delete mode 100644 images/smilies/icon_naive.gif delete mode 100644 images/smilies/icon_niconiconi.gif delete mode 100644 images/smilies/icon_niconiconi_t.gif delete mode 100644 images/smilies/icon_niconiconit.gif delete mode 100644 images/smilies/icon_rbq.gif delete mode 100644 images/smilies/icon_reluctantly.gif delete mode 100644 images/smilies/icon_rmb.gif delete mode 100644 images/smilies/icon_se.gif delete mode 100644 images/smilies/icon_shame.gif delete mode 100644 images/smilies/icon_shui.gif delete mode 100644 images/smilies/icon_smilingeyes.gif delete mode 100644 images/smilies/icon_spit.gif delete mode 100644 images/smilies/icon_spray.gif delete mode 100644 images/smilies/icon_surprised.gif delete mode 100644 images/smilies/icon_surprised2.gif delete mode 100644 images/smilies/icon_tear.gif delete mode 100644 images/smilies/icon_theblackline.gif delete mode 100644 images/smilies/icon_tongue.gif delete mode 100644 images/startdash/1.png delete mode 100644 images/startdash/2.png delete mode 100644 images/startdash/3.png delete mode 100644 images/true.png delete mode 100644 js/FunnyTitle.js delete mode 100644 js/InsightSearch.js delete mode 100644 js/fireworks.js delete mode 100644 js/lib.min.js delete mode 100644 js/love.js delete mode 100644 js/sakura-app.js create mode 100644 js/script.js create mode 100644 tags/landscape/index.html delete mode 100644 tags/web/index.html delete mode 100644 "tags/\346\202\246\350\257\273/index.html" delete mode 100644 warn.html diff --git a/2019/01/17/hello-world/index.html b/2019/01/17/hello-world/index.html deleted file mode 100644 index 989ae11..0000000 --- a/2019/01/17/hello-world/index.html +++ /dev/null @@ -1,740 +0,0 @@ - - - - - - - Hello World | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
-
- -
-
- - -
-
-
- - - -
-
-

LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

-
-
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - -
    - -
    -
    -
    -

    - Hello World

    -

    - - - - - - - - LOVE109❤️纪实小屋 - - - · - 2019-1-17 - · - 次阅读

    -
    -
    - -
    -
    - -
    - - -
    -

    Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    -

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"
    -

    More info: Writing

    -

    Run server

    1
    $ hexo server
    -

    More info: Server

    -

    Generate static files

    1
    $ hexo generate
    -

    More info: Generating

    -

    Deploy to remote sites

    1
    $ hexo deploy
    -

    More info: Deployment

    - -
    - -
    -
    -
      -
    • -
    • -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - - - - - -
    - - - -
    - - -
    - -
    -

    记录爱情 记录生活

    -
    -
    -
    -
    - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git "a/2019/01/20/hello-world - \345\211\257\346\234\254 (2)/index.html" "b/2019/01/20/hello-world - \345\211\257\346\234\254 (2)/index.html" deleted file mode 100644 index 7a1a1b9..0000000 --- "a/2019/01/20/hello-world - \345\211\257\346\234\254 (2)/index.html" +++ /dev/null @@ -1,740 +0,0 @@ - - - - - - - Hello World | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - -
    - -
    -
    -
    -

    - Hello World

    -

    - - - - - - - - LOVE109❤️纪实小屋 - - - · - 2019-1-20 - · - 次阅读

    -
    -
    - -
    -
    - -
    - - -
    -

    Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    -

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"
    -

    More info: Writing

    -

    Run server

    1
    $ hexo server
    -

    More info: Server

    -

    Generate static files

    1
    $ hexo generate
    -

    More info: Generating

    -

    Deploy to remote sites

    1
    $ hexo deploy
    -

    More info: Deployment

    - -
    - -
    -
    -
      -
    • -
    • -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - - - - - -
    - - - -
    - - -
    - -
    -

    记录爱情 记录生活

    -
    -
    -
    -
    - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git "a/2019/01/20/hello-world - \345\211\257\346\234\254/index.html" "b/2019/01/20/hello-world - \345\211\257\346\234\254/index.html" deleted file mode 100644 index 7496977..0000000 --- "a/2019/01/20/hello-world - \345\211\257\346\234\254/index.html" +++ /dev/null @@ -1,757 +0,0 @@ - - - - - - - Hello World | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - -
    - -
    -
    -
    -

    - Hello World

    -

    - - - - - - - - LOVE109❤️纪实小屋 - - - · - 2019-1-20 - · - 次阅读

    -
    -
    - -
    -
    - -
    - - -
    -

    Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    -

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"
    -

    More info: Writing

    -

    Run server

    1
    $ hexo server
    -

    More info: Server

    -

    Generate static files

    1
    $ hexo generate
    -

    More info: Generating

    -

    Deploy to remote sites

    1
    $ hexo deploy
    -

    More info: Deployment

    - -
    - -
    -
    -
      -
    • -
    • -
    -
    -
    -
    - -
    - -
    -
    -
    -
    - - - - - - - - -
    - - - -
    - - -
    - -
    -

    记录爱情 记录生活

    -
    -
    -
    -
    - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git a/2019/01/25/hello-world/index.html b/2019/01/25/hello-world/index.html new file mode 100644 index 0000000..74798db --- /dev/null +++ b/2019/01/25/hello-world/index.html @@ -0,0 +1,216 @@ + + + + + + + + Hello World | 404 + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + +
    +
    + +
    + + +
    + + +

    + Hello World +

    + + +
    + +
    + +

    photos: https://wx2.sinaimg.cn/large/006bYVyvgy1fqmv0mlsktj31400u0avk.jpg
    Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    +

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"
    +

    More info: Writing

    +

    Run server

    1
    $ hexo server
    +

    More info: Server

    +

    Generate static files

    1
    $ hexo generate
    +

    More info: Generating

    +

    Deploy to remote sites

    1
    $ hexo deploy
    +

    More info: Deployment

    + + +
    + +
    + + + +
    + +
    + + + +
    +
    + +
    + +
    +
    +
    + + + + + + + + + + + + + + +
    + + \ No newline at end of file diff --git a/404.html b/404.html deleted file mode 100644 index 1d4118b..0000000 --- a/404.html +++ /dev/null @@ -1,127 +0,0 @@ - - - - - 404 - Not Found - - - - - - - - - diff --git a/Love.html b/Love.html deleted file mode 100644 index 3f1cf0b..0000000 --- a/Love.html +++ /dev/null @@ -1,222 +0,0 @@ - - - - LOVE109❤️纪实小屋 - - - - - - - - - - - - - - -
    -
    亲,您使用的浏览器无法支持即将显示的内容,请换成谷歌(Chrome)或者火狐(Firefox)浏览器哟~
    -
    -
    -
    - DEAR PLL:

    - 我的爱人,我会牵着你的手,走到满头白发的那一天,
    - 我会守护你生命里的精彩,并陪伴你一路精彩下去。
    - 你的幸福快乐,是我一生的追求。
    - 我会每一天带着笑脸,和你说早安,
    - 我会每一晚与你道声晚安再入梦乡,
    - 我会带你去所有你想去的地方,
    - 陪你闹看你笑
    - 历经你生命中所有的点点滴滴。
    - 我期待这一生与你一起走过,
    - 我期待与你慢慢变老
    - 等我们老到哪儿也去不了,
    - 还能满载着一生的幸福快乐 !
    -
    - 我会为我们的未来撑起一片天空,
    - 为我们的将来担负起一生的责任,
    - 愿意为你去做每一件能让你开心快乐的事。
    - 所有我们经历的点点滴滴,
    - 都是我们一辈子最美的回忆。
    - 我愿意爱你直到老去!
    -
    - ———— Yours, TRH. -
    -
    -
    - @TRH@PLL 在一起的 -
    -
    - -
    - -
    - - - - - - - - \ No newline at end of file diff --git a/LoveTimeline/index.html b/LoveTimeline/index.html index 1540b37..e69de29 100644 --- a/LoveTimeline/index.html +++ b/LoveTimeline/index.html @@ -1,752 +0,0 @@ - - - - - - - LoveTimeline | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    -
    -
    -
    - -
    -
    - -
    -
    -

    - 爱情时间轴

    -
    -
    - -
    -
    - - -
    -
    -
    -
    -
    - -
    -
    -

    2018-10-02

    -

    一起去了洛阳

    - LOVE109❤️纪实小屋 -
    -
    -
    -
    - -
    -
    -

    2018-05-02

    -

    一起去了襄阳

    - LOVE109❤️纪实小屋 -
    -
    -
    -
    - -
    -
    -

    2017-10-01

    -

    异地一个月后第一次见面

    - LOVE109❤️纪实小屋 -
    -
    -
    -
    - -
    -
    -

    2017-09-03

    -

    开始异地恋,我在武汉,她在南阳 -

    - LOVE109❤️纪实小屋 -
    -
    -
    -
    - -
    -
    -

    2017-06-07/08

    -

    共同经历高考 -

    - LOVE109❤️纪实小屋 -
    -
    -
    -
    - -
    -
    -

    2016-10-09

    -

    正式确定恋爱关系

    - LOVE109❤️纪实小屋 -
    -
    -
    -
    - -
    -
    -

    2014-11-23

    -

    高中文理科分班,第一次见面

    - LOVE109❤️纪实小屋 -
    -
    -
    -
    -
    - - - - -
    - -
    -
    -
    -
    - - -
    -
    - -
    -

    记录爱情 记录生活

    -
    - -
    - - - - - - - - - - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git a/Love_files/default.css b/Love_files/default.css deleted file mode 100644 index 6da9b0d..0000000 --- a/Love_files/default.css +++ /dev/null @@ -1,15 +0,0 @@ -body{margin:0;padding:0;background:#ffe0e6;font-size:14px;font-family:'微软雅黑','宋体',sans-serif;color:#FF69B4;overflow:auto} -a {color:#000;font-size:14px;} -#main{width:100%;} -#wrap{position:relative;margin:0 auto;background:#ffe0e6;width:1100px;height:680px;margin-top:10px;} -#text{width:400px;height:425px;left:20;top:60px;position:absolute;} -#code{display:none;font-size:16px;} -#clock-box {position:absolute;left:60px;top:550px;font-size:28px;display:none;} -#clock-box a {font-size:28px;text-decoration:none;} -#clock{margin-left:48px;} -#clock .digit {font-size:64px;} -#canvas{margin:0 auto;width:1100px;height:680px;} -#error{margin:0 auto;text-align:center;margin-top:60px;display:none;} -.hand{cursor:pointer;} -.say{margin-left:5px;} -.space{margin-right:150px;} diff --git a/Love_files/functions.js b/Love_files/functions.js deleted file mode 100644 index 19ffa78..0000000 --- a/Love_files/functions.js +++ /dev/null @@ -1,60 +0,0 @@ -/* - * http://love.hackerzhou.me - */ - -// variables -var $win = $(window); -var clientWidth = $win.width(); -var clientHeight = $win.height(); - -$(window).resize(function() { - var newWidth = $win.width(); - var newHeight = $win.height(); - if (newWidth != clientWidth && newHeight != clientHeight) { - location.replace(location); - } -}); - -(function($) { - $.fn.typewriter = function() { - this.each(function() { - var $ele = $(this), str = $ele.html(), progress = 0; - $ele.html(''); - var timer = setInterval(function() { - var current = str.substr(progress, 1); - if (current == '<') { - progress = str.indexOf('>', progress) + 1; - } else { - progress++; - } - $ele.html(str.substring(0, progress) + (progress & 1 ? '_' : '')); - if (progress >= str.length) { - clearInterval(timer); - } - }, 75); - }); - return this; - }; -})(jQuery); - -function timeElapse(date){ - var current = Date(); - var seconds = (Date.parse(current) - Date.parse(date)) / 1000; - var days = Math.floor(seconds / (3600 * 24)); - seconds = seconds % (3600 * 24); - var hours = Math.floor(seconds / 3600); - if (hours < 10) { - hours = "0" + hours; - } - seconds = seconds % 3600; - var minutes = Math.floor(seconds / 60); - if (minutes < 10) { - minutes = "0" + minutes; - } - seconds = seconds % 60; - if (seconds < 10) { - seconds = "0" + seconds; - } - var result = "第 " + days + "" + hours + " 小时 " + minutes + " 分钟 " + seconds + " 秒"; - $("#clock").html(result); -} diff --git a/Love_files/jquery.min.js b/Love_files/jquery.min.js deleted file mode 100644 index 198b3ff..0000000 --- a/Love_files/jquery.min.js +++ /dev/null @@ -1,4 +0,0 @@ -/*! jQuery v1.7.1 jquery.com | jquery.org/license */ -(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorder=cl.width=cl.height=0),b.appendChild(cl);if(!cm||!cl.createElement)cm=(cl.contentWindow||cl.contentDocument).document,cm.write((c.compatMode==="CSS1Compat"?"":"")+""),cm.close();d=cm.createElement(a),cm.body.appendChild(d),e=f.css(d,"display"),b.removeChild(cl)}ck[a]=e}return ck[a]}function cu(a,b){var c={};f.each(cq.concat.apply([],cq.slice(0,b)),function(){c[this]=a});return c}function ct(){cr=b}function cs(){setTimeout(ct,0);return cr=f.now()}function cj(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ci(){try{return new a.XMLHttpRequest}catch(b){}}function cc(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g0){if(c!=="border")for(;g=0===c})}function S(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function K(){return!0}function J(){return!1}function n(a,b,c){var d=b+"defer",e=b+"queue",g=b+"mark",h=f._data(a,d);h&&(c==="queue"||!f._data(a,e))&&(c==="mark"||!f._data(a,g))&&setTimeout(function(){!f._data(a,e)&&!f._data(a,g)&&(f.removeData(a,d,!0),h.fire())},0)}function m(a){for(var b in a){if(b==="data"&&f.isEmptyObject(a[b]))continue;if(b!=="toJSON")return!1}return!0}function l(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(k,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNumeric(d)?parseFloat(d):j.test(d)?f.parseJSON(d):d}catch(g){}f.data(a,c,d)}else d=b}return d}function h(a){var b=g[a]={},c,d;a=a.split(/\s+/);for(c=0,d=a.length;c)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,n=/^[\],:{}\s]*$/,o=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,p=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,q=/(?:^|:|,)(?:\s*\[)+/g,r=/(webkit)[ \/]([\w.]+)/,s=/(opera)(?:.*version)?[ \/]([\w.]+)/,t=/(msie) ([\w.]+)/,u=/(mozilla)(?:.*? rv:([\w.]+))?/,v=/-([a-z]|[0-9])/ig,w=/^-ms-/,x=function(a,b){return(b+"").toUpperCase()},y=d.userAgent,z,A,B,C=Object.prototype.toString,D=Object.prototype.hasOwnProperty,E=Array.prototype.push,F=Array.prototype.slice,G=String.prototype.trim,H=Array.prototype.indexOf,I={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=m.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return F.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?E.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),A.add(a);return this},eq:function(a){a=+a;return a===-1?this.slice(a):this.slice(a,a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(F.apply(this,arguments),"slice",F.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:E,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j0)return;A.fireWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").off("ready")}},bindReady:function(){if(!A){A=e.Callbacks("once memory");if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",B,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",B),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&J()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNumeric:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},type:function(a){return a==null?String(a):I[C.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!D.call(a,"constructor")&&!D.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||D.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw new Error(a)},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(n.test(b.replace(o,"@").replace(p,"]").replace(q,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(w,"ms-").replace(v,x)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i1?i.call(arguments,0):b,j.notifyWith(k,e)}}function l(a){return function(c){b[a]=arguments.length>1?i.call(arguments,0):c,--g||j.resolveWith(j,b)}}var b=i.call(arguments,0),c=0,d=b.length,e=Array(d),g=d,h=d,j=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred(),k=j.promise();if(d>1){for(;c
    a",d=q.getElementsByTagName("*"),e=q.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=q.getElementsByTagName("input")[0],b={leadingWhitespace:q.firstChild.nodeType===3,tbody:!q.getElementsByTagName("tbody").length,htmlSerialize:!!q.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:q.className!=="t",enctype:!!c.createElement("form").enctype,html5Clone:c.createElement("nav").cloneNode(!0).outerHTML!=="<:nav>",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,b.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,b.optDisabled=!h.disabled;try{delete q.test}catch(s){b.deleteExpando=!1}!q.addEventListener&&q.attachEvent&&q.fireEvent&&(q.attachEvent("onclick",function(){b.noCloneEvent=!1}),q.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),b.radioValue=i.value==="t",i.setAttribute("checked","checked"),q.appendChild(i),k=c.createDocumentFragment(),k.appendChild(q.lastChild),b.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,b.appendChecked=i.checked,k.removeChild(i),k.appendChild(q),q.innerHTML="",a.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",q.style.width="2px",q.appendChild(j),b.reliableMarginRight=(parseInt((a.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0);if(q.attachEvent)for(o in{submit:1,change:1,focusin:1})n="on"+o,p=n in q,p||(q.setAttribute(n,"return;"),p=typeof q[n]=="function"),b[o+"Bubbles"]=p;k.removeChild(q),k=g=h=j=q=i=null,f(function(){var a,d,e,g,h,i,j,k,m,n,o,r=c.getElementsByTagName("body")[0];!r||(j=1,k="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",m="visibility:hidden;border:0;",n="style='"+k+"border:5px solid #000;padding:0;'",o="
    "+""+"
    ",a=c.createElement("div"),a.style.cssText=m+"width:0;height:0;position:static;top:0;margin-top:"+j+"px",r.insertBefore(a,r.firstChild),q=c.createElement("div"),a.appendChild(q),q.innerHTML="
    t
    ",l=q.getElementsByTagName("td"),p=l[0].offsetHeight===0,l[0].style.display="",l[1].style.display="none",b.reliableHiddenOffsets=p&&l[0].offsetHeight===0,q.innerHTML="",q.style.width=q.style.paddingLeft="1px",f.boxModel=b.boxModel=q.offsetWidth===2,typeof q.style.zoom!="undefined"&&(q.style.display="inline",q.style.zoom=1,b.inlineBlockNeedsLayout=q.offsetWidth===2,q.style.display="",q.innerHTML="
    ",b.shrinkWrapBlocks=q.offsetWidth!==2),q.style.cssText=k+m,q.innerHTML=o,d=q.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,i={doesNotAddBorder:e.offsetTop!==5,doesAddBorderForTableAndCells:h.offsetTop===5},e.style.position="fixed",e.style.top="20px",i.fixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",i.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,i.doesNotIncludeMarginInBodyOffset=r.offsetTop!==j,r.removeChild(a),q=a=null,f.extend(b,i))});return b}();var j=/^(?:\{.*\}|\[.*\])$/,k=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!m(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i,j=f.expando,k=typeof c=="string",l=a.nodeType,m=l?f.cache:a,n=l?a[j]:a[j]&&j,o=c==="events";if((!n||!m[n]||!o&&!e&&!m[n].data)&&k&&d===b)return;n||(l?a[j]=n=++f.uuid:n=j),m[n]||(m[n]={},l||(m[n].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?m[n]=f.extend(m[n],c):m[n].data=f.extend(m[n].data,c);g=h=m[n],e||(h.data||(h.data={}),h=h.data),d!==b&&(h[f.camelCase(c)]=d);if(o&&!h[c])return g.events;k?(i=h[c],i==null&&(i=h[f.camelCase(c)])):i=h;return i}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e,g,h=f.expando,i=a.nodeType,j=i?f.cache:a,k=i?a[h]:h;if(!j[k])return;if(b){d=c?j[k]:j[k].data;if(d){f.isArray(b)||(b in d?b=[b]:(b=f.camelCase(b),b in d?b=[b]:b=b.split(" ")));for(e=0,g=b.length;e-1)return!0;return!1},val:function(a){var c,d,e,g=this[0];{if(!!arguments.length){e=f.isFunction(a);return this.each(function(d){var g=f(this),h;if(this.nodeType===1){e?h=a.call(this,d,g.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}if(g){c=f.valHooks[g.nodeName.toLowerCase()]||f.valHooks[g.type];if(c&&"get"in c&&(d=c.get(g,"value"))!==b)return d;d=g.value;return typeof d=="string"?d.replace(q,""):d==null?"":d}}}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c,d,e,g=a.selectedIndex,h=[],i=a.options,j=a.type==="select-one";if(g<0)return null;c=j?g:0,d=j?g+1:i.length;for(;c=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(a,c,d,e){var g,h,i,j=a.nodeType;if(!!a&&j!==3&&j!==8&&j!==2){if(e&&c in f.attrFn)return f(a)[c](d);if(typeof a.getAttribute=="undefined")return f.prop(a,c,d);i=j!==1||!f.isXMLDoc(a),i&&(c=c.toLowerCase(),h=f.attrHooks[c]||(u.test(c)?x:w));if(d!==b){if(d===null){f.removeAttr(a,c);return}if(h&&"set"in h&&i&&(g=h.set(a,d,c))!==b)return g;a.setAttribute(c,""+d);return d}if(h&&"get"in h&&i&&(g=h.get(a,c))!==null)return g;g=a.getAttribute(c);return g===null?b:g}},removeAttr:function(a,b){var c,d,e,g,h=0;if(b&&a.nodeType===1){d=b.toLowerCase().split(p),g=d.length;for(;h=0}})});var z=/^(?:textarea|input|select)$/i,A=/^([^\.]*)?(?:\.(.+))?$/,B=/\bhover(\.\S+)?\b/,C=/^key/,D=/^(?:mouse|contextmenu)|click/,E=/^(?:focusinfocus|focusoutblur)$/,F=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,G=function(a){var b=F.exec(a);b&&(b[1]=(b[1]||"").toLowerCase(),b[3]=b[3]&&new RegExp("(?:^|\\s)"+b[3]+"(?:\\s|$)"));return b},H=function(a,b){var c=a.attributes||{};return(!b[1]||a.nodeName.toLowerCase()===b[1])&&(!b[2]||(c.id||{}).value===b[2])&&(!b[3]||b[3].test((c["class"]||{}).value))},I=function(a){return f.event.special.hover?a:a.replace(B,"mouseenter$1 mouseleave$1")}; -f.event={add:function(a,c,d,e,g){var h,i,j,k,l,m,n,o,p,q,r,s;if(!(a.nodeType===3||a.nodeType===8||!c||!d||!(h=f._data(a)))){d.handler&&(p=d,d=p.handler),d.guid||(d.guid=f.guid++),j=h.events,j||(h.events=j={}),i=h.handle,i||(h.handle=i=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.dispatch.apply(i.elem,arguments):b},i.elem=a),c=f.trim(I(c)).split(" ");for(k=0;k=0&&(h=h.slice(0,-1),k=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if((!e||f.event.customEvent[h])&&!f.event.global[h])return;c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.isTrigger=!0,c.exclusive=k,c.namespace=i.join("."),c.namespace_re=c.namespace?new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o=h.indexOf(":")<0?"on"+h:"";if(!e){j=f.cache;for(l in j)j[l].events&&j[l].events[h]&&f.event.trigger(c,d,j[l].handle.elem,!0);return}c.result=b,c.target||(c.target=e),d=d!=null?f.makeArray(d):[],d.unshift(c),p=f.event.special[h]||{};if(p.trigger&&p.trigger.apply(e,d)===!1)return;r=[[e,p.bindType||h]];if(!g&&!p.noBubble&&!f.isWindow(e)){s=p.delegateType||h,m=E.test(s+h)?e:e.parentNode,n=null;for(;m;m=m.parentNode)r.push([m,s]),n=m;n&&n===e.ownerDocument&&r.push([n.defaultView||n.parentWindow||a,s])}for(l=0;le&&i.push({elem:this,matches:d.slice(e)});for(j=0;j0?this.on(b,null,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0),C.test(b)&&(f.event.fixHooks[b]=f.event.keyHooks),D.test(b)&&(f.event.fixHooks[b]=f.event.mouseHooks)}),function(){function x(a,b,c,e,f,g){for(var h=0,i=e.length;h0){k=j;break}}j=j[a]}e[h]=k}}}function w(a,b,c,e,f,g){for(var h=0,i=e.length;h+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d="sizcache"+(Math.random()+"").replace(".",""),e=0,g=Object.prototype.toString,h=!1,i=!0,j=/\\/g,k=/\r\n/g,l=/\W/;[0,0].sort(function(){i=!1;return 0});var m=function(b,d,e,f){e=e||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return e;var i,j,k,l,n,q,r,t,u=!0,v=m.isXML(d),w=[],x=b;do{a.exec(""),i=a.exec(x);if(i){x=i[3],w.push(i[1]);if(i[2]){l=i[3];break}}}while(i);if(w.length>1&&p.exec(b))if(w.length===2&&o.relative[w[0]])j=y(w[0]+w[1],d,f);else{j=o.relative[w[0]]?[d]:m(w.shift(),d);while(w.length)b=w.shift(),o.relative[b]&&(b+=w.shift()),j=y(b,j,f)}else{!f&&w.length>1&&d.nodeType===9&&!v&&o.match.ID.test(w[0])&&!o.match.ID.test(w[w.length-1])&&(n=m.find(w.shift(),d,v),d=n.expr?m.filter(n.expr,n.set)[0]:n.set[0]);if(d){n=f?{expr:w.pop(),set:s(f)}:m.find(w.pop(),w.length===1&&(w[0]==="~"||w[0]==="+")&&d.parentNode?d.parentNode:d,v),j=n.expr?m.filter(n.expr,n.set):n.set,w.length>0?k=s(j):u=!1;while(w.length)q=w.pop(),r=q,o.relative[q]?r=w.pop():q="",r==null&&(r=d),o.relative[q](k,r,v)}else k=w=[]}k||(k=j),k||m.error(q||b);if(g.call(k)==="[object Array]")if(!u)e.push.apply(e,k);else if(d&&d.nodeType===1)for(t=0;k[t]!=null;t++)k[t]&&(k[t]===!0||k[t].nodeType===1&&m.contains(d,k[t]))&&e.push(j[t]);else for(t=0;k[t]!=null;t++)k[t]&&k[t].nodeType===1&&e.push(j[t]);else s(k,e);l&&(m(l,h,e,f),m.uniqueSort(e));return e};m.uniqueSort=function(a){if(u){h=i,a.sort(u);if(h)for(var b=1;b0},m.find=function(a,b,c){var d,e,f,g,h,i;if(!a)return[];for(e=0,f=o.order.length;e":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!l.test(b)){b=b.toLowerCase();for(;e=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(j,"")},TAG:function(a,b){return a[1].replace(j,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||m.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&m.error(a[0]);a[0]=e++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(j,"");!f&&o.attrMap[g]&&(a[1]=o.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(j,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=m(b[3],null,null,c);else{var g=m.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(o.match.POS.test(b[0])||o.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!m(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return bc[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=o.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||n([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||!!a.nodeName&&a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=m.attr?m.attr(a,c):o.attrHandle[c]?o.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":!f&&m.attr?d!=null:f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=o.setFilters[e];if(f)return f(a,c,b,d)}}},p=o.match.POS,q=function(a,b){return"\\"+(b-0+1)};for(var r in o.match)o.match[r]=new RegExp(o.match[r].source+/(?![^\[]*\])(?![^\(]*\))/.source),o.leftMatch[r]=new RegExp(/(^(?:.|\r|\n)*?)/.source+o.match[r].source.replace(/\\(\d+)/g,q));var s=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(t){s=function(a,b){var c=0,d=b||[];if(g.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var e=a.length;c",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(o.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},o.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(o.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(o.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=m,b=c.createElement("div"),d="__sizzle__";b.innerHTML="

    ";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){m=function(b,e,f,g){e=e||c;if(!g&&!m.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return s(e.getElementsByTagName(b),f);if(h[2]&&o.find.CLASS&&e.getElementsByClassName)return s(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return s([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return s([],f);if(i.id===h[3])return s([i],f)}try{return s(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var k=e,l=e.getAttribute("id"),n=l||d,p=e.parentNode,q=/^\s*[+~]/.test(b);l?n=n.replace(/'/g,"\\$&"):e.setAttribute("id",n),q&&p&&(e=e.parentNode);try{if(!q||p)return s(e.querySelectorAll("[id='"+n+"'] "+b),f)}catch(r){}finally{l||k.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)m[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}m.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!m.isXML(a))try{if(e||!o.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return m(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="
    ";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;o.order.splice(1,0,"CLASS"),o.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?m.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?m.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:m.contains=function(){return!1},m.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var y=function(a,b,c){var d,e=[],f="",g=b.nodeType?[b]:b;while(d=o.match.PSEUDO.exec(a))f+=d[0],a=a.replace(o.match.PSEUDO,"");a=o.relative[a]?a+"*":a;for(var h=0,i=g.length;h0)for(h=g;h=0:f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h=1;while(g&&g.ownerDocument&&g!==b){for(d=0;d-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(S(c[0])||S(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c);L.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!R[a]?f.unique(e):e,(this.length>1||N.test(d))&&M.test(a)&&(e=e.reverse());return this.pushStack(e,a,P.call(arguments).join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var V="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/",""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]},bh=U(c);bg.optgroup=bg.option,bg.tbody=bg.tfoot=bg.colgroup=bg.caption=bg.thead,bg.th=bg.td,f.support.htmlSerialize||(bg._default=[1,"div
    ","
    "]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){var b=f.isFunction(a);return this.each(function(c){f(this).wrapAll(b?a.call(this,c):a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f.clean(arguments);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f.clean(arguments));return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function() -{for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!bg[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1>");try{for(var c=0,d=this.length;c1&&l0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d,e,g,h=f.support.html5Clone||!bc.test("<"+a.nodeName)?a.cloneNode(!0):bo(a);if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bk(a,h),d=bl(a),e=bl(h);for(g=0;d[g];++g)e[g]&&bk(d[g],e[g])}if(b){bj(a,h);if(c){d=bl(a),e=bl(h);for(g=0;d[g];++g)bj(d[g],e[g])}}d=e=null;return h},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=bg[l]||bg._default,n=m[0],o=b.createElement("div");b===c?bh.appendChild(o):U(b).appendChild(o),o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]===""&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof (r=k.length)=="number")for(i=0;i=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return br.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNumeric(b)?"alpha(opacity="+b*100+")":"",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bq,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bq.test(g)?g.replace(bq,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bz(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bA=function(a,b){var c,d,e;b=b.replace(bs,"-$1").toLowerCase(),(d=a.ownerDocument.defaultView)&&(e=d.getComputedStyle(a,null))&&(c=e.getPropertyValue(b),c===""&&!f.contains(a.ownerDocument.documentElement,a)&&(c=f.style(a,b)));return c}),c.documentElement.currentStyle&&(bB=function(a,b){var c,d,e,f=a.currentStyle&&a.currentStyle[b],g=a.style;f===null&&g&&(e=g[b])&&(f=e),!bt.test(f)&&bu.test(f)&&(c=g.left,d=a.runtimeStyle&&a.runtimeStyle.left,d&&(a.runtimeStyle.left=a.currentStyle.left),g.left=b==="fontSize"?"1em":f||0,f=g.pixelLeft+"px",g.left=c,d&&(a.runtimeStyle.left=d));return f===""?"auto":f}),bz=bA||bB,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style&&a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bD=/%20/g,bE=/\[\]$/,bF=/\r?\n/g,bG=/#.*$/,bH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bI=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bJ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bK=/^(?:GET|HEAD)$/,bL=/^\/\//,bM=/\?/,bN=/)<[^<]*)*<\/script>/gi,bO=/^(?:select|textarea)/i,bP=/\s+/,bQ=/([?&])_=[^&]*/,bR=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bS=f.fn.load,bT={},bU={},bV,bW,bX=["*/"]+["*"];try{bV=e.href}catch(bY){bV=c.createElement("a"),bV.href="",bV=bV.href}bW=bR.exec(bV.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bS)return bS.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("
    ").append(c.replace(bN,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bO.test(this.nodeName)||bI.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bF,"\r\n")}}):{name:b.name,value:c.replace(bF,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.on(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?b_(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),b_(a,b);return a},ajaxSettings:{url:bV,isLocal:bJ.test(bW[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bX},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bZ(bT),ajaxTransport:bZ(bU),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?cb(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=cc(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.fireWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f.Callbacks("once memory"),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bH.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.add,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bG,"").replace(bL,bW[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bP),d.crossDomain==null&&(r=bR.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bW[1]&&r[2]==bW[2]&&(r[3]||(r[1]==="http:"?80:443))==(bW[3]||(bW[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),b$(bT,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bK.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bM.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bQ,"$1_="+x);d.url=y+(y===d.url?(bM.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bX+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=b$(bU,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){if(s<2)w(-1,z);else throw z}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)ca(g,a[g],c,e);return d.join("&").replace(bD,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var cd=f.now(),ce=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+cd++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ce.test(b.url)||e&&ce.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ce,l),b.url===j&&(e&&(k=k.replace(ce,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cf=a.ActiveXObject?function(){for(var a in ch)ch[a](0,1)}:!1,cg=0,ch;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ci()||cj()}:ci,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cf&&delete ch[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cg,cf&&(ch||(ch={},f(a).unload(cf)),ch[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var ck={},cl,cm,cn=/^(?:toggle|show|hide)$/,co=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cp,cq=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cr;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cu("show",3),a,b,c);for(var g=0,h=this.length;g=i.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),i.animatedProperties[this.prop]=!0;for(b in i.animatedProperties)i.animatedProperties[b]!==!0&&(g=!1);if(g){i.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){h.style["overflow"+b]=i.overflow[a]}),i.hide&&f(h).hide();if(i.hide||i.show)for(b in i.animatedProperties)f.style(h,b,i.orig[b]),f.removeData(h,"fxshow"+b,!0),f.removeData(h,"toggle"+b,!0);d=i.complete,d&&(i.complete=!1,d.call(h))}return!1}i.duration==Infinity?this.now=e:(c=e-this.startTime,this.state=c/i.duration,this.pos=f.easing[i.animatedProperties[this.prop]](this.state,c,0,1,i.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){var a,b=f.timers,c=0;for(;c-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=cx.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!cx.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cy(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cy(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a?a.style?parseFloat(f.css(a,d,"padding")):this[d]():null},f.fn["outer"+c]=function(a){var b=this[0];return b?b.style?parseFloat(f.css(b,d,a?"margin":"border")):this[d]():null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNumeric(j)?j:i}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f,typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return f})})(window); \ No newline at end of file diff --git a/Love_files/jscex-async-powerpack.min.js b/Love_files/jscex-async-powerpack.min.js deleted file mode 100644 index 712715f..0000000 --- a/Love_files/jscex-async-powerpack.min.js +++ /dev/null @@ -1,8 +0,0 @@ -(function(){var m=function(j){if(j.length<=1)return null;for(var f=[],h=1;h=0&&this._handlers.splice(a,1))},cancel:function(){if(!this.isCancellationRequested){this.isCancellationRequested=!0;var a=this._handlers;delete this._handlers;for(var f=0;f=0&&c.splice(i,1)}}}};e.create=function(a){return new e(a)};e.isTask=l;var h=function(){};h.prototype={Start:function(a,b){return e.create(function(c){b.next(a,function(a,b){if(a=="normal"||a=="return")c.complete("success",b);else if(a=="throw")c.complete("failure",b);else throw Error("Unsupported type: "+a);})})},Bind:function(a,b){return{next:function(c,e){var d= -function(a){if(a.error)e("throw",a.error);else{var d;try{d=b.call(c,a.result)}catch(h){e("throw",h);return}d.next(c,e)}};a.status=="ready"?(a.addEventListener("complete",d),a.start()):a.status=="running"?a.addEventListener("complete",d):d(a)}}}};for(var g in b.BuilderBase.prototype)h.prototype[g]=b.BuilderBase.prototype[g];if(!b.Async)b.Async={};g=b.Async;g.CancellationToken=d;g.CanceledError=k;g.Task=e;g.AsyncBuilder=h;if(!b.builders)b.builders={};b.binders.async="$await";b.builders.async=new h; -b.modules.async=!0}},m=typeof define==="function"&&!define.amd,n=typeof require==="function"&&typeof define==="function"&&define.amd;if(typeof require==="function"&&typeof module!=="undefined"&&module.exports)module.exports.init=function(b){if(!b.modules.builderbase){if(typeof __dirname==="string")try{require.paths.unshift(__dirname)}catch(d){try{module.paths.unshift(__dirname)}catch(e){}}require("jscex-builderbase").init(b)}j(b)};else if(m)define("jscex-async",["jscex-builderbase"],function(b,d, -e){e.exports.init=function(d){d.modules.builderbase||b("jscex-builderbase").init(d);j(d)}});else if(n)define("jscex-async",["jscex-builderbase"],function(b){return{init:function(d){d.modules.builderbase||b.init(d);j(d)}}});else{if(typeof Jscex==="undefined")throw Error('Missing the root object, please load "jscex" module first.');if(!Jscex.modules.builderbase)throw Error('Missing essential components, please initialize "builderbase" module first.');j(Jscex)}})(); diff --git a/Love_files/jscex-builderbase.min.js b/Love_files/jscex-builderbase.min.js deleted file mode 100644 index 715be3b..0000000 --- a/Love_files/jscex-builderbase.min.js +++ /dev/null @@ -1,4 +0,0 @@ -(function(){var j=function(){};j.prototype={Loop:function(b,c,a,d){return{next:function(e,i){var f=function(b){a.next(e,function(a,e){if(a=="normal"||a=="continue")g(b);else if(a=="throw"||a=="return")i(a,e);else if(a=="break")i("normal");else throw Error('Invalid type for "Loop": '+a);})},g=function(a){try{c&&!a&&c.call(e),!b||b.call(e)?f(!1):i("normal")}catch(d){i("throw",d)}};d?f(!0):g(!0)}}},Delay:function(b){return{next:function(c,a){try{b.call(c).next(c,a)}catch(d){a("throw",d)}}}},Combine:function(b, -c){return{next:function(a,d){b.next(a,function(b,i,f){if(b=="normal")try{c.next(a,d)}catch(g){d("throw",g)}else d(b,i,f)})}}},Return:function(b){return{next:function(c,a){a("return",b)}}},Normal:function(){return{next:function(b,c){c("normal")}}},Break:function(){return{next:function(b,c){c("break")}}},Continue:function(){return{next:function(b,c){c("continue")}}},Throw:function(b){return{next:function(c,a){a("throw",b)}}},Try:function(b,c,a){return{next:function(d,e){b.next(d,function(b,f,g){if(b!= -"throw"||!c)a?a.next(d,function(a,c,d){a=="normal"?e(b,f,g):e(a,c,d)}):e(b,f,g);else if(c){var h;try{h=c.call(d,f)}catch(j){a?a.next(d,function(a,b,c){a=="normal"?e("throw",j):e(a,b,c)}):e("throw",j)}h&&h.next(d,function(b,c,f){b=="throw"?a?a.next(d,function(a,d,g){a=="normal"?e(b,c,f):e(a,d,g)}):e(b,c,f):a?a.next(d,function(a,d,g){a=="normal"?e(b,c,f):e(a,d,g)}):e(b,c,f)})}else a.next(d,function(a,c,d){a=="normal"?e(b,f,g):e(a,c,d)})})}}}};var h=function(b){if(!b.modules)b.modules={};if(!b.modules.builderbase)b.modules.builderbase= -!0,b.BuilderBase=j},k=typeof define==="function"&&!define.amd,l=typeof require==="function"&&typeof define==="function"&&define.amd;if(typeof require==="function"&&typeof module!=="undefined"&&module.exports)module.exports.init=h;else if(k)define("jscex-builderbase",function(b,c,a){a.exports.init=h});else if(l)define("jscex-builderbase",function(){return{init:h}});else{if(typeof Jscex==="undefined")throw Error('Missing the root object, please load "jscex" module first.');h(Jscex)}})(); diff --git a/Love_files/jscex-jit.js b/Love_files/jscex-jit.js deleted file mode 100644 index 693fa57..0000000 --- a/Love_files/jscex-jit.js +++ /dev/null @@ -1,1406 +0,0 @@ -(function () { - - var codeGenerator = (typeof eval("(function () {})") == "function") ? - function (code) { return code; } : - function (code) { return "false || " + code; }; - - // support string type only. - var stringify = (typeof JSON !== "undefined" && JSON.stringify) ? - function (s) { return JSON.stringify(s); } : - (function () { - // Implementation comes from JSON2 (http://www.json.org/js.html) - - var escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; - - var meta = { // table of character substitutions - '\b': '\\b', - '\t': '\\t', - '\n': '\\n', - '\f': '\\f', - '\r': '\\r', - '"' : '\\"', - '\\': '\\\\' - } - - return function (s) { - // If the string contains no control characters, no quote characters, and no - // backslash characters, then we can safely slap some quotes around it. - // Otherwise we must also replace the offending characters with safe escape - // sequences. - - escapable.lastIndex = 0; - return escapable.test(s) ? '"' + s.replace(escapable, function (a) { - var c = meta[a]; - return typeof c === 's' ? c : - '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); - }) + '"' : '"' + s + '"'; - }; - })(); - - // seed defined in global - if (typeof __jscex__tempVarSeed === "undefined") { - __jscex__tempVarSeed = 0; - } - - var init = function (root) { - - if (root.modules["jit"]) { - return; - } - - function JscexTreeGenerator(binder) { - this._binder = binder; - this._root = null; - } - JscexTreeGenerator.prototype = { - - generate: function (ast) { - - var params = ast[2], statements = ast[3]; - - this._root = { type: "delay", stmts: [] }; - - this._visitStatements(statements, this._root.stmts); - - return this._root; - }, - - _getBindInfo: function (stmt) { - - var type = stmt[0]; - if (type == "stat") { - var expr = stmt[1]; - if (expr[0] == "call") { - var callee = expr[1]; - if (callee[0] == "name" && callee[1] == this._binder && expr[2].length == 1) { - return { - expression: expr[2][0], - argName: "", - assignee: null - }; - } - } else if (expr[0] == "assign") { - var assignee = expr[2]; - expr = expr[3]; - if (expr[0] == "call") { - var callee = expr[1]; - if (callee[0] == "name" && callee[1] == this._binder && expr[2].length == 1) { - return { - expression: expr[2][0], - argName: "$$_result_$$", - assignee: assignee - }; - } - } - } - } else if (type == "var") { - var defs = stmt[1]; - if (defs.length == 1) { - var item = defs[0]; - var name = item[0]; - var expr = item[1]; - if (expr && expr[0] == "call") { - var callee = expr[1]; - if (callee[0] == "name" && callee[1] == this._binder && expr[2].length == 1) { - return { - expression: expr[2][0], - argName: name, - assignee: null - }; - } - } - } - } else if (type == "return") { - var expr = stmt[1]; - if (expr && expr[0] == "call") { - var callee = expr[1]; - if (callee[0] == "name" && callee[1] == this._binder && expr[2].length == 1) { - return { - expression: expr[2][0], - argName: "$$_result_$$", - assignee: "return" - }; - } - } - } - - return null; - }, - - _visitStatements: function (statements, stmts, index) { - if (arguments.length <= 2) index = 0; - - if (index >= statements.length) { - stmts.push({ type: "normal" }); - return this; - } - - var currStmt = statements[index]; - var bindInfo = this._getBindInfo(currStmt); - - if (bindInfo) { - var bindStmt = { type: "bind", info: bindInfo }; - stmts.push(bindStmt); - - if (bindInfo.assignee != "return") { - bindStmt.stmts = []; - this._visitStatements(statements, bindStmt.stmts, index + 1); - } - - } else { - var type = currStmt[0]; - if (type == "return" || type == "break" || type == "continue" || type == "throw") { - - stmts.push({ type: type, stmt: currStmt }); - - } else if (type == "if" || type == "try" || type == "for" || type == "do" - || type == "while" || type == "switch" || type == "for-in") { - - var newStmt = this._visit(currStmt); - - if (newStmt.type == "raw") { - stmts.push(newStmt); - this._visitStatements(statements, stmts, index + 1); - } else { - var isLast = (index == statements.length - 1); - if (isLast) { - stmts.push(newStmt); - } else { - - var combineStmt = { - type: "combine", - first: { type: "delay", stmts: [newStmt] }, - second: { type: "delay", stmts: [] } - }; - stmts.push(combineStmt); - - this._visitStatements(statements, combineStmt.second.stmts, index + 1); - } - } - - } else { - - stmts.push({ type: "raw", stmt: currStmt }); - - this._visitStatements(statements, stmts, index + 1); - } - } - - return this; - }, - - _visit: function (ast) { - - var type = ast[0]; - - function throwUnsupportedError() { - throw new Error('"' + type + '" is not currently supported.'); - } - - var visitor = this._visitors[type]; - - if (visitor) { - return visitor.call(this, ast); - } else { - throwUnsupportedError(); - } - }, - - _visitBody: function (ast, stmts) { - if (ast[0] == "block") { - this._visitStatements(ast[1], stmts); - } else { - this._visitStatements([ast], stmts); - } - }, - - _noBinding: function (stmts) { - switch (stmts[stmts.length - 1].type) { - case "normal": - case "return": - case "break": - case "throw": - case "continue": - return true; - } - - return false; - }, - - _collectCaseStatements: function (cases, index) { - var res = []; - - for (var i = index; i < cases.length; i++) { - var rawStmts = cases[i][1]; - for (var j = 0; j < rawStmts.length; j++) { - if (rawStmts[j][0] == "break") { - return res - } - - res.push(rawStmts[j]); - } - } - - return res; - }, - - _visitors: { - - "for": function (ast) { - - var bodyStmts = []; - var body = ast[4]; - this._visitBody(body, bodyStmts); - - if (this._noBinding(bodyStmts)) { - return { type: "raw", stmt: ast }; - } - - var delayStmt = { type: "delay", stmts: [] }; - - var setup = ast[1]; - if (setup) { - delayStmt.stmts.push({ type: "raw", stmt: setup }); - } - - var loopStmt = { type: "loop", bodyFirst: false, bodyStmt: { type: "delay", stmts: bodyStmts } }; - delayStmt.stmts.push(loopStmt); - - var condition = ast[2]; - if (condition) { - loopStmt.condition = condition; - } - - var update = ast[3]; - if (update) { - loopStmt.update = update; - } - - return delayStmt; - }, - - "for-in": function (ast) { - - var body = ast[4]; - - var bodyStmts = []; - this._visitBody(body, bodyStmts); - - if (this._noBinding(bodyStmts)) { - return { type: "raw", stmt: ast }; - } - - var id = (__jscex__tempVarSeed++); - var keysVar = "$$_keys_$$_" + id; - var indexVar = "$$_index_$$_" + id; - // var memVar = "$$_mem_$$_" + id; - - var delayStmt = { type: "delay", stmts: [] }; - - // var members = Jscex._forInKeys(obj); - var keysAst = root.parse("var " + keysVar + " = Jscex._forInKeys(obj);")[1][0]; - keysAst[1][0][1][2][0] = ast[3]; // replace obj with real AST; - delayStmt.stmts.push({ type: "raw", stmt: keysAst }); - - /* - // var members = []; - delayStmt.stmts.push({ - type: "raw", - stmt: uglifyJS.parse("var " + membersVar + " = [];")[1][0] - }); - - // for (var mem in obj) members.push(mem); - var keysAst = uglifyJS.parse("for (var " + memVar +" in obj) " + membersVar + ".push(" + memVar + ");")[1][0]; - keysAst[3] = ast[3]; // replace the "obj" with real AST. - delayStmt.stmts.push({ type : "raw", stmt: keysAst}); - */ - - // var index = 0; - delayStmt.stmts.push({ - type: "raw", - stmt: root.parse("var " + indexVar + " = 0;")[1][0] - }); - - // index < members.length - var condition = root.parse(indexVar + " < " + keysVar + ".length")[1][0][1]; - - // index++ - var update = root.parse(indexVar + "++")[1][0][1]; - - var loopStmt = { - type: "loop", - bodyFirst: false, - update: update, - condition: condition, - bodyStmt: { type: "delay", stmts: [] } - }; - delayStmt.stmts.push(loopStmt); - - var varName = ast[2][1]; // ast[2] == ["name", m] - if (ast[1][0] == "var") { - loopStmt.bodyStmt.stmts.push({ - type: "raw", - stmt: root.parse("var " + varName + " = " + keysVar + "[" + indexVar + "];")[1][0] - }); - } else { - loopStmt.bodyStmt.stmts.push({ - type: "raw", - stmt: root.parse(varName + " = " + keysVar + "[" + indexVar + "];")[1][0] - }); - } - - this._visitBody(body, loopStmt.bodyStmt.stmts); - - return delayStmt; - }, - - "while": function (ast) { - - var bodyStmts = []; - var body = ast[2]; - this._visitBody(body, bodyStmts); - - if (this._noBinding(bodyStmts)) { - return { type: "raw", stmt: ast } - } - - var loopStmt = { type: "loop", bodyFirst: false, bodyStmt: { type: "delay", stmts: bodyStmts } }; - - var condition = ast[1]; - loopStmt.condition = condition; - - return loopStmt; - }, - - "do": function (ast) { - - var bodyStmts = []; - var body = ast[2]; - this._visitBody(body, bodyStmts); - - if (this._noBinding(bodyStmts)) { - return { type: "raw", stmt: ast }; - } - - var loopStmt = { type: "loop", bodyFirst: true, bodyStmt: { type: "delay", stmts: bodyStmts } }; - - var condition = ast[1]; - loopStmt.condition = condition; - - return loopStmt; - }, - - "switch": function (ast) { - var noBinding = true; - - var switchStmt = { type: "switch", item: ast[1], caseStmts: [] }; - - var cases = ast[2]; - for (var i = 0; i < cases.length; i++) { - var caseStmt = { item: cases[i][0], stmts: [] }; - switchStmt.caseStmts.push(caseStmt); - - var statements = this._collectCaseStatements(cases, i); - this._visitStatements(statements, caseStmt.stmts); - noBinding = noBinding && this._noBinding(caseStmt.stmts); - } - - if (noBinding) { - return { type: "raw", stmt: ast }; - } else { - return switchStmt; - } - }, - - "if": function (ast) { - - var noBinding = true; - - var ifStmt = { type: "if", conditionStmts: [] }; - - var currAst = ast; - while (true) { - var condition = currAst[1]; - var condStmt = { cond: condition, stmts: [] }; - ifStmt.conditionStmts.push(condStmt); - - var thenPart = currAst[2]; - this._visitBody(thenPart, condStmt.stmts); - - noBinding = noBinding && this._noBinding(condStmt.stmts); - - var elsePart = currAst[3]; - if (elsePart && elsePart[0] == "if") { - currAst = elsePart; - } else { - break; - } - } - - var elsePart = currAst[3]; - if (elsePart) { - ifStmt.elseStmts = []; - - this._visitBody(elsePart, ifStmt.elseStmts); - - noBinding = noBinding && this._noBinding(ifStmt.elseStmts); - } - - if (noBinding) { - return { type: "raw", stmt: ast }; - } else { - return ifStmt; - } - }, - - "try": function (ast, stmts) { - - var bodyStmts = []; - var bodyStatements = ast[1]; - this._visitStatements(bodyStatements, bodyStmts); - - var noBinding = this._noBinding(bodyStmts) - - var tryStmt = { type: "try", bodyStmt: { type: "delay", stmts: bodyStmts } }; - - var catchClause = ast[2]; - if (catchClause) { - var exVar = catchClause[0]; - tryStmt.exVar = exVar; - tryStmt.catchStmts = []; - - this._visitStatements(catchClause[1], tryStmt.catchStmts); - - noBinding = noBinding && this._noBinding(tryStmt.catchStmts); - } - - var finallyStatements = ast[3]; - if (finallyStatements) { - tryStmt.finallyStmt = { type: "delay", stmts: [] }; - - this._visitStatements(finallyStatements, tryStmt.finallyStmt.stmts); - - noBinding = noBinding && this._noBinding(tryStmt.finallyStmt.stmts); - } - - if (noBinding) { - return { type: "raw", stmt: ast }; - } else { - return tryStmt; - } - } - } - } - - function CodeGenerator(builderName, binder, indent) { - this._builderName = builderName; - this._binder = binder; - this._normalMode = false; - this._indent = indent; - this._indentLevel = 0; - this._builderVar = "$$_builder_$$_" + (__jscex__tempVarSeed++); - } - CodeGenerator.prototype = { - _write: function (s) { - this._buffer.push(s); - return this; - }, - - _writeLine: function (s) { - this._write(s)._write("\n"); - return this; - }, - - _writeIndents: function () { - for (var i = 0; i < this._indent; i++) { - this._write(" "); - } - - for (var i = 0; i < this._indentLevel; i++) { - this._write(" "); - } - return this; - }, - - generate: function (params, jscexAst) { - this._buffer = []; - - this._writeLine("(function (" + params.join(", ") + ") {"); - this._indentLevel++; - - this._writeIndents() - ._writeLine("var " + this._builderVar + " = Jscex.builders[" + stringify(this._builderName) + "];"); - - this._writeIndents() - ._writeLine("return " + this._builderVar + ".Start(this,"); - this._indentLevel++; - - this._pos = { }; - - this._writeIndents() - ._visitJscex(jscexAst) - ._writeLine(); - this._indentLevel--; - - this._writeIndents() - ._writeLine(");"); - this._indentLevel--; - - this._writeIndents() - ._write("})"); - - return this._buffer.join(""); - }, - - _visitJscex: function (ast) { - this._jscexVisitors[ast.type].call(this, ast); - return this; - }, - - _visitRaw: function (ast) { - var type = ast[0]; - - function throwUnsupportedError() { - throw new Error('"' + type + '" is not currently supported.'); - } - - var visitor = this._rawVisitors[type]; - - if (visitor) { - visitor.call(this, ast); - } else { - throwUnsupportedError(); - } - - return this; - }, - - _visitJscexStatements: function (statements) { - for (var i = 0; i < statements.length; i++) { - var stmt = statements[i]; - - if (stmt.type == "raw" || stmt.type == "if" || stmt.type == "switch") { - this._writeIndents() - ._visitJscex(stmt)._writeLine(); - } else if (stmt.type == "delay") { - this._visitJscexStatements(stmt.stmts); - } else { - this._writeIndents() - ._write("return ")._visitJscex(stmt)._writeLine(";"); - } - } - }, - - _visitRawStatements: function (statements) { - for (var i = 0; i < statements.length; i++) { - var s = statements[i]; - - this._writeIndents() - ._visitRaw(s)._writeLine(); - - switch (s[0]) { - case "break": - case "return": - case "continue": - case "throw": - return; - } - } - }, - - _visitRawBody: function (body) { - if (body[0] == "block") { - this._visitRaw(body); - } else { - this._writeLine(); - this._indentLevel++; - - this._writeIndents() - ._visitRaw(body); - this._indentLevel--; - } - - return this; - }, - - _visitRawFunction: function (ast) { - var funcName = ast[1] || ""; - var args = ast[2]; - var statements = ast[3]; - - this._writeLine("function " + funcName + "(" + args.join(", ") + ") {") - this._indentLevel++; - - var currInFunction = this._pos.inFunction; - this._pos.inFunction = true; - - this._visitRawStatements(statements); - this._indentLevel--; - - this._pos.inFunction = currInFunction; - - this._writeIndents() - ._write("}"); - }, - - _jscexVisitors: { - "delay": function (ast) { - if (ast.stmts.length == 1) { - var subStmt = ast.stmts[0]; - switch (subStmt.type) { - case "delay": - case "combine": - case "normal": - case "break": - case "continue": - case "loop": - case "try": - this._visitJscex(subStmt); - return; - case "return": - if (!subStmt.stmt[1]) { - this._visitJscex(subStmt); - return; - } - } - } - - this._writeLine(this._builderVar + ".Delay(function () {"); - this._indentLevel++; - - this._visitJscexStatements(ast.stmts); - this._indentLevel--; - - this._writeIndents() - ._write("})"); - }, - - "combine": function (ast) { - this._writeLine(this._builderVar + ".Combine("); - this._indentLevel++; - - this._writeIndents() - ._visitJscex(ast.first)._writeLine(","); - this._writeIndents() - ._visitJscex(ast.second)._writeLine(); - this._indentLevel--; - - this._writeIndents() - ._write(")"); - }, - - "loop": function (ast) { - this._writeLine(this._builderVar + ".Loop("); - this._indentLevel++; - - if (ast.condition) { - this._writeIndents() - ._writeLine("function () {"); - this._indentLevel++; - - this._writeIndents() - ._write("return ")._visitRaw(ast.condition)._writeLine(";"); - this._indentLevel--; - - this._writeIndents() - ._writeLine("},"); - } else { - this._writeIndents()._writeLine("null,"); - } - - if (ast.update) { - this._writeIndents() - ._writeLine("function () {"); - this._indentLevel++; - - this._writeIndents() - ._visitRaw(ast.update)._writeLine(";"); - this._indentLevel--; - - this._writeIndents() - ._writeLine("},"); - } else { - this._writeIndents()._writeLine("null,"); - } - - this._writeIndents() - ._visitJscex(ast.bodyStmt)._writeLine(","); - - this._writeIndents() - ._writeLine(ast.bodyFirst); - this._indentLevel--; - - this._writeIndents() - ._write(")"); - }, - - "raw": function (ast) { - this._visitRaw(ast.stmt); - }, - - "bind": function (ast) { - var info = ast.info; - this._write(this._builderVar + ".Bind(")._visitRaw(info.expression)._writeLine(", function (" + info.argName + ") {"); - this._indentLevel++; - - if (info.assignee == "return") { - this._writeIndents() - ._writeLine("return " + this._builderVar + ".Return(" + info.argName + ");"); - } else { - if (info.assignee) { - this._writeIndents() - ._visitRaw(info.assignee)._writeLine(" = " + info.argName + ";"); - } - - this._visitJscexStatements(ast.stmts); - } - this._indentLevel--; - - this._writeIndents() - ._write("})"); - }, - - "if": function (ast) { - - for (var i = 0; i < ast.conditionStmts.length; i++) { - var stmt = ast.conditionStmts[i]; - - this._write("if (")._visitRaw(stmt.cond)._writeLine(") {"); - this._indentLevel++; - - this._visitJscexStatements(stmt.stmts); - this._indentLevel--; - - this._writeIndents() - ._write("} else "); - } - - this._writeLine("{"); - this._indentLevel++; - - if (ast.elseStmts) { - this._visitJscexStatements(ast.elseStmts); - } else { - this._writeIndents() - ._writeLine("return " + this._builderVar + ".Normal();"); - } - - this._indentLevel--; - - this._writeIndents() - ._write("}"); - }, - - "switch": function (ast) { - this._write("switch (")._visitRaw(ast.item)._writeLine(") {"); - this._indentLevel++; - - for (var i = 0; i < ast.caseStmts.length; i++) { - var caseStmt = ast.caseStmts[i]; - - if (caseStmt.item) { - this._writeIndents() - ._write("case ")._visitRaw(caseStmt.item)._writeLine(":"); - } else { - this._writeIndents()._writeLine("default:"); - } - this._indentLevel++; - - this._visitJscexStatements(caseStmt.stmts); - this._indentLevel--; - } - - this._writeIndents() - ._write("}"); - }, - - "try": function (ast) { - this._writeLine(this._builderVar + ".Try("); - this._indentLevel++; - - this._writeIndents() - ._visitJscex(ast.bodyStmt)._writeLine(","); - - if (ast.catchStmts) { - this._writeIndents() - ._writeLine("function (" + ast.exVar + ") {"); - this._indentLevel++; - - this._visitJscexStatements(ast.catchStmts); - this._indentLevel--; - - this._writeIndents() - ._writeLine("},"); - } else { - this._writeIndents() - ._writeLine("null,"); - } - - if (ast.finallyStmt) { - this._writeIndents() - ._visitJscex(ast.finallyStmt)._writeLine(); - } else { - this._writeIndents() - ._writeLine("null"); - } - this._indentLevel--; - - this._writeIndents() - ._write(")"); - }, - - "normal": function (ast) { - this._write(this._builderVar + ".Normal()"); - }, - - "throw": function (ast) { - this._write(this._builderVar + ".Throw(")._visitRaw(ast.stmt[1])._write(")"); - }, - - "break": function (ast) { - this._write(this._builderVar + ".Break()"); - }, - - "continue": function (ast) { - this._write(this._builderVar + ".Continue()"); - }, - - "return": function (ast) { - this._write(this._builderVar + ".Return("); - if (ast.stmt[1]) this._visitRaw(ast.stmt[1]); - this._write(")"); - } - }, - - _rawVisitors: { - "var": function (ast) { - this._write("var "); - - var items = ast[1]; - for (var i = 0; i < items.length; i++) { - this._write(items[i][0]); - if (items[i].length > 1) { - this._write(" = ")._visitRaw(items[i][1]); - } - if (i < items.length - 1) this._write(", "); - } - - this._write(";"); - }, - - "seq": function (ast) { - for (var i = 1; i < ast.length; i++) { - this._visitRaw(ast[i]); - if (i < ast.length - 1) this._write(", "); - } - }, - - "binary": function (ast) { - var op = ast[1], left = ast[2], right = ast[3]; - - function needBracket(item) { - var type = item[0]; - return !(type == "num" || type == "name" || type == "dot"); - } - - if (needBracket(left)) { - this._write("(")._visitRaw(left)._write(") "); - } else { - this._visitRaw(left)._write(" "); - } - - this._write(op); - - if (needBracket(right)) { - this._write(" (")._visitRaw(right)._write(")"); - } else { - this._write(" ")._visitRaw(right); - } - }, - - "sub": function (ast) { - var prop = ast[1], index = ast[2]; - - function needBracket() { - return !(prop[0] == "name") - } - - if (needBracket()) { - this._write("(")._visitRaw(prop)._write(")[")._visitRaw(index)._write("]"); - } else { - this._visitRaw(prop)._write("[")._visitRaw(index)._write("]"); - } - }, - - "unary-postfix": function (ast) { - var op = ast[1]; - var item = ast[2]; - this._visitRaw(item)._write(op); - }, - - "unary-prefix": function (ast) { - var op = ast[1]; - var item = ast[2]; - this._write(op); - if (op == "typeof") { - this._write("(")._visitRaw(item)._write(")"); - } else { - this._visitRaw(item); - } - }, - - "assign": function (ast) { - var op = ast[1]; - var name = ast[2]; - var value = ast[3]; - - this._visitRaw(name); - if ((typeof op) == "string") { - this._write(" " + op + "= "); - } else { - this._write(" = "); - } - this._visitRaw(value); - }, - - "stat": function (ast) { - this._visitRaw(ast[1])._write(";"); - }, - - "dot": function (ast) { - function needBracket() { - var leftOp = ast[1][0]; - return !(leftOp == "dot" || leftOp == "name"); - } - - if (needBracket()) { - this._write("(")._visitRaw(ast[1])._write(").")._write(ast[2]); - } else { - this._visitRaw(ast[1])._write(".")._write(ast[2]); - } - }, - - "new": function (ast) { - var ctor = ast[1]; - - this._write("new ")._visitRaw(ctor)._write("("); - - var args = ast[2]; - for (var i = 0, len = args.length; i < len; i++) { - this._visitRaw(args[i]); - if (i < len - 1) this._write(", "); - } - - this._write(")"); - }, - - "call": function (ast) { - - if (_isJscexPattern(ast)) { - var indent = this._indent + this._indentLevel * 4; - var newCode = _compileJscexPattern(ast, indent); - this._write(newCode); - } else { - - var invalidBind = (ast[1][0] == "name") && (ast[1][1] == this._binder); - if (invalidBind) { - this._pos = { inFunction: true }; - this._buffer = []; - } - - this._visitRaw(ast[1])._write("("); - - var args = ast[2]; - for (var i = 0; i < args.length; i++) { - this._visitRaw(args[i]); - if (i < args.length - 1) this._write(", "); - } - - this._write(")"); - - if (invalidBind) { - throw ("Invalid bind operation: " + this._buffer.join("")); - } - } - }, - - "name": function (ast) { - this._write(ast[1]); - }, - - "object": function (ast) { - var items = ast[1]; - if (items.length <= 0) { - this._write("{ }"); - } else { - this._writeLine("{"); - this._indentLevel++; - - for (var i = 0; i < items.length; i++) { - this._writeIndents() - ._write(stringify(items[i][0]) + ": ") - ._visitRaw(items[i][1]); - - if (i < items.length - 1) { - this._writeLine(","); - } else { - this._writeLine(""); - } - } - - this._indentLevel--; - this._writeIndents()._write("}"); - } - }, - - "array": function (ast) { - this._write("["); - - var items = ast[1]; - for (var i = 0; i < items.length; i++) { - this._visitRaw(items[i]); - if (i < items.length - 1) this._write(", "); - } - - this._write("]"); - }, - - "num": function (ast) { - this._write(ast[1]); - }, - - "regexp": function (ast) { - this._write("/" + ast[1] + "/" + ast[2]); - }, - - "string": function (ast) { - this._write(stringify(ast[1])); - }, - - "function": function (ast) { - this._visitRawFunction(ast); - }, - - "defun": function (ast) { - this._visitRawFunction(ast); - }, - - "return": function (ast) { - if (this._pos.inFunction) { - this._write("return"); - var value = ast[1]; - if (value) this._write(" ")._visitRaw(value); - this._write(";"); - } else { - this._write("return ")._visitJscex({ type: "return", stmt: ast })._write(";"); - } - }, - - "for": function (ast) { - this._write("for ("); - - var setup = ast[1]; - if (setup) { - this._visitRaw(setup); - if (setup[0] != "var") { - this._write("; "); - } else { - this._write(" "); - } - } else { - this._write("; "); - } - - var condition = ast[2]; - if (condition) this._visitRaw(condition); - this._write("; "); - - var update = ast[3]; - if (update) this._visitRaw(update); - this._write(") "); - - var currInLoop = this._pos.inLoop; - this._pos.inLoop = true; - - var body = ast[4]; - this._visitRawBody(body); - - this._pos.inLoop = currInLoop; - }, - - "for-in": function (ast) { - this._write("for ("); - - var declare = ast[1]; - if (declare[0] == "var") { // declare == ["var", [["m"]]] - this._write("var " + declare[1][0][0]); - } else { - this._visitRaw(declare); - } - - this._write(" in ")._visitRaw(ast[3])._write(") "); - - var body = ast[4]; - this._visitRawBody(body); - }, - - "block": function (ast) { - this._writeLine("{") - this._indentLevel++; - - this._visitRawStatements(ast[1]); - this._indentLevel--; - - this._writeIndents() - ._write("}"); - }, - - "while": function (ast) { - var condition = ast[1]; - var body = ast[2]; - - var currInLoop = this._pos.inLoop - this._pos.inLoop = true; - - this._write("while (")._visitRaw(condition)._write(") ")._visitRawBody(body); - - this._pos.inLoop = currInLoop; - }, - - "do": function (ast) { - var condition = ast[1]; - var body = ast[2]; - - var currInLoop = this._pos.inLoop; - this._pos.inLoop = true; - - this._write("do ")._visitRawBody(body); - - this._pos.inLoop = currInLoop; - - if (body[0] == "block") { - this._write(" "); - } else { - this._writeLine()._writeIndents(); - } - - this._write("while (")._visitRaw(condition)._write(");"); - }, - - "if": function (ast) { - var condition = ast[1]; - var thenPart = ast[2]; - - this._write("if (")._visitRaw(condition)._write(") ")._visitRawBody(thenPart); - - var elsePart = ast[3]; - if (elsePart) { - if (thenPart[0] == "block") { - this._write(" "); - } else { - this._writeLine("") - ._writeIndents(); - } - - if (elsePart[0] == "if") { - this._write("else ")._visitRaw(elsePart); - } else { - this._write("else ")._visitRawBody(elsePart); - } - } - }, - - "break": function (ast) { - if (this._pos.inLoop || this._pos.inSwitch) { - this._write("break;"); - } else { - this._write("return ")._visitJscex({ type: "break", stmt: ast })._write(";"); - } - }, - - "continue": function (ast) { - if (this._pos.inLoop) { - this._write("continue;"); - } else { - this._write("return ")._visitJscex({ type: "continue", stmt: ast })._write(";"); - } - }, - - "throw": function (ast) { - var pos = this._pos; - if (pos.inTry || pos.inFunction) { - this._write("throw ")._visitRaw(ast[1])._write(";"); - } else { - this._write("return ")._visitJscex({ type: "throw", stmt: ast })._write(";"); - } - }, - - "conditional": function (ast) { - this._write("(")._visitRaw(ast[1])._write(") ? (")._visitRaw(ast[2])._write(") : (")._visitRaw(ast[3])._write(")"); - }, - - "try": function (ast) { - - this._writeLine("try {"); - this._indentLevel++; - - var currInTry = this._pos.inTry; - this._pos.inTry = true; - - this._visitRawStatements(ast[1]); - this._indentLevel--; - - this._pos.inTry = currInTry; - - var catchClause = ast[2]; - var finallyStatements = ast[3]; - - if (catchClause) { - this._writeIndents() - ._writeLine("} catch (" + catchClause[0] + ") {") - this._indentLevel++; - - this._visitRawStatements(catchClause[1]); - this._indentLevel--; - } - - if (finallyStatements) { - this._writeIndents() - ._writeLine("} finally {"); - this._indentLevel++; - - this._visitRawStatements(finallyStatements); - this._indentLevel--; - } - - this._writeIndents() - ._write("}"); - }, - - "switch": function (ast) { - this._write("switch (")._visitRaw(ast[1])._writeLine(") {"); - this._indentLevel++; - - var currInSwitch = this._pos.inSwitch; - this._pos.inSwitch = true; - - var cases = ast[2]; - for (var i = 0; i < cases.length; i++) { - var c = cases[i]; - this._writeIndents(); - - if (c[0]) { - this._write("case ")._visitRaw(c[0])._writeLine(":"); - } else { - this._writeLine("default:"); - } - this._indentLevel++; - - this._visitRawStatements(c[1]); - this._indentLevel--; - } - this._indentLevel--; - - this._pos.inSwitch = currInSwitch; - - this._writeIndents() - ._write("}"); - } - } - } - - function _isJscexPattern(ast) { - if (ast[0] != "call") return false; - - var evalName = ast[1]; - if (evalName[0] != "name" || evalName[1] != "eval") return false; - - var compileCall = ast[2][0]; - if (!compileCall || compileCall[0] != "call") return false; - - var compileMethod = compileCall[1]; - if (!compileMethod || compileMethod[0] != "dot" || compileMethod[2] != "compile") return false; - - var jscexName = compileMethod[1]; - if (!jscexName || jscexName[0] != "name" || jscexName[1] != "Jscex") return false; - - var builder = compileCall[2][0]; - if (!builder || builder[0] != "string") return false; - - var func = compileCall[2][1]; - if (!func || func[0] != "function") return false; - - return true; - } - - function _compileJscexPattern(ast, indent) { - - var builderName = ast[2][0][2][0][1]; - var funcAst = ast[2][0][2][1]; - var binder = root.binders[builderName]; - - var jscexTreeGenerator = new JscexTreeGenerator(binder); - var jscexAst = jscexTreeGenerator.generate(funcAst); - - var codeGenerator = new CodeGenerator(builderName, binder, indent); - var newCode = codeGenerator.generate(funcAst[2], jscexAst); - - return newCode; - } - - function compile(builderName, func) { - - var funcCode = func.toString(); - var evalCode = "eval(Jscex.compile(" + stringify(builderName) + ", " + funcCode + "))" - var evalCodeAst = root.parse(evalCode); - - // [ "toplevel", [ [ "stat", [ "call", ... ] ] ] ] - var evalAst = evalCodeAst[1][0][1]; - var newCode = _compileJscexPattern(evalAst, 0); - - root.logger.debug(funcCode + "\n\n>>>\n\n" + newCode); - - return codeGenerator(newCode); - }; - - root.compile = compile; - - root.modules["jit"] = true; - } - - var isCommonJS = (typeof require !== "undefined" && typeof module !== "undefined" && module.exports); - var isAmd = (typeof define !== "undefined" && define.amd); - - if (isCommonJS) { - module.exports.init = function (root) { - if (!root.modules["parser"]) { - require("./jscex-parser").init(root); - }; - - init(root); - } - } else if (isAmd) { - define("jscex-jit", ["jscex-parser"], function (parser) { - return { - init: function (root) { - if (!root.modules["parser"]) { - parser.init(root); - } - - init(root); - } - }; - }); - } else { - if (typeof Jscex === "undefined") { - throw new Error('Missing root object, please load "jscex" module first.'); - } - - if (!Jscex.modules["parser"]) { - throw new Error('Missing essential components, please initialize "parser" module first.'); - } - - init(Jscex); - } - -})(); diff --git a/Love_files/jscex-parser.js b/Love_files/jscex-parser.js deleted file mode 100644 index 7af171d..0000000 --- a/Love_files/jscex-parser.js +++ /dev/null @@ -1,1352 +0,0 @@ -/*********************************************************************** - - A JavaScript tokenizer / parser / beautifier / compressor. - - This version is suitable for Node.js. With minimal changes (the - exports stuff) it should work on any JS platform. - - This file contains the tokenizer/parser. It is a port to JavaScript - of parse-js [1], a JavaScript parser library written in Common Lisp - by Marijn Haverbeke. Thank you Marijn! - - [1] http://marijn.haverbeke.nl/parse-js/ - - Exported functions: - - - tokenizer(code) -- returns a function. Call the returned - function to fetch the next token. - - - parse(code) -- returns an AST of the given JavaScript code. - - -------------------------------- (C) --------------------------------- - - Author: Mihai Bazon - - http://mihai.bazon.net/blog - - Distributed under the BSD license: - - Copyright 2010 (c) Mihai Bazon - Based on parse-js (http://marijn.haverbeke.nl/parse-js/). - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - - * Redistributions of source code must retain the above - copyright notice, this list of conditions and the following - disclaimer. - - * Redistributions in binary form must reproduce the above - copyright notice, this list of conditions and the following - disclaimer in the documentation and/or other materials - provided with the distribution. - - THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER “AS IS” AND ANY - EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE - LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, - OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY - THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR - TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF - THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - SUCH DAMAGE. - - ***********************************************************************/ - -(function () { - -/* -----[ Tokenizer (constants) ]----- */ - -var KEYWORDS = array_to_hash([ - "break", - "case", - "catch", - "const", - "continue", - "default", - "delete", - "do", - "else", - "finally", - "for", - "function", - "if", - "in", - "instanceof", - "new", - "return", - "switch", - "throw", - "try", - "typeof", - "var", - "void", - "while", - "with" -]); - -var RESERVED_WORDS = array_to_hash([ - "abstract", - "boolean", - "byte", - "char", - "class", - "debugger", - "double", - "enum", - "export", - "extends", - "final", - "float", - "goto", - "implements", - "import", - "int", - "interface", - "long", - "native", - "package", - "private", - "protected", - "public", - "short", - "static", - "super", - "synchronized", - "throws", - "transient", - "volatile" -]); - -var KEYWORDS_BEFORE_EXPRESSION = array_to_hash([ - "return", - "new", - "delete", - "throw", - "else", - "case" -]); - -var KEYWORDS_ATOM = array_to_hash([ - "false", - "null", - "true", - "undefined" -]); - -var OPERATOR_CHARS = array_to_hash(characters("+-*&%=<>!?|~^")); - -var RE_HEX_NUMBER = /^0x[0-9a-f]+$/i; -var RE_OCT_NUMBER = /^0[0-7]+$/; -var RE_DEC_NUMBER = /^\d*\.?\d*(?:e[+-]?\d*(?:\d\.?|\.?\d)\d*)?$/i; - -var OPERATORS = array_to_hash([ - "in", - "instanceof", - "typeof", - "new", - "void", - "delete", - "++", - "--", - "+", - "-", - "!", - "~", - "&", - "|", - "^", - "*", - "/", - "%", - ">>", - "<<", - ">>>", - "<", - ">", - "<=", - ">=", - "==", - "===", - "!=", - "!==", - "?", - "=", - "+=", - "-=", - "/=", - "*=", - "%=", - ">>=", - "<<=", - ">>>=", - "|=", - "^=", - "&=", - "&&", - "||" -]); - -var WHITESPACE_CHARS = array_to_hash(characters(" \n\r\t\u200b")); - -var PUNC_BEFORE_EXPRESSION = array_to_hash(characters("[{}(,.;:")); - -var PUNC_CHARS = array_to_hash(characters("[]{}(),;:")); - -var REGEXP_MODIFIERS = array_to_hash(characters("gmsiy")); - -/* -----[ Tokenizer ]----- */ - -// regexps adapted from http://xregexp.com/plugins/#unicode -var UNICODE = { - letter: new RegExp("[\\u0041-\\u005A\\u0061-\\u007A\\u00AA\\u00B5\\u00BA\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u0523\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0621-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971\\u0972\\u097B-\\u097F\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C33\\u0C35-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D28\\u0D2A-\\u0D39\\u0D3D\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC\\u0EDD\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8B\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10D0-\\u10FA\\u10FC\\u1100-\\u1159\\u115F-\\u11A2\\u11A8-\\u11F9\\u1200-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u1676\\u1681-\\u169A\\u16A0-\\u16EA\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u1900-\\u191C\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19A9\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u2094\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2183\\u2184\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2C6F\\u2C71-\\u2C7D\\u2C80-\\u2CE4\\u2D00-\\u2D25\\u2D30-\\u2D65\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005\\u3006\\u3031-\\u3035\\u303B\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31B7\\u31F0-\\u31FF\\u3400\\u4DB5\\u4E00\\u9FC3\\uA000-\\uA48C\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA65F\\uA662-\\uA66E\\uA67F-\\uA697\\uA717-\\uA71F\\uA722-\\uA788\\uA78B\\uA78C\\uA7FB-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA90A-\\uA925\\uA930-\\uA946\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAC00\\uD7A3\\uF900-\\uFA2D\\uFA30-\\uFA6A\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), - non_spacing_mark: new RegExp("[\\u0300-\\u036F\\u0483-\\u0487\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065E\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0900-\\u0902\\u093C\\u0941-\\u0948\\u094D\\u0951-\\u0955\\u0962\\u0963\\u0981\\u09BC\\u09C1-\\u09C4\\u09CD\\u09E2\\u09E3\\u0A01\\u0A02\\u0A3C\\u0A41\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81\\u0A82\\u0ABC\\u0AC1-\\u0AC5\\u0AC7\\u0AC8\\u0ACD\\u0AE2\\u0AE3\\u0B01\\u0B3C\\u0B3F\\u0B41-\\u0B44\\u0B4D\\u0B56\\u0B62\\u0B63\\u0B82\\u0BC0\\u0BCD\\u0C3E-\\u0C40\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0CBC\\u0CBF\\u0CC6\\u0CCC\\u0CCD\\u0CE2\\u0CE3\\u0D41-\\u0D44\\u0D4D\\u0D62\\u0D63\\u0DCA\\u0DD2-\\u0DD4\\u0DD6\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F71-\\u0F7E\\u0F80-\\u0F84\\u0F86\\u0F87\\u0F90-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102D-\\u1030\\u1032-\\u1037\\u1039\\u103A\\u103D\\u103E\\u1058\\u1059\\u105E-\\u1060\\u1071-\\u1074\\u1082\\u1085\\u1086\\u108D\\u109D\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B7-\\u17BD\\u17C6\\u17C9-\\u17D3\\u17DD\\u180B-\\u180D\\u18A9\\u1920-\\u1922\\u1927\\u1928\\u1932\\u1939-\\u193B\\u1A17\\u1A18\\u1A56\\u1A58-\\u1A5E\\u1A60\\u1A62\\u1A65-\\u1A6C\\u1A73-\\u1A7C\\u1A7F\\u1B00-\\u1B03\\u1B34\\u1B36-\\u1B3A\\u1B3C\\u1B42\\u1B6B-\\u1B73\\u1B80\\u1B81\\u1BA2-\\u1BA5\\u1BA8\\u1BA9\\u1C2C-\\u1C33\\u1C36\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE0\\u1CE2-\\u1CE8\\u1CED\\u1DC0-\\u1DE6\\u1DFD-\\u1DFF\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2CEF-\\u2CF1\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F\\uA67C\\uA67D\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA825\\uA826\\uA8C4\\uA8E0-\\uA8F1\\uA926-\\uA92D\\uA947-\\uA951\\uA980-\\uA982\\uA9B3\\uA9B6-\\uA9B9\\uA9BC\\uAA29-\\uAA2E\\uAA31\\uAA32\\uAA35\\uAA36\\uAA43\\uAA4C\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uABE5\\uABE8\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE26]"), - space_combining_mark: new RegExp("[\\u0903\\u093E-\\u0940\\u0949-\\u094C\\u094E\\u0982\\u0983\\u09BE-\\u09C0\\u09C7\\u09C8\\u09CB\\u09CC\\u09D7\\u0A03\\u0A3E-\\u0A40\\u0A83\\u0ABE-\\u0AC0\\u0AC9\\u0ACB\\u0ACC\\u0B02\\u0B03\\u0B3E\\u0B40\\u0B47\\u0B48\\u0B4B\\u0B4C\\u0B57\\u0BBE\\u0BBF\\u0BC1\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCC\\u0BD7\\u0C01-\\u0C03\\u0C41-\\u0C44\\u0C82\\u0C83\\u0CBE\\u0CC0-\\u0CC4\\u0CC7\\u0CC8\\u0CCA\\u0CCB\\u0CD5\\u0CD6\\u0D02\\u0D03\\u0D3E-\\u0D40\\u0D46-\\u0D48\\u0D4A-\\u0D4C\\u0D57\\u0D82\\u0D83\\u0DCF-\\u0DD1\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0F3E\\u0F3F\\u0F7F\\u102B\\u102C\\u1031\\u1038\\u103B\\u103C\\u1056\\u1057\\u1062-\\u1064\\u1067-\\u106D\\u1083\\u1084\\u1087-\\u108C\\u108F\\u109A-\\u109C\\u17B6\\u17BE-\\u17C5\\u17C7\\u17C8\\u1923-\\u1926\\u1929-\\u192B\\u1930\\u1931\\u1933-\\u1938\\u19B0-\\u19C0\\u19C8\\u19C9\\u1A19-\\u1A1B\\u1A55\\u1A57\\u1A61\\u1A63\\u1A64\\u1A6D-\\u1A72\\u1B04\\u1B35\\u1B3B\\u1B3D-\\u1B41\\u1B43\\u1B44\\u1B82\\u1BA1\\u1BA6\\u1BA7\\u1BAA\\u1C24-\\u1C2B\\u1C34\\u1C35\\u1CE1\\u1CF2\\uA823\\uA824\\uA827\\uA880\\uA881\\uA8B4-\\uA8C3\\uA952\\uA953\\uA983\\uA9B4\\uA9B5\\uA9BA\\uA9BB\\uA9BD-\\uA9C0\\uAA2F\\uAA30\\uAA33\\uAA34\\uAA4D\\uAA7B\\uABE3\\uABE4\\uABE6\\uABE7\\uABE9\\uABEA\\uABEC]"), - connector_punctuation: new RegExp("[\\u005F\\u203F\\u2040\\u2054\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFF3F]") -}; - -function is_letter(ch) { - return UNICODE.letter.test(ch); -}; - -function is_digit(ch) { - ch = ch.charCodeAt(0); - return ch >= 48 && ch <= 57; //XXX: find out if "UnicodeDigit" means something else than 0..9 -}; - -function is_alphanumeric_char(ch) { - return is_digit(ch) || is_letter(ch); -}; - -function is_unicode_combining_mark(ch) { - return UNICODE.non_spacing_mark.test(ch) || UNICODE.space_combining_mark.test(ch); -}; - -function is_unicode_connector_punctuation(ch) { - return UNICODE.connector_punctuation.test(ch); -}; - -function is_identifier_start(ch) { - return ch == "$" || ch == "_" || is_letter(ch); -}; - -function is_identifier_char(ch) { - return is_identifier_start(ch) - || is_unicode_combining_mark(ch) - || is_digit(ch) - || is_unicode_connector_punctuation(ch) - || ch == "\u200c" // zero-width non-joiner - || ch == "\u200d" // zero-width joiner (in my ECMA-262 PDF, this is also 200c) - ; -}; - -function parse_js_number(num) { - if (RE_HEX_NUMBER.test(num)) { - return parseInt(num.substr(2), 16); - } else if (RE_OCT_NUMBER.test(num)) { - return parseInt(num.substr(1), 8); - } else if (RE_DEC_NUMBER.test(num)) { - return parseFloat(num); - } -}; - -function JS_Parse_Error(message, line, col, pos) { - this.message = message; - this.line = line; - this.col = col; - this.pos = pos; - try { - ({})(); - } catch(ex) { - this.stack = ex.stack; - }; -}; - -JS_Parse_Error.prototype.toString = function() { - return this.message + " (line: " + this.line + ", col: " + this.col + ", pos: " + this.pos + ")" + "\n\n" + this.stack; -}; - -function js_error(message, line, col, pos) { - throw new JS_Parse_Error(message, line, col, pos); -}; - -function is_token(token, type, val) { - return token.type == type && (val == null || token.value == val); -}; - -var EX_EOF = {}; - -function tokenizer($TEXT) { - - var S = { - text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''), - pos : 0, - tokpos : 0, - line : 0, - tokline : 0, - col : 0, - tokcol : 0, - newline_before : false, - regex_allowed : false, - comments_before : [] - }; - - function peek() { return S.text.charAt(S.pos); }; - - function next(signal_eof) { - var ch = S.text.charAt(S.pos++); - if (signal_eof && !ch) - throw EX_EOF; - if (ch == "\n") { - S.newline_before = true; - ++S.line; - S.col = 0; - } else { - ++S.col; - } - return ch; - }; - - function eof() { - return !S.peek(); - }; - - function find(what, signal_eof) { - var pos = S.text.indexOf(what, S.pos); - if (signal_eof && pos == -1) throw EX_EOF; - return pos; - }; - - function start_token() { - S.tokline = S.line; - S.tokcol = S.col; - S.tokpos = S.pos; - }; - - function token(type, value, is_comment) { - S.regex_allowed = ((type == "operator" && !HOP(UNARY_POSTFIX, value)) || - (type == "keyword" && HOP(KEYWORDS_BEFORE_EXPRESSION, value)) || - (type == "punc" && HOP(PUNC_BEFORE_EXPRESSION, value))); - var ret = { - type : type, - value : value, - line : S.tokline, - col : S.tokcol, - pos : S.tokpos, - nlb : S.newline_before - }; - if (!is_comment) { - ret.comments_before = S.comments_before; - S.comments_before = []; - } - S.newline_before = false; - return ret; - }; - - function skip_whitespace() { - while (HOP(WHITESPACE_CHARS, peek())) - next(); - }; - - function read_while(pred) { - var ret = "", ch = peek(), i = 0; - while (ch && pred(ch, i++)) { - ret += next(); - ch = peek(); - } - return ret; - }; - - function parse_error(err) { - js_error(err, S.tokline, S.tokcol, S.tokpos); - }; - - function read_num(prefix) { - var has_e = false, after_e = false, has_x = false, has_dot = prefix == "."; - var num = read_while(function(ch, i){ - if (ch == "x" || ch == "X") { - if (has_x) return false; - return has_x = true; - } - if (!has_x && (ch == "E" || ch == "e")) { - if (has_e) return false; - return has_e = after_e = true; - } - if (ch == "-") { - if (after_e || (i == 0 && !prefix)) return true; - return false; - } - if (ch == "+") return after_e; - after_e = false; - if (ch == ".") { - if (!has_dot && !has_x) - return has_dot = true; - return false; - } - return is_alphanumeric_char(ch); - }); - if (prefix) - num = prefix + num; - var valid = parse_js_number(num); - if (!isNaN(valid)) { - return token("num", valid); - } else { - parse_error("Invalid syntax: " + num); - } - }; - - function read_escaped_char() { - var ch = next(true); - switch (ch) { - case "n" : return "\n"; - case "r" : return "\r"; - case "t" : return "\t"; - case "b" : return "\b"; - case "v" : return "\v"; - case "f" : return "\f"; - case "0" : return "\0"; - case "x" : return String.fromCharCode(hex_bytes(2)); - case "u" : return String.fromCharCode(hex_bytes(4)); - default : return ch; - } - }; - - function hex_bytes(n) { - var num = 0; - for (; n > 0; --n) { - var digit = parseInt(next(true), 16); - if (isNaN(digit)) - parse_error("Invalid hex-character pattern in string"); - num = (num << 4) | digit; - } - return num; - }; - - function read_string() { - return with_eof_error("Unterminated string constant", function(){ - var quote = next(), ret = ""; - for (;;) { - var ch = next(true); - if (ch == "\\") ch = read_escaped_char(); - else if (ch == quote) break; - ret += ch; - } - return token("string", ret); - }); - }; - - function read_line_comment() { - next(); - var i = find("\n"), ret; - if (i == -1) { - ret = S.text.substr(S.pos); - S.pos = S.text.length; - } else { - ret = S.text.substring(S.pos, i); - S.pos = i; - } - return token("comment1", ret, true); - }; - - function read_multiline_comment() { - next(); - return with_eof_error("Unterminated multiline comment", function(){ - var i = find("*/", true), - text = S.text.substring(S.pos, i), - tok = token("comment2", text, true); - S.pos = i + 2; - S.line += text.split("\n").length - 1; - S.newline_before = text.indexOf("\n") >= 0; - - // https://github.com/mishoo/UglifyJS/issues/#issue/100 - if (/^@cc_on/i.test(text)) { - warn("WARNING: at line " + S.line); - warn("*** Found \"conditional comment\": " + text); - warn("*** UglifyJS DISCARDS ALL COMMENTS. This means your code might no longer work properly in Internet Explorer."); - } - - return tok; - }); - }; - - function read_name() { - var backslash = false, name = "", ch; - while ((ch = peek()) != null) { - if (!backslash) { - if (ch == "\\") backslash = true, next(); - else if (is_identifier_char(ch)) name += next(); - else break; - } - else { - if (ch != "u") parse_error("Expecting UnicodeEscapeSequence -- uXXXX"); - ch = read_escaped_char(); - if (!is_identifier_char(ch)) parse_error("Unicode char: " + ch.charCodeAt(0) + " is not valid in identifier"); - name += ch; - backslash = false; - } - } - return name; - }; - - function read_regexp() { - return with_eof_error("Unterminated regular expression", function(){ - var prev_backslash = false, regexp = "", ch, in_class = false; - while ((ch = next(true))) if (prev_backslash) { - regexp += "\\" + ch; - prev_backslash = false; - } else if (ch == "[") { - in_class = true; - regexp += ch; - } else if (ch == "]" && in_class) { - in_class = false; - regexp += ch; - } else if (ch == "/" && !in_class) { - break; - } else if (ch == "\\") { - prev_backslash = true; - } else { - regexp += ch; - } - var mods = read_name(); - return token("regexp", [ regexp, mods ]); - }); - }; - - function read_operator(prefix) { - function grow(op) { - if (!peek()) return op; - var bigger = op + peek(); - if (HOP(OPERATORS, bigger)) { - next(); - return grow(bigger); - } else { - return op; - } - }; - return token("operator", grow(prefix || next())); - }; - - function handle_slash() { - next(); - var regex_allowed = S.regex_allowed; - switch (peek()) { - case "/": - S.comments_before.push(read_line_comment()); - S.regex_allowed = regex_allowed; - return next_token(); - case "*": - S.comments_before.push(read_multiline_comment()); - S.regex_allowed = regex_allowed; - return next_token(); - } - return S.regex_allowed ? read_regexp() : read_operator("/"); - }; - - function handle_dot() { - next(); - return is_digit(peek()) - ? read_num(".") - : token("punc", "."); - }; - - function read_word() { - var word = read_name(); - return !HOP(KEYWORDS, word) - ? token("name", word) - : HOP(OPERATORS, word) - ? token("operator", word) - : HOP(KEYWORDS_ATOM, word) - ? token("atom", word) - : token("keyword", word); - }; - - function with_eof_error(eof_error, cont) { - try { - return cont(); - } catch(ex) { - if (ex === EX_EOF) parse_error(eof_error); - else throw ex; - } - }; - - function next_token(force_regexp) { - if (force_regexp) - return read_regexp(); - skip_whitespace(); - start_token(); - var ch = peek(); - if (!ch) return token("eof"); - if (is_digit(ch)) return read_num(); - if (ch == '"' || ch == "'") return read_string(); - if (HOP(PUNC_CHARS, ch)) return token("punc", next()); - if (ch == ".") return handle_dot(); - if (ch == "/") return handle_slash(); - if (HOP(OPERATOR_CHARS, ch)) return read_operator(); - if (ch == "\\" || is_identifier_start(ch)) return read_word(); - parse_error("Unexpected character '" + ch + "'"); - }; - - next_token.context = function(nc) { - if (nc) S = nc; - return S; - }; - - return next_token; - -}; - -/* -----[ Parser (constants) ]----- */ - -var UNARY_PREFIX = array_to_hash([ - "typeof", - "void", - "delete", - "--", - "++", - "!", - "~", - "-", - "+" -]); - -var UNARY_POSTFIX = array_to_hash([ "--", "++" ]); - -var ASSIGNMENT = (function(a, ret, i){ - while (i < a.length) { - ret[a[i]] = a[i].substr(0, a[i].length - 1); - i++; - } - return ret; -})( - ["+=", "-=", "/=", "*=", "%=", ">>=", "<<=", ">>>=", "|=", "^=", "&="], - { "=": true }, - 0 -); - -var PRECEDENCE = (function(a, ret){ - for (var i = 0, n = 1; i < a.length; ++i, ++n) { - var b = a[i]; - for (var j = 0; j < b.length; ++j) { - ret[b[j]] = n; - } - } - return ret; -})( - [ - ["||"], - ["&&"], - ["|"], - ["^"], - ["&"], - ["==", "===", "!=", "!=="], - ["<", ">", "<=", ">=", "in", "instanceof"], - [">>", "<<", ">>>"], - ["+", "-"], - ["*", "/", "%"] - ], - {} -); - -var STATEMENTS_WITH_LABELS = array_to_hash([ "for", "do", "while", "switch" ]); - -var ATOMIC_START_TOKEN = array_to_hash([ "atom", "num", "string", "regexp", "name" ]); - -/* -----[ Parser ]----- */ - -function NodeWithToken(str, start, end) { - this.name = str; - this.start = start; - this.end = end; -}; - -NodeWithToken.prototype.toString = function() { return this.name; }; - -function parse($TEXT, exigent_mode, embed_tokens) { - - var S = { - input : typeof $TEXT == "string" ? tokenizer($TEXT, true) : $TEXT, - token : null, - prev : null, - peeked : null, - in_function : 0, - in_loop : 0, - labels : [] - }; - - S.token = next(); - - function is(type, value) { - return is_token(S.token, type, value); - }; - - function peek() { return S.peeked || (S.peeked = S.input()); }; - - function next() { - S.prev = S.token; - if (S.peeked) { - S.token = S.peeked; - S.peeked = null; - } else { - S.token = S.input(); - } - return S.token; - }; - - function prev() { - return S.prev; - }; - - function croak(msg, line, col, pos) { - var ctx = S.input.context(); - js_error(msg, - line != null ? line : ctx.tokline, - col != null ? col : ctx.tokcol, - pos != null ? pos : ctx.tokpos); - }; - - function token_error(token, msg) { - croak(msg, token.line, token.col); - }; - - function unexpected(token) { - if (token == null) - token = S.token; - token_error(token, "Unexpected token: " + token.type + " (" + token.value + ")"); - }; - - function expect_token(type, val) { - if (is(type, val)) { - return next(); - } - token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type); - }; - - function expect(punc) { return expect_token("punc", punc); }; - - function can_insert_semicolon() { - return !exigent_mode && ( - S.token.nlb || is("eof") || is("punc", "}") - ); - }; - - function semicolon() { - if (is("punc", ";")) next(); - else if (!can_insert_semicolon()) unexpected(); - }; - - function as() { - return slice(arguments); - }; - - function parenthesised() { - expect("("); - var ex = expression(); - expect(")"); - return ex; - }; - - function add_tokens(str, start, end) { - return str instanceof NodeWithToken ? str : new NodeWithToken(str, start, end); - }; - - var statement = embed_tokens ? function() { - var start = S.token; - var ast = $statement.apply(this, arguments); - ast[0] = add_tokens(ast[0], start, prev()); - return ast; - } : $statement; - - function $statement() { - if (is("operator", "/")) { - S.peeked = null; - S.token = S.input(true); // force regexp - } - switch (S.token.type) { - case "num": - case "string": - case "regexp": - case "operator": - case "atom": - return simple_statement(); - - case "name": - return is_token(peek(), "punc", ":") - ? labeled_statement(prog1(S.token.value, next, next)) - : simple_statement(); - - case "punc": - switch (S.token.value) { - case "{": - return as("block", block_()); - case "[": - case "(": - return simple_statement(); - case ";": - next(); - return as("block"); - default: - unexpected(); - } - - case "keyword": - switch (prog1(S.token.value, next)) { - case "break": - return break_cont("break"); - - case "continue": - return break_cont("continue"); - - case "debugger": - semicolon(); - return as("debugger"); - - case "do": - return (function(body){ - expect_token("keyword", "while"); - return as("do", prog1(parenthesised, semicolon), body); - })(in_loop(statement)); - - case "for": - return for_(); - - case "function": - return function_(true); - - case "if": - return if_(); - - case "return": - if (S.in_function == 0) - croak("'return' outside of function"); - return as("return", - is("punc", ";") - ? (next(), null) - : can_insert_semicolon() - ? null - : prog1(expression, semicolon)); - - case "switch": - return as("switch", parenthesised(), switch_block_()); - - case "throw": - return as("throw", prog1(expression, semicolon)); - - case "try": - return try_(); - - case "var": - return prog1(var_, semicolon); - - case "const": - return prog1(const_, semicolon); - - case "while": - return as("while", parenthesised(), in_loop(statement)); - - case "with": - return as("with", parenthesised(), statement()); - - default: - unexpected(); - } - } - }; - - function labeled_statement(label) { - S.labels.push(label); - var start = S.token, stat = statement(); - if (exigent_mode && !HOP(STATEMENTS_WITH_LABELS, stat[0])) - unexpected(start); - S.labels.pop(); - return as("label", label, stat); - }; - - function simple_statement() { - return as("stat", prog1(expression, semicolon)); - }; - - function break_cont(type) { - var name = is("name") ? S.token.value : null; - if (name != null) { - next(); - if (!member(name, S.labels)) - croak("Label " + name + " without matching loop or statement"); - } - else if (S.in_loop == 0) - croak(type + " not inside a loop or switch"); - semicolon(); - return as(type, name); - }; - - function for_() { - expect("("); - var init = null; - if (!is("punc", ";")) { - init = is("keyword", "var") - ? (next(), var_(true)) - : expression(true, true); - if (is("operator", "in")) - return for_in(init); - } - return regular_for(init); - }; - - function regular_for(init) { - expect(";"); - var test = is("punc", ";") ? null : expression(); - expect(";"); - var step = is("punc", ")") ? null : expression(); - expect(")"); - return as("for", init, test, step, in_loop(statement)); - }; - - function for_in(init) { - var lhs = init[0] == "var" ? as("name", init[1][0]) : init; - next(); - var obj = expression(); - expect(")"); - return as("for-in", init, lhs, obj, in_loop(statement)); - }; - - var function_ = embed_tokens ? function() { - var start = prev(); - var ast = $function_.apply(this, arguments); - ast[0] = add_tokens(ast[0], start, prev()); - return ast; - } : $function_; - - function $function_(in_statement) { - var name = is("name") ? prog1(S.token.value, next) : null; - if (in_statement && !name) - unexpected(); - expect("("); - return as(in_statement ? "defun" : "function", - name, - // arguments - (function(first, a){ - while (!is("punc", ")")) { - if (first) first = false; else expect(","); - if (!is("name")) unexpected(); - a.push(S.token.value); - next(); - } - next(); - return a; - })(true, []), - // body - (function(){ - ++S.in_function; - var loop = S.in_loop; - S.in_loop = 0; - var a = block_(); - --S.in_function; - S.in_loop = loop; - return a; - })()); - }; - - function if_() { - var cond = parenthesised(), body = statement(), belse; - if (is("keyword", "else")) { - next(); - belse = statement(); - } - return as("if", cond, body, belse); - }; - - function block_() { - expect("{"); - var a = []; - while (!is("punc", "}")) { - if (is("eof")) unexpected(); - a.push(statement()); - } - next(); - return a; - }; - - var switch_block_ = curry(in_loop, function(){ - expect("{"); - var a = [], cur = null; - while (!is("punc", "}")) { - if (is("eof")) unexpected(); - if (is("keyword", "case")) { - next(); - cur = []; - a.push([ expression(), cur ]); - expect(":"); - } - else if (is("keyword", "default")) { - next(); - expect(":"); - cur = []; - a.push([ null, cur ]); - } - else { - if (!cur) unexpected(); - cur.push(statement()); - } - } - next(); - return a; - }); - - function try_() { - var body = block_(), bcatch, bfinally; - if (is("keyword", "catch")) { - next(); - expect("("); - if (!is("name")) - croak("Name expected"); - var name = S.token.value; - next(); - expect(")"); - bcatch = [ name, block_() ]; - } - if (is("keyword", "finally")) { - next(); - bfinally = block_(); - } - if (!bcatch && !bfinally) - croak("Missing catch/finally blocks"); - return as("try", body, bcatch, bfinally); - }; - - function vardefs(no_in) { - var a = []; - for (;;) { - if (!is("name")) - unexpected(); - var name = S.token.value; - next(); - if (is("operator", "=")) { - next(); - a.push([ name, expression(false, no_in) ]); - } else { - a.push([ name ]); - } - if (!is("punc", ",")) - break; - next(); - } - return a; - }; - - function var_(no_in) { - return as("var", vardefs(no_in)); - }; - - function const_() { - return as("const", vardefs()); - }; - - function new_() { - var newexp = expr_atom(false), args; - if (is("punc", "(")) { - next(); - args = expr_list(")"); - } else { - args = []; - } - return subscripts(as("new", newexp, args), true); - }; - - function expr_atom(allow_calls) { - if (is("operator", "new")) { - next(); - return new_(); - } - if (is("operator") && HOP(UNARY_PREFIX, S.token.value)) { - return make_unary("unary-prefix", - prog1(S.token.value, next), - expr_atom(allow_calls)); - } - if (is("punc")) { - switch (S.token.value) { - case "(": - next(); - return subscripts(prog1(expression, curry(expect, ")")), allow_calls); - case "[": - next(); - return subscripts(array_(), allow_calls); - case "{": - next(); - return subscripts(object_(), allow_calls); - } - unexpected(); - } - if (is("keyword", "function")) { - next(); - return subscripts(function_(false), allow_calls); - } - if (HOP(ATOMIC_START_TOKEN, S.token.type)) { - var atom = S.token.type == "regexp" - ? as("regexp", S.token.value[0], S.token.value[1]) - : as(S.token.type, S.token.value); - return subscripts(prog1(atom, next), allow_calls); - } - unexpected(); - }; - - function expr_list(closing, allow_trailing_comma, allow_empty) { - var first = true, a = []; - while (!is("punc", closing)) { - if (first) first = false; else expect(","); - if (allow_trailing_comma && is("punc", closing)) break; - if (is("punc", ",") && allow_empty) { - a.push([ "atom", "undefined" ]); - } else { - a.push(expression(false)); - } - } - next(); - return a; - }; - - function array_() { - return as("array", expr_list("]", !exigent_mode, true)); - }; - - function object_() { - var first = true, a = []; - while (!is("punc", "}")) { - if (first) first = false; else expect(","); - if (!exigent_mode && is("punc", "}")) - // allow trailing comma - break; - var type = S.token.type; - var name = as_property_name(); - if (type == "name" && (name == "get" || name == "set") && !is("punc", ":")) { - a.push([ as_name(), function_(false), name ]); - } else { - expect(":"); - a.push([ name, expression(false) ]); - } - } - next(); - return as("object", a); - }; - - function as_property_name() { - switch (S.token.type) { - case "num": - case "string": - return prog1(S.token.value, next); - } - return as_name(); - }; - - function as_name() { - switch (S.token.type) { - case "name": - case "operator": - case "keyword": - case "atom": - return prog1(S.token.value, next); - default: - unexpected(); - } - }; - - function subscripts(expr, allow_calls) { - if (is("punc", ".")) { - next(); - return subscripts(as("dot", expr, as_name()), allow_calls); - } - if (is("punc", "[")) { - next(); - return subscripts(as("sub", expr, prog1(expression, curry(expect, "]"))), allow_calls); - } - if (allow_calls && is("punc", "(")) { - next(); - return subscripts(as("call", expr, expr_list(")")), true); - } - if (allow_calls && is("operator") && HOP(UNARY_POSTFIX, S.token.value)) { - return prog1(curry(make_unary, "unary-postfix", S.token.value, expr), - next); - } - return expr; - }; - - function make_unary(tag, op, expr) { - if ((op == "++" || op == "--") && !is_assignable(expr)) - croak("Invalid use of " + op + " operator"); - return as(tag, op, expr); - }; - - function expr_op(left, min_prec, no_in) { - var op = is("operator") ? S.token.value : null; - if (op && op == "in" && no_in) op = null; - var prec = op != null ? PRECEDENCE[op] : null; - if (prec != null && prec > min_prec) { - next(); - var right = expr_op(expr_atom(true), prec, no_in); - return expr_op(as("binary", op, left, right), min_prec, no_in); - } - return left; - }; - - function expr_ops(no_in) { - return expr_op(expr_atom(true), 0, no_in); - }; - - function maybe_conditional(no_in) { - var expr = expr_ops(no_in); - if (is("operator", "?")) { - next(); - var yes = expression(false); - expect(":"); - return as("conditional", expr, yes, expression(false, no_in)); - } - return expr; - }; - - function is_assignable(expr) { - if (!exigent_mode) return true; - switch (expr[0]) { - case "dot": - case "sub": - case "new": - case "call": - return true; - case "name": - return expr[1] != "this"; - } - }; - - function maybe_assign(no_in) { - var left = maybe_conditional(no_in), val = S.token.value; - if (is("operator") && HOP(ASSIGNMENT, val)) { - if (is_assignable(left)) { - next(); - return as("assign", ASSIGNMENT[val], left, maybe_assign(no_in)); - } - croak("Invalid assignment"); - } - return left; - }; - - function expression(commas, no_in) { - if (arguments.length == 0) - commas = true; - var expr = maybe_assign(no_in); - if (commas && is("punc", ",")) { - next(); - return as("seq", expr, expression(true, no_in)); - } - return expr; - }; - - function in_loop(cont) { - try { - ++S.in_loop; - return cont(); - } finally { - --S.in_loop; - } - }; - - return as("toplevel", (function(a){ - while (!is("eof")) - a.push(statement()); - return a; - })([])); - -}; - -/* -----[ Utilities ]----- */ - -function curry(f) { - var args = slice(arguments, 1); - return function() { return f.apply(this, args.concat(slice(arguments))); }; -}; - -function prog1(ret) { - if (ret instanceof Function) - ret = ret(); - for (var i = 1, n = arguments.length; --n > 0; ++i) - arguments[i](); - return ret; -}; - -function array_to_hash(a) { - var ret = {}; - for (var i = 0; i < a.length; ++i) - ret[a[i]] = true; - return ret; -}; - -function slice(a, start) { - return Array.prototype.slice.call(a, start == null ? 0 : start); -}; - -function characters(str) { - return str.split(""); -}; - -function member(name, array) { - for (var i = array.length; --i >= 0;) - if (array[i] === name) - return true; - return false; -}; - -function HOP(obj, prop) { - return Object.prototype.hasOwnProperty.call(obj, prop); -}; - -var warn = function() {}; - -/* -----[ Exports ]----- */ - -var init = function (root) { - if (root.modules["parser"]) { - return; - } - - root.parse = parse; - - root.modules["parser"] = true; -} - -var isCommonJS = (typeof require !== "undefined" && typeof module !== "undefined" && module.exports); -var isAmd = (typeof define !== "undefined" && define.amd); - -if (isCommonJS) { - module.exports.init = init; -} else if (isAmd) { - define("jscex-parser", function () { - return { init: init }; - }); -} else { - if (typeof Jscex === "undefined") { - throw new Error('Missing root object, please load "jscex" module first.'); - } - - init(Jscex); -} - -/* -scope.tokenizer = tokenizer; -scope.parse = parse; -scope.slice = slice; -scope.curry = curry; -scope.member = member; -scope.array_to_hash = array_to_hash; -scope.PRECEDENCE = PRECEDENCE; -scope.KEYWORDS_ATOM = KEYWORDS_ATOM; -scope.RESERVED_WORDS = RESERVED_WORDS; -scope.KEYWORDS = KEYWORDS; -scope.ATOMIC_START_TOKEN = ATOMIC_START_TOKEN; -scope.OPERATORS = OPERATORS; -scope.is_alphanumeric_char = is_alphanumeric_char; -scope.set_logger = function (logger) { - warn = logger; -}; -*/ - -})(); \ No newline at end of file diff --git a/Love_files/jscex.min.js b/Love_files/jscex.min.js deleted file mode 100644 index af36d1e..0000000 --- a/Love_files/jscex.min.js +++ /dev/null @@ -1,2 +0,0 @@ -(function(){var b={DEBUG:1,INFO:2,WARN:3,ERROR:4},d=function(){this.level=b.WARN};d.prototype={log:function(a){try{console.log(a)}catch(b){}},debug:function(a){this.level<=b.DEBUG&&this.log(a)},info:function(a){this.level<=b.INFO&&this.log(a)},warn:function(a){this.level<=b.WARN&&this.log(a)},error:function(a){this.level<=b.ERROR&&this.log(a)}};var e=function(a){var b=[],c;for(c in a)b.push(c);return b},c=function(a){a._forInKeys=e;a.Logging={Logger:d,Level:b};a.logger=new d;a.modules={};a.binders= -{};a.builders={}},f=typeof define==="function"&&!define.amd,g=typeof require==="function"&&typeof define==="function"&&define.amd;typeof require==="function"&&typeof module!=="undefined"&&module.exports?c(module.exports):f?define("jscex",function(a,b,d){c(d.exports)}):g?define("jscex",function(){var a={};c(a);return a}):(typeof Jscex=="undefined"&&(Jscex={}),c(Jscex))})(); diff --git a/Love_files/love.js b/Love_files/love.js deleted file mode 100644 index fce31fb..0000000 --- a/Love_files/love.js +++ /dev/null @@ -1,533 +0,0 @@ -(function(window){ - - function random(min, max) { - return min + Math.floor(Math.random() * (max - min + 1)); - } - - function bezier(cp, t) { - var p1 = cp[0].mul((1 - t) * (1 - t)); - var p2 = cp[1].mul(2 * t * (1 - t)); - var p3 = cp[2].mul(t * t); - return p1.add(p2).add(p3); - } - - function inheart(x, y, r) { - // x^2+(y-(x^2)^(1/3))^2 = 1 - // http://www.wolframalpha.com/input/?i=x%5E2%2B%28y-%28x%5E2%29%5E%281%2F3%29%29%5E2+%3D+1 - var z = ((x / r) * (x / r) + (y / r) * (y / r) - 1) * ((x / r) * (x / r) + (y / r) * (y / r) - 1) * ((x / r) * (x / r) + (y / r) * (y / r) - 1) - (x / r) * (x / r) * (y / r) * (y / r) * (y / r); - return z < 0; - } - - Point = function(x, y) { - this.x = x || 0; - this.y = y || 0; - } - Point.prototype = { - clone: function() { - return new Point(this.x, this.y); - }, - add: function(o) { - p = this.clone(); - p.x += o.x; - p.y += o.y; - return p; - }, - sub: function(o) { - p = this.clone(); - p.x -= o.x; - p.y -= o.y; - return p; - }, - div: function(n) { - p = this.clone(); - p.x /= n; - p.y /= n; - return p; - }, - mul: function(n) { - p = this.clone(); - p.x *= n; - p.y *= n; - return p; - } - } - - Heart = function() { - // x = 16 sin^3 t - // y = 13 cos t - 5 cos 2t - 2 cos 3t - cos 4t - // http://www.wolframalpha.com/input/?i=x+%3D+16+sin%5E3+t%2C+y+%3D+(13+cos+t+-+5+cos+2t+-+2+cos+3t+-+cos+4t) - var points = [], x, y, t; - for (var i = 10; i < 30; i += 0.2) { - t = i / Math.PI; - x = 16 * Math.pow(Math.sin(t), 3); - y = 13 * Math.cos(t) - 5 * Math.cos(2 * t) - 2 * Math.cos(3 * t) - Math.cos(4 * t); - points.push(new Point(x, y)); - } - this.points = points; - this.length = points.length; - } - Heart.prototype = { - get: function(i, scale) { - return this.points[i].mul(scale || 1); - } - } - - Seed = function(tree, point, scale, color) { - this.tree = tree; - - var scale = scale || 1 - var color = color || '#FF0000'; - - this.heart = { - point : point, - scale : scale, - color : color, - figure : new Heart(), - } - - this.cirle = { - point : point, - scale : scale, - color : color, - radius : 5, - } - } - Seed.prototype = { - draw: function() { - this.drawHeart(); - this.drawText(); - }, - addPosition: function(x, y) { - this.cirle.point = this.cirle.point.add(new Point(x, y)); - }, - canMove: function() { - return this.cirle.point.y < (this.tree.height + 20); - }, - move: function(x, y) { - this.clear(); - this.drawCirle(); - this.addPosition(x, y); - }, - canScale: function() { - return this.heart.scale > 0.2; - }, - setHeartScale: function(scale) { - this.heart.scale *= scale; - }, - scale: function(scale) { - this.clear(); - this.drawCirle(); - this.drawHeart(); - this.setHeartScale(scale); - }, - drawHeart: function() { - var ctx = this.tree.ctx, heart = this.heart; - var point = heart.point, color = heart.color, - scale = heart.scale; - ctx.save(); - ctx.fillStyle = color; - ctx.translate(point.x, point.y); - ctx.beginPath(); - ctx.moveTo(0, 0); - for (var i = 0; i < heart.figure.length; i++) { - var p = heart.figure.get(i, scale); - ctx.lineTo(p.x, -p.y); - } - ctx.closePath(); - ctx.fill(); - ctx.restore(); - }, - drawCirle: function() { - var ctx = this.tree.ctx, cirle = this.cirle; - var point = cirle.point, color = cirle.color, - scale = cirle.scale, radius = cirle.radius; - ctx.save(); - ctx.fillStyle = color; - ctx.translate(point.x, point.y); - ctx.scale(scale, scale); - ctx.beginPath(); - ctx.moveTo(0, 0); - ctx.arc(0, 0, radius, 0, 2 * Math.PI); - ctx.closePath(); - ctx.fill(); - ctx.restore(); - }, - drawText: function() { - var ctx = this.tree.ctx, heart = this.heart; - var point = heart.point, color = heart.color, - scale = heart.scale; - ctx.save(); - ctx.strokeStyle = color; - ctx.fillStyle = color; - ctx.translate(point.x, point.y); - ctx.scale(scale, scale); - ctx.moveTo(0, 0); - ctx.lineTo(15, 15); - ctx.lineTo(60, 15); - ctx.stroke(); - - ctx.moveTo(0, 0); - ctx.scale(0.75, 0.75); - ctx.font = "12px 微软雅黑,Verdana"; // 字号肿么没有用? (ˉ(∞)ˉ) - ctx.fillText("click here", 23, 16); - ctx.restore(); - }, - clear: function() { - var ctx = this.tree.ctx, cirle = this.cirle; - var point = cirle.point, scale = cirle.scale, radius = 26; - var w = h = (radius * scale); - ctx.clearRect(point.x - w, point.y - h, 4 * w, 4 * h); - }, - hover: function(x, y) { - var ctx = this.tree.ctx; - var pixel = ctx.getImageData(x, y, 1, 1); - return pixel.data[3] == 255 - } - } - - Footer = function(tree, width, height, speed) { - this.tree = tree; - this.point = new Point(tree.seed.heart.point.x, tree.height - height / 2); - this.width = width; - this.height = height; - this.speed = speed || 2; - this.length = 0; - } - Footer.prototype = { - draw: function() { - var ctx = this.tree.ctx, point = this.point; - var len = this.length / 2; - - ctx.save(); - ctx.strokeStyle = 'rgb(35, 31, 32)'; - ctx.lineWidth = this.height; - ctx.lineCap = 'round'; - ctx.lineJoin = 'round'; - ctx.translate(point.x, point.y); - ctx.beginPath(); - ctx.moveTo(0, 0); - ctx.lineTo(len, 0); - ctx.lineTo(-len, 0); - ctx.stroke(); - ctx.restore(); - - if (this.length < this.width) { - this.length += this.speed; - } - } - } - - Tree = function(canvas, width, height, opt) { - this.canvas = canvas; - this.ctx = canvas.getContext('2d'); - this.width = width; - this.height = height; - this.opt = opt || {}; - - this.record = {}; - - this.initSeed(); - this.initFooter(); - this.initBranch(); - this.initBloom(); - } - Tree.prototype = { - initSeed: function() { - var seed = this.opt.seed || {}; - var x = seed.x || this.width / 2; - var y = seed.y || this.height / 2; - var point = new Point(x, y); - var color = seed.color || '#FF0000'; - var scale = seed.scale || 1; - - this.seed = new Seed(this, point, scale, color); - }, - - initFooter: function() { - var footer = this.opt.footer || {}; - var width = footer.width || this.width; - var height = footer.height || 5; - var speed = footer.speed || 2; - this.footer = new Footer(this, width, height, speed); - }, - - initBranch: function() { - var branchs = this.opt.branch || [] - this.branchs = []; - this.addBranchs(branchs); - }, - - initBloom: function() { - var bloom = this.opt.bloom || {}; - var cache = [], - num = bloom.num || 500, - width = bloom.width || this.width, - height = bloom.height || this.height, - figure = this.seed.heart.figure; - var r = 240, x, y; - for (var i = 0; i < num; i++) { - cache.push(this.createBloom(width, height, r, figure)); - } - this.blooms = []; - this.bloomsCache = cache; - }, - - toDataURL: function(type) { - return this.canvas.toDataURL(type); - }, - - draw: function(k) { - var s = this, ctx = s.ctx; - var rec = s.record[k]; - if (!rec) { - return ; - } - var point = rec.point, - image = rec.image; - - ctx.save(); - ctx.putImageData(image, point.x, point.y); - ctx.restore(); - }, - - addBranch: function(branch) { - this.branchs.push(branch); - }, - - addBranchs: function(branchs){ - var s = this, b, p1, p2, p3, r, l, c; - for (var i = 0; i < branchs.length; i++) { - b = branchs[i]; - p1 = new Point(b[0], b[1]); - p2 = new Point(b[2], b[3]); - p3 = new Point(b[4], b[5]); - r = b[6]; - l = b[7]; - c = b[8] - s.addBranch(new Branch(s, p1, p2, p3, r, l, c)); - } - }, - - removeBranch: function(branch) { - var branchs = this.branchs; - for (var i = 0; i < branchs.length; i++) { - if (branchs[i] === branch) { - branchs.splice(i, 1); - } - } - }, - - canGrow: function() { - return !!this.branchs.length; - }, - grow: function() { - var branchs = this.branchs; - for (var i = 0; i < branchs.length; i++) { - var branch = branchs[i]; - if (branch) { - branch.grow(); - } - } - }, - - addBloom: function (bloom) { - this.blooms.push(bloom); - }, - - removeBloom: function (bloom) { - var blooms = this.blooms; - for (var i = 0; i < blooms.length; i++) { - if (blooms[i] === bloom) { - blooms.splice(i, 1); - } - } - }, - - createBloom: function(width, height, radius, figure, color, alpha, angle, scale, place, speed) { - var x, y; - while (true) { - x = random(20, width - 20); - y = random(20, height - 20); - if (inheart(x - width / 2, height - (height - 40) / 2 - y, radius)) { - return new Bloom(this, new Point(x, y), figure, color, alpha, angle, scale, place, speed); - } - } - }, - - canFlower: function() { - return !!this.blooms.length; - }, - flower: function(num) { - var s = this, blooms = s.bloomsCache.splice(0, num); - for (var i = 0; i < blooms.length; i++) { - s.addBloom(blooms[i]); - } - blooms = s.blooms; - for (var j = 0; j < blooms.length; j++) { - blooms[j].flower(); - } - }, - - snapshot: function(k, x, y, width, height) { - var ctx = this.ctx; - var image = ctx.getImageData(x, y, width, height); - this.record[k] = { - image: image, - point: new Point(x, y), - width: width, - height: height - } - }, - setSpeed: function(k, speed) { - this.record[k || "move"].speed = speed; - }, - move: function(k, x, y) { - var s = this, ctx = s.ctx; - var rec = s.record[k || "move"]; - var point = rec.point, - image = rec.image, - speed = rec.speed || 10, - width = rec.width, - height = rec.height; - - i = point.x + speed < x ? point.x + speed : x; - j = point.y + speed < y ? point.y + speed : y; - - ctx.save(); - ctx.clearRect(point.x, point.y, width, height); - ctx.putImageData(image, i, j); - ctx.restore(); - - rec.point = new Point(i, j); - rec.speed = speed * 0.95; - - if (rec.speed < 2) { - rec.speed = 2; - } - return i < x || j < y; - }, - - jump: function() { - var s = this, blooms = s.blooms; - if (blooms.length) { - for (var i = 0; i < blooms.length; i++) { - blooms[i].jump(); - } - } - if ((blooms.length && blooms.length < 3) || !blooms.length) { - var bloom = this.opt.bloom || {}, - width = bloom.width || this.width, - height = bloom.height || this.height, - figure = this.seed.heart.figure; - var r = 240, x, y; - for (var i = 0; i < random(1,2); i++) { - blooms.push(this.createBloom(width / 2 + width, height, r, figure, null, 1, null, 1, new Point(random(-100,600), 720), random(200,300))); - } - } - } - } - - Branch = function(tree, point1, point2, point3, radius, length, branchs) { - this.tree = tree; - this.point1 = point1; - this.point2 = point2; - this.point3 = point3; - this.radius = radius; - this.length = length || 100; - this.len = 0; - this.t = 1 / (this.length - 1); - this.branchs = branchs || []; - } - - Branch.prototype = { - grow: function() { - var s = this, p; - if (s.len <= s.length) { - p = bezier([s.point1, s.point2, s.point3], s.len * s.t); - s.draw(p); - s.len += 1; - s.radius *= 0.97; - } else { - s.tree.removeBranch(s); - s.tree.addBranchs(s.branchs); - } - }, - draw: function(p) { - var s = this; - var ctx = s.tree.ctx; - ctx.save(); - ctx.beginPath(); - ctx.fillStyle = 'rgb(35, 31, 32)'; - ctx.shadowColor = 'rgb(35, 31, 32)'; - ctx.shadowBlur = 2; - ctx.moveTo(p.x, p.y); - ctx.arc(p.x, p.y, s.radius, 0, 2 * Math.PI); - ctx.closePath(); - ctx.fill(); - ctx.restore(); - } - } - - Bloom = function(tree, point, figure, color, alpha, angle, scale, place, speed) { - this.tree = tree; - this.point = point; - this.color = color || 'rgb(255,' + random(0, 255) + ',' + random(0, 255) + ')'; - this.alpha = alpha || random(0.3, 1); - this.angle = angle || random(0, 360); - this.scale = scale || 0.1; - this.place = place; - this.speed = speed; - - this.figure = figure; - } - Bloom.prototype = { - setFigure: function(figure) { - this.figure = figure; - }, - flower: function() { - var s = this; - s.draw(); - s.scale += 0.1; - if (s.scale > 1) { - s.tree.removeBloom(s); - } - }, - draw: function() { - var s = this, ctx = s.tree.ctx, figure = s.figure; - - ctx.save(); - ctx.fillStyle = s.color; - ctx.globalAlpha = s.alpha; - ctx.translate(s.point.x, s.point.y); - ctx.scale(s.scale, s.scale); - ctx.rotate(s.angle); - ctx.beginPath(); - ctx.moveTo(0, 0); - for (var i = 0; i < figure.length; i++) { - var p = figure.get(i); - ctx.lineTo(p.x, -p.y); - } - ctx.closePath(); - ctx.fill(); - ctx.restore(); - }, - jump: function() { - var s = this, height = s.tree.height; - - if (s.point.x < -20 || s.point.y > height + 20) { - s.tree.removeBloom(s); - } else { - s.draw(); - s.point = s.place.sub(s.point).div(s.speed).add(s.point); - s.angle += 0.05; - s.speed -= 1; - } - } - } - - window.random = random; - window.bezier = bezier; - window.Point = Point; - window.Tree = Tree; - -})(window); diff --git a/SiteTimeline/css/history.css b/SiteTimeline/css/history.css deleted file mode 100644 index d09f42a..0000000 --- a/SiteTimeline/css/history.css +++ /dev/null @@ -1,51 +0,0 @@ -body, p, form, input, textarea, ul, li, h1, h2, h3, h4, dl, dt, dd, table, td, th { margin:0; padding:0; } -table, td, th { border-collapse:collapse; } -ul, li { list-style:none; } -h1, h2, h3, h4 { font-size:100%; } -img, input, textarea { vertical-align: middle; border:0; } -a { text-decoration:none; color:#FF69B4; outline:none; } -a:hover { text-decoration:underline; } -body { font:17px/1.5 "΢���ź�","tahoma", Verdana, Geneva, sans-serif; color:#666; position:relative;} -.clearfix:after{content:" "; display:block; height:0; clear:both; visibility:hidden;} -.clearfix{zoom:1;} -.fl { float:left;} -.fr { float:right;} -/*.public*/ -.main {margin:0 auto; width:980px;} -a { blr:expression(this.onFocus=this.blur()) } /*��� IE*/ -a { outline:none; } /*���firefox��*/ - -.main { padding:45px 0; min-height:720px; } -/*history*/ -.history { background:url(../images/line04.gif) repeat-y 187px 0; overflow:hidden; position:relative;} -.history-date { overflow:hidden;} -.history-date h2 { background:url(../images/icon06.gif) #fff no-repeat 158px 0; height:59px; font-size:25px; font-family:΢���ź�; font-weight:normal; padding-left:45px; margin-bottom:74px; } -.history-date h2.first { position:absolute; left:0; top:0; width:935px; z-index:99;} -.history-date h2 a { color:#00bbff; display:inline-block; *display:inline; zoom:1; background:url(../images/icon08.gif) no-repeat right 50%; padding-right:17px; margin:21px 97px 0 0;} -.history-date h2 a:hover { text-decoration:none;} -.history-date h2 img { vertical-align:-5px;} -.history-date h2.date02 { background:none;} -.history-date ul {} -.history-date ul li { background:url(../images/icon07.gif) no-repeat 180px 0; padding-bottom:50px; zoom:1; } -.history-date ul li.last { padding-bottom:0;} -.history-date ul li:after{content:" "; display:block; height:0; clear:both; visibility:hidden;} -.history-date ul li h3 { float:left; width:168px; text-align:right; padding-right:19px;color:#c3c3c3; font:normal 18px/16px Arial;} -.history-date ul li h3 span { display:block; color:#d0d0d0; font-size:12px;} -.history-date ul li dl { float:left; padding-left:41px; margin-top:-5px; font-family:΢���ź�;} -.history-date ul li dl dt { font:20px/22px ΢���ź�; color:#737373; } -.history-date ul li dl dt span { display:block; color:#787878; font-size:12px;} -.history-date ul li.pink h3 { color:#FF69B4;} -.history-date ul li.pink h3 span { color:#FF69B4; } -.history-date ul li.pink dl { margin-top:-8px;} -.history-date ul li.pink dl dt { font-size:30px; line-height:28px;} -.history-date ul li.pink dl dt a { /*background:url(../images/icon09.gif) no-repeat 0 0; width:19px; height:16px;*/ display:inline-block; *display:inline; zoom:1; overflow:hidden; vertical-align: middle; margin-left:12px;} -.history-date ul li.pink dl dd { padding-top:20px; display:none;} -.history-date ul li.pink dl dd img { float:left;} -.history-date ul li.pink dl dd p { overflow:hidden; zoom:1; line-height:21px; color:#787878;} - -.history-date h2.first .more-history {font-size: 16px; background: transparent; margin-left: 30px;} -.history-date h2.first .more-history:hover {text-decoration: underline;} - -*body .history-date ul li dl dt {_font-size:12px !important; _font-weight:bold;} -*body .history-date ul li dl dt span {_font-weight:normal !important;} -*body .history-date ul li.pink dl dt a {_background:transparent !important; *background:transparent !important;*font-size:12px !important; _font-weight:normal !important;} \ No newline at end of file diff --git a/SiteTimeline/images/arrow.png b/SiteTimeline/images/arrow.png deleted file mode 100644 index 590c4910f7fd0c42dadf5cff7251fa0e1c56ee09..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 780 zcmV+n1M~ceP)hAw$bc zxCuqlrHi0|7V;82OI{*KY3TS+1WE@5Y5WQ)s0rdL%`unENtfe%-r1SkU6L8;FAL<| z+n-M|>-8`wio!K(?X%<77;}&LRsL}C(Qi=gIz!A7<|pT(ZPx)OuVu_J<_j&1TSFRq zOmm3}6fj4ax0tN}RE621IgX?#P{LI88neilW0A&GB}RcF<^;2exn<0AOJh#7P>>MQ z3knir)KQQDMim8_VAN2M5k>_CnPJ2z$Pgn!0RwXy5z|DS`l7n-P|>mh9lH26q-%Gr zZ7%2vvyM5dZ;mlvF)I-$Up`%kbw+jAOk&9&~!Q-V@87UqjHWcK)8^qNn<|*MPv5MIcTnQAX-5A z&BHtQ=bHl-s)kvoIS!>LP{LGIc6}@`rde=*cc+L^posb1*fg0;ynBJ@xy=S85eiaa z`a(fUOdlvnjnPIy4j4@o4pvzG^7nP@$ybgkB2AX=mU9ZHP~!OVS^ON9!>c>NuUjgnxzcM7pkQVeS^*EdQ7 z!`^N8h0?+VeIC+AX=2I>?w6af&%409$A#Q@&hZK#zG-1ZX9_d!)VbsT+vm9!Ms$Z7 zcj^H19kYvzDVXC2`0xqy2D2f-sDNluFY)1yi)o-?ODy zh}nDd`|>KfAh+nRNyI^C&R6;U`R@Ad#_YrG`RnNT=GybtZ_!{QxEcHY`oHS9;`ZUA z;hCY~myOzh=lA7~+k(33vSrO)ZO~>>$4P+Ja`5`^==kT`^V)>hf0y2jJ-{^g{Pug) zbtkzU>G!z z-i&L|Tj2HFliY}H&|Y-XWy$WtZqR4S?!>9%rIy`_-}T+}`}1JSS)JdQjoX2f+=pV# zQpN4RPsTuw+KH~^s@(M3qvDyE-i?0NaJJ~KR`}B2C6Wz3R67{`C+ zLc%)O^3>4q%gyh|LBccI^Vpc)l&RyNq~V{Y%Bk0Hiy}IHN7mP;+wPQtJm_I1Y4o&*_cqR>^TcVr6&iQObH$dBU6dKb|O@o_%J~x3U^@z zMuQjA+nyd_PsE7XKwH=)3}8xFBqi>^6KzR4_#m`H;*rKo7%m9rTnLylZi+AllM9&1 z2i2KToMxp9#acjXED?C57#JMSDBh-eqhpdb(q>E-fF$GE8<%t)X+`4>lCy5Maq*5^ zo3MN=jFd3t;31NF3a=z1l1$tuBx4-^oHo)yBAgOLb}|e{q#RyC3MwMmLMTbYmo5`> z)NfzGEF)PE6i)XUhKD)*BnSZu16?7VNX;-+U|bn&kYIxR3{+2fMo2gkXf#~d&kzG0 zCsGn&O&AveBKC8~KM$ZV(l9B0IGGAWh{(i0FpvbBha#yakBFH3lg3CW#HC_ff`|yh zKTwQ>VvRw9mW+rVT#(I3E+}c^WGu9Z!x|$&;boPRVbEd(dx?}8l@QhTgNOofFwzQV z#zY4N32re!1}f!vAqjShlp35P6%bB~{Y0S>pBD;%&PbEQl^#it%*p5$9I3EoAS2Zm z)(eR;!svyLZq!7Jq`Wdx0&$i9@PZQ(Jc7-s{cJEm6C6n*A_W)7CK4jRfd+_^|4c#B zJjEIo;)Q6y_|2Woh6T$4B3>iVCnLR3EmI`4D2qUIlvl#HIOQXvG6VJC#7N?xyAlwP zCRhhS0E(nU2l8^HgNP8YLeL2$RnxCV8F(P#Dh4exQUk&qe9$c|eqm59Bq>mi#01&W zA~YH0K@t}n3&e(?2?7v7Mk9z(ULPE5fIy2nZ1jgnr<4M~JqLSHLyHK+!_hka7y?0p z8`vSQ1_!k0K`$yDF-nUNG_q8)IY>kGAUA0+1fy=?0NexYRKRE|LeawmqmH~031|^? zaVjTa0Rh6Pn-qgVSP`IkkpiPB>=>6QGvI0p7D8aekp^m1ax|lUPy^ZnZ&-+HAv4s1 z%ona8kwXy#0OLayf8%-pgSEwt>*}m0Sb;Bl7yEz#s~oE(U5;aXYRR_<%&o mMPRY^?-aN}ix(vq#D)QxfP;%40JzRf4c%x$!WEze1OPi3E_?L= diff --git a/SiteTimeline/images/icon07.gif b/SiteTimeline/images/icon07.gif deleted file mode 100644 index 32441f9dbf80046f02a731cded44dd150643b380..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 366 zcmZ?wbhEHb9)rE&?Kdk8_Da|v(!Brmw&D(U#T{&yKAy2UpzL$Z-12~u?jDiyD`~HP zzEIu8t+iXw`LOQlCkrdDW))pZbULiF_tn-1U++|2$t=5^dgJqD+3igK|Nm#e0E$0Z zz+yTe667Zaw(bLS44xk-h*IxKJ|Xj9UcjA(nZXZD1Ux;NE? zpp`8~aryy6C8q<ET_&J<83@vztof&1@#pK19EOZz{OvD2%#Fg@$xb+ncxI-KntN}=? Bl=1)o diff --git a/SiteTimeline/images/icon08.gif b/SiteTimeline/images/icon08.gif deleted file mode 100644 index b732b6a9a51f3c04b2d2ac59a7429534f206019a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 49 xcmZ?wbhEHbWM^PuXkcLY|NlS3?*EEESr|Y-2Sk8m7??PE1{8m?fSEcV5@ZGgOZJ4N#{Ek*ro_`-S k`^&o1>zD3{v-$Pow^F!rl~R3EeMhH@WKVCOtRRCm0A)s3PXGV_ diff --git a/SiteTimeline/images/line04.gif b/SiteTimeline/images/line04.gif deleted file mode 100644 index 7e6c0559609cf76d9e15ccda321536c26abe2f8f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 43 rcmZ?wbhEHbWMW`qXkcL2@O(wwX&=R(EDRu^10p~&3`|TsF$~rK*_a2` diff --git a/SiteTimeline/index.html b/SiteTimeline/index.html index e7de9e7..e69de29 100644 --- a/SiteTimeline/index.html +++ b/SiteTimeline/index.html @@ -1,718 +0,0 @@ - - - - - - - SiteTimeline | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    - -
    - -
    -
    - -
    -
    -

    - 小屋大事记

    -
    -
    - -
    -
    - - -
    -
    -
    -
      -

      2019年

      -
    • -

      01.24 - 15:372019

      -
      ICP备案审核通过备案/许可证编号为:鄂ICP备19003281号
      -
    • -
    • -

      01.23 - 23:332019

      -
      网站初定型,相关优化完毕确定小屋名称;选定站点头像、图标;修改主题源代码;魔改主题
      -
    • -
    • -

      01.19 - 14:212019

      -
      网站申请ICP备案01.19备案初审通过;01.22收到幕布拍照并上传资料;01.23提交管局;01.24备案通过,速度超乎我想象
      -
    • -
    • -

      01.18 - 01:162019

      -
      选定Sakura主题原作者:Mashiro,由hojun大佬将主题从WordPress迁移到HEXO并再次开发
      -
    • -
    • -

      01.17 - 20:352019

      -
      使用Github Pages和Hexo开始搭建小屋
      -
    • -
    • -

      01.17 - 17:242019

      -
      确定并在阿里云注册域名为love109.cn先后考虑过tp1314\tanpu520\love0927\love874755等域名
      -
    • -
    • -

      01.16 - 23:382019

      -
      萌发建立小屋的念头当即与对象商量,正式确定建立小屋
      -
    • -
    -
    -
    -
    - - - -

    原主题 Akina Fuzzz 开发, Louie 二次修改为 Siren Mashiro 三次修改为 Sakura

    -

    hojun 将主题从WordPress迁移到Hexo并再次开发, LOVE109❤️纪实小屋 使用时有所改动

    -

    感谢开发者们的辛苦付出

    - - - - - -
    - -
    -
    -
    -
    - - -
    -
    - -
    -

    记录爱情 记录生活

    -
    - -
    - - - - - - - - -
    -
    -
    - -
    - - - © 2019 LOVE109纪实小屋
    - 鄂ICP备19003281号
    - - 正在载入... - - -
    - - - - - - - - - -
    -
    -
    - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git a/SiteTimeline/js/jquery.js b/SiteTimeline/js/jquery.js deleted file mode 100644 index 7c24308..0000000 --- a/SiteTimeline/js/jquery.js +++ /dev/null @@ -1,154 +0,0 @@ -/*! - * jQuery JavaScript Library v1.4.2 - * http://jquery.com/ - * - * Copyright 2010, John Resig - * Dual licensed under the MIT or GPL Version 2 licenses. - * http://jquery.org/license - * - * Includes Sizzle.js - * http://sizzlejs.com/ - * Copyright 2010, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * - * Date: Sat Feb 13 22:33:48 2010 -0500 - */ -(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){var i=a.length;if(typeof b==="object"){for(var o in b)X(a,o,b[o],f,e,d);return a}if(d!==w){f=!j&&f&&c.isFunction(d);for(o=0;o)[^>]*$|^#([\w-]+)$/,Ua=/^.[^:#\[\.,]*$/,Va=/\S/, -Wa=/^(\s|\u00A0)+|(\s|\u00A0)+$/g,Xa=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=navigator.userAgent,xa=false,Q=[],L,$=Object.prototype.toString,aa=Object.prototype.hasOwnProperty,ba=Array.prototype.push,R=Array.prototype.slice,ya=Array.prototype.indexOf;c.fn=c.prototype={init:function(a,b){var d,f;if(!a)return this;if(a.nodeType){this.context=this[0]=a;this.length=1;return this}if(a==="body"&&!b){this.context=s;this[0]=s.body;this.selector="body";this.length=1;return this}if(typeof a==="string")if((d=Ta.exec(a))&& -(d[1]||!b))if(d[1]){f=b?b.ownerDocument||b:s;if(a=Xa.exec(a))if(c.isPlainObject(b)){a=[s.createElement(a[1])];c.fn.attr.call(a,b,true)}else a=[f.createElement(a[1])];else{a=sa([d[1]],[f]);a=(a.cacheable?a.fragment.cloneNode(true):a.fragment).childNodes}return c.merge(this,a)}else{if(b=s.getElementById(d[2])){if(b.id!==d[2])return T.find(a);this.length=1;this[0]=b}this.context=s;this.selector=a;return this}else if(!b&&/^\w+$/.test(a)){this.selector=a;this.context=s;a=s.getElementsByTagName(a);return c.merge(this, -a)}else return!b||b.jquery?(b||T).find(a):c(b).find(a);else if(c.isFunction(a))return T.ready(a);if(a.selector!==w){this.selector=a.selector;this.context=a.context}return c.makeArray(a,this)},selector:"",jquery:"1.4.2",length:0,size:function(){return this.length},toArray:function(){return R.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this.slice(a)[0]:this[a]},pushStack:function(a,b,d){var f=c();c.isArray(a)?ba.apply(f,a):c.merge(f,a);f.prevObject=this;f.context=this.context;if(b=== -"find")f.selector=this.selector+(this.selector?" ":"")+d;else if(b)f.selector=this.selector+"."+b+"("+d+")";return f},each:function(a,b){return c.each(this,a,b)},ready:function(a){c.bindReady();if(c.isReady)a.call(s,c);else Q&&Q.push(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(R.apply(this,arguments),"slice",R.call(arguments).join(","))},map:function(a){return this.pushStack(c.map(this, -function(b,d){return a.call(b,d,b)}))},end:function(){return this.prevObject||c(null)},push:ba,sort:[].sort,splice:[].splice};c.fn.init.prototype=c.fn;c.extend=c.fn.extend=function(){var a=arguments[0]||{},b=1,d=arguments.length,f=false,e,j,i,o;if(typeof a==="boolean"){f=a;a=arguments[1]||{};b=2}if(typeof a!=="object"&&!c.isFunction(a))a={};if(d===b){a=this;--b}for(;b
    a"; -var e=d.getElementsByTagName("*"),j=d.getElementsByTagName("a")[0];if(!(!e||!e.length||!j)){c.support={leadingWhitespace:d.firstChild.nodeType===3,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/red/.test(j.getAttribute("style")),hrefNormalized:j.getAttribute("href")==="/a",opacity:/^0.55$/.test(j.style.opacity),cssFloat:!!j.style.cssFloat,checkOn:d.getElementsByTagName("input")[0].value==="on",optSelected:s.createElement("select").appendChild(s.createElement("option")).selected, -parentNode:d.removeChild(d.appendChild(s.createElement("div"))).parentNode===null,deleteExpando:true,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null};b.type="text/javascript";try{b.appendChild(s.createTextNode("window."+f+"=1;"))}catch(i){}a.insertBefore(b,a.firstChild);if(A[f]){c.support.scriptEval=true;delete A[f]}try{delete b.test}catch(o){c.support.deleteExpando=false}a.removeChild(b);if(d.attachEvent&&d.fireEvent){d.attachEvent("onclick",function k(){c.support.noCloneEvent= -false;d.detachEvent("onclick",k)});d.cloneNode(true).fireEvent("onclick")}d=s.createElement("div");d.innerHTML="";a=s.createDocumentFragment();a.appendChild(d.firstChild);c.support.checkClone=a.cloneNode(true).cloneNode(true).lastChild.checked;c(function(){var k=s.createElement("div");k.style.width=k.style.paddingLeft="1px";s.body.appendChild(k);c.boxModel=c.support.boxModel=k.offsetWidth===2;s.body.removeChild(k).style.display="none"});a=function(k){var n= -s.createElement("div");k="on"+k;var r=k in n;if(!r){n.setAttribute(k,"return;");r=typeof n[k]==="function"}return r};c.support.submitBubbles=a("submit");c.support.changeBubbles=a("change");a=b=d=e=j=null}})();c.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};var G="jQuery"+J(),Ya=0,za={};c.extend({cache:{},expando:G,noData:{embed:true,object:true, -applet:true},data:function(a,b,d){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var f=a[G],e=c.cache;if(!f&&typeof b==="string"&&d===w)return null;f||(f=++Ya);if(typeof b==="object"){a[G]=f;e[f]=c.extend(true,{},b)}else if(!e[f]){a[G]=f;e[f]={}}a=e[f];if(d!==w)a[b]=d;return typeof b==="string"?a[b]:a}},removeData:function(a,b){if(!(a.nodeName&&c.noData[a.nodeName.toLowerCase()])){a=a==A?za:a;var d=a[G],f=c.cache,e=f[d];if(b){if(e){delete e[b];c.isEmptyObject(e)&&c.removeData(a)}}else{if(c.support.deleteExpando)delete a[c.expando]; -else a.removeAttribute&&a.removeAttribute(c.expando);delete f[d]}}}});c.fn.extend({data:function(a,b){if(typeof a==="undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var d=a.split(".");d[1]=d[1]?"."+d[1]:"";if(b===w){var f=this.triggerHandler("getData"+d[1]+"!",[d[0]]);if(f===w&&this.length)f=c.data(this[0],a);return f===w&&d[1]?this.data(d[0]):f}else return this.trigger("setData"+d[1]+"!",[d[0],b]).each(function(){c.data(this, -a,b)})},removeData:function(a){return this.each(function(){c.removeData(this,a)})}});c.extend({queue:function(a,b,d){if(a){b=(b||"fx")+"queue";var f=c.data(a,b);if(!d)return f||[];if(!f||c.isArray(d))f=c.data(a,b,c.makeArray(d));else f.push(d);return f}},dequeue:function(a,b){b=b||"fx";var d=c.queue(a,b),f=d.shift();if(f==="inprogress")f=d.shift();if(f){b==="fx"&&d.unshift("inprogress");f.call(a,function(){c.dequeue(a,b)})}}});c.fn.extend({queue:function(a,b){if(typeof a!=="string"){b=a;a="fx"}if(b=== -w)return c.queue(this[0],a);return this.each(function(){var d=c.queue(this,a,b);a==="fx"&&d[0]!=="inprogress"&&c.dequeue(this,a)})},dequeue:function(a){return this.each(function(){c.dequeue(this,a)})},delay:function(a,b){a=c.fx?c.fx.speeds[a]||a:a;b=b||"fx";return this.queue(b,function(){var d=this;setTimeout(function(){c.dequeue(d,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])}});var Aa=/[\n\t]/g,ca=/\s+/,Za=/\r/g,$a=/href|src|style/,ab=/(button|input)/i,bb=/(button|input|object|select|textarea)/i, -cb=/^(a|area)$/i,Ba=/radio|checkbox/;c.fn.extend({attr:function(a,b){return X(this,a,b,true,c.attr)},removeAttr:function(a){return this.each(function(){c.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(c.isFunction(a))return this.each(function(n){var r=c(this);r.addClass(a.call(this,n,r.attr("class")))});if(a&&typeof a==="string")for(var b=(a||"").split(ca),d=0,f=this.length;d-1)return true;return false},val:function(a){if(a===w){var b=this[0];if(b){if(c.nodeName(b,"option"))return(b.attributes.value||{}).specified?b.value:b.text;if(c.nodeName(b,"select")){var d=b.selectedIndex,f=[],e=b.options;b=b.type==="select-one";if(d<0)return null;var j=b?d:0;for(d=b?d+1:e.length;j=0;else if(c.nodeName(this,"select")){var u=c.makeArray(r);c("option",this).each(function(){this.selected= -c.inArray(c(this).val(),u)>=0});if(!u.length)this.selectedIndex=-1}else this.value=r}})}});c.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(a,b,d,f){if(!a||a.nodeType===3||a.nodeType===8)return w;if(f&&b in c.attrFn)return c(a)[b](d);f=a.nodeType!==1||!c.isXMLDoc(a);var e=d!==w;b=f&&c.props[b]||b;if(a.nodeType===1){var j=$a.test(b);if(b in a&&f&&!j){if(e){b==="type"&&ab.test(a.nodeName)&&a.parentNode&&c.error("type property can't be changed"); -a[b]=d}if(c.nodeName(a,"form")&&a.getAttributeNode(b))return a.getAttributeNode(b).nodeValue;if(b==="tabIndex")return(b=a.getAttributeNode("tabIndex"))&&b.specified?b.value:bb.test(a.nodeName)||cb.test(a.nodeName)&&a.href?0:w;return a[b]}if(!c.support.style&&f&&b==="style"){if(e)a.style.cssText=""+d;return a.style.cssText}e&&a.setAttribute(b,""+d);a=!c.support.hrefNormalized&&f&&j?a.getAttribute(b,2):a.getAttribute(b);return a===null?w:a}return c.style(a,b,d)}});var O=/\.(.*)$/,db=function(a){return a.replace(/[^\w\s\.\|`]/g, -function(b){return"\\"+b})};c.event={add:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){if(a.setInterval&&a!==A&&!a.frameElement)a=A;var e,j;if(d.handler){e=d;d=e.handler}if(!d.guid)d.guid=c.guid++;if(j=c.data(a)){var i=j.events=j.events||{},o=j.handle;if(!o)j.handle=o=function(){return typeof c!=="undefined"&&!c.event.triggered?c.event.handle.apply(o.elem,arguments):w};o.elem=a;b=b.split(" ");for(var k,n=0,r;k=b[n++];){j=e?c.extend({},e):{handler:d,data:f};if(k.indexOf(".")>-1){r=k.split("."); -k=r.shift();j.namespace=r.slice(0).sort().join(".")}else{r=[];j.namespace=""}j.type=k;j.guid=d.guid;var u=i[k],z=c.event.special[k]||{};if(!u){u=i[k]=[];if(!z.setup||z.setup.call(a,f,r,o)===false)if(a.addEventListener)a.addEventListener(k,o,false);else a.attachEvent&&a.attachEvent("on"+k,o)}if(z.add){z.add.call(a,j);if(!j.handler.guid)j.handler.guid=d.guid}u.push(j);c.event.global[k]=true}a=null}}},global:{},remove:function(a,b,d,f){if(!(a.nodeType===3||a.nodeType===8)){var e,j=0,i,o,k,n,r,u,z=c.data(a), -C=z&&z.events;if(z&&C){if(b&&b.type){d=b.handler;b=b.type}if(!b||typeof b==="string"&&b.charAt(0)==="."){b=b||"";for(e in C)c.event.remove(a,e+b)}else{for(b=b.split(" ");e=b[j++];){n=e;i=e.indexOf(".")<0;o=[];if(!i){o=e.split(".");e=o.shift();k=new RegExp("(^|\\.)"+c.map(o.slice(0).sort(),db).join("\\.(?:.*\\.)?")+"(\\.|$)")}if(r=C[e])if(d){n=c.event.special[e]||{};for(B=f||0;B=0){a.type= -e=e.slice(0,-1);a.exclusive=true}if(!d){a.stopPropagation();c.event.global[e]&&c.each(c.cache,function(){this.events&&this.events[e]&&c.event.trigger(a,b,this.handle.elem)})}if(!d||d.nodeType===3||d.nodeType===8)return w;a.result=w;a.target=d;b=c.makeArray(b);b.unshift(a)}a.currentTarget=d;(f=c.data(d,"handle"))&&f.apply(d,b);f=d.parentNode||d.ownerDocument;try{if(!(d&&d.nodeName&&c.noData[d.nodeName.toLowerCase()]))if(d["on"+e]&&d["on"+e].apply(d,b)===false)a.result=false}catch(j){}if(!a.isPropagationStopped()&& -f)c.event.trigger(a,b,f,true);else if(!a.isDefaultPrevented()){f=a.target;var i,o=c.nodeName(f,"a")&&e==="click",k=c.event.special[e]||{};if((!k._default||k._default.call(d,a)===false)&&!o&&!(f&&f.nodeName&&c.noData[f.nodeName.toLowerCase()])){try{if(f[e]){if(i=f["on"+e])f["on"+e]=null;c.event.triggered=true;f[e]()}}catch(n){}if(i)f["on"+e]=i;c.event.triggered=false}}},handle:function(a){var b,d,f,e;a=arguments[0]=c.event.fix(a||A.event);a.currentTarget=this;b=a.type.indexOf(".")<0&&!a.exclusive; -if(!b){d=a.type.split(".");a.type=d.shift();f=new RegExp("(^|\\.)"+d.slice(0).sort().join("\\.(?:.*\\.)?")+"(\\.|$)")}e=c.data(this,"events");d=e[a.type];if(e&&d){d=d.slice(0);e=0;for(var j=d.length;e-1?c.map(a.options,function(f){return f.selected}).join("-"):"";else if(a.nodeName.toLowerCase()==="select")d=a.selectedIndex;return d},fa=function(a,b){var d=a.target,f,e;if(!(!da.test(d.nodeName)||d.readOnly)){f=c.data(d,"_change_data");e=Fa(d);if(a.type!=="focusout"||d.type!=="radio")c.data(d,"_change_data", -e);if(!(f===w||e===f))if(f!=null||e){a.type="change";return c.event.trigger(a,b,d)}}};c.event.special.change={filters:{focusout:fa,click:function(a){var b=a.target,d=b.type;if(d==="radio"||d==="checkbox"||b.nodeName.toLowerCase()==="select")return fa.call(this,a)},keydown:function(a){var b=a.target,d=b.type;if(a.keyCode===13&&b.nodeName.toLowerCase()!=="textarea"||a.keyCode===32&&(d==="checkbox"||d==="radio")||d==="select-multiple")return fa.call(this,a)},beforeactivate:function(a){a=a.target;c.data(a, -"_change_data",Fa(a))}},setup:function(){if(this.type==="file")return false;for(var a in ea)c.event.add(this,a+".specialChange",ea[a]);return da.test(this.nodeName)},teardown:function(){c.event.remove(this,".specialChange");return da.test(this.nodeName)}};ea=c.event.special.change.filters}s.addEventListener&&c.each({focus:"focusin",blur:"focusout"},function(a,b){function d(f){f=c.event.fix(f);f.type=b;return c.event.handle.call(this,f)}c.event.special[b]={setup:function(){this.addEventListener(a, -d,true)},teardown:function(){this.removeEventListener(a,d,true)}}});c.each(["bind","one"],function(a,b){c.fn[b]=function(d,f,e){if(typeof d==="object"){for(var j in d)this[b](j,f,d[j],e);return this}if(c.isFunction(f)){e=f;f=w}var i=b==="one"?c.proxy(e,function(k){c(this).unbind(k,i);return e.apply(this,arguments)}):e;if(d==="unload"&&b!=="one")this.one(d,f,e);else{j=0;for(var o=this.length;j0){y=t;break}}t=t[g]}m[q]=y}}}var f=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g, -e=0,j=Object.prototype.toString,i=false,o=true;[0,0].sort(function(){o=false;return 0});var k=function(g,h,l,m){l=l||[];var q=h=h||s;if(h.nodeType!==1&&h.nodeType!==9)return[];if(!g||typeof g!=="string")return l;for(var p=[],v,t,y,S,H=true,M=x(h),I=g;(f.exec(""),v=f.exec(I))!==null;){I=v[3];p.push(v[1]);if(v[2]){S=v[3];break}}if(p.length>1&&r.exec(g))if(p.length===2&&n.relative[p[0]])t=ga(p[0]+p[1],h);else for(t=n.relative[p[0]]?[h]:k(p.shift(),h);p.length;){g=p.shift();if(n.relative[g])g+=p.shift(); -t=ga(g,t)}else{if(!m&&p.length>1&&h.nodeType===9&&!M&&n.match.ID.test(p[0])&&!n.match.ID.test(p[p.length-1])){v=k.find(p.shift(),h,M);h=v.expr?k.filter(v.expr,v.set)[0]:v.set[0]}if(h){v=m?{expr:p.pop(),set:z(m)}:k.find(p.pop(),p.length===1&&(p[0]==="~"||p[0]==="+")&&h.parentNode?h.parentNode:h,M);t=v.expr?k.filter(v.expr,v.set):v.set;if(p.length>0)y=z(t);else H=false;for(;p.length;){var D=p.pop();v=D;if(n.relative[D])v=p.pop();else D="";if(v==null)v=h;n.relative[D](y,v,M)}}else y=[]}y||(y=t);y||k.error(D|| -g);if(j.call(y)==="[object Array]")if(H)if(h&&h.nodeType===1)for(g=0;y[g]!=null;g++){if(y[g]&&(y[g]===true||y[g].nodeType===1&&E(h,y[g])))l.push(t[g])}else for(g=0;y[g]!=null;g++)y[g]&&y[g].nodeType===1&&l.push(t[g]);else l.push.apply(l,y);else z(y,l);if(S){k(S,q,l,m);k.uniqueSort(l)}return l};k.uniqueSort=function(g){if(B){i=o;g.sort(B);if(i)for(var h=1;h":function(g,h){var l=typeof h==="string";if(l&&!/\W/.test(h)){h=h.toLowerCase();for(var m=0,q=g.length;m=0))l||m.push(v);else if(l)h[p]=false;return false},ID:function(g){return g[1].replace(/\\/g,"")},TAG:function(g){return g[1].toLowerCase()}, -CHILD:function(g){if(g[1]==="nth"){var h=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(g[2]==="even"&&"2n"||g[2]==="odd"&&"2n+1"||!/\D/.test(g[2])&&"0n+"+g[2]||g[2]);g[2]=h[1]+(h[2]||1)-0;g[3]=h[3]-0}g[0]=e++;return g},ATTR:function(g,h,l,m,q,p){h=g[1].replace(/\\/g,"");if(!p&&n.attrMap[h])g[1]=n.attrMap[h];if(g[2]==="~=")g[4]=" "+g[4]+" ";return g},PSEUDO:function(g,h,l,m,q){if(g[1]==="not")if((f.exec(g[3])||"").length>1||/^\w/.test(g[3]))g[3]=k(g[3],null,null,h);else{g=k.filter(g[3],h,l,true^q);l||m.push.apply(m, -g);return false}else if(n.match.POS.test(g[0])||n.match.CHILD.test(g[0]))return true;return g},POS:function(g){g.unshift(true);return g}},filters:{enabled:function(g){return g.disabled===false&&g.type!=="hidden"},disabled:function(g){return g.disabled===true},checked:function(g){return g.checked===true},selected:function(g){return g.selected===true},parent:function(g){return!!g.firstChild},empty:function(g){return!g.firstChild},has:function(g,h,l){return!!k(l[3],g).length},header:function(g){return/h\d/i.test(g.nodeName)}, -text:function(g){return"text"===g.type},radio:function(g){return"radio"===g.type},checkbox:function(g){return"checkbox"===g.type},file:function(g){return"file"===g.type},password:function(g){return"password"===g.type},submit:function(g){return"submit"===g.type},image:function(g){return"image"===g.type},reset:function(g){return"reset"===g.type},button:function(g){return"button"===g.type||g.nodeName.toLowerCase()==="button"},input:function(g){return/input|select|textarea|button/i.test(g.nodeName)}}, -setFilters:{first:function(g,h){return h===0},last:function(g,h,l,m){return h===m.length-1},even:function(g,h){return h%2===0},odd:function(g,h){return h%2===1},lt:function(g,h,l){return hl[3]-0},nth:function(g,h,l){return l[3]-0===h},eq:function(g,h,l){return l[3]-0===h}},filter:{PSEUDO:function(g,h,l,m){var q=h[1],p=n.filters[q];if(p)return p(g,l,h,m);else if(q==="contains")return(g.textContent||g.innerText||a([g])||"").indexOf(h[3])>=0;else if(q==="not"){h= -h[3];l=0;for(m=h.length;l=0}},ID:function(g,h){return g.nodeType===1&&g.getAttribute("id")===h},TAG:function(g,h){return h==="*"&&g.nodeType===1||g.nodeName.toLowerCase()===h},CLASS:function(g,h){return(" "+(g.className||g.getAttribute("class"))+" ").indexOf(h)>-1},ATTR:function(g,h){var l=h[1];g=n.attrHandle[l]?n.attrHandle[l](g):g[l]!=null?g[l]:g.getAttribute(l);l=g+"";var m=h[2];h=h[4];return g==null?m==="!=":m=== -"="?l===h:m==="*="?l.indexOf(h)>=0:m==="~="?(" "+l+" ").indexOf(h)>=0:!h?l&&g!==false:m==="!="?l!==h:m==="^="?l.indexOf(h)===0:m==="$="?l.substr(l.length-h.length)===h:m==="|="?l===h||l.substr(0,h.length+1)===h+"-":false},POS:function(g,h,l,m){var q=n.setFilters[h[2]];if(q)return q(g,l,h,m)}}},r=n.match.POS;for(var u in n.match){n.match[u]=new RegExp(n.match[u].source+/(?![^\[]*\])(?![^\(]*\))/.source);n.leftMatch[u]=new RegExp(/(^(?:.|\r|\n)*?)/.source+n.match[u].source.replace(/\\(\d+)/g,function(g, -h){return"\\"+(h-0+1)}))}var z=function(g,h){g=Array.prototype.slice.call(g,0);if(h){h.push.apply(h,g);return h}return g};try{Array.prototype.slice.call(s.documentElement.childNodes,0)}catch(C){z=function(g,h){h=h||[];if(j.call(g)==="[object Array]")Array.prototype.push.apply(h,g);else if(typeof g.length==="number")for(var l=0,m=g.length;l";var l=s.documentElement;l.insertBefore(g,l.firstChild);if(s.getElementById(h)){n.find.ID=function(m,q,p){if(typeof q.getElementById!=="undefined"&&!p)return(q=q.getElementById(m[1]))?q.id===m[1]||typeof q.getAttributeNode!=="undefined"&& -q.getAttributeNode("id").nodeValue===m[1]?[q]:w:[]};n.filter.ID=function(m,q){var p=typeof m.getAttributeNode!=="undefined"&&m.getAttributeNode("id");return m.nodeType===1&&p&&p.nodeValue===q}}l.removeChild(g);l=g=null})();(function(){var g=s.createElement("div");g.appendChild(s.createComment(""));if(g.getElementsByTagName("*").length>0)n.find.TAG=function(h,l){l=l.getElementsByTagName(h[1]);if(h[1]==="*"){h=[];for(var m=0;l[m];m++)l[m].nodeType===1&&h.push(l[m]);l=h}return l};g.innerHTML=""; -if(g.firstChild&&typeof g.firstChild.getAttribute!=="undefined"&&g.firstChild.getAttribute("href")!=="#")n.attrHandle.href=function(h){return h.getAttribute("href",2)};g=null})();s.querySelectorAll&&function(){var g=k,h=s.createElement("div");h.innerHTML="

    ";if(!(h.querySelectorAll&&h.querySelectorAll(".TEST").length===0)){k=function(m,q,p,v){q=q||s;if(!v&&q.nodeType===9&&!x(q))try{return z(q.querySelectorAll(m),p)}catch(t){}return g(m,q,p,v)};for(var l in g)k[l]=g[l];h=null}}(); -(function(){var g=s.createElement("div");g.innerHTML="
    ";if(!(!g.getElementsByClassName||g.getElementsByClassName("e").length===0)){g.lastChild.className="e";if(g.getElementsByClassName("e").length!==1){n.order.splice(1,0,"CLASS");n.find.CLASS=function(h,l,m){if(typeof l.getElementsByClassName!=="undefined"&&!m)return l.getElementsByClassName(h[1])};g=null}}})();var E=s.compareDocumentPosition?function(g,h){return!!(g.compareDocumentPosition(h)&16)}: -function(g,h){return g!==h&&(g.contains?g.contains(h):true)},x=function(g){return(g=(g?g.ownerDocument||g:0).documentElement)?g.nodeName!=="HTML":false},ga=function(g,h){var l=[],m="",q;for(h=h.nodeType?[h]:h;q=n.match.PSEUDO.exec(g);){m+=q[0];g=g.replace(n.match.PSEUDO,"")}g=n.relative[g]?g+"*":g;q=0;for(var p=h.length;q=0===d})};c.fn.extend({find:function(a){for(var b=this.pushStack("","find",a),d=0,f=0,e=this.length;f0)for(var j=d;j0},closest:function(a,b){if(c.isArray(a)){var d=[],f=this[0],e,j= -{},i;if(f&&a.length){e=0;for(var o=a.length;e-1:c(f).is(e)){d.push({selector:i,elem:f});delete j[i]}}f=f.parentNode}}return d}var k=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(n,r){for(;r&&r.ownerDocument&&r!==b;){if(k?k.index(r)>-1:c(r).is(a))return r;r=r.parentNode}return null})},index:function(a){if(!a||typeof a=== -"string")return c.inArray(this[0],a?c(a):this.parent().children());return c.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?c(a,b||this.context):c.makeArray(a);b=c.merge(this.get(),a);return this.pushStack(qa(a[0])||qa(b[0])?b:c.unique(b))},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parentsUntil:function(a,b,d){return c.dir(a,"parentNode", -d)},next:function(a){return c.nth(a,2,"nextSibling")},prev:function(a){return c.nth(a,2,"previousSibling")},nextAll:function(a){return c.dir(a,"nextSibling")},prevAll:function(a){return c.dir(a,"previousSibling")},nextUntil:function(a,b,d){return c.dir(a,"nextSibling",d)},prevUntil:function(a,b,d){return c.dir(a,"previousSibling",d)},siblings:function(a){return c.sibling(a.parentNode.firstChild,a)},children:function(a){return c.sibling(a.firstChild)},contents:function(a){return c.nodeName(a,"iframe")? -a.contentDocument||a.contentWindow.document:c.makeArray(a.childNodes)}},function(a,b){c.fn[a]=function(d,f){var e=c.map(this,b,d);eb.test(a)||(f=d);if(f&&typeof f==="string")e=c.filter(f,e);e=this.length>1?c.unique(e):e;if((this.length>1||gb.test(f))&&fb.test(a))e=e.reverse();return this.pushStack(e,a,R.call(arguments).join(","))}});c.extend({filter:function(a,b,d){if(d)a=":not("+a+")";return c.find.matches(a,b)},dir:function(a,b,d){var f=[];for(a=a[b];a&&a.nodeType!==9&&(d===w||a.nodeType!==1||!c(a).is(d));){a.nodeType=== -1&&f.push(a);a=a[b]}return f},nth:function(a,b,d){b=b||1;for(var f=0;a;a=a[d])if(a.nodeType===1&&++f===b)break;return a},sibling:function(a,b){for(var d=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&d.push(a);return d}});var Ja=/ jQuery\d+="(?:\d+|null)"/g,V=/^\s+/,Ka=/(<([\w:]+)[^>]*?)\/>/g,hb=/^(?:area|br|col|embed|hr|img|input|link|meta|param)$/i,La=/<([\w:]+)/,ib=/"},F={option:[1,""],legend:[1,"
    ","
    "],thead:[1,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],col:[2,"","
    "],area:[1,"",""],_default:[0,"",""]};F.optgroup=F.option;F.tbody=F.tfoot=F.colgroup=F.caption=F.thead;F.th=F.td;if(!c.support.htmlSerialize)F._default=[1,"div
    ","
    "];c.fn.extend({text:function(a){if(c.isFunction(a))return this.each(function(b){var d= -c(this);d.text(a.call(this,b,d.text()))});if(typeof a!=="object"&&a!==w)return this.empty().append((this[0]&&this[0].ownerDocument||s).createTextNode(a));return c.text(this)},wrapAll:function(a){if(c.isFunction(a))return this.each(function(d){c(this).wrapAll(a.call(this,d))});if(this[0]){var b=c(a,this[0].ownerDocument).eq(0).clone(true);this[0].parentNode&&b.insertBefore(this[0]);b.map(function(){for(var d=this;d.firstChild&&d.firstChild.nodeType===1;)d=d.firstChild;return d}).append(this)}return this}, -wrapInner:function(a){if(c.isFunction(a))return this.each(function(b){c(this).wrapInner(a.call(this,b))});return this.each(function(){var b=c(this),d=b.contents();d.length?d.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){c(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){c.nodeName(this,"body")||c(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})}, -prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this)});else if(arguments.length){var a=c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b, -this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,c(arguments[0]).toArray());return a}},remove:function(a,b){for(var d=0,f;(f=this[d])!=null;d++)if(!a||c.filter(a,[f]).length){if(!b&&f.nodeType===1){c.cleanData(f.getElementsByTagName("*"));c.cleanData([f])}f.parentNode&&f.parentNode.removeChild(f)}return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++)for(b.nodeType===1&&c.cleanData(b.getElementsByTagName("*"));b.firstChild;)b.removeChild(b.firstChild); -return this},clone:function(a){var b=this.map(function(){if(!c.support.noCloneEvent&&!c.isXMLDoc(this)){var d=this.outerHTML,f=this.ownerDocument;if(!d){d=f.createElement("div");d.appendChild(this.cloneNode(true));d=d.innerHTML}return c.clean([d.replace(Ja,"").replace(/=([^="'>\s]+\/)>/g,'="$1">').replace(V,"")],f)[0]}else return this.cloneNode(true)});if(a===true){ra(this,b);ra(this.find("*"),b.find("*"))}return b},html:function(a){if(a===w)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ja, -""):null;else if(typeof a==="string"&&!ta.test(a)&&(c.support.leadingWhitespace||!V.test(a))&&!F[(La.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Ka,Ma);try{for(var b=0,d=this.length;b0||e.cacheable||this.length>1?k.cloneNode(true):k)}o.length&&c.each(o,Qa)}return this}});c.fragments={};c.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){c.fn[a]=function(d){var f=[];d=c(d);var e=this.length===1&&this[0].parentNode;if(e&&e.nodeType===11&&e.childNodes.length===1&&d.length===1){d[b](this[0]); -return this}else{e=0;for(var j=d.length;e0?this.clone(true):this).get();c.fn[b].apply(c(d[e]),i);f=f.concat(i)}return this.pushStack(f,a,d.selector)}}});c.extend({clean:function(a,b,d,f){b=b||s;if(typeof b.createElement==="undefined")b=b.ownerDocument||b[0]&&b[0].ownerDocument||s;for(var e=[],j=0,i;(i=a[j])!=null;j++){if(typeof i==="number")i+="";if(i){if(typeof i==="string"&&!jb.test(i))i=b.createTextNode(i);else if(typeof i==="string"){i=i.replace(Ka,Ma);var o=(La.exec(i)||["", -""])[1].toLowerCase(),k=F[o]||F._default,n=k[0],r=b.createElement("div");for(r.innerHTML=k[1]+i+k[2];n--;)r=r.lastChild;if(!c.support.tbody){n=ib.test(i);o=o==="table"&&!n?r.firstChild&&r.firstChild.childNodes:k[1]===""&&!n?r.childNodes:[];for(k=o.length-1;k>=0;--k)c.nodeName(o[k],"tbody")&&!o[k].childNodes.length&&o[k].parentNode.removeChild(o[k])}!c.support.leadingWhitespace&&V.test(i)&&r.insertBefore(b.createTextNode(V.exec(i)[0]),r.firstChild);i=r.childNodes}if(i.nodeType)e.push(i);else e= -c.merge(e,i)}}if(d)for(j=0;e[j];j++)if(f&&c.nodeName(e[j],"script")&&(!e[j].type||e[j].type.toLowerCase()==="text/javascript"))f.push(e[j].parentNode?e[j].parentNode.removeChild(e[j]):e[j]);else{e[j].nodeType===1&&e.splice.apply(e,[j+1,0].concat(c.makeArray(e[j].getElementsByTagName("script"))));d.appendChild(e[j])}return e},cleanData:function(a){for(var b,d,f=c.cache,e=c.event.special,j=c.support.deleteExpando,i=0,o;(o=a[i])!=null;i++)if(d=o[c.expando]){b=f[d];if(b.events)for(var k in b.events)e[k]? -c.event.remove(o,k):Ca(o,k,b.handle);if(j)delete o[c.expando];else o.removeAttribute&&o.removeAttribute(c.expando);delete f[d]}}});var kb=/z-?index|font-?weight|opacity|zoom|line-?height/i,Na=/alpha\([^)]*\)/,Oa=/opacity=([^)]*)/,ha=/float/i,ia=/-([a-z])/ig,lb=/([A-Z])/g,mb=/^-?\d+(?:px)?$/i,nb=/^-?\d/,ob={position:"absolute",visibility:"hidden",display:"block"},pb=["Left","Right"],qb=["Top","Bottom"],rb=s.defaultView&&s.defaultView.getComputedStyle,Pa=c.support.cssFloat?"cssFloat":"styleFloat",ja= -function(a,b){return b.toUpperCase()};c.fn.css=function(a,b){return X(this,a,b,true,function(d,f,e){if(e===w)return c.curCSS(d,f);if(typeof e==="number"&&!kb.test(f))e+="px";c.style(d,f,e)})};c.extend({style:function(a,b,d){if(!a||a.nodeType===3||a.nodeType===8)return w;if((b==="width"||b==="height")&&parseFloat(d)<0)d=w;var f=a.style||a,e=d!==w;if(!c.support.opacity&&b==="opacity"){if(e){f.zoom=1;b=parseInt(d,10)+""==="NaN"?"":"alpha(opacity="+d*100+")";a=f.filter||c.curCSS(a,"filter")||"";f.filter= -Na.test(a)?a.replace(Na,b):b}return f.filter&&f.filter.indexOf("opacity=")>=0?parseFloat(Oa.exec(f.filter)[1])/100+"":""}if(ha.test(b))b=Pa;b=b.replace(ia,ja);if(e)f[b]=d;return f[b]},css:function(a,b,d,f){if(b==="width"||b==="height"){var e,j=b==="width"?pb:qb;function i(){e=b==="width"?a.offsetWidth:a.offsetHeight;f!=="border"&&c.each(j,function(){f||(e-=parseFloat(c.curCSS(a,"padding"+this,true))||0);if(f==="margin")e+=parseFloat(c.curCSS(a,"margin"+this,true))||0;else e-=parseFloat(c.curCSS(a, -"border"+this+"Width",true))||0})}a.offsetWidth!==0?i():c.swap(a,ob,i);return Math.max(0,Math.round(e))}return c.curCSS(a,b,d)},curCSS:function(a,b,d){var f,e=a.style;if(!c.support.opacity&&b==="opacity"&&a.currentStyle){f=Oa.test(a.currentStyle.filter||"")?parseFloat(RegExp.$1)/100+"":"";return f===""?"1":f}if(ha.test(b))b=Pa;if(!d&&e&&e[b])f=e[b];else if(rb){if(ha.test(b))b="float";b=b.replace(lb,"-$1").toLowerCase();e=a.ownerDocument.defaultView;if(!e)return null;if(a=e.getComputedStyle(a,null))f= -a.getPropertyValue(b);if(b==="opacity"&&f==="")f="1"}else if(a.currentStyle){d=b.replace(ia,ja);f=a.currentStyle[b]||a.currentStyle[d];if(!mb.test(f)&&nb.test(f)){b=e.left;var j=a.runtimeStyle.left;a.runtimeStyle.left=a.currentStyle.left;e.left=d==="fontSize"?"1em":f||0;f=e.pixelLeft+"px";e.left=b;a.runtimeStyle.left=j}}return f},swap:function(a,b,d){var f={};for(var e in b){f[e]=a.style[e];a.style[e]=b[e]}d.call(a);for(e in b)a.style[e]=f[e]}});if(c.expr&&c.expr.filters){c.expr.filters.hidden=function(a){var b= -a.offsetWidth,d=a.offsetHeight,f=a.nodeName.toLowerCase()==="tr";return b===0&&d===0&&!f?true:b>0&&d>0&&!f?false:c.curCSS(a,"display")==="none"};c.expr.filters.visible=function(a){return!c.expr.filters.hidden(a)}}var sb=J(),tb=//gi,ub=/select|textarea/i,vb=/color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week/i,N=/=\?(&|$)/,ka=/\?/,wb=/(\?|&)_=.*?(&|$)/,xb=/^(\w+:)?\/\/([^\/?#]+)/,yb=/%20/g,zb=c.fn.load;c.fn.extend({load:function(a,b,d){if(typeof a!== -"string")return zb.call(this,a);else if(!this.length)return this;var f=a.indexOf(" ");if(f>=0){var e=a.slice(f,a.length);a=a.slice(0,f)}f="GET";if(b)if(c.isFunction(b)){d=b;b=null}else if(typeof b==="object"){b=c.param(b,c.ajaxSettings.traditional);f="POST"}var j=this;c.ajax({url:a,type:f,dataType:"html",data:b,complete:function(i,o){if(o==="success"||o==="notmodified")j.html(e?c("
    ").append(i.responseText.replace(tb,"")).find(e):i.responseText);d&&j.each(d,[i.responseText,o,i])}});return this}, -serialize:function(){return c.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?c.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||ub.test(this.nodeName)||vb.test(this.type))}).map(function(a,b){a=c(this).val();return a==null?null:c.isArray(a)?c.map(a,function(d){return{name:b.name,value:d}}):{name:b.name,value:a}}).get()}});c.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "), -function(a,b){c.fn[b]=function(d){return this.bind(b,d)}});c.extend({get:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b=null}return c.ajax({type:"GET",url:a,data:b,success:d,dataType:f})},getScript:function(a,b){return c.get(a,null,b,"script")},getJSON:function(a,b,d){return c.get(a,b,d,"json")},post:function(a,b,d,f){if(c.isFunction(b)){f=f||d;d=b;b={}}return c.ajax({type:"POST",url:a,data:b,success:d,dataType:f})},ajaxSetup:function(a){c.extend(c.ajaxSettings,a)},ajaxSettings:{url:location.href, -global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:A.XMLHttpRequest&&(A.location.protocol!=="file:"||!A.ActiveXObject)?function(){return new A.XMLHttpRequest}:function(){try{return new A.ActiveXObject("Microsoft.XMLHTTP")}catch(a){}},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},etag:{},ajax:function(a){function b(){e.success&& -e.success.call(k,o,i,x);e.global&&f("ajaxSuccess",[x,e])}function d(){e.complete&&e.complete.call(k,x,i);e.global&&f("ajaxComplete",[x,e]);e.global&&!--c.active&&c.event.trigger("ajaxStop")}function f(q,p){(e.context?c(e.context):c.event).trigger(q,p)}var e=c.extend(true,{},c.ajaxSettings,a),j,i,o,k=a&&a.context||e,n=e.type.toUpperCase();if(e.data&&e.processData&&typeof e.data!=="string")e.data=c.param(e.data,e.traditional);if(e.dataType==="jsonp"){if(n==="GET")N.test(e.url)||(e.url+=(ka.test(e.url)? -"&":"?")+(e.jsonp||"callback")+"=?");else if(!e.data||!N.test(e.data))e.data=(e.data?e.data+"&":"")+(e.jsonp||"callback")+"=?";e.dataType="json"}if(e.dataType==="json"&&(e.data&&N.test(e.data)||N.test(e.url))){j=e.jsonpCallback||"jsonp"+sb++;if(e.data)e.data=(e.data+"").replace(N,"="+j+"$1");e.url=e.url.replace(N,"="+j+"$1");e.dataType="script";A[j]=A[j]||function(q){o=q;b();d();A[j]=w;try{delete A[j]}catch(p){}z&&z.removeChild(C)}}if(e.dataType==="script"&&e.cache===null)e.cache=false;if(e.cache=== -false&&n==="GET"){var r=J(),u=e.url.replace(wb,"$1_="+r+"$2");e.url=u+(u===e.url?(ka.test(e.url)?"&":"?")+"_="+r:"")}if(e.data&&n==="GET")e.url+=(ka.test(e.url)?"&":"?")+e.data;e.global&&!c.active++&&c.event.trigger("ajaxStart");r=(r=xb.exec(e.url))&&(r[1]&&r[1]!==location.protocol||r[2]!==location.host);if(e.dataType==="script"&&n==="GET"&&r){var z=s.getElementsByTagName("head")[0]||s.documentElement,C=s.createElement("script");C.src=e.url;if(e.scriptCharset)C.charset=e.scriptCharset;if(!j){var B= -false;C.onload=C.onreadystatechange=function(){if(!B&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){B=true;b();d();C.onload=C.onreadystatechange=null;z&&C.parentNode&&z.removeChild(C)}}}z.insertBefore(C,z.firstChild);return w}var E=false,x=e.xhr();if(x){e.username?x.open(n,e.url,e.async,e.username,e.password):x.open(n,e.url,e.async);try{if(e.data||a&&a.contentType)x.setRequestHeader("Content-Type",e.contentType);if(e.ifModified){c.lastModified[e.url]&&x.setRequestHeader("If-Modified-Since", -c.lastModified[e.url]);c.etag[e.url]&&x.setRequestHeader("If-None-Match",c.etag[e.url])}r||x.setRequestHeader("X-Requested-With","XMLHttpRequest");x.setRequestHeader("Accept",e.dataType&&e.accepts[e.dataType]?e.accepts[e.dataType]+", */*":e.accepts._default)}catch(ga){}if(e.beforeSend&&e.beforeSend.call(k,x,e)===false){e.global&&!--c.active&&c.event.trigger("ajaxStop");x.abort();return false}e.global&&f("ajaxSend",[x,e]);var g=x.onreadystatechange=function(q){if(!x||x.readyState===0||q==="abort"){E|| -d();E=true;if(x)x.onreadystatechange=c.noop}else if(!E&&x&&(x.readyState===4||q==="timeout")){E=true;x.onreadystatechange=c.noop;i=q==="timeout"?"timeout":!c.httpSuccess(x)?"error":e.ifModified&&c.httpNotModified(x,e.url)?"notmodified":"success";var p;if(i==="success")try{o=c.httpData(x,e.dataType,e)}catch(v){i="parsererror";p=v}if(i==="success"||i==="notmodified")j||b();else c.handleError(e,x,i,p);d();q==="timeout"&&x.abort();if(e.async)x=null}};try{var h=x.abort;x.abort=function(){x&&h.call(x); -g("abort")}}catch(l){}e.async&&e.timeout>0&&setTimeout(function(){x&&!E&&g("timeout")},e.timeout);try{x.send(n==="POST"||n==="PUT"||n==="DELETE"?e.data:null)}catch(m){c.handleError(e,x,null,m);d()}e.async||g();return x}},handleError:function(a,b,d,f){if(a.error)a.error.call(a.context||a,b,d,f);if(a.global)(a.context?c(a.context):c.event).trigger("ajaxError",[b,a,f])},active:0,httpSuccess:function(a){try{return!a.status&&location.protocol==="file:"||a.status>=200&&a.status<300||a.status===304||a.status=== -1223||a.status===0}catch(b){}return false},httpNotModified:function(a,b){var d=a.getResponseHeader("Last-Modified"),f=a.getResponseHeader("Etag");if(d)c.lastModified[b]=d;if(f)c.etag[b]=f;return a.status===304||a.status===0},httpData:function(a,b,d){var f=a.getResponseHeader("content-type")||"",e=b==="xml"||!b&&f.indexOf("xml")>=0;a=e?a.responseXML:a.responseText;e&&a.documentElement.nodeName==="parsererror"&&c.error("parsererror");if(d&&d.dataFilter)a=d.dataFilter(a,b);if(typeof a==="string")if(b=== -"json"||!b&&f.indexOf("json")>=0)a=c.parseJSON(a);else if(b==="script"||!b&&f.indexOf("javascript")>=0)c.globalEval(a);return a},param:function(a,b){function d(i,o){if(c.isArray(o))c.each(o,function(k,n){b||/\[\]$/.test(i)?f(i,n):d(i+"["+(typeof n==="object"||c.isArray(n)?k:"")+"]",n)});else!b&&o!=null&&typeof o==="object"?c.each(o,function(k,n){d(i+"["+k+"]",n)}):f(i,o)}function f(i,o){o=c.isFunction(o)?o():o;e[e.length]=encodeURIComponent(i)+"="+encodeURIComponent(o)}var e=[];if(b===w)b=c.ajaxSettings.traditional; -if(c.isArray(a)||a.jquery)c.each(a,function(){f(this.name,this.value)});else for(var j in a)d(j,a[j]);return e.join("&").replace(yb,"+")}});var la={},Ab=/toggle|show|hide/,Bb=/^([+-]=)?([\d+-.]+)(.*)$/,W,va=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];c.fn.extend({show:function(a,b){if(a||a===0)return this.animate(K("show",3),a,b);else{a=0;for(b=this.length;a").appendTo("body");f=e.css("display");if(f==="none")f="block";e.remove();la[d]=f}c.data(this[a],"olddisplay",f)}}a=0;for(b=this.length;a=0;f--)if(d[f].elem===this){b&&d[f](true);d.splice(f,1)}});b||this.dequeue();return this}});c.each({slideDown:K("show",1),slideUp:K("hide",1),slideToggle:K("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(a,b){c.fn[a]=function(d,f){return this.animate(b,d,f)}});c.extend({speed:function(a,b,d){var f=a&&typeof a==="object"?a:{complete:d||!d&&b||c.isFunction(a)&&a,duration:a,easing:d&&b||b&&!c.isFunction(b)&&b};f.duration=c.fx.off?0:typeof f.duration=== -"number"?f.duration:c.fx.speeds[f.duration]||c.fx.speeds._default;f.old=f.complete;f.complete=function(){f.queue!==false&&c(this).dequeue();c.isFunction(f.old)&&f.old.call(this)};return f},easing:{linear:function(a,b,d,f){return d+f*a},swing:function(a,b,d,f){return(-Math.cos(a*Math.PI)/2+0.5)*f+d}},timers:[],fx:function(a,b,d){this.options=b;this.elem=a;this.prop=d;if(!b.orig)b.orig={}}});c.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this);(c.fx.step[this.prop]|| -c.fx.step._default)(this);if((this.prop==="height"||this.prop==="width")&&this.elem.style)this.elem.style.display="block"},cur:function(a){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];return(a=parseFloat(c.css(this.elem,this.prop,a)))&&a>-10000?a:parseFloat(c.curCSS(this.elem,this.prop))||0},custom:function(a,b,d){function f(j){return e.step(j)}this.startTime=J();this.start=a;this.end=b;this.unit=d||this.unit||"px";this.now=this.start; -this.pos=this.state=0;var e=this;f.elem=this.elem;if(f()&&c.timers.push(f)&&!W)W=setInterval(c.fx.tick,13)},show:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());c(this.elem).show()},hide:function(){this.options.orig[this.prop]=c.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(a){var b=J(),d=true;if(a||b>=this.options.duration+this.startTime){this.now= -this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var f in this.options.curAnim)if(this.options.curAnim[f]!==true)d=false;if(d){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;a=c.data(this.elem,"olddisplay");this.elem.style.display=a?a:this.options.display;if(c.css(this.elem,"display")==="none")this.elem.style.display="block"}this.options.hide&&c(this.elem).hide();if(this.options.hide||this.options.show)for(var e in this.options.curAnim)c.style(this.elem, -e,this.options.orig[e]);this.options.complete.call(this.elem)}return false}else{e=b-this.startTime;this.state=e/this.options.duration;a=this.options.easing||(c.easing.swing?"swing":"linear");this.pos=c.easing[this.options.specialEasing&&this.options.specialEasing[this.prop]||a](this.state,e,0,1,this.options.duration);this.now=this.start+(this.end-this.start)*this.pos;this.update()}return true}};c.extend(c.fx,{tick:function(){for(var a=c.timers,b=0;b
    "; -a.insertBefore(b,a.firstChild);d=b.firstChild;f=d.firstChild;e=d.nextSibling.firstChild.firstChild;this.doesNotAddBorder=f.offsetTop!==5;this.doesAddBorderForTableAndCells=e.offsetTop===5;f.style.position="fixed";f.style.top="20px";this.supportsFixedPosition=f.offsetTop===20||f.offsetTop===15;f.style.position=f.style.top="";d.style.overflow="hidden";d.style.position="relative";this.subtractsBorderForOverflowNotVisible=f.offsetTop===-5;this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==j;a.removeChild(b); -c.offset.initialize=c.noop},bodyOffset:function(a){var b=a.offsetTop,d=a.offsetLeft;c.offset.initialize();if(c.offset.doesNotIncludeMarginInBodyOffset){b+=parseFloat(c.curCSS(a,"marginTop",true))||0;d+=parseFloat(c.curCSS(a,"marginLeft",true))||0}return{top:b,left:d}},setOffset:function(a,b,d){if(/static/.test(c.curCSS(a,"position")))a.style.position="relative";var f=c(a),e=f.offset(),j=parseInt(c.curCSS(a,"top",true),10)||0,i=parseInt(c.curCSS(a,"left",true),10)||0;if(c.isFunction(b))b=b.call(a, -d,e);d={top:b.top-e.top+j,left:b.left-e.left+i};"using"in b?b.using.call(a,d):f.css(d)}};c.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),d=this.offset(),f=/^body|html$/i.test(b[0].nodeName)?{top:0,left:0}:b.offset();d.top-=parseFloat(c.curCSS(a,"marginTop",true))||0;d.left-=parseFloat(c.curCSS(a,"marginLeft",true))||0;f.top+=parseFloat(c.curCSS(b[0],"borderTopWidth",true))||0;f.left+=parseFloat(c.curCSS(b[0],"borderLeftWidth",true))||0;return{top:d.top- -f.top,left:d.left-f.left}},offsetParent:function(){return this.map(function(){for(var a=this.offsetParent||s.body;a&&!/^body|html$/i.test(a.nodeName)&&c.css(a,"position")==="static";)a=a.offsetParent;return a})}});c.each(["Left","Top"],function(a,b){var d="scroll"+b;c.fn[d]=function(f){var e=this[0],j;if(!e)return null;if(f!==w)return this.each(function(){if(j=wa(this))j.scrollTo(!a?f:c(j).scrollLeft(),a?f:c(j).scrollTop());else this[d]=f});else return(j=wa(e))?"pageXOffset"in j?j[a?"pageYOffset": -"pageXOffset"]:c.support.boxModel&&j.document.documentElement[d]||j.document.body[d]:e[d]}});c.each(["Height","Width"],function(a,b){var d=b.toLowerCase();c.fn["inner"+b]=function(){return this[0]?c.css(this[0],d,false,"padding"):null};c.fn["outer"+b]=function(f){return this[0]?c.css(this[0],d,false,f?"margin":"border"):null};c.fn[d]=function(f){var e=this[0];if(!e)return f==null?null:this;if(c.isFunction(f))return this.each(function(j){var i=c(this);i[d](f.call(this,j,i[d]()))});return"scrollTo"in -e&&e.document?e.document.compatMode==="CSS1Compat"&&e.document.documentElement["client"+b]||e.document.body["client"+b]:e.nodeType===9?Math.max(e.documentElement["client"+b],e.body["scroll"+b],e.documentElement["scroll"+b],e.body["offset"+b],e.documentElement["offset"+b]):f===w?c.css(e,d):this.css(d,typeof f==="string"?f:f+"px")}});A.jQuery=A.$=c})(window); diff --git a/SiteTimeline/js/main.js b/SiteTimeline/js/main.js deleted file mode 100644 index 726b8b8..0000000 --- a/SiteTimeline/js/main.js +++ /dev/null @@ -1,217 +0,0 @@ -(function ($) { - if (!!window.ActiveXObject && !window.XMLHttpRequest && (location.href=='http://www.lanrentuku.com' || location.href=='http://www.lanrentuku.com/')) return; - $(function () { - nav(); - bnrSilder(); - sideSlider(); - helpToggle(); - systole(); - slideImg(); - downM(); - ExtMutual(); - slides("#slides", ".slides"); - skinMutual(); - srollList("#dialog01", "11"); - srollList("#dialog02", "6"); - anchorLink(); - - var img = document.createElement("img"); - img.onload = function() { - window.onload = function () { - skinShow(); - }; - }; - }); - -//滚动 - function nav() { - var $liCur = $(".nav-box ul li.cur"), - curP = $liCur.position().left, - curW = $liCur.outerWidth(true), - $slider = $(".nav-line"), - $targetEle = $(".nav-box ul li:not('.last') a"), - $navBox = $(".nav-box"); - $slider.stop(true, true).animate({ - "left":curP, - "width":curW - }); - $targetEle.mouseenter(function () { - var $_parent = $(this).parent(), - _width = $_parent.outerWidth(true), - posL = $_parent.position().left; - $slider.stop(true, true).animate({ - "left":posL, - "width":_width - }, "fast"); - }); - $navBox.mouseleave(function (cur, wid) { - cur = curP; - wid = curW; - $slider.stop(true, true).animate({ - "left":cur, - "width":wid - }, "fast"); - }); - } - - ; -//滚动 - function bnrSilder() { - if (!$("#head").length && !$("#bnr").length) { - return; - } - (function () { - if (navigator.userAgent.toLocaleLowerCase().indexOf('opera') >= 0) return; - var sstag = document.createElement('script'); - sstag.type = 'text/javascript'; - sstag.async = true; - sstag.src = 'script/SmoothScroll.js'; - var s = document.getElementsByTagName('script')[0]; - s.parentNode.insertBefore(sstag, s); - })(); - $(window).scroll(function () { - var bTop = $(this).scrollTop(); - $('.bnr-box').css({ - 'margin-top':-bTop * 0.48 - }); - $('.bnr-txt').css({ - 'margin-top':-bTop * 0.68 - }); - $('.bnr-btn').css({ - 'margin-top':-bTop * 0.68 - }); - $('.warper').css({ - "background-position":"50% " + bTop * 0.2 + "px" - }); - if (bTop < 200) { - $(".txt-warp").css({ - 'margin-top':-bTop * 1.5 - }); - $(".txt-nav-warp").removeAttr("style"); - } else { - $(".txt-warp").css({ - 'margin-top':-240 - }); - $(".txt-nav-warp").css({ - "position":"fixed", - "top":0, - "left":0, - "box-shadow":"0 2px 6px #eee" - }); - - } - var idxs = 0; - if (bTop >= 200 && bTop < 577) { - idxs; - } else if (bTop >= 577 && bTop < 1072) { - idxs = 1; - } else if (bTop >= 1072 && bTop < 1165) { - idxs = 2; - } else if (bTop >= 1165) { - idxs = 3; - } - $('.txt-nav li a').eq(idxs).addClass('on').parent().siblings().children().removeClass - - ('on'); - if (bTop < 200) { - $('.txt-nav li a').removeClass('on'); - } - }); - }; - - - function sideSlider() { - if (!$(".help-side dl").length) { - return false; - } - var $aCur = $(".help-side dl").find(".cur a"), - $targetA = $(".help-side dl dd a"), - $sideSilder = $(".side-slider"), - curT = $aCur.position().top - 3; - $sideSilder.stop(true, true).animate({ - "top":curT - }); - $targetA.mouseenter(function () { - var posT = $(this).position().top - 3; - $sideSilder.stop(true, true).animate({ - "top":posT - }, 240); - }).parents(".help-side").mouseleave(function (_curT) { - _curT = curT - $sideSilder.stop(true, true).animate({ - "top":_curT - }); - }); - } - - ; - - function helpToggle() { - if (!$(".help-cont dl dt a").length) { - return; - } - var $targetEle = $(".help-cont dl dt a"); - $targetEle.toggle(function () { - $(this).parent().css({ - "background-position":"0 -20px" - }).siblings().slideDown(); - return false; - }, function () { - $(this).parent().removeAttr("style").siblings().slideUp(); - return false; - }); - } - - ; - - function systole() { - if (!$(".history").length) { - return; - } - var $warpEle = $(".history-date"), - $targetA = $warpEle.find("h2 a,ul li dl dt a"), - parentH, - eleTop = []; - parentH = $warpEle.parent().height(); - $warpEle.parent().css({ - "height":59 - }); - setTimeout(function () { - - $warpEle.find("ul").children(":not('h2:first')").each(function (idx) { - eleTop.push($(this).position().top); - $(this).css({ - "margin-top":-eleTop[idx] - }).children().hide(); - }).animate({ - "margin-top":0 - }, 1600).children().fadeIn(); - $warpEle.parent().animate({ - "height":parentH - }, 2600); - - $warpEle.find("ul").children(":not('h2:first')").addClass("bounceInDown").css({ - "-webkit-animation-duration":"2s", - "-webkit-animation-delay":"0", - "-webkit-animation-timing-function":"ease", - "-webkit-animation-fill-mode":"both" - }).end().children("h2").css({ - "position":"relative" - }); - }, 600); - - $targetA.click(function () { - $(this).parent().css({ - "position":"relative" - }); - $(this).parent().siblings().slideToggle(); - $warpEle.parent().removeAttr("style"); - return false; - }); - - } - - ; - - -})(jQuery); \ No newline at end of file diff --git a/about/index.html b/about/index.html index 1211778..e69de29 100644 --- a/about/index.html +++ b/about/index.html @@ -1,832 +0,0 @@ - - - - - - - about | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    - -
    - -
    -
    - -
    -
    -

    - 关于

    -
    -
    - -
    -
    - -
    [关于LOVE109❤️纪实小屋]
    -
    -
    -

    -

    -

    - 正在与  - LOVE109❤️纪实小屋管家  - ( - - 欢迎来到我们的小屋 mua~😘 - - ) - - 对话中...

    -

    -

    -
    - -
    - - - - - - - -
    - -
    -
    -
    -
    - - -
    -
    - -
    -

    记录爱情 记录生活

    -
    - -
    - - - - - - - - -
    -
    -
    - -
    - - - © 2019 LOVE109纪实小屋
    - 鄂ICP备19003281号
    - - 正在载入... - - -
    - - - - - - - - - -
    -
    -
    - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git a/archives/2019/01/index.html b/archives/2019/01/index.html index f57326e..b12dcad 100644 --- a/archives/2019/01/index.html +++ b/archives/2019/01/index.html @@ -1,692 +1,198 @@ - + - - archive_a: 2019/1 | LOVE109❤️纪实小屋 + - + Archives: 2019/1 | 404 + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    + +
    +
    +
    -
    -
    -
    -
    -
    -
    - -
    - -
    -
    - + +
    +
    + + - -
    + + + +
    + + - + +
    + +
    + +
    +
    + + - -

    - © 2019 LOVE109❤️纪实小屋

    - - - - - - + + + + + + - - - - + - - - - -
    - - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/archives/2019/index.html b/archives/2019/index.html index bfa409c..3adea98 100644 --- a/archives/2019/index.html +++ b/archives/2019/index.html @@ -1,692 +1,198 @@ - + - - archive_a: 2019 | LOVE109❤️纪实小屋 + - + Archives: 2019 | 404 + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    + +
    +
    +
    -
    -
    -
    -
    -
    -
    - -
    - -
    -
    - + +
    +
    + + - -
    + + + +
    + + - + +
    + +
    + +
    +
    + + - -

    - © 2019 LOVE109❤️纪实小屋

    - - - - - - + + + + + + - - - - + - - - - -
    - - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/archives/index.html b/archives/index.html index 220902a..9b8ef55 100644 --- a/archives/index.html +++ b/archives/index.html @@ -1,692 +1,198 @@ - + - - archive_a | LOVE109❤️纪实小屋 + - + Archives | 404 + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    + +
    +
    +
    -
    -
    -
    -
    -
    -
    - -
    - -
    -
    - + +
    +
    + + - -
    + + + +
    + + - + +
    + +
    + +
    +
    + + - -

    - © 2019 LOVE109❤️纪实小屋

    - - - - - - + + + + + + - - - - + - - - - -
    - - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/atom.xml b/atom.xml index f8a94c9..d8ceae3 100644 --- a/atom.xml +++ b/atom.xml @@ -1,16 +1,16 @@ - LOVE109❤️纪实小屋 + 404 - 记录爱情 记录生活 + landscape - 2019-01-19T15:34:28.498Z + 2019-01-25T15:30:55.886Z https://love109.cn/ - LOVE109 + landscape @@ -18,82 +18,26 @@ Hello World - - https://love109.cn/2019/01/20/hello-world - 副本 (2)/ - 2019-01-20T15:11:12.909Z - 2019-01-19T15:34:28.498Z + + https://love109.cn/2019/01/25/hello-world/ + 2019-01-25T15:23:14.287Z + 2019-01-25T15:30:55.886Z - Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"

    More info: Writing

    Run server

    1
    $ hexo server

    More info: Server

    Generate static files

    1
    $ hexo generate

    More info: Generating

    Deploy to remote sites

    1
    $ hexo deploy

    More info: Deployment

    ]]>
    + photos: https://wx2.sinaimg.cn/large/006bYVyvgy1fqmv0mlsktj31400u0avk.jpg
    Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"

    More info: Writing

    Run server

    1
    $ hexo server

    More info: Server

    Generate static files

    1
    $ hexo generate

    More info: Generating

    Deploy to remote sites

    1
    $ hexo deploy

    More info: Deployment

    ]]>
    - <p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo. + <p>photos: <a href="https://wx2.sinaimg.cn/large/006bYVyvgy1fqmv0mlsktj31400u0avk.jpg" target="_blank" rel="noopener">https://wx2.sinaimg.cn - + - - - - -
    - - - Hello World - - https://love109.cn/2019/01/20/hello-world - 副本/ - 2019-01-20T15:11:12.221Z - 2019-01-19T15:34:28.498Z - - Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"

    More info: Writing

    Run server

    1
    $ hexo server

    More info: Server

    Generate static files

    1
    $ hexo generate

    More info: Generating

    Deploy to remote sites

    1
    $ hexo deploy

    More info: Deployment

    ]]>
    - - - - - - <p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo. - - - - - - - - - - - -
    - - - Hello World - - https://love109.cn/2019/01/17/hello-world/ - 2019-01-17T12:36:23.920Z - 2019-01-19T15:34:28.498Z - - Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

    Quick Start

    Create a new post

    1
    $ hexo new "My New Post"

    More info: Writing

    Run server

    1
    $ hexo server

    More info: Server

    Generate static files

    1
    $ hexo generate

    More info: Generating

    Deploy to remote sites

    1
    $ hexo deploy

    More info: Deployment

    ]]>
    - - - - - - <p>Welcome to <a href="https://hexo.io/" target="_blank" rel="noopener">Hexo</a>! This is your very first post. Check <a href="https://hexo. - - - - - - - - - - +
    diff --git a/categories/index.html b/categories/index.html index ccf3ca9..6c0911d 100644 --- a/categories/index.html +++ b/categories/index.html @@ -1,675 +1,200 @@ - + - - categories | LOVE109❤️纪实小屋 + - + categories | 404 + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    - -
    - -
    - - -
    -
    -
    -
    + Archives + +
    -
    - -
    -

    记录爱情 记录生活

    -
    - -
    - - - - - - - - -
    -
    -
    - -
    - - - © 2019 LOVE109纪实小屋
    - 鄂ICP备19003281号
    - - 正在载入... - - -
    - - - - - - - - - -
    + +
    +
    - - +
    + + +
    + + +

    + categories +

    + - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    + +

    - - - - - + - +
    + +
    + -

    - -

    - © 2019 LOVE109❤️纪实小屋

    - - - - - - + + + + + + - - - - + - - - - -
    - - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/categories/landscape/index.html b/categories/landscape/index.html new file mode 100644 index 0000000..67e2bae --- /dev/null +++ b/categories/landscape/index.html @@ -0,0 +1,198 @@ + + + + + + + + Category: landscape | 404 + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    + +
    +
    + + + + + + +
    +
    + 2019 +
    +
    + + + + +
    + + + +
    + + + +
    +
    + +
    + +
    +
    +
    + + + + + + + + + + + + + + +
    + + \ No newline at end of file diff --git "a/categories/\346\212\200\346\234\257/index.html" "b/categories/\346\212\200\346\234\257/index.html" deleted file mode 100644 index 6f6b1f0..0000000 --- "a/categories/\346\212\200\346\234\257/index.html" +++ /dev/null @@ -1,836 +0,0 @@ - - - - - - - Category: 技术 | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    - - -
    -
    -
    - -
    -
    -

    野生技术协会

    - -

    Geek – Only for Love

    -
    -
    -
    -
    -
    -
    - - - - - - - - - - - -
    -
    -
    - -
    -
    - - - - - - - - -
    -
    -
    - -
    - - - © 2019 LOVE109纪实小屋
    - 鄂ICP备19003281号
    - - 正在载入... - - -
    - - - - - - - - - -
    -
    -
    - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git a/comment/index.html b/comment/index.html index ad4e969..e69de29 100644 --- a/comment/index.html +++ b/comment/index.html @@ -1,704 +0,0 @@ - - - - - - - comment | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
    -
    - -
    -
    - - -
    -
    -
    - - - -
    -
    -

    LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

    -
    -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • - - - -
  • - -
  • -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    - - - -
    -
    - -
    - -
    -
    - -
    -
    -

    - 留言板

    -
    -
    - -
    -
    - -
    -
    -
    -
    -
    -
    -
    -
    -
    -
    -

    - 念两句诗

    -

    - 叙别梦、扬州一觉。

    -

    - 【宋代】吴文英《夜游宫·人去西楼雁杳》

    -
    -
    - - - - - -
    - - - -
    - -
    -
    -
    -
    - - -
    -
    - -
    -

    记录爱情 记录生活

    -
    - -
    - - - - - - - - -
    -
    -
    - -
    - - - © 2019 LOVE109纪实小屋
    - 鄂ICP备19003281号
    - - 正在载入... - - -
    - - - - - - - - - -
    -
    -
    - - - - - - -
    -
    -
    -
    -
    - -
    -
    -
    -
    -
    - -
    -

    LOVE109❤️ 纪实小屋

    -

    - - - - - - - - - - - - - -

    - -

    - © 2019 LOVE109❤️纪实小屋

    -
    - - - - - - - - - - - - - - - - - -
    - - - \ No newline at end of file diff --git a/css/LoveTimeline.css b/css/LoveTimeline.css deleted file mode 100644 index 99cac0d..0000000 --- a/css/LoveTimeline.css +++ /dev/null @@ -1,186 +0,0 @@ - #timeline .timeline-item:after,#timeline .timeline-item:before { - content: ''; - display: block; - width: 100%; - clear: both; -} -*, *:before, *:after { - box-sizing: border-box; - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; -} -body, html { - height: 100%} -body { - background: #ffffff; - background-size: cover; - margin: 0; - padding: 0; - font-family: helvetica, arial, tahoma, verdana; - line-height: 20px; - font-size: 14px; - color: #726f77; - -webkit-font-smoothing: antialiased; -} -img { - max-width: 100%} -a { - text-decoration: none; -} -.container { - max-width: 1100px; - margin: 0 auto; -} -h1, h2, h3, h4 { - font-family: "Dosis", arial, tahoma, verdana; - font-weight: 600; -} - -#timeline { - width: 90%; - margin: 30px auto; - position: relative; - -webkit-transition: all 0.4s ease; - -moz-transition: all 0.4s ease; - -ms-transition: all 0.4s ease; - transition: all 0.4s ease; -} -#timeline:before { - content: ""; - width: 3px; - height: 100%; - background: #ee4d4d; - left: 50%; - top: 0; - position: absolute; -} -#timeline:after { - content: ""; - clear: both; - display: table; - width: 100%} -#timeline .timeline-item { - margin-bottom: 30px; - position: relative; -} -#timeline .timeline-item .timeline-icon { - background: #ee4d4d; - width: 50px; - height: 50px; - position: absolute; - top: 0; - left: 50%; - overflow: hidden; - margin-left: -23px; - -webkit-border-radius: 50%; - -moz-border-radius: 50%; - -ms-border-radius: 50%; - border-radius: 50%} -#timeline .timeline-item .timeline-icon img { - position: relative; - top: 14px; - left: 14px; -} -#timeline .timeline-item .timeline-content { - width: 45%; - background: #fff; - padding: 20px; - -webkit-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); - -moz-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); - -ms-box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); - box-shadow: 0 3px 0 rgba(0, 0, 0, 0.1); - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - -ms-border-radius: 5px; - border-radius: 5px; - -webkit-transition: all 0.3s ease; - -moz-transition: all 0.3s ease; - -ms-transition: all 0.3s ease; - transition: all 0.3s ease; -} -#timeline .timeline-item .timeline-content h2 { - padding: 15px; - background: #ee4d4d; - color: #fff; - margin: -20px -20px 0 -20px; - font-weight: 500; - -webkit-border-radius: 3px 3px 0 0; - -moz-border-radius: 3px 3px 0 0; - -ms-border-radius: 3px 3px 0 0; - border-radius: 3px 3px 0 0; -} -#timeline .timeline-item .timeline-content:before { - content: ''; - position: absolute; - left: 45%; - top: 20px; - width: 0; - height: 0; - border-top: 7px solid transparent; - border-bottom: 7px solid transparent; - border-left: 7px solid #ee4d4d; -} -#timeline .timeline-item .timeline-content.right { - float: right; -} -#timeline .timeline-item .timeline-content.right:before { - content: ''; - right: 45%; - left: inherit; - border-left: 0; - border-right: 7px solid #ee4d4d; -} -.btn { - padding: 5px 15px; - text-decoration: none; - background: transparent; - border: 2px solid #f27c7c; - color: #f27c7c; - display: inline-block; - position: relative; - text-transform: uppercase; - font-size: 12px; - -webkit-border-radius: 5px; - -moz-border-radius: 5px; - -ms-border-radius: 5px; - border-radius: 5px; - -webkit-transition: background 0.3s ease; - -moz-transition: background 0.3s ease; - -ms-transition: background 0.3s ease; - transition: background 0.3s ease; - -webkit-box-shadow: 2px 2px 0 #f27c7c; - -moz-box-shadow: 2px 2px 0 #f27c7c; - -ms-box-shadow: 2px 2px 0 #f27c7c; - box-shadow: 2px 2px 0 #f27c7c; -} -.btn:hover { - box-shadow: none; - top: 2px; - left: 2px; - -webkit-box-shadow: 2px 2px 0 transparent; - -moz-box-shadow: 2px 2px 0 transparent; - -ms-box-shadow: 2px 2px 0 transparent; - box-shadow: 2px 2px 0 transparent; -} -@media screen and (max-width: 768px) { - #timeline { - margin: 30px; - padding: 0; -} -#timeline:before { - left: 0; -} -#timeline .timeline-item .timeline-content { - width: 90%; - float: right; -} -#timeline .timeline-item .timeline-content:before, #timeline .timeline-item .timeline-content.right:before { - left: 10%; - margin-left: -6px; - border-left: 0; - border-right: 7px solid #ee4d4d; -} -#timeline .timeline-item .timeline-icon { - left: 0; -} -} diff --git a/css/font.css b/css/font.css deleted file mode 100644 index 05157a0..0000000 --- a/css/font.css +++ /dev/null @@ -1,147 +0,0 @@ - -@font-face {font-family: "iconfont"; - src: url('//at.alicdn.com/t/font_679578_dishi1yoavm.eot?t=1544347866779'); /* IE9*/ - src: url('//at.alicdn.com/t/font_679578_dishi1yoavm.eot?t=1544347866779#iefix') format('embedded-opentype'), /* IE6-IE8 */ - url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAACt4AAsAAAAAQVQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADMAAABCsP6z7U9TLzIAAAE8AAAARAAAAFY8jUi2Y21hcAAAAYAAAAHgAAAFEIXFrhNnbHlmAAADYAAAI+oAADPskvxqFGhlYWQAACdMAAAAMQAAADYT+Ee0aGhlYQAAJ4AAAAAgAAAAJAhSBDRobXR4AAAnoAAAACUAAAEICKL/3WxvY2EAACfIAAAAhgAAAIa1p6hWbWF4cAAAKFAAAAAfAAAAIAFUARJuYW1lAAAocAAAAUUAAAJtPlT+fXBvc3QAACm4AAABvgAAAoEbtuQoeJxjYGRgYOBikGPQYWB0cfMJYeBgYGGAAJAMY05meiJQDMoDyrGAaQ4gZoOIAgCKIwNPAHicY2BkYWKcwMDKwMHUyXSGgYGhH0IzvmYwYuRgYGBiYGVmwAoC0lxTGByeCT7bydzwv4EhhrmToQ0ozAiSAwDthAy+eJzt1EdyE1EYxPG/kDAYRDDZYHKOJpgcdRB75YVPYXIOJoPJOefsLYfpJSv2pt80xSkY1U9Vb0YajerrfsBYoG7rrAG139Qoxy+frVXn60yozjf46XWT8YyhoQ71qV8DGhkdBa96q9VgWf07av50k8nVi+p+/qZ/sY1xvku77zvR1yf56hSm0sE0pjODmcxiNnPoZC7z6GI+C1jIIhazhKUsYzkrWMkqVrOGtX6+9Wygm41sYjNb6GEr29jODnayi93sYS/72M8BWn6gNv4fzfJW7/q7apXpRcmBeqPMXn3hqaH+KBnRQJTsaDA8U3QwPF10KDxndDg8cXQkSqZ0NJwCdCzK0+l4OBnoRJQE6WQ4LehUODfodFD+x5lwltDZcKrQuXC+0Plw0tCFcObQUDh96GI4h+hSOJHocjib6Eo4pehqOK/oWji56Ho4w+hGOM3oZjjXaDiccHQrnHV0O5x6dCecf3Q33AR0L9wJdD/cDvQg3BP0MNwY9CjcHfQ43CL0JMo+oKfhZqFn4Y6h5+G2oRfh3qGX4QaiV+EuotfhVqI34X6it+GmonfhzqL34faiD+Eeo4/hRqNP4W6jz+GWoy/hvqOv4eajb+E9AH0P7wboR3hfQCNB6w/MoecreJyVewmcFcW5b1dX7/tZuvucM2ffetYzzFmB2UGWGWRnWMWFRRABxQUBQUBcALfEJGpEjUmMGpObxQXUKIm+aCLRJN5sLuTG+zPLS1ySl3uN9yVM877qcwYGje93LzPTXdVVXV31rf/vq4LiKerkbvwk3ksJVB81g1pJXUitoy6lKFS0glw6X66iAqr0oVIf3Pk0x8eRHUdmkNdQV6Za8RWQjpycA22c6QtadqpYrVUr5Twir5Ih7Ax0bYNqpZYhz7q9gWtjzblM0CL90xx9ruLzhX0+NM2IMpM4nhENXhhiUdynGAqnzNZQVFi13t2/Aiu83pWjXxVsJRIY3RFvbu5ubn5QR0gWkCghXVAUYbooy1fGHQda3C/F4zEYGP2ZjB72uUPRodLiIcbQGGbZ+u4FcSsfiMksMiP4Rl1Qv4TQv3AczegnLs51IU6yJjR1oo3kE93N86OCpIhhxSfLPmV+/dl0H/yDmVMUNZ6WPipCZahl1EbqWqBlmgtaxWo5z59a9seesP9zGsMTNgXc8dlWKVW0i/3IpyEeZ8jY3Ygnl2K1H5XId1CsTqeYWidypU6csSr136e4akTd9e6Pg5HJnIrW7Awq/FQUCf59OiG7jiQRCTJCOtCftpu7yUdW1+m++ozab/9nHAhFhz6Ar+Cpl8pI2nziuWAEoe8AE8KiIglRYAjVoP8e/G28h8KUSeWoKnUWdSd1F0UFUr4UUApXfH2olgLqAp0QkMoXRyVCTKCwwxZQJxF0r90E0ufgDlVoSkFXBCTPczriOgmPNJRAVgJl0hqybKtWKloxFORAyjUUR0D1GOKsPuRUiLRXCeMyXC8isl+teTzOpDtRzbwUJ0+8Rf94dJ/VmvShgQn0rq4BhAZGF0QdhJwovSvajFBz1H3+0fckfqydX/qGyyV/9qmLX1zA5ppG94XzDF1ksKgGpYOSeJDXBAVJreGm8l5R41lelHcxAsfcIKgMpwk38IjLcAhJezSDwYa4j2eYazjoxBjylTTCt+BzT5yVRr5ki42j3mS6Tvx2wgB+FaZx4rfR5uYojsKk/iHdrPNSvV3k544cjV3C0cPTI0mEkhH3a5hVIkg+yHEHBYHhQ3IBZsPpOsMhzFRYVtJ0VrzU0FBA2iLKKqgs4moMjxBtBHhEM7cg4CUGXr6A/w99M6VTTVQadCgFigEMs1PAFGAYylR4x8z4SnatFHBKlZJZwl898Y0EIVkCL/Du7tadK8/dufPclTufPrRy10r6ppb46Etx0hKna/GW0Zd+sW3bL9BX77jDXfKLn/+cYogQ4cvp/4Cv85QMX6YCOV8K5Yj0+DpQype7BXW4P0ML0WfcTe6/nCpvofe3usdRS497f9493vp39/6JZCjkyWMB7EEEKqCy1byD8kRkRJA+q1SsoUq1WCnhFI1EznBbg+Uc9qMH3RV+lIuGA+hVGiG0Bi7+Fh09E6DzVb97mbvBV3F86HlEN+hEwcRB5us2hwo07Ek697FCPN4z0t09gnbGexb19CxCV8e6R3p6Ruh/jZPHPfEzbjAsS+bPIBhbocJUJzWJGqGoHDiFio+MCLaIH18BjpTzGWBTDHkmiKhWOZ8rV6EA+pECDp7u7LWeqnH0jVLcsuLm7+W4acYtOnt4oMP9dGHgsG5ZOibX0W5TR5foQXcYvelShQHobOk0pVvQfeBC2dLR7aSvu1mXx1fopUOFgYHCkBWz4HeIPB06cWSgQGcN0zRGj5MHdIZcR39dGKjL3W5vzTJlU/M9ucvXlxDk+HEeLFcuoKQGVhoMQB8itrhS7kPFOAoSd8fnOZ7jq04eKGEGbajYhN+g/jT9KfdNzbLAwMBXR35Dir+BuaAHD7zrvvPegfXnKnEfp8xdsvXY+8e2bj12FcaqzUoXBAzZ1i2OT0h+WRP4rxQP/OFG9L7pUe0zFrlZm6/yXlj9xIDAheNC5XPz1zy8atXDP3h4NcKqGqtNCflNXRLys22fhIen4StfIqJDeEzkJ0rVqAFqCDhMrFO+jxi4mkM4XO5H1SIYPGL+oA6NY09grZ2It2tEvniWS1IGBX843yjQDgo3tUrIjsmtP5i0EHgrLTL7gpNMZL7U9JzZa3ab5iuxjtgEyYopnS9PXgxCIKO77nSXg2J1oAdRx7E97mfdk6AFGxF6P1aUkyYtF17pXywFE9Ji0+o1e4M/b9psWRNhsF/GomUpZSKp8yfVhZIZV569oz6I+zN3OS3udU+OjVX3FbB4ER+gmqkuajp46tXgq7cSXw0WnoY19iOw4Hne5GrlGjCS4wmzwWEU+2iQc6yBHe8Daw+deWL1a9U4zXNx4iecU4+sxhPW03oiJ7xVf9GqeYVa1bbo/0KMhDEDCo1oBSkdX29CdDjX8vz5M+de870Nq79x2eDUby488azx0N+PGqhDX3vLTMPPR43i2pmWwenJOGPfKUw4K6tpbEjLlVSsRiKM7K7v21Ht7Bu8rlTbxoU7m6VwR/NELPoNjBW/gE4i+B5NMzRmE92B/hlIMjA9P9cy69yZnx6Yu6u3PLK6s3KW+8GU0AVfvj50wQPo4LSLWlQmEvdhKTZrdbselXS9P5spmzxjNelYqKW1kKCoyauM8saLAmbt8nW7A3nd58BfiNc5Tud9PD1mU4i8GVSMilMOVYaHXLpAl/voYpwGicJ5cKNA6WIfKudZfsx6BcbbGvoH5/306P4FC/Yf/enRA/PnHxhe6ykLubjfdYxkIZksdMmeVixp8Xo1Ou/Hrd0NzXr/2ALHIB2TbgcxGcOeyTisU+jkP07ugzneSIEZZ9MOfFbDIPt50F7w3yUyHXD9mK+WyGREkAuYG3HwNqgEuFg6x/P27M+tXq6ZZoGj1VJm7tu3EEWfc2DlnDb/T/+sWeh8934wSJ0+dESU3CFpJy2G0Uzc3DZR8fnDEaN4bXXXtaDdE2asXtS+G+b1F7Qd7e4iU7wt5Pe7WSkmuc1yXX/xU0DPHFXwNJjKpfkcwEMnZ3nIzzNAbN6zyMUaCzUPeOJqA+CjMQIjroFFcb6v1b3Xz6Nz2qq9ixdvXyy6D7VtW7y4pz2LLuGgvvgyq6etrad99BWrvae1tYe+xyK39q+0v5BMB6zX8qRPjx36VevIjpHQK8FADxmF3lnv7U4xe1tbe9vch+t14icbPixAUSJyMpV8GqgI86yJiEwW/4fbCoAtrbgFNZxV0OPoaTUTRvcTB6mobquSDSnoKXdICWc9v3vy7yd3MCyMF4MKON0ciBSPWYLaMGfVcqyHjIFEGP9N1yz3RwfkgnSTe8zUjbeqOBdEQWQKItJNuoR+abQyE5Bjmu4bnUyr8Qf3O3ZEvuvzjKnzHOrz/MWehv81qTx8b8z4ATkLqOESOJzxeZzw1UE5kH/DOCvnHj8tvgePEFelHddNk/7THcR01XuNfvu03KJBRHnCShxJzKqv+R8nr/bWXPNkNseCuAacPOD/ahyB5bYtHteqQAAwbLl8J8GwYH4C1aIdYOMQYATAVuGcKLjvuO8GQDreMjTrUT3E+vWNz6pM+299gbfbsfYd92RAuOxyNtYkc58TC/IBVLE0/d/LTFDczXz+Ljlio+m/N9pwHPvjIRx4Xg24/3kNYFCkBpTnHOz/j79qkhLT0ESg5+sTgJ6/c5+2FTDG3CkZMD2rUKH6iS9CRbvgwWyQYb5GBDhfKVedsdj0VPQEliLTkHDbqeY8l02el06V6CeMYOjV61c/uOrT2WvOyep+6bGpZjjckk7/0UylWsJh+sMnd+55/PE9uZmrI9e461XbVoORyOOabWtBaN1Hb/70gltHbr1w04Af5XPbHlodbo5EmsMr4A9K7r9tPHT3G3cHJq44736rybaiFlztJmsMB97trW0KRfmCftsC01apVTiISAo0cQEADAh+qOXBiyAbJmzDQ94Cu8IDcoJgsFT1V+qA47t3cQLDoPbBlF8RMwGu3JdZJMYvv7RmNcVnxqXJ02dOnjUYMSduubyNRgJ36HmAFX969wDa86D7YZkGN8NcyGmJphTWIhrftLJoNsfMa89Z2j84TEcDgmFM5GYMDCw951qztW+fhLkKkh666d0DB96l6ljhmw0eOdQM6hwiaZ3Annw9uKnV7SFwg2BAT9ITyEdQQwalASCBR6XJKhzPAdqW7Zl7aLZBU2rE2jsEdthEYUC53FzHa6smTJkyYdVr7Xk7m3VXGpZlXKYr73Ps24qO3lAlFYKJSChkWSHFz0YSIqtFm6LxWFSXN+kWEqfNmTNNRKGkNGv58lnK/PbXp3a+PWHK6+3ZzImjuQy9xzLe1m35fZxiuN/K7oW8mFTMdH5azhnMJvVQ0seoopFrX7pqeSEfNPYGE8qcu47eOUdJmLSy+Nu/+dYSdQw/BYEmNtVBLabWA7s5vkJQAEikRkPk3oeBLIjE7DXL8xQgwTWICO2g5UBMI9IgDL5MlUSRJl8yM4TrYDwgVCjXgFDdMB6Gey8AiUYTBI/43cCMVimZjA5Gq61J2dekpoozmpePuDcYNhMy6cpwOR6SGEaIXC7FeHcGDPA0p+RkySChM/Jr7gw1p7rPKQrY0o7A9QK3EZ3Hq+FAQHW/qObVpiT9hZZsV8ie2tVRXrKiqDQXl6+efND9IKBaqirmyuVcrF3qYf3+ph8pvDvTfR49xUcllIkEIoGzHmv3FxR3hqahXjUPplkNmKETH6LzuZj4umZ8SBq/qGmRJHWG/fRRbSS++CiK5MFy6qhhP0F2uCAgz2KtUqueYUTHQ8XjZkLaBr5/G4GcR6SEdES2PgkMQgggXYXOI+7Zve9qCVlx+UlZQoflevzmxQKdIOlOtaGBBgGB9TgeYMCYjTchGPImZpmefuO/fWPTntdd983du9/ce+G5qqxGtbmLNz918cVPvfHUxkslmaC9ZwGioClPXf/IHtLNPfnGnlY+1iSxuU1PvkF6bvriVpg8Aqx2TDZjFPXfohdrWwnPbXYiLwLLpGpVj4TcJ9JrdBaE5odhMkCJc0hg5H55OyBo+UnfJ5Lt+4iHN6DPVisR3KbELOmwrzG/3fgRmN8gNZtaCPMrMCRV5aX4YqDqBBaTCIpERUlC01q1QMIKMwiAiotj6ACq0segNF8htj2G8mDl0o5VxF9kA+3ZprVz+5b2mQLTpMZTofM27njKffXpHXmeD8f4CU3Z9gAr8tHivj7/vDVzA337ilHeHaZNM2oqcjlydiTdc5PQdPbweflr740b7X197QEtBMBZvOnqG48uHHnmxvVTwD0JysId+fNmzo7yakIPT9BqU6fWtAm2kaDvomnAdBpCJ36Vz+O6TWz4rRygxUFqGPQfCJ+vgC3LJhkdBTO8aRPBsC0mmQUbUC6B5GaqDoySBLpA0Fyr9KEk8CyXb2QF+TEkxlAkKEAz3D+6P3T/OINGGJEHM5CNJiJ7OmmDB9P6P3D/+p8DCPV/gLQP+pH7bOnmtWtvXrsqvri7e3E3LYoQVsCrh7579BBLB3kBs5xXuxuCDoahBUzvf+ih/TQDg5ECt6O45pY1a265Ld5D8gMfkbmWT9BRsPNjygnqUYKVlv4/GvoGqNk9h6SEJT8hGTyPaI6mn/hkJb1Nh7juC/d62nlExhjTT8sUfWpeYWoCQY4EKtSBYz/yEUpWfJ4iBDzZSzVksJ57AJeFd7tf4DXRlN0XZSul/MNO2igpp+2L5GToxH2hpG0b+FHDpg20huP87g/kVEj9v6NzDHhOP+H+Rg0l3euUkHHvvUYoZLxAHr9gUA0/+TlvXvU8UhPJQJop5Ev5vHu15nB8Ju/wlg3VShT/8MREfMWJt66gJ4++SFOlwhUdvcdKAxdPbXZ/SYbZOPo2esRdjPpede+bt75t57rrz21dM7Jp0xi22I0/wHsQRFaBTlTppwFZwKU/WEqkTJ02E4apC5lOURfNBG/qSqaTzzgZR2czPPx0GqS7UAJmlSqdWqYC4qqrmU6m4lT61UOYxhJHCyxQXGahKDCBmKwJUkpVw5M7CkayIx5TdFVmDUEMsarGsTSmGR6DKrPwLqLhCiojsxwvcAJLmoHRSMIC5lnECojBSMGsgaAzFgReU/100pIkRiIvypgTJCGpyi3tcwxDSwqCoMKH+ICakkKiJMmFiiqHFVmURF4Q4csQ0hLZEFhBDPCCANrCBgRJDLAsi+EXOsCoDPzjYCqcwAsyggAYfmEAhjdg/AB8Aj0OsEsLSRwrhARsh4yMIAdkmW9KyyonBhleVGEsSVLgEwKjiEJMDiQCsiSI/ngcGnkRvsmG/BwslQsYkqyqmiEHJFnI+WxBy2CVBPuYzFUW+DjNYKz6TNn2+RFtqJyAdU0WaGyQKbOwLFYgd4bMnZdBzXjyMoZ5w0JYVoIVC9hgVZEnBVgaUAFhWIwcAeqJkiwp0JtmRRa4wAEpGFIFMjJqJZ62ZFW2FUEJcIJ8Rj6R5L8yRHLrPoSYJpQ6ndfD48oGfosXRf5EEq74D96NH/eoXsbni6okqaL7O1ET4dd9oV6nGnqM8HX1bADK9BFL4qVcaJ6rbx+NhU5eer0P+ct5thFPeWlEfPtrmk/gJrWl+v2arYoB1R4x1pEYabU4smvSh7n52cEZJ66XvSwg7U9e01Ma1hXZr5VbnHmWUzV1FyKqbC4+Gd2/dIok1etegvG0z72OUiAuWUtR9plpz9PTJWCWTDozNt84PTZd7C3DyywBZPZ5JrIPIjLyUwQsbGkAJwg9wTPSffVsKB4avyrOCKhGd1qvLyvct7envqxhttP6sGliocMXUwT+nGEEmqUlKyXDb4V0bPk6Bc40WCFoIkWM9rbLZFUe2qF0upS8prs8rMtiQKsEe+aZTR0G67VYWlOyTozRnwgGUTuNg7DjCI1YPT4hGl9+gcGwgd7ytg7VnwppOXdn3Rbt9WSniVhjAjp4ERGnZovjw3mHnoke0eKthrvUXaG1JQz0FXepAXX0MHrYaI1raB96SIO7uwzusTa4u8v1tpiOHnRHyHun9nqOn5LTIcAa51ObzpRXe1w54CVD2rytuFxji8xLS1e8jG6jbVxmOo+DXMZLWacAfBB/Ufce7PjKr+khIxg0Ro94wnK6/McjEL/rpIR+VSXFKqeeOB7UvRzTcPvAQAd9vGOgGjD10axu4uxP65LpbvNyViaq1hO7x616Ovyz9eoQqRqbN9eT3oXRHElt028WBk7Uv599Hpi7iRQ3eVnwRvEUbsSfafjwKolSGhjDGUMdGB6ASIKXTHJeWltDeQcCtmoSRJJEMhx9aPDxvXsf33tF646RkR0jt+uW3L5xx/zn3L88t22LhENx8e/voDnvzF51TbRTQgsH9z6xd+8Tz7eRbND20cWAFTv3PvTl6v7nnts/+NpNSjyAZVS6/6F33nmo95Fb70mU5Lo/8+zPXipKkBQoVUOCUMmy68C/WC1Va6jKUE1pZfSH7jE1E1bRCEICTYOkgrvhMD2i4CX+EK2OPoCKSjiruN8EDI1IvpPB9C6F+kjeZsI4TIPGpx/5AuDQMVxTMhtT6EcVVP3EDM4AgpW6H2wl4OZTiFhrXuMVlDsT3cw9nc75mW5K7l+3ywTcfKaO8WApNGqWvLzIyfdOYa9eb49+UX0X5kzuje2u1HcnPirLmVO7GCQ+x6eSqqjet76r8RH2IurEcSJgDSkiGzHZxq6KRXZYoG1tHhBAMtnh3gwW09tyuV3/3cBeMspzbSNkFLcLRH24Y4AIsDZ6mNgdelgjwjzQMXq4Y4De08jBor66CoyTgT1UiOTjwQWM7aMQ9qOal4Cn/7xpLtdRnLt5y/3z0YKO8zvQfNwUidyP98xiC8Wz799y8RL3q23taDGdcs5u33I/2c86+f7Jlxl/w2ZkvYwpxQJlQJqKMDaHvLyjRzTnjH0u/VSSFO8ZpeYPOmhf8+5mdJ0z6C72twTdXUG7GVPNdtC9xNvAMrONHHT50hn0EzNnjs6aeQkeSqdHh9KOkyZaimYSq+A+qX+usf4GbnzIW3cZOD2dmutlxju9bydIduU0M8fcYYN9ZKJjzM2kTqm2/bECHVWSylYllFSWL1cMFCSg9cS75LqVgNitXdOmdeEgubon3B/5ujKZrvRxf1c63ZV501dMp4vpObJ8lZK05RUr5JBBbyWvjh40QoCdzyrS3vujB4tnoUP+DHnZd8bNy1OebPC27EmxgwrExJSKEPdpqMFnq85ocsYhQ+LW+hYUyY8EeXol8Nr9OmH1lsUzFNYXVcqDi7ZHM2h+yAmjBX3bF83rvk2MBsVPzdsAsrGkvQ0tq4tAUWgKsUJ++6LC5Hb3a3YILZ4yb9H26m1SMCp9aohIzNiebQLm5/OoX8/CePtb4LyCWPWX/G6v34/+l7+U9bsXoTv9m6H2vL9MLllovMi9yF86w760UnPG54W9bUAELsTbMywVSVLHC0sABZRsLpPOlR0IDPuQt3wgR5y2TQIubNIfhoAXzjA+o0hgruzXAkpb8203drerAW3SpRhfcsNN6Ov2isFa78Y1ay/nfC2J6ecrKp42tx6AzTszu/xDupWhg/pUv5S97exDh86+Ky37+yDo4tvp4U0RMasa5W/O33TV9oubes5ZlgioaRxSex85/zBC7snDF3z9n+xDj4kc+7HCm/kNs2ZtmIVWnHmnv5KbRQr5M27U+D0jgBWUn0qAblC5Uzbsn1tuVN+S6SNZR1Spb4PUc29EjAhS0xAQnaYamor2foI5d18HnxyPNcUlc+AcYsc23rEx2hRJyeZQQ3WZT7Drrk+2tL7YpFRTQk7KhcH+AtH5szdcPDtcTURSSlbr0z6e02n9p/E1gEZi6RNjEJyvR7mfHGA/zTCHiQfa6j7gmetzt8tWTDnyyQmdr3LsESmYkLeSvJmUMOUnfA2btAf/0LOZcaD7IoLPT++Cs43UEom8vZlWyqgRZgMkbkCuPlTzNp16URzZDeilIUwk2ioVCX8KiD77Lt22dXJBvjbJSihO35eWPeN+gGS0DcnueXbcvuF7apZ0yqrfu+HMKndUwaLiV+VnFSaQxGVohd/jLUrCkpzuKe7f3BvJSM/cOfqX0yMkLG8EIA6pWgkYkE7dKSUVTbhLStoMcIM6+YDHF51KAV/aAf2THbYpDbt8Wh35QD7JeJiJ2OkaEbhT0u6Y44r86SIdV7LK8KO/r7Pj94/+2GPeK/foYrUqGPe8MrrL7G1r620dosuNwsuN+2xNW5/86z113bvnr0n6Wxt/ded1LwPcGR5W6dDL1915zGojG3RxWN1HC2f416CHsdKnMZZteoaXoQhmOtud7mGrX3p7b+hfVbzYH1LcmegJLZJRXGCaoqBfKQ3dRx7uL1H93phtoGAZcgYCfjx/FWiAEaeBqrHnsbzwx8t858ZhdYYa7PilghCHzQCmmYgbLAzk+gHpdgwMAWLO6WYOJPrd5gpEySL3Xd06cTt60/On0GRif2GARgwOzldxYLDTdToGBtpozbIN9JpuORlWcQxLz1mxU3tnwOddXiwxCLFd2smTYxq1yqkTHYTBJhjhuody6vsdHpPHkHL99BeJVudasshr5sDdky69YdORN57ceO3mSZ8fDOq8kVS/tC5h2E0XXPGs++HR7auabCPfeaDql/b4taSoZrsZq+O16y/7/pYt37/s+p93RtjutCIkozy/UrB8K2JC6rErbj127NYrDifF6DKfhWsJmWvEzvh9j5dJEnV5EIbH9fMmOQKU88ipmw4+gGz87+5xOSmNviXQw1iTDBajFbJAl2Q0evh2KWnJN/xXLxp9n16C4rI8+jNRcrcFNRnNxgI9JCdG37tNsZPSdTU0lZb+OJbr+p3H+wDVRs2iriA7riShqwEsAQenIS+ha5+JXEqA5TzVJ3nhjwOYNAmgSXaKr5+c9B63ebtKTiOE60aNAzWV+sj09YIQauLNdevXBYVImOcTB689sL61p6d19PPkasGMpMNfC4Cum6ZKr9OCQc3dgTmE4I9G19F/1kwzFgjoGdWcI+pfI+33XiNpPGcieJ+2lSiA+GxXMSsLWlSeODDwp5429AwZ2j2rreeRkEBLz8dZlbiWZ8gn3LO0II0Z+lbaCMYC8LH9OlyrcwBsBHfLjGCt72lF21p6T50Tex7fSM7dsmkvmVApe6mCKskM2H103ivHGbvqeHeeYIZ8/UiZxXtiSTbVoG+jgwlNDukDLX5yK9COZRNhjSOeQ49x7PZDAtJ8QZb3m5Et1XRM92NMY7o1oKQWDi9sEni6IyiEJ7Um6EvPCztKAK0f1rNiSsk7mqDHtGBIsDjH9HeunD5xOTtHLOgZznlDXakWeDmfcbL42vW6xgl76JYXr2aY0opqGyv5C4jPm5ML2y9YH4yFwpoYnj79/Lae6RHLJzQtWfPAss1Ha1o+nM1N3FbaX9NYOW7zsagoSv7hdaGYIsWnzVzXecH1z9y2MSGrvp2PuS/sD/JWZtiSFl/NbHg0zUR1QB5ezLQbvw4y6fd2KolNmgVkBhKdEsA6lHbsTCA1Jn0mkSqyezkuU8COy3Lx47NfP36P0/nR14vTphXp7xenvXfrrVtHewiEpinbeCE0uuM9gozJBd3teigZHSTN48r0gXdZblrXiXcJaAYkfc2to6ttAwMmB0A++pph01vtZCiUtO8DcA2/79Zr4/fKx84pBiCeoXypSmrsD5mlCi5VMj74w9Qodervwru9f3hd2N0bdvdE6JfDjdKYHK6DcUXAb7Yv14lYEzl3v4xSty5DL7roFbxn5uiEB6f++gv/2339sgYuCzXOB+aBzgNE+xmbtzmngIljJ0XvpAHIL12za5ZnRAHSM07NqZIzUxBP+3mHz9f6sE37gqi7e5Wvr3fS8qoQyOB/ezKy1upo27T1Iqc7+NWRpYPlZFTOnF2pqO6xm6dPndA7+fLVU2RVke4rrYkg1LVkM8ASYdZj0Ytlv29owxUTF1rvOKuau9tbWthSe0xAgYe7lmRr5Su2LI20+c7ZNbSoWdf8A+dPnuxzn123pH3SQPeGuXmyp1PPSV4Pa0tQELcQgKMg3raqDjl+ClatBJpXATxT7KO95B54BYccL45jG7DNB9OeutR90/0SM4xjqtZTiWT9P/fnbeZbO9YfvmXB8BNd+xes+Exp0n3DSw+s7EKojNnuAf9J/+U4MCFyVsso5sNBM8w9jruYyZsPPfkFN9BZjYfpPqcNoe41e2fP2kE15ngAj+Id1HLqQnJWokqcVhvKOzWy+UdwGcyxUE+f2iSKJsEUOAJykLEecZQcMBmNjct+BEXyDFZRqdZsD1/COOCfWTBJZG2IrO1HZhShqDlJSzi6PlNv0ZqLk6F+oRlDPWUH6jN13UnoVTMWM6sI6V43rUV3Kt0oHrwQ3p5cbIZ6vdtEd1L3bIRmd3fPg6AExaLWWjM2udSsN8NLmhPXJ5nReLCmJR0NBobHpckx88JgDHFsN/maPgOGSWrwNTKpmp5ohn6GYzjlyQ6A8e45GM3r7plL6EXw3D34AXw+yKtFtVDd1DxqFXUldQPJMmgoToOddfJ8sX4yj5z9xmAyagSv2ZYXgBFk4LVUG09Y7zRD44l3bB8eYu8JyIp39boR8+x4/5HC9k51eG/WxyrFaVKnmY7htN67aFGVaXOSG5qyuLmSxExmHpYg/miOocrqGaocSfqDt8pSRE/LZjLceRaiF61rb3W1li6fzoNsTGhqjesFM6cGkhtntUZtJZuZPcUn+7HEqNkb6FrOL4GtldnthRWaYfe4T88I9mTjMq9iwTGQ4JtOO13zl/Sb8RnLZgWNZflqmm1tsuL7kGZmg7kOK5tvz2dGckFtgA0lA2W7NcFwvV21SRqHFD5oaEawHVhuJw1Hi1iCzruT/Oe0BjWawSLLIqYlMmWOKEx1uiw5gE0m0Dpkpw0ruNl/TS2WNjU/M3tgoZnON2T7IP4b3gr6txkiIqfaT5xcjQRCJCFke0eayJkgD3Hn8p10gZDfrvYDG2tVAtM0wgyb4DNwhpZNuNpPl8mJKAB1hKlFyzvGTzhnktOtGuERbncs7eWfqP70Pjuy7apY5LPtqvji9yWt5UA8ddW2WNh9jqYxEFtUJ9mmopuGryLi4bSmKC0aUlCgFSnMIIdmzliGWL06mWEUxScbgiBNy9E0qwFmVVGsgtDwQE953tZkZseORNMNrZp07CXZ13aHGbryykjotuag+tIx2diAeV5HIsJ+GnEiz9G1nt4piIOaoepVjELNtNFVjLPzp6d8zJQAxwIMEXCkIAiYZxhuctC+LBHELYjxU9T/A9aGumAAAHicY2BkYGAA4qd7Jj6O57f5ysDNwgACN4wZb8Ho/+/+V7G0MncCuRwMTCBRAHAHDRcAAAB4nGNgZGBgbvjfwBDD0vr/3f83LK0MQBEU4AQAtLQHjXicY2FgYGAhGf//jcT+hSlGC/z/HZT+T7FZkkDciioGAI3rC38AAAAAAAAAAKYBZgJMAoYCrgLgAw4DiAQABHwFOAWKBeAGQgZqBqAG5AdEB7IIFgigCUAJjgnYCigKoAsSC14LqgvgDQgNQg2SDiYOXA70D0gPfA/QEEoQdhDGETgRiBGsEiQSUhLCExATjhP6FCIUghTgFSAVwhZqFtoXBhceF4wX3hh2GUwZ9gAAeJxjYGRgYHBiZGPgYAABJiDmAkIGhv9gPgMAEKgBaAB4nGWPTU7DMBCFX/oHpBKqqGCH5AViASj9EatuWFRq911036ZOmyqJI8et1ANwHo7ACTgC3IA78EgnmzaWx9+8eWNPANzgBx6O3y33kT1cMjtyDRe4F65TfxBukF+Em2jjVbhF/U3YxzOmwm10YXmD17hi9oR3YQ8dfAjXcI1P4Tr1L+EG+Vu4iTv8CrfQ8erCPuZeV7iNRy/2x1YvnF6p5UHFockikzm/gple75KFrdLqnGtbxCZTg6BfSVOdaVvdU+zXQ+ciFVmTqgmrOkmMyq3Z6tAFG+fyUa8XiR6EJuVYY/62xgKOcQWFJQ6MMUIYZIjK6Og7VWb0r7FDwl57Vj3N53RbFNT/c4UBAvTPXFO6stJ5Ok+BPV8bUnV0K27LnpQ0kV7NSRKyQl7WtlRC6gE2ZVeOEXpc0Yk/KGdI/wAJWm7IAAAAeJxtkcd23DAMRfVmqDZ2nN57r04y6b04m2z9CRQFSTyiSIWkLM/fh9Issgk2BHjAh4vHaBFtYxX9Pw6wwBIMMRKkyJBjhR3s4gT2cBKncBpncBbncB4XcBGXcBlXcBXXcB03cBO3cBt3cBf3cB8P8BCP8BhP8BTPsI/neIGXWOMVXuMN3uId3uMDPuITPuMLvuIbvuMHfuIAv6K8UFy0+4L7fGykpylLG6Prgpus47YtzajTUepwutjKuvGJ4LLkOilJkae0I+d4TUxJ3cYjycIwqSuTVsaO3Jaxa7glVhlV5hU/MraSSjEvO4rnMglPjqVOaumbodjVxstKBghpNPO8dlk/KDVBJI64Fc1cK6p8MrUKyrn3pKf23JpBl3Pr0CvDy6Q0Q8H14vAw3SKv93jfWxKSe5owVv/KWCjjKBNckS65zZTZMsSiIdGuZuk5Ddt3ZHmmZDtrsLCkToXpukDBpltWBEeX3WbNOmMp+zOQm/Em8NnAXAQ1P4GyyeFk0JM7LKjRotvEow3/kE+Kg5Z+s2yMZ56OPQsTBlZIXSeOt4PlcR+cO2J18IWVxrud3yHzjfNGUxT9BWZmtFYAAA==') format('woff'), - url('//at.alicdn.com/t/font_679578_dishi1yoavm.ttf?t=1544347866779') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/ - url('//at.alicdn.com/t/font_679578_dishi1yoavm.svg?t=1544347866779#iconfont') format('svg'); /* iOS 4.1- */ -} - -.iconfont { - font-family:"iconfont" !important; - font-size:16px; - font-style:normal; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; -} - -.icon-black-cat:before { content: "\e65d"; } - -.icon-white-cat:before { content: "\e65e"; } - -.icon-hongbao:before { content: "\e611"; } - -.icon-markdown:before { content: "\e664"; } - -.icon-windows:before { content: "\e668"; } - -.icon-right:before { content: "\e67e"; } - -.icon-caidan:before { content: "\e67f"; } - -.icon-delete:before { content: "\e680"; } - -.icon-message:before { content: "\e681"; } - -.icon-link:before { content: "\e682"; } - -.icon-weibo:before { content: "\e683"; } - -.icon-info:before { content: "\e684"; } - -.icon-forward:before { content: "\e685"; } - -.icon-share:before { content: "\e686"; } - -.icon-fold:before { content: "\e687"; } - -.icon-favorfill:before { content: "\e688"; } - -.icon-time:before { content: "\e689"; } - -.icon-favor:before { content: "\e68a"; } - -.icon-weixin:before { content: "\e68b"; } - -.icon-github:before { content: "\e68c"; } - -.icon-notification:before { content: "\e68d"; } - -.icon-tags:before { content: "\e68e"; } - -.icon-pulldown:before { content: "\e68f"; } - -.icon-search:before { content: "\e690"; } - -.icon-pullleft:before { content: "\e691"; } - -.icon-notice:before { content: "\e692"; } - -.icon-attention:before { content: "\e693"; } - -.icon-rounddown:before { content: "\e694"; } - -.icon-upload:before { content: "\e695"; } - -.icon-douban:before { content: "\e696"; } - -.icon-QQ:before { content: "\e697"; } - -.icon-caidan1:before { content: "\e698"; } - -.icon-appreciatefill:before { content: "\e699"; } - -.icon-appreciate:before { content: "\e69a"; } - -.icon-close:before { content: "\e69b"; } - -.icon-calendar:before { content: "\e69c"; } - -.icon-location:before { content: "\e69d"; } - -.icon-check:before { content: "\e69e"; } - -.icon-roundcheck:before { content: "\e69f"; } - -.icon-camera:before { content: "\e6a0"; } - -.icon-likefill:before { content: "\e6a1"; } - -.icon-warn:before { content: "\e6a2"; } - -.icon-comment:before { content: "\e6a3"; } - -.icon-like:before { content: "\e6a4"; } - -.icon-back:before { content: "\e6a5"; } - -.icon-my1:before { content: "\e6a6"; } - -.icon-more:before { content: "\e6a7"; } - -.icon-question:before { content: "\e6a8"; } - -.icon-pullright:before { content: "\e6a9"; } - -.icon-countdown:before { content: "\e6aa"; } - -.icon-mark:before { content: "\e6ab"; } - -.icon-unfold:before { content: "\e6ac"; } - -.icon-file:before { content: "\e6ad"; } - -.icon-my:before { content: "\e6ae"; } - -.icon-write:before { content: "\e6af"; } - -.icon-community:before { content: "\e6b0"; } - -.icon-hot:before { content: "\e6b1"; } - -.icon-text:before { content: "\e6b2"; } - -.icon-menu:before { content: "\e6b3"; } - -.icon-bing:before { content: "\e6b4"; } - -.icon-sakura:before { content: "\e6b5"; } - -.icon-pixiv:before { content: "\e6b6"; } - -.icon-gear:before { content: "\e6b7"; } - -.icon-dots:before { content: "\e6b8"; } - -.icon-Hearthstone:before { content: "\e6b9"; } - diff --git a/css/fonts/FontAwesome.otf b/css/fonts/FontAwesome.otf new file mode 100644 index 0000000000000000000000000000000000000000..8b0f54e47e1d356dcf1496942a50e228e0f1ee14 GIT binary patch literal 62856 zcmcfp2Y3_5)&LBzEbU6(wGF`%u_do$I-wUs=poc3^xzP>t859|l91%ydy%{4ZewH9 zLNU#OK%5)jlp7M#adH#VlN(Y~MSVYG)7F`Dsts8mQIv>+ztD)dFw+9OVG%`1 zdML`ns?&x=Qnp|IfM+dm&(}ePcdqmf37+Ghm#p%f+FVKQ2*chjkzF#ZB~9w-bef!xGBr6D7h{6UGOP@t%*!8rhr zqTX&D_txFJckW8F88SgJDOYWQiq1}9HpST zU`<34PZ)C!_3}_&M2)6kC53tq%16Wv<;B!kk^fL$a$g&o8ZTNrRL|U3FQqy}Aw%^t z%FjbIl=r0M9>Z`rYKq77t>{++@-k0@oM~*1+}p2(7`Q4V*n=HYq=vsI?g5v}-nP z3|{}}ibb1(*R0;YdDD}@+q7nj-e?F6nlWp}oWMD=X3yOms||yGW^I(#9B4HL0`>*2 zG{Pq6qjlCmi#Eba+D94TAv}p9V_D5%k=nR0b4*~E)oRv<#|upiMk~z0GGmR=Yz-V5 ze^pq5HgIj2Au?HKwVD>qoJsnJx#u=RZ=|+Tk5lVmJ2z1#N=q3aw}vu8YK7c-N>4=y zwHEjdq-Iky;2wVdD3u7c7HAy@>636rQ}I+R6-Jq%%_eFi6$}s_rB+ajpcD*stEugP zo136*FtrWZo1wQ}7%h+r0@$R$MYWppE&yKBVk^ODoieQIXI-PMCWPv3^jr9p7*cDDu9q6%xx{?3;;b@n3omixrmwx*YNmZf9p3xm@i;8 zp?TpJjUB@J0D^@;Vq@WEgcj}}s2gf=U*-SLs=qz||El20$!O-RlsfnS_J9)6lK^rf z@F|+|fem;DctSVzuQ6lCs>g=*`}C{(m-TP#-`gM6ukSbXXY`l%AL#GuKiB_u|L6U` z^xwJVb4z_|(yht2X53nKYvZlGw+y#3Zk69U@CS95u-8E9*x%q${UiIw^e^w<+#lK> z-M_Ej)SuN~+27uOroXrU-Tp88`)^UVM&1epcn{s0b!+*p&9_2tnQmp>swD94ennAt zcir7`_tDR9d~W}I%Sf-0+(^%nvXRn}u#+RjBRxinMp7g0j<_@8_K4p{{5Im&i2f13 zj`+pr(-A+9_-Vw=5kHRjVZ`?%z8i6aJ1^|@`u}w?=l`!y{JYkcahKF7zYy(4XAHaLAh7>kswf;WDJ8 zodnW*&mk}LA4ATyzs;HS z&jMIk)X1SUY8WQ8mk8qz!5gX{ac?|#KNXah-`{R{t;jx;+arrw4mTM?C=b`)g9B|K zKbe$=Z!xqbc>xxr!#G3cIJ_43-sk>0XiMsaXE3e+56S@N-W&nebhy1GS=0t{!`!CB zeXl$`20SDCO)=z#yl@A)%foXM<_FJ&aY(!S?qN9ajLc&>wDpF%>BD`=97%ujZX|^{ zkUJb;(Bvllh3Ak$Tkm1o9O@S+z@h#=rtsbrEayd0}DguL&kx00m+ja=Bpt$)C)Jj(+GE#@N5{qN_YooPx`~Xe7HP3 z{%{$_+eqqQIN>I3Ngv^P)=&zdhx-v8M)G7X!|w&{r;s|*7v>g7Gy(!cXqP3lRov@8 zR1fWh=MwT9Zqok0{>Y@@?`{gwSN{7?L`gvE7m2*?lX6LUm1893w2Pdz9?n{^!(W2e zdWpaFl9b@u0BLprBcj#q)KgjW@7iqlGG5Yvz*k2E1b+8G7f(?i1&vA9XxDLyUk5nmBs6~80?xA;He-^DJ8RN^C1NybWMO6ExxOV&s>OP-SKlxQUu zNxCEtRJdwMgQQb(MDmQ}tmIiqujCEMHOY0!HkBMipnS7>{u``WKCv$?i#JtM9$^4u7g87d5nYqQ>kup*r>4Q>U zI$1hRI!8KRx>mYFs*@&5bEW0dI%&J~sPvTdy!1usRp|%PFQwl}f0q6xb;-PBD%k|t zY}tI-V%aj;YS{+aQ?dwIjLaxYk`>BoWsR~9*)iEk*+tn)va7OpWS_{smHjSrdP+V0 zJk_4#J?D9@_1xwe?HTK7@=Wl|@+|Uf_B`o%#`BWri=J_T=4`v|*&UBhl-L)Zv5p0%+J>@(~s_AL7X`wDx7eUJT&{SSMK z9pETV%t<)~r{X4Z^SBk<7A}m7;^H_fm&|2x`CJ88%QbUt++pq*cal5LUErSMUf^El zUgJLCKIVSme)FQdBwi!E`Us0Q z%p9T98WOazMw1pS4`!>y8fGSUh&Ik-O^&x{%~AT;IIAusHq0EYwdzPtZ?PI<%-T3( zf;Poyj0@2lgv1zcHAY2Q^wEZ}*a%}ZXpR=04ir-WpbZI&wOaLYTC*`MGSZl6h=r8Y z4d>%cq(*NDHzt{4!;(WH^yY|Ityyc*hFL*fHES(8GA!v5YmA7AiVce8e_;!6kC&7Z?Hyy8O0n%G}drq zY^2^A7ORi2YLl!XIxW$Sg>0fe(yD_8(T0#%Z4_w&Inczd&{N0@YP37MFWzF+MkX06M(8q>71~9GMQF*2ge2%AwMG*R7f)W-5CO{_W(pxQ1Gtd{5P-01VNw=dm{|+^ z6%j+0-eT37Lc+r$ViLp5kx^l=IKzeEl&qvF4E7NA%LH2ey@o@10m4vTyAQN~fSq7A zx?gWNFHF`H8*d3AI~%7r4CUPWFH{<1gk*m_30u(tfF`iWB#nqQTC}hv2E8F#m?SuDFTQn3UEkkc8@TWC!-F{GC^ww z>q*$~q;*EKK82V{VgW}(B4CfL)4q56 z4)D)xH0hF~^)O1fFcUYy3iJruY7hufKutIFVd8R^gr`Ecp*I_TDL24)U$r5ORbRg-pCjNXR?8@hRjlg!)^B z(D!dOu%iM74)q`)qGOHW+C($Zqs|&;iLn3^gGC89>$Oo4U_&EF=f-R>g=zQ41JxU% z^ai~(IaX`22o=$0BPn|0z*CK8 zK%DqkW2^;?Z85-a0Z6ni9$1JOKmq#-j|FR7G;j-Zd_)ZF6-)}K?p{V%Lg*B4TBUeba0p4h(`{lkhnUa;!S@mlEwb3uRAAna%X|R34lqnNUbFX_%$pF{0bXxjWdRmGt^CFZcG*MWq&*% zpD-JDPJjsSWiSA$4WFQ~!(L z(g@%$q;&`!M=`(;0H;FcJiPEeUTy)bGXu%#O;$^MxH}UvXTe-kd`b#g8@(3xP*30x znc%M+5eqCjy*4&-n6xnX2oC%!5s^Uj?t@SuO@S=#uW(bx z{WX6b2|^FDjXG;w?7RqzWiB8Wa4|QJBTGftngtFZz*C@qy(Q$Y1K?iO@DUL*ch+1% z9wK1j&>$1McLEb&Zk8+5#cF{jf&aTxfx3yPAYib-S%s<1oju2WfRYkWB~Tuak9)I+ z(-1(skh!xT*2bHo!{JN-dNJ<8yjM5m zG60rH7zk-~uZGNixK`kLe=CruA#>*j!96b-j;Z)?t?(j4`6Spia^GJE{4Ojx680Zt zNWe8%t069;H$XAk92OS^LR}2VREDV856=$Q!%mO|6<}C_6UCa{zd}W<5upDiblg`Y z4Cvl7f*bc0-6U;-JxByu&zNWdaxxqBk$}(fNs-__0UlzBNj3priZ@%}*dQl4?7A@u zxFO-}z(C>X2fTOs4u7+;J0*%HiJsMQxqoBiu59bC{I)* zIwpEv)GK;ZbY1kl=qJ%1q5%)ugY$R_l;6D`VIDej?~k_t(Uq#ab(*CcOB-jjSFxlRYtLG(g8nl{qO zbOHT5{ZCLqIVOM^&rD@zGV_^TOav3dn3%)Nr_5K(_smbsZ;XR+Nxh{3(y`L%(je&q z=^E)esaBdKO_%0LE2WLn1JX|EJJNqkKa+kfy&=6R{Z;m$EI>A1Hd!`RHd8iFwn+Af zOe@pN;$&u7o$Qe8lVqKiD_fkJ-=Jui1W386V`Pb1S)E zZZ{Xs={O@7&!utMTpf3Udy%`wead~q-Q@bYKfGjKDz6z{L0&7o9`}0EYlm03m(I)J zmEe`?mG4#O)#laVb=0fN>w?#dUN3vS=Jl4>2VS3feeLyw*Uw(Rc{#l9deh#V_egJz z_ayH*-iy4Kd2jIE?ESR2*4ylzxhxHlZ~0u+4bSNe2Avwqk&^$DHRv=KS#CD3;S~8SQm|;x zN%uXOg<%H!6sOWpT07MECb~&~iaal%Kr~kA@W=0ly z{t+$Uxdi~XHN7!e%}J9R(_7UXGlAu{@LgPTdU`T9mC4D=%h61g=2Yj|)i)V?b+ui? zE#uW(1@DS-MfI`{o?I@T&abi;)~M_?7x@=n*uipt?Z;r>c-GlBp66Pcnp(J_b~W~k zJU4;W8IE;z9Xr-_5FpZ3`8gH2s@$By{Co|!66RIRN3*C1^>ST?V>+@U!LTF2up`?- zL$|?lw4^nqr~{nKnUu7&6b%lRrZlCsr~{Z@h76@~^htykcl!R`V4$yrCB3Hbq$wn746_@NOa-3Klzp2l^gn2VQjbAuo0?#JQLL z$Mz}bSE*b<%<3&$R%={A(pBfD{9}jO88R43TRRf@j!umu(~;H5a&uR%M853YmDj$} zIQyjET)Xy-no~>!4446Ue9XYDW$(ym^9NXsBiI!j&bBmH*VjYd5uCtsQXS7>`8HO> zDbN}`0?ouLy46Rz8=vn%p8Uqm@ezB}D0m6pght^=)w6thX?kgz2G3qG5zoOZl-P#$ z;62Eu9_V9|U>i5{jy^LBsJUYYou6NrldH_F$f?R#6Z}L^@PMpQjwrgSs={8Q zoOChE&E(fDVqJZ+_^S(9K%?|z4Qv@&$Gd6owP0l%>_y%&IxVx)7#jOLcGPC4#d!g42=Yrv!#JYwQRKph}ax;`_tIz`20);H(1 zsJH++i<8d1wvyoE7px2R-tQK>V~5{WU|KHT4=~~?>;J-zTfD!37u?D8Q>s%Z8#$yy z%h5wD_x>xdywB+ughWP$WMyPzRwT*3=TpiXGn-0FZKbMbDvnhisqR1g!-dcPCCh&K zU-?&5z+T@$$>=nPF5$IkC4LdF#0#)`=@RwFOYj1u#w%4&w-#zI;XGu*dusADPKoOm z8YZ0Itm0}4+W;2`1!=edNfwuq23(9Y^AiBwidZ$*g5O$1LZ$6+E(!Uc|#A>nDKry|{>zcC#+K%kF13+aeB` z9VD9p6UpVd$^V7B9CH{zE9`mIIchS3J(9JvNG|5m;2dy7E#^4~49g)Y8pA2@Lg!dK zg2BOf!)Nnef3=~Zrna)izq+0-OJ%Z4GBT8|Rd_LG9C|4SxZ~=3jfW$p9$pYw$y_dg z$>JhlV>uJMiW^X%#R@E9a470Q>roqx9zaWQErSDbk~yp(uQ0DT&%cNvuP5iE^LQ+u z26PNWna=x2;dpDwYtF2PX<;eXb5R_ zZZpZ*jjdH0&h{xRQ82^3_v)+fai0dznTkb#fpNA>TZj!$wMBp(y(a5G+OcF=O-IX7 zI1yn7^P5|gEmh6+^=fi-zRxzcYPfTi=c-TFqDL>HS)ZW?kxW)_xu>W{<;ZnRKUuRK|0& z{yIfL1XJ`OLv>qeQ+d6Ac^h59pu}O!d{)1 zv*gVuu9H;FWrMuddxQ0v#UA3Pz#$I+SM%g3Mhc$GgAw6?7&+-zJQ9zbG>QEFIth(L zBY*uBja2)zlewX3ESktVZS|5(mkM&oHz$Xv$b>E&ZkH^c3ZkKeyP{@`J>81Zl|K725KKL~og7cTUw&+r2C zUk9>oB)d(Z#5JNP*mUmDq4TywX6_8%+DKj@yYsN}P;F;x zs~Sy06X}*#uDQ7i4t1y4@e^&gBNN(#@|4_eym;lN^{dj7Q_?EUGMmj-qU3N8NR(vr zL5@U0AW!DyaDfW~n7L>qoU7ycb%~=uC}_($bO;~RAg|+gl_}Tm%SPM9pFM`C+p(U`f$Ogj39`p#D49F9Oe2B)Y(1=eW zw)bneg>cL|gV(T-@p*5{tE=Jcu_#{Qxp*GXIvt3kkYHpQ3rMZzl>31_u>s6-4t1k$ z+%4rq9}T342VUdi$!t^dQ!_JRmu7%?geCz#$k7y78#|!3og3_v;<;Rny}YW5!%{qk zYr=}g#4>emYj$g9vy8LVs?h8`L_|TiBLNz~6T}mIn`7Q#x%%eXmYM^ywlbt>Y*KQW ztPgGNM5|#@Lho##(bo(L9oRr~qe#cANDc%f=kjIw`MHHTDlBJG(mA{ekB4g&=UR+@ z#y>k2b08anAWukZCeRZa(ch0ofCOX(Es0wN+K`%qt+#QuZ7_-y0m}#2?n`dsD*wD% zU9TxGD=jNm!ZzETgs?z(%&2dH6S29assTs?*$2o*DW}7G$(=zkCn=n0K=g91j%PTP zO^O&KdH%vD8V)3XPz7L>;2B8w07~qv;%G|;IoyGV`0yOvTG|Z!pBsQ#a448*<@V{7 zdf2gEhBIedl9SbV5}wF0Z(rH8R)gfF3J%|GPxzE<#INuQA;=Fuj>54gr^1)E;a_nA zo)4mW8(@oc8NVA2@UCNk;D%})%w{#z2H@ok=K_g?v+@cKVge`%egi3pAfR$7s)V8% zDeAC@I!=iS?|Kv_iSmi9WFEB;;){P5Rf%dKM4(>OC~6j+5}g+P=`qz~g~xw9Zi~l? z6U67mcO<+dT5?YEC%uhsrC(z|gAE zO*vJ0Soy8esY(oZgqQLER6n4etX{4*s1K;GsNYi~jhAMuW{;*_b1QI4;QGKH$2>CT zA7i<(=f?Sr+dQskyn1}e_?r{PPpF*GHsRt#zlr~zR50n=$@LGNnX+igA5%|F+cqs@ z+S}6~n7(}aZ!^p@%4hsObLz||W*(ijYF6oN$QX$5KDr7zAHmywn^DlpJ_O|_m=Lh-A{Et-MyoGSNERokiok) zBnhB3NFqWKByj{Ii5OXtL=iv-I)VcRzH|jku>?yL&Y*4VU{JsS#rOmaeBcup%p(vg z?BW3W4M&OsA3!q@+*i8Vuj{V(uR|WXD@)op>iqEmJe@|bq0uaUO$x21Z|quaWJ_xUXAmZ_~hhx4bGFsw0wse^@d)0B zL-DjAP%gua%Yc&7*ptG~HMb>n%yYV^Ir+quNu8Y~X zOsAO}fxX6IZ{=QTe4}1~-O+ORpvERWcIMrGol^hUixhq6Nu^Kwy$j!Uz@hXT4-9Ss z-^eat$rCh}7lHN*%g%HL&}$Su8|+c)fPpL~YD3OWLx-U)QRDO)^r8pth-2Z11unc6 zgng%-ae6tu=(e_wW5-~S1W_f(E39}MY+<0HH}t}`?3|LK9Q9xyw$l+A#;7pmon0@m z&K*)1ESq+ndV%!`g!5xSUcduLyEub)22bZfY4K@?Qx%R1r~Nu#$Db%*0|u7If<;f- zZs~|Wl!(S*4>TT2kOs?S>p%Q{+3%`Sh&B5C`;XrEP=ho`23o%ajYA%X+By!lcghCs z(t*>G`3tf5iS25v9E+7>u>TlY=(eddSF1{x5@z+(?=Ec9VE;d`68_zm&3^yMUl5~Q z0Git}{%n4T8P1e5L>?Gep2ptkLk#cJzMcm|(|{by6<_nIywA5V(E)G8Gcom+3bm`G z563%p(Fbx;4q8>~c*j#Xi_WWWENE06tM5GgA^R;KAldIYrnu%>=<-IpTt0YLpJO5Z z7ka_5=ykNkF$!&QjdCo4<9+{Y{}-4YM?Pfn-Sr?2iLE?(P=OM*pd0w2DX66fl@N?-1iD^%I(}!F>Y{#DE3uA#DGd2hEe5<#MzbG*8eJ9rAVS*a7>X z{S`8p!61R*K0CV=3?EN|rl+Y>-AblM$u#nWsCFL|0B zfQG|)pZ4~I6JVA_-Cz?4mQ3W`hJitlTLhF*gLObK6@qDS+lA0x(4E2J0agpr&cu^; zCO{MD_+OBcSu~yntMX9y*I=$xBgAa|S3PuJ@wbLP?TrDFLn7oI!1w?W6b|fFfXJWR zs>T5*;3zvdesBW5jGjNr;s6}*4v+5OI|y>`@(7+gbxs`u84}+uPY@vw00iu76xufo z;xcky3)%Z&;>+Yhm+!$8%J?!scS9CB;mhtZ2z){+m9XdqJo!a-xeFw$i9EJ~O~`HB z##U^V3ifpbIY!5;!OjkR*D9R>68VYgd@_*MUtkE$$-fkUxcc07c}E{~7;XvDpX)Cb|1|XFuvZq>JsB#)PveQe{;jxBiN^8{5K0jUrRqVzDg~18#Ciz@>FQUv zymy! z&*Od810Fl&u{>a&NYRqnoKmjF>yBohOh1`&!vECeGZ#-?l2ulhSKE~}#We+0>ac&U zetlbytST=DEOI$HMPT2?V*?FMarLpa{zkN(ZYfS}NLFDp%px@Hdbg?*+HWKXULd8 zkEK16c|6zUdZ=x9l%!V#N--vs)1Y?7`7@ zUn0ko6}wEv0^s#bf$8Y;nt{g#G6c;O9Rxkp~37xp$cQT7Cj!TNVhT`^& zI&4Hw_&KKS_Q{rzgsVT3nbUxjS!=s=ByFFeTQM)>Kqhz5aopk1G=ntHm(bZMG8dQ$BhNn1}_Fh1}7Nti)0c zsT@ogRyZ#PtP12$h;{@IwrJG15JZTZim@zu2-s#H3a(^DF9b*f!~-`SXB4TWX_;v% zT*RcM)i;-FDx{sz1Pp>3(E_#;_tAw?r_B|uIG=Ss?X=o8Z{QexDBE<7`o%{7?Ua9oUL)qyK{_Ai_VIOP#S7N&Z?ckpe>SiZNU9u zm_q=i4bJZ5(sVGj!PB!f7mo=XL{82L5inMgk&7V{T*SK~8Nwgw=%`(Z+g00lwVjUA zU=<3WUD{k?Dq6tekKu^y$hJ1`S7AGt=)v}92iHh2woB0rmiQX{&w_)RM|6e?WpRxG1qwgX1Z!msyPF7Ub7d7P6Vlc}3fyKQX z{8za}`FR?A4PT@4^9plwl!99goGkcu9*=ILU}-~rO?{;X|K@0ah;2_8fQ@>SAE*Hu zm0Ehb1*Q3A1^#G9oZ@s=Z~7@U&T;h6C(|Pi z>r_B2x`_Sz(lt28)kCN2v$jPmT?xPQJ9rqtDh3Y{nDII?+Y{^5u5Q$qRByH=X89*( zW+qsbz#re{>&mNY!JH4q<+i%|_71QcjvmY20Be`s_Y9ba=Ca)^9*q@#$RFGQTd(6C zD%WBR767mVjOD@V9ovsqp^2K>2HSzmI?N+AtVd2c@Vk*_I(IXT8ZbX?y>VB zUjx`hNA3vvLF4-_R%7+suyd>U8$5c5_dOFpf9J3&TGE@)C^juSC%r(E5|OF3M9T2A z8F=ALyha5M-v?g!X1a!$w-VTSu>AxDq`vRwfu|HHXh4~0-SQeQgF!}1ZYz~VPn9c zflBaRv=`n3Qn*Usc#Ek45eF0^LSR7lb6Mh?HnDpSg`cyk1F(JR%Ob?7Vgyf{qpy_(zgvuS>Vj=cLo{pa z>7>`QufDBBFQFGv3;F@B7jX-I>9Oo}NgLE_GwF{*7W7V4osfp`C!~n`D{ zw)N2Ge`)&ziIhHfGEX#uH_&MpKf(LB?vesIuAl_mzgzL^#-FF3QCH;Vl;)~*24l45 z5hQEJ5XpdL?T;vL1Qt`RP}9%>a6BA^|X!|NjdB_-jxI_CZ_l=Idxa zYiv&H$kZH3Ka|;-Ec<2Ut6=@}QDUDhSUP#7+LCO}G^NX|nW;%eh5%56KxP0ZU4iv*KA7w1xTwa7;q_g#*D8$PI$hF$~8E;@fbZi2er?M%mste&UVe zXw>l^U;pv=3AlcEd7Zho235`~JX|gRb zKMD8VG5SSkg(gI)?#yI@*VMn7sL4H8YOkr6)!UoP8&pmwgM1I4LNhLF(2)Uk4S`SY@Fxs`Oc(;0h69>rvKnWwBS-<;xgEr(x6DibxmxA2GpmIW%yoQloTB&TirQB-&)3iy;JKCM^{C2fZQ!-8vmGcos@_>` zs?06jUahZ9ZjxoybQv>rMOIl>wlW*yIdawc z1=gI%9Q>fsugF}o-=uuC4DGI?OOHNR`nu}nH;VJ$(-gdSwdhq6NdZ#d`u?6~~Z{9B`t z1-wD7iVv{1TrJ$)^S%f-D(W5jPFReasvb;xyJU+{ge@XLF!sW1Y>t#pxHf&n1 zT#>nH|1Pz8XL!_BlgzYrRr(xN=QBka^;w~<(os*A)DqVV3{f`x~wu*<2rlCTY(;`{I>jL zIg(cYQuReK+EM8DP0?Fb7i+$1ey6Rcv#0a&>5I>wJl%P&@mbk{muvs|59Qaf*EhbW z_U+#I{v1%Pj(mLjABWnTWxgjboH*Xqepc3gw(i1Z<%PWN^t0;pv+-Sq_cH?QCUG% zdPQ{U<|=F`!^+a9%Ut<>^NXIy4^bDT=A~pM$7FvlUt%w-s(;S!0?Is#=3GHno8CWo>lpI)FKe$jT79zST+OkX zwj*_?YR}i6x1XsyQCHPo(E_mQ%IeFS(o1y3!G*H?$*YP&RM{3=S)>NP*O)ZkUffX9 zT;l&u;qy61(`3n|nI*aE+#T^)mAc-5XO|S1md4@P{+a8x;&v0(YMUovWmkUrJ&Pu zXoQi+mlzyVO8Y8*2502splvA@57<9pE;b(RGHHC@z@yN7Q&))11UB+fcs{K&H5xCf zKDlFG%!H&Hbw@N1lr{f|?xO7oSi+$#0O~rDel$eo146*S?V*`hq6(0H%NP%`pACJIXr6*_&%wUIKAOx$>g;p&(WnhH6fYKMq71sza*elGHFyzT zNPIVF5n6Pb9n8$&3wSgMoXv3B$C6Mh1fewGk~#e>zp;A#;b65xG}uIkv|TbiuX_H{ zk&Epb2jy&{55H9X#uX)4CZOX@#Zq2#rw<$&plbvIOi;aXCP=0bJUn3c-RxUQ+%1X* z{>fL~SNpafs_Cq6Q#Z8rzSI7;tgaj)tW-6%1zF{q_Q!hHHYCdG6KgDHrSE2tnfv2@ z*#3!n`zLrG>Rg06WEV2S+hbHQ5ecCgnnkz+d`6wy7t4G@cPx&bJ`uY72A&*2kiR() z6bXoV6U+i~@qib)t=M{V>dOo`ML-S4(`fXOqhDdqDM`!8!N1|({Bm;AN^(==Jist4j@u&|VHkfH@Du$@Qy2AQ$ zyS=B!4Apu-Qm z??=AR!Q1>cw5nx=g{6hW@|2gSS+|amKUv#qsXH{+_oKfB=iXcIlJfGBa)=elxEVFOi~iUHd&I=pcASXucdT%& zI1%%L?ZgRx=S$9)Xz&P5Vg--jbHH8UD3D7bnD#I%oeT0z8Q3~q@{90U0|W>Iq7TOh z1NXBNgAP&M96-(t7<7ax5CV`lsF`;0Kr{)mF%V-31dg>2)dn!v5Y0Px-e3)^bLR_u zAk-tD0EPi=Wb4oq5)tMOdh~ZfmOf-|vv(;;YY^!I0+^8?SJRo`dC@ukP#kZu9gS@X z7R zCS-&8Ac`H_`5nyExf3wSe-KjId?+zTryShb!;;qltDAkOl@Z$Z084;cCoF^bIV@Ee zi3{;N-Umb2864mq;zq|m6=t(Nu}cM>#x8r?A+v@+MLw**Gn*WdKniw(tq8euTdsi8Zq0W~rrMOat z%m0Qa9T0xxB&|C-8&94BV}cy@fj6lSv`8TpH^P5~fbH1MJPwr1O5YI>fq5L>0N%zO zpw)L380LDgt&xsGhe10dgc}3xt5^u(a<_ofE8Q_ik&>4J5mvKj)0vr&g(IvQf*&EM z=Wz@dRD$rSN=YG=v%iJN&b$_g?5u8v$WA1*LC~f?kA!H=1=V$Z2@4m*i z!)jf11|vI|n8CTKI0gr=6lqxSh(fRxsD;zUZFwYAz1w8iX;p%+pFb`A>8H=%KcT*I z^vK~Cl@~X6uZ!LX%cM?9PfXsuNtT-rdYCFNudJd#gZ+NZs4Z-@H~OP-Um>6O(8DSS zoDRl3UI$DI2g5tT@K!iGt*{MN6a;gygZes?bp@Y!A_yRcap%RV1Aj6_&7Kx;2d?wJhEtaB~olpbt#z|334}xAjCm}zo^*y)xKLutVI8W?{JDyFB1Q@ zZ_8I|ht9Q2;aCbEKK)ESZ-CDnes(Q&ErZV-ejfVF;b+G(wNC)OE>Uz9__G-Nz3=RO zZ6z2L7<36;qB{jz2UcO}R4@MkgsPa&d5c9es2Nn#RuU84VO2XdgMo>XE1Z^x!2y&xJLkH-3zbN3m%kH8KljihAJNb-ug>0nsnuBd*6X?d6;)zd+r*T zW2CS(mmnq)+H`6@{E%?I6J&tp0rb`DATh%L%b^w|O)E&6u#ND-5T68qh?oB|I~X|p z2@cFJ@H7ifZHSfthPe--wSjaqP6Yd#K)hyrfmUFjYbnTCJU^_5+x3N53hR# z%hh$(x|pT}S$1`GUZbk5zWG3NVQWdVrl`BPyIbklk4}H?SP7qr0PoF%gUtaaGMsqM zLWgx1?>y+dy%z!%qyh8|Q3L#d1ncPA3r`1b?*eB7@SU5^Ai{UTK*kTiV-(5hX({SM zd~#Y-s|GzOZEb1-=Sncs(wLU4DMm9C=_P4d;9uOpB&F3gYEqmc8a&F?73#_=d%0bO zOpM)LR8XaQxY8$jL6_Ykc&_$lHY{ri9Qr?lgOz-=rM)PkfMXZbcU8L&C61U zPD*?Y2U(X+x>f4h?fglZc;v8 z4XQz@C<#qQf2!cj1MkmH#g|cl&Gf^j-P?oJ;GFSuJ$4<3t(D<3({U9}#P2J0<+>`p zx+3xLwwx_^=b~}Sgz9{Iih9qH1F>&>{Td2=L3RG-`qbw&u{VB6y{SUe(A4wqAe9D; z`f9Wr?Y)Yw${Ma#zj>8d_#v(fJp@s(pg{&fWG{s1xT8FPC^iG04cu0s8#oI-dO3!C z)ukmxrS$QQT{BkW8dtF1<*URuP!?W^j$vPQNohq19dkwZ{d=g!5q!$w3*la{n*$Ow zUgQWyI(rdKs&+03P}IdMxon^wJ+EegJG^7B0Xxyc%CLKZ^bQ;6Uhr6Dl5U z*PMIqT+i`;$Qlk-w;v`8L*z602~b(lJVNvDvqSXW2=x9Z55$h2lomT!MMg4@`|!bbNtJ)t8(lGj!JyO57)!Bt(Pt>F0vKDH>o6MXX+Gi=;uJYQV7SX zDF7jBiywIBDywp93TsRJOKtE~7}!oUH*Z3GK79S*zYT3e^>CeVRgw<&V*iqIh%Zr9 zSC>^(g0^$Bwx+V7sNNq3IoG3kXx`16S5eTqtNx(10=0Et1*sM6Fn;`rt0#cl1;ImD zSRpS5K1Zw^3dHeOM zu@muwpA$d5brnd044QhC_)A~aod2Qw`&c>N|F)9h5%!0F8W~ zOX7qE><;<;HLE}y1wH9Hs3Sy80@-H}q@3Y{UXUS<^Hw5*49O3md?gc|=`UFU{A{4D zfsjB9Qhx~vM5zLGEd^u)kVD*p1(97&Lo5)Q4r>Qeb258EQC(D1Sf$265MffCpAA7} zu0Bx7gPCP)Q$bU99Yk<~t)Ve9xh6@Kl$@ImT2Y@%PG@Hoq@^K<+=iYnHXFSjIS=0spgd563i}N>f zk6XpVsBFQsxjg;O?JtUpi3k7a-Q)VbjFxT zvu)6pLrfF{lxH+gg0LQH5P-V>h`o9|_GVmVuA$1Ut2S;}6C%w{$x2C4(R#2LTireA zGXTz?AH*3;N=>Ee2jA~L^BMn|dECX&Z;-VqG#0AMi!9bMen9!STMt!W*k*AJ@r}uQ zOwxJ#0$W;D`|_L0>bXB)X}$J3c{4?dR8nb)ib(I>Bhm|}!`AHMjyMjLHP^%~-Mo6` zw)brZ^7oZWu@o)zM-Yj0asEV>kgepk&VHgHWG&VNHI`!fX8XTrvGZR*G;ak; z_W2{SfrA;dl|CgNoxWurPdk&P60(Nu^~V4|r@17&e~&0W^3bDNU~(%E9)-op%uY-c z!!*o*9Hxl@^o{X&85^7#&^;#N47#r>34Hv6m?MO%%Dp&A&K~$gK==z0Z!KOreIzYJ zA#wr=C8jcPn25upDggj}Cvm6@vF=Xfc`&lY418P3?p#c^TJ*y6+{M}Iawy-Ig>1DK zY~u>H*|&zM-k0?pe*4j*+qWO>+>w@4$0gOJ?bxYe?;qVB-jj3QZPzMy(gsqpp^5YA zFX&!-O}Fjd=*mbQYb6XH(N}FJ(GedN384c>e;Q10bUcFbZU6}(KwzBws*Q6FYaiCZ zZ#>h|a>fHt=4mJiy?OObZ6j8`8bz?L28{2 zw?jE)-rUJk=AOM;r}^|8;JYqI*Z+LN$?fbzkl5X$ltsyf3BcYCtWMdHv^{aV?~eVu z_U_y-&9MQ@s@g$iq|>$<&YF(d2q6oj0kB)y(C~t={B60uI#4%?j0yP(YC21tkd&N| z!6z;?Xbnq3Q^JzN5~<{SpB&GQAwU;D7aGMQZ2-R`&61Xr&NZyxwPDBF#4vqW>NfgX zxDR65@rf!rQ<9LESY+hLz;MUbg3zK+-;i~|8$#AgK|X~5LkN-i*M)PyeIgfQ&ov|Y zKxE(5B-QHcQhlqzLP;5J54mbj=OuLx1%qt?^bw&`B{My_)@>-2gp*gR(Pz9{PZ%WcbGeJfMYUJa}R{xq( z!4Wm+0@+>hv3$}5nLGtwdB2d)!dJ|$Z2BieX4oF0#rORpS2BDwoUT1t*y&<5l|L z6PbO#Ve63PCayBPXnBxIzSa7(#u8(Wjs~D}bToL~v?1%ZN$GZW z!(kqL9+nsmT)E>$aPm%m1+I3V)#N2Ly7HrVueeoKd$91>F;#VDO?nmAaHRC?IaN1U zZ&vTC^W|P??H8 zt(!nK+>8$!$*cVzZrvGPA673t_b$aqj8zAT<+D#>a3p8$?kzvX?;}qU@g5?BC5kU9 zNte%;U|{64t-UaPaW-@T5p?cToA-<*J~B<&ohWw)w!cW5@;|KTS&P zdM@^C&=Jm7WvQuF;Sk3XkA)rN%thJ7MXHv_mUYKCt3-bAB$=I!*|QU!uBKhZbP#=E z{Sx{zpByqec&nOX;AWqEGK|~B`?q~EWY@agEBCD0xAy$>Ep+Iw{iNP-%OAfs{d|!=I z%ex;^FJ#^vx*H}$k2uZ0HJ)?}>4_CsabMZA&Jc#Ys@R)F(Rw9Lnly(JKiTo73>MNq zq;8P#^nSs+0)*yGh>sxm?VNs(q>+3~)5-AR<@jg7zvM1>+fC`5PU709ONw3o%D0y+ z7|mswByTJ^_0cCMPF%l!bkVeIUby+#Unxi=_cmXCea8A#Yhts;gSNn2s#9Pz3USvXoF>* z1qz5+X8?tr|2n`1gQ*WEI3#r%uqSZ+d-PuzdxCevO7{WvelUFa4`d{OX2>D4?1)DchD@fD zkx%dkAp|kmQ5vKI{Ml#3kIgO2u;~m?lEMpM-UP%pX}gRT#qSnQ+qz-D6$q_np!we% z#v?kG2bBWvH=AG#w*FfNQ__W`u+YjV21KEFU3k~oQ%RRJQ(xlui|RfS2y{pT?e^Yl zoa-{#q3lO}fkjxdhI{XB1CWzLfSViu(}yU&meJ<>;tZL)HC{G=GR2dFGCGgM(hcOp zc<#XBrr@#!>B(h9OJ=BM1i{H1Fk=7*NWK%0{1(am0WAXt1hurZ6dgNxgexm*+I8T# zlzdnWQp*O$sKYg~>3mgubySt5{$3Fhd@G5fmb|miIhNGRb505zc}JO(V|1k3puUlv zVK8KvQ|##wWHRMgrSb{-)fbf+_Ed`@!;qN;Vuv*?H#5f~&5~GivT_Y}>8uM%b55o; z-2&{m$(U)(uo!Ha)=Zn(Y?0OnDswC*yTN9#rXh)#k(r%lO}85C#+)1}!T?>BW?Q-) z$N&gO7?C!&r8$gJd2c<)gch?+dfA|~r&?1?TuPcDJ&%jV_J>m7EhjX#&CG}$0P zV@ffmr)Q^Sg970&18-w9*`%(;t~pG_3l3q!?yMtxnd!T?G&{m;R=oLg7VQ$ITGp7= z0HX<~kKqLViyF`ZX25vy#L&qLUWauretq((&qI0l`2SD>mMinB4LhRCn7V~eVN$Fu zP8}EPK`3b5+K*vxxV7R}@zhr)XmR%Is!M9}cy4h%WV1ykvRAQnh@pe{fv& z4*p=(dxuqWYvqlw>o-&+{ZrCN-X*Vc=MP?M_+-0u_wDcZ{HT^2{IRNumXT-n?|1B1 z=UB5$IlSCH!4a1o75#4VyDL-+@C;qngg&E|n?r_%!H$Fxa>!;Y#Q zJ9 -

    - © 2019 LOVE109❤️纪实小屋

    - - - - - - + + + + + - - - - - - + - - -
    - - - \ No newline at end of file + + + + + \ No newline at end of file diff --git a/js/FunnyTitle.js b/js/FunnyTitle.js deleted file mode 100644 index a07074c..0000000 --- a/js/FunnyTitle.js +++ /dev/null @@ -1,16 +0,0 @@ -var OriginTitle = document.title; - var titleTime; - document.addEventListener('visibilitychange', function () { - if (document.hidden) { - $('[rel="icon"]').attr('href', "/image/true.png"); - document.title = '(╥╯^╰╥)你快回来~'; - clearTimeout(titleTime); - } - else { - $('[rel="icon"]').attr('href', "/image/true.png"); - document.title = '(o´ω`o)ノ爱你哟~' + OriginTitle; - titleTime = setTimeout(function () { - document.title = OriginTitle; - }, 2000); - } - }); diff --git a/js/InsightSearch.js b/js/InsightSearch.js deleted file mode 100644 index 00128ce..0000000 --- a/js/InsightSearch.js +++ /dev/null @@ -1,243 +0,0 @@ -/** - * Insight search plugin - * @author PPOffice { @link https://github.com/ppoffice } - */ -(function ($, CONFIG) { - var $main = $('.ins-search'); - var $input = $main.find('.ins-search-input'); - var $wrapper = $main.find('.ins-section-wrapper'); - var $container = $main.find('.ins-section-container'); - $main.parent().remove('.ins-search'); - $('body').append($main); - - function section (title) { - return $('
    ').addClass('ins-section') - .append($('
    ').addClass('ins-section-header').text(title)); - } - - function searchItem (icon, title, slug, preview, url) { - return $('
    ').addClass('ins-selectable').addClass('ins-search-item') - .append($('
    ').append($('').addClass('fa').addClass('fa-' + icon)).append(title != null && title != '' ? title : CONFIG.TRANSLATION['UNTITLED']) - .append(slug ? $('').addClass('ins-slug').text(slug) : null)) - .append(preview ? $('

    ').addClass('ins-search-preview').text(preview) : null) - .attr('data-url', url); - } - - function sectionFactory (type, array) { - var sectionTitle; - var $searchItems; - if (array.length === 0) return null; - sectionTitle = CONFIG.TRANSLATION[type]; - switch (type) { - case 'POSTS': - case 'PAGES': - $searchItems = array.map(function (item) { - // Use config.root instead of permalink to fix url issue - return searchItem('file', item.title, null, item.text.slice(0, 150), CONFIG.ROOT_URL + item.path); - }); - break; - case 'CATEGORIES': - case 'TAGS': - $searchItems = array.map(function (item) { - return searchItem(type === 'CATEGORIES' ? 'folder' : 'tag', item.name, item.slug, null, item.permalink); - }); - break; - default: - return null; - } - return section(sectionTitle).append($searchItems); - } - - function extractToSet (json, key) { - var values = {}; - var entries = json.pages.concat(json.posts); - entries.forEach(function (entry) { - if (entry[key]) { - entry[key].forEach(function (value) { - values[value.name] = value; - }); - } - }); - var result = []; - for (var key in values) { - result.push(values[key]); - } - return result; - } - - function parseKeywords (keywords) { - return keywords.split(' ').filter(function (keyword) { - return !!keyword; - }).map(function (keyword) { - return keyword.toUpperCase(); - }); - } - - /** - * Judge if a given post/page/category/tag contains all of the keywords. - * @param Object obj Object to be weighted - * @param Array fields Object's fields to find matches - */ - function filter (keywords, obj, fields) { - var result = false; - var keywordArray = parseKeywords(keywords); - var containKeywords = keywordArray.filter(function (keyword) { - var containFields = fields.filter(function (field) { - if (!obj.hasOwnProperty(field)) - return false; - if (obj[field].toUpperCase().indexOf(keyword) > -1) - return true; - }); - if (containFields.length > 0) - return true; - return false; - }); - return containKeywords.length === keywordArray.length; - } - - function filterFactory (keywords) { - return { - POST: function (obj) { - return filter(keywords, obj, ['title', 'text']); - }, - PAGE: function (obj) { - return filter(keywords, obj, ['title', 'text']); - }, - CATEGORY: function (obj) { - return filter(keywords, obj, ['name', 'slug']); - }, - TAG: function (obj) { - return filter(keywords, obj, ['name', 'slug']); - } - }; - } - - /** - * Calculate the weight of a matched post/page/category/tag. - * @param Object obj Object to be weighted - * @param Array fields Object's fields to find matches - * @param Array weights Weight of every field - */ - function weight (keywords, obj, fields, weights) { - var value = 0; - parseKeywords(keywords).forEach(function (keyword) { - var pattern = new RegExp(keyword, 'img'); // Global, Multi-line, Case-insensitive - fields.forEach(function (field, index) { - if (obj.hasOwnProperty(field)) { - var matches = obj[field].match(pattern); - value += matches ? matches.length * weights[index] : 0; - } - }); - }); - return value; - } - - function weightFactory (keywords) { - return { - POST: function (obj) { - return weight(keywords, obj, ['title', 'text'], [3, 1]); - }, - PAGE: function (obj) { - return weight(keywords, obj, ['title', 'text'], [3, 1]); - }, - CATEGORY: function (obj) { - return weight(keywords, obj, ['name', 'slug'], [1, 1]); - }, - TAG: function (obj) { - return weight(keywords, obj, ['name', 'slug'], [1, 1]); - } - }; - } - - function search (json, keywords) { - var WEIGHTS = weightFactory(keywords); - var FILTERS = filterFactory(keywords); - var posts = json.posts; - // var pages = json.pages; - var tags = extractToSet(json, 'tags'); - var categories = extractToSet(json, 'categories'); - return { - posts: posts.filter(FILTERS.POST).sort(function (a, b) { return WEIGHTS.POST(b) - WEIGHTS.POST(a); }).slice(0, 20), - // pages: pages.filter(FILTERS.PAGE).sort(function (a, b) { return WEIGHTS.PAGE(b) - WEIGHTS.PAGE(a); }).slice(0, 5), - categories: categories.filter(FILTERS.CATEGORY).sort(function (a, b) { return WEIGHTS.CATEGORY(b) - WEIGHTS.CATEGORY(a); }).slice(0, 5), - tags: tags.filter(FILTERS.TAG).sort(function (a, b) { return WEIGHTS.TAG(b) - WEIGHTS.TAG(a); }).slice(0, 5) - }; - } - - function searchResultToDOM (searchResult) { - $container.empty(); - for (var key in searchResult) { - $container.append(sectionFactory(key.toUpperCase(), searchResult[key])); - } - } - - function scrollTo ($item) { - if ($item.length === 0) return; - var wrapperHeight = $wrapper[0].clientHeight; - var itemTop = $item.position().top - $wrapper.scrollTop(); - var itemBottom = $item[0].clientHeight + $item.position().top; - if (itemBottom > wrapperHeight + $wrapper.scrollTop()) { - $wrapper.scrollTop(itemBottom - $wrapper[0].clientHeight); - } - if (itemTop < 0) { - $wrapper.scrollTop($item.position().top); - } - } - - function selectItemByDiff (value) { - var $items = $.makeArray($container.find('.ins-selectable')); - var prevPosition = -1; - $items.forEach(function (item, index) { - if ($(item).hasClass('active')) { - prevPosition = index; - return; - } - }); - var nextPosition = ($items.length + prevPosition + value) % $items.length; - $($items[prevPosition]).removeClass('active'); - $($items[nextPosition]).addClass('active'); - scrollTo($($items[nextPosition])); - } - - function gotoLink ($item) { - if ($item && $item.length) { - location.href = $item.attr('data-url'); - } - } - - $.getJSON(CONFIG.CONTENT_URL, function (json) { - if (location.hash.trim() === '#ins-search') { - $main.addClass('show'); - } - $input.on('input', function () { - var keywords = $(this).val(); - searchResultToDOM(search(json, keywords)); - }); - $input.trigger('input'); - }); - - - $(document).on('click focus', '.search-field', function () { - $main.addClass('show'); - $main.find('.ins-search-input').focus(); - }).on('click focus', '.search-form-submit', function () { - $main.addClass('show'); - $main.find('.ins-search-input').focus(); - }).on('click', '.ins-search-item', function () { - gotoLink($(this)); - }).on('click', '.ins-close', function () { - $main.removeClass('show'); - }).on('keydown', function (e) { - if (!$main.hasClass('show')) return; - switch (e.keyCode) { - case 27: // ESC - $main.removeClass('show'); break; - case 38: // UP - selectItemByDiff(-1); break; - case 40: // DOWN - selectItemByDiff(1); break; - case 13: //ENTER - gotoLink($container.find('.ins-selectable.active').eq(0)); break; - } - }); -})(jQuery, window.INSIGHT_CONFIG); \ No newline at end of file diff --git a/js/fireworks.js b/js/fireworks.js deleted file mode 100644 index a6a3934..0000000 --- a/js/fireworks.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";function updateCoords(e){pointerX=(e.clientX||e.touches[0].clientX)-canvasEl.getBoundingClientRect().left,pointerY=e.clientY||e.touches[0].clientY-canvasEl.getBoundingClientRect().top}function setParticuleDirection(e){var t=anime.random(0,360)*Math.PI/180,a=anime.random(50,180),n=[-1,1][anime.random(0,1)]*a;return{x:e.x+n*Math.cos(t),y:e.y+n*Math.sin(t)}}function createParticule(e,t){var a={};return a.x=e,a.y=t,a.color=colors[anime.random(0,colors.length-1)],a.radius=anime.random(16,32),a.endPos=setParticuleDirection(a),a.draw=function(){ctx.beginPath(),ctx.arc(a.x,a.y,a.radius,0,2*Math.PI,!0),ctx.fillStyle=a.color,ctx.fill()},a}function createCircle(e,t){var a={};return a.x=e,a.y=t,a.color="#F00",a.radius=0.1,a.alpha=0.5,a.lineWidth=6,a.draw=function(){ctx.globalAlpha=a.alpha,ctx.beginPath(),ctx.arc(a.x,a.y,a.radius,0,2*Math.PI,!0),ctx.lineWidth=a.lineWidth,ctx.strokeStyle=a.color,ctx.stroke(),ctx.globalAlpha=1},a}function renderParticule(e){for(var t=0;t= 0 && n < t ? [this[n]] : []) - }, - end: function() { - return this.prevObject || this.constructor() - }, - push: s, - sort: n.sort, - splice: n.splice - }, - w.extend = w.fn.extend = function() { - var e, t, n, r, i, o, a = arguments[0] || {}, s = 1, u = arguments.length, l = !1; - for ("boolean" == typeof a && (l = a, - a = arguments[s] || {}, - s++), - "object" == typeof a || g(a) || (a = {}), - s === u && (a = this, - s--); s < u; s++) - if (null != (e = arguments[s])) - for (t in e) - n = a[t], - a !== (r = e[t]) && (l && r && (w.isPlainObject(r) || (i = Array.isArray(r))) ? (i ? (i = !1, - o = n && Array.isArray(n) ? n : []) : o = n && w.isPlainObject(n) ? n : {}, - a[t] = w.extend(l, o, r)) : void 0 !== r && (a[t] = r)); - return a - } - , - w.extend({ - expando: "jQuery" + ("3.3.1" + Math.random()).replace(/\D/g, ""), - isReady: !0, - error: function(e) { - throw new Error(e) - }, - noop: function() {}, - isPlainObject: function(e) { - var t, n; - return !(!e || "[object Object]" !== c.call(e)) && (!(t = i(e)) || "function" == typeof (n = f.call(t, "constructor") && t.constructor) && p.call(n) === d) - }, - isEmptyObject: function(e) { - var t; - for (t in e) - return !1; - return !0 - }, - globalEval: function(e) { - m(e) - }, - each: function(e, t) { - var n, r = 0; - if (C(e)) { - for (n = e.length; r < n; r++) - if (!1 === t.call(e[r], r, e[r])) - break - } else - for (r in e) - if (!1 === t.call(e[r], r, e[r])) - break; - return e - }, - trim: function(e) { - return null == e ? "" : (e + "").replace(T, "") - }, - makeArray: function(e, t) { - var n = t || []; - return null != e && (C(Object(e)) ? w.merge(n, "string" == typeof e ? [e] : e) : s.call(n, e)), - n - }, - inArray: function(e, t, n) { - return null == t ? -1 : u.call(t, e, n) - }, - merge: function(e, t) { - for (var n = +t.length, r = 0, i = e.length; r < n; r++) - e[i++] = t[r]; - return e.length = i, - e - }, - grep: function(e, t, n) { - for (var r, i = [], o = 0, a = e.length, s = !n; o < a; o++) - (r = !t(e[o], o)) !== s && i.push(e[o]); - return i - }, - map: function(e, t, n) { - var r, i, o = 0, s = []; - if (C(e)) - for (r = e.length; o < r; o++) - null != (i = t(e[o], o, n)) && s.push(i); - else - for (o in e) - null != (i = t(e[o], o, n)) && s.push(i); - return a.apply([], s) - }, - guid: 1, - support: h - }), - "function" == typeof Symbol && (w.fn[Symbol.iterator] = n[Symbol.iterator]), - w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), function(e, t) { - l["[object " + t + "]"] = t.toLowerCase() - }); - function C(e) { - var t = !!e && "length"in e && e.length - , n = x(e); - return !g(e) && !y(e) && ("array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e) - } - var E = function(e) { - var t, n, r, i, o, a, s, u, l, c, f, p, d, h, g, y, v, m, x, b = "sizzle" + 1 * new Date, w = e.document, T = 0, C = 0, E = ae(), k = ae(), S = ae(), D = function(e, t) { - return e === t && (f = !0), - 0 - }, N = {}.hasOwnProperty, A = [], j = A.pop, q = A.push, L = A.push, H = A.slice, O = function(e, t) { - for (var n = 0, r = e.length; n < r; n++) - if (e[n] === t) - return n; - return -1 - }, P = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", M = "[\\x20\\t\\r\\n\\f]", R = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", I = "\\[" + M + "*(" + R + ")(?:" + M + "*([*^$|!~]?=)" + M + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + R + "))|)" + M + "*\\]", W = ":(" + R + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + I + ")*)|.*)\\)|)", $ = new RegExp(M + "+","g"), B = new RegExp("^" + M + "+|((?:^|[^\\\\])(?:\\\\.)*)" + M + "+$","g"), F = new RegExp("^" + M + "*," + M + "*"), _ = new RegExp("^" + M + "*([>+~]|" + M + ")" + M + "*"), z = new RegExp("=" + M + "*([^\\]'\"]*?)" + M + "*\\]","g"), X = new RegExp(W), U = new RegExp("^" + R + "$"), V = { - ID: new RegExp("^#(" + R + ")"), - CLASS: new RegExp("^\\.(" + R + ")"), - TAG: new RegExp("^(" + R + "|[*])"), - ATTR: new RegExp("^" + I), - PSEUDO: new RegExp("^" + W), - CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + M + "*(even|odd|(([+-]|)(\\d*)n|)" + M + "*(?:([+-]|)" + M + "*(\\d+)|))" + M + "*\\)|)","i"), - bool: new RegExp("^(?:" + P + ")$","i"), - needsContext: new RegExp("^" + M + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + M + "*((?:-\\d)?\\d*)" + M + "*\\)|)(?=[^-]|$)","i") - }, G = /^(?:input|select|textarea|button)$/i, Y = /^h\d$/i, Q = /^[^{]+\{\s*\[native \w/, J = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, K = /[+~]/, Z = new RegExp("\\\\([\\da-f]{1,6}" + M + "?|(" + M + ")|.)","ig"), ee = function(e, t, n) { - var r = "0x" + t - 65536; - return r !== r || n ? t : r < 0 ? String.fromCharCode(r + 65536) : String.fromCharCode(r >> 10 | 55296, 1023 & r | 56320) - }, te = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, ne = function(e, t) { - return t ? "\0" === e ? "\ufffd" : e.slice(0, -1) + "\\" + e.charCodeAt(e.length - 1).toString(16) + " " : "\\" + e - }, re = function() { - p() - }, ie = me(function(e) { - return !0 === e.disabled && ("form"in e || "label"in e) - }, { - dir: "parentNode", - next: "legend" - }); - try { - L.apply(A = H.call(w.childNodes), w.childNodes), - A[w.childNodes.length].nodeType - } catch (e) { - L = { - apply: A.length ? function(e, t) { - q.apply(e, H.call(t)) - } - : function(e, t) { - var n = e.length - , r = 0; - while (e[n++] = t[r++]) - ; - e.length = n - 1 - } - } - } - function oe(e, t, r, i) { - var o, s, l, c, f, h, v, m = t && t.ownerDocument, T = t ? t.nodeType : 9; - if (r = r || [], - "string" != typeof e || !e || 1 !== T && 9 !== T && 11 !== T) - return r; - if (!i && ((t ? t.ownerDocument || t : w) !== d && p(t), - t = t || d, - g)) { - if (11 !== T && (f = J.exec(e))) - if (o = f[1]) { - if (9 === T) { - if (!(l = t.getElementById(o))) - return r; - if (l.id === o) - return r.push(l), - r - } else if (m && (l = m.getElementById(o)) && x(t, l) && l.id === o) - return r.push(l), - r - } else { - if (f[2]) - return L.apply(r, t.getElementsByTagName(e)), - r; - if ((o = f[3]) && n.getElementsByClassName && t.getElementsByClassName) - return L.apply(r, t.getElementsByClassName(o)), - r - } - if (n.qsa && !S[e + " "] && (!y || !y.test(e))) { - if (1 !== T) - m = t, - v = e; - else if ("object" !== t.nodeName.toLowerCase()) { - (c = t.getAttribute("id")) ? c = c.replace(te, ne) : t.setAttribute("id", c = b), - s = (h = a(e)).length; - while (s--) - h[s] = "#" + c + " " + ve(h[s]); - v = h.join(","), - m = K.test(e) && ge(t.parentNode) || t - } - if (v) - try { - return L.apply(r, m.querySelectorAll(v)), - r - } catch (e) {} finally { - c === b && t.removeAttribute("id") - } - } - } - return u(e.replace(B, "$1"), t, r, i) - } - function ae() { - var e = []; - function t(n, i) { - return e.push(n + " ") > r.cacheLength && delete t[e.shift()], - t[n + " "] = i - } - return t - } - function se(e) { - return e[b] = !0, - e - } - function ue(e) { - var t = d.createElement("fieldset"); - try { - return !!e(t) - } catch (e) { - return !1 - } finally { - t.parentNode && t.parentNode.removeChild(t), - t = null - } - } - function le(e, t) { - var n = e.split("|") - , i = n.length; - while (i--) - r.attrHandle[n[i]] = t - } - function ce(e, t) { - var n = t && e - , r = n && 1 === e.nodeType && 1 === t.nodeType && e.sourceIndex - t.sourceIndex; - if (r) - return r; - if (n) - while (n = n.nextSibling) - if (n === t) - return -1; - return e ? 1 : -1 - } - function fe(e) { - return function(t) { - return "input" === t.nodeName.toLowerCase() && t.type === e - } - } - function pe(e) { - return function(t) { - var n = t.nodeName.toLowerCase(); - return ("input" === n || "button" === n) && t.type === e - } - } - function de(e) { - return function(t) { - return "form"in t ? t.parentNode && !1 === t.disabled ? "label"in t ? "label"in t.parentNode ? t.parentNode.disabled === e : t.disabled === e : t.isDisabled === e || t.isDisabled !== !e && ie(t) === e : t.disabled === e : "label"in t && t.disabled === e - } - } - function he(e) { - return se(function(t) { - return t = +t, - se(function(n, r) { - var i, o = e([], n.length, t), a = o.length; - while (a--) - n[i = o[a]] && (n[i] = !(r[i] = n[i])) - }) - }) - } - function ge(e) { - return e && "undefined" != typeof e.getElementsByTagName && e - } - n = oe.support = {}, - o = oe.isXML = function(e) { - var t = e && (e.ownerDocument || e).documentElement; - return !!t && "HTML" !== t.nodeName - } - , - p = oe.setDocument = function(e) { - var t, i, a = e ? e.ownerDocument || e : w; - return a !== d && 9 === a.nodeType && a.documentElement ? (d = a, - h = d.documentElement, - g = !o(d), - w !== d && (i = d.defaultView) && i.top !== i && (i.addEventListener ? i.addEventListener("unload", re, !1) : i.attachEvent && i.attachEvent("onunload", re)), - n.attributes = ue(function(e) { - return e.className = "i", - !e.getAttribute("className") - }), - n.getElementsByTagName = ue(function(e) { - return e.appendChild(d.createComment("")), - !e.getElementsByTagName("*").length - }), - n.getElementsByClassName = Q.test(d.getElementsByClassName), - n.getById = ue(function(e) { - return h.appendChild(e).id = b, - !d.getElementsByName || !d.getElementsByName(b).length - }), - n.getById ? (r.filter.ID = function(e) { - var t = e.replace(Z, ee); - return function(e) { - return e.getAttribute("id") === t - } - } - , - r.find.ID = function(e, t) { - if ("undefined" != typeof t.getElementById && g) { - var n = t.getElementById(e); - return n ? [n] : [] - } - } - ) : (r.filter.ID = function(e) { - var t = e.replace(Z, ee); - return function(e) { - var n = "undefined" != typeof e.getAttributeNode && e.getAttributeNode("id"); - return n && n.value === t - } - } - , - r.find.ID = function(e, t) { - if ("undefined" != typeof t.getElementById && g) { - var n, r, i, o = t.getElementById(e); - if (o) { - if ((n = o.getAttributeNode("id")) && n.value === e) - return [o]; - i = t.getElementsByName(e), - r = 0; - while (o = i[r++]) - if ((n = o.getAttributeNode("id")) && n.value === e) - return [o] - } - return [] - } - } - ), - r.find.TAG = n.getElementsByTagName ? function(e, t) { - return "undefined" != typeof t.getElementsByTagName ? t.getElementsByTagName(e) : n.qsa ? t.querySelectorAll(e) : void 0 - } - : function(e, t) { - var n, r = [], i = 0, o = t.getElementsByTagName(e); - if ("*" === e) { - while (n = o[i++]) - 1 === n.nodeType && r.push(n); - return r - } - return o - } - , - r.find.CLASS = n.getElementsByClassName && function(e, t) { - if ("undefined" != typeof t.getElementsByClassName && g) - return t.getElementsByClassName(e) - } - , - v = [], - y = [], - (n.qsa = Q.test(d.querySelectorAll)) && (ue(function(e) { - h.appendChild(e).innerHTML = "", - e.querySelectorAll("[msallowcapture^='']").length && y.push("[*^$]=" + M + "*(?:''|\"\")"), - e.querySelectorAll("[selected]").length || y.push("\\[" + M + "*(?:value|" + P + ")"), - e.querySelectorAll("[id~=" + b + "-]").length || y.push("~="), - e.querySelectorAll(":checked").length || y.push(":checked"), - e.querySelectorAll("a#" + b + "+*").length || y.push(".#.+[+~]") - }), - ue(function(e) { - e.innerHTML = ""; - var t = d.createElement("input"); - t.setAttribute("type", "hidden"), - e.appendChild(t).setAttribute("name", "D"), - e.querySelectorAll("[name=d]").length && y.push("name" + M + "*[*^$|!~]?="), - 2 !== e.querySelectorAll(":enabled").length && y.push(":enabled", ":disabled"), - h.appendChild(e).disabled = !0, - 2 !== e.querySelectorAll(":disabled").length && y.push(":enabled", ":disabled"), - e.querySelectorAll("*,:x"), - y.push(",.*:") - })), - (n.matchesSelector = Q.test(m = h.matches || h.webkitMatchesSelector || h.mozMatchesSelector || h.oMatchesSelector || h.msMatchesSelector)) && ue(function(e) { - n.disconnectedMatch = m.call(e, "*"), - m.call(e, "[s!='']:x"), - v.push("!=", W) - }), - y = y.length && new RegExp(y.join("|")), - v = v.length && new RegExp(v.join("|")), - t = Q.test(h.compareDocumentPosition), - x = t || Q.test(h.contains) ? function(e, t) { - var n = 9 === e.nodeType ? e.documentElement : e - , r = t && t.parentNode; - return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r))) - } - : function(e, t) { - if (t) - while (t = t.parentNode) - if (t === e) - return !0; - return !1 - } - , - D = t ? function(e, t) { - if (e === t) - return f = !0, - 0; - var r = !e.compareDocumentPosition - !t.compareDocumentPosition; - return r || (1 & (r = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1) || !n.sortDetached && t.compareDocumentPosition(e) === r ? e === d || e.ownerDocument === w && x(w, e) ? -1 : t === d || t.ownerDocument === w && x(w, t) ? 1 : c ? O(c, e) - O(c, t) : 0 : 4 & r ? -1 : 1) - } - : function(e, t) { - if (e === t) - return f = !0, - 0; - var n, r = 0, i = e.parentNode, o = t.parentNode, a = [e], s = [t]; - if (!i || !o) - return e === d ? -1 : t === d ? 1 : i ? -1 : o ? 1 : c ? O(c, e) - O(c, t) : 0; - if (i === o) - return ce(e, t); - n = e; - while (n = n.parentNode) - a.unshift(n); - n = t; - while (n = n.parentNode) - s.unshift(n); - while (a[r] === s[r]) - r++; - return r ? ce(a[r], s[r]) : a[r] === w ? -1 : s[r] === w ? 1 : 0 - } - , - d) : d - } - , - oe.matches = function(e, t) { - return oe(e, null, null, t) - } - , - oe.matchesSelector = function(e, t) { - if ((e.ownerDocument || e) !== d && p(e), - t = t.replace(z, "='$1']"), - n.matchesSelector && g && !S[t + " "] && (!v || !v.test(t)) && (!y || !y.test(t))) - try { - var r = m.call(e, t); - if (r || n.disconnectedMatch || e.document && 11 !== e.document.nodeType) - return r - } catch (e) {} - return oe(t, d, null, [e]).length > 0 - } - , - oe.contains = function(e, t) { - return (e.ownerDocument || e) !== d && p(e), - x(e, t) - } - , - oe.attr = function(e, t) { - (e.ownerDocument || e) !== d && p(e); - var i = r.attrHandle[t.toLowerCase()] - , o = i && N.call(r.attrHandle, t.toLowerCase()) ? i(e, t, !g) : void 0; - return void 0 !== o ? o : n.attributes || !g ? e.getAttribute(t) : (o = e.getAttributeNode(t)) && o.specified ? o.value : null - } - , - oe.escape = function(e) { - return (e + "").replace(te, ne) - } - , - oe.error = function(e) { - throw new Error("Syntax error, unrecognized expression: " + e) - } - , - oe.uniqueSort = function(e) { - var t, r = [], i = 0, o = 0; - if (f = !n.detectDuplicates, - c = !n.sortStable && e.slice(0), - e.sort(D), - f) { - while (t = e[o++]) - t === e[o] && (i = r.push(o)); - while (i--) - e.splice(r[i], 1) - } - return c = null, - e - } - , - i = oe.getText = function(e) { - var t, n = "", r = 0, o = e.nodeType; - if (o) { - if (1 === o || 9 === o || 11 === o) { - if ("string" == typeof e.textContent) - return e.textContent; - for (e = e.firstChild; e; e = e.nextSibling) - n += i(e) - } else if (3 === o || 4 === o) - return e.nodeValue - } else - while (t = e[r++]) - n += i(t); - return n - } - , - (r = oe.selectors = { - cacheLength: 50, - createPseudo: se, - match: V, - attrHandle: {}, - find: {}, - relative: { - ">": { - dir: "parentNode", - first: !0 - }, - " ": { - dir: "parentNode" - }, - "+": { - dir: "previousSibling", - first: !0 - }, - "~": { - dir: "previousSibling" - } - }, - preFilter: { - ATTR: function(e) { - return e[1] = e[1].replace(Z, ee), - e[3] = (e[3] || e[4] || e[5] || "").replace(Z, ee), - "~=" === e[2] && (e[3] = " " + e[3] + " "), - e.slice(0, 4) - }, - CHILD: function(e) { - return e[1] = e[1].toLowerCase(), - "nth" === e[1].slice(0, 3) ? (e[3] || oe.error(e[0]), - e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), - e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && oe.error(e[0]), - e - }, - PSEUDO: function(e) { - var t, n = !e[6] && e[2]; - return V.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && X.test(n) && (t = a(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && (e[0] = e[0].slice(0, t), - e[2] = n.slice(0, t)), - e.slice(0, 3)) - } - }, - filter: { - TAG: function(e) { - var t = e.replace(Z, ee).toLowerCase(); - return "*" === e ? function() { - return !0 - } - : function(e) { - return e.nodeName && e.nodeName.toLowerCase() === t - } - }, - CLASS: function(e) { - var t = E[e + " "]; - return t || (t = new RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && E(e, function(e) { - return t.test("string" == typeof e.className && e.className || "undefined" != typeof e.getAttribute && e.getAttribute("class") || "") - }) - }, - ATTR: function(e, t, n) { - return function(r) { - var i = oe.attr(r, e); - return null == i ? "!=" === t : !t || (i += "", - "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i.replace($, " ") + " ").indexOf(n) > -1 : "|=" === t && (i === n || i.slice(0, n.length + 1) === n + "-")) - } - }, - CHILD: function(e, t, n, r, i) { - var o = "nth" !== e.slice(0, 3) - , a = "last" !== e.slice(-4) - , s = "of-type" === t; - return 1 === r && 0 === i ? function(e) { - return !!e.parentNode - } - : function(t, n, u) { - var l, c, f, p, d, h, g = o !== a ? "nextSibling" : "previousSibling", y = t.parentNode, v = s && t.nodeName.toLowerCase(), m = !u && !s, x = !1; - if (y) { - if (o) { - while (g) { - p = t; - while (p = p[g]) - if (s ? p.nodeName.toLowerCase() === v : 1 === p.nodeType) - return !1; - h = g = "only" === e && !h && "nextSibling" - } - return !0 - } - if (h = [a ? y.firstChild : y.lastChild], - a && m) { - x = (d = (l = (c = (f = (p = y)[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] || [])[0] === T && l[1]) && l[2], - p = d && y.childNodes[d]; - while (p = ++d && p && p[g] || (x = d = 0) || h.pop()) - if (1 === p.nodeType && ++x && p === t) { - c[e] = [T, d, x]; - break - } - } else if (m && (x = d = (l = (c = (f = (p = t)[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] || [])[0] === T && l[1]), - !1 === x) - while (p = ++d && p && p[g] || (x = d = 0) || h.pop()) - if ((s ? p.nodeName.toLowerCase() === v : 1 === p.nodeType) && ++x && (m && ((c = (f = p[b] || (p[b] = {}))[p.uniqueID] || (f[p.uniqueID] = {}))[e] = [T, x]), - p === t)) - break; - return (x -= i) === r || x % r == 0 && x / r >= 0 - } - } - }, - PSEUDO: function(e, t) { - var n, i = r.pseudos[e] || r.setFilters[e.toLowerCase()] || oe.error("unsupported pseudo: " + e); - return i[b] ? i(t) : i.length > 1 ? (n = [e, e, "", t], - r.setFilters.hasOwnProperty(e.toLowerCase()) ? se(function(e, n) { - var r, o = i(e, t), a = o.length; - while (a--) - e[r = O(e, o[a])] = !(n[r] = o[a]) - }) : function(e) { - return i(e, 0, n) - } - ) : i - } - }, - pseudos: { - not: se(function(e) { - var t = [] - , n = [] - , r = s(e.replace(B, "$1")); - return r[b] ? se(function(e, t, n, i) { - var o, a = r(e, null, i, []), s = e.length; - while (s--) - (o = a[s]) && (e[s] = !(t[s] = o)) - }) : function(e, i, o) { - return t[0] = e, - r(t, null, o, n), - t[0] = null, - !n.pop() - } - }), - has: se(function(e) { - return function(t) { - return oe(e, t).length > 0 - } - }), - contains: se(function(e) { - return e = e.replace(Z, ee), - function(t) { - return (t.textContent || t.innerText || i(t)).indexOf(e) > -1 - } - }), - lang: se(function(e) { - return U.test(e || "") || oe.error("unsupported lang: " + e), - e = e.replace(Z, ee).toLowerCase(), - function(t) { - var n; - do { - if (n = g ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) - return (n = n.toLowerCase()) === e || 0 === n.indexOf(e + "-") - } while ((t = t.parentNode) && 1 === t.nodeType);return !1 - } - }), - target: function(t) { - var n = e.location && e.location.hash; - return n && n.slice(1) === t.id - }, - root: function(e) { - return e === h - }, - focus: function(e) { - return e === d.activeElement && (!d.hasFocus || d.hasFocus()) && !!(e.type || e.href || ~e.tabIndex) - }, - enabled: de(!1), - disabled: de(!0), - checked: function(e) { - var t = e.nodeName.toLowerCase(); - return "input" === t && !!e.checked || "option" === t && !!e.selected - }, - selected: function(e) { - return e.parentNode && e.parentNode.selectedIndex, - !0 === e.selected - }, - empty: function(e) { - for (e = e.firstChild; e; e = e.nextSibling) - if (e.nodeType < 6) - return !1; - return !0 - }, - parent: function(e) { - return !r.pseudos.empty(e) - }, - header: function(e) { - return Y.test(e.nodeName) - }, - input: function(e) { - return G.test(e.nodeName) - }, - button: function(e) { - var t = e.nodeName.toLowerCase(); - return "input" === t && "button" === e.type || "button" === t - }, - text: function(e) { - var t; - return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase()) - }, - first: he(function() { - return [0] - }), - last: he(function(e, t) { - return [t - 1] - }), - eq: he(function(e, t, n) { - return [n < 0 ? n + t : n] - }), - even: he(function(e, t) { - for (var n = 0; n < t; n += 2) - e.push(n); - return e - }), - odd: he(function(e, t) { - for (var n = 1; n < t; n += 2) - e.push(n); - return e - }), - lt: he(function(e, t, n) { - for (var r = n < 0 ? n + t : n; --r >= 0; ) - e.push(r); - return e - }), - gt: he(function(e, t, n) { - for (var r = n < 0 ? n + t : n; ++r < t; ) - e.push(r); - return e - }) - } - }).pseudos.nth = r.pseudos.eq; - for (t in { - radio: !0, - checkbox: !0, - file: !0, - password: !0, - image: !0 - }) - r.pseudos[t] = fe(t); - for (t in { - submit: !0, - reset: !0 - }) - r.pseudos[t] = pe(t); - function ye() {} - ye.prototype = r.filters = r.pseudos, - r.setFilters = new ye, - a = oe.tokenize = function(e, t) { - var n, i, o, a, s, u, l, c = k[e + " "]; - if (c) - return t ? 0 : c.slice(0); - s = e, - u = [], - l = r.preFilter; - while (s) { - n && !(i = F.exec(s)) || (i && (s = s.slice(i[0].length) || s), - u.push(o = [])), - n = !1, - (i = _.exec(s)) && (n = i.shift(), - o.push({ - value: n, - type: i[0].replace(B, " ") - }), - s = s.slice(n.length)); - for (a in r.filter) - !(i = V[a].exec(s)) || l[a] && !(i = l[a](i)) || (n = i.shift(), - o.push({ - value: n, - type: a, - matches: i - }), - s = s.slice(n.length)); - if (!n) - break - } - return t ? s.length : s ? oe.error(e) : k(e, u).slice(0) - } - ; - function ve(e) { - for (var t = 0, n = e.length, r = ""; t < n; t++) - r += e[t].value; - return r - } - function me(e, t, n) { - var r = t.dir - , i = t.next - , o = i || r - , a = n && "parentNode" === o - , s = C++; - return t.first ? function(t, n, i) { - while (t = t[r]) - if (1 === t.nodeType || a) - return e(t, n, i); - return !1 - } - : function(t, n, u) { - var l, c, f, p = [T, s]; - if (u) { - while (t = t[r]) - if ((1 === t.nodeType || a) && e(t, n, u)) - return !0 - } else - while (t = t[r]) - if (1 === t.nodeType || a) - if (f = t[b] || (t[b] = {}), - c = f[t.uniqueID] || (f[t.uniqueID] = {}), - i && i === t.nodeName.toLowerCase()) - t = t[r] || t; - else { - if ((l = c[o]) && l[0] === T && l[1] === s) - return p[2] = l[2]; - if (c[o] = p, - p[2] = e(t, n, u)) - return !0 - } - return !1 - } - } - function xe(e) { - return e.length > 1 ? function(t, n, r) { - var i = e.length; - while (i--) - if (!e[i](t, n, r)) - return !1; - return !0 - } - : e[0] - } - function be(e, t, n) { - for (var r = 0, i = t.length; r < i; r++) - oe(e, t[r], n); - return n - } - function we(e, t, n, r, i) { - for (var o, a = [], s = 0, u = e.length, l = null != t; s < u; s++) - (o = e[s]) && (n && !n(o, r, i) || (a.push(o), - l && t.push(s))); - return a - } - function Te(e, t, n, r, i, o) { - return r && !r[b] && (r = Te(r)), - i && !i[b] && (i = Te(i, o)), - se(function(o, a, s, u) { - var l, c, f, p = [], d = [], h = a.length, g = o || be(t || "*", s.nodeType ? [s] : s, []), y = !e || !o && t ? g : we(g, p, e, s, u), v = n ? i || (o ? e : h || r) ? [] : a : y; - if (n && n(y, v, s, u), - r) { - l = we(v, d), - r(l, [], s, u), - c = l.length; - while (c--) - (f = l[c]) && (v[d[c]] = !(y[d[c]] = f)) - } - if (o) { - if (i || e) { - if (i) { - l = [], - c = v.length; - while (c--) - (f = v[c]) && l.push(y[c] = f); - i(null, v = [], l, u) - } - c = v.length; - while (c--) - (f = v[c]) && (l = i ? O(o, f) : p[c]) > -1 && (o[l] = !(a[l] = f)) - } - } else - v = we(v === a ? v.splice(h, v.length) : v), - i ? i(null, a, v, u) : L.apply(a, v) - }) - } - function Ce(e) { - for (var t, n, i, o = e.length, a = r.relative[e[0].type], s = a || r.relative[" "], u = a ? 1 : 0, c = me(function(e) { - return e === t - }, s, !0), f = me(function(e) { - return O(t, e) > -1 - }, s, !0), p = [function(e, n, r) { - var i = !a && (r || n !== l) || ((t = n).nodeType ? c(e, n, r) : f(e, n, r)); - return t = null, - i - } - ]; u < o; u++) - if (n = r.relative[e[u].type]) - p = [me(xe(p), n)]; - else { - if ((n = r.filter[e[u].type].apply(null, e[u].matches))[b]) { - for (i = ++u; i < o; i++) - if (r.relative[e[i].type]) - break; - return Te(u > 1 && xe(p), u > 1 && ve(e.slice(0, u - 1).concat({ - value: " " === e[u - 2].type ? "*" : "" - })).replace(B, "$1"), n, u < i && Ce(e.slice(u, i)), i < o && Ce(e = e.slice(i)), i < o && ve(e)) - } - p.push(n) - } - return xe(p) - } - function Ee(e, t) { - var n = t.length > 0 - , i = e.length > 0 - , o = function(o, a, s, u, c) { - var f, h, y, v = 0, m = "0", x = o && [], b = [], w = l, C = o || i && r.find.TAG("*", c), E = T += null == w ? 1 : Math.random() || .1, k = C.length; - for (c && (l = a === d || a || c); m !== k && null != (f = C[m]); m++) { - if (i && f) { - h = 0, - a || f.ownerDocument === d || (p(f), - s = !g); - while (y = e[h++]) - if (y(f, a || d, s)) { - u.push(f); - break - } - c && (T = E) - } - n && ((f = !y && f) && v--, - o && x.push(f)) - } - if (v += m, - n && m !== v) { - h = 0; - while (y = t[h++]) - y(x, b, a, s); - if (o) { - if (v > 0) - while (m--) - x[m] || b[m] || (b[m] = j.call(u)); - b = we(b) - } - L.apply(u, b), - c && !o && b.length > 0 && v + t.length > 1 && oe.uniqueSort(u) - } - return c && (T = E, - l = w), - x - }; - return n ? se(o) : o - } - return s = oe.compile = function(e, t) { - var n, r = [], i = [], o = S[e + " "]; - if (!o) { - t || (t = a(e)), - n = t.length; - while (n--) - (o = Ce(t[n]))[b] ? r.push(o) : i.push(o); - (o = S(e, Ee(i, r))).selector = e - } - return o - } - , - u = oe.select = function(e, t, n, i) { - var o, u, l, c, f, p = "function" == typeof e && e, d = !i && a(e = p.selector || e); - if (n = n || [], - 1 === d.length) { - if ((u = d[0] = d[0].slice(0)).length > 2 && "ID" === (l = u[0]).type && 9 === t.nodeType && g && r.relative[u[1].type]) { - if (!(t = (r.find.ID(l.matches[0].replace(Z, ee), t) || [])[0])) - return n; - p && (t = t.parentNode), - e = e.slice(u.shift().value.length) - } - o = V.needsContext.test(e) ? 0 : u.length; - while (o--) { - if (l = u[o], - r.relative[c = l.type]) - break; - if ((f = r.find[c]) && (i = f(l.matches[0].replace(Z, ee), K.test(u[0].type) && ge(t.parentNode) || t))) { - if (u.splice(o, 1), - !(e = i.length && ve(u))) - return L.apply(n, i), - n; - break - } - } - } - return (p || s(e, d))(i, t, !g, n, !t || K.test(e) && ge(t.parentNode) || t), - n - } - , - n.sortStable = b.split("").sort(D).join("") === b, - n.detectDuplicates = !!f, - p(), - n.sortDetached = ue(function(e) { - return 1 & e.compareDocumentPosition(d.createElement("fieldset")) - }), - ue(function(e) { - return e.innerHTML = "", - "#" === e.firstChild.getAttribute("href") - }) || le("type|href|height|width", function(e, t, n) { - if (!n) - return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2) - }), - n.attributes && ue(function(e) { - return e.innerHTML = "", - e.firstChild.setAttribute("value", ""), - "" === e.firstChild.getAttribute("value") - }) || le("value", function(e, t, n) { - if (!n && "input" === e.nodeName.toLowerCase()) - return e.defaultValue - }), - ue(function(e) { - return null == e.getAttribute("disabled") - }) || le(P, function(e, t, n) { - var r; - if (!n) - return !0 === e[t] ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified ? r.value : null - }), - oe - }(e); - w.find = E, - w.expr = E.selectors, - w.expr[":"] = w.expr.pseudos, - w.uniqueSort = w.unique = E.uniqueSort, - w.text = E.getText, - w.isXMLDoc = E.isXML, - w.contains = E.contains, - w.escapeSelector = E.escape; - var k = function(e, t, n) { - var r = [] - , i = void 0 !== n; - while ((e = e[t]) && 9 !== e.nodeType) - if (1 === e.nodeType) { - if (i && w(e).is(n)) - break; - r.push(e) - } - return r - } - , S = function(e, t) { - for (var n = []; e; e = e.nextSibling) - 1 === e.nodeType && e !== t && n.push(e); - return n - } - , D = w.expr.match.needsContext; - function N(e, t) { - return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() - } - var A = /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i; - function j(e, t, n) { - return g(t) ? w.grep(e, function(e, r) { - return !!t.call(e, r, e) !== n - }) : t.nodeType ? w.grep(e, function(e) { - return e === t !== n - }) : "string" != typeof t ? w.grep(e, function(e) { - return u.call(t, e) > -1 !== n - }) : w.filter(t, e, n) - } - w.filter = function(e, t, n) { - var r = t[0]; - return n && (e = ":not(" + e + ")"), - 1 === t.length && 1 === r.nodeType ? w.find.matchesSelector(r, e) ? [r] : [] : w.find.matches(e, w.grep(t, function(e) { - return 1 === e.nodeType - })) - } - , - w.fn.extend({ - find: function(e) { - var t, n, r = this.length, i = this; - if ("string" != typeof e) - return this.pushStack(w(e).filter(function() { - for (t = 0; t < r; t++) - if (w.contains(i[t], this)) - return !0 - })); - for (n = this.pushStack([]), - t = 0; t < r; t++) - w.find(e, i[t], n); - return r > 1 ? w.uniqueSort(n) : n - }, - filter: function(e) { - return this.pushStack(j(this, e || [], !1)) - }, - not: function(e) { - return this.pushStack(j(this, e || [], !0)) - }, - is: function(e) { - return !!j(this, "string" == typeof e && D.test(e) ? w(e) : e || [], !1).length - } - }); - var q, L = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/; - (w.fn.init = function(e, t, n) { - var i, o; - if (!e) - return this; - if (n = n || q, - "string" == typeof e) { - if (!(i = "<" === e[0] && ">" === e[e.length - 1] && e.length >= 3 ? [null, e, null] : L.exec(e)) || !i[1] && t) - return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e); - if (i[1]) { - if (t = t instanceof w ? t[0] : t, - w.merge(this, w.parseHTML(i[1], t && t.nodeType ? t.ownerDocument || t : r, !0)), - A.test(i[1]) && w.isPlainObject(t)) - for (i in t) - g(this[i]) ? this[i](t[i]) : this.attr(i, t[i]); - return this - } - return (o = r.getElementById(i[2])) && (this[0] = o, - this.length = 1), - this - } - return e.nodeType ? (this[0] = e, - this.length = 1, - this) : g(e) ? void 0 !== n.ready ? n.ready(e) : e(w) : w.makeArray(e, this) - } - ).prototype = w.fn, - q = w(r); - var H = /^(?:parents|prev(?:Until|All))/ - , O = { - children: !0, - contents: !0, - next: !0, - prev: !0 - }; - w.fn.extend({ - has: function(e) { - var t = w(e, this) - , n = t.length; - return this.filter(function() { - for (var e = 0; e < n; e++) - if (w.contains(this, t[e])) - return !0 - }) - }, - closest: function(e, t) { - var n, r = 0, i = this.length, o = [], a = "string" != typeof e && w(e); - if (!D.test(e)) - for (; r < i; r++) - for (n = this[r]; n && n !== t; n = n.parentNode) - if (n.nodeType < 11 && (a ? a.index(n) > -1 : 1 === n.nodeType && w.find.matchesSelector(n, e))) { - o.push(n); - break - } - return this.pushStack(o.length > 1 ? w.uniqueSort(o) : o) - }, - index: function(e) { - return e ? "string" == typeof e ? u.call(w(e), this[0]) : u.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 - }, - add: function(e, t) { - return this.pushStack(w.uniqueSort(w.merge(this.get(), w(e, t)))) - }, - addBack: function(e) { - return this.add(null == e ? this.prevObject : this.prevObject.filter(e)) - } - }); - function P(e, t) { - while ((e = e[t]) && 1 !== e.nodeType) - ; - return e - } - w.each({ - parent: function(e) { - var t = e.parentNode; - return t && 11 !== t.nodeType ? t : null - }, - parents: function(e) { - return k(e, "parentNode") - }, - parentsUntil: function(e, t, n) { - return k(e, "parentNode", n) - }, - next: function(e) { - return P(e, "nextSibling") - }, - prev: function(e) { - return P(e, "previousSibling") - }, - nextAll: function(e) { - return k(e, "nextSibling") - }, - prevAll: function(e) { - return k(e, "previousSibling") - }, - nextUntil: function(e, t, n) { - return k(e, "nextSibling", n) - }, - prevUntil: function(e, t, n) { - return k(e, "previousSibling", n) - }, - siblings: function(e) { - return S((e.parentNode || {}).firstChild, e) - }, - children: function(e) { - return S(e.firstChild) - }, - contents: function(e) { - return N(e, "iframe") ? e.contentDocument : (N(e, "template") && (e = e.content || e), - w.merge([], e.childNodes)) - } - }, function(e, t) { - w.fn[e] = function(n, r) { - var i = w.map(this, t, n); - return "Until" !== e.slice(-5) && (r = n), - r && "string" == typeof r && (i = w.filter(r, i)), - this.length > 1 && (O[e] || w.uniqueSort(i), - H.test(e) && i.reverse()), - this.pushStack(i) - } - }); - var M = /[^\x20\t\r\n\f]+/g; - function R(e) { - var t = {}; - return w.each(e.match(M) || [], function(e, n) { - t[n] = !0 - }), - t - } - w.Callbacks = function(e) { - e = "string" == typeof e ? R(e) : w.extend({}, e); - var t, n, r, i, o = [], a = [], s = -1, u = function() { - for (i = i || e.once, - r = t = !0; a.length; s = -1) { - n = a.shift(); - while (++s < o.length) - !1 === o[s].apply(n[0], n[1]) && e.stopOnFalse && (s = o.length, - n = !1) - } - e.memory || (n = !1), - t = !1, - i && (o = n ? [] : "") - }, l = { - add: function() { - return o && (n && !t && (s = o.length - 1, - a.push(n)), - function t(n) { - w.each(n, function(n, r) { - g(r) ? e.unique && l.has(r) || o.push(r) : r && r.length && "string" !== x(r) && t(r) - }) - }(arguments), - n && !t && u()), - this - }, - remove: function() { - return w.each(arguments, function(e, t) { - var n; - while ((n = w.inArray(t, o, n)) > -1) - o.splice(n, 1), - n <= s && s-- - }), - this - }, - has: function(e) { - return e ? w.inArray(e, o) > -1 : o.length > 0 - }, - empty: function() { - return o && (o = []), - this - }, - disable: function() { - return i = a = [], - o = n = "", - this - }, - disabled: function() { - return !o - }, - lock: function() { - return i = a = [], - n || t || (o = n = ""), - this - }, - locked: function() { - return !!i - }, - fireWith: function(e, n) { - return i || (n = [e, (n = n || []).slice ? n.slice() : n], - a.push(n), - t || u()), - this - }, - fire: function() { - return l.fireWith(this, arguments), - this - }, - fired: function() { - return !!r - } - }; - return l - } - ; - function I(e) { - return e - } - function W(e) { - throw e - } - function $(e, t, n, r) { - var i; - try { - e && g(i = e.promise) ? i.call(e).done(t).fail(n) : e && g(i = e.then) ? i.call(e, t, n) : t.apply(void 0, [e].slice(r)) - } catch (e) { - n.apply(void 0, [e]) - } - } - w.extend({ - Deferred: function(t) { - var n = [["notify", "progress", w.Callbacks("memory"), w.Callbacks("memory"), 2], ["resolve", "done", w.Callbacks("once memory"), w.Callbacks("once memory"), 0, "resolved"], ["reject", "fail", w.Callbacks("once memory"), w.Callbacks("once memory"), 1, "rejected"]] - , r = "pending" - , i = { - state: function() { - return r - }, - always: function() { - return o.done(arguments).fail(arguments), - this - }, - "catch": function(e) { - return i.then(null, e) - }, - pipe: function() { - var e = arguments; - return w.Deferred(function(t) { - w.each(n, function(n, r) { - var i = g(e[r[4]]) && e[r[4]]; - o[r[1]](function() { - var e = i && i.apply(this, arguments); - e && g(e.promise) ? e.promise().progress(t.notify).done(t.resolve).fail(t.reject) : t[r[0] + "With"](this, i ? [e] : arguments) - }) - }), - e = null - }).promise() - }, - then: function(t, r, i) { - var o = 0; - function a(t, n, r, i) { - return function() { - var s = this - , u = arguments - , l = function() { - var e, l; - if (!(t < o)) { - if ((e = r.apply(s, u)) === n.promise()) - throw new TypeError("Thenable self-resolution"); - l = e && ("object" == typeof e || "function" == typeof e) && e.then, - g(l) ? i ? l.call(e, a(o, n, I, i), a(o, n, W, i)) : (o++, - l.call(e, a(o, n, I, i), a(o, n, W, i), a(o, n, I, n.notifyWith))) : (r !== I && (s = void 0, - u = [e]), - (i || n.resolveWith)(s, u)) - } - } - , c = i ? l : function() { - try { - l() - } catch (e) { - w.Deferred.exceptionHook && w.Deferred.exceptionHook(e, c.stackTrace), - t + 1 >= o && (r !== W && (s = void 0, - u = [e]), - n.rejectWith(s, u)) - } - } - ; - t ? c() : (w.Deferred.getStackHook && (c.stackTrace = w.Deferred.getStackHook()), - e.setTimeout(c)) - } - } - return w.Deferred(function(e) { - n[0][3].add(a(0, e, g(i) ? i : I, e.notifyWith)), - n[1][3].add(a(0, e, g(t) ? t : I)), - n[2][3].add(a(0, e, g(r) ? r : W)) - }).promise() - }, - promise: function(e) { - return null != e ? w.extend(e, i) : i - } - } - , o = {}; - return w.each(n, function(e, t) { - var a = t[2] - , s = t[5]; - i[t[1]] = a.add, - s && a.add(function() { - r = s - }, n[3 - e][2].disable, n[3 - e][3].disable, n[0][2].lock, n[0][3].lock), - a.add(t[3].fire), - o[t[0]] = function() { - return o[t[0] + "With"](this === o ? void 0 : this, arguments), - this - } - , - o[t[0] + "With"] = a.fireWith - }), - i.promise(o), - t && t.call(o, o), - o - }, - when: function(e) { - var t = arguments.length - , n = t - , r = Array(n) - , i = o.call(arguments) - , a = w.Deferred() - , s = function(e) { - return function(n) { - r[e] = this, - i[e] = arguments.length > 1 ? o.call(arguments) : n, - --t || a.resolveWith(r, i) - } - }; - if (t <= 1 && ($(e, a.done(s(n)).resolve, a.reject, !t), - "pending" === a.state() || g(i[n] && i[n].then))) - return a.then(); - while (n--) - $(i[n], s(n), a.reject); - return a.promise() - } - }); - var B = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; - w.Deferred.exceptionHook = function(t, n) { - e.console && e.console.warn && t && B.test(t.name) && e.console.warn("jQuery.Deferred exception: " + t.message, t.stack, n) - } - , - w.readyException = function(t) { - e.setTimeout(function() { - throw t - }) - } - ; - var F = w.Deferred(); - w.fn.ready = function(e) { - return F.then(e)["catch"](function(e) { - w.readyException(e) - }), - this - } - , - w.extend({ - isReady: !1, - readyWait: 1, - ready: function(e) { - (!0 === e ? --w.readyWait : w.isReady) || (w.isReady = !0, - !0 !== e && --w.readyWait > 0 || F.resolveWith(r, [w])) - } - }), - w.ready.then = F.then; - function _() { - r.removeEventListener("DOMContentLoaded", _), - e.removeEventListener("load", _), - w.ready() - } - "complete" === r.readyState || "loading" !== r.readyState && !r.documentElement.doScroll ? e.setTimeout(w.ready) : (r.addEventListener("DOMContentLoaded", _), - e.addEventListener("load", _)); - var z = function(e, t, n, r, i, o, a) { - var s = 0 - , u = e.length - , l = null == n; - if ("object" === x(n)) { - i = !0; - for (s in n) - z(e, t, s, n[s], !0, o, a) - } else if (void 0 !== r && (i = !0, - g(r) || (a = !0), - l && (a ? (t.call(e, r), - t = null) : (l = t, - t = function(e, t, n) { - return l.call(w(e), n) - } - )), - t)) - for (; s < u; s++) - t(e[s], n, a ? r : r.call(e[s], s, t(e[s], n))); - return i ? e : l ? t.call(e) : u ? t(e[0], n) : o - } - , X = /^-ms-/ - , U = /-([a-z])/g; - function V(e, t) { - return t.toUpperCase() - } - function G(e) { - return e.replace(X, "ms-").replace(U, V) - } - var Y = function(e) { - return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType - }; - function Q() { - this.expando = w.expando + Q.uid++ - } - Q.uid = 1, - Q.prototype = { - cache: function(e) { - var t = e[this.expando]; - return t || (t = {}, - Y(e) && (e.nodeType ? e[this.expando] = t : Object.defineProperty(e, this.expando, { - value: t, - configurable: !0 - }))), - t - }, - set: function(e, t, n) { - var r, i = this.cache(e); - if ("string" == typeof t) - i[G(t)] = n; - else - for (r in t) - i[G(r)] = t[r]; - return i - }, - get: function(e, t) { - return void 0 === t ? this.cache(e) : e[this.expando] && e[this.expando][G(t)] - }, - access: function(e, t, n) { - return void 0 === t || t && "string" == typeof t && void 0 === n ? this.get(e, t) : (this.set(e, t, n), - void 0 !== n ? n : t) - }, - remove: function(e, t) { - var n, r = e[this.expando]; - if (void 0 !== r) { - if (void 0 !== t) { - n = (t = Array.isArray(t) ? t.map(G) : (t = G(t))in r ? [t] : t.match(M) || []).length; - while (n--) - delete r[t[n]] - } - (void 0 === t || w.isEmptyObject(r)) && (e.nodeType ? e[this.expando] = void 0 : delete e[this.expando]) - } - }, - hasData: function(e) { - var t = e[this.expando]; - return void 0 !== t && !w.isEmptyObject(t) - } - }; - var J = new Q - , K = new Q - , Z = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/ - , ee = /[A-Z]/g; - function te(e) { - return "true" === e || "false" !== e && ("null" === e ? null : e === +e + "" ? +e : Z.test(e) ? JSON.parse(e) : e) - } - function ne(e, t, n) { - var r; - if (void 0 === n && 1 === e.nodeType) - if (r = "data-" + t.replace(ee, "-$&").toLowerCase(), - "string" == typeof (n = e.getAttribute(r))) { - try { - n = te(n) - } catch (e) {} - K.set(e, t, n) - } else - n = void 0; - return n - } - w.extend({ - hasData: function(e) { - return K.hasData(e) || J.hasData(e) - }, - data: function(e, t, n) { - return K.access(e, t, n) - }, - removeData: function(e, t) { - K.remove(e, t) - }, - _data: function(e, t, n) { - return J.access(e, t, n) - }, - _removeData: function(e, t) { - J.remove(e, t) - } - }), - w.fn.extend({ - data: function(e, t) { - var n, r, i, o = this[0], a = o && o.attributes; - if (void 0 === e) { - if (this.length && (i = K.get(o), - 1 === o.nodeType && !J.get(o, "hasDataAttrs"))) { - n = a.length; - while (n--) - a[n] && 0 === (r = a[n].name).indexOf("data-") && (r = G(r.slice(5)), - ne(o, r, i[r])); - J.set(o, "hasDataAttrs", !0) - } - return i - } - return "object" == typeof e ? this.each(function() { - K.set(this, e) - }) : z(this, function(t) { - var n; - if (o && void 0 === t) { - if (void 0 !== (n = K.get(o, e))) - return n; - if (void 0 !== (n = ne(o, e))) - return n - } else - this.each(function() { - K.set(this, e, t) - }) - }, null, t, arguments.length > 1, null, !0) - }, - removeData: function(e) { - return this.each(function() { - K.remove(this, e) - }) - } - }), - w.extend({ - queue: function(e, t, n) { - var r; - if (e) - return t = (t || "fx") + "queue", - r = J.get(e, t), - n && (!r || Array.isArray(n) ? r = J.access(e, t, w.makeArray(n)) : r.push(n)), - r || [] - }, - dequeue: function(e, t) { - t = t || "fx"; - var n = w.queue(e, t) - , r = n.length - , i = n.shift() - , o = w._queueHooks(e, t) - , a = function() { - w.dequeue(e, t) - }; - "inprogress" === i && (i = n.shift(), - r--), - i && ("fx" === t && n.unshift("inprogress"), - delete o.stop, - i.call(e, a, o)), - !r && o && o.empty.fire() - }, - _queueHooks: function(e, t) { - var n = t + "queueHooks"; - return J.get(e, n) || J.access(e, n, { - empty: w.Callbacks("once memory").add(function() { - J.remove(e, [t + "queue", n]) - }) - }) - } - }), - w.fn.extend({ - queue: function(e, t) { - var n = 2; - return "string" != typeof e && (t = e, - e = "fx", - n--), - arguments.length < n ? w.queue(this[0], e) : void 0 === t ? this : this.each(function() { - var n = w.queue(this, e, t); - w._queueHooks(this, e), - "fx" === e && "inprogress" !== n[0] && w.dequeue(this, e) - }) - }, - dequeue: function(e) { - return this.each(function() { - w.dequeue(this, e) - }) - }, - clearQueue: function(e) { - return this.queue(e || "fx", []) - }, - promise: function(e, t) { - var n, r = 1, i = w.Deferred(), o = this, a = this.length, s = function() { - --r || i.resolveWith(o, [o]) - }; - "string" != typeof e && (t = e, - e = void 0), - e = e || "fx"; - while (a--) - (n = J.get(o[a], e + "queueHooks")) && n.empty && (r++, - n.empty.add(s)); - return s(), - i.promise(t) - } - }); - var re = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source - , ie = new RegExp("^(?:([+-])=|)(" + re + ")([a-z%]*)$","i") - , oe = ["Top", "Right", "Bottom", "Left"] - , ae = function(e, t) { - return "none" === (e = t || e).style.display || "" === e.style.display && w.contains(e.ownerDocument, e) && "none" === w.css(e, "display") - } - , se = function(e, t, n, r) { - var i, o, a = {}; - for (o in t) - a[o] = e.style[o], - e.style[o] = t[o]; - i = n.apply(e, r || []); - for (o in t) - e.style[o] = a[o]; - return i - }; - function ue(e, t, n, r) { - var i, o, a = 20, s = r ? function() { - return r.cur() - } - : function() { - return w.css(e, t, "") - } - , u = s(), l = n && n[3] || (w.cssNumber[t] ? "" : "px"), c = (w.cssNumber[t] || "px" !== l && +u) && ie.exec(w.css(e, t)); - if (c && c[3] !== l) { - u /= 2, - l = l || c[3], - c = +u || 1; - while (a--) - w.style(e, t, c + l), - (1 - o) * (1 - (o = s() / u || .5)) <= 0 && (a = 0), - c /= o; - c *= 2, - w.style(e, t, c + l), - n = n || [] - } - return n && (c = +c || +u || 0, - i = n[1] ? c + (n[1] + 1) * n[2] : +n[2], - r && (r.unit = l, - r.start = c, - r.end = i)), - i - } - var le = {}; - function ce(e) { - var t, n = e.ownerDocument, r = e.nodeName, i = le[r]; - return i || (t = n.body.appendChild(n.createElement(r)), - i = w.css(t, "display"), - t.parentNode.removeChild(t), - "none" === i && (i = "block"), - le[r] = i, - i) - } - function fe(e, t) { - for (var n, r, i = [], o = 0, a = e.length; o < a; o++) - (r = e[o]).style && (n = r.style.display, - t ? ("none" === n && (i[o] = J.get(r, "display") || null, - i[o] || (r.style.display = "")), - "" === r.style.display && ae(r) && (i[o] = ce(r))) : "none" !== n && (i[o] = "none", - J.set(r, "display", n))); - for (o = 0; o < a; o++) - null != i[o] && (e[o].style.display = i[o]); - return e - } - w.fn.extend({ - show: function() { - return fe(this, !0) - }, - hide: function() { - return fe(this) - }, - toggle: function(e) { - return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() { - ae(this) ? w(this).show() : w(this).hide() - }) - } - }); - var pe = /^(?:checkbox|radio)$/i - , de = /<([a-z][^\/\0>\x20\t\r\n\f]+)/i - , he = /^$|^module$|\/(?:java|ecma)script/i - , ge = { - option: [1, ""], - thead: [1, "", "
    "], - col: [2, "", "
    "], - tr: [2, "", "
    "], - td: [3, "", "
    "], - _default: [0, "", ""] - }; - ge.optgroup = ge.option, - ge.tbody = ge.tfoot = ge.colgroup = ge.caption = ge.thead, - ge.th = ge.td; - function ye(e, t) { - var n; - return n = "undefined" != typeof e.getElementsByTagName ? e.getElementsByTagName(t || "*") : "undefined" != typeof e.querySelectorAll ? e.querySelectorAll(t || "*") : [], - void 0 === t || t && N(e, t) ? w.merge([e], n) : n - } - function ve(e, t) { - for (var n = 0, r = e.length; n < r; n++) - J.set(e[n], "globalEval", !t || J.get(t[n], "globalEval")) - } - var me = /<|&#?\w+;/; - function xe(e, t, n, r, i) { - for (var o, a, s, u, l, c, f = t.createDocumentFragment(), p = [], d = 0, h = e.length; d < h; d++) - if ((o = e[d]) || 0 === o) - if ("object" === x(o)) - w.merge(p, o.nodeType ? [o] : o); - else if (me.test(o)) { - a = a || f.appendChild(t.createElement("div")), - s = (de.exec(o) || ["", ""])[1].toLowerCase(), - u = ge[s] || ge._default, - a.innerHTML = u[1] + w.htmlPrefilter(o) + u[2], - c = u[0]; - while (c--) - a = a.lastChild; - w.merge(p, a.childNodes), - (a = f.firstChild).textContent = "" - } else - p.push(t.createTextNode(o)); - f.textContent = "", - d = 0; - while (o = p[d++]) - if (r && w.inArray(o, r) > -1) - i && i.push(o); - else if (l = w.contains(o.ownerDocument, o), - a = ye(f.appendChild(o), "script"), - l && ve(a), - n) { - c = 0; - while (o = a[c++]) - he.test(o.type || "") && n.push(o) - } - return f - } - !function() { - var e = r.createDocumentFragment().appendChild(r.createElement("div")) - , t = r.createElement("input"); - t.setAttribute("type", "radio"), - t.setAttribute("checked", "checked"), - t.setAttribute("name", "t"), - e.appendChild(t), - h.checkClone = e.cloneNode(!0).cloneNode(!0).lastChild.checked, - e.innerHTML = "", - h.noCloneChecked = !!e.cloneNode(!0).lastChild.defaultValue - }(); - var be = r.documentElement - , we = /^key/ - , Te = /^(?:mouse|pointer|contextmenu|drag|drop)|click/ - , Ce = /^([^.]*)(?:\.(.+)|)/; - function Ee() { - return !0 - } - function ke() { - return !1 - } - function Se() { - try { - return r.activeElement - } catch (e) {} - } - function De(e, t, n, r, i, o) { - var a, s; - if ("object" == typeof t) { - "string" != typeof n && (r = r || n, - n = void 0); - for (s in t) - De(e, s, n, r, t[s], o); - return e - } - if (null == r && null == i ? (i = n, - r = n = void 0) : null == i && ("string" == typeof n ? (i = r, - r = void 0) : (i = r, - r = n, - n = void 0)), - !1 === i) - i = ke; - else if (!i) - return e; - return 1 === o && (a = i, - (i = function(e) { - return w().off(e), - a.apply(this, arguments) - } - ).guid = a.guid || (a.guid = w.guid++)), - e.each(function() { - w.event.add(this, t, i, r, n) - }) - } - w.event = { - global: {}, - add: function(e, t, n, r, i) { - var o, a, s, u, l, c, f, p, d, h, g, y = J.get(e); - if (y) { - n.handler && (n = (o = n).handler, - i = o.selector), - i && w.find.matchesSelector(be, i), - n.guid || (n.guid = w.guid++), - (u = y.events) || (u = y.events = {}), - (a = y.handle) || (a = y.handle = function(t) { - return "undefined" != typeof w && w.event.triggered !== t.type ? w.event.dispatch.apply(e, arguments) : void 0 - } - ), - l = (t = (t || "").match(M) || [""]).length; - while (l--) - d = g = (s = Ce.exec(t[l]) || [])[1], - h = (s[2] || "").split(".").sort(), - d && (f = w.event.special[d] || {}, - d = (i ? f.delegateType : f.bindType) || d, - f = w.event.special[d] || {}, - c = w.extend({ - type: d, - origType: g, - data: r, - handler: n, - guid: n.guid, - selector: i, - needsContext: i && w.expr.match.needsContext.test(i), - namespace: h.join(".") - }, o), - (p = u[d]) || ((p = u[d] = []).delegateCount = 0, - f.setup && !1 !== f.setup.call(e, r, h, a) || e.addEventListener && e.addEventListener(d, a)), - f.add && (f.add.call(e, c), - c.handler.guid || (c.handler.guid = n.guid)), - i ? p.splice(p.delegateCount++, 0, c) : p.push(c), - w.event.global[d] = !0) - } - }, - remove: function(e, t, n, r, i) { - var o, a, s, u, l, c, f, p, d, h, g, y = J.hasData(e) && J.get(e); - if (y && (u = y.events)) { - l = (t = (t || "").match(M) || [""]).length; - while (l--) - if (s = Ce.exec(t[l]) || [], - d = g = s[1], - h = (s[2] || "").split(".").sort(), - d) { - f = w.event.special[d] || {}, - p = u[d = (r ? f.delegateType : f.bindType) || d] || [], - s = s[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), - a = o = p.length; - while (o--) - c = p[o], - !i && g !== c.origType || n && n.guid !== c.guid || s && !s.test(c.namespace) || r && r !== c.selector && ("**" !== r || !c.selector) || (p.splice(o, 1), - c.selector && p.delegateCount--, - f.remove && f.remove.call(e, c)); - a && !p.length && (f.teardown && !1 !== f.teardown.call(e, h, y.handle) || w.removeEvent(e, d, y.handle), - delete u[d]) - } else - for (d in u) - w.event.remove(e, d + t[l], n, r, !0); - w.isEmptyObject(u) && J.remove(e, "handle events") - } - }, - dispatch: function(e) { - var t = w.event.fix(e), n, r, i, o, a, s, u = new Array(arguments.length), l = (J.get(this, "events") || {})[t.type] || [], c = w.event.special[t.type] || {}; - for (u[0] = t, - n = 1; n < arguments.length; n++) - u[n] = arguments[n]; - if (t.delegateTarget = this, - !c.preDispatch || !1 !== c.preDispatch.call(this, t)) { - s = w.event.handlers.call(this, t, l), - n = 0; - while ((o = s[n++]) && !t.isPropagationStopped()) { - t.currentTarget = o.elem, - r = 0; - while ((a = o.handlers[r++]) && !t.isImmediatePropagationStopped()) - t.rnamespace && !t.rnamespace.test(a.namespace) || (t.handleObj = a, - t.data = a.data, - void 0 !== (i = ((w.event.special[a.origType] || {}).handle || a.handler).apply(o.elem, u)) && !1 === (t.result = i) && (t.preventDefault(), - t.stopPropagation())) - } - return c.postDispatch && c.postDispatch.call(this, t), - t.result - } - }, - handlers: function(e, t) { - var n, r, i, o, a, s = [], u = t.delegateCount, l = e.target; - if (u && l.nodeType && !("click" === e.type && e.button >= 1)) - for (; l !== this; l = l.parentNode || this) - if (1 === l.nodeType && ("click" !== e.type || !0 !== l.disabled)) { - for (o = [], - a = {}, - n = 0; n < u; n++) - void 0 === a[i = (r = t[n]).selector + " "] && (a[i] = r.needsContext ? w(i, this).index(l) > -1 : w.find(i, this, null, [l]).length), - a[i] && o.push(r); - o.length && s.push({ - elem: l, - handlers: o - }) - } - return l = this, - u < t.length && s.push({ - elem: l, - handlers: t.slice(u) - }), - s - }, - addProp: function(e, t) { - Object.defineProperty(w.Event.prototype, e, { - enumerable: !0, - configurable: !0, - get: g(t) ? function() { - if (this.originalEvent) - return t(this.originalEvent) - } - : function() { - if (this.originalEvent) - return this.originalEvent[e] - } - , - set: function(t) { - Object.defineProperty(this, e, { - enumerable: !0, - configurable: !0, - writable: !0, - value: t - }) - } - }) - }, - fix: function(e) { - return e[w.expando] ? e : new w.Event(e) - }, - special: { - load: { - noBubble: !0 - }, - focus: { - trigger: function() { - if (this !== Se() && this.focus) - return this.focus(), - !1 - }, - delegateType: "focusin" - }, - blur: { - trigger: function() { - if (this === Se() && this.blur) - return this.blur(), - !1 - }, - delegateType: "focusout" - }, - click: { - trigger: function() { - if ("checkbox" === this.type && this.click && N(this, "input")) - return this.click(), - !1 - }, - _default: function(e) { - return N(e.target, "a") - } - }, - beforeunload: { - postDispatch: function(e) { - void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result) - } - } - } - }, - w.removeEvent = function(e, t, n) { - e.removeEventListener && e.removeEventListener(t, n) - } - , - w.Event = function(e, t) { - if (!(this instanceof w.Event)) - return new w.Event(e,t); - e && e.type ? (this.originalEvent = e, - this.type = e.type, - this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e.returnValue ? Ee : ke, - this.target = e.target && 3 === e.target.nodeType ? e.target.parentNode : e.target, - this.currentTarget = e.currentTarget, - this.relatedTarget = e.relatedTarget) : this.type = e, - t && w.extend(this, t), - this.timeStamp = e && e.timeStamp || Date.now(), - this[w.expando] = !0 - } - , - w.Event.prototype = { - constructor: w.Event, - isDefaultPrevented: ke, - isPropagationStopped: ke, - isImmediatePropagationStopped: ke, - isSimulated: !1, - preventDefault: function() { - var e = this.originalEvent; - this.isDefaultPrevented = Ee, - e && !this.isSimulated && e.preventDefault() - }, - stopPropagation: function() { - var e = this.originalEvent; - this.isPropagationStopped = Ee, - e && !this.isSimulated && e.stopPropagation() - }, - stopImmediatePropagation: function() { - var e = this.originalEvent; - this.isImmediatePropagationStopped = Ee, - e && !this.isSimulated && e.stopImmediatePropagation(), - this.stopPropagation() - } - }, - w.each({ - altKey: !0, - bubbles: !0, - cancelable: !0, - changedTouches: !0, - ctrlKey: !0, - detail: !0, - eventPhase: !0, - metaKey: !0, - pageX: !0, - pageY: !0, - shiftKey: !0, - view: !0, - "char": !0, - charCode: !0, - key: !0, - keyCode: !0, - button: !0, - buttons: !0, - clientX: !0, - clientY: !0, - offsetX: !0, - offsetY: !0, - pointerId: !0, - pointerType: !0, - screenX: !0, - screenY: !0, - targetTouches: !0, - toElement: !0, - touches: !0, - which: function(e) { - var t = e.button; - return null == e.which && we.test(e.type) ? null != e.charCode ? e.charCode : e.keyCode : !e.which && void 0 !== t && Te.test(e.type) ? 1 & t ? 1 : 2 & t ? 3 : 4 & t ? 2 : 0 : e.which - } - }, w.event.addProp), - w.each({ - mouseenter: "mouseover", - mouseleave: "mouseout", - pointerenter: "pointerover", - pointerleave: "pointerout" - }, function(e, t) { - w.event.special[e] = { - delegateType: t, - bindType: t, - handle: function(e) { - var n, r = this, i = e.relatedTarget, o = e.handleObj; - return i && (i === r || w.contains(r, i)) || (e.type = o.origType, - n = o.handler.apply(this, arguments), - e.type = t), - n - } - } - }), - w.fn.extend({ - on: function(e, t, n, r) { - return De(this, e, t, n, r) - }, - one: function(e, t, n, r) { - return De(this, e, t, n, r, 1) - }, - off: function(e, t, n) { - var r, i; - if (e && e.preventDefault && e.handleObj) - return r = e.handleObj, - w(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), - this; - if ("object" == typeof e) { - for (i in e) - this.off(i, t, e[i]); - return this - } - return !1 !== t && "function" != typeof t || (n = t, - t = void 0), - !1 === n && (n = ke), - this.each(function() { - w.event.remove(this, e, n, t) - }) - } - }); - var Ne = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi - , Ae = /\s*$/g; - function Le(e, t) { - return N(e, "table") && N(11 !== t.nodeType ? t : t.firstChild, "tr") ? w(e).children("tbody")[0] || e : e - } - function He(e) { - return e.type = (null !== e.getAttribute("type")) + "/" + e.type, - e - } - function Oe(e) { - return "true/" === (e.type || "").slice(0, 5) ? e.type = e.type.slice(5) : e.removeAttribute("type"), - e - } - function Pe(e, t) { - var n, r, i, o, a, s, u, l; - if (1 === t.nodeType) { - if (J.hasData(e) && (o = J.access(e), - a = J.set(t, o), - l = o.events)) { - delete a.handle, - a.events = {}; - for (i in l) - for (n = 0, - r = l[i].length; n < r; n++) - w.event.add(t, i, l[i][n]) - } - K.hasData(e) && (s = K.access(e), - u = w.extend({}, s), - K.set(t, u)) - } - } - function Me(e, t) { - var n = t.nodeName.toLowerCase(); - "input" === n && pe.test(e.type) ? t.checked = e.checked : "input" !== n && "textarea" !== n || (t.defaultValue = e.defaultValue) - } - function Re(e, t, n, r) { - t = a.apply([], t); - var i, o, s, u, l, c, f = 0, p = e.length, d = p - 1, y = t[0], v = g(y); - if (v || p > 1 && "string" == typeof y && !h.checkClone && je.test(y)) - return e.each(function(i) { - var o = e.eq(i); - v && (t[0] = y.call(this, i, o.html())), - Re(o, t, n, r) - }); - if (p && (i = xe(t, e[0].ownerDocument, !1, e, r), - o = i.firstChild, - 1 === i.childNodes.length && (i = o), - o || r)) { - for (u = (s = w.map(ye(i, "script"), He)).length; f < p; f++) - l = i, - f !== d && (l = w.clone(l, !0, !0), - u && w.merge(s, ye(l, "script"))), - n.call(e[f], l, f); - if (u) - for (c = s[s.length - 1].ownerDocument, - w.map(s, Oe), - f = 0; f < u; f++) - l = s[f], - he.test(l.type || "") && !J.access(l, "globalEval") && w.contains(c, l) && (l.src && "module" !== (l.type || "").toLowerCase() ? w._evalUrl && w._evalUrl(l.src) : m(l.textContent.replace(qe, ""), c, l)) - } - return e - } - function Ie(e, t, n) { - for (var r, i = t ? w.filter(t, e) : e, o = 0; null != (r = i[o]); o++) - n || 1 !== r.nodeType || w.cleanData(ye(r)), - r.parentNode && (n && w.contains(r.ownerDocument, r) && ve(ye(r, "script")), - r.parentNode.removeChild(r)); - return e - } - w.extend({ - htmlPrefilter: function(e) { - return e.replace(Ne, "<$1>") - }, - clone: function(e, t, n) { - var r, i, o, a, s = e.cloneNode(!0), u = w.contains(e.ownerDocument, e); - if (!(h.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || w.isXMLDoc(e))) - for (a = ye(s), - r = 0, - i = (o = ye(e)).length; r < i; r++) - Me(o[r], a[r]); - if (t) - if (n) - for (o = o || ye(e), - a = a || ye(s), - r = 0, - i = o.length; r < i; r++) - Pe(o[r], a[r]); - else - Pe(e, s); - return (a = ye(s, "script")).length > 0 && ve(a, !u && ye(e, "script")), - s - }, - cleanData: function(e) { - for (var t, n, r, i = w.event.special, o = 0; void 0 !== (n = e[o]); o++) - if (Y(n)) { - if (t = n[J.expando]) { - if (t.events) - for (r in t.events) - i[r] ? w.event.remove(n, r) : w.removeEvent(n, r, t.handle); - n[J.expando] = void 0 - } - n[K.expando] && (n[K.expando] = void 0) - } - } - }), - w.fn.extend({ - detach: function(e) { - return Ie(this, e, !0) - }, - remove: function(e) { - return Ie(this, e) - }, - text: function(e) { - return z(this, function(e) { - return void 0 === e ? w.text(this) : this.empty().each(function() { - 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = e) - }) - }, null, e, arguments.length) - }, - append: function() { - return Re(this, arguments, function(e) { - 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || Le(this, e).appendChild(e) - }) - }, - prepend: function() { - return Re(this, arguments, function(e) { - if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { - var t = Le(this, e); - t.insertBefore(e, t.firstChild) - } - }) - }, - before: function() { - return Re(this, arguments, function(e) { - this.parentNode && this.parentNode.insertBefore(e, this) - }) - }, - after: function() { - return Re(this, arguments, function(e) { - this.parentNode && this.parentNode.insertBefore(e, this.nextSibling) - }) - }, - empty: function() { - for (var e, t = 0; null != (e = this[t]); t++) - 1 === e.nodeType && (w.cleanData(ye(e, !1)), - e.textContent = ""); - return this - }, - clone: function(e, t) { - return e = null != e && e, - t = null == t ? e : t, - this.map(function() { - return w.clone(this, e, t) - }) - }, - html: function(e) { - return z(this, function(e) { - var t = this[0] || {} - , n = 0 - , r = this.length; - if (void 0 === e && 1 === t.nodeType) - return t.innerHTML; - if ("string" == typeof e && !Ae.test(e) && !ge[(de.exec(e) || ["", ""])[1].toLowerCase()]) { - e = w.htmlPrefilter(e); - try { - for (; n < r; n++) - 1 === (t = this[n] || {}).nodeType && (w.cleanData(ye(t, !1)), - t.innerHTML = e); - t = 0 - } catch (e) {} - } - t && this.empty().append(e) - }, null, e, arguments.length) - }, - replaceWith: function() { - var e = []; - return Re(this, arguments, function(t) { - var n = this.parentNode; - w.inArray(this, e) < 0 && (w.cleanData(ye(this)), - n && n.replaceChild(t, this)) - }, e) - } - }), - w.each({ - appendTo: "append", - prependTo: "prepend", - insertBefore: "before", - insertAfter: "after", - replaceAll: "replaceWith" - }, function(e, t) { - w.fn[e] = function(e) { - for (var n, r = [], i = w(e), o = i.length - 1, a = 0; a <= o; a++) - n = a === o ? this : this.clone(!0), - w(i[a])[t](n), - s.apply(r, n.get()); - return this.pushStack(r) - } - }); - var We = new RegExp("^(" + re + ")(?!px)[a-z%]+$","i") - , $e = function(t) { - var n = t.ownerDocument.defaultView; - return n && n.opener || (n = e), - n.getComputedStyle(t) - } - , Be = new RegExp(oe.join("|"),"i"); - !function() { - function t() { - if (c) { - l.style.cssText = "position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0", - c.style.cssText = "position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%", - be.appendChild(l).appendChild(c); - var t = e.getComputedStyle(c); - i = "1%" !== t.top, - u = 12 === n(t.marginLeft), - c.style.right = "60%", - s = 36 === n(t.right), - o = 36 === n(t.width), - c.style.position = "absolute", - a = 36 === c.offsetWidth || "absolute", - be.removeChild(l), - c = null - } - } - function n(e) { - return Math.round(parseFloat(e)) - } - var i, o, a, s, u, l = r.createElement("div"), c = r.createElement("div"); - c.style && (c.style.backgroundClip = "content-box", - c.cloneNode(!0).style.backgroundClip = "", - h.clearCloneStyle = "content-box" === c.style.backgroundClip, - w.extend(h, { - boxSizingReliable: function() { - return t(), - o - }, - pixelBoxStyles: function() { - return t(), - s - }, - pixelPosition: function() { - return t(), - i - }, - reliableMarginLeft: function() { - return t(), - u - }, - scrollboxSize: function() { - return t(), - a - } - })) - }(); - function Fe(e, t, n) { - var r, i, o, a, s = e.style; - return (n = n || $e(e)) && ("" !== (a = n.getPropertyValue(t) || n[t]) || w.contains(e.ownerDocument, e) || (a = w.style(e, t)), - !h.pixelBoxStyles() && We.test(a) && Be.test(t) && (r = s.width, - i = s.minWidth, - o = s.maxWidth, - s.minWidth = s.maxWidth = s.width = a, - a = n.width, - s.width = r, - s.minWidth = i, - s.maxWidth = o)), - void 0 !== a ? a + "" : a - } - function _e(e, t) { - return { - get: function() { - if (!e()) - return (this.get = t).apply(this, arguments); - delete this.get - } - } - } - var ze = /^(none|table(?!-c[ea]).+)/ - , Xe = /^--/ - , Ue = { - position: "absolute", - visibility: "hidden", - display: "block" - } - , Ve = { - letterSpacing: "0", - fontWeight: "400" - } - , Ge = ["Webkit", "Moz", "ms"] - , Ye = r.createElement("div").style; - function Qe(e) { - if (e in Ye) - return e; - var t = e[0].toUpperCase() + e.slice(1) - , n = Ge.length; - while (n--) - if ((e = Ge[n] + t)in Ye) - return e - } - function Je(e) { - var t = w.cssProps[e]; - return t || (t = w.cssProps[e] = Qe(e) || e), - t - } - function Ke(e, t, n) { - var r = ie.exec(t); - return r ? Math.max(0, r[2] - (n || 0)) + (r[3] || "px") : t - } - function Ze(e, t, n, r, i, o) { - var a = "width" === t ? 1 : 0 - , s = 0 - , u = 0; - if (n === (r ? "border" : "content")) - return 0; - for (; a < 4; a += 2) - "margin" === n && (u += w.css(e, n + oe[a], !0, i)), - r ? ("content" === n && (u -= w.css(e, "padding" + oe[a], !0, i)), - "margin" !== n && (u -= w.css(e, "border" + oe[a] + "Width", !0, i))) : (u += w.css(e, "padding" + oe[a], !0, i), - "padding" !== n ? u += w.css(e, "border" + oe[a] + "Width", !0, i) : s += w.css(e, "border" + oe[a] + "Width", !0, i)); - return !r && o >= 0 && (u += Math.max(0, Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - o - u - s - .5))), - u - } - function et(e, t, n) { - var r = $e(e) - , i = Fe(e, t, r) - , o = "border-box" === w.css(e, "boxSizing", !1, r) - , a = o; - if (We.test(i)) { - if (!n) - return i; - i = "auto" - } - return a = a && (h.boxSizingReliable() || i === e.style[t]), - ("auto" === i || !parseFloat(i) && "inline" === w.css(e, "display", !1, r)) && (i = e["offset" + t[0].toUpperCase() + t.slice(1)], - a = !0), - (i = parseFloat(i) || 0) + Ze(e, t, n || (o ? "border" : "content"), a, r, i) + "px" - } - w.extend({ - cssHooks: { - opacity: { - get: function(e, t) { - if (t) { - var n = Fe(e, "opacity"); - return "" === n ? "1" : n - } - } - } - }, - cssNumber: { - animationIterationCount: !0, - columnCount: !0, - fillOpacity: !0, - flexGrow: !0, - flexShrink: !0, - fontWeight: !0, - lineHeight: !0, - opacity: !0, - order: !0, - orphans: !0, - widows: !0, - zIndex: !0, - zoom: !0 - }, - cssProps: {}, - style: function(e, t, n, r) { - if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) { - var i, o, a, s = G(t), u = Xe.test(t), l = e.style; - if (u || (t = Je(s)), - a = w.cssHooks[t] || w.cssHooks[s], - void 0 === n) - return a && "get"in a && void 0 !== (i = a.get(e, !1, r)) ? i : l[t]; - "string" == (o = typeof n) && (i = ie.exec(n)) && i[1] && (n = ue(e, t, i), - o = "number"), - null != n && n === n && ("number" === o && (n += i && i[3] || (w.cssNumber[s] ? "" : "px")), - h.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (l[t] = "inherit"), - a && "set"in a && void 0 === (n = a.set(e, n, r)) || (u ? l.setProperty(t, n) : l[t] = n)) - } - }, - css: function(e, t, n, r) { - var i, o, a, s = G(t); - return Xe.test(t) || (t = Je(s)), - (a = w.cssHooks[t] || w.cssHooks[s]) && "get"in a && (i = a.get(e, !0, n)), - void 0 === i && (i = Fe(e, t, r)), - "normal" === i && t in Ve && (i = Ve[t]), - "" === n || n ? (o = parseFloat(i), - !0 === n || isFinite(o) ? o || 0 : i) : i - } - }), - w.each(["height", "width"], function(e, t) { - w.cssHooks[t] = { - get: function(e, n, r) { - if (n) - return !ze.test(w.css(e, "display")) || e.getClientRects().length && e.getBoundingClientRect().width ? et(e, t, r) : se(e, Ue, function() { - return et(e, t, r) - }) - }, - set: function(e, n, r) { - var i, o = $e(e), a = "border-box" === w.css(e, "boxSizing", !1, o), s = r && Ze(e, t, r, a, o); - return a && h.scrollboxSize() === o.position && (s -= Math.ceil(e["offset" + t[0].toUpperCase() + t.slice(1)] - parseFloat(o[t]) - Ze(e, t, "border", !1, o) - .5)), - s && (i = ie.exec(n)) && "px" !== (i[3] || "px") && (e.style[t] = n, - n = w.css(e, t)), - Ke(e, n, s) - } - } - }), - w.cssHooks.marginLeft = _e(h.reliableMarginLeft, function(e, t) { - if (t) - return (parseFloat(Fe(e, "marginLeft")) || e.getBoundingClientRect().left - se(e, { - marginLeft: 0 - }, function() { - return e.getBoundingClientRect().left - })) + "px" - }), - w.each({ - margin: "", - padding: "", - border: "Width" - }, function(e, t) { - w.cssHooks[e + t] = { - expand: function(n) { - for (var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; r < 4; r++) - i[e + oe[r] + t] = o[r] || o[r - 2] || o[0]; - return i - } - }, - "margin" !== e && (w.cssHooks[e + t].set = Ke) - }), - w.fn.extend({ - css: function(e, t) { - return z(this, function(e, t, n) { - var r, i, o = {}, a = 0; - if (Array.isArray(t)) { - for (r = $e(e), - i = t.length; a < i; a++) - o[t[a]] = w.css(e, t[a], !1, r); - return o - } - return void 0 !== n ? w.style(e, t, n) : w.css(e, t) - }, e, t, arguments.length > 1) - } - }); - function tt(e, t, n, r, i) { - return new tt.prototype.init(e,t,n,r,i) - } - w.Tween = tt, - tt.prototype = { - constructor: tt, - init: function(e, t, n, r, i, o) { - this.elem = e, - this.prop = n, - this.easing = i || w.easing._default, - this.options = t, - this.start = this.now = this.cur(), - this.end = r, - this.unit = o || (w.cssNumber[n] ? "" : "px") - }, - cur: function() { - var e = tt.propHooks[this.prop]; - return e && e.get ? e.get(this) : tt.propHooks._default.get(this) - }, - run: function(e) { - var t, n = tt.propHooks[this.prop]; - return this.options.duration ? this.pos = t = w.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, - this.now = (this.end - this.start) * t + this.start, - this.options.step && this.options.step.call(this.elem, this.now, this), - n && n.set ? n.set(this) : tt.propHooks._default.set(this), - this - } - }, - tt.prototype.init.prototype = tt.prototype, - tt.propHooks = { - _default: { - get: function(e) { - var t; - return 1 !== e.elem.nodeType || null != e.elem[e.prop] && null == e.elem.style[e.prop] ? e.elem[e.prop] : (t = w.css(e.elem, e.prop, "")) && "auto" !== t ? t : 0 - }, - set: function(e) { - w.fx.step[e.prop] ? w.fx.step[e.prop](e) : 1 !== e.elem.nodeType || null == e.elem.style[w.cssProps[e.prop]] && !w.cssHooks[e.prop] ? e.elem[e.prop] = e.now : w.style(e.elem, e.prop, e.now + e.unit) - } - } - }, - tt.propHooks.scrollTop = tt.propHooks.scrollLeft = { - set: function(e) { - e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) - } - }, - w.easing = { - linear: function(e) { - return e - }, - swing: function(e) { - return .5 - Math.cos(e * Math.PI) / 2 - }, - _default: "swing" - }, - w.fx = tt.prototype.init, - w.fx.step = {}; - var nt, rt, it = /^(?:toggle|show|hide)$/, ot = /queueHooks$/; - function at() { - rt && (!1 === r.hidden && e.requestAnimationFrame ? e.requestAnimationFrame(at) : e.setTimeout(at, w.fx.interval), - w.fx.tick()) - } - function st() { - return e.setTimeout(function() { - nt = void 0 - }), - nt = Date.now() - } - function ut(e, t) { - var n, r = 0, i = { - height: e - }; - for (t = t ? 1 : 0; r < 4; r += 2 - t) - i["margin" + (n = oe[r])] = i["padding" + n] = e; - return t && (i.opacity = i.width = e), - i - } - function lt(e, t, n) { - for (var r, i = (pt.tweeners[t] || []).concat(pt.tweeners["*"]), o = 0, a = i.length; o < a; o++) - if (r = i[o].call(n, t, e)) - return r - } - function ct(e, t, n) { - var r, i, o, a, s, u, l, c, f = "width"in t || "height"in t, p = this, d = {}, h = e.style, g = e.nodeType && ae(e), y = J.get(e, "fxshow"); - n.queue || (null == (a = w._queueHooks(e, "fx")).unqueued && (a.unqueued = 0, - s = a.empty.fire, - a.empty.fire = function() { - a.unqueued || s() - } - ), - a.unqueued++, - p.always(function() { - p.always(function() { - a.unqueued--, - w.queue(e, "fx").length || a.empty.fire() - }) - })); - for (r in t) - if (i = t[r], - it.test(i)) { - if (delete t[r], - o = o || "toggle" === i, - i === (g ? "hide" : "show")) { - if ("show" !== i || !y || void 0 === y[r]) - continue; - g = !0 - } - d[r] = y && y[r] || w.style(e, r) - } - if ((u = !w.isEmptyObject(t)) || !w.isEmptyObject(d)) { - f && 1 === e.nodeType && (n.overflow = [h.overflow, h.overflowX, h.overflowY], - null == (l = y && y.display) && (l = J.get(e, "display")), - "none" === (c = w.css(e, "display")) && (l ? c = l : (fe([e], !0), - l = e.style.display || l, - c = w.css(e, "display"), - fe([e]))), - ("inline" === c || "inline-block" === c && null != l) && "none" === w.css(e, "float") && (u || (p.done(function() { - h.display = l - }), - null == l && (c = h.display, - l = "none" === c ? "" : c)), - h.display = "inline-block")), - n.overflow && (h.overflow = "hidden", - p.always(function() { - h.overflow = n.overflow[0], - h.overflowX = n.overflow[1], - h.overflowY = n.overflow[2] - })), - u = !1; - for (r in d) - u || (y ? "hidden"in y && (g = y.hidden) : y = J.access(e, "fxshow", { - display: l - }), - o && (y.hidden = !g), - g && fe([e], !0), - p.done(function() { - g || fe([e]), - J.remove(e, "fxshow"); - for (r in d) - w.style(e, r, d[r]) - })), - u = lt(g ? y[r] : 0, r, p), - r in y || (y[r] = u.start, - g && (u.end = u.start, - u.start = 0)) - } - } - function ft(e, t) { - var n, r, i, o, a; - for (n in e) - if (r = G(n), - i = t[r], - o = e[n], - Array.isArray(o) && (i = o[1], - o = e[n] = o[0]), - n !== r && (e[r] = o, - delete e[n]), - (a = w.cssHooks[r]) && "expand"in a) { - o = a.expand(o), - delete e[r]; - for (n in o) - n in e || (e[n] = o[n], - t[n] = i) - } else - t[r] = i - } - function pt(e, t, n) { - var r, i, o = 0, a = pt.prefilters.length, s = w.Deferred().always(function() { - delete u.elem - }), u = function() { - if (i) - return !1; - for (var t = nt || st(), n = Math.max(0, l.startTime + l.duration - t), r = 1 - (n / l.duration || 0), o = 0, a = l.tweens.length; o < a; o++) - l.tweens[o].run(r); - return s.notifyWith(e, [l, r, n]), - r < 1 && a ? n : (a || s.notifyWith(e, [l, 1, 0]), - s.resolveWith(e, [l]), - !1) - }, l = s.promise({ - elem: e, - props: w.extend({}, t), - opts: w.extend(!0, { - specialEasing: {}, - easing: w.easing._default - }, n), - originalProperties: t, - originalOptions: n, - startTime: nt || st(), - duration: n.duration, - tweens: [], - createTween: function(t, n) { - var r = w.Tween(e, l.opts, t, n, l.opts.specialEasing[t] || l.opts.easing); - return l.tweens.push(r), - r - }, - stop: function(t) { - var n = 0 - , r = t ? l.tweens.length : 0; - if (i) - return this; - for (i = !0; n < r; n++) - l.tweens[n].run(1); - return t ? (s.notifyWith(e, [l, 1, 0]), - s.resolveWith(e, [l, t])) : s.rejectWith(e, [l, t]), - this - } - }), c = l.props; - for (ft(c, l.opts.specialEasing); o < a; o++) - if (r = pt.prefilters[o].call(l, e, c, l.opts)) - return g(r.stop) && (w._queueHooks(l.elem, l.opts.queue).stop = r.stop.bind(r)), - r; - return w.map(c, lt, l), - g(l.opts.start) && l.opts.start.call(e, l), - l.progress(l.opts.progress).done(l.opts.done, l.opts.complete).fail(l.opts.fail).always(l.opts.always), - w.fx.timer(w.extend(u, { - elem: e, - anim: l, - queue: l.opts.queue - })), - l - } - w.Animation = w.extend(pt, { - tweeners: { - "*": [function(e, t) { - var n = this.createTween(e, t); - return ue(n.elem, e, ie.exec(t), n), - n - } - ] - }, - tweener: function(e, t) { - g(e) ? (t = e, - e = ["*"]) : e = e.match(M); - for (var n, r = 0, i = e.length; r < i; r++) - n = e[r], - pt.tweeners[n] = pt.tweeners[n] || [], - pt.tweeners[n].unshift(t) - }, - prefilters: [ct], - prefilter: function(e, t) { - t ? pt.prefilters.unshift(e) : pt.prefilters.push(e) - } - }), - w.speed = function(e, t, n) { - var r = e && "object" == typeof e ? w.extend({}, e) : { - complete: n || !n && t || g(e) && e, - duration: e, - easing: n && t || t && !g(t) && t - }; - return w.fx.off ? r.duration = 0 : "number" != typeof r.duration && (r.duration in w.fx.speeds ? r.duration = w.fx.speeds[r.duration] : r.duration = w.fx.speeds._default), - null != r.queue && !0 !== r.queue || (r.queue = "fx"), - r.old = r.complete, - r.complete = function() { - g(r.old) && r.old.call(this), - r.queue && w.dequeue(this, r.queue) - } - , - r - } - , - w.fn.extend({ - fadeTo: function(e, t, n, r) { - return this.filter(ae).css("opacity", 0).show().end().animate({ - opacity: t - }, e, n, r) - }, - animate: function(e, t, n, r) { - var i = w.isEmptyObject(e) - , o = w.speed(t, n, r) - , a = function() { - var t = pt(this, w.extend({}, e), o); - (i || J.get(this, "finish")) && t.stop(!0) - }; - return a.finish = a, - i || !1 === o.queue ? this.each(a) : this.queue(o.queue, a) - }, - stop: function(e, t, n) { - var r = function(e) { - var t = e.stop; - delete e.stop, - t(n) - }; - return "string" != typeof e && (n = t, - t = e, - e = void 0), - t && !1 !== e && this.queue(e || "fx", []), - this.each(function() { - var t = !0 - , i = null != e && e + "queueHooks" - , o = w.timers - , a = J.get(this); - if (i) - a[i] && a[i].stop && r(a[i]); - else - for (i in a) - a[i] && a[i].stop && ot.test(i) && r(a[i]); - for (i = o.length; i--; ) - o[i].elem !== this || null != e && o[i].queue !== e || (o[i].anim.stop(n), - t = !1, - o.splice(i, 1)); - !t && n || w.dequeue(this, e) - }) - }, - finish: function(e) { - return !1 !== e && (e = e || "fx"), - this.each(function() { - var t, n = J.get(this), r = n[e + "queue"], i = n[e + "queueHooks"], o = w.timers, a = r ? r.length : 0; - for (n.finish = !0, - w.queue(this, e, []), - i && i.stop && i.stop.call(this, !0), - t = o.length; t--; ) - o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), - o.splice(t, 1)); - for (t = 0; t < a; t++) - r[t] && r[t].finish && r[t].finish.call(this); - delete n.finish - }) - } - }), - w.each(["toggle", "show", "hide"], function(e, t) { - var n = w.fn[t]; - w.fn[t] = function(e, r, i) { - return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ut(t, !0), e, r, i) - } - }), - w.each({ - slideDown: ut("show"), - slideUp: ut("hide"), - slideToggle: ut("toggle"), - fadeIn: { - opacity: "show" - }, - fadeOut: { - opacity: "hide" - }, - fadeToggle: { - opacity: "toggle" - } - }, function(e, t) { - w.fn[e] = function(e, n, r) { - return this.animate(t, e, n, r) - } - }), - w.timers = [], - w.fx.tick = function() { - var e, t = 0, n = w.timers; - for (nt = Date.now(); t < n.length; t++) - (e = n[t])() || n[t] !== e || n.splice(t--, 1); - n.length || w.fx.stop(), - nt = void 0 - } - , - w.fx.timer = function(e) { - w.timers.push(e), - w.fx.start() - } - , - w.fx.interval = 13, - w.fx.start = function() { - rt || (rt = !0, - at()) - } - , - w.fx.stop = function() { - rt = null - } - , - w.fx.speeds = { - slow: 600, - fast: 200, - _default: 400 - }, - w.fn.delay = function(t, n) { - return t = w.fx ? w.fx.speeds[t] || t : t, - n = n || "fx", - this.queue(n, function(n, r) { - var i = e.setTimeout(n, t); - r.stop = function() { - e.clearTimeout(i) - } - }) - } - , - function() { - var e = r.createElement("input") - , t = r.createElement("select").appendChild(r.createElement("option")); - e.type = "checkbox", - h.checkOn = "" !== e.value, - h.optSelected = t.selected, - (e = r.createElement("input")).value = "t", - e.type = "radio", - h.radioValue = "t" === e.value - }(); - var dt, ht = w.expr.attrHandle; - w.fn.extend({ - attr: function(e, t) { - return z(this, w.attr, e, t, arguments.length > 1) - }, - removeAttr: function(e) { - return this.each(function() { - w.removeAttr(this, e) - }) - } - }), - w.extend({ - attr: function(e, t, n) { - var r, i, o = e.nodeType; - if (3 !== o && 8 !== o && 2 !== o) - return "undefined" == typeof e.getAttribute ? w.prop(e, t, n) : (1 === o && w.isXMLDoc(e) || (i = w.attrHooks[t.toLowerCase()] || (w.expr.match.bool.test(t) ? dt : void 0)), - void 0 !== n ? null === n ? void w.removeAttr(e, t) : i && "set"in i && void 0 !== (r = i.set(e, n, t)) ? r : (e.setAttribute(t, n + ""), - n) : i && "get"in i && null !== (r = i.get(e, t)) ? r : null == (r = w.find.attr(e, t)) ? void 0 : r) - }, - attrHooks: { - type: { - set: function(e, t) { - if (!h.radioValue && "radio" === t && N(e, "input")) { - var n = e.value; - return e.setAttribute("type", t), - n && (e.value = n), - t - } - } - } - }, - removeAttr: function(e, t) { - var n, r = 0, i = t && t.match(M); - if (i && 1 === e.nodeType) - while (n = i[r++]) - e.removeAttribute(n) - } - }), - dt = { - set: function(e, t, n) { - return !1 === t ? w.removeAttr(e, n) : e.setAttribute(n, n), - n - } - }, - w.each(w.expr.match.bool.source.match(/\w+/g), function(e, t) { - var n = ht[t] || w.find.attr; - ht[t] = function(e, t, r) { - var i, o, a = t.toLowerCase(); - return r || (o = ht[a], - ht[a] = i, - i = null != n(e, t, r) ? a : null, - ht[a] = o), - i - } - }); - var gt = /^(?:input|select|textarea|button)$/i - , yt = /^(?:a|area)$/i; - w.fn.extend({ - prop: function(e, t) { - return z(this, w.prop, e, t, arguments.length > 1) - }, - removeProp: function(e) { - return this.each(function() { - delete this[w.propFix[e] || e] - }) - } - }), - w.extend({ - prop: function(e, t, n) { - var r, i, o = e.nodeType; - if (3 !== o && 8 !== o && 2 !== o) - return 1 === o && w.isXMLDoc(e) || (t = w.propFix[t] || t, - i = w.propHooks[t]), - void 0 !== n ? i && "set"in i && void 0 !== (r = i.set(e, n, t)) ? r : e[t] = n : i && "get"in i && null !== (r = i.get(e, t)) ? r : e[t] - }, - propHooks: { - tabIndex: { - get: function(e) { - var t = w.find.attr(e, "tabindex"); - return t ? parseInt(t, 10) : gt.test(e.nodeName) || yt.test(e.nodeName) && e.href ? 0 : -1 - } - } - }, - propFix: { - "for": "htmlFor", - "class": "className" - } - }), - h.optSelected || (w.propHooks.selected = { - get: function(e) { - var t = e.parentNode; - return t && t.parentNode && t.parentNode.selectedIndex, - null - }, - set: function(e) { - var t = e.parentNode; - t && (t.selectedIndex, - t.parentNode && t.parentNode.selectedIndex) - } - }), - w.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() { - w.propFix[this.toLowerCase()] = this - }); - function vt(e) { - return (e.match(M) || []).join(" ") - } - function mt(e) { - return e.getAttribute && e.getAttribute("class") || "" - } - function xt(e) { - return Array.isArray(e) ? e : "string" == typeof e ? e.match(M) || [] : [] - } - w.fn.extend({ - addClass: function(e) { - var t, n, r, i, o, a, s, u = 0; - if (g(e)) - return this.each(function(t) { - w(this).addClass(e.call(this, t, mt(this))) - }); - if ((t = xt(e)).length) - while (n = this[u++]) - if (i = mt(n), - r = 1 === n.nodeType && " " + vt(i) + " ") { - a = 0; - while (o = t[a++]) - r.indexOf(" " + o + " ") < 0 && (r += o + " "); - i !== (s = vt(r)) && n.setAttribute("class", s) - } - return this - }, - removeClass: function(e) { - var t, n, r, i, o, a, s, u = 0; - if (g(e)) - return this.each(function(t) { - w(this).removeClass(e.call(this, t, mt(this))) - }); - if (!arguments.length) - return this.attr("class", ""); - if ((t = xt(e)).length) - while (n = this[u++]) - if (i = mt(n), - r = 1 === n.nodeType && " " + vt(i) + " ") { - a = 0; - while (o = t[a++]) - while (r.indexOf(" " + o + " ") > -1) - r = r.replace(" " + o + " ", " "); - i !== (s = vt(r)) && n.setAttribute("class", s) - } - return this - }, - toggleClass: function(e, t) { - var n = typeof e - , r = "string" === n || Array.isArray(e); - return "boolean" == typeof t && r ? t ? this.addClass(e) : this.removeClass(e) : g(e) ? this.each(function(n) { - w(this).toggleClass(e.call(this, n, mt(this), t), t) - }) : this.each(function() { - var t, i, o, a; - if (r) { - i = 0, - o = w(this), - a = xt(e); - while (t = a[i++]) - o.hasClass(t) ? o.removeClass(t) : o.addClass(t) - } else - void 0 !== e && "boolean" !== n || ((t = mt(this)) && J.set(this, "__className__", t), - this.setAttribute && this.setAttribute("class", t || !1 === e ? "" : J.get(this, "__className__") || "")) - }) - }, - hasClass: function(e) { - var t, n, r = 0; - t = " " + e + " "; - while (n = this[r++]) - if (1 === n.nodeType && (" " + vt(mt(n)) + " ").indexOf(t) > -1) - return !0; - return !1 - } - }); - var bt = /\r/g; - w.fn.extend({ - val: function(e) { - var t, n, r, i = this[0]; - { - if (arguments.length) - return r = g(e), - this.each(function(n) { - var i; - 1 === this.nodeType && (null == (i = r ? e.call(this, n, w(this).val()) : e) ? i = "" : "number" == typeof i ? i += "" : Array.isArray(i) && (i = w.map(i, function(e) { - return null == e ? "" : e + "" - })), - (t = w.valHooks[this.type] || w.valHooks[this.nodeName.toLowerCase()]) && "set"in t && void 0 !== t.set(this, i, "value") || (this.value = i)) - }); - if (i) - return (t = w.valHooks[i.type] || w.valHooks[i.nodeName.toLowerCase()]) && "get"in t && void 0 !== (n = t.get(i, "value")) ? n : "string" == typeof (n = i.value) ? n.replace(bt, "") : null == n ? "" : n - } - } - }), - w.extend({ - valHooks: { - option: { - get: function(e) { - var t = w.find.attr(e, "value"); - return null != t ? t : vt(w.text(e)) - } - }, - select: { - get: function(e) { - var t, n, r, i = e.options, o = e.selectedIndex, a = "select-one" === e.type, s = a ? null : [], u = a ? o + 1 : i.length; - for (r = o < 0 ? u : a ? o : 0; r < u; r++) - if (((n = i[r]).selected || r === o) && !n.disabled && (!n.parentNode.disabled || !N(n.parentNode, "optgroup"))) { - if (t = w(n).val(), - a) - return t; - s.push(t) - } - return s - }, - set: function(e, t) { - var n, r, i = e.options, o = w.makeArray(t), a = i.length; - while (a--) - ((r = i[a]).selected = w.inArray(w.valHooks.option.get(r), o) > -1) && (n = !0); - return n || (e.selectedIndex = -1), - o - } - } - } - }), - w.each(["radio", "checkbox"], function() { - w.valHooks[this] = { - set: function(e, t) { - if (Array.isArray(t)) - return e.checked = w.inArray(w(e).val(), t) > -1 - } - }, - h.checkOn || (w.valHooks[this].get = function(e) { - return null === e.getAttribute("value") ? "on" : e.value - } - ) - }), - h.focusin = "onfocusin"in e; - var wt = /^(?:focusinfocus|focusoutblur)$/ - , Tt = function(e) { - e.stopPropagation() - }; - w.extend(w.event, { - trigger: function(t, n, i, o) { - var a, s, u, l, c, p, d, h, v = [i || r], m = f.call(t, "type") ? t.type : t, x = f.call(t, "namespace") ? t.namespace.split(".") : []; - if (s = h = u = i = i || r, - 3 !== i.nodeType && 8 !== i.nodeType && !wt.test(m + w.event.triggered) && (m.indexOf(".") > -1 && (m = (x = m.split(".")).shift(), - x.sort()), - c = m.indexOf(":") < 0 && "on" + m, - t = t[w.expando] ? t : new w.Event(m,"object" == typeof t && t), - t.isTrigger = o ? 2 : 3, - t.namespace = x.join("."), - t.rnamespace = t.namespace ? new RegExp("(^|\\.)" + x.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, - t.result = void 0, - t.target || (t.target = i), - n = null == n ? [t] : w.makeArray(n, [t]), - d = w.event.special[m] || {}, - o || !d.trigger || !1 !== d.trigger.apply(i, n))) { - if (!o && !d.noBubble && !y(i)) { - for (l = d.delegateType || m, - wt.test(l + m) || (s = s.parentNode); s; s = s.parentNode) - v.push(s), - u = s; - u === (i.ownerDocument || r) && v.push(u.defaultView || u.parentWindow || e) - } - a = 0; - while ((s = v[a++]) && !t.isPropagationStopped()) - h = s, - t.type = a > 1 ? l : d.bindType || m, - (p = (J.get(s, "events") || {})[t.type] && J.get(s, "handle")) && p.apply(s, n), - (p = c && s[c]) && p.apply && Y(s) && (t.result = p.apply(s, n), - !1 === t.result && t.preventDefault()); - return t.type = m, - o || t.isDefaultPrevented() || d._default && !1 !== d._default.apply(v.pop(), n) || !Y(i) || c && g(i[m]) && !y(i) && ((u = i[c]) && (i[c] = null), - w.event.triggered = m, - t.isPropagationStopped() && h.addEventListener(m, Tt), - i[m](), - t.isPropagationStopped() && h.removeEventListener(m, Tt), - w.event.triggered = void 0, - u && (i[c] = u)), - t.result - } - }, - simulate: function(e, t, n) { - var r = w.extend(new w.Event, n, { - type: e, - isSimulated: !0 - }); - w.event.trigger(r, null, t) - } - }), - w.fn.extend({ - trigger: function(e, t) { - return this.each(function() { - w.event.trigger(e, t, this) - }) - }, - triggerHandler: function(e, t) { - var n = this[0]; - if (n) - return w.event.trigger(e, t, n, !0) - } - }), - h.focusin || w.each({ - focus: "focusin", - blur: "focusout" - }, function(e, t) { - var n = function(e) { - w.event.simulate(t, e.target, w.event.fix(e)) - }; - w.event.special[t] = { - setup: function() { - var r = this.ownerDocument || this - , i = J.access(r, t); - i || r.addEventListener(e, n, !0), - J.access(r, t, (i || 0) + 1) - }, - teardown: function() { - var r = this.ownerDocument || this - , i = J.access(r, t) - 1; - i ? J.access(r, t, i) : (r.removeEventListener(e, n, !0), - J.remove(r, t)) - } - } - }); - var Ct = e.location - , Et = Date.now() - , kt = /\?/; - w.parseXML = function(t) { - var n; - if (!t || "string" != typeof t) - return null; - try { - n = (new e.DOMParser).parseFromString(t, "text/xml") - } catch (e) { - n = void 0 - } - return n && !n.getElementsByTagName("parsererror").length || w.error("Invalid XML: " + t), - n - } - ; - var St = /\[\]$/ - , Dt = /\r?\n/g - , Nt = /^(?:submit|button|image|reset|file)$/i - , At = /^(?:input|select|textarea|keygen)/i; - function jt(e, t, n, r) { - var i; - if (Array.isArray(t)) - w.each(t, function(t, i) { - n || St.test(e) ? r(e, i) : jt(e + "[" + ("object" == typeof i && null != i ? t : "") + "]", i, n, r) - }); - else if (n || "object" !== x(t)) - r(e, t); - else - for (i in t) - jt(e + "[" + i + "]", t[i], n, r) - } - w.param = function(e, t) { - var n, r = [], i = function(e, t) { - var n = g(t) ? t() : t; - r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(null == n ? "" : n) - }; - if (Array.isArray(e) || e.jquery && !w.isPlainObject(e)) - w.each(e, function() { - i(this.name, this.value) - }); - else - for (n in e) - jt(n, e[n], t, i); - return r.join("&") - } - , - w.fn.extend({ - serialize: function() { - return w.param(this.serializeArray()) - }, - serializeArray: function() { - return this.map(function() { - var e = w.prop(this, "elements"); - return e ? w.makeArray(e) : this - }).filter(function() { - var e = this.type; - return this.name && !w(this).is(":disabled") && At.test(this.nodeName) && !Nt.test(e) && (this.checked || !pe.test(e)) - }).map(function(e, t) { - var n = w(this).val(); - return null == n ? null : Array.isArray(n) ? w.map(n, function(e) { - return { - name: t.name, - value: e.replace(Dt, "\r\n") - } - }) : { - name: t.name, - value: n.replace(Dt, "\r\n") - } - }).get() - } - }); - var qt = /%20/g - , Lt = /#.*$/ - , Ht = /([?&])_=[^&]*/ - , Ot = /^(.*?):[ \t]*([^\r\n]*)$/gm - , Pt = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/ - , Mt = /^(?:GET|HEAD)$/ - , Rt = /^\/\// - , It = {} - , Wt = {} - , $t = "*/".concat("*") - , Bt = r.createElement("a"); - Bt.href = Ct.href; - function Ft(e) { - return function(t, n) { - "string" != typeof t && (n = t, - t = "*"); - var r, i = 0, o = t.toLowerCase().match(M) || []; - if (g(n)) - while (r = o[i++]) - "+" === r[0] ? (r = r.slice(1) || "*", - (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n) - } - } - function _t(e, t, n, r) { - var i = {} - , o = e === Wt; - function a(s) { - var u; - return i[s] = !0, - w.each(e[s] || [], function(e, s) { - var l = s(t, n, r); - return "string" != typeof l || o || i[l] ? o ? !(u = l) : void 0 : (t.dataTypes.unshift(l), - a(l), - !1) - }), - u - } - return a(t.dataTypes[0]) || !i["*"] && a("*") - } - function zt(e, t) { - var n, r, i = w.ajaxSettings.flatOptions || {}; - for (n in t) - void 0 !== t[n] && ((i[n] ? e : r || (r = {}))[n] = t[n]); - return r && w.extend(!0, e, r), - e - } - function Xt(e, t, n) { - var r, i, o, a, s = e.contents, u = e.dataTypes; - while ("*" === u[0]) - u.shift(), - void 0 === r && (r = e.mimeType || t.getResponseHeader("Content-Type")); - if (r) - for (i in s) - if (s[i] && s[i].test(r)) { - u.unshift(i); - break - } - if (u[0]in n) - o = u[0]; - else { - for (i in n) { - if (!u[0] || e.converters[i + " " + u[0]]) { - o = i; - break - } - a || (a = i) - } - o = o || a - } - if (o) - return o !== u[0] && u.unshift(o), - n[o] - } - function Ut(e, t, n, r) { - var i, o, a, s, u, l = {}, c = e.dataTypes.slice(); - if (c[1]) - for (a in e.converters) - l[a.toLowerCase()] = e.converters[a]; - o = c.shift(); - while (o) - if (e.responseFields[o] && (n[e.responseFields[o]] = t), - !u && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), - u = o, - o = c.shift()) - if ("*" === o) - o = u; - else if ("*" !== u && u !== o) { - if (!(a = l[u + " " + o] || l["* " + o])) - for (i in l) - if ((s = i.split(" "))[1] === o && (a = l[u + " " + s[0]] || l["* " + s[0]])) { - !0 === a ? a = l[i] : !0 !== l[i] && (o = s[0], - c.unshift(s[1])); - break - } - if (!0 !== a) - if (a && e["throws"]) - t = a(t); - else - try { - t = a(t) - } catch (e) { - return { - state: "parsererror", - error: a ? e : "No conversion from " + u + " to " + o - } - } - } - return { - state: "success", - data: t - } - } - w.extend({ - active: 0, - lastModified: {}, - etag: {}, - ajaxSettings: { - url: Ct.href, - type: "GET", - isLocal: Pt.test(Ct.protocol), - global: !0, - processData: !0, - async: !0, - contentType: "application/x-www-form-urlencoded; charset=UTF-8", - accepts: { - "*": $t, - 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" - }, - converters: { - "* text": String, - "text html": !0, - "text json": JSON.parse, - "text xml": w.parseXML - }, - flatOptions: { - url: !0, - context: !0 - } - }, - ajaxSetup: function(e, t) { - return t ? zt(zt(e, w.ajaxSettings), t) : zt(w.ajaxSettings, e) - }, - ajaxPrefilter: Ft(It), - ajaxTransport: Ft(Wt), - ajax: function(t, n) { - "object" == typeof t && (n = t, - t = void 0), - n = n || {}; - var i, o, a, s, u, l, c, f, p, d, h = w.ajaxSetup({}, n), g = h.context || h, y = h.context && (g.nodeType || g.jquery) ? w(g) : w.event, v = w.Deferred(), m = w.Callbacks("once memory"), x = h.statusCode || {}, b = {}, T = {}, C = "canceled", E = { - readyState: 0, - getResponseHeader: function(e) { - var t; - if (c) { - if (!s) { - s = {}; - while (t = Ot.exec(a)) - s[t[1].toLowerCase()] = t[2] - } - t = s[e.toLowerCase()] - } - return null == t ? null : t - }, - getAllResponseHeaders: function() { - return c ? a : null - }, - setRequestHeader: function(e, t) { - return null == c && (e = T[e.toLowerCase()] = T[e.toLowerCase()] || e, - b[e] = t), - this - }, - overrideMimeType: function(e) { - return null == c && (h.mimeType = e), - this - }, - statusCode: function(e) { - var t; - if (e) - if (c) - E.always(e[E.status]); - else - for (t in e) - x[t] = [x[t], e[t]]; - return this - }, - abort: function(e) { - var t = e || C; - return i && i.abort(t), - k(0, t), - this - } - }; - if (v.promise(E), - h.url = ((t || h.url || Ct.href) + "").replace(Rt, Ct.protocol + "//"), - h.type = n.method || n.type || h.method || h.type, - h.dataTypes = (h.dataType || "*").toLowerCase().match(M) || [""], - null == h.crossDomain) { - l = r.createElement("a"); - try { - l.href = h.url, - l.href = l.href, - h.crossDomain = Bt.protocol + "//" + Bt.host != l.protocol + "//" + l.host - } catch (e) { - h.crossDomain = !0 - } - } - if (h.data && h.processData && "string" != typeof h.data && (h.data = w.param(h.data, h.traditional)), - _t(It, h, n, E), - c) - return E; - (f = w.event && h.global) && 0 == w.active++ && w.event.trigger("ajaxStart"), - h.type = h.type.toUpperCase(), - h.hasContent = !Mt.test(h.type), - o = h.url.replace(Lt, ""), - h.hasContent ? h.data && h.processData && 0 === (h.contentType || "").indexOf("application/x-www-form-urlencoded") && (h.data = h.data.replace(qt, "+")) : (d = h.url.slice(o.length), - h.data && (h.processData || "string" == typeof h.data) && (o += (kt.test(o) ? "&" : "?") + h.data, - delete h.data), - !1 === h.cache && (o = o.replace(Ht, "$1"), - d = (kt.test(o) ? "&" : "?") + "_=" + Et++ + d), - h.url = o + d), - h.ifModified && (w.lastModified[o] && E.setRequestHeader("If-Modified-Since", w.lastModified[o]), - w.etag[o] && E.setRequestHeader("If-None-Match", w.etag[o])), - (h.data && h.hasContent && !1 !== h.contentType || n.contentType) && E.setRequestHeader("Content-Type", h.contentType), - E.setRequestHeader("Accept", h.dataTypes[0] && h.accepts[h.dataTypes[0]] ? h.accepts[h.dataTypes[0]] + ("*" !== h.dataTypes[0] ? ", " + $t + "; q=0.01" : "") : h.accepts["*"]); - for (p in h.headers) - E.setRequestHeader(p, h.headers[p]); - if (h.beforeSend && (!1 === h.beforeSend.call(g, E, h) || c)) - return E.abort(); - if (C = "abort", - m.add(h.complete), - E.done(h.success), - E.fail(h.error), - i = _t(Wt, h, n, E)) { - if (E.readyState = 1, - f && y.trigger("ajaxSend", [E, h]), - c) - return E; - h.async && h.timeout > 0 && (u = e.setTimeout(function() { - E.abort("timeout") - }, h.timeout)); - try { - c = !1, - i.send(b, k) - } catch (e) { - if (c) - throw e; - k(-1, e) - } - } else - k(-1, "No Transport"); - function k(t, n, r, s) { - var l, p, d, b, T, C = n; - c || (c = !0, - u && e.clearTimeout(u), - i = void 0, - a = s || "", - E.readyState = t > 0 ? 4 : 0, - l = t >= 200 && t < 300 || 304 === t, - r && (b = Xt(h, E, r)), - b = Ut(h, b, E, l), - l ? (h.ifModified && ((T = E.getResponseHeader("Last-Modified")) && (w.lastModified[o] = T), - (T = E.getResponseHeader("etag")) && (w.etag[o] = T)), - 204 === t || "HEAD" === h.type ? C = "nocontent" : 304 === t ? C = "notmodified" : (C = b.state, - p = b.data, - l = !(d = b.error))) : (d = C, - !t && C || (C = "error", - t < 0 && (t = 0))), - E.status = t, - E.statusText = (n || C) + "", - l ? v.resolveWith(g, [p, C, E]) : v.rejectWith(g, [E, C, d]), - E.statusCode(x), - x = void 0, - f && y.trigger(l ? "ajaxSuccess" : "ajaxError", [E, h, l ? p : d]), - m.fireWith(g, [E, C]), - f && (y.trigger("ajaxComplete", [E, h]), - --w.active || w.event.trigger("ajaxStop"))) - } - return E - }, - getJSON: function(e, t, n) { - return w.get(e, t, n, "json") - }, - getScript: function(e, t) { - return w.get(e, void 0, t, "script") - } - }), - w.each(["get", "post"], function(e, t) { - w[t] = function(e, n, r, i) { - return g(n) && (i = i || r, - r = n, - n = void 0), - w.ajax(w.extend({ - url: e, - type: t, - dataType: i, - data: n, - success: r - }, w.isPlainObject(e) && e)) - } - }), - w._evalUrl = function(e) { - return w.ajax({ - url: e, - type: "GET", - dataType: "script", - cache: !0, - async: !1, - global: !1, - "throws": !0 - }) - } - , - w.fn.extend({ - wrapAll: function(e) { - var t; - return this[0] && (g(e) && (e = e.call(this[0])), - t = w(e, this[0].ownerDocument).eq(0).clone(!0), - this[0].parentNode && t.insertBefore(this[0]), - t.map(function() { - var e = this; - while (e.firstElementChild) - e = e.firstElementChild; - return e - }).append(this)), - this - }, - wrapInner: function(e) { - return g(e) ? this.each(function(t) { - w(this).wrapInner(e.call(this, t)) - }) : this.each(function() { - var t = w(this) - , n = t.contents(); - n.length ? n.wrapAll(e) : t.append(e) - }) - }, - wrap: function(e) { - var t = g(e); - return this.each(function(n) { - w(this).wrapAll(t ? e.call(this, n) : e) - }) - }, - unwrap: function(e) { - return this.parent(e).not("body").each(function() { - w(this).replaceWith(this.childNodes) - }), - this - } - }), - w.expr.pseudos.hidden = function(e) { - return !w.expr.pseudos.visible(e) - } - , - w.expr.pseudos.visible = function(e) { - return !!(e.offsetWidth || e.offsetHeight || e.getClientRects().length) - } - , - w.ajaxSettings.xhr = function() { - try { - return new e.XMLHttpRequest - } catch (e) {} - } - ; - var Vt = { - 0: 200, - 1223: 204 - } - , Gt = w.ajaxSettings.xhr(); - h.cors = !!Gt && "withCredentials"in Gt, - h.ajax = Gt = !!Gt, - w.ajaxTransport(function(t) { - var n, r; - if (h.cors || Gt && !t.crossDomain) - return { - send: function(i, o) { - var a, s = t.xhr(); - if (s.open(t.type, t.url, t.async, t.username, t.password), - t.xhrFields) - for (a in t.xhrFields) - s[a] = t.xhrFields[a]; - t.mimeType && s.overrideMimeType && s.overrideMimeType(t.mimeType), - t.crossDomain || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest"); - for (a in i) - s.setRequestHeader(a, i[a]); - n = function(e) { - return function() { - n && (n = r = s.onload = s.onerror = s.onabort = s.ontimeout = s.onreadystatechange = null, - "abort" === e ? s.abort() : "error" === e ? "number" != typeof s.status ? o(0, "error") : o(s.status, s.statusText) : o(Vt[s.status] || s.status, s.statusText, "text" !== (s.responseType || "text") || "string" != typeof s.responseText ? { - binary: s.response - } : { - text: s.responseText - }, s.getAllResponseHeaders())) - } - } - , - s.onload = n(), - r = s.onerror = s.ontimeout = n("error"), - void 0 !== s.onabort ? s.onabort = r : s.onreadystatechange = function() { - 4 === s.readyState && e.setTimeout(function() { - n && r() - }) - } - , - n = n("abort"); - try { - s.send(t.hasContent && t.data || null) - } catch (e) { - if (n) - throw e - } - }, - abort: function() { - n && n() - } - } - }), - w.ajaxPrefilter(function(e) { - e.crossDomain && (e.contents.script = !1) - }), - w.ajaxSetup({ - accepts: { - script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" - }, - contents: { - script: /\b(?:java|ecma)script\b/ - }, - converters: { - "text script": function(e) { - return w.globalEval(e), - e - } - } - }), - w.ajaxPrefilter("script", function(e) { - void 0 === e.cache && (e.cache = !1), - e.crossDomain && (e.type = "GET") - }), - w.ajaxTransport("script", function(e) { - if (e.crossDomain) { - var t, n; - return { - send: function(i, o) { - t = w("", - rE: !0, - sL: ["actionscript", "javascript", "handlebars", "xml"] - } - }, { - cN: "meta", - v: [{ - b: /<\?xml/, - e: /\?>/, - r: 10 - }, { - b: /<\?\w+/, - e: /\?>/ - }] - }, { - cN: "tag", - b: "", - c: [{ - cN: "name", - b: /[^\/><\s]+/, - r: 0 - }, t] - }] - } -}); -hljs.registerLanguage("nginx", function(e) { - var r = { - cN: "variable", - v: [{ - b: /\$\d+/ - }, { - b: /\$\{/, - e: /}/ - }, { - b: "[\\$\\@]" + e.UIR - }] - } - , b = { - eW: !0, - l: "[a-z/_]+", - k: { - literal: "on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll" - }, - r: 0, - i: "=>", - c: [e.HCM, { - cN: "string", - c: [e.BE, r], - v: [{ - b: /"/, - e: /"/ - }, { - b: /'/, - e: /'/ - }] - }, { - b: "([a-z]+):/", - e: "\\s", - eW: !0, - eE: !0, - c: [r] - }, { - cN: "regexp", - c: [e.BE, r], - v: [{ - b: "\\s\\^", - e: "\\s|{|;", - rE: !0 - }, { - b: "~\\*?\\s+", - e: "\\s|{|;", - rE: !0 - }, { - b: "\\*(\\.[a-z\\-]+)+" - }, { - b: "([a-z\\-]+\\.)+\\*" - }] - }, { - cN: "number", - b: "\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b" - }, { - cN: "number", - b: "\\b\\d+[kKmMgGdshdwy]*\\b", - r: 0 - }, r] - }; - return { - aliases: ["nginxconf"], - c: [e.HCM, { - b: e.UIR + "\\s+{", - rB: !0, - e: "{", - c: [{ - cN: "section", - b: e.UIR - }], - r: 0 - }, { - b: e.UIR + "\\s", - e: ";|{", - rB: !0, - c: [{ - cN: "attribute", - b: e.UIR, - starts: b - }], - r: 0 - }], - i: "[^\\s\\}]" - } -}); -hljs.registerLanguage("coffeescript", function(e) { - var c = { - keyword: "in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not", - literal: "true false null undefined yes no on off", - built_in: "npm require console print module global window document" - } - , n = "[A-Za-z$_][0-9A-Za-z$_]*" - , r = { - cN: "subst", - b: /#\{/, - e: /}/, - k: c - } - , i = [e.BNM, e.inherit(e.CNM, { - starts: { - e: "(\\s*/)?", - r: 0 - } - }), { - cN: "string", - v: [{ - b: /'''/, - e: /'''/, - c: [e.BE] - }, { - b: /'/, - e: /'/, - c: [e.BE] - }, { - b: /"""/, - e: /"""/, - c: [e.BE, r] - }, { - b: /"/, - e: /"/, - c: [e.BE, r] - }] - }, { - cN: "regexp", - v: [{ - b: "///", - e: "///", - c: [r, e.HCM] - }, { - b: "//[gim]*", - r: 0 - }, { - b: /\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/ - }] - }, { - b: "@" + n - }, { - sL: "javascript", - eB: !0, - eE: !0, - v: [{ - b: "```", - e: "```" - }, { - b: "`", - e: "`" - }] - }]; - r.c = i; - var s = e.inherit(e.TM, { - b: n - }) - , t = "(\\(.*\\))?\\s*\\B[-=]>" - , o = { - cN: "params", - b: "\\([^\\(]", - rB: !0, - c: [{ - b: /\(/, - e: /\)/, - k: c, - c: ["self"].concat(i) - }] - }; - return { - aliases: ["coffee", "cson", "iced"], - k: c, - i: /\/\*/, - c: i.concat([e.C("###", "###"), e.HCM, { - cN: "function", - b: "^\\s*" + n + "\\s*=\\s*" + t, - e: "[-=]>", - rB: !0, - c: [s, o] - }, { - b: /[:\(,=]\s*/, - r: 0, - c: [{ - cN: "function", - b: t, - e: "[-=]>", - rB: !0, - c: [o] - }] - }, { - cN: "class", - bK: "class", - e: "$", - i: /[:="\[\]]/, - c: [{ - bK: "extends", - eW: !0, - i: /[:="\[\]]/, - c: [s] - }, s] - }, { - b: n + ":", - e: ":", - rB: !0, - rE: !0, - r: 0 - }]) - } -}); -hljs.registerLanguage("python", function(e) { - var r = { - keyword: "and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False", - built_in: "Ellipsis NotImplemented" - } - , b = { - cN: "meta", - b: /^(>>>|\.\.\.) / - } - , c = { - cN: "subst", - b: /\{/, - e: /\}/, - k: r, - i: /#/ - } - , a = { - cN: "string", - c: [e.BE], - v: [{ - b: /(u|b)?r?'''/, - e: /'''/, - c: [b], - r: 10 - }, { - b: /(u|b)?r?"""/, - e: /"""/, - c: [b], - r: 10 - }, { - b: /(fr|rf|f)'''/, - e: /'''/, - c: [b, c] - }, { - b: /(fr|rf|f)"""/, - e: /"""/, - c: [b, c] - }, { - b: /(u|r|ur)'/, - e: /'/, - r: 10 - }, { - b: /(u|r|ur)"/, - e: /"/, - r: 10 - }, { - b: /(b|br)'/, - e: /'/ - }, { - b: /(b|br)"/, - e: /"/ - }, { - b: /(fr|rf|f)'/, - e: /'/, - c: [c] - }, { - b: /(fr|rf|f)"/, - e: /"/, - c: [c] - }, e.ASM, e.QSM] - } - , s = { - cN: "number", - r: 0, - v: [{ - b: e.BNR + "[lLjJ]?" - }, { - b: "\\b(0o[0-7]+)[lLjJ]?" - }, { - b: e.CNR + "[lLjJ]?" - }] - } - , i = { - cN: "params", - b: /\(/, - e: /\)/, - c: ["self", b, s, a] - }; - return c.c = [a, s, b], - { - aliases: ["py", "gyp"], - k: r, - i: /(<\/|->|\?)|=>/, - c: [b, s, a, e.HCM, { - v: [{ - cN: "function", - bK: "def" - }, { - cN: "class", - bK: "class" - }], - e: /:/, - i: /[${=;\n,]/, - c: [e.UTM, i, { - b: /->/, - eW: !0, - k: "None" - }] - }, { - cN: "meta", - b: /^[\t ]*@/, - e: /$/ - }, { - b: /\b(print|exec)\(/ - }] - } -}); -hljs.registerLanguage("shell", function(s) { - return { - aliases: ["console"], - c: [{ - cN: "meta", - b: "^\\s{0,3}[\\w\\d\\[\\]()@-]*[>%$#]", - starts: { - e: "$", - sL: "bash" - } - }] - } -}); -hljs.registerLanguage("objectivec", function(e) { - var t = { - cN: "built_in", - b: "\\b(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)\\w+" - } - , _ = { - keyword: "int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN", - literal: "false true FALSE TRUE nil YES NO NULL", - built_in: "BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once" - } - , i = /[a-zA-Z@][a-zA-Z0-9_]*/ - , n = "@interface @class @protocol @implementation"; - return { - aliases: ["mm", "objc", "obj-c"], - k: _, - l: i, - i: "" - }] - }] - }, { - cN: "class", - b: "(" + n.split(" ").join("|") + ")\\b", - e: "({|$)", - eE: !0, - k: n, - l: i, - c: [e.UTM] - }, { - b: "\\." + e.UIR, - r: 0 - }] - } -}); -hljs.registerLanguage("sql", function(e) { - var t = e.C("--", "$"); - return { - cI: !0, - i: /[<>{}*#]/, - c: [{ - bK: "begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment", - e: /;/, - eW: !0, - l: /[\w\.]+/, - k: { - keyword: "abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek", - literal: "true false null", - built_in: "array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void" - }, - c: [{ - cN: "string", - b: "'", - e: "'", - c: [e.BE, { - b: "''" - }] - }, { - cN: "string", - b: '"', - e: '"', - c: [e.BE, { - b: '""' - }] - }, { - cN: "string", - b: "`", - e: "`", - c: [e.BE] - }, e.CNM, e.CBCM, t] - }, e.CBCM, t] - } -}); -hljs.registerLanguage("apache", function(e) { - var r = { - cN: "number", - b: "[\\$%]\\d+" - }; - return { - aliases: ["apacheconf"], - cI: !0, - c: [e.HCM, { - cN: "section", - b: "" - }, { - cN: "attribute", - b: /\w+/, - r: 0, - k: { - nomarkup: "order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername" - }, - starts: { - e: /$/, - r: 0, - k: { - literal: "on off all" - }, - c: [{ - cN: "meta", - b: "\\s\\[", - e: "\\]$" - }, { - cN: "variable", - b: "[\\$%]\\{", - e: "\\}", - c: ["self", r] - }, r, e.QSM] - } - }], - i: /\S/ - } -}); -hljs.registerLanguage("django", function(e) { - var t = { - b: /\|[A-Za-z]+:?/, - k: { - name: "truncatewords removetags linebreaksbr yesno get_digit timesince random striptags filesizeformat escape linebreaks length_is ljust rjust cut urlize fix_ampersands title floatformat capfirst pprint divisibleby add make_list unordered_list urlencode timeuntil urlizetrunc wordcount stringformat linenumbers slice date dictsort dictsortreversed default_if_none pluralize lower join center default truncatewords_html upper length phone2numeric wordwrap time addslashes slugify first escapejs force_escape iriencode last safe safeseq truncatechars localize unlocalize localtime utc timezone" - }, - c: [e.QSM, e.ASM] - }; - return { - aliases: ["jinja"], - cI: !0, - sL: "xml", - c: [e.C(/\{%\s*comment\s*%}/, /\{%\s*endcomment\s*%}/), e.C(/\{#/, /#}/), { - cN: "template-tag", - b: /\{%/, - e: /%}/, - c: [{ - cN: "name", - b: /\w+/, - k: { - name: "comment endcomment load templatetag ifchanged endifchanged if endif firstof for endfor ifnotequal endifnotequal widthratio extends include spaceless endspaceless regroup ifequal endifequal ssi now with cycle url filter endfilter debug block endblock else autoescape endautoescape csrf_token empty elif endwith static trans blocktrans endblocktrans get_static_prefix get_media_prefix plural get_current_language language get_available_languages get_current_language_bidi get_language_info get_language_info_list localize endlocalize localtime endlocaltime timezone endtimezone get_current_timezone verbatim" - }, - starts: { - eW: !0, - k: "in by as", - c: [t], - r: 0 - } - }] - }, { - cN: "template-variable", - b: /\{\{/, - e: /}}/, - c: [t] - }] - } -}); -hljs.registerLanguage("markdown", function(e) { - return { - aliases: ["md", "mkdown", "mkd"], - c: [{ - cN: "section", - v: [{ - b: "^#{1,6}", - e: "$" - }, { - b: "^.+?\\n[=-]{2,}$" - }] - }, { - b: "<", - e: ">", - sL: "xml", - r: 0 - }, { - cN: "bullet", - b: "^([*+-]|(\\d+\\.))\\s+" - }, { - cN: "strong", - b: "[*_]{2}.+?[*_]{2}" - }, { - cN: "emphasis", - v: [{ - b: "\\*.+?\\*" - }, { - b: "_.+?_", - r: 0 - }] - }, { - cN: "quote", - b: "^>\\s+", - e: "$" - }, { - cN: "code", - v: [{ - b: "^```w*s*$", - e: "^```s*$" - }, { - b: "`.+?`" - }, { - b: "^( {4}| )", - e: "$", - r: 0 - }] - }, { - b: "^[-\\*]{3,}", - e: "$" - }, { - b: "\\[.+?\\][\\(\\[].*?[\\)\\]]", - rB: !0, - c: [{ - cN: "string", - b: "\\[", - e: "\\]", - eB: !0, - rE: !0, - r: 0 - }, { - cN: "link", - b: "\\]\\(", - e: "\\)", - eB: !0, - eE: !0 - }, { - cN: "symbol", - b: "\\]\\[", - e: "\\]", - eB: !0, - eE: !0 - }], - r: 10 - }, { - b: /^\[[^\n]+\]:/, - rB: !0, - c: [{ - cN: "symbol", - b: /\[/, - e: /\]/, - eB: !0, - eE: !0 - }, { - cN: "link", - b: /:\s*/, - e: /$/, - eB: !0 - }] - }] - } -}); -hljs.registerLanguage("stata", function(e) { - return { - aliases: ["do", "ado"], - cI: !0, - k: "if else in foreach for forv forva forval forvalu forvalue forvalues by bys bysort xi quietly qui capture about ac ac_7 acprplot acprplot_7 adjust ado adopath adoupdate alpha ameans an ano anov anova anova_estat anova_terms anovadef aorder ap app appe appen append arch arch_dr arch_estat arch_p archlm areg areg_p args arima arima_dr arima_estat arima_p as asmprobit asmprobit_estat asmprobit_lf asmprobit_mfx__dlg asmprobit_p ass asse asser assert avplot avplot_7 avplots avplots_7 bcskew0 bgodfrey binreg bip0_lf biplot bipp_lf bipr_lf bipr_p biprobit bitest bitesti bitowt blogit bmemsize boot bootsamp bootstrap bootstrap_8 boxco_l boxco_p boxcox boxcox_6 boxcox_p bprobit br break brier bro brow brows browse brr brrstat bs bs_7 bsampl_w bsample bsample_7 bsqreg bstat bstat_7 bstat_8 bstrap bstrap_7 ca ca_estat ca_p cabiplot camat canon canon_8 canon_8_p canon_estat canon_p cap caprojection capt captu captur capture cat cc cchart cchart_7 cci cd censobs_table centile cf char chdir checkdlgfiles checkestimationsample checkhlpfiles checksum chelp ci cii cl class classutil clear cli clis clist clo clog clog_lf clog_p clogi clogi_sw clogit clogit_lf clogit_p clogitp clogl_sw cloglog clonevar clslistarray cluster cluster_measures cluster_stop cluster_tree cluster_tree_8 clustermat cmdlog cnr cnre cnreg cnreg_p cnreg_sw cnsreg codebook collaps4 collapse colormult_nb colormult_nw compare compress conf confi confir confirm conren cons const constr constra constrai constrain constraint continue contract copy copyright copysource cor corc corr corr2data corr_anti corr_kmo corr_smc corre correl correla correlat correlate corrgram cou coun count cox cox_p cox_sw coxbase coxhaz coxvar cprplot cprplot_7 crc cret cretu cretur creturn cross cs cscript cscript_log csi ct ct_is ctset ctst_5 ctst_st cttost cumsp cumsp_7 cumul cusum cusum_7 cutil d|0 datasig datasign datasigna datasignat datasignatu datasignatur datasignature datetof db dbeta de dec deco decod decode deff des desc descr descri describ describe destring dfbeta dfgls dfuller di di_g dir dirstats dis discard disp disp_res disp_s displ displa display distinct do doe doed doedi doedit dotplot dotplot_7 dprobit drawnorm drop ds ds_util dstdize duplicates durbina dwstat dydx e|0 ed edi edit egen eivreg emdef en enc enco encod encode eq erase ereg ereg_lf ereg_p ereg_sw ereghet ereghet_glf ereghet_glf_sh ereghet_gp ereghet_ilf ereghet_ilf_sh ereghet_ip eret eretu eretur ereturn err erro error est est_cfexist est_cfname est_clickable est_expand est_hold est_table est_unhold est_unholdok estat estat_default estat_summ estat_vce_only esti estimates etodow etof etomdy ex exi exit expand expandcl fac fact facto factor factor_estat factor_p factor_pca_rotated factor_rotate factormat fcast fcast_compute fcast_graph fdades fdadesc fdadescr fdadescri fdadescrib fdadescribe fdasav fdasave fdause fh_st file open file read file close file filefilter fillin find_hlp_file findfile findit findit_7 fit fl fli flis flist for5_0 form forma format fpredict frac_154 frac_adj frac_chk frac_cox frac_ddp frac_dis frac_dv frac_in frac_mun frac_pp frac_pq frac_pv frac_wgt frac_xo fracgen fracplot fracplot_7 fracpoly fracpred fron_ex fron_hn fron_p fron_tn fron_tn2 frontier ftodate ftoe ftomdy ftowdate g|0 gamhet_glf gamhet_gp gamhet_ilf gamhet_ip gamma gamma_d2 gamma_p gamma_sw gammahet gdi_hexagon gdi_spokes ge gen gene gener genera generat generate genrank genstd genvmean gettoken gl gladder gladder_7 glim_l01 glim_l02 glim_l03 glim_l04 glim_l05 glim_l06 glim_l07 glim_l08 glim_l09 glim_l10 glim_l11 glim_l12 glim_lf glim_mu glim_nw1 glim_nw2 glim_nw3 glim_p glim_v1 glim_v2 glim_v3 glim_v4 glim_v5 glim_v6 glim_v7 glm glm_6 glm_p glm_sw glmpred glo glob globa global glogit glogit_8 glogit_p gmeans gnbre_lf gnbreg gnbreg_5 gnbreg_p gomp_lf gompe_sw gomper_p gompertz gompertzhet gomphet_glf gomphet_glf_sh gomphet_gp gomphet_ilf gomphet_ilf_sh gomphet_ip gphdot gphpen gphprint gprefs gprobi_p gprobit gprobit_8 gr gr7 gr_copy gr_current gr_db gr_describe gr_dir gr_draw gr_draw_replay gr_drop gr_edit gr_editviewopts gr_example gr_example2 gr_export gr_print gr_qscheme gr_query gr_read gr_rename gr_replay gr_save gr_set gr_setscheme gr_table gr_undo gr_use graph graph7 grebar greigen greigen_7 greigen_8 grmeanby grmeanby_7 gs_fileinfo gs_filetype gs_graphinfo gs_stat gsort gwood h|0 hadimvo hareg hausman haver he heck_d2 heckma_p heckman heckp_lf heckpr_p heckprob hel help hereg hetpr_lf hetpr_p hetprob hettest hexdump hilite hist hist_7 histogram hlogit hlu hmeans hotel hotelling hprobit hreg hsearch icd9 icd9_ff icd9p iis impute imtest inbase include inf infi infil infile infix inp inpu input ins insheet insp inspe inspec inspect integ inten intreg intreg_7 intreg_p intrg2_ll intrg_ll intrg_ll2 ipolate iqreg ir irf irf_create irfm iri is_svy is_svysum isid istdize ivprob_1_lf ivprob_lf ivprobit ivprobit_p ivreg ivreg_footnote ivtob_1_lf ivtob_lf ivtobit ivtobit_p jackknife jacknife jknife jknife_6 jknife_8 jkstat joinby kalarma1 kap kap_3 kapmeier kappa kapwgt kdensity kdensity_7 keep ksm ksmirnov ktau kwallis l|0 la lab labe label labelbook ladder levels levelsof leverage lfit lfit_p li lincom line linktest lis list lloghet_glf lloghet_glf_sh lloghet_gp lloghet_ilf lloghet_ilf_sh lloghet_ip llogi_sw llogis_p llogist llogistic llogistichet lnorm_lf lnorm_sw lnorma_p lnormal lnormalhet lnormhet_glf lnormhet_glf_sh lnormhet_gp lnormhet_ilf lnormhet_ilf_sh lnormhet_ip lnskew0 loadingplot loc loca local log logi logis_lf logistic logistic_p logit logit_estat logit_p loglogs logrank loneway lookfor lookup lowess lowess_7 lpredict lrecomp lroc lroc_7 lrtest ls lsens lsens_7 lsens_x lstat ltable ltable_7 ltriang lv lvr2plot lvr2plot_7 m|0 ma mac macr macro makecns man manova manova_estat manova_p manovatest mantel mark markin markout marksample mat mat_capp mat_order mat_put_rr mat_rapp mata mata_clear mata_describe mata_drop mata_matdescribe mata_matsave mata_matuse mata_memory mata_mlib mata_mosave mata_rename mata_which matalabel matcproc matlist matname matr matri matrix matrix_input__dlg matstrik mcc mcci md0_ md1_ md1debug_ md2_ md2debug_ mds mds_estat mds_p mdsconfig mdslong mdsmat mdsshepard mdytoe mdytof me_derd mean means median memory memsize meqparse mer merg merge mfp mfx mhelp mhodds minbound mixed_ll mixed_ll_reparm mkassert mkdir mkmat mkspline ml ml_5 ml_adjs ml_bhhhs ml_c_d ml_check ml_clear ml_cnt ml_debug ml_defd ml_e0 ml_e0_bfgs ml_e0_cycle ml_e0_dfp ml_e0i ml_e1 ml_e1_bfgs ml_e1_bhhh ml_e1_cycle ml_e1_dfp ml_e2 ml_e2_cycle ml_ebfg0 ml_ebfr0 ml_ebfr1 ml_ebh0q ml_ebhh0 ml_ebhr0 ml_ebr0i ml_ecr0i ml_edfp0 ml_edfr0 ml_edfr1 ml_edr0i ml_eds ml_eer0i ml_egr0i ml_elf ml_elf_bfgs ml_elf_bhhh ml_elf_cycle ml_elf_dfp ml_elfi ml_elfs ml_enr0i ml_enrr0 ml_erdu0 ml_erdu0_bfgs ml_erdu0_bhhh ml_erdu0_bhhhq ml_erdu0_cycle ml_erdu0_dfp ml_erdu0_nrbfgs ml_exde ml_footnote ml_geqnr ml_grad0 ml_graph ml_hbhhh ml_hd0 ml_hold ml_init ml_inv ml_log ml_max ml_mlout ml_mlout_8 ml_model ml_nb0 ml_opt ml_p ml_plot ml_query ml_rdgrd ml_repor ml_s_e ml_score ml_searc ml_technique ml_unhold mleval mlf_ mlmatbysum mlmatsum mlog mlogi mlogit mlogit_footnote mlogit_p mlopts mlsum mlvecsum mnl0_ mor more mov move mprobit mprobit_lf mprobit_p mrdu0_ mrdu1_ mvdecode mvencode mvreg mvreg_estat n|0 nbreg nbreg_al nbreg_lf nbreg_p nbreg_sw nestreg net newey newey_7 newey_p news nl nl_7 nl_9 nl_9_p nl_p nl_p_7 nlcom nlcom_p nlexp2 nlexp2_7 nlexp2a nlexp2a_7 nlexp3 nlexp3_7 nlgom3 nlgom3_7 nlgom4 nlgom4_7 nlinit nllog3 nllog3_7 nllog4 nllog4_7 nlog_rd nlogit nlogit_p nlogitgen nlogittree nlpred no nobreak noi nois noisi noisil noisily note notes notes_dlg nptrend numlabel numlist odbc old_ver olo olog ologi ologi_sw ologit ologit_p ologitp on one onew onewa oneway op_colnm op_comp op_diff op_inv op_str opr opro oprob oprob_sw oprobi oprobi_p oprobit oprobitp opts_exclusive order orthog orthpoly ou out outf outfi outfil outfile outs outsh outshe outshee outsheet ovtest pac pac_7 palette parse parse_dissim pause pca pca_8 pca_display pca_estat pca_p pca_rotate pcamat pchart pchart_7 pchi pchi_7 pcorr pctile pentium pergram pergram_7 permute permute_8 personal peto_st pkcollapse pkcross pkequiv pkexamine pkexamine_7 pkshape pksumm pksumm_7 pl plo plot plugin pnorm pnorm_7 poisgof poiss_lf poiss_sw poisso_p poisson poisson_estat post postclose postfile postutil pperron pr prais prais_e prais_e2 prais_p predict predictnl preserve print pro prob probi probit probit_estat probit_p proc_time procoverlay procrustes procrustes_estat procrustes_p profiler prog progr progra program prop proportion prtest prtesti pwcorr pwd q\\s qby qbys qchi qchi_7 qladder qladder_7 qnorm qnorm_7 qqplot qqplot_7 qreg qreg_c qreg_p qreg_sw qu quadchk quantile quantile_7 que quer query range ranksum ratio rchart rchart_7 rcof recast reclink recode reg reg3 reg3_p regdw regr regre regre_p2 regres regres_p regress regress_estat regriv_p remap ren rena renam rename renpfix repeat replace report reshape restore ret retu retur return rm rmdir robvar roccomp roccomp_7 roccomp_8 rocf_lf rocfit rocfit_8 rocgold rocplot rocplot_7 roctab roctab_7 rolling rologit rologit_p rot rota rotat rotate rotatemat rreg rreg_p ru run runtest rvfplot rvfplot_7 rvpplot rvpplot_7 sa safesum sample sampsi sav save savedresults saveold sc sca scal scala scalar scatter scm_mine sco scob_lf scob_p scobi_sw scobit scor score scoreplot scoreplot_help scree screeplot screeplot_help sdtest sdtesti se search separate seperate serrbar serrbar_7 serset set set_defaults sfrancia sh she shel shell shewhart shewhart_7 signestimationsample signrank signtest simul simul_7 simulate simulate_8 sktest sleep slogit slogit_d2 slogit_p smooth snapspan so sor sort spearman spikeplot spikeplot_7 spikeplt spline_x split sqreg sqreg_p sret sretu sretur sreturn ssc st st_ct st_hc st_hcd st_hcd_sh st_is st_issys st_note st_promo st_set st_show st_smpl st_subid stack statsby statsby_8 stbase stci stci_7 stcox stcox_estat stcox_fr stcox_fr_ll stcox_p stcox_sw stcoxkm stcoxkm_7 stcstat stcurv stcurve stcurve_7 stdes stem stepwise stereg stfill stgen stir stjoin stmc stmh stphplot stphplot_7 stphtest stphtest_7 stptime strate strate_7 streg streg_sw streset sts sts_7 stset stsplit stsum sttocc sttoct stvary stweib su suest suest_8 sum summ summa summar summari summariz summarize sunflower sureg survcurv survsum svar svar_p svmat svy svy_disp svy_dreg svy_est svy_est_7 svy_estat svy_get svy_gnbreg_p svy_head svy_header svy_heckman_p svy_heckprob_p svy_intreg_p svy_ivreg_p svy_logistic_p svy_logit_p svy_mlogit_p svy_nbreg_p svy_ologit_p svy_oprobit_p svy_poisson_p svy_probit_p svy_regress_p svy_sub svy_sub_7 svy_x svy_x_7 svy_x_p svydes svydes_8 svygen svygnbreg svyheckman svyheckprob svyintreg svyintreg_7 svyintrg svyivreg svylc svylog_p svylogit svymarkout svymarkout_8 svymean svymlog svymlogit svynbreg svyolog svyologit svyoprob svyoprobit svyopts svypois svypois_7 svypoisson svyprobit svyprobt svyprop svyprop_7 svyratio svyreg svyreg_p svyregress svyset svyset_7 svyset_8 svytab svytab_7 svytest svytotal sw sw_8 swcnreg swcox swereg swilk swlogis swlogit swologit swoprbt swpois swprobit swqreg swtobit swweib symmetry symmi symplot symplot_7 syntax sysdescribe sysdir sysuse szroeter ta tab tab1 tab2 tab_or tabd tabdi tabdis tabdisp tabi table tabodds tabodds_7 tabstat tabu tabul tabula tabulat tabulate te tempfile tempname tempvar tes test testnl testparm teststd tetrachoric time_it timer tis tob tobi tobit tobit_p tobit_sw token tokeni tokeniz tokenize tostring total translate translator transmap treat_ll treatr_p treatreg trim trnb_cons trnb_mean trpoiss_d2 trunc_ll truncr_p truncreg tsappend tset tsfill tsline tsline_ex tsreport tsrevar tsrline tsset tssmooth tsunab ttest ttesti tut_chk tut_wait tutorial tw tware_st two twoway twoway__fpfit_serset twoway__function_gen twoway__histogram_gen twoway__ipoint_serset twoway__ipoints_serset twoway__kdensity_gen twoway__lfit_serset twoway__normgen_gen twoway__pci_serset twoway__qfit_serset twoway__scatteri_serset twoway__sunflower_gen twoway_ksm_serset ty typ type typeof u|0 unab unabbrev unabcmd update us use uselabel var var_mkcompanion var_p varbasic varfcast vargranger varirf varirf_add varirf_cgraph varirf_create varirf_ctable varirf_describe varirf_dir varirf_drop varirf_erase varirf_graph varirf_ograph varirf_rename varirf_set varirf_table varlist varlmar varnorm varsoc varstable varstable_w varstable_w2 varwle vce vec vec_fevd vec_mkphi vec_p vec_p_w vecirf_create veclmar veclmar_w vecnorm vecnorm_w vecrank vecstable verinst vers versi versio version view viewsource vif vwls wdatetof webdescribe webseek webuse weib1_lf weib2_lf weib_lf weib_lf0 weibhet_glf weibhet_glf_sh weibhet_glfa weibhet_glfa_sh weibhet_gp weibhet_ilf weibhet_ilf_sh weibhet_ilfa weibhet_ilfa_sh weibhet_ip weibu_sw weibul_p weibull weibull_c weibull_s weibullhet wh whelp whi which whil while wilc_st wilcoxon win wind windo window winexec wntestb wntestb_7 wntestq xchart xchart_7 xcorr xcorr_7 xi xi_6 xmlsav xmlsave xmluse xpose xsh xshe xshel xshell xt_iis xt_tis xtab_p xtabond xtbin_p xtclog xtcloglog xtcloglog_8 xtcloglog_d2 xtcloglog_pa_p xtcloglog_re_p xtcnt_p xtcorr xtdata xtdes xtfront_p xtfrontier xtgee xtgee_elink xtgee_estat xtgee_makeivar xtgee_p xtgee_plink xtgls xtgls_p xthaus xthausman xtht_p xthtaylor xtile xtint_p xtintreg xtintreg_8 xtintreg_d2 xtintreg_p xtivp_1 xtivp_2 xtivreg xtline xtline_ex xtlogit xtlogit_8 xtlogit_d2 xtlogit_fe_p xtlogit_pa_p xtlogit_re_p xtmixed xtmixed_estat xtmixed_p xtnb_fe xtnb_lf xtnbreg xtnbreg_pa_p xtnbreg_refe_p xtpcse xtpcse_p xtpois xtpoisson xtpoisson_d2 xtpoisson_pa_p xtpoisson_refe_p xtpred xtprobit xtprobit_8 xtprobit_d2 xtprobit_re_p xtps_fe xtps_lf xtps_ren xtps_ren_8 xtrar_p xtrc xtrc_p xtrchh xtrefe_p xtreg xtreg_be xtreg_fe xtreg_ml xtreg_pa_p xtreg_re xtregar xtrere_p xtset xtsf_ll xtsf_llti xtsum xttab xttest0 xttobit xttobit_8 xttobit_p xttrans yx yxview__barlike_draw yxview_area_draw yxview_bar_draw yxview_dot_draw yxview_dropline_draw yxview_function_draw yxview_iarrow_draw yxview_ilabels_draw yxview_normal_draw yxview_pcarrow_draw yxview_pcbarrow_draw yxview_pccapsym_draw yxview_pcscatter_draw yxview_pcspike_draw yxview_rarea_draw yxview_rbar_draw yxview_rbarm_draw yxview_rcap_draw yxview_rcapsym_draw yxview_rconnected_draw yxview_rline_draw yxview_rscatter_draw yxview_rspike_draw yxview_spike_draw yxview_sunflower_draw zap_s zinb zinb_llf zinb_plf zip zip_llf zip_p zip_plf zt_ct_5 zt_hc_5 zt_hcd_5 zt_is_5 zt_iss_5 zt_sho_5 zt_smp_5 ztbase_5 ztcox_5 ztdes_5 ztereg_5 ztfill_5 ztgen_5 ztir_5 ztjoin_5 ztnb ztnb_p ztp ztp_p zts_5 ztset_5 ztspli_5 ztsum_5 zttoct_5 ztvary_5 ztweib_5", - c: [{ - cN: "symbol", - b: /`[a-zA-Z0-9_]+'/ - }, { - cN: "variable", - b: /\$\{?[a-zA-Z0-9_]+\}?/ - }, { - cN: "string", - v: [{ - b: '`"[^\r\n]*?"\'' - }, { - b: '"[^\r\n"]*"' - }] - }, { - cN: "built_in", - v: [{ - b: "\\b(abs|acos|asin|atan|atan2|atanh|ceil|cloglog|comb|cos|digamma|exp|floor|invcloglog|invlogit|ln|lnfact|lnfactorial|lngamma|log|log10|max|min|mod|reldif|round|sign|sin|sqrt|sum|tan|tanh|trigamma|trunc|betaden|Binomial|binorm|binormal|chi2|chi2tail|dgammapda|dgammapdada|dgammapdadx|dgammapdx|dgammapdxdx|F|Fden|Ftail|gammaden|gammap|ibeta|invbinomial|invchi2|invchi2tail|invF|invFtail|invgammap|invibeta|invnchi2|invnFtail|invnibeta|invnorm|invnormal|invttail|nbetaden|nchi2|nFden|nFtail|nibeta|norm|normal|normalden|normd|npnchi2|tden|ttail|uniform|abbrev|char|index|indexnot|length|lower|ltrim|match|plural|proper|real|regexm|regexr|regexs|reverse|rtrim|string|strlen|strlower|strltrim|strmatch|strofreal|strpos|strproper|strreverse|strrtrim|strtrim|strupper|subinstr|subinword|substr|trim|upper|word|wordcount|_caller|autocode|byteorder|chop|clip|cond|e|epsdouble|epsfloat|group|inlist|inrange|irecode|matrix|maxbyte|maxdouble|maxfloat|maxint|maxlong|mi|minbyte|mindouble|minfloat|minint|minlong|missing|r|recode|replay|return|s|scalar|d|date|day|dow|doy|halfyear|mdy|month|quarter|week|year|d|daily|dofd|dofh|dofm|dofq|dofw|dofy|h|halfyearly|hofd|m|mofd|monthly|q|qofd|quarterly|tin|twithin|w|weekly|wofd|y|yearly|yh|ym|yofd|yq|yw|cholesky|colnumb|colsof|corr|det|diag|diag0cnt|el|get|hadamard|I|inv|invsym|issym|issymmetric|J|matmissing|matuniform|mreldif|nullmat|rownumb|rowsof|sweep|syminv|trace|vec|vecdiag)(?=\\(|$)" - }] - }, e.C("^[ ]*\\*.*$", !1), e.CLCM, e.CBCM] - } -}); -hljs.registerLanguage("javascript", function(e) { - var r = "[A-Za-z$_][0-9A-Za-z$_]*" - , t = { - keyword: "in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as", - literal: "true false null undefined NaN Infinity", - built_in: "eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise" - } - , a = { - cN: "number", - v: [{ - b: "\\b(0[bB][01]+)" - }, { - b: "\\b(0[oO][0-7]+)" - }, { - b: e.CNR - }], - r: 0 - } - , n = { - cN: "subst", - b: "\\$\\{", - e: "\\}", - k: t, - c: [] - } - , c = { - cN: "string", - b: "`", - e: "`", - c: [e.BE, n] - }; - n.c = [e.ASM, e.QSM, c, a, e.RM]; - var s = n.c.concat([e.CBCM, e.CLCM]); - return { - aliases: ["js", "jsx"], - k: t, - c: [{ - cN: "meta", - r: 10, - b: /^\s*['"]use (strict|asm)['"]/ - }, { - cN: "meta", - b: /^#!/, - e: /$/ - }, e.ASM, e.QSM, c, e.CLCM, e.CBCM, a, { - b: /[{,]\s*/, - r: 0, - c: [{ - b: r + "\\s*:", - rB: !0, - r: 0, - c: [{ - cN: "attr", - b: r, - r: 0 - }] - }] - }, { - b: "(" + e.RSR + "|\\b(case|return|throw)\\b)\\s*", - k: "return throw case", - c: [e.CLCM, e.CBCM, e.RM, { - cN: "function", - b: "(\\(.*?\\)|" + r + ")\\s*=>", - rB: !0, - e: "\\s*=>", - c: [{ - cN: "params", - v: [{ - b: r - }, { - b: /\(\s*\)/ - }, { - b: /\(/, - e: /\)/, - eB: !0, - eE: !0, - k: t, - c: s - }] - }] - }, { - b: //, - sL: "xml", - c: [{ - b: /<\w+\s*\/>/, - skip: !0 - }, { - b: /<\w+/, - e: /(\/\w+|\w+\/)>/, - skip: !0, - c: [{ - b: /<\w+\s*\/>/, - skip: !0 - }, "self"] - }] - }], - r: 0 - }, { - cN: "function", - bK: "function", - e: /\{/, - eE: !0, - c: [e.inherit(e.TM, { - b: r - }), { - cN: "params", - b: /\(/, - e: /\)/, - eB: !0, - eE: !0, - c: s - }], - i: /\[|%/ - }, { - b: /\$[(.]/ - }, e.METHOD_GUARD, { - cN: "class", - bK: "class", - e: /[{;=]/, - eE: !0, - i: /[:"\[\]]/, - c: [{ - bK: "extends" - }, e.UTM] - }, { - bK: "constructor", - e: /\{/, - eE: !0 - }], - i: /#(?!!)/ - } -}); -hljs.registerLanguage("java", function(e) { - var a = "[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*" - , t = a + "(<" + a + "(\\s*,\\s*" + a + ")*>)?" - , r = "false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do" - , s = "\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?" - , c = { - cN: "number", - b: s, - r: 0 - }; - return { - aliases: ["jsp"], - k: r, - i: /<\/|#/, - c: [e.C("/\\*\\*", "\\*/", { - r: 0, - c: [{ - b: /\w+@/, - r: 0 - }, { - cN: "doctag", - b: "@[A-Za-z]+" - }] - }), e.CLCM, e.CBCM, e.ASM, e.QSM, { - cN: "class", - bK: "class interface", - e: /[{;=]/, - eE: !0, - k: "class interface", - i: /[:"\[\]]/, - c: [{ - bK: "extends implements" - }, e.UTM] - }, { - bK: "new throw return else", - r: 0 - }, { - cN: "function", - b: "(" + t + "\\s+)+" + e.UIR + "\\s*\\(", - rB: !0, - e: /[{;=]/, - eE: !0, - k: r, - c: [{ - b: e.UIR + "\\s*\\(", - rB: !0, - r: 0, - c: [e.UTM] - }, { - cN: "params", - b: /\(/, - e: /\)/, - k: r, - r: 0, - c: [e.ASM, e.QSM, e.CNM, e.CBCM] - }, e.CLCM, e.CBCM] - }, c, { - cN: "meta", - b: "@[A-Za-z]+" - }] - } -}); -hljs.registerLanguage("cpp", function(t) { - var e = { - cN: "keyword", - b: "\\b[a-z\\d_]*_t\\b" - } - , r = { - cN: "string", - v: [{ - b: '(u8?|U)?L?"', - e: '"', - i: "\\n", - c: [t.BE] - }, { - b: '(u8?|U)?R"', - e: '"', - c: [t.BE] - }, { - b: "'\\\\?.", - e: "'", - i: "." - }] - } - , s = { - cN: "number", - v: [{ - b: "\\b(0b[01']+)" - }, { - b: "(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)" - }, { - b: "(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)" - }], - r: 0 - } - , i = { - cN: "meta", - b: /#\s*[a-z]+\b/, - e: /$/, - k: { - "meta-keyword": "if else elif endif define undef warning error line pragma ifdef ifndef include" - }, - c: [{ - b: /\\\n/, - r: 0 - }, t.inherit(r, { - cN: "meta-string" - }), { - cN: "meta-string", - b: /<[^\n>]*>/, - e: /$/, - i: "\\n" - }, t.CLCM, t.CBCM] - } - , a = t.IR + "\\s*\\(" - , c = { - keyword: "int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and or not", - built_in: "std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr", - literal: "true false nullptr NULL" - } - , n = [e, t.CLCM, t.CBCM, s, r]; - return { - aliases: ["c", "cc", "h", "c++", "h++", "hpp"], - k: c, - i: "", - k: c, - c: ["self", e] - }, { - b: t.IR + "::", - k: c - }, { - v: [{ - b: /=/, - e: /;/ - }, { - b: /\(/, - e: /\)/ - }, { - bK: "new throw return else", - e: /;/ - }], - k: c, - c: n.concat([{ - b: /\(/, - e: /\)/, - k: c, - c: n.concat(["self"]), - r: 0 - }]), - r: 0 - }, { - cN: "function", - b: "(" + t.IR + "[\\*&\\s]+)+" + a, - rB: !0, - e: /[{;=]/, - eE: !0, - k: c, - i: /[^\w\s\*&]/, - c: [{ - b: a, - rB: !0, - c: [t.TM], - r: 0 - }, { - cN: "params", - b: /\(/, - e: /\)/, - k: c, - r: 0, - c: [t.CLCM, t.CBCM, r, s, e] - }, t.CLCM, t.CBCM, i] - }, { - cN: "class", - bK: "class struct", - e: /[{;:]/, - c: [{ - b: //, - c: ["self"] - }, t.TM] - }]), - exports: { - preprocessor: i, - strings: r, - k: c - } - } -}); -hljs.registerLanguage("http", function(e) { - var t = "HTTP/[0-9\\.]+"; - return { - aliases: ["https"], - i: "\\S", - c: [{ - b: "^" + t, - e: "$", - c: [{ - cN: "number", - b: "\\b\\d{3}\\b" - }] - }, { - b: "^[A-Z]+ (.*?) " + t + "$", - rB: !0, - e: "$", - c: [{ - cN: "string", - b: " ", - e: " ", - eB: !0, - eE: !0 - }, { - b: t - }, { - cN: "keyword", - b: "[A-Z]+" - }] - }, { - cN: "attribute", - b: "^\\w", - e: ": ", - eE: !0, - i: "\\n|\\s|=", - starts: { - e: "$", - r: 0 - } - }, { - b: "\\n\\n", - starts: { - sL: [], - eW: !0 - } - }] - } -}); -hljs.registerLanguage("makefile", function(e) { - var i = { - cN: "variable", - v: [{ - b: "\\$\\(" + e.UIR + "\\)", - c: [e.BE] - }, { - b: /\$[@%>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?" - , r = { - keyword: "and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor", - literal: "true false nil" - } - , c = { - cN: "doctag", - b: "@[A-Za-z]+" - } - , a = { - b: "#<", - e: ">" - } - , s = [e.C("#", "$", { - c: [c] - }), e.C("^\\=begin", "^\\=end", { - c: [c], - r: 10 - }), e.C("^__END__", "\\n$")] - , n = { - cN: "subst", - b: "#\\{", - e: "}", - k: r - } - , t = { - cN: "string", - c: [e.BE, n], - v: [{ - b: /'/, - e: /'/ - }, { - b: /"/, - e: /"/ - }, { - b: /`/, - e: /`/ - }, { - b: "%[qQwWx]?\\(", - e: "\\)" - }, { - b: "%[qQwWx]?\\[", - e: "\\]" - }, { - b: "%[qQwWx]?{", - e: "}" - }, { - b: "%[qQwWx]?<", - e: ">" - }, { - b: "%[qQwWx]?/", - e: "/" - }, { - b: "%[qQwWx]?%", - e: "%" - }, { - b: "%[qQwWx]?-", - e: "-" - }, { - b: "%[qQwWx]?\\|", - e: "\\|" - }, { - b: /\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/ - }, { - b: /<<(-?)\w+$/, - e: /^\s*\w+$/ - }] - } - , i = { - cN: "params", - b: "\\(", - e: "\\)", - endsParent: !0, - k: r - } - , d = [t, a, { - cN: "class", - bK: "class module", - e: "$|;", - i: /=/, - c: [e.inherit(e.TM, { - b: "[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?" - }), { - b: "<\\s*", - c: [{ - b: "(" + e.IR + "::)?" + e.IR - }] - }].concat(s) - }, { - cN: "function", - bK: "def", - e: "$|;", - c: [e.inherit(e.TM, { - b: b - }), i].concat(s) - }, { - b: e.IR + "::" - }, { - cN: "symbol", - b: e.UIR + "(\\!|\\?)?:", - r: 0 - }, { - cN: "symbol", - b: ":(?!\\s)", - c: [t, { - b: b - }], - r: 0 - }, { - cN: "number", - b: "(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b", - r: 0 - }, { - b: "(\\$\\W)|((\\$|\\@\\@?)(\\w+))" - }, { - cN: "params", - b: /\|/, - e: /\|/, - k: r - }, { - b: "(" + e.RSR + "|unless)\\s*", - k: "unless", - c: [a, { - cN: "regexp", - c: [e.BE, n], - i: /\n/, - v: [{ - b: "/", - e: "/[a-z]*" - }, { - b: "%r{", - e: "}[a-z]*" - }, { - b: "%r\\(", - e: "\\)[a-z]*" - }, { - b: "%r!", - e: "![a-z]*" - }, { - b: "%r\\[", - e: "\\][a-z]*" - }] - }].concat(s), - r: 0 - }].concat(s); - n.c = d, - i.c = d; - var l = "[>?]>" - , o = "[\\w#]+\\(\\w+\\):\\d+:\\d+>" - , u = "(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>" - , w = [{ - b: /^\s*=>/, - starts: { - e: "$", - c: d - } - }, { - cN: "meta", - b: "^(" + l + "|" + o + "|" + u + ")", - starts: { - e: "$", - c: d - } - }]; - return { - aliases: ["rb", "gemspec", "podspec", "thor", "irb"], - k: r, - i: /\/\*/, - c: s.concat(w).concat(d) - } -}); -/*! line-number */ -!function(n, e) { - "use strict"; - function t() { - var n = e.createElement("style"); - n.type = "text/css", - n.innerHTML = h(".{0}{border-collapse:collapse}.{0} td{padding:0}.{1}:before{content:attr({2})}", [f, m, j]), - e.getElementsByTagName("head")[0].appendChild(n) - } - function r(t) { - "complete" === e.readyState ? l(t) : n.addEventListener("DOMContentLoaded", function() { - l(t) - }) - } - function l(t) { - try { - var r = e.querySelectorAll("code.hljs"); - for (var l in r) - r.hasOwnProperty(l) && i(r[l], t) - } catch (o) { - n.console.error("LineNumbers error: ", o) - } - } - function i(n, e) { - if ("object" == typeof n) { - e = e || { - singleLine: !1 - }; - var t = e.singleLine ? 0 : 1; - u(function() { - s(n), - n.innerHTML = o(n.innerHTML, t) - }) - } - } - function o(n, e) { - var t = c(n); - if ("" === t[t.length - 1].trim() && t.pop(), - t.length > e) { - for (var r = "", l = 0, i = t.length; l < i; l++) - r += h('

    {6}
    ', [v, g, m, j, p, l + 1, t[l].length > 0 ? t[l] : " "]); - return h('{1}
    ', [f, r]) - } - return n - } - function s(n) { - var e = n.childNodes; - for (var t in e) - if (e.hasOwnProperty(t)) { - var r = e[t]; - d(r.textContent) > 0 && (r.childNodes.length > 0 ? s(r) : a(r.parentNode)) - } - } - function a(n) { - var e = n.className; - if (/hljs-/.test(e)) { - for (var t = c(n.innerHTML), r = 0, l = ""; r < t.length; r++) - l += h('{1}\n', [e, t[r]]); - n.innerHTML = l.trim() - } - } - function c(n) { - return 0 === n.length ? [] : n.split(L) - } - function d(n) { - return (n.trim().match(L) || []).length - } - function u(e) { - n.setTimeout(e, 0) - } - function h(n, e) { - return n.replace(/\{(\d+)\}/g, function(n, t) { - return e[t] ? e[t] : n - }) - } - var f = "hljs-ln" - , g = "hljs-ln-line" - , p = "hljs-ln-code" - , v = "hljs-ln-numbers" - , m = "hljs-ln-n" - , j = "data-line-number" - , L = /\r\n|\r|\n/g; - n.hljs ? (n.hljs.initLineNumbersOnLoad = r, - n.hljs.lineNumbersBlock = i, - t()) : n.console.error("highlight.js not detected!") -}(window, document); -!function(n, e) { - "function" == typeof define && define.amd ? define(e) : "object" == typeof exports ? module.exports = e() : n.NProgress = e() -}(this, function() { - function n(n, e, t) { - return e > n ? e : n > t ? t : n - } - function e(n) { - return 100 * (-1 + n) - } - function t(n, t, r) { - var i; - return i = "translate3d" === c.positionUsing ? { - transform: "translate3d(" + e(n) + "%,0,0)" - } : "translate" === c.positionUsing ? { - transform: "translate(" + e(n) + "%,0)" - } : { - "margin-left": e(n) + "%" - }, - i.transition = "all " + t + "ms " + r, - i - } - function r(n, e) { - var t = "string" == typeof n ? n : o(n); - return t.indexOf(" " + e + " ") >= 0 - } - function i(n, e) { - var t = o(n) - , i = t + e; - r(t, e) || (n.className = i.substring(1)) - } - function s(n, e) { - var t, i = o(n); - r(n, e) && (t = i.replace(" " + e + " ", " "), - n.className = t.substring(1, t.length - 1)) - } - function o(n) { - return (" " + (n.className || "") + " ").replace(/\s+/gi, " ") - } - function a(n) { - n && n.parentNode && n.parentNode.removeChild(n) - } - var u = {}; - u.version = "0.2.0"; - var c = u.settings = { - minimum: .08, - easing: "ease", - positionUsing: "", - speed: 200, - trickle: !0, - trickleRate: .02, - trickleSpeed: 800, - showSpinner: !0, - barSelector: '[role="bar"]', - spinnerSelector: '[role="spinner"]', - parent: "body", - template: '
    ' - }; - u.configure = function(n) { - var e, t; - for (e in n) - t = n[e], - void 0 !== t && n.hasOwnProperty(e) && (c[e] = t); - return this - } - , - u.status = null, - u.set = function(e) { - var r = u.isStarted(); - e = n(e, c.minimum, 1), - u.status = 1 === e ? null : e; - var i = u.render(!r) - , s = i.querySelector(c.barSelector) - , o = c.speed - , a = c.easing; - return i.offsetWidth, - l(function(n) { - "" === c.positionUsing && (c.positionUsing = u.getPositioningCSS()), - f(s, t(e, o, a)), - 1 === e ? (f(i, { - transition: "none", - opacity: 1 - }), - i.offsetWidth, - setTimeout(function() { - f(i, { - transition: "all " + o + "ms linear", - opacity: 0 - }), - setTimeout(function() { - u.remove(), - n() - }, o) - }, o)) : setTimeout(n, o) - }), - this - } - , - u.isStarted = function() { - return "number" == typeof u.status - } - , - u.start = function() { - u.status || u.set(0); - var n = function() { - setTimeout(function() { - u.status && (u.trickle(), - n()) - }, c.trickleSpeed) - }; - return c.trickle && n(), - this - } - , - u.done = function(n) { - return n || u.status ? u.inc(.3 + .5 * Math.random()).set(1) : this - } - , - u.inc = function(e) { - var t = u.status; - return t ? ("number" != typeof e && (e = (1 - t) * n(Math.random() * t, .1, .95)), - t = n(t + e, 0, .994), - u.set(t)) : u.start() - } - , - u.trickle = function() { - return u.inc(Math.random() * c.trickleRate) - } - , - function() { - var n = 0 - , e = 0; - u.promise = function(t) { - return t && "resolved" !== t.state() ? (0 === e && u.start(), - n++, - e++, - t.always(function() { - e--, - 0 === e ? (n = 0, - u.done()) : u.set((n - e) / n) - }), - this) : this - } - }(), - u.render = function(n) { - if (u.isRendered()) - return document.getElementById("nprogress"); - i(document.documentElement, "nprogress-busy"); - var t = document.createElement("div"); - t.id = "nprogress", - t.innerHTML = c.template; - var r, s = t.querySelector(c.barSelector), o = n ? "-100" : e(u.status || 0), l = document.querySelector(c.parent); - return f(s, { - transition: "all 0 linear", - transform: "translate3d(" + o + "%,0,0)" - }), - c.showSpinner || (r = t.querySelector(c.spinnerSelector), - r && a(r)), - l != document.body && i(l, "nprogress-custom-parent"), - l.appendChild(t), - t - } - , - u.remove = function() { - s(document.documentElement, "nprogress-busy"), - s(document.querySelector(c.parent), "nprogress-custom-parent"); - var n = document.getElementById("nprogress"); - n && a(n) - } - , - u.isRendered = function() { - return !!document.getElementById("nprogress") - } - , - u.getPositioningCSS = function() { - var n = document.body.style - , e = "WebkitTransform"in n ? "Webkit" : "MozTransform"in n ? "Moz" : "msTransform"in n ? "ms" : "OTransform"in n ? "O" : ""; - return e + "Perspective"in n ? "translate3d" : e + "Transform"in n ? "translate" : "margin" - } - ; - var l = function() { - function n() { - var t = e.shift(); - t && t(n) - } - var e = []; - return function(t) { - e.push(t), - 1 == e.length && n() - } - }() - , f = function() { - function n(n) { - return n.replace(/^-ms-/, "ms-").replace(/-([\da-z])/gi, function(n, e) { - return e.toUpperCase() - }) - } - function e(n) { - var e = document.body.style; - if (n in e) - return n; - for (var t, r = i.length, s = n.charAt(0).toUpperCase() + n.slice(1); r--; ) - if (t = i[r] + s, - t in e) - return t; - return n - } - function t(t) { - return t = n(t), - s[t] || (s[t] = e(t)) - } - function r(n, e, r) { - e = t(e), - n.style[e] = r - } - var i = ["Webkit", "O", "Moz", "ms"] - , s = {}; - return function(n, e) { - var t, i, s = arguments; - if (2 == s.length) - for (t in e) - i = e[t], - void 0 !== i && e.hasOwnProperty(t) && r(n, t, i); - else - r(n, s[1], s[2]) - } - }(); - return u -}); -(function webpackUniversalModuleDefinition(root, factory) { - if (typeof exports === 'object' && typeof module === 'object') - module.exports = factory(); - else if (typeof define === 'function' && define.amd) - define([], factory); - else if (typeof exports === 'object') - exports["POWERMODE"] = factory(); - else - root["POWERMODE"] = factory(); -} -)(this, function() { - return (function(modules) { - var installedModules = {}; - function __webpack_require__(moduleId) { - if (installedModules[moduleId]) - return installedModules[moduleId].exports; - var module = installedModules[moduleId] = { - exports: {}, - id: moduleId, - loaded: false - }; - modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - module.loaded = true; - return module.exports; - } - __webpack_require__.m = modules; - __webpack_require__.c = installedModules; - __webpack_require__.p = ""; - return __webpack_require__(0); - } - )([(function(module, exports, __webpack_require__) { - 'use strict'; - var canvas = document.createElement('canvas'); - canvas.width = window.innerWidth; - canvas.height = window.innerHeight; - canvas.style.cssText = 'position:fixed;top:0;left:0;pointer-events:none;z-index:999999'; - window.addEventListener('resize', function() { - canvas.width = window.innerWidth; - canvas.height = window.innerHeight; - }); - document.body.appendChild(canvas); - var context = canvas.getContext('2d'); - var particles = []; - var particlePointer = 0; - var rendering = false; - POWERMODE.shake = true; - function getRandom(min, max) { - return Math.random() * (max - min) + min; - } - function getColor(el) { - if (POWERMODE.colorful) { - var u = getRandom(0, 360); - return 'hsla(' + getRandom(u - 10, u + 10) + ', 100%, ' + getRandom(50, 80) + '%, ' + 1 + ')'; - } else { - return window.getComputedStyle(el).color; - } - } - function getCaret() { - var el = document.activeElement; - var bcr; - if (el.tagName === 'TEXTAREA' || (el.tagName === 'INPUT' && el.getAttribute('type') === 'text')) { - var offset = __webpack_require__(1)(el, el.selectionEnd); - bcr = el.getBoundingClientRect(); - return { - x: offset.left + bcr.left, - y: offset.top + bcr.top, - color: getColor(el) - }; - } - var selection = window.getSelection(); - if (selection.rangeCount) { - var range = selection.getRangeAt(0); - var startNode = range.startContainer; - if (startNode.nodeType === document.TEXT_NODE) { - startNode = startNode.parentNode; - } - bcr = range.getBoundingClientRect(); - return { - x: bcr.left, - y: bcr.top, - color: getColor(startNode) - }; - } - return { - x: 0, - y: 0, - color: 'transparent' - }; - } - function createParticle(x, y, color) { - return { - x: x, - y: y, - alpha: 1, - color: color, - velocity: { - x: -1 + Math.random() * 2, - y: -3.5 + Math.random() * 2 - } - }; - } - function POWERMODE() { - { - var caret = getCaret(); - var numParticles = 5 + Math.round(Math.random() * 10); - while (numParticles--) { - particles[particlePointer] = createParticle(caret.x, caret.y, caret.color); - particlePointer = (particlePointer + 1) % 500; - } - } - { - if (POWERMODE.shake) { - var intensity = 1 + 2 * Math.random(); - var x = intensity * (Math.random() > 0.5 ? -1 : 1); - var y = intensity * (Math.random() > 0.5 ? -1 : 1); - document.body.style.marginLeft = x + 'px'; - document.body.style.marginTop = y + 'px'; - setTimeout(function() { - document.body.style.marginLeft = ''; - document.body.style.marginTop = ''; - }, 75); - } - } - if (!rendering) { - requestAnimationFrame(loop); - } - } - ;POWERMODE.colorful = false; - function loop() { - rendering = true; - context.clearRect(0, 0, canvas.width, canvas.height); - var rendered = false; - var rect = canvas.getBoundingClientRect(); - for (var i = 0; i < particles.length; ++i) { - var particle = particles[i]; - if (particle.alpha <= 0.1) - continue; - particle.velocity.y += 0.075; - particle.x += particle.velocity.x; - particle.y += particle.velocity.y; - particle.alpha *= 0.96; - context.globalAlpha = particle.alpha; - context.fillStyle = particle.color; - context.fillRect(Math.round(particle.x - 1.5) - rect.left, Math.round(particle.y - 1.5) - rect.top, 3, 3); - rendered = true; - } - if (rendered) { - requestAnimationFrame(loop); - } else { - rendering = false; - } - } - module.exports = POWERMODE; - } - ), (function(module, exports) { - (function() { - var properties = ['direction', 'boxSizing', 'width', 'height', 'overflowX', 'overflowY', 'borderTopWidth', 'borderRightWidth', 'borderBottomWidth', 'borderLeftWidth', 'borderStyle', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'fontStyle', 'fontVariant', 'fontWeight', 'fontStretch', 'fontSize', 'fontSizeAdjust', 'lineHeight', 'fontFamily', 'textAlign', 'textTransform', 'textIndent', 'textDecoration', 'letterSpacing', 'wordSpacing', 'tabSize', 'MozTabSize']; - var isFirefox = window.mozInnerScreenX != null; - function getCaretCoordinates(element, position, options) { - var debug = options && options.debug || false; - if (debug) { - var el = document.querySelector('#input-textarea-caret-position-mirror-div'); - if (el) { - el.parentNode.removeChild(el); - } - } - var div = document.createElement('div'); - div.id = 'input-textarea-caret-position-mirror-div'; - document.body.appendChild(div); - var style = div.style; - var computed = window.getComputedStyle ? getComputedStyle(element) : element.currentStyle; - style.whiteSpace = 'pre-wrap'; - if (element.nodeName !== 'INPUT') - style.wordWrap = 'break-word'; - style.position = 'absolute'; - if (!debug) - style.visibility = 'hidden'; - properties.forEach(function(prop) { - style[prop] = computed[prop]; - }); - if (isFirefox) { - if (element.scrollHeight > parseInt(computed.height)) - style.overflowY = 'scroll'; - } else { - style.overflow = 'hidden'; - } - div.textContent = element.value.substring(0, position); - if (element.nodeName === 'INPUT') - div.textContent = div.textContent.replace(/\s/g, "\u00a0"); - var span = document.createElement('span'); - span.textContent = element.value.substring(position) || '.'; - div.appendChild(span); - var coordinates = { - top: span.offsetTop + parseInt(computed['borderTopWidth']), - left: span.offsetLeft + parseInt(computed['borderLeftWidth']) - }; - if (debug) { - span.style.backgroundColor = '#aaa'; - } else { - document.body.removeChild(div); - } - return coordinates; - } - if (typeof module != "undefined" && typeof module.exports != "undefined") { - module.exports = getCaretCoordinates; - } else { - window.getCaretCoordinates = getCaretCoordinates; - } - }()); - } - )]) -}); -;!function(e, t) { - "object" == typeof exports && "object" == typeof module ? module.exports = t() : "function" == typeof define && define.amd ? define("APlayer", [], t) : "object" == typeof exports ? exports.APlayer = t() : e.APlayer = t() -}(window, function() { - return function(e) { - var t = {}; - function n(i) { - if (t[i]) - return t[i].exports; - var a = t[i] = { - i: i, - l: !1, - exports: {} - }; - return e[i].call(a.exports, a, a.exports, n), - a.l = !0, - a.exports - } - return n.m = e, - n.c = t, - n.d = function(e, t, i) { - n.o(e, t) || Object.defineProperty(e, t, { - configurable: !1, - enumerable: !0, - get: i - }) - } - , - n.r = function(e) { - Object.defineProperty(e, "__esModule", { - value: !0 - }) - } - , - n.n = function(e) { - var t = e && e.__esModule ? function() { - return e.default - } - : function() { - return e - } - ; - return n.d(t, "a", t), - t - } - , - n.o = function(e, t) { - return Object.prototype.hasOwnProperty.call(e, t) - } - , - n.p = "/", - n(n.s = 41) - }([function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = /mobile/i.test(window.navigator.userAgent) - , a = { - secondToTime: function(e) { - var t = Math.floor(e / 3600) - , n = Math.floor((e - 3600 * t) / 60) - , i = Math.floor(e - 3600 * t - 60 * n); - return (t > 0 ? [t, n, i] : [n, i]).map(function(e) { - return e < 10 ? "0" + e : "" + e - }).join(":") - }, - getElementViewLeft: function(e) { - var t = e.offsetLeft - , n = e.offsetParent - , i = document.body.scrollLeft + document.documentElement.scrollLeft; - if (document.fullscreenElement || document.mozFullScreenElement || document.webkitFullscreenElement) - for (; null !== n && n !== e; ) - t += n.offsetLeft, - n = n.offsetParent; - else - for (; null !== n; ) - t += n.offsetLeft, - n = n.offsetParent; - return t - i - }, - getElementViewTop: function(e, t) { - for (var n, i = e.offsetTop, a = e.offsetParent; null !== a; ) - i += a.offsetTop, - a = a.offsetParent; - return n = document.body.scrollTop + document.documentElement.scrollTop, - t ? i : i - n - }, - isMobile: i, - storage: { - set: function(e, t) { - localStorage.setItem(e, t) - }, - get: function(e) { - return localStorage.getItem(e) - } - }, - nameMap: { - dragStart: i ? "touchstart" : "mousedown", - dragMove: i ? "touchmove" : "mousemove", - dragEnd: i ? "touchend" : "mouseup" - }, - randomOrder: function(e) { - return function(e) { - for (var t = e.length - 1; t >= 0; t--) { - var n = Math.floor(Math.random() * (t + 1)) - , i = e[n]; - e[n] = e[t], - e[t] = i - } - return e - }([].concat(function(e) { - if (Array.isArray(e)) { - for (var t = 0, n = Array(e.length); t < e.length; t++) - n[t] = e[t]; - return n - } - return Array.from(e) - }(Array(e))).map(function(e, t) { - return t - })) - } - }; - t.default = a - } - , function(e, t, n) { - var i = n(2); - e.exports = function(e) { - "use strict"; - e = e || {}; - var t = "" - , n = i.$each - , a = e.audio - , r = (e.$value, - e.$index, - i.$escape) - , o = e.theme - , s = e.index; - return n(a, function(e, n) { - t += '\n
  • \n \n ', - t += r(n + s), - t += '\n ', - t += r(e.name), - t += '\n ', - t += r(e.artist), - t += "\n
  • \n" - }), - t - } - } - , function(e, t, n) { - "use strict"; - e.exports = n(15) - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = g(n(33)) - , a = g(n(32)) - , r = g(n(31)) - , o = g(n(30)) - , s = g(n(29)) - , l = g(n(28)) - , u = g(n(27)) - , c = g(n(26)) - , p = g(n(25)) - , d = g(n(24)) - , h = g(n(23)) - , y = g(n(22)) - , f = g(n(21)) - , v = g(n(20)) - , m = g(n(19)); - function g(e) { - return e && e.__esModule ? e : { - default: e - } - } - var w = { - play: i.default, - pause: a.default, - volumeUp: r.default, - volumeDown: o.default, - volumeOff: s.default, - orderRandom: l.default, - orderList: u.default, - menu: c.default, - loopAll: p.default, - loopOne: d.default, - loopNone: h.default, - loading: y.default, - right: f.default, - skip: v.default, - lrc: m.default - }; - t.default = w - } - , function(e, t, n) { - "use strict"; - var i, a = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { - return typeof e - } - : function(e) { - return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e - } - ; - i = function() { - return this - }(); - try { - i = i || Function("return this")() || (0, - eval)("this") - } catch (e) { - "object" === ("undefined" == typeof window ? "undefined" : a(window)) && (i = window) - } - e.exports = i - } - , function(e, t, n) { - "use strict"; - var i, a, r = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { - return typeof e - } - : function(e) { - return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e - } - ; - void 0 === (a = "function" == typeof (i = function() { - if ("object" === ("undefined" == typeof window ? "undefined" : r(window)) && void 0 !== document.querySelectorAll && void 0 !== window.pageYOffset && void 0 !== history.pushState) { - var e = function(e, t, n, i) { - return n > i ? t : e + (t - e) * ((a = n / i) < .5 ? 4 * a * a * a : (a - 1) * (2 * a - 2) * (2 * a - 2) + 1); - var a - } - , t = function(t, n, i, a) { - n = n || 500; - var r = (a = a || window).scrollTop || window.pageYOffset; - if ("number" == typeof t) - var o = parseInt(t); - else - var o = function(e, t) { - return "HTML" === e.nodeName ? -t : e.getBoundingClientRect().top + t - }(t, r); - var s = Date.now() - , l = window.requestAnimationFrame || window.mozRequestAnimationFrame || window.webkitRequestAnimationFrame || function(e) { - window.setTimeout(e, 15) - } - ; - !function u() { - var c = Date.now() - s; - a !== window ? a.scrollTop = e(r, o, c, n) : window.scroll(0, e(r, o, c, n)), - c > n ? "function" == typeof i && i(t) : l(u) - }() - } - , n = function(e) { - if (!e.defaultPrevented) { - e.preventDefault(), - location.hash !== this.hash && window.history.pushState(null, null, this.hash); - var n = document.getElementById(this.hash.substring(1)); - if (!n) - return; - t(n, 500, function(e) { - location.replace("#" + e.id) - }) - } - }; - return document.addEventListener("DOMContentLoaded", function() { - for (var e, t = document.querySelectorAll('a[href^="#"]:not([href="#"])'), i = t.length; e = t[--i]; ) - e.addEventListener("click", n, !1) - }), - t - } - } - ) ? i.call(t, n, t, e) : i) || (e.exports = a) - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var i = t[n]; - i.enumerable = i.enumerable || !1, - i.configurable = !0, - "value"in i && (i.writable = !0), - Object.defineProperty(e, i.key, i) - } - } - return function(t, n, i) { - return n && e(t.prototype, n), - i && e(t, i), - t - } - }() - , a = s(n(1)) - , r = s(n(0)) - , o = s(n(5)); - function s(e) { - return e && e.__esModule ? e : { - default: e - } - } - var l = function() { - function e(t) { - !function(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function") - }(this, e), - this.player = t, - this.index = 0, - this.audios = this.player.options.audio, - this.bindEvents() - } - return i(e, [{ - key: "bindEvents", - value: function() { - var e = this; - this.player.template.list.addEventListener("click", function(t) { - var n = void 0; - n = "LI" === t.target.tagName.toUpperCase() ? t.target : t.target.parentElement; - var i = parseInt(n.getElementsByClassName("aplayer-list-index")[0].innerHTML) - 1; - i !== e.index ? (e.switch(i), - e.player.play()) : e.player.toggle() - }) - } - }, { - key: "show", - value: function() { - this.player.events.trigger("listshow"), - this.player.template.list.classList.remove("aplayer-list-hide"), - this.player.template.listOl.scrollTop = 33 * this.index - } - }, { - key: "hide", - value: function() { - this.player.events.trigger("listhide"), - this.player.template.list.classList.add("aplayer-list-hide") - } - }, { - key: "toggle", - value: function() { - this.player.template.list.classList.contains("aplayer-list-hide") ? this.show() : this.hide() - } - }, { - key: "add", - value: function(e) { - this.player.events.trigger("listadd", { - audios: e - }), - "[object Array]" !== Object.prototype.toString.call(e) && (e = [e]), - e.map(function(e) { - return e.name = e.name || e.title || "Audio name", - e.artist = e.artist || e.author || "Audio artist", - e.cover = e.cover || e.pic, - e.type = e.type || "normal", - e - }); - var t = !(this.audios.length > 1) - , n = 0 === this.audios.length; - this.player.template.listOl.innerHTML += (0, - a.default)({ - theme: this.player.options.theme, - audio: e, - index: this.audios.length + 1 - }), - this.audios = this.audios.concat(e), - t && this.audios.length > 1 && this.player.container.classList.add("aplayer-withlist"), - this.player.randomOrder = r.default.randomOrder(this.audios.length), - this.player.template.listCurs = this.player.container.querySelectorAll(".aplayer-list-cur"), - this.player.template.listCurs[this.audios.length - 1].style.backgroundColor = e.theme || this.player.options.theme, - n && ("random" === this.player.options.order ? this.switch(this.player.randomOrder[0]) : this.switch(0)) - } - }, { - key: "remove", - value: function(e) { - if (this.player.events.trigger("listremove", { - index: e - }), - this.audios[e]) - if (this.audios.length > 1) { - var t = this.player.container.querySelectorAll(".aplayer-list li"); - t[e].remove(), - this.audios.splice(e, 1), - this.player.lrc && this.player.lrc.remove(e), - e === this.index && (this.audios[e] ? this.switch(e) : this.switch(e - 1)), - this.index > e && this.index--; - for (var n = e; n < t.length; n++) - t[n].getElementsByClassName("aplayer-list-index")[0].textContent = n; - 1 === this.audios.length && this.player.container.classList.remove("aplayer-withlist"), - this.player.template.listCurs = this.player.container.querySelectorAll(".aplayer-list-cur") - } else - this.clear() - } - }, { - key: "switch", - value: function(e) { - if (this.player.events.trigger("listswitch", { - index: e - }), - void 0 !== e && this.audios[e]) { - this.index = e; - var t = this.audios[this.index]; - this.player.template.pic.style.backgroundImage = t.cover ? "url('" + t.cover + "')" : "", - this.player.theme(this.audios[this.index].theme || this.player.options.theme, this.index, !1), - this.player.template.title.innerHTML = t.name, - this.player.template.author.innerHTML = t.artist ? " - " + t.artist : ""; - var n = this.player.container.getElementsByClassName("aplayer-list-light")[0]; - n && n.classList.remove("aplayer-list-light"), - this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"), - (0, - o.default)(33 * this.index, 500, null, this.player.template.listOl), - this.player.setAudio(t), - this.player.lrc && this.player.lrc.switch(this.index), - this.player.lrc && this.player.lrc.update(0), - 1 !== this.player.duration && (this.player.template.dtime.innerHTML = r.default.secondToTime(this.player.duration)) - } - } - }, { - key: "clear", - value: function() { - this.player.events.trigger("listclear"), - this.index = 0, - this.player.container.classList.remove("aplayer-withlist"), - this.player.pause(), - this.audios = [], - this.player.lrc && this.player.lrc.clear(), - this.player.audio.src = "", - this.player.template.listOl.innerHTML = "", - this.player.template.pic.style.backgroundImage = "", - this.player.theme(this.player.options.theme, this.index, !1), - this.player.template.title.innerHTML = "No audio", - this.player.template.author.innerHTML = "", - this.player.bar.set("loaded", 0, "width"), - this.player.template.dtime.innerHTML = r.default.secondToTime(0) - } - }]), - e - }(); - t.default = l - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var i = t[n]; - i.enumerable = i.enumerable || !1, - i.configurable = !0, - "value"in i && (i.writable = !0), - Object.defineProperty(e, i.key, i) - } - } - return function(t, n, i) { - return n && e(t.prototype, n), - i && e(t, i), - t - } - }(); - var a = function() { - function e() { - !function(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function") - }(this, e), - this.events = {}, - this.audioEvents = ["abort", "canplay", "canplaythrough", "durationchange", "emptied", "ended", "error", "loadeddata", "loadedmetadata", "loadstart", "mozaudioavailable", "pause", "play", "playing", "progress", "ratechange", "seeked", "seeking", "stalled", "suspend", "timeupdate", "volumechange", "waiting"], - this.playerEvents = ["destroy", "listshow", "listhide", "listadd", "listremove", "listswitch", "listclear", "noticeshow", "noticehide", "lrcshow", "lrchide"] - } - return i(e, [{ - key: "on", - value: function(e, t) { - this.type(e) && "function" == typeof t && (this.events[e] || (this.events[e] = []), - this.events[e].push(t)) - } - }, { - key: "trigger", - value: function(e, t) { - if (this.events[e] && this.events[e].length) - for (var n = 0; n < this.events[e].length; n++) - this.events[e][n](t) - } - }, { - key: "type", - value: function(e) { - return -1 !== this.playerEvents.indexOf(e) ? "player" : -1 !== this.audioEvents.indexOf(e) ? "audio" : (console.error("Unknown event name: " + e), - null) - } - }]), - e - }(); - t.default = a - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var i = t[n]; - i.enumerable = i.enumerable || !1, - i.configurable = !0, - "value"in i && (i.writable = !0), - Object.defineProperty(e, i.key, i) - } - } - return function(t, n, i) { - return n && e(t.prototype, n), - i && e(t, i), - t - } - }(); - var a = function() { - function e(t) { - !function(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function") - }(this, e), - this.player = t, - window.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) { - window.setTimeout(e, 1e3 / 60) - } - , - this.types = ["loading"], - this.init() - } - return i(e, [{ - key: "init", - value: function() { - var e = this; - this.types.forEach(function(t) { - e["init" + t + "Checker"]() - }) - } - }, { - key: "initloadingChecker", - value: function() { - var e = this - , t = 0 - , n = 0 - , i = !1; - this.loadingChecker = setInterval(function() { - e.enableloadingChecker && (n = e.player.audio.currentTime, - i || n !== t || e.player.audio.paused || (e.player.container.classList.add("aplayer-loading"), - i = !0), - i && n > t && !e.player.audio.paused && (e.player.container.classList.remove("aplayer-loading"), - i = !1), - t = n) - }, 100) - } - }, { - key: "enable", - value: function(e) { - this["enable" + e + "Checker"] = !0, - "fps" === e && this.initfpsChecker() - } - }, { - key: "disable", - value: function(e) { - this["enable" + e + "Checker"] = !1 - } - }, { - key: "destroy", - value: function() { - var e = this; - this.types.forEach(function(t) { - e["enable" + t + "Checker"] = !1, - e[t + "Checker"] && clearInterval(e[t + "Checker"]) - }) - } - }]), - e - }(); - t.default = a - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var i = t[n]; - i.enumerable = i.enumerable || !1, - i.configurable = !0, - "value"in i && (i.writable = !0), - Object.defineProperty(e, i.key, i) - } - } - return function(t, n, i) { - return n && e(t.prototype, n), - i && e(t, i), - t - } - }() - , a = o(n(0)) - , r = o(n(3)); - function o(e) { - return e && e.__esModule ? e : { - default: e - } - } - var s = function() { - function e(t) { - !function(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function") - }(this, e), - this.player = t, - this.initPlayButton(), - this.initPlayBar(), - this.initOrderButton(), - this.initLoopButton(), - this.initMenuButton(), - a.default.isMobile || this.initVolumeButton(), - this.initMiniSwitcher(), - this.initSkipButton(), - this.initLrcButton() - } - return i(e, [{ - key: "initPlayButton", - value: function() { - var e = this; - this.player.template.pic.addEventListener("click", function() { - e.player.toggle() - }) - } - }, { - key: "initPlayBar", - value: function() { - var e = this - , t = function(t) { - var n = ((t.clientX || t.changedTouches[0].clientX) - a.default.getElementViewLeft(e.player.template.barWrap)) / e.player.template.barWrap.clientWidth; - n = Math.max(n, 0), - n = Math.min(n, 1), - e.player.bar.set("played", n, "width"), - e.player.lrc && e.player.lrc.update(n * e.player.duration), - e.player.template.ptime.innerHTML = a.default.secondToTime(n * e.player.duration) - } - , n = function n(i) { - document.removeEventListener(a.default.nameMap.dragEnd, n), - document.removeEventListener(a.default.nameMap.dragMove, t); - var r = ((i.clientX || i.changedTouches[0].clientX) - a.default.getElementViewLeft(e.player.template.barWrap)) / e.player.template.barWrap.clientWidth; - r = Math.max(r, 0), - r = Math.min(r, 1), - e.player.bar.set("played", r, "width"), - e.player.seek(e.player.bar.get("played", "width") * e.player.duration), - e.player.disableTimeupdate = !1 - }; - this.player.template.barWrap.addEventListener(a.default.nameMap.dragStart, function() { - e.player.disableTimeupdate = !0, - document.addEventListener(a.default.nameMap.dragMove, t), - document.addEventListener(a.default.nameMap.dragEnd, n) - }) - } - }, { - key: "initVolumeButton", - value: function() { - var e = this; - this.player.template.volumeButton.addEventListener("click", function() { - e.player.audio.muted ? (e.player.audio.muted = !1, - e.player.switchVolumeIcon(), - e.player.bar.set("volume", e.player.volume(), "height")) : (e.player.audio.muted = !0, - e.player.switchVolumeIcon(), - e.player.bar.set("volume", 0, "height")) - }); - var t = function(t) { - var n = 1 - ((t.clientY || t.changedTouches[0].clientY) - a.default.getElementViewTop(e.player.template.volumeBar, e.player.options.fixed)) / e.player.template.volumeBar.clientHeight; - n = Math.max(n, 0), - n = Math.min(n, 1), - e.player.volume(n) - } - , n = function n(i) { - e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"), - document.removeEventListener(a.default.nameMap.dragEnd, n), - document.removeEventListener(a.default.nameMap.dragMove, t); - var r = 1 - ((i.clientY || i.changedTouches[0].clientY) - a.default.getElementViewTop(e.player.template.volumeBar, e.player.options.fixed)) / e.player.template.volumeBar.clientHeight; - r = Math.max(r, 0), - r = Math.min(r, 1), - e.player.volume(r) - }; - this.player.template.volumeBarWrap.addEventListener(a.default.nameMap.dragStart, function() { - e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"), - document.addEventListener(a.default.nameMap.dragMove, t), - document.addEventListener(a.default.nameMap.dragEnd, n) - }) - } - }, { - key: "initOrderButton", - value: function() { - var e = this; - this.player.template.order.addEventListener("click", function() { - "list" === e.player.options.order ? (e.player.options.order = "random", - e.player.template.order.innerHTML = r.default.orderRandom) : "random" === e.player.options.order && (e.player.options.order = "list", - e.player.template.order.innerHTML = r.default.orderList) - }) - } - }, { - key: "initLoopButton", - value: function() { - var e = this; - this.player.template.loop.addEventListener("click", function() { - e.player.list.audios.length > 1 ? "one" === e.player.options.loop ? (e.player.options.loop = "none", - e.player.template.loop.innerHTML = r.default.loopNone) : "none" === e.player.options.loop ? (e.player.options.loop = "all", - e.player.template.loop.innerHTML = r.default.loopAll) : "all" === e.player.options.loop && (e.player.options.loop = "one", - e.player.template.loop.innerHTML = r.default.loopOne) : "one" === e.player.options.loop || "all" === e.player.options.loop ? (e.player.options.loop = "none", - e.player.template.loop.innerHTML = r.default.loopNone) : "none" === e.player.options.loop && (e.player.options.loop = "all", - e.player.template.loop.innerHTML = r.default.loopAll) - }) - } - }, { - key: "initMenuButton", - value: function() { - var e = this; - this.player.template.menu.addEventListener("click", function() { - e.player.list.toggle() - }) - } - }, { - key: "initMiniSwitcher", - value: function() { - var e = this; - this.player.template.miniSwitcher.addEventListener("click", function() { - e.player.setMode("mini" === e.player.mode ? "normal" : "mini") - }) - } - }, { - key: "initSkipButton", - value: function() { - var e = this; - this.player.template.skipBackButton.addEventListener("click", function() { - e.player.skipBack() - }), - this.player.template.skipForwardButton.addEventListener("click", function() { - e.player.skipForward() - }), - this.player.template.skipPlayButton.addEventListener("click", function() { - e.player.toggle() - }) - } - }, { - key: "initLrcButton", - value: function() { - var e = this; - this.player.template.lrcButton.addEventListener("click", function() { - e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity") ? (e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"), - e.player.lrc && e.player.lrc.show()) : (e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"), - e.player.lrc && e.player.lrc.hide()) - }) - } - }]), - e - }(); - t.default = s - } - , function(e, t, n) { - var i = n(2); - e.exports = function(e) { - "use strict"; - e = e || {}; - var t = "" - , n = i.$each - , a = e.lyrics - , r = (e.$value, - e.$index, - i.$escape); - return n(a, function(e, n) { - t += "\n 0 && void 0 !== arguments[0] ? arguments[0] : this.player.audio.currentTime; - if (this.index > this.current.length - 1 || e < this.current[this.index][0] || !this.current[this.index + 1] || e >= this.current[this.index + 1][0]) - for (var t = 0; t < this.current.length; t++) - e >= this.current[t][0] && (!this.current[t + 1] || e < this.current[t + 1][0]) && (this.index = t, - this.container.style.transform = "translateY(" + 16 * -this.index + "px)", - this.container.style.webkitTransform = "translateY(" + 16 * -this.index + "px)", - this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"), - this.container.getElementsByTagName("p")[t].classList.add("aplayer-lrc-current")) - } - }, { - key: "switch", - value: function(e) { - var t = this; - if (!this.parsed[e]) - if (this.async) { - this.parsed[e] = [["00:00", "Loading"]]; - var n = new XMLHttpRequest; - n.onreadystatechange = function() { - e === t.player.list.index && 4 === n.readyState && (n.status >= 200 && n.status < 300 || 304 === n.status ? t.parsed[e] = t.parse(n.responseText) : (t.player.notice("LRC file request fails: status " + n.status), - t.parsed[e] = [["00:00", "Not available"]]), - t.container.innerHTML = (0, - o.default)({ - lyrics: t.parsed[e] - }), - t.update(0), - t.current = t.parsed[e]) - } - ; - var i = this.player.list.audios[e].lrc; - n.open("get", i, !0), - n.send(null) - } else - this.player.list.audios[e].lrc ? this.parsed[e] = this.parse(this.player.list.audios[e].lrc) : this.parsed[e] = [["00:00", "Not available"]]; - this.container.innerHTML = (0, - o.default)({ - lyrics: this.parsed[e] - }), - this.update(0), - this.current = this.parsed[e] - } - }, { - key: "parse", - value: function(e) { - if (e) { - for (var t = (e = e.replace(/([^\]^\n])\[/g, function(e, t) { - return t + "\n[" - })).split("\n"), n = [], i = t.length, a = 0; a < i; a++) { - var r = t[a].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g) - , o = t[a].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g, "").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g, "").replace(/^\s+|\s+$/g, ""); - if (r) - for (var s = r.length, l = 0; l < s; l++) { - var u = /\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(r[l]) - , c = 60 * u[1] + parseInt(u[2]) + (u[4] ? parseInt(u[4]) / (2 === (u[4] + "").length ? 100 : 1e3) : 0); - n.push([c, o]) - } - } - return (n = n.filter(function(e) { - return e[1] - })).sort(function(e, t) { - return e[0] - t[0] - }), - n - } - return [] - } - }, { - key: "remove", - value: function(e) { - this.parsed.splice(e, 1) - } - }, { - key: "clear", - value: function() { - this.parsed = [], - this.container.innerHTML = "" - } - }]), - e - }(); - t.default = s - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i, a = function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var i = t[n]; - i.enumerable = i.enumerable || !1, - i.configurable = !0, - "value"in i && (i.writable = !0), - Object.defineProperty(e, i.key, i) - } - } - return function(t, n, i) { - return n && e(t.prototype, n), - i && e(t, i), - t - } - }(), r = n(0), o = (i = r) && i.__esModule ? i : { - default: i - }; - var s = function() { - function e(t) { - !function(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function") - }(this, e), - this.storageName = t.options.storageName, - this.data = JSON.parse(o.default.storage.get(this.storageName)), - this.data || (this.data = {}), - this.data.volume = this.data.volume || t.options.volume - } - return a(e, [{ - key: "get", - value: function(e) { - return this.data[e] - } - }, { - key: "set", - value: function(e, t) { - this.data[e] = t, - o.default.storage.set(this.storageName, JSON.stringify(this.data)) - } - }]), - e - }(); - t.default = s - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var i = t[n]; - i.enumerable = i.enumerable || !1, - i.configurable = !0, - "value"in i && (i.writable = !0), - Object.defineProperty(e, i.key, i) - } - } - return function(t, n, i) { - return n && e(t.prototype, n), - i && e(t, i), - t - } - }(); - var a = function() { - function e(t) { - !function(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function") - }(this, e), - this.elements = {}, - this.elements.volume = t.volume, - this.elements.played = t.played, - this.elements.loaded = t.loaded - } - return i(e, [{ - key: "set", - value: function(e, t, n) { - t = Math.max(t, 0), - t = Math.min(t, 1), - this.elements[e].style[n] = 100 * t + "%" - } - }, { - key: "get", - value: function(e, t) { - return parseFloat(this.elements[e].style[t]) / 100 - } - }]), - e - }(); - t.default = a - } - , function(e, t, n) { - "use strict"; - (function(t) { - e.exports = !1; - try { - e.exports = "[object process]" === Object.prototype.toString.call(t.process) - } catch (e) {} - } - ).call(this, n(4)) - } - , function(e, t, n) { - "use strict"; - (function(t) { - var i = n(14) - , a = Object.create(i ? t : window) - , r = /["&'<>]/; - a.$escape = function(e) { - return function(e) { - var t = "" + e - , n = r.exec(t); - if (!n) - return e; - var i = "" - , a = void 0 - , o = void 0 - , s = void 0; - for (a = n.index, - o = 0; a < t.length; a++) { - switch (t.charCodeAt(a)) { - case 34: - s = """; - break; - case 38: - s = "&"; - break; - case 39: - s = "'"; - break; - case 60: - s = "<"; - break; - case 62: - s = ">"; - break; - default: - continue - } - o !== a && (i += t.substring(o, a)), - o = a + 1, - i += s - } - return o !== a ? i + t.substring(o, a) : i - }(function e(t) { - "string" != typeof t && (t = void 0 === t || null === t ? "" : "function" == typeof t ? e(t.call(t)) : JSON.stringify(t)); - return t - }(e)) - } - , - a.$each = function(e, t) { - if (Array.isArray(e)) - for (var n = 0, i = e.length; n < i; n++) - t(e[n], n); - else - for (var a in e) - t(e[a], a) - } - , - e.exports = a - } - ).call(this, n(4)) - } - , function(e, t, n) { - var i = n(2); - e.exports = function(e) { - "use strict"; - var t = "" - , a = (e = e || {}).options - , r = e.cover - , o = i.$escape - , s = e.icons - , l = (arguments[1], - function(e) { - return t += e - } - ) - , u = e.getObject; - e.theme, - e.audio, - e.index; - return a.fixed ? (t += '\n
    1) - for (var n = 1; n < arguments.length; n++) - t[n - 1] = arguments[n]; - c.push(new f(e,t)), - 1 !== c.length || p || l(y) - } - , - f.prototype.run = function() { - this.fun.apply(null, this.array) - } - , - r.title = "browser", - r.browser = !0, - r.env = {}, - r.argv = [], - r.version = "", - r.versions = {}, - r.on = v, - r.addListener = v, - r.once = v, - r.off = v, - r.removeListener = v, - r.removeAllListeners = v, - r.emit = v, - r.prependListener = v, - r.prependOnceListener = v, - r.listeners = function(e) { - return [] - } - , - r.binding = function(e) { - throw new Error("process.binding is not supported") - } - , - r.cwd = function() { - return "/" - } - , - r.chdir = function(e) { - throw new Error("process.chdir is not supported") - } - , - r.umask = function() { - return 0 - } - } - , function(e, t, n) { - "use strict"; - (function(e, t) { - !function(e, n) { - if (!e.setImmediate) { - var i, a, r, o, s, l = 1, u = {}, c = !1, p = e.document, d = Object.getPrototypeOf && Object.getPrototypeOf(e); - d = d && d.setTimeout ? d : e, - "[object process]" === {}.toString.call(e.process) ? i = function(e) { - t.nextTick(function() { - y(e) - }) - } - : !function() { - if (e.postMessage && !e.importScripts) { - var t = !0 - , n = e.onmessage; - return e.onmessage = function() { - t = !1 - } - , - e.postMessage("", "*"), - e.onmessage = n, - t - } - }() ? e.MessageChannel ? ((r = new MessageChannel).port1.onmessage = function(e) { - y(e.data) - } - , - i = function(e) { - r.port2.postMessage(e) - } - ) : p && "onreadystatechange"in p.createElement("script") ? (a = p.documentElement, - i = function(e) { - var t = p.createElement("script"); - t.onreadystatechange = function() { - y(e), - t.onreadystatechange = null, - a.removeChild(t), - t = null - } - , - a.appendChild(t) - } - ) : i = function(e) { - setTimeout(y, 0, e) - } - : (o = "setImmediate$" + Math.random() + "$", - s = function(t) { - t.source === e && "string" == typeof t.data && 0 === t.data.indexOf(o) && y(+t.data.slice(o.length)) - } - , - e.addEventListener ? e.addEventListener("message", s, !1) : e.attachEvent("onmessage", s), - i = function(t) { - e.postMessage(o + t, "*") - } - ), - d.setImmediate = function(e) { - "function" != typeof e && (e = new Function("" + e)); - for (var t = new Array(arguments.length - 1), n = 0; n < t.length; n++) - t[n] = arguments[n + 1]; - var a = { - callback: e, - args: t - }; - return u[l] = a, - i(l), - l++ - } - , - d.clearImmediate = h - } - function h(e) { - delete u[e] - } - function y(e) { - if (c) - setTimeout(y, 0, e); - else { - var t = u[e]; - if (t) { - c = !0; - try { - !function(e) { - var t = e.callback - , i = e.args; - switch (i.length) { - case 0: - t(); - break; - case 1: - t(i[0]); - break; - case 2: - t(i[0], i[1]); - break; - case 3: - t(i[0], i[1], i[2]); - break; - default: - t.apply(n, i) - } - }(t) - } finally { - h(e), - c = !1 - } - } - } - } - }("undefined" == typeof self ? void 0 === e ? void 0 : e : self) - } - ).call(this, n(4), n(34)) - } - , function(e, t, n) { - "use strict"; - var i = Function.prototype.apply; - function a(e, t) { - this._id = e, - this._clearFn = t - } - t.setTimeout = function() { - return new a(i.call(setTimeout, window, arguments),clearTimeout) - } - , - t.setInterval = function() { - return new a(i.call(setInterval, window, arguments),clearInterval) - } - , - t.clearTimeout = t.clearInterval = function(e) { - e && e.close() - } - , - a.prototype.unref = a.prototype.ref = function() {} - , - a.prototype.close = function() { - this._clearFn.call(window, this._id) - } - , - t.enroll = function(e, t) { - clearTimeout(e._idleTimeoutId), - e._idleTimeout = t - } - , - t.unenroll = function(e) { - clearTimeout(e._idleTimeoutId), - e._idleTimeout = -1 - } - , - t._unrefActive = t.active = function(e) { - clearTimeout(e._idleTimeoutId); - var t = e._idleTimeout; - t >= 0 && (e._idleTimeoutId = setTimeout(function() { - e._onTimeout && e._onTimeout() - }, t)) - } - , - n(35), - t.setImmediate = setImmediate, - t.clearImmediate = clearImmediate - } - , function(e, t, n) { - "use strict"; - (function(t) { - var n = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { - return typeof e - } - : function(e) { - return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e - } - , i = setTimeout; - function a() {} - function r(e) { - if (!(this instanceof r)) - throw new TypeError("Promises must be constructed via new"); - if ("function" != typeof e) - throw new TypeError("not a function"); - this._state = 0, - this._handled = !1, - this._value = void 0, - this._deferreds = [], - c(e, this) - } - function o(e, t) { - for (; 3 === e._state; ) - e = e._value; - 0 !== e._state ? (e._handled = !0, - r._immediateFn(function() { - var n = 1 === e._state ? t.onFulfilled : t.onRejected; - if (null !== n) { - var i; - try { - i = n(e._value) - } catch (e) { - return void l(t.promise, e) - } - s(t.promise, i) - } else - (1 === e._state ? s : l)(t.promise, e._value) - })) : e._deferreds.push(t) - } - function s(e, t) { - try { - if (t === e) - throw new TypeError("A promise cannot be resolved with itself."); - if (t && ("object" === (void 0 === t ? "undefined" : n(t)) || "function" == typeof t)) { - var i = t.then; - if (t instanceof r) - return e._state = 3, - e._value = t, - void u(e); - if ("function" == typeof i) - return void c((a = i, - o = t, - function() { - a.apply(o, arguments) - } - ), e) - } - e._state = 1, - e._value = t, - u(e) - } catch (t) { - l(e, t) - } - var a, o - } - function l(e, t) { - e._state = 2, - e._value = t, - u(e) - } - function u(e) { - 2 === e._state && 0 === e._deferreds.length && r._immediateFn(function() { - e._handled || r._unhandledRejectionFn(e._value) - }); - for (var t = 0, n = e._deferreds.length; t < n; t++) - o(e, e._deferreds[t]); - e._deferreds = null - } - function c(e, t) { - var n = !1; - try { - e(function(e) { - n || (n = !0, - s(t, e)) - }, function(e) { - n || (n = !0, - l(t, e)) - }) - } catch (e) { - if (n) - return; - n = !0, - l(t, e) - } - } - r.prototype.catch = function(e) { - return this.then(null, e) - } - , - r.prototype.then = function(e, t) { - var n = new this.constructor(a); - return o(this, new function(e, t, n) { - this.onFulfilled = "function" == typeof e ? e : null, - this.onRejected = "function" == typeof t ? t : null, - this.promise = n - } - (e,t,n)), - n - } - , - r.prototype.finally = function(e) { - var t = this.constructor; - return this.then(function(n) { - return t.resolve(e()).then(function() { - return n - }) - }, function(n) { - return t.resolve(e()).then(function() { - return t.reject(n) - }) - }) - } - , - r.all = function(e) { - return new r(function(t, i) { - if (!e || void 0 === e.length) - throw new TypeError("Promise.all accepts an array"); - var a = Array.prototype.slice.call(e); - if (0 === a.length) - return t([]); - var r = a.length; - function o(e, s) { - try { - if (s && ("object" === (void 0 === s ? "undefined" : n(s)) || "function" == typeof s)) { - var l = s.then; - if ("function" == typeof l) - return void l.call(s, function(t) { - o(e, t) - }, i) - } - a[e] = s, - 0 == --r && t(a) - } catch (e) { - i(e) - } - } - for (var s = 0; s < a.length; s++) - o(s, a[s]) - } - ) - } - , - r.resolve = function(e) { - return e && "object" === (void 0 === e ? "undefined" : n(e)) && e.constructor === r ? e : new r(function(t) { - t(e) - } - ) - } - , - r.reject = function(e) { - return new r(function(t, n) { - n(e) - } - ) - } - , - r.race = function(e) { - return new r(function(t, n) { - for (var i = 0, a = e.length; i < a; i++) - e[i].then(t, n) - } - ) - } - , - r._immediateFn = "function" == typeof t && function(e) { - t(e) - } - || function(e) { - i(e, 0) - } - , - r._unhandledRejectionFn = function(e) { - "undefined" != typeof console && console && console.warn("Possible Unhandled Promise Rejection:", e) - } - , - e.exports = r - } - ).call(this, n(36).setImmediate) - } - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }); - var i = function() { - function e(e, t) { - for (var n = 0; n < t.length; n++) { - var i = t[n]; - i.enumerable = i.enumerable || !1, - i.configurable = !0, - "value"in i && (i.writable = !0), - Object.defineProperty(e, i.key, i) - } - } - return function(t, n, i) { - return n && e(t.prototype, n), - i && e(t, i), - t - } - }() - , a = v(n(37)) - , r = v(n(0)) - , o = v(n(3)) - , s = v(n(18)) - , l = v(n(17)) - , u = v(n(13)) - , c = v(n(12)) - , p = v(n(11)) - , d = v(n(9)) - , h = v(n(8)) - , y = v(n(7)) - , f = v(n(6)); - function v(e) { - return e && e.__esModule ? e : { - default: e - } - } - var m = [] - , g = function() { - function e(t) { - if (function(e, t) { - if (!(e instanceof t)) - throw new TypeError("Cannot call a class as a function") - }(this, e), - this.options = (0, - s.default)(t), - this.container = this.options.container, - this.paused = !0, - this.playedPromise = a.default.resolve(), - this.mode = "normal", - this.randomOrder = r.default.randomOrder(this.options.audio.length), - this.container.classList.add("aplayer"), - this.options.lrcType && !this.options.fixed && this.container.classList.add("aplayer-withlrc"), - this.options.audio.length > 1 && this.container.classList.add("aplayer-withlist"), - r.default.isMobile && this.container.classList.add("aplayer-mobile"), - this.arrow = this.container.offsetWidth <= 300, - this.arrow && this.container.classList.add("aplayer-arrow"), - this.container = this.options.container, - 2 === this.options.lrcType || !0 === this.options.lrcType) - for (var n = this.container.getElementsByClassName("aplayer-lrc-content"), i = 0; i < n.length; i++) - this.options.audio[i] && (this.options.audio[i].lrc = n[i].innerHTML); - this.template = new l.default({ - container: this.container, - options: this.options, - randomOrder: this.randomOrder - }), - this.options.fixed && (this.container.classList.add("aplayer-fixed"), - this.template.body.style.width = this.template.body.offsetWidth - 18 + "px"), - this.options.mini && (this.setMode("mini"), - this.template.info.style.display = "block"), - this.template.info.offsetWidth < 200 && this.template.time.classList.add("aplayer-time-narrow"), - this.options.lrcType && (this.lrc = new p.default({ - container: this.template.lrc, - async: 3 === this.options.lrcType, - player: this - })), - this.events = new y.default, - this.storage = new c.default(this), - this.bar = new u.default(this.template), - this.controller = new d.default(this), - this.timer = new h.default(this), - this.list = new f.default(this), - this.initAudio(), - this.bindEvents(), - "random" === this.options.order ? this.list.switch(this.randomOrder[0]) : this.list.switch(0), - this.options.autoplay && this.play(), - m.push(this) - } - return i(e, [{ - key: "initAudio", - value: function() { - var e = this; - this.audio = document.createElement("audio"), - this.audio.preload = this.options.preload; - for (var t = function(t) { - e.audio.addEventListener(e.events.audioEvents[t], function(n) { - e.events.trigger(e.events.audioEvents[t], n) - }) - }, n = 0; n < this.events.audioEvents.length; n++) - t(n); - this.volume(this.storage.get("volume"), !0) - } - }, { - key: "bindEvents", - value: function() { - var e = this; - this.on("play", function() { - e.paused && e.setUIPlaying() - }), - this.on("pause", function() { - e.paused || e.setUIPaused() - }), - this.on("timeupdate", function() { - if (!e.disableTimeupdate) { - e.bar.set("played", e.audio.currentTime / e.duration, "width"), - e.lrc && e.lrc.update(); - var t = r.default.secondToTime(e.audio.currentTime); - e.template.ptime.innerHTML !== t && (e.template.ptime.innerHTML = t) - } - }), - this.on("durationchange", function() { - 1 !== e.duration && (e.template.dtime.innerHTML = r.default.secondToTime(e.duration)) - }), - this.on("progress", function() { - var t = e.audio.buffered.length ? e.audio.buffered.end(e.audio.buffered.length - 1) / e.duration : 0; - e.bar.set("loaded", t, "width") - }); - var t = void 0; - this.on("error", function() { - e.list.audios.length > 1 ? (e.notice("An audio error has occurred, player will skip forward in 2 seconds."), - t = setTimeout(function() { - e.skipForward(), - e.paused || e.play() - }, 2e3)) : 1 === e.list.audios.length && e.notice("An audio error has occurred.") - }), - this.events.on("listswitch", function() { - t && clearTimeout(t) - }), - this.on("ended", function() { - "none" === e.options.loop ? "list" === e.options.order ? e.list.index < e.list.audios.length - 1 ? (e.list.switch((e.list.index + 1) % e.list.audios.length), - e.play()) : (e.list.switch((e.list.index + 1) % e.list.audios.length), - e.pause()) : "random" === e.options.order && (e.randomOrder.indexOf(e.list.index) < e.randomOrder.length - 1 ? (e.list.switch(e.nextIndex()), - e.play()) : (e.list.switch(e.nextIndex()), - e.pause())) : "one" === e.options.loop ? (e.list.switch(e.list.index), - e.play()) : "all" === e.options.loop && (e.skipForward(), - e.play()) - }) - } - }, { - key: "setAudio", - value: function(e) { - this.hls && (this.hls.destroy(), - this.hls = null); - var t = e.type; - this.options.customAudioType && this.options.customAudioType[t] ? "[object Function]" === Object.prototype.toString.call(this.options.customAudioType[t]) ? this.options.customAudioType[t](this.audio, e, this) : console.error("Illegal customType: " + t) : (t && "auto" !== t || (t = /m3u8(#|\?|$)/i.exec(e.url) ? "hls" : "normal"), - "hls" === t ? Hls.isSupported() ? (this.hls = new Hls, - this.hls.loadSource(e.url), - this.hls.attachMedia(this.audio)) : this.audio.canPlayType("application/x-mpegURL") || this.audio.canPlayType("application/vnd.apple.mpegURL") ? this.audio.src = e.url : this.notice("Error: HLS is not supported.") : "normal" === t && (this.audio.src = e.url)), - this.seek(0), - this.paused || this.audio.play() - } - }, { - key: "theme", - value: function() { - var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : this.list.audios[this.list.index].theme || this.options.theme - , t = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : this.list.index; - (!(arguments.length > 2 && void 0 !== arguments[2]) || arguments[2]) && this.list.audios[t] && (this.list.audios[t].theme = e), - this.template.listCurs[t] && (this.template.listCurs[t].style.backgroundColor = e), - t === this.list.index && (this.template.pic.style.backgroundColor = e, - this.template.played.style.background = e, - this.template.thumb.style.background = e, - this.template.volume.style.background = e) - } - }, { - key: "seek", - value: function(e) { - e = Math.max(e, 0), - e = Math.min(e, this.duration), - this.audio.currentTime = e, - this.bar.set("played", e / this.duration, "width"), - this.template.ptime.innerHTML = r.default.secondToTime(e) - } - }, { - key: "setUIPlaying", - value: function() { - var e = this; - if (this.paused && (this.paused = !1, - this.template.button.classList.remove("aplayer-play"), - this.template.button.classList.add("aplayer-pause"), - this.template.button.innerHTML = "", - setTimeout(function() { - e.template.button.innerHTML = o.default.pause - }, 100), - this.template.skipPlayButton.innerHTML = o.default.pause), - this.timer.enable("loading"), - this.options.mutex) - for (var t = 0; t < m.length; t++) - this !== m[t] && m[t].pause() - } - }, { - key: "play", - value: function() { - var e = this; - this.setUIPlaying(); - var t = this.audio.play(); - t && t.catch(function(t) { - console.warn(t), - "NotAllowedError" === t.name && e.setUIPaused() - }) - } - }, { - key: "setUIPaused", - value: function() { - var e = this; - this.paused || (this.paused = !0, - this.template.button.classList.remove("aplayer-pause"), - this.template.button.classList.add("aplayer-play"), - this.template.button.innerHTML = "", - setTimeout(function() { - e.template.button.innerHTML = o.default.play - }, 100), - this.template.skipPlayButton.innerHTML = o.default.play), - this.container.classList.remove("aplayer-loading"), - this.timer.disable("loading") - } - }, { - key: "pause", - value: function() { - this.setUIPaused(), - this.audio.pause() - } - }, { - key: "switchVolumeIcon", - value: function() { - this.volume() >= .95 ? this.template.volumeButton.innerHTML = o.default.volumeUp : this.volume() > 0 ? this.template.volumeButton.innerHTML = o.default.volumeDown : this.template.volumeButton.innerHTML = o.default.volumeOff - } - }, { - key: "volume", - value: function(e, t) { - return e = parseFloat(e), - isNaN(e) || (e = Math.max(e, 0), - e = Math.min(e, 1), - this.bar.set("volume", e, "height"), - t || this.storage.set("volume", e), - this.audio.volume = e, - this.audio.muted && (this.audio.muted = !1), - this.switchVolumeIcon()), - this.audio.muted ? 0 : this.audio.volume - } - }, { - key: "on", - value: function(e, t) { - this.events.on(e, t) - } - }, { - key: "toggle", - value: function() { - this.template.button.classList.contains("aplayer-play") ? this.play() : this.template.button.classList.contains("aplayer-pause") && this.pause() - } - }, { - key: "switchAudio", - value: function(e) { - this.list.switch(e) - } - }, { - key: "addAudio", - value: function(e) { - this.list.add(e) - } - }, { - key: "removeAudio", - value: function(e) { - this.list.remove(e) - } - }, { - key: "destroy", - value: function() { - m.splice(m.indexOf(this), 1), - this.pause(), - this.container.innerHTML = "", - this.audio.src = "", - this.timer.destroy(), - this.events.trigger("destroy") - } - }, { - key: "setMode", - value: function() { - var e = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : "normal"; - this.mode = e, - "mini" === e ? this.container.classList.add("aplayer-narrow") : "normal" === e && this.container.classList.remove("aplayer-narrow") - } - }, { - key: "notice", - value: function(e) { - var t = this - , n = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : 2e3 - , i = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : .8; - this.template.notice.innerHTML = e, - this.template.notice.style.opacity = i, - this.noticeTime && clearTimeout(this.noticeTime), - this.events.trigger("noticeshow", { - text: e - }), - n && (this.noticeTime = setTimeout(function() { - t.template.notice.style.opacity = 0, - t.events.trigger("noticehide") - }, n)) - } - }, { - key: "prevIndex", - value: function() { - if (!(this.list.audios.length > 1)) - return 0; - if ("list" === this.options.order) - return this.list.index - 1 < 0 ? this.list.audios.length - 1 : this.list.index - 1; - if ("random" === this.options.order) { - var e = this.randomOrder.indexOf(this.list.index); - return 0 === e ? this.randomOrder[this.randomOrder.length - 1] : this.randomOrder[e - 1] - } - } - }, { - key: "nextIndex", - value: function() { - if (!(this.list.audios.length > 1)) - return 0; - if ("list" === this.options.order) - return (this.list.index + 1) % this.list.audios.length; - if ("random" === this.options.order) { - var e = this.randomOrder.indexOf(this.list.index); - return e === this.randomOrder.length - 1 ? this.randomOrder[0] : this.randomOrder[e + 1] - } - } - }, { - key: "skipBack", - value: function() { - this.list.switch(this.prevIndex()) - } - }, { - key: "skipForward", - value: function() { - this.list.switch(this.nextIndex()) - } - }, { - key: "duration", - get: function() { - return isNaN(this.audio.duration) ? 0 : this.audio.duration - } - }], [{ - key: "version", - get: function() { - return "1.10.1" - } - }]), - e - }(); - t.default = g - } - , , function(e, t, n) {} - , function(e, t, n) { - "use strict"; - Object.defineProperty(t, "__esModule", { - value: !0 - }), - n(40); - var i, a = n(38), r = (i = a) && i.__esModule ? i : { - default: i - }; - console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n", "color: #fadfa3; background: #030307; padding:5px 0;", "background: #fadfa3; padding:5px 0;"), - t.default = r.default - } - ]).default -}); -!function(t, e) { - "object" == typeof exports ? module.exports = e(t) : "function" == typeof define && define.amd ? define([], e(t)) : t.LazyLoad = e(t) -}("undefined" != typeof global ? global : this.window || this.global, function(t) { - "use strict"; - function e(t, e) { - this.settings = r(s, e || {}), - this.images = t || document.querySelectorAll(this.settings.selector), - this.observer = null, - this.init() - } - const s = { - src: "data-src", - srcset: "data-srcset", - selector: ".lazyload" - } - , r = function() { - let t = {} - , e = !1 - , s = 0 - , o = arguments.length; - "[object Boolean]" === Object.prototype.toString.call(arguments[0]) && (e = arguments[0], - s++); - for (; s < o; s++) - !function(s) { - for (let o in s) - Object.prototype.hasOwnProperty.call(s, o) && (e && "[object Object]" === Object.prototype.toString.call(s[o]) ? t[o] = r(!0, t[o], s[o]) : t[o] = s[o]) - }(arguments[s]); - return t - }; - if (e.prototype = { - init: function() { - if (!t.IntersectionObserver) - return void this.loadImages(); - let e = this - , s = { - root: null, - rootMargin: "0px", - threshold: [0] - }; - this.observer = new IntersectionObserver(function(t) { - t.forEach(function(t) { - if (t.intersectionRatio > 0) { - e.observer.unobserve(t.target); - let s = t.target.getAttribute(e.settings.src) - , r = t.target.getAttribute(e.settings.srcset); - "img" === t.target.tagName.toLowerCase() ? (s && (t.target.src = s), - r && (t.target.srcset = r)) : t.target.style.backgroundImage = "url(" + s + ")" - } - }) - } - ,s), - this.images.forEach(function(t) { - e.observer.observe(t) - }) - }, - loadAndDestroy: function() { - this.settings && (this.loadImages(), - this.destroy()) - }, - loadImages: function() { - if (!this.settings) - return; - let t = this; - this.images.forEach(function(e) { - let s = e.getAttribute(t.settings.src) - , r = e.getAttribute(t.settings.srcset); - "img" === e.tagName.toLowerCase() ? (s && (e.src = s), - r && (e.srcset = r)) : e.style.backgroundImage = "url(" + s + ")" - }) - }, - destroy: function() { - this.settings && (this.observer.disconnect(), - this.settings = null) - } - }, - t.lazyload = function(t, s) { - return new e(t,s) - } - , - t.jQuery) { - const s = t.jQuery; - s.fn.lazyload = function(t) { - return t = t || {}, - t.attribute = t.attribute || "data-src", - new e(s.makeArray(this),t), - this - } - } - return e -}); -/*! - * Materialize v1.0.0-alpha.3 (http://materializecss.com) - * Copyright 2014-2017 Materialize - * MIT License (https://raw.githubusercontent.com/Dogfalo/materialize/master/LICENSE) - */ -var _get = function t(e, i, n) { - null === e && (e = Function.prototype); - var s = Object.getOwnPropertyDescriptor(e, i); - if (void 0 === s) { - var o = Object.getPrototypeOf(e); - return null === o ? void 0 : t(o, i, n) - } - if ("value"in s) - return s.value; - var a = s.get; - if (void 0 !== a) - return a.call(n) -} - , _createClass = function() { - function t(t, e) { - for (var i = 0; i < e.length; i++) { - var n = e[i]; - n.enumerable = n.enumerable || !1, - n.configurable = !0, - "value"in n && (n.writable = !0), - Object.defineProperty(t, n.key, n) - } - } - return function(e, i, n) { - return i && t(e.prototype, i), - n && t(e, n), - e - } -}(); -function _possibleConstructorReturn(t, e) { - if (!t) - throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); - return !e || "object" != typeof e && "function" != typeof e ? t : e -} -function _inherits(t, e) { - if ("function" != typeof e && null !== e) - throw new TypeError("Super expression must either be null or a function, not " + typeof e); - t.prototype = Object.create(e && e.prototype, { - constructor: { - value: t, - enumerable: !1, - writable: !0, - configurable: !0 - } - }), - e && (Object.setPrototypeOf ? Object.setPrototypeOf(t, e) : t.__proto__ = e) -} -function _classCallCheck(t, e) { - if (!(t instanceof e)) - throw new TypeError("Cannot call a class as a function") -} -window.cash = function() { - var t = document - , e = window - , i = Array.prototype - , n = i.slice - , s = i.filter - , o = i.push - , a = function() {} - , r = function(t) { - return "function" == typeof t && t.call - } - , l = function(t) { - return "string" == typeof t - } - , h = /^#[\w-]*$/ - , d = /^\.[\w-]*$/ - , u = /<.+>/ - , c = /^\w+$/; - function p(e, i) { - i = i || t; - var n = d.test(e) ? i.getElementsByClassName(e.slice(1)) : c.test(e) ? i.getElementsByTagName(e) : i.querySelectorAll(e); - return n - } - var v; - function f(e) { - if (!v) { - var i = (v = t.implementation.createHTMLDocument(null)).createElement("base"); - i.href = t.location.href, - v.head.appendChild(i) - } - return v.body.innerHTML = e, - v.body.childNodes - } - function m(e) { - "loading" !== t.readyState ? e() : t.addEventListener("DOMContentLoaded", e) - } - function g(i, n) { - if (!i) - return this; - if (i.cash && i !== e) - return i; - var s, o = i, a = 0; - if (l(i)) - o = h.test(i) ? t.getElementById(i.slice(1)) : u.test(i) ? f(i) : p(i, n); - else if (r(i)) - return m(i), - this; - if (!o) - return this; - if (o.nodeType || o === e) - this[0] = o, - this.length = 1; - else - for (s = this.length = o.length; a < s; a++) - this[a] = o[a]; - return this - } - function _(t, e) { - return new g(t,e) - } - var y = _.fn = _.prototype = g.prototype = { - cash: !0, - length: 0, - push: o, - splice: i.splice, - map: i.map, - init: g - }; - Object.defineProperty(y, "constructor", { - value: _ - }), - _.parseHTML = f, - _.noop = a, - _.isFunction = r, - _.isString = l, - _.extend = y.extend = function(t) { - t = t || {}; - var e = n.call(arguments) - , i = e.length - , s = 1; - for (1 === e.length && (t = this, - s = 0); s < i; s++) - if (e[s]) - for (var o in e[s]) - e[s].hasOwnProperty(o) && (t[o] = e[s][o]); - return t - } - ; - function k(t, e) { - for (var i = t.length, n = 0; n < i && !1 !== e.call(t[n], t[n], n, t); n++) - ; - } - function b(t, e) { - var i = t && (t.matches || t.webkitMatchesSelector || t.mozMatchesSelector || t.msMatchesSelector || t.oMatchesSelector); - return !!i && i.call(t, e) - } - function w(t) { - return l(t) ? b : t.cash ? function(e) { - return t.is(e) - } - : function(t, e) { - return t === e - } - } - function C(t) { - return _(n.call(t).filter(function(t, e, i) { - return i.indexOf(t) === e - })) - } - _.extend({ - merge: function(t, e) { - for (var i = +e.length, n = t.length, s = 0; s < i; n++, - s++) - t[n] = e[s]; - return t.length = n, - t - }, - each: k, - matches: b, - unique: C, - isArray: Array.isArray, - isNumeric: function(t) { - return !isNaN(parseFloat(t)) && isFinite(t) - } - }); - var E = _.uid = "_cash" + Date.now(); - function M(t) { - return t[E] = t[E] || {} - } - function x(t, e, i) { - return M(t)[e] = i - } - function L(t, e) { - var i = M(t); - return void 0 === i[e] && (i[e] = t.dataset ? t.dataset[e] : _(t).attr("data-" + e)), - i[e] - } - y.extend({ - data: function(t, e) { - if (l(t)) - return void 0 === e ? L(this[0], t) : this.each(function(i) { - return x(i, t, e) - }); - for (var i in t) - this.data(i, t[i]); - return this - }, - removeData: function(t) { - return this.each(function(e) { - return function(t, e) { - var i = M(t); - i ? delete i[e] : t.dataset ? delete t.dataset[e] : _(t).removeAttr("data-" + name) - }(e, t) - }) - } - }); - var T = /\S+/g; - function O(t) { - return l(t) && t.match(T) - } - function $(t, e) { - return t.classList ? t.classList.contains(e) : new RegExp("(^| )" + e + "( |$)","gi").test(t.className) - } - function D(t, e, i) { - t.classList ? t.classList.add(e) : i.indexOf(" " + e + " ") && (t.className += " " + e) - } - function B(t, e) { - t.classList ? t.classList.remove(e) : t.className = t.className.replace(e, "") - } - y.extend({ - addClass: function(t) { - var e = O(t); - return e ? this.each(function(t) { - var i = " " + t.className + " "; - k(e, function(e) { - D(t, e, i) - }) - }) : this - }, - attr: function(t, e) { - if (t) { - if (l(t)) - return void 0 === e ? this[0] ? this[0].getAttribute ? this[0].getAttribute(t) : this[0][t] : void 0 : this.each(function(i) { - i.setAttribute ? i.setAttribute(t, e) : i[t] = e - }); - for (var i in t) - this.attr(i, t[i]); - return this - } - }, - hasClass: function(t) { - var e = !1 - , i = O(t); - return i && i.length && this.each(function(t) { - return !(e = $(t, i[0])) - }), - e - }, - prop: function(t, e) { - if (l(t)) - return void 0 === e ? this[0][t] : this.each(function(i) { - i[t] = e - }); - for (var i in t) - this.prop(i, t[i]); - return this - }, - removeAttr: function(t) { - return this.each(function(e) { - e.removeAttribute ? e.removeAttribute(t) : delete e[t] - }) - }, - removeClass: function(t) { - if (!arguments.length) - return this.attr("class", ""); - var e = O(t); - return e ? this.each(function(t) { - k(e, function(e) { - B(t, e) - }) - }) : this - }, - removeProp: function(t) { - return this.each(function(e) { - delete e[t] - }) - }, - toggleClass: function(t, e) { - if (void 0 !== e) - return this[e ? "addClass" : "removeClass"](t); - var i = O(t); - return i ? this.each(function(t) { - var e = " " + t.className + " "; - k(i, function(i) { - $(t, i) ? B(t, i) : D(t, i, e) - }) - }) : this - } - }), - y.extend({ - add: function(t, e) { - return C(_.merge(this, _(t, e))) - }, - each: function(t) { - return k(this, t), - this - }, - eq: function(t) { - return _(this.get(t)) - }, - filter: function(t) { - if (!t) - return this; - var e = r(t) ? t : w(t); - return _(s.call(this, function(i) { - return e(i, t) - })) - }, - first: function() { - return this.eq(0) - }, - get: function(t) { - return void 0 === t ? n.call(this) : t < 0 ? this[t + this.length] : this[t] - }, - index: function(t) { - var e = t ? _(t)[0] : this[0] - , i = t ? this : _(e).parent().children(); - return n.call(i).indexOf(e) - }, - last: function() { - return this.eq(-1) - } - }); - var I = function() { - var t = /(?:^\w|[A-Z]|\b\w)/g - , e = /[\s-_]+/g; - return function(i) { - return i.replace(t, function(t, e) { - return t[0 === e ? "toLowerCase" : "toUpperCase"]() - }).replace(e, "") - } - }() - , S = function() { - var t = {} - , e = document - , i = e.createElement("div") - , n = i.style; - return function(e) { - if (e = I(e), - t[e]) - return t[e]; - var i = e.charAt(0).toUpperCase() + e.slice(1) - , s = (e + " " + ["webkit", "moz", "ms", "o"].join(i + " ") + i).split(" "); - return k(s, function(i) { - if (i in n) - return t[i] = e = t[e] = i, - !1 - }), - t[e] - } - }(); - _.prefixedProp = S, - _.camelCase = I, - y.extend({ - css: function(t, i) { - if (l(t)) - return t = S(t), - arguments.length > 1 ? this.each(function(e) { - return e.style[t] = i - }) : e.getComputedStyle(this[0])[t]; - for (var n in t) - this.css(n, t[n]); - return this - } - }); - function A(t, i) { - return parseInt(e.getComputedStyle(t[0], null)[i], 10) || 0 - } - k(["Width", "Height"], function(t) { - var e = t.toLowerCase(); - y[e] = function() { - return this[0].getBoundingClientRect()[e] - } - , - y["inner" + t] = function() { - return this[0]["client" + t] - } - , - y["outer" + t] = function(e) { - return this[0]["offset" + t] + (e ? A(this, "margin" + ("Width" === t ? "Left" : "Top")) + A(this, "margin" + ("Width" === t ? "Right" : "Bottom")) : 0) - } - }); - function R(t, e, i) { - var n, s = L(t, "_cashEvents"), o = s && s[e]; - o && (i ? (t.removeEventListener(e, i), - (n = o.indexOf(i)) >= 0 && o.splice(n, 1)) : (k(o, function(i) { - t.removeEventListener(e, i) - }), - o = [])) - } - y.extend({ - off: function(t, e) { - return this.each(function(i) { - return R(i, t, e) - }) - }, - on: function(t, e, i, n) { - var s; - if (!l(t)) { - for (var o in t) - this.on(o, e, t[o]); - return this - } - return r(e) && (i = e, - e = null), - "ready" === t ? (m(i), - this) : (e && (s = i, - i = function(t) { - for (var i = t.target; !b(i, e); ) { - if (i === this || null === i) - return i = !1; - i = i.parentNode - } - i && s.call(i, t) - } - ), - this.each(function(e) { - var s = i; - n && (s = function() { - i.apply(this, arguments), - R(e, t, s) - } - ), - function(t, e, i) { - var n = L(t, "_cashEvents") || x(t, "_cashEvents", {}); - n[e] = n[e] || [], - n[e].push(i), - t.addEventListener(e, i) - }(e, t, s) - })) - }, - one: function(t, e, i) { - return this.on(t, e, i, !0) - }, - ready: m, - trigger: function(t, e) { - if (document.createEvent) { - var i = document.createEvent("HTMLEvents"); - return i.initEvent(t, !0, !1), - i = this.extend(i, e), - this.each(function(t) { - return t.dispatchEvent(i) - }) - } - } - }); - function H(t, e) { - return "&" + encodeURIComponent(t) + "=" + encodeURIComponent(e).replace(/%20/g, "+") - } - function P(t) { - var e = t.type; - if (!e) - return null; - switch (e.toLowerCase()) { - case "select-one": - return function(t) { - var e = t.selectedIndex; - return e >= 0 ? t.options[e].value : null - }(t); - case "select-multiple": - return function(t) { - var e = []; - return k(t.options, function(t) { - t.selected && e.push(t.value) - }), - e.length ? e : null - }(t); - case "radio": - case "checkbox": - return t.checked ? t.value : null; - default: - return t.value ? t.value : null - } - } - y.extend({ - serialize: function() { - var t = ""; - return k(this[0].elements || this, function(e) { - if (!e.disabled && "FIELDSET" !== e.tagName) { - var i = e.name; - switch (e.type.toLowerCase()) { - case "file": - case "reset": - case "submit": - case "button": - break; - case "select-multiple": - var n = P(e); - null !== n && k(n, function(e) { - t += H(i, e) - }); - break; - default: - var s = P(e); - null !== s && (t += H(i, s)) - } - } - }), - t.substr(1) - }, - val: function(t) { - return void 0 === t ? P(this[0]) : this.each(function(e) { - return e.value = t - }) - } - }); - function W(t, e, i) { - var n = l(e); - n || !e.length ? k(t, n ? function(t) { - return t.insertAdjacentHTML(i ? "afterbegin" : "beforeend", e) - } - : function(t, n) { - return function(t, e, i) { - if (i) { - var n = t.childNodes[0]; - t.insertBefore(e, n) - } else - t.appendChild(e) - }(t, 0 === n ? e : e.cloneNode(!0), i) - } - ) : k(e, function(e) { - return W(t, e, i) - }) - } - y.extend({ - after: function(t) { - return _(t).insertAfter(this), - this - }, - append: function(t) { - return W(this, t), - this - }, - appendTo: function(t) { - return W(_(t), this), - this - }, - before: function(t) { - return _(t).insertBefore(this), - this - }, - clone: function() { - return _(this.map(function(t) { - return t.cloneNode(!0) - })) - }, - empty: function() { - return this.html(""), - this - }, - html: function(t) { - if (void 0 === t) - return this[0].innerHTML; - var e = t.nodeType ? t[0].outerHTML : t; - return this.each(function(t) { - return t.innerHTML = e - }) - }, - insertAfter: function(t) { - var e = this; - return _(t).each(function(t, i) { - var n = t.parentNode - , s = t.nextSibling; - e.each(function(t) { - n.insertBefore(0 === i ? t : t.cloneNode(!0), s) - }) - }), - this - }, - insertBefore: function(t) { - var e = this; - return _(t).each(function(t, i) { - var n = t.parentNode; - e.each(function(e) { - n.insertBefore(0 === i ? e : e.cloneNode(!0), t) - }) - }), - this - }, - prepend: function(t) { - return W(this, t, !0), - this - }, - prependTo: function(t) { - return W(_(t), this, !0), - this - }, - remove: function() { - return this.each(function(t) { - if (t.parentNode) - return t.parentNode.removeChild(t) - }) - }, - text: function(t) { - return void 0 === t ? this[0].textContent : this.each(function(e) { - return e.textContent = t - }) - } - }); - var j = t.documentElement; - return y.extend({ - position: function() { - var t = this[0]; - return { - left: t.offsetLeft, - top: t.offsetTop - } - }, - offset: function() { - var t = this[0].getBoundingClientRect(); - return { - top: t.top + e.pageYOffset - j.clientTop, - left: t.left + e.pageXOffset - j.clientLeft - } - }, - offsetParent: function() { - return _(this[0].offsetParent) - } - }), - y.extend({ - children: function(t) { - var e = []; - return this.each(function(t) { - o.apply(e, t.children) - }), - e = C(e), - t ? e.filter(function(e) { - return b(e, t) - }) : e - }, - closest: function(t) { - return !t || this.length < 1 ? _() : this.is(t) ? this.filter(t) : this.parent().closest(t) - }, - is: function(t) { - if (!t) - return !1; - var e = !1 - , i = w(t); - return this.each(function(n) { - return !(e = i(n, t)) - }), - e - }, - find: function(t) { - if (!t || t.nodeType) - return _(t && this.has(t).length ? t : null); - var e = []; - return this.each(function(i) { - o.apply(e, p(t, i)) - }), - C(e) - }, - has: function(t) { - var e = l(t) ? function(e) { - return 0 !== p(t, e).length - } - : function(e) { - return e.contains(t) - } - ; - return this.filter(e) - }, - next: function() { - return _(this[0].nextElementSibling) - }, - not: function(t) { - if (!t) - return this; - var e = w(t); - return this.filter(function(i) { - return !e(i, t) - }) - }, - parent: function() { - var t = []; - return this.each(function(e) { - e && e.parentNode && t.push(e.parentNode) - }), - C(t) - }, - parents: function(e) { - var i, n = []; - return this.each(function(s) { - for (i = s; i && i.parentNode && i !== t.body.parentNode; ) - i = i.parentNode, - (!e || e && b(i, e)) && n.push(i) - }), - C(n) - }, - prev: function() { - return _(this[0].previousElementSibling) - }, - siblings: function(t) { - var e = this.parent().children(t) - , i = this[0]; - return e.filter(function(t) { - return t !== i - }) - } - }), - _ -}(); -var Component = function() { - function t(e, i, n) { - _classCallCheck(this, t), - i instanceof Element || console.error(Error(i + " is not an HTML Element")); - var s = e.getInstance(i); - s && s.destroy(), - this.el = i, - this.$el = cash(i) - } - return _createClass(t, null, [{ - key: "init", - value: function(t, e, i) { - var n = null; - if (e instanceof Element) - n = new t(e,i); - else if (e.jquery || e instanceof NodeList) { - for (var s = [], o = 0; o < e.length; o++) - s.push(new t(e[o],i)); - n = s - } - return n - } - }]), - t -}(); -!function(t) { - t.Package ? M = {} : t.M = {}, - M.jQueryLoaded = !!t.jQuery -}(window), -"function" == typeof define && define.amd ? define("M", [], function() { - return M -}) : "undefined" == typeof exports || exports.nodeType || ("undefined" != typeof module && !module.nodeType && module.exports && (exports = module.exports = M), -exports.default = M), -M.keys = { - TAB: 9, - ENTER: 13, - ESC: 27, - ARROW_UP: 38, - ARROW_DOWN: 40 -}, -M.tabPressed = !1; -var docHandleKeydown = function(t) { - t.which === M.keys.TAB && (M.tabPressed = !0) -} - , docHandleKeyup = function(t) { - t.which === M.keys.TAB && (M.tabPressed = !1) -}; -document.addEventListener("keydown", docHandleKeydown), -document.addEventListener("keyup", docHandleKeyup), -M.initializeJqueryWrapper = function(t, e, i) { - jQuery.fn[e] = function(n) { - if (t.prototype[n]) { - var s = Array.prototype.slice.call(arguments, 1); - if ("get" === n.slice(0, 3)) { - var o = this.first()[0][i]; - return o[n].apply(o, s) - } - return this.each(function() { - var t = this[i]; - t[n].apply(t, s) - }) - } - if ("object" == typeof n || !n) - return t.init(this, arguments[0]), - this; - jQuery.error("Method " + n + " does not exist on jQuery." + e) - } -} -, -M.objectSelectorString = function(t) { - return ((t.prop("tagName") || "") + (t.attr("id") || "") + (t.attr("class") || "")).replace(/\s/g, "") -} -, -M.guid = function() { - function t() { - return Math.floor(65536 * (1 + Math.random())).toString(16).substring(1) - } - return function() { - return t() + t() + "-" + t() + "-" + t() + "-" + t() + "-" + t() + t() + t() - } -}(), -M.escapeHash = function(t) { - return t.replace(/(:|\.|\[|\]|,|=)/g, "\\$1") -} -, -M.elementOrParentIsFixed = function(t) { - var e = $(t) - , i = !1; - return e.add(e.parents()).each(function() { - if ("fixed" === $(this).css("position")) - return i = !0, - !1 - }), - i -} -, -M.checkWithinContainer = function(t, e, i) { - var n = { - top: !1, - right: !1, - bottom: !1, - left: !1 - } - , s = t.getBoundingClientRect() - , o = t.scrollLeft - , a = t.scrollTop - , r = e.left - o - , l = e.top - a; - return (r < s.left + i || r < i) && (n.left = !0), - (r + e.width > s.right - i || r + e.width > window.innerWidth - i) && (n.right = !0), - (l < s.top + i || l < i) && (n.top = !0), - (l + e.height > s.bottom - i || l + e.height > window.innerHeight - i) && (n.bottom = !0), - n -} -, -M.checkPossibleAlignments = function(t, e, i, n) { - var s = { - top: !0, - right: !0, - bottom: !0, - left: !0, - spaceOnTop: null, - spaceOnRight: null, - spaceOnBottom: null, - spaceOnLeft: null - } - , o = "visible" === getComputedStyle(e).overflow - , a = e.getBoundingClientRect() - , r = t.getBoundingClientRect() - , l = e.scrollLeft - , h = e.scrollTop - , d = i.left - l - , u = i.top - h; - return s.spaceOnRight = o ? window.innerWidth - (r.left + i.width) : e.offsetWidth - (d + i.width), - (!o && d + i.width > e.offsetWidth || o && r.left + i.width > window.innerWidth) && (s.left = !1), - s.spaceOnLeft = o ? r.right - i.width : d - i.width + r.width, - (!o && d - i.width + r.width < 0 || o && r.right - i.width < 0) && (s.right = !1), - s.spaceOnBottom = o ? window.innerHeight - (r.top + i.height + n) : a.height - (u + i.height + n), - (!o && u + i.height + n > a.height || o && r.top + i.height + n > window.innerHeight) && (s.top = !1), - s.spaceOnTop = o ? r.bottom - (i.height + n) : u - (i.height + n), - (!o && u - i.height - n < 0 || o && r.bottom - i.height - n < 0) && (s.bottom = !1), - s -} -, -M.getOverflowParent = function(t) { - return null == t ? null : t === document.body || "visible" !== getComputedStyle(t).overflow ? t : M.getOverflowParent(t.parentElement) -} -, -M.getIdFromTrigger = function(t) { - var e = t.getAttribute("data-target"); - return e || (e = (e = t.getAttribute("href")) ? e.slice(1) : ""), - e -} -, -M.getDocumentScrollTop = function() { - return window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0 -} -, -M.getDocumentScrollLeft = function() { - return window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft || 0 -} -; -var getTime = Date.now || function() { - return (new Date).getTime() -} -; -M.throttle = function(t, e, i) { - var n = void 0 - , s = void 0 - , o = void 0 - , a = null - , r = 0; - i || (i = {}); - var l = function() { - r = !1 === i.leading ? 0 : getTime(), - a = null, - o = t.apply(n, s), - n = s = null - }; - return function() { - var h = getTime(); - r || !1 !== i.leading || (r = h); - var d = e - (h - r); - return n = this, - s = arguments, - d <= 0 ? (clearTimeout(a), - a = null, - r = h, - o = t.apply(n, s), - n = s = null) : a || !1 === i.trailing || (a = setTimeout(l, d)), - o - } -} -; -var $jscomp = { - scope: {} -}; -$jscomp.defineProperty = "function" == typeof Object.defineProperties ? Object.defineProperty : function(t, e, i) { - if (i.get || i.set) - throw new TypeError("ES3 does not support getters and setters."); - t != Array.prototype && t != Object.prototype && (t[e] = i.value) -} -, -$jscomp.getGlobal = function(t) { - return "undefined" != typeof window && window === t ? t : "undefined" != typeof global && null != global ? global : t -} -, -$jscomp.global = $jscomp.getGlobal(this), -$jscomp.SYMBOL_PREFIX = "jscomp_symbol_", -$jscomp.initSymbol = function() { - $jscomp.initSymbol = function() {} - , - $jscomp.global.Symbol || ($jscomp.global.Symbol = $jscomp.Symbol) -} -, -$jscomp.symbolCounter_ = 0, -$jscomp.Symbol = function(t) { - return $jscomp.SYMBOL_PREFIX + (t || "") + $jscomp.symbolCounter_++ -} -, -$jscomp.initSymbolIterator = function() { - $jscomp.initSymbol(); - var t = $jscomp.global.Symbol.iterator; - t || (t = $jscomp.global.Symbol.iterator = $jscomp.global.Symbol("iterator")), - "function" != typeof Array.prototype[t] && $jscomp.defineProperty(Array.prototype, t, { - configurable: !0, - writable: !0, - value: function() { - return $jscomp.arrayIterator(this) - } - }), - $jscomp.initSymbolIterator = function() {} -} -, -$jscomp.arrayIterator = function(t) { - var e = 0; - return $jscomp.iteratorPrototype(function() { - return e < t.length ? { - done: !1, - value: t[e++] - } : { - done: !0 - } - }) -} -, -$jscomp.iteratorPrototype = function(t) { - return $jscomp.initSymbolIterator(), - (t = { - next: t - })[$jscomp.global.Symbol.iterator] = function() { - return this - } - , - t -} -, -$jscomp.array = $jscomp.array || {}, -$jscomp.iteratorFromArray = function(t, e) { - $jscomp.initSymbolIterator(), - t instanceof String && (t += ""); - var i = 0 - , n = { - next: function() { - if (i < t.length) { - var s = i++; - return { - value: e(s, t[s]), - done: !1 - } - } - return n.next = function() { - return { - done: !0, - value: void 0 - } - } - , - n.next() - } - }; - return n[Symbol.iterator] = function() { - return n - } - , - n -} -, -$jscomp.polyfill = function(t, e, i, n) { - if (e) { - for (i = $jscomp.global, - t = t.split("."), - n = 0; n < t.length - 1; n++) { - var s = t[n]; - s in i || (i[s] = {}), - i = i[s] - } - (e = e(n = i[t = t[t.length - 1]])) != n && null != e && $jscomp.defineProperty(i, t, { - configurable: !0, - writable: !0, - value: e - }) - } -} -, -$jscomp.polyfill("Array.prototype.keys", function(t) { - return t || function() { - return $jscomp.iteratorFromArray(this, function(t) { - return t - }) - } -}, "es6-impl", "es3"); -var $jscomp$this = this; -M.anime = function() { - function t(t) { - if (!O.col(t)) - try { - return document.querySelectorAll(t) - } catch (t) {} - } - function e(t, e) { - for (var i = t.length, n = 2 <= arguments.length ? arguments[1] : void 0, s = [], o = 0; o < i; o++) - if (o in t) { - var a = t[o]; - e.call(n, a, o, t) && s.push(a) - } - return s - } - function i(t) { - return t.reduce(function(t, e) { - return t.concat(O.arr(e) ? i(e) : e) - }, []) - } - function n(e) { - return O.arr(e) ? e : (O.str(e) && (e = t(e) || e), - e instanceof NodeList || e instanceof HTMLCollection ? [].slice.call(e) : [e]) - } - function s(t, e) { - return t.some(function(t) { - return t === e - }) - } - function o(t) { - var e, i = {}; - for (e in t) - i[e] = t[e]; - return i - } - function a(t, e) { - var i, n = o(t); - for (i in t) - n[i] = e.hasOwnProperty(i) ? e[i] : t[i]; - return n - } - function r(t, e) { - var i, n = o(t); - for (i in e) - n[i] = O.und(t[i]) ? e[i] : t[i]; - return n - } - function l(t) { - if (t = /([\+\-]?[0-9#\.]+)(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(t)) - return t[2] - } - function h(t, e) { - return O.fnc(t) ? t(e.target, e.id, e.total) : t - } - function d(t, e) { - if (e in t.style) - return getComputedStyle(t).getPropertyValue(e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase()) || "0" - } - function u(t, e) { - return O.dom(t) && s(T, e) ? "transform" : O.dom(t) && (t.getAttribute(e) || O.svg(t) && t[e]) ? "attribute" : O.dom(t) && "transform" !== e && d(t, e) ? "css" : null != t[e] ? "object" : void 0 - } - function c(t, i) { - switch (u(t, i)) { - case "transform": - return function(t, i) { - var n = function(t) { - return -1 < t.indexOf("translate") || "perspective" === t ? "px" : -1 < t.indexOf("rotate") || -1 < t.indexOf("skew") ? "deg" : void 0 - }(i) - , n = -1 < i.indexOf("scale") ? 1 : 0 + n; - if (!(t = t.style.transform)) - return n; - for (var s = [], o = [], a = [], r = /(\w+)\((.+?)\)/g; s = r.exec(t); ) - o.push(s[1]), - a.push(s[2]); - return (t = e(a, function(t, e) { - return o[e] === i - })).length ? t[0] : n - }(t, i); - case "css": - return d(t, i); - case "attribute": - return t.getAttribute(i) - } - return t[i] || 0 - } - function p(t, e) { - var i = /^(\*=|\+=|-=)/.exec(t); - if (!i) - return t; - var n = l(t) || 0; - switch (e = parseFloat(e), - t = parseFloat(t.replace(i[0], "")), - i[0][0]) { - case "+": - return e + t + n; - case "-": - return e - t + n; - case "*": - return e * t + n - } - } - function v(t, e) { - return Math.sqrt(Math.pow(e.x - t.x, 2) + Math.pow(e.y - t.y, 2)) - } - function f(t) { - t = t.points; - for (var e, i = 0, n = 0; n < t.numberOfItems; n++) { - var s = t.getItem(n); - 0 < n && (i += v(e, s)), - e = s - } - return i - } - function m(t) { - if (t.getTotalLength) - return t.getTotalLength(); - switch (t.tagName.toLowerCase()) { - case "circle": - return 2 * Math.PI * t.getAttribute("r"); - case "rect": - return 2 * t.getAttribute("width") + 2 * t.getAttribute("height"); - case "line": - return v({ - x: t.getAttribute("x1"), - y: t.getAttribute("y1") - }, { - x: t.getAttribute("x2"), - y: t.getAttribute("y2") - }); - case "polyline": - return f(t); - case "polygon": - var e = t.points; - return f(t) + v(e.getItem(e.numberOfItems - 1), e.getItem(0)) - } - } - function g(t, e) { - function i(i) { - return i = void 0 === i ? 0 : i, - t.el.getPointAtLength(1 <= e + i ? e + i : 0) - } - var n = i() - , s = i(-1) - , o = i(1); - switch (t.property) { - case "x": - return n.x; - case "y": - return n.y; - case "angle": - return 180 * Math.atan2(o.y - s.y, o.x - s.x) / Math.PI - } - } - function _(t, e) { - var i, n = /-?\d*\.?\d+/g; - if (i = O.pth(t) ? t.totalLength : t, - O.col(i)) - if (O.rgb(i)) { - var s = /rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(i); - i = s ? "rgba(" + s[1] + ",1)" : i - } else - i = O.hex(i) ? function(t) { - t = t.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i, function(t, e, i, n) { - return e + e + i + i + n + n - }); - var e = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t); - t = parseInt(e[1], 16); - var i = parseInt(e[2], 16) - , e = parseInt(e[3], 16); - return "rgba(" + t + "," + i + "," + e + ",1)" - }(i) : O.hsl(i) ? function(t) { - function e(t, e, i) { - return 0 > i && (i += 1), - 1 < i && --i, - i < 1 / 6 ? t + 6 * (e - t) * i : .5 > i ? e : i < 2 / 3 ? t + (e - t) * (2 / 3 - i) * 6 : t - } - var i = /hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(t) || /hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(t); - t = parseInt(i[1]) / 360; - var n = parseInt(i[2]) / 100 - , s = parseInt(i[3]) / 100 - , i = i[4] || 1; - if (0 == n) - s = n = t = s; - else { - var o = .5 > s ? s * (1 + n) : s + n - s * n - , a = 2 * s - o - , s = e(a, o, t + 1 / 3) - , n = e(a, o, t); - t = e(a, o, t - 1 / 3) - } - return "rgba(" + 255 * s + "," + 255 * n + "," + 255 * t + "," + i + ")" - }(i) : void 0; - else - s = (s = l(i)) ? i.substr(0, i.length - s.length) : i, - i = e && !/\s/g.test(i) ? s + e : s; - return { - original: i += "", - numbers: i.match(n) ? i.match(n).map(Number) : [0], - strings: O.str(t) || e ? i.split(n) : [] - } - } - function y(t) { - return e(t = t ? i(O.arr(t) ? t.map(n) : n(t)) : [], function(t, e, i) { - return i.indexOf(t) === e - }) - } - function k(t, e) { - var i = o(e); - if (O.arr(t)) { - var s = t.length; - 2 !== s || O.obj(t[0]) ? O.fnc(e.duration) || (i.duration = e.duration / s) : t = { - value: t - } - } - return n(t).map(function(t, i) { - return i = i ? 0 : e.delay, - t = O.obj(t) && !O.pth(t) ? t : { - value: t - }, - O.und(t.delay) && (t.delay = i), - t - }).map(function(t) { - return r(t, i) - }) - } - function b(t, e) { - var i; - return t.tweens.map(function(n) { - var s = (n = function(t, e) { - var i, n = {}; - for (i in t) { - var s = h(t[i], e); - O.arr(s) && (s = s.map(function(t) { - return h(t, e) - }), - 1 === s.length && (s = s[0])), - n[i] = s - } - return n.duration = parseFloat(n.duration), - n.delay = parseFloat(n.delay), - n - }(n, e)).value - , o = c(e.target, t.name) - , a = i ? i.to.original : o - , a = O.arr(s) ? s[0] : a - , r = p(O.arr(s) ? s[1] : s, a) - , o = l(r) || l(a) || l(o); - return n.from = _(a, o), - n.to = _(r, o), - n.start = i ? i.end : t.offset, - n.end = n.start + n.delay + n.duration, - n.easing = function(t) { - return O.arr(t) ? $.apply(this, t) : D[t] - }(n.easing), - n.elasticity = (1e3 - Math.min(Math.max(n.elasticity, 1), 999)) / 1e3, - n.isPath = O.pth(s), - n.isColor = O.col(n.from.original), - n.isColor && (n.round = 1), - i = n - }) - } - function w(t, e, i, n) { - var s = "delay" === t; - return e.length ? (s ? Math.min : Math.max).apply(Math, e.map(function(e) { - return e[t] - })) : s ? n.delay : i.offset + n.delay + n.duration - } - function C(t) { - var n, s = a(x, t), o = a(L, t), l = function(t) { - var e = y(t); - return e.map(function(t, i) { - return { - target: t, - id: i, - total: e.length - } - }) - }(t.targets), h = [], d = r(s, o); - for (n in t) - d.hasOwnProperty(n) || "targets" === n || h.push({ - name: n, - offset: d.offset, - tweens: k(t[n], o) - }); - c = h, - t = e(i(l.map(function(t) { - return c.map(function(e) { - var i = u(t.target, e.name); - if (i) { - var n = b(e, t); - e = { - type: i, - property: e.name, - animatable: t, - tweens: n, - duration: n[n.length - 1].end, - delay: n[0].delay - } - } else - e = void 0; - return e - }) - })), function(t) { - return !O.und(t) - }); - var c; - return r(s, { - children: [], - animatables: l, - animations: t, - duration: w("duration", t, s, o), - delay: w("delay", t, s, o) - }) - } - function E(t) { - function i() { - return window.Promise && new Promise(function(t) { - return c = t - } - ) - } - function n(t) { - return v.reversed ? v.duration - t : t - } - function s(t) { - for (var i = 0, n = {}, s = v.animations, o = s.length; i < o; ) { - var a = s[i] - , r = a.animatable - , l = a.tweens - , h = l.length - 1 - , u = l[h]; - h && (u = e(l, function(e) { - return t < e.end - })[0] || u); - for (var l = Math.min(Math.max(t - u.start - u.delay, 0), u.duration) / u.duration, c = isNaN(l) ? 1 : u.easing(l, u.elasticity), l = u.to.strings, p = u.round, h = [], f = void 0, f = u.to.numbers.length, m = 0; m < f; m++) { - var _ = void 0 - , _ = u.to.numbers[m] - , y = u.from.numbers[m] - , _ = u.isPath ? g(u.value, c * _) : y + c * (_ - y); - p && (u.isColor && 2 < m || (_ = Math.round(_ * p) / p)), - h.push(_) - } - if (u = l.length) - for (f = l[0], - c = 0; c < u; c++) - p = l[c + 1], - m = h[c], - isNaN(m) || (f = p ? f + (m + p) : f + (m + " ")); - else - f = h[0]; - B[a.type](r.target, a.property, f, n, r.id), - a.currentValue = f, - i++ - } - if (i = Object.keys(n).length) - for (s = 0; s < i; s++) - M || (M = d(document.body, "transform") ? "transform" : "-webkit-transform"), - v.animatables[s].target.style[M] = n[s].join(" "); - v.currentTime = t, - v.progress = t / v.duration * 100 - } - function o(t) { - v[t] && v[t](v) - } - function a() { - v.remaining && !0 !== v.remaining && v.remaining-- - } - function r(t) { - var e = v.duration - , r = v.offset - , d = r + v.delay - , f = v.currentTime - , m = v.reversed - , g = n(t); - if (v.children.length) { - var _ = v.children - , y = _.length; - if (g >= v.currentTime) - for (var k = 0; k < y; k++) - _[k].seek(g); - else - for (; y--; ) - _[y].seek(g) - } - (g >= d || !e) && (v.began || (v.began = !0, - o("begin")), - o("run")), - g > r && g < e ? s(g) : (g <= r && 0 !== f && (s(0), - m && a()), - (g >= e && f !== e || !e) && (s(e), - m || a())), - o("update"), - t >= e && (v.remaining ? (h = l, - "alternate" === v.direction && (v.reversed = !v.reversed)) : (v.pause(), - v.completed || (v.completed = !0, - o("complete"), - "Promise"in window && (c(), - p = i()))), - u = 0) - } - t = void 0 === t ? {} : t; - var l, h, u = 0, c = null, p = i(), v = C(t); - return v.reset = function() { - var t = v.direction - , e = v.loop; - for (v.currentTime = 0, - v.progress = 0, - v.paused = !0, - v.began = !1, - v.completed = !1, - v.reversed = "reverse" === t, - v.remaining = "alternate" === t && 1 === e ? 2 : e, - s(0), - t = v.children.length; t--; ) - v.children[t].reset() - } - , - v.tick = function(t) { - l = t, - h || (h = l), - r((u + l - h) * E.speed) - } - , - v.seek = function(t) { - r(n(t)) - } - , - v.pause = function() { - var t = I.indexOf(v); - -1 < t && I.splice(t, 1), - v.paused = !0 - } - , - v.play = function() { - v.paused && (v.paused = !1, - h = 0, - u = n(v.currentTime), - I.push(v), - S || A()) - } - , - v.reverse = function() { - v.reversed = !v.reversed, - h = 0, - u = n(v.currentTime) - } - , - v.restart = function() { - v.pause(), - v.reset(), - v.play() - } - , - v.finished = p, - v.reset(), - v.autoplay && v.play(), - v - } - var M, x = { - update: void 0, - begin: void 0, - run: void 0, - complete: void 0, - loop: 1, - direction: "normal", - autoplay: !0, - offset: 0 - }, L = { - duration: 1e3, - delay: 0, - easing: "easeOutElastic", - elasticity: 500, - round: 0 - }, T = "translateX translateY translateZ rotate rotateX rotateY rotateZ scale scaleX scaleY scaleZ skewX skewY perspective".split(" "), O = { - arr: function(t) { - return Array.isArray(t) - }, - obj: function(t) { - return -1 < Object.prototype.toString.call(t).indexOf("Object") - }, - pth: function(t) { - return O.obj(t) && t.hasOwnProperty("totalLength") - }, - svg: function(t) { - return t instanceof SVGElement - }, - dom: function(t) { - return t.nodeType || O.svg(t) - }, - str: function(t) { - return "string" == typeof t - }, - fnc: function(t) { - return "function" == typeof t - }, - und: function(t) { - return void 0 === t - }, - hex: function(t) { - return /(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(t) - }, - rgb: function(t) { - return /^rgb/.test(t) - }, - hsl: function(t) { - return /^hsl/.test(t) - }, - col: function(t) { - return O.hex(t) || O.rgb(t) || O.hsl(t) - } - }, $ = function() { - function t(t, e, i) { - return (((1 - 3 * i + 3 * e) * t + (3 * i - 6 * e)) * t + 3 * e) * t - } - return function(e, i, n, s) { - if (0 <= e && 1 >= e && 0 <= n && 1 >= n) { - var o = new Float32Array(11); - if (e !== i || n !== s) - for (var a = 0; 11 > a; ++a) - o[a] = t(.1 * a, e, n); - return function(a) { - if (e === i && n === s) - return a; - if (0 === a) - return 0; - if (1 === a) - return 1; - for (var r = 0, l = 1; 10 !== l && o[l] <= a; ++l) - r += .1; - var l = r + (a - o[--l]) / (o[l + 1] - o[l]) * .1 - , h = 3 * (1 - 3 * n + 3 * e) * l * l + 2 * (3 * n - 6 * e) * l + 3 * e; - if (.001 <= h) { - for (r = 0; 4 > r && 0 != (h = 3 * (1 - 3 * n + 3 * e) * l * l + 2 * (3 * n - 6 * e) * l + 3 * e); ++r) - var d = t(l, e, n) - a - , l = l - d / h; - a = l - } else if (0 === h) - a = l; - else { - var l = r - , r = r + .1 - , u = 0; - do { - 0 < (h = t(d = l + (r - l) / 2, e, n) - a) ? r = d : l = d - } while (1e-7 < Math.abs(h) && 10 > ++u);a = d - } - return t(a, i, s) - } - } - } - }(), D = function() { - function t(t, e) { - return 0 === t || 1 === t ? t : -Math.pow(2, 10 * (t - 1)) * Math.sin(2 * (t - 1 - e / (2 * Math.PI) * Math.asin(1)) * Math.PI / e) - } - var e, i = "Quad Cubic Quart Quint Sine Expo Circ Back Elastic".split(" "), n = { - In: [[.55, .085, .68, .53], [.55, .055, .675, .19], [.895, .03, .685, .22], [.755, .05, .855, .06], [.47, 0, .745, .715], [.95, .05, .795, .035], [.6, .04, .98, .335], [.6, -.28, .735, .045], t], - Out: [[.25, .46, .45, .94], [.215, .61, .355, 1], [.165, .84, .44, 1], [.23, 1, .32, 1], [.39, .575, .565, 1], [.19, 1, .22, 1], [.075, .82, .165, 1], [.175, .885, .32, 1.275], function(e, i) { - return 1 - t(1 - e, i) - } - ], - InOut: [[.455, .03, .515, .955], [.645, .045, .355, 1], [.77, 0, .175, 1], [.86, 0, .07, 1], [.445, .05, .55, .95], [1, 0, 0, 1], [.785, .135, .15, .86], [.68, -.55, .265, 1.55], function(e, i) { - return .5 > e ? t(2 * e, i) / 2 : 1 - t(-2 * e + 2, i) / 2 - } - ] - }, s = { - linear: $(.25, .25, .75, .75) - }, o = {}; - for (e in n) - o.type = e, - n[o.type].forEach(function(t) { - return function(e, n) { - s["ease" + t.type + i[n]] = O.fnc(e) ? e : $.apply($jscomp$this, e) - } - }(o)), - o = { - type: o.type - }; - return s - }(), B = { - css: function(t, e, i) { - return t.style[e] = i - }, - attribute: function(t, e, i) { - return t.setAttribute(e, i) - }, - object: function(t, e, i) { - return t[e] = i - }, - transform: function(t, e, i, n, s) { - n[s] || (n[s] = []), - n[s].push(e + "(" + i + ")") - } - }, I = [], S = 0, A = function() { - function t() { - S = requestAnimationFrame(e) - } - function e(e) { - var i = I.length; - if (i) { - for (var n = 0; n < i; ) - I[n] && I[n].tick(e), - n++; - t() - } else - cancelAnimationFrame(S), - S = 0 - } - return t - }(); - return E.version = "2.2.0", - E.speed = 1, - E.running = I, - E.remove = function(t) { - t = y(t); - for (var e = I.length; e--; ) - for (var i = I[e], n = i.animations, o = n.length; o--; ) - s(t, n[o].animatable.target) && (n.splice(o, 1), - n.length || i.pause()) - } - , - E.getValue = c, - E.path = function(e, i) { - var n = O.str(e) ? t(e)[0] : e - , s = i || 100; - return function(t) { - return { - el: n, - property: t, - totalLength: m(n) * (s / 100) - } - } - } - , - E.setDashoffset = function(t) { - var e = m(t); - return t.setAttribute("stroke-dasharray", e), - e - } - , - E.bezier = $, - E.easings = D, - E.timeline = function(t) { - var e = E(t); - return e.pause(), - e.duration = 0, - e.add = function(i) { - return e.children.forEach(function(t) { - t.began = !0, - t.completed = !0 - }), - n(i).forEach(function(i) { - var n = r(i, a(L, t || {})); - n.targets = n.targets || t.targets, - i = e.duration; - var s = n.offset; - n.autoplay = !1, - n.direction = e.direction, - n.offset = O.und(s) ? i : p(s, i), - e.began = !0, - e.completed = !0, - e.seek(n.offset), - (n = E(n)).began = !0, - n.completed = !0, - n.duration > i && (e.duration = n.duration), - e.children.push(n) - }), - e.seek(0), - e.reset(), - e.autoplay && e.restart(), - e - } - , - e - } - , - E.random = function(t, e) { - return Math.floor(Math.random() * (e - t + 1)) + t - } - , - E -}(), -function(t, e) { - "use strict"; - var i = { - accordion: !0, - onOpenStart: void 0, - onOpenEnd: void 0, - onCloseStart: void 0, - onCloseEnd: void 0, - inDuration: 300, - outDuration: 300 - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - n.el.M_Collapsible = n, - n.options = t.extend({}, s.defaults, i), - n._setupEventHandlers(); - var o = n.$el.children("li.active").children(".collapsible-body"); - return n.options.accordion ? o.first().css("display", "block") : o.css("display", "block"), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.el.M_Collapsible = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleCollapsibleClickBound = this._handleCollapsibleClick.bind(this), - this.el.addEventListener("click", this._handleCollapsibleClickBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("click", this._handleCollapsibleClickBound) - } - }, { - key: "_handleCollapsibleClick", - value: function(e) { - var i = t(e.target).closest(".collapsible-header"); - if (e.target && i.length) { - var n = i.closest(".collapsible"); - if (n[0] === this.el) { - var s = i.closest("li") - , o = n.children("li") - , a = s[0].classList.contains("active") - , r = o.index(s); - a ? this.close(r) : this.open(r) - } - } - } - }, { - key: "_animateIn", - value: function(t) { - var i = this - , n = this.$el.children("li").eq(t); - if (n.length) { - var s = n.children(".collapsible-body"); - e.remove(s[0]), - s.css({ - display: "block", - overflow: "hidden", - height: 0, - paddingTop: "", - paddingBottom: "" - }); - var o = s.css("padding-top") - , a = s.css("padding-bottom") - , r = s[0].scrollHeight; - s.css({ - paddingTop: 0, - paddingBottom: 0 - }), - e({ - targets: s[0], - height: r, - paddingTop: o, - paddingBottom: a, - duration: this.options.inDuration, - easing: "easeInOutCubic", - complete: function(t) { - s.css({ - overflow: "", - paddingTop: "", - paddingBottom: "", - height: "" - }), - "function" == typeof i.options.onOpenEnd && i.options.onOpenEnd.call(i, n[0]) - } - }) - } - } - }, { - key: "_animateOut", - value: function(t) { - var i = this - , n = this.$el.children("li").eq(t); - if (n.length) { - var s = n.children(".collapsible-body"); - e.remove(s[0]), - s.css("overflow", "hidden"), - e({ - targets: s[0], - height: 0, - paddingTop: 0, - paddingBottom: 0, - duration: this.options.outDuration, - easing: "easeInOutCubic", - complete: function() { - s.css({ - height: "", - overflow: "", - padding: "", - display: "" - }), - "function" == typeof i.options.onCloseEnd && i.options.onCloseEnd.call(i, n[0]) - } - }) - } - } - }, { - key: "open", - value: function(e) { - var i = this - , n = this.$el.children("li").eq(e); - if (n.length && !n[0].classList.contains("active")) { - if ("function" == typeof this.options.onOpenStart && this.options.onOpenStart.call(this, n[0]), - this.options.accordion) { - var s = this.$el.children("li"); - this.$el.children("li.active").each(function(e) { - var n = s.index(t(e)); - i.close(n) - }) - } - n[0].classList.add("active"), - this._animateIn(e) - } - } - }, { - key: "close", - value: function(t) { - var e = this.$el.children("li").eq(t); - e.length && e[0].classList.contains("active") && ("function" == typeof this.options.onCloseStart && this.options.onCloseStart.call(this, e[0]), - e[0].classList.remove("active"), - this._animateOut(t)) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Collapsible - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - M.Collapsible = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "collapsible", "M_Collapsible") -}(cash, M.anime), -function(t, e) { - "use strict"; - var i = { - alignment: "left", - constrainWidth: !0, - coverTrigger: !0, - closeOnClick: !0, - hover: !1, - inDuration: 150, - outDuration: 250, - onOpenStart: null, - onOpenEnd: null, - onCloseStart: null, - onCloseEnd: null - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_Dropdown = n, - s._dropdowns.push(n), - n.id = M.getIdFromTrigger(e), - n.dropdownEl = document.getElementById(n.id), - n.$dropdownEl = t(n.dropdownEl), - n.options = t.extend({}, s.defaults, i), - n.isOpen = !1, - n.focusedIndex = -1, - n.filterQuery = [], - n.$el.after(n.dropdownEl), - n._makeDropdownFocusable(), - n._resetFilterQueryBound = n._resetFilterQuery.bind(n), - n._handleDocumentClickBound = n._handleDocumentClick.bind(n), - n._handleDropdownKeydownBound = n._handleDropdownKeydown.bind(n), - n._handleTriggerKeydownBound = n._handleTriggerKeydown.bind(n), - n._setupEventHandlers(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this._resetDropdownStyles(), - this._removeEventHandlers(), - s._dropdowns.splice(s._dropdowns.indexOf(this), 1), - this.el.M_Dropdown = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this.el.addEventListener("keydown", this._handleTriggerKeydownBound), - this.options.hover ? (this._handleMouseEnterBound = this._handleMouseEnter.bind(this), - this.el.addEventListener("mouseenter", this._handleMouseEnterBound), - this._handleMouseLeaveBound = this._handleMouseLeave.bind(this), - this.el.addEventListener("mouseleave", this._handleMouseLeaveBound), - this.dropdownEl.addEventListener("mouseleave", this._handleMouseLeaveBound)) : (this._handleClickBound = this._handleClick.bind(this), - this.el.addEventListener("click", this._handleClickBound)) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("keydown", this._handleTriggerKeydownBound), - this.options.hover ? (this.el.removeEventHandlers("mouseenter", this._handleMouseEnterBound), - this.el.removeEventHandlers("mouseleave", this._handleMouseLeaveBound), - this.dropdownEl.removeEventHandlers("mouseleave", this._handleMouseLeaveBound)) : this.el.removeEventListener("click", this._handleClickBound) - } - }, { - key: "_setupTemporaryEventHandlers", - value: function() { - document.body.addEventListener("click", this._handleDocumentClickBound, !0), - this.dropdownEl.addEventListener("keydown", this._handleDropdownKeydownBound) - } - }, { - key: "_removeTemporaryEventHandlers", - value: function() { - document.body.removeEventListener("click", this._handleDocumentClickBound, !0), - this.dropdownEl.removeEventListener("keydown", this._handleDropdownKeydownBound) - } - }, { - key: "_handleClick", - value: function(t) { - t.preventDefault(), - this.open() - } - }, { - key: "_handleMouseEnter", - value: function() { - this.open() - } - }, { - key: "_handleMouseLeave", - value: function(e) { - var i = e.toElement || e.relatedTarget - , n = !!t(i).closest(".dropdown-content").length - , s = !1 - , o = t(i).closest(".dropdown-trigger"); - o.length && o[0].M_Dropdown && o[0].M_Dropdown.isOpen && (s = !0), - s || n || this.close() - } - }, { - key: "_handleDocumentClick", - value: function(e) { - var i = this - , n = t(e.target); - this.options.closeOnClick && n.closest(".dropdown-content").length ? setTimeout(function() { - i.close() - }, 0) : n.closest(".dropdown-trigger").length ? setTimeout(function() { - i.close() - }, 0) : n.closest(".dropdown-content").length || setTimeout(function() { - i.close() - }, 0) - } - }, { - key: "_handleTriggerKeydown", - value: function(t) { - t.which !== M.keys.ARROW_DOWN && t.which !== M.keys.ENTER || this.isOpen || (t.preventDefault(), - this.open()) - } - }, { - key: "_handleDropdownKeydown", - value: function(e) { - if (e.which === M.keys.TAB) - e.preventDefault(), - this.close(); - else if (e.which !== M.keys.ARROW_DOWN && e.which !== M.keys.ARROW_UP || !this.isOpen) - if (e.which === M.keys.ENTER && this.isOpen) { - var i = this.dropdownEl.children[this.focusedIndex] - , n = t(i).find("a, button").first(); - n.length ? n[0].click() : i.click() - } else - e.which === M.keys.ESC && this.isOpen && (e.preventDefault(), - this.close()); - else { - e.preventDefault(); - var s = e.which === M.keys.ARROW_DOWN ? 1 : -1; - this.focusedIndex = Math.max(Math.min(this.focusedIndex + s, this.dropdownEl.children.length - 1), 0), - this._focusFocusedItem() - } - var o = String.fromCharCode(e.which).toLowerCase(); - if (o && -1 === [9, 13, 27, 38, 40].indexOf(e.which)) { - this.filterQuery.push(o); - var a = this.filterQuery.join("") - , r = t(this.dropdownEl).find("li").filter(function(e) { - return 0 === t(e).text().toLowerCase().indexOf(a) - })[0]; - r && (this.focusedIndex = t(r).index(), - this._focusFocusedItem()) - } - this.filterTimeout = setTimeout(this._resetFilterQueryBound, 1e3) - } - }, { - key: "_resetFilterQuery", - value: function() { - this.filterQuery = [] - } - }, { - key: "_resetDropdownStyles", - value: function() { - this.$dropdownEl.css({ - display: "", - width: "", - height: "", - left: "", - top: "", - "transform-origin": "", - transform: "", - opacity: "" - }) - } - }, { - key: "_makeDropdownFocusable", - value: function() { - -1 === this.dropdownEl.tabIndex && (this.dropdownEl.tabIndex = 0), - t(this.dropdownEl).children().attr("tabindex", 0) - } - }, { - key: "_focusFocusedItem", - value: function() { - this.focusedIndex >= 0 && this.focusedIndex < this.dropdownEl.children.length && this.dropdownEl.children[this.focusedIndex].focus() - } - }, { - key: "_getDropdownPosition", - value: function() { - this.el.offsetParent.getBoundingClientRect(); - var t = { - left: this.el.offsetLeft, - top: this.el.offsetTop, - width: this.el.offsetWidth, - height: this.el.offsetHeight - } - , e = (this.dropdownEl.offsetLeft, - this.dropdownEl.offsetTop, - this.dropdownEl.offsetWidth, - this.dropdownEl.offsetHeight, - this.el.getBoundingClientRect()) - , i = this.dropdownEl.getBoundingClientRect() - , n = i.height - , s = i.width - , o = t.left - , a = t.top - , r = { - left: o, - top: a, - height: n, - width: s - } - , l = this.dropdownEl.offsetParent - , h = M.checkPossibleAlignments(this.el, l, r, this.options.coverTrigger ? 0 : e.height) - , d = "top" - , u = this.options.alignment; - if (a += this.options.coverTrigger ? 0 : e.height, - h.top || (h.bottom ? d = "bottom" : h.spaceOnTop > h.spaceOnBottom ? (d = "bottom", - n += h.spaceOnTop, - a -= h.spaceOnTop) : n += h.spaceOnBottom), - !h[u]) { - var c = "left" === u ? "right" : "left"; - h[c] ? u = c : h.spaceOnLeft > h.spaceOnRight ? (u = "right", - s += h.spaceOnLeft, - o -= h.spaceOnLeft) : (u = "left", - s += h.spaceOnRight) - } - return "bottom" === d && (a = a - i.height + (this.options.coverTrigger ? e.height : 0)), - "right" === u && (o = o - i.width + e.width), - { - x: o, - y: a, - verticalAlignment: d, - horizontalAlignment: u, - height: n, - width: s - } - } - }, { - key: "_animateIn", - value: function(t) { - var i = this; - this.dropdownEl.style.left = t.x + "px", - this.dropdownEl.style.top = t.y + "px", - this.dropdownEl.style.height = t.height + "px", - this.dropdownEl.style.width = t.width + "px", - this.dropdownEl.style.transformOrigin = ("left" === t.horizontalAlignment ? "0" : "100%") + " " + ("top" === t.verticalAlignment ? "0" : "100%"), - e.remove(this.dropdownEl), - e({ - targets: this.dropdownEl, - opacity: { - value: [0, 1], - easing: "easeOutQuad" - }, - scaleX: [.3, 1], - scaleY: [.3, 1], - duration: this.options.inDuration, - easing: "easeOutQuint", - complete: function(t) { - if (i.dropdownEl.focus(), - "function" == typeof i.options.onOpenEnd) { - var e = t.animatables[0].target; - i.options.onOpenEnd.call(e, i.el) - } - } - }) - } - }, { - key: "_animateOut", - value: function() { - var t = this; - e.remove(this.dropdownEl), - e({ - targets: this.dropdownEl, - opacity: { - value: 0, - easing: "easeOutQuint" - }, - scaleX: .3, - scaleY: .3, - duration: this.options.outDuration, - easing: "easeOutQuint", - complete: function(e) { - if (t._resetDropdownStyles(), - "function" == typeof t.options.onCloseEnd) { - e.animatables[0].target; - t.options.onCloseEnd.call(t, t.el) - } - } - }) - } - }, { - key: "open", - value: function() { - if (!this.isOpen) { - this.isOpen = !0, - "function" == typeof this.options.onOpenStart && this.options.onOpenStart.call(this, this.el), - this._resetDropdownStyles(), - this.dropdownEl.style.display = "block"; - var t = this.options.constrainWidth ? this.el.getBoundingClientRect().width : this.dropdownEl.getBoundingClientRect().width; - this.dropdownEl.style.width = t + "px"; - var e = this._getDropdownPosition(); - this._animateIn(e), - this._setupTemporaryEventHandlers() - } - } - }, { - key: "close", - value: function() { - this.isOpen && (this.isOpen = !1, - this.focusedIndex = -1, - "function" == typeof this.options.onCloseStart && this.options.onCloseStart.call(this, this.el), - this._animateOut(), - this._removeTemporaryEventHandlers(), - this.el.focus()) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Dropdown - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - n._dropdowns = [], - window.M.Dropdown = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "dropdown", "M_Dropdown") -}(cash, M.anime), -function(t, e) { - "use strict"; - var i = { - opacity: .5, - inDuration: 250, - outDuration: 250, - onOpenStart: null, - onOpenEnd: null, - onCloseStart: null, - onCloseEnd: null, - dismissible: !0, - startingTop: "4%", - endingTop: "10%" - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_Modal = n, - n.options = t.extend({}, s.defaults, i), - n.isOpen = !1, - n.id = n.$el.attr("id"), - n._openingTrigger = void 0, - n.$overlay = t(''), - s._increment++, - s._count++, - n.$overlay[0].style.zIndex = 1e3 + 2 * s._increment, - n.el.style.zIndex = 1e3 + 2 * s._increment + 1, - n._setupEventHandlers(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - s._count--, - this._removeEventHandlers(), - this.el.removeAttribute("style"), - this.$overlay.remove(), - this.el.M_Modal = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleOverlayClickBound = this._handleOverlayClick.bind(this), - this._handleModalCloseClickBound = this._handleModalCloseClick.bind(this), - 1 === s._count && document.body.addEventListener("click", this._handleTriggerClick), - this.$overlay[0].addEventListener("click", this._handleOverlayClickBound), - this.el.addEventListener("click", this._handleModalCloseClickBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - 0 === s._count && document.body.removeEventListener("click", this._handleTriggerClick), - this.$overlay[0].removeEventListener("click", this._handleOverlayClickBound), - this.el.removeEventListener("click", this._handleModalCloseClickBound) - } - }, { - key: "_handleTriggerClick", - value: function(e) { - var i = t(e.target).closest(".modal-trigger"); - if (i.length) { - var n = M.getIdFromTrigger(i[0]) - , s = document.getElementById(n).M_Modal; - s && s.open(i), - e.preventDefault() - } - } - }, { - key: "_handleOverlayClick", - value: function() { - this.options.dismissible && this.close() - } - }, { - key: "_handleModalCloseClick", - value: function(e) { - t(e.target).closest(".modal-close").length && this.close() - } - }, { - key: "_handleKeydown", - value: function(t) { - 27 === t.keyCode && this.options.dismissible && this.close() - } - }, { - key: "_animateIn", - value: function() { - var i = this; - t.extend(this.el.style, { - display: "block", - opacity: 0 - }), - t.extend(this.$overlay[0].style, { - display: "block", - opacity: 0 - }), - e({ - targets: this.$overlay[0], - opacity: this.options.opacity, - duration: this.options.inDuration, - easing: "easeOutQuad" - }); - var n = { - targets: this.el, - duration: this.options.inDuration, - easing: "easeOutCubic", - complete: function() { - "function" == typeof i.options.onOpenEnd && i.options.onOpenEnd.call(i, i.el, i._openingTrigger) - } - }; - this.el.classList.contains("bottom-sheet") ? (t.extend(n, { - bottom: 0, - opacity: 1 - }), - e(n)) : (t.extend(n, { - top: [this.options.startingTop, this.options.endingTop], - opacity: 1, - scaleX: [.8, 1], - scaleY: [.8, 1] - }), - e(n)) - } - }, { - key: "_animateOut", - value: function() { - var i = this; - e({ - targets: this.$overlay[0], - opacity: 0, - duration: this.options.outDuration, - easing: "easeOutQuart" - }); - var n = { - targets: this.el, - duration: this.options.outDuration, - easing: "easeOutCubic", - complete: function() { - i.el.style.display = "none", - i.$overlay.remove(), - "function" == typeof i.options.onCloseEnd && i.options.onCloseEnd.call(i, i.el) - } - }; - this.el.classList.contains("bottom-sheet") ? (t.extend(n, { - bottom: "-100%", - opacity: 0 - }), - e(n)) : (t.extend(n, { - top: [this.options.endingTop, this.options.startingTop], - opacity: 0, - scaleX: .8, - scaleY: .8 - }), - e(n)) - } - }, { - key: "open", - value: function(t) { - if (!this.isOpen) { - this.isOpen = !0, - "function" == typeof this.options.onOpenStart && this.options.onOpenStart.call(this, this.el, this._openingTrigger); - return document.body.style.overflow = "hidden", - this.el.classList.add("open"), - this.el.insertAdjacentElement("afterend", this.$overlay[0]), - this._openingTrigger = t ? t[0] : void 0, - this.options.dismissible && (this._handleKeydownBound = this._handleKeydown.bind(this), - document.addEventListener("keydown", this._handleKeydownBound)), - e.remove(this.el), - e.remove(this.$overlay[0]), - this._animateIn(), - this - } - } - }, { - key: "close", - value: function() { - if (this.isOpen) - return this.isOpen = !1, - "function" == typeof this.options.onCloseStart && this.options.onCloseStart.call(this, this.el), - this.el.classList.remove("open"), - document.body.style.overflow = "", - this.options.dismissible && document.removeEventListener("keydown", this._handleKeydownBound), - e.remove(this.el), - e.remove(this.$overlay[0]), - this._animateOut(), - this - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Modal - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - n._increment = 0, - n._count = 0, - M.Modal = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "modal", "M_Modal") -}(cash, M.anime), -function(t, e) { - "use strict"; - var i = { - inDuration: 275, - outDuration: 200, - onOpenStart: null, - onOpenEnd: null, - onCloseStart: null, - onCloseEnd: null - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_Materialbox = n, - n.options = t.extend({}, s.defaults, i), - n.overlayActive = !1, - n.doneAnimating = !0, - n.placeholder = t("
    ").addClass("material-placeholder"), - n.originalWidth = 0, - n.originalHeight = 0, - n.originInlineStyles = n.$el.attr("style"), - n.caption = n.el.getAttribute("data-caption") || "", - n.$el.before(n.placeholder), - n.placeholder.append(n.$el), - n._setupEventHandlers(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.el.M_Materialbox = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleMaterialboxClickBound = this._handleMaterialboxClick.bind(this), - this.el.addEventListener("click", this._handleMaterialboxClickBound) - } - }, { - key: "removeEventHandlers", - value: function() { - this.el.removeEventListener("click", this._handleMaterialboxClickBound) - } - }, { - key: "_handleMaterialboxClick", - value: function(t) { - !1 === this.doneAnimating || this.overlayActive && this.doneAnimating ? this.close() : this.open() - } - }, { - key: "_handleWindowScroll", - value: function() { - this.overlayActive && this.close() - } - }, { - key: "_handleWindowResize", - value: function() { - this.overlayActive && this.close() - } - }, { - key: "_handleWindowEscape", - value: function(t) { - 27 === t.keyCode && this.doneAnimating && this.overlayActive && this.close() - } - }, { - key: "_makeAncestorsOverflowVisible", - value: function() { - this.ancestorsChanged = t(); - for (var e = this.placeholder[0].parentNode; null !== e && !t(e).is(document); ) { - var i = t(e); - "visible" !== i.css("overflow") && (i.css("overflow", "visible"), - void 0 === this.ancestorsChanged ? this.ancestorsChanged = i : this.ancestorsChanged = this.ancestorsChanged.add(i)), - e = e.parentNode - } - } - }, { - key: "_animateImageIn", - value: function() { - var t = this - , i = { - targets: this.el, - height: this.newHeight, - width: this.newWidth, - left: M.getDocumentScrollLeft() + this.windowWidth / 2 - this.placeholder.offset().left - this.newWidth / 2, - top: M.getDocumentScrollTop() + this.windowHeight / 2 - this.placeholder.offset().top - this.newHeight / 2, - duration: this.options.inDuration, - easing: "easeOutQuad", - complete: function() { - t.doneAnimating = !0, - "function" == typeof t.options.onOpenEnd && t.options.onOpenEnd.call(t, t.el) - } - }; - this.$el.hasClass("responsive-img") ? (i.maxWidth = this.newWidth, - i.width = [this.originalWidth, i.width]) : (i.left = [i.left, 0], - i.top = [i.top, 0]), - e(i) - } - }, { - key: "_animateImageOut", - value: function() { - var t = this - , i = { - targets: this.el, - width: this.originalWidth, - height: this.originalHeight, - left: 0, - top: 0, - duration: this.options.outDuration, - easing: "easeOutQuad", - complete: function() { - t.placeholder.css({ - height: "", - width: "", - position: "", - top: "", - left: "" - }), - t.$el.removeAttr("style"), - t.$el.attr("style", t.originInlineStyles), - t.$el.removeClass("active"), - t.doneAnimating = !0, - t.ancestorsChanged.length && t.ancestorsChanged.css("overflow", ""), - "function" == typeof t.options.onCloseEnd && t.options.onCloseEnd.call(t, t.el) - } - }; - e(i) - } - }, { - key: "_updateVars", - value: function() { - this.windowWidth = window.innerWidth, - this.windowHeight = window.innerHeight, - this.caption = this.el.getAttribute("data-caption") || "" - } - }, { - key: "open", - value: function() { - var i = this; - this._updateVars(), - this.originalWidth = this.el.getBoundingClientRect().width, - this.originalHeight = this.el.getBoundingClientRect().height, - this.doneAnimating = !1, - this.$el.addClass("active"), - this.overlayActive = !0, - "function" == typeof this.options.onOpenStart && this.options.onOpenStart.call(this, this.el), - this.placeholder.css({ - width: this.placeholder[0].getBoundingClientRect().width + "px", - height: this.placeholder[0].getBoundingClientRect().height + "px", - position: "relative", - top: 0, - left: 0 - }), - this._makeAncestorsOverflowVisible(), - this.$el.css({ - position: "absolute", - "z-index": 1e3, - "will-change": "left, top, width, height" - }), - this.$overlay = t('
    ').css({ - opacity: 0 - }).one("click", function() { - i.doneAnimating && i.close() - }), - this.$el.before(this.$overlay); - var n = this.$overlay[0].getBoundingClientRect(); - this.$overlay.css({ - width: this.windowWidth + "px", - height: this.windowHeight + "px", - left: -1 * n.left + "px", - top: -1 * n.top + "px" - }), - e.remove(this.el), - e.remove(this.$overlay[0]), - "" !== this.caption && e.remove(this.$photoCaption[0]), - e({ - targets: this.$overlay[0], - opacity: 1, - duration: this.options.inDuration, - easing: "easeOutQuad" - }), - "" !== this.caption && (this.$photoCaption = t('
    '), - this.$photoCaption.text(this.caption), - t("body").append(this.$photoCaption), - this.$photoCaption.css({ - display: "inline" - }), - e({ - targets: this.$photoCaption[0], - opacity: 1, - duration: this.options.inDuration, - easing: "easeOutQuad" - })); - var s = 0 - , o = this.originalWidth / this.windowWidth - , a = this.originalHeight / this.windowHeight; - this.newWidth = 0, - this.newHeight = 0, - o > a ? (s = this.originalHeight / this.originalWidth, - this.newWidth = .9 * this.windowWidth, - this.newHeight = .9 * this.windowWidth * s) : (s = this.originalWidth / this.originalHeight, - this.newWidth = .9 * this.windowHeight * s, - this.newHeight = .9 * this.windowHeight), - this._animateImageIn(), - this._handleWindowScrollBound = this._handleWindowScroll.bind(this), - this._handleWindowResizeBound = this._handleWindowResize.bind(this), - this._handleWindowEscapeBound = this._handleWindowEscape.bind(this), - window.addEventListener("scroll", this._handleWindowScrollBound), - window.addEventListener("resize", this._handleWindowResizeBound), - window.addEventListener("keyup", this._handleWindowEscapeBound) - } - }, { - key: "close", - value: function() { - var t = this; - this._updateVars(), - this.doneAnimating = !1, - "function" == typeof this.options.onCloseStart && this.options.onCloseStart.call(this, this.el), - e.remove(this.el), - e.remove(this.$overlay[0]), - "" !== this.caption && e.remove(this.$photoCaption[0]), - window.removeEventListener("scroll", this._handleWindowScrollBound), - window.removeEventListener("resize", this._handleWindowResizeBound), - window.removeEventListener("keyup", this._handleWindowEscapeBound), - e({ - targets: this.$overlay[0], - opacity: 0, - duration: this.options.outDuration, - easing: "easeOutQuad", - complete: function() { - t.overlayActive = !1, - t.$overlay.remove() - } - }), - this._animateImageOut(), - "" !== this.caption && e({ - targets: this.$photoCaption[0], - opacity: 0, - duration: this.options.outDuration, - easing: "easeOutQuad", - complete: function() { - t.$photoCaption.remove() - } - }) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Materialbox - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - M.Materialbox = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "materialbox", "M_Materialbox") -}(cash, M.anime), -function(t) { - "use strict"; - var e = { - responsiveThreshold: 0 - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_Parallax = s, - s.options = t.extend({}, n.defaults, i), - s.$img = s.$el.find("img").first(), - s._enabled = window.innerWidth > s.options.responsiveThreshold, - s._updateParallax(), - s._setupEventHandlers(), - s._setupStyles(), - n._parallaxes.push(s), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - n._parallaxes.splice(n._parallaxes.indexOf(this), 1), - this.$img[0].style.transform = "", - this._removeEventHandlers(), - this.$el[0].M_Parallax = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleImageLoadBound = this._handleImageLoad.bind(this), - this.$img[0].addEventListener("load", this._handleImageLoadBound), - 0 === n._parallaxes.length && (n._handleScrollThrottled = M.throttle(n._handleScroll, 5), - window.addEventListener("scroll", n._handleScrollThrottled), - n._handleWindowResizeThrottled = M.throttle(n._handleWindowResize, 5), - window.addEventListener("resize", n._handleWindowResizeThrottled)) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.$img[0].removeEventListener("load", this._handleImageLoadBound), - 0 === n._parallaxes.length && (window.removeEventListener("scroll", n._handleScrollThrottled), - window.removeEventListener("resize", n._handleWindowResizeThrottled)) - } - }, { - key: "_setupStyles", - value: function() { - this.$img[0].style.opacity = 1 - } - }, { - key: "_handleImageLoad", - value: function() { - this._updateParallax(), - this.$img.each(function() { - this.complete && t(this).trigger("load") - }) - } - }, { - key: "_updateParallax", - value: function() { - var t = this.$el.height() > 0 ? this.el.parentNode.offsetHeight : 500 - , e = this.$img[0].offsetHeight - t - , i = this.$el.offset().top + t - , n = this.$el.offset().top - , s = M.getDocumentScrollTop() - , o = window.innerHeight - , a = e * ((s + o - n) / (t + o)); - this._enabled ? i > s && n < s + o && (this.$img[0].style.transform = "translate3D(-50%, " + a + "px, 0)") : this.$img[0].style.transform = "" - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Parallax - } - }, { - key: "_handleScroll", - value: function() { - for (var t = 0; t < n._parallaxes.length; t++) { - var e = n._parallaxes[t]; - e._updateParallax.call(e) - } - } - }, { - key: "_handleWindowResize", - value: function() { - for (var t = 0; t < n._parallaxes.length; t++) { - var e = n._parallaxes[t]; - e._enabled = window.innerWidth > e.options.responsiveThreshold - } - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - i._parallaxes = [], - M.Parallax = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "parallax", "M_Parallax") -}(cash), -function(t, e) { - "use strict"; - var i = { - duration: 300, - onShow: null, - swipeable: !1, - responsiveThreshold: 1 / 0 - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_Tabs = n, - n.options = t.extend({}, s.defaults, i), - n.$tabLinks = n.$el.children("li.tab").children("a"), - n.index = 0, - n._setTabsAndTabWidth(), - n._setupActiveTabLink(), - n._createIndicator(), - n.options.swipeable ? n._setupSwipeableTabs() : n._setupNormalTabs(), - n._setupEventHandlers(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this._indicator.parentNode.removeChild(this._indicator), - this.options.swipeable ? this._teardownSwipeableTabs() : this._teardownNormalTabs(), - this.$el[0].M_Tabs = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleWindowResizeBound = this._handleWindowResize.bind(this), - window.addEventListener("resize", this._handleWindowResizeBound), - this._handleTabClickBound = this._handleTabClick.bind(this), - this.el.addEventListener("click", this._handleTabClickBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - window.removeEventListener("resize", this._handleWindowResizeBound), - this.el.removeEventListener("click", this._handleTabClickBound) - } - }, { - key: "_handleWindowResize", - value: function() { - this._setTabsAndTabWidth(), - 0 !== this.tabWidth && 0 !== this.tabsWidth && (this._indicator.style.left = this._calcLeftPos(this.$activeTabLink) + "px", - this._indicator.style.right = this._calcRightPos(this.$activeTabLink) + "px") - } - }, { - key: "_handleTabClick", - value: function(e) { - var i = this - , n = t(e.target).closest("li.tab") - , s = t(e.target).closest("a"); - if (s.length && s.parent().hasClass("tab")) - if (n.hasClass("disabled")) - e.preventDefault(); - else if (!s.attr("target")) { - this._setTabsAndTabWidth(), - this.$activeTabLink.removeClass("active"); - var o = this.$content; - this.$activeTabLink = s, - this.$content = t(M.escapeHash(s[0].hash)), - this.$tabLinks = this.$el.children("li.tab").children("a"), - this.$activeTabLink.addClass("active"); - var a = this.index; - this.index = Math.max(this.$tabLinks.index(s), 0), - this.options.swipeable ? this._tabsCarousel && this._tabsCarousel.set(this.index, function() { - "function" == typeof i.options.onShow && i.options.onShow.call(i, i.$content[0]) - }) : this.$content.length && (this.$content[0].style.display = "block", - this.$content.addClass("active"), - "function" == typeof this.options.onShow && this.options.onShow.call(this, this.$content[0]), - o.length && !o.is(this.$content) && (o[0].style.display = "none", - o.removeClass("active"))), - this._animateIndicator(a), - e.preventDefault() - } - } - }, { - key: "_createIndicator", - value: function() { - var t = this - , e = document.createElement("li"); - e.classList.add("indicator"), - this.el.appendChild(e), - this._indicator = e, - setTimeout(function() { - t._indicator.style.left = t._calcLeftPos(t.$activeTabLink) + "px", - t._indicator.style.right = t._calcRightPos(t.$activeTabLink) + "px" - }, 0) - } - }, { - key: "_setupActiveTabLink", - value: function() { - this.$activeTabLink = t(this.$tabLinks.filter('[href="' + location.hash + '"]')), - 0 === this.$activeTabLink.length && (this.$activeTabLink = this.$el.children("li.tab").children("a.active").first()), - 0 === this.$activeTabLink.length && (this.$activeTabLink = this.$el.children("li.tab").children("a").first()), - this.$tabLinks.removeClass("active"), - this.$activeTabLink[0].classList.add("active"), - this.index = Math.max(this.$tabLinks.index(this.$activeTabLink), 0), - this.$activeTabLink.length && (this.$content = t(M.escapeHash(this.$activeTabLink[0].hash)), - this.$content.addClass("active")) - } - }, { - key: "_setupSwipeableTabs", - value: function() { - var e = this; - window.innerWidth > this.options.responsiveThreshold && (this.options.swipeable = !1); - var i = t(); - this.$tabLinks.each(function(e) { - var n = t(M.escapeHash(e.hash)); - n.addClass("carousel-item"), - i = i.add(n) - }); - var n = t(''); - i.first().before(n), - n.append(i), - i[0].style.display = "", - this._tabsCarousel = M.Carousel.init(n[0], { - fullWidth: !0, - noWrap: !0, - onCycleTo: function(i) { - var n = e.index; - e.index = t(i).index(), - e.$activeTabLink.removeClass("active"), - e.$activeTabLink = e.$tabLinks.eq(e.index), - e.$activeTabLink.addClass("active"), - e._animateIndicator(n), - "function" == typeof e.options.onShow && e.options.onShow.call(e, e.$content[0]) - } - }) - } - }, { - key: "_teardownSwipeableTabs", - value: function() { - var t = this._tabsCarousel.$el; - this._tabsCarousel.destroy(), - t.after(t.children()), - t.remove() - } - }, { - key: "_setupNormalTabs", - value: function() { - this.$tabLinks.not(this.$activeTabLink).each(function(e) { - if (e.hash) { - var i = t(M.escapeHash(e.hash)); - i.length && (i[0].style.display = "none") - } - }) - } - }, { - key: "_teardownNormalTabs", - value: function() { - this.$tabLinks.each(function(e) { - if (e.hash) { - var i = t(M.escapeHash(e.hash)); - i.length && (i[0].style.display = "") - } - }) - } - }, { - key: "_setTabsAndTabWidth", - value: function() { - this.tabsWidth = this.$el.width(), - this.tabWidth = Math.max(this.tabsWidth, this.el.scrollWidth) / this.$tabLinks.length - } - }, { - key: "_calcRightPos", - value: function(t) { - return Math.ceil(this.tabsWidth - t.position().left - t[0].getBoundingClientRect().width) - } - }, { - key: "_calcLeftPos", - value: function(t) { - return Math.floor(t.position().left) - } - }, { - key: "updateTabIndicator", - value: function() { - this._animateIndicator(this.index) - } - }, { - key: "_animateIndicator", - value: function(t) { - var i = 0 - , n = 0; - this.index - t >= 0 ? i = 90 : n = 90; - var s = { - targets: this._indicator, - left: { - value: this._calcLeftPos(this.$activeTabLink), - delay: i - }, - right: { - value: this._calcRightPos(this.$activeTabLink), - delay: n - }, - duration: this.options.duration, - easing: "easeOutQuad" - }; - e.remove(this._indicator), - e(s) - } - }, { - key: "select", - value: function(t) { - var e = this.$tabLinks.filter('[href="#' + t + '"]'); - e.length && e.trigger("click") - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Tabs - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - window.M.Tabs = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "tabs", "M_Tabs") -}(cash, M.anime), -function(t, e) { - "use strict"; - var i = { - exitDelay: 200, - enterDelay: 0, - html: null, - margin: 5, - inDuration: 250, - outDuration: 200, - position: "bottom", - transitionMovement: 10 - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_Tooltip = n, - n.options = t.extend({}, s.defaults, i), - n.isOpen = !1, - n.isHovered = !1, - n._appendTooltipEl(), - n._setupEventHandlers(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - t(this.tooltipEl).remove(), - this._removeEventHandlers(), - this.$el[0].M_Tooltip = void 0 - } - }, { - key: "_appendTooltipEl", - value: function() { - var t = document.createElement("div"); - t.classList.add("material-tooltip"), - this.tooltipEl = t; - var e = document.createElement("div"); - e.classList.add("tooltip-content"), - e.innerHTML = this.options.html, - t.appendChild(e), - document.body.appendChild(t) - } - }, { - key: "_updateTooltipContent", - value: function() { - this.tooltipEl.querySelector(".tooltip-content").innerHTML = this.options.html - } - }, { - key: "_setupEventHandlers", - value: function() { - this.handleMouseEnterBound = this._handleMouseEnter.bind(this), - this.handleMouseLeaveBound = this._handleMouseLeave.bind(this), - this.$el[0].addEventListener("mouseenter", this.handleMouseEnterBound), - this.$el[0].addEventListener("mouseleave", this.handleMouseLeaveBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.$el[0].removeEventListener("mouseenter", this.handleMouseEnterBound), - this.$el[0].removeEventListener("mouseleave", this.handleMouseLeaveBound) - } - }, { - key: "open", - value: function() { - this.isOpen || (this.isOpen = !0, - this.options = t.extend({}, this.options, this._getAttributeOptions()), - this._updateTooltipContent(), - this._setEnterDelayTimeout()) - } - }, { - key: "close", - value: function() { - this.isOpen && (this.isOpen = !1, - this._setExitDelayTimeout()) - } - }, { - key: "_setExitDelayTimeout", - value: function() { - var t = this; - clearTimeout(this._exitDelayTimeout), - this._exitDelayTimeout = setTimeout(function() { - t.isHovered || t._animateOut() - }, this.options.exitDelay) - } - }, { - key: "_setEnterDelayTimeout", - value: function() { - var t = this; - clearTimeout(this._enterDelayTimeout), - this._enterDelayTimeout = setTimeout(function() { - t.isHovered && t._animateIn() - }, this.options.enterDelay) - } - }, { - key: "_positionTooltip", - value: function() { - var e = this.$el[0] - , i = this.tooltipEl - , n = e.offsetHeight - , s = e.offsetWidth - , o = i.offsetHeight - , a = i.offsetWidth - , r = void 0 - , l = this.options.margin - , h = void 0 - , d = void 0; - this.xMovement = 0, - this.yMovement = 0, - h = e.getBoundingClientRect().top + M.getDocumentScrollTop(), - d = e.getBoundingClientRect().left + M.getDocumentScrollLeft(), - "top" === this.options.position ? (h += -o - l, - d += s / 2 - a / 2, - this.yMovement = -this.options.transitionMovement) : "right" === this.options.position ? (h += n / 2 - o / 2, - d += s + l, - this.xMovement = this.options.transitionMovement) : "left" === this.options.position ? (h += n / 2 - o / 2, - d += -a - l, - this.xMovement = -this.options.transitionMovement) : (h += n + l, - d += s / 2 - a / 2, - this.yMovement = this.options.transitionMovement), - r = this._repositionWithinScreen(d, h, a, o), - t(i).css({ - top: r.y + "px", - left: r.x + "px" - }) - } - }, { - key: "_repositionWithinScreen", - value: function(t, e, i, n) { - var s = M.getDocumentScrollLeft() - , o = M.getDocumentScrollTop() - , a = t - s - , r = e - o - , l = { - left: a, - top: r, - width: i, - height: n - } - , h = this.options.margin + this.options.transitionMovement - , d = M.checkWithinContainer(document.body, l, h); - return d.left ? a = h : d.right && (a -= a + i - window.innerWidth), - d.top ? r = h : d.bottom && (r -= r + n - window.innerHeight), - { - x: a + s, - y: r + o - } - } - }, { - key: "_animateIn", - value: function() { - this._positionTooltip(), - this.tooltipEl.style.visibility = "visible", - e.remove(this.tooltipEl), - e({ - targets: this.tooltipEl, - opacity: 1, - translateX: this.xMovement, - translateY: this.yMovement, - duration: this.options.inDuration, - easing: "easeOutCubic" - }) - } - }, { - key: "_animateOut", - value: function() { - e.remove(this.tooltipEl), - e({ - targets: this.tooltipEl, - opacity: 0, - translateX: 0, - translateY: 0, - duration: this.options.outDuration, - easing: "easeOutCubic" - }) - } - }, { - key: "_handleMouseEnter", - value: function() { - this.isHovered = !0, - this.open() - } - }, { - key: "_handleMouseLeave", - value: function() { - this.isHovered = !1, - this.close() - } - }, { - key: "_getAttributeOptions", - value: function() { - var t = {} - , e = this.$el[0].getAttribute("data-tooltip") - , i = this.$el[0].getAttribute("data-position"); - return e && (t.html = e), - i && (t.position = i), - t - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Tooltip - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - M.Tooltip = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "tooltip", "M_Tooltip") -}(cash, M.anime), -function(t) { - "use strict"; - var e = e || {} - , i = document.querySelectorAll.bind(document); - function n(t) { - var e = ""; - for (var i in t) - t.hasOwnProperty(i) && (e += i + ":" + t[i] + ";"); - return e - } - var s = { - duration: 750, - show: function(t, e) { - if (2 === t.button) - return !1; - var i = e || this - , o = document.createElement("div"); - o.className = "waves-ripple", - i.appendChild(o); - var a = function(t) { - var e, i, n = { - top: 0, - left: 0 - }, s = t && t.ownerDocument; - return e = s.documentElement, - void 0 !== t.getBoundingClientRect && (n = t.getBoundingClientRect()), - i = function(t) { - return null !== (e = t) && e === e.window ? t : 9 === t.nodeType && t.defaultView; - var e - }(s), - { - top: n.top + i.pageYOffset - e.clientTop, - left: n.left + i.pageXOffset - e.clientLeft - } - }(i) - , r = t.pageY - a.top - , l = t.pageX - a.left - , h = "scale(" + i.clientWidth / 100 * 10 + ")"; - "touches"in t && (r = t.touches[0].pageY - a.top, - l = t.touches[0].pageX - a.left), - o.setAttribute("data-hold", Date.now()), - o.setAttribute("data-scale", h), - o.setAttribute("data-x", l), - o.setAttribute("data-y", r); - var d = { - top: r + "px", - left: l + "px" - }; - o.className = o.className + " waves-notransition", - o.setAttribute("style", n(d)), - o.className = o.className.replace("waves-notransition", ""), - d["-webkit-transform"] = h, - d["-moz-transform"] = h, - d["-ms-transform"] = h, - d["-o-transform"] = h, - d.transform = h, - d.opacity = "1", - d["-webkit-transition-duration"] = s.duration + "ms", - d["-moz-transition-duration"] = s.duration + "ms", - d["-o-transition-duration"] = s.duration + "ms", - d["transition-duration"] = s.duration + "ms", - d["-webkit-transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)", - d["-moz-transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)", - d["-o-transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)", - d["transition-timing-function"] = "cubic-bezier(0.250, 0.460, 0.450, 0.940)", - o.setAttribute("style", n(d)) - }, - hide: function(t) { - o.touchup(t); - var e = this - , i = (e.clientWidth, - null) - , a = e.getElementsByClassName("waves-ripple"); - if (!(a.length > 0)) - return !1; - var r = (i = a[a.length - 1]).getAttribute("data-x") - , l = i.getAttribute("data-y") - , h = i.getAttribute("data-scale") - , d = 350 - (Date.now() - Number(i.getAttribute("data-hold"))); - d < 0 && (d = 0), - setTimeout(function() { - var t = { - top: l + "px", - left: r + "px", - opacity: "0", - "-webkit-transition-duration": s.duration + "ms", - "-moz-transition-duration": s.duration + "ms", - "-o-transition-duration": s.duration + "ms", - "transition-duration": s.duration + "ms", - "-webkit-transform": h, - "-moz-transform": h, - "-ms-transform": h, - "-o-transform": h, - transform: h - }; - i.setAttribute("style", n(t)), - setTimeout(function() { - try { - e.removeChild(i) - } catch (t) { - return !1 - } - }, s.duration) - }, d) - }, - wrapInput: function(t) { - for (var e = 0; e < t.length; e++) { - var i = t[e]; - if ("input" === i.tagName.toLowerCase()) { - var n = i.parentNode; - if ("i" === n.tagName.toLowerCase() && -1 !== n.className.indexOf("waves-effect")) - continue; - var s = document.createElement("i"); - s.className = i.className + " waves-input-wrapper"; - var o = i.getAttribute("style"); - o || (o = ""), - s.setAttribute("style", o), - i.className = "waves-button-input", - i.removeAttribute("style"), - n.replaceChild(s, i), - s.appendChild(i) - } - } - } - } - , o = { - touches: 0, - allowEvent: function(t) { - var e = !0; - return "touchstart" === t.type ? o.touches += 1 : "touchend" === t.type || "touchcancel" === t.type ? setTimeout(function() { - o.touches > 0 && (o.touches -= 1) - }, 500) : "mousedown" === t.type && o.touches > 0 && (e = !1), - e - }, - touchup: function(t) { - o.allowEvent(t) - } - }; - function a(e) { - var i = function(t) { - if (!1 === o.allowEvent(t)) - return null; - for (var e = null, i = t.target || t.srcElement; null !== i.parentNode; ) { - if (!(i instanceof SVGElement) && -1 !== i.className.indexOf("waves-effect")) { - e = i; - break - } - i = i.parentNode - } - return e - }(e); - null !== i && (s.show(e, i), - "ontouchstart"in t && (i.addEventListener("touchend", s.hide, !1), - i.addEventListener("touchcancel", s.hide, !1)), - i.addEventListener("mouseup", s.hide, !1), - i.addEventListener("mouseleave", s.hide, !1), - i.addEventListener("dragend", s.hide, !1)) - } - e.displayEffect = function(e) { - "duration"in (e = e || {}) && (s.duration = e.duration), - s.wrapInput(i(".waves-effect")), - "ontouchstart"in t && document.body.addEventListener("touchstart", a, !1), - document.body.addEventListener("mousedown", a, !1) - } - , - e.attach = function(e) { - "input" === e.tagName.toLowerCase() && (s.wrapInput([e]), - e = e.parentNode), - "ontouchstart"in t && e.addEventListener("touchstart", a, !1), - e.addEventListener("mousedown", a, !1) - } - , - t.Waves = e, - document.addEventListener("DOMContentLoaded", function() { - e.displayEffect() - }, !1) -}(window), -function(t, e) { - "use strict"; - var i = { - html: "", - displayLength: 4e3, - inDuration: 300, - outDuration: 375, - classes: "", - completeCallback: null, - activationPercent: .8 - } - , n = function() { - function n(e) { - _classCallCheck(this, n), - this.options = t.extend({}, n.defaults, e), - this.message = this.options.html, - this.panning = !1, - this.timeRemaining = this.options.displayLength, - 0 === n._toasts.length && n._createContainer(), - n._toasts.push(this); - var i = this._createToast(); - i.M_Toast = this, - this.el = i, - this._animateIn(), - this._setTimer() - } - return _createClass(n, [{ - key: "_createToast", - value: function() { - var e = document.createElement("div"); - return e.classList.add("toast"), - this.options.classes.length && t(e).addClass(this.options.classes), - ("object" == typeof HTMLElement ? this.message instanceof HTMLElement : this.message && "object" == typeof this.message && null !== this.message && 1 === this.message.nodeType && "string" == typeof this.message.nodeName) ? e.appendChild(this.message) : this.message.jquery ? t(e).append(this.message[0]) : e.innerHTML = this.message, - n._container.appendChild(e), - e - } - }, { - key: "_animateIn", - value: function() { - e({ - targets: this.el, - top: 0, - opacity: 1, - duration: 300, - easing: "easeOutCubic" - }) - } - }, { - key: "_setTimer", - value: function() { - var t = this; - this.timeRemaining !== 1 / 0 && (this.counterInterval = setInterval(function() { - t.panning || (t.timeRemaining -= 20), - t.timeRemaining <= 0 && t.dismiss() - }, 20)) - } - }, { - key: "dismiss", - value: function() { - var t = this; - window.clearInterval(this.counterInterval); - var i = this.el.offsetWidth * this.options.activationPercent; - this.wasSwiped && (this.el.style.transition = "transform .05s, opacity .05s", - this.el.style.transform = "translateX(" + i + "px)", - this.el.style.opacity = 0), - e({ - targets: this.el, - opacity: 0, - marginTop: -40, - duration: this.options.outDuration, - easing: "easeOutExpo", - complete: function() { - "function" == typeof t.options.completeCallback && t.options.completeCallback(), - t.el.parentNode.removeChild(t.el), - n._toasts.splice(n._toasts.indexOf(t), 1), - 0 === n._toasts.length && n._removeContainer() - } - }) - } - }], [{ - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Toast - } - }, { - key: "_createContainer", - value: function() { - var t = document.createElement("div"); - t.setAttribute("id", "toast-container"), - t.addEventListener("touchstart", n._onDragStart), - t.addEventListener("touchmove", n._onDragMove), - t.addEventListener("touchend", n._onDragEnd), - t.addEventListener("mousedown", n._onDragStart), - document.addEventListener("mousemove", n._onDragMove), - document.addEventListener("mouseup", n._onDragEnd), - document.body.appendChild(t), - n._container = t - } - }, { - key: "_removeContainer", - value: function() { - document.removeEventListener("mousemove", n._onDragMove), - document.removeEventListener("mouseup", n._onDragEnd), - n._container.parentNode.removeChild(n._container), - n._container = null - } - }, { - key: "_onDragStart", - value: function(e) { - if (e.target && t(e.target).closest(".toast").length) { - var i = t(e.target).closest(".toast")[0].M_Toast; - i.panning = !0, - n._draggedToast = i, - i.el.classList.add("panning"), - i.el.style.transition = "", - i.startingXPos = n._xPos(e), - i.time = Date.now(), - i.xPos = n._xPos(e) - } - } - }, { - key: "_onDragMove", - value: function(t) { - if (n._draggedToast) { - t.preventDefault(); - var e = n._draggedToast; - e.deltaX = Math.abs(e.xPos - n._xPos(t)), - e.xPos = n._xPos(t), - e.velocityX = e.deltaX / (Date.now() - e.time), - e.time = Date.now(); - var i = e.xPos - e.startingXPos - , s = e.el.offsetWidth * e.options.activationPercent; - e.el.style.transform = "translateX(" + i + "px)", - e.el.style.opacity = 1 - Math.abs(i / s) - } - } - }, { - key: "_onDragEnd", - value: function() { - if (n._draggedToast) { - var t = n._draggedToast; - t.panning = !1, - t.el.classList.remove("panning"); - var e = t.xPos - t.startingXPos - , i = t.el.offsetWidth * t.options.activationPercent; - Math.abs(e) > i || t.velocityX > 1 ? (t.wasSwiped = !0, - t.dismiss()) : (t.el.style.transition = "transform .2s, opacity .2s", - t.el.style.transform = "", - t.el.style.opacity = ""), - n._draggedToast = null - } - } - }, { - key: "_xPos", - value: function(t) { - return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientX : t.clientX - } - }, { - key: "dismissAll", - value: function() { - for (var t in n._toasts) - n._toasts[t].dismiss() - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - n - }(); - n._toasts = [], - n._container = null, - n._draggedToast = null, - M.Toast = n, - M.toast = function(t) { - return new n(t) - } -}(cash, M.anime), -function(t, e) { - "use strict"; - var i = { - edge: "left", - draggable: !0, - inDuration: 250, - outDuration: 200, - onOpenStart: null, - onOpenEnd: null, - onCloseStart: null, - onCloseEnd: null - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_Sidenav = n, - n.id = n.$el.attr("id"), - n.options = t.extend({}, s.defaults, i), - n.isOpen = !1, - n.isFixed = n.el.classList.contains("sidenav-fixed"), - n.isDragged = !1, - n._createOverlay(), - n._createDragTarget(), - n._setupEventHandlers(), - n._setupClasses(), - n._setupFixed(), - s._sidenavs.push(n), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this._overlay.parentNode.removeChild(this._overlay), - this.dragTarget.parentNode.removeChild(this.dragTarget), - this.el.M_Sidenav = void 0; - var t = s._sidenavs.indexOf(this); - t >= 0 && s._sidenavs.splice(t, 1) - } - }, { - key: "_createOverlay", - value: function() { - var t = document.createElement("div"); - this._closeBound = this.close.bind(this), - t.classList.add("sidenav-overlay"), - t.addEventListener("click", this._closeBound), - document.body.appendChild(t), - this._overlay = t - } - }, { - key: "_setupEventHandlers", - value: function() { - 0 === s._sidenavs.length && document.body.addEventListener("click", this._handleTriggerClick), - this._handleDragTargetDragBound = this._handleDragTargetDrag.bind(this), - this._handleDragTargetReleaseBound = this._handleDragTargetRelease.bind(this), - this._handleCloseDragBound = this._handleCloseDrag.bind(this), - this._handleCloseReleaseBound = this._handleCloseRelease.bind(this), - this._handleCloseTriggerClickBound = this._handleCloseTriggerClick.bind(this), - this.dragTarget.addEventListener("touchmove", this._handleDragTargetDragBound), - this.dragTarget.addEventListener("touchend", this._handleDragTargetReleaseBound), - this._overlay.addEventListener("touchmove", this._handleCloseDragBound), - this._overlay.addEventListener("touchend", this._handleCloseReleaseBound), - this.el.addEventListener("touchmove", this._handleCloseDragBound), - this.el.addEventListener("touchend", this._handleCloseReleaseBound), - this.el.addEventListener("click", this._handleCloseTriggerClickBound), - this.isFixed && (this._handleWindowResizeBound = this._handleWindowResize.bind(this), - window.addEventListener("resize", this._handleWindowResizeBound)) - } - }, { - key: "_removeEventHandlers", - value: function() { - 1 === s._sidenavs.length && document.body.removeEventListener("click", this._handleTriggerClick), - this.dragTarget.removeEventListener("touchmove", this._handleDragTargetDragBound), - this.dragTarget.removeEventListener("touchend", this._handleDragTargetReleaseBound), - this._overlay.removeEventListener("touchmove", this._handleCloseDragBound), - this._overlay.removeEventListener("touchend", this._handleCloseReleaseBound), - this.el.removeEventListener("touchmove", this._handleCloseDragBound), - this.el.removeEventListener("touchend", this._handleCloseReleaseBound), - this.el.removeEventListener("click", this._handleCloseTriggerClickBound), - this.isFixed && window.removeEventListener("resize", this._handleWindowResizeBound) - } - }, { - key: "_handleTriggerClick", - value: function(e) { - var i = t(e.target).closest(".sidenav-trigger"); - if (e.target && i.length) { - var n = M.getIdFromTrigger(i[0]) - , s = document.getElementById(n).M_Sidenav; - s && s.open(i), - e.preventDefault() - } - } - }, { - key: "_startDrag", - value: function(t) { - var i = t.targetTouches[0].clientX; - this.isDragged = !0, - this._startingXpos = i, - this._xPos = this._startingXpos, - this._time = Date.now(), - this._width = this.el.getBoundingClientRect().width, - this._overlay.style.display = "block", - e.remove(this.el), - e.remove(this._overlay) - } - }, { - key: "_dragMoveUpdate", - value: function(t) { - var e = t.targetTouches[0].clientX; - this.deltaX = Math.abs(this._xPos - e), - this._xPos = e, - this.velocityX = this.deltaX / (Date.now() - this._time), - this._time = Date.now() - } - }, { - key: "_handleDragTargetDrag", - value: function(t) { - this.isDragged || this._startDrag(t), - this._dragMoveUpdate(t); - var e = this._xPos - this._startingXpos - , i = e > 0 ? "right" : "left"; - e = Math.min(this._width, Math.abs(e)), - this.options.edge === i && (e = 0); - var n = e - , s = "translateX(-100%)"; - "right" === this.options.edge && (s = "translateX(100%)", - n = -n), - this.percentOpen = Math.min(1, e / this._width), - this.el.style.transform = s + " translateX(" + n + "px)", - this._overlay.style.opacity = this.percentOpen - } - }, { - key: "_handleDragTargetRelease", - value: function() { - this.isDragged && (this.percentOpen > .5 ? this.open() : this._animateOut(), - this.isDragged = !1) - } - }, { - key: "_handleCloseDrag", - value: function(t) { - if (this.isOpen) { - this.isDragged || this._startDrag(t), - this._dragMoveUpdate(t); - var e = this._xPos - this._startingXpos - , i = e > 0 ? "right" : "left"; - e = Math.min(this._width, Math.abs(e)), - this.options.edge !== i && (e = 0); - var n = -e; - "right" === this.options.edge && (n = -n), - this.percentOpen = Math.min(1, 1 - e / this._width), - this.el.style.transform = "translateX(" + n + "px)", - this._overlay.style.opacity = this.percentOpen - } - } - }, { - key: "_handleCloseRelease", - value: function() { - this.isOpen && this.isDragged && (this.percentOpen > .5 ? this._animateIn() : this.close(), - this.isDragged = !1) - } - }, { - key: "_handleCloseTriggerClick", - value: function(e) { - t(e.target).closest(".sidenav-close").length && this.close() - } - }, { - key: "_handleWindowResize", - value: function() { - window.innerWidth > 992 ? this.open() : this.close() - } - }, { - key: "_setupClasses", - value: function() { - "right" === this.options.edge && (this.el.classList.add("right-aligned"), - this.dragTarget.classList.add("right-aligned")) - } - }, { - key: "_removeClasses", - value: function() { - this.el.classList.remove("right-aligned"), - this.dragTarget.classList.remove("right-aligned") - } - }, { - key: "_setupFixed", - value: function() { - this.isFixed && window.innerWidth > 992 && this.open() - } - }, { - key: "_createDragTarget", - value: function() { - var t = document.createElement("div"); - t.classList.add("drag-target"), - document.body.appendChild(t), - this.dragTarget = t - } - }, { - key: "_preventBodyScrolling", - value: function() { - document.body.style.overflow = "hidden" - } - }, { - key: "_enableBodyScrolling", - value: function() { - document.body.style.overflow = "" - } - }, { - key: "open", - value: function() { - !0 !== this.isOpen && (this.isOpen = !0, - "function" == typeof this.options.onOpenStart && this.options.onOpenStart.call(this, this.el), - this.isFixed && window.innerWidth > 992 ? (e.remove(this.el), - e({ - targets: this.el, - translateX: 0, - duration: 0, - easing: "easeOutQuad" - }), - this._enableBodyScrolling(), - this._overlay.style.display = "none") : (this._preventBodyScrolling(), - this.isDragged && 1 == this.percentOpen || this._animateIn())) - } - }, { - key: "close", - value: function() { - if (!1 !== this.isOpen) - if (this.isOpen = !1, - "function" == typeof this.options.onCloseStart && this.options.onCloseStart.call(this, this.el), - this.isFixed && window.innerWidth > 992) { - var t = "left" === this.options.edge ? "-105%" : "105%"; - this.el.style.transform = "translateX(" + t + ")" - } else - this._enableBodyScrolling(), - this.isDragged && 0 == this.percentOpen ? this._overlay.style.display = "none" : this._animateOut() - } - }, { - key: "_animateIn", - value: function() { - this._animateSidenavIn(), - this._animateOverlayIn() - } - }, { - key: "_animateSidenavIn", - value: function() { - var t = this - , i = "left" === this.options.edge ? -1 : 1; - this.isDragged && (i = "left" === this.options.edge ? i + this.percentOpen : i - this.percentOpen), - e.remove(this.el), - e({ - targets: this.el, - translateX: [100 * i + "%", 0], - duration: this.options.inDuration, - easing: "easeOutQuad", - complete: function() { - "function" == typeof t.options.onOpenEnd && t.options.onOpenEnd.call(t, t.el) - } - }) - } - }, { - key: "_animateOverlayIn", - value: function() { - var i = 0; - this.isDragged ? i = this.percentOpen : t(this._overlay).css({ - display: "block" - }), - e.remove(this._overlay), - e({ - targets: this._overlay, - opacity: [i, 1], - duration: this.options.inDuration, - easing: "easeOutQuad" - }) - } - }, { - key: "_animateOut", - value: function() { - this._animateSidenavOut(), - this._animateOverlayOut() - } - }, { - key: "_animateSidenavOut", - value: function() { - var t = this - , i = "left" === this.options.edge ? -1 : 1 - , n = 0; - this.isDragged && (n = "left" === this.options.edge ? i + this.percentOpen : i - this.percentOpen), - e.remove(this.el), - e({ - targets: this.el, - translateX: [100 * n + "%", 105 * i + "%"], - duration: this.options.outDuration, - easing: "easeOutQuad", - complete: function() { - "function" == typeof t.options.onCloseEnd && t.options.onCloseEnd.call(t, t.el) - } - }) - } - }, { - key: "_animateOverlayOut", - value: function() { - var i = this; - e.remove(this._overlay), - e({ - targets: this._overlay, - opacity: 0, - duration: this.options.outDuration, - easing: "easeOutQuad", - complete: function() { - t(i._overlay).css("display", "none") - } - }) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Sidenav - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - n._sidenavs = [], - window.M.Sidenav = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "sidenav", "M_Sidenav") -}(cash, M.anime), -function(t, e) { - "use strict"; - var i = { - throttle: 100, - scrollOffset: 200, - activeClass: "active", - getActiveElement: function(t) { - return 'a[href="#' + t + '"]' - } - } - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_ScrollSpy = n, - n.options = t.extend({}, s.defaults, i), - s._elements.push(n), - s._count++, - s._increment++, - n.tickId = -1, - n.id = s._increment, - n._setupEventHandlers(), - n._handleWindowScroll(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - s._elements.splice(s._elements.indexOf(this), 1), - s._elementsInView.splice(s._elementsInView.indexOf(this), 1), - s._visibleElements.splice(s._visibleElements.indexOf(this.$el), 1), - s._count--, - this._removeEventHandlers(), - t(this.options.getActiveElement(this.$el.attr("id"))).removeClass(this.options.activeClass), - this.el.M_ScrollSpy = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - var t = M.throttle(this._handleWindowScroll, 200); - this._handleThrottledResizeBound = t.bind(this), - this._handleWindowScrollBound = this._handleWindowScroll.bind(this), - 1 === s._count && (window.addEventListener("scroll", this._handleWindowScrollBound), - window.addEventListener("resize", this._handleThrottledResizeBound), - document.body.addEventListener("click", this._handleTriggerClick)) - } - }, { - key: "_removeEventHandlers", - value: function() { - 0 === s._count && (window.removeEventListener("scroll", this._handleWindowScrollBound), - window.removeEventListener("resize", this._handleThrottledResizeBound), - document.body.removeEventListener("click", this._handleTriggerClick)) - } - }, { - key: "_handleTriggerClick", - value: function(i) { - for (var n = t(i.target), o = s._elements.length - 1; o >= 0; o--) { - var a = s._elements[o]; - if (n.is('a[href="#' + a.$el.attr("id") + '"]')) { - i.preventDefault(); - var r = a.$el.offset().top + 1; - e({ - targets: [document.documentElement, document.body], - scrollTop: r - a.options.scrollOffset, - duration: 400, - easing: "easeOutCubic" - }); - break - } - } - } - }, { - key: "_handleWindowScroll", - value: function() { - s._ticks++; - for (var t = M.getDocumentScrollTop(), e = M.getDocumentScrollLeft(), i = e + window.innerWidth, n = t + window.innerHeight, o = s._findElements(t, i, n, e), a = 0; a < o.length; a++) { - var r = o[a]; - r.tickId < 0 && r._enter(), - r.tickId = s._ticks - } - for (var l = 0; l < s._elementsInView.length; l++) { - var h = s._elementsInView[l] - , d = h.tickId; - d >= 0 && d !== s._ticks && (h._exit(), - h.tickId = -1) - } - s._elementsInView = o - } - }, { - key: "_enter", - value: function() { - s._visibleElements = s._visibleElements.filter(function(t) { - return 0 != t.height() - }), - s._visibleElements[0] ? (t(this.options.getActiveElement(s._visibleElements[0].attr("id"))).removeClass(this.options.activeClass), - s._visibleElements[0][0].M_ScrollSpy && this.id < s._visibleElements[0][0].M_ScrollSpy.id ? s._visibleElements.unshift(this.$el) : s._visibleElements.push(this.$el)) : s._visibleElements.push(this.$el), - t(this.options.getActiveElement(s._visibleElements[0].attr("id"))).addClass(this.options.activeClass) - } - }, { - key: "_exit", - value: function() { - var e = this; - s._visibleElements = s._visibleElements.filter(function(t) { - return 0 != t.height() - }), - s._visibleElements[0] && (t(this.options.getActiveElement(s._visibleElements[0].attr("id"))).removeClass(this.options.activeClass), - s._visibleElements = s._visibleElements.filter(function(t) { - return t.attr("id") != e.$el.attr("id") - }), - s._visibleElements[0] && t(this.options.getActiveElement(s._visibleElements[0].attr("id"))).addClass(this.options.activeClass)) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_ScrollSpy - } - }, { - key: "_findElements", - value: function(t, e, i, n) { - for (var o = [], a = 0; a < s._elements.length; a++) { - var r = s._elements[a] - , l = t + r.options.scrollOffset || 200; - if (r.$el.height() > 0) { - var h = r.$el.offset().top - , d = r.$el.offset().left - , u = d + r.$el.width() - , c = h + r.$el.height(); - !(d > e || u < n || h > i || c < l) && o.push(r) - } - } - return o - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - n._elements = [], - n._elementsInView = [], - n._visibleElements = [], - n._count = 0, - n._increment = 0, - n._ticks = 0, - M.ScrollSpy = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "scrollSpy", "M_ScrollSpy") -}(cash, M.anime), -function(t) { - "use strict"; - var e = { - data: {}, - limit: 1 / 0, - onAutocomplete: null, - minLength: 1, - sortFunction: function(t, e, i) { - return t.indexOf(i) - e.indexOf(i) - } - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_Autocomplete = s, - s.options = t.extend({}, n.defaults, i), - s.isOpen = !1, - s.count = 0, - s.activeIndex = -1, - s.oldVal, - s.$inputField = s.$el.closest(".input-field"), - s.$active = t(), - s._setupDropdown(), - s._setupEventHandlers(), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this._removeDropdown(), - this.el.M_Autocomplete = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleInputBlurBound = this._handleInputBlur.bind(this), - this._handleInputKeyupAndFocusBound = this._handleInputKeyupAndFocus.bind(this), - this._handleInputKeydownBound = this._handleInputKeydown.bind(this), - this._handleContainerMousedownAndTouchstartBound = this._handleContainerMousedownAndTouchstart.bind(this), - this.el.addEventListener("blur", this._handleInputBlurBound), - this.el.addEventListener("keyup", this._handleInputKeyupAndFocusBound), - this.el.addEventListener("focus", this._handleInputKeyupAndFocusBound), - this.el.addEventListener("keydown", this._handleInputKeydownBound), - this.container.addEventListener("mousedown", this._handleContainerMousedownAndTouchstartBound), - void 0 !== window.ontouchstart && this.container.addEventListener("touchstart", this._handleContainerMousedownAndTouchstartBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("blur", this._handleInputBlurBound), - this.el.removeEventListener("keyup", this._handleInputKeyupAndFocusBound), - this.el.removeEventListener("focus", this._handleInputKeyupAndFocusBound), - this.el.removeEventListener("keydown", this._handleInputKeydownBound), - this.container.removeEventListener("mousedown", this._handleContainerMousedownAndTouchstartBound), - void 0 !== window.ontouchstart && this.container.removeEventListener("touchstart", this._handleContainerMousedownAndTouchstartBound) - } - }, { - key: "_setupDropdown", - value: function() { - this.container = document.createElement("ul"), - t(this.container).addClass("autocomplete-content dropdown-content"), - this.$inputField.append(this.container) - } - }, { - key: "_removeDropdown", - value: function() { - this.container.parentNode.removeChild(this.container) - } - }, { - key: "_handleInputBlur", - value: function() { - this._removeAutocomplete() - } - }, { - key: "_handleInputKeyupAndFocus", - value: function(t) { - "keyup" === t.type && (n._keydown = !1), - this.count = 0; - var e = this.el.value.toLowerCase(); - 13 !== t.keyCode && 38 !== t.keyCode && 40 !== t.keyCode && (this.oldVal !== e && (this._removeAutocomplete(), - e.length >= this.options.minLength && (this.isOpen = !0, - this._renderDropdown(this.options.data, e))), - this.oldVal = e) - } - }, { - key: "_handleInputKeydown", - value: function(e) { - n._keydown = !0; - var i = e.keyCode - , s = void 0 - , o = t(this.container).children("li").length; - 13 === i && this.activeIndex >= 0 ? (s = t(this.container).children("li").eq(this.activeIndex)).length && (this.selectOption(s), - e.preventDefault()) : 38 !== i && 40 !== i || (e.preventDefault(), - 38 === i && this.activeIndex > 0 && this.activeIndex--, - 40 === i && this.activeIndex < o - 1 && this.activeIndex++, - this.$active.removeClass("active"), - this.activeIndex >= 0 && (this.$active = t(this.container).children("li").eq(this.activeIndex), - this.$active.addClass("active"))) - } - }, { - key: "_handleContainerMousedownAndTouchstart", - value: function(e) { - var i = t(e.target).closest("li"); - this.selectOption(i) - } - }, { - key: "_highlight", - value: function(t, e) { - var i = e.find("img") - , n = e.text().toLowerCase().indexOf("" + t.toLowerCase()) - , s = n + t.length - 1 - , o = e.text().slice(0, n) - , a = e.text().slice(n, s + 1) - , r = e.text().slice(s + 1); - e.html("" + o + "" + a + "" + r + ""), - i.length && e.prepend(i) - } - }, { - key: "_resetCurrentElement", - value: function() { - this.activeIndex = -1, - this.$active.removeClass("active") - } - }, { - key: "_removeAutocomplete", - value: function() { - t(this.container).empty(), - this._resetCurrentElement(), - this.oldVal = null, - this.isOpen = !1 - } - }, { - key: "selectOption", - value: function(t) { - var e = t.text().trim(); - this.el.value = e, - this.$el.trigger("change"), - this._removeAutocomplete(), - "function" == typeof this.options.onAutocomplete && this.options.onAutocomplete.call(this, e) - } - }, { - key: "_renderDropdown", - value: function(e, i) { - var n = this; - this._removeAutocomplete(); - var s = []; - for (var o in e) - if (e.hasOwnProperty(o) && -1 !== o.toLowerCase().indexOf(i)) { - if (this.count >= this.options.limit) - break; - var a = { - data: e[o], - key: o - }; - s.push(a), - this.count++ - } - s.sort(function(t, e) { - return n.options.sortFunction(t.key.toLowerCase(), e.key.toLowerCase(), i.toLowerCase()) - }); - for (var r = 0; r < s.length; r++) { - var l = s[r] - , h = t("
  • "); - l.data ? h.append('' + l.key + "") : h.append("" + l.key + ""), - t(this.container).append(h), - this._highlight(i, h) - } - } - }, { - key: "updateData", - value: function(t) { - var e = this.el.value.toLowerCase(); - this.options.data = t, - this.isOpen && this._renderDropdown(t, e) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Autocomplete - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - i._keydown = !1, - M.Autocomplete = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "autocomplete", "M_Autocomplete") -}(cash), -function(t) { - M.updateTextFields = function() { - t("input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea").each(function(e, i) { - var n = t(this); - e.value.length > 0 || t(e).is(":focus") || e.autofocus || null !== n.attr("placeholder") ? n.siblings("label").addClass("active") : e.validity ? n.siblings("label").toggleClass("active", !0 === e.validity.badInput) : n.siblings("label").removeClass("active") - }) - } - , - M.validate_field = function(t) { - var e = null !== t.attr("data-length") - , i = parseInt(t.attr("data-length")) - , n = t[0].value.length; - 0 !== n || !1 !== t[0].validity.badInput || t.is(":required") ? t.hasClass("validate") && (t.is(":valid") && e && n <= i || t.is(":valid") && !e ? (t.removeClass("invalid"), - t.addClass("valid")) : (t.removeClass("valid"), - t.addClass("invalid"))) : t.hasClass("validate") && (t.removeClass("valid"), - t.removeClass("invalid")) - } - , - M.textareaAutoResize = function(e) { - e instanceof Element && (e = t(e)); - var i = t(".hiddendiv").first(); - i.length || (i = t('
    '), - t("body").append(i)); - var n = e.css("font-family") - , s = e.css("font-size") - , o = e.css("line-height") - , a = e.css("padding-top") - , r = e.css("padding-right") - , l = e.css("padding-bottom") - , h = e.css("padding-left"); - s && i.css("font-size", s), - n && i.css("font-family", n), - o && i.css("line-height", o), - a && i.css("padding-top", a), - r && i.css("padding-right", r), - l && i.css("padding-bottom", l), - h && i.css("padding-left", h), - e.data("original-height") || e.data("original-height", e.height()), - "off" === e.attr("wrap") && i.css("overflow-wrap", "normal").css("white-space", "pre"), - i.text(e[0].value + "\n"); - var d = i.html().replace(/\n/g, "
    "); - i.html(d), - "hidden" !== e.css("display") ? i.css("width", e.width() + "px") : i.css("width", t(window).width() / 2 + "px"), - e.data("original-height") <= i.innerHeight() ? e.css("height", i.innerHeight() + "px") : e[0].value.length < e.data("previous-length") && e.css("height", e.data("original-height") + "px"), - e.data("previous-length", e[0].value.length) - } - , - t(document).ready(function() { - var e = "input[type=text], input[type=password], input[type=email], input[type=url], input[type=tel], input[type=number], input[type=search], textarea"; - t(document).on("change", e, function() { - 0 === this.value.length && null === t(this).attr("placeholder") || t(this).siblings("label").addClass("active"), - M.validate_field(t(this)) - }), - t(document).ready(function() { - M.updateTextFields() - }), - t(document).on("reset", function(i) { - var n = t(i.target); - n.is("form") && (n.find(e).removeClass("valid").removeClass("invalid"), - n.find(e).each(function(e) { - this.value.length && t(this).siblings("label").removeClass("active") - }), - setTimeout(function() { - n.find("select").each(function() { - if (this.M_Select) { - var e = t(this).find("option[selected]").text(); - t(this).siblings("input.select-dropdown")[0].value = e - } - }) - }, 0)) - }), - document.addEventListener("focus", function(i) { - t(i.target).is(e) && t(i.target).siblings("label, .prefix").addClass("active") - }, !0), - document.addEventListener("blur", function(i) { - var n = t(i.target); - if (n.is(e)) { - var s = ".prefix"; - 0 === n[0].value.length && !0 !== n[0].validity.badInput && null === n.attr("placeholder") && (s += ", label"), - n.siblings(s).removeClass("active"), - M.validate_field(n) - } - }, !0); - t(document).on("keyup", "input[type=radio], input[type=checkbox]", function(e) { - if (e.which !== M.keys.TAB) - ; - else { - t(this).addClass("tabbed"); - t(this).one("blur", function(e) { - t(this).removeClass("tabbed") - }) - } - }); - var i = ".materialize-textarea"; - t(i).each(function() { - var e = t(this); - e.data("original-height", e.height()), - e.data("previous-length", this.value.length), - M.textareaAutoResize(e) - }), - t(document).on("keyup", i, function() { - M.textareaAutoResize(t(this)) - }), - t(document).on("keydown", i, function() { - M.textareaAutoResize(t(this)) - }), - t(document).on("change", '.file-field input[type="file"]', function() { - for (var e = t(this).closest(".file-field").find("input.file-path"), i = t(this)[0].files, n = [], s = 0; s < i.length; s++) - n.push(i[s].name); - e[0].value = n.join(", "), - e.trigger("change") - }) - }) -}(cash), -function(t, e) { - "use strict"; - var i = { - indicators: !0, - height: 400, - duration: 500, - interval: 6e3 - } - , n = function(n) { - _inherits(s, Component); - function s(i, n) { - _classCallCheck(this, s); - var o = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, i, n)); - return o.el.M_Slider = o, - o.options = t.extend({}, s.defaults, n), - o.$slider = o.$el.find(".slides"), - o.$slides = o.$slider.children("li"), - o.activeIndex = o.$slider.find(".active").index(), - -1 != o.activeIndex && (o.$active = o.$slides.eq(o.activeIndex)), - o._setSliderHeight(), - o.$slides.find(".caption").each(function(t) { - o._animateCaptionIn(t, 0) - }), - o.$slides.find("img").each(function(e) { - var i = "data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="; - t(e).attr("src") !== i && (t(e).css("background-image", 'url("' + t(e).attr("src") + '")'), - t(e).attr("src", i)) - }), - o._setupIndicators(), - o.$active ? o.$active.css("display", "block") : (o.$slides.first().addClass("active"), - e({ - targets: o.$slides.first()[0], - opacity: 1, - duration: o.options.duration, - easing: "easeOutQuad" - }), - o.activeIndex = 0, - o.$active = o.$slides.eq(o.activeIndex), - o.options.indicators && o.$indicators.eq(o.activeIndex).addClass("active")), - o.$active.find("img").each(function(t) { - e({ - targets: o.$active.find(".caption")[0], - opacity: 1, - translateX: 0, - translateY: 0, - duration: o.options.duration, - easing: "easeOutQuad" - }) - }), - o._setupEventHandlers(), - o.start(), - o - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this.pause(), - this._removeIndicators(), - this._removeEventHandlers(), - this.el.M_Slider = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - var t = this; - this._handleIntervalBound = this._handleInterval.bind(this), - this._handleIndicatorClickBound = this._handleIndicatorClick.bind(this), - this.options.indicators && this.$indicators.each(function(e) { - e.addEventListener("click", t._handleIndicatorClickBound) - }) - } - }, { - key: "_removeEventHandlers", - value: function() { - var t = this; - this.options.indicators && this.$indicators.each(function(e) { - e.removeEventListener("click", t._handleIndicatorClickBound) - }) - } - }, { - key: "_handleIndicatorClick", - value: function(e) { - var i = t(e.target).index(); - this.set(i) - } - }, { - key: "_handleInterval", - value: function() { - var t = this.$slider.find(".active").index(); - this.$slides.length === t + 1 ? t = 0 : t += 1, - this.set(t) - } - }, { - key: "_animateCaptionIn", - value: function(i, n) { - var s = { - targets: i, - opacity: 0, - duration: n, - easing: "easeOutQuad" - }; - t(i).hasClass("center-align") ? s.translateY = -100 : t(i).hasClass("right-align") ? s.translateX = 100 : t(i).hasClass("left-align") && (s.translateX = -100), - e(s) - } - }, { - key: "_setSliderHeight", - value: function() { - this.$el.hasClass("fullscreen") || (this.options.indicators ? this.$el.css("height", this.options.height + 40 + "px") : this.$el.css("height", this.options.height + "px"), - this.$slider.css("height", this.options.height + "px")) - } - }, { - key: "_setupIndicators", - value: function() { - var e = this; - this.options.indicators && (this.$indicators = t('
      '), - this.$slides.each(function(i, n) { - var s = t('
    • '); - e.$indicators.append(s[0]) - }), - this.$el.append(this.$indicators[0]), - this.$indicators = this.$indicators.children("li.indicator-item")) - } - }, { - key: "_removeIndicators", - value: function() { - this.$el.find("ul.indicators").remove() - } - }, { - key: "set", - value: function(t) { - var i = this; - if (t >= this.$slides.length ? t = 0 : t < 0 && (t = this.$slides.length - 1), - this.activeIndex != t) { - this.$active = this.$slides.eq(this.activeIndex); - var n = this.$active.find(".caption"); - this.$active.removeClass("active"), - e({ - targets: this.$active[0], - opacity: 0, - duration: this.options.duration, - easing: "easeOutQuad", - complete: function() { - i.$slides.not(".active").each(function(t) { - e({ - targets: t, - opacity: 0, - translateX: 0, - translateY: 0, - duration: 0, - easing: "easeOutQuad" - }) - }) - } - }), - this._animateCaptionIn(n[0], this.options.duration), - this.options.indicators && (this.$indicators.eq(this.activeIndex).removeClass("active"), - this.$indicators.eq(t).addClass("active")), - e({ - targets: this.$slides.eq(t)[0], - opacity: 1, - duration: this.options.duration, - easing: "easeOutQuad" - }), - e({ - targets: this.$slides.eq(t).find(".caption")[0], - opacity: 1, - translateX: 0, - translateY: 0, - duration: this.options.duration, - delay: this.options.duration, - easing: "easeOutQuad" - }), - this.$slides.eq(t).addClass("active"), - this.activeIndex = t, - this.start() - } - } - }, { - key: "pause", - value: function() { - clearInterval(this.interval) - } - }, { - key: "start", - value: function() { - clearInterval(this.interval), - this.interval = setInterval(this._handleIntervalBound, this.options.duration + this.options.interval) - } - }, { - key: "next", - value: function() { - var t = this.activeIndex + 1; - t >= this.$slides.length ? t = 0 : t < 0 && (t = this.$slides.length - 1), - this.set(t) - } - }, { - key: "prev", - value: function() { - var t = this.activeIndex - 1; - t >= this.$slides.length ? t = 0 : t < 0 && (t = this.$slides.length - 1), - this.set(t) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Slider - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - M.Slider = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "slider", "M_Slider") -}(cash, M.anime), -function(t, e) { - t(document).on("click", ".card", function(i) { - if (t(this).children(".card-reveal").length) { - var n = t(i.target).closest(".card"); - void 0 === n.data("initialOverflow") && n.data("initialOverflow", void 0 === n.css("overflow") ? "" : n.css("overflow")); - var s = t(this).find(".card-reveal"); - t(i.target).is(t(".card-reveal .card-title")) || t(i.target).is(t(".card-reveal .card-title i")) ? e({ - targets: s[0], - translateY: 0, - duration: 225, - easing: "easeInOutQuad", - complete: function(e) { - var i = e.animatables[0].target; - t(i).css({ - display: "none" - }), - n.css("overflow", n.data("initialOverflow")) - } - }) : (t(i.target).is(t(".card .activator")) || t(i.target).is(t(".card .activator i"))) && (n.css("overflow", "hidden"), - s.css({ - display: "block" - }), - e({ - targets: s[0], - translateY: "-100%", - duration: 300, - easing: "easeInOutQuad" - })) - } - }) -}(cash, M.anime), -function(t) { - "use strict"; - var e = { - data: [], - placeholder: "", - secondaryPlaceholder: "", - autocompleteOptions: {}, - limit: 1 / 0, - onChipAdd: null, - onChipSelect: null, - onChipDelete: null - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_Chips = s, - s.options = t.extend({}, n.defaults, i), - s.$el.addClass("chips input-field"), - s.chipsData = [], - s.$chips = t(), - s._setupInput(), - s.hasAutocomplete = Object.keys(s.options.autocompleteOptions).length > 0, - s.$input.attr("id") || s.$input.attr("id", M.guid()), - s.options.data.length && (s.chipsData = s.options.data, - s._renderChips(s.chipsData)), - s.hasAutocomplete && s._setupAutocomplete(), - s._setPlaceholder(), - s._setupLabel(), - s._setupEventHandlers(), - s - } - return _createClass(n, [{ - key: "getData", - value: function() { - return this.chipsData - } - }, { - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.$chips.remove(), - this.el.M_Chips = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleChipClickBound = this._handleChipClick.bind(this), - this._handleInputKeydownBound = this._handleInputKeydown.bind(this), - this._handleInputFocusBound = this._handleInputFocus.bind(this), - this._handleInputBlurBound = this._handleInputBlur.bind(this), - this.el.addEventListener("click", this._handleChipClickBound), - document.addEventListener("keydown", n._handleChipsKeydown), - document.addEventListener("keyup", n._handleChipsKeyup), - this.el.addEventListener("blur", n._handleChipsBlur, !0), - this.$input[0].addEventListener("focus", this._handleInputFocusBound), - this.$input[0].addEventListener("blur", this._handleInputBlurBound), - this.$input[0].addEventListener("keydown", this._handleInputKeydownBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("click", this._handleChipClickBound), - document.removeEventListener("keydown", n._handleChipsKeydown), - document.removeEventListener("keyup", n._handleChipsKeyup), - this.el.removeEventListener("blur", n._handleChipsBlur, !0), - this.$input[0].removeEventListener("focus", this._handleInputFocusBound), - this.$input[0].removeEventListener("blur", this._handleInputBlurBound), - this.$input[0].removeEventListener("keydown", this._handleInputKeydownBound) - } - }, { - key: "_handleChipClick", - value: function(e) { - var i = t(e.target).closest(".chip") - , n = t(e.target).is(".close"); - if (i.length) { - var s = i.index(); - n ? (this.deleteChip(s), - this.$input[0].focus()) : this.selectChip(s) - } else - this.$input[0].focus() - } - }, { - key: "_handleInputFocus", - value: function() { - this.$el.addClass("focus") - } - }, { - key: "_handleInputBlur", - value: function() { - this.$el.removeClass("focus") - } - }, { - key: "_handleInputKeydown", - value: function(t) { - if (n._keydown = !0, - 13 === t.keyCode) { - if (this.hasAutocomplete && this.autocomplete && this.autocomplete.isOpen) - return; - t.preventDefault(), - this.addChip({ - tag: this.$input[0].value - }), - this.$input[0].value = "" - } else - 8 !== t.keyCode && 37 !== t.keyCode || "" !== this.$input[0].value || !this.chipsData.length || (t.preventDefault(), - this.selectChip(this.chipsData.length - 1)) - } - }, { - key: "_renderChip", - value: function(e) { - if (e.tag) { - var i = document.createElement("div") - , n = document.createElement("i"); - if (i.classList.add("chip"), - i.textContent = e.tag, - i.setAttribute("tabindex", 0), - t(n).addClass("material-icons close"), - n.textContent = "close", - e.image) { - var s = document.createElement("img"); - s.setAttribute("src", e.image), - i.insertBefore(s, i.firstChild) - } - return i.appendChild(n), - i - } - } - }, { - key: "_renderChips", - value: function() { - this.$chips.remove(); - for (var t = 0; t < this.chipsData.length; t++) { - var e = this._renderChip(this.chipsData[t]); - this.$el.append(e), - this.$chips.add(e) - } - this.$el.append(this.$input[0]) - } - }, { - key: "_setupAutocomplete", - value: function() { - var t = this; - this.options.autocompleteOptions.onAutocomplete = function(e) { - t.addChip({ - tag: e - }), - t.$input[0].value = "", - t.$input[0].focus() - } - , - this.autocomplete = M.Autocomplete.init(this.$input, this.options.autocompleteOptions)[0] - } - }, { - key: "_setupInput", - value: function() { - this.$input = this.$el.find("input"), - this.$input.length || (this.$input = t(""), - this.$el.append(this.$input)), - this.$input.addClass("input") - } - }, { - key: "_setupLabel", - value: function() { - this.$label = this.$el.find("label"), - this.$label.length && this.$label.setAttribute("for", this.$input.attr("id")) - } - }, { - key: "_setPlaceholder", - value: function() { - void 0 !== this.chipsData && !this.chipsData.length && this.options.placeholder ? t(this.$input).prop("placeholder", this.options.placeholder) : (void 0 === this.chipsData || this.chipsData.length) && this.options.secondaryPlaceholder && t(this.$input).prop("placeholder", this.options.secondaryPlaceholder) - } - }, { - key: "_isValid", - value: function(t) { - if (t.hasOwnProperty("tag") && "" !== t.tag) { - for (var e = !1, i = 0; i < this.chipsData.length; i++) - if (this.chipsData[i].tag === t.tag) { - e = !0; - break - } - return !e - } - return !1 - } - }, { - key: "addChip", - value: function(e) { - if (this._isValid(e) && !(this.chipsData.length >= this.options.limit)) { - var i = this._renderChip(e); - this.$chips.add(i), - this.chipsData.push(e), - t(this.$input).before(i), - this._setPlaceholder(), - "function" == typeof this.options.onChipAdd && this.options.onChipAdd.call(this, this.$el, i) - } - } - }, { - key: "deleteChip", - value: function(e) { - var i = this.$chips.eq(e); - this.$chips.eq(e).remove(), - this.$chips = this.$chips.filter(function(e) { - return t(e).index() >= 0 - }), - this.chipsData.splice(e, 1), - this._setPlaceholder(), - "function" == typeof this.options.onChipDelete && this.options.onChipDelete.call(this, this.$el, i[0]) - } - }, { - key: "selectChip", - value: function(t) { - var e = this.$chips.eq(t); - this._selectedChip = e, - e[0].focus(), - "function" == typeof this.options.onChipSelect && this.options.onChipSelect.call(this, this.$el, e[0]) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Chips - } - }, { - key: "_handleChipsKeydown", - value: function(e) { - n._keydown = !0; - var i = t(e.target).closest(".chips") - , s = e.target && i.length; - if (!t(e.target).is("input, textarea") && s) { - var o = i[0].M_Chips; - if (8 === e.keyCode || 46 === e.keyCode) { - e.preventDefault(); - var a = o.chipsData.length; - if (o._selectedChip) { - var r = o._selectedChip.index(); - o.deleteChip(r), - o._selectedChip = null, - a = r - 1 - } - o.chipsData.length && o.selectChip(a) - } else if (37 === e.keyCode) { - if (o._selectedChip) { - var l = o._selectedChip.index() - 1; - if (l < 0) - return; - o.selectChip(l) - } - } else if (39 === e.keyCode && o._selectedChip) { - var h = o._selectedChip.index() + 1; - h >= o.chipsData.length ? o.$input[0].focus() : o.selectChip(h) - } - } - } - }, { - key: "_handleChipsKeyup", - value: function(t) { - n._keydown = !1 - } - }, { - key: "_handleChipsBlur", - value: function(e) { - if (!n._keydown) { - t(e.target).closest(".chips")[0].M_Chips._selectedChip = null - } - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - i._keydown = !1, - M.Chips = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "chips", "M_Chips"), - t(document).ready(function() { - t(document.body).on("click", ".chip .close", function() { - var e = t(this).closest(".chips"); - e.length && e[0].M_Chips || t(this).closest(".chip").remove() - }) - }) -}(cash), -function(t) { - "use strict"; - var e = { - top: 0, - bottom: 1 / 0, - offset: 0, - onPositionChange: null - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_Pushpin = s, - s.options = t.extend({}, n.defaults, i), - s.originalOffset = s.el.offsetTop, - n._pushpins.push(s), - s._setupEventHandlers(), - s._updatePosition(), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this.el.style.top = null, - this._removePinClasses(), - this._removeEventHandlers(); - var t = n._pushpins.indexOf(this); - n._pushpins.splice(t, 1) - } - }, { - key: "_setupEventHandlers", - value: function() { - document.addEventListener("scroll", n._updateElements) - } - }, { - key: "_removeEventHandlers", - value: function() { - document.removeEventListener("scroll", n._updateElements) - } - }, { - key: "_updatePosition", - value: function() { - var t = M.getDocumentScrollTop() + this.options.offset; - this.options.top <= t && this.options.bottom >= t && !this.el.classList.contains("pinned") && (this._removePinClasses(), - this.el.style.top = this.options.offset + "px", - this.el.classList.add("pinned"), - "function" == typeof this.options.onPositionChange && this.options.onPositionChange.call(this, "pinned")), - t < this.options.top && !this.el.classList.contains("pin-top") && (this._removePinClasses(), - this.el.style.top = 0, - this.el.classList.add("pin-top"), - "function" == typeof this.options.onPositionChange && this.options.onPositionChange.call(this, "pin-top")), - t > this.options.bottom && !this.el.classList.contains("pin-bottom") && (this._removePinClasses(), - this.el.classList.add("pin-bottom"), - this.el.style.top = this.options.bottom - this.originalOffset + "px", - "function" == typeof this.options.onPositionChange && this.options.onPositionChange.call(this, "pin-bottom")) - } - }, { - key: "_removePinClasses", - value: function() { - this.el.classList.remove("pin-top", "pinned", "pin-bottom") - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Pushpin - } - }, { - key: "_updateElements", - value: function() { - for (var t in n._pushpins) { - n._pushpins[t]._updatePosition() - } - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - i._pushpins = [], - M.Pushpin = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "pushpin", "M_Pushpin") -}(cash), -function(t, e) { - "use strict"; - var i = { - direction: "top", - hoverEnabled: !0, - toolbarEnabled: !1 - }; - t.fn.reverse = [].reverse; - var n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_FloatingActionButton = n, - n.options = t.extend({}, s.defaults, i), - n.isOpen = !1, - n.$anchor = n.$el.children("a").first(), - n.$menu = n.$el.children("ul").first(), - n.$floatingBtns = n.$el.find("ul .btn-floating"), - n.$floatingBtnsReverse = n.$el.find("ul .btn-floating").reverse(), - n.offsetY = 0, - n.offsetX = 0, - "top" === n.options.direction ? (n.$el.addClass("direction-top"), - n.offsetY = 40) : "right" === n.options.direction ? (n.$el.addClass("direction-right"), - n.offsetX = -40) : "bottom" === n.options.direction ? (n.$el.addClass("direction-bottom"), - n.offsetY = -40) : (n.$el.addClass("direction-left"), - n.offsetX = 40), - n._setupEventHandlers(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.el.M_FloatingActionButton = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleFABClickBound = this._handleFABClick.bind(this), - this._handleOpenBound = this.open.bind(this), - this._handleCloseBound = this.close.bind(this), - this.options.hoverEnabled && !this.options.toolbarEnabled ? (this.el.addEventListener("mouseenter", this._handleOpenBound), - this.el.addEventListener("mouseleave", this._handleCloseBound)) : this.el.addEventListener("click", this._handleFABClickBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.options.hoverEnabled && !this.options.toolbarEnabled ? (this.el.removeEventListener("mouseenter", this._handleOpenBound), - this.el.removeEventListener("mouseleave", this._handleCloseBound)) : this.el.removeEventListener("click", this._handleFABClickBound) - } - }, { - key: "_handleFABClick", - value: function() { - this.isOpen ? this.close() : this.open() - } - }, { - key: "_handleDocumentClick", - value: function(e) { - t(e.target).closest(this.$menu).length || this.close() - } - }, { - key: "open", - value: function() { - this.isOpen || (this.options.toolbarEnabled ? this._animateInToolbar() : this._animateInFAB(), - this.isOpen = !0) - } - }, { - key: "close", - value: function() { - this.isOpen && (this.options.toolbarEnabled ? (window.removeEventListener("scroll", this._handleCloseBound, !0), - document.body.removeEventListener("click", this._handleDocumentClickBound, !0), - this._animateOutToolbar()) : this._animateOutFAB(), - this.isOpen = !1) - } - }, { - key: "_animateInFAB", - value: function() { - var t = this; - this.$el.addClass("active"); - var i = 0; - this.$floatingBtnsReverse.each(function(n) { - e({ - targets: n, - opacity: 1, - scale: [.4, 1], - translateY: [t.offsetY, 0], - translateX: [t.offsetX, 0], - duration: 275, - delay: i, - easing: "easeInOutQuad" - }), - i += 40 - }) - } - }, { - key: "_animateOutFAB", - value: function() { - var t = this; - this.$floatingBtnsReverse.each(function(i) { - e.remove(i), - e({ - targets: i, - opacity: 0, - scale: .4, - translateY: t.offsetY, - translateX: t.offsetX, - duration: 175, - easing: "easeOutQuad", - complete: function() { - t.$el.removeClass("active") - } - }) - }) - } - }, { - key: "_animateInToolbar", - value: function() { - var e = this - , i = void 0 - , n = window.innerWidth - , s = window.innerHeight - , o = this.el.getBoundingClientRect() - , a = t('
      ') - , r = this.$anchor.css("background-color"); - this.$anchor.append(a), - this.offsetX = o.left - n / 2 + o.width / 2, - this.offsetY = s - o.bottom, - i = n / a[0].clientWidth, - this.btnBottom = o.bottom, - this.btnLeft = o.left, - this.btnWidth = o.width, - this.$el.addClass("active"), - this.$el.css({ - "text-align": "center", - width: "100%", - bottom: 0, - left: 0, - transform: "translateX(" + this.offsetX + "px)", - transition: "none" - }), - this.$anchor.css({ - transform: "translateY(" + -this.offsetY + "px)", - transition: "none" - }), - a.css({ - "background-color": r - }), - setTimeout(function() { - e.$el.css({ - transform: "", - transition: "transform .2s cubic-bezier(0.550, 0.085, 0.680, 0.530), background-color 0s linear .2s" - }), - e.$anchor.css({ - overflow: "visible", - transform: "", - transition: "transform .2s" - }), - setTimeout(function() { - e.$el.css({ - overflow: "hidden", - "background-color": r - }), - a.css({ - transform: "scale(" + i + ")", - transition: "transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)" - }), - e.$menu.children("li").children("a").css({ - opacity: 1 - }), - e._handleDocumentClickBound = e._handleDocumentClick.bind(e), - window.addEventListener("scroll", e._handleCloseBound, !0), - document.body.addEventListener("click", e._handleDocumentClickBound, !0) - }, 100) - }, 0) - } - }, { - key: "_animateOutToolbar", - value: function() { - var t = this - , e = window.innerWidth - , i = window.innerHeight - , n = this.$el.find(".fab-backdrop") - , s = anchor.css("background-color"); - this.offsetX = this.btnLeft - e / 2 + this.btnWidth / 2, - this.offsetY = i - this.btnBottom, - this.$el.removeClass("active"), - this.$el.css({ - "background-color": "transparent", - transition: "none" - }), - this.$anchor.css({ - transition: "none" - }), - n.css({ - transform: "scale(0)", - "background-color": s - }), - this.$menu.children("li").children("a").css({ - opacity: "" - }), - setTimeout(function() { - n.remove(), - t.$el.css({ - "text-align": "", - width: "", - bottom: "", - left: "", - overflow: "", - "background-color": "", - transform: "translate3d(" + -t.offsetX + "px,0,0)" - }), - t.$anchor.css({ - overflow: "", - transform: "translate3d(0," + t.offsetY + "px,0)" - }), - setTimeout(function() { - t.$el.css({ - transform: "translate3d(0,0,0)", - transition: "transform .2s" - }), - t.$anchor.css({ - transform: "translate3d(0,0,0)", - transition: "transform .2s cubic-bezier(0.550, 0.055, 0.675, 0.190)" - }) - }, 20) - }, 200) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_FloatingActionButton - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - M.FloatingActionButton = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "floatingActionButton", "M_FloatingActionButton") -}(cash, M.anime), -function(t) { - "use strict"; - var e = { - format: "mmm dd, yyyy", - parse: null, - defaultDate: null, - setDefaultDate: !1, - disableWeekends: !1, - disableDayFn: null, - firstDay: 0, - minDate: null, - maxDate: null, - yearRange: 10, - minYear: 0, - maxYear: 9999, - minMonth: void 0, - maxMonth: void 0, - startRange: null, - endRange: null, - isRTL: !1, - showMonthAfterYear: !1, - showDaysInNextAndPreviousMonths: !1, - container: null, - i18n: { - clear: "Clear", - today: "Today", - done: "Ok", - previousMonth: "?", - nextMonth: "?", - months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"], - monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], - weekdaysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"], - weekdays: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"], - weekdaysAbbrev: ["S", "M", "T", "W", "T", "F", "S"] - }, - events: [], - onSelect: null, - onOpen: null, - onClose: null, - onDraw: null - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - s.el.M_Datepicker = s, - s.options = t.extend({}, n.defaults, i), - s.options.minDate && s.options.minDate.setHours(0, 0, 0, 0), - s.options.maxDate && s.options.maxDate.setHours(0, 0, 0, 0), - s.id = M.guid(), - s._setupVariables(), - s._insertHTMLIntoDOM(), - s._setupModal(), - s._setupEventHandlers(), - s.options.defaultDate || (s.options.defaultDate = new Date(Date.parse(s.el.value)), - s.options.setDefaultDate = !0); - var o = s.options.defaultDate; - return n._isDate(o) ? s.options.setDefaultDate ? s.setDate(o, !0) : s.gotoDate(o) : s.gotoDate(new Date), - s.isOpen = !1, - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.modal.destroy(), - t(this.modalEl).remove(), - this.el.M_Datepicker = void 0 - } - }, { - key: "_insertHTMLIntoDOM", - value: function() { - this.clearBtn.innerHTML = this.options.i18n.clear, - this.todayBtn.innerHTML = this.options.i18n.today, - this.doneBtn.innerHTML = this.options.i18n.done; - var t = document.querySelector(this.options.container); - this.options.container && t ? this.$modalEl.appendTo(t) : this.$modalEl.insertBefore(this.el) - } - }, { - key: "_setupModal", - value: function() { - var t = this; - this.modalEl.id = "modal-" + this.id, - this.modal = M.Modal.init(this.modalEl, { - onCloseEnd: function() { - t.isOpen = !1 - } - }) - } - }, { - key: "toString", - value: function(t) { - var e = this; - if (t = t || this.options.format, - !n._isDate(this.date)) - return ""; - return t.split(/(d{1,4}|m{1,4}|y{4}|yy|!.)/g).map(function(t) { - return e.formats[t] ? e.formats[t]() : t - }).join("") - } - }, { - key: "setDate", - value: function(t, e) { - if (!t) - return this.date = null, - this._renderDateDisplay(), - this.draw(); - if ("string" == typeof t && (t = new Date(Date.parse(t))), - n._isDate(t)) { - var i = this.options.minDate - , s = this.options.maxDate; - n._isDate(i) && t < i ? t = i : n._isDate(s) && t > s && (t = s), - this.date = new Date(t.getTime()), - this._renderDateDisplay(), - n._setToStartOfDay(this.date), - this.gotoDate(this.date), - e || "function" != typeof this.options.onSelect || this.options.onSelect.call(this, this.date) - } - } - }, { - key: "setInputValue", - value: function() { - this.el.value = this.toString(), - this.$el.trigger("change", { - firedBy: this - }) - } - }, { - key: "_renderDateDisplay", - value: function() { - var t = n._isDate(this.date) ? this.date : new Date - , e = this.options.i18n - , i = e.weekdaysShort[t.getDay()] - , s = e.monthsShort[t.getMonth()] - , o = t.getDate(); - this.yearTextEl.innerHTML = t.getFullYear(), - this.dateTextEl.innerHTML = i + ", " + s + " " + o - } - }, { - key: "gotoDate", - value: function(t) { - var e = !0; - if (n._isDate(t)) { - if (this.calendars) { - var i = new Date(this.calendars[0].year,this.calendars[0].month,1) - , s = new Date(this.calendars[this.calendars.length - 1].year,this.calendars[this.calendars.length - 1].month,1) - , o = t.getTime(); - s.setMonth(s.getMonth() + 1), - s.setDate(s.getDate() - 1), - e = o < i.getTime() || s.getTime() < o - } - e && (this.calendars = [{ - month: t.getMonth(), - year: t.getFullYear() - }]), - this.adjustCalendars() - } - } - }, { - key: "adjustCalendars", - value: function() { - this.calendars[0] = this.adjustCalendar(this.calendars[0]), - this.draw() - } - }, { - key: "adjustCalendar", - value: function(t) { - return t.month < 0 && (t.year -= Math.ceil(Math.abs(t.month) / 12), - t.month += 12), - t.month > 11 && (t.year += Math.floor(Math.abs(t.month) / 12), - t.month -= 12), - t - } - }, { - key: "nextMonth", - value: function() { - this.calendars[0].month++, - this.adjustCalendars() - } - }, { - key: "prevMonth", - value: function() { - this.calendars[0].month--, - this.adjustCalendars() - } - }, { - key: "render", - value: function(t, e, i) { - var s = this.options - , o = new Date - , a = n._getDaysInMonth(t, e) - , r = new Date(t,e,1).getDay() - , l = [] - , h = []; - n._setToStartOfDay(o), - s.firstDay > 0 && (r -= s.firstDay) < 0 && (r += 7); - for (var d = 0 === e ? 11 : e - 1, u = 11 === e ? 0 : e + 1, c = 0 === e ? t - 1 : t, p = 11 === e ? t + 1 : t, v = n._getDaysInMonth(c, d), f = a + r, m = f; m > 7; ) - m -= 7; - f += 7 - m; - for (var g = !1, _ = 0, y = 0; _ < f; _++) { - var k = new Date(t,e,_ - r + 1) - , b = !!n._isDate(this.date) && n._compareDates(k, this.date) - , w = n._compareDates(k, o) - , C = -1 !== s.events.indexOf(k.toDateString()) - , E = _ < r || _ >= a + r - , M = _ - r + 1 - , x = e - , L = t - , T = s.startRange && n._compareDates(s.startRange, k) - , O = s.endRange && n._compareDates(s.endRange, k) - , $ = s.startRange && s.endRange && s.startRange < k && k < s.endRange - , D = s.minDate && k < s.minDate || s.maxDate && k > s.maxDate || s.disableWeekends && n._isWeekend(k) || s.disableDayFn && s.disableDayFn(k); - E && (_ < r ? (M = v + M, - x = d, - L = c) : (M -= a, - x = u, - L = p)); - var B = { - day: M, - month: x, - year: L, - hasEvent: C, - isSelected: b, - isToday: w, - isDisabled: D, - isEmpty: E, - isStartRange: T, - isEndRange: O, - isInRange: $, - showDaysInNextAndPreviousMonths: s.showDaysInNextAndPreviousMonths - }; - h.push(this.renderDay(B)), - 7 == ++y && (l.push(this.renderRow(h, s.isRTL, g)), - h = [], - y = 0, - g = !1) - } - return this.renderTable(s, l, i) - } - }, { - key: "renderDay", - value: function(t) { - var e = [] - , i = "false"; - if (t.isEmpty) { - if (!t.showDaysInNextAndPreviousMonths) - return ''; - e.push("is-outside-current-month"), - e.push("is-selection-disabled") - } - return t.isDisabled && e.push("is-disabled"), - t.isToday && e.push("is-today"), - t.isSelected && (e.push("is-selected"), - i = "true"), - t.hasEvent && e.push("has-event"), - t.isInRange && e.push("is-inrange"), - t.isStartRange && e.push("is-startrange"), - t.isEndRange && e.push("is-endrange"), - '" - } - }, { - key: "renderRow", - value: function(t, e, i) { - return '' + (e ? t.reverse() : t).join("") + "" - } - }, { - key: "renderTable", - value: function(t, e, i) { - return '
      ' + this.renderHead(t) + this.renderBody(e) + "
      " - } - }, { - key: "renderHead", - value: function(t) { - var e = void 0 - , i = []; - for (e = 0; e < 7; e++) - i.push('' + this.renderDayName(t, e, !0) + ""); - return "" + (t.isRTL ? i.reverse() : i).join("") + "" - } - }, { - key: "renderBody", - value: function(t) { - return "" + t.join("") + "" - } - }, { - key: "renderTitle", - value: function(e, i, n, s, o, a) { - var r = void 0 - , l = void 0 - , h = void 0 - , d = this.options - , u = n === d.minYear - , c = n === d.maxYear - , p = '
      ' - , v = void 0 - , f = void 0 - , m = !0 - , g = !0; - for (h = [], - r = 0; r < 12; r++) - h.push('"); - for (v = '", - t.isArray(d.yearRange) ? (r = d.yearRange[0], - l = d.yearRange[1] + 1) : (r = n - d.yearRange, - l = 1 + n + d.yearRange), - h = []; r < l && r <= d.maxYear; r++) - r >= d.minYear && h.push('"); - f = '"; - p += '', - p += '
      ', - d.showMonthAfterYear ? p += f + v : p += v + f, - p += "
      ", - u && (0 === s || d.minMonth >= s) && (m = !1), - c && (11 === s || d.maxMonth <= s) && (g = !1); - return (p += '') + "
      " - } - }, { - key: "draw", - value: function(t) { - if (this.isOpen || t) { - var e = this.options - , i = e.minYear - , n = e.maxYear - , s = e.minMonth - , o = e.maxMonth - , a = "" - , r = void 0; - this._y <= i && (this._y = i, - !isNaN(s) && this._m < s && (this._m = s)), - this._y >= n && (this._y = n, - !isNaN(o) && this._m > o && (this._m = o)), - r = "pika-title-" + Math.random().toString(36).replace(/[^a-z]+/g, "").substr(0, 2); - for (var l = 0; l < 1; l++) - this._renderDateDisplay(), - a += this.renderTitle(this, l, this.calendars[l].year, this.calendars[l].month, this.calendars[0].year, r) + this.render(this.calendars[l].year, this.calendars[l].month, r); - this.calendarEl.innerHTML = a; - var h = this.calendarEl.querySelector(".pika-select-year") - , d = this.calendarEl.querySelector(".pika-select-month"); - M.Select.init(h, { - classes: "select-year" - }), - M.Select.init(d, { - classes: "select-month" - }), - h.addEventListener("change", this._handleYearChange.bind(this)), - d.addEventListener("change", this._handleMonthChange.bind(this)), - "function" == typeof this.options.onDraw && this.options.onDraw(this) - } - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleInputKeydownBound = this._handleInputKeydown.bind(this), - this._handleInputClickBound = this._handleInputClick.bind(this), - this._handleInputChangeBound = this._handleInputChange.bind(this), - this._handleCalendarClickBound = this._handleCalendarClick.bind(this), - this._finishSelectionBound = this._finishSelection.bind(this), - this._handleTodayClickBound = this._handleTodayClick.bind(this), - this._handleClearClickBound = this._handleClearClick.bind(this), - this._handleMonthChange = this._handleMonthChange.bind(this), - this.el.addEventListener("click", this._handleInputClickBound), - this.el.addEventListener("keydown", this._handleInputKeydownBound), - this.el.addEventListener("change", this._handleInputChangeBound), - this.calendarEl.addEventListener("click", this._handleCalendarClickBound), - this.doneBtn.addEventListener("click", this._finishSelectionBound), - this.todayBtn.addEventListener("click", this._handleTodayClickBound), - this.clearBtn.addEventListener("click", this._handleClearClickBound) - } - }, { - key: "_setupVariables", - value: function() { - var e = this; - this.$modalEl = t(n._template), - this.modalEl = this.$modalEl[0], - this.calendarEl = this.modalEl.querySelector(".pika-single"), - this.yearTextEl = this.modalEl.querySelector(".year-text"), - this.dateTextEl = this.modalEl.querySelector(".date-text"), - this.clearBtn = this.modalEl.querySelector(".datepicker-clear"), - this.todayBtn = this.modalEl.querySelector(".datepicker-today"), - this.doneBtn = this.modalEl.querySelector(".datepicker-done"), - this.formats = { - dd: function() { - return e.date.getDate() - }, - ddd: function() { - return e.options.i18n.weekdaysShort[e.date.getDay()] - }, - dddd: function() { - return e.options.i18n.weekdays[e.date.getDay()] - }, - mm: function() { - return e.date.getMonth() + 1 - }, - mmm: function() { - return e.options.i18n.monthsShort[e.date.getMonth()] - }, - mmmm: function() { - return e.options.i18n.monthsShort[e.date.getMonth()] - }, - yy: function() { - return e.date.getFullYear().slice(2) - }, - yyyy: function() { - return e.date.getFullYear() - } - } - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("click", this._handleInputClickBound), - this.el.removeEventListener("keydown", this._handleInputKeydownBound), - this.el.removeEventListener("change", this._handleInputChangeBound), - this.calendarEl.removeEventListener("click", this._handleCalendarClickBound) - } - }, { - key: "_handleInputClick", - value: function() { - this.open() - } - }, { - key: "_handleInputKeydown", - value: function(t) { - t.which === M.keys.ENTER && (t.preventDefault(), - this.open()) - } - }, { - key: "_handleCalendarClick", - value: function(e) { - if (this.isOpen) { - var i = t(e.target); - i.hasClass("is-disabled") || (!i.hasClass("datepicker-day-button") || i.hasClass("is-empty") || i.parent().hasClass("is-disabled") ? i.closest(".month-prev").length ? this.prevMonth() : i.closest(".month-next").length && this.nextMonth() : this.setDate(new Date(e.target.getAttribute("data-pika-year"),e.target.getAttribute("data-pika-month"),e.target.getAttribute("data-pika-day")))) - } - } - }, { - key: "_handleTodayClick", - value: function() { - this.date = new Date, - this.setInputValue(), - this.close() - } - }, { - key: "_handleClearClick", - value: function() { - this.date = null, - this.setInputValue(), - this.close() - } - }, { - key: "_handleMonthChange", - value: function(t) { - this.gotoMonth(t.target.value) - } - }, { - key: "_handleYearChange", - value: function(t) { - this.gotoYear(t.target.value) - } - }, { - key: "gotoMonth", - value: function(t) { - isNaN(t) || (this.calendars[0].month = parseInt(t, 10), - this.adjustCalendars()) - } - }, { - key: "gotoYear", - value: function(t) { - isNaN(t) || (this.calendars[0].year = parseInt(t, 10), - this.adjustCalendars()) - } - }, { - key: "_handleInputChange", - value: function(t) { - var e = void 0; - t.firedBy !== this && (e = this.options.parse ? this.options.parse(this.el.value, this.options.format) : new Date(Date.parse(this.el.value)), - n._isDate(e) && this.setDate(e)) - } - }, { - key: "renderDayName", - value: function(t, e, i) { - for (e += t.firstDay; e >= 7; ) - e -= 7; - return i ? t.i18n.weekdaysAbbrev[e] : t.i18n.weekdays[e] - } - }, { - key: "_finishSelection", - value: function() { - this.setInputValue(), - this.close() - } - }, { - key: "open", - value: function() { - if (!this.isOpen) - return this.isOpen = !0, - "function" == typeof this.options.onOpen && this.options.onOpen.call(this), - this.draw(), - this.modal.open(), - this - } - }, { - key: "close", - value: function() { - if (this.isOpen) - return this.isOpen = !1, - "function" == typeof this.options.onClose && this.options.onClose.call(this), - this.modal.close(), - this - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "_isDate", - value: function(t) { - return /Date/.test(Object.prototype.toString.call(t)) && !isNaN(t.getTime()) - } - }, { - key: "_isWeekend", - value: function(t) { - var e = t.getDay(); - return 0 === e || 6 === e - } - }, { - key: "_setToStartOfDay", - value: function(t) { - n._isDate(t) && t.setHours(0, 0, 0, 0) - } - }, { - key: "_getDaysInMonth", - value: function(t, e) { - return [31, n._isLeapYear(t) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][e] - } - }, { - key: "_isLeapYear", - value: function(t) { - return t % 4 == 0 && t % 100 != 0 || t % 400 == 0 - } - }, { - key: "_compareDates", - value: function(t, e) { - return t.getTime() === e.getTime() - } - }, { - key: "_setToStartOfDay", - value: function(t) { - n._isDate(t) && t.setHours(0, 0, 0, 0) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Datepicker - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - i._template = ['"].join(""), - M.Datepicker = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "datepicker", "M_Datepicker") -}(cash), -function(t) { - "use strict"; - var e = { - dialRadius: 135, - outerRadius: 105, - innerRadius: 70, - tickRadius: 20, - duration: 350, - container: null, - defaultTime: "now", - fromnow: 0, - doneText: "Ok", - clearText: "Clear", - cancelText: "Cancel", - autoClose: !1, - twelveHour: !0, - vibrate: !0 - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_Timepicker = s, - s.options = t.extend({}, n.defaults, i), - s.id = M.guid(), - s._insertHTMLIntoDOM(), - s._setupModal(), - s._setupVariables(), - s._setupEventHandlers(), - s._clockSetup(), - s._pickerSetup(), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.modal.destroy(), - t(this.modalEl).remove(), - this.el.M_Timepicker = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleInputKeydownBound = this._handleInputKeydown.bind(this), - this._handleInputClickBound = this._handleInputClick.bind(this), - this._handleClockClickStartBound = this._handleClockClickStart.bind(this), - this._handleDocumentClickMoveBound = this._handleDocumentClickMove.bind(this), - this._handleDocumentClickEndBound = this._handleDocumentClickEnd.bind(this), - this.el.addEventListener("click", this._handleInputClickBound), - this.el.addEventListener("keydown", this._handleInputKeydownBound), - this.plate.addEventListener("mousedown", this._handleClockClickStartBound), - this.plate.addEventListener("touchstart", this._handleClockClickStartBound), - t(this.spanHours).on("click", this.showView.bind(this, "hours")), - t(this.spanMinutes).on("click", this.showView.bind(this, "minutes")) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("click", this._handleInputClickBound), - this.el.removeEventListener("keydown", this._handleInputKeydownBound) - } - }, { - key: "_handleInputClick", - value: function() { - this.open() - } - }, { - key: "_handleInputKeydown", - value: function(t) { - t.which === M.keys.ENTER && (t.preventDefault(), - this.open()) - } - }, { - key: "_handleClockClickStart", - value: function(t) { - t.preventDefault(); - var e = this.plate.getBoundingClientRect() - , i = e.left - , s = e.top; - this.x0 = i + this.options.dialRadius, - this.y0 = s + this.options.dialRadius, - this.moved = !1; - var o = n._Pos(t); - this.dx = o.x - this.x0, - this.dy = o.y - this.y0, - this.setHand(this.dx, this.dy, !1), - document.addEventListener("mousemove", this._handleDocumentClickMoveBound), - document.addEventListener("touchmove", this._handleDocumentClickMoveBound), - document.addEventListener("mouseup", this._handleDocumentClickEndBound), - document.addEventListener("touchend", this._handleDocumentClickEndBound) - } - }, { - key: "_handleDocumentClickMove", - value: function(t) { - t.preventDefault(); - var e = n._Pos(t) - , i = e.x - this.x0 - , s = e.y - this.y0; - this.moved = !0, - this.setHand(i, s, !1, !0) - } - }, { - key: "_handleDocumentClickEnd", - value: function(t) { - t.preventDefault(), - document.removeEventListener("mouseup", this._handleDocumentClickEndBound), - document.removeEventListener("touchend", this._handleDocumentClickEndBound); - var e = n._Pos(t) - , i = e.x - this.x0 - , s = e.y - this.y0; - this.moved && i === this.dx && s === this.dy && this.setHand(i, s), - "hours" === this.currentView ? this.showView("minutes", this.options.duration / 2) : this.options.autoClose && (this.minutesView.addClass("timepicker-dial-out"), - setTimeout(function() { - this.done() - }, this.options.duration / 2)), - document.removeEventListener("mousemove", this._handleDocumentClickMoveBound), - document.removeEventListener("touchmove", this._handleDocumentClickMoveBound) - } - }, { - key: "_insertHTMLIntoDOM", - value: function() { - this.$modalEl = t(n._template), - this.modalEl = this.$modalEl[0], - this.modalEl.id = "modal-" + this.id; - var e = document.querySelector(this.options.container); - this.options.container && e ? this.$modalEl.appendTo(e) : this.$modalEl.insertBefore(this.el) - } - }, { - key: "_setupModal", - value: function() { - var t = this; - this.modal = M.Modal.init(this.modalEl, { - onCloseEnd: function() { - t.isOpen = !1 - } - }) - } - }, { - key: "_setupVariables", - value: function() { - this.currentView = "hours", - this.vibrate = navigator.vibrate ? "vibrate" : navigator.webkitVibrate ? "webkitVibrate" : null, - this._canvas = this.modalEl.querySelector(".timepicker-canvas"), - this.plate = this.modalEl.querySelector(".timepicker-plate"), - this.hoursView = this.modalEl.querySelector(".timepicker-hours"), - this.minutesView = this.modalEl.querySelector(".timepicker-minutes"), - this.spanHours = this.modalEl.querySelector(".timepicker-span-hours"), - this.spanMinutes = this.modalEl.querySelector(".timepicker-span-minutes"), - this.spanAmPm = this.modalEl.querySelector(".timepicker-span-am-pm"), - this.footer = this.modalEl.querySelector(".timepicker-footer"), - this.amOrPm = "PM" - } - }, { - key: "_pickerSetup", - value: function() { - t('").appendTo(this.footer).on("click", this.clear.bind(this)); - var e = t('
      '); - t('").appendTo(e).on("click", this.close.bind(this)), - t('").appendTo(e).on("click", this.done.bind(this)), - e.appendTo(this.footer) - } - }, { - key: "_clockSetup", - value: function() { - this.options.twelveHour && (this.$amBtn = t('
      AM
      '), - this.$pmBtn = t('
      PM
      '), - this.$amBtn.on("click", this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm), - this.$pmBtn.on("click", this._handleAmPmClick.bind(this)).appendTo(this.spanAmPm)), - this._buildHoursView(), - this._buildMinutesView(), - this._buildSVGClock() - } - }, { - key: "_buildSVGClock", - value: function() { - var t = this.options.dialRadius - , e = this.options.tickRadius - , i = 2 * t - , s = n._createSVGEl("svg"); - s.setAttribute("class", "timepicker-svg"), - s.setAttribute("width", i), - s.setAttribute("height", i); - var o = n._createSVGEl("g"); - o.setAttribute("transform", "translate(" + t + "," + t + ")"); - var a = n._createSVGEl("circle"); - a.setAttribute("class", "timepicker-canvas-bearing"), - a.setAttribute("cx", 0), - a.setAttribute("cy", 0), - a.setAttribute("r", 4); - var r = n._createSVGEl("line"); - r.setAttribute("x1", 0), - r.setAttribute("y1", 0); - var l = n._createSVGEl("circle"); - l.setAttribute("class", "timepicker-canvas-bg"), - l.setAttribute("r", e), - o.appendChild(r), - o.appendChild(l), - o.appendChild(a), - s.appendChild(o), - this._canvas.appendChild(s), - this.hand = r, - this.bg = l, - this.bearing = a, - this.g = o - } - }, { - key: "_buildHoursView", - value: function() { - var e = t('
      '); - if (this.options.twelveHour) - for (var i = 1; i < 13; i += 1) { - var n = e.clone() - , s = i / 6 * Math.PI - , o = this.options.outerRadius; - n.css({ - left: this.options.dialRadius + Math.sin(s) * o - this.options.tickRadius + "px", - top: this.options.dialRadius - Math.cos(s) * o - this.options.tickRadius + "px" - }), - n.html(0 === i ? "00" : i), - this.hoursView.appendChild(n[0]) - } - else - for (var a = 0; a < 24; a += 1) { - var r = e.clone() - , l = a / 6 * Math.PI - , h = a > 0 && a < 13 ? this.options.innerRadius : this.options.outerRadius; - r.css({ - left: this.options.dialRadius + Math.sin(l) * h - this.options.tickRadius + "px", - top: this.options.dialRadius - Math.cos(l) * h - this.options.tickRadius + "px" - }), - r.html(0 === a ? "00" : a), - this.hoursView.appendChild(r[0]) - } - } - }, { - key: "_buildMinutesView", - value: function() { - for (var e = t('
      '), i = 0; i < 60; i += 5) { - var s = e.clone() - , o = i / 30 * Math.PI; - s.css({ - left: this.options.dialRadius + Math.sin(o) * this.options.outerRadius - this.options.tickRadius + "px", - top: this.options.dialRadius - Math.cos(o) * this.options.outerRadius - this.options.tickRadius + "px" - }), - s.html(n._addLeadingZero(i)), - this.minutesView.appendChild(s[0]) - } - } - }, { - key: "_handleAmPmClick", - value: function(e) { - var i = t(e.target); - this.amOrPm = i.hasClass("am-btn") ? "AM" : "PM", - this._updateAmPmView() - } - }, { - key: "_updateAmPmView", - value: function() { - this.options.twelveHour && (this.$amBtn.toggleClass("text-primary", "AM" === this.amOrPm), - this.$pmBtn.toggleClass("text-primary", "PM" === this.amOrPm)) - } - }, { - key: "_updateTimeFromInput", - value: function() { - var t = ((this.el.value || this.options.defaultTime || "") + "").split(":"); - if (this.options.twelveHour && void 0 !== t[1] && (t[1].toUpperCase().indexOf("AM") > 0 ? this.amOrPm = "AM" : this.amOrPm = "PM", - t[1] = t[1].replace("AM", "").replace("PM", "")), - "now" === t[0]) { - var e = new Date(+new Date + this.options.fromnow); - t = [e.getHours(), e.getMinutes()], - this.options.twelveHour && (this.amOrPm = t[0] >= 12 && t[0] < 24 ? "PM" : "AM") - } - this.hours = +t[0] || 0, - this.minutes = +t[1] || 0, - this.spanHours.innerHTML = this.hours, - this.spanMinutes.innerHTML = n._addLeadingZero(this.minutes), - this._updateAmPmView() - } - }, { - key: "showView", - value: function(e, i) { - "minutes" === e && t(this.hoursView).css("visibility"); - var n = "hours" === e - , s = n ? this.hoursView : this.minutesView - , o = n ? this.minutesView : this.hoursView; - this.currentView = e, - t(this.spanHours).toggleClass("text-primary", n), - t(this.spanMinutes).toggleClass("text-primary", !n), - o.classList.add("timepicker-dial-out"), - t(s).css("visibility", "visible").removeClass("timepicker-dial-out"), - this.resetClock(i), - clearTimeout(this.toggleViewTimer), - this.toggleViewTimer = setTimeout(function() { - t(o).css("visibility", "hidden") - }, this.options.duration) - } - }, { - key: "resetClock", - value: function(e) { - var i = this.currentView - , n = this[i] - , s = "hours" === i - , o = n * (Math.PI / (s ? 6 : 30)) - , a = s && n > 0 && n < 13 ? this.options.innerRadius : this.options.outerRadius - , r = Math.sin(o) * a - , l = -Math.cos(o) * a - , h = this; - e ? (t(this.canvas).addClass("timepicker-canvas-out"), - setTimeout(function() { - t(h.canvas).removeClass("timepicker-canvas-out"), - h.setHand(r, l) - }, e)) : this.setHand(r, l) - } - }, { - key: "setHand", - value: function(t, e, i) { - var s = this - , o = Math.atan2(t, -e) - , a = "hours" === this.currentView - , r = Math.PI / (a || i ? 6 : 30) - , l = Math.sqrt(t * t + e * e) - , h = a && l < (this.options.outerRadius + this.options.innerRadius) / 2 - , d = h ? this.options.innerRadius : this.options.outerRadius; - this.options.twelveHour && (d = this.options.outerRadius), - o < 0 && (o = 2 * Math.PI + o); - var u = Math.round(o / r); - o = u * r, - this.options.twelveHour ? a ? 0 === u && (u = 12) : (i && (u *= 5), - 60 === u && (u = 0)) : a ? (12 === u && (u = 0), - u = h ? 0 === u ? 12 : u : 0 === u ? 0 : u + 12) : (i && (u *= 5), - 60 === u && (u = 0)), - this[this.currentView] !== u && this.vibrate && this.options.vibrate && (this.vibrateTimer || (navigator[this.vibrate](10), - this.vibrateTimer = setTimeout(function() { - s.vibrateTimer = null - }, 100))), - this[this.currentView] = u, - a ? this.spanHours.innerHTML = u : this.spanMinutes.innerHTML = n._addLeadingZero(u); - var c = Math.sin(o) * (d - this.options.tickRadius) - , p = -Math.cos(o) * (d - this.options.tickRadius) - , v = Math.sin(o) * d - , f = -Math.cos(o) * d; - this.hand.setAttribute("x2", c), - this.hand.setAttribute("y2", p), - this.bg.setAttribute("cx", v), - this.bg.setAttribute("cy", f) - } - }, { - key: "open", - value: function() { - this.isOpen || (this.isOpen = !0, - this._updateTimeFromInput(), - this.showView("hours"), - this.modal.open()) - } - }, { - key: "close", - value: function() { - this.isOpen && (this.isOpen = !1, - this.modal.close()) - } - }, { - key: "done", - value: function(t, e) { - var i = this.el.value - , s = e ? "" : n._addLeadingZero(this.hours) + ":" + n._addLeadingZero(this.minutes); - this.time = s, - !e && this.options.twelveHour && (s = s + " " + this.amOrPm), - this.el.value = s, - s !== i && this.$el.trigger("change"), - this.close(), - this.el.focus() - } - }, { - key: "clear", - value: function() { - this.done(null, !0) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "_addLeadingZero", - value: function(t) { - return (t < 10 ? "0" : "") + t - } - }, { - key: "_createSVGEl", - value: function(t) { - return document.createElementNS("http://www.w3.org/2000/svg", t) - } - }, { - key: "_Pos", - value: function(t) { - return t.targetTouches && t.targetTouches.length >= 1 ? { - x: t.targetTouches[0].clientX, - y: t.targetTouches[0].clientY - } : { - x: t.clientX, - y: t.clientY - } - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Timepicker - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - i._template = ['"].join(""), - M.Timepicker = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "timepicker", "M_Timepicker") -}(cash), -function(t) { - "use strict"; - var e = {} - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_CharacterCounter = s, - s.options = t.extend({}, n.defaults, i), - s.isInvalid = !1, - s.isValidLength = !1, - s._setupCounter(), - s._setupEventHandlers(), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.el.CharacterCounter = void 0, - this._removeCounter() - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleUpdateCounterBound = this.updateCounter.bind(this), - this.el.addEventListener("focus", this._handleUpdateCounterBound, !0), - this.el.addEventListener("input", this._handleUpdateCounterBound, !0) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("focus", this._handleUpdateCounterBound, !0), - this.el.removeEventListener("input", this._handleUpdateCounterBound, !0) - } - }, { - key: "_setupCounter", - value: function() { - this.counterEl = document.createElement("span"), - t(this.counterEl).addClass("character-counter").css({ - float: "right", - "font-size": "12px", - height: 1 - }), - this.$el.parent().append(this.counterEl) - } - }, { - key: "_removeCounter", - value: function() { - t(this.counterEl).remove() - } - }, { - key: "updateCounter", - value: function() { - var e = +this.$el.attr("data-length") - , i = this.el.value.length; - this.isValidLength = i <= e; - var n = i; - e && (n += "/" + e, - this._validateInput()), - t(this.counterEl).html(n) - } - }, { - key: "_validateInput", - value: function() { - this.isValidLength && this.isInvalid ? (this.isInvalid = !1, - this.$el.removeClass("invalid")) : this.isValidLength || this.isInvalid || (this.isInvalid = !0, - this.$el.removeClass("valid"), - this.$el.addClass("invalid")) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_CharacterCounter - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - M.CharacterCounter = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "characterCounter", "M_CharacterCounter") -}(cash), -function(t) { - "use strict"; - var e = { - duration: 200, - dist: -100, - shift: 0, - padding: 0, - fullWidth: !1, - indicators: !1, - noWrap: !1, - onCycleTo: null - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_Carousel = s, - s.options = t.extend({}, n.defaults, i), - s.hasMultipleSlides = s.$el.find(".carousel-item").length > 1, - s.showIndicators = s.options.indicators && s.hasMultipleSlides, - s.noWrap = s.options.noWrap || !s.hasMultipleSlides, - s.pressed = !1, - s.dragged = !1, - s.offset = s.target = 0, - s.images = [], - s.itemWidth = s.$el.find(".carousel-item").first().innerWidth(), - s.itemHeight = s.$el.find(".carousel-item").first().innerHeight(), - s.dim = 2 * s.itemWidth + s.options.padding || 1, - s._autoScrollBound = s._autoScroll.bind(s), - s._trackBound = s._track.bind(s), - s.options.fullWidth && (s.options.dist = 0, - s._setCarouselHeight(), - s.showIndicators && s.$el.find(".carousel-fixed-item").addClass("with-indicators")), - s.$indicators = t('
        '), - s.$el.find(".carousel-item").each(function(e, i) { - if (s.images.push(e), - s.showIndicators) { - var n = t('
      • '); - 0 === i && n[0].classList.add("active"), - s.$indicators.append(n) - } - }), - s.showIndicators && s.$el.append(s.$indicators), - s.count = s.images.length, - s.xform = "transform", - ["webkit", "Moz", "O", "ms"].every(function(t) { - var e = t + "Transform"; - return void 0 === document.body.style[e] || (s.xform = e, - !1) - }), - s._setupEventHandlers(), - s._scroll(s.offset), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.el.M_Carousel = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - var t = this; - this._handleCarouselTapBound = this._handleCarouselTap.bind(this), - this._handleCarouselDragBound = this._handleCarouselDrag.bind(this), - this._handleCarouselReleaseBound = this._handleCarouselRelease.bind(this), - this._handleCarouselClickBound = this._handleCarouselClick.bind(this), - void 0 !== window.ontouchstart && (this.el.addEventListener("touchstart", this._handleCarouselTapBound), - this.el.addEventListener("touchmove", this._handleCarouselDragBound), - this.el.addEventListener("touchend", this._handleCarouselReleaseBound)), - this.el.addEventListener("mousedown", this._handleCarouselTapBound), - this.el.addEventListener("mousemove", this._handleCarouselDragBound), - this.el.addEventListener("mouseup", this._handleCarouselReleaseBound), - this.el.addEventListener("mouseleave", this._handleCarouselReleaseBound), - this.el.addEventListener("click", this._handleCarouselClickBound), - this.showIndicators && this.$indicators && (this._handleIndicatorClickBound = this._handleIndicatorClick.bind(this), - this.$indicators.find(".indicator-item").each(function(e, i) { - e.addEventListener("click", t._handleIndicatorClickBound) - })); - var e = M.throttle(this._handleResize, 200); - this._handleThrottledResizeBound = e.bind(this), - window.addEventListener("resize", this._handleThrottledResizeBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - var t = this; - void 0 !== window.ontouchstart && (this.el.removeEventListener("touchstart", this._handleCarouselTapBound), - this.el.removeEventListener("touchmove", this._handleCarouselDragBound), - this.el.removeEventListener("touchend", this._handleCarouselReleaseBound)), - this.el.removeEventListener("mousedown", this._handleCarouselTapBound), - this.el.removeEventListener("mousemove", this._handleCarouselDragBound), - this.el.removeEventListener("mouseup", this._handleCarouselReleaseBound), - this.el.removeEventListener("mouseleave", this._handleCarouselReleaseBound), - this.el.removeEventListener("click", this._handleCarouselClickBound), - this.showIndicators && this.$indicators && this.$indicators.find(".indicator-item").each(function(e, i) { - e.removeEventListener("click", t._handleIndicatorClickBound) - }), - window.removeEventListener("resize", this._handleThrottledResizeBound) - } - }, { - key: "_handleCarouselTap", - value: function(e) { - "mousedown" === e.type && t(e.target).is("img") && e.preventDefault(), - this.pressed = !0, - this.dragged = !1, - this.verticalDragged = !1, - this.reference = this._xpos(e), - this.referenceY = this._ypos(e), - this.velocity = this.amplitude = 0, - this.frame = this.offset, - this.timestamp = Date.now(), - clearInterval(this.ticker), - this.ticker = setInterval(this._trackBound, 100) - } - }, { - key: "_handleCarouselDrag", - value: function(t) { - var e = void 0 - , i = void 0 - , n = void 0; - if (this.pressed) - if (e = this._xpos(t), - i = this._ypos(t), - n = this.reference - e, - Math.abs(this.referenceY - i) < 30 && !this.verticalDragged) - (n > 2 || n < -2) && (this.dragged = !0, - this.reference = e, - this._scroll(this.offset + n)); - else { - if (this.dragged) - return t.preventDefault(), - t.stopPropagation(), - !1; - this.verticalDragged = !0 - } - if (this.dragged) - return t.preventDefault(), - t.stopPropagation(), - !1 - } - }, { - key: "_handleCarouselRelease", - value: function(t) { - if (this.pressed) - return this.pressed = !1, - clearInterval(this.ticker), - this.target = this.offset, - (this.velocity > 10 || this.velocity < -10) && (this.amplitude = .9 * this.velocity, - this.target = this.offset + this.amplitude), - this.target = Math.round(this.target / this.dim) * this.dim, - this.noWrap && (this.target >= this.dim * (this.count - 1) ? this.target = this.dim * (this.count - 1) : this.target < 0 && (this.target = 0)), - this.amplitude = this.target - this.offset, - this.timestamp = Date.now(), - requestAnimationFrame(this._autoScrollBound), - this.dragged && (t.preventDefault(), - t.stopPropagation()), - !1 - } - }, { - key: "_handleCarouselClick", - value: function(e) { - if (this.dragged) - return e.preventDefault(), - e.stopPropagation(), - !1; - if (!this.options.fullWidth) { - var i = t(e.target).closest(".carousel-item").index(); - 0 !== this._wrap(this.center) - i && (e.preventDefault(), - e.stopPropagation()), - this._cycleTo(i) - } - } - }, { - key: "_handleIndicatorClick", - value: function(e) { - e.stopPropagation(); - var i = t(e.target).closest(".indicator-item"); - i.length && this._cycleTo(i.index()) - } - }, { - key: "_handleResize", - value: function(t) { - this.options.fullWidth ? (this.itemWidth = this.$el.find(".carousel-item").first().innerWidth(), - this.imageHeight = this.$el.find(".carousel-item.active").height(), - this.dim = 2 * this.itemWidth + this.options.padding, - this.offset = 2 * this.center * this.itemWidth, - this.target = this.offset, - this._setCarouselHeight(!0)) : this._scroll() - } - }, { - key: "_setCarouselHeight", - value: function(t) { - var e = this - , i = this.$el.find(".carousel-item.active").length ? this.$el.find(".carousel-item.active").first() : this.$el.find(".carousel-item").first() - , n = i.find("img").first(); - if (n.length) - if (n[0].complete) { - var s = n.height(); - if (s > 0) - this.$el.css("height", s + "px"); - else { - var o = n[0].naturalWidth - , a = n[0].naturalHeight - , r = this.$el.width() / o * a; - this.$el.css("height", r + "px") - } - } else - n.one("load", function(t, i) { - e.$el.css("height", t.offsetHeight + "px") - }); - else if (!t) { - var l = i.height(); - this.$el.css("height", l + "px") - } - } - }, { - key: "_xpos", - value: function(t) { - return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientX : t.clientX - } - }, { - key: "_ypos", - value: function(t) { - return t.targetTouches && t.targetTouches.length >= 1 ? t.targetTouches[0].clientY : t.clientY - } - }, { - key: "_wrap", - value: function(t) { - return t >= this.count ? t % this.count : t < 0 ? this._wrap(this.count + t % this.count) : t - } - }, { - key: "_track", - value: function() { - var t = void 0 - , e = void 0 - , i = void 0 - , n = void 0; - e = (t = Date.now()) - this.timestamp, - this.timestamp = t, - i = this.offset - this.frame, - this.frame = this.offset, - n = 1e3 * i / (1 + e), - this.velocity = .8 * n + .2 * this.velocity - } - }, { - key: "_autoScroll", - value: function() { - var t = void 0 - , e = void 0; - this.amplitude && (t = Date.now() - this.timestamp, - (e = this.amplitude * Math.exp(-t / this.options.duration)) > 2 || e < -2 ? (this._scroll(this.target - e), - requestAnimationFrame(this._autoScrollBound)) : this._scroll(this.target)) - } - }, { - key: "_scroll", - value: function(e) { - var i = this; - this.$el.hasClass("scrolling") || this.el.classList.add("scrolling"), - null != this.scrollingTimeout && window.clearTimeout(this.scrollingTimeout), - this.scrollingTimeout = window.setTimeout(function() { - i.$el.removeClass("scrolling") - }, this.options.duration); - var n = void 0 - , s = void 0 - , o = void 0 - , a = void 0 - , r = void 0 - , l = void 0 - , h = void 0 - , d = void 0 - , u = void 0 - , c = this.center; - if (this.offset = "number" == typeof e ? e : this.offset, - this.center = Math.floor((this.offset + this.dim / 2) / this.dim), - r = -(a = (o = this.offset - this.center * this.dim) < 0 ? 1 : -1) * o * 2 / this.dim, - s = this.count >> 1, - this.options.fullWidth ? h = "translateX(0)" : (h = "translateX(" + (this.el.clientWidth - this.itemWidth) / 2 + "px) ", - h += "translateY(" + (this.el.clientHeight - this.itemHeight) / 2 + "px)"), - this.showIndicators) { - var p = this.center % this.count - , v = this.$indicators.find(".indicator-item.active"); - v.index() !== p && (v.removeClass("active"), - this.$indicators.find(".indicator-item").eq(p)[0].classList.add("active")) - } - for ((!this.noWrap || this.center >= 0 && this.center < this.count) && (l = this.images[this._wrap(this.center)], - t(l).hasClass("active") || (this.$el.find(".carousel-item").removeClass("active"), - l.classList.add("active")), - l.style[this.xform] = h + " translateX(" + -o / 2 + "px) translateX(" + a * this.options.shift * r * n + "px) translateZ(" + this.options.dist * r + "px)", - l.style.zIndex = 0, - u = this.options.fullWidth ? 1 : 1 - .2 * r, - l.style.opacity = u, - l.style.visibility = "visible"), - n = 1; n <= s; ++n) - this.options.fullWidth ? (d = this.options.dist, - u = n === s && o < 0 ? 1 - r : 1) : (d = this.options.dist * (2 * n + r * a), - u = 1 - .2 * (2 * n + r * a)), - (!this.noWrap || this.center + n < this.count) && ((l = this.images[this._wrap(this.center + n)]).style[this.xform] = h + " translateX(" + (this.options.shift + (this.dim * n - o) / 2) + "px) translateZ(" + d + "px)", - l.style.zIndex = -n, - l.style.opacity = u, - l.style.visibility = "visible"), - this.options.fullWidth ? (d = this.options.dist, - u = n === s && o > 0 ? 1 - r : 1) : (d = this.options.dist * (2 * n - r * a), - u = 1 - .2 * (2 * n - r * a)), - (!this.noWrap || this.center - n >= 0) && ((l = this.images[this._wrap(this.center - n)]).style[this.xform] = h + " translateX(" + (-this.options.shift + (-this.dim * n - o) / 2) + "px) translateZ(" + d + "px)", - l.style.zIndex = -n, - l.style.opacity = u, - l.style.visibility = "visible"); - (!this.noWrap || this.center >= 0 && this.center < this.count) && ((l = this.images[this._wrap(this.center)]).style[this.xform] = h + " translateX(" + -o / 2 + "px) translateX(" + a * this.options.shift * r + "px) translateZ(" + this.options.dist * r + "px)", - l.style.zIndex = 0, - u = this.options.fullWidth ? 1 : 1 - .2 * r, - l.style.opacity = u, - l.style.visibility = "visible"); - var f = this.$el.find(".carousel-item").eq(this._wrap(this.center)); - c !== this.center && "function" == typeof this.options.onCycleTo && this.options.onCycleTo.call(this, f[0], this.dragged), - "function" == typeof this.oneTimeCallback && (this.oneTimeCallback.call(this, f[0], this.dragged), - this.oneTimeCallback = null) - } - }, { - key: "_cycleTo", - value: function(t, e) { - var i = this.center % this.count - t; - this.noWrap || (i < 0 ? Math.abs(i + this.count) < Math.abs(i) && (i += this.count) : i > 0 && Math.abs(i - this.count) < i && (i -= this.count)), - this.target = this.dim * Math.round(this.offset / this.dim), - i < 0 ? this.target += this.dim * Math.abs(i) : i > 0 && (this.target -= this.dim * i), - "function" == typeof e && (this.oneTimeCallback = e), - this.offset !== this.target && (this.amplitude = this.target - this.offset, - this.timestamp = Date.now(), - requestAnimationFrame(this._autoScrollBound)) - } - }, { - key: "next", - value: function(t) { - (void 0 === t || isNaN(t)) && (t = 1); - var e = this.center + t; - if (e > this.count || e < 0) { - if (this.noWrap) - return; - e = this._wrap(e) - } - this._cycleTo(e) - } - }, { - key: "prev", - value: function(t) { - (void 0 === t || isNaN(t)) && (t = 1); - var e = this.center - t; - if (e > this.count || e < 0) { - if (this.noWrap) - return; - e = this._wrap(e) - } - this._cycleTo(e) - } - }, { - key: "set", - value: function(t, e) { - if ((void 0 === t || isNaN(t)) && (t = 0), - t > this.count || t < 0) { - if (this.noWrap) - return; - t = this._wrap(t) - } - this._cycleTo(t, e) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Carousel - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - M.Carousel = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "carousel", "M_Carousel") -}(cash), -function(t) { - "use strict"; - var e = { - onOpen: void 0, - onClose: void 0 - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_FeatureDiscovery = s, - s.options = t.extend({}, n.defaults, i), - s.isOpen = !1, - s.$origin = t("#" + s.$el.attr("data-target")), - s._setup(), - s._calculatePositioning(), - s._setupEventHandlers(), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this.el.FeatureDiscovery = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleDocumentClickBound = this._handleDocumentClick.bind(this), - this._handleTargetClickBound = this._handleTargetClick.bind(this), - this._handleOriginClickBound = this._handleOriginClick.bind(this), - this.el.addEventListener("click", this._handleTargetClickBound), - this.originEl.addEventListener("click", this._handleOriginClickBound); - var t = M.throttle(this._handleResize, 200); - this._handleThrottledResizeBound = t.bind(this), - window.addEventListener("resize", this._handleThrottledResizeBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("click", this._handleTargetClickBound), - this.originEl.removeEventListener("click", this._handleOriginClickBound), - window.removeEventListener("resize", this._handleThrottledResizeBound) - } - }, { - key: "_handleTargetClick", - value: function(t) { - this.open() - } - }, { - key: "_handleOriginClick", - value: function(t) { - this.close() - } - }, { - key: "_handleResize", - value: function(t) { - this._calculatePositioning() - } - }, { - key: "_handleDocumentClick", - value: function(e) { - t(e.target).closest(".tap-target-wrapper").length || (this.close(), - e.preventDefault(), - e.stopPropagation()) - } - }, { - key: "_setup", - value: function() { - this.wrapper = this.$el.parent()[0], - this.waveEl = t(this.wrapper).find(".tap-target-wave")[0], - this.originEl = t(this.wrapper).find(".tap-target-origin")[0], - this.contentEl = this.$el.find(".tap-target-content")[0], - t(this.wrapper).hasClass(".tap-target-wrapper") || (this.wrapper = document.createElement("div"), - this.wrapper.classList.add("tap-target-wrapper"), - this.$el.before(t(this.wrapper)), - this.wrapper.append(this.el)), - this.contentEl || (this.contentEl = document.createElement("div"), - this.contentEl.classList.add("tap-target-content"), - this.$el.append(this.contentEl)), - this.waveEl || (this.waveEl = document.createElement("div"), - this.waveEl.classList.add("tap-target-wave"), - this.originEl || (this.originEl = this.$origin.clone(!0, !0), - this.originEl.addClass("tap-target-origin"), - this.originEl.removeAttr("id"), - this.originEl.removeAttr("style"), - this.originEl = this.originEl[0], - this.waveEl.append(this.originEl)), - this.wrapper.append(this.waveEl)) - } - }, { - key: "_calculatePositioning", - value: function() { - var e = "fixed" === this.$origin.css("position"); - if (!e) - for (var i = this.$origin.parents(), n = 0; n < i.length && !(e = "fixed" == t(i[n]).css("position")); n++) - ; - var s = this.$origin.outerWidth() - , o = this.$origin.outerHeight() - , a = e ? this.$origin.offset().top - M.getDocumentScrollTop() : this.$origin.offset().top - , r = e ? this.$origin.offset().left - M.getDocumentScrollLeft() : this.$origin.offset().left - , l = window.innerWidth - , h = window.innerHeight - , d = l / 2 - , u = h / 2 - , c = r <= d - , p = r > d - , v = a <= u - , f = a > u - , m = r >= .25 * l && r <= .75 * l - , g = this.$el.outerWidth() - , _ = this.$el.outerHeight() - , y = a + o / 2 - _ / 2 - , k = r + s / 2 - g / 2 - , b = e ? "fixed" : "absolute" - , w = m ? g : g / 2 + s - , C = _ / 2 - , E = v ? _ / 2 : 0 - , x = c && !m ? g / 2 - s : 0 - , L = s - , T = f ? "bottom" : "top" - , O = 2 * s - , $ = O - , D = _ / 2 - $ / 2 - , B = g / 2 - O / 2 - , I = {}; - I.top = v ? y + "px" : "", - I.right = p ? l - k - g + "px" : "", - I.bottom = f ? h - y - _ + "px" : "", - I.left = c ? k + "px" : "", - I.position = b, - t(this.wrapper).css(I), - t(this.contentEl).css({ - width: w + "px", - height: C + "px", - top: E + "px", - right: "0px", - bottom: "0px", - left: x + "px", - padding: L + "px", - verticalAlign: T - }), - t(this.waveEl).css({ - top: D + "px", - left: B + "px", - width: O + "px", - height: $ + "px" - }) - } - }, { - key: "open", - value: function() { - this.isOpen || ("function" == typeof this.options.onOpen && this.options.onOpen.call(this, this.$origin[0]), - this.isOpen = !0, - this.wrapper.classList.add("open"), - document.body.addEventListener("click", this._handleDocumentClickBound, !0), - document.body.addEventListener("touchend", this._handleDocumentClickBound)) - } - }, { - key: "close", - value: function() { - this.isOpen && ("function" == typeof this.options.onClose && this.options.onClose.call(this, this.$origin[0]), - this.isOpen = !1, - this.wrapper.classList.remove("open"), - document.body.removeEventListener("click", this._handleDocumentClickBound, !0), - document.body.removeEventListener("touchend", this._handleDocumentClickBound)) - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_FeatureDiscovery - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - M.FeatureDiscovery = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "featureDiscovery", "M_FeatureDiscovery") -}(cash), -function(t) { - "use strict"; - var e = { - classes: "" - } - , i = function(i) { - _inherits(n, Component); - function n(e, i) { - _classCallCheck(this, n); - var s = _possibleConstructorReturn(this, (n.__proto__ || Object.getPrototypeOf(n)).call(this, n, e, i)); - return s.el.M_Select = s, - s.options = t.extend({}, n.defaults, i), - s.isMultiple = s.$el.prop("multiple"), - s._keysSelected = {}, - s._valueDict = {}, - s._setupDropdown(), - s._setupEventHandlers(), - s - } - return _createClass(n, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this._removeDropdown(), - this.el.M_Select = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - var e = this; - this._handleSelectChangeBound = this._handleSelectChange.bind(this), - this._handleOptionClickBound = this._handleOptionClick.bind(this), - this._handleInputClickBound = this._handleInputClick.bind(this), - t(this.dropdownOptions).find("li:not(.optgroup)").each(function(t) { - t.addEventListener("click", e._handleOptionClickBound) - }), - this.el.addEventListener("change", this._handleSelectChangeBound), - this.input.addEventListener("click", this._handleInputClickBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - var e = this; - t(this.dropdownOptions).find("li:not(.optgroup)").each(function(t) { - t.removeEventListener("click", e._handleOptionClickBound) - }), - this.el.removeEventListener("change", this._handleSelectChangeBound), - this.input.removeEventListener("click", this._handleInputClickBound), - this.input.removeEventListener("focus", this._handleInputFocusBound) - } - }, { - key: "_handleSelectChange", - value: function(t) { - this._setValueToInput() - } - }, { - key: "_handleOptionClick", - value: function(e) { - e.preventDefault(); - var i = t(e.target).closest("li")[0] - , n = i.id; - if (!t(i).hasClass("disabled") && !t(i).hasClass("optgroup") && n.length) { - var s = !0; - if (this.isMultiple) { - var o = t(this.dropdownOptions).find("li.disabled.selected"); - o.length && (o.removeClass("selected"), - o.find('input[type="checkbox"]').prop("checked", !1), - this._toggleEntryFromArray(o[0].id)); - var a = t(i).find('input[type="checkbox"]'); - a.prop("checked", !a.prop("checked")), - s = this._toggleEntryFromArray(n) - } else - t(this.dropdownOptions).find("li").removeClass("active"), - t(i).toggleClass("active"), - this.input.value = i.textContent; - this._activateOption(t(this.dropdownOptions), i), - t(this._valueDict[n].el).prop("selected", s), - this.$el.trigger("change") - } - e.stopPropagation() - } - }, { - key: "_handleInputClick", - value: function() { - this.dropdown && this.dropdown.isOpen && (this._setValueToInput(), - this._setSelectedStates()) - } - }, { - key: "_setupDropdown", - value: function() { - var e = this; - this.wrapper = document.createElement("div"), - t(this.wrapper).addClass("select-wrapper " + this.options.classes), - this.$el.before(t(this.wrapper)), - this.wrapper.appendChild(this.el), - this.el.disabled && this.wrapper.classList.add("disabled"), - this.$selectOptions = this.$el.children("option, optgroup"), - this.dropdownOptions = document.createElement("ul"), - this.dropdownOptions.id = "select-options-" + M.guid(), - t(this.dropdownOptions).addClass("dropdown-content select-dropdown " + (this.isMultiple ? "multiple-select-dropdown" : "")), - this.$selectOptions.length && this.$selectOptions.each(function(i) { - if (t(i).is("option")) { - var n = void 0; - n = e.isMultiple ? e._appendOptionWithIcon(e.$el, i, "multiple") : e._appendOptionWithIcon(e.$el, i), - e._addOptionToValueDict(i, n) - } else if (t(i).is("optgroup")) { - var s = t(i).children("option"); - t(e.dropdownOptions).append(t('
      • ' + i.getAttribute("label") + "
      • ")[0]), - s.each(function(t) { - var i = e._appendOptionWithIcon(e.$el, t, "optgroup-option"); - e._addOptionToValueDict(t, i) - }) - } - }), - this.$el.after(this.dropdownOptions), - this.input = document.createElement("input"), - t(this.input).addClass("select-dropdown dropdown-trigger"), - this.input.setAttribute("type", "text"), - this.input.setAttribute("readonly", "true"), - this.input.setAttribute("data-target", this.dropdownOptions.id), - this.el.disabled && t(this.input).prop("disabled", "true"), - this.$el.before(this.input), - this._setValueToInput(); - var i = t(''); - if (this.$el.before(i[0]), - !this.el.disabled) { - var n = {}; - this.isMultiple && (n.closeOnClick = !1), - this.dropdown = M.Dropdown.init(this.input, n) - } - this._setSelectedStates() - } - }, { - key: "_addOptionToValueDict", - value: function(t, e) { - var i = Object.keys(this._valueDict).length - , n = this.dropdownOptions.id + i - , s = {}; - e.id = n, - s.el = t, - s.optionEl = e, - this._valueDict[n] = s - } - }, { - key: "_removeDropdown", - value: function() { - t(this.wrapper).find(".caret").remove(), - t(this.input).remove(), - t(this.dropdownOptions).remove(), - t(this.wrapper).before(this.$el), - t(this.wrapper).remove() - } - }, { - key: "_appendOptionWithIcon", - value: function(e, i, n) { - var s = i.disabled ? "disabled " : "" - , o = "optgroup-option" === n ? "optgroup-option " : "" - , a = this.isMultiple ? '" : i.innerHTML - , r = t("
      • ") - , l = t(""); - l.html(a), - r.addClass(s + " " + o), - r.append(l); - var h = i.getAttribute("data-icon"); - i.getAttribute("class"); - if (h) { - var d = t(''); - r.prepend(d) - } - return t(this.dropdownOptions).append(r[0]), - r[0] - } - }, { - key: "_toggleEntryFromArray", - value: function(e) { - var i = !this._keysSelected.hasOwnProperty(e); - return i ? this._keysSelected[e] = !0 : delete this._keysSelected[e], - t(this._valueDict[e].optionEl).toggleClass("active"), - t(this._valueDict[e].el).prop("selected", i), - i - } - }, { - key: "_setValueToInput", - value: function() { - var e = ""; - if (this.$el.find("option").each(function(i) { - if (t(i).prop("selected")) { - var n = t(i).text(); - e += "" === e ? n : ", " + n - } - }), - "" === e) { - var i = this.$el.find("option:disabled").eq(0); - i.length && (e = i.text()) - } - this.input.value = e - } - }, { - key: "_setSelectedStates", - value: function() { - this._keysSelected = {}; - for (var e in this._valueDict) { - var i = this._valueDict[e]; - t(i.el).prop("selected") ? (t(i.optionEl).find('input[type="checkbox"]').prop("checked", !0), - this._activateOption(t(this.dropdownOptions), t(i.optionEl)), - this._keysSelected[e] = !0) : (t(i.optionEl).find('input[type="checkbox"]').prop("checked", !1), - t(i.optionEl).removeClass("selected")) - } - } - }, { - key: "_activateOption", - value: function(e, i) { - if (i) { - this.isMultiple || e.find("li.selected").removeClass("selected"); - t(i).addClass("selected") - } - } - }, { - key: "getSelectedValues", - value: function() { - var t = []; - for (var e in this._keysSelected) - t.push(this._valueDict[e].el.value); - return t - } - }], [{ - key: "init", - value: function(t, e) { - return _get(n.__proto__ || Object.getPrototypeOf(n), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Select - } - }, { - key: "defaults", - get: function() { - return e - } - }]), - n - }(); - M.Select = i, - M.jQueryLoaded && M.initializeJqueryWrapper(i, "select", "M_Select") -}(cash), -function(t, e) { - "use strict"; - var i = {} - , n = function(n) { - _inherits(s, Component); - function s(e, i) { - _classCallCheck(this, s); - var n = _possibleConstructorReturn(this, (s.__proto__ || Object.getPrototypeOf(s)).call(this, s, e, i)); - return n.el.M_Range = n, - n.options = t.extend({}, s.defaults, i), - n._mousedown = !1, - n._setupThumb(), - n._setupEventHandlers(), - n - } - return _createClass(s, [{ - key: "destroy", - value: function() { - this._removeEventHandlers(), - this._removeThumb(), - this.el.M_Range = void 0 - } - }, { - key: "_setupEventHandlers", - value: function() { - this._handleRangeChangeBound = this._handleRangeChange.bind(this), - this._handleRangeFocusBound = this._handleRangeFocus.bind(this), - this._handleRangeMousedownTouchstartBound = this._handleRangeMousedownTouchstart.bind(this), - this._handleRangeInputMousemoveTouchmoveBound = this._handleRangeInputMousemoveTouchmove.bind(this), - this._handleRangeMouseupTouchendBound = this._handleRangeMouseupTouchend.bind(this), - this._handleRangeBlurMouseoutTouchleaveBound = this._handleRangeBlurMouseoutTouchleave.bind(this), - this.el.addEventListener("change", this._handleRangeChangeBound), - this.el.addEventListener("focus", this._handleRangeFocusBound), - this.el.addEventListener("mousedown", this._handleRangeMousedownTouchstartBound), - this.el.addEventListener("touchstart", this._handleRangeMousedownTouchstartBound), - this.el.addEventListener("input", this._handleRangeInputMousemoveTouchmoveBound), - this.el.addEventListener("mousemove", this._handleRangeInputMousemoveTouchmoveBound), - this.el.addEventListener("touchmove", this._handleRangeInputMousemoveTouchmoveBound), - this.el.addEventListener("mouseup", this._handleRangeMouseupTouchendBound), - this.el.addEventListener("touchend", this._handleRangeMouseupTouchendBound), - this.el.addEventListener("blur", this._handleRangeBlurMouseoutTouchleaveBound), - this.el.addEventListener("mouseout", this._handleRangeBlurMouseoutTouchleaveBound), - this.el.addEventListener("touchleave", this._handleRangeBlurMouseoutTouchleaveBound) - } - }, { - key: "_removeEventHandlers", - value: function() { - this.el.removeEventListener("change", this._handleRangeChangeBound), - this.el.removeEventListener("focus", this._handleRangeFocusBound), - this.el.removeEventListener("mousedown", this._handleRangeMousedownTouchstartBound), - this.el.removeEventListener("touchstart", this._handleRangeMousedownTouchstartBound), - this.el.removeEventListener("input", this._handleRangeInputMousemoveTouchmoveBound), - this.el.removeEventListener("mousemove", this._handleRangeInputMousemoveTouchmoveBound), - this.el.removeEventListener("touchmove", this._handleRangeInputMousemoveTouchmoveBound), - this.el.removeEventListener("mouseup", this._handleRangeMouseupTouchendBound), - this.el.removeEventListener("touchend", this._handleRangeMouseupTouchendBound), - this.el.removeEventListener("blur", this._handleRangeBlurMouseoutTouchleaveBound), - this.el.removeEventListener("mouseout", this._handleRangeBlurMouseoutTouchleaveBound), - this.el.removeEventListener("touchleave", this._handleRangeBlurMouseoutTouchleaveBound) - } - }, { - key: "_handleRangeChange", - value: function() { - t(this.value).html(this.$el.val()), - t(this.thumb).hasClass("active") || this._showRangeBubble(); - var e = this._calcRangeOffset(); - t(this.thumb).addClass("active").css("left", e + "px") - } - }, { - key: "_handleRangeFocus", - value: function() { - M.tabPressed && this.$el.addClass("focused") - } - }, { - key: "_handleRangeMousedownTouchstart", - value: function(e) { - if (t(this.value).html(this.$el.val()), - this._mousedown = !0, - this.$el.addClass("active"), - t(this.thumb).hasClass("active") || this._showRangeBubble(), - "input" !== e.type) { - var i = this._calcRangeOffset(); - t(this.thumb).addClass("active").css("left", i + "px") - } - } - }, { - key: "_handleRangeInputMousemoveTouchmove", - value: function() { - if (this._mousedown) { - t(this.thumb).hasClass("active") || this._showRangeBubble(); - var e = this._calcRangeOffset(); - t(this.thumb).addClass("active").css("left", e + "px"), - t(this.value).html(this.$el.val()) - } - } - }, { - key: "_handleRangeMouseupTouchend", - value: function() { - this._mousedown = !1, - this.$el.removeClass("active") - } - }, { - key: "_handleRangeBlurMouseoutTouchleave", - value: function() { - if (!this._mousedown) { - this.$el.removeClass("focused"); - var i = 7 + parseInt(this.$el.css("padding-left")) + "px"; - t(this.thumb).hasClass("active") && (e.remove(this.thumb), - e({ - targets: this.thumb, - height: 0, - width: 0, - top: 10, - easing: "easeOutQuad", - marginLeft: i, - duration: 100 - })), - t(this.thumb).removeClass("active") - } - } - }, { - key: "_setupThumb", - value: function() { - this.thumb = document.createElement("span"), - this.value = document.createElement("span"), - t(this.thumb).addClass("thumb"), - t(this.value).addClass("value"), - t(this.thumb).append(this.value), - this.$el.after(this.thumb) - } - }, { - key: "_removeThumb", - value: function() { - t(this.thumb).remove() - } - }, { - key: "_showRangeBubble", - value: function() { - var i = -7 + parseInt(t(this.thumb).parent().css("padding-left")) + "px"; - e.remove(this.thumb), - e({ - targets: this.thumb, - height: 30, - width: 30, - top: -30, - marginLeft: i, - duration: 300, - easing: "easeOutQuint" - }) - } - }, { - key: "_calcRangeOffset", - value: function() { - var t = this.$el.width() - 15 - , e = parseFloat(this.$el.attr("max")) - , i = parseFloat(this.$el.attr("min")); - return (parseFloat(this.$el.val()) - i) / (e - i) * t - } - }], [{ - key: "init", - value: function(t, e) { - return _get(s.__proto__ || Object.getPrototypeOf(s), "init", this).call(this, this, t, e) - } - }, { - key: "getInstance", - value: function(t) { - return (t.jquery ? t[0] : t).M_Range - } - }, { - key: "defaults", - get: function() { - return i - } - }]), - s - }(); - M.Range = n, - M.jQueryLoaded && M.initializeJqueryWrapper(n, "range", "M_Range"), - n.init(t("input[type=range]")) -}(cash, M.anime); -function get_gravatar(email, size) { - var MD5 = function(s) { - function L(k, d) { - return (k << d) | (k >>> (32 - d)) - } - function K(G, k) { - var I, d, F, H, x; - F = (G & 2147483648); - H = (k & 2147483648); - I = (G & 1073741824); - d = (k & 1073741824); - x = (G & 1073741823) + (k & 1073741823); - if (I & d) { - return (x ^ 2147483648 ^ F ^ H) - } - if (I | d) { - if (x & 1073741824) { - return (x ^ 3221225472 ^ F ^ H) - } else { - return (x ^ 1073741824 ^ F ^ H) - } - } else { - return (x ^ F ^ H) - } - } - function r(d, F, k) { - return (d & F) | ((~d) & k) - } - function q(d, F, k) { - return (d & k) | (F & (~k)) - } - function p(d, F, k) { - return (d ^ F ^ k) - } - function n(d, F, k) { - return (F ^ (d | (~k))) - } - function u(G, F, aa, Z, k, H, I) { - G = K(G, K(K(r(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function f(G, F, aa, Z, k, H, I) { - G = K(G, K(K(q(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function D(G, F, aa, Z, k, H, I) { - G = K(G, K(K(p(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function t(G, F, aa, Z, k, H, I) { - G = K(G, K(K(n(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function e(G) { - var Z; - var F = G.length; - var x = F + 8; - var k = (x - (x % 64)) / 64; - var I = (k + 1) * 16; - var aa = Array(I - 1); - var d = 0; - var H = 0; - while (H < F) { - Z = (H - (H % 4)) / 4; - d = (H % 4) * 8; - aa[Z] = (aa[Z] | (G.charCodeAt(H) << d)); - H++ - } - Z = (H - (H % 4)) / 4; - d = (H % 4) * 8; - aa[Z] = aa[Z] | (128 << d); - aa[I - 2] = F << 3; - aa[I - 1] = F >>> 29; - return aa - } - function B(x) { - var k = "", F = "", G, d; - for (d = 0; d <= 3; d++) { - G = (x >>> (d * 8)) & 255; - F = "0" + G.toString(16); - k = k + F.substr(F.length - 2, 2) - } - return k - } - function J(k) { - k = k.replace(/rn/g, "n"); - var d = ""; - for (var F = 0; F < k.length; F++) { - var x = k.charCodeAt(F); - if (x < 128) { - d += String.fromCharCode(x) - } else { - if ((x > 127) && (x < 2048)) { - d += String.fromCharCode((x >> 6) | 192); - d += String.fromCharCode((x & 63) | 128) - } else { - d += String.fromCharCode((x >> 12) | 224); - d += String.fromCharCode(((x >> 6) & 63) | 128); - d += String.fromCharCode((x & 63) | 128) - } - } - } - return d - } - var C = Array(); - var P, h, E, v, g, Y, X, W, V; - var S = 7 - , Q = 12 - , N = 17 - , M = 22; - var A = 5 - , z = 9 - , y = 14 - , w = 20; - var o = 4 - , m = 11 - , l = 16 - , j = 23; - var U = 6 - , T = 10 - , R = 15 - , O = 21; - s = J(s); - C = e(s); - Y = 1732584193; - X = 4023233417; - W = 2562383102; - V = 271733878; - for (P = 0; P < C.length; P += 16) { - h = Y; - E = X; - v = W; - g = V; - Y = u(Y, X, W, V, C[P + 0], S, 3614090360); - V = u(V, Y, X, W, C[P + 1], Q, 3905402710); - W = u(W, V, Y, X, C[P + 2], N, 606105819); - X = u(X, W, V, Y, C[P + 3], M, 3250441966); - Y = u(Y, X, W, V, C[P + 4], S, 4118548399); - V = u(V, Y, X, W, C[P + 5], Q, 1200080426); - W = u(W, V, Y, X, C[P + 6], N, 2821735955); - X = u(X, W, V, Y, C[P + 7], M, 4249261313); - Y = u(Y, X, W, V, C[P + 8], S, 1770035416); - V = u(V, Y, X, W, C[P + 9], Q, 2336552879); - W = u(W, V, Y, X, C[P + 10], N, 4294925233); - X = u(X, W, V, Y, C[P + 11], M, 2304563134); - Y = u(Y, X, W, V, C[P + 12], S, 1804603682); - V = u(V, Y, X, W, C[P + 13], Q, 4254626195); - W = u(W, V, Y, X, C[P + 14], N, 2792965006); - X = u(X, W, V, Y, C[P + 15], M, 1236535329); - Y = f(Y, X, W, V, C[P + 1], A, 4129170786); - V = f(V, Y, X, W, C[P + 6], z, 3225465664); - W = f(W, V, Y, X, C[P + 11], y, 643717713); - X = f(X, W, V, Y, C[P + 0], w, 3921069994); - Y = f(Y, X, W, V, C[P + 5], A, 3593408605); - V = f(V, Y, X, W, C[P + 10], z, 38016083); - W = f(W, V, Y, X, C[P + 15], y, 3634488961); - X = f(X, W, V, Y, C[P + 4], w, 3889429448); - Y = f(Y, X, W, V, C[P + 9], A, 568446438); - V = f(V, Y, X, W, C[P + 14], z, 3275163606); - W = f(W, V, Y, X, C[P + 3], y, 4107603335); - X = f(X, W, V, Y, C[P + 8], w, 1163531501); - Y = f(Y, X, W, V, C[P + 13], A, 2850285829); - V = f(V, Y, X, W, C[P + 2], z, 4243563512); - W = f(W, V, Y, X, C[P + 7], y, 1735328473); - X = f(X, W, V, Y, C[P + 12], w, 2368359562); - Y = D(Y, X, W, V, C[P + 5], o, 4294588738); - V = D(V, Y, X, W, C[P + 8], m, 2272392833); - W = D(W, V, Y, X, C[P + 11], l, 1839030562); - X = D(X, W, V, Y, C[P + 14], j, 4259657740); - Y = D(Y, X, W, V, C[P + 1], o, 2763975236); - V = D(V, Y, X, W, C[P + 4], m, 1272893353); - W = D(W, V, Y, X, C[P + 7], l, 4139469664); - X = D(X, W, V, Y, C[P + 10], j, 3200236656); - Y = D(Y, X, W, V, C[P + 13], o, 681279174); - V = D(V, Y, X, W, C[P + 0], m, 3936430074); - W = D(W, V, Y, X, C[P + 3], l, 3572445317); - X = D(X, W, V, Y, C[P + 6], j, 76029189); - Y = D(Y, X, W, V, C[P + 9], o, 3654602809); - V = D(V, Y, X, W, C[P + 12], m, 3873151461); - W = D(W, V, Y, X, C[P + 15], l, 530742520); - X = D(X, W, V, Y, C[P + 2], j, 3299628645); - Y = t(Y, X, W, V, C[P + 0], U, 4096336452); - V = t(V, Y, X, W, C[P + 7], T, 1126891415); - W = t(W, V, Y, X, C[P + 14], R, 2878612391); - X = t(X, W, V, Y, C[P + 5], O, 4237533241); - Y = t(Y, X, W, V, C[P + 12], U, 1700485571); - V = t(V, Y, X, W, C[P + 3], T, 2399980690); - W = t(W, V, Y, X, C[P + 10], R, 4293915773); - X = t(X, W, V, Y, C[P + 1], O, 2240044497); - Y = t(Y, X, W, V, C[P + 8], U, 1873313359); - V = t(V, Y, X, W, C[P + 15], T, 4264355552); - W = t(W, V, Y, X, C[P + 6], R, 2734768916); - X = t(X, W, V, Y, C[P + 13], O, 1309151649); - Y = t(Y, X, W, V, C[P + 4], U, 4149444226); - V = t(V, Y, X, W, C[P + 11], T, 3174756917); - W = t(W, V, Y, X, C[P + 2], R, 718787259); - X = t(X, W, V, Y, C[P + 9], O, 3951481745); - Y = K(Y, h); - X = K(X, E); - W = K(W, v); - V = K(V, g) - } - var i = B(Y) + B(X) + B(W) + B(V); - return i.toLowerCase() - }; - var size = size || 80; - return 'https://gravatar.shino.cc/avatar/' + MD5(email) + '.jpg?s=' + size + '&d=mm'; -} -!function(e) { - "use strict"; - var n = function(n, t, o) { - var l, r = e.document, i = r.createElement("link"); - if (t) - l = t; - else { - var a = (r.body || r.getElementsByTagName("head")[0]).childNodes; - l = a[a.length - 1] - } - var d = r.styleSheets; - i.rel = "stylesheet", - i.href = n, - i.media = "only x", - l.parentNode.insertBefore(i, t ? l : l.nextSibling); - var f = function(e) { - for (var n = i.href, t = d.length; t--; ) - if (d[t].href === n) - return e(); - setTimeout(function() { - f(e) - }) - }; - return i.onloadcssdefined = f, - f(function() { - i.media = o || "all" - }), - i - }; - "undefined" != typeof module ? module.exports = n : e.loadCSS = n -}("undefined" != typeof global ? global : this); -!function(e) { - function t(o) { - if (n[o]) - return n[o].exports; - var l = n[o] = { - i: o, - l: !1, - exports: {} - }; - return e[o].call(l.exports, l, l.exports, t), - l.l = !0, - l.exports - } - var n = {}; - t.m = e, - t.c = n, - t.d = function(e, n, o) { - t.o(e, n) || Object.defineProperty(e, n, { - configurable: !1, - enumerable: !0, - get: o - }) - } - , - t.n = function(e) { - var n = e && e.__esModule ? function() { - return e.default - } - : function() { - return e - } - ; - return t.d(n, "a", n), - n - } - , - t.o = function(e, t) { - return Object.prototype.hasOwnProperty.call(e, t) - } - , - t.p = "", - t(t.s = 0) -}([function(e, t, n) { - (function(o) { - var l, i, r; - !function(n, o) { - i = [], - l = o(n), - void 0 !== (r = "function" == typeof l ? l.apply(t, i) : l) && (e.exports = r) - }(void 0 !== o ? o : this.window || this.global, function(e) { - "use strict"; - function t() { - for (var e = {}, t = 0; t < arguments.length; t++) { - var n = arguments[t]; - for (var o in n) - m.call(n, o) && (e[o] = n[o]) - } - return e - } - function o(e, t, n) { - t || (t = 250); - var o, l; - return function() { - var i = n || this - , r = +new Date - , s = arguments; - o && r < o + t ? (clearTimeout(l), - l = setTimeout(function() { - o = r, - e.apply(i, s) - }, t)) : (o = r, - e.apply(i, s)) - } - } - var l, i, r = n(2), s = {}, c = {}, a = n(3), u = n(4); - if ("undefined" != typeof window) { - var d, f = !!e.document.querySelector && !!e.addEventListener, m = Object.prototype.hasOwnProperty; - return c.destroy = function() { - try { - document.querySelector(s.tocSelector).innerHTML = "" - } catch (e) { - console.warn("Element not found: " + s.tocSelector) - } - document.removeEventListener("scroll", this._scrollListener, !1), - document.removeEventListener("resize", this._scrollListener, !1), - l && document.removeEventListener("click", this._clickListener, !1) - } - , - c.init = function(e) { - if (f && (s = t(r, e || {}), - this.options = s, - this.state = {}, - s.scrollSmooth && (c.scrollSmooth = n(5).initSmoothScrolling({ - duration: s.scrollSmoothDuration - })), - l = a(s), - i = u(s), - this._buildHtml = l, - this._parseContent = i, - c.destroy(), - null !== (d = i.selectHeadings(s.contentSelector, s.headingSelector)))) { - var m = i.nestHeadingsArray(d) - , h = m.nest; - return l.render(s.tocSelector, h), - this._scrollListener = o(function(e) { - l.updateToc(d); - var t = e && e.target && e.target.scrollingElement && 0 === e.target.scrollingElement.scrollTop; - (e && (0 === e.eventPhase || null === e.currentTarget) || t) && (l.enableTocAnimation(), - l.updateToc(d), - s.scrollEndCallback && s.scrollEndCallback(e)) - }, s.throttleTimeout), - this._scrollListener(), - document.addEventListener("scroll", this._scrollListener, !1), - document.addEventListener("resize", this._scrollListener, !1), - this._clickListener = o(function(e) { - s.scrollSmooth && l.disableTocAnimation(e), - l.updateToc(d) - }, s.throttleTimeout), - document.addEventListener("click", this._clickListener, !1), - this - } - } - , - c.refresh = function(e) { - c.destroy(), - c.init(e || this.options) - } - , - e.tocbot = c, - c - } - }) - } - ).call(t, n(1)) -} -, function(e, t) { - var n; - n = function() { - return this - }(); - try { - n = n || Function("return this")() || (0, - eval)("this") - } catch (e) { - "object" == typeof window && (n = window) - } - e.exports = n -} -, function(e, t) { - e.exports = { - tocSelector: ".js-toc", - contentSelector: ".js-toc-content", - headingSelector: "h1, h2, h3", - ignoreSelector: ".js-toc-ignore", - linkClass: "toc-link", - extraLinkClasses: "", - activeLinkClass: "is-active-link", - listClass: "toc-list", - extraListClasses: "", - isCollapsedClass: "is-collapsed", - collapsibleClass: "is-collapsible", - listItemClass: "toc-list-item", - collapseDepth: 0, - scrollSmooth: !0, - scrollSmoothDuration: 420, - scrollEndCallback: function(e) {}, - headingsOffset: 1, - throttleTimeout: 50, - positionFixedSelector: null, - positionFixedClass: "is-position-fixed", - fixedSidebarOffset: "auto", - includeHtml: !1, - onClick: !1 - } -} -, function(e, t) { - e.exports = function(e) { - function t(e, n) { - var i = n.appendChild(o(e)); - if (e.children.length) { - var r = l(e.isCollapsed); - e.children.forEach(function(e) { - t(e, r) - }), - i.appendChild(r) - } - } - function n(e, n) { - var o = l(!1); - n.forEach(function(e) { - t(e, o) - }); - var i = document.querySelector(e); - if (null !== i) - return i.firstChild && i.removeChild(i.firstChild), - i.appendChild(o) - } - function o(t) { - var n = document.createElement("li") - , o = document.createElement("a"); - return e.listItemClass && n.setAttribute("class", e.listItemClass), - e.onClick && (o.onclick = e.onClick), - e.includeHtml && t.childNodes.length ? u.call(t.childNodes, function(e) { - o.appendChild(e.cloneNode(!0)) - }) : o.textContent = t.textContent, - o.setAttribute("href", "#" + t.id), - o.setAttribute("class", e.linkClass + h + "node-name--" + t.nodeName + h + e.extraLinkClasses), - n.appendChild(o), - n - } - function l(t) { - var n = document.createElement("ol") - , o = e.listClass + h + e.extraListClasses; - return t && (o += h + e.collapsibleClass, - o += h + e.isCollapsedClass), - n.setAttribute("class", o), - n - } - function i() { - var t = document.documentElement.scrollTop || f.scrollTop - , n = document.querySelector(e.positionFixedSelector); - "auto" === e.fixedSidebarOffset && (e.fixedSidebarOffset = document.querySelector(e.tocSelector).offsetTop), - t > e.fixedSidebarOffset ? -1 === n.className.indexOf(e.positionFixedClass) && (n.className += h + e.positionFixedClass) : n.className = n.className.split(h + e.positionFixedClass).join("") - } - function r(t) { - var n = document.documentElement.scrollTop || f.scrollTop; - e.positionFixedSelector && i(); - var o, l = t; - if (m && null !== document.querySelector(e.tocSelector) && l.length > 0) { - d.call(l, function(t, i) { - if (t.offsetTop > n + e.headingsOffset + 10) { - return o = l[0 === i ? i : i - 1], - !0 - } - if (i === l.length - 1) - return o = l[l.length - 1], - !0 - }); - var r = document.querySelector(e.tocSelector).querySelectorAll("." + e.linkClass); - u.call(r, function(t) { - t.className = t.className.split(h + e.activeLinkClass).join("") - }); - var c = document.querySelector(e.tocSelector).querySelector("." + e.linkClass + ".node-name--" + o.nodeName + '[href="#' + o.id + '"]'); - c.className += h + e.activeLinkClass; - var a = document.querySelector(e.tocSelector).querySelectorAll("." + e.listClass + "." + e.collapsibleClass); - u.call(a, function(t) { - var n = h + e.isCollapsedClass; - -1 === t.className.indexOf(n) && (t.className += h + e.isCollapsedClass) - }), - c.nextSibling && (c.nextSibling.className = c.nextSibling.className.split(h + e.isCollapsedClass).join("")), - s(c.parentNode.parentNode) - } - } - function s(t) { - return -1 !== t.className.indexOf(e.collapsibleClass) ? (t.className = t.className.split(h + e.isCollapsedClass).join(""), - s(t.parentNode.parentNode)) : t - } - function c(t) { - var n = t.target || t.srcElement; - "string" == typeof n.className && -1 !== n.className.indexOf(e.linkClass) && (m = !1) - } - function a() { - m = !0 - } - var u = [].forEach - , d = [].some - , f = document.body - , m = !0 - , h = " "; - return { - enableTocAnimation: a, - disableTocAnimation: c, - render: n, - updateToc: r - } - } -} -, function(e, t) { - e.exports = function(e) { - function t(e) { - return e[e.length - 1] - } - function n(e) { - return +e.nodeName.split("H").join("") - } - function o(t) { - var o = { - id: t.id, - children: [], - nodeName: t.nodeName, - headingLevel: n(t), - textContent: t.textContent.trim() - }; - return e.includeHtml && (o.childNodes = t.childNodes), - o - } - function l(l, i) { - for (var r = o(l), s = n(l), c = i, a = t(c), u = a ? a.headingLevel : 0, d = s - u; d > 0; ) - a = t(c), - a && void 0 !== a.children && (c = a.children), - d--; - return s >= e.collapseDepth && (r.isCollapsed = !0), - c.push(r), - c - } - function i(t, n) { - var o = n; - e.ignoreSelector && (o = n.split(",").map(function(t) { - return t.trim() + ":not(" + e.ignoreSelector + ")" - })); - try { - return document.querySelector(t).querySelectorAll(o) - } catch (e) { - return console.warn("Element not found: " + t), - null - } - } - function r(e) { - return s.call(e, function(e, t) { - return l(o(t), e.nest), - e - }, { - nest: [] - }) - } - var s = [].reduce; - return { - nestHeadingsArray: r, - selectHeadings: i - } - } -} -, function(e, t) { - function n(e) { - function t(e) { - return "a" === e.tagName.toLowerCase() && (e.hash.length > 0 || "#" === e.href.charAt(e.href.length - 1)) && (n(e.href) === r || n(e.href) + "#" === r) - } - function n(e) { - return e.slice(0, e.lastIndexOf("#")) - } - function l(e) { - var t = document.getElementById(e.substring(1)); - t && (/^(?:a|select|input|button|textarea)$/i.test(t.tagName) || (t.tabIndex = -1), - t.focus()) - } - !function() { - document.documentElement.style - }(); - var i = e.duration - , r = location.hash ? n(location.href) : location.href; - !function() { - function e(e) { - !t(e.target) || e.target.className.indexOf("no-smooth-scroll") > -1 || "#" === e.target.href.charAt(e.target.href.length - 2) && "!" === e.target.href.charAt(e.target.href.length - 1) || (e.preventDefault(), - o(e.target.hash, { - duration: i, - callback: function() { - l(e.target.hash) - } - })) - } - document.body.addEventListener("click", e, !1) - }() - } - function o(e, t) { - function n(e) { - r = e - i, - window.scrollTo(0, c.easing(r, s, u, d)), - r < d ? requestAnimationFrame(n) : o() - } - function o() { - window.scrollTo(0, s + u), - "function" == typeof c.callback && c.callback() - } - function l(e, t, n, o) { - return (e /= o / 2) < 1 ? n / 2 * e * e + t : (e--, - -n / 2 * (e * (e - 2) - 1) + t) - } - var i, r, s = window.pageYOffset, c = { - duration: t.duration, - offset: t.offset || 0, - callback: t.callback, - easing: t.easing || l - }, a = document.querySelector('[id="' + e.split("#").join("") + '"]'), u = "string" == typeof e ? c.offset + (e ? a && a.getBoundingClientRect().top || 0 : -(document.documentElement.scrollTop || document.body.scrollTop)) : e, d = "function" == typeof c.duration ? c.duration(u) : c.duration; - requestAnimationFrame(function(e) { - i = e, - n(e) - }) - } - t.initSmoothScrolling = n -} -]); -function social_share() { - var QRCode; - !function() { - function t(t) { - this.mode = s.MODE_8BIT_BYTE, - this.data = t, - this.parsedData = []; - for (var e = 0, r = this.data.length; e < r; e++) { - var i = [] - , n = this.data.charCodeAt(e); - n > 65536 ? (i[0] = 240 | (1835008 & n) >>> 18, - i[1] = 128 | (258048 & n) >>> 12, - i[2] = 128 | (4032 & n) >>> 6, - i[3] = 128 | 63 & n) : n > 2048 ? (i[0] = 224 | (61440 & n) >>> 12, - i[1] = 128 | (4032 & n) >>> 6, - i[2] = 128 | 63 & n) : n > 128 ? (i[0] = 192 | (1984 & n) >>> 6, - i[1] = 128 | 63 & n) : i[0] = n, - this.parsedData.push(i) - } - this.parsedData = Array.prototype.concat.apply([], this.parsedData), - this.parsedData.length != this.data.length && (this.parsedData.unshift(191), - this.parsedData.unshift(187), - this.parsedData.unshift(239)) - } - function e(t, e) { - this.typeNumber = t, - this.errorCorrectLevel = e, - this.modules = null, - this.moduleCount = 0, - this.dataCache = null, - this.dataList = [] - } - function r(t, e) { - if (void 0 == t.length) - throw new Error(t.length + "/" + e); - for (var r = 0; r < t.length && 0 == t[r]; ) - r++; - this.num = new Array(t.length - r + e); - for (var i = 0; i < t.length - r; i++) - this.num[i] = t[i + r] - } - function i(t, e) { - this.totalCount = t, - this.dataCount = e - } - function n() { - this.buffer = [], - this.length = 0 - } - function o() { - var t = !1 - , e = navigator.userAgent; - if (/android/i.test(e)) { - t = !0; - var r = e.toString().match(/android ([0-9]\.[0-9])/i); - r && r[1] && (t = parseFloat(r[1])) - } - return t - } - function a(t, e) { - for (var r = 1, i = function(t) { - var e = encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g, "a"); - return e.length + (e.length != t ? 3 : 0) - }(t), n = 0, o = d.length; n <= o; n++) { - var a = 0; - switch (e) { - case h.L: - a = d[n][0]; - break; - case h.M: - a = d[n][1]; - break; - case h.Q: - a = d[n][2]; - break; - case h.H: - a = d[n][3] - } - if (i <= a) - break; - r++ - } - if (r > d.length) - throw new Error("Too long data"); - return r - } - t.prototype = { - getLength: function(t) { - return this.parsedData.length - }, - write: function(t) { - for (var e = 0, r = this.parsedData.length; e < r; e++) - t.put(this.parsedData[e], 8) - } - }, - e.prototype = { - addData: function(e) { - var r = new t(e); - this.dataList.push(r), - this.dataCache = null - }, - isDark: function(t, e) { - if (t < 0 || this.moduleCount <= t || e < 0 || this.moduleCount <= e) - throw new Error(t + "," + e); - return this.modules[t][e] - }, - getModuleCount: function() { - return this.moduleCount - }, - make: function() { - this.makeImpl(!1, this.getBestMaskPattern()) - }, - makeImpl: function(t, r) { - this.moduleCount = 4 * this.typeNumber + 17, - this.modules = new Array(this.moduleCount); - for (var i = 0; i < this.moduleCount; i++) { - this.modules[i] = new Array(this.moduleCount); - for (var n = 0; n < this.moduleCount; n++) - this.modules[i][n] = null - } - this.setupPositionProbePattern(0, 0), - this.setupPositionProbePattern(this.moduleCount - 7, 0), - this.setupPositionProbePattern(0, this.moduleCount - 7), - this.setupPositionAdjustPattern(), - this.setupTimingPattern(), - this.setupTypeInfo(t, r), - this.typeNumber >= 7 && this.setupTypeNumber(t), - null == this.dataCache && (this.dataCache = e.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), - this.mapData(this.dataCache, r) - }, - setupPositionProbePattern: function(t, e) { - for (var r = -1; r <= 7; r++) - if (!(t + r <= -1 || this.moduleCount <= t + r)) - for (var i = -1; i <= 7; i++) - e + i <= -1 || this.moduleCount <= e + i || (this.modules[t + r][e + i] = 0 <= r && r <= 6 && (0 == i || 6 == i) || 0 <= i && i <= 6 && (0 == r || 6 == r) || 2 <= r && r <= 4 && 2 <= i && i <= 4) - }, - getBestMaskPattern: function() { - for (var t = 0, e = 0, r = 0; r < 8; r++) { - this.makeImpl(!0, r); - var i = u.getLostPoint(this); - (0 == r || t > i) && (t = i, - e = r) - } - return e - }, - createMovieClip: function(t, e, r) { - var i = t.createEmptyMovieClip(e, r); - this.make(); - for (var n = 0; n < this.modules.length; n++) - for (var o = 1 * n, a = 0; a < this.modules[n].length; a++) { - var s = 1 * a; - this.modules[n][a] && (i.beginFill(0, 100), - i.moveTo(s, o), - i.lineTo(s + 1, o), - i.lineTo(s + 1, o + 1), - i.lineTo(s, o + 1), - i.endFill()) - } - return i - }, - setupTimingPattern: function() { - for (var t = 8; t < this.moduleCount - 8; t++) - null == this.modules[t][6] && (this.modules[t][6] = t % 2 == 0); - for (var e = 8; e < this.moduleCount - 8; e++) - null == this.modules[6][e] && (this.modules[6][e] = e % 2 == 0) - }, - setupPositionAdjustPattern: function() { - for (var t = u.getPatternPosition(this.typeNumber), e = 0; e < t.length; e++) - for (var r = 0; r < t.length; r++) { - var i = t[e] - , n = t[r]; - if (null == this.modules[i][n]) - for (var o = -2; o <= 2; o++) - for (var a = -2; a <= 2; a++) - this.modules[i + o][n + a] = -2 == o || 2 == o || -2 == a || 2 == a || 0 == o && 0 == a - } - }, - setupTypeNumber: function(t) { - for (var e = u.getBCHTypeNumber(this.typeNumber), r = 0; r < 18; r++) { - i = !t && 1 == (e >> r & 1); - this.modules[Math.floor(r / 3)][r % 3 + this.moduleCount - 8 - 3] = i - } - for (r = 0; r < 18; r++) { - var i = !t && 1 == (e >> r & 1); - this.modules[r % 3 + this.moduleCount - 8 - 3][Math.floor(r / 3)] = i - } - }, - setupTypeInfo: function(t, e) { - for (var r = this.errorCorrectLevel << 3 | e, i = u.getBCHTypeInfo(r), n = 0; n < 15; n++) { - o = !t && 1 == (i >> n & 1); - n < 6 ? this.modules[n][8] = o : n < 8 ? this.modules[n + 1][8] = o : this.modules[this.moduleCount - 15 + n][8] = o - } - for (n = 0; n < 15; n++) { - var o = !t && 1 == (i >> n & 1); - n < 8 ? this.modules[8][this.moduleCount - n - 1] = o : n < 9 ? this.modules[8][15 - n - 1 + 1] = o : this.modules[8][15 - n - 1] = o - } - this.modules[this.moduleCount - 8][8] = !t - }, - mapData: function(t, e) { - for (var r = -1, i = this.moduleCount - 1, n = 7, o = 0, a = this.moduleCount - 1; a > 0; a -= 2) - for (6 == a && a--; ; ) { - for (var s = 0; s < 2; s++) - if (null == this.modules[i][a - s]) { - var h = !1; - o < t.length && (h = 1 == (t[o] >>> n & 1)); - u.getMask(e, i, a - s) && (h = !h), - this.modules[i][a - s] = h, - -1 == --n && (o++, - n = 7) - } - if ((i += r) < 0 || this.moduleCount <= i) { - i -= r, - r = -r; - break - } - } - } - }, - e.PAD0 = 236, - e.PAD1 = 17, - e.createData = function(t, r, o) { - for (var a = i.getRSBlocks(t, r), s = new n, h = 0; h < o.length; h++) { - var l = o[h]; - s.put(l.mode, 4), - s.put(l.getLength(), u.getLengthInBits(l.mode, t)), - l.write(s) - } - for (var c = 0, h = 0; h < a.length; h++) - c += a[h].dataCount; - if (s.getLengthInBits() > 8 * c) - throw new Error("code length overflow. (" + s.getLengthInBits() + ">" + 8 * c + ")"); - for (s.getLengthInBits() + 4 <= 8 * c && s.put(0, 4); s.getLengthInBits() % 8 != 0; ) - s.putBit(!1); - for (; ; ) { - if (s.getLengthInBits() >= 8 * c) - break; - if (s.put(e.PAD0, 8), - s.getLengthInBits() >= 8 * c) - break; - s.put(e.PAD1, 8) - } - return e.createBytes(s, a) - } - , - e.createBytes = function(t, e) { - for (var i = 0, n = 0, o = 0, a = new Array(e.length), s = new Array(e.length), h = 0; h < e.length; h++) { - var l = e[h].dataCount - , c = e[h].totalCount - l; - n = Math.max(n, l), - o = Math.max(o, c), - a[h] = new Array(l); - for (m = 0; m < a[h].length; m++) - a[h][m] = 255 & t.buffer[m + i]; - i += l; - var f = u.getErrorCorrectPolynomial(c) - , d = new r(a[h],f.getLength() - 1).mod(f); - s[h] = new Array(f.getLength() - 1); - for (m = 0; m < s[h].length; m++) { - var g = m + d.getLength() - s[h].length; - s[h][m] = g >= 0 ? d.get(g) : 0 - } - } - for (var p = 0, m = 0; m < e.length; m++) - p += e[m].totalCount; - for (var v = new Array(p), w = 0, m = 0; m < n; m++) - for (h = 0; h < e.length; h++) - m < a[h].length && (v[w++] = a[h][m]); - for (m = 0; m < o; m++) - for (h = 0; h < e.length; h++) - m < s[h].length && (v[w++] = s[h][m]); - return v - } - ; - for (var s = { - MODE_NUMBER: 1, - MODE_ALPHA_NUM: 2, - MODE_8BIT_BYTE: 4, - MODE_KANJI: 8 - }, h = { - L: 1, - M: 0, - Q: 3, - H: 2 - }, l = { - PATTERN000: 0, - PATTERN001: 1, - PATTERN010: 2, - PATTERN011: 3, - PATTERN100: 4, - PATTERN101: 5, - PATTERN110: 6, - PATTERN111: 7 - }, u = { - PATTERN_POSITION_TABLE: [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]], - G15: 1335, - G18: 7973, - G15_MASK: 21522, - getBCHTypeInfo: function(t) { - for (var e = t << 10; u.getBCHDigit(e) - u.getBCHDigit(u.G15) >= 0; ) - e ^= u.G15 << u.getBCHDigit(e) - u.getBCHDigit(u.G15); - return (t << 10 | e) ^ u.G15_MASK - }, - getBCHTypeNumber: function(t) { - for (var e = t << 12; u.getBCHDigit(e) - u.getBCHDigit(u.G18) >= 0; ) - e ^= u.G18 << u.getBCHDigit(e) - u.getBCHDigit(u.G18); - return t << 12 | e - }, - getBCHDigit: function(t) { - for (var e = 0; 0 != t; ) - e++, - t >>>= 1; - return e - }, - getPatternPosition: function(t) { - return u.PATTERN_POSITION_TABLE[t - 1] - }, - getMask: function(t, e, r) { - switch (t) { - case l.PATTERN000: - return (e + r) % 2 == 0; - case l.PATTERN001: - return e % 2 == 0; - case l.PATTERN010: - return r % 3 == 0; - case l.PATTERN011: - return (e + r) % 3 == 0; - case l.PATTERN100: - return (Math.floor(e / 2) + Math.floor(r / 3)) % 2 == 0; - case l.PATTERN101: - return e * r % 2 + e * r % 3 == 0; - case l.PATTERN110: - return (e * r % 2 + e * r % 3) % 2 == 0; - case l.PATTERN111: - return (e * r % 3 + (e + r) % 2) % 2 == 0; - default: - throw new Error("bad maskPattern:" + t) - } - }, - getErrorCorrectPolynomial: function(t) { - for (var e = new r([1],0), i = 0; i < t; i++) - e = e.multiply(new r([1, c.gexp(i)],0)); - return e - }, - getLengthInBits: function(t, e) { - if (1 <= e && e < 10) - switch (t) { - case s.MODE_NUMBER: - return 10; - case s.MODE_ALPHA_NUM: - return 9; - case s.MODE_8BIT_BYTE: - case s.MODE_KANJI: - return 8; - default: - throw new Error("mode:" + t) - } - else if (e < 27) - switch (t) { - case s.MODE_NUMBER: - return 12; - case s.MODE_ALPHA_NUM: - return 11; - case s.MODE_8BIT_BYTE: - return 16; - case s.MODE_KANJI: - return 10; - default: - throw new Error("mode:" + t) - } - else { - if (!(e < 41)) - throw new Error("type:" + e); - switch (t) { - case s.MODE_NUMBER: - return 14; - case s.MODE_ALPHA_NUM: - return 13; - case s.MODE_8BIT_BYTE: - return 16; - case s.MODE_KANJI: - return 12; - default: - throw new Error("mode:" + t) - } - } - }, - getLostPoint: function(t) { - for (var e = t.getModuleCount(), r = 0, i = 0; i < e; i++) - for (u = 0; u < e; u++) { - for (var n = 0, o = t.isDark(i, u), a = -1; a <= 1; a++) - if (!(i + a < 0 || e <= i + a)) - for (var s = -1; s <= 1; s++) - u + s < 0 || e <= u + s || 0 == a && 0 == s || o == t.isDark(i + a, u + s) && n++; - n > 5 && (r += 3 + n - 5) - } - for (i = 0; i < e - 1; i++) - for (u = 0; u < e - 1; u++) { - var h = 0; - t.isDark(i, u) && h++, - t.isDark(i + 1, u) && h++, - t.isDark(i, u + 1) && h++, - t.isDark(i + 1, u + 1) && h++, - 0 != h && 4 != h || (r += 3) - } - for (i = 0; i < e; i++) - for (u = 0; u < e - 6; u++) - t.isDark(i, u) && !t.isDark(i, u + 1) && t.isDark(i, u + 2) && t.isDark(i, u + 3) && t.isDark(i, u + 4) && !t.isDark(i, u + 5) && t.isDark(i, u + 6) && (r += 40); - for (u = 0; u < e; u++) - for (i = 0; i < e - 6; i++) - t.isDark(i, u) && !t.isDark(i + 1, u) && t.isDark(i + 2, u) && t.isDark(i + 3, u) && t.isDark(i + 4, u) && !t.isDark(i + 5, u) && t.isDark(i + 6, u) && (r += 40); - for (var l = 0, u = 0; u < e; u++) - for (i = 0; i < e; i++) - t.isDark(i, u) && l++; - return r += 10 * (Math.abs(100 * l / e / e - 50) / 5) - } - }, c = { - glog: function(t) { - if (t < 1) - throw new Error("glog(" + t + ")"); - return c.LOG_TABLE[t] - }, - gexp: function(t) { - for (; t < 0; ) - t += 255; - for (; t >= 256; ) - t -= 255; - return c.EXP_TABLE[t] - }, - EXP_TABLE: new Array(256), - LOG_TABLE: new Array(256) - }, f = 0; f < 8; f++) - c.EXP_TABLE[f] = 1 << f; - for (f = 8; f < 256; f++) - c.EXP_TABLE[f] = c.EXP_TABLE[f - 4] ^ c.EXP_TABLE[f - 5] ^ c.EXP_TABLE[f - 6] ^ c.EXP_TABLE[f - 8]; - for (f = 0; f < 255; f++) - c.LOG_TABLE[c.EXP_TABLE[f]] = f; - r.prototype = { - get: function(t) { - return this.num[t] - }, - getLength: function() { - return this.num.length - }, - multiply: function(t) { - for (var e = new Array(this.getLength() + t.getLength() - 1), i = 0; i < this.getLength(); i++) - for (var n = 0; n < t.getLength(); n++) - e[i + n] ^= c.gexp(c.glog(this.get(i)) + c.glog(t.get(n))); - return new r(e,0) - }, - mod: function(t) { - if (this.getLength() - t.getLength() < 0) - return this; - for (var e = c.glog(this.get(0)) - c.glog(t.get(0)), i = new Array(this.getLength()), n = 0; n < this.getLength(); n++) - i[n] = this.get(n); - for (n = 0; n < t.getLength(); n++) - i[n] ^= c.gexp(c.glog(t.get(n)) + e); - return new r(i,0).mod(t) - } - }, - i.RS_BLOCK_TABLE = [[1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12], [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]], - i.getRSBlocks = function(t, e) { - var r = i.getRsBlockTable(t, e); - if (void 0 == r) - throw new Error("bad rs block @ typeNumber:" + t + "/errorCorrectLevel:" + e); - for (var n = r.length / 3, o = [], a = 0; a < n; a++) - for (var s = r[3 * a + 0], h = r[3 * a + 1], l = r[3 * a + 2], u = 0; u < s; u++) - o.push(new i(h,l)); - return o - } - , - i.getRsBlockTable = function(t, e) { - switch (e) { - case h.L: - return i.RS_BLOCK_TABLE[4 * (t - 1) + 0]; - case h.M: - return i.RS_BLOCK_TABLE[4 * (t - 1) + 1]; - case h.Q: - return i.RS_BLOCK_TABLE[4 * (t - 1) + 2]; - case h.H: - return i.RS_BLOCK_TABLE[4 * (t - 1) + 3]; - default: - return - } - } - , - n.prototype = { - get: function(t) { - var e = Math.floor(t / 8); - return 1 == (this.buffer[e] >>> 7 - t % 8 & 1) - }, - put: function(t, e) { - for (var r = 0; r < e; r++) - this.putBit(1 == (t >>> e - r - 1 & 1)) - }, - getLengthInBits: function() { - return this.length - }, - putBit: function(t) { - var e = Math.floor(this.length / 8); - this.buffer.length <= e && this.buffer.push(0), - t && (this.buffer[e] |= 128 >>> this.length % 8), - this.length++ - } - }; - var d = [[17, 14, 11, 7], [32, 26, 20, 14], [53, 42, 32, 24], [78, 62, 46, 34], [106, 84, 60, 44], [134, 106, 74, 58], [154, 122, 86, 64], [192, 152, 108, 84], [230, 180, 130, 98], [271, 213, 151, 119], [321, 251, 177, 137], [367, 287, 203, 155], [425, 331, 241, 177], [458, 362, 258, 194], [520, 412, 292, 220], [586, 450, 322, 250], [644, 504, 364, 280], [718, 560, 394, 310], [792, 624, 442, 338], [858, 666, 482, 382], [929, 711, 509, 403], [1003, 779, 565, 439], [1091, 857, 611, 461], [1171, 911, 661, 511], [1273, 997, 715, 535], [1367, 1059, 751, 593], [1465, 1125, 805, 625], [1528, 1190, 868, 658], [1628, 1264, 908, 698], [1732, 1370, 982, 742], [1840, 1452, 1030, 790], [1952, 1538, 1112, 842], [2068, 1628, 1168, 898], [2188, 1722, 1228, 958], [2303, 1809, 1283, 983], [2431, 1911, 1351, 1051], [2563, 1989, 1423, 1093], [2699, 2099, 1499, 1139], [2809, 2213, 1579, 1219], [2953, 2331, 1663, 1273]] - , g = function() { - var t = function(t, e) { - this._el = t, - this._htOption = e - }; - return t.prototype.draw = function(t) { - function e(t, e) { - var r = document.createElementNS("http://www.w3.org/2000/svg", t); - for (var i in e) - e.hasOwnProperty(i) && r.setAttribute(i, e[i]); - return r - } - var r = this._htOption - , i = this._el - , n = t.getModuleCount(); - Math.floor(r.width / n), - Math.floor(r.height / n); - this.clear(); - var o = e("svg", { - viewBox: "0 0 " + String(n) + " " + String(n), - width: "100%", - height: "100%", - fill: r.colorLight - }); - o.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), - i.appendChild(o), - o.appendChild(e("rect", { - fill: r.colorLight, - width: "100%", - height: "100%" - })), - o.appendChild(e("rect", { - fill: r.colorDark, - width: "1", - height: "1", - id: "template" - })); - for (var a = 0; a < n; a++) - for (var s = 0; s < n; s++) - if (t.isDark(a, s)) { - var h = e("use", { - x: String(s), - y: String(a) - }); - h.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), - o.appendChild(h) - } - } - , - t.prototype.clear = function() { - for (; this._el.hasChildNodes(); ) - this._el.removeChild(this._el.lastChild) - } - , - t - }() - , p = "svg" === document.documentElement.tagName.toLowerCase() ? g : "undefined" == typeof CanvasRenderingContext2D ? function() { - var t = function(t, e) { - this._el = t, - this._htOption = e - }; - return t.prototype.draw = function(t) { - for (var e = this._htOption, r = this._el, i = t.getModuleCount(), n = Math.floor(e.width / i), o = Math.floor(e.height / i), a = [''], s = 0; s < i; s++) { - a.push(""); - for (var h = 0; h < i; h++) - a.push(''); - a.push("") - } - a.push("
        "), - r.innerHTML = a.join(""); - var l = r.childNodes[0] - , u = (e.width - l.offsetWidth) / 2 - , c = (e.height - l.offsetHeight) / 2; - u > 0 && c > 0 && (l.style.margin = c + "px " + u + "px") - } - , - t.prototype.clear = function() { - this._el.innerHTML = "" - } - , - t - }() : function() { - function t() { - this._elImage.src = this._elCanvas.toDataURL("image/png"), - this._elImage.style.display = "block", - this._elCanvas.style.display = "none" - } - if (this._android && this._android <= 2.1) { - var e = 1 / window.devicePixelRatio - , r = CanvasRenderingContext2D.prototype.drawImage; - CanvasRenderingContext2D.prototype.drawImage = function(t, i, n, o, a, s, h, l, u) { - if ("nodeName"in t && /img/i.test(t.nodeName)) - for (var c = arguments.length - 1; c >= 1; c--) - arguments[c] = arguments[c] * e; - else - void 0 === l && (arguments[1] *= e, - arguments[2] *= e, - arguments[3] *= e, - arguments[4] *= e); - r.apply(this, arguments) - } - } - var i = function(t, e) { - this._bIsPainted = !1, - this._android = o(), - this._htOption = e, - this._elCanvas = document.createElement("canvas"), - this._elCanvas.width = e.width, - this._elCanvas.height = e.height, - t.appendChild(this._elCanvas), - this._el = t, - this._oContext = this._elCanvas.getContext("2d"), - this._bIsPainted = !1, - this._elImage = document.createElement("img"), - this._elImage.alt = "Scan me!", - this._elImage.style.display = "none", - this._el.appendChild(this._elImage), - this._bSupportDataURI = null - }; - return i.prototype.draw = function(t) { - var e = this._elImage - , r = this._oContext - , i = this._htOption - , n = t.getModuleCount() - , o = i.width / n - , a = i.height / n - , s = Math.round(o) - , h = Math.round(a); - e.style.display = "none", - this.clear(); - for (var l = 0; l < n; l++) - for (var u = 0; u < n; u++) { - var c = t.isDark(l, u) - , f = u * o - , d = l * a; - r.strokeStyle = c ? i.colorDark : i.colorLight, - r.lineWidth = 1, - r.fillStyle = c ? i.colorDark : i.colorLight, - r.fillRect(f, d, o, a), - r.strokeRect(Math.floor(f) + .5, Math.floor(d) + .5, s, h), - r.strokeRect(Math.ceil(f) - .5, Math.ceil(d) - .5, s, h) - } - this._bIsPainted = !0 - } - , - i.prototype.makeImage = function() { - this._bIsPainted && function(t, e) { - var r = this; - if (r._fFail = e, - r._fSuccess = t, - null === r._bSupportDataURI) { - var i = document.createElement("img") - , n = function() { - r._bSupportDataURI = !1, - r._fFail && r._fFail.call(r) - }; - return i.onabort = n, - i.onerror = n, - i.onload = function() { - r._bSupportDataURI = !0, - r._fSuccess && r._fSuccess.call(r) - } - , - void (i.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==") - } - !0 === r._bSupportDataURI && r._fSuccess ? r._fSuccess.call(r) : !1 === r._bSupportDataURI && r._fFail && r._fFail.call(r) - } - .call(this, t) - } - , - i.prototype.isPainted = function() { - return this._bIsPainted - } - , - i.prototype.clear = function() { - this._oContext.clearRect(0, 0, this._elCanvas.width, this._elCanvas.height), - this._bIsPainted = !1 - } - , - i.prototype.round = function(t) { - return t ? Math.floor(1e3 * t) / 1e3 : t - } - , - i - }(); - (QRCode = function(t, e) { - if (this._htOption = { - width: 256, - height: 256, - typeNumber: 4, - colorDark: "#000000", - colorLight: "#ffffff", - correctLevel: h.H - }, - "string" == typeof e && (e = { - text: e - }), - e) - for (var r in e) - this._htOption[r] = e[r]; - "string" == typeof t && (t = document.getElementById(t)), - this._htOption.useSVG && (p = g), - this._android = o(), - this._el = t, - this._oQRCode = null, - this._oDrawing = new p(this._el,this._htOption), - this._htOption.text && this.makeCode(this._htOption.text) - } - ).prototype.makeCode = function(t) { - this._oQRCode = new e(a(t, this._htOption.correctLevel),this._htOption.correctLevel), - this._oQRCode.addData(t), - this._oQRCode.make(), - this._el.title = t, - this._oDrawing.draw(this._oQRCode), - this.makeImage() - } - , - QRCode.prototype.makeImage = function() { - "function" == typeof this._oDrawing.makeImage && (!this._android || this._android >= 3) && this._oDrawing.makeImage() - } - , - QRCode.prototype.clear = function() { - this._oDrawing.clear() - } - , - QRCode.CorrectLevel = h - }(), - function(t, e, r) { - function i(t, e) { - var i = function() { - var t = arguments; - if (u) - return u.apply(null, t); - var e = {}; - return h(t, function(t) { - h(t, function(t, r) { - e[r] = t - }) - }), - t[0] = e - }({}, v, e || {}, function(t) { - if (t.dataset) - return JSON.parse(JSON.stringify(t.dataset)); - var e = {}; - if (t.hasAttributes()) - return h(t.attributes, function(t) { - var r = t.name; - if (0 !== r.indexOf("data-")) - return !0; - r = r.replace(/^data-/i, "").replace(/-(\w)/g, function(t, e) { - return e.toUpperCase() - }), - e[r] = t.value - }), - e; - return {} - }(t)); - i.imageSelector && (i.image = n(i.imageSelector).map(function(t) { - return t.src - }).join("||")), - function(t, e) { - if (e && "string" == typeof e) { - var r = " "; - h((t.className + " " + e).split(/\s+/), function(t) { - r.indexOf(" " + t + " ") < 0 && (r += t + " ") - }), - t.className = r.slice(1, -1) - } - }(t, "share-component social-share"), - function(t, e) { - var i = function(t) { - t.mobileSites.length || (t.mobileSites = t.sites); - var e = (f ? t.mobileSites : t.sites).slice(0) - , r = t.disabled; - "string" == typeof e && (e = e.split(/\s*,\s*/)); - "string" == typeof r && (r = r.split(/\s*,\s*/)); - c && r.push("wechat"); - return r.length && h(r, function(t) { - e.splice(function(t, e, r) { - var i; - if (e) { - if (l) - return l.call(e, t, r); - for (i = e.length, - r = r ? r < 0 ? Math.max(0, i + r) : r : 0; r < i; r++) - if (r in e && e[r] === t) - return r - } - return -1 - }(t, e), 1) - }), - e - }(e) - , n = "prepend" == e.mode; - h(n ? i.reverse() : i, function(i) { - var o = function(t, e) { - e.summary || (e.summary = e.description); - return w[t].replace(/\{\{(\w)(\w*)\}\}/g, function(i, n, o) { - var a = t + n + o.toLowerCase(); - return o = (n + o).toLowerCase(), - encodeURIComponent((e[a] === r ? e[o] : e[a]) || "") - }) - }(i, e) - , h = e.initialized ? a(t, "icon-" + i) : s(''); - if (!h.length) - return !0; - h[0].href = o, - "wechat" === i ? h[0].tabindex = -1 : h[0].target = "_blank", - e.initialized || (n ? t.insertBefore(h[0], t.firstChild) : t.appendChild(h[0])) - }) - }(t, i), - function(t, e) { - var r = a(t, "icon-wechat", "a"); - if (0 === r.length) - return !1; - var i = s('

        ' + e.wechatQrcodeTitle + '

        ' + e.wechatQrcodeHelper + "
        ") - , n = a(i[0], "qrcode", "div"); - r[0].appendChild(i[0]), - new QRCode(n[0],{ - text: e.url, - width: e.wechatQrcodeSize, - height: e.wechatQrcodeSize - }) - }(t, i), - t.initialized = !0 - } - function n(r) { - return (e.querySelectorAll || t.jQuery || t.Zepto || function(t) { - var r = []; - return h(t.split(/\s*,\s*/), function(i) { - var n = i.match(/([#.])(\w+)/); - if (null === n) - throw Error("Supports only simple single #ID or .CLASS selector."); - if (n[1]) { - var o = e.getElementById(n[2]); - o && r.push(o) - } - r = r.concat(a(t)) - }), - r - } - ).call(e, r) - } - function o(t) { - return (e.getElementsByName(t)[0] || 0).content - } - function a(t, e, r) { - if (t.getElementsByClassName) - return t.getElementsByClassName(e); - var i = [] - , n = t.getElementsByTagName(r || "*"); - return e = " " + e + " ", - h(n, function(t) { - (" " + (t.className || "") + " ").indexOf(e) >= 0 && i.push(t) - }), - i - } - function s(t) { - var r = e.createElement("div"); - return r.innerHTML = t, - r.childNodes - } - function h(t, e) { - var i = t.length; - if (i === r) { - for (var n in t) - if (t.hasOwnProperty(n) && !1 === e.call(t[n], t[n], n)) - break - } else - for (var o = 0; o < i && !1 !== e.call(t[o], t[o], o); o++) - ; - } - var l = Array.prototype.indexOf - , u = Object.assign - , c = /MicroMessenger/i.test(navigator.userAgent) - , f = e.documentElement.clientWidth <= 768 - , d = (e.images[0] || 0).src || "" - , g = o("site") || o("Site") || e.title - , p = o("title") || o("Title") || e.title - , m = o("description") || o("Description") || "" - , v = { - url: location.href, - origin: location.origin, - source: g, - title: p, - description: m, - image: d, - imageSelector: r, - weiboKey: "", - wechatQrcodeTitle: "微信扫一扫:分享", - wechatQrcodeHelper: "

        微信里点“发现”,扫一下

        二维码便可将本文分享至朋友圈。

        ", - wechatQrcodeSize: 100, - sites: ["weibo", "qq", "wechat", "tencent", "douban", "qzone", "linkedin", "diandian", "facebook", "twitter", "google"], - mobileSites: [], - disabled: [], - initialized: !1 - } - , w = { - qzone: "http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={{URL}}&title={{TITLE}}&desc={{DESCRIPTION}}&summary={{SUMMARY}}&site={{SOURCE}}", - qq: 'http://connect.qq.com/widget/shareqq/index.html?url={{URL}}&title={{TITLE}}&source={{SOURCE}}&desc={{DESCRIPTION}}&pics={{IMAGE}}&summary="{{SUMMARY}}"', - tencent: "http://share.v.t.qq.com/index.php?c=share&a=index&title={{TITLE}}&url={{URL}}&pic={{IMAGE}}", - weibo: "http://service.weibo.com/share/share.php?url={{URL}}&title={{TITLE}}&pic={{IMAGE}}&appkey={{WEIBOKEY}}", - wechat: "javascript:", - douban: "http://shuo.douban.com/!service/share?href={{URL}}&name={{TITLE}}&text={{DESCRIPTION}}&image={{IMAGE}}&starid=0&aid=0&style=11", - diandian: "http://www.diandian.com/share?lo={{URL}}&ti={{TITLE}}&type=link", - linkedin: "http://www.linkedin.com/shareArticle?mini=true&ro=true&title={{TITLE}}&url={{URL}}&summary={{SUMMARY}}&source={{SOURCE}}&armin=armin", - facebook: "https://www.facebook.com/sharer/sharer.php?u={{URL}}", - twitter: "https://twitter.com/intent/tweet?text={{TITLE}}&url={{URL}}&via={{ORIGIN}}", - google: "https://plus.google.com/share?url={{URL}}" - }; - t.socialShare = function(t, e) { - (t = "string" == typeof t ? n(t) : t).length === r && (t = [t]), - h(t, function(t) { - t.initialized || i(t, e) - }) - } - , - function(r) { - var i = "addEventListener" - , n = e[i] ? "" : "on"; - ~e.readyState.indexOf("m") ? r() : "load DOMContentLoaded readystatechange".replace(/\w+/g, function(o, a) { - (a ? e : t)[n ? "attachEvent" : i](n + o, function() { - r && (a < 6 || ~e.readyState.indexOf("m")) && (r(), - r = 0) - }, !1) - }) - }(function() { - socialShare(".social-share, .share-component") - }) - }(window, document); -} -/*! - * baguetteBox.js - * @author feimosi - * @version 1.3.2 - * @url https://github.com/feimosi/baguetteBox.js - */ - -var baguetteBox = function() { - function t(t, n) { - H.transforms = f(), - H.svg = g(), - e(), - j = document.querySelectorAll(t), - [].forEach.call(j, function(t) { - n && n.filter && (A = n.filter); - var e = t.getElementsByTagName("a"); - e = [].filter.call(e, function(t) { - return A.test(t.href) - }); - var o = D.length; - D.push(e), - D[o].options = n, - [].forEach.call(D[o], function(t, e) { - m(t, "click", function(t) { - t.preventDefault ? t.preventDefault() : t.returnValue = !1, - i(o), - a(e) - }) - }) - }) - } - function e() { - return (b = v("baguetteBox-overlay")) ? (k = v("baguetteBox-slider"), - w = v("previous-button"), - C = v("next-button"), - T = v("close-button"), - void 0) : (b = y("div"), - b.id = "baguetteBox-overlay", - document.getElementsByTagName("body")[0].appendChild(b), - k = y("div"), - k.id = "baguetteBox-slider", - b.appendChild(k), - w = y("button"), - w.id = "previous-button", - w.innerHTML = H.svg ? E : "<", - b.appendChild(w), - C = y("button"), - C.id = "next-button", - C.innerHTML = H.svg ? x : ">", - b.appendChild(C), - T = y("button"), - T.id = "close-button", - T.innerHTML = H.svg ? B : "X", - b.appendChild(T), - w.className = C.className = T.className = "baguetteBox-button", - n(), - void 0) - } - function n() { - m(b, "click", function(t) { - t.target && "IMG" !== t.target.nodeName && "FIGCAPTION" !== t.target.nodeName && r() - }), - m(w, "click", function(t) { - t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0, - c() - }), - m(C, "click", function(t) { - t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0, - u() - }), - m(T, "click", function(t) { - t.stopPropagation ? t.stopPropagation() : t.cancelBubble = !0, - r() - }), - m(b, "touchstart", function(t) { - N = t.changedTouches[0].pageX - }), - m(b, "touchmove", function(t) { - S || (t.preventDefault ? t.preventDefault() : t.returnValue = !1, - touch = t.touches[0] || t.changedTouches[0], - touch.pageX - N > 40 ? (S = !0, - c()) : touch.pageX - N < -40 && (S = !0, - u())) - }), - m(b, "touchend", function() { - S = !1 - }), - m(document, "keydown", function(t) { - switch (t.keyCode) { - case 37: - c(); - break; - case 39: - u(); - break; - case 27: - r() - } - }) - } - function i(t) { - if (M !== t) { - for (M = t, - o(D[t].options); k.firstChild; ) - k.removeChild(k.firstChild); - X.length = 0; - for (var e, n = 0; n < D[t].length; n++) - e = y("div"), - e.className = "full-image", - e.id = "baguette-img-" + n, - X.push(e), - k.appendChild(X[n]) - } - } - function o(t) { - t || (t = {}); - for (var e in P) - I[e] = P[e], - "undefined" != typeof t[e] && (I[e] = t[e]); - k.style.transition = k.style.webkitTransition = "fadeIn" === I.animation ? "opacity .4s ease" : "slideIn" === I.animation ? "" : "none", - "auto" === I.buttons && ("ontouchstart"in window || 1 === D[M].length) && (I.buttons = !1), - w.style.display = C.style.display = I.buttons ? "" : "none" - } - function a(t) { - "block" !== b.style.display && (L = t, - s(L, function() { - p(L), - h(L) - }), - d(), - b.style.display = "block", - setTimeout(function() { - b.className = "visible", - I.afterShow && I.afterShow() - }, 50), - I.onChange && I.onChange(L, X.length)) - } - function r() { - "none" !== b.style.display && (b.className = "", - setTimeout(function() { - b.style.display = "none", - I.afterHide && I.afterHide() - }, 500)) - } - function s(t, e) { - var n = X[t]; - if ("undefined" != typeof n) { - if (n.getElementsByTagName("img")[0]) - return e && e(), - void 0; - imageElement = D[M][t], - imageCaption = "function" == typeof I.captions ? I.captions.call(D[M], imageElement) : imageElement.getAttribute("data-caption") || imageElement.title, - imageSrc = l(imageElement); - var i = y("figure") - , o = y("img") - , a = y("figcaption"); - n.appendChild(i), - i.innerHTML = '
        ', - o.onload = function() { - var n = document.querySelector("#baguette-img-" + t + " .spinner"); - i.removeChild(n), - !I.async && e && e() - } - , - o.setAttribute("src", imageSrc), - i.appendChild(o), - I.captions && imageCaption && (a.innerHTML = imageCaption, - i.appendChild(a)), - I.async && e && e() - } - } - function l(t) { - var e = imageElement.href; - if (t.dataset) { - var n = []; - for (var i in t.dataset) - "at-" !== i.substring(0, 3) || isNaN(i.substring(3)) || (n[i.replace("at-", "")] = t.dataset[i]); - keys = Object.keys(n).sort(function(t, e) { - return parseInt(t) < parseInt(e) ? -1 : 1 - }); - for (var o = window.innerWidth * window.devicePixelRatio, a = 0; a < keys.length - 1 && keys[a] < o; ) - a++; - e = n[keys[a]] || e - } - return e - } - function u() { - var t; - return L <= X.length - 2 ? (L++, - d(), - p(L), - t = !0) : I.animation && (k.className = "bounce-from-right", - setTimeout(function() { - k.className = "" - }, 400), - t = !1), - I.onChange && I.onChange(L, X.length), - t - } - function c() { - var t; - return L >= 1 ? (L--, - d(), - h(L), - t = !0) : I.animation && (k.className = "bounce-from-left", - setTimeout(function() { - k.className = "" - }, 400), - t = !1), - I.onChange && I.onChange(L, X.length), - t - } - function d() { - var t = 100 * -L + "%"; - "fadeIn" === I.animation ? (k.style.opacity = 0, - setTimeout(function() { - H.transforms ? k.style.transform = k.style.webkitTransform = "translate3d(" + t + ",0,0)" : k.style.left = t, - k.style.opacity = 1 - }, 400)) : H.transforms ? k.style.transform = k.style.webkitTransform = "translate3d(" + t + ",0,0)" : k.style.left = t - } - function f() { - var t = y("div"); - return "undefined" != typeof t.style.perspective || "undefined" != typeof t.style.webkitPerspective - } - function g() { - var t = y("div"); - return t.innerHTML = "", - "http://www.w3.org/2000/svg" == (t.firstChild && t.firstChild.namespaceURI) - } - function p(t) { - t - L >= I.preload || s(t + 1, function() { - p(t + 1) - }) - } - function h(t) { - L - t >= I.preload || s(t - 1, function() { - h(t - 1) - }) - } - function m(t, e, n) { - t.addEventListener ? t.addEventListener(e, n, !1) : t.attachEvent("on" + e, n) - } - function v(t) { - return document.getElementById(t) - } - function y(t) { - return document.createElement(t) - } - var b, k, w, C, T, N, E = '', x = '', B = '', I = {}, P = { - captions: !0, - buttons: "auto", - async: !1, - preload: 2, - animation: "slideIn", - afterShow: null, - afterHide: null, - onChange: null - }, H = {}, L = 0, M = -1, S = !1, A = /.+\.(gif|jpe?g|png|webp)/i, j = [], D = [], X = []; - return [].forEach || (Array.prototype.forEach = function(t, e) { - for (var n = 0; n < this.length; n++) - t.call(e, this[n], n, this) - } - ), - [].filter || (Array.prototype.filter = function(t, e, n, i, o) { - for (n = this, - i = [], - o = 0; o < n.length; o++) - t.call(e, n[o], o, n) && i.push(n[o]); - return i - } - ), - { - run: t, - showNext: u, - showPrevious: c - } -}(); -var MD5 = function(s) { - function L(k, d) { - return (k << d) | (k >>> (32 - d)) - } - function K(G, k) { - var I, d, F, H, x; - F = (G & 2147483648); - H = (k & 2147483648); - I = (G & 1073741824); - d = (k & 1073741824); - x = (G & 1073741823) + (k & 1073741823); - if (I & d) { - return (x ^ 2147483648 ^ F ^ H) - } - if (I | d) { - if (x & 1073741824) { - return (x ^ 3221225472 ^ F ^ H) - } else { - return (x ^ 1073741824 ^ F ^ H) - } - } else { - return (x ^ F ^ H) - } - } - function r(d, F, k) { - return (d & F) | ((~d) & k) - } - function q(d, F, k) { - return (d & k) | (F & (~k)) - } - function p(d, F, k) { - return (d ^ F ^ k) - } - function n(d, F, k) { - return (F ^ (d | (~k))) - } - function u(G, F, aa, Z, k, H, I) { - G = K(G, K(K(r(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function f(G, F, aa, Z, k, H, I) { - G = K(G, K(K(q(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function D(G, F, aa, Z, k, H, I) { - G = K(G, K(K(p(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function t(G, F, aa, Z, k, H, I) { - G = K(G, K(K(n(F, aa, Z), k), I)); - return K(L(G, H), F) - } - function e(G) { - var Z; - var F = G.length; - var x = F + 8; - var k = (x - (x % 64)) / 64; - var I = (k + 1) * 16; - var aa = Array(I - 1); - var d = 0; - var H = 0; - while (H < F) { - Z = (H - (H % 4)) / 4; - d = (H % 4) * 8; - aa[Z] = (aa[Z] | (G.charCodeAt(H) << d)); - H++ - } - Z = (H - (H % 4)) / 4; - d = (H % 4) * 8; - aa[Z] = aa[Z] | (128 << d); - aa[I - 2] = F << 3; - aa[I - 1] = F >>> 29; - return aa - } - function B(x) { - var k = "", F = "", G, d; - for (d = 0; d <= 3; d++) { - G = (x >>> (d * 8)) & 255; - F = "0" + G.toString(16); - k = k + F.substr(F.length - 2, 2) - } - return k - } - function J(k) { - k = k.replace(/rn/g, "n"); - var d = ""; - for (var F = 0; F < k.length; F++) { - var x = k.charCodeAt(F); - if (x < 128) { - d += String.fromCharCode(x) - } else { - if ((x > 127) && (x < 2048)) { - d += String.fromCharCode((x >> 6) | 192); - d += String.fromCharCode((x & 63) | 128) - } else { - d += String.fromCharCode((x >> 12) | 224); - d += String.fromCharCode(((x >> 6) & 63) | 128); - d += String.fromCharCode((x & 63) | 128) - } - } - } - return d - } - var C = Array(); - var P, h, E, v, g, Y, X, W, V; - var S = 7 - , Q = 12 - , N = 17 - , M = 22; - var A = 5 - , z = 9 - , y = 14 - , w = 20; - var o = 4 - , m = 11 - , l = 16 - , j = 23; - var U = 6 - , T = 10 - , R = 15 - , O = 21; - s = J(s); - C = e(s); - Y = 1732584193; - X = 4023233417; - W = 2562383102; - V = 271733878; - for (P = 0; P < C.length; P += 16) { - h = Y; - E = X; - v = W; - g = V; - Y = u(Y, X, W, V, C[P + 0], S, 3614090360); - V = u(V, Y, X, W, C[P + 1], Q, 3905402710); - W = u(W, V, Y, X, C[P + 2], N, 606105819); - X = u(X, W, V, Y, C[P + 3], M, 3250441966); - Y = u(Y, X, W, V, C[P + 4], S, 4118548399); - V = u(V, Y, X, W, C[P + 5], Q, 1200080426); - W = u(W, V, Y, X, C[P + 6], N, 2821735955); - X = u(X, W, V, Y, C[P + 7], M, 4249261313); - Y = u(Y, X, W, V, C[P + 8], S, 1770035416); - V = u(V, Y, X, W, C[P + 9], Q, 2336552879); - W = u(W, V, Y, X, C[P + 10], N, 4294925233); - X = u(X, W, V, Y, C[P + 11], M, 2304563134); - Y = u(Y, X, W, V, C[P + 12], S, 1804603682); - V = u(V, Y, X, W, C[P + 13], Q, 4254626195); - W = u(W, V, Y, X, C[P + 14], N, 2792965006); - X = u(X, W, V, Y, C[P + 15], M, 1236535329); - Y = f(Y, X, W, V, C[P + 1], A, 4129170786); - V = f(V, Y, X, W, C[P + 6], z, 3225465664); - W = f(W, V, Y, X, C[P + 11], y, 643717713); - X = f(X, W, V, Y, C[P + 0], w, 3921069994); - Y = f(Y, X, W, V, C[P + 5], A, 3593408605); - V = f(V, Y, X, W, C[P + 10], z, 38016083); - W = f(W, V, Y, X, C[P + 15], y, 3634488961); - X = f(X, W, V, Y, C[P + 4], w, 3889429448); - Y = f(Y, X, W, V, C[P + 9], A, 568446438); - V = f(V, Y, X, W, C[P + 14], z, 3275163606); - W = f(W, V, Y, X, C[P + 3], y, 4107603335); - X = f(X, W, V, Y, C[P + 8], w, 1163531501); - Y = f(Y, X, W, V, C[P + 13], A, 2850285829); - V = f(V, Y, X, W, C[P + 2], z, 4243563512); - W = f(W, V, Y, X, C[P + 7], y, 1735328473); - X = f(X, W, V, Y, C[P + 12], w, 2368359562); - Y = D(Y, X, W, V, C[P + 5], o, 4294588738); - V = D(V, Y, X, W, C[P + 8], m, 2272392833); - W = D(W, V, Y, X, C[P + 11], l, 1839030562); - X = D(X, W, V, Y, C[P + 14], j, 4259657740); - Y = D(Y, X, W, V, C[P + 1], o, 2763975236); - V = D(V, Y, X, W, C[P + 4], m, 1272893353); - W = D(W, V, Y, X, C[P + 7], l, 4139469664); - X = D(X, W, V, Y, C[P + 10], j, 3200236656); - Y = D(Y, X, W, V, C[P + 13], o, 681279174); - V = D(V, Y, X, W, C[P + 0], m, 3936430074); - W = D(W, V, Y, X, C[P + 3], l, 3572445317); - X = D(X, W, V, Y, C[P + 6], j, 76029189); - Y = D(Y, X, W, V, C[P + 9], o, 3654602809); - V = D(V, Y, X, W, C[P + 12], m, 3873151461); - W = D(W, V, Y, X, C[P + 15], l, 530742520); - X = D(X, W, V, Y, C[P + 2], j, 3299628645); - Y = t(Y, X, W, V, C[P + 0], U, 4096336452); - V = t(V, Y, X, W, C[P + 7], T, 1126891415); - W = t(W, V, Y, X, C[P + 14], R, 2878612391); - X = t(X, W, V, Y, C[P + 5], O, 4237533241); - Y = t(Y, X, W, V, C[P + 12], U, 1700485571); - V = t(V, Y, X, W, C[P + 3], T, 2399980690); - W = t(W, V, Y, X, C[P + 10], R, 4293915773); - X = t(X, W, V, Y, C[P + 1], O, 2240044497); - Y = t(Y, X, W, V, C[P + 8], U, 1873313359); - V = t(V, Y, X, W, C[P + 15], T, 4264355552); - W = t(W, V, Y, X, C[P + 6], R, 2734768916); - X = t(X, W, V, Y, C[P + 13], O, 1309151649); - Y = t(Y, X, W, V, C[P + 4], U, 4149444226); - V = t(V, Y, X, W, C[P + 11], T, 3174756917); - W = t(W, V, Y, X, C[P + 2], R, 718787259); - X = t(X, W, V, Y, C[P + 9], O, 3951481745); - Y = K(Y, h); - X = K(X, E); - W = K(W, v); - V = K(V, g) - } - var i = B(Y) + B(X) + B(W) + B(V); - return i.toLowerCase() -}; diff --git a/js/love.js b/js/love.js deleted file mode 100644 index eaaed7b..0000000 --- a/js/love.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t,a){function n(){c(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 500%;-moz-border-radius: 50%;position: fixed;}.heart:after{top: -5px;}.heart:before{left: -5px;}"),o(),r()}function r(){for(var e=0;e this.status || 304 === this.status) { -// var g = JSON.parse(this.responseText); -// b.music = g.msg.songs; -// if (void 0 === b.music) return console.warn("Hermit-X failed to load " + c[f].songs), !1; -// void 0 === b.showlrc && (b.lrcType = b.music[0].lrc ? 3 : 0); -// 1 === b.music.length && (b.music = b.music[0]); -// b.autoplay && (b.autoplay = "true" === b.autoplay); -// b.listfolded && (b.listFolded = "true" === b.listfolded); -// b.mutex && (b.mutex = "true" === b.mutex); -// b.narrow && (b.narrow = "true" === b.narrow); -// ap[d] = new APlayer(b); -// ap[d].parseRespons = g; -// if (window.APlayerCall && window.APlayerCall[d]) window.APlayerCall[d](); -// window.APlayerloadAllCall && a.length != ap.length && window.APlayerloadAllCall() -// } else console.error("Request was unsuccessful: " + -// this.status) -// }, c[d].songs.split("#:"), h = HermitX.ajaxurl + "?action=hermit&scope=" + c[d].songs.split("#:")[0] + "&id=" + c[d].songs.split("#:")[1] + "&_nonce=" + c[d]._nonce, e[d].open("get", h, !0), e[d].send(null)) -// }, g = 0; g < a.length; g++) { -// var h; -// f(g) -// } -// } - -// function reloadHermit() { -// for (var a = 0; a < ap.length; a++) try { -// ap[a].destroy() -// } catch (e) {} -// hermitInit() -// } -// var ap = []; -// hermitInit(); -// console.log("\n %c Hermit X Music Helper v" + HermitX.version + " %c https://lwl.moe/HermitX \n", "color: #fff; background: #4285f4; padding:5px 0;", "background: #66CCFF; padding:5px 0;"); -// (function webpackUniversalModuleDefinition(b, a) { -// if (typeof exports === "object" && typeof module === "object") { -// module.exports = a() -// } else { -// if (typeof define === "function" && define.amd) { -// define([], a) -// } else { -// if (typeof exports === "object") { -// exports.POWERMODE = a() -// } else { -// b.POWERMODE = a() -// } -// } -// } -// })(this, function () { -// return (function (c) { -// var b = {}; - -// function a(e) { -// if (b[e]) { -// return b[e].exports -// } -// var d = b[e] = { -// exports: {}, -// id: e, -// loaded: false -// }; -// c[e].call(d.exports, d, d.exports, a); -// d.loaded = true; -// return d.exports -// } -// a.m = c; -// a.c = b; -// a.p = ""; -// return a(0) -// })([ -// function (j, e, a) { -// var b = document.createElement("canvas"); -// b.width = window.innerWidth; -// b.height = window.innerHeight; -// b.style.cssText = "position:fixed;top:0;left:0;pointer-events:none;z-index:999999"; -// window.addEventListener("resize", function () { -// b.width = window.innerWidth; -// b.height = window.innerHeight -// }); -// document.body.appendChild(b); -// var c = b.getContext("2d"); -// var l = []; -// var k = 0; -// m.shake = true; - -// function h(o, n) { -// return Math.random() * (n - o) + o -// } - -// function g(n) { -// if (m.colorful) { -// var o = h(0, 360); -// return "hsla(" + h(o - 10, o + 10) + ", 100%, " + h(50, 80) + "%, " + 1 + ")" -// } else { -// return window.getComputedStyle(n).color -// } -// } - -// function f() { -// var o = document.activeElement; -// var n; -// if (o.tagName === "TEXTAREA" || (o.tagName === "INPUT" && o.getAttribute("type") === "text")) { -// var p = a(1)(o, o.selectionStart); -// n = o.getBoundingClientRect(); -// return { -// x: p.left + n.left, -// y: p.top + n.top, -// color: g(o) -// } -// } -// var r = window.getSelection(); -// if (r.rangeCount) { -// var q = r.getRangeAt(0); -// var s = q.startContainer; -// if (s.nodeType === document.TEXT_NODE) { -// s = s.parentNode -// } -// n = q.getBoundingClientRect(); -// return { -// x: n.left, -// y: n.top, -// color: g(s) -// } -// } -// return { -// x: 0, -// y: 0, -// color: "transparent" -// } -// } - -// function d(o, p, n) { -// return { -// x: o, -// y: p, -// alpha: 1, -// color: n, -// velocity: { -// x: -1 + Math.random() * 2, -// y: -3.5 + Math.random() * 2 -// } -// } -// } - -// function m() { -// var n = f(); -// var p = 5 + Math.round(Math.random() * 10); -// while (p--) { -// l[k] = d(n.x, n.y, n.color); -// k = (k + 1) % 500 -// } -// if (m.shake) { -// var o = 1 + 2 * Math.random(); -// var q = o * (Math.random() > 0.5 ? -1 : 1); -// var r = o * (Math.random() > 0.5 ? -1 : 1); -// document.body.style.marginLeft = q + "px"; -// document.body.style.marginTop = r + "px"; -// setTimeout(function () { -// document.body.style.marginLeft = ""; -// document.body.style.marginTop = "" -// }, 75) -// } -// } -// m.colorful = false; - -// function i() { -// requestAnimationFrame(i); -// c.clearRect(0, 0, b.width, b.height); -// for (var n = 0; n < l.length; ++n) { -// var o = l[n]; -// if (o.alpha <= 0.1) { -// continue -// } -// o.velocity.y += 0.075; -// o.x += o.velocity.x; -// o.y += o.velocity.y; -// o.alpha *= 0.96; -// c.globalAlpha = o.alpha; -// c.fillStyle = o.color; -// c.fillRect(Math.round(o.x - 1.5), Math.round(o.y - 1.5), 3, 3) -// } -// } -// requestAnimationFrame(i); -// j.exports = m -// }, -// function (b, a) { -// (function () { -// var e = ["direction", "boxSizing", "width", "height", "overflowX", "overflowY", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "borderStyle", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "fontStyle", "fontVariant", "fontWeight", "fontStretch", "fontSize", "fontSizeAdjust", "lineHeight", "fontFamily", "textAlign", "textTransform", "textIndent", "textDecoration", "letterSpacing", "wordSpacing", "tabSize", "MozTabSize"]; -// var d = window.mozInnerScreenX != null; - -// function c(k, m, l) { -// var h = l && l.debug || false; -// if (h) { -// var j = document.querySelector("#input-textarea-caret-position-mirror-div"); -// if (j) { -// j.parentNode.removeChild(j) -// } -// } -// var i = document.createElement("div"); -// i.id = "input-textarea-caret-position-mirror-div"; -// document.body.appendChild(i); -// var o = i.style; -// var f = window.getComputedStyle ? getComputedStyle(k) : k.currentStyle; -// o.whiteSpace = "pre-wrap"; -// if (k.nodeName !== "INPUT") { -// o.wordWrap = "break-word" -// } -// o.position = "absolute"; -// if (!h) { -// o.visibility = "hidden" -// } -// e.forEach(function (p) { -// o[p] = f[p] -// }); -// if (d) { -// if (k.scrollHeight > parseInt(f.height)) { -// o.overflowY = "scroll" -// } -// } else { -// o.overflow = "hidden" -// } -// i.textContent = k.value.substring(0, m); -// if (k.nodeName === "INPUT") { -// i.textContent = i.textContent.replace(/\s/g, "\u00a0") -// } -// var n = document.createElement("span"); -// n.textContent = k.value.substring(m) || "."; -// i.appendChild(n); -// var g = { -// top: n.offsetTop + parseInt(f.borderTopWidth), -// left: n.offsetLeft + parseInt(f.borderLeftWidth) -// }; -// if (h) { -// n.style.backgroundColor = "#aaa" -// } else { -// document.body.removeChild(i) -// } -// return g -// } -// if (typeof b != "undefined" && typeof b.exports != "undefined") { -// b.exports = c -// } else { -// window.getCaretCoordinates = c -// } -// }()) -// } -// ]) -// }); -mashiro_global.variables = new function () { - this.has_bot_ui = false; - this.isNight = false; - this.skinSecter = false; -} -mashiro_global.ini = new function () { - this.normalize = function () { - lazyload(); - social_share(); - mashiro_global.post_list_show_animation.ini(); - if (window.is_app) { - try { - setTimeout(function () { - mashiro_option.app_update(true); - }, 10000); - } catch (e) {} - } - if ($("div").hasClass("poem-wrap")) { - get_poem('#poem', '#info') - } - $(function () { - function waveloop1() { - $("#banner_wave_1").css({ - "left": "-236px" - }).animate({ - "left": "-1233px" - }, 25000, 'linear', waveloop1); - } - - function waveloop2() { - $("#banner_wave_2").css({ - "left": "0px" - }).animate({ - "left": "-1009px" - }, 60000, 'linear', waveloop2); - } - if (screen && screen.width > 860) { - waveloop1(); - waveloop2(); - } - if (navigator.userAgent.indexOf('AppleWebKit') != -1) { - $("body").addClass("isWebKit"); - } - hearthstone_deck_iframe(); - }); - } - this.pjax = function () { - pjaxInit(); - social_share(); - mashiro_global.post_list_show_animation.ini(); - if ($("div").hasClass("poem-wrap")) { - get_poem('#poem', '#info') - } - hearthstone_deck_iframe(); - } -} -mashiro_global.lib = new function () { - this.removeClass = function (ele, className) { - var el = document.getElementById(ele); - if (el.classList) - el.classList.remove(className); - else - el.className = el.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' '); - } - this.addClass = function (ele, className) { - var el = document.getElementById(ele); - if (el.classList) - el.classList.add(className); - else - el.className += ' ' + className; - } - this.hasClass = function (ele, className) { - var el = document.getElementById(ele); - if (el.classList) - var e = el.classList.contains(className); - else - var e = new RegExp('(^| )' + className + '( |$)', 'gi').test(el.className); - return e; - } - this.toggleClass = function (ele, className) { - var el = document.getElementById(ele); - if (el.classList) { - el.classList.toggle(className); - } else { - var classes = el.className.split(' '); - var existingIndex = classes.indexOf(className); - if (existingIndex >= 0) - classes.splice(existingIndex, 1); - else - classes.push(className); - el.className = classes.join(' '); - } - } - this.saveFile = function (url, file_name) { - var xhr = new XMLHttpRequest(); - xhr.responseType = 'blob'; - xhr.onload = function () { - var a = document.createElement('a'); - a.href = window.URL.createObjectURL(xhr.response); - a.download = file_name; - a.style.display = 'none'; - document.body.appendChild(a); - a.click(); - }; - xhr.open('GET', url); - xhr.send(); - } -} - -function setCookie(name, value, days) { - var expires = ""; - if (days) { - var date = new Date(); - date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); - expires = "; expires=" + date.toUTCString(); - } - document.cookie = name + mashiro_option.cookie_version_control + "=" + (value || "") + expires + "; path=/"; -} - -function getCookie(name) { - var nameEQ = name + mashiro_option.cookie_version_control + "="; - var ca = document.cookie.split(';'); - for (var i = 0; i < ca.length; i++) { - var c = ca[i]; - while (c.charAt(0) == ' ') c = c.substring(1, c.length); - if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); - } - return null; -} - -function removeCookie(name) { - document.cookie = name + mashiro_option.cookie_version_control + '=; Max-Age=-99999999;'; -} - -function jumpTo(url) { - return mashiro_global.lib.pjax_to_url(url, '#page'); -} - -function injectStyles(rule) { - var div = $("
        ", { - html: '­' - }).appendTo("body"); -} - -function imgError(ele, type) { - switch (type) { - case 1: - if (ele.src.includes("https://cn.gravatar.com/avatar")) { - ele.src = ele.src.replace("https://cn.gravatar.com/avatar/", "https://cdn.v2ex.com/gravatar/"); - } else { - ele.src = 'https://view.moezx.cc/images/2017/12/30/Transparent_Akkarin.th.jpg'; - } - break; - case 2: - ele.src = 'https://gravatar.shino.cc/avatar/?s=80&d=mm&r=g'; - break; - case 3: - if (ele.src.includes("https://static.2heng.xin/")) { - ele.src = ele.src.replace("https://static.2heng.xin/wp-content/uploads/", "https://cdn.2heng.xin/"); - } else { - ele.src = 'https://view.moezx.cc/images/2018/05/13/image-404.png'; - } - break; - default: - ele.src = 'https://view.moezx.cc/images/2018/05/13/image-404.png'; - } -} -mashiro_global.post_list_show_animation = new function () { - this.ini = function (ajax) { - $("article.post-list-thumb").each(function (i) { - if (ajax) { - var window_height = $(window).height(); - } else { - if ($(".headertop").hasClass("headertop-bar")) { - var window_height = 0; - } else { - var window_height = $(window).height() - 300; - } - } - if (!mashiro_global.landing_at_home) { - window_height += 300; - } - var article_height = $("article.post-list-thumb").eq(i).offset().top; - if ($(window).height() + $(window).scrollTop() >= article_height) - $("article.post-list-thumb").eq(i).addClass('post-list-show'); - $(window).scroll(function () { - var scrolltop = $(window).scrollTop(); - if (scrolltop + window_height >= article_height && scrolltop) - $("article.post-list-thumb").eq(i).addClass("post-list-show"); - }); - }); - } -} -mashiro_global.font_control = new function () { - this.change_font = function () { - if ($("body").hasClass("serif")) { - $("body").removeClass("serif"); - $(".control-btn-serif").removeClass("selected"); - $(".control-btn-sans-serif").addClass("selected"); - setCookie("font_family", "sans-serif", 30); - } else { - $("body").addClass("serif"); - $(".control-btn-serif").addClass("selected"); - $(".control-btn-sans-serif").removeClass("selected"); - setCookie("font_family", "serif", 30); - if (document.body.clientWidth <= 860) { - addComment.createButterbar("将从网络加载字体,流量请注意"); - } - } - } - this.ini = function () { - if (document.body.clientWidth > 860) { - if (!getCookie("font_family") || getCookie("font_family") == "serif") - $("body").addClass("serif"); - } - if (getCookie("font_family") == "sans-serif") { - $("body").removeClass("sans-serif"); - $(".control-btn-serif").removeClass("selected"); - $(".control-btn-sans-serif").addClass("selected"); - } - } -} -mashiro_global.font_control.ini(); - -function code_highlight_style() { - function gen_top_bar(i) { - var attributes = { - 'autocomplete': 'off', - 'autocorrect': 'off', - 'autocapitalize': 'off', - 'spellcheck': 'false', - 'contenteditable': 'false', - 'design': 'by hojun' - } - var ele_name = $('pre:eq(' + i + ')')[0].children[0].className; - var lang = ele_name.substr(0, ele_name.indexOf(" ")).replace('language-', ''); - if (lang.toLowerCase() == "hljs") var lang = "text"; - if (lang.toLowerCase() == "js") var lang = "javascript"; - if (lang.toLowerCase() == "md") var lang = "markdown"; - if (lang.toLowerCase() == "py") var lang = "python"; - $('pre:eq(' + i + ')').addClass('highlight-wrap'); - for (var t in attributes) { - $('pre:eq(' + i + ')').attr(t, attributes[t]); - } - $('pre:eq(' + i + ') code').attr('data-rel', lang.toUpperCase()); - } - $('pre code').each(function (i, block) { - hljs.highlightBlock(block); - }); - for (var i = 0; i < $('article pre').length; i++) { - gen_top_bar(i); - } - $('pre').on('click', function (e) { - $(this).toggleClass('code-block-fullscreen'); - $('html').toggleClass('code-block-fullscreen-html-scroll'); - }); - hljs.initLineNumbersOnLoad(); -} -try { - code_highlight_style(); -} catch (e) {} -function attach_image() { - $('#upload-img-file').change(function () { - if (this.files.length > 10) { - addComment.createButterbar("每次上传上限为10张.
        10 files max per request."); - return 0; - } - for (i = 0; i < this.files.length; i++) { - if (this.files[i].size >= 5242880) { - alert('图片上传大小限制为5 MB.\n5 MB max per file.\n\n「' + this.files[i].name + '」\n\n这张图太大啦~\nThis image is too large~'); - } - } - for (var i = 0; i < this.files.length; i++) { - var f = this.files[i]; - var formData = new FormData(); - formData.append('smfile', f); - $.ajax({ - url: 'https://sm.ms/api/upload', - type: 'POST', - processData: false, - contentType: false, - data: formData, - beforeSend: function (xhr) { - $('.insert-image-tips').html(''); - addComment.createButterbar("上传中...
        Uploading..."); - }, success: function (res) { - $('.insert-image-tips').html(''); - setTimeout(function () { - $('.insert-image-tips').html(''); - }, 1000); - var get_the_url = res.data.url.replace('https://i.loli.net/', 'https://static.shino.cc/user-upload/'); - $('#upload-img-show').append(''); - lazyload(); - addComment.createButterbar("图片上传成功~
        Uploaded successfully~"); - grin(res.data.url.replace('https://i.loli.net/', '{UPLOAD}'), type = 'Img'); - }, error: function () { - $('.insert-image-tips').html(''); - alert("上传失败,请重试.\nUpload failed, please try again."); - setTimeout(function () { - $('.insert-image-tips').html(''); - }, 1000); - } - }) - } - }); -} - -function clean_upload_images() { - $('#upload-img-show').html(''); -} - -function add_upload_tips() { - $('').insertAfter($(".form-submit #submit")); - attach_image(); - $("#upload-img-file").hover(function () { - $(".insert-image-tips").addClass("insert-image-tips-hover"); - $("#uploadTipPopup").addClass("show"); - }, function () { - $(".insert-image-tips").removeClass("insert-image-tips-hover"); - $("#uploadTipPopup").removeClass("show"); - }); -} - -function click_to_view_image() { - $(".comment_inline_img").click(function () { - var temp_url = $(this).attr('src'); - window.open(temp_url); - }); -} -click_to_view_image(); - -function original_emoji_click() { - $(".emoji-item").click(function () { - grin($(this).text(), type = "custom", before = "`", after = "` "); - }); -} -original_emoji_click(); - -function showPopup(ele) { - var popup = ele.querySelector("#thePopup"); - popup.classList.toggle("show"); -} - -function cmt_showPopup(ele) { - var popup = $(ele).find("#thePopup"); - popup.addClass("show"); - $(ele).find("input").blur(function () { - popup.removeClass("show"); - }); -} - -function headertop_down() { - var coverOffset = $('#content').offset().top; - $('html,body').animate({ - scrollTop: coverOffset - }, 600); -} - -function scrollBar() { - if (document.body.clientWidth > 860) { - $(window).scroll(function () { - var s = $(window).scrollTop(); - var a = $(document).height(); - var b = $(window).height(); - var result = parseInt(s / (a - b) * 100); - $("#bar").css("width", result + "%"); - if (false) { - if (result >= 0 && result <= 19) - $("#bar").css("background", "#cccccc"); - if (result >= 20 && result <= 39) - $("#bar").css("background", "#50bcb6"); - if (result >= 40 && result <= 59) - $("#bar").css("background", "#85c440"); - if (result >= 60 && result <= 79) - $("#bar").css("background", "#f2b63c"); - if (result >= 80 && result <= 99) - $("#bar").css("background", "#FF0000"); - if (result == 100) - $("#bar").css("background", "#5aaadb"); - } else { - $("#bar").css("background", "orange"); - } - $(".toc-container").css("height", $(".site-content").outerHeight()); - $(".skin-menu").removeClass('show'); - }); - } -} -scrollBar(); -'主题切换代码好恶心,有空一定要重构'; - -function checkBgImgCookie() { - var bgurl = getCookie("bgImgSetting"); - if (!bgurl) { - $('#banner_wave_1').removeClass('banner_wave_hide_fit_skin'); - $('#banner_wave_2').removeClass('banner_wave_hide_fit_skin'); - } else { - $('#banner_wave_1').addClass('banner_wave_hide_fit_skin'); - $('#banner_wave_2').addClass('banner_wave_hide_fit_skin'); - } - if (bgurl != "") { - if (bgurl == "https://view.moezx.cc/images/2018/01/03/sakura.png" || bgurl == "https://view.moezx.cc/images/2018/01/03/plaid2dbf8.jpg" || bgurl == "https://view.moezx.cc/images/2018/01/10/star02.png" || bgurl == "https://view.moezx.cc/images/2018/01/24/kyotoanimation.png" || bgurl == "https://view.moezx.cc/images/2018/09/17/little-monster.png") { - mashiro_global.variables.skinSecter = true; - mashiro_global.variables.isNight = false; - $("#night-mode-cover").css("visibility", "hidden"); - $("body").css("background-image", "url(" + bgurl + ")"); - $(".blank").css("background-color", "rgba(255,255,255,1)"); - $(".pattern-center").removeClass('pattern-center').addClass('pattern-center-sakura'); - $(".headertop-bar").removeClass('headertop-bar').addClass('headertop-bar-sakura'); - } else if (bgurl == "https://api.shino.cc/bing/") { - mashiro_global.variables.skinSecter = true; - mashiro_global.variables.isNight = true; - $("#night-mode-cover").css("visibility", "hidden"); - $("body").css("background-image", "url(" + bgurl + ")"); - $(".blank").css("background-color", "rgba(255,255,255,1)"); - $(".pattern-center").removeClass('pattern-center').addClass('pattern-center-sakura'); - $(".headertop-bar").removeClass('headertop-bar').addClass('headertop-bar-sakura'); - } else {} - } else { - return false; - } -} -if (document.body.clientWidth > 860) { - checkBgImgCookie(); -} - -function no_right_click() { - $('.post-thumb img').bind('contextmenu', function (e) { - return false; - }); -} -if (mashiro_global.variables.isNight) { - $(".changeSkin-gear, .toc").css("background", "rgba(255,255,255,0.8)"); -} else { - $(".changeSkin-gear, .toc").css("background", "none"); -} -$(document).ready(function () { - function changeBG(tagid, url) { - $(".skin-menu " + tagid).click(function () { - mashiro_global.variables.skinSecter = true; - mashiro_global.variables.isNight = false; - $("#night-mode-cover").css("visibility", "hidden"); - $("body").css("background-image", "url(" + url + ")"); - $(".blank").css("background-color", "rgba(255,255,255,1)"); - $(".pattern-center").removeClass('pattern-center').addClass('pattern-center-sakura'); - $(".headertop-bar").removeClass('headertop-bar').addClass('headertop-bar-sakura'); - $('#banner_wave_1').addClass('banner_wave_hide_fit_skin'); - $('#banner_wave_2').addClass('banner_wave_hide_fit_skin'); - closeSkinMenu(); - setCookie("bgImgSetting", url, 30); - }); - } - - function changeBGnoTrans(tagid, url) { - $(".skin-menu " + tagid).click(function () { - mashiro_global.variables.skinSecter = true; - mashiro_global.variables.isNight = true; - $("#night-mode-cover").css("visibility", "hidden"); - $("body").css("background-image", "url(" + url + ")"); - $(".blank").css("background-color", "rgba(255,255,255,1)"); - $(".pattern-center").removeClass('pattern-center').addClass('pattern-center-sakura'); - $(".headertop-bar").removeClass('headertop-bar').addClass('headertop-bar-sakura'); - $('#banner_wave_1').addClass('banner_wave_hide_fit_skin'); - $('#banner_wave_2').addClass('banner_wave_hide_fit_skin'); - closeSkinMenu(); - setCookie("bgImgSetting", url, 30); - }); - } - changeBG("#sakura-bg", "https://view.moezx.cc/images/2018/01/03/sakura.png"); - changeBG("#gribs-bg", "https://view.moezx.cc/images/2018/01/03/plaid2dbf8.jpg"); - changeBG("#pixiv-bg", "https://view.moezx.cc/images/2018/01/10/star02.png"); - changeBG("#KAdots-bg", "https://view.moezx.cc/images/2018/01/24/kyotoanimation.png"); - changeBG("#totem-bg", "https://view.moezx.cc/images/2018/09/17/little-monster.png"); - changeBGnoTrans("#bing-bg", "https://api.shino.cc/bing/"); - $(".skin-menu #white-bg").click(function () { - mashiro_global.variables.skinSecter = false; - mashiro_global.variables.isNight = false; - $("#night-mode-cover").css("visibility", "hidden"); - $("body").css("background-image", "none"); - $(".blank").css("background-color", "rgba(255,255,255,.0)"); - $(".pattern-center-sakura").removeClass('pattern-center-sakura').addClass('pattern-center'); - $(".headertop-bar-sakura").removeClass('headertop-bar-sakura').addClass('headertop-bar'); - $('#banner_wave_1').removeClass('banner_wave_hide_fit_skin'); - $('#banner_wave_2').removeClass('banner_wave_hide_fit_skin'); - closeSkinMenu(); - setCookie("bgImgSetting", "", 30); - }); - $(".skin-menu #dark-bg").click(function () { - mashiro_global.variables.skinSecter = true; - mashiro_global.variables.isNight = true; - $("body").css("background-image", "url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.2/other-sites/api-index/images/me.png)"); - $(".blank").css("background-color", "rgba(255,255,255,.8)"); - $("#night-mode-cover").css("visibility", "visible"); - $(".pattern-center").removeClass('pattern-center').addClass('pattern-center-sakura'); - $(".headertop-bar").removeClass('headertop-bar').addClass('headertop-bar-sakura'); - $('#banner_wave_1').addClass('banner_wave_hide_fit_skin'); - $('#banner_wave_2').addClass('banner_wave_hide_fit_skin'); - closeSkinMenu(); - }); - - function closeSkinMenu() { - $(".skin-menu").removeClass('show'); - setTimeout(function () { - $(".changeSkin-gear").css("visibility", "visible"); - }, 300); - if (mashiro_global.variables.isNight) { - $(".changeSkin-gear, .toc").css("background", "rgba(255,255,255,0.8)"); - } else { - $(".changeSkin-gear, .toc").css("background", "none"); - } - } - $(".changeSkin-gear").click(function () { - $(".skin-menu").toggleClass('show'); - if (mashiro_global.variables.isNight) { - $(".changeSkin").css("background", "rgba(255,255,255,0.8)"); - } else { - $(".changeSkin").css("background", "none"); - } - }) - $(".skin-menu #close-skinMenu").click(function () { - closeSkinMenu(); - }); - add_upload_tips(); -}); - -function nextBG() { - $(".centerbg").css("background-image", 'url("/images/cover/(' + Math.abs(bgn%8) + ').jpg.webp")'); - bgn = bgn + 1; -} - -function preBG() { - bgn = bgn - 1; - $(".centerbg").css("background-image", 'url("/images/cover/(' + Math.abs(bgn%8) + ').jpg.webp")'); -} -$(document).ready(function () { - $(".centerbg").css("background-image", 'url("/images/cover/(' + bgn + ').jpg.webp")'); - $("#bg-next").click(function () { - nextBG(); - }); - $("#bg-pre").click(function () { - preBG(); - }); -}); -if (document.body.clientWidth <= 860 && !window.is_app) { - window.onscroll = function () { - scrollFunction() - }; - - function scrollFunction() { - if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { - document.getElementById("moblieGoTop").style.display = "block"; - } else { - document.getElementById("moblieGoTop").style.display = "none"; - } - } - - function topFunction() { - document.body.scrollTop = 0; - document.documentElement.scrollTop = 0; - } -} - -function reload_show_date_time() { - BirthDay = new Date("06/02/2017 18:00:00"); - today = new Date(); - timeold = (today.getTime() - BirthDay.getTime()); - sectimeold = timeold / 1000 - secondsold = Math.floor(sectimeold); - msPerDay = 24 * 60 * 60 * 1000 - e_daysold = timeold / msPerDay - daysold = Math.floor(e_daysold); - monitorday.innerHTML = daysold; -} - -function timeSeriesReload(flag) { - if (flag == true) { - $('#archives span.al_mon').click(function () { - $(this).next().slideToggle(400); - return false; - }); - lazyload(); - } else { - (function () { - $('#al_expand_collapse,#archives span.al_mon').css({ - cursor: "s-resize" - }); - $('#archives span.al_mon').each(function () { - var num = $(this).next().children('li').length; - $(this).children('#post-num').text(num); - }); - var $al_post_list = $('#archives ul.al_post_list'), - $al_post_list_f = $('#archives ul.al_post_list:first'); - $al_post_list.hide(1, function () { - $al_post_list_f.show(); - }); - $('#archives span.al_mon').click(function () { - $(this).next().slideToggle(400); - return false; - }); - if (document.body.clientWidth > 860) { - $('#archives li.al_li').mouseover(function () { - $(this).children('.al_post_list').show(400); - return false; - }); - if (false) { - $('#archives li.al_li').mouseout(function () { - $(this).children('.al_post_list').hide(400); - return false; - }); - } - } - var al_expand_collapse_click = 0; - $('#al_expand_collapse').click(function () { - if (al_expand_collapse_click == 0) { - $al_post_list.show(); - al_expand_collapse_click++; - } else if (al_expand_collapse_click == 1) { - $al_post_list.hide(); - al_expand_collapse_click--; - } - }); - })(); - } -} -timeSeriesReload(); - -function tableOfContentScroll(flag) { - if (document.body.clientWidth <= 1200) { - return; - } else if ($("div").hasClass("have-toc") == false && $("div").hasClass("has-toc") == false) { - $(".toc-container").remove(); - } else { - $(document).ready(function () { - if ($("div").hasClass("toc")) { - $(".toc-container").css("height", $(".site-content").outerHeight()); - setTimeout(function () { - $(".toc-container").css("height", $(".site-content").outerHeight()); - }, 1000); - setTimeout(function () { - $(".toc-container").css("height", $(".site-content").outerHeight()); - }, 6000); - } - }); - if (flag) { - var id = 1; - $(".entry-content , .links").children("h1,h2,h3,h4,h5").each(function () { - var hyphenated = "toc-head-" + id; - $(this).attr('id', hyphenated); - id++; - }); - tocbot.init({ - tocSelector: '.toc', - contentSelector: ['.entry-content', '.links'], - headingSelector: 'h1, h2, h3, h4, h5', - scrollEndCallback: function (e) {}, - }); - } - } -} -tableOfContentScroll(flag = true); -var pjaxInit = function () { - add_upload_tips(); - click_to_view_image(); - original_emoji_click(); - mashiro_global.font_control.ini(); - $("p").remove(".head-copyright"); - try { - code_highlight_style(); - } catch (e) {}; - try { - inlojv_js_getqqinfo(); - } catch (e) {}; - lazyload(); - $("#to-load-aplayer").click(function () { - try { - reloadHermit(); - } catch (e) {}; - $("div").remove(".load-aplayer"); - }); - if ($("div").hasClass("aplayer")) { - reloadHermit(); - } - // if ($("div").hasClass("popcontainer")) { - // loadBotui(); - // } - try { - reload_show_date_time(); - } catch (e) {} - if (mashiro_global.variables.skinSecter === true) { - $(".pattern-center").removeClass('pattern-center').addClass('pattern-center-sakura'); - $(".headertop-bar").removeClass('headertop-bar').addClass('headertop-bar-sakura'); - if (mashiro_global.variables.isNight) { - $(".blank").css("background-color", "rgba(255,255,255,1)"); - $(".toc").css("background-color", "rgba(255,255,255,0.8)"); - } - } - $('.iconflat').css('width', '50px').css('height', '50px'); - $('.openNav').css('height', '50px'); - $("#bg-next").click(function () { - nextBG(); - }); - $("#bg-pre").click(function () { - preBG(); - }); - smileBoxToggle(); - timeSeriesReload(); - add_copyright(); - tableOfContentScroll(flag = true); - console.log($("#myscript").text()); -} -$(document).on("click", ".sm", function () { - var msg = "您真的要设为私密吗?"; - if (confirm(msg) == true) { - $(this).commentPrivate(); - } else { - aler("已取消"); - } -}); -$.fn.commentPrivate = function () { - if ($(this).hasClass('private_now')) { - alert('您之前已设过私密评论'); - return false; - } else { - $(this).addClass('private_now'); - var idp = $(this).data('idp'), - actionp = $(this).data('actionp'), - rateHolderp = $(this).children('.has_set_private'); - var ajax_data = { - action: "siren_private", - p_id: idp, - p_action: actionp - }; - $.post("/wp-admin/admin-ajax.php", ajax_data, function (data) { - $(rateHolderp).html(data); - }); - return false; - } -}; - -function show_date_time() { - BirthDay = new Date("06/02/2017 18:00:00"); - today = new Date(); - timeold = (today.getTime() - BirthDay.getTime()); - sectimeold = timeold / 1000 - secondsold = Math.floor(sectimeold); - msPerDay = 24 * 60 * 60 * 1000 - e_daysold = timeold / msPerDay - daysold = Math.floor(e_daysold); - monitorday.innerHTML = daysold; -} -try { - show_date_time(); -} catch (e) {} -POWERMODE.colorful = true; -POWERMODE.shake = false; -document.body.addEventListener('input', POWERMODE); - -function motionSwitch(ele) { - var motionEles = [".bili", ".menhera", ".tieba"]; - for (var i in motionEles) { - $(motionEles[i] + '-bar').removeClass("on-hover"); - $(motionEles[i] + '-container').css("display", "none"); - } - $(ele + '-bar').addClass("on-hover"); - $(ele + '-container').css("display", "block"); -} -$('.comt-addsmilies').click(function () { - $('.comt-smilies').toggle(); -}) -$('.comt-smilies a').click(function () { - $(this).parent().hide(); -}) - -function smileBoxToggle() { - $(document).ready(function () { - $("#emotion-toggle").click(function () { - $(".emotion-toggle-off").toggle(0); - $(".emotion-toggle-on").toggle(0); - $(".emotion-box").toggle(160); - }); - }); -} -smileBoxToggle(); - -function grin(tag, type, before, after) { - var myField; - if (type == "custom") { - tag = before + tag + after; - } else if (type == "Img") { - tag = '[img]' + tag + '[/img]'; - } else if (type == "Math") { - tag = ' f(x)=∫(' + tag + ')sec²xdx '; - } else { - tag = ' :' + tag + ': '; - } - if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') { - myField = document.getElementById('comment'); - } else { - return false; - } - if (document.selection) { - myField.focus(); - sel = document.selection.createRange(); - sel.text = tag; - myField.focus(); - } else if (myField.selectionStart || myField.selectionStart == '0') { - var startPos = myField.selectionStart; - var endPos = myField.selectionEnd; - var cursorPos = endPos; - myField.value = myField.value.substring(0, startPos) + tag + myField.value.substring(endPos, myField.value.length); - cursorPos += tag.length; - myField.focus(); - myField.selectionStart = cursorPos; - myField.selectionEnd = cursorPos; - } else { - myField.value += tag; - myField.focus(); - } -} -// if ($("div").hasClass("popcontainer")) { -// loadBotui(); -// } -// $("bot-ui").click(function () { -// loadBotui(); -// }); - -function add_copyright() { - document.body.addEventListener("copy", function (e) { - if (!mashiro_global.is_user_logged_in && window.getSelection().toString().length > 30) { - setClipboardText(e); - } - }); - - function setClipboardText(event) { - event.preventDefault(); - var htmlData = "" + "著作权归作者所有。
        " + "商业转载请联系作者获得授权,非商业转载请注明出处。
        " + "作者:" + mashiro_option.author_name + "
        " + "链接:" + window.location.href + "
        " + "来源:" + mashiro_option.site_name + "

        " + window.getSelection().toString().replace(/\r\n/g, "
        ");; - var textData = "" + "著作权归作者所有。\n" + "商业转载请联系作者获得授权,非商业转载请注明出处。\n" + "" + mashiro_option.author_name + "\n" + "链接:" + window.location.href + "\n" + "来源:" + mashiro_option.site_name + "\n\n" + window.getSelection().toString().replace(/\r\n/g, "\n"); - if (event.clipboardData) { - event.clipboardData.setData("text/html", htmlData); - event.clipboardData.setData("text/plain", textData); - addComment.createButterbar("复制成功!
        Copied to clipboard successfully!", 1000); - } else if (window.clipboardData) { - return window.clipboardData.setData("text", textData); - } - } -} -add_copyright(); -$(function () { - inlojv_js_getqqinfo(); -}); - -function inlojv_js_getqqinfo() { - var is_get_by_qq = false; - var qq_test = /^[0-9]+$/; - if (!getCookie('user_qq') && !getCookie('user_qq_email') && !getCookie('user_author')) { - $('input#qq,input#author,input#email,input#url').val(''); - } - if (getCookie('user_avatar') && getCookie('user_qq') && getCookie('user_qq_email')) { - $('div.comment-user-avatar img').attr('src', getCookie('user_avatar')); - $('input#author').val(getCookie('user_author')); - $('input#email').val(getCookie('user_qq') + '@qq.com'); - $('input#qq').val(getCookie('user_qq')); - if (mashiro_option.qzone_autocomplete) { - $('input#url').val('https://user.qzone.qq.com/' + getCookie('user_qq')); - } - if ($('input#qq').val()) { - $('.qq-check').css('display', 'block'); - $('.gravatar-check').css('display', 'none'); - } - } - var emailAddressFlag = $('input#email').val(); - $('input#author').on('blur', function () { - var qq = $('input#author').val(); - $.ajax({ - type: 'get', - url: mashiro_option.qq_api_url + '?type=getqqnickname&qq=' + qq, - dataType: 'jsonp', - jsonp: 'callback', - jsonpCallback: 'portraitCallBack', - success: function (data) { - $('input#author').val(data[qq][6]); - $('input#email').val($.trim(qq) + '@qq.com'); - if (mashiro_option.qzone_autocomplete) { - $('input#url').val('https://user.qzone.qq.com/' + $.trim(qq)); - } - $('div.comment-user-avatar img').attr('src', 'https://q2.qlogo.cn/headimg_dl?dst_uin=' + qq + '&spec=100'); - is_get_by_qq = true; - $('input#qq').val($.trim(qq)); - if ($('input#qq').val()) { - $('.qq-check').css('display', 'block'); - $('.gravatar-check').css('display', 'none'); - } - setCookie('user_author', data[qq][6], 30); - setCookie('user_qq', qq, 30); - setCookie('is_user_qq', 'yes', 30); - setCookie('user_qq_email', qq + '@qq.com', 30); - setCookie('user_email', qq + '@qq.com', 30); - emailAddressFlag = $('input#email').val(); - }, error: function () { - if (qq_test.test(qq)) { - addComment.createButterbar("QQ号不存在(建议不要使用纯数字昵称)"); - } - $('input#qq').val(''); - $('.qq-check').css('display', 'none'); - $('.gravatar-check').css('display', 'block'); - $('div.comment-user-avatar img').attr('src', get_gravatar($('input#email').val(), 80)); - setCookie('user_qq', '', 30); - setCookie('user_email', $('input#email').val(), 30); - setCookie('user_avatar', get_gravatar($('input#email').val(), 80), 30); - } - }); - $.ajax({ - type: 'get', - url: mashiro_option.qq_avatar_api_url + '?type=getqqavatar&qq=' + qq, - dataType: 'jsonp', - jsonp: 'callback', - jsonpCallback: 'qqavatarCallBack', - beforeSend: function () { - if (qq_test.test(qq)) { - addComment.createButterbar("正在获取QQ头像..."); - } - }, success: function (data) { - $('div.comment-user-avatar img').attr('src', data[qq]); - addComment.createButterbar("QQ头像获取成功"); - setCookie('user_avatar', data[qq], 30); - }, error: function () { - if (qq_test.test(qq)) { - addComment.createButterbar("QQ号不存在(建议不要使用纯数字昵称)"); - } - $('input#qq', 'input#email', 'input#url').val(''); - if (!$('input#qq').val()) { - $('.qq-check').css('display', 'none'); - $('.gravatar-check').css('display', 'block'); - setCookie('user_qq', '', 30); - $('div.comment-user-avatar img').attr('src', get_gravatar($('input#email').val(), 80)); - setCookie('user_avatar', get_gravatar($('input#email').val(), 80), 30); - } - } - }); - }); - if (getCookie('user_avatar') && getCookie('user_email') && getCookie('is_user_qq') == 'no' && !getCookie('user_qq_email')) { - $('div.comment-user-avatar img').attr('src', getCookie('user_avatar')); - $('input#email').val(getCookie('user_email')); - $('input#qq').val(''); - if (!$('input#qq').val()) { - $('.qq-check').css('display', 'none'); - $('.gravatar-check').css('display', 'block'); - } - } - $('input#email').on('blur', function () { - var emailAddress = $('input#email').val(); - if (is_get_by_qq == false || emailAddressFlag != emailAddress) { - $('div.comment-user-avatar img').attr('src', get_gravatar(emailAddress, 80)); - setCookie('user_avatar', get_gravatar(emailAddress, 80), 30); - setCookie('user_email', emailAddress, 30); - setCookie('user_qq_email', '', 30); - setCookie('is_user_qq', 'no', 30); - $('input#qq').val(''); - if (!$('input#qq').val()) { - $('.qq-check').css('display', 'none'); - $('.gravatar-check').css('display', 'block'); - } - } - }); - if (getCookie('user_url')) { - $('input#url').val(getCookie('user_url')); - } - $('input#url').on('blur', function () { - var URL_Address = $('input#url').val(); - $('input#url').val(URL_Address); - setCookie('user_url', URL_Address, 30); - }); - if (getCookie('user_author')) { - $('input#author').val(getCookie('user_author')); - } - $('input#author').on('blur', function () { - var user_name = $('input#author').val(); - $('input#author').val(user_name); - setCookie('user_author', user_name, 30); - }); -} - -function get_poem(poem_ele, info_ele) { - var poem = document.querySelector(poem_ele); - var info = document.querySelector(info_ele); - var xhr = new XMLHttpRequest(); - xhr.open('get', 'https://v2.jinrishici.com/one.json'); - xhr.withCredentials = true; - xhr.onreadystatechange = function () { - if (xhr.readyState === 4) { - var data = JSON.parse(xhr.responseText); - poem.innerHTML = data.data.content; - info.innerHTML = '【' + data.data.origin.dynasty + '】' + data.data.origin.author + '《' + data.data.origin.title + '》'; - } - }; - xhr.send(); -} - -// function loadBotui() { -// if ($('div').hasClass('popcontainer')) { -// if (mashiro_global.variables.has_bot_ui) { -// bot_ui_ini(); -// } else { -// $.getScript('https://cdn.jsdelivr.net/gh/moezx/cdn@latest/js/botui/botui.js', function () { -// bot_ui_ini(); -// mashiro_global.variables.has_bot_ui = true; -// }); -// } -// } -// } - -function mail_me() { - var mail = "mailto:" + mashiro_option.email_name + "@" + mashiro_option.email_domain; - window.open(mail); -} - -function hearthstone_deck_iframe() { - if ($("iframe").hasClass("hearthstone-deck")) { - $(".hearthstone-deck").each(function () { - $(this).attr('height', $(this).width() * 5 / 9 + 'px'); - }); - $(".hearthstone-deck-container").each(function () { - var deck_container_height_fix = $(this).width() * 5 / 9 + 14; - $(this).css("height", deck_container_height_fix + "px"); - }); - } -} -var currentFontIsUbuntu = true; - -function changeFont() { - if (currentFontIsUbuntu) { - loadCSS("https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.8/css/cn.css"); - currentFontIsUbuntu = false; - } else { - loadCSS("https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.8/css/or.css"); - currentFontIsUbuntu = true; - } -} - -function convertChinese(zh) { - if (zh == 'cn') { - $("#zh_cn").css("display", "none"); - $("#zh_tw").css("display", "inline-block"); - loadCSS("https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.8/css/tw.css"); - } - if (zh == 'tw') { - $("#zh_tw").css("display", "none"); - $("#zh_cn").css("display", "inline-block"); - loadCSS("https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.8/css/cn.css"); - } -} -mashiro_global.ini.normalize(); -if (window.location.hostname == "lovelive.2heng.xin") { - Poi.ajaxurl = Poi.ajaxurl.replace('//2heng.xin', ''); -} -var home = location.href, - s = $('#bgvideo')[0], - Siren = { - MN: function () { - $('.iconflat').on('click', function () { - if ($("#main-container").hasClass("open")) { - $('.iconflat').css('width', '50px').css('height', '50px'); - $('.openNav').css('height', '50px'); - } else { - $('.iconflat').css('width', '100%').css('height', '100%'); - $('.openNav').css('height', '100%'); - } - $('body').toggleClass('navOpen'); - $('#main-container,#mo-nav,.openNav').toggleClass('open'); - }); - }, MNH: function () { - if ($('body').hasClass('navOpen')) { - $('body').toggleClass('navOpen'); - $('#main-container,#mo-nav,.openNav').toggleClass('open'); - } - }, splay: function () { - $('#video-btn').addClass('video-pause').removeClass('video-play').show(); - $('.video-stu').css({ - "bottom": "-100px" - }); - $('.focusinfo').css({ - "top": "-999px" - }); - $('#banner_wave_1').addClass('banner_wave_hide'); - $('#banner_wave_2').addClass('banner_wave_hide'); - // for (var i = 0; i < ap.length; i++) { - // try { - // ap[i].destroy() - // } catch (e) {} - // } - // try { - // hermitInit() - // } catch (e) {} - s.play(); - }, spause: function () { - $('#video-btn').addClass('video-play').removeClass('video-pause'); - $('.focusinfo').css({ - "top": "49.3%" - }); - $('#banner_wave_1').removeClass('banner_wave_hide'); - $('#banner_wave_2').removeClass('banner_wave_hide'); - s.pause(); - }, liveplay: function () { - if (s.oncanplay != undefined && $('.haslive').length > 0) { - if ($('.videolive').length > 0) { - Siren.splay(); - } - } - }, livepause: function () { - if (s.oncanplay != undefined && $('.haslive').length > 0) { - Siren.spause(); - $('.video-stu').css({ - "bottom": "0px" - }).html('已暂停 ...'); - } - }, addsource: function () { - $('.video-stu').html('正在载入视频 ...').css({ - "bottom": "0px" - }); - var t = Poi.movies.name.split(","), - _t = t[Math.floor(Math.random() * t.length)]; - $('#bgvideo').attr('src', Poi.movies.url + '/' + _t + '.mp4'); - $('#bgvideo').attr('video-name', _t); - }, LV: function () { - var _btn = $('#video-btn'); - _btn.on('click', function () { - if ($(this).hasClass('loadvideo')) { - $(this).addClass('video-pause').removeClass('loadvideo').hide(); - Siren.addsource(); - s.oncanplay = function () { - Siren.splay(); - $('#video-add').show(); - _btn.addClass('videolive'); - _btn.addClass('haslive'); - } - } else { - if ($(this).hasClass('video-pause')) { - Siren.spause(); - _btn.removeClass('videolive'); - $('.video-stu').css({ - "bottom": "0px" - }).html('已暂停 ...'); - } else { - Siren.splay(); - _btn.addClass('videolive'); - } - } - s.onended = function () { - $('#bgvideo').attr('src', ''); - $('#video-add').hide(); - _btn.addClass('loadvideo').removeClass('video-pause'); - _btn.removeClass('videolive'); - _btn.removeClass('haslive'); - $('.focusinfo').css({ - "top": "49.3%" - }); - } - }); - $('#video-add').on('click', function () { - Siren.addsource(); - }); - }, AH: function () { - if (Poi.windowheight == 'auto') { - if ($('h1.main-title').length > 0) { - var _height = $(window).height(); - $('#centerbg').css({ - 'height': _height - }); - $('#bgvideo').css({ - 'min-height': _height - }); - $(window).resize(function () { - Siren.AH(); - }); - } - } else { - $('.headertop').addClass('headertop-bar'); - } - }, PE: function () { - if ($('.headertop').length > 0) { - if ($('h1.main-title').length > 0) { - $('.blank').css({ - "padding-top": "0px" - }); - $('.headertop').css({ - "height": "auto" - }).show(); - if (Poi.movies.live == 'open') Siren.liveplay(); - $('.site-header').addClass('is-homepage'); - } else { - $('.blank').css({ - "padding-top": "75px" - }); - $('.headertop').css({ - "height": "0px" - }).hide(); - Siren.livepause(); - } - } - }, CE: function () { - $('.comments-hidden').show(); - $('.comments-main').hide(); - $('.comments-hidden').click(function () { - $('.comments-main').slideDown(500); - $('.comments-hidden').hide(); - }); - $('.archives').hide(); - $('.archives:first').show(); - $('#archives-temp h3').click(function () { - $(this).next().slideToggle('fast'); - return false; - }); - $('.js-toggle-search').on('click', function () { - $('.js-toggle-search').toggleClass('is-active'); - $('.js-search').toggleClass('is-visible'); - }); - $('.search_close').on('click', function () { - if ($('.js-search').hasClass('is-visible')) { - $('.js-toggle-search').toggleClass('is-active'); - $('.js-search').toggleClass('is-visible'); - } - }); - $('#show-nav').on('click', function () { - if ($('#show-nav').hasClass('showNav')) { - $('#show-nav').removeClass('showNav').addClass('hideNav'); - $('.site-top .lower nav').addClass('navbar'); - $('.mobile-fit-control').removeClass('hide'); - if (screen && screen.width <= 1200) { - $(".site-title").toggle(); - } - } else { - $('#show-nav').removeClass('hideNav').addClass('showNav'); - $('.site-top .lower nav').removeClass('navbar'); - $('.mobile-fit-control').addClass('hide'); - if (screen && screen.width <= 1200) { - $(".site-title").toggle(); - } - } - }); - $("#loading").click(function () { - $("#loading").fadeOut(500); - }); - }, NH: function () { - var h1 = 0, - h2 = 50, - ss = $(document).scrollTop(); - $(window).scroll(function () { - var s = $(document).scrollTop(); - if (s == h1) { - $('.site-header').removeClass('yya'); - } - if (s > h1) { - $('.site-header').addClass('yya'); - } - if (s > h2) { - $('.site-header').addClass('gizle'); - if (s > ss) { - $('.site-header').removeClass('sabit'); - } else { - $('.site-header').addClass('sabit'); - } - ss = s; - } - }); - }, XLS: function () { - $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body'); - $('body').on('click', '#pagination a', function () { - $(this).addClass("loading").text(""); - $.ajax({ - type: "POST", - url: $(this).attr("href") + "#main", - success: function (data) { - result = $(data).find("#main .post"); - nextHref = $(data).find("#pagination a").attr("href"); - $("#main").append(result.fadeIn(500)); - $("#pagination a").removeClass("loading").text("Previous"); - lazyload(); - mashiro_global.post_list_show_animation.ini(50); - if (nextHref != undefined) { - $("#pagination a").attr("href", nextHref); - } else { - $("#pagination").html("很高兴你翻到这里,但是真的没有了..."); - } - } - }); - return false; - }); - }, XCS: function () { - var __cancel = jQuery('#cancel-comment-reply-link'), - __cancel_text = __cancel.text(), - __list = 'commentwrap'; - jQuery(document).on("submit", "#commentform", function () { - jQuery.ajax({ - url: Poi.ajaxurl, - data: jQuery(this).serialize() + "&action=ajax_comment", - type: jQuery(this).attr('method'), - beforeSend: addComment.createButterbar("提交中(Commiting)...."), - error: function (request) { - var t = addComment; - t.createButterbar(request.responseText); - }, success: function (data) { - jQuery('textarea').each(function () { - this.value = '' - }); - var t = addComment, - cancel = t.I('cancel-comment-reply-link'), - temp = t.I('wp-temp-form-div'), - respond = t.I(t.respondId), - post = t.I('comment_post_ID').value, - parent = t.I('comment_parent').value; - if (parent != '0') { - jQuery('#respond').before('
          ' + data + '
        '); - } else if (!jQuery('.' + __list).length) { - if (Poi.formpostion == 'bottom') { - jQuery('#respond').before('
          ' + data + '
        '); - } else { - jQuery('#respond').after('
          ' + data + '
        '); - } - } else { - if (Poi.order == 'asc') { - jQuery('.' + __list).append(data); - } else { - jQuery('.' + __list).prepend(data); - } - } - t.createButterbar("提交成功(Succeed)"); - lazyload(); - code_highlight_style(); - click_to_view_image(); - clean_upload_images(); - cancel.style.display = 'none'; - cancel.onclick = null; - t.I('comment_parent').value = '0'; - if (temp && respond) { - temp.parentNode.insertBefore(respond, temp); - temp.parentNode.removeChild(temp) - } - } - }); - return false; - }); - addComment = { - moveForm: function (commId, parentId, respondId) { - var t = this, - div, comm = t.I(commId), - respond = t.I(respondId), - cancel = t.I('cancel-comment-reply-link'), - parent = t.I('comment_parent'), - post = t.I('comment_post_ID'); - __cancel.text(__cancel_text); - t.respondId = respondId; - if (!t.I('wp-temp-form-div')) { - div = document.createElement('div'); - div.id = 'wp-temp-form-div'; - div.style.display = 'none'; - respond.parentNode.insertBefore(div, respond) - }!comm ? (temp = t.I('wp-temp-form-div'), t.I('comment_parent').value = '0', temp.parentNode.insertBefore(respond, temp), temp.parentNode.removeChild(temp)) : comm.parentNode.insertBefore(respond, comm.nextSibling); - jQuery("body").animate({ - scrollTop: jQuery('#respond').offset().top - 180 - }, 400); - parent.value = parentId; - cancel.style.display = ''; - cancel.onclick = function () { - var t = addComment, - temp = t.I('wp-temp-form-div'), - respond = t.I(t.respondId); - t.I('comment_parent').value = '0'; - if (temp && respond) { - temp.parentNode.insertBefore(respond, temp); - temp.parentNode.removeChild(temp); - } - this.style.display = 'none'; - this.onclick = null; - return false; - }; - try { - t.I('comment').focus(); - } catch (e) {} - return false; - }, I: function (e) { - return document.getElementById(e); - }, clearButterbar: function (e) { - if (jQuery(".butterBar").length > 0) { - jQuery(".butterBar").remove(); - } - }, createButterbar: function (message, showtime) { - var t = this; - t.clearButterbar(); - jQuery("body").append('

        ' + message + '

        '); - if (showtime > 0) { - setTimeout("jQuery('.butterBar').remove()", showtime); - } else { - setTimeout("jQuery('.butterBar').remove()", 6000); - } - } - }; - }, XCP: function () { - $body = (window.opera) ? (document.compatMode == "CSS1Compat" ? $('html') : $('body')) : $('html,body'); - $('body').on('click', '#comments-navi a', function (e) { - e.preventDefault(); - $.ajax({ - type: "GET", - url: $(this).attr('href'), - beforeSend: function () { - $('#comments-navi').remove(); - $('ul.commentwrap').remove(); - $('#loading-comments').slideDown(); - $body.animate({ - scrollTop: $('#comments-list-title').offset().top - 65 - }, 800); - }, dataType: "html", - success: function (out) { - result = $(out).find('ul.commentwrap'); - nextlink = $(out).find('#comments-navi'); - $('#loading-comments').slideUp('fast'); - $('#loading-comments').after(result.fadeIn(500)); - $('ul.commentwrap').after(nextlink); - lazyload(); - code_highlight_style(); - click_to_view_image(); - } - }); - }); - }, IA: function () { - POWERMODE.colorful = true; - POWERMODE.shake = false; - document.body.addEventListener('input', POWERMODE) - }, GT: function () { - var offset = 100, - offset_opacity = 1200, - scroll_top_duration = 700, - $back_to_top = $('.cd-top'); - $(window).scroll(function () { - if ($(this).scrollTop() > offset) { - $back_to_top.addClass('cd-is-visible'); - $(".changeSkin-gear").css("bottom", "0"); - if ($(window).height() > 950) { - $(".cd-top.cd-is-visible").css("top", "0"); - } else { - $(".cd-top.cd-is-visible").css("top", ($(window).height() - 950) + "px"); - } - } else { - $(".changeSkin-gear").css("bottom", "-999px"); - $(".cd-top.cd-is-visible").css("top", "-900px"); - $back_to_top.removeClass('cd-is-visible cd-fade-out'); - } - if ($(this).scrollTop() > offset_opacity) { - $back_to_top.addClass('cd-fade-out'); - } - }); - $back_to_top.on('click', function (event) { - event.preventDefault(); - $('body,html').animate({ - scrollTop: 0, - }, scroll_top_duration); - }); - } - } -$(function () { - Siren.AH(); - Siren.PE(); - Siren.NH(); - Siren.GT(); - Siren.XLS(); - Siren.XCS(); - Siren.XCP(); - Siren.CE(); - Siren.MN(); - Siren.IA(); - Siren.LV(); - if (window.is_app) injectStyles('#nprogress .bar { display: none; }'); - if (Poi.pjax) { - $(document).pjax('a[target!=_top]', '#page', { - fragment: '#page', - timeout: 8000, - }).on('pjax:send', function () { - $("#bar").css("width", "0%"); - if (mashiro_option.NProgressON) NProgress.start(); - Siren.MNH(); - }).on('pjax:complete', function () { - Siren.AH(); - Siren.PE(); - Siren.CE(); - if (mashiro_option.NProgressON) NProgress.done(); - mashiro_global.ini.pjax(); - $("#loading").fadeOut(500); - if (Poi.codelamp == 'open') { - self.Prism.highlightAll(event) - }; - if ($('.ds-thread').length > 0) { - if (typeof DUOSHUO !== 'undefined') { - DUOSHUO.EmbedThread('.ds-thread'); - } else { - $.getScript("//static.duoshuo.com/embed.js"); - } - } - }).on('submit', '.search-form,.s-search', function (event) { - event.preventDefault(); - $.pjax.submit(event, '#page', { - fragment: '#page', - timeout: 8000, - }); - if ($('.js-search.is-visible').length > 0) { - $('.js-toggle-search').toggleClass('is-active'); - $('.js-search').toggleClass('is-visible'); - } - }); - mashiro_global.lib.pjax_to_url = function (url, ele) { - $.pjax({ - url: url, - container: ele, - fragment: ele, - timeout: 8000 - }) - } - window.addEventListener('popstate', function (e) { - Siren.AH(); - Siren.PE(); - Siren.CE(); - timeSeriesReload(true); - }, false); - } - $.fn.postLike = function () { - if ($(this).hasClass('done')) { - return false; - } else { - $(this).addClass('done'); - var id = $(this).data("id"), - action = $(this).data('action'), - rateHolder = $(this).children('.count'); - var ajax_data = { - action: "specs_zan", - um_id: id, - um_action: action - }; - $.post(Poi.ajaxurl, ajax_data, function (data) { - $(rateHolder).html(data); - }); - return false; - } - }; - $(document).on("click", ".specsZan", function () { - $(this).postLike(); - }); - // console.log("%c Mashiro %c", "background:#24272A; color:#ffffff", "", "https://2heng.xin/"); - // console.log("%c Github %c", "background:#24272A; color:#ffffff", "", "https://github.com/mashirozx"); -}); -var isWebkit = navigator.userAgent.toLowerCase().indexOf('webkit') > -1, - isOpera = navigator.userAgent.toLowerCase().indexOf('opera') > -1, - isIe = navigator.userAgent.toLowerCase().indexOf('msie') > -1; -if ((isWebkit || isOpera || isIe) && document.getElementById && window.addEventListener) { - window.addEventListener('hashchange', function () { - var id = location.hash.substring(1), - element; - if (!(/^[A-z0-9_-]+$/.test(id))) { - return; - } - element = document.getElementById(id); - if (element) { - if (!(/^(?:a|select|input|button|textarea)$/i.test(element.tagName))) { - element.tabIndex = -1; - } - element.focus(); - } - }, false); -} -loadCSS(mashiro_option.jsdelivr_css_src); -// loadCSS("https://at.alicdn.com/t/font_679578_dishi1yoavm.css"); -// loadCSS("https://cdn.jsdelivr.net/gh/moezx/cdn@3.5.4/fonts/Moe-Mashiro/stylesheet.css"); -// loadCSS("https://fonts.googleapis.com/css?family=Noto+SerifMerriweather|Merriweather+Sans|Source+Code+Pro|Ubuntu:400,700"); -// loadCSS("https://cdn.jsdelivr.net/gh/moezx/cdn@3.3.9/css/sharejs.css");; - - -function render(template, context) { - var tokenReg = /(\\)?\{([^\{\}\\]+)(\\)?\}/g; - return template.replace(tokenReg, function (word, slash1, token, slash2) { - if (slash1 || slash2) { - return word.replace('\\', ''); - } - var variables = token.replace(/\s/g, '').split('.'); - var currentObject = context; - var i, length, variable; - for (i = 0, length = variables.length; i < length; ++i) { - variable = variables[i]; - currentObject = currentObject[variable]; - if (currentObject === undefined || currentObject === null) return ''; - } - return currentObject; - }); -} -String.prototype.render = function (context) { - return render(this, context); -}; - -$(document).ready(function () { - setTimeout(function () { - isFirstLoad = true; - if (document.body.clientWidth > 860) { - $(".changeSkin-gear").css("visibility", "visible"); - } - $("p").remove(".head-copyright"); - }, 0) -}); -if ($("div").hasClass("aplayer")) { - reloadHermit(); -}; - -function aplayerF() { - 'use strict'; - var aplayers = [], - loadMeting = function () { - function a(a, b) { - var c = { - container: a, - audio: b, - mini: null, - fixed: null, - autoplay: !1, - mutex: !0, - lrcType: 3, - listFolded: !1, - preload: 'auto', - theme: '#2980b9', - loop: 'all', - order: 'list', - volume: null, - listMaxHeight: null, - customAudioType: null, - storageName: 'metingjs' - }; - if (b.length) { - b[0].lrc || (c.lrcType = 0); - var d = {}; - for (var e in c) { - var f = e.toLowerCase(); - (a.dataset.hasOwnProperty(f) || a.dataset.hasOwnProperty(e) || null !== c[e]) && (d[e] = a.dataset[f] || a.dataset[e] || c[e], ('true' === d[e] || 'false' === d[e]) && (d[e] = 'true' == d[e])) - } - aplayers.push(new APlayer(d)) - } - for (var f = 0; f < aplayers.length; f++) try { - aplayers[f].lrc.hide(); - } catch (a) { - console.log(a) - } - var lrcTag = 1; - $(".aplayer.aplayer-fixed").click(function () { - if (lrcTag == 1) { - for (var f = 0; f < aplayers.length; f++) try { - aplayers[f].lrc.show(); - } catch (a) { - console.log(a) - } - } - lrcTag = 2; - }); - var apSwitchTag = 0; - $(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover"); - $(".aplayer-miniswitcher").click(function () { - if (apSwitchTag == 0) { - $(".aplayer.aplayer-fixed .aplayer-body").removeClass("ap-hover"); - apSwitchTag = 1; - } else { - $(".aplayer.aplayer-fixed .aplayer-body").addClass("ap-hover"); - apSwitchTag = 0; - } - }); - } - var b = 'https://api.i-meto.com/meting/api?server=:server&type=:type&id=:id&r=:r'; - 'undefined' != typeof meting_api && (b = meting_api); - for (var f = 0; f < aplayers.length; f++) try { - aplayers[f].destroy() - } catch (a) { - console.log(a) - } - aplayers = []; - for (var c = document.querySelectorAll('.aplayer'), d = function () { - var d = c[e], - f = d.dataset.id; - if (f) { - var g = d.dataset.api || b; - g = g.replace(':server', d.dataset.server), g = g.replace(':type', d.dataset.type), g = g.replace(':id', d.dataset.id), g = g.replace(':auth', d.dataset.auth), g = g.replace(':r', Math.random()); - var h = new XMLHttpRequest; - h.onreadystatechange = function () { - if (4 === h.readyState && (200 <= h.status && 300 > h.status || 304 === h.status)) { - var b = JSON.parse(h.responseText); - a(d, b) - } - }, h.open('get', g, !0), h.send(null) - } else if (d.dataset.url) { - var i = [{ - name: d.dataset.name || d.dataset.title || 'Audio name', - artist: d.dataset.artist || d.dataset.author || 'Audio artist', - url: d.dataset.url, - cover: d.dataset.cover || d.dataset.pic, - lrc: d.dataset.lrc, - type: d.dataset.type || 'auto' - }]; - a(d, i) - } - }, e = 0; e < c.length; e++) d() - }; - document.addEventListener('DOMContentLoaded', loadMeting, !1); -} -if (document.body.clientWidth > 860) { - aplayerF(); -} diff --git a/js/script.js b/js/script.js new file mode 100644 index 0000000..1e58767 --- /dev/null +++ b/js/script.js @@ -0,0 +1,137 @@ +(function($){ + // Search + var $searchWrap = $('#search-form-wrap'), + isSearchAnim = false, + searchAnimDuration = 200; + + var startSearchAnim = function(){ + isSearchAnim = true; + }; + + var stopSearchAnim = function(callback){ + setTimeout(function(){ + isSearchAnim = false; + callback && callback(); + }, searchAnimDuration); + }; + + $('#nav-search-btn').on('click', function(){ + if (isSearchAnim) return; + + startSearchAnim(); + $searchWrap.addClass('on'); + stopSearchAnim(function(){ + $('.search-form-input').focus(); + }); + }); + + $('.search-form-input').on('blur', function(){ + startSearchAnim(); + $searchWrap.removeClass('on'); + stopSearchAnim(); + }); + + // Share + $('body').on('click', function(){ + $('.article-share-box.on').removeClass('on'); + }).on('click', '.article-share-link', function(e){ + e.stopPropagation(); + + var $this = $(this), + url = $this.attr('data-url'), + encodedUrl = encodeURIComponent(url), + id = 'article-share-box-' + $this.attr('data-id'), + offset = $this.offset(); + + if ($('#' + id).length){ + var box = $('#' + id); + + if (box.hasClass('on')){ + box.removeClass('on'); + return; + } + } else { + var html = [ + '
        ', + '', + '
        ', + '', + '', + '', + '', + '
        ', + '
        ' + ].join(''); + + var box = $(html); + + $('body').append(box); + } + + $('.article-share-box.on').hide(); + + box.css({ + top: offset.top + 25, + left: offset.left + }).addClass('on'); + }).on('click', '.article-share-box', function(e){ + e.stopPropagation(); + }).on('click', '.article-share-box-input', function(){ + $(this).select(); + }).on('click', '.article-share-box-link', function(e){ + e.preventDefault(); + e.stopPropagation(); + + window.open(this.href, 'article-share-box-window-' + Date.now(), 'width=500,height=450'); + }); + + // Caption + $('.article-entry').each(function(i){ + $(this).find('img').each(function(){ + if ($(this).parent().hasClass('fancybox')) return; + + var alt = this.alt; + + if (alt) $(this).after('' + alt + ''); + + $(this).wrap(''); + }); + + $(this).find('.fancybox').each(function(){ + $(this).attr('rel', 'article' + i); + }); + }); + + if ($.fancybox){ + $('.fancybox').fancybox(); + } + + // Mobile nav + var $container = $('#container'), + isMobileNavAnim = false, + mobileNavAnimDuration = 200; + + var startMobileNavAnim = function(){ + isMobileNavAnim = true; + }; + + var stopMobileNavAnim = function(){ + setTimeout(function(){ + isMobileNavAnim = false; + }, mobileNavAnimDuration); + } + + $('#main-nav-toggle').on('click', function(){ + if (isMobileNavAnim) return; + + startMobileNavAnim(); + $container.toggleClass('mobile-nav-on'); + stopMobileNavAnim(); + }); + + $('#wrap').on('click', function(){ + if (isMobileNavAnim || !$container.hasClass('mobile-nav-on')) return; + + $container.removeClass('mobile-nav-on'); + }); +})(jQuery); \ No newline at end of file diff --git a/links/index.html b/links/index.html index e5d650b..e69de29 100644 --- a/links/index.html +++ b/links/index.html @@ -1,841 +0,0 @@ - - - - - - - links | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
        -
        - -
        -
        - - -
        -
        -
        - - - -
        -
        -

        LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

        -
        -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        -
        -
        -
        - - - -
        -
        - -
        - -
        -
        - -
        -
        -

        - 友人帐

        -
        -
        - -
        -
        -

        欢迎交换友链 ꉂ(ˊᗜˋ),请留言告诉我你的:1、站点名字;2、站点头像;3、主页地址;4、主页简介。

        - - - - - - - - - - - - - - - - - - - - - -
        站点名字LOVE109❤️纪实小屋
        站点头像https://love109.cn/images/love109.jpg
        主页地址https://love109.cn/
        主页简介记录爱情❤️记录生活
        -
        -

        ※ 申请友链的站点必须遵循中华人民共和国相关法律法规,凡是违反《互联网信息服务管理办法》或其他法律法规的站点恕不接受友链

        -

        ※ 本站部分图标、图片、源代码来源于互联网,如有侵权请联系我立即删除

        -

        ※ 本站“特别链接”内容来源于互联网,若不想单方面被添加为友情链接或者有侵权,请网站负责人联系我立即删除

        -

        ※ 本站不对其他站点任何内容负责

        -
        -



        - 虐狗博主
        -

        -
        - 技术大佬
        - -
        - 特别链接
        - -

        - - - - - -
        - - - -
        - -
        -
        -
        -
        - - -
        -
        - -
        -

        记录爱情 记录生活

        -
        - -
        - - - - - - - - -
        -
        -
        - -
        - - - © 2019 LOVE109纪实小屋
        - 鄂ICP备19003281号
        - - 正在载入... - - -
        - - - - - - - - - -
        -
        -
        - - - - - - -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        - -
        -

        LOVE109❤️ 纪实小屋

        -

        - - - - - - - - - - - - - -

        - -

        - © 2019 LOVE109❤️纪实小屋

        -
        - - - - - - - - - - - - - - - - - -
        - - - \ No newline at end of file diff --git a/rss/index.html b/rss/index.html index ff5fdbd..a40d238 100644 --- a/rss/index.html +++ b/rss/index.html @@ -1,675 +1,200 @@ - + - - rss | LOVE109❤️纪实小屋 + - + rss | 404 + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + - -
        -
        - -
        -
        - - -
        -
        -
        - - - -
        -
        -

        LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

        -
        -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        -
        -
        -
        - - - -
        -
        - -
        - -
        - - -
        -
        -
        -
        + Archives + +
        -
        - -
        -

        记录爱情 记录生活

        -
        - -
        - - - - - - - - -
        -
        -
        - -
        - - - © 2019 LOVE109纪实小屋
        - 鄂ICP备19003281号
        - - 正在载入... - - -
        - - - - - - - - - -
        +
        +
        +
        + - - - +
        + + +
        + + +

        + rss +

        + - - - -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        - -
        -

        LOVE109❤️ 纪实小屋

        -

        +

        +
        - - - - - + - +
        + + + -

        -
        - + - + +
        + +
        + +
        +
        + + - -

        - © 2019 LOVE109❤️纪实小屋

        - - - - - - + + + + + + - - - - + - - - - -
        - - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/tags/landscape/index.html b/tags/landscape/index.html new file mode 100644 index 0000000..a187721 --- /dev/null +++ b/tags/landscape/index.html @@ -0,0 +1,198 @@ + + + + + + + + Tag: landscape | 404 + + + + + + + + + + + + + + + + + + + + + + + + +
        +
        + +
        +
        + + + + + + +
        +
        + 2019 +
        +
        + + + + +
        + + + +
        + + + +
        +
        + +
        + +
        +
        +
        + + + + + + + + + + + + + + +
        + + \ No newline at end of file diff --git a/tags/web/index.html b/tags/web/index.html deleted file mode 100644 index d995e44..0000000 --- a/tags/web/index.html +++ /dev/null @@ -1,729 +0,0 @@ - - - - - - - Tag: web | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
        -
        - -
        -
        - - -
        -
        -
        - - - -
        -
        -

        LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

        -
        -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        -
        -
        -
        - - - -
        -
        - - -
        -
        -
        - -
        -
        -

        web

        -
        -
        -
        -
        -
        - - - - - - - - - - - -
        -
        -
        - -
        -
        - - - - - - -
        -
        -
        - -
        - - - © 2019 LOVE109纪实小屋
        - 鄂ICP备19003281号
        - - 正在载入... - - -
        - - - - - - - - - -
        -
        -
        - - - - - - -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        - -
        -

        LOVE109❤️ 纪实小屋

        -

        - - - - - - - - - - - - - -

        - -

        - © 2019 LOVE109❤️纪实小屋

        -
        - - - - - - - - - - - - - - - - - -
        - - - \ No newline at end of file diff --git "a/tags/\346\202\246\350\257\273/index.html" "b/tags/\346\202\246\350\257\273/index.html" deleted file mode 100644 index fc08baf..0000000 --- "a/tags/\346\202\246\350\257\273/index.html" +++ /dev/null @@ -1,729 +0,0 @@ - - - - - - - Tag: 悦读 | LOVE109❤️纪实小屋 - - - - - - - - - - - - - - - - - -
        -
        - -
        -
        - - -
        -
        -
        - - - -
        -
        -

        LOVE109❤️纪实小屋 - 记录爱情❤️记录生活

        -
        -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • - - - -
      • - -
      • -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        -
        -
        -
        - - - -
        -
        - - -
        -
        -
        - -
        -
        -

        悦读

        -
        -
        -
        -
        -
        - - - - - - - - - - - -
        -
        -
        - -
        -
        - - - - - - -
        -
        -
        - -
        - - - © 2019 LOVE109纪实小屋
        - 鄂ICP备19003281号
        - - 正在载入... - - -
        - - - - - - - - - -
        -
        -
        - - - - - - -
        -
        -
        -
        -
        - -
        -
        -
        -
        -
        - -
        -

        LOVE109❤️ 纪实小屋

        -

        - - - - - - - - - - - - - -

        - -

        - © 2019 LOVE109❤️纪实小屋

        -
        - - - - - - - - - - - - - - - - - -
        - - - \ No newline at end of file diff --git a/warn.html b/warn.html deleted file mode 100644 index ac1037d..0000000 --- a/warn.html +++ /dev/null @@ -1,35 +0,0 @@ - - - - 警告:不被支持的浏览器 - - - - - -

        !

        -

        Not support IE9 and below

        -

        为保持体验良好,本站禁止不支持H5的浏览器访问

        -

        墙裂推荐使用 ChromeFirefox 浏览器访问本站。

        - - \ No newline at end of file -- GitLab